2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 6548
|
|
|
|
|
// Function ID: 6549
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: PhoneStore
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [5060, 504, 573, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 6548 (PhoneStore)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initializeDefault from "initialize" /* 504 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import CountryCodeUtils from "CountryCodeUtils" /* 5060 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
function handleSetLocationMetadata(countryCode) {
|
|
|
|
|
countryCode = countryCode.countryCode;
|
|
|
|
|
if (null != countryCode) {
|
|
|
|
|
let tmp2 = getCountryCodeByAlpha2(countryCode);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp2 == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = getDefaultCountryCode();
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_3 = tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const getDefaultCountryCode = CountryCodeUtils.getDefaultCountryCode;
|
|
|
|
|
const getCountryCodeByAlpha2 = CountryCodeUtils.getCountryCodeByAlpha2;
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_3 = getDefaultCountryCode();
|
2026-08-24 06:08:38 +00:00
|
|
|
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
class PhoneStore extends DeviceSettingsStore {
|
|
|
|
|
}
|
|
|
|
|
const prototype = PhoneStore.prototype;
|
|
|
|
|
prototype["initialize"] = function initialize(selectedCountryCode) {
|
|
|
|
|
if (null != selectedCountryCode) {
|
2026-09-10 05:38:07 +00:00
|
|
|
countryCode = selectedCountryCode.selectedCountryCode;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return { selectedCountryCode: countryCode };
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["getCountryCode"] = function getCountryCode() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return null != countryCode ? countryCode : closure_3;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
PhoneStore.displayName = "PhoneStore";
|
|
|
|
|
PhoneStore.persistKey = "PhoneStore";
|
2026-09-10 05:38:07 +00:00
|
|
|
const phoneStore = new PhoneStore(DispatcherDefault, {
|
2026-07-20 16:05:17 +00:00
|
|
|
PHONE_SET_COUNTRY_CODE: function handleSetCountryCode(countryCode) {
|
|
|
|
|
countryCode = countryCode.countryCode;
|
|
|
|
|
},
|
|
|
|
|
CONNECTION_OPEN: handleSetLocationMetadata,
|
|
|
|
|
SET_LOCATION_METADATA: handleSetLocationMetadata
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/phone/PhoneStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default phoneStore;
|