/* Metro module 8972; source: modules/phone/PhoneStore.tsx; dependencies: [6, 7, 15, 17, 18, 3837, 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 */ import * as CountryCodeUtilsModule from '../i18n/CountryCodeUtils.tsx'; /* Metro dependency 3837 */ function _fun69949(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:6, offset: 0x01ce9b49, size: 330 bytes, params: 8, frame: 20 const CONNECTION_OPEN_699532 = CONNECTION_OPEN_69953; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = CountryCodeUtilsModule; const getDefaultCountryCode = value.getDefaultCountryCode; const env0_7 = value.getCountryCodeByAlpha2; const env0_8 = getDefaultCountryCode(); const DeviceSettingsStore = (Flux).DeviceSettingsStore; value = _fun69954(DeviceSettingsStore); value.displayName = 'PhoneStore'; value.persistKey = 'PhoneStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {PHONE_SET_COUNTRY_CODE: function(a0) { env0_0 = a0.countryCode; }, CONNECTION_OPEN: CONNECTION_OPEN_699532, SET_LOCATION_METADATA: CONNECTION_OPEN_699532}); (FileImportTrackerModule).fileFinishedImporting('modules/phone/PhoneStore.tsx'); exports.default = value; function _isNativeReflectConstruct_69950() { // fn#69950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:213, offset: 0x01ce9c93, 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_69950_isNativeReflectConstruct = function() { return !!result; })(); } function CONNECTION_OPEN_69953({countryCode}) { // fn#69953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:416, offset: 0x01ce9cf5, size: 49 bytes, params: 2, frame: 13 var value3; if (countryCode != null) { if (getCountryCodeByAlpha2(countryCode) == null) { value3 = getDefaultCountryCode(); } } } function _fun69954(a0) { // fn#69954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:514, offset: 0x01ce9d26, size: 122 bytes, params: 2, frame: 16 const PhoneStore2 = PhoneStore; Inherits(PhoneStore2, a0); return CreateClass(PhoneStore2, [{key: 'initialize', value: value_69956}, {key: 'getUserAgnosticState', value: value_69957}, {key: 'getCountryCode', value: value_69958}]); function PhoneStore() { // fn#69955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:526, offset: 0x01ce9da0, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_1(this, PhoneStore); const value3 = env1_4(PhoneStore); return env1_3(this, _isNativeReflectConstruct_69950() ? global.Reflect.construct(value3, arguments, env1_4(this).constructor) : value3.apply(this, arguments)); } function value_69956(a0) { // fn#69956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:794, offset: 0x01ce9e11, size: 26 bytes, params: 2, frame: 2 var selectedCountryCode; var value; if (a0 != null) { selectedCountryCode = a0.selectedCountryCode; value = environment.__proto__; } } function value_69957() { // fn#69957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:877, offset: 0x01ce9e2b, size: 16 bytes, params: 1, frame: 2 return {selectedCountryCode: env1_0}; } function value_69958() { // fn#69958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9157:948, offset: 0x01ce9e3b, size: 25 bytes, params: 1, frame: 3 return env1_0 ?? env1_8; } } } global.__d(_fun69949, 8972, [6, 7, 15, 17, 18, 3837, 566, 694, 2]) /* metro module 8972, dependencies: [6, 7, 15, 17, 18, 3837, 566, 694, 2] */;