decord/source/modules/billing/utils/StoreCountryUtils.tsx

35 lines
866 B
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1896
// Function ID: 1897
2026-07-20 16:05:17 +00:00
// Name: parseStoreCountry
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: parseStoreCountry
2026-07-29 08:29:29 +00:00
// Module 1896 (parseStoreCountry)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/billing/utils/StoreCountryUtils.tsx");
2026-07-20 16:05:17 +00:00
export const parseStoreCountry = function parseStoreCountry(storeCountry) {
let set_at;
let tmp = storeCountry;
if (null != storeCountry) {
2026-07-29 08:29:29 +00:00
const obj = { country: null, setAt: null, isLocked: null };
({ country: obj[0], set_at } = storeCountry);
if (set_at == null) {
2026-07-20 16:05:17 +00:00
set_at = storeCountry.setAt;
}
2026-07-29 08:29:29 +00:00
if (set_at == null) {
set_at = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = set_at;
let flag = storeCountry.is_locked;
if (flag == null) {
flag = storeCountry.isLocked;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
obj[2] = flag;
2026-07-20 16:05:17 +00:00
tmp = obj;
}
return tmp;
};