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

42 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7309
// Function ID: 7310
2026-07-20 16:05:17 +00:00
// Name: useCreateSubscriptionParams
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 7310, 514, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 7309 (useCreateSubscriptionParams)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
const require = arg1;
const result = require("v1").fileFinishedImporting("modules/billing/native/subscription/useCreateSubscriptionParams.tsx");
2026-07-20 16:05:17 +00:00
export default function useCreateSubscriptionParams(arg0, arg1) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const importDefault = arg1;
2026-08-05 07:35:12 +00:00
const tmp = importDefault(7310)();
2026-07-20 16:05:17 +00:00
const 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-07-20 16:05:17 +00:00
if (null != tmp) {
2026-07-29 08:29:29 +00:00
let obj = { requestIdentifier: null, items: null, countryCode: null, currency: null };
obj[0] = callback(tmp[2]).v4();
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;
const obj2 = callback(tmp[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);
};