// Module ID: 3949 // Function ID: 3950 // Name: handlePaymentSourceCreateEnd // Dependencies: [676, 589, 709, 2] // Module 3949 (handlePaymentSourceCreateEnd) import { FallbackCurrencyCountry } from "ME"; import { Store } from "initialize"; function handlePaymentSourceCreateEnd() { let c6 = false; } function handlePaymentSourcesFetchEnd() { let c0; } function handleSubscriptionFetchEnd() { let c9 = false; } function handleSubscriptionUpdateStart() { let c10 = true; } function handleSubscriptionUpdateEnd() { let c10 = false; } let c6 = false; let c7 = false; let c8 = false; let c9 = false; let c10 = false; let c11 = null; let c12 = null; let c13 = false; let c14 = false; class BillingInfoStore extends Store { } const prototype = BillingInfoStore.prototype; Object.defineProperty(prototype, "isBusy", { get: function isBusy() { let tmp = c6; if (!c6) { tmp = c7; } if (!tmp) { tmp = c10; } if (!tmp) { tmp = c8; } return tmp; }, set: undefined }); Object.defineProperty(prototype, "isUpdatingPaymentSource", { get: function isUpdatingPaymentSource() { return c7; }, set: undefined }); Object.defineProperty(prototype, "isRemovingPaymentSource", { get: function isRemovingPaymentSource() { return c8; }, set: undefined }); Object.defineProperty(prototype, "isSyncing", { get: function isSyncing() { return this.isPaymentSourceFetching || this.isSubscriptionFetching; }, set: undefined }); Object.defineProperty(prototype, "isSubscriptionFetching", { get: function isSubscriptionFetching() { return c9; }, set: undefined }); Object.defineProperty(prototype, "isPaymentSourceFetching", { get: function isPaymentSourceFetching() { return null != closure_0; }, set: undefined }); Object.defineProperty(prototype, "editSourceError", { get: function editSourceError() { return c11; }, set: undefined }); Object.defineProperty(prototype, "removeSourceError", { get: function removeSourceError() { return c12; }, set: undefined }); Object.defineProperty(prototype, "ipCountryCodeLoaded", { get: function ipCountryCodeLoaded() { return undefined !== closure_1; }, set: undefined }); Object.defineProperty(prototype, "ipCountryCode", { get: function ipCountryCode() { return closure_1; }, set: undefined }); Object.defineProperty(prototype, "ipCountryCodeRequest", { get: function ipCountryCodeRequest() { return closure_2; }, set: undefined }); Object.defineProperty(prototype, "ipLocationLoaded", { get: function ipLocationLoaded() { return undefined !== closure_3; }, set: undefined }); Object.defineProperty(prototype, "ipLocation", { get: function ipLocation() { return closure_3; }, set: undefined }); Object.defineProperty(prototype, "ipLocationRequest", { get: function ipLocationRequest() { return closure_4; }, set: undefined }); Object.defineProperty(prototype, "ipLocationHasError", { get: function ipLocationHasError() { return c14; }, set: undefined }); Object.defineProperty(prototype, "ipCountryCodeWithFallback", { get: function ipCountryCodeWithFallback() { let tmp = closure_1; if (closure_1 == null) { tmp = FallbackCurrencyCountry; } return tmp; }, set: undefined }); Object.defineProperty(prototype, "ipCountryCodeHasError", { get: function ipCountryCodeHasError() { return c13; }, set: undefined }); Object.defineProperty(prototype, "paymentSourcesFetchRequest", { get: function paymentSourcesFetchRequest() { return closure_0; }, set: undefined }); BillingInfoStore.displayName = "BillingInfoStore"; const billingInfoStore = new BillingInfoStore(require("dispatcher"), { BILLING_PAYMENT_SOURCE_CREATE_START: function handlePaymentSourceCreateStart() { let c6 = true; }, BILLING_PAYMENT_SOURCE_CREATE_SUCCESS: handlePaymentSourceCreateEnd, BILLING_PAYMENT_SOURCE_CREATE_FAIL: handlePaymentSourceCreateEnd, STRIPE_TOKEN_FAILURE: handlePaymentSourceCreateEnd, BILLING_PAYMENT_SOURCE_REMOVE_START: function handlePaymentSourceRemoveStart() { let c8 = true; }, BILLING_PAYMENT_SOURCE_REMOVE_SUCCESS: function handlePaymentSourceRemoveSuccess() { let c8 = false; }, BILLING_PAYMENT_SOURCE_REMOVE_FAIL: function handlePaymentSourceRemoveFail(error) { let c8 = false; error = error.error; }, BILLING_PAYMENT_SOURCE_REMOVE_CLEAR_ERROR: function handleClearRemoveError() { let c12 = null; }, BILLING_PAYMENT_SOURCE_UPDATE_START: function handlePaymentSourceUpdateStart() { let c7 = true; }, BILLING_PAYMENT_SOURCE_UPDATE_SUCCESS: function handlePaymentSourceUpdateSuccess() { let c7 = false; }, BILLING_PAYMENT_SOURCE_UPDATE_FAIL: function handlePaymentSourceUpdateFail(error) { let c7 = false; error = error.error; }, BILLING_PAYMENT_SOURCE_UPDATE_CLEAR_ERROR: function handleClearUpdateError() { let c11 = null; }, BILLING_PAYMENT_SOURCES_FETCH_START: function handlePaymentSourcesFetchStart(request) { request = request.request; }, BILLING_PAYMENT_SOURCES_FETCH_SUCCESS: handlePaymentSourcesFetchEnd, BILLING_PAYMENT_SOURCES_FETCH_FAIL: handlePaymentSourcesFetchEnd, BILLING_SUBSCRIPTION_FETCH_START: function handleSubscriptionFetchStart() { let c9 = true; }, BILLING_SUBSCRIPTION_FETCH_SUCCESS: handleSubscriptionFetchEnd, BILLING_SUBSCRIPTION_FETCH_FAIL: handleSubscriptionFetchEnd, BILLING_SUBSCRIPTION_UPDATE_START: handleSubscriptionUpdateStart, BILLING_SUBSCRIPTION_CANCEL_START: handleSubscriptionUpdateStart, BILLING_SUBSCRIPTION_UPDATE_SUCCESS: handleSubscriptionUpdateEnd, BILLING_SUBSCRIPTION_UPDATE_FAIL: handleSubscriptionUpdateEnd, BILLING_SUBSCRIPTION_CANCEL_FAIL: handleSubscriptionUpdateEnd, BILLING_SUBSCRIPTION_CANCEL_SUCCESS: handleSubscriptionUpdateEnd, BILLING_IP_COUNTRY_CODE_FETCH_START: function handleIpCountryCodeFetchStart(request) { request = request.request; }, BILLING_SET_IP_COUNTRY_CODE: function handleSetIpCountryCode(countryCode) { countryCode = countryCode.countryCode; }, BILLING_IP_COUNTRY_CODE_FAILURE: function handleIpCountryCodeFailure() { let c1 = null; let c13 = true; }, BILLING_IP_LOCATION_FETCH_START: function handleIpLocationFetchStart(request) { request = request.request; }, BILLING_SET_IP_LOCATION: function handleSetIpLocation(location) { location = location.location; }, BILLING_IP_LOCATION_FAILURE: function handleIpLocationFailure() { let c3 = null; let c14 = true; }, LOGOUT: function handleLogout() { let c0; let c2; let c1; let c13 = false; let c3; let c14 = false; let c4; let c12 = null; let c11 = null; }, CONNECTION_OPEN: function handleConnectionOpen(countryCode) { countryCode = countryCode.countryCode; } }); const result = require("dispatcher").fileFinishedImporting("stores/billing/BillingInfoStore.tsx"); export default billingInfoStore;