decord/source/modules/billing/actions/StripeActionCreators.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

178 lines
5.1 KiB
TypeScript

// Module ID: 4934
// Function ID: 4935
// Name: StripeActionCreators
// Dependencies: [5, 1074, 1272, 2]
// Exports: createSetupIntentForPaymentElements, createStripeSetupIntent
// Module 4934 (StripeActionCreators)
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
const require = fn;
let closure_4 = async function _createStripeSetupIntent(arg0, value) {
if (c4 === 2) {
c4 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c4 = 2;
if (0 === c3) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj3 = { value, done: true };
return obj3;
} else {
closure_2 = tmp5;
closure_1 = tmp2;
closure_129_0 = undefined;
let obj4 = closure_0;
if (closure_0 === undefined) {
obj4 = {};
}
closure_129_0 = obj4;
c3 = 1;
c4 = 1;
return { value: "PX_16", done: true };
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj5 = { value, done: true };
return obj5;
} else {
const HTTP = closure_130_0(closure_130_1[2]).HTTP;
const obj6 = { url: closure_130_3.BILLING_STRIPE_SETUP_INTENT_SECRET, oldFormErrors: true, rejectWithError: true };
const merged = Object.assign(closure_129_0);
c3 = 2;
c4 = 1;
const obj7 = { value: HTTP.post(obj6), done: false };
return obj7;
}
} else if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj8 = { value, done: true };
return obj8;
} else {
c4 = 3;
const obj = { value: value.body, done: true };
return obj;
}
} catch (tmp14) {
c4 = tmp;
throw tmp14;
}
}
};
let closure_5 = async function _createSetupIntentForPaymentElements(arg0, value) {
if (c4 === 2) {
c4 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c4 = 2;
if (0 === c3) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj3 = { value, done: true };
return obj3;
} else {
closure_2 = tmp5;
closure_1 = tmp2;
closure_129_0 = undefined;
let obj4 = closure_0;
if (closure_0 === undefined) {
obj4 = {};
}
closure_129_0 = obj4;
c3 = 1;
c4 = 1;
return { value: "PX_16", done: true };
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj5 = { value, done: true };
return obj5;
} else {
const HTTP = closure_130_0(closure_130_1[2]).HTTP;
const obj6 = { url: closure_130_3.BILLING_STRIPE_SETUP_INTENT_SECRET_FOR_PAYMENT_ELEMENTS, oldFormErrors: true, rejectWithError: true, failImmediatelyWhenRateLimited: true };
const merged = Object.assign(closure_129_0);
c3 = 2;
c4 = 1;
const obj7 = { value: HTTP.post(obj6), done: false };
return obj7;
}
} else if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj8 = { value, done: true };
return obj8;
} else {
c4 = 3;
const obj = { value: value.body, done: true };
return obj;
}
} catch (tmp14) {
c4 = tmp;
throw tmp14;
}
}
};
const Endpoints = fn(1074).Endpoints;
const size = fn(2);
const result = size.fileFinishedImporting("modules/billing/actions/StripeActionCreators.tsx");
export const createStripeSetupIntent = function createStripeSetupIntent() {
const self = this;
const apply = closure_4.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
export const createSetupIntentForPaymentElements = function createSetupIntentForPaymentElements() {
const self = this;
const apply = closure_5.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};