decord/source/stores/PremiumPaymentModalStore.tsx

76 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 4490
// Function ID: 4491
2026-07-29 08:29:29 +00:00
// Name: handleSubscribeFailure
2026-08-05 07:35:12 +00:00
// Dependencies: [4154, 589, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 4490 (handleSubscribeFailure)
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function handleSubscribeFailure(error) {
error = error.error;
}
function handleClearError() {
2026-07-29 08:29:29 +00:00
let c2 = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c2 = null;
let c3 = null;
let c4 = null;
class PremiumPaymentModalStore extends Store {
}
const prototype = PremiumPaymentModalStore.prototype;
Object.defineProperty(prototype, "paymentError", {
get: function paymentError() {
return c2;
},
set: undefined
});
prototype["getGiftCode"] = function getGiftCode(arg0) {
let tmp = null;
if (arg0 === c4) {
tmp = c3;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
};
PremiumPaymentModalStore.displayName = "PremiumPaymentModalStore";
const premiumPaymentModalStore = new PremiumPaymentModalStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
PREMIUM_PAYMENT_SUBSCRIBE_FAIL: handleSubscribeFailure,
PREMIUM_PAYMENT_UPDATE_FAIL: handleSubscribeFailure,
PREMIUM_PAYMENT_SUBSCRIBE_SUCCESS: function handleSubscribeSuccess() {
2026-07-29 08:29:29 +00:00
let c2 = null;
2026-07-20 16:05:17 +00:00
},
PREMIUM_PAYMENT_UPDATE_SUCCESS: handleClearError,
PREMIUM_PAYMENT_ERROR_CLEAR: handleClearError,
BRAINTREE_TOKENIZE_PAYPAL_FAIL: function handlePayPalTokenizeFailure(message) {
2026-08-05 07:35:12 +00:00
const billingError = new require(4154) /* V6OrEarlierAPIError */.BillingError(message.message);
2026-07-20 16:05:17 +00:00
},
BRAINTREE_TOKENIZE_VENMO_FAIL: function handleVenmoTokenizeFailure(message) {
2026-08-05 07:35:12 +00:00
const billingError = new require(4154) /* V6OrEarlierAPIError */.BillingError(message.message);
2026-07-20 16:05:17 +00:00
},
SKU_PURCHASE_SUCCESS: function handleSKUPurchaseSuccess(arg0) {
2026-07-29 08:29:29 +00:00
let c3;
let c4;
({ giftCode: c3, skuId: c4 } = arg0);
2026-07-20 16:05:17 +00:00
},
SKU_PURCHASE_FAIL: function handleSKUPurchaseFail(error) {
error = error.error;
},
SKU_PURCHASE_AWAIT_CONFIRMATION: function handleSKUPurchaseAwaitConfirmation(isGift) {
if (isGift.isGift) {
const skuId = isGift.skuId;
}
},
GIFT_CODE_CREATE: function handleGiftCodeCreate(giftCode) {
giftCode = giftCode.giftCode;
if (0 === giftCode.uses) {
2026-07-29 08:29:29 +00:00
if (giftCode.sku_id === c4) {
2026-07-20 16:05:17 +00:00
const code = giftCode.code;
}
}
return false;
}
});
2026-07-29 08:29:29 +00:00
const result = require("dispatcher").fileFinishedImporting("stores/PremiumPaymentModalStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default premiumPaymentModalStore;