@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
package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs}
RENAMED
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { a as
|
|
6
|
-
import { C as ue } from "./ContentWithAsideLayout-
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { _ as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { A as
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import { u as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const Ne = () => {
|
|
36
|
-
const { $t: e } = B();
|
|
1
|
+
import { computed as p, ref as N, defineComponent as F, openBlock as l, createBlock as g, unref as a, withCtx as u, createElementVNode as W, createVNode as S, createTextVNode as _, toDisplayString as y, createCommentVNode as v, createElementBlock as R, Fragment as Q, renderList as Z, watch as Y, defineAsyncComponent as H, toRef as ie, renderSlot as se, mergeProps as oe } from "vue";
|
|
2
|
+
import { _ as re } from "./Alert.vue.es-CNrEaLvh.mjs";
|
|
3
|
+
import { _ as z } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
4
|
+
import { _ as ee } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
|
|
5
|
+
import { a as j, d as $, e as q, g as ce, h as le, j as de } from "./customElements-BTj4ii4f.mjs";
|
|
6
|
+
import { C as ue } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
7
|
+
import { u as te } from "./useActionDispatchProvider-3W2vEyIg.mjs";
|
|
8
|
+
import { i as pe, c as me, d as ne, a as ge } from "./subscription-BhxoqwcT.mjs";
|
|
9
|
+
import { c as G } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
10
|
+
import { a as be, u as fe } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs";
|
|
11
|
+
import { _ as he } from "./CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs";
|
|
12
|
+
import { _ as ve } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
|
|
13
|
+
import { _ as _e } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
14
|
+
import { _ as V } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
15
|
+
import { a as ye, w as we, h as Se, u as Ce, g as Ie } from "./pricingPlanScheduleOverrides-Dxv5FOBd.mjs";
|
|
16
|
+
import { g as Me } from "./pricing-BOhvWWMj.mjs";
|
|
17
|
+
import { u as Pe } from "./useTimePeriod.es-BpdiVwg8.mjs";
|
|
18
|
+
import { f as X } from "./formatting.es-RclXHhKo.mjs";
|
|
19
|
+
import { _ as De } from "./PaymentMethod.vue.es-b0p3a0L-.mjs";
|
|
20
|
+
import { M as Oe } from "./Modal.vue.es-C8ZcO117.mjs";
|
|
21
|
+
import { c as $e } from "./subscriptions-BWXZGK0E.mjs";
|
|
22
|
+
import { a as Ae } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs";
|
|
23
|
+
import { A as ke } from "./ApiStatus-CSFKl_ra.mjs";
|
|
24
|
+
import { u as Ee } from "./useCustomer-cObBvDOu.mjs";
|
|
25
|
+
import { u as Le } from "./usePaymentMethods-ByaKF7mf.mjs";
|
|
26
|
+
import { u as xe } from "./useLoadInitialData-qzdnBoui.mjs";
|
|
27
|
+
import { c as Te } from "./pricingPlanSchedules-Dv7ZCgNp.mjs";
|
|
28
|
+
import { u as Be } from "./useService-BZcbUZHI.mjs";
|
|
29
|
+
import { g as K } from "./getComposedString.es-C__uhJpd.mjs";
|
|
30
|
+
import { g as ae } from "./pricing.es-QYWrKMUJ.mjs";
|
|
31
|
+
import { h as Ue } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
|
|
32
|
+
import { a as Ne } from "./paymentMethods-Nfv9HdkS.mjs";
|
|
33
|
+
const Fe = () => {
|
|
34
|
+
const { $t: e } = j();
|
|
37
35
|
return { getPriceLabel: (t) => {
|
|
38
36
|
if (!t.price)
|
|
39
37
|
return;
|
|
@@ -48,153 +46,154 @@ const Ne = () => {
|
|
|
48
46
|
);
|
|
49
47
|
} };
|
|
50
48
|
};
|
|
51
|
-
function
|
|
49
|
+
function je({
|
|
52
50
|
subscription: e
|
|
53
51
|
}) {
|
|
54
|
-
const { dispatchAction: i } =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var v;
|
|
60
|
-
const l = (v = e.value) == null ? void 0 : v.inactive_periods;
|
|
61
|
-
return Array.isArray(l) && l.length > 0;
|
|
62
|
-
}), s = U();
|
|
52
|
+
const { dispatchAction: i } = te(), t = p(
|
|
53
|
+
() => pe(e.value) && !me(e.value, "CANCEL")
|
|
54
|
+
), n = p(
|
|
55
|
+
() => !!ne(e.value)
|
|
56
|
+
), s = N();
|
|
63
57
|
return { isCancellable: t, isRenewable: n, pendingVariant: s, cancel: () => {
|
|
64
58
|
e.value && (s.value = "CANCEL");
|
|
65
59
|
}, renew: () => {
|
|
66
60
|
e.value && (s.value = "RENEW");
|
|
67
61
|
}, dismiss: () => {
|
|
68
62
|
s.value = void 0;
|
|
69
|
-
}, manage: () => {
|
|
63
|
+
}, manage: (b) => {
|
|
70
64
|
e.value && i({
|
|
71
65
|
action: "manage-subscription",
|
|
72
|
-
data: {
|
|
66
|
+
data: {
|
|
67
|
+
subscriptionId: e.value.id,
|
|
68
|
+
...b && { enabledPricingId: b }
|
|
69
|
+
}
|
|
73
70
|
});
|
|
74
71
|
} };
|
|
75
72
|
}
|
|
76
|
-
function
|
|
77
|
-
var n, s, o,
|
|
78
|
-
const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (
|
|
73
|
+
function Re(e) {
|
|
74
|
+
var n, s, o, r, d, c, b;
|
|
75
|
+
const i = (o = (s = (n = e.items) == null ? void 0 : n[0]) == null ? void 0 : s.configs) == null ? void 0 : o[0], t = (d = (r = i == null ? void 0 : i.details) == null ? void 0 : r.bands) == null ? void 0 : d[0];
|
|
79
76
|
return {
|
|
80
77
|
amount: (t == null ? void 0 : t.amount) ?? (t == null ? void 0 : t.fixed_amount),
|
|
81
|
-
billingPeriod: ((
|
|
78
|
+
billingPeriod: ((c = i == null ? void 0 : i.details) == null ? void 0 : c.pricing_period) ?? ((b = i == null ? void 0 : i.details) == null ? void 0 : b.billing_period)
|
|
82
79
|
};
|
|
83
80
|
}
|
|
84
|
-
function
|
|
85
|
-
var n
|
|
81
|
+
function Ve(e) {
|
|
82
|
+
var n;
|
|
86
83
|
const i = new Set(
|
|
87
|
-
(
|
|
88
|
-
({ pricing_id: c }) => c
|
|
89
|
-
)
|
|
84
|
+
ye(e.pricing_plan_schedule ?? {})
|
|
90
85
|
);
|
|
91
|
-
return i.size === 0 ? [] : (((
|
|
92
|
-
(
|
|
86
|
+
return i.size === 0 || !e.pricing_plan_version ? [] : (((n = we(e).pricing_categories) == null ? void 0 : n.flatMap(
|
|
87
|
+
(s) => s.pricing_groups ?? []
|
|
93
88
|
)) ?? []).flatMap(
|
|
94
|
-
(
|
|
95
|
-
pricingId:
|
|
96
|
-
pricingGroupId:
|
|
97
|
-
groupName:
|
|
89
|
+
(s) => (s.pricings ?? []).filter((o) => i.has(o.id)).map((o) => ({
|
|
90
|
+
pricingId: o.id,
|
|
91
|
+
pricingGroupId: s.id,
|
|
92
|
+
groupName: s.name,
|
|
98
93
|
// A pricing without a name of its own is only identifiable by the choice it belongs to.
|
|
99
|
-
name:
|
|
100
|
-
...
|
|
94
|
+
name: Me(o) || s.name,
|
|
95
|
+
...Re(o)
|
|
101
96
|
}))
|
|
102
97
|
);
|
|
103
98
|
}
|
|
104
|
-
const
|
|
99
|
+
const We = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" }, Ye = { class: "sv-enabled-pricings-list__item-content grow" }, ze = /* @__PURE__ */ F({
|
|
105
100
|
__name: "EnabledPricingsListItem",
|
|
106
101
|
props: {
|
|
107
|
-
entry: { type: Object }
|
|
102
|
+
entry: { type: Object },
|
|
103
|
+
canUpgrade: { type: Boolean, default: !0 }
|
|
108
104
|
},
|
|
109
105
|
emits: ["upgrade"],
|
|
110
106
|
setup(e) {
|
|
111
|
-
const i = e, { $t: t } =
|
|
112
|
-
const { amount:
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
107
|
+
const i = e, { $t: t } = j(), { formatTimePeriod: n } = Pe(), s = p(() => {
|
|
108
|
+
const { amount: o, billingPeriod: r } = i.entry;
|
|
109
|
+
if (o)
|
|
110
|
+
return r ? t(
|
|
115
111
|
{
|
|
116
112
|
defaultMessage: "{amount} per {period}",
|
|
117
113
|
id: "enabled_pricings_list.item.price",
|
|
118
114
|
description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
|
|
119
115
|
},
|
|
120
116
|
{
|
|
121
|
-
amount: X(
|
|
122
|
-
period:
|
|
117
|
+
amount: X(o),
|
|
118
|
+
period: n(r, {
|
|
123
119
|
short: !0,
|
|
124
120
|
hideValueForExactPeriods: !0
|
|
125
121
|
})
|
|
126
122
|
}
|
|
127
|
-
) : X(
|
|
123
|
+
) : X(o);
|
|
128
124
|
});
|
|
129
|
-
return (
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
return (o, r) => (l(), g(a(V), { class: "sv-enabled-pricings-list__item" }, {
|
|
126
|
+
default: u(() => [
|
|
127
|
+
W("div", We, [
|
|
128
|
+
W("div", Ye, [
|
|
129
|
+
S(a($), {
|
|
134
130
|
tag: "span",
|
|
135
131
|
variant: "body-xs",
|
|
136
132
|
color: "subtle",
|
|
137
133
|
class: "sv-enabled-pricings-list__item-group"
|
|
138
134
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
135
|
+
default: u(() => [
|
|
136
|
+
_(y(e.entry.groupName), 1)
|
|
141
137
|
]),
|
|
142
138
|
_: 1
|
|
143
139
|
}),
|
|
144
|
-
|
|
140
|
+
S(a($), {
|
|
145
141
|
tag: "h3",
|
|
146
142
|
variant: "heading-3",
|
|
147
143
|
"no-spacing": "",
|
|
148
144
|
class: "sv-enabled-pricings-list__item-name"
|
|
149
145
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
146
|
+
default: u(() => [
|
|
147
|
+
_(y(e.entry.name), 1)
|
|
152
148
|
]),
|
|
153
149
|
_: 1
|
|
154
150
|
}),
|
|
155
|
-
|
|
151
|
+
s.value ? (l(), g(a($), {
|
|
156
152
|
key: 0,
|
|
157
153
|
tag: "span",
|
|
158
154
|
variant: "body-sm",
|
|
159
155
|
color: "subtle",
|
|
160
156
|
class: "sv-enabled-pricings-list__item-price"
|
|
161
157
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
|
|
158
|
+
default: u(() => [
|
|
159
|
+
_(y(s.value), 1)
|
|
164
160
|
]),
|
|
165
161
|
_: 1
|
|
166
|
-
})) :
|
|
162
|
+
})) : v("", !0)
|
|
167
163
|
]),
|
|
168
|
-
|
|
164
|
+
e.canUpgrade ? (l(), g(a(z), {
|
|
165
|
+
key: 0,
|
|
169
166
|
intent: "secondary",
|
|
170
167
|
class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
|
|
171
168
|
type: "button",
|
|
172
169
|
size: "xs",
|
|
173
|
-
onClick:
|
|
170
|
+
onClick: r[0] || (r[0] = (d) => o.$emit("upgrade", e.entry))
|
|
174
171
|
}, {
|
|
175
|
-
default:
|
|
176
|
-
|
|
172
|
+
default: u(() => [
|
|
173
|
+
_(y(a(t)({
|
|
177
174
|
defaultMessage: "Upgrade",
|
|
178
175
|
id: "enabled_pricings_list.item.upgrade_button.label",
|
|
179
176
|
description: "Label for the button that changes which pricing is enabled for a group"
|
|
180
177
|
})), 1)
|
|
181
178
|
]),
|
|
182
179
|
_: 1
|
|
183
|
-
})
|
|
180
|
+
})) : v("", !0)
|
|
184
181
|
])
|
|
185
182
|
]),
|
|
186
183
|
_: 1
|
|
187
184
|
}));
|
|
188
185
|
}
|
|
189
|
-
}),
|
|
186
|
+
}), Xe = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" }, qe = /* @__PURE__ */ F({
|
|
190
187
|
__name: "EnabledPricingsList",
|
|
191
188
|
props: {
|
|
192
189
|
pricingPlanSchedule: { type: Object }
|
|
193
190
|
},
|
|
194
191
|
emits: ["upgrade"],
|
|
195
192
|
setup(e) {
|
|
196
|
-
const i = e, { $t: t } =
|
|
197
|
-
|
|
193
|
+
const i = e, { $t: t } = j(), n = p(() => Ve(i.pricingPlanSchedule)), s = p(
|
|
194
|
+
() => !Se(i.pricingPlanSchedule.pricing_plan_schedule)
|
|
195
|
+
);
|
|
196
|
+
return (o, r) => n.value.length > 0 ? (l(), g(a(V), {
|
|
198
197
|
key: 0,
|
|
199
198
|
class: "sv-enabled-pricings-list",
|
|
200
199
|
"content-background": "none",
|
|
@@ -206,35 +205,36 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
206
205
|
description: "Title for the block listing the pricings enabled on a subscription"
|
|
207
206
|
})
|
|
208
207
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
-
(
|
|
212
|
-
key:
|
|
213
|
-
entry:
|
|
214
|
-
|
|
215
|
-
|
|
208
|
+
default: u(() => [
|
|
209
|
+
W("div", Xe, [
|
|
210
|
+
(l(!0), R(Q, null, Z(n.value, (d) => (l(), g(ze, {
|
|
211
|
+
key: d.pricingId,
|
|
212
|
+
entry: d,
|
|
213
|
+
"can-upgrade": s.value,
|
|
214
|
+
onUpgrade: r[0] || (r[0] = (c) => o.$emit("upgrade", c))
|
|
215
|
+
}, null, 8, ["entry", "can-upgrade"]))), 128))
|
|
216
216
|
])
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
|
-
}, 8, ["title"])) :
|
|
219
|
+
}, 8, ["title"])) : v("", !0);
|
|
220
220
|
}
|
|
221
|
-
}),
|
|
221
|
+
}), Ge = { class: "sv-on-demand-items-card__items grid grid-cols-1 gap-1" }, He = {
|
|
222
222
|
key: 0,
|
|
223
223
|
class: "sv-on-demand-items-card__more"
|
|
224
|
-
},
|
|
224
|
+
}, J = 2, Ke = /* @__PURE__ */ F({
|
|
225
225
|
__name: "OnDemandItemsCard",
|
|
226
226
|
props: {
|
|
227
227
|
items: { type: Array }
|
|
228
228
|
},
|
|
229
229
|
emits: ["order"],
|
|
230
230
|
setup(e) {
|
|
231
|
-
const i = e, { $t: t } =
|
|
232
|
-
() => i.items.slice(0,
|
|
233
|
-
item:
|
|
234
|
-
priceLabel: n(
|
|
231
|
+
const i = e, { $t: t } = j(), { getPriceLabel: n } = Fe(), s = p(
|
|
232
|
+
() => i.items.slice(0, J).map((r) => ({
|
|
233
|
+
item: r,
|
|
234
|
+
priceLabel: n(r)
|
|
235
235
|
}))
|
|
236
|
-
), o =
|
|
237
|
-
return (
|
|
236
|
+
), o = p(() => Math.max(i.items.length - J, 0));
|
|
237
|
+
return (r, d) => (l(), g(a(V), {
|
|
238
238
|
class: "sv-on-demand-items-card",
|
|
239
239
|
"content-background": "none",
|
|
240
240
|
"no-border": "",
|
|
@@ -245,16 +245,16 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
245
245
|
description: "Title for the block that offers the on-demand items of a subscription"
|
|
246
246
|
})
|
|
247
247
|
}, {
|
|
248
|
-
right:
|
|
249
|
-
|
|
248
|
+
right: u(() => [
|
|
249
|
+
S(a(z), {
|
|
250
250
|
class: "sv-action sv-action--secondary sv-on-demand-items-card__order",
|
|
251
251
|
type: "button",
|
|
252
252
|
size: "sm",
|
|
253
253
|
intent: "secondary",
|
|
254
|
-
onClick:
|
|
254
|
+
onClick: d[0] || (d[0] = (c) => r.$emit("order"))
|
|
255
255
|
}, {
|
|
256
|
-
default:
|
|
257
|
-
|
|
256
|
+
default: u(() => [
|
|
257
|
+
_(y(a(t)({
|
|
258
258
|
defaultMessage: "Purchase",
|
|
259
259
|
id: "on_demand_items_card.order_button.label",
|
|
260
260
|
description: "Label for the button that opens the on-demand order form"
|
|
@@ -263,29 +263,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
263
263
|
_: 1
|
|
264
264
|
})
|
|
265
265
|
]),
|
|
266
|
-
default:
|
|
267
|
-
|
|
268
|
-
(
|
|
269
|
-
key:
|
|
266
|
+
default: u(() => [
|
|
267
|
+
W("ul", Ge, [
|
|
268
|
+
(l(!0), R(Q, null, Z(s.value, ({ item: c, priceLabel: b }) => (l(), R("li", {
|
|
269
|
+
key: c.pricingItemId,
|
|
270
270
|
class: "sv-on-demand-items-card__item"
|
|
271
271
|
}, [
|
|
272
|
-
|
|
272
|
+
S(a(V), {
|
|
273
273
|
"no-spacing": "",
|
|
274
274
|
"content-classes": "flex flex-col px-4 py-3"
|
|
275
275
|
}, {
|
|
276
|
-
default:
|
|
277
|
-
|
|
276
|
+
default: u(() => [
|
|
277
|
+
S(a($), {
|
|
278
278
|
tag: "span",
|
|
279
279
|
weight: "semibold",
|
|
280
280
|
"no-spacing": "",
|
|
281
281
|
class: "sv-on-demand-items-card__item-name break-words"
|
|
282
282
|
}, {
|
|
283
|
-
default:
|
|
284
|
-
|
|
283
|
+
default: u(() => [
|
|
284
|
+
_(y(c.name), 1)
|
|
285
285
|
]),
|
|
286
286
|
_: 2
|
|
287
287
|
}, 1024),
|
|
288
|
-
|
|
288
|
+
b ? (l(), g(a($), {
|
|
289
289
|
key: 0,
|
|
290
290
|
tag: "span",
|
|
291
291
|
variant: "body-sm",
|
|
@@ -293,29 +293,29 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
293
293
|
"no-spacing": "",
|
|
294
294
|
class: "sv-on-demand-items-card__item-price"
|
|
295
295
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
296
|
+
default: u(() => [
|
|
297
|
+
_(y(b), 1)
|
|
298
298
|
]),
|
|
299
299
|
_: 2
|
|
300
|
-
}, 1024)) :
|
|
300
|
+
}, 1024)) : v("", !0)
|
|
301
301
|
]),
|
|
302
302
|
_: 2
|
|
303
303
|
}, 1024)
|
|
304
304
|
]))), 128)),
|
|
305
|
-
o.value > 0 ? (
|
|
306
|
-
|
|
305
|
+
o.value > 0 ? (l(), R("li", He, [
|
|
306
|
+
S(a(V), {
|
|
307
307
|
"no-spacing": "",
|
|
308
308
|
"content-classes": "px-4 py-3 text-center"
|
|
309
309
|
}, {
|
|
310
|
-
default:
|
|
311
|
-
|
|
310
|
+
default: u(() => [
|
|
311
|
+
S(a($), {
|
|
312
312
|
tag: "span",
|
|
313
313
|
weight: "semibold",
|
|
314
314
|
color: "secondary",
|
|
315
315
|
"no-spacing": ""
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
|
|
317
|
+
default: u(() => [
|
|
318
|
+
_(y(a(t)(
|
|
319
319
|
{
|
|
320
320
|
defaultMessage: "+ {count} available",
|
|
321
321
|
id: "on_demand_items_card.more_available",
|
|
@@ -329,19 +329,19 @@ const je = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4
|
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
331
|
})
|
|
332
|
-
])) :
|
|
332
|
+
])) : v("", !0)
|
|
333
333
|
])
|
|
334
334
|
]),
|
|
335
335
|
_: 1
|
|
336
336
|
}, 8, ["title"]));
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function Je({
|
|
340
340
|
variant: e,
|
|
341
341
|
renewableUntil: i,
|
|
342
342
|
billingPeriodEndsAt: t
|
|
343
343
|
}) {
|
|
344
|
-
const { $t: n } =
|
|
344
|
+
const { $t: n } = j(), s = p(() => e.value === "RENEW"), o = p(
|
|
345
345
|
() => s.value ? n({
|
|
346
346
|
defaultMessage: "Renew subscription",
|
|
347
347
|
description: "Title of the renew subscription confirmation modal",
|
|
@@ -351,7 +351,7 @@ function He({
|
|
|
351
351
|
description: "Title of the cancel subscription confirmation modal",
|
|
352
352
|
id: "subscription_cancellation_modal.cancel.title"
|
|
353
353
|
})
|
|
354
|
-
),
|
|
354
|
+
), r = p(() => s.value ? i.value ? n(
|
|
355
355
|
{
|
|
356
356
|
defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
|
|
357
357
|
description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
|
|
@@ -373,7 +373,7 @@ function He({
|
|
|
373
373
|
defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
|
|
374
374
|
description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
|
|
375
375
|
id: "subscription_cancellation_modal.cancel.explanation"
|
|
376
|
-
})),
|
|
376
|
+
})), d = p(
|
|
377
377
|
() => s.value ? n({
|
|
378
378
|
defaultMessage: "Renew subscription",
|
|
379
379
|
description: "Label of the confirm button in the renew subscription modal",
|
|
@@ -383,13 +383,17 @@ function He({
|
|
|
383
383
|
description: "Label of the confirm button in the cancel subscription modal",
|
|
384
384
|
id: "subscription_cancellation_modal.cancel.confirm_button.label"
|
|
385
385
|
})
|
|
386
|
-
),
|
|
387
|
-
() => n({
|
|
386
|
+
), c = p(
|
|
387
|
+
() => s.value ? n({
|
|
388
388
|
defaultMessage: "Cancel",
|
|
389
389
|
description: "Label of the button that dismisses the cancellation modal",
|
|
390
390
|
id: "subscription_cancellation_modal.cancel_button.label"
|
|
391
|
+
}) : n({
|
|
392
|
+
defaultMessage: "Keep subscription",
|
|
393
|
+
description: "Label of the button that dismisses the cancel subscription modal without cancelling",
|
|
394
|
+
id: "subscription_cancellation_modal.cancel.keep_button.label"
|
|
391
395
|
})
|
|
392
|
-
),
|
|
396
|
+
), b = p(
|
|
393
397
|
() => s.value ? n({
|
|
394
398
|
defaultMessage: "We could not renew your subscription. Please try again.",
|
|
395
399
|
description: "Error shown when undoing a cancellation fails",
|
|
@@ -400,161 +404,124 @@ function He({
|
|
|
400
404
|
id: "subscription_cancellation_modal.cancel.error"
|
|
401
405
|
})
|
|
402
406
|
);
|
|
403
|
-
return { title: o, explanation:
|
|
404
|
-
}
|
|
405
|
-
const Ze = 50;
|
|
406
|
-
function Je() {
|
|
407
|
-
const { getPaymentMethods: e } = Pe(), i = ae();
|
|
408
|
-
return { paymentMethod: i, get: async ({
|
|
409
|
-
customerId: n,
|
|
410
|
-
paymentMethodId: s
|
|
411
|
-
}) => {
|
|
412
|
-
const o = await Me(async (c) => {
|
|
413
|
-
const r = await e({
|
|
414
|
-
customerId: n,
|
|
415
|
-
pagination: { page: c, pageSize: Ze }
|
|
416
|
-
});
|
|
417
|
-
if (!Ie(r))
|
|
418
|
-
throw new Error("Could not load the customer’s payment methods.");
|
|
419
|
-
return r;
|
|
420
|
-
});
|
|
421
|
-
return i.value = o.data.find(({ id: c }) => c === s), i.value;
|
|
422
|
-
} };
|
|
407
|
+
return { title: o, explanation: r, confirmButtonText: d, cancelButtonText: c, errorMessage: b };
|
|
423
408
|
}
|
|
424
|
-
const
|
|
409
|
+
const Qe = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" }, Ze = {
|
|
425
410
|
key: 0,
|
|
426
411
|
class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
|
|
427
412
|
}, et = {
|
|
428
413
|
key: 0,
|
|
429
414
|
class: "sv-subscription-cancellation-modal__renews flex gap-1"
|
|
430
|
-
}, tt = /* @__PURE__ */
|
|
415
|
+
}, tt = /* @__PURE__ */ F({
|
|
431
416
|
__name: "SubscriptionCancellationModal",
|
|
432
417
|
props: {
|
|
433
418
|
showModal: { type: Boolean },
|
|
434
419
|
variant: { type: null },
|
|
435
420
|
subscription: { type: Object },
|
|
421
|
+
customer: { type: Object },
|
|
422
|
+
paymentMethod: { type: Object },
|
|
436
423
|
avatar: { type: String }
|
|
437
424
|
},
|
|
438
425
|
emits: ["confirmed", "close"],
|
|
439
426
|
setup(e, { emit: i }) {
|
|
440
|
-
const t = e, n = i, { $t: s, formatDate: o } =
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
date: g.start_at,
|
|
446
|
-
format: "date",
|
|
447
|
-
offsetType: "local"
|
|
448
|
-
});
|
|
449
|
-
}), v = m(() => {
|
|
450
|
-
var g, d;
|
|
451
|
-
const b = (d = (g = t.subscription) == null ? void 0 : g.next_invoice) == null ? void 0 : d.invoice_date;
|
|
452
|
-
if (b)
|
|
453
|
-
return o({
|
|
454
|
-
date: b,
|
|
455
|
-
format: "date",
|
|
456
|
-
offsetType: "local"
|
|
457
|
-
});
|
|
458
|
-
}), P = v, L = m(
|
|
459
|
-
() => {
|
|
460
|
-
var b, g;
|
|
461
|
-
return (((g = (b = te(t.subscription)) == null ? void 0 : b.pricing_plan_schedule) == null ? void 0 : g.enabled_pricings) ?? []).map(({ pricing_id: d }) => d).filter((d) => !!d);
|
|
427
|
+
const t = e, n = i, { $t: s, formatDate: o } = j(), r = q(), { setSubscriptionCancellation: d } = $e(), c = N(t.variant);
|
|
428
|
+
Y(
|
|
429
|
+
() => t.variant,
|
|
430
|
+
(f) => {
|
|
431
|
+
f && (c.value = f);
|
|
462
432
|
}
|
|
463
|
-
), { title: E, explanation: k, confirmButtonText: I, cancelButtonText: O, errorMessage: x } = He({ variant: h, renewableUntil: l, billingPeriodEndsAt: v }), { paymentMethod: A, get: N } = Je();
|
|
464
|
-
W(
|
|
465
|
-
[
|
|
466
|
-
() => t.showModal,
|
|
467
|
-
() => {
|
|
468
|
-
var b;
|
|
469
|
-
return (b = t.subscription) == null ? void 0 : b.payment_method_id;
|
|
470
|
-
},
|
|
471
|
-
() => {
|
|
472
|
-
var b;
|
|
473
|
-
return (b = t.subscription) == null ? void 0 : b.customer_id;
|
|
474
|
-
}
|
|
475
|
-
],
|
|
476
|
-
([b, g, d]) => {
|
|
477
|
-
var M;
|
|
478
|
-
!b || !g || !d || g !== ((M = A.value) == null ? void 0 : M.id) && N({ customerId: d, paymentMethodId: g }).catch(() => {
|
|
479
|
-
});
|
|
480
|
-
},
|
|
481
|
-
{ immediate: !0 }
|
|
482
433
|
);
|
|
483
|
-
const
|
|
484
|
-
|
|
434
|
+
const b = (f) => {
|
|
435
|
+
var h;
|
|
436
|
+
const P = (h = t.customer) == null ? void 0 : h.timezone;
|
|
437
|
+
return o(P ? { date: f, format: "date", offsetType: "offsetted", timezone: P } : { date: f, format: "date", offsetType: "local" });
|
|
438
|
+
}, C = p(() => {
|
|
439
|
+
const f = ne(t.subscription);
|
|
440
|
+
return f ? b(f.start_at) : void 0;
|
|
441
|
+
}), k = p(() => {
|
|
442
|
+
var P, h;
|
|
443
|
+
const f = (h = (P = t.subscription) == null ? void 0 : P.next_invoice) == null ? void 0 : h.invoice_date;
|
|
444
|
+
return f ? b(f) : void 0;
|
|
445
|
+
}), O = k, T = p(
|
|
446
|
+
() => {
|
|
447
|
+
var f, P, h;
|
|
448
|
+
return (((h = (P = G(((f = t.subscription) == null ? void 0 : f.pricing_plan_schedule_infos) ?? [])) == null ? void 0 : P.pricing_plan_schedule) == null ? void 0 : h.enabled_pricings) ?? []).map(({ pricing_id: m }) => m).filter((m) => !!m);
|
|
449
|
+
}
|
|
450
|
+
), { title: B, explanation: I, confirmButtonText: A, cancelButtonText: E, errorMessage: L } = Je({ variant: c, renewableUntil: C, billingPeriodEndsAt: k }), w = N(!1), x = N(!1);
|
|
451
|
+
Y(
|
|
485
452
|
() => t.showModal,
|
|
486
|
-
(
|
|
487
|
-
|
|
453
|
+
(f) => {
|
|
454
|
+
f && (x.value = !1);
|
|
488
455
|
}
|
|
489
456
|
);
|
|
490
|
-
const
|
|
491
|
-
if (!(!t.subscription || !t.variant ||
|
|
492
|
-
|
|
457
|
+
const U = async () => {
|
|
458
|
+
if (!(!t.subscription || !t.variant || w.value)) {
|
|
459
|
+
w.value = !0, x.value = !1;
|
|
493
460
|
try {
|
|
494
|
-
await
|
|
461
|
+
await d({
|
|
495
462
|
id: t.subscription.id,
|
|
496
463
|
variant: t.variant
|
|
497
464
|
}), n("confirmed"), n("close");
|
|
498
|
-
} catch (
|
|
499
|
-
|
|
465
|
+
} catch (f) {
|
|
466
|
+
r.error(
|
|
500
467
|
"SUBSCRIPTION_CANCELLATION_FAILED",
|
|
501
468
|
"Failed to change the cancellation state of a subscription",
|
|
502
469
|
{ variant: t.variant },
|
|
503
|
-
|
|
504
|
-
),
|
|
470
|
+
f
|
|
471
|
+
), x.value = !0;
|
|
505
472
|
} finally {
|
|
506
|
-
|
|
473
|
+
w.value = !1;
|
|
507
474
|
}
|
|
508
475
|
}
|
|
509
|
-
},
|
|
510
|
-
|
|
476
|
+
}, M = () => {
|
|
477
|
+
w.value || n("close");
|
|
511
478
|
};
|
|
512
|
-
return (
|
|
479
|
+
return (f, P) => (l(), g(a(Oe), {
|
|
513
480
|
size: "md",
|
|
514
481
|
"show-modal": e.showModal,
|
|
515
|
-
title: a(
|
|
516
|
-
"confirm-button-text": a(
|
|
517
|
-
"cancel-button-text": a(
|
|
518
|
-
"is-loading":
|
|
519
|
-
"no-click-away":
|
|
520
|
-
"no-backdrop-close":
|
|
521
|
-
onConfirm:
|
|
522
|
-
onClose:
|
|
482
|
+
title: a(B),
|
|
483
|
+
"confirm-button-text": a(A),
|
|
484
|
+
"cancel-button-text": a(E),
|
|
485
|
+
"is-loading": w.value,
|
|
486
|
+
"no-click-away": w.value,
|
|
487
|
+
"no-backdrop-close": w.value,
|
|
488
|
+
onConfirm: U,
|
|
489
|
+
onClose: M
|
|
523
490
|
}, {
|
|
524
|
-
body:
|
|
525
|
-
|
|
526
|
-
|
|
491
|
+
body: u(() => [
|
|
492
|
+
W("div", Qe, [
|
|
493
|
+
S(a($), {
|
|
527
494
|
variant: "body-sm",
|
|
528
495
|
color: "subtle",
|
|
529
496
|
tag: "p",
|
|
530
497
|
class: "sv-subscription-cancellation-modal__explanation"
|
|
531
498
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
499
|
+
default: u(() => [
|
|
500
|
+
_(y(a(I)), 1)
|
|
534
501
|
]),
|
|
535
502
|
_: 1
|
|
536
503
|
}),
|
|
537
|
-
e.subscription ? (
|
|
504
|
+
e.subscription ? (l(), g(a(V), {
|
|
538
505
|
key: 0,
|
|
539
506
|
"no-spacing": "",
|
|
540
507
|
class: "sv-subscription-cancellation-modal__subscription"
|
|
541
508
|
}, {
|
|
542
|
-
default:
|
|
543
|
-
|
|
509
|
+
default: u(() => [
|
|
510
|
+
S(Ae, {
|
|
544
511
|
subscription: e.subscription,
|
|
545
512
|
avatar: e.avatar,
|
|
546
|
-
"enabled-pricing-ids":
|
|
513
|
+
"enabled-pricing-ids": T.value
|
|
547
514
|
}, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
|
|
548
|
-
a(
|
|
549
|
-
a(
|
|
550
|
-
|
|
515
|
+
a(O) || e.paymentMethod ? (l(), R("div", Ze, [
|
|
516
|
+
a(O) ? (l(), R("div", et, [
|
|
517
|
+
S(a($), {
|
|
551
518
|
tag: "span",
|
|
552
519
|
variant: "body-xs",
|
|
553
520
|
color: "secondary",
|
|
554
521
|
weight: "semibold"
|
|
555
522
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
523
|
+
default: u(() => [
|
|
524
|
+
_(y(a(s)({
|
|
558
525
|
defaultMessage: "Renews",
|
|
559
526
|
description: "Label before the date the subscription renews, shown in the cancel subscription modal",
|
|
560
527
|
id: "subscription_cancellation_modal.renews_label"
|
|
@@ -562,38 +529,38 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
562
529
|
]),
|
|
563
530
|
_: 1
|
|
564
531
|
}),
|
|
565
|
-
|
|
532
|
+
S(a($), {
|
|
566
533
|
tag: "span",
|
|
567
534
|
variant: "body-xs",
|
|
568
535
|
color: "secondary"
|
|
569
536
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
|
|
537
|
+
default: u(() => [
|
|
538
|
+
_(y(a(O)), 1)
|
|
572
539
|
]),
|
|
573
540
|
_: 1
|
|
574
541
|
})
|
|
575
|
-
])) :
|
|
576
|
-
|
|
542
|
+
])) : v("", !0),
|
|
543
|
+
e.paymentMethod ? (l(), g(a(De), {
|
|
577
544
|
key: 1,
|
|
578
545
|
variant: "condensed",
|
|
579
546
|
class: "sv-subscription-cancellation-modal__payment-method",
|
|
580
|
-
"payment-method":
|
|
581
|
-
}, null, 8, ["payment-method"])) :
|
|
582
|
-
])) :
|
|
547
|
+
"payment-method": e.paymentMethod
|
|
548
|
+
}, null, 8, ["payment-method"])) : v("", !0)
|
|
549
|
+
])) : v("", !0)
|
|
583
550
|
]),
|
|
584
551
|
_: 1
|
|
585
|
-
})) :
|
|
586
|
-
|
|
552
|
+
})) : v("", !0),
|
|
553
|
+
x.value ? (l(), g(a(ee), {
|
|
587
554
|
key: 1,
|
|
588
555
|
class: "sv-subscription-cancellation-modal__error sv-error",
|
|
589
|
-
title: a(
|
|
590
|
-
}, null, 8, ["title"])) :
|
|
556
|
+
title: a(L)
|
|
557
|
+
}, null, 8, ["title"])) : v("", !0)
|
|
591
558
|
])
|
|
592
559
|
]),
|
|
593
560
|
_: 1
|
|
594
561
|
}, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]));
|
|
595
562
|
}
|
|
596
|
-
}), nt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, at = /* @__PURE__ */
|
|
563
|
+
}), nt = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" }, at = /* @__PURE__ */ F({
|
|
597
564
|
__name: "SubscriptionDetails",
|
|
598
565
|
props: {
|
|
599
566
|
subscription: { type: Object },
|
|
@@ -611,138 +578,141 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
611
578
|
},
|
|
612
579
|
emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed", "invoice-created"],
|
|
613
580
|
setup(e, { emit: i }) {
|
|
614
|
-
const t =
|
|
615
|
-
() => import("./SubscriptionSchedules-
|
|
616
|
-
), n =
|
|
617
|
-
() => import("./ChargeOnDemandModal-
|
|
618
|
-
), s = e, o = i, { dispatchAction:
|
|
619
|
-
isCancellable:
|
|
620
|
-
isRenewable:
|
|
621
|
-
pendingVariant:
|
|
622
|
-
cancel:
|
|
623
|
-
renew:
|
|
624
|
-
dismiss:
|
|
625
|
-
manage:
|
|
626
|
-
} =
|
|
627
|
-
|
|
628
|
-
|
|
581
|
+
const t = H(
|
|
582
|
+
() => import("./SubscriptionSchedules-BZqlpAtk.mjs")
|
|
583
|
+
), n = H(
|
|
584
|
+
() => import("./ChargeOnDemandModal-B8FDkS9U.mjs")
|
|
585
|
+
), s = e, o = i, { dispatchAction: r } = te(), { $t: d } = j(), {
|
|
586
|
+
isCancellable: c,
|
|
587
|
+
isRenewable: b,
|
|
588
|
+
pendingVariant: C,
|
|
589
|
+
cancel: k,
|
|
590
|
+
renew: O,
|
|
591
|
+
dismiss: T,
|
|
592
|
+
manage: B
|
|
593
|
+
} = je({ subscription: ie(s, "subscription") }), I = N();
|
|
594
|
+
Y(C, (h) => {
|
|
595
|
+
h && (I.value = void 0);
|
|
629
596
|
});
|
|
630
|
-
const
|
|
631
|
-
I.value =
|
|
632
|
-
},
|
|
597
|
+
const A = () => {
|
|
598
|
+
I.value = C.value, o("subscription-changed");
|
|
599
|
+
}, E = p(() => {
|
|
633
600
|
if (I.value)
|
|
634
|
-
return I.value === "RENEW" ?
|
|
601
|
+
return I.value === "RENEW" ? d({
|
|
635
602
|
defaultMessage: "Your subscription has been renewed.",
|
|
636
603
|
id: "subscription_details.renew_success",
|
|
637
604
|
description: "Confirmation shown after a cancellation has been undone"
|
|
638
|
-
}) :
|
|
605
|
+
}) : d({
|
|
639
606
|
defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
|
|
640
607
|
id: "subscription_details.cancel_success",
|
|
641
608
|
description: "Confirmation shown after a subscription has been cancelled"
|
|
642
609
|
});
|
|
643
|
-
}),
|
|
644
|
-
() =>
|
|
645
|
-
var
|
|
646
|
-
return
|
|
610
|
+
}), L = p(
|
|
611
|
+
() => {
|
|
612
|
+
var h;
|
|
613
|
+
return G(((h = s.subscription) == null ? void 0 : h.pricing_plan_schedule_infos) ?? []);
|
|
614
|
+
}
|
|
615
|
+
), w = p(
|
|
616
|
+
() => (s.paymentMethods ?? []).find(({ id: h }) => {
|
|
617
|
+
var m;
|
|
618
|
+
return h === ((m = s.subscription) == null ? void 0 : m.payment_method_id);
|
|
647
619
|
})
|
|
648
|
-
),
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
() =>
|
|
620
|
+
), x = p(() => s.subscription ? [s.subscription] : []), U = N(!1), M = N(!1), f = () => {
|
|
621
|
+
M.value = !0, U.value = !0;
|
|
622
|
+
}, P = p(
|
|
623
|
+
() => ge({
|
|
652
624
|
subscription: s.subscription,
|
|
653
|
-
fallback:
|
|
625
|
+
fallback: d({
|
|
654
626
|
defaultMessage: "Subscription details",
|
|
655
627
|
id: "subscription_details.title",
|
|
656
628
|
description: "Title for the subscription details page"
|
|
657
629
|
})
|
|
658
630
|
})
|
|
659
631
|
);
|
|
660
|
-
return (
|
|
661
|
-
header:
|
|
662
|
-
|
|
663
|
-
|
|
632
|
+
return (h, m) => (l(), g(a(ue), { class: "sv-subscription-details sv-root sv-screen" }, {
|
|
633
|
+
header: u(() => [
|
|
634
|
+
W("div", nt, [
|
|
635
|
+
S(a($), {
|
|
664
636
|
variant: "heading-2",
|
|
665
637
|
tag: "h1",
|
|
666
638
|
class: "sv-subscription-details__title grow"
|
|
667
639
|
}, {
|
|
668
|
-
default:
|
|
669
|
-
|
|
640
|
+
default: u(() => [
|
|
641
|
+
_(y(P.value), 1)
|
|
670
642
|
]),
|
|
671
643
|
_: 1
|
|
672
644
|
}),
|
|
673
|
-
a(
|
|
645
|
+
a(b) ? (l(), g(a(z), {
|
|
674
646
|
key: 0,
|
|
675
647
|
intent: "secondary",
|
|
676
648
|
class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
|
|
677
649
|
type: "button",
|
|
678
|
-
onClick: a(
|
|
650
|
+
onClick: a(O)
|
|
679
651
|
}, {
|
|
680
|
-
default:
|
|
681
|
-
|
|
652
|
+
default: u(() => [
|
|
653
|
+
_(y(a(d)({
|
|
682
654
|
defaultMessage: "Renew subscription",
|
|
683
655
|
id: "subscription_details.renew_button.label",
|
|
684
656
|
description: "Label for the renew subscription button on the subscription details page"
|
|
685
657
|
})), 1)
|
|
686
658
|
]),
|
|
687
659
|
_: 1
|
|
688
|
-
}, 8, ["onClick"])) :
|
|
689
|
-
a(
|
|
660
|
+
}, 8, ["onClick"])) : v("", !0),
|
|
661
|
+
a(c) ? (l(), g(a(z), {
|
|
690
662
|
key: 1,
|
|
691
663
|
intent: "secondary",
|
|
692
664
|
class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
|
|
693
665
|
type: "button",
|
|
694
|
-
onClick: a(
|
|
666
|
+
onClick: a(k)
|
|
695
667
|
}, {
|
|
696
|
-
default:
|
|
697
|
-
|
|
668
|
+
default: u(() => [
|
|
669
|
+
_(y(a(d)({
|
|
698
670
|
defaultMessage: "Cancel subscription",
|
|
699
671
|
id: "subscription_details.cancel_button.label",
|
|
700
672
|
description: "Label for the cancel subscription button on the subscription details page"
|
|
701
673
|
})), 1)
|
|
702
674
|
]),
|
|
703
675
|
_: 1
|
|
704
|
-
}, 8, ["onClick"])) :
|
|
676
|
+
}, 8, ["onClick"])) : v("", !0)
|
|
705
677
|
])
|
|
706
678
|
]),
|
|
707
|
-
content:
|
|
708
|
-
|
|
679
|
+
content: u(() => [
|
|
680
|
+
E.value ? (l(), g(a(re), {
|
|
709
681
|
key: 0,
|
|
710
682
|
class: "sv-subscription-details__cancellation-success",
|
|
711
683
|
type: "success",
|
|
712
|
-
title:
|
|
713
|
-
}, null, 8, ["title"])) :
|
|
714
|
-
e.error ? (
|
|
684
|
+
title: E.value
|
|
685
|
+
}, null, 8, ["title"])) : v("", !0),
|
|
686
|
+
e.error ? (l(), g(a(ee), {
|
|
715
687
|
key: 1,
|
|
716
688
|
class: "sv-subscription-details__error sv-error",
|
|
717
|
-
title: a(
|
|
689
|
+
title: a(d)({
|
|
718
690
|
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
719
691
|
id: "subscription_details.load_error",
|
|
720
692
|
description: "Error message shown when the subscription cannot be loaded on the subscription details page"
|
|
721
693
|
})
|
|
722
|
-
}, null, 8, ["title"])) : e.isLoading ? (
|
|
694
|
+
}, null, 8, ["title"])) : e.isLoading ? (l(), g(_e, {
|
|
723
695
|
key: 2,
|
|
724
696
|
variant: "section",
|
|
725
697
|
class: "min-h-[220px]"
|
|
726
|
-
})) : e.subscription ? (
|
|
698
|
+
})) : e.subscription ? (l(), g(a(t), {
|
|
727
699
|
key: 3,
|
|
728
700
|
class: "sv-subscription-details__schedules",
|
|
729
|
-
"schedules-data": e.schedulesData ?? []
|
|
730
|
-
|
|
731
|
-
"is-loading": e.isLoading
|
|
732
|
-
}, null, 8, ["schedules-data", "configuration", "is-loading"])) : (u(), f(fe, {
|
|
701
|
+
"schedules-data": e.schedulesData ?? []
|
|
702
|
+
}, null, 8, ["schedules-data"])) : (l(), g(ve, {
|
|
733
703
|
key: 4,
|
|
734
704
|
class: "sv-subscription-details__empty-state",
|
|
735
705
|
icon: "receipt_long"
|
|
736
706
|
}, {
|
|
737
|
-
title:
|
|
738
|
-
|
|
707
|
+
title: u(() => [
|
|
708
|
+
_(y(a(d)({
|
|
739
709
|
defaultMessage: "Subscription not found",
|
|
740
710
|
id: "subscription_details.empty_state.title",
|
|
741
711
|
description: "Title shown when the requested subscription does not exist"
|
|
742
712
|
})), 1)
|
|
743
713
|
]),
|
|
744
|
-
message:
|
|
745
|
-
|
|
714
|
+
message: u(() => [
|
|
715
|
+
_(y(a(d)({
|
|
746
716
|
defaultMessage: "This subscription is no longer available.",
|
|
747
717
|
id: "subscription_details.empty_state.message",
|
|
748
718
|
description: "Message shown when the requested subscription does not exist"
|
|
@@ -751,8 +721,8 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
751
721
|
_: 1
|
|
752
722
|
}))
|
|
753
723
|
]),
|
|
754
|
-
aside:
|
|
755
|
-
|
|
724
|
+
aside: u(() => [
|
|
725
|
+
S(be, {
|
|
756
726
|
class: "sv-subscription-details__wallet-balances",
|
|
757
727
|
"has-error": !!e.hasWalletBalancesError,
|
|
758
728
|
"is-loading": e.isLoading,
|
|
@@ -760,53 +730,55 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
760
730
|
"show-top-up-button": "",
|
|
761
731
|
customer: e.customer,
|
|
762
732
|
"payment-methods": e.paymentMethods,
|
|
763
|
-
subscriptions:
|
|
764
|
-
onTopUpCharged:
|
|
765
|
-
onAutoTopUpSaved:
|
|
766
|
-
onAutoTopUpCancelled:
|
|
767
|
-
onPaymentMethodStored:
|
|
733
|
+
subscriptions: x.value,
|
|
734
|
+
onTopUpCharged: m[0] || (m[0] = (D) => h.$emit("top-up-charged")),
|
|
735
|
+
onAutoTopUpSaved: m[1] || (m[1] = (D) => h.$emit("auto-top-up-saved")),
|
|
736
|
+
onAutoTopUpCancelled: m[2] || (m[2] = (D) => h.$emit("auto-top-up-cancelled")),
|
|
737
|
+
onPaymentMethodStored: m[3] || (m[3] = (D) => h.$emit("payment-method-stored"))
|
|
768
738
|
}, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
|
|
769
|
-
!e.isLoading && e.onDemandItems.length > 0 ? (
|
|
739
|
+
!e.isLoading && e.onDemandItems.length > 0 ? (l(), g(Ke, {
|
|
770
740
|
key: 0,
|
|
771
741
|
items: e.onDemandItems,
|
|
772
742
|
class: "sv-subscription-details__on-demand-items",
|
|
773
|
-
onOrder:
|
|
774
|
-
}, null, 8, ["items"])) :
|
|
775
|
-
|
|
743
|
+
onOrder: f
|
|
744
|
+
}, null, 8, ["items"])) : v("", !0),
|
|
745
|
+
L.value ? (l(), g(qe, {
|
|
776
746
|
key: 1,
|
|
777
747
|
class: "sv-subscription-details__upgrades",
|
|
778
|
-
"pricing-plan-schedule":
|
|
779
|
-
onUpgrade: a(
|
|
780
|
-
}, null, 8, ["pricing-plan-schedule"
|
|
781
|
-
|
|
748
|
+
"pricing-plan-schedule": L.value,
|
|
749
|
+
onUpgrade: m[4] || (m[4] = (D) => a(B)(D.pricingId))
|
|
750
|
+
}, null, 8, ["pricing-plan-schedule"])) : v("", !0),
|
|
751
|
+
w.value ? (l(), g(he, {
|
|
782
752
|
key: 2,
|
|
783
753
|
class: "sv-subscription-details__payment-method",
|
|
784
754
|
"is-loading": e.isLoading,
|
|
785
|
-
"payment-methods": [
|
|
755
|
+
"payment-methods": [w.value],
|
|
786
756
|
configuration: { showViewAllButton: !1, showAddButton: !1 }
|
|
787
|
-
}, null, 8, ["is-loading", "payment-methods"])) :
|
|
788
|
-
|
|
757
|
+
}, null, 8, ["is-loading", "payment-methods"])) : v("", !0),
|
|
758
|
+
M.value && e.subscription && e.onDemandScheduleId ? (l(), g(a(n), {
|
|
789
759
|
key: 3,
|
|
790
|
-
"show-modal":
|
|
760
|
+
"show-modal": U.value,
|
|
791
761
|
subscription: e.subscription,
|
|
792
762
|
"schedule-id": e.onDemandScheduleId,
|
|
793
763
|
items: e.onDemandItems,
|
|
794
764
|
customer: e.customer,
|
|
795
765
|
"payment-methods": e.paymentMethods,
|
|
796
766
|
"can-view-created-invoice": e.canViewCreatedInvoice,
|
|
797
|
-
onClose:
|
|
798
|
-
onPaymentMethodStored:
|
|
799
|
-
onInvoiceCreated:
|
|
800
|
-
onViewInvoice:
|
|
801
|
-
}, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) :
|
|
802
|
-
|
|
803
|
-
"show-modal": !!a(
|
|
804
|
-
variant: a(
|
|
767
|
+
onClose: m[5] || (m[5] = (D) => U.value = !1),
|
|
768
|
+
onPaymentMethodStored: m[6] || (m[6] = (D) => h.$emit("payment-method-stored")),
|
|
769
|
+
onInvoiceCreated: m[7] || (m[7] = (D) => h.$emit("invoice-created", D)),
|
|
770
|
+
onViewInvoice: m[8] || (m[8] = (D) => a(r)({ action: "view-invoice", data: { invoiceId: D } }))
|
|
771
|
+
}, null, 8, ["show-modal", "subscription", "schedule-id", "items", "customer", "payment-methods", "can-view-created-invoice"])) : v("", !0),
|
|
772
|
+
S(tt, {
|
|
773
|
+
"show-modal": !!a(C),
|
|
774
|
+
variant: a(C),
|
|
805
775
|
subscription: e.subscription,
|
|
776
|
+
customer: e.customer,
|
|
777
|
+
"payment-method": w.value,
|
|
806
778
|
avatar: e.avatar,
|
|
807
|
-
onConfirmed:
|
|
808
|
-
onClose: a(
|
|
809
|
-
}, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
|
|
779
|
+
onConfirmed: A,
|
|
780
|
+
onClose: a(T)
|
|
781
|
+
}, null, 8, ["show-modal", "variant", "subscription", "customer", "payment-method", "avatar", "onClose"])
|
|
810
782
|
]),
|
|
811
783
|
_: 1
|
|
812
784
|
}));
|
|
@@ -820,7 +792,7 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
820
792
|
const i = Number((t = e.default_units) == null ? void 0 : t.number);
|
|
821
793
|
return ot(i) ? i : 1;
|
|
822
794
|
}, ct = (e) => {
|
|
823
|
-
const i = e.flatMap(
|
|
795
|
+
const i = e.flatMap(ae);
|
|
824
796
|
return {
|
|
825
797
|
productItems: new Map(
|
|
826
798
|
i.flatMap((t) => t.items ?? []).flatMap((t) => t.product_items ?? []).map(({ id: t, name: n }) => [t, n])
|
|
@@ -829,10 +801,10 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
829
801
|
i.flatMap((t) => t.products ?? []).map(({ id: t, name: n }) => [t, n])
|
|
830
802
|
)
|
|
831
803
|
};
|
|
832
|
-
}, lt = (e, i, t) =>
|
|
833
|
-
var o,
|
|
834
|
-
const n = (o = i.configs) == null ? void 0 : o.find((
|
|
835
|
-
if (!n || (
|
|
804
|
+
}, lt = (e, i, t) => K(i.product_item_ids.map((n) => t.productItems.get(n))) || e.name || K(e.product_ids.map((n) => t.products.get(n))) || "", dt = (e, i, t) => {
|
|
805
|
+
var o, r;
|
|
806
|
+
const n = (o = i.configs) == null ? void 0 : o.find((d) => d.on_demand);
|
|
807
|
+
if (!n || (r = n.wallet_grants) != null && r.length || !Ue(n, it))
|
|
836
808
|
return;
|
|
837
809
|
const s = n.details.pricing_type === "FIXED" ? "FIXED" : "FLAT";
|
|
838
810
|
return {
|
|
@@ -847,12 +819,12 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
847
819
|
pricingPlanVersions: i = []
|
|
848
820
|
} = {}) => {
|
|
849
821
|
const t = ct(i);
|
|
850
|
-
return
|
|
822
|
+
return ae(e).flatMap(
|
|
851
823
|
(n) => (n.items ?? []).flatMap(
|
|
852
824
|
(s) => dt(n, s, t) ?? []
|
|
853
825
|
)
|
|
854
826
|
);
|
|
855
|
-
},
|
|
827
|
+
}, Gt = (e, i) => {
|
|
856
828
|
const t = new Set(
|
|
857
829
|
(i.payment_acceptors ?? []).flatMap(
|
|
858
830
|
(n) => {
|
|
@@ -862,54 +834,55 @@ const Ke = { class: "sv-subscription-cancellation-modal sv-subscription-cancella
|
|
|
862
834
|
)
|
|
863
835
|
);
|
|
864
836
|
return e.filter(
|
|
865
|
-
(n) => n
|
|
837
|
+
(n) => Ne(n) && !!n.integration_id && t.has(n.integration_id)
|
|
866
838
|
).sort(
|
|
867
839
|
(n, s) => +(s.id === i.payment_method_id) - +(n.id === i.payment_method_id)
|
|
868
840
|
);
|
|
869
|
-
},
|
|
841
|
+
}, Ht = (e, i) => e.flatMap(({ pricingItemId: t, units: n }) => {
|
|
870
842
|
const s = i.find((o) => o.pricingItemId === t);
|
|
871
843
|
return s ? s.priceType === "FLAT" && n !== void 0 ? [{ pricing_item_id: t, units: { number: String(n) } }] : [{ pricing_item_id: t }] : [];
|
|
872
844
|
});
|
|
873
845
|
function pt({
|
|
874
846
|
subscription: e
|
|
875
847
|
}) {
|
|
876
|
-
const { getOnDemandPricingItems: i } =
|
|
848
|
+
const { getOnDemandPricingItems: i } = Te(), t = q(), { data: n, execute: s } = Be({ service: i }), o = p(
|
|
877
849
|
() => {
|
|
878
|
-
var
|
|
879
|
-
return ((
|
|
850
|
+
var c;
|
|
851
|
+
return ((c = e.value) == null ? void 0 : c.variant) === "DEFAULT" ? G(e.value.pricing_plan_schedule_infos) : void 0;
|
|
880
852
|
}
|
|
881
|
-
), r =
|
|
882
|
-
var
|
|
883
|
-
return (
|
|
853
|
+
), r = p(() => {
|
|
854
|
+
var c;
|
|
855
|
+
return (c = o.value) == null ? void 0 : c.id;
|
|
884
856
|
});
|
|
885
|
-
return
|
|
857
|
+
return Y(
|
|
886
858
|
r,
|
|
887
|
-
(
|
|
888
|
-
|
|
889
|
-
() => t.error(
|
|
859
|
+
(c) => {
|
|
860
|
+
c && s({ scheduleId: c }).catch(
|
|
861
|
+
(b) => t.error(
|
|
890
862
|
"ON_DEMAND_ITEMS_LOAD_FAILED",
|
|
891
863
|
"Failed to load the on-demand items of the subscription",
|
|
892
|
-
{ scheduleId:
|
|
893
|
-
|
|
864
|
+
{ scheduleId: c },
|
|
865
|
+
b
|
|
894
866
|
)
|
|
895
867
|
);
|
|
896
868
|
},
|
|
897
869
|
{ immediate: !0 }
|
|
898
|
-
), { items:
|
|
870
|
+
), { items: p(
|
|
899
871
|
() => {
|
|
900
|
-
var
|
|
901
|
-
return r.value && ((
|
|
902
|
-
pricingPlanVersions: (
|
|
903
|
-
(
|
|
872
|
+
var c, b;
|
|
873
|
+
return r.value && ((c = n.value) == null ? void 0 : c.pricing_plan_schedule_id) === r.value ? ut(n.value, {
|
|
874
|
+
pricingPlanVersions: (b = e.value) == null ? void 0 : b.pricing_plan_schedule_infos.map(
|
|
875
|
+
(C) => C.pricing_plan_version
|
|
904
876
|
)
|
|
905
877
|
}) : [];
|
|
906
878
|
}
|
|
907
879
|
), scheduleId: r };
|
|
908
880
|
}
|
|
909
|
-
const mt = /* @__PURE__ */
|
|
881
|
+
const mt = /* @__PURE__ */ F({
|
|
910
882
|
__name: "SubscriptionDetails.entry.view",
|
|
911
883
|
props: {
|
|
912
884
|
configuration: { type: Object },
|
|
885
|
+
portalToken: { type: Object },
|
|
913
886
|
environment: { type: String },
|
|
914
887
|
locale: { type: String },
|
|
915
888
|
dateLocale: { type: String },
|
|
@@ -928,38 +901,46 @@ const mt = /* @__PURE__ */ T({
|
|
|
928
901
|
setup(e) {
|
|
929
902
|
const i = e, t = i.portalObject.customer_id, {
|
|
930
903
|
subscription: n,
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
904
|
+
get: s,
|
|
905
|
+
error: o
|
|
906
|
+
} = Ce({ subscriptionId: i.configuration.subscriptionId }), r = q(), d = p(() => n.value ? null : o.value), c = () => s().catch((M) => {
|
|
907
|
+
r.error(
|
|
908
|
+
"SUBSCRIPTION_LOAD_FAILED",
|
|
909
|
+
"Failed to reload the subscription after it changed",
|
|
910
|
+
{},
|
|
911
|
+
M
|
|
912
|
+
);
|
|
913
|
+
}), { customer: b, get: C } = Ee({ customerId: t }), { items: k, fetchAll: O } = Le({ customerId: t }), {
|
|
914
|
+
walletBalances: T,
|
|
915
|
+
apiStatus: B,
|
|
916
|
+
fetch: I
|
|
917
|
+
} = fe({ customerId: t }), { isLoading: A } = xe(
|
|
918
|
+
s(),
|
|
919
|
+
C.execute(),
|
|
920
|
+
O(),
|
|
921
|
+
I()
|
|
922
|
+
), { items: E, scheduleId: L } = pt({
|
|
944
923
|
subscription: n
|
|
945
|
-
}),
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
924
|
+
}), w = p(
|
|
925
|
+
() => n.value ? Ie(n.value) : []
|
|
926
|
+
), x = p(() => {
|
|
927
|
+
var M;
|
|
928
|
+
return ((M = T.value) == null ? void 0 : M.wallet_balances) ?? [];
|
|
929
|
+
}), U = p(() => B.value === ke.Failed);
|
|
930
|
+
return (M, f) => se(M.$slots, "default", {
|
|
950
931
|
subscription: a(n),
|
|
951
|
-
schedulesData:
|
|
952
|
-
customer: a(
|
|
953
|
-
paymentMethods: a(
|
|
954
|
-
walletBalances:
|
|
955
|
-
onDemandItems: a(
|
|
956
|
-
onDemandScheduleId: a(
|
|
957
|
-
hasWalletBalancesError:
|
|
958
|
-
isLoading: a(
|
|
959
|
-
error:
|
|
960
|
-
refreshWalletBalances: a(
|
|
961
|
-
refreshPaymentMethods: a(
|
|
962
|
-
refreshSubscription:
|
|
932
|
+
schedulesData: w.value,
|
|
933
|
+
customer: a(b),
|
|
934
|
+
paymentMethods: a(k),
|
|
935
|
+
walletBalances: x.value,
|
|
936
|
+
onDemandItems: a(E),
|
|
937
|
+
onDemandScheduleId: a(L),
|
|
938
|
+
hasWalletBalancesError: U.value,
|
|
939
|
+
isLoading: a(A),
|
|
940
|
+
error: d.value,
|
|
941
|
+
refreshWalletBalances: a(I),
|
|
942
|
+
refreshPaymentMethods: a(O),
|
|
943
|
+
refreshSubscription: c
|
|
963
944
|
});
|
|
964
945
|
}
|
|
965
946
|
});
|
|
@@ -973,10 +954,11 @@ function gt({
|
|
|
973
954
|
paymentStatus: e.payment_status
|
|
974
955
|
});
|
|
975
956
|
}
|
|
976
|
-
const bt = /* @__PURE__ */
|
|
957
|
+
const bt = /* @__PURE__ */ F({
|
|
977
958
|
__name: "SubscriptionDetails.entry",
|
|
978
959
|
props: {
|
|
979
960
|
configuration: { type: Object },
|
|
961
|
+
portalToken: { type: Object },
|
|
980
962
|
environment: { type: String },
|
|
981
963
|
locale: { type: String },
|
|
982
964
|
dateLocale: { type: String },
|
|
@@ -993,56 +975,62 @@ const bt = /* @__PURE__ */ T({
|
|
|
993
975
|
branding: { type: Object }
|
|
994
976
|
},
|
|
995
977
|
setup(e) {
|
|
996
|
-
const i =
|
|
997
|
-
return (n, s) =>
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
978
|
+
const i = le("subscription-details"), t = e;
|
|
979
|
+
return (n, s) => {
|
|
980
|
+
var o;
|
|
981
|
+
return l(), g(a(ce), {
|
|
982
|
+
entry: n.$props,
|
|
983
|
+
"component-name": a(i),
|
|
984
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
985
|
+
"required-configuration": { subscriptionId: (o = e.configuration) == null ? void 0 : o.subscriptionId },
|
|
986
|
+
onError: s[1] || (s[1] = (r) => n.$emit("error", r))
|
|
987
|
+
}, {
|
|
988
|
+
default: u(() => [
|
|
989
|
+
(l(), g(mt, oe({
|
|
990
|
+
key: e.configuration.subscriptionId
|
|
991
|
+
}, n.$props), {
|
|
992
|
+
default: u(({
|
|
993
|
+
subscription: r,
|
|
994
|
+
schedulesData: d,
|
|
995
|
+
customer: c,
|
|
996
|
+
paymentMethods: b,
|
|
997
|
+
walletBalances: C,
|
|
998
|
+
onDemandItems: k,
|
|
999
|
+
onDemandScheduleId: O,
|
|
1000
|
+
hasWalletBalancesError: T,
|
|
1001
|
+
isLoading: B,
|
|
1002
|
+
error: I,
|
|
1003
|
+
refreshWalletBalances: A,
|
|
1004
|
+
refreshPaymentMethods: E,
|
|
1005
|
+
refreshSubscription: L
|
|
1006
|
+
}) => [
|
|
1007
|
+
S(at, {
|
|
1008
|
+
subscription: r,
|
|
1009
|
+
"schedules-data": d,
|
|
1010
|
+
customer: c,
|
|
1011
|
+
avatar: e.configuration.avatar,
|
|
1012
|
+
"can-view-created-invoice": e.configuration.canViewCreatedInvoice,
|
|
1013
|
+
"payment-methods": b,
|
|
1014
|
+
"wallet-balances": C,
|
|
1015
|
+
"on-demand-items": k,
|
|
1016
|
+
"on-demand-schedule-id": O,
|
|
1017
|
+
"has-wallet-balances-error": T,
|
|
1018
|
+
"is-loading": B,
|
|
1019
|
+
error: I,
|
|
1020
|
+
onTopUpCharged: A,
|
|
1021
|
+
onAutoTopUpSaved: A,
|
|
1022
|
+
onAutoTopUpCancelled: A,
|
|
1023
|
+
onPaymentMethodStored: E,
|
|
1024
|
+
onSubscriptionChanged: L,
|
|
1025
|
+
onInvoiceCreated: s[0] || (s[0] = (w) => a(gt)({ invoice: w, configuration: t.configuration }))
|
|
1026
|
+
}, null, 8, ["subscription", "schedules-data", "customer", "avatar", "can-view-created-invoice", "payment-methods", "wallet-balances", "on-demand-items", "on-demand-schedule-id", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
|
|
1027
|
+
]),
|
|
1028
|
+
_: 1
|
|
1029
|
+
}, 16))
|
|
1030
|
+
]),
|
|
1031
|
+
_: 1
|
|
1032
|
+
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
1033
|
+
};
|
|
1046
1034
|
}
|
|
1047
1035
|
}), { define: Kt } = de(
|
|
1048
1036
|
bt,
|
|
@@ -1050,8 +1038,8 @@ const bt = /* @__PURE__ */ T({
|
|
|
1050
1038
|
);
|
|
1051
1039
|
export {
|
|
1052
1040
|
Kt as d,
|
|
1053
|
-
|
|
1041
|
+
Gt as g,
|
|
1054
1042
|
ot as i,
|
|
1055
|
-
|
|
1056
|
-
|
|
1043
|
+
Ht as t,
|
|
1044
|
+
Fe as u
|
|
1057
1045
|
};
|