86 lines
3.8 KiB
TypeScript
86 lines
3.8 KiB
TypeScript
/* Metro module 5078; source: stores/ConsentStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun44082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:6, offset: 0x01167f30, size: 325 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 */;
|
|
let env0_7 = {};
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
let value = _fun44086(Store);
|
|
value.displayName = 'ConsentStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{CONNECTION_OPEN: CONNECTION_OPEN_44093, OVERLAY_INITIALIZE: function({consents}) {
|
|
var r1;
|
|
var object = {};
|
|
copyDataProperties(object, consents, r1);
|
|
env0_7 = object;
|
|
env0_5 = true;
|
|
}, UPDATE_CONSENTS: function({consents}) {
|
|
var r1;
|
|
var object = {};
|
|
copyDataProperties(object, consents, r1);
|
|
env0_7 = object;
|
|
env0_5 = true;
|
|
}, SET_CONSENT_REQUIRED: function(a0) {
|
|
env0_8 = a0.consentRequired;
|
|
}, LOGOUT: function() {
|
|
env0_8 = null;
|
|
}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/ConsentStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_44083() { // fn#44083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:148, offset: 0x01168075, size: 94 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_44083_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun44086(a0) { // fn#44086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:373, offset: 0x011680d3, size: 164 bytes, params: 2, frame: 16
|
|
const closure = ConsentStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'hasConsented', value: value_44088}, {key: 'consents', get: get_44089},
|
|
{key: 'fetchedConsents', get: get_44090}, {key: 'receivedConsentsInConnectionOpen', get: get_44091},
|
|
{key: 'getAuthenticationConsentRequired', value: value_44092}]);
|
|
}
|
|
|
|
function CONNECTION_OPEN_44093({consents}) { // fn#44093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:1022, offset: 0x0116819e, size: 55 bytes, params: 2, frame: 13
|
|
var object2;
|
|
if (consents != null) {
|
|
object2 = {};
|
|
copyDataProperties(object2, consents, copyDataProperties(object2, env0_7, undefined));
|
|
}
|
|
}
|
|
|
|
function value_44088(a0) { // fn#44088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:665, offset: 0x01168177, size: 39 bytes, params: 2, frame: 4
|
|
return env1_7[a0] != null && env1_7[a0].consented;
|
|
}
|
|
|