2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 6622
|
|
|
|
|
// Function ID: 6623
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: PhoneStore
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [5909, 504, 584, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 6622 (PhoneStore)
|
2026-10-03 08:58:59 +00:00
|
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
|
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import CountryCodeUtils from "CountryCodeUtils" /* 5909 */;
|
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-10-03 08:58:59 +00:00
|
|
|
const DeviceSettingsStore = get_initializedDefault.DeviceSettingsStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
class PhoneStore extends DeviceSettingsStore {
|
2026-10-03 08:58:59 +00:00
|
|
|
initialize(selectedCountryCode) {
|
|
|
|
|
if (null != selectedCountryCode) {
|
|
|
|
|
countryCode = selectedCountryCode.selectedCountryCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
getUserAgnosticState() {
|
|
|
|
|
return { selectedCountryCode: countryCode };
|
|
|
|
|
}
|
|
|
|
|
getCountryCode() {
|
|
|
|
|
return null != countryCode ? countryCode : closure_3;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
const prototype = PhoneStore.prototype;
|
|
|
|
|
PhoneStore.displayName = "PhoneStore";
|
|
|
|
|
PhoneStore.persistKey = "PhoneStore";
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = {
|
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-10-03 08:58:59 +00:00
|
|
|
};
|
|
|
|
|
const phoneStore = new PhoneStore(DispatcherDefault, obj);
|
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;
|