/* Metro module 7618; source: lib/uploader_inline/InlineUploader.tsx; dependencies: [5, 6, 7, 4680, 7619, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun61016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:6, offset: 0x017183d8, size: 170 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_6 = RegExp('^[a-f0-9]{32}$', ''); const value = _fun61017(); (FileImportTrackerModule).fileFinishedImporting('lib/uploader_inline/InlineUploader.tsx'); exports.default = value; function _fun61017() { // fn#61017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:152, offset: 0x01718482, size: 151 bytes, params: 1, frame: 18 const InlineUploader2 = InlineUploader; const env0_0 = Module00005(_fun61021); return CreateClass(InlineUploader2, [{key: 'getOriginalMd5', value: function() { return this.originalMd5Promise; }}, {key: 'buildHeaders', value: value_61022}], [{key: 'fromBlob', value: value_61023}, {key: 'buildHeadersForMd5', value: value_61025}]); function InlineUploader(a0, a1) { // fn#61018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:163, offset: 0x01718519, size: 45 bytes, params: 3, frame: 13 env1_4(this, InlineUploader); this.surface = a0; this.originalMd5Promise = a1; } function* _fun61021(a0) { // fn#61021, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:385, offset: 0x0171855a, size: 57 bytes, params: 2, frame: 14 if (false) { return undefined; } value = environment.__proto__; const buildHeadersForMd5 = importDefault.buildHeadersForMd5; yield this.originalMd5Promise; value = undefined; if (false) { return value; } return Reflect.apply(buildHeadersForMd5, importDefault, [value, a0]); } function value_61022() { // fn#61022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:475, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } function value_61023(a0, a1) { // fn#61023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:557, offset: 0x01718593, size: 89 bytes, params: 3, frame: 13 var environment; let value = environment.__proto__; value = importDefault(4680) /* metro dependency 4680: DiscordMd5 */; value = value.fromBlob(a1); value = value.catch(function() { return null; }); const value2 = Object.create(InlineUploader.prototype, {constructor: {value: InlineUploader}}); const inlineUploader = new InlineUploader(a0); return inlineUploader instanceof Object ? inlineUploader : value2; } function value_61025(a0, a1) { // fn#61025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:672, offset: 0x017185ec, size: 80 bytes, params: 3, frame: 16 var environment; var r0; var object; let value = a1; const value2 = serializeOriginalMd5Header(a0); if (value2 == null) { r0 = value; } else { object = {}; copyDataProperties(object, value, undefined); value = environment.__proto__; object[(require(7619) /* metro dependency 7619: originalMd5Header */).ORIGINAL_MD5_HEADER] = value2; r0 = object; } return r0; function serializeOriginalMd5Header(a0) { // fn#61026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:692, owner: value_61025.serializeOriginalMd5Header, offset: 0x0171863c, size: 224 bytes, params: 2, frame: 21 var environment; var r4; var r1; var property; var property2; var value6; var binding; var value7; var value8; var value9; let value = a0; let value2 = null; if (value2 == value) { return value2; } if (typeof value === 'string') { value9 = environment.__proto__.__proto__; binding = env2_6; return binding.test(value) ? value : value2; } const items2 = []; const Object = global.Object; let value3 = Object.keys(value); let length = value3.length; const value4 = 0; if (value4 < length) { r4 = value4; while (true) { property = value3[r4]; property2 = value[property]; value6 = value2 != property2; if (value6) { binding = env2_6; value7 = binding.test(property2); r1 = value7; } else { r1 = value6; } if (!r1) { continue; } items2.push([property, property2]); value8 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1; length = value3.length; if (value8 < length) { r4 = value8; continue; } break; } } if (value4 === items2.length) { r1 = value2; } else { items2.sort(function(a0, a1) { var iterator = a0[Symbol.iterator](); var item2 = iterator.next(); var item = item2.value; item2 = item2.done ? undefined : iterator; var value = undefined; var value2 = item2 === value; var r1 = value2 ? value : item; if (!value2) { item2.return(); } iterator = a1[Symbol.iterator](); var item3 = iterator.next(); item = item3.value; item3 = item3.done ? undefined : iterator; var value3 = item3 === value; var r2 = value3 ? value : item; if (!value3) { item3.return(); } return r1 < r2 ? -1 : r1 > r2 ? 1 : 0; }); value = items2.map(_fun61028); value = value.join(', '); r1 = value; } return r1; } } } } function _fun61028(a0) { // fn#61028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7796:971, offset: 0x0171877a, size: 109 bytes, params: 2, frame: 18 var r0; var r2; var r5; var item3; var value3; const iterator = a0[Symbol.iterator](); const iterator2 = iterator.next; let item2 = Reflect.apply(iterator2, iterator, []); let item = item2.value; item2 = item2.done ? undefined : iterator; const value = undefined; const value2 = item2 === value; const r1 = value2 ? value : item; if (value2) { r0 = item2; r2 = value2; r5 = value; } else { item3 = Reflect.apply(iterator2, item2, []); item = item3.value; item3 = item3.done ? undefined : item2; value3 = item3 === value; if (value3) { r0 = item3; r2 = value3; r5 = value; } else { r0 = item3; r2 = value3; r5 = item; } } if (!r2) { r0.return(); } return '' + r1.toLowerCase() + '="' + r5 + '"'; } global.__d(_fun61016, 7618, [5, 6, 7, 4680, 7619, 2]) /* metro module 7618, dependencies: [5, 6, 7, 4680, 7619, 2] */;