120 lines
5.0 KiB
React
120 lines
5.0 KiB
React
/* Metro module 1133; source: unknown; dependencies: [65, 1009] */
|
|
function _fun12607(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:6, offset: 0x00dd09d4, size: 120 bytes, params: 8, frame: 18
|
|
var closure;
|
|
let value = this;
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_2 = importDefault(65) /* metro dependency 65 */;
|
|
if (!(value && value.__awaiter)) {
|
|
closure = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var value = a2;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = value;
|
|
var env0_3 = a3;
|
|
r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
var value2 = new r2(_fun12612);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
}
|
|
exports.screenshotIntegration = function() {
|
|
return {name: 'Screenshot', setupOnce: _fun12619, processEvent: processEvent_12608};
|
|
};
|
|
}
|
|
|
|
function processEvent_12608(a0, a1, a2) { // fn#12608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:483, offset: 0x00dd0a4c, size: 50 bytes, params: 4, frame: 15
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return env0_3(this, undefined, undefined, _fun12610);
|
|
}
|
|
|
|
function _fun12611(a0, a1, a2, a3) { // fn#12611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:132, offset: 0x00dd0bd1, size: 75 bytes, params: 5, frame: 12
|
|
let value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_3 = a3;
|
|
let r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
r2 = new r2(_fun12612);
|
|
return r2 instanceof Object ? r2 : value;
|
|
}
|
|
|
|
function screenshotIntegration() { // fn#12618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:917, offset: 0x00dd0d01, size: 38 bytes, params: 1, frame: 2
|
|
return {name: 'Screenshot', setupOnce: function() {
|
|
}, processEvent: processEvent_12608};
|
|
}
|
|
|
|
function* _fun12610() { // fn#12610, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:551, offset: 0x00dd0a87, size: 330 bytes, params: 1, frame: 21
|
|
var r4;
|
|
var binding;
|
|
var beforeScreenshot;
|
|
var value6;
|
|
var NATIVE;
|
|
var value7;
|
|
var items2;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
const exception = require.exception;
|
|
env1_3 = exception;
|
|
const value3 = undefined;
|
|
if (exception === null || value3 === env1_3 ? value3 : env1_3.values) {
|
|
if (require.exception.values.length > 0) {
|
|
binding = env1_2;
|
|
beforeScreenshot = binding.getOptions().beforeScreenshot;
|
|
env1_5 = beforeScreenshot;
|
|
r4 = beforeScreenshot === null || value3 === env1_5 ? value3 : env1_5.call(processEvent_12608, require,
|
|
dependencyMap);
|
|
if (r4 === false) {
|
|
return require;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
NATIVE = binding(env2_1[1]).NATIVE;
|
|
yield NATIVE.captureScreenshot();
|
|
value7 = undefined;
|
|
if (false) {
|
|
return value7;
|
|
}
|
|
r4 = value7 && value7.length > 0;
|
|
if (r4) {
|
|
items2 = [];
|
|
dependencyMap.attachments = items2.concat(env2_2(value7),
|
|
env2_2((dependencyMap == null ? value3 : dependencyMap.attachments) || []));
|
|
}
|
|
return require;
|
|
}
|
|
}
|
|
return require;
|
|
}
|
|
|
|
function _fun12612(a0, a1) { // fn#12612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:178, offset: 0x00dd0c1c, size: 98 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const closure = step_12615;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
closure(value2.next());
|
|
}
|
|
|
|
function step_12615(a0) { // fn#12615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:306, offset: 0x00dd0c7e, size: 77 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (a0.done) {
|
|
env0_0(a0.value);
|
|
} else {
|
|
value = a0.value;
|
|
value = step_12615Adopt(value);
|
|
value.then(fulfilled_12613, rejected_12614);
|
|
}
|
|
}
|
|
|
|
function step_12615Adopt(a0) { // fn#12616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:341, owner: step_12615.adopt, offset: 0x00dd0ccb, size: 54 bytes, params: 2, frame: 12
|
|
const value = a0;
|
|
return value instanceof env2_2 ? value : new env2_2(_fun12617);
|
|
}
|
|
|