@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -17
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
- package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +28 -55
- 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-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/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/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-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/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-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-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-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/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-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-BIMpDI_p.mjs +0 -29
- 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-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-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,71 @@
|
|
|
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 {
|
|
20
|
-
import {
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
subscription: o,
|
|
30
|
-
enabledPricingIds: b
|
|
1
|
+
import { ref as E, defineComponent as A, useModel as te, computed as p, watch as Y, openBlock as r, createElementBlock as W, withModifiers as be, createElementVNode as N, createVNode as O, unref as t, createBlock as c, withCtx as m, createTextVNode as S, toDisplayString as y, mergeModels as ne, inject as he, renderSlot as _e, createCommentVNode as q, Fragment as fe, mergeProps as ye } from "vue";
|
|
2
|
+
import { u as we, w as Ie, a as Pe, h as Se } from "../../pricingPlanScheduleOverrides-COr9F8DO.mjs";
|
|
3
|
+
import { _ as ie } from "../../Button.vue.es-rh6mITmN.mjs";
|
|
4
|
+
import { _ as H } from "../../ErrorNotification.vue.es-CKlt4hr2.mjs";
|
|
5
|
+
import { d as oe, m as Ee, a as U, _ as K, n as Me, o as Te, e as $e, g as ke, f as Oe } from "../../customElements-Di3zwlEU.mjs";
|
|
6
|
+
import { C as Ne } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
7
|
+
import { u as Ae } from "../../useActionDispatchProvider-DC_fUykI.mjs";
|
|
8
|
+
import { u as Ce } from "../../usePortal-CxzKGhbK.mjs";
|
|
9
|
+
import { u as Be } from "../../usePaymentMethods-gvr-rmwE.mjs";
|
|
10
|
+
import { u as Le } from "../../usePaymentMethodOptions-1QBcmgUf.mjs";
|
|
11
|
+
import { u as De } from "../../useLoadInitialData-4k_Cyqef.mjs";
|
|
12
|
+
import { c as Ue } from "../../invoices-Cf1qDAv4.mjs";
|
|
13
|
+
import { b as ze, c as je, d as Ge } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
|
+
import { c as xe } from "../../pricingPlanSchedules-BK_o9p6h.mjs";
|
|
15
|
+
import { a as Re } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs";
|
|
16
|
+
import { _ as Ve } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
17
|
+
import { _ as Fe } from "../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs";
|
|
18
|
+
import { _ as Ye } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs";
|
|
19
|
+
import { a as qe, _ as ae } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
|
|
20
|
+
import { _ as He } from "../../Section.vue.es-iS8hVGWA.mjs";
|
|
21
|
+
import { _ as re } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
22
|
+
import { _ as We } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs";
|
|
23
|
+
function Ke() {
|
|
24
|
+
const { getInvoicePreview: a } = Ue(), l = oe(), s = E(), g = E(!1), d = E(), o = Ee();
|
|
25
|
+
return { invoice: s, isPending: g, error: d, load: async ({
|
|
26
|
+
subscription: w,
|
|
27
|
+
scheduleInfo: I,
|
|
28
|
+
enabledPricingIds: u
|
|
31
29
|
}) => {
|
|
32
|
-
const
|
|
33
|
-
enabledPricings:
|
|
34
|
-
pricingPlanScheduleInfos:
|
|
30
|
+
const n = ze({
|
|
31
|
+
enabledPricings: u.map((h) => ({ pricing_id: h })),
|
|
32
|
+
pricingPlanScheduleInfos: I ? [I] : []
|
|
35
33
|
});
|
|
36
|
-
if (!
|
|
37
|
-
|
|
34
|
+
if (!n) {
|
|
35
|
+
o(), s.value = void 0, d.value = void 0, g.value = !1;
|
|
38
36
|
return;
|
|
39
37
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
38
|
+
const b = o();
|
|
39
|
+
g.value = !0, d.value = void 0;
|
|
42
40
|
try {
|
|
43
|
-
const
|
|
41
|
+
const h = await a({
|
|
44
42
|
// The subscription is running already, so it is priced as itself rather than as the
|
|
45
43
|
// template for a new one — and the customer it is invoiced to is known.
|
|
46
44
|
forExistingSubscription: !0,
|
|
47
|
-
pricingPlanSubscriptionId:
|
|
48
|
-
customizations:
|
|
45
|
+
pricingPlanSubscriptionId: w.id,
|
|
46
|
+
customizations: n
|
|
49
47
|
});
|
|
50
|
-
if (!
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
if (!
|
|
48
|
+
if (!b()) return;
|
|
49
|
+
s.value = h.invoice;
|
|
50
|
+
} catch (h) {
|
|
51
|
+
if (!b()) return;
|
|
54
52
|
l.error(
|
|
55
53
|
"INVOICE_PREVIEW_FAILED",
|
|
56
54
|
"Failed to load the invoice preview",
|
|
57
55
|
{ preview: "SUBSCRIPTION_UPGRADE" },
|
|
58
|
-
|
|
59
|
-
), d.value =
|
|
56
|
+
h
|
|
57
|
+
), d.value = h, s.value = void 0;
|
|
60
58
|
} finally {
|
|
61
|
-
|
|
59
|
+
b() && (g.value = !1);
|
|
62
60
|
}
|
|
63
61
|
} };
|
|
64
62
|
}
|
|
65
|
-
const
|
|
63
|
+
const Ze = ["id"], Je = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-4" }, Qe = /* @__PURE__ */ A({
|
|
66
64
|
__name: "SubscriptionManagementForm",
|
|
67
|
-
props: /* @__PURE__ */
|
|
65
|
+
props: /* @__PURE__ */ ne({
|
|
66
|
+
id: { type: String },
|
|
68
67
|
pricingGroup: { type: Object },
|
|
69
68
|
paymentMethods: { type: Array },
|
|
70
|
-
paymentMethodOptions: { type: Array },
|
|
71
69
|
billingPeriod: { type: Object },
|
|
72
70
|
currency: { type: String },
|
|
73
71
|
disabled: { type: Boolean }
|
|
@@ -77,136 +75,152 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
77
75
|
paymentMethodId: {},
|
|
78
76
|
paymentMethodIdModifiers: {}
|
|
79
77
|
}),
|
|
80
|
-
emits: /* @__PURE__ */
|
|
81
|
-
setup(
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
return Number.isFinite(
|
|
85
|
-
},
|
|
86
|
-
() => [...
|
|
78
|
+
emits: /* @__PURE__ */ ne(["submit"], ["update:enabledPricingIds", "update:paymentMethodId"]),
|
|
79
|
+
setup(a, { emit: l }) {
|
|
80
|
+
const s = a, g = l, d = te(a, "enabledPricingIds"), o = te(a, "paymentMethodId"), { $t: f } = U(), w = (u) => {
|
|
81
|
+
const n = u ? Date.parse(u) : NaN;
|
|
82
|
+
return Number.isFinite(n) ? n : 0;
|
|
83
|
+
}, I = p(
|
|
84
|
+
() => [...s.paymentMethods ?? []].sort((u, n) => w(n.created_at) - w(u.created_at))
|
|
87
85
|
);
|
|
88
|
-
return
|
|
89
|
-
() =>
|
|
90
|
-
(
|
|
91
|
-
var
|
|
92
|
-
const
|
|
93
|
-
({ id:
|
|
86
|
+
return Y(
|
|
87
|
+
() => s.paymentMethods,
|
|
88
|
+
(u, n) => {
|
|
89
|
+
var h;
|
|
90
|
+
const b = u == null ? void 0 : u.find(
|
|
91
|
+
({ id: M }) => !(n != null && n.some((z) => z.id === M))
|
|
94
92
|
);
|
|
95
|
-
if (
|
|
96
|
-
|
|
93
|
+
if (b && (n != null && n.length)) {
|
|
94
|
+
o.value = b.id;
|
|
97
95
|
return;
|
|
98
96
|
}
|
|
99
|
-
|
|
97
|
+
u != null && u.some(({ id: M }) => M === o.value) || (o.value = (h = (u == null ? void 0 : u.find(({ is_default: M }) => M)) ?? I.value[0]) == null ? void 0 : h.id);
|
|
100
98
|
},
|
|
101
99
|
{ immediate: !0 }
|
|
102
|
-
), (
|
|
100
|
+
), (u, n) => (r(), W("form", {
|
|
101
|
+
id: a.id,
|
|
103
102
|
class: "sv-subscription-management-form",
|
|
104
|
-
onSubmit:
|
|
105
|
-
}, ["prevent"]))
|
|
103
|
+
onSubmit: n[2] || (n[2] = be((b) => g("submit"), ["prevent"]))
|
|
106
104
|
}, [
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
N("div", Je, [
|
|
106
|
+
O(Fe, {
|
|
109
107
|
modelValue: d.value,
|
|
110
|
-
"onUpdate:modelValue":
|
|
108
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => d.value = b),
|
|
111
109
|
class: "sv-subscription-management-form__pricing-group",
|
|
112
|
-
"group-name":
|
|
113
|
-
pricings:
|
|
114
|
-
"billing-period":
|
|
115
|
-
currency:
|
|
110
|
+
"group-name": a.pricingGroup.name,
|
|
111
|
+
pricings: a.pricingGroup.pricings,
|
|
112
|
+
"billing-period": a.billingPeriod,
|
|
113
|
+
currency: a.currency
|
|
116
114
|
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"]),
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
N("div", null, [
|
|
116
|
+
O(t(Ve), { spacing: "xs" })
|
|
119
117
|
]),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
I.value.length > 0 ? (r(), c(Ye, {
|
|
119
|
+
key: 0,
|
|
120
|
+
modelValue: o.value,
|
|
121
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => o.value = b),
|
|
123
122
|
class: "sv-subscription-management-form__payment-methods",
|
|
124
|
-
"payment-methods":
|
|
125
|
-
"
|
|
123
|
+
"payment-methods": I.value,
|
|
124
|
+
"show-add-option": !1,
|
|
126
125
|
required: "",
|
|
127
|
-
disabled:
|
|
128
|
-
label:
|
|
126
|
+
disabled: a.disabled,
|
|
127
|
+
label: t(f)({
|
|
129
128
|
defaultMessage: "Payment method",
|
|
130
129
|
id: "subscription_management.payment_method_selector.label",
|
|
131
130
|
description: "Label above the payment method that pays for the subscription change"
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
})
|
|
132
|
+
}, null, 8, ["modelValue", "payment-methods", "disabled", "label"])) : (r(), c(t(K), {
|
|
133
|
+
key: 1,
|
|
134
|
+
id: a.id && `${a.id}__no-payment-method`,
|
|
135
|
+
variant: "body-sm",
|
|
136
|
+
color: "subtle",
|
|
137
|
+
tag: "p",
|
|
138
|
+
class: "sv-subscription-management-form__no-payment-method"
|
|
139
|
+
}, {
|
|
140
|
+
default: m(() => [
|
|
141
|
+
S(y(t(f)({
|
|
142
|
+
defaultMessage: "This subscription has no payment method to charge the change to. Please contact support to change it.",
|
|
143
|
+
id: "subscription_management.no_payment_method",
|
|
144
|
+
description: "Shown in place of the payment method on the manage subscription screen when the subscription has no usable payment method"
|
|
145
|
+
})), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["id"]))
|
|
135
149
|
])
|
|
136
|
-
],
|
|
150
|
+
], 40, Ze));
|
|
137
151
|
}
|
|
138
|
-
}),
|
|
152
|
+
}), Xe = /* @__PURE__ */ A({
|
|
139
153
|
__name: "TranslationOverride",
|
|
140
154
|
props: {
|
|
141
155
|
messages: { type: Object }
|
|
142
156
|
},
|
|
143
|
-
setup(
|
|
144
|
-
const l =
|
|
145
|
-
...
|
|
157
|
+
setup(a) {
|
|
158
|
+
const l = a, s = he(Me, void 0), g = p(() => ({
|
|
159
|
+
...s == null ? void 0 : s.messages.value,
|
|
146
160
|
...l.messages
|
|
147
161
|
}));
|
|
148
|
-
return (d,
|
|
149
|
-
var
|
|
150
|
-
return
|
|
151
|
-
locale: (
|
|
152
|
-
"date-locale": (
|
|
153
|
-
messages:
|
|
162
|
+
return (d, o) => {
|
|
163
|
+
var f, w;
|
|
164
|
+
return r(), c(t(Te), {
|
|
165
|
+
locale: (f = t(s)) == null ? void 0 : f.locale.value,
|
|
166
|
+
"date-locale": (w = t(s)) == null ? void 0 : w.dateLocale.value,
|
|
167
|
+
messages: g.value,
|
|
154
168
|
"show-timezones": !1
|
|
155
169
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
|
|
170
|
+
default: m(() => [
|
|
171
|
+
_e(d.$slots, "default")
|
|
158
172
|
]),
|
|
159
173
|
_: 3
|
|
160
174
|
}, 8, ["locale", "date-locale", "messages"]);
|
|
161
175
|
};
|
|
162
176
|
}
|
|
163
|
-
}),
|
|
177
|
+
}), et = /* @__PURE__ */ A({
|
|
164
178
|
__name: "SubscriptionManagementSummary",
|
|
165
179
|
props: {
|
|
166
180
|
invoice: { type: Object },
|
|
167
181
|
isPending: { type: Boolean },
|
|
168
182
|
hasError: { type: Boolean }
|
|
169
183
|
},
|
|
170
|
-
setup(
|
|
171
|
-
const { $t: l } =
|
|
184
|
+
setup(a) {
|
|
185
|
+
const { $t: l } = U(), s = p(() => ({
|
|
172
186
|
"invoice_preview.total_due_today_heading": l({
|
|
173
187
|
defaultMessage: "Total due",
|
|
174
188
|
id: "subscription_management.summary.total_due_heading",
|
|
175
189
|
description: 'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'
|
|
176
190
|
})
|
|
177
191
|
}));
|
|
178
|
-
return (
|
|
192
|
+
return (g, d) => (r(), c(t(He), {
|
|
179
193
|
class: "sv-subscription-management-summary",
|
|
180
|
-
title:
|
|
194
|
+
title: t(l)({
|
|
181
195
|
defaultMessage: "Order summary",
|
|
182
196
|
id: "subscription_management.summary.title",
|
|
183
197
|
description: "Title of the block previewing what a subscription change is invoiced for"
|
|
184
198
|
})
|
|
185
199
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
|
|
200
|
+
default: m(() => [
|
|
201
|
+
a.hasError ? (r(), c(t(H), {
|
|
188
202
|
key: 0,
|
|
189
203
|
class: "sv-subscription-management-summary__error sv-error",
|
|
190
|
-
title:
|
|
204
|
+
title: t(l)({
|
|
191
205
|
defaultMessage: "Unable to calculate the total. Please try again.",
|
|
192
206
|
id: "subscription_management.summary.error",
|
|
193
207
|
description: "Error shown when the invoice preview for a subscription change cannot be loaded"
|
|
194
208
|
})
|
|
195
|
-
}, null, 8, ["title"])) :
|
|
209
|
+
}, null, 8, ["title"])) : a.isPending || !a.invoice ? (r(), c(re, {
|
|
196
210
|
key: 1,
|
|
197
211
|
variant: "section",
|
|
198
212
|
class: "sv-subscription-management-summary__skeleton min-h-[120px]"
|
|
199
213
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
|
|
214
|
+
default: m(() => [
|
|
215
|
+
a.isPending ? q("", !0) : (r(), c(t(K), {
|
|
202
216
|
key: 0,
|
|
203
217
|
variant: "body-sm",
|
|
204
218
|
color: "subtle",
|
|
205
219
|
tag: "div",
|
|
206
220
|
class: "sv-subscription-management-summary__empty-state"
|
|
207
221
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
|
|
222
|
+
default: m(() => [
|
|
223
|
+
S(y(t(l)({
|
|
210
224
|
defaultMessage: "Select your plan to see what it costs.",
|
|
211
225
|
id: "subscription_management.summary.empty_state",
|
|
212
226
|
description: "Shown in the order summary before a plan has been picked to preview"
|
|
@@ -216,14 +230,14 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
216
230
|
}))
|
|
217
231
|
]),
|
|
218
232
|
_: 1
|
|
219
|
-
})) : (
|
|
233
|
+
})) : (r(), c(Xe, {
|
|
220
234
|
key: 2,
|
|
221
|
-
messages:
|
|
235
|
+
messages: s.value
|
|
222
236
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
237
|
+
default: m(() => [
|
|
238
|
+
O(t(qe), {
|
|
225
239
|
class: "sv-subscription-management-summary__invoice",
|
|
226
|
-
invoice:
|
|
240
|
+
invoice: a.invoice,
|
|
227
241
|
"is-customer-facing": ""
|
|
228
242
|
}, null, 8, ["invoice"])
|
|
229
243
|
]),
|
|
@@ -233,149 +247,110 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
233
247
|
_: 1
|
|
234
248
|
}, 8, ["title"]));
|
|
235
249
|
}
|
|
236
|
-
}),
|
|
250
|
+
}), tt = { class: "sv-subscription-management-success grid grid-cols-1 gap-4" }, nt = { class: "sv-subscription-management-success__message" }, it = /* @__PURE__ */ A({
|
|
237
251
|
__name: "SubscriptionManagementSuccess",
|
|
238
252
|
props: {
|
|
239
253
|
pricingGroupName: { type: String }
|
|
240
254
|
},
|
|
241
|
-
setup(
|
|
242
|
-
const l =
|
|
243
|
-
() =>
|
|
255
|
+
setup(a) {
|
|
256
|
+
const l = a, { $t: s } = U(), g = p(
|
|
257
|
+
() => s({
|
|
244
258
|
defaultMessage: "Subscription updated",
|
|
245
259
|
description: "Title shown on the manage subscription screen once the change is committed",
|
|
246
260
|
id: "subscription_management.success.title"
|
|
247
261
|
})
|
|
248
|
-
), d =
|
|
249
|
-
() => l.pricingGroupName ?
|
|
262
|
+
), d = p(
|
|
263
|
+
() => l.pricingGroupName ? s(
|
|
250
264
|
{
|
|
251
265
|
defaultMessage: "Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
252
266
|
description: "Confirmation of the pricing group a committed subscription change applied to",
|
|
253
267
|
id: "subscription_management.success.message"
|
|
254
268
|
},
|
|
255
269
|
{ subject: l.pricingGroupName }
|
|
256
|
-
) :
|
|
270
|
+
) : s({
|
|
257
271
|
defaultMessage: "Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",
|
|
258
272
|
description: "Confirmation of a committed subscription change when the pricing group is not known",
|
|
259
273
|
id: "subscription_management.success.message_generic"
|
|
260
274
|
})
|
|
261
275
|
);
|
|
262
|
-
return (
|
|
263
|
-
|
|
276
|
+
return (o, f) => (r(), W("div", tt, [
|
|
277
|
+
O(We, {
|
|
264
278
|
status: "success",
|
|
265
|
-
title:
|
|
279
|
+
title: g.value
|
|
266
280
|
}, {
|
|
267
|
-
default:
|
|
268
|
-
|
|
281
|
+
default: m(() => [
|
|
282
|
+
N("span", nt, y(d.value), 1)
|
|
269
283
|
]),
|
|
270
284
|
_: 1
|
|
271
285
|
}, 8, ["title"])
|
|
272
286
|
]));
|
|
273
287
|
}
|
|
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({
|
|
288
|
+
}), at = { class: "sv-subscription-management__header" }, st = { class: "flex flex-col gap-2" }, F = "sv-subscription-management-form", se = "sv-subscription-management__customized-pricing-message", ot = /* @__PURE__ */ A({
|
|
336
289
|
__name: "SubscriptionManagement",
|
|
337
290
|
props: {
|
|
338
291
|
configuration: { type: Object }
|
|
339
292
|
},
|
|
340
|
-
setup(
|
|
341
|
-
const l =
|
|
293
|
+
setup(a) {
|
|
294
|
+
const l = a, s = `${F}__no-payment-method`, g = [
|
|
295
|
+
"BUY_NOW_PAY_LATER",
|
|
296
|
+
"CARD",
|
|
297
|
+
"DIGITAL_WALLET",
|
|
298
|
+
"DIRECT_DEBIT",
|
|
299
|
+
"ONLINE_BANKING"
|
|
300
|
+
], d = (e, i) => !!i && e.id === (i == null ? void 0 : i.payment_method_id) && e.status === "ACTIVE" && e.customer_id === (i == null ? void 0 : i.customer_id) && g.includes(e.type), { $t: o } = U(), f = Ce(), w = oe(), { dispatchAction: I } = Ae(), { createPricingPlanSchedule: u } = xe(), {
|
|
301
|
+
subscription: n,
|
|
302
|
+
get: b,
|
|
303
|
+
error: h
|
|
304
|
+
} = we({
|
|
342
305
|
subscriptionId: l.configuration.subscriptionId
|
|
343
|
-
}), { items:
|
|
344
|
-
customerId:
|
|
345
|
-
}), {
|
|
306
|
+
}), { items: M, fetchAll: z } = Be({
|
|
307
|
+
customerId: f.value.customer_id
|
|
308
|
+
}), { paymentMethodOptions: ce, get: le } = Le(), { isLoading: j } = De(
|
|
346
309
|
b(),
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
310
|
+
z(),
|
|
311
|
+
le({ customerId: f.value.customer_id })
|
|
312
|
+
), Z = p(
|
|
313
|
+
() => M.value.filter((e) => d(e, n.value))
|
|
314
|
+
), C = p(
|
|
315
|
+
() => {
|
|
316
|
+
var e;
|
|
317
|
+
return je(((e = n.value) == null ? void 0 : e.pricing_plan_schedule_infos) ?? []);
|
|
318
|
+
}
|
|
319
|
+
), ue = p(() => {
|
|
320
|
+
const e = C.value;
|
|
321
|
+
return e != null && e.pricing_plan_version ? {
|
|
322
|
+
...e,
|
|
323
|
+
pricing_plan_version: Ie(e)
|
|
324
|
+
} : e;
|
|
325
|
+
}), G = p(
|
|
326
|
+
() => {
|
|
327
|
+
var e;
|
|
328
|
+
return Pe(((e = C.value) == null ? void 0 : e.pricing_plan_schedule) ?? {});
|
|
329
|
+
}
|
|
330
|
+
), L = p(
|
|
353
331
|
() => {
|
|
354
|
-
var
|
|
355
|
-
return
|
|
332
|
+
var e;
|
|
333
|
+
return Se((e = C.value) == null ? void 0 : e.pricing_plan_schedule);
|
|
356
334
|
}
|
|
357
|
-
),
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
if (!s)
|
|
335
|
+
), P = p(() => {
|
|
336
|
+
const e = ue.value;
|
|
337
|
+
if (!e)
|
|
361
338
|
return;
|
|
362
|
-
const { enabledPricingId:
|
|
363
|
-
return (
|
|
364
|
-
({
|
|
365
|
-
)
|
|
366
|
-
|
|
367
|
-
).find((p) => !!p);
|
|
368
|
-
}), ne = _(
|
|
339
|
+
const { enabledPricingId: i } = l.configuration;
|
|
340
|
+
return (i ? [i] : G.value).map(
|
|
341
|
+
(_) => Ge({ pricingPlanScheduleInfo: e, pricingId: _ })
|
|
342
|
+
).find((_) => !!_);
|
|
343
|
+
}), me = p(
|
|
369
344
|
() => {
|
|
370
|
-
var
|
|
371
|
-
return
|
|
345
|
+
var e;
|
|
346
|
+
return o(
|
|
372
347
|
{
|
|
373
348
|
defaultMessage: "Manage {subject}",
|
|
374
349
|
id: "subscription_management.title",
|
|
375
350
|
description: "Title for the manage subscription page, naming the pricing group being changed"
|
|
376
351
|
},
|
|
377
352
|
{
|
|
378
|
-
subject: ((
|
|
353
|
+
subject: ((e = P.value) == null ? void 0 : e.name) || o({
|
|
379
354
|
defaultMessage: "subscription",
|
|
380
355
|
id: "subscription_management.title.default_subject",
|
|
381
356
|
description: 'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'
|
|
@@ -383,165 +358,212 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
383
358
|
}
|
|
384
359
|
);
|
|
385
360
|
}
|
|
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;
|
|
361
|
+
), T = E([]), x = E();
|
|
362
|
+
Y(
|
|
363
|
+
[G, P],
|
|
364
|
+
([e, i]) => {
|
|
365
|
+
const { enabledPricingId: v } = l.configuration, _ = ((i == null ? void 0 : i.pricings) ?? []).map(({ id: k }) => k);
|
|
366
|
+
T.value = v && _.includes(v) ? [...e.filter((k) => !_.includes(k)), v] : e;
|
|
395
367
|
},
|
|
396
368
|
{ immediate: !0 }
|
|
397
369
|
);
|
|
398
|
-
const {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
370
|
+
const de = p(() => {
|
|
371
|
+
const e = new Set(T.value), i = new Set(G.value);
|
|
372
|
+
return e.size !== i.size || [...e].some((v) => !i.has(v));
|
|
373
|
+
}), {
|
|
374
|
+
invoice: J,
|
|
375
|
+
isPending: Q,
|
|
376
|
+
error: X,
|
|
377
|
+
load: pe
|
|
378
|
+
} = Ke();
|
|
379
|
+
Y(
|
|
380
|
+
[T, n, C, L],
|
|
381
|
+
([e, i, v, _]) => {
|
|
382
|
+
!i || e.length === 0 || _ || pe({
|
|
383
|
+
subscription: i,
|
|
384
|
+
scheduleInfo: v,
|
|
385
|
+
enabledPricingIds: e
|
|
410
386
|
});
|
|
411
387
|
},
|
|
412
388
|
{ immediate: !0 }
|
|
413
389
|
);
|
|
414
|
-
const
|
|
415
|
-
() => !
|
|
416
|
-
),
|
|
417
|
-
if (!(!
|
|
418
|
-
|
|
390
|
+
const B = E(!1), D = E(), R = E(!1), ee = p(
|
|
391
|
+
() => !j.value && !B.value && !!n.value && !!P.value && !L.value && T.value.length > 0 && de.value && !!x.value && !Q.value && !X.value && !!J.value
|
|
392
|
+
), ge = async () => {
|
|
393
|
+
if (!(!ee.value || !n.value)) {
|
|
394
|
+
B.value = !0, D.value = void 0;
|
|
419
395
|
try {
|
|
420
|
-
await
|
|
421
|
-
pricingPlanSubscriptionId:
|
|
422
|
-
enabledPricings:
|
|
423
|
-
pricing_id:
|
|
396
|
+
await u({
|
|
397
|
+
pricingPlanSubscriptionId: n.value.id,
|
|
398
|
+
enabledPricings: T.value.map((e) => ({
|
|
399
|
+
pricing_id: e
|
|
424
400
|
}))
|
|
425
|
-
}),
|
|
426
|
-
} catch (
|
|
427
|
-
|
|
401
|
+
}), R.value = !0;
|
|
402
|
+
} catch (e) {
|
|
403
|
+
w.error(
|
|
428
404
|
"SUBSCRIPTION_UPDATE_FAILED",
|
|
429
405
|
"Failed to start a new pricing plan schedule",
|
|
430
406
|
{},
|
|
431
|
-
|
|
432
|
-
),
|
|
407
|
+
e
|
|
408
|
+
), D.value = o({
|
|
433
409
|
defaultMessage: "Something went wrong. Please try again.",
|
|
434
410
|
id: "subscription_management.update_error",
|
|
435
411
|
description: "Error shown when committing a subscription change fails"
|
|
436
412
|
});
|
|
437
413
|
} finally {
|
|
438
|
-
|
|
414
|
+
B.value = !1;
|
|
439
415
|
}
|
|
440
416
|
}
|
|
441
|
-
},
|
|
417
|
+
}, V = p(
|
|
442
418
|
() => {
|
|
443
|
-
var
|
|
444
|
-
return ((
|
|
419
|
+
var e, i, v;
|
|
420
|
+
return ((i = (e = C.value) == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : i.billing_period) ?? ((v = n.value) == null ? void 0 : v.billing_period);
|
|
445
421
|
}
|
|
446
|
-
)
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
422
|
+
), $ = p(() => R.value ? "updated" : j.value ? "loading" : h.value ? "load-error" : P.value && L.value ? "customized" : P.value && V.value ? "form" : "empty"), ve = p(() => {
|
|
423
|
+
const e = $.value === "customized" ? se : $.value === "form" && Z.value.length === 0 ? s : void 0;
|
|
424
|
+
return { form: F, ...e && { "aria-describedby": e } };
|
|
425
|
+
});
|
|
426
|
+
return (e, i) => (r(), c(t(Ne), { class: "sv-subscription-management sv-root sv-screen" }, {
|
|
427
|
+
header: m(() => [
|
|
428
|
+
N("div", at, [
|
|
429
|
+
O(t(K), {
|
|
451
430
|
variant: "heading-2",
|
|
452
431
|
tag: "h1",
|
|
453
432
|
class: "sv-subscription-management__title"
|
|
454
433
|
}, {
|
|
455
|
-
default:
|
|
456
|
-
|
|
434
|
+
default: m(() => [
|
|
435
|
+
S(y(me.value), 1)
|
|
457
436
|
]),
|
|
458
437
|
_: 1
|
|
459
438
|
})
|
|
460
439
|
])
|
|
461
440
|
]),
|
|
462
|
-
content:
|
|
463
|
-
var
|
|
441
|
+
content: m(() => {
|
|
442
|
+
var v, _;
|
|
464
443
|
return [
|
|
465
|
-
|
|
444
|
+
$.value === "updated" ? (r(), c(it, {
|
|
466
445
|
key: 0,
|
|
467
446
|
class: "sv-subscription-management__success",
|
|
468
|
-
"pricing-group-name": (
|
|
469
|
-
}, null, 8, ["pricing-group-name"])) :
|
|
447
|
+
"pricing-group-name": (v = P.value) == null ? void 0 : v.name
|
|
448
|
+
}, null, 8, ["pricing-group-name"])) : $.value === "loading" ? (r(), c(re, {
|
|
470
449
|
key: 1,
|
|
471
450
|
variant: "section",
|
|
472
451
|
class: "min-h-[220px]"
|
|
473
|
-
})) :
|
|
452
|
+
})) : $.value === "load-error" ? (r(), c(t(H), {
|
|
474
453
|
key: 2,
|
|
475
|
-
"
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
454
|
+
class: "sv-subscription-management__load-error sv-error",
|
|
455
|
+
title: t(o)({
|
|
456
|
+
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
457
|
+
id: "subscription_management.load_error",
|
|
458
|
+
description: "Error shown in place of the manage subscription form when the subscription cannot be loaded"
|
|
459
|
+
})
|
|
460
|
+
}, null, 8, ["title"])) : $.value === "customized" ? (r(), c(ae, {
|
|
461
|
+
key: 3,
|
|
462
|
+
class: "sv-subscription-management__customized-pricing",
|
|
463
|
+
icon: "info"
|
|
464
|
+
}, {
|
|
465
|
+
title: m(() => [
|
|
466
|
+
S(y(t(o)({
|
|
467
|
+
defaultMessage: "This subscription has custom pricing",
|
|
468
|
+
id: "subscription_management.customized_pricing.title",
|
|
469
|
+
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"
|
|
470
|
+
})), 1)
|
|
471
|
+
]),
|
|
472
|
+
message: m(() => [
|
|
473
|
+
N("span", { id: se }, y(t(o)({
|
|
474
|
+
defaultMessage: "Please contact support to change it.",
|
|
475
|
+
id: "subscription_management.customized_pricing.message",
|
|
476
|
+
description: "Message shown on the manage subscription screen when the subscription has pricing customized for it, which cannot be changed here"
|
|
477
|
+
})), 1)
|
|
478
|
+
]),
|
|
479
|
+
_: 1
|
|
480
|
+
})) : $.value === "form" && P.value && V.value ? (r(), c(Qe, {
|
|
481
|
+
key: 4,
|
|
482
|
+
id: F,
|
|
483
|
+
"enabled-pricing-ids": T.value,
|
|
484
|
+
"onUpdate:enabledPricingIds": i[0] || (i[0] = (k) => T.value = k),
|
|
485
|
+
"payment-method-id": x.value,
|
|
486
|
+
"onUpdate:paymentMethodId": i[1] || (i[1] = (k) => x.value = k),
|
|
479
487
|
class: "sv-subscription-management__form",
|
|
480
|
-
"pricing-group":
|
|
481
|
-
"payment-methods":
|
|
482
|
-
"
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "
|
|
487
|
-
|
|
488
|
-
"
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
488
|
+
"pricing-group": P.value,
|
|
489
|
+
"payment-methods": Z.value,
|
|
490
|
+
"billing-period": V.value,
|
|
491
|
+
currency: (_ = t(n)) == null ? void 0 : _.billing_currency,
|
|
492
|
+
disabled: B.value,
|
|
493
|
+
onSubmit: ge
|
|
494
|
+
}, null, 8, ["enabled-pricing-ids", "payment-method-id", "pricing-group", "payment-methods", "billing-period", "currency", "disabled"])) : (r(), c(ae, {
|
|
495
|
+
key: 5,
|
|
496
|
+
class: "sv-subscription-management__empty-state",
|
|
497
|
+
icon: "receipt_long"
|
|
498
|
+
}, {
|
|
499
|
+
title: m(() => [
|
|
500
|
+
S(y(t(o)({
|
|
501
|
+
defaultMessage: "Nothing to change",
|
|
502
|
+
id: "subscription_management.empty_state.title",
|
|
503
|
+
description: "Title shown on the manage subscription screen when the subscription has nothing the customer can change"
|
|
504
|
+
})), 1)
|
|
505
|
+
]),
|
|
506
|
+
message: m(() => [
|
|
507
|
+
S(y(t(o)({
|
|
508
|
+
defaultMessage: "This subscription has no options that can be changed right now.",
|
|
509
|
+
id: "subscription_management.empty_state.message",
|
|
510
|
+
description: "Message shown on the manage subscription screen when the subscription is not running or has no group of options to choose from"
|
|
511
|
+
})), 1)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
}))
|
|
494
515
|
];
|
|
495
516
|
}),
|
|
496
|
-
aside:
|
|
497
|
-
|
|
517
|
+
aside: m(() => [
|
|
518
|
+
R.value ? (r(), c(t(ie), {
|
|
498
519
|
key: 0,
|
|
499
520
|
size: "lg",
|
|
500
521
|
class: "sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",
|
|
501
522
|
type: "button",
|
|
502
|
-
onClick:
|
|
523
|
+
onClick: i[2] || (i[2] = (v) => t(I)({ action: "navigate-to-customer-overview" }))
|
|
503
524
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
525
|
+
default: m(() => [
|
|
526
|
+
S(y(t(o)({
|
|
506
527
|
defaultMessage: "Done",
|
|
507
528
|
id: "subscription_management.done_button.label",
|
|
508
529
|
description: "Label of the button that leaves the manage subscription screen once the change is committed"
|
|
509
530
|
})), 1)
|
|
510
531
|
]),
|
|
511
532
|
_: 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), {
|
|
533
|
+
})) : (r(), W(fe, { key: 1 }, [
|
|
534
|
+
L.value ? q("", !0) : (r(), c(et, {
|
|
520
535
|
key: 0,
|
|
536
|
+
class: "sv-subscription-management__summary",
|
|
537
|
+
invoice: t(J),
|
|
538
|
+
"is-pending": t(j) || t(Q),
|
|
539
|
+
"has-error": !!t(X)
|
|
540
|
+
}, null, 8, ["invoice", "is-pending", "has-error"])),
|
|
541
|
+
D.value ? (r(), c(t(H), {
|
|
542
|
+
key: 1,
|
|
521
543
|
class: "sv-subscription-management__update-error sv-error",
|
|
522
|
-
title:
|
|
523
|
-
}, null, 8, ["title"])) :
|
|
524
|
-
|
|
525
|
-
|
|
544
|
+
title: D.value
|
|
545
|
+
}, null, 8, ["title"])) : q("", !0),
|
|
546
|
+
N("div", st, [
|
|
547
|
+
O(t(ie), ye({
|
|
526
548
|
size: "lg",
|
|
527
549
|
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
|
-
|
|
550
|
+
type: "submit"
|
|
551
|
+
}, ve.value, {
|
|
552
|
+
disabled: !ee.value,
|
|
553
|
+
loading: B.value
|
|
554
|
+
}), {
|
|
555
|
+
default: m(() => [
|
|
556
|
+
S(y(t(o)({
|
|
535
557
|
defaultMessage: "Update subscription",
|
|
536
558
|
id: "subscription_management.update_button.label",
|
|
537
559
|
description: "Label of the button that commits the subscription change"
|
|
538
560
|
})), 1)
|
|
539
561
|
]),
|
|
540
562
|
_: 1
|
|
541
|
-
},
|
|
542
|
-
|
|
563
|
+
}, 16, ["disabled", "loading"]),
|
|
564
|
+
O(Re, {
|
|
543
565
|
class: "sv-subscription-management__kpi",
|
|
544
|
-
"payment-method-options":
|
|
566
|
+
"payment-method-options": t(ce)
|
|
545
567
|
}, null, 8, ["payment-method-options"])
|
|
546
568
|
])
|
|
547
569
|
], 64))
|
|
@@ -549,7 +571,7 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
549
571
|
_: 1
|
|
550
572
|
}));
|
|
551
573
|
}
|
|
552
|
-
}),
|
|
574
|
+
}), rt = /* @__PURE__ */ A({
|
|
553
575
|
__name: "SubscriptionManagement.entry",
|
|
554
576
|
props: {
|
|
555
577
|
environment: { type: String },
|
|
@@ -568,24 +590,31 @@ const De = { class: "sv-subscription-management-form__body grid grid-cols-1 gap-
|
|
|
568
590
|
branding: { type: Object },
|
|
569
591
|
configuration: { type: Object }
|
|
570
592
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const l =
|
|
573
|
-
return (
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
593
|
+
setup(a) {
|
|
594
|
+
const l = ke("subscription-management");
|
|
595
|
+
return (s, g) => {
|
|
596
|
+
var d;
|
|
597
|
+
return r(), c(t($e), {
|
|
598
|
+
entry: s.$props,
|
|
599
|
+
"component-name": t(l),
|
|
600
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
601
|
+
"required-configuration": { subscriptionId: (d = a.configuration) == null ? void 0 : d.subscriptionId },
|
|
602
|
+
onError: g[0] || (g[0] = (o) => s.$emit("error", o))
|
|
603
|
+
}, {
|
|
604
|
+
default: m(() => [
|
|
605
|
+
(r(), c(ot, {
|
|
606
|
+
key: a.configuration.subscriptionId,
|
|
607
|
+
configuration: a.configuration
|
|
608
|
+
}, null, 8, ["configuration"]))
|
|
609
|
+
]),
|
|
610
|
+
_: 1
|
|
611
|
+
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
612
|
+
};
|
|
584
613
|
}
|
|
585
|
-
}), { define:
|
|
586
|
-
|
|
614
|
+
}), { define: Ot } = Oe(
|
|
615
|
+
rt,
|
|
587
616
|
"subscription-management"
|
|
588
617
|
);
|
|
589
618
|
export {
|
|
590
|
-
|
|
619
|
+
Ot as defineSolvimonSubscriptionManagement
|
|
591
620
|
};
|