decord/source/modules/billing/native/subscription/useCreateSubscriptionParams.tsx

43 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7738
// Function ID: 7739
2026-07-20 16:05:17 +00:00
// Name: useCreateSubscriptionParams
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 7739, 514, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 7738 (useCreateSubscriptionParams)
import useToggleOnIAPSuccessDefault from "useToggleOnIAPSuccess" /* 7739 */;
import closure_3 from "noop" /* 19 */;
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/billing/native/subscription/useCreateSubscriptionParams.tsx");
2026-07-20 16:05:17 +00:00
export default function useCreateSubscriptionParams(arg0, arg1) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
importDefault = arg1;
const tmp = useToggleOnIAPSuccessDefault();
dependencyMap = tmp;
2026-07-23 10:11:24 +00:00
let items = [arg0, arg1, tmp];
2026-07-20 16:05:17 +00:00
return React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2 = null;
if (null != callback) {
tmp2 = null;
2026-07-23 10:11:24 +00:00
if (null != closure_1) {
2026-07-29 08:29:29 +00:00
tmp2 = null;
2026-08-24 06:08:38 +00:00
if (null != table) {
2026-07-29 08:29:29 +00:00
let obj = { requestIdentifier: null, items: null, countryCode: null, currency: null };
2026-08-24 06:08:38 +00:00
obj[0] = callback(table[2]).v4();
2026-07-29 08:29:29 +00:00
obj = { planId: null, quantity: 1 };
obj[0] = tmp.id;
2026-07-20 16:05:17 +00:00
const items = [obj];
2026-07-29 08:29:29 +00:00
obj[1] = items;
({ country: obj[2], currency: obj[3] } = tmp3);
tmp2 = obj;
2026-08-24 06:08:38 +00:00
const obj2 = callback(table[2]);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
tmp3 = closure_1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items);
};