decord/source/modules/skus/utils/getPricesFromServer.tsx

33 lines
925 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4171
2026-07-24 07:16:23 +00:00
// Function ID: 35398
2026-07-20 16:05:17 +00:00
// Name: getPricesFromServer
2026-07-23 10:11:24 +00:00
// Dependencies: [3777, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 4171 (getPricesFromServer)
import { getPriceFromServer } from "_isNativeReflectConstruct";
const result = require("set").fileFinishedImporting("modules/skus/utils/getPricesFromServer.tsx");
2026-07-20 16:05:17 +00:00
export default function getPricesFromServer(arg0) {
if (null == arg0) {
let reduced = {};
} else {
const _Object = Object;
const entries = Object.entries(arg0);
reduced = entries.reduce((arg0, arg1) => {
let tmp;
let tmp2;
[tmp, tmp2] = arg1;
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { countryCode: tmp2.country_prices.country_code, prices: prices.map((arg0) => outer2_0(arg0, true)) };
prices = tmp2.country_prices.prices;
2026-07-20 16:05:17 +00:00
obj.countryPrices = obj;
obj.paymentSourcePrices = {};
arg0[tmp] = obj;
return arg0;
}, {});
}
return reduced;
};