Files
2026-07-28 01:06:53 +03:00

115 lines
5.6 KiB
TypeScript

/* Metro module 5078; source: stores/ConsentStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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 * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
let env0_7 = {};
const Store = (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;
}});
(FileImportTrackerModule).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 ConsentStore2 = ConsentStore;
Inherits(ConsentStore2, a0);
return CreateClass(ConsentStore2, [{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 ConsentStore() { // fn#44087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5256:385, offset: 0x00fbdfd6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ConsentStore);
const value3 = env1_3(ConsentStore);
return env1_2(this, _isNativeReflectConstruct_44083() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
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;
}
function get_44089() { // fn#44089, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function get_44090() { // fn#44090, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function get_44091() { // fn#44091, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
function value_44092() { // fn#44092, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
}
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 object;
if (consents != null) {
object = {};
copyDataProperties(object, consents, copyDataProperties(object, env0_7, undefined));
}
}
}
global.__d(_fun44082, 5078, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 5078, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;