2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 7773
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 61769
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getPriceString
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [3782, 3777, 5616, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getPriceString
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 7773 (getPriceString)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("formatSingleCurrencyPrice").fileFinishedImporting("modules/premium/premium_group/PremiumGroupUtils.shared.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const getPriceString = function getPriceString(premiumSubscription, arg1) {
|
|
|
|
|
let interval;
|
|
|
|
|
let intervalCount;
|
|
|
|
|
if (null != premiumSubscription) {
|
|
|
|
|
if (premiumSubscription.hasAnyPremiumGroup) {
|
|
|
|
|
const planIdFromItems = premiumSubscription.planIdFromItems;
|
|
|
|
|
if (null == planIdFromItems) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const value = _isNativeReflectConstruct.get(planIdFromItems);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == value) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-07-25 08:10:48 +00:00
|
|
|
const price = require(3777) /* _createForOfIteratorHelperLoose */.getPrice(planIdFromItems);
|
|
|
|
|
const obj2 = require(3777) /* _createForOfIteratorHelperLoose */;
|
2026-07-24 07:16:23 +00:00
|
|
|
const formatPriceResult = require(5616) /* formatSingleCurrencyPrice */.formatPrice(price.amount, price.currency);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp) {
|
|
|
|
|
({ interval, intervalCount } = value);
|
2026-07-24 07:16:23 +00:00
|
|
|
return require(5616) /* formatSingleCurrencyPrice */.formatRate(formatPriceResult, interval, intervalCount);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return formatPriceResult;
|
|
|
|
|
}
|
2026-07-24 07:16:23 +00:00
|
|
|
const obj3 = require(5616) /* formatSingleCurrencyPrice */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
};
|