Files
discord-decomp/sources/records/TwitchApplicationRecord.tsx
T
2026-07-28 01:06:53 +03:00

81 lines
4.4 KiB
TypeScript

/* Metro module 12596; source: records/TwitchApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 1244, 4915, 2] */
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 PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import ApplicationRecord from './ApplicationRecord.tsx'; /* Metro dependency 4235 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
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});
let value = ApplicationRecord;
value = _fun96563(value);
(FileImportTrackerModule).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 TwitchApplicationRecord2 = TwitchApplicationRecord;
Inherits(TwitchApplicationRecord2, a0);
return CreateClass(TwitchApplicationRecord2, [{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 = (IndexNativeModule).intl;
const string = intl.string;
const JIPtgq = (IndexNativeModule).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;
}
}
}
global.__d(_fun96559, 12596, [6, 7, 15, 17, 18, 4235, 1244, 4915,
2]) /* metro module 12596, dependencies: [6, 7, 15, 17, 18, 4235, 1244, 4915, 2] */;