Files
discord-decomp/sources/by-id/module-04763.jsx
T
2026-07-27 16:20:00 +03:00

296 lines
17 KiB
React

/* Metro module 4763; source: unknown; dependencies: [4756] */
function _fun41119(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:6, offset: 0x011156ba, size: 1132 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = description_41120;
const closure2 = description_41121;
const closure3 = description_41122;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = {iptc: {286: 'Service Identifier', 296: 'Envelope Number', 306: 'Product ID',
316: 'Envelope Priority', 356: 'UNO', 515: 'Object Type Reference', 516: 'Object Attribute Reference',
517: 'Object Name', 519: 'Edit Status', 522: 'Urgency', 527: 'Category', 534: 'Fixture Identifier',
542: 'Release Date', 547: 'Release Time', 549: 'Expiration Date', 550: 'Expiration Time',
552: 'Special Instructions', 577: 'Originating Program', 582: 'Program Version', 602: 'City',
604: 'Sub-location', 607: 'Province/State', 612: 'Country/Primary Location Code',
613: 'Country/Primary Location Name', 615: 'Original Transmission Reference', 617: 'Headline', 622: 'Credit',
627: 'Source', 628: 'Copyright Notice', 632: 'Caption/Abstract', 642: 'Image Type', 647: 'Language Identifier',
666: 'Audio Outcue', 698: 'Short Document ID', 699: 'Unique Document ID', 700: 'Owner ID',
714: 'ObjectData Preview Data', [256]: {name: 'Model Version', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [261]: {'name': 'Destination', 'repeatable': true}, [276]: {name: 'File Format', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [278]: {name: 'File Format Version', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [326]: {name: 'Date Sent', description: closure}, [336]: {name: 'Time Sent', description: closure2},
[346]: {name: 'Coded Character Set', description: closure3, encoding_name: closure3},
[376]: {name: 'ARM Identifier', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [378]: {name: 'ARM Version', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [512]: {name: 'Record Version', description: function(a0) {
var value = a0[0] << 8;
value += a0[1];
return value.toString();
}}, [520]: {name: 'Editorial Update', description: description_41129}, [524]: {'name': 'Subject Reference',
'repeatable': true, description: description_41130}, [532]: {'name': 'Supplemental Category',
'repeatable': true}, [537]: {'name': 'Keywords', 'repeatable': true}, [538]: {'name': 'Content Location Code',
'repeatable': true}, [539]: {'name': 'Content Location Name', 'repeatable': true},
[554]: {name: 'Action Advised', description: description_41131}, [557]: {'name': 'Reference Service',
'repeatable': true}, [559]: {'name': 'Reference Date', 'repeatable': true}, [562]: {'name': 'Reference Number',
'repeatable': true}, [567]: {name: 'Date Created', description: closure}, [572]: {name: 'Time Created',
description: closure2}, [574]: {name: 'Digital Creation Date', description: closure},
[575]: {name: 'Digital Creation Time', description: closure2}, [587]: {name: 'Object Cycle',
description: description_41132}, [592]: {'name': 'By-line', 'repeatable': true},
[597]: {'name': 'By-line Title', 'repeatable': true}, [630]: {'name': 'Contact', 'repeatable': true},
[634]: {'name': 'Writer/Editor', 'repeatable': true}, [637]: {name: 'Rasterized Caption',
description: function(a0) {
return a0;
}}, [643]: {name: 'Image Orientation', description: description_41134}, [662]: {name: 'Audio Type',
description: description_41135}, [663]: {name: 'Audio Sampling Rate', description: description_41136},
[664]: {name: 'Audio Sampling Resolution', description: description_41137}, [665]: {name: 'Audio Duration',
description: description_41138}, [712]: {name: function(a0) {
return a0.length !== 2 ? 'Record 2 destination' : 'ObjectData Preview File Format';
}, description: description_41140}, [713]: {name: 'ObjectData Preview File Format Version',
description: description_41141}, [1802]: {name: 'Size Mode', description: function([property]) {
return property.toString();
}}, [1812]: {name: 'Max Subfile Size', description: function(a0) {
var r2;
var r3;
var r1;
var property;
var value2;
var value = 0;
if (value < a0.length) {
r2 = value;
for (r3 = value; true; r3 = value) {
property = a0[r2];
value = (r3 << 8) + property;
value2 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value2 < a0.length)) {
r1 = value;
break;
}
r2 = value2;
}
} else {
r1 = value;
}
return r1.toString();
}}, [1882]: {name: 'ObjectData Size Announced', description: function(a0) {
var r2;
var r3;
var r1;
var property;
var value2;
var value = 0;
if (value < a0.length) {
r2 = value;
for (r3 = value; true; r3 = value) {
property = a0[r2];
value = (r3 << 8) + property;
value2 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value2 < a0.length)) {
r1 = value;
break;
}
r2 = value2;
}
} else {
r1 = value;
}
return r1.toString();
}}, [1887]: {name: 'Maximum ObjectData Size', description: function(a0) {
var r2;
var r3;
var r1;
var property;
var value2;
var value = 0;
if (value < a0.length) {
r2 = value;
for (r3 = value; true; r3 = value) {
property = a0[r2];
value = (r3 << 8) + property;
value2 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value2 < a0.length)) {
r1 = value;
break;
}
r2 = value2;
}
} else {
r1 = value;
}
return r1.toString();
}}}};
}
function description_41120(a0) { // fn#41120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:7036, offset: 0x01115b26, size: 120 bytes, params: 2, frame: 16
var r0;
var value4;
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
if (value.length >= 8) {
value4 = value.substr(0, 4) + '-' + value.substr(4, 2);
value = value.substr(6, 2);
value = value4 + '-' + value;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function description_41121(a0) { // fn#41121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:7167, offset: 0x01115b9e, size: 199 bytes, params: 2, frame: 18
var r1;
var r0;
var value6;
var value8;
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
if (value.length >= 6) {
value6 = value.substr(0, 2) + ':' + value.substr(2, 2) + ':' + value.substr(4, 2);
if (value.length !== 11) {
r1 = value6;
} else {
value8 = value.substr(6, 1) + value.substr(7, 2);
value = value.substr(9, 2);
value = value6 + (value8 + ':' + value);
r1 = value;
}
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function description_41122(a0) { // fn#41122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:7373, offset: 0x01115c65, size: 306 bytes, params: 2, frame: 23
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
return value === '\x1b%G' ? 'UTF-8' : value === '\x1b%5' ? 'Windows-1252' : value === '\x1b%/G' ? 'UTF-8 Level 1' : value === '\x1b%/H' ? 'UTF-8 Level 2' : value === '\x1b%/I' ? 'UTF-8 Level 3' : value === '\x1b/A' ? 'ISO-8859-1' : value === '\x1b/B' ? 'ISO-8859-2' : value === '\x1b/C' ? 'ISO-8859-3' : value === '\x1b/D' ? 'ISO-8859-4' : value === '\x1b/@' ? 'ISO-8859-5' : value === '\x1b/G' ? 'ISO-8859-6' : value === '\x1b/F' ? 'ISO-8859-7' : value !== '\x1b/H' ? 'Unknown' : 'ISO-8859-8';
}
function description_41129(a0) { // fn#41129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:1166, offset: 0x01115dbd, size: 58 bytes, params: 2, frame: 11
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
return value !== '01' ? 'Unknown' : 'Additional Language';
}
function description_41130(a0) { // fn#41130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:1333, offset: 0x01115df7, size: 120 bytes, params: 2, frame: 14
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
value = value.split(':');
const property = value[2];
const value2 = '';
return property + (value[3] ? '/' + value[3] : value2) + (value[4] ? '/' + value[4] : value2);
}
function description_41131(a0) { // fn#41131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:1823, offset: 0x01115e6f, size: 109 bytes, params: 2, frame: 14
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
return value === '01' ? 'Object Kill' : value === '02' ? 'Object Replace' : value === '03' ? 'Object Append' : value !== '04' ? 'Unknown' : 'Object Reference';
}
function description_41132(a0) { // fn#41132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:2449, offset: 0x01115edc, size: 88 bytes, params: 2, frame: 13
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
return value === 'a' ? 'morning' : value === 'p' ? 'evening' : value !== 'b' ? 'Unknown' : 'both';
}
function description_41134(a0) { // fn#41134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:3111, offset: 0x01115f34, size: 92 bytes, params: 2, frame: 13
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
return value === 'P' ? 'Portrait' : value === 'L' ? 'Landscape' : value !== 'S' ? 'Unknown' : 'Square';
}
function description_41135(a0) { // fn#41135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:3302, offset: 0x01115f90, size: 279 bytes, params: 2, frame: 14
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
const value2 = value.charAt(0);
const value3 = value.charAt(1);
const r3 = value2 === '1' ? 'Mono' : value2 !== '2' ? '' : 'Stereo';
const r1 = value3 === 'A' ? r3 + ', actuality' : value3 === 'C' ? r3 + ', question and answer session' : value3 === 'M' ? r3 + ', music, transmitted by itself' : value3 === 'Q' ? r3 + ', response to a question' : value3 === 'R' ? r3 + ', raw sound' : value3 === 'S' ? r3 + ', scener' : value3 === 'V' ? r3 + ', voicer' : value3 !== 'W' ? r3 : r3 + ', wrap';
return r1 === '' ? value : r1;
}
function description_41136(a0) { // fn#41136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:3867, offset: 0x011160a7, size: 67 bytes, params: 2, frame: 14
const parseInt = global.parseInt;
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
value = parseInt(value, 10);
return value + ' Hz';
}
function description_41137(a0) { // fn#41137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:3995, offset: 0x011160ea, size: 80 bytes, params: 2, frame: 14
const parseInt = global.parseInt;
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
value = parseInt(value, 10);
return value + (value !== 1 ? ' bits' : ' bit');
}
function description_41138(a0) { // fn#41138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:4137, offset: 0x0111613a, size: 117 bytes, params: 2, frame: 16
var r0;
var value4;
let value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a0);
if (value.length >= 6) {
value4 = value.substr(0, 2) + ':' + value.substr(2, 2);
value = value.substr(4, 2);
value = value4 + ':' + value;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function description_41140(a0) { // fn#41140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:4465, offset: 0x011161ca, size: 636 bytes, params: 2, frame: 41
var value;
if (a0.length === 2) {
value = a0[0] << 8;
value += a0[1];
return value === 0 ? 'No ObjectData' : value === 1 ? 'IPTC-NAA Digital Newsphoto Parameter Record' : value === 2 ? 'IPTC7901 Recommended Message Format' : value === 3 ? 'Tagged Image File Format (Adobe/Aldus Image data)' : value === 4 ? 'Illustrator (Adobe Graphics data)' : value === 5 ? 'AppleSingle (Apple Computer Inc)' : value === 6 ? 'NAA 89-3 (ANPA 1312)' : value === 7 ? 'MacBinary II' : value === 8 ? 'IPTC Unstructured Character Oriented File Format (UCOFF)' : value === 9 ? 'United Press International ANPA 1312 variant' : value === 10 ? 'United Press International Down-Load Message' : value === 11 ? 'JPEG File Interchange (JFIF)' : value === 12 ? 'Photo-CD Image-Pac (Eastman Kodak)' : value === 13 ? 'Microsoft Bit Mapped Graphics File [*.BMP]' : value === 14 ? 'Digital Audio File [*.WAV] (Microsoft & Creative Labs)' : value === 15 ? 'Audio plus Moving Video [*.AVI] (Microsoft)' : value === 16 ? 'PC DOS/Windows Executable Files [*.COM][*.EXE]' : value === 17 ? 'Compressed Binary File [*.ZIP] (PKWare Inc)' : value === 18 ? 'Audio Interchange File Format AIFF (Apple Computer Inc)' : value === 19 ? 'RIFF Wave (Microsoft Corporation)' : value === 20 ? 'Freehand (Macromedia/Aldus)' : value === 21 ? 'Hypertext Markup Language "HTML" (The Internet Society)' : value === 22 ? 'MPEG 2 Audio Layer 2 (Musicom), ISO/IEC' : value === 23 ? 'MPEG 2 Audio Layer 3, ISO/IEC' : value === 24 ? 'Portable Document File (*.PDF) Adobe' : value === 25 ? 'News Industry Text Format (NITF)' : value === 26 ? 'Tape Archive (*.TAR)' : value === 27 ? 'Tidningarnas Telegrambyrå NITF version (TTNITF DTD)' : value === 28 ? 'Ritzaus Bureau NITF version (RBNITF DTD)' : value === 29 ? 'Corel Draw [*.CDR]' : 'Unknown format ' + value;
}
return (require(4756) /* metro dependency 4756 */).getStringValue(a0);
}
function description_41141(a0, a1) { // fn#41141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4941:6051, offset: 0x01116446, size: 299 bytes, params: 3, frame: 16
const object2 = {};
object2['00'] = {['00']: '1'};
object2['01'] = {'01': '1', '02': '2', '03': '3', '04': '4'};
object2['02'] = {['04']: '4'};
object2['03'] = {'01': '5.0', '02': '6.0'};
object2['04'] = {['01']: '1.40'};
object2['05'] = {['01']: '2'};
object2['06'] = {['01']: '1'};
object2[11] = {['01']: '1.02'};
object2[20] = {'01': '3.1', '02': '4.0', '03': '5.0', '04': '5.5'};
object2[21] = {['02']: '2.0'};
var value;
const stringValue = (require(4756) /* metro dependency 4756 */).getStringValue(a0);
if (a1['ObjectData Preview File Format']) {
value = require(4756) /* metro dependency 4756 */;
value = value.getStringValue(a1['ObjectData Preview File Format'].value);
if (object2[value]) {
if (object2[value][stringValue]) {
return object2[value][stringValue];
}
return stringValue;
}
}
return stringValue;
}