decord/source/modules/billing/native/subscription/useCreateSubscriptionParams.tsx
2026-08-31 15:47:37 +00:00

42 lines
1.3 KiB
TypeScript

// Module ID: 10542
// Function ID: 10543
// Name: useCreateSubscriptionParams
// Dependencies: [19, 10543, 514, 2]
// Exports: default
// Module 10542 (useCreateSubscriptionParams)
import useToggleOnIAPSuccessDefault from "useToggleOnIAPSuccess" /* 10543 */;
import closure_3 from "noop" /* 19 */;
const require = arg1;
const result = require("set").fileFinishedImporting("modules/billing/native/subscription/useCreateSubscriptionParams.tsx");
export default function useCreateSubscriptionParams(arg0, arg1) {
closure_0 = arg0;
importDefault = arg1;
const tmp = useToggleOnIAPSuccessDefault();
dependencyMap = tmp;
let items = [arg0, arg1, tmp];
return React.useMemo(() => {
let tmp2 = null;
if (null != callback) {
tmp2 = null;
if (null != closure_1) {
tmp2 = null;
if (null != table) {
let obj = { requestIdentifier: null, items: null, countryCode: null, currency: null };
obj[0] = callback(table[2]).v4();
obj = { planId: null, quantity: 1 };
obj[0] = tmp.id;
const items = [obj];
obj[1] = items;
({ country: obj[2], currency: obj[3] } = tmp3);
tmp2 = obj;
const obj2 = callback(table[2]);
}
}
tmp3 = closure_1;
}
return tmp2;
}, items);
};