Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
35 lines
894 B
TypeScript
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;
|
|
};
|