2026-09-24 10:59:02 +00:00
|
|
|
// Module ID: 5818
|
|
|
|
|
// Function ID: 5819
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getPricesFromServer
|
2026-09-24 10:59:02 +00:00
|
|
|
// Dependencies: [4484, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-24 10:59:02 +00:00
|
|
|
// Module 5818 (getPricesFromServer)
|
|
|
|
|
import SubscriptionPlanRecord from "SubscriptionPlanRecord" /* 4484 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const getPriceFromServer = SubscriptionPlanRecord.getPriceFromServer;
|
|
|
|
|
const result = size.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);
|
2026-09-10 05:38:07 +00:00
|
|
|
reduced = entries.reduce((acc, item) => {
|
|
|
|
|
[tmp, tmp2] = item;
|
|
|
|
|
const obj = { countryPrices: null, paymentSourcePrices: null };
|
|
|
|
|
const obj2 = { countryCode: tmp2.country_prices.country_code, prices: null };
|
|
|
|
|
const prices = tmp2.country_prices.prices;
|
|
|
|
|
obj2.prices = prices.map((item) => closure_1_0(item, true));
|
|
|
|
|
obj.countryPrices = obj2;
|
|
|
|
|
obj.paymentSourcePrices = {};
|
|
|
|
|
acc[tmp] = obj;
|
|
|
|
|
return acc;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, {});
|
|
|
|
|
}
|
|
|
|
|
return reduced;
|
|
|
|
|
};
|