81 lines
4.7 KiB
TypeScript
81 lines
4.7 KiB
TypeScript
/* Metro module 13707; source: components_native/premium/PremiumRestorationAlert.tsx; dependencies: [6, 7, 15, 17, 18, 31, 5140, 33, 13708, 566, 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 Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import IAPStoreAndroid from '../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
|
|
import UntouchableAlert from '../common/UntouchableAlert.tsx'; /* Metro dependency 13708 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun104749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13904:6, offset: 0x0229fb75, size: 296 bytes, params: 8, frame: 20
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const PureComponent = value.PureComponent;
|
|
value = _fun104753(PureComponent);
|
|
value = Flux.connectStores([IAPStoreAndroid], function() {
|
|
var object = {};
|
|
object.isBusy = IAPStoreAndroid.isBusy();
|
|
return object;
|
|
})(value);
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/premium/PremiumRestorationAlert.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_104750() { // fn#104750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13904:182, offset: 0x0229fc9d, 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_104750_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun104753(a0) { // fn#104753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13904:381, offset: 0x0229fcff, size: 72 bytes, params: 2, frame: 15
|
|
const PremiumRestorationAlert2 = PremiumRestorationAlert;
|
|
Inherits(PremiumRestorationAlert2, a0);
|
|
return CreateClass(PremiumRestorationAlert2, [{key: 'render', value: value_104755}]);
|
|
function PremiumRestorationAlert() { // fn#104754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13904:393, offset: 0x01081bdc, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_2(this, PremiumRestorationAlert);
|
|
const value3 = env1_5(PremiumRestorationAlert);
|
|
return env1_4(this, _isNativeReflectConstruct_104750() ? global.Reflect.construct(value3, arguments,
|
|
env1_5(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_104755() { // fn#104755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13904:722, offset: 0x0229fd47, size: 69 bytes, params: 1, frame: 15
|
|
const {isBusy, onClose} = this.props;
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component loading={isBusy} onClose={onClose} />)(UntouchableAlert);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun104749, 13707, [6, 7, 15, 17, 18, 31, 5140, 33, 13708, 566,
|
|
2]) /* metro module 13707, dependencies: [6, 7, 15, 17, 18, 31, 5140, 33, 13708, 566, 2] */;
|