76 lines
3.8 KiB
TypeScript
76 lines
3.8 KiB
TypeScript
/* Metro module 14316; source: modules/parent_tools/ParentalConsentStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun108366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:6, offset: 0x0231e6be, size: 309 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 env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
|
let value = _fun108370(PersistedStore);
|
|
value.displayName = 'ParentalConsentStore';
|
|
value.persistKey = 'ParentalConsentStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{GUARDIAN_CONNECT_REQUIRED: GUARDIAN_CONNECT_REQUIRED, GUARDIAN_CONNECT_CLEARED: GUARDIAN_CONNECT_CLEARED,
|
|
NUF_COMPLETE: NUF_COMPLETE_108377});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/ParentalConsentStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_108367() { // fn#108367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:148, offset: 0x0231e7f3, 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_108367_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun108370(a0) { // fn#108370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:356, offset: 0x0231e855, size: 124 bytes, params: 2, frame: 16
|
|
const closure = ParentalConsentStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: function(a0) {
|
|
var r1;
|
|
var value = undefined;
|
|
r1 = a0 == null ? value : a0.shouldShowGuardianConnect;
|
|
env1_5 = r1 != null && r1;
|
|
return value;
|
|
}}, {key: 'getShouldShowGuardianConnect', value: value_108373}, {key: 'getState', value: value_108374}]);
|
|
}
|
|
|
|
function GUARDIAN_CONNECT_REQUIRED({shouldShowGuardianConnect}) { // fn#108375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1046, offset: 0x0231e90a, size: 40 bytes, params: 2, frame: 10
|
|
result = shouldShowGuardianConnect === true;
|
|
env0_6.persist();
|
|
}
|
|
|
|
function GUARDIAN_CONNECT_CLEARED() { // fn#108376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1163, offset: 0x0231e932, size: 27 bytes, params: 1, frame: 9
|
|
env0_6.persist();
|
|
}
|
|
|
|
function value_108374() { // fn#108374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:850, offset: 0x0231e8fa, size: 16 bytes, params: 1, frame: 2
|
|
return {shouldShowGuardianConnect: env1_5};
|
|
}
|
|
|