2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 7654
|
|
|
|
|
// Function ID: 7655
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCheckoutPlanPriceString
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 7433, 7416, 500, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useCheckoutPlanPriceString
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 7654 (useCheckoutPlanPriceString)
|
|
|
|
|
import closure_2 from "noop" /* 19 */;
|
|
|
|
|
import { useNativeCheckoutStore } from "context" /* 7433 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/premium/native/hooks/useCheckoutPlanPriceString.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-21 22:01:30 +00:00
|
|
|
export const useCheckoutPlanPriceString = function useCheckoutPlanPriceString(productId, first) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = productId;
|
2026-07-20 16:05:17 +00:00
|
|
|
let priceString;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (first != null) {
|
2026-07-21 22:01:30 +00:00
|
|
|
priceString = first.priceString;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (priceString == null) {
|
|
|
|
|
priceString = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp3 = useNativeCheckoutStore((getCheckoutContextRecord) => getCheckoutContextRecord.getCheckoutContextRecord());
|
2026-08-24 06:08:38 +00:00
|
|
|
dependencyMap = tmp3;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [tmp3, productId];
|
2026-07-20 16:05:17 +00:00
|
|
|
const memo = React.useMemo(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (null == table) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
const availablePlanForItems = obj.getAvailablePlanForItems(productId(table[2]).getSubscriptionItemsForProduct(productId));
|
2026-07-20 16:05:17 +00:00
|
|
|
let priceString = null;
|
|
|
|
|
if (null != availablePlanForItems) {
|
|
|
|
|
priceString = availablePlanForItems.getPriceString();
|
|
|
|
|
}
|
|
|
|
|
return priceString;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = table;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp2 = useNativeCheckoutStore((orderRequired) => orderRequired.orderRequired);
|
|
|
|
|
let tmp5 = priceString;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (obj.isIOS()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp5 = priceString;
|
|
|
|
|
if (false !== tmp2) {
|
|
|
|
|
tmp5 = memo;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp5;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|