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

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 7198
2026-07-24 07:16:23 +00:00
// Function ID: 57979
2026-07-20 16:05:17 +00:00
// Name: useCreateSubscriptionParams
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 7199, 491, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 7198 (useCreateSubscriptionParams)
import result from "result";
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-07-23 10:11:24 +00:00
let tmp = importDefault(7199)();
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(() => {
let tmp = null;
2026-07-23 10:11:24 +00:00
if (null != lib) {
2026-07-20 16:05:17 +00:00
tmp = null;
2026-07-23 10:11:24 +00:00
if (null != closure_1) {
2026-07-20 16:05:17 +00:00
tmp = null;
if (null != tmp) {
2026-07-23 10:11:24 +00:00
let obj = { requestIdentifier: lib(tmp[2]).v4() };
obj = { planId: lib.id, quantity: 1 };
2026-07-20 16:05:17 +00:00
const items = [obj];
obj.items = items;
2026-07-23 10:11:24 +00:00
({ country: obj.countryCode, currency: obj.currency } = closure_1);
2026-07-20 16:05:17 +00:00
tmp = obj;
2026-07-23 10:11:24 +00:00
const obj2 = lib(tmp[2]);
2026-07-20 16:05:17 +00:00
}
}
}
return tmp;
}, items);
};