Files
discord-decomp/errors/StripeError.tsx
T
2026-11-01 12:12:55 +02:00

30 lines
962 B
TypeScript

// Metro module 4090 (f4091).
import BillingError from "./BillingError";
import { $callWithNewTarget } from "../_hermes/prelude";
class StripeError extends BillingError {
constructor({ error }) {
let r14;
if (error.param != null) {
const r16 = new.target;
const prototypeOf2 = Object.getPrototypeOf(StripeError);
const body = {};
body[error.param] = [error.message];
const r21 = {
body
};
const r22 = Object.create(r16.prototype);
const r25 = $callWithNewTarget(prototypeOf2, r22, r16, r21);
r14 = r25 instanceof Object ? r25 : r22;
} else {
const r5 = new.target;
const prototypeOf = Object.getPrototypeOf(StripeError);
const message = error.message;
const r3 = Object.create(r5.prototype);
const r13 = $callWithNewTarget(prototypeOf, r3, r5, message);
r14 = r13 instanceof Object ? r13 : r3;
}
return r14;
}
}
export default StripeError;