@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29
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 +151 -17
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
- package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
- package/dist/components/Invoice/Invoice.mjs +2691 -227
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
- package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
- package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
- package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/customer-BIjC0CWJ.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
- package/dist/paymentMethods-B_82JGk_.mjs +77 -0
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
- package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
- package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-CVyKw23D.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/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/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -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 +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
- package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
- package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/usePortal-CwR_FxTb.mjs +7 -0
- package/dist/useService-BZcbUZHI.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +33 -60
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import { c as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import {
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
enabledPricingIds:
|
|
1
|
+
import { ref as E, defineComponent as x, useModel as ne, computed as m, watch as q, openBlock as s, createElementBlock as B, withModifiers as _e, createElementVNode as C, createVNode as T, unref as t, createBlock as c, withCtx as d, Fragment as H, createTextVNode as y, toDisplayString as f, mergeModels as ie, createCommentVNode as W, mergeProps as fe } from "vue";
|
|
2
|
+
import { u as ye, w as we, a as Pe, h as Ie } from "../../pricingPlanScheduleOverrides-Dxv5FOBd.mjs";
|
|
3
|
+
import { _ as ae } from "../../Button.vue.es-Zw--kuaU.mjs";
|
|
4
|
+
import { _ as K } from "../../ErrorNotification.vue.es-DNd65mQq.mjs";
|
|
5
|
+
import { e as re, o as Se, a as U, d as Z, g as Ee, h as Me, j as ke } from "../../customElements-BTj4ii4f.mjs";
|
|
6
|
+
import { C as $e } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
7
|
+
import { u as Te } from "../../useActionDispatchProvider-3W2vEyIg.mjs";
|
|
8
|
+
import { u as Oe } from "../../usePortal-CwR_FxTb.mjs";
|
|
9
|
+
import { u as Ce } from "../../usePaymentMethods-ByaKF7mf.mjs";
|
|
10
|
+
import { u as Ne, i as Ae, a as Be } from "../../paymentMethods-Nfv9HdkS.mjs";
|
|
11
|
+
import { u as xe } from "../../useLoadInitialData-qzdnBoui.mjs";
|
|
12
|
+
import { c as De } from "../../invoices-e1sKLgxg.mjs";
|
|
13
|
+
import { b as Le, c as Ue, d as ze } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
|
+
import { c as je } from "../../pricingPlanSchedules-Dv7ZCgNp.mjs";
|
|
15
|
+
import { _ as Ge } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs";
|
|
16
|
+
import { _ as Re } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
17
|
+
import { _ as Ve } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs";
|
|
18
|
+
import { _ as Fe } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs";
|
|
19
|
+
import { _ as Ye } from "../../InvoicePreview.vue.es-4Q2hzaFS.mjs";
|
|
20
|
+
import { _ as qe } from "../../Section.vue.es-CvX9tg2f.mjs";
|
|
21
|
+
import { _ as ce } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
22
|
+
import { _ as He } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs";
|
|
23
|
+
import { _ as We } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
|
|
24
|
+
import { _ as se } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
|
|
25
|
+
function Ke() {
|
|
26
|
+
const { getInvoicePreview: a } = De(), l = re(), u = E(), h = E(!1), p = E(), o = Se();
|
|
27
|
+
return { invoice: u, isPending: h, error: p, load: async ({
|
|
28
|
+
subscription: O,
|
|
29
|
+
scheduleInfo: P,
|
|
30
|
+
enabledPricingIds: r
|
|
31
31
|
}) => {
|
|
32
|
-
const
|
|
33
|
-
enabledPricings:
|
|
34
|
-
pricingPlanScheduleInfos:
|
|
32
|
+
const i = Le({
|
|
33
|
+
enabledPricings: r.map((b) => ({ pricing_id: b })),
|
|
34
|
+
pricingPlanScheduleInfos: P ? [P] : []
|
|
35
35
|
});
|
|
36
|
-
if (!
|
|
37
|
-
|
|
36
|
+
if (!i) {
|
|
37
|
+
o(), u.value = void 0, p.value = void 0, h.value = !1;
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const v = o();
|
|
41
|
+
h.value = !0, p.value = void 0;
|
|
42
42
|
try {
|
|
43
|
-
const
|
|
43
|
+
const b = await a({
|
|
44
44
|
// The subscription is running already, so it is priced as itself rather than as the
|
|
45
45
|
// template for a new one — and the customer it is invoiced to is known.
|
|
46
46
|
forExistingSubscription: !0,
|
|
47
|
-
pricingPlanSubscriptionId:
|
|
48
|
-
customizations:
|
|
47
|
+
pricingPlanSubscriptionId: O.id,
|
|
48
|
+
customizations: i
|
|
49
49
|
});
|
|
50
|
-
if (!
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
if (!
|
|
50
|
+
if (!v()) return;
|
|
51
|
+
u.value = b.invoice;
|
|
52
|
+
} catch (b) {
|
|
53
|
+
if (!v()) return;
|
|
54
54
|
l.error(
|
|
55
55
|
"INVOICE_PREVIEW_FAILED",
|
|
56
56
|
"Failed to load the invoice preview",
|
|
57
57
|
{ preview: "SUBSCRIPTION_UPGRADE" },
|
|
58
|
-
|
|
59
|
-
),
|
|
58
|
+
b
|
|
59
|
+
), p.value = b, u.value = void 0;
|
|
60
60
|
} finally {
|
|
61
|
-
|
|
61
|
+
v() && (h.value = !1);
|
|
62
62
|
}
|
|
63
63
|
} };
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Qe = /* @__PURE__ */ x({
|
|
66
66
|
__name: "SubscriptionManagementForm",
|
|
67
|
-
props: /* @__PURE__ */
|
|
67
|
+
props: /* @__PURE__ */ ie({
|
|
68
|
+
id: { type: String },
|
|
68
69
|
pricingGroup: { type: Object },
|
|
69
70
|
paymentMethods: { type: Array },
|
|
70
|
-
|
|
71
|
+
hasExpiredPaymentMethod: { type: Boolean },
|
|
71
72
|
billingPeriod: { type: Object },
|
|
72
73
|
currency: { type: String },
|
|
73
74
|
disabled: { type: Boolean }
|
|
@@ -77,136 +78,135 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
77
78
|
paymentMethodId: {},
|
|
78
79
|
paymentMethodIdModifiers: {}
|
|
79
80
|
}),
|
|
80
|
-
emits: /* @__PURE__ */
|
|
81
|
-
setup(
|
|
82
|
-
const
|
|
83
|
-
const i =
|
|
81
|
+
emits: /* @__PURE__ */ ie(["submit"], ["update:enabledPricingIds", "update:paymentMethodId"]),
|
|
82
|
+
setup(a, { emit: l }) {
|
|
83
|
+
const u = a, h = l, p = ne(a, "enabledPricingIds"), o = ne(a, "paymentMethodId"), { $t: w } = U(), O = (r) => {
|
|
84
|
+
const i = r ? Date.parse(r) : NaN;
|
|
84
85
|
return Number.isFinite(i) ? i : 0;
|
|
85
|
-
},
|
|
86
|
-
() => [...
|
|
86
|
+
}, P = m(
|
|
87
|
+
() => [...u.paymentMethods ?? []].sort((r, i) => O(i.created_at) - O(r.created_at))
|
|
87
88
|
);
|
|
88
|
-
return
|
|
89
|
-
() =>
|
|
90
|
-
(
|
|
91
|
-
var
|
|
92
|
-
const
|
|
93
|
-
({ id:
|
|
89
|
+
return q(
|
|
90
|
+
() => u.paymentMethods,
|
|
91
|
+
(r, i) => {
|
|
92
|
+
var b;
|
|
93
|
+
const v = r == null ? void 0 : r.find(
|
|
94
|
+
({ id: I }) => !(i != null && i.some((z) => z.id === I))
|
|
94
95
|
);
|
|
95
|
-
if (
|
|
96
|
-
|
|
96
|
+
if (v && (i != null && i.length)) {
|
|
97
|
+
o.value = v.id;
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
|
-
|
|
100
|
+
r != null && r.some(({ id: I }) => I === o.value) || (o.value = (b = (r == null ? void 0 : r.find(({ is_default: I }) => I)) ?? P.value[0]) == null ? void 0 : b.id);
|
|
100
101
|
},
|
|
101
102
|
{ immediate: !0 }
|
|
102
|
-
), (
|
|
103
|
+
), (r, i) => (s(), B("form", {
|
|
104
|
+
id: a.id,
|
|
103
105
|
class: "sv-subscription-management-form",
|
|
104
|
-
onSubmit: i[
|
|
105
|
-
}, ["prevent"]))
|
|
106
|
+
onSubmit: i[2] || (i[2] = _e((v) => h("submit"), ["prevent"]))
|
|
106
107
|
}, [
|
|
107
|
-
C("div",
|
|
108
|
-
|
|
109
|
-
modelValue:
|
|
110
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
108
|
+
C("div", Je, [
|
|
109
|
+
T(Ve, {
|
|
110
|
+
modelValue: p.value,
|
|
111
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => p.value = v),
|
|
111
112
|
class: "sv-subscription-management-form__pricing-group",
|
|
112
|
-
"group-name":
|
|
113
|
-
pricings:
|
|
114
|
-
"billing-period":
|
|
115
|
-
currency:
|
|
113
|
+
"group-name": a.pricingGroup.name,
|
|
114
|
+
pricings: a.pricingGroup.pricings,
|
|
115
|
+
"billing-period": a.billingPeriod,
|
|
116
|
+
currency: a.currency
|
|
116
117
|
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
|
|
117
118
|
C("div", null, [
|
|
118
|
-
|
|
119
|
+
T(t(Re), { spacing: "xs" })
|
|
119
120
|
]),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
P.value.length > 0 ? (s(), c(Fe, {
|
|
122
|
+
key: 0,
|
|
123
|
+
modelValue: o.value,
|
|
124
|
+
"onUpdate:modelValue": i[1] || (i[1] = (v) => o.value = v),
|
|
123
125
|
class: "sv-subscription-management-form__payment-methods",
|
|
124
|
-
"payment-methods":
|
|
125
|
-
"
|
|
126
|
+
"payment-methods": P.value,
|
|
127
|
+
"show-add-option": !1,
|
|
126
128
|
required: "",
|
|
127
|
-
disabled:
|
|
128
|
-
label:
|
|
129
|
+
disabled: a.disabled,
|
|
130
|
+
label: t(w)({
|
|
129
131
|
defaultMessage: "Payment method",
|
|
130
132
|
id: "subscription_management.payment_method_selector.label",
|
|
131
133
|
description: "Label above the payment method that pays for the subscription change"
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
})
|
|
135
|
+
}, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (s(), c(t(Z), {
|
|
136
|
+
key: 1,
|
|
137
|
+
id: a.id && `${a.id}__no-payment-method`,
|
|
138
|
+
variant: "body-sm",
|
|
139
|
+
color: "subtle",
|
|
140
|
+
tag: "p",
|
|
141
|
+
class: "sv-subscription-management-form__no-payment-method"
|
|
142
|
+
}, {
|
|
143
|
+
default: d(() => [
|
|
144
|
+
a.hasExpiredPaymentMethod ? (s(), B(H, { key: 0 }, [
|
|
145
|
+
y(f(t(w)({
|
|
146
|
+
defaultMessage: "The card this subscription is paid with has expired. Replace it under your payment methods to make a change.",
|
|
147
|
+
id: "subscription_management.expired_payment_method",
|
|
148
|
+
description: "Shown in place of the payment method on the manage subscription screen when the card the subscription is paid with has expired"
|
|
149
|
+
})), 1)
|
|
150
|
+
], 64)) : (s(), B(H, { key: 1 }, [
|
|
151
|
+
y(f(t(w)({
|
|
152
|
+
defaultMessage: "This subscription has no payment method to charge the change to. Please contact support to change it.",
|
|
153
|
+
id: "subscription_management.no_payment_method",
|
|
154
|
+
description: "Shown in place of the payment method on the manage subscription screen when the subscription has no usable payment method"
|
|
155
|
+
})), 1)
|
|
156
|
+
], 64))
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["id"]))
|
|
135
160
|
])
|
|
136
|
-
],
|
|
137
|
-
}
|
|
138
|
-
}), Re = /* @__PURE__ */ M({
|
|
139
|
-
__name: "TranslationOverride",
|
|
140
|
-
props: {
|
|
141
|
-
messages: { type: Object }
|
|
142
|
-
},
|
|
143
|
-
setup(n) {
|
|
144
|
-
const l = n, t = le(pe, void 0), c = _(() => ({
|
|
145
|
-
...t == null ? void 0 : t.messages.value,
|
|
146
|
-
...l.messages
|
|
147
|
-
}));
|
|
148
|
-
return (d, v) => {
|
|
149
|
-
var y, o;
|
|
150
|
-
return m(), g(e(ge), {
|
|
151
|
-
locale: (y = e(t)) == null ? void 0 : y.locale.value,
|
|
152
|
-
"date-locale": (o = e(t)) == null ? void 0 : o.dateLocale.value,
|
|
153
|
-
messages: c.value,
|
|
154
|
-
"show-timezones": !1
|
|
155
|
-
}, {
|
|
156
|
-
default: f(() => [
|
|
157
|
-
de(d.$slots, "default")
|
|
158
|
-
]),
|
|
159
|
-
_: 3
|
|
160
|
-
}, 8, ["locale", "date-locale", "messages"]);
|
|
161
|
-
};
|
|
161
|
+
], 40, Ze));
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), Xe = /* @__PURE__ */ x({
|
|
164
164
|
__name: "SubscriptionManagementSummary",
|
|
165
165
|
props: {
|
|
166
166
|
invoice: { type: Object },
|
|
167
167
|
isPending: { type: Boolean },
|
|
168
168
|
hasError: { type: Boolean }
|
|
169
169
|
},
|
|
170
|
-
setup(
|
|
171
|
-
const { $t: l } =
|
|
170
|
+
setup(a) {
|
|
171
|
+
const { $t: l } = U(), u = m(() => ({
|
|
172
172
|
"invoice_preview.total_due_today_heading": l({
|
|
173
173
|
defaultMessage: "Total due",
|
|
174
174
|
id: "subscription_management.summary.total_due_heading",
|
|
175
175
|
description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
|
|
176
176
|
})
|
|
177
177
|
}));
|
|
178
|
-
return (
|
|
178
|
+
return (h, p) => (s(), c(t(qe), {
|
|
179
179
|
class: "sv-subscription-management-summary",
|
|
180
|
-
title:
|
|
180
|
+
title: t(l)({
|
|
181
181
|
defaultMessage: "Order summary",
|
|
182
182
|
id: "subscription_management.summary.title",
|
|
183
183
|
description: "Title of the block previewing what a subscription change is invoiced for"
|
|
184
184
|
})
|
|
185
185
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
|
|
186
|
+
default: d(() => [
|
|
187
|
+
a.hasError ? (s(), c(t(K), {
|
|
188
188
|
key: 0,
|
|
189
189
|
class: "sv-subscription-management-summary__error sv-error",
|
|
190
|
-
title:
|
|
190
|
+
title: t(l)({
|
|
191
191
|
defaultMessage: "Unable to calculate the total. Please try again.",
|
|
192
192
|
id: "subscription_management.summary.error",
|
|
193
193
|
description: "Error shown when the invoice preview for a subscription change cannot be loaded"
|
|
194
194
|
})
|
|
195
|
-
}, null, 8, ["title"])) :
|
|
195
|
+
}, null, 8, ["title"])) : a.isPending || !a.invoice ? (s(), c(ce, {
|
|
196
196
|
key: 1,
|
|
197
197
|
variant: "section",
|
|
198
198
|
class: "sv-subscription-management-summary__skeleton min-h-[120px]"
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
|
|
200
|
+
default: d(() => [
|
|
201
|
+
a.isPending ? W("", !0) : (s(), c(t(Z), {
|
|
202
202
|
key: 0,
|
|
203
203
|
variant: "body-sm",
|
|
204
204
|
color: "subtle",
|
|
205
205
|
tag: "div",
|
|
206
206
|
class: "sv-subscription-management-summary__empty-state"
|
|
207
207
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
|
|
208
|
+
default: d(() => [
|
|
209
|
+
y(f(t(l)({
|
|
210
210
|
defaultMessage: "Select your plan to see what it costs.",
|
|
211
211
|
id: "subscription_management.summary.empty_state",
|
|
212
212
|
description: "Shown in the order summary before a plan has been picked to preview"
|
|
@@ -216,14 +216,14 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
216
216
|
}))
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
|
-
})) : (
|
|
219
|
+
})) : (s(), c(He, {
|
|
220
220
|
key: 2,
|
|
221
|
-
messages:
|
|
221
|
+
messages: u.value
|
|
222
222
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
223
|
+
default: d(() => [
|
|
224
|
+
T(t(Ye), {
|
|
225
225
|
class: "sv-subscription-management-summary__invoice",
|
|
226
|
-
invoice:
|
|
226
|
+
invoice: a.invoice,
|
|
227
227
|
"is-customer-facing": ""
|
|
228
228
|
}, null, 8, ["invoice"])
|
|
229
229
|
]),
|
|
@@ -233,149 +233,117 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
233
233
|
_: 1
|
|
234
234
|
}, 8, ["title"]));
|
|
235
235
|
}
|
|
236
|
-
}),
|
|
236
|
+
}), et = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, tt = { class: "sv-subscription-management-success__message" }, nt = /* @__PURE__ */ x({
|
|
237
237
|
__name: "SubscriptionManagementSuccess",
|
|
238
238
|
props: {
|
|
239
239
|
pricingGroupName: { type: String }
|
|
240
240
|
},
|
|
241
|
-
setup(
|
|
242
|
-
const l =
|
|
243
|
-
() =>
|
|
241
|
+
setup(a) {
|
|
242
|
+
const l = a, { $t: u } = U(), h = m(
|
|
243
|
+
() => u({
|
|
244
244
|
defaultMessage: "Subscription updated",
|
|
245
245
|
description: "Title shown on the manage subscription screen once the change is committed",
|
|
246
246
|
id: "subscription_management.success.title"
|
|
247
247
|
})
|
|
248
|
-
),
|
|
249
|
-
() => l.pricingGroupName ?
|
|
248
|
+
), p = m(
|
|
249
|
+
() => l.pricingGroupName ? u(
|
|
250
250
|
{
|
|
251
251
|
defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
252
252
|
description: "Confirmation of the pricing group a committed subscription change applied to",
|
|
253
253
|
id: "subscription_management.success.message"
|
|
254
254
|
},
|
|
255
255
|
{ subject: l.pricingGroupName }
|
|
256
|
-
) :
|
|
256
|
+
) : u({
|
|
257
257
|
defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
258
258
|
description: "Confirmation of a committed subscription change when the pricing group is not known",
|
|
259
259
|
id: "subscription_management.success.message_generic"
|
|
260
260
|
})
|
|
261
261
|
);
|
|
262
|
-
return (
|
|
263
|
-
|
|
262
|
+
return (o, w) => (s(), B("div", et, [
|
|
263
|
+
T(We, {
|
|
264
264
|
status: "success",
|
|
265
|
-
title:
|
|
265
|
+
title: h.value
|
|
266
266
|
}, {
|
|
267
|
-
default:
|
|
268
|
-
C("span",
|
|
267
|
+
default: d(() => [
|
|
268
|
+
C("span", tt, f(p.value), 1)
|
|
269
269
|
]),
|
|
270
270
|
_: 1
|
|
271
271
|
}, 8, ["title"])
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
275
|
-
__name: "AddPaymentMethodModal",
|
|
276
|
-
props: {
|
|
277
|
-
showModal: { type: Boolean },
|
|
278
|
-
customer: { type: Object },
|
|
279
|
-
paymentMethodOptions: { type: Array },
|
|
280
|
-
isLoading: { type: Boolean }
|
|
281
|
-
},
|
|
282
|
-
emits: ["success", "failure", "close"],
|
|
283
|
-
setup(n, { emit: l }) {
|
|
284
|
-
const t = l, { $t: c } = E(), d = S(), v = _(() => {
|
|
285
|
-
var o;
|
|
286
|
-
return !!((o = d.value) != null && o.isSaving);
|
|
287
|
-
}), y = () => {
|
|
288
|
-
var o;
|
|
289
|
-
(o = d.value) == null || o.submit();
|
|
290
|
-
};
|
|
291
|
-
return (o, b) => (m(), g(e(Ue), {
|
|
292
|
-
"no-click-away": "",
|
|
293
|
-
size: "lg",
|
|
294
|
-
"show-modal": n.showModal,
|
|
295
|
-
"is-loading": v.value,
|
|
296
|
-
title: e(c)({
|
|
297
|
-
defaultMessage: "Add payment method",
|
|
298
|
-
id: "add_payment_method_modal.title",
|
|
299
|
-
description: "Title of the modal for adding a payment method"
|
|
300
|
-
}),
|
|
301
|
-
"sub-title": e(c)({
|
|
302
|
-
defaultMessage: "Add a new payment method to pay with.",
|
|
303
|
-
id: "add_payment_method_modal.subtitle",
|
|
304
|
-
description: "Subtitle of the modal for adding a payment method"
|
|
305
|
-
}),
|
|
306
|
-
"confirm-button-text": e(c)({
|
|
307
|
-
defaultMessage: "Save payment method",
|
|
308
|
-
id: "add_payment_method_modal.confirm_button.label",
|
|
309
|
-
description: "Label of the button that stores the payment method being added"
|
|
310
|
-
}),
|
|
311
|
-
"cancel-button-text": e(c)({
|
|
312
|
-
defaultMessage: "Cancel",
|
|
313
|
-
id: "add_payment_method_modal.cancel_button.label",
|
|
314
|
-
description: "Label of the button that abandons adding a payment method"
|
|
315
|
-
}),
|
|
316
|
-
onConfirm: y,
|
|
317
|
-
onClose: b[2] || (b[2] = (a) => t("close"))
|
|
318
|
-
}, {
|
|
319
|
-
body: f(() => [
|
|
320
|
-
h(je, {
|
|
321
|
-
ref_key: "addPaymentMethodRef",
|
|
322
|
-
ref: d,
|
|
323
|
-
class: "sv-add-payment-method-modal sv-add-payment-method-modal__form",
|
|
324
|
-
customer: n.customer,
|
|
325
|
-
"payment-method-options": n.paymentMethodOptions,
|
|
326
|
-
"is-loading": n.isLoading,
|
|
327
|
-
"is-active": n.showModal,
|
|
328
|
-
onSuccess: b[0] || (b[0] = (a) => t("success")),
|
|
329
|
-
onFailure: b[1] || (b[1] = (a) => t("failure", a))
|
|
330
|
-
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
}, 8, ["show-modal", "is-loading", "title", "sub-title", "confirm-button-text", "cancel-button-text"]));
|
|
334
|
-
}
|
|
335
|
-
}), Ke = { class: "sv-subscription-management__header" }, Je = { class: "flex flex-col gap-2" }, Qe = /* @__PURE__ */ M({
|
|
274
|
+
}), it = { class: "sv-subscription-management__header" }, at = { class: "flex flex-col gap-2" }, Y = "sv-subscription-management-form", oe = "sv-subscription-management__customized-pricing-message", st = /* @__PURE__ */ x({
|
|
336
275
|
__name: "SubscriptionManagement",
|
|
337
276
|
props: {
|
|
338
277
|
configuration: { type: Object }
|
|
339
278
|
},
|
|
340
|
-
setup(
|
|
341
|
-
const l =
|
|
279
|
+
setup(a) {
|
|
280
|
+
const l = a, u = `${Y}__no-payment-method`, h = [
|
|
281
|
+
"BUY_NOW_PAY_LATER",
|
|
282
|
+
"CARD",
|
|
283
|
+
"DIGITAL_WALLET",
|
|
284
|
+
"DIRECT_DEBIT",
|
|
285
|
+
"ONLINE_BANKING"
|
|
286
|
+
], p = (e, n) => !!n && e.id === (n == null ? void 0 : n.payment_method_id) && Be(e) && e.customer_id === (n == null ? void 0 : n.customer_id) && h.includes(e.type), { $t: o } = U(), w = Oe(), O = re(), { dispatchAction: P } = Te(), { createPricingPlanSchedule: r } = je(), {
|
|
287
|
+
subscription: i,
|
|
288
|
+
get: v,
|
|
289
|
+
error: b
|
|
290
|
+
} = ye({
|
|
342
291
|
subscriptionId: l.configuration.subscriptionId
|
|
343
|
-
}), { items:
|
|
344
|
-
customerId:
|
|
345
|
-
}), {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
292
|
+
}), { items: I, fetchAll: z } = Ce({
|
|
293
|
+
customerId: w.value.customer_id
|
|
294
|
+
}), { paymentMethodOptions: ue, get: le } = Ne(), { isLoading: j } = xe(
|
|
295
|
+
v(),
|
|
296
|
+
z(),
|
|
297
|
+
le({ customerId: w.value.customer_id })
|
|
298
|
+
), J = m(
|
|
299
|
+
() => I.value.filter((e) => p(e, i.value))
|
|
300
|
+
), me = m(
|
|
301
|
+
() => I.value.some(
|
|
302
|
+
(e) => {
|
|
303
|
+
var n;
|
|
304
|
+
return e.id === ((n = i.value) == null ? void 0 : n.payment_method_id) && Ae(e);
|
|
305
|
+
}
|
|
306
|
+
)
|
|
307
|
+
), N = m(
|
|
353
308
|
() => {
|
|
354
|
-
var
|
|
355
|
-
return
|
|
309
|
+
var e;
|
|
310
|
+
return Ue(((e = i.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
|
|
356
311
|
}
|
|
357
|
-
),
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
312
|
+
), de = m(() => {
|
|
313
|
+
const e = N.value;
|
|
314
|
+
return e != null && e.pricing_plan_version ? {
|
|
315
|
+
...e,
|
|
316
|
+
pricing_plan_version: we(e)
|
|
317
|
+
} : e;
|
|
318
|
+
}), G = m(
|
|
319
|
+
() => {
|
|
320
|
+
var e;
|
|
321
|
+
return Pe(((e = N.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
|
|
322
|
+
}
|
|
323
|
+
), D = m(
|
|
324
|
+
() => {
|
|
325
|
+
var e;
|
|
326
|
+
return Ie((e = N.value) == null ? void 0 : e.pricing_plan_schedule);
|
|
327
|
+
}
|
|
328
|
+
), S = m(() => {
|
|
329
|
+
const e = de.value;
|
|
330
|
+
if (!e)
|
|
361
331
|
return;
|
|
362
|
-
const { enabledPricingId:
|
|
363
|
-
return (
|
|
364
|
-
({
|
|
365
|
-
)
|
|
366
|
-
|
|
367
|
-
).find((p) => !!p);
|
|
368
|
-
}), ne = _(
|
|
332
|
+
const { enabledPricingId: n } = l.configuration;
|
|
333
|
+
return (n ? [n] : G.value).map(
|
|
334
|
+
(_) => ze({ pricingPlanScheduleInfo: e, pricingId: _ })
|
|
335
|
+
).find((_) => !!_);
|
|
336
|
+
}), pe = m(
|
|
369
337
|
() => {
|
|
370
|
-
var
|
|
371
|
-
return
|
|
338
|
+
var e;
|
|
339
|
+
return o(
|
|
372
340
|
{
|
|
373
341
|
defaultMessage: "Manage {subject}",
|
|
374
342
|
id: "subscription_management.title",
|
|
375
343
|
description: "Title for the manage subscription page, naming the pricing group being changed"
|
|
376
344
|
},
|
|
377
345
|
{
|
|
378
|
-
subject: ((
|
|
346
|
+
subject: ((e = S.value) == null ? void 0 : e.name) || o({
|
|
379
347
|
defaultMessage: "subscription",
|
|
380
348
|
id: "subscription_management.title.default_subject",
|
|
381
349
|
description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
|
|
@@ -383,165 +351,213 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
383
351
|
}
|
|
384
352
|
);
|
|
385
353
|
}
|
|
386
|
-
),
|
|
387
|
-
|
|
388
|
-
[G,
|
|
389
|
-
([
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
({ pricing_id: O }) => O
|
|
393
|
-
), { enabledPricingId: I } = l.configuration, p = ((r == null ? void 0 : r.pricings) ?? []).map(({ id: O }) => O);
|
|
394
|
-
$.value = I && p.includes(I) ? [...w.filter((O) => !p.includes(O)), I] : w;
|
|
354
|
+
), M = E([]), R = E();
|
|
355
|
+
q(
|
|
356
|
+
[G, S],
|
|
357
|
+
([e, n]) => {
|
|
358
|
+
const { enabledPricingId: g } = l.configuration, _ = ((n == null ? void 0 : n.pricings) ?? []).map(({ id: $ }) => $);
|
|
359
|
+
M.value = g && _.includes(g) ? [...e.filter(($) => !_.includes($)), g] : e;
|
|
395
360
|
},
|
|
396
361
|
{ immediate: !0 }
|
|
397
362
|
);
|
|
398
|
-
const {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
363
|
+
const ge = m(() => {
|
|
364
|
+
const e = new Set(M.value), n = new Set(G.value);
|
|
365
|
+
return e.size !== n.size || [...e].some((g) => !n.has(g));
|
|
366
|
+
}), {
|
|
367
|
+
invoice: Q,
|
|
368
|
+
isPending: X,
|
|
369
|
+
error: ee,
|
|
370
|
+
load: he
|
|
371
|
+
} = Ke();
|
|
372
|
+
q(
|
|
373
|
+
[M, i, N, D],
|
|
374
|
+
([e, n, g, _]) => {
|
|
375
|
+
!n || e.length === 0 || _ || he({
|
|
376
|
+
subscription: n,
|
|
377
|
+
scheduleInfo: g,
|
|
378
|
+
enabledPricingIds: e
|
|
410
379
|
});
|
|
411
380
|
},
|
|
412
381
|
{ immediate: !0 }
|
|
413
382
|
);
|
|
414
|
-
const
|
|
415
|
-
() => !
|
|
416
|
-
),
|
|
417
|
-
if (!(!
|
|
418
|
-
|
|
383
|
+
const A = E(!1), L = E(), V = E(!1), te = m(
|
|
384
|
+
() => !j.value && !A.value && !!i.value && !!S.value && !D.value && M.value.length > 0 && ge.value && !!R.value && !X.value && !ee.value && !!Q.value
|
|
385
|
+
), ve = async () => {
|
|
386
|
+
if (!(!te.value || !i.value)) {
|
|
387
|
+
A.value = !0, L.value = void 0;
|
|
419
388
|
try {
|
|
420
|
-
await
|
|
421
|
-
pricingPlanSubscriptionId:
|
|
422
|
-
enabledPricings:
|
|
423
|
-
pricing_id:
|
|
389
|
+
await r({
|
|
390
|
+
pricingPlanSubscriptionId: i.value.id,
|
|
391
|
+
enabledPricings: M.value.map((e) => ({
|
|
392
|
+
pricing_id: e
|
|
424
393
|
}))
|
|
425
|
-
}),
|
|
426
|
-
} catch (
|
|
427
|
-
|
|
394
|
+
}), V.value = !0;
|
|
395
|
+
} catch (e) {
|
|
396
|
+
O.error(
|
|
428
397
|
"SUBSCRIPTION_UPDATE_FAILED",
|
|
429
398
|
"Failed to start a new pricing plan schedule",
|
|
430
399
|
{},
|
|
431
|
-
|
|
432
|
-
),
|
|
400
|
+
e
|
|
401
|
+
), L.value = o({
|
|
433
402
|
defaultMessage: "Something went wrong. Please try again.",
|
|
434
403
|
id: "subscription_management.update_error",
|
|
435
404
|
description: "Error shown when committing a subscription change fails"
|
|
436
405
|
});
|
|
437
406
|
} finally {
|
|
438
|
-
|
|
407
|
+
A.value = !1;
|
|
439
408
|
}
|
|
440
409
|
}
|
|
441
|
-
},
|
|
410
|
+
}, F = m(
|
|
442
411
|
() => {
|
|
443
|
-
var
|
|
444
|
-
return ((
|
|
412
|
+
var e, n, g;
|
|
413
|
+
return ((n = (e = N.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.billing_period) ?? ((g = i.value) == null ? void 0 : g.billing_period);
|
|
445
414
|
}
|
|
446
|
-
)
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
415
|
+
), k = m(() => V.value ? "updated" : j.value ? "loading" : b.value ? "load-error" : S.value && D.value ? "customized" : S.value && F.value ? "form" : "empty"), be = m(() => {
|
|
416
|
+
const e = k.value === "customized" ? oe : k.value === "form" && J.value.length === 0 ? u : void 0;
|
|
417
|
+
return { form: Y, ...e && { "aria-describedby": e } };
|
|
418
|
+
});
|
|
419
|
+
return (e, n) => (s(), c(t($e), { class: "sv-subscription-management sv-root sv-screen" }, {
|
|
420
|
+
header: d(() => [
|
|
421
|
+
C("div", it, [
|
|
422
|
+
T(t(Z), {
|
|
451
423
|
variant: "heading-2",
|
|
452
424
|
tag: "h1",
|
|
453
425
|
class: "sv-subscription-management__title"
|
|
454
426
|
}, {
|
|
455
|
-
default:
|
|
456
|
-
|
|
427
|
+
default: d(() => [
|
|
428
|
+
y(f(pe.value), 1)
|
|
457
429
|
]),
|
|
458
430
|
_: 1
|
|
459
431
|
})
|
|
460
432
|
])
|
|
461
433
|
]),
|
|
462
|
-
content:
|
|
463
|
-
var
|
|
434
|
+
content: d(() => {
|
|
435
|
+
var g, _;
|
|
464
436
|
return [
|
|
465
|
-
|
|
437
|
+
k.value === "updated" ? (s(), c(nt, {
|
|
466
438
|
key: 0,
|
|
467
439
|
class: "sv-subscription-management__success",
|
|
468
|
-
"pricing-group-name": (
|
|
469
|
-
}, null, 8, ["pricing-group-name"])) :
|
|
440
|
+
"pricing-group-name": (g = S.value) == null ? void 0 : g.name
|
|
441
|
+
}, null, 8, ["pricing-group-name"])) : k.value === "loading" ? (s(), c(ce, {
|
|
470
442
|
key: 1,
|
|
471
443
|
variant: "section",
|
|
472
444
|
class: "min-h-[220px]"
|
|
473
|
-
})) : k.value
|
|
445
|
+
})) : k.value === "load-error" ? (s(), c(t(K), {
|
|
474
446
|
key: 2,
|
|
475
|
-
"
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
447
|
+
class: "sv-subscription-management__load-error sv-error",
|
|
448
|
+
title: t(o)({
|
|
449
|
+
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
450
|
+
id: "subscription_management.load_error",
|
|
451
|
+
description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
|
|
452
|
+
})
|
|
453
|
+
}, null, 8, ["title"])) : k.value === "customized" ? (s(), c(se, {
|
|
454
|
+
key: 3,
|
|
455
|
+
class: "sv-subscription-management__customized-pricing",
|
|
456
|
+
icon: "info"
|
|
457
|
+
}, {
|
|
458
|
+
title: d(() => [
|
|
459
|
+
y(f(t(o)({
|
|
460
|
+
defaultMessage: "This subscription has custom pricing",
|
|
461
|
+
id: "subscription_management.customized_pricing.title",
|
|
462
|
+
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"
|
|
463
|
+
})), 1)
|
|
464
|
+
]),
|
|
465
|
+
message: d(() => [
|
|
466
|
+
C("span", { id: oe }, f(t(o)({
|
|
467
|
+
defaultMessage: "Please contact support to change it.",
|
|
468
|
+
id: "subscription_management.customized_pricing.message",
|
|
469
|
+
description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
|
|
470
|
+
})), 1)
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
})) : k.value === "form" && S.value && F.value ? (s(), c(Qe, {
|
|
474
|
+
key: 4,
|
|
475
|
+
id: Y,
|
|
476
|
+
"enabled-pricing-ids": M.value,
|
|
477
|
+
"onUpdate:enabledPricingIds": n[0] || (n[0] = ($) => M.value = $),
|
|
478
|
+
"payment-method-id": R.value,
|
|
479
|
+
"onUpdate:paymentMethodId": n[1] || (n[1] = ($) => R.value = $),
|
|
479
480
|
class: "sv-subscription-management__form",
|
|
480
|
-
"pricing-group":
|
|
481
|
-
"payment-methods":
|
|
482
|
-
"payment-method
|
|
483
|
-
"billing-period":
|
|
484
|
-
currency: (
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
481
|
+
"pricing-group": S.value,
|
|
482
|
+
"payment-methods": J.value,
|
|
483
|
+
"has-expired-payment-method": me.value,
|
|
484
|
+
"billing-period": F.value,
|
|
485
|
+
currency: (_ = t(i)) == null ? void 0 : _.billing_currency,
|
|
486
|
+
disabled: A.value,
|
|
487
|
+
onSubmit: ve
|
|
488
|
+
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "has-expired-payment-method", "billing-period", "currency", "disabled"])) : (s(), c(se, {
|
|
489
|
+
key: 5,
|
|
490
|
+
class: "sv-subscription-management__empty-state",
|
|
491
|
+
icon: "receipt_long"
|
|
492
|
+
}, {
|
|
493
|
+
title: d(() => [
|
|
494
|
+
y(f(t(o)({
|
|
495
|
+
defaultMessage: "Nothing to change",
|
|
496
|
+
id: "subscription_management.empty_state.title",
|
|
497
|
+
description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
|
|
498
|
+
})), 1)
|
|
499
|
+
]),
|
|
500
|
+
message: d(() => [
|
|
501
|
+
y(f(t(o)({
|
|
502
|
+
defaultMessage: "This subscription has no options that can be changed right now.",
|
|
503
|
+
id: "subscription_management.empty_state.message",
|
|
504
|
+
description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
|
|
505
|
+
})), 1)
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}))
|
|
494
509
|
];
|
|
495
510
|
}),
|
|
496
|
-
aside:
|
|
497
|
-
|
|
511
|
+
aside: d(() => [
|
|
512
|
+
V.value ? (s(), c(t(ae), {
|
|
498
513
|
key: 0,
|
|
499
514
|
size: "lg",
|
|
500
515
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
|
|
501
516
|
type: "button",
|
|
502
|
-
onClick:
|
|
517
|
+
onClick: n[2] || (n[2] = (g) => t(P)({ action: "navigate-to-customer-overview" }))
|
|
503
518
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
519
|
+
default: d(() => [
|
|
520
|
+
y(f(t(o)({
|
|
506
521
|
defaultMessage: "Done",
|
|
507
522
|
id: "subscription_management.done_button.label",
|
|
508
523
|
description: "Label of the button that leaves the manage subscription screen once the change is committed"
|
|
509
524
|
})), 1)
|
|
510
525
|
]),
|
|
511
526
|
_: 1
|
|
512
|
-
})) : (
|
|
513
|
-
|
|
514
|
-
class: "sv-subscription-management__summary",
|
|
515
|
-
invoice: e(ie),
|
|
516
|
-
"is-pending": e(U) || e(ae),
|
|
517
|
-
"has-error": !!e(se)
|
|
518
|
-
}, null, 8, ["invoice", "is-pending", "has-error"]),
|
|
519
|
-
N.value ? (m(), g(e(Q), {
|
|
527
|
+
})) : (s(), B(H, { key: 1 }, [
|
|
528
|
+
D.value ? W("", !0) : (s(), c(Xe, {
|
|
520
529
|
key: 0,
|
|
530
|
+
class: "sv-subscription-management__summary",
|
|
531
|
+
invoice: t(Q),
|
|
532
|
+
"is-pending": t(j) || t(X),
|
|
533
|
+
"has-error": !!t(ee)
|
|
534
|
+
}, null, 8, ["invoice", "is-pending", "has-error"])),
|
|
535
|
+
L.value ? (s(), c(t(K), {
|
|
536
|
+
key: 1,
|
|
521
537
|
class: "sv-subscription-management__update-error sv-error",
|
|
522
|
-
title:
|
|
523
|
-
}, null, 8, ["title"])) :
|
|
524
|
-
C("div",
|
|
525
|
-
|
|
538
|
+
title: L.value
|
|
539
|
+
}, null, 8, ["title"])) : W("", !0),
|
|
540
|
+
C("div", at, [
|
|
541
|
+
T(t(ae), fe({
|
|
526
542
|
size: "lg",
|
|
527
543
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",
|
|
528
|
-
type: "
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}, {
|
|
533
|
-
default:
|
|
534
|
-
|
|
544
|
+
type: "submit"
|
|
545
|
+
}, be.value, {
|
|
546
|
+
disabled: !te.value,
|
|
547
|
+
loading: A.value
|
|
548
|
+
}), {
|
|
549
|
+
default: d(() => [
|
|
550
|
+
y(f(t(o)({
|
|
535
551
|
defaultMessage: "Update subscription",
|
|
536
552
|
id: "subscription_management.update_button.label",
|
|
537
553
|
description: "Label of the button that commits the subscription change"
|
|
538
554
|
})), 1)
|
|
539
555
|
]),
|
|
540
556
|
_: 1
|
|
541
|
-
},
|
|
542
|
-
|
|
557
|
+
}, 16, ["disabled", "loading"]),
|
|
558
|
+
T(Ge, {
|
|
543
559
|
class: "sv-subscription-management__kpi",
|
|
544
|
-
"payment-method-options":
|
|
560
|
+
"payment-method-options": t(ue)
|
|
545
561
|
}, null, 8, ["payment-method-options"])
|
|
546
562
|
])
|
|
547
563
|
], 64))
|
|
@@ -549,9 +565,10 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
549
565
|
_: 1
|
|
550
566
|
}));
|
|
551
567
|
}
|
|
552
|
-
}),
|
|
568
|
+
}), ot = /* @__PURE__ */ x({
|
|
553
569
|
__name: "SubscriptionManagement.entry",
|
|
554
570
|
props: {
|
|
571
|
+
portalToken: { type: Object },
|
|
555
572
|
environment: { type: String },
|
|
556
573
|
locale: { type: String },
|
|
557
574
|
dateLocale: { type: String },
|
|
@@ -568,24 +585,31 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
568
585
|
branding: { type: Object },
|
|
569
586
|
configuration: { type: Object }
|
|
570
587
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const l =
|
|
573
|
-
return (
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
h
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
588
|
+
setup(a) {
|
|
589
|
+
const l = Me("subscription-management");
|
|
590
|
+
return (u, h) => {
|
|
591
|
+
var p;
|
|
592
|
+
return s(), c(t(Ee), {
|
|
593
|
+
entry: u.$props,
|
|
594
|
+
"component-name": t(l),
|
|
595
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
596
|
+
"required-configuration": { subscriptionId: (p = a.configuration) == null ? void 0 : p.subscriptionId },
|
|
597
|
+
onError: h[0] || (h[0] = (o) => u.$emit("error", o))
|
|
598
|
+
}, {
|
|
599
|
+
default: d(() => [
|
|
600
|
+
(s(), c(st, {
|
|
601
|
+
key: a.configuration.subscriptionId,
|
|
602
|
+
configuration: a.configuration
|
|
603
|
+
}, null, 8, ["configuration"]))
|
|
604
|
+
]),
|
|
605
|
+
_: 1
|
|
606
|
+
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
607
|
+
};
|
|
584
608
|
}
|
|
585
|
-
}), { define:
|
|
586
|
-
|
|
609
|
+
}), { define: Ct } = ke(
|
|
610
|
+
ot,
|
|
587
611
|
"subscription-management"
|
|
588
612
|
);
|
|
589
613
|
export {
|
|
590
|
-
|
|
614
|
+
Ct as defineSolvimonSubscriptionManagement
|
|
591
615
|
};
|