decord/source/modules/phone/PhoneStore.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

51 lines
1.8 KiB
TypeScript

// Module ID: 6883
// Function ID: 6884
// Name: handleSetLocationMetadata
// Dependencies: [4174, 586, 706, 2]
// Module 6883 (handleSetLocationMetadata)
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 586 */;
import dispatcherDefault from "dispatcher" /* 706 */;
import DEFAULT_COUNTRY_CODE_NAME from "DEFAULT_COUNTRY_CODE_NAME" /* 4174 */;
function handleSetLocationMetadata(countryCode) {
countryCode = countryCode.countryCode;
if (null != countryCode) {
let tmp2 = getCountryCodeByAlpha2(countryCode);
if (tmp2 == null) {
tmp2 = getDefaultCountryCode();
}
closure_3 = tmp2;
}
}
const getDefaultCountryCode = DEFAULT_COUNTRY_CODE_NAME.getDefaultCountryCode;
const getCountryCodeByAlpha2 = DEFAULT_COUNTRY_CODE_NAME.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) {
selectedCountryCode = selectedCountryCode.selectedCountryCode;
}
};
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { selectedCountryCode: closure_0 };
};
prototype["getCountryCode"] = function getCountryCode() {
return null != closure_0 ? closure_0 : 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 = set.fileFinishedImporting("modules/phone/PhoneStore.tsx");
export default phoneStore;