34 lines
866 B
TypeScript
34 lines
866 B
TypeScript
// Module ID: 1896
|
|
// Function ID: 1897
|
|
// Name: parseStoreCountry
|
|
// Dependencies: [2]
|
|
// Exports: parseStoreCountry
|
|
|
|
// Module 1896 (parseStoreCountry)
|
|
const result = require("set").fileFinishedImporting("modules/billing/utils/StoreCountryUtils.tsx");
|
|
|
|
export const parseStoreCountry = function parseStoreCountry(storeCountry) {
|
|
let set_at;
|
|
let tmp = storeCountry;
|
|
if (null != storeCountry) {
|
|
const obj = { country: null, setAt: null, isLocked: null };
|
|
({ country: obj[0], set_at } = storeCountry);
|
|
if (set_at == null) {
|
|
set_at = storeCountry.setAt;
|
|
}
|
|
if (set_at == null) {
|
|
set_at = null;
|
|
}
|
|
obj[1] = set_at;
|
|
let flag = storeCountry.is_locked;
|
|
if (flag == null) {
|
|
flag = storeCountry.isLocked;
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
obj[2] = flag;
|
|
tmp = obj;
|
|
}
|
|
return tmp;
|
|
};
|