@solvimon/solvimon-web 0.1.0-alpha.3 → 0.1.0-alpha.31
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 +501 -52
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/Alert.vue.es-xhsk_7Gn.mjs +158 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/Avatar.vue.es-DrbtUiLO.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/Button.vue.es-BHbanjR0.mjs +368 -0
- package/dist/ChargeOnDemandModal-DYiFtw1n.mjs +965 -0
- package/dist/Chip.vue.es-Dc6-PjEn.mjs +128 -0
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-C2kFcft1.mjs +32 -0
- package/dist/ContextMenu.vue.es-CvX6O2IM.mjs +572 -0
- package/dist/CustomerBillingInformation.vue.es-DQWt9osz.mjs +153 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs +2828 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/DividerText.vue.es-ChN6fnrH.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs +55 -0
- package/dist/ErrorNotification.vue.es-CWIVt5q9.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/FormMessage.vue.es-CQ64C8dt.mjs +39 -0
- package/dist/IconButton.vue.es-BXzwMvVk.mjs +56 -0
- package/dist/IconTitle.vue.es-GyanM-JQ.mjs +103 -0
- package/dist/Input.vue.es-CxiwRZYs.mjs +250 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs +93 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs +56 -0
- package/dist/InvoicePreview.vue.es-BvnikfEH.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs +124 -0
- package/dist/Label.vue.es-3ACRco55.mjs +113 -0
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/Modal.vue.es-CDjfZDDx.mjs +404 -0
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs +48 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs +250 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs +51 -0
- package/dist/PaymentHistoryBlock-HUazLER6.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs +93 -0
- package/dist/PaymentIntegrationForm-ZnIjTyda.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/PaymentIntegrationFormAdyen-sbw3AoKS.mjs +946 -0
- package/dist/PaymentIntegrationFormStripe-4JmKEwbS.mjs +767 -0
- package/dist/PaymentMethod.vue.es-DAabE41t.mjs +645 -0
- package/dist/PaymentMethodForm-MmCUSJLE.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs +169 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs +176 -0
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/PortalLinkUnverified-B7YYhv97.mjs +52 -0
- package/dist/PortalNotAvailable-DIyeKrAp.mjs +25 -0
- package/dist/PricingGroupRangeInput.vue.es-C6J8C7JS.mjs +578 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs +178 -0
- package/dist/RadioGroupExtended.vue.es-hDmUAKIA.mjs +176 -0
- package/dist/Section.vue.es-CwKTCeZ1.mjs +72 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs +60 -0
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/StepInput.vue.es-GkrOtOVa.mjs +213 -0
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/SubscriptionSchedules-DosBeXD7.mjs +4 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs +5183 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs +344 -0
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/TooltipParagraph.vue.es-4HaXi8RP.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs +31 -0
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cn.es-B8acFrov.mjs +2936 -0
- package/dist/comparators.es-C8rHpb70.mjs +157 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.mjs +78 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +93 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +78 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.mjs +2930 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +101 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +63 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.mjs +79 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +109 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +90 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +80 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +99 -0
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.mjs +105 -0
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/core/action-request.types.d.ts +1 -58
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.d.ts +1 -10
- package/dist/core/index.mjs +168 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -111
- package/dist/customElements-d7Bhfqi_.mjs +5099 -0
- package/dist/customer-CNCSN_G5.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/de-DE-D-sV3avS.mjs +309 -0
- package/dist/de-DE-wZp39RC-.mjs +498 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/fr-FR-BYHycSxz.mjs +310 -0
- package/dist/fr-FR-BrNXJ7gR.mjs +498 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getCountryNameByCode.es-OGxn_zT0.mjs +257 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/index.es-C7J3WGGo.mjs +345 -0
- package/dist/index.mjs +46 -0
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/it-IT-Bd1qsMVU.mjs +498 -0
- package/dist/it-IT-zpPyT9PH.mjs +309 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/nl-NL-BOr4MR7L.mjs +324 -0
- package/dist/nl-NL-C6Y6fqaW.mjs +498 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/paymentMethods-CG1fcG2v.mjs +78 -0
- package/dist/paymentOutcome-D59QkGfm.mjs +22 -0
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingItem.es-AYq_hYeD.mjs +55 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.mjs +1100 -0
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +277 -0
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
- package/dist/screens/PayInvoice/PayInvoice.mjs +873 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +219 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +5 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +1135 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/sorting.es-kM0f1VX0.mjs +77 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/subscription-DQ5mRp_e.mjs +212 -0
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +21 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +20 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +10 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +21 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +15 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +58 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +16 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +78 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +12 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +26 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +25 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +12 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +9 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +148 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +68 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +49 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +32 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +20 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +12 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +12 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +13 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +28 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +34 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +82 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +21 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +4 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +22 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +15 -0
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +20 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +9 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +70 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +29 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +18 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +10 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +10 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +8 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +23 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +10 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +20 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +20 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +53 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +25 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +5 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +10 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +14 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +3 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +25 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +25 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +6 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +7 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +15 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +38 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +6 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +8 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +50 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +6 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +7 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +28 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +54 -0
- package/dist/types/public/core/configuration.d.ts +2 -0
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +16 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +3 -0
- package/dist/types/public/core/types.d.ts +139 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +23 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +21 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +10 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +22 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +14 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +36 -0
- package/dist/types/services/requests.types.d.ts +41 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +14 -0
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +15 -0
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +82 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +51 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +375 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +379 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +127 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +132 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +134 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +135 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +94 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +62 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +46 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +128 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +81 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +222 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- 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/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/useActionDispatchProvider-BWna0S6N.mjs +9 -0
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/useCustomer-RUtEzDOY.mjs +20 -0
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/useIncrementalLoading-B3gp58X-.mjs +60 -0
- package/dist/useInvoiceData-Dya4mmvf.mjs +21 -0
- package/dist/useInvoicesList-Dp3c_cb3.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-CwySdYZM.mjs +15 -0
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/usePaymentMethodAvailability-B7NV0ZtX.mjs +117 -0
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/usePaymentMethods-DBGyQA_I.mjs +21 -0
- package/dist/usePayments-ChGtK_As.mjs +323 -0
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/useService-DayNZhPh.mjs +56 -0
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +115 -77
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs +0 -56
- package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
- package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs +0 -85
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs +0 -90
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs +0 -63
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs +0 -373
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DEo_ndpK.mjs +0 -58668
- package/dist/component-XHQYFLA_.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +0 -98
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +0 -584
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.es.js +0 -582
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +0 -129
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +0 -104
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +0 -133
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +0 -120
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -45
- package/dist/invoices-BW1notiX.js +0 -1
- package/dist/invoices-M5oYVch6.mjs +0 -84
- package/dist/paymentMethods-BX80t2zk.js +0 -1
- package/dist/paymentMethods-CqKUfc3w.mjs +0 -65
- package/dist/payments-BHv4hCeJ.js +0 -1
- package/dist/payments-CosaPZwo.mjs +0 -47
- package/dist/registry-BwKEYOf7.js +0 -1
- package/dist/registry-Cag1Jj7P.mjs +0 -143
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/Checkout/Checkout.es.js +0 -5142
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
- package/dist/solvimon-web.css +0 -1
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
- package/dist/subscriptions-CnxvsBXd.js +0 -1
- package/dist/useActionDispatchProvider-CgRcOqv3.mjs +0 -12
- package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
- package/dist/useCustomer-B0NK96dA.js +0 -1
- package/dist/useCustomer-DlcjY3fP.mjs +0 -45
- package/dist/useCustomerPaymentMethodOptions-BzEquyUV.mjs +0 -169
- package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
- package/dist/useIncrementalLoading-C7ToTmZK.mjs +0 -71
- package/dist/useIncrementalLoading-D60Vttil.js +0 -1
- package/dist/useInvoiceData-CcueV3We.mjs +0 -51
- package/dist/useInvoiceData-DstXfI7t.js +0 -1
- package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
- package/dist/useInvoicesList-DmzjgMlW.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useLoadInitialData-Dm48tlSO.mjs +0 -13
- package/dist/usePaymentMethods-DCGVRXA4.js +0 -1
- package/dist/usePaymentMethods-Db-1R6rI.mjs +0 -16
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
- package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
|
@@ -0,0 +1,1135 @@
|
|
|
1
|
+
import { ref as _, defineComponent as j, useModel as ne, computed as p, openBlock as s, createElementBlock as V, createVNode as S, unref as t, createSlots as yn, withCtx as v, createBlock as g, createTextVNode as E, toDisplayString as M, createCommentVNode as P, createElementVNode as A, mergeModels as me, toRef as Pn, withModifiers as wn, Fragment as ge, renderSlot as In, defineAsyncComponent as Oe, watch as z, mergeProps as Mn } from "vue";
|
|
2
|
+
import { u as Sn, g as En } from "../../useSubscription-lIGMFLG1.mjs";
|
|
3
|
+
import { a as Cn, _ as ee } from "../../Button.vue.es-BHbanjR0.mjs";
|
|
4
|
+
import { _ as ve } from "../../ErrorNotification.vue.es-CWIVt5q9.mjs";
|
|
5
|
+
import { e as ae, p as he, f as kn, a as q, d as F, j as An, k as $n, l as xn } from "../../customElements-d7Bhfqi_.mjs";
|
|
6
|
+
import { C as On } from "../../ContentWithAsideLayout-C2kFcft1.mjs";
|
|
7
|
+
import { u as Nn } from "../../useActionDispatchProvider-BWna0S6N.mjs";
|
|
8
|
+
import { u as Ln } from "../../usePortal--Uzbpbgr.mjs";
|
|
9
|
+
import { u as Tn } from "../../useSubscriptionActions-BSlJVB4p.mjs";
|
|
10
|
+
import { u as Dn } from "../../useCustomer-RUtEzDOY.mjs";
|
|
11
|
+
import { u as Gn } from "../../usePaymentMethods-DBGyQA_I.mjs";
|
|
12
|
+
import { u as Un, a as Bn, i as Rn } from "../../usePaymentMethodOptions-DDRjVvDJ.mjs";
|
|
13
|
+
import { u as zn } from "../../useLoadInitialData-CwySdYZM.mjs";
|
|
14
|
+
import { c as Ge } from "../../invoices-CXvL8KQx.mjs";
|
|
15
|
+
import { k as Vn, d as Fn, l as jn } from "../../subscription-DQ5mRp_e.mjs";
|
|
16
|
+
import { c as Ue } from "../../subscriptions-Bm1eu9wc.mjs";
|
|
17
|
+
import { c as Wn, _ as Yn } from "../../SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs";
|
|
18
|
+
import { _ as qn } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs";
|
|
19
|
+
import { _ as Ne } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
20
|
+
import { _ as Be } from "../../Avatar.vue.es-DrbtUiLO.mjs";
|
|
21
|
+
import { _ as Hn } from "../../Chip.vue.es-Dc6-PjEn.mjs";
|
|
22
|
+
import { _ as Kn } from "../../RadioGroupExtended.vue.es-hDmUAKIA.mjs";
|
|
23
|
+
import { _ as Xn } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs";
|
|
24
|
+
import { _ as Zn } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs";
|
|
25
|
+
import { u as Jn } from "../../useDefaultPaymentMethod-Dliq6_Yw.mjs";
|
|
26
|
+
import { _ as Qn } from "../../InvoicePreview.vue.es-BvnikfEH.mjs";
|
|
27
|
+
import { _ as te } from "../../Section.vue.es-CwKTCeZ1.mjs";
|
|
28
|
+
import { _ as Re } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
29
|
+
import { _ as et } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs";
|
|
30
|
+
import { _ as nt } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs";
|
|
31
|
+
import { _ as Le } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs";
|
|
32
|
+
import { w as tt, h as at } from "../../pricingPlanScheduleOverrides-GON_34ep.mjs";
|
|
33
|
+
import { i as it } from "../../paymentOutcome-D59QkGfm.mjs";
|
|
34
|
+
function st() {
|
|
35
|
+
const { getInvoicePreview: n } = Ge(), o = ae(), i = _(), m = _(!1), u = _(), f = he();
|
|
36
|
+
return { invoice: i, isPending: m, error: u, load: async ({
|
|
37
|
+
subscription: C,
|
|
38
|
+
scheduleInfo: w,
|
|
39
|
+
enabledPricingIds: b
|
|
40
|
+
}) => {
|
|
41
|
+
const r = Vn({
|
|
42
|
+
enabledPricings: b.map((y) => ({ pricing_id: y })),
|
|
43
|
+
pricingPlanScheduleInfos: w ? [w] : []
|
|
44
|
+
});
|
|
45
|
+
if (!r) {
|
|
46
|
+
f(), i.value = void 0, u.value = void 0, m.value = !1;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const c = f();
|
|
50
|
+
m.value = !0, u.value = void 0;
|
|
51
|
+
try {
|
|
52
|
+
const y = await n({
|
|
53
|
+
// The subscription is running already, so it is priced as itself rather than as the
|
|
54
|
+
// template for a new one — and the customer it is invoiced to is known.
|
|
55
|
+
forExistingSubscription: !0,
|
|
56
|
+
pricingPlanSubscriptionId: C.id,
|
|
57
|
+
customizations: r
|
|
58
|
+
});
|
|
59
|
+
if (!c()) return;
|
|
60
|
+
i.value = y.invoice;
|
|
61
|
+
} catch (y) {
|
|
62
|
+
if (!c()) return;
|
|
63
|
+
o.error(
|
|
64
|
+
"INVOICE_PREVIEW_FAILED",
|
|
65
|
+
"Failed to load the invoice preview",
|
|
66
|
+
{ preview: "SUBSCRIPTION_UPGRADE" },
|
|
67
|
+
y
|
|
68
|
+
), u.value = y, i.value = void 0;
|
|
69
|
+
} finally {
|
|
70
|
+
c() && (m.value = !1);
|
|
71
|
+
}
|
|
72
|
+
} };
|
|
73
|
+
}
|
|
74
|
+
function ot() {
|
|
75
|
+
const { getChangePlanInvoicePreview: n } = Ge(), o = ae(), i = _(), m = _(!1), u = _(), f = he();
|
|
76
|
+
return { invoice: i, isPending: m, error: u, load: async ({
|
|
77
|
+
subscriptionId: w,
|
|
78
|
+
pricingPlanId: b
|
|
79
|
+
}) => {
|
|
80
|
+
const r = f();
|
|
81
|
+
i.value = void 0, m.value = !0, u.value = void 0;
|
|
82
|
+
try {
|
|
83
|
+
const c = await n({
|
|
84
|
+
id: w,
|
|
85
|
+
pricingPlanId: b
|
|
86
|
+
});
|
|
87
|
+
if (!r()) return;
|
|
88
|
+
i.value = c;
|
|
89
|
+
} catch (c) {
|
|
90
|
+
if (!r()) return;
|
|
91
|
+
o.error(
|
|
92
|
+
"INVOICE_PREVIEW_FAILED",
|
|
93
|
+
"Failed to load the invoice preview",
|
|
94
|
+
{ preview: "PLAN_CHANGE" },
|
|
95
|
+
c
|
|
96
|
+
), u.value = c;
|
|
97
|
+
} finally {
|
|
98
|
+
r() && (m.value = !1);
|
|
99
|
+
}
|
|
100
|
+
}, reset: () => {
|
|
101
|
+
f(), i.value = void 0, u.value = void 0, m.value = !1;
|
|
102
|
+
} };
|
|
103
|
+
}
|
|
104
|
+
const rt = (n, o) => n.order - o.order, ct = (n) => kn(n) && n.statusCode === 404, lt = (n) => !!n && n !== "NOT_ALLOWED", ut = (n, o, i, m) => {
|
|
105
|
+
const u = {
|
|
106
|
+
pricingPlanId: o.id,
|
|
107
|
+
name: o.name,
|
|
108
|
+
...o.description && { description: o.description }
|
|
109
|
+
};
|
|
110
|
+
if (n.pricing_plan_id === i.pricing_plan_id)
|
|
111
|
+
return { ...u, isCurrent: !0 };
|
|
112
|
+
if (n.order === i.order) return;
|
|
113
|
+
const f = n.order > i.order ? "UPGRADE" : "DOWNGRADE", d = f === "UPGRADE" ? m.upgrade_type : m.downgrade_type;
|
|
114
|
+
if (lt(d))
|
|
115
|
+
return { ...u, isCurrent: !1, direction: f, changeType: d };
|
|
116
|
+
};
|
|
117
|
+
function dt() {
|
|
118
|
+
const { getSubscriptionPricingPlanGroup: n } = Ue(), o = ae(), i = _([]), m = _(), u = _(!1), f = _(), d = he();
|
|
119
|
+
return { options: i, currentPricingPlanId: m, isPending: u, error: f, load: async ({
|
|
120
|
+
subscriptionId: w,
|
|
121
|
+
scheduleInfo: b
|
|
122
|
+
}) => {
|
|
123
|
+
var h;
|
|
124
|
+
const r = b == null ? void 0 : b.pricing_plan_version, c = (r == null ? void 0 : r.pricing_plan_id) ?? ((h = r == null ? void 0 : r.pricing_plan) == null ? void 0 : h.id), y = d();
|
|
125
|
+
if (m.value = c, f.value = void 0, !c) {
|
|
126
|
+
i.value = [], u.value = !1;
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
u.value = !0;
|
|
130
|
+
try {
|
|
131
|
+
const $ = await n({ id: w });
|
|
132
|
+
if (!y()) return;
|
|
133
|
+
const Z = [...$.pricing_plans ?? []].sort(rt), T = Z.find(
|
|
134
|
+
({ pricing_plan_id: O }) => O === c
|
|
135
|
+
);
|
|
136
|
+
if ($.status !== "ACTIVE" || !T) {
|
|
137
|
+
i.value = [];
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
i.value = Z.flatMap((O) => {
|
|
141
|
+
const J = O.pricing_plan ?? (O === T ? r == null ? void 0 : r.pricing_plan : void 0), Q = J && ut(O, J, T, $);
|
|
142
|
+
return Q ? [Q] : [];
|
|
143
|
+
});
|
|
144
|
+
} catch ($) {
|
|
145
|
+
if (!y() || (i.value = [], ct($))) return;
|
|
146
|
+
o.error(
|
|
147
|
+
"PRICING_PLAN_GROUP_LOAD_FAILED",
|
|
148
|
+
"Failed to load the pricing plan group of the subscription",
|
|
149
|
+
{},
|
|
150
|
+
$
|
|
151
|
+
), f.value = $;
|
|
152
|
+
} finally {
|
|
153
|
+
y() && (u.value = !1);
|
|
154
|
+
}
|
|
155
|
+
} };
|
|
156
|
+
}
|
|
157
|
+
const pt = { class: "sv-subscription-plan-selector" }, mt = { class: "flex flex-wrap items-center gap-2" }, gt = /* @__PURE__ */ j({
|
|
158
|
+
__name: "SubscriptionPlanSelector",
|
|
159
|
+
props: /* @__PURE__ */ me({
|
|
160
|
+
options: { type: Array },
|
|
161
|
+
disabled: { type: Boolean },
|
|
162
|
+
avatar: { type: String }
|
|
163
|
+
}, {
|
|
164
|
+
pricingPlanId: {},
|
|
165
|
+
pricingPlanIdModifiers: {}
|
|
166
|
+
}),
|
|
167
|
+
emits: ["update:pricingPlanId"],
|
|
168
|
+
setup(n) {
|
|
169
|
+
const o = n, i = ne(n, "pricingPlanId"), { $t: m } = q(), u = p(
|
|
170
|
+
() => m({
|
|
171
|
+
defaultMessage: "Current plan",
|
|
172
|
+
id: "subscription_management.plan_selector.current_plan",
|
|
173
|
+
description: "Marks the plan a subscription already runs on"
|
|
174
|
+
})
|
|
175
|
+
), f = p(
|
|
176
|
+
() => o.options.map(({ pricingPlanId: b, name: r, description: c, isCurrent: y }) => ({
|
|
177
|
+
label: y ? `${r} (${u.value})` : r,
|
|
178
|
+
value: b,
|
|
179
|
+
...c && { description: c }
|
|
180
|
+
}))
|
|
181
|
+
), d = p(
|
|
182
|
+
() => new Map(o.options.map((b) => [b.pricingPlanId, b]))
|
|
183
|
+
), C = (b) => typeof b == "string" ? d.value.get(b) : void 0, w = p({
|
|
184
|
+
get: () => i.value,
|
|
185
|
+
set: (b) => {
|
|
186
|
+
i.value = typeof b == "string" ? b : void 0;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
return (b, r) => (s(), V("div", pt, [
|
|
190
|
+
S(t(Kn), {
|
|
191
|
+
modelValue: w.value,
|
|
192
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => w.value = c),
|
|
193
|
+
label: t(m)({
|
|
194
|
+
defaultMessage: "Pick your plan",
|
|
195
|
+
id: "subscription_management.plan_selector.title",
|
|
196
|
+
description: "Heading above the plans a subscription can be moved between"
|
|
197
|
+
}),
|
|
198
|
+
options: f.value,
|
|
199
|
+
direction: "column",
|
|
200
|
+
disabled: n.disabled,
|
|
201
|
+
"show-radio": !1
|
|
202
|
+
}, yn({
|
|
203
|
+
label: v(({ optionValue: c }) => {
|
|
204
|
+
var y;
|
|
205
|
+
return [
|
|
206
|
+
A("span", mt, [
|
|
207
|
+
S(t(F), {
|
|
208
|
+
tag: "span",
|
|
209
|
+
variant: "body",
|
|
210
|
+
weight: "semibold",
|
|
211
|
+
"no-spacing": ""
|
|
212
|
+
}, {
|
|
213
|
+
default: v(() => {
|
|
214
|
+
var h;
|
|
215
|
+
return [
|
|
216
|
+
E(M((h = C(c)) == null ? void 0 : h.name), 1)
|
|
217
|
+
];
|
|
218
|
+
}),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1024),
|
|
221
|
+
(y = C(c)) != null && y.isCurrent ? (s(), g(t(Hn), {
|
|
222
|
+
key: 0,
|
|
223
|
+
class: "sv-subscription-plan-selector__current",
|
|
224
|
+
intent: "brand",
|
|
225
|
+
size: "xs",
|
|
226
|
+
content: u.value
|
|
227
|
+
}, null, 8, ["content"])) : P("", !0)
|
|
228
|
+
])
|
|
229
|
+
];
|
|
230
|
+
}),
|
|
231
|
+
description: v(({ option: c }) => [
|
|
232
|
+
c.description ? (s(), g(t(F), {
|
|
233
|
+
key: 0,
|
|
234
|
+
tag: "span",
|
|
235
|
+
variant: "body-sm",
|
|
236
|
+
color: "secondary",
|
|
237
|
+
"no-spacing": ""
|
|
238
|
+
}, {
|
|
239
|
+
default: v(() => [
|
|
240
|
+
E(M(c.description), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 2
|
|
243
|
+
}, 1024)) : P("", !0)
|
|
244
|
+
]),
|
|
245
|
+
_: 2
|
|
246
|
+
}, [
|
|
247
|
+
n.avatar ? {
|
|
248
|
+
name: "prefix",
|
|
249
|
+
fn: v(() => [
|
|
250
|
+
S(t(Be), {
|
|
251
|
+
"image-src": n.avatar,
|
|
252
|
+
size: "md",
|
|
253
|
+
class: "shrink-0 self-center"
|
|
254
|
+
}, null, 8, ["image-src"])
|
|
255
|
+
]),
|
|
256
|
+
key: "0"
|
|
257
|
+
} : void 0
|
|
258
|
+
]), 1032, ["modelValue", "label", "options", "disabled"])
|
|
259
|
+
]));
|
|
260
|
+
}
|
|
261
|
+
}), vt = ["id"], ht = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, ft = { key: 2 }, bt = /* @__PURE__ */ j({
|
|
262
|
+
__name: "SubscriptionManagementForm",
|
|
263
|
+
props: /* @__PURE__ */ me({
|
|
264
|
+
id: { type: String },
|
|
265
|
+
pricingGroup: { type: Object },
|
|
266
|
+
planOptions: { type: Array },
|
|
267
|
+
paymentMethods: { type: Array },
|
|
268
|
+
hasExpiredPaymentMethod: { type: Boolean },
|
|
269
|
+
billingPeriod: { type: Object },
|
|
270
|
+
currency: { type: String },
|
|
271
|
+
disabled: { type: Boolean },
|
|
272
|
+
avatar: { type: String },
|
|
273
|
+
canAddPaymentMethod: { type: Boolean, default: !0 }
|
|
274
|
+
}, {
|
|
275
|
+
enabledPricingIds: { required: !0 },
|
|
276
|
+
enabledPricingIdsModifiers: {},
|
|
277
|
+
paymentMethodId: {},
|
|
278
|
+
paymentMethodIdModifiers: {},
|
|
279
|
+
pricingPlanId: {},
|
|
280
|
+
pricingPlanIdModifiers: {}
|
|
281
|
+
}),
|
|
282
|
+
emits: /* @__PURE__ */ me(["submit", "add-payment-method"], ["update:enabledPricingIds", "update:paymentMethodId", "update:pricingPlanId"]),
|
|
283
|
+
setup(n, { emit: o }) {
|
|
284
|
+
const i = n, m = o, u = ne(n, "enabledPricingIds"), f = ne(n, "paymentMethodId"), d = ne(n, "pricingPlanId"), { $t: C } = q(), { sortedPaymentMethods: w } = Jn({
|
|
285
|
+
paymentMethods: Pn(i, "paymentMethods"),
|
|
286
|
+
selectedPaymentMethodId: f
|
|
287
|
+
});
|
|
288
|
+
return (b, r) => (s(), V("form", {
|
|
289
|
+
id: n.id,
|
|
290
|
+
class: "sv-subscription-management-form",
|
|
291
|
+
onSubmit: r[4] || (r[4] = wn((c) => m("submit"), ["prevent"]))
|
|
292
|
+
}, [
|
|
293
|
+
A("div", ht, [
|
|
294
|
+
n.planOptions && n.planOptions.length > 1 ? (s(), V(ge, { key: 0 }, [
|
|
295
|
+
S(gt, {
|
|
296
|
+
"pricing-plan-id": d.value,
|
|
297
|
+
"onUpdate:pricingPlanId": r[0] || (r[0] = (c) => d.value = c),
|
|
298
|
+
class: "sv-subscription-management-form__plan",
|
|
299
|
+
options: n.planOptions,
|
|
300
|
+
disabled: n.disabled,
|
|
301
|
+
avatar: n.avatar
|
|
302
|
+
}, null, 8, ["pricing-plan-id", "options", "disabled", "avatar"]),
|
|
303
|
+
A("div", null, [
|
|
304
|
+
S(t(Ne), { spacing: "xs" })
|
|
305
|
+
])
|
|
306
|
+
], 64)) : P("", !0),
|
|
307
|
+
n.pricingGroup ? (s(), g(Xn, {
|
|
308
|
+
key: 1,
|
|
309
|
+
modelValue: u.value,
|
|
310
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => u.value = c),
|
|
311
|
+
class: "sv-subscription-management-form__pricing-group",
|
|
312
|
+
"group-name": n.pricingGroup.name,
|
|
313
|
+
pricings: n.pricingGroup.pricings,
|
|
314
|
+
"billing-period": n.billingPeriod,
|
|
315
|
+
currency: n.currency
|
|
316
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : P("", !0),
|
|
317
|
+
n.pricingGroup ? (s(), V("div", ft, [
|
|
318
|
+
S(t(Ne), { spacing: "xs" })
|
|
319
|
+
])) : P("", !0),
|
|
320
|
+
S(Zn, {
|
|
321
|
+
modelValue: f.value,
|
|
322
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => f.value = c),
|
|
323
|
+
class: "sv-subscription-management-form__payment-methods",
|
|
324
|
+
"payment-methods": t(w),
|
|
325
|
+
required: "",
|
|
326
|
+
"show-add-option": n.canAddPaymentMethod,
|
|
327
|
+
disabled: n.disabled,
|
|
328
|
+
label: t(C)({
|
|
329
|
+
defaultMessage: "Saved payment methods",
|
|
330
|
+
id: "subscription_management.payment_method_selector.saved_label",
|
|
331
|
+
description: "Label above the payment method that pays for the subscription change"
|
|
332
|
+
}),
|
|
333
|
+
onAddPaymentMethod: r[3] || (r[3] = (c) => m("add-payment-method"))
|
|
334
|
+
}, null, 8, ["modelValue", "payment-methods", "show-add-option", "disabled", "label"]),
|
|
335
|
+
n.hasExpiredPaymentMethod ? (s(), g(t(F), {
|
|
336
|
+
key: 3,
|
|
337
|
+
id: n.id && `${n.id}__expired-payment-method`,
|
|
338
|
+
variant: "body-sm",
|
|
339
|
+
color: "subtle",
|
|
340
|
+
tag: "p",
|
|
341
|
+
class: "sv-subscription-management-form__expired-payment-method"
|
|
342
|
+
}, {
|
|
343
|
+
default: v(() => [
|
|
344
|
+
E(M(t(C)({
|
|
345
|
+
defaultMessage: "The card this subscription is paid with has expired. Pick another payment method or add a new one.",
|
|
346
|
+
id: "subscription_management.expired_payment_method_replace",
|
|
347
|
+
description: "Shown under the payment method choice on the manage subscription screen when the card the subscription is paid with has expired"
|
|
348
|
+
})), 1)
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["id"])) : P("", !0)
|
|
352
|
+
])
|
|
353
|
+
], 40, vt));
|
|
354
|
+
}
|
|
355
|
+
}), _t = { class: "sv-subscription-management-summary__body grid grid-cols-1 gap-1" }, yt = { class: "flex flex-row items-center gap-3 px-3 py-2" }, Pt = ["title"], wt = /* @__PURE__ */ j({
|
|
356
|
+
__name: "SubscriptionManagementSummary",
|
|
357
|
+
props: {
|
|
358
|
+
invoice: { type: Object },
|
|
359
|
+
isPending: { type: Boolean },
|
|
360
|
+
hasError: { type: Boolean },
|
|
361
|
+
planName: { type: String },
|
|
362
|
+
avatar: { type: String }
|
|
363
|
+
},
|
|
364
|
+
setup(n) {
|
|
365
|
+
const { $t: o } = q(), i = p(() => ({
|
|
366
|
+
"invoice_preview.total_due_today_heading": o({
|
|
367
|
+
defaultMessage: "Total due",
|
|
368
|
+
id: "subscription_management.summary.total_due_heading",
|
|
369
|
+
description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
|
|
370
|
+
})
|
|
371
|
+
}));
|
|
372
|
+
return (m, u) => (s(), g(t(te), {
|
|
373
|
+
class: "sv-subscription-management-summary",
|
|
374
|
+
"no-border": "",
|
|
375
|
+
"no-spacing": "",
|
|
376
|
+
"content-background": "none",
|
|
377
|
+
title: t(o)({
|
|
378
|
+
defaultMessage: "Order summary",
|
|
379
|
+
id: "subscription_management.summary.title",
|
|
380
|
+
description: "Title of the block previewing what a subscription change is invoiced for"
|
|
381
|
+
})
|
|
382
|
+
}, {
|
|
383
|
+
default: v(() => [
|
|
384
|
+
A("div", _t, [
|
|
385
|
+
n.planName ? (s(), g(t(te), {
|
|
386
|
+
key: 0,
|
|
387
|
+
"no-spacing": "",
|
|
388
|
+
class: "sv-subscription-management-summary__plan"
|
|
389
|
+
}, {
|
|
390
|
+
default: v(() => [
|
|
391
|
+
A("div", yt, [
|
|
392
|
+
n.avatar ? (s(), g(t(Be), {
|
|
393
|
+
key: 0,
|
|
394
|
+
"image-src": n.avatar,
|
|
395
|
+
size: "lg",
|
|
396
|
+
class: "my-1"
|
|
397
|
+
}, null, 8, ["image-src"])) : P("", !0),
|
|
398
|
+
A("div", {
|
|
399
|
+
class: "min-w-0 grow",
|
|
400
|
+
title: n.planName
|
|
401
|
+
}, [
|
|
402
|
+
S(t(F), {
|
|
403
|
+
variant: "body",
|
|
404
|
+
weight: "semibold",
|
|
405
|
+
"no-spacing": "",
|
|
406
|
+
class: "truncate"
|
|
407
|
+
}, {
|
|
408
|
+
default: v(() => [
|
|
409
|
+
E(M(n.planName), 1)
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
})
|
|
413
|
+
], 8, Pt)
|
|
414
|
+
])
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
})) : P("", !0),
|
|
418
|
+
In(m.$slots, "default"),
|
|
419
|
+
n.hasError ? (s(), g(t(ve), {
|
|
420
|
+
key: 1,
|
|
421
|
+
class: "sv-subscription-management-summary__error sv-error",
|
|
422
|
+
title: t(o)({
|
|
423
|
+
defaultMessage: "Unable to calculate the total. Please try again.",
|
|
424
|
+
id: "subscription_management.summary.error",
|
|
425
|
+
description: "Error shown when the invoice preview for a subscription change cannot be loaded"
|
|
426
|
+
})
|
|
427
|
+
}, null, 8, ["title"])) : n.isPending || !n.invoice ? (s(), g(Re, {
|
|
428
|
+
key: 2,
|
|
429
|
+
variant: "section",
|
|
430
|
+
class: "sv-subscription-management-summary__skeleton min-h-[120px]"
|
|
431
|
+
}, {
|
|
432
|
+
default: v(() => [
|
|
433
|
+
n.isPending ? P("", !0) : (s(), g(t(F), {
|
|
434
|
+
key: 0,
|
|
435
|
+
variant: "body-sm",
|
|
436
|
+
color: "subtle",
|
|
437
|
+
tag: "div",
|
|
438
|
+
class: "sv-subscription-management-summary__empty-state"
|
|
439
|
+
}, {
|
|
440
|
+
default: v(() => [
|
|
441
|
+
E(M(t(o)({
|
|
442
|
+
defaultMessage: "Select your plan to see what it costs.",
|
|
443
|
+
id: "subscription_management.summary.empty_state",
|
|
444
|
+
description: "Shown in the order summary before a plan has been picked to preview"
|
|
445
|
+
})), 1)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}))
|
|
449
|
+
]),
|
|
450
|
+
_: 1
|
|
451
|
+
})) : (s(), g(t(te), {
|
|
452
|
+
key: 3,
|
|
453
|
+
class: "sv-subscription-management-summary__totals"
|
|
454
|
+
}, {
|
|
455
|
+
default: v(() => [
|
|
456
|
+
S(et, { messages: i.value }, {
|
|
457
|
+
default: v(() => [
|
|
458
|
+
S(t(Qn), {
|
|
459
|
+
class: "sv-subscription-management-summary__invoice",
|
|
460
|
+
variant: "without-products",
|
|
461
|
+
invoice: n.invoice,
|
|
462
|
+
"is-customer-facing": ""
|
|
463
|
+
}, null, 8, ["invoice"])
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["messages"])
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
}))
|
|
470
|
+
])
|
|
471
|
+
]),
|
|
472
|
+
_: 3
|
|
473
|
+
}, 8, ["title"]));
|
|
474
|
+
}
|
|
475
|
+
}), It = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, Mt = { class: "sv-subscription-management-success__message" }, St = /* @__PURE__ */ j({
|
|
476
|
+
__name: "SubscriptionManagementSuccess",
|
|
477
|
+
props: {
|
|
478
|
+
pricingPlanName: { type: String },
|
|
479
|
+
pricingGroupName: { type: String }
|
|
480
|
+
},
|
|
481
|
+
setup(n) {
|
|
482
|
+
const o = n, { $t: i } = q(), m = p(
|
|
483
|
+
() => i({
|
|
484
|
+
defaultMessage: "Subscription updated",
|
|
485
|
+
description: "Title shown on the manage subscription screen once the change is committed",
|
|
486
|
+
id: "subscription_management.success.title"
|
|
487
|
+
})
|
|
488
|
+
), u = p(() => o.pricingPlanName ? i(
|
|
489
|
+
{
|
|
490
|
+
defaultMessage: "Your subscription has been moved to {plan}. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
491
|
+
description: "Confirmation of a committed move to another plan within the same pricing plan group",
|
|
492
|
+
id: "subscription_management.success.plan_message"
|
|
493
|
+
},
|
|
494
|
+
{ plan: o.pricingPlanName }
|
|
495
|
+
) : o.pricingGroupName ? i(
|
|
496
|
+
{
|
|
497
|
+
defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
498
|
+
description: "Confirmation of the pricing group a committed subscription change applied to",
|
|
499
|
+
id: "subscription_management.success.message"
|
|
500
|
+
},
|
|
501
|
+
{ subject: o.pricingGroupName }
|
|
502
|
+
) : i({
|
|
503
|
+
defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
504
|
+
description: "Confirmation of a committed subscription change when the pricing group is not known",
|
|
505
|
+
id: "subscription_management.success.message_generic"
|
|
506
|
+
}));
|
|
507
|
+
return (f, d) => (s(), V("div", It, [
|
|
508
|
+
S(nt, {
|
|
509
|
+
status: "success",
|
|
510
|
+
title: m.value
|
|
511
|
+
}, {
|
|
512
|
+
default: v(() => [
|
|
513
|
+
A("span", Mt, M(u.value), 1)
|
|
514
|
+
]),
|
|
515
|
+
_: 1
|
|
516
|
+
}, 8, ["title"])
|
|
517
|
+
]));
|
|
518
|
+
}
|
|
519
|
+
}), Et = { class: "flex flex-row gap-2 px-3 py-2" }, Ct = /* @__PURE__ */ j({
|
|
520
|
+
__name: "SubscriptionPlanChangeSummary",
|
|
521
|
+
props: {
|
|
522
|
+
changeType: { type: String }
|
|
523
|
+
},
|
|
524
|
+
setup(n) {
|
|
525
|
+
const o = n, { $t: i } = q(), m = p(
|
|
526
|
+
() => o.changeType === "NEXT_BILLING_PERIOD" ? i({
|
|
527
|
+
defaultMessage: "The change takes effect at the start of your next billing period. You keep your current plan until then, and the new price appears on the invoice from that period onwards.",
|
|
528
|
+
id: "subscription_management.plan_change_summary.next_billing_period",
|
|
529
|
+
description: "Explains a plan change that only takes effect at the next billing period"
|
|
530
|
+
}) : i({
|
|
531
|
+
defaultMessage: "The change takes effect right away. The new price appears on your next invoice.",
|
|
532
|
+
id: "subscription_management.plan_change_summary.immediate",
|
|
533
|
+
description: "Explains a plan change that takes effect immediately"
|
|
534
|
+
})
|
|
535
|
+
);
|
|
536
|
+
return (u, f) => (s(), g(t(te), {
|
|
537
|
+
"no-spacing": "",
|
|
538
|
+
class: "sv-subscription-plan-change-summary"
|
|
539
|
+
}, {
|
|
540
|
+
default: v(() => [
|
|
541
|
+
A("div", Et, [
|
|
542
|
+
S(t(Cn), {
|
|
543
|
+
icon: "info",
|
|
544
|
+
size: "xs",
|
|
545
|
+
class: "mt-0.5 shrink-0 text-secondary"
|
|
546
|
+
}),
|
|
547
|
+
S(t(F), {
|
|
548
|
+
variant: "body-xs",
|
|
549
|
+
color: "secondary",
|
|
550
|
+
tag: "div",
|
|
551
|
+
"no-spacing": "",
|
|
552
|
+
class: "sv-subscription-plan-change-summary__timing"
|
|
553
|
+
}, {
|
|
554
|
+
default: v(() => [
|
|
555
|
+
E(M(m.value), 1)
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
})
|
|
559
|
+
])
|
|
560
|
+
]),
|
|
561
|
+
_: 1
|
|
562
|
+
}));
|
|
563
|
+
}
|
|
564
|
+
}), kt = { class: "sv-subscription-management__header flex flex-col gap-2 md:flex-row md:items-center" }, At = { class: "flex flex-col gap-2" }, Te = "sv-subscription-management-form", De = "sv-subscription-management__customized-pricing-message", $t = /* @__PURE__ */ j({
|
|
565
|
+
__name: "SubscriptionManagement",
|
|
566
|
+
props: {
|
|
567
|
+
configuration: { type: Object },
|
|
568
|
+
avatar: { type: String }
|
|
569
|
+
},
|
|
570
|
+
setup(n) {
|
|
571
|
+
const o = n, i = Oe(
|
|
572
|
+
() => import("../../AddPaymentMethodModal-Bs_aOOCX.mjs")
|
|
573
|
+
), m = Oe(
|
|
574
|
+
() => import("../../SubscriptionCancellationModal-C_xFPx1I.mjs")
|
|
575
|
+
), u = [
|
|
576
|
+
"BUY_NOW_PAY_LATER",
|
|
577
|
+
"CARD",
|
|
578
|
+
"DIGITAL_WALLET",
|
|
579
|
+
"DIRECT_DEBIT",
|
|
580
|
+
"ONLINE_BANKING"
|
|
581
|
+
], f = (e, a) => !!a && Rn(e) && e.customer_id === (a == null ? void 0 : a.customer_id) && u.includes(e.type), { $t: d } = q(), C = Ln(), w = ae(), { dispatchAction: b } = Nn(), { createPricingPlanSchedule: r } = Wn(), { changeSubscriptionPlan: c, setSubscriptionPaymentMethod: y } = Ue(), {
|
|
582
|
+
subscription: h,
|
|
583
|
+
get: $,
|
|
584
|
+
error: Z
|
|
585
|
+
} = Sn({
|
|
586
|
+
subscriptionId: o.configuration.subscriptionId
|
|
587
|
+
}), { items: T, fetchAll: O } = Gn({
|
|
588
|
+
customerId: C.value.customer_id
|
|
589
|
+
}), { paymentMethodOptions: J, get: Q } = Un(), { isLoading: ie } = zn(
|
|
590
|
+
$(),
|
|
591
|
+
O(),
|
|
592
|
+
Q({ customerId: C.value.customer_id })
|
|
593
|
+
), fe = () => $().catch((e) => {
|
|
594
|
+
w.error(
|
|
595
|
+
"SUBSCRIPTION_LOAD_FAILED",
|
|
596
|
+
"Failed to reload the subscription after it changed",
|
|
597
|
+
{},
|
|
598
|
+
e
|
|
599
|
+
);
|
|
600
|
+
}), se = p(
|
|
601
|
+
() => T.value.filter((e) => f(e, h.value))
|
|
602
|
+
), ze = p(
|
|
603
|
+
() => T.value.some(
|
|
604
|
+
(e) => {
|
|
605
|
+
var a;
|
|
606
|
+
return e.id === ((a = h.value) == null ? void 0 : a.payment_method_id) && Bn(e);
|
|
607
|
+
}
|
|
608
|
+
)
|
|
609
|
+
), D = p(
|
|
610
|
+
() => {
|
|
611
|
+
var e;
|
|
612
|
+
return Fn(((e = h.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
|
|
613
|
+
}
|
|
614
|
+
), Ve = p(() => {
|
|
615
|
+
const e = D.value;
|
|
616
|
+
return e != null && e.pricing_plan_version ? {
|
|
617
|
+
...e,
|
|
618
|
+
pricing_plan_version: tt(e)
|
|
619
|
+
} : e;
|
|
620
|
+
}), oe = p(
|
|
621
|
+
() => {
|
|
622
|
+
var e;
|
|
623
|
+
return En(((e = D.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
|
|
624
|
+
}
|
|
625
|
+
), H = p(
|
|
626
|
+
() => {
|
|
627
|
+
var e;
|
|
628
|
+
return at((e = D.value) == null ? void 0 : e.pricing_plan_schedule);
|
|
629
|
+
}
|
|
630
|
+
), G = p(() => {
|
|
631
|
+
const e = Ve.value;
|
|
632
|
+
if (!e)
|
|
633
|
+
return;
|
|
634
|
+
const { currentPricingId: a } = o.configuration;
|
|
635
|
+
return (a ? [a] : oe.value).map(
|
|
636
|
+
(I) => jn({ pricingPlanScheduleInfo: e, pricingId: I })
|
|
637
|
+
).find((I) => !!I);
|
|
638
|
+
}), Fe = p(
|
|
639
|
+
() => d({
|
|
640
|
+
defaultMessage: "Manage subscription",
|
|
641
|
+
id: "subscription_management.title",
|
|
642
|
+
description: "Title for the manage subscription page"
|
|
643
|
+
})
|
|
644
|
+
), U = _([]), x = _();
|
|
645
|
+
z(
|
|
646
|
+
[() => {
|
|
647
|
+
var e;
|
|
648
|
+
return (e = h.value) == null ? void 0 : e.payment_method_id;
|
|
649
|
+
}, se],
|
|
650
|
+
([e, a]) => {
|
|
651
|
+
!x.value && a.some(({ id: l }) => l === e) && (x.value = e);
|
|
652
|
+
},
|
|
653
|
+
{ immediate: !0 }
|
|
654
|
+
);
|
|
655
|
+
const je = p(
|
|
656
|
+
() => se.value.some(({ id: e }) => e === x.value)
|
|
657
|
+
), K = _(!1), We = p(() => {
|
|
658
|
+
var e, a;
|
|
659
|
+
return ((a = (e = h.value) == null ? void 0 : e.payment_acceptor_ids) == null ? void 0 : a.length) !== 0;
|
|
660
|
+
}), Ye = () => {
|
|
661
|
+
K.value = !1, O();
|
|
662
|
+
};
|
|
663
|
+
z(
|
|
664
|
+
[oe, G],
|
|
665
|
+
([e, a]) => {
|
|
666
|
+
const { currentPricingId: l } = o.configuration, I = ((a == null ? void 0 : a.pricings) ?? []).map(({ id: L }) => L);
|
|
667
|
+
U.value = l && I.includes(l) ? [...e.filter((L) => !I.includes(L)), l] : e;
|
|
668
|
+
},
|
|
669
|
+
{ immediate: !0 }
|
|
670
|
+
);
|
|
671
|
+
const be = p(() => {
|
|
672
|
+
const e = new Set(U.value), a = new Set(oe.value);
|
|
673
|
+
return e.size !== a.size || [...e].some((l) => !a.has(l));
|
|
674
|
+
}), {
|
|
675
|
+
options: re,
|
|
676
|
+
currentPricingPlanId: qe,
|
|
677
|
+
isPending: _e,
|
|
678
|
+
error: He,
|
|
679
|
+
load: Ke
|
|
680
|
+
} = dt(), ye = _(!1);
|
|
681
|
+
z(_e, (e, a) => {
|
|
682
|
+
a && !e && (ye.value = !0);
|
|
683
|
+
}), z(
|
|
684
|
+
D,
|
|
685
|
+
(e) => {
|
|
686
|
+
Ke({
|
|
687
|
+
subscriptionId: o.configuration.subscriptionId,
|
|
688
|
+
scheduleInfo: e
|
|
689
|
+
});
|
|
690
|
+
},
|
|
691
|
+
{ immediate: !0 }
|
|
692
|
+
);
|
|
693
|
+
const B = _();
|
|
694
|
+
z(
|
|
695
|
+
qe,
|
|
696
|
+
(e) => {
|
|
697
|
+
B.value = e;
|
|
698
|
+
},
|
|
699
|
+
{ immediate: !0 }
|
|
700
|
+
);
|
|
701
|
+
const N = p(
|
|
702
|
+
() => re.value.find((e) => e.pricingPlanId === B.value)
|
|
703
|
+
), k = p(
|
|
704
|
+
() => !!(N.value && !N.value.isCurrent)
|
|
705
|
+
), {
|
|
706
|
+
invoice: Xe,
|
|
707
|
+
isPending: Ze,
|
|
708
|
+
error: Je,
|
|
709
|
+
load: Qe
|
|
710
|
+
} = st();
|
|
711
|
+
z(
|
|
712
|
+
[U, h, D, H, k],
|
|
713
|
+
([e, a, l, I, L]) => {
|
|
714
|
+
!a || e.length === 0 || I || L || Qe({
|
|
715
|
+
subscription: a,
|
|
716
|
+
scheduleInfo: l,
|
|
717
|
+
enabledPricingIds: e
|
|
718
|
+
});
|
|
719
|
+
},
|
|
720
|
+
{ immediate: !0 }
|
|
721
|
+
);
|
|
722
|
+
const {
|
|
723
|
+
invoice: en,
|
|
724
|
+
isPending: nn,
|
|
725
|
+
error: tn,
|
|
726
|
+
load: an,
|
|
727
|
+
reset: sn
|
|
728
|
+
} = ot();
|
|
729
|
+
z(
|
|
730
|
+
[h, B, k, H],
|
|
731
|
+
([e, a, l, I]) => {
|
|
732
|
+
if (!e || !a || !l || I) {
|
|
733
|
+
sn();
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
an({
|
|
737
|
+
subscriptionId: e.id,
|
|
738
|
+
pricingPlanId: a
|
|
739
|
+
});
|
|
740
|
+
},
|
|
741
|
+
{ immediate: !0 }
|
|
742
|
+
);
|
|
743
|
+
const Pe = p(
|
|
744
|
+
() => k.value ? en.value : Xe.value
|
|
745
|
+
), we = p(
|
|
746
|
+
() => k.value ? nn.value : Ze.value
|
|
747
|
+
), Ie = p(
|
|
748
|
+
() => k.value ? tn.value : Je.value
|
|
749
|
+
), on = p(
|
|
750
|
+
() => {
|
|
751
|
+
var e, a, l, I;
|
|
752
|
+
return ((e = N.value) == null ? void 0 : e.name) ?? ((I = (l = (a = D.value) == null ? void 0 : a.pricing_plan_version) == null ? void 0 : l.pricing_plan) == null ? void 0 : I.name);
|
|
753
|
+
}
|
|
754
|
+
), ce = p(() => re.value.length > 1), rn = p(() => {
|
|
755
|
+
var e, a;
|
|
756
|
+
return k.value && ((e = N.value) == null ? void 0 : e.direction) === "UPGRADE" ? d({
|
|
757
|
+
defaultMessage: "Upgrade plan",
|
|
758
|
+
id: "subscription_management.update_button.upgrade_label",
|
|
759
|
+
description: "Label of the button that moves the subscription to a higher plan in its group"
|
|
760
|
+
}) : k.value && ((a = N.value) == null ? void 0 : a.direction) === "DOWNGRADE" ? d({
|
|
761
|
+
defaultMessage: "Downgrade plan",
|
|
762
|
+
id: "subscription_management.update_button.downgrade_label",
|
|
763
|
+
description: "Label of the button that moves the subscription to a lower plan in its group"
|
|
764
|
+
}) : ce.value && !k.value && !be.value ? d({
|
|
765
|
+
defaultMessage: "Your current plan",
|
|
766
|
+
id: "subscription_management.update_button.current_plan_label",
|
|
767
|
+
description: "Label of the disabled button while the customer has their current plan selected and nothing changed"
|
|
768
|
+
}) : d({
|
|
769
|
+
defaultMessage: "Update subscription",
|
|
770
|
+
id: "subscription_management.update_button.label",
|
|
771
|
+
description: "Label of the button that commits the subscription change"
|
|
772
|
+
});
|
|
773
|
+
}), W = _(!1), Y = _(), le = _(!1), ue = _(), de = _(!1), Me = p(
|
|
774
|
+
() => !ie.value && !W.value && !le.value && !!h.value && !H.value && je.value && (k.value || !!G.value && U.value.length > 0 && be.value) && !we.value && !Ie.value && !!Pe.value
|
|
775
|
+
), cn = async () => {
|
|
776
|
+
if (!Me.value || !h.value)
|
|
777
|
+
return;
|
|
778
|
+
W.value = !0, Y.value = void 0;
|
|
779
|
+
const e = () => d({
|
|
780
|
+
defaultMessage: "Something went wrong. Please try again.",
|
|
781
|
+
id: "subscription_management.update_error",
|
|
782
|
+
description: "Error shown when committing a subscription change fails"
|
|
783
|
+
}), a = !!(x.value && x.value !== h.value.payment_method_id);
|
|
784
|
+
if (x.value && a)
|
|
785
|
+
try {
|
|
786
|
+
await y({
|
|
787
|
+
id: h.value.id,
|
|
788
|
+
paymentMethodId: x.value
|
|
789
|
+
});
|
|
790
|
+
} catch (l) {
|
|
791
|
+
w.error(
|
|
792
|
+
"SUBSCRIPTION_PAYMENT_METHOD_UPDATE_FAILED",
|
|
793
|
+
"Failed to link the payment method to the subscription",
|
|
794
|
+
{},
|
|
795
|
+
l
|
|
796
|
+
), Y.value = e(), W.value = !1;
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
try {
|
|
800
|
+
k.value && B.value ? (await c({
|
|
801
|
+
id: h.value.id,
|
|
802
|
+
pricingPlanId: B.value
|
|
803
|
+
}), ue.value = N.value) : await r({
|
|
804
|
+
pricingPlanSubscriptionId: h.value.id,
|
|
805
|
+
enabledPricings: U.value.map((l) => ({
|
|
806
|
+
pricing_id: l
|
|
807
|
+
}))
|
|
808
|
+
}), de.value = !0;
|
|
809
|
+
} catch (l) {
|
|
810
|
+
if (k.value ? w.error(
|
|
811
|
+
"SUBSCRIPTION_PLAN_CHANGE_FAILED",
|
|
812
|
+
"Failed to move the subscription to another plan in its group",
|
|
813
|
+
{},
|
|
814
|
+
l
|
|
815
|
+
) : w.error(
|
|
816
|
+
"SUBSCRIPTION_UPDATE_FAILED",
|
|
817
|
+
"Failed to start a new pricing plan schedule",
|
|
818
|
+
{},
|
|
819
|
+
l
|
|
820
|
+
), a && fe(), it(l)) {
|
|
821
|
+
le.value = !0, Y.value = d({
|
|
822
|
+
defaultMessage: "We couldn't confirm your change. It may still go through, so check your subscription before trying again.",
|
|
823
|
+
id: "subscription_management.update_unconfirmed",
|
|
824
|
+
description: "Error shown when committing a subscription change got no clear answer, so the change may still have been made"
|
|
825
|
+
});
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
Y.value = e();
|
|
829
|
+
} finally {
|
|
830
|
+
W.value = !1;
|
|
831
|
+
}
|
|
832
|
+
}, pe = p(
|
|
833
|
+
() => {
|
|
834
|
+
var e, a, l;
|
|
835
|
+
return ((a = (e = D.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : a.billing_period) ?? ((l = h.value) == null ? void 0 : l.billing_period);
|
|
836
|
+
}
|
|
837
|
+
), {
|
|
838
|
+
isCancellable: ln,
|
|
839
|
+
isRenewable: un,
|
|
840
|
+
pendingVariant: Se,
|
|
841
|
+
confirmedVariant: Ee,
|
|
842
|
+
confirm: dn,
|
|
843
|
+
cancel: pn,
|
|
844
|
+
renew: mn,
|
|
845
|
+
dismiss: gn
|
|
846
|
+
} = Tn({ subscription: h }), { customer: Ce, get: vn } = Dn({ customerId: C.value.customer_id });
|
|
847
|
+
let ke = !1;
|
|
848
|
+
const Ae = () => {
|
|
849
|
+
ke || (ke = !0, vn.execute());
|
|
850
|
+
}, hn = () => {
|
|
851
|
+
Ae(), K.value = !0;
|
|
852
|
+
}, $e = _(!1), xe = (e) => {
|
|
853
|
+
$e.value = !0, Ae(), e === "RENEW" ? mn() : pn();
|
|
854
|
+
}, fn = p(
|
|
855
|
+
() => T.value.find(({ id: e }) => {
|
|
856
|
+
var a;
|
|
857
|
+
return e === ((a = h.value) == null ? void 0 : a.payment_method_id);
|
|
858
|
+
})
|
|
859
|
+
), bn = () => {
|
|
860
|
+
dn(), fe();
|
|
861
|
+
}, R = p(() => de.value ? "updated" : ie.value ? "loading" : !h.value && Z.value ? "load-error" : _e.value && !ye.value ? "loading" : !G.value && He.value ? "load-error" : (G.value || ce.value) && H.value ? "customized" : (G.value || ce.value) && pe.value ? "form" : "empty"), _n = p(() => {
|
|
862
|
+
const e = R.value === "customized" ? De : void 0;
|
|
863
|
+
return { form: Te, ...e && { "aria-describedby": e } };
|
|
864
|
+
});
|
|
865
|
+
return (e, a) => (s(), g(t(On), { class: "sv-subscription-management sv-root sv-screen" }, {
|
|
866
|
+
header: v(() => [
|
|
867
|
+
A("div", kt, [
|
|
868
|
+
S(t(F), {
|
|
869
|
+
variant: "heading-2",
|
|
870
|
+
tag: "h1",
|
|
871
|
+
class: "sv-subscription-management__title grow"
|
|
872
|
+
}, {
|
|
873
|
+
default: v(() => [
|
|
874
|
+
E(M(Fe.value), 1)
|
|
875
|
+
]),
|
|
876
|
+
_: 1
|
|
877
|
+
}),
|
|
878
|
+
R.value !== "updated" ? (s(), V(ge, { key: 0 }, [
|
|
879
|
+
t(un) ? (s(), g(t(ee), {
|
|
880
|
+
key: 0,
|
|
881
|
+
intent: "secondary",
|
|
882
|
+
class: "sv-action sv-action--secondary sv-subscription-management__renew w-full md:w-auto",
|
|
883
|
+
type: "button",
|
|
884
|
+
onClick: a[0] || (a[0] = (l) => xe("RENEW"))
|
|
885
|
+
}, {
|
|
886
|
+
default: v(() => [
|
|
887
|
+
E(M(t(d)({
|
|
888
|
+
defaultMessage: "Renew subscription",
|
|
889
|
+
id: "subscription_details.renew_button.label",
|
|
890
|
+
description: "Label for the renew subscription button on the subscription details page"
|
|
891
|
+
})), 1)
|
|
892
|
+
]),
|
|
893
|
+
_: 1
|
|
894
|
+
})) : t(ln) ? (s(), g(t(ee), {
|
|
895
|
+
key: 1,
|
|
896
|
+
intent: "secondary",
|
|
897
|
+
class: "sv-action sv-action--secondary sv-subscription-management__cancel w-full md:w-auto",
|
|
898
|
+
type: "button",
|
|
899
|
+
onClick: a[1] || (a[1] = (l) => xe("CANCEL"))
|
|
900
|
+
}, {
|
|
901
|
+
default: v(() => [
|
|
902
|
+
E(M(t(d)({
|
|
903
|
+
defaultMessage: "Cancel subscription",
|
|
904
|
+
id: "subscription_details.cancel_button.label",
|
|
905
|
+
description: "Label for the cancel subscription button on the subscription details page"
|
|
906
|
+
})), 1)
|
|
907
|
+
]),
|
|
908
|
+
_: 1
|
|
909
|
+
})) : P("", !0)
|
|
910
|
+
], 64)) : P("", !0)
|
|
911
|
+
])
|
|
912
|
+
]),
|
|
913
|
+
content: v(() => {
|
|
914
|
+
var l, I, L;
|
|
915
|
+
return [
|
|
916
|
+
t(Ee) ? (s(), g(Yn, {
|
|
917
|
+
key: 0,
|
|
918
|
+
class: "sv-subscription-management__cancellation-success",
|
|
919
|
+
variant: t(Ee)
|
|
920
|
+
}, null, 8, ["variant"])) : P("", !0),
|
|
921
|
+
R.value === "updated" ? (s(), g(St, {
|
|
922
|
+
key: 1,
|
|
923
|
+
class: "sv-subscription-management__success",
|
|
924
|
+
"pricing-group-name": ue.value || (l = G.value) == null ? void 0 : l.name,
|
|
925
|
+
"pricing-plan-name": (I = ue.value) == null ? void 0 : I.name
|
|
926
|
+
}, null, 8, ["pricing-group-name", "pricing-plan-name"])) : R.value === "loading" ? (s(), g(Re, {
|
|
927
|
+
key: 2,
|
|
928
|
+
variant: "section",
|
|
929
|
+
class: "min-h-[220px]"
|
|
930
|
+
})) : R.value === "load-error" ? (s(), g(t(ve), {
|
|
931
|
+
key: 3,
|
|
932
|
+
class: "sv-subscription-management__load-error sv-error",
|
|
933
|
+
title: t(d)({
|
|
934
|
+
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
935
|
+
id: "subscription_management.load_error",
|
|
936
|
+
description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
|
|
937
|
+
})
|
|
938
|
+
}, null, 8, ["title"])) : R.value === "customized" ? (s(), g(Le, {
|
|
939
|
+
key: 4,
|
|
940
|
+
class: "sv-subscription-management__customized-pricing",
|
|
941
|
+
icon: "info"
|
|
942
|
+
}, {
|
|
943
|
+
title: v(() => [
|
|
944
|
+
E(M(t(d)({
|
|
945
|
+
defaultMessage: "This subscription has custom pricing",
|
|
946
|
+
id: "subscription_management.customized_pricing.title",
|
|
947
|
+
description: "Title shown on the manage subscription screen in place of the form when the subscription has pricing customized for it, which cannot be changed here"
|
|
948
|
+
})), 1)
|
|
949
|
+
]),
|
|
950
|
+
message: v(() => [
|
|
951
|
+
A("span", { id: De }, M(t(d)({
|
|
952
|
+
defaultMessage: "Please contact support to change it.",
|
|
953
|
+
id: "subscription_management.customized_pricing.message",
|
|
954
|
+
description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
|
|
955
|
+
})), 1)
|
|
956
|
+
]),
|
|
957
|
+
_: 1
|
|
958
|
+
})) : R.value === "form" && pe.value ? (s(), g(bt, {
|
|
959
|
+
key: 5,
|
|
960
|
+
id: Te,
|
|
961
|
+
"enabled-pricing-ids": U.value,
|
|
962
|
+
"onUpdate:enabledPricingIds": a[2] || (a[2] = (X) => U.value = X),
|
|
963
|
+
"payment-method-id": x.value,
|
|
964
|
+
"onUpdate:paymentMethodId": a[3] || (a[3] = (X) => x.value = X),
|
|
965
|
+
"pricing-plan-id": B.value,
|
|
966
|
+
"onUpdate:pricingPlanId": a[4] || (a[4] = (X) => B.value = X),
|
|
967
|
+
class: "sv-subscription-management__form",
|
|
968
|
+
"pricing-group": k.value ? void 0 : G.value,
|
|
969
|
+
"plan-options": t(re),
|
|
970
|
+
"payment-methods": se.value,
|
|
971
|
+
"has-expired-payment-method": ze.value,
|
|
972
|
+
"billing-period": pe.value,
|
|
973
|
+
currency: (L = t(h)) == null ? void 0 : L.billing_currency,
|
|
974
|
+
disabled: W.value || le.value,
|
|
975
|
+
avatar: n.avatar,
|
|
976
|
+
"can-add-payment-method": We.value,
|
|
977
|
+
onSubmit: cn,
|
|
978
|
+
onAddPaymentMethod: hn
|
|
979
|
+
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-plan-id", "pricing-group", "plan-options", "payment-methods", "has-expired-payment-method", "billing-period", "currency", "disabled", "avatar", "can-add-payment-method"])) : (s(), g(Le, {
|
|
980
|
+
key: 6,
|
|
981
|
+
class: "sv-subscription-management__empty-state",
|
|
982
|
+
icon: "receipt_long"
|
|
983
|
+
}, {
|
|
984
|
+
title: v(() => [
|
|
985
|
+
E(M(t(d)({
|
|
986
|
+
defaultMessage: "Nothing to change",
|
|
987
|
+
id: "subscription_management.empty_state.title",
|
|
988
|
+
description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
|
|
989
|
+
})), 1)
|
|
990
|
+
]),
|
|
991
|
+
message: v(() => [
|
|
992
|
+
E(M(t(d)({
|
|
993
|
+
defaultMessage: "This subscription has no options that can be changed right now.",
|
|
994
|
+
id: "subscription_management.empty_state.message",
|
|
995
|
+
description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
|
|
996
|
+
})), 1)
|
|
997
|
+
]),
|
|
998
|
+
_: 1
|
|
999
|
+
}))
|
|
1000
|
+
];
|
|
1001
|
+
}),
|
|
1002
|
+
aside: v(() => [
|
|
1003
|
+
de.value ? (s(), g(t(ee), {
|
|
1004
|
+
key: 0,
|
|
1005
|
+
size: "lg",
|
|
1006
|
+
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
|
|
1007
|
+
type: "button",
|
|
1008
|
+
onClick: a[5] || (a[5] = (l) => t(b)({ action: "view-customer-overview" }))
|
|
1009
|
+
}, {
|
|
1010
|
+
default: v(() => [
|
|
1011
|
+
E(M(t(d)({
|
|
1012
|
+
defaultMessage: "Done",
|
|
1013
|
+
id: "subscription_management.done_button.label",
|
|
1014
|
+
description: "Label of the button that leaves the manage subscription screen once the change is committed"
|
|
1015
|
+
})), 1)
|
|
1016
|
+
]),
|
|
1017
|
+
_: 1
|
|
1018
|
+
})) : (s(), V(ge, { key: 1 }, [
|
|
1019
|
+
H.value ? P("", !0) : (s(), g(wt, {
|
|
1020
|
+
key: 0,
|
|
1021
|
+
class: "sv-subscription-management__summary",
|
|
1022
|
+
invoice: Pe.value,
|
|
1023
|
+
"is-pending": t(ie) || we.value,
|
|
1024
|
+
"has-error": !!Ie.value,
|
|
1025
|
+
"plan-name": on.value,
|
|
1026
|
+
avatar: n.avatar
|
|
1027
|
+
}, {
|
|
1028
|
+
default: v(() => [
|
|
1029
|
+
k.value && N.value ? (s(), g(Ct, {
|
|
1030
|
+
key: 0,
|
|
1031
|
+
class: "sv-subscription-management__plan-change-summary",
|
|
1032
|
+
"change-type": N.value.changeType
|
|
1033
|
+
}, null, 8, ["change-type"])) : P("", !0)
|
|
1034
|
+
]),
|
|
1035
|
+
_: 1
|
|
1036
|
+
}, 8, ["invoice", "is-pending", "has-error", "plan-name", "avatar"])),
|
|
1037
|
+
Y.value ? (s(), g(t(ve), {
|
|
1038
|
+
key: 1,
|
|
1039
|
+
class: "sv-subscription-management__update-error sv-error",
|
|
1040
|
+
title: Y.value
|
|
1041
|
+
}, null, 8, ["title"])) : P("", !0),
|
|
1042
|
+
A("div", At, [
|
|
1043
|
+
S(t(ee), Mn({
|
|
1044
|
+
size: "lg",
|
|
1045
|
+
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",
|
|
1046
|
+
type: "submit"
|
|
1047
|
+
}, _n.value, {
|
|
1048
|
+
disabled: !Me.value,
|
|
1049
|
+
loading: W.value
|
|
1050
|
+
}), {
|
|
1051
|
+
default: v(() => [
|
|
1052
|
+
E(M(rn.value), 1)
|
|
1053
|
+
]),
|
|
1054
|
+
_: 1
|
|
1055
|
+
}, 16, ["disabled", "loading"]),
|
|
1056
|
+
S(qn, {
|
|
1057
|
+
class: "sv-subscription-management__kpi",
|
|
1058
|
+
"payment-method-options": t(J)
|
|
1059
|
+
}, null, 8, ["payment-method-options"])
|
|
1060
|
+
])
|
|
1061
|
+
], 64)),
|
|
1062
|
+
K.value ? (s(), g(t(i), {
|
|
1063
|
+
key: 2,
|
|
1064
|
+
"show-modal": K.value,
|
|
1065
|
+
customer: t(Ce),
|
|
1066
|
+
subscription: t(h),
|
|
1067
|
+
"sub-title": t(d)({
|
|
1068
|
+
defaultMessage: "Add a payment method to pay for your subscription.",
|
|
1069
|
+
id: "subscription_management.add_payment_method.subtitle",
|
|
1070
|
+
description: "Shown under the title of the modal that stores a new payment method on the manage subscription screen"
|
|
1071
|
+
}),
|
|
1072
|
+
onStored: Ye,
|
|
1073
|
+
onClose: a[6] || (a[6] = (l) => K.value = !1)
|
|
1074
|
+
}, null, 8, ["show-modal", "customer", "subscription", "sub-title"])) : P("", !0),
|
|
1075
|
+
$e.value ? (s(), g(t(m), {
|
|
1076
|
+
key: 3,
|
|
1077
|
+
"show-modal": !!t(Se),
|
|
1078
|
+
variant: t(Se),
|
|
1079
|
+
subscription: t(h),
|
|
1080
|
+
customer: t(Ce),
|
|
1081
|
+
"payment-method": fn.value,
|
|
1082
|
+
onConfirmed: bn,
|
|
1083
|
+
onClose: t(gn)
|
|
1084
|
+
}, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "onClose"])) : P("", !0)
|
|
1085
|
+
]),
|
|
1086
|
+
_: 1
|
|
1087
|
+
}));
|
|
1088
|
+
}
|
|
1089
|
+
}), xt = /* @__PURE__ */ j({
|
|
1090
|
+
__name: "SubscriptionManagement.entry",
|
|
1091
|
+
props: {
|
|
1092
|
+
environment: { type: String },
|
|
1093
|
+
locale: { type: String },
|
|
1094
|
+
dateLocale: { type: String },
|
|
1095
|
+
messages: { type: Object },
|
|
1096
|
+
portalToken: { type: Object },
|
|
1097
|
+
experimentalFeatures: { type: Array },
|
|
1098
|
+
logLevel: { type: String },
|
|
1099
|
+
onLog: { type: Function },
|
|
1100
|
+
cssOverrides: { type: [String, Array] },
|
|
1101
|
+
branding: { type: Object },
|
|
1102
|
+
portalObject: { type: null },
|
|
1103
|
+
configuration: { type: Object }
|
|
1104
|
+
},
|
|
1105
|
+
setup(n) {
|
|
1106
|
+
const o = $n("subscription-management");
|
|
1107
|
+
return (i, m) => {
|
|
1108
|
+
var u;
|
|
1109
|
+
return s(), g(t(An), {
|
|
1110
|
+
entry: i.$props,
|
|
1111
|
+
"component-name": t(o),
|
|
1112
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
1113
|
+
"required-configuration": { subscriptionId: (u = n.configuration) == null ? void 0 : u.subscriptionId }
|
|
1114
|
+
}, {
|
|
1115
|
+
default: v(() => {
|
|
1116
|
+
var f, d;
|
|
1117
|
+
return [
|
|
1118
|
+
(s(), g($t, {
|
|
1119
|
+
key: n.configuration.subscriptionId,
|
|
1120
|
+
configuration: n.configuration,
|
|
1121
|
+
avatar: ((d = (f = n.branding) == null ? void 0 : f.emblem) == null ? void 0 : d.public_url) ?? void 0
|
|
1122
|
+
}, null, 8, ["configuration", "avatar"]))
|
|
1123
|
+
];
|
|
1124
|
+
}),
|
|
1125
|
+
_: 1
|
|
1126
|
+
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
}), { define: da } = xn(
|
|
1130
|
+
xt,
|
|
1131
|
+
"subscription-management"
|
|
1132
|
+
);
|
|
1133
|
+
export {
|
|
1134
|
+
da as defineSolvimonSubscriptionManagement
|
|
1135
|
+
};
|