69 lines
2.9 KiB
TypeScript
69 lines
2.9 KiB
TypeScript
/* Metro module 6548; source: modules/emoji_terms/LazyPromiseInitializer.tsx; dependencies: [6, 7, 2] */
|
|
function _fun51639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6726:6, offset: 0x0123d924, size: 124 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const value = _fun51640();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emoji_terms/LazyPromiseInitializer.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _fun51640() { // fn#51640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6726:118, offset: 0x0123d9a0, size: 103 bytes, params: 1, frame: 15
|
|
return env0_1(LazyPromiseInitializer, [{key: 'setParams', value: function(a0) {
|
|
if (this.param !== a0) {
|
|
this.param = a0;
|
|
this.loading = false;
|
|
this.loaded = false;
|
|
}
|
|
}}, {key: 'get', value: function() {
|
|
this.ensureLoaded();
|
|
return this.val;
|
|
}}, {key: 'ensureLoaded', value: function() {
|
|
var param;
|
|
var env0_0 = this;
|
|
if (!this.loaded) {
|
|
if (!this.loading) {
|
|
if (this.param !== undefined) {
|
|
param = this.param;
|
|
var env0_1 = param;
|
|
this.loading = true;
|
|
this.loader(param).then(_fun51645);
|
|
}
|
|
}
|
|
}
|
|
}}]);
|
|
}
|
|
|
|
function LazyPromiseInitializer(a0) { // fn#51641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6726:139, offset: 0x0123da07, size: 50 bytes, params: 2, frame: 13
|
|
env1_0(this, LazyPromiseInitializer);
|
|
this.loading = false;
|
|
this.loaded = false;
|
|
this.loader = a0;
|
|
}
|
|
|
|
function value_51644() { // fn#51644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6726:444, offset: 0x0123da78, size: 87 bytes, params: 1, frame: 12
|
|
var param;
|
|
if (!this.loaded) {
|
|
if (!this.loading) {
|
|
param = this.param;
|
|
if (param !== undefined) {
|
|
param = this.param;
|
|
this.loading = true;
|
|
this.loader(param).then(_fun51645);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun51645(a0) { // fn#51645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6726:562, offset: 0x0123dacf, size: 54 bytes, params: 2, frame: 3
|
|
var binding;
|
|
if (param === env0_0.param) {
|
|
binding = env0_0;
|
|
binding.val = a0;
|
|
binding.loading = false;
|
|
binding.loaded = true;
|
|
}
|
|
}
|
|
|