decord/source/modules/billing/utils/StoreCountryUtils.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

35 lines
894 B
TypeScript

// Module ID: 1396
// Function ID: 1397
// Name: StoreCountryUtils
// Dependencies: [2]
// Exports: parseStoreCountry
// Module 1396 (StoreCountryUtils)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/billing/utils/StoreCountryUtils.tsx");
export const parseStoreCountry = function parseStoreCountry(storeCountry) {
let tmp = storeCountry;
if (null != storeCountry) {
const obj = { country: null, setAt: null, isLocked: null };
({ country: obj.country, set_at } = storeCountry);
if (set_at == null) {
set_at = storeCountry.setAt;
}
if (set_at == null) {
set_at = null;
}
obj.setAt = set_at;
let flag = storeCountry.is_locked;
if (flag == null) {
flag = storeCountry.isLocked;
}
if (flag == null) {
flag = false;
}
obj.isLocked = flag;
tmp = obj;
}
return tmp;
};