168 lines
7.9 KiB
JavaScript
168 lines
7.9 KiB
JavaScript
/* Metro module 1133; source: unknown; dependencies: [65, 1009] */
|
|
import Module00065 from './module-00065.js'; /* Metro dependency 65 */
|
|
|
|
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 = Module00065;
|
|
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* _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;
|
|
exception2 = exception;
|
|
const value3 = undefined;
|
|
if (exception === null || value3 === exception2 ? value3 : exception2.values) {
|
|
if (require.exception.values.length > 0) {
|
|
binding = env1_2;
|
|
beforeScreenshot = binding.getOptions().beforeScreenshot;
|
|
beforeScreenshot2 = beforeScreenshot;
|
|
r4 = beforeScreenshot === null || value3 === beforeScreenshot2 ? value3 : beforeScreenshot2.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 _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 _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 step_126152 = step_12615;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
step_126152(value2.next());
|
|
function fulfilled_12613(a0) { // fn#12613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:192, offset: 0x00d57fb9, size: 56 bytes, params: 2, frame: 12
|
|
var value;
|
|
var step_12615Binding;
|
|
var value2;
|
|
var next;
|
|
var value3;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
step_12615Binding = step_12615;
|
|
value2 = environment.__proto__;
|
|
next = importAll.next;
|
|
value3 = Reflect.apply(next, importAll, [a0]);
|
|
step_12615Binding(value3);
|
|
} catch (error) {
|
|
require(error);
|
|
}
|
|
}
|
|
|
|
function rejected_12614(a0) { // fn#12614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:249, offset: 0x00d57ff1, size: 57 bytes, params: 2, frame: 12
|
|
var value;
|
|
var step_12615Binding;
|
|
var value2;
|
|
var value3;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
step_12615Binding = step_12615;
|
|
value2 = environment.__proto__;
|
|
value3 = importAll.throw(a0);
|
|
step_12615Binding(value3);
|
|
} catch (error) {
|
|
require(error);
|
|
}
|
|
}
|
|
|
|
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);
|
|
function _fun12617(a0) { // fn#12617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1260:390, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11
|
|
a0(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 screenshotIntegrationSetupOnce() { // fn#12619, owner: screenshotIntegration.setupOnce, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
global.__d(_fun12607, 1133, [65, 1009]) /* metro module 1133, dependencies: [65, 1009] */;
|