75 lines
3.6 KiB
TypeScript
75 lines
3.6 KiB
TypeScript
/* Metro module 12596; source: records/TwitchApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 1244, 4915, 2] */
|
|
function _fun96559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:6, offset: 0x021608a6, size: 222 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
|
value = _fun96563(value);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/TwitchApplicationRecord.tsx');
|
|
exports.default = value;
|
|
exports.TWITCH_APPLICATION_ID_PREFIX = 'twitch:';
|
|
}
|
|
|
|
function _isNativeReflectConstruct_96560() { // fn#96560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:158, offset: 0x02160984, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_96560_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun96563(a0) { // fn#96563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:369, offset: 0x021609e6, size: 72 bytes, params: 2, frame: 15
|
|
const closure = TwitchApplicationRecord;
|
|
env0_7(closure, a0);
|
|
return env0_4(closure, [{key: 'getIconURL', value: value_96565}]);
|
|
}
|
|
|
|
function TwitchApplicationRecord(a0) { // fn#96564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:381, offset: 0x02160a2e, size: 218 bytes, params: 2, frame: 21
|
|
env1_3(this, TwitchApplicationRecord);
|
|
const items2 = [a0];
|
|
const value3 = env1_6(TwitchApplicationRecord);
|
|
const value6 = env1_5(this, _isNativeReflectConstruct_96560() ? global.Reflect.construct(value3, items2,
|
|
env1_6(this).constructor) : value3.apply(this, items2));
|
|
value6.id = '' + 'twitch:' + a0.url;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const JIPtgq = (require(1244) /* metro dependency 1244: indexNative */).t.JIPtgq;
|
|
value6.name = Reflect.apply(string, intl, [JIPtgq]);
|
|
return value6;
|
|
}
|
|
|
|
function value_96565() { // fn#96565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:784, offset: 0x02160b08, size: 52 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
value = importDefault(4915) /* metro dependency 4915: Platforms */;
|
|
const get = value.get;
|
|
return Reflect.apply(get, value, ['twitch']).icon.lightPNG;
|
|
}
|
|
|