@solvimon/solvimon-web 0.1.0-alpha.26 → 0.1.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -27
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +17 -19
- package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +233 -253
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +31 -36
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +73 -75
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -297
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +65 -75
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +124 -90
- package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -63
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -65
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-CLfzTbbX.mjs → de-DE-BW8dMvhW.mjs} +87 -19
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-DJTwftJv.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-Cym1UvvK.mjs → it-IT-Byg06KWc.mjs} +87 -19
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-x3zQqzZ7.mjs} +93 -25
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +17 -18
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-CV85OV8V.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +35 -59
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs +0 -223
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js +0 -1
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-Bm6MCMAL.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
- package/dist/Button.vue.es-qGvnOKnK.js +0 -1
- package/dist/ChargeOnDemandModal-DIQaGnRs.js +0 -1
- package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
- package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
- package/dist/Chip.vue.es-D60gTbfe.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-C7KI8Gz6.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-bFUx81Ig.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs +0 -2701
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-BF3gnr4e.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs +0 -335
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js +0 -1
- package/dist/ErrorNotification.vue.es-BX9dHEc-.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/IconButton.vue.es-Bwdfu-jm.js +0 -1
- package/dist/IconTitle.vue.es-Cei98MBw.js +0 -1
- package/dist/Input.vue.es-B47l_feL.js +0 -1
- package/dist/Input.vue.es-D9IjIWc-.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs +0 -41
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js +0 -1
- package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +0 -1
- package/dist/Modal.vue.es-8LN4gBh0.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js +0 -1
- package/dist/PaymentHistoryBlock-Ds93gNvh.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js +0 -1
- package/dist/PaymentIntegrationForm-B_Db4DG1.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
- package/dist/PaymentIntegrationFormStripe-BIiMCWlV.mjs +0 -587
- package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +0 -102
- package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +0 -1
- package/dist/PaymentMethodForm-1d0YIGOu.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js +0 -1
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
- package/dist/PlanCustomizationEditor-CpZeilm5.mjs +0 -694
- package/dist/PricingGroupRangeInput.vue.es-DZSJ5Mz0.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +0 -1
- package/dist/RadioGroupExtended.vue.es-Dt6LH9Yh.js +0 -1
- package/dist/Section.vue.es-zVXBHAL6.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
- package/dist/StepInput.vue.es-mAnuCuDQ.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +0 -1
- package/dist/SubscriptionSchedules-Cm5Dt-1H.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs +0 -91
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js +0 -1
- package/dist/TooltipParagraph.vue.es-Cph6zT31.js +0 -1
- package/dist/TrialChip.vue.es-C_wgHGuN.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-D9YMDvG2.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-C963-LtW.js +0 -1215
- package/dist/customElements-D5DAoHRI.mjs +0 -6633
- package/dist/customer-DKa1B2vp.mjs +0 -31
- package/dist/customer-TE1FnGT0.js +0 -1
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DaBBl-Ak.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-BNevqm0M.js +0 -1
- package/dist/en-US-D6SGRAch.mjs +0 -325
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-ClqTWYF9.js +0 -1
- package/dist/it-IT-BkPbTueL.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-jIfAVGv0.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-AL2U_byg.js +0 -1
- package/dist/paymentMethods-CWzJhcWK.mjs +0 -77
- package/dist/payments-BmiHMlQt.js +0 -1
- package/dist/payments-aXyfylwk.mjs +0 -45
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-BD4GIP_F.mjs +0 -32
- package/dist/pricingPlanSchedules-BfsMSvN0.js +0 -1
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-Cm83ckfl.js +0 -1
- package/dist/subscriptions-cnR5fnf7.mjs +0 -55
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-CHkVQMaE.js +0 -1
- package/dist/useActionDispatchProvider-DDYqIh3r.mjs +0 -11
- package/dist/useCustomer-DGYtowRy.js +0 -1
- package/dist/useCustomerFormLabels-CcnkJLcB.mjs +0 -968
- package/dist/useCustomerFormLabels-DAZziqYt.js +0 -1
- package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
- package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BEK-7msA.mjs +0 -38
- package/dist/useInvoiceData-CQRn8l9C.js +0 -1
- package/dist/useInvoicesList-BQkKyyXa.js +0 -1
- package/dist/useInvoicesList-C4I118KM.mjs +0 -500
- package/dist/useLoadInitialData-CrKnBZs_.js +0 -1
- package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
- package/dist/usePaymentMethodOptions-Ciifjo6c.mjs +0 -39
- package/dist/usePaymentMethodOptions-Cqe92ZBn.js +0 -1
- package/dist/usePaymentMethods-BKwrl82-.js +0 -1
- package/dist/usePayments-Bauj16B-.js +0 -1
- package/dist/usePortal-DSLImEfr.js +0 -1
- package/dist/usePortal-H8Tv2TnZ.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BiYNJT2e.js +0 -1
- package/dist/useSubscription-DqnxWNKg.mjs +0 -210
- package/dist/useTimePeriod.es-D2aiyfd-.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs}
RENAMED
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { a as
|
|
1
|
+
import { computed as p, ref as N, defineComponent as F, openBlock as c, createBlock as g, unref as a, withCtx as u, createElementVNode as W, createVNode as S, createTextVNode as _, toDisplayString as y, createCommentVNode as v, createElementBlock as j, Fragment as Q, renderList as Z, watch as Y, defineAsyncComponent as H, toRef as ie, renderSlot as se, mergeProps as oe } from "vue";
|
|
2
|
+
import { _ as re } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
3
|
+
import { _ as z } from "./Button.vue.es-rh6mITmN.mjs";
|
|
4
|
+
import { _ as ee } from "./ErrorNotification.vue.es-CKlt4hr2.mjs";
|
|
5
|
+
import { a as R, _ as P, d as q, e as le, g as ce, f as de } from "./customElements-Di3zwlEU.mjs";
|
|
6
6
|
import { C as ue } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import { _ as be } from "./
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { u as
|
|
25
|
-
import {
|
|
26
|
-
import { u as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { c as Oe } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
31
|
-
import { g as q } from "./getComposedString.es-C__uhJpd.mjs";
|
|
32
|
-
import { g as ne } from "./pricing.es-QYWrKMUJ.mjs";
|
|
33
|
-
import { h as Te } from "./pricingItemConfigs.es-ORxsk_YS.mjs";
|
|
34
|
-
import { a as Be } from "./sessionReference-3h-6FdrC.mjs";
|
|
7
|
+
import { u as te } from "./useActionDispatchProvider-DC_fUykI.mjs";
|
|
8
|
+
import { i as pe, c as me, d as ne, a as ge } from "./subscription-BhxoqwcT.mjs";
|
|
9
|
+
import { c as G } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
10
|
+
import { _ as be, u as fe } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs";
|
|
11
|
+
import { _ as he } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs";
|
|
12
|
+
import { g as ve, _ as _e } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
|
|
13
|
+
import { _ as ye } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
14
|
+
import { _ as V } from "./Section.vue.es-iS8hVGWA.mjs";
|
|
15
|
+
import { a as we, w as Se, h as Ce, u as Ie, g as Me } from "./pricingPlanScheduleOverrides-COr9F8DO.mjs";
|
|
16
|
+
import { f as X, b as De } from "./formatting.es-RclXHhKo.mjs";
|
|
17
|
+
import { _ as Ae } from "./PaymentMethod.vue.es-Cauxx4Xr.mjs";
|
|
18
|
+
import { M as $e } from "./Modal.vue.es-CTNACAst.mjs";
|
|
19
|
+
import { c as Pe } from "./subscriptions-CwogJODR.mjs";
|
|
20
|
+
import { a as Ee } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs";
|
|
21
|
+
import { A as Oe } from "./ApiStatus-CSFKl_ra.mjs";
|
|
22
|
+
import { u as Le } from "./useCustomer-C3kTh7wn.mjs";
|
|
23
|
+
import { u as ke } from "./usePaymentMethods-gvr-rmwE.mjs";
|
|
24
|
+
import { u as xe } from "./useLoadInitialData-4k_Cyqef.mjs";
|
|
25
|
+
import { c as Te } from "./pricingPlanSchedules-BK_o9p6h.mjs";
|
|
26
|
+
import { u as Be } from "./useService-B0OQJmif.mjs";
|
|
27
|
+
import { g as K } from "./getComposedString.es-C__uhJpd.mjs";
|
|
28
|
+
import { g as ae } from "./pricing.es-QYWrKMUJ.mjs";
|
|
29
|
+
import { h as Ue } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
|
|
35
30
|
const Ne = () => {
|
|
36
|
-
const { $t: e } =
|
|
31
|
+
const { $t: e } = R();
|
|
37
32
|
return { getPriceLabel: (t) => {
|
|
38
33
|
if (!t.price)
|
|
39
34
|
return;
|
|
@@ -48,67 +43,65 @@ const Ne = () => {
|
|
|
48
43
|
);
|
|
49
44
|
} };
|
|
50
45
|
};
|
|
51
|
-
function
|
|
46
|
+
function Fe({
|
|
52
47
|
subscription: e
|
|
53
48
|
}) {
|
|
54
|
-
const { dispatchAction: i } =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var v;
|
|
60
|
-
const l = (v = e.value) == null ? void 0 : v.inactive_periods;
|
|
61
|
-
return Array.isArray(l) && l.length > 0;
|
|
62
|
-
}), s = U();
|
|
49
|
+
const { dispatchAction: i } = te(), t = p(
|
|
50
|
+
() => pe(e.value) && !me(e.value, "CANCEL")
|
|
51
|
+
), n = p(
|
|
52
|
+
() => !!ne(e.value)
|
|
53
|
+
), s = N();
|
|
63
54
|
return { isCancellable: t, isRenewable: n, pendingVariant: s, cancel: () => {
|
|
64
55
|
e.value && (s.value = "CANCEL");
|
|
65
56
|
}, renew: () => {
|
|
66
57
|
e.value && (s.value = "RENEW");
|
|
67
58
|
}, dismiss: () => {
|
|
68
59
|
s.value = void 0;
|
|
69
|
-
}, manage: () => {
|
|
60
|
+
}, manage: (b) => {
|
|
70
61
|
e.value && i({
|
|
71
62
|
action: "manage-subscription",
|
|
72
|
-
data: {
|
|
63
|
+
data: {
|
|
64
|
+
subscriptionId: e.value.id,
|
|
65
|
+
...b && { enabledPricingId: b }
|
|
66
|
+
}
|
|
73
67
|
});
|
|
74
68
|
} };
|
|
75
69
|
}
|
|
76
|
-
function
|
|
77
|
-
var n, s, o,
|
|
78
|
-
const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (
|
|
70
|
+
function Re(e) {
|
|
71
|
+
var n, s, o, l, d, r, b;
|
|
72
|
+
const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (d = (l = i == null ? void 0 : i.details) == null ? void 0 : l.bands) == null ? void 0 : d[0];
|
|
79
73
|
return {
|
|
80
74
|
amount: (t == null ? void 0 : t.amount) ?? (t == null ? void 0 : t.fixed_amount),
|
|
81
|
-
billingPeriod: ((
|
|
75
|
+
billingPeriod: ((r = i == null ? void 0 : i.details) == null ? void 0 : r.pricing_period) ?? ((b = i == null ? void 0 : i.details) == null ? void 0 : b.billing_period)
|
|
82
76
|
};
|
|
83
77
|
}
|
|
84
|
-
function
|
|
85
|
-
var n
|
|
78
|
+
function je(e) {
|
|
79
|
+
var n;
|
|
86
80
|
const i = new Set(
|
|
87
|
-
(
|
|
88
|
-
({ pricing_id: c }) => c
|
|
89
|
-
)
|
|
81
|
+
we(e.pricing_plan_schedule ?? {})
|
|
90
82
|
);
|
|
91
|
-
return i.size === 0 ? [] : (((
|
|
92
|
-
(
|
|
83
|
+
return i.size === 0 || !e.pricing_plan_version ? [] : (((n = Se(e).pricing_categories) == null ? void 0 : n.flatMap(
|
|
84
|
+
(s) => s.pricing_groups ?? []
|
|
93
85
|
)) ?? []).flatMap(
|
|
94
|
-
(
|
|
95
|
-
pricingId:
|
|
96
|
-
pricingGroupId:
|
|
97
|
-
groupName:
|
|
86
|
+
(s) => (s.pricings ?? []).filter((o) => i.has(o.id)).map((o) => ({
|
|
87
|
+
pricingId: o.id,
|
|
88
|
+
pricingGroupId: s.id,
|
|
89
|
+
groupName: s.name,
|
|
98
90
|
// A pricing without a name of its own is only identifiable by the choice it belongs to.
|
|
99
|
-
name: ve(
|
|
100
|
-
...
|
|
91
|
+
name: ve(o) || s.name,
|
|
92
|
+
...Re(o)
|
|
101
93
|
}))
|
|
102
94
|
);
|
|
103
95
|
}
|
|
104
|
-
const
|
|
96
|
+
const Ve = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, We = { class: "sv-enabled-pricings-list__item-content grow" }, Ye = /* @__PURE__ */ F({
|
|
105
97
|
__name: "EnabledPricingsListItem",
|
|
106
98
|
props: {
|
|
107
|
-
entry: { type: Object }
|
|
99
|
+
entry: { type: Object },
|
|
100
|
+
canUpgrade: { type: Boolean, default: !0 }
|
|
108
101
|
},
|
|
109
102
|
emits: ["upgrade"],
|
|
110
103
|
setup(e) {
|
|
111
|
-
const i = e, { $t: t } =
|
|
104
|
+
const i = e, { $t: t } = R(), n = p(() => {
|
|
112
105
|
const { amount: s, billingPeriod: o } = i.entry;
|
|
113
106
|
if (s)
|
|
114
107
|
return o ? t(
|
|
@@ -119,82 +112,85 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
119
112
|
},
|
|
120
113
|
{
|
|
121
114
|
amount: X(s),
|
|
122
|
-
period:
|
|
115
|
+
period: De(o, {
|
|
123
116
|
short: !0,
|
|
124
117
|
hideValueForExactPeriods: !0
|
|
125
118
|
})
|
|
126
119
|
}
|
|
127
120
|
) : X(s);
|
|
128
121
|
});
|
|
129
|
-
return (s, o) => (
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
return (s, o) => (c(), g(a(V), { class: "sv-enabled-pricings-list__item" }, {
|
|
123
|
+
default: u(() => [
|
|
124
|
+
W("div", Ve, [
|
|
125
|
+
W("div", We, [
|
|
126
|
+
S(a(P), {
|
|
134
127
|
tag: "span",
|
|
135
128
|
variant: "body-xs",
|
|
136
129
|
color: "subtle",
|
|
137
130
|
class: "sv-enabled-pricings-list__item-group"
|
|
138
131
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
132
|
+
default: u(() => [
|
|
133
|
+
_(y(e.entry.groupName), 1)
|
|
141
134
|
]),
|
|
142
135
|
_: 1
|
|
143
136
|
}),
|
|
144
|
-
|
|
137
|
+
S(a(P), {
|
|
145
138
|
tag: "h3",
|
|
146
139
|
variant: "heading-3",
|
|
147
140
|
"no-spacing": "",
|
|
148
141
|
class: "sv-enabled-pricings-list__item-name"
|
|
149
142
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
143
|
+
default: u(() => [
|
|
144
|
+
_(y(e.entry.name), 1)
|
|
152
145
|
]),
|
|
153
146
|
_: 1
|
|
154
147
|
}),
|
|
155
|
-
n.value ? (
|
|
148
|
+
n.value ? (c(), g(a(P), {
|
|
156
149
|
key: 0,
|
|
157
150
|
tag: "span",
|
|
158
151
|
variant: "body-sm",
|
|
159
152
|
color: "subtle",
|
|
160
153
|
class: "sv-enabled-pricings-list__item-price"
|
|
161
154
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
|
|
155
|
+
default: u(() => [
|
|
156
|
+
_(y(n.value), 1)
|
|
164
157
|
]),
|
|
165
158
|
_: 1
|
|
166
|
-
})) :
|
|
159
|
+
})) : v("", !0)
|
|
167
160
|
]),
|
|
168
|
-
|
|
161
|
+
e.canUpgrade ? (c(), g(a(z), {
|
|
162
|
+
key: 0,
|
|
169
163
|
intent: "secondary",
|
|
170
164
|
class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
|
|
171
165
|
type: "button",
|
|
172
166
|
size: "xs",
|
|
173
|
-
onClick: o[0] || (o[0] = (
|
|
167
|
+
onClick: o[0] || (o[0] = (l) => s.$emit("upgrade", e.entry))
|
|
174
168
|
}, {
|
|
175
|
-
default:
|
|
176
|
-
|
|
169
|
+
default: u(() => [
|
|
170
|
+
_(y(a(t)({
|
|
177
171
|
defaultMessage: "Upgrade",
|
|
178
172
|
id: "enabled_pricings_list.item.upgrade_button.label",
|
|
179
173
|
description: "Label for the button that changes which pricing is enabled for a group"
|
|
180
174
|
})), 1)
|
|
181
175
|
]),
|
|
182
176
|
_: 1
|
|
183
|
-
})
|
|
177
|
+
})) : v("", !0)
|
|
184
178
|
])
|
|
185
179
|
]),
|
|
186
180
|
_: 1
|
|
187
181
|
}));
|
|
188
182
|
}
|
|
189
|
-
}),
|
|
183
|
+
}), ze = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, Xe = /* @__PURE__ */ F({
|
|
190
184
|
__name: "EnabledPricingsList",
|
|
191
185
|
props: {
|
|
192
186
|
pricingPlanSchedule: { type: Object }
|
|
193
187
|
},
|
|
194
188
|
emits: ["upgrade"],
|
|
195
189
|
setup(e) {
|
|
196
|
-
const i = e, { $t: t } =
|
|
197
|
-
|
|
190
|
+
const i = e, { $t: t } = R(), n = p(() => je(i.pricingPlanSchedule)), s = p(
|
|
191
|
+
() => !Ce(i.pricingPlanSchedule.pricing_plan_schedule)
|
|
192
|
+
);
|
|
193
|
+
return (o, l) => n.value.length > 0 ? (c(), g(a(V), {
|
|
198
194
|
key: 0,
|
|
199
195
|
class: "sv-enabled-pricings-list",
|
|
200
196
|
"content-background": "none",
|
|
@@ -206,35 +202,36 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
206
202
|
description: "Title for the block listing the pricings enabled on a subscription"
|
|
207
203
|
})
|
|
208
204
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
-
(
|
|
212
|
-
key:
|
|
213
|
-
entry:
|
|
214
|
-
|
|
215
|
-
|
|
205
|
+
default: u(() => [
|
|
206
|
+
W("div", ze, [
|
|
207
|
+
(c(!0), j(Q, null, Z(n.value, (d) => (c(), g(Ye, {
|
|
208
|
+
key: d.pricingId,
|
|
209
|
+
entry: d,
|
|
210
|
+
"can-upgrade": s.value,
|
|
211
|
+
onUpgrade: l[0] || (l[0] = (r) => o.$emit("upgrade", r))
|
|
212
|
+
}, null, 8, ["entry", "can-upgrade"]))), 128))
|
|
216
213
|
])
|
|
217
214
|
]),
|
|
218
215
|
_: 1
|
|
219
|
-
}, 8, ["title"])) :
|
|
216
|
+
}, 8, ["title"])) : v("", !0);
|
|
220
217
|
}
|
|
221
|
-
}),
|
|
218
|
+
}), qe = { class: "sv-on-demand-items-card__items grid grid-cols-1 gap-1" }, Ge = {
|
|
222
219
|
key: 0,
|
|
223
220
|
class: "sv-on-demand-items-card__more"
|
|
224
|
-
},
|
|
221
|
+
}, J = 2, He = /* @__PURE__ */ F({
|
|
225
222
|
__name: "OnDemandItemsCard",
|
|
226
223
|
props: {
|
|
227
224
|
items: { type: Array }
|
|
228
225
|
},
|
|
229
226
|
emits: ["order"],
|
|
230
227
|
setup(e) {
|
|
231
|
-
const i = e, { $t: t } =
|
|
232
|
-
() => i.items.slice(0,
|
|
233
|
-
item:
|
|
234
|
-
priceLabel: n(
|
|
228
|
+
const i = e, { $t: t } = R(), { getPriceLabel: n } = Ne(), s = p(
|
|
229
|
+
() => i.items.slice(0, J).map((l) => ({
|
|
230
|
+
item: l,
|
|
231
|
+
priceLabel: n(l)
|
|
235
232
|
}))
|
|
236
|
-
), o =
|
|
237
|
-
return (
|
|
233
|
+
), o = p(() => Math.max(i.items.length - J, 0));
|
|
234
|
+
return (l, d) => (c(), g(a(V), {
|
|
238
235
|
class: "sv-on-demand-items-card",
|
|
239
236
|
"content-background": "none",
|
|
240
237
|
"no-border": "",
|
|
@@ -245,16 +242,16 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
245
242
|
description: "Title for the block that offers the on-demand items of a subscription"
|
|
246
243
|
})
|
|
247
244
|
}, {
|
|
248
|
-
right:
|
|
249
|
-
|
|
245
|
+
right: u(() => [
|
|
246
|
+
S(a(z), {
|
|
250
247
|
class: "sv-action sv-action--secondary sv-on-demand-items-card__order",
|
|
251
248
|
type: "button",
|
|
252
249
|
size: "sm",
|
|
253
250
|
intent: "secondary",
|
|
254
|
-
onClick:
|
|
251
|
+
onClick: d[0] || (d[0] = (r) => l.$emit("order"))
|
|
255
252
|
}, {
|
|
256
|
-
default:
|
|
257
|
-
|
|
253
|
+
default: u(() => [
|
|
254
|
+
_(y(a(t)({
|
|
258
255
|
defaultMessage: "Purchase",
|
|
259
256
|
id: "on_demand_items_card.order_button.label",
|
|
260
257
|
description: "Label for the button that opens the on-demand order form"
|
|
@@ -263,29 +260,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
263
260
|
_: 1
|
|
264
261
|
})
|
|
265
262
|
]),
|
|
266
|
-
default:
|
|
267
|
-
|
|
268
|
-
(
|
|
269
|
-
key:
|
|
263
|
+
default: u(() => [
|
|
264
|
+
W("ul", qe, [
|
|
265
|
+
(c(!0), j(Q, null, Z(s.value, ({ item: r, priceLabel: b }) => (c(), j("li", {
|
|
266
|
+
key: r.pricingItemId,
|
|
270
267
|
class: "sv-on-demand-items-card__item"
|
|
271
268
|
}, [
|
|
272
|
-
|
|
269
|
+
S(a(V), {
|
|
273
270
|
"no-spacing": "",
|
|
274
271
|
"content-classes": "flex flex-col px-4 py-3"
|
|
275
272
|
}, {
|
|
276
|
-
default:
|
|
277
|
-
|
|
273
|
+
default: u(() => [
|
|
274
|
+
S(a(P), {
|
|
278
275
|
tag: "span",
|
|
279
276
|
weight: "semibold",
|
|
280
277
|
"no-spacing": "",
|
|
281
278
|
class: "sv-on-demand-items-card__item-name break-words"
|
|
282
279
|
}, {
|
|
283
|
-
default:
|
|
284
|
-
|
|
280
|
+
default: u(() => [
|
|
281
|
+
_(y(r.name), 1)
|
|
285
282
|
]),
|
|
286
283
|
_: 2
|
|
287
284
|
}, 1024),
|
|
288
|
-
|
|
285
|
+
b ? (c(), g(a(P), {
|
|
289
286
|
key: 0,
|
|
290
287
|
tag: "span",
|
|
291
288
|
variant: "body-sm",
|
|
@@ -293,29 +290,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
293
290
|
"no-spacing": "",
|
|
294
291
|
class: "sv-on-demand-items-card__item-price"
|
|
295
292
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
293
|
+
default: u(() => [
|
|
294
|
+
_(y(b), 1)
|
|
298
295
|
]),
|
|
299
296
|
_: 2
|
|
300
|
-
}, 1024)) :
|
|
297
|
+
}, 1024)) : v("", !0)
|
|
301
298
|
]),
|
|
302
299
|
_: 2
|
|
303
300
|
}, 1024)
|
|
304
301
|
]))), 128)),
|
|
305
|
-
o.value > 0 ? (
|
|
306
|
-
|
|
302
|
+
o.value > 0 ? (c(), j("li", Ge, [
|
|
303
|
+
S(a(V), {
|
|
307
304
|
"no-spacing": "",
|
|
308
305
|
"content-classes": "px-4 py-3 text-center"
|
|
309
306
|
}, {
|
|
310
|
-
default:
|
|
311
|
-
|
|
307
|
+
default: u(() => [
|
|
308
|
+
S(a(P), {
|
|
312
309
|
tag: "span",
|
|
313
310
|
weight: "semibold",
|
|
314
311
|
color: "secondary",
|
|
315
312
|
"no-spacing": ""
|
|
316
313
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
|
|
314
|
+
default: u(() => [
|
|
315
|
+
_(y(a(t)(
|
|
319
316
|
{
|
|
320
317
|
defaultMessage: "+ {count} available",
|
|
321
318
|
id: "on_demand_items_card.more_available",
|
|
@@ -329,19 +326,19 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
329
326
|
]),
|
|
330
327
|
_: 1
|
|
331
328
|
})
|
|
332
|
-
])) :
|
|
329
|
+
])) : v("", !0)
|
|
333
330
|
])
|
|
334
331
|
]),
|
|
335
332
|
_: 1
|
|
336
333
|
}, 8, ["title"]));
|
|
337
334
|
}
|
|
338
335
|
});
|
|
339
|
-
function
|
|
336
|
+
function Ke({
|
|
340
337
|
variant: e,
|
|
341
338
|
renewableUntil: i,
|
|
342
339
|
billingPeriodEndsAt: t
|
|
343
340
|
}) {
|
|
344
|
-
const { $t: n } =
|
|
341
|
+
const { $t: n } = R(), s = p(() => e.value === "RENEW"), o = p(
|
|
345
342
|
() => s.value ? n({
|
|
346
343
|
defaultMessage: "Renew subscription",
|
|
347
344
|
description: "Title of the renew subscription confirmation modal",
|
|
@@ -351,7 +348,7 @@ function He({
|
|
|
351
348
|
description: "Title of the cancel subscription confirmation modal",
|
|
352
349
|
id: "subscription_cancellation_modal.cancel.title"
|
|
353
350
|
})
|
|
354
|
-
),
|
|
351
|
+
), l = p(() => s.value ? i.value ? n(
|
|
355
352
|
{
|
|
356
353
|
defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
|
|
357
354
|
description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
|
|
@@ -373,7 +370,7 @@ function He({
|
|
|
373
370
|
defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
|
|
374
371
|
description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
|
|
375
372
|
id: "subscription_cancellation_modal.cancel.explanation"
|
|
376
|
-
})),
|
|
373
|
+
})), d = p(
|
|
377
374
|
() => s.value ? n({
|
|
378
375
|
defaultMessage: "Renew subscription",
|
|
379
376
|
description: "Label of the confirm button in the renew subscription modal",
|
|
@@ -383,13 +380,17 @@ function He({
|
|
|
383
380
|
description: "Label of the confirm button in the cancel subscription modal",
|
|
384
381
|
id: "subscription_cancellation_modal.cancel.confirm_button.label"
|
|
385
382
|
})
|
|
386
|
-
),
|
|
387
|
-
() => n({
|
|
383
|
+
), r = p(
|
|
384
|
+
() => s.value ? n({
|
|
388
385
|
defaultMessage: "Cancel",
|
|
389
386
|
description: "Label of the button that dismisses the cancellation modal",
|
|
390
387
|
id: "subscription_cancellation_modal.cancel_button.label"
|
|
388
|
+
}) : n({
|
|
389
|
+
defaultMessage: "Keep subscription",
|
|
390
|
+
description: "Label of the button that dismisses the cancel subscription modal without cancelling",
|
|
391
|
+
id: "subscription_cancellation_modal.cancel.keep_button.label"
|
|
391
392
|
})
|
|
392
|
-
),
|
|
393
|
+
), b = p(
|
|
393
394
|
() => s.value ? n({
|
|
394
395
|
defaultMessage: "We could not renew your subscription. Please try again.",
|
|
395
396
|
description: "Error shown when undoing a cancellation fails",
|
|
@@ -400,161 +401,124 @@ function He({
|
|
|
400
401
|
id: "subscription_cancellation_modal.cancel.error"
|
|
401
402
|
})
|
|
402
403
|
);
|
|
403
|
-
return { title: o, explanation:
|
|
404
|
-
}
|
|
405
|
-
const Ze = 50;
|
|
406
|
-
function Je() {
|
|
407
|
-
const { getPaymentMethods: e } = Pe(), i = ae();
|
|
408
|
-
return { paymentMethod: i, get: async ({
|
|
409
|
-
customerId: n,
|
|
410
|
-
paymentMethodId: s
|
|
411
|
-
}) => {
|
|
412
|
-
const o = await Me(async (c) => {
|
|
413
|
-
const r = await e({
|
|
414
|
-
customerId: n,
|
|
415
|
-
pagination: { page: c, pageSize: Ze }
|
|
416
|
-
});
|
|
417
|
-
if (!Ie(r))
|
|
418
|
-
throw new Error("Could not load the customer’s payment methods.");
|
|
419
|
-
return r;
|
|
420
|
-
});
|
|
421
|
-
return i.value = o.data.find(({ id: c }) => c === s), i.value;
|
|
422
|
-
} };
|
|
404
|
+
return { title: o, explanation: l, confirmButtonText: d, cancelButtonText: r, errorMessage: b };
|
|
423
405
|
}
|
|
424
|
-
const
|
|
406
|
+
const Je = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" }, Qe = {
|
|
425
407
|
key: 0,
|
|
426
408
|
class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
|
|
427
|
-
},
|
|
409
|
+
}, Ze = {
|
|
428
410
|
key: 0,
|
|
429
411
|
class: "sv-subscription-cancellation-modal__renews flex gap-1"
|
|
430
|
-
},
|
|
412
|
+
}, et = /* @__PURE__ */ F({
|
|
431
413
|
__name: "SubscriptionCancellationModal",
|
|
432
414
|
props: {
|
|
433
415
|
showModal: { type: Boolean },
|
|
434
416
|
variant: { type: null },
|
|
435
417
|
subscription: { type: Object },
|
|
418
|
+
customer: { type: Object },
|
|
419
|
+
paymentMethod: { type: Object },
|
|
436
420
|
avatar: { type: String }
|
|
437
421
|
},
|
|
438
422
|
emits: ["confirmed", "close"],
|
|
439
423
|
setup(e, { emit: i }) {
|
|
440
|
-
const t = e, n = i, { $t: s, formatDate: o } =
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
date: g.start_at,
|
|
446
|
-
format: "date",
|
|
447
|
-
offsetType: "local"
|
|
448
|
-
});
|
|
449
|
-
}), v = m(() => {
|
|
450
|
-
var g, d;
|
|
451
|
-
const b = (d = (g = t.subscription) == null ? void 0 : g.next_invoice) == null ? void 0 : d.invoice_date;
|
|
452
|
-
if (b)
|
|
453
|
-
return o({
|
|
454
|
-
date: b,
|
|
455
|
-
format: "date",
|
|
456
|
-
offsetType: "local"
|
|
457
|
-
});
|
|
458
|
-
}), P = v, L = m(
|
|
459
|
-
() => {
|
|
460
|
-
var b, g;
|
|
461
|
-
return (((g = (b = te(t.subscription)) == null ? void 0 : b.pricing_plan_schedule) == null ? void 0 : g.enabled_pricings) ?? []).map(({ pricing_id: d }) => d).filter((d) => !!d);
|
|
424
|
+
const t = e, n = i, { $t: s, formatDate: o } = R(), l = q(), { setSubscriptionCancellation: d } = Pe(), r = N(t.variant);
|
|
425
|
+
Y(
|
|
426
|
+
() => t.variant,
|
|
427
|
+
(f) => {
|
|
428
|
+
f && (r.value = f);
|
|
462
429
|
}
|
|
463
|
-
), { title: E, explanation: k, confirmButtonText: I, cancelButtonText: O, errorMessage: x } = He({ variant: h, renewableUntil: l, billingPeriodEndsAt: v }), { paymentMethod: A, get: N } = Je();
|
|
464
|
-
W(
|
|
465
|
-
[
|
|
466
|
-
() => t.showModal,
|
|
467
|
-
() => {
|
|
468
|
-
var b;
|
|
469
|
-
return (b = t.subscription) == null ? void 0 : b.payment_method_id;
|
|
470
|
-
},
|
|
471
|
-
() => {
|
|
472
|
-
var b;
|
|
473
|
-
return (b = t.subscription) == null ? void 0 : b.customer_id;
|
|
474
|
-
}
|
|
475
|
-
],
|
|
476
|
-
([b, g, d]) => {
|
|
477
|
-
var M;
|
|
478
|
-
!b || !g || !d || g !== ((M = A.value) == null ? void 0 : M.id) && N({ customerId: d, paymentMethodId: g }).catch(() => {
|
|
479
|
-
});
|
|
480
|
-
},
|
|
481
|
-
{ immediate: !0 }
|
|
482
430
|
);
|
|
483
|
-
const
|
|
484
|
-
|
|
431
|
+
const b = (f) => {
|
|
432
|
+
var h;
|
|
433
|
+
const D = (h = t.customer) == null ? void 0 : h.timezone;
|
|
434
|
+
return o(D ? { date: f, format: "date", offsetType: "offsetted", timezone: D } : { date: f, format: "date", offsetType: "local" });
|
|
435
|
+
}, C = p(() => {
|
|
436
|
+
const f = ne(t.subscription);
|
|
437
|
+
return f ? b(f.start_at) : void 0;
|
|
438
|
+
}), O = p(() => {
|
|
439
|
+
var D, h;
|
|
440
|
+
const f = (h = (D = t.subscription) == null ? void 0 : D.next_invoice) == null ? void 0 : h.invoice_date;
|
|
441
|
+
return f ? b(f) : void 0;
|
|
442
|
+
}), $ = O, T = p(
|
|
443
|
+
() => {
|
|
444
|
+
var f, D, h;
|
|
445
|
+
return (((h = (D = G(((f = t.subscription) == null ? void 0 : f.pricing_plan_schedule_infos) ?? [])) == null ? void 0 : D.pricing_plan_schedule) == null ? void 0 : h.enabled_pricings) ?? []).map(({ pricing_id: m }) => m).filter((m) => !!m);
|
|
446
|
+
}
|
|
447
|
+
), { title: B, explanation: I, confirmButtonText: E, cancelButtonText: L, errorMessage: k } = Ke({ variant: r, renewableUntil: C, billingPeriodEndsAt: O }), w = N(!1), x = N(!1);
|
|
448
|
+
Y(
|
|
485
449
|
() => t.showModal,
|
|
486
|
-
(
|
|
487
|
-
|
|
450
|
+
(f) => {
|
|
451
|
+
f && (x.value = !1);
|
|
488
452
|
}
|
|
489
453
|
);
|
|
490
|
-
const
|
|
491
|
-
if (!(!t.subscription || !t.variant ||
|
|
492
|
-
|
|
454
|
+
const U = async () => {
|
|
455
|
+
if (!(!t.subscription || !t.variant || w.value)) {
|
|
456
|
+
w.value = !0, x.value = !1;
|
|
493
457
|
try {
|
|
494
|
-
await
|
|
458
|
+
await d({
|
|
495
459
|
id: t.subscription.id,
|
|
496
460
|
variant: t.variant
|
|
497
461
|
}), n("confirmed"), n("close");
|
|
498
|
-
} catch (
|
|
499
|
-
|
|
462
|
+
} catch (f) {
|
|
463
|
+
l.error(
|
|
500
464
|
"SUBSCRIPTION_CANCELLATION_FAILED",
|
|
501
465
|
"Failed to change the cancellation state of a subscription",
|
|
502
466
|
{ variant: t.variant },
|
|
503
|
-
|
|
504
|
-
),
|
|
467
|
+
f
|
|
468
|
+
), x.value = !0;
|
|
505
469
|
} finally {
|
|
506
|
-
|
|
470
|
+
w.value = !1;
|
|
507
471
|
}
|
|
508
472
|
}
|
|
509
|
-
},
|
|
510
|
-
|
|
473
|
+
}, M = () => {
|
|
474
|
+
w.value || n("close");
|
|
511
475
|
};
|
|
512
|
-
return (
|
|
476
|
+
return (f, D) => (c(), g(a($e), {
|
|
513
477
|
size: "md",
|
|
514
478
|
"show-modal": e.showModal,
|
|
515
|
-
title: a(
|
|
516
|
-
"confirm-button-text": a(
|
|
517
|
-
"cancel-button-text": a(
|
|
518
|
-
"is-loading":
|
|
519
|
-
"no-click-away":
|
|
520
|
-
"no-backdrop-close":
|
|
521
|
-
onConfirm:
|
|
522
|
-
onClose:
|
|
479
|
+
title: a(B),
|
|
480
|
+
"confirm-button-text": a(E),
|
|
481
|
+
"cancel-button-text": a(L),
|
|
482
|
+
"is-loading": w.value,
|
|
483
|
+
"no-click-away": w.value,
|
|
484
|
+
"no-backdrop-close": w.value,
|
|
485
|
+
onConfirm: U,
|
|
486
|
+
onClose: M
|
|
523
487
|
}, {
|
|
524
|
-
body:
|
|
525
|
-
|
|
526
|
-
|
|
488
|
+
body: u(() => [
|
|
489
|
+
W("div", Je, [
|
|
490
|
+
S(a(P), {
|
|
527
491
|
variant: "body-sm",
|
|
528
492
|
color: "subtle",
|
|
529
493
|
tag: "p",
|
|
530
494
|
class: "sv-subscription-cancellation-modal__explanation"
|
|
531
495
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
496
|
+
default: u(() => [
|
|
497
|
+
_(y(a(I)), 1)
|
|
534
498
|
]),
|
|
535
499
|
_: 1
|
|
536
500
|
}),
|
|
537
|
-
e.subscription ? (
|
|
501
|
+
e.subscription ? (c(), g(a(V), {
|
|
538
502
|
key: 0,
|
|
539
503
|
"no-spacing": "",
|
|
540
504
|
class: "sv-subscription-cancellation-modal__subscription"
|
|
541
505
|
}, {
|
|
542
|
-
default:
|
|
543
|
-
|
|
506
|
+
default: u(() => [
|
|
507
|
+
S(Ee, {
|
|
544
508
|
subscription: e.subscription,
|
|
545
509
|
avatar: e.avatar,
|
|
546
|
-
"enabled-pricing-ids":
|
|
510
|
+
"enabled-pricing-ids": T.value
|
|
547
511
|
}, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
|
|
548
|
-
a(
|
|
549
|
-
a(
|
|
550
|
-
|
|
512
|
+
a($) || e.paymentMethod ? (c(), j("div", Qe, [
|
|
513
|
+
a($) ? (c(), j("div", Ze, [
|
|
514
|
+
S(a(P), {
|
|
551
515
|
tag: "span",
|
|
552
516
|
variant: "body-xs",
|
|
553
517
|
color: "secondary",
|
|
554
518
|
weight: "semibold"
|
|
555
519
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
520
|
+
default: u(() => [
|
|
521
|
+
_(y(a(s)({
|
|
558
522
|
defaultMessage: "Renews",
|
|
559
523
|
description: "Label before the date the subscription renews, shown in the cancel subscription modal",
|
|
560
524
|
id: "subscription_cancellation_modal.renews_label"
|
|
@@ -562,38 +526,38 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
562
526
|
]),
|
|
563
527
|
_: 1
|
|
564
528
|
}),
|
|
565
|
-
|
|
529
|
+
S(a(P), {
|
|
566
530
|
tag: "span",
|
|
567
531
|
variant: "body-xs",
|
|
568
532
|
color: "secondary"
|
|
569
533
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
|
|
534
|
+
default: u(() => [
|
|
535
|
+
_(y(a($)), 1)
|
|
572
536
|
]),
|
|
573
537
|
_: 1
|
|
574
538
|
})
|
|
575
|
-
])) :
|
|
576
|
-
|
|
539
|
+
])) : v("", !0),
|
|
540
|
+
e.paymentMethod ? (c(), g(a(Ae), {
|
|
577
541
|
key: 1,
|
|
578
542
|
variant: "condensed",
|
|
579
543
|
class: "sv-subscription-cancellation-modal__payment-method",
|
|
580
|
-
"payment-method":
|
|
581
|
-
}, null, 8, ["payment-method"])) :
|
|
582
|
-
])) :
|
|
544
|
+
"payment-method": e.paymentMethod
|
|
545
|
+
}, null, 8, ["payment-method"])) : v("", !0)
|
|
546
|
+
])) : v("", !0)
|
|
583
547
|
]),
|
|
584
548
|
_: 1
|
|
585
|
-
})) :
|
|
586
|
-
|
|
549
|
+
})) : v("", !0),
|
|
550
|
+
x.value ? (c(), g(a(ee), {
|
|
587
551
|
key: 1,
|
|
588
552
|
class: "sv-subscription-cancellation-modal__error sv-error",
|
|
589
|
-
title: a(
|
|
590
|
-
}, null, 8, ["title"])) :
|
|
553
|
+
title: a(k)
|
|
554
|
+
}, null, 8, ["title"])) : v("", !0)
|
|
591
555
|
])
|
|
592
556
|
]),
|
|
593
557
|
_: 1
|
|
594
558
|
}, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]));
|
|
595
559
|
}
|
|
596
|
-
}),
|
|
560
|
+
}), tt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, nt = /* @__PURE__ */ F({
|
|
597
561
|
__name: "SubscriptionDetails",
|
|
598
562
|
props: {
|
|
599
563
|
subscription: { type: Object },
|
|
@@ -611,138 +575,141 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
611
575
|
},
|
|
612
576
|
emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed", "invoice-created"],
|
|
613
577
|
setup(e, { emit: i }) {
|
|
614
|
-
const t =
|
|
615
|
-
() => import("./SubscriptionSchedules-
|
|
616
|
-
), n =
|
|
617
|
-
() => import("./ChargeOnDemandModal-
|
|
618
|
-
), s = e, o = i, { dispatchAction:
|
|
619
|
-
isCancellable:
|
|
620
|
-
isRenewable:
|
|
621
|
-
pendingVariant:
|
|
622
|
-
cancel:
|
|
623
|
-
renew:
|
|
624
|
-
dismiss:
|
|
625
|
-
manage:
|
|
626
|
-
} =
|
|
627
|
-
|
|
628
|
-
|
|
578
|
+
const t = H(
|
|
579
|
+
() => import("./SubscriptionSchedules-DAahcNoI.mjs")
|
|
580
|
+
), n = H(
|
|
581
|
+
() => import("./ChargeOnDemandModal-CPjPa_uq.mjs")
|
|
582
|
+
), s = e, o = i, { dispatchAction: l } = te(), { $t: d } = R(), {
|
|
583
|
+
isCancellable: r,
|
|
584
|
+
isRenewable: b,
|
|
585
|
+
pendingVariant: C,
|
|
586
|
+
cancel: O,
|
|
587
|
+
renew: $,
|
|
588
|
+
dismiss: T,
|
|
589
|
+
manage: B
|
|
590
|
+
} = Fe({ subscription: ie(s, "subscription") }), I = N();
|
|
591
|
+
Y(C, (h) => {
|
|
592
|
+
h && (I.value = void 0);
|
|
629
593
|
});
|
|
630
|
-
const
|
|
631
|
-
I.value =
|
|
632
|
-
},
|
|
594
|
+
const E = () => {
|
|
595
|
+
I.value = C.value, o("subscription-changed");
|
|
596
|
+
}, L = p(() => {
|
|
633
597
|
if (I.value)
|
|
634
|
-
return I.value === "RENEW" ?
|
|
598
|
+
return I.value === "RENEW" ? d({
|
|
635
599
|
defaultMessage: "Your subscription has been renewed.",
|
|
636
600
|
id: "subscription_details.renew_success",
|
|
637
601
|
description: "Confirmation shown after a cancellation has been undone"
|
|
638
|
-
}) :
|
|
602
|
+
}) : d({
|
|
639
603
|
defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
|
|
640
604
|
id: "subscription_details.cancel_success",
|
|
641
605
|
description: "Confirmation shown after a subscription has been cancelled"
|
|
642
606
|
});
|
|
643
|
-
}),
|
|
644
|
-
() =>
|
|
645
|
-
var
|
|
646
|
-
return
|
|
607
|
+
}), k = p(
|
|
608
|
+
() => {
|
|
609
|
+
var h;
|
|
610
|
+
return G(((h = s.subscription) == null ? void 0 : h.pricing_plan_schedule_infos) ?? []);
|
|
611
|
+
}
|
|
612
|
+
), w = p(
|
|
613
|
+
() => (s.paymentMethods ?? []).find(({ id: h }) => {
|
|
614
|
+
var m;
|
|
615
|
+
return h === ((m = s.subscription) == null ? void 0 : m.payment_method_id);
|
|
647
616
|
})
|
|
648
|
-
),
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
() =>
|
|
617
|
+
), x = p(() => s.subscription ? [s.subscription] : []), U = N(!1), M = N(!1), f = () => {
|
|
618
|
+
M.value = !0, U.value = !0;
|
|
619
|
+
}, D = p(
|
|
620
|
+
() => ge({
|
|
652
621
|
subscription: s.subscription,
|
|
653
|
-
fallback:
|
|
622
|
+
fallback: d({
|
|
654
623
|
defaultMessage: "Subscription details",
|
|
655
624
|
id: "subscription_details.title",
|
|
656
625
|
description: "Title for the subscription details page"
|
|
657
626
|
})
|
|
658
627
|
})
|
|
659
628
|
);
|
|
660
|
-
return (
|
|
661
|
-
header:
|
|
662
|
-
|
|
663
|
-
|
|
629
|
+
return (h, m) => (c(), g(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
|
|
630
|
+
header: u(() => [
|
|
631
|
+
W("div", tt, [
|
|
632
|
+
S(a(P), {
|
|
664
633
|
variant: "heading-2",
|
|
665
634
|
tag: "h1",
|
|
666
635
|
class: "sv-subscription-details__title grow"
|
|
667
636
|
}, {
|
|
668
|
-
default:
|
|
669
|
-
|
|
637
|
+
default: u(() => [
|
|
638
|
+
_(y(D.value), 1)
|
|
670
639
|
]),
|
|
671
640
|
_: 1
|
|
672
641
|
}),
|
|
673
|
-
a(
|
|
642
|
+
a(b) ? (c(), g(a(z), {
|
|
674
643
|
key: 0,
|
|
675
644
|
intent: "secondary",
|
|
676
645
|
class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
|
|
677
646
|
type: "button",
|
|
678
|
-
onClick: a(
|
|
647
|
+
onClick: a($)
|
|
679
648
|
}, {
|
|
680
|
-
default:
|
|
681
|
-
|
|
649
|
+
default: u(() => [
|
|
650
|
+
_(y(a(d)({
|
|
682
651
|
defaultMessage: "Renew subscription",
|
|
683
652
|
id: "subscription_details.renew_button.label",
|
|
684
653
|
description: "Label for the renew subscription button on the subscription details page"
|
|
685
654
|
})), 1)
|
|
686
655
|
]),
|
|
687
656
|
_: 1
|
|
688
|
-
}, 8, ["onClick"])) :
|
|
689
|
-
a(
|
|
657
|
+
}, 8, ["onClick"])) : v("", !0),
|
|
658
|
+
a(r) ? (c(), g(a(z), {
|
|
690
659
|
key: 1,
|
|
691
660
|
intent: "secondary",
|
|
692
661
|
class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
|
|
693
662
|
type: "button",
|
|
694
|
-
onClick: a(
|
|
663
|
+
onClick: a(O)
|
|
695
664
|
}, {
|
|
696
|
-
default:
|
|
697
|
-
|
|
665
|
+
default: u(() => [
|
|
666
|
+
_(y(a(d)({
|
|
698
667
|
defaultMessage: "Cancel subscription",
|
|
699
668
|
id: "subscription_details.cancel_button.label",
|
|
700
669
|
description: "Label for the cancel subscription button on the subscription details page"
|
|
701
670
|
})), 1)
|
|
702
671
|
]),
|
|
703
672
|
_: 1
|
|
704
|
-
}, 8, ["onClick"])) :
|
|
673
|
+
}, 8, ["onClick"])) : v("", !0)
|
|
705
674
|
])
|
|
706
675
|
]),
|
|
707
|
-
content:
|
|
708
|
-
|
|
676
|
+
content: u(() => [
|
|
677
|
+
L.value ? (c(), g(a(re), {
|
|
709
678
|
key: 0,
|
|
710
679
|
class: "sv-subscription-details__cancellation-success",
|
|
711
680
|
type: "success",
|
|
712
|
-
title:
|
|
713
|
-
}, null, 8, ["title"])) :
|
|
714
|
-
e.error ? (
|
|
681
|
+
title: L.value
|
|
682
|
+
}, null, 8, ["title"])) : v("", !0),
|
|
683
|
+
e.error ? (c(), g(a(ee), {
|
|
715
684
|
key: 1,
|
|
716
685
|
class: "sv-subscription-details__error sv-error",
|
|
717
|
-
title: a(
|
|
686
|
+
title: a(d)({
|
|
718
687
|
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
719
688
|
id: "subscription_details.load_error",
|
|
720
689
|
description: "Error message shown when the subscription cannot be loaded on the subscription details page"
|
|
721
690
|
})
|
|
722
|
-
}, null, 8, ["title"])) : e.isLoading ? (
|
|
691
|
+
}, null, 8, ["title"])) : e.isLoading ? (c(), g(ye, {
|
|
723
692
|
key: 2,
|
|
724
693
|
variant: "section",
|
|
725
694
|
class: "min-h-[220px]"
|
|
726
|
-
})) : e.subscription ? (
|
|
695
|
+
})) : e.subscription ? (c(), g(a(t), {
|
|
727
696
|
key: 3,
|
|
728
697
|
class: "sv-subscription-details__schedules",
|
|
729
|
-
"schedules-data": e.schedulesData ?? []
|
|
730
|
-
|
|
731
|
-
"is-loading": e.isLoading
|
|
732
|
-
}, null, 8, ["schedules-data", "configuration", "is-loading"])) : (u(), f(fe, {
|
|
698
|
+
"schedules-data": e.schedulesData ?? []
|
|
699
|
+
}, null, 8, ["schedules-data"])) : (c(), g(_e, {
|
|
733
700
|
key: 4,
|
|
734
701
|
class: "sv-subscription-details__empty-state",
|
|
735
702
|
icon: "receipt_long"
|
|
736
703
|
}, {
|
|
737
|
-
title:
|
|
738
|
-
|
|
704
|
+
title: u(() => [
|
|
705
|
+
_(y(a(d)({
|
|
739
706
|
defaultMessage: "Subscription not found",
|
|
740
707
|
id: "subscription_details.empty_state.title",
|
|
741
708
|
description: "Title shown when the requested subscription does not exist"
|
|
742
709
|
})), 1)
|
|
743
710
|
]),
|
|
744
|
-
message:
|
|
745
|
-
|
|
711
|
+
message: u(() => [
|
|
712
|
+
_(y(a(d)({
|
|
746
713
|
defaultMessage: "This subscription is no longer available.",
|
|
747
714
|
id: "subscription_details.empty_state.message",
|
|
748
715
|
description: "Message shown when the requested subscription does not exist"
|
|
@@ -751,8 +718,8 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
751
718
|
_: 1
|
|
752
719
|
}))
|
|
753
720
|
]),
|
|
754
|
-
aside:
|
|
755
|
-
|
|
721
|
+
aside: u(() => [
|
|
722
|
+
S(be, {
|
|
756
723
|
class: "sv-subscription-details__wallet-balances",
|
|
757
724
|
"has-error": !!e.hasWalletBalancesError,
|
|
758
725
|
"is-loading": e.isLoading,
|
|
@@ -760,67 +727,69 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
760
727
|
"show-top-up-button": "",
|
|
761
728
|
customer: e.customer,
|
|
762
729
|
"payment-methods": e.paymentMethods,
|
|
763
|
-
subscriptions:
|
|
764
|
-
onTopUpCharged:
|
|
765
|
-
onAutoTopUpSaved:
|
|
766
|
-
onAutoTopUpCancelled:
|
|
767
|
-
onPaymentMethodStored:
|
|
730
|
+
subscriptions: x.value,
|
|
731
|
+
onTopUpCharged: m[0] || (m[0] = (A) => h.$emit("top-up-charged")),
|
|
732
|
+
onAutoTopUpSaved: m[1] || (m[1] = (A) => h.$emit("auto-top-up-saved")),
|
|
733
|
+
onAutoTopUpCancelled: m[2] || (m[2] = (A) => h.$emit("auto-top-up-cancelled")),
|
|
734
|
+
onPaymentMethodStored: m[3] || (m[3] = (A) => h.$emit("payment-method-stored"))
|
|
768
735
|
}, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
|
|
769
|
-
!e.isLoading && e.onDemandItems.length > 0 ? (
|
|
736
|
+
!e.isLoading && e.onDemandItems.length > 0 ? (c(), g(He, {
|
|
770
737
|
key: 0,
|
|
771
738
|
items: e.onDemandItems,
|
|
772
739
|
class: "sv-subscription-details__on-demand-items",
|
|
773
|
-
onOrder:
|
|
774
|
-
}, null, 8, ["items"])) :
|
|
775
|
-
|
|
740
|
+
onOrder: f
|
|
741
|
+
}, null, 8, ["items"])) : v("", !0),
|
|
742
|
+
k.value ? (c(), g(Xe, {
|
|
776
743
|
key: 1,
|
|
777
744
|
class: "sv-subscription-details__upgrades",
|
|
778
|
-
"pricing-plan-schedule":
|
|
779
|
-
onUpgrade: a(
|
|
780
|
-
}, null, 8, ["pricing-plan-schedule"
|
|
781
|
-
|
|
745
|
+
"pricing-plan-schedule": k.value,
|
|
746
|
+
onUpgrade: m[4] || (m[4] = (A) => a(B)(A.pricingId))
|
|
747
|
+
}, null, 8, ["pricing-plan-schedule"])) : v("", !0),
|
|
748
|
+
w.value ? (c(), g(he, {
|
|
782
749
|
key: 2,
|
|
783
750
|
class: "sv-subscription-details__payment-method",
|
|
784
751
|
"is-loading": e.isLoading,
|
|
785
|
-
"payment-methods": [
|
|
752
|
+
"payment-methods": [w.value],
|
|
786
753
|
configuration: { showViewAllButton: !1, showAddButton: !1 }
|
|
787
|
-
}, null, 8, ["is-loading", "payment-methods"])) :
|
|
788
|
-
|
|
754
|
+
}, null, 8, ["is-loading", "payment-methods"])) : v("", !0),
|
|
755
|
+
M.value && e.subscription && e.onDemandScheduleId ? (c(), g(a(n), {
|
|
789
756
|
key: 3,
|
|
790
|
-
"show-modal":
|
|
757
|
+
"show-modal": U.value,
|
|
791
758
|
subscription: e.subscription,
|
|
792
759
|
"schedule-id": e.onDemandScheduleId,
|
|
793
760
|
items: e.onDemandItems,
|
|
794
761
|
customer: e.customer,
|
|
795
762
|
"payment-methods": e.paymentMethods,
|
|
796
763
|
"can-view-created-invoice": e.canViewCreatedInvoice,
|
|
797
|
-
onClose:
|
|
798
|
-
onPaymentMethodStored:
|
|
799
|
-
onInvoiceCreated:
|
|
800
|
-
onViewInvoice:
|
|
801
|
-
}, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) :
|
|
802
|
-
|
|
803
|
-
"show-modal": !!a(
|
|
804
|
-
variant: a(
|
|
764
|
+
onClose: m[5] || (m[5] = (A) => U.value = !1),
|
|
765
|
+
onPaymentMethodStored: m[6] || (m[6] = (A) => h.$emit("payment-method-stored")),
|
|
766
|
+
onInvoiceCreated: m[7] || (m[7] = (A) => h.$emit("invoice-created", A)),
|
|
767
|
+
onViewInvoice: m[8] || (m[8] = (A) => a(l)({ action: "view-invoice", data: { invoiceId: A } }))
|
|
768
|
+
}, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) : v("", !0),
|
|
769
|
+
S(et, {
|
|
770
|
+
"show-modal": !!a(C),
|
|
771
|
+
variant: a(C),
|
|
805
772
|
subscription: e.subscription,
|
|
773
|
+
customer: e.customer,
|
|
774
|
+
"payment-method": w.value,
|
|
806
775
|
avatar: e.avatar,
|
|
807
|
-
onConfirmed:
|
|
808
|
-
onClose: a(
|
|
809
|
-
}, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
|
|
776
|
+
onConfirmed: E,
|
|
777
|
+
onClose: a(T)
|
|
778
|
+
}, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "avatar", "onClose"])
|
|
810
779
|
]),
|
|
811
780
|
_: 1
|
|
812
781
|
}));
|
|
813
782
|
}
|
|
814
|
-
}),
|
|
783
|
+
}), at = ["FIXED", "FLAT"], it = (e, i) => {
|
|
815
784
|
var n;
|
|
816
785
|
const t = (n = e.details.bands) == null ? void 0 : n[0];
|
|
817
786
|
return i === "FIXED" ? t == null ? void 0 : t.fixed_amount : t == null ? void 0 : t.amount;
|
|
818
|
-
},
|
|
787
|
+
}, st = (e) => typeof e == "number" && Number.isInteger(e) && e >= 1, ot = (e) => {
|
|
819
788
|
var t;
|
|
820
789
|
const i = Number((t = e.default_units) == null ? void 0 : t.number);
|
|
821
|
-
return
|
|
822
|
-
},
|
|
823
|
-
const i = e.flatMap(
|
|
790
|
+
return st(i) ? i : 1;
|
|
791
|
+
}, rt = (e) => {
|
|
792
|
+
const i = e.flatMap(ae);
|
|
824
793
|
return {
|
|
825
794
|
productItems: new Map(
|
|
826
795
|
i.flatMap((t) => t.items ?? []).flatMap((t) => t.product_items ?? []).map(({ id: t, name: n }) => [t, n])
|
|
@@ -829,10 +798,10 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
829
798
|
i.flatMap((t) => t.products ?? []).map(({ id: t, name: n }) => [t, n])
|
|
830
799
|
)
|
|
831
800
|
};
|
|
832
|
-
}, lt = (e, i, t) =>
|
|
833
|
-
var o,
|
|
834
|
-
const n = (o = i.configs) == null ? void 0 : o.find((
|
|
835
|
-
if (!n || (
|
|
801
|
+
}, lt = (e, i, t) => K(i.product_item_ids.map((n) => t.productItems.get(n))) || e.name || K(e.product_ids.map((n) => t.products.get(n))) || "", ct = (e, i, t) => {
|
|
802
|
+
var o, l;
|
|
803
|
+
const n = (o = i.configs) == null ? void 0 : o.find((d) => d.on_demand);
|
|
804
|
+
if (!n || (l = n.wallet_grants) != null && l.length || !Ue(n, at))
|
|
836
805
|
return;
|
|
837
806
|
const s = n.details.pricing_type === "FIXED" ? "FIXED" : "FLAT";
|
|
838
807
|
return {
|
|
@@ -840,19 +809,19 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
840
809
|
pricingItemConfigId: n.id,
|
|
841
810
|
name: lt(e, i, t),
|
|
842
811
|
priceType: s,
|
|
843
|
-
price:
|
|
844
|
-
defaultUnits:
|
|
812
|
+
price: it(n, s),
|
|
813
|
+
defaultUnits: ot(n)
|
|
845
814
|
};
|
|
846
|
-
},
|
|
815
|
+
}, dt = (e, {
|
|
847
816
|
pricingPlanVersions: i = []
|
|
848
817
|
} = {}) => {
|
|
849
|
-
const t =
|
|
850
|
-
return
|
|
818
|
+
const t = rt(i);
|
|
819
|
+
return ae(e).flatMap(
|
|
851
820
|
(n) => (n.items ?? []).flatMap(
|
|
852
|
-
(s) =>
|
|
821
|
+
(s) => ct(n, s, t) ?? []
|
|
853
822
|
)
|
|
854
823
|
);
|
|
855
|
-
},
|
|
824
|
+
}, Yt = (e, i) => {
|
|
856
825
|
const t = new Set(
|
|
857
826
|
(i.payment_acceptors ?? []).flatMap(
|
|
858
827
|
(n) => {
|
|
@@ -866,47 +835,47 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
866
835
|
).sort(
|
|
867
836
|
(n, s) => +(s.id === i.payment_method_id) - +(n.id === i.payment_method_id)
|
|
868
837
|
);
|
|
869
|
-
},
|
|
838
|
+
}, zt = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
|
|
870
839
|
const s = i.find((o) => o.pricingItemId === t);
|
|
871
840
|
return s ? s.priceType === "FLAT" && n !== void 0 ? [{ pricing_item_id: t, units: { number: String(n) } }] : [{ pricing_item_id: t }] : [];
|
|
872
841
|
});
|
|
873
|
-
function
|
|
842
|
+
function ut({
|
|
874
843
|
subscription: e
|
|
875
844
|
}) {
|
|
876
|
-
const { getOnDemandPricingItems: i } =
|
|
845
|
+
const { getOnDemandPricingItems: i } = Te(), t = q(), { data: n, execute: s } = Be({ service: i }), o = p(
|
|
877
846
|
() => {
|
|
878
|
-
var
|
|
879
|
-
return ((
|
|
847
|
+
var r;
|
|
848
|
+
return ((r = e.value) == null ? void 0 : r.variant) === "DEFAULT" ? G(e.value.pricing_plan_schedule_infos) : void 0;
|
|
880
849
|
}
|
|
881
|
-
),
|
|
882
|
-
var
|
|
883
|
-
return (
|
|
850
|
+
), l = p(() => {
|
|
851
|
+
var r;
|
|
852
|
+
return (r = o.value) == null ? void 0 : r.id;
|
|
884
853
|
});
|
|
885
|
-
return
|
|
886
|
-
|
|
887
|
-
(
|
|
888
|
-
|
|
889
|
-
() => t.error(
|
|
854
|
+
return Y(
|
|
855
|
+
l,
|
|
856
|
+
(r) => {
|
|
857
|
+
r && s({ scheduleId: r }).catch(
|
|
858
|
+
(b) => t.error(
|
|
890
859
|
"ON_DEMAND_ITEMS_LOAD_FAILED",
|
|
891
860
|
"Failed to load the on-demand items of the subscription",
|
|
892
|
-
{ scheduleId:
|
|
893
|
-
|
|
861
|
+
{ scheduleId: r },
|
|
862
|
+
b
|
|
894
863
|
)
|
|
895
864
|
);
|
|
896
865
|
},
|
|
897
866
|
{ immediate: !0 }
|
|
898
|
-
), { items:
|
|
867
|
+
), { items: p(
|
|
899
868
|
() => {
|
|
900
|
-
var
|
|
901
|
-
return
|
|
902
|
-
pricingPlanVersions: (
|
|
903
|
-
(
|
|
869
|
+
var r, b;
|
|
870
|
+
return l.value && ((r = n.value) == null ? void 0 : r.pricing_plan_schedule_id) === l.value ? dt(n.value, {
|
|
871
|
+
pricingPlanVersions: (b = e.value) == null ? void 0 : b.pricing_plan_schedule_infos.map(
|
|
872
|
+
(C) => C.pricing_plan_version
|
|
904
873
|
)
|
|
905
874
|
}) : [];
|
|
906
875
|
}
|
|
907
|
-
), scheduleId:
|
|
876
|
+
), scheduleId: l };
|
|
908
877
|
}
|
|
909
|
-
const
|
|
878
|
+
const pt = /* @__PURE__ */ F({
|
|
910
879
|
__name: "SubscriptionDetails.entry.view",
|
|
911
880
|
props: {
|
|
912
881
|
configuration: { type: Object },
|
|
@@ -928,42 +897,50 @@ const mt = /* @__PURE__ */ T({
|
|
|
928
897
|
setup(e) {
|
|
929
898
|
const i = e, t = i.portalObject.customer_id, {
|
|
930
899
|
subscription: n,
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
900
|
+
get: s,
|
|
901
|
+
error: o
|
|
902
|
+
} = Ie({ subscriptionId: i.configuration.subscriptionId }), l = q(), d = p(() => n.value ? null : o.value), r = () => s().catch((M) => {
|
|
903
|
+
l.error(
|
|
904
|
+
"SUBSCRIPTION_LOAD_FAILED",
|
|
905
|
+
"Failed to reload the subscription after it changed",
|
|
906
|
+
{},
|
|
907
|
+
M
|
|
908
|
+
);
|
|
909
|
+
}), { customer: b, get: C } = Le({ customerId: t }), { items: O, fetchAll: $ } = ke({ customerId: t }), {
|
|
910
|
+
walletBalances: T,
|
|
911
|
+
apiStatus: B,
|
|
912
|
+
fetch: I
|
|
913
|
+
} = fe({ customerId: t }), { isLoading: E } = xe(
|
|
914
|
+
s(),
|
|
915
|
+
C.execute(),
|
|
916
|
+
$(),
|
|
917
|
+
I()
|
|
918
|
+
), { items: L, scheduleId: k } = ut({
|
|
944
919
|
subscription: n
|
|
945
|
-
}),
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
920
|
+
}), w = p(
|
|
921
|
+
() => n.value ? Me(n.value) : []
|
|
922
|
+
), x = p(() => {
|
|
923
|
+
var M;
|
|
924
|
+
return ((M = T.value) == null ? void 0 : M.wallet_balances) ?? [];
|
|
925
|
+
}), U = p(() => B.value === Oe.Failed);
|
|
926
|
+
return (M, f) => se(M.$slots, "default", {
|
|
950
927
|
subscription: a(n),
|
|
951
|
-
schedulesData:
|
|
952
|
-
customer: a(
|
|
953
|
-
paymentMethods: a(
|
|
954
|
-
walletBalances:
|
|
955
|
-
onDemandItems: a(
|
|
956
|
-
onDemandScheduleId: a(
|
|
957
|
-
hasWalletBalancesError:
|
|
958
|
-
isLoading: a(
|
|
959
|
-
error:
|
|
960
|
-
refreshWalletBalances: a(
|
|
961
|
-
refreshPaymentMethods: a(
|
|
962
|
-
refreshSubscription:
|
|
928
|
+
schedulesData: w.value,
|
|
929
|
+
customer: a(b),
|
|
930
|
+
paymentMethods: a(O),
|
|
931
|
+
walletBalances: x.value,
|
|
932
|
+
onDemandItems: a(L),
|
|
933
|
+
onDemandScheduleId: a(k),
|
|
934
|
+
hasWalletBalancesError: U.value,
|
|
935
|
+
isLoading: a(E),
|
|
936
|
+
error: d.value,
|
|
937
|
+
refreshWalletBalances: a(I),
|
|
938
|
+
refreshPaymentMethods: a($),
|
|
939
|
+
refreshSubscription: r
|
|
963
940
|
});
|
|
964
941
|
}
|
|
965
942
|
});
|
|
966
|
-
function
|
|
943
|
+
function mt({
|
|
967
944
|
invoice: e,
|
|
968
945
|
configuration: i
|
|
969
946
|
}) {
|
|
@@ -973,7 +950,7 @@ function gt({
|
|
|
973
950
|
paymentStatus: e.payment_status
|
|
974
951
|
});
|
|
975
952
|
}
|
|
976
|
-
const
|
|
953
|
+
const gt = /* @__PURE__ */ F({
|
|
977
954
|
__name: "SubscriptionDetails.entry",
|
|
978
955
|
props: {
|
|
979
956
|
configuration: { type: Object },
|
|
@@ -993,65 +970,71 @@ const bt = /* @__PURE__ */ T({
|
|
|
993
970
|
branding: { type: Object }
|
|
994
971
|
},
|
|
995
972
|
setup(e) {
|
|
996
|
-
const i =
|
|
997
|
-
return (n, s) =>
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
hasWalletBalancesError: L,
|
|
1014
|
-
isLoading: E,
|
|
1015
|
-
error: k,
|
|
1016
|
-
refreshWalletBalances: I,
|
|
1017
|
-
refreshPaymentMethods: O,
|
|
1018
|
-
refreshSubscription: x
|
|
1019
|
-
}) => [
|
|
1020
|
-
_(at, {
|
|
1021
|
-
subscription: o,
|
|
1022
|
-
"schedules-data": c,
|
|
973
|
+
const i = ce("subscription-details"), t = e;
|
|
974
|
+
return (n, s) => {
|
|
975
|
+
var o;
|
|
976
|
+
return c(), g(a(le), {
|
|
977
|
+
entry: n.$props,
|
|
978
|
+
"component-name": a(i),
|
|
979
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
980
|
+
"required-configuration": { subscriptionId: (o = e.configuration) == null ? void 0 : o.subscriptionId },
|
|
981
|
+
onError: s[1] || (s[1] = (l) => n.$emit("error", l))
|
|
982
|
+
}, {
|
|
983
|
+
default: u(() => [
|
|
984
|
+
(c(), g(pt, oe({
|
|
985
|
+
key: e.configuration.subscriptionId
|
|
986
|
+
}, n.$props), {
|
|
987
|
+
default: u(({
|
|
988
|
+
subscription: l,
|
|
989
|
+
schedulesData: d,
|
|
1023
990
|
customer: r,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
991
|
+
paymentMethods: b,
|
|
992
|
+
walletBalances: C,
|
|
993
|
+
onDemandItems: O,
|
|
994
|
+
onDemandScheduleId: $,
|
|
995
|
+
hasWalletBalancesError: T,
|
|
996
|
+
isLoading: B,
|
|
997
|
+
error: I,
|
|
998
|
+
refreshWalletBalances: E,
|
|
999
|
+
refreshPaymentMethods: L,
|
|
1000
|
+
refreshSubscription: k
|
|
1001
|
+
}) => [
|
|
1002
|
+
S(nt, {
|
|
1003
|
+
subscription: l,
|
|
1004
|
+
"schedules-data": d,
|
|
1005
|
+
customer: r,
|
|
1006
|
+
avatar: e.configuration.avatar,
|
|
1007
|
+
"can-view-created-invoice": e.configuration.canViewCreatedInvoice,
|
|
1008
|
+
"payment-methods": b,
|
|
1009
|
+
"wallet-balances": C,
|
|
1010
|
+
"on-demand-items": O,
|
|
1011
|
+
"on-demand-schedule-id": $,
|
|
1012
|
+
"has-wallet-balances-error": T,
|
|
1013
|
+
"is-loading": B,
|
|
1014
|
+
error: I,
|
|
1015
|
+
onTopUpCharged: E,
|
|
1016
|
+
onAutoTopUpSaved: E,
|
|
1017
|
+
onAutoTopUpCancelled: E,
|
|
1018
|
+
onPaymentMethodStored: L,
|
|
1019
|
+
onSubscriptionChanged: k,
|
|
1020
|
+
onInvoiceCreated: s[0] || (s[0] = (w) => a(mt)({ invoice: w, configuration: t.configuration }))
|
|
1021
|
+
}, null, 8, ["subscription", "schedules-data", "customer", "avatar", "can-view-created-invoice", "payment-methods", "wallet-balances", "on-demand-items", "on-demand-schedule-id", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
|
|
1022
|
+
]),
|
|
1023
|
+
_: 1
|
|
1024
|
+
}, 16))
|
|
1025
|
+
]),
|
|
1026
|
+
_: 1
|
|
1027
|
+
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
1028
|
+
};
|
|
1046
1029
|
}
|
|
1047
|
-
}), { define:
|
|
1048
|
-
|
|
1030
|
+
}), { define: Xt } = de(
|
|
1031
|
+
gt,
|
|
1049
1032
|
"subscription-details"
|
|
1050
1033
|
);
|
|
1051
1034
|
export {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1035
|
+
Xt as d,
|
|
1036
|
+
Yt as g,
|
|
1037
|
+
st as i,
|
|
1038
|
+
zt as t,
|
|
1056
1039
|
Ne as u
|
|
1057
1040
|
};
|