decord/beta/source/modules/phone/PhoneStore.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

51 lines
1.8 KiB
TypeScript

// Module ID: 6362
// Function ID: 6363
// Name: PhoneStore
// Dependencies: [5051, 504, 573, 2]
// Module 6362 (PhoneStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import CountryCodeUtils from "CountryCodeUtils" /* 5051 */;
import size from "module_2" /* 2 */;
function handleSetLocationMetadata(countryCode) {
countryCode = countryCode.countryCode;
if (null != countryCode) {
let tmp2 = getCountryCodeByAlpha2(countryCode);
if (tmp2 == null) {
tmp2 = getDefaultCountryCode();
}
closure_3 = tmp2;
}
}
const getDefaultCountryCode = CountryCodeUtils.getDefaultCountryCode;
const getCountryCodeByAlpha2 = CountryCodeUtils.getCountryCodeByAlpha2;
let closure_3 = getDefaultCountryCode();
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
class PhoneStore extends DeviceSettingsStore {
}
const prototype = PhoneStore.prototype;
prototype["initialize"] = function initialize(selectedCountryCode) {
if (null != selectedCountryCode) {
countryCode = selectedCountryCode.selectedCountryCode;
}
};
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { selectedCountryCode: countryCode };
};
prototype["getCountryCode"] = function getCountryCode() {
return null != countryCode ? countryCode : closure_3;
};
PhoneStore.displayName = "PhoneStore";
PhoneStore.persistKey = "PhoneStore";
const phoneStore = new PhoneStore(DispatcherDefault, {
PHONE_SET_COUNTRY_CODE: function handleSetCountryCode(countryCode) {
countryCode = countryCode.countryCode;
},
CONNECTION_OPEN: handleSetLocationMetadata,
SET_LOCATION_METADATA: handleSetLocationMetadata
});
const result = size.fileFinishedImporting("modules/phone/PhoneStore.tsx");
export default phoneStore;