@solvimon/solvimon-web 0.1.0-alpha.17 → 0.1.0-alpha.19
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 +91 -50
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs +241 -0
- package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
- package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
- package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
- package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
- package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
- package/dist/Button.vue.es-aLcIdATK.js +1 -0
- package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
- package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
- package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
- package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
- package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
- package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs +3261 -0
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
- package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
- package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
- package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
- package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
- package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
- package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
- package/dist/Input.vue.es-C8VhMKuI.js +1 -0
- package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
- package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
- package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
- package/dist/Modal.vue.es-CX5geho3.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs +155 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs +54 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-BitwS9Re.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-ZtmPXXwI.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BZTzCUiu.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-BK2aLPCo.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs +149 -0
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-CuRwe9_9.mjs +691 -0
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/PaymentIntegrationFormStripe-JZw2m1kJ.mjs +545 -0
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/PaymentMethodForm-C5WqTDow.mjs +4 -0
- package/dist/PaymentMethodForm-CBjHdZT7.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +80 -30
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
- package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
- package/dist/Section.vue.es-tLYXp-tF.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +17 -63
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +8 -5
- package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
- package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
- package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
- package/dist/adyen-BMDZQBUG.js +1 -0
- package/dist/{url-BjZ1Pg0l.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/cn.es-BLHlMR4Y.js +1 -0
- package/dist/cn.es-DB5pDpxS.mjs +3298 -0
- package/dist/comparators.es-9VsCB-JI.mjs +175 -0
- package/dist/comparators.es-wrKHduVq.js +1 -0
- package/dist/component-BG6DmXcy.mjs +9 -0
- package/dist/component-hDuDTBt5.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +31 -29
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -67
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -11
- package/dist/core/index.mjs +197 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -121
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-BTJzBHMy.js +1 -0
- package/dist/customElements-DdFA__me.mjs +6729 -0
- package/dist/{customer-DAgdegIW.mjs → customer-B0AMetq6.mjs} +1 -1
- package/dist/customer-D7HUfF3j.js +1 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/en-US-BSrbFk5W.js +1 -0
- package/dist/en-US-D0P7NNNZ.mjs +228 -0
- package/dist/{en-US-DSzSbgL5.mjs → en-US-Daw3v6GD.mjs} +60 -30
- package/dist/en-US-scSQQXK8.js +1 -0
- package/dist/error-Cg-i7gGl.js +1 -0
- package/dist/error-DY_I2hPx.mjs +13 -0
- package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D-oVnc8H.mjs +68 -0
- package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
- package/dist/getComposedString.es-DvSNX-_z.js +1 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-BJ3dHkSK.js +1 -0
- package/dist/index-C5bKRt7l.mjs +1069 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.es-0cystq8F.mjs +542 -0
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.mjs +42 -0
- package/dist/{invoices-BXDgW8ch.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-Li7RW89R.mjs → nl-NL-B4zEBFTw.mjs} +60 -52
- package/dist/nl-NL-B5tuyIOM.mjs +88 -0
- package/dist/nl-NL-Bs3d8q6T.js +1 -0
- package/dist/nl-NL-DIAZWDF9.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/{paymentMethods-xzFD2L30.mjs → paymentMethods-BsrkEbKT.mjs} +23 -19
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-DV6csRej.mjs → payments-B6Nfd6Al.mjs} +1 -1
- package/dist/payments-Bbm1HMQj.js +1 -0
- package/dist/pricing-3W7XLwL6.js +1 -0
- package/dist/pricing-CJxS2hr2.mjs +17 -0
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
- package/dist/{pricingPlanSchedule-C_cqUyTk.mjs → pricingPlanSchedule-CXG3CQ61.mjs} +3 -1
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1271 -630
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +54 -81
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +41 -32
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +35 -37
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +885 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +45 -63
- package/dist/slots.es-BpwYO3A3.mjs +18 -0
- package/dist/slots.es-Dq1PTUOv.js +1 -0
- package/dist/sorting.es-CjTrRfSW.mjs +105 -0
- package/dist/sorting.es-RyvcgbSL.js +1 -0
- package/dist/{subscription-B4dBAY9C.mjs → subscription-C41lG-rH.mjs} +1 -1
- package/dist/subscriptions-B4BOzLxR.js +1 -0
- package/dist/subscriptions-C2C4WTuI.mjs +58 -0
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
- package/dist/{useActionDispatchProvider-zB_GKeUR.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-VfeQ6rG2.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-bO4D6e4Z.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-C59FXHzp.mjs → useIncrementalLoading-BK9pRYAU.mjs} +6 -5
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-CxxkBTGY.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Dhg-hx8C.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DBz7T7sM.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BhpIg7OF.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-PcMjtMSF.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -3
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-B5AbGWsn.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-Bb1Xbads.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-DWLtNqBB.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-BZqFkz7p.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +66 -49
- package/dist/ApiStatus-CyNDp_op.mjs +0 -9
- package/dist/ApiStatus-oqvUEWJx.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs +0 -77
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs +0 -27
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs +0 -1537
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +0 -1
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +0 -156
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs +0 -217
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +0 -37
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +0 -1
- package/dist/component-CUJ_G2Nw.mjs +0 -962
- package/dist/component-CiKxWtdx.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/customer-AfRcAZ5P.js +0 -1
- package/dist/en-US-QzQnGXP1.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-BHgajZHq.js +0 -1
- package/dist/nl-NL-C4rr-1tr.js +0 -1
- package/dist/paymentMethods-BMcc-eTl.js +0 -1
- package/dist/payments-DMvmB5vg.js +0 -1
- package/dist/pricing-B1uImUm4.mjs +0 -19
- package/dist/pricing-BEjY_5wb.js +0 -1
- package/dist/registry-CeMxLjwU.js +0 -1
- package/dist/registry-CyENvS6l.mjs +0 -153
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +0 -542
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-CrNDM9qa.mjs +0 -79
- package/dist/subscriptions-DC-mxa17.js +0 -1
- package/dist/url-D8GJi5rF.js +0 -1
- package/dist/useActionDispatchProvider-bqR_FeM4.js +0 -1
- package/dist/useIncrementalLoading-BgWuwoMo.js +0 -1
- package/dist/useInvoicesList-BXZ9uV9i.js +0 -1
- package/dist/useLoadInitialData-BqiAFNFi.js +0 -1
- package/dist/usePaymentMethodOptions-DszFvgKX.js +0 -1
- package/dist/usePayments-DgoZoBZh.mjs +0 -36
- package/dist/usePayments-is5c66Z6.js +0 -1
- package/dist/usePortal-C4qWsJeq.js +0 -1
- package/dist/useService-DKm3QtT4.js +0 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +0 -23
- package/dist/useSubscription-DuUNc1_l.js +0 -1
- package/dist/useTopUpModal-DNyWrHDv.mjs +0 -1012
- package/dist/useTopUpModal-DeF-cfCK.js +0 -1
- package/dist/vendor-ui-BoGKOJ36.mjs +0 -29826
- package/dist/vendor-ui-BuRqLx74.js +0 -1
|
@@ -0,0 +1,885 @@
|
|
|
1
|
+
import { computed, ref, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, shallowRef, watch, toRef, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { _ as _sfc_main$e } from "../../IconButton.vue.es-DcC4f5EQ.mjs";
|
|
3
|
+
import { a as _sfc_main$8 } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
4
|
+
import { _ as _sfc_main$b } from "../../ErrorNotification.vue.es-C22Kt8Qn.mjs";
|
|
5
|
+
import { u as useIntl, _ as _sfc_main$7, b as useLogger, d as _sfc_main$i, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
6
|
+
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
7
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-D55t_7LY.mjs";
|
|
8
|
+
import { b as getMostRecentScheduleInfo, a as getSubscriptionName } from "../../subscription-C41lG-rH.mjs";
|
|
9
|
+
import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs";
|
|
10
|
+
import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs";
|
|
11
|
+
import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs";
|
|
12
|
+
import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
|
|
13
|
+
import { _ as _sfc_main$f } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
14
|
+
import { _ as _sfc_main$6 } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
15
|
+
import { g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
|
|
16
|
+
import { f as formatAmount, b as formatBillingPeriod } from "../../formatting.es-D-oVnc8H.mjs";
|
|
17
|
+
import { _ as _sfc_main$a } from "../../PaymentMethod.vue.es-CH__kPw4.mjs";
|
|
18
|
+
import { M as Modal } from "../../Modal.vue.es-5EpA4Q0t.mjs";
|
|
19
|
+
import { c as createSubscriptionsService } from "../../subscriptions-C2C4WTuI.mjs";
|
|
20
|
+
import { _ as _sfc_main$9 } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
|
|
21
|
+
import { g as getPaginatedFullList } from "../../api.es-C5pe8LUl.mjs";
|
|
22
|
+
import { i as isApiSuccessCollectionResponse } from "../../useIncrementalLoading-BK9pRYAU.mjs";
|
|
23
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-BsrkEbKT.mjs";
|
|
24
|
+
import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
|
|
25
|
+
import { u as useSubscription } from "../../useSubscription--IGLmLS6.mjs";
|
|
26
|
+
import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
|
|
27
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
28
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
29
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
30
|
+
function useSubscriptionActions({
|
|
31
|
+
subscription
|
|
32
|
+
}) {
|
|
33
|
+
const { dispatchAction } = useActionDispatchProvider();
|
|
34
|
+
const isCancellable = computed(() => {
|
|
35
|
+
if (!subscription.value) return false;
|
|
36
|
+
const inactivePeriods = subscription.value.inactive_periods;
|
|
37
|
+
return !inactivePeriods || inactivePeriods.length === 0;
|
|
38
|
+
});
|
|
39
|
+
const isRenewable = computed(() => {
|
|
40
|
+
var _a;
|
|
41
|
+
const inactivePeriods = (_a = subscription.value) == null ? void 0 : _a.inactive_periods;
|
|
42
|
+
return Array.isArray(inactivePeriods) && inactivePeriods.length > 0;
|
|
43
|
+
});
|
|
44
|
+
const pendingVariant = ref();
|
|
45
|
+
const cancel = () => {
|
|
46
|
+
if (!subscription.value) return;
|
|
47
|
+
pendingVariant.value = "CANCEL";
|
|
48
|
+
};
|
|
49
|
+
const renew = () => {
|
|
50
|
+
if (!subscription.value) return;
|
|
51
|
+
pendingVariant.value = "RENEW";
|
|
52
|
+
};
|
|
53
|
+
const dismiss = () => {
|
|
54
|
+
pendingVariant.value = void 0;
|
|
55
|
+
};
|
|
56
|
+
const manage = () => {
|
|
57
|
+
if (!subscription.value) return;
|
|
58
|
+
dispatchAction({
|
|
59
|
+
action: "manage-subscription",
|
|
60
|
+
data: { subscriptionId: subscription.value.id }
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return { isCancellable, isRenewable, pendingVariant, cancel, renew, dismiss, manage };
|
|
64
|
+
}
|
|
65
|
+
function getHeadlinePrice(pricing) {
|
|
66
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
67
|
+
const config = (_c = (_b = (_a = pricing.items) == null ? void 0 : _a[0]) == null ? void 0 : _b.configs) == null ? void 0 : _c[0];
|
|
68
|
+
const band = (_e = (_d = config == null ? void 0 : config.details) == null ? void 0 : _d.bands) == null ? void 0 : _e[0];
|
|
69
|
+
return {
|
|
70
|
+
amount: (band == null ? void 0 : band.amount) ?? (band == null ? void 0 : band.fixed_amount),
|
|
71
|
+
billingPeriod: ((_f = config == null ? void 0 : config.details) == null ? void 0 : _f.pricing_period) ?? ((_g = config == null ? void 0 : config.details) == null ? void 0 : _g.billing_period)
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function getEnabledPricingsEntries(scheduleInfo) {
|
|
75
|
+
var _a, _b, _c;
|
|
76
|
+
const enabledPricingIds = new Set(
|
|
77
|
+
(((_a = scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.enabled_pricings) ?? []).map(
|
|
78
|
+
({ pricing_id }) => pricing_id
|
|
79
|
+
)
|
|
80
|
+
);
|
|
81
|
+
if (enabledPricingIds.size === 0) {
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
const pricingGroups = ((_c = (_b = scheduleInfo.pricing_plan_version) == null ? void 0 : _b.pricing_categories) == null ? void 0 : _c.flatMap(
|
|
85
|
+
(category) => category.pricing_groups ?? []
|
|
86
|
+
)) ?? [];
|
|
87
|
+
return pricingGroups.flatMap(
|
|
88
|
+
(group) => (group.pricings ?? []).filter((pricing) => enabledPricingIds.has(pricing.id)).map((pricing) => ({
|
|
89
|
+
pricingId: pricing.id,
|
|
90
|
+
pricingGroupId: group.id,
|
|
91
|
+
groupName: group.name,
|
|
92
|
+
// A pricing without a name of its own is only identifiable by the choice it belongs to.
|
|
93
|
+
name: getNameFromPricing(pricing) || group.name,
|
|
94
|
+
...getHeadlinePrice(pricing)
|
|
95
|
+
}))
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
const _hoisted_1$3 = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" };
|
|
99
|
+
const _hoisted_2$1 = { class: "sv-enabled-pricings-list__item-content grow" };
|
|
100
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
101
|
+
__name: "EnabledPricingsListItem",
|
|
102
|
+
props: {
|
|
103
|
+
entry: { type: Object }
|
|
104
|
+
},
|
|
105
|
+
emits: ["upgrade"],
|
|
106
|
+
setup(__props) {
|
|
107
|
+
const props = __props;
|
|
108
|
+
const { $t } = useIntl();
|
|
109
|
+
const price = computed(() => {
|
|
110
|
+
const { amount, billingPeriod } = props.entry;
|
|
111
|
+
if (!amount) {
|
|
112
|
+
return void 0;
|
|
113
|
+
}
|
|
114
|
+
if (!billingPeriod) {
|
|
115
|
+
return formatAmount(amount);
|
|
116
|
+
}
|
|
117
|
+
return $t(
|
|
118
|
+
{
|
|
119
|
+
defaultMessage: "{amount} per {period}",
|
|
120
|
+
id: "enabled_pricings_list.item.price",
|
|
121
|
+
description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
amount: formatAmount(amount),
|
|
125
|
+
period: formatBillingPeriod(billingPeriod, {
|
|
126
|
+
short: true,
|
|
127
|
+
hideValueForExactPeriods: true
|
|
128
|
+
})
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
});
|
|
132
|
+
return (_ctx, _cache) => {
|
|
133
|
+
return openBlock(), createBlock(unref(_sfc_main$6), { class: "sv-enabled-pricings-list__item" }, {
|
|
134
|
+
default: withCtx(() => [
|
|
135
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
136
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
137
|
+
createVNode(unref(_sfc_main$7), {
|
|
138
|
+
tag: "span",
|
|
139
|
+
variant: "body-xs",
|
|
140
|
+
shade: "lighter",
|
|
141
|
+
class: "sv-enabled-pricings-list__item-group"
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createTextVNode(toDisplayString(__props.entry.groupName), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
createVNode(unref(_sfc_main$7), {
|
|
149
|
+
tag: "h3",
|
|
150
|
+
variant: "heading-3",
|
|
151
|
+
"no-spacing": "",
|
|
152
|
+
class: "sv-enabled-pricings-list__item-name"
|
|
153
|
+
}, {
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
createTextVNode(toDisplayString(__props.entry.name), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}),
|
|
159
|
+
price.value ? (openBlock(), createBlock(unref(_sfc_main$7), {
|
|
160
|
+
key: 0,
|
|
161
|
+
tag: "span",
|
|
162
|
+
variant: "body-sm",
|
|
163
|
+
shade: "lighter",
|
|
164
|
+
class: "sv-enabled-pricings-list__item-price"
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createTextVNode(toDisplayString(price.value), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})) : createCommentVNode("", true)
|
|
171
|
+
]),
|
|
172
|
+
createVNode(unref(_sfc_main$8), {
|
|
173
|
+
variant: "outline",
|
|
174
|
+
color: "gray",
|
|
175
|
+
class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
|
|
176
|
+
type: "button",
|
|
177
|
+
size: "xs",
|
|
178
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("upgrade", __props.entry))
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [
|
|
181
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
182
|
+
defaultMessage: "Upgrade",
|
|
183
|
+
id: "enabled_pricings_list.item.upgrade_button.label",
|
|
184
|
+
description: "Label for the button that changes which pricing is enabled for a group"
|
|
185
|
+
})), 1)
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
const _hoisted_1$2 = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" };
|
|
197
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
198
|
+
__name: "EnabledPricingsList",
|
|
199
|
+
props: {
|
|
200
|
+
pricingPlanSchedule: { type: Object }
|
|
201
|
+
},
|
|
202
|
+
emits: ["upgrade"],
|
|
203
|
+
setup(__props) {
|
|
204
|
+
const props = __props;
|
|
205
|
+
const { $t } = useIntl();
|
|
206
|
+
const entries = computed(() => getEnabledPricingsEntries(props.pricingPlanSchedule));
|
|
207
|
+
return (_ctx, _cache) => {
|
|
208
|
+
return entries.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
209
|
+
key: 0,
|
|
210
|
+
class: "sv-enabled-pricings-list",
|
|
211
|
+
"content-background": "none",
|
|
212
|
+
"no-border": "",
|
|
213
|
+
"no-spacing": "",
|
|
214
|
+
title: unref($t)({
|
|
215
|
+
defaultMessage: "Upgrades",
|
|
216
|
+
id: "enabled_pricings_list.title",
|
|
217
|
+
description: "Title for the block listing the pricings enabled on a subscription"
|
|
218
|
+
})
|
|
219
|
+
}, {
|
|
220
|
+
default: withCtx(() => [
|
|
221
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
222
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, (entry) => {
|
|
223
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
224
|
+
key: entry.pricingId,
|
|
225
|
+
entry,
|
|
226
|
+
onUpgrade: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("upgrade", $event))
|
|
227
|
+
}, null, 8, ["entry"]);
|
|
228
|
+
}), 128))
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["title"])) : createCommentVNode("", true);
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
function useSubscriptionCancellationModalLabels({
|
|
237
|
+
variant,
|
|
238
|
+
renewableUntil,
|
|
239
|
+
billingPeriodEndsAt
|
|
240
|
+
}) {
|
|
241
|
+
const { $t } = useIntl();
|
|
242
|
+
const isRenewing = computed(() => variant.value === "RENEW");
|
|
243
|
+
const title = computed(
|
|
244
|
+
() => isRenewing.value ? $t({
|
|
245
|
+
defaultMessage: "Renew subscription",
|
|
246
|
+
description: "Title of the renew subscription confirmation modal",
|
|
247
|
+
id: "subscription_cancellation_modal.renew.title"
|
|
248
|
+
}) : $t({
|
|
249
|
+
defaultMessage: "Cancel subscription",
|
|
250
|
+
description: "Title of the cancel subscription confirmation modal",
|
|
251
|
+
id: "subscription_cancellation_modal.cancel.title"
|
|
252
|
+
})
|
|
253
|
+
);
|
|
254
|
+
const explanation = computed(() => {
|
|
255
|
+
if (!isRenewing.value) {
|
|
256
|
+
if (billingPeriodEndsAt.value) {
|
|
257
|
+
return $t(
|
|
258
|
+
{
|
|
259
|
+
defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until {date}.",
|
|
260
|
+
description: "Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",
|
|
261
|
+
id: "subscription_cancellation_modal.cancel.explanation_with_date"
|
|
262
|
+
},
|
|
263
|
+
{ date: billingPeriodEndsAt.value }
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
return $t({
|
|
267
|
+
defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
|
|
268
|
+
description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
|
|
269
|
+
id: "subscription_cancellation_modal.cancel.explanation"
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
if (!renewableUntil.value) {
|
|
273
|
+
return $t({
|
|
274
|
+
defaultMessage: "Your subscription will continue as before, and billing will resume on its usual schedule.",
|
|
275
|
+
description: "Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",
|
|
276
|
+
id: "subscription_cancellation_modal.renew.explanation"
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
return $t(
|
|
280
|
+
{
|
|
281
|
+
defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
|
|
282
|
+
description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
|
|
283
|
+
id: "subscription_cancellation_modal.renew.explanation_with_date"
|
|
284
|
+
},
|
|
285
|
+
{ date: renewableUntil.value }
|
|
286
|
+
);
|
|
287
|
+
});
|
|
288
|
+
const confirmButtonText = computed(
|
|
289
|
+
() => isRenewing.value ? $t({
|
|
290
|
+
defaultMessage: "Renew subscription",
|
|
291
|
+
description: "Label of the confirm button in the renew subscription modal",
|
|
292
|
+
id: "subscription_cancellation_modal.renew.confirm_button.label"
|
|
293
|
+
}) : $t({
|
|
294
|
+
defaultMessage: "Cancel subscription",
|
|
295
|
+
description: "Label of the confirm button in the cancel subscription modal",
|
|
296
|
+
id: "subscription_cancellation_modal.cancel.confirm_button.label"
|
|
297
|
+
})
|
|
298
|
+
);
|
|
299
|
+
const cancelButtonText = computed(
|
|
300
|
+
() => $t({
|
|
301
|
+
defaultMessage: "Cancel",
|
|
302
|
+
description: "Label of the button that dismisses the cancellation modal",
|
|
303
|
+
id: "subscription_cancellation_modal.cancel_button.label"
|
|
304
|
+
})
|
|
305
|
+
);
|
|
306
|
+
const errorMessage = computed(
|
|
307
|
+
() => isRenewing.value ? $t({
|
|
308
|
+
defaultMessage: "We could not renew your subscription. Please try again.",
|
|
309
|
+
description: "Error shown when undoing a cancellation fails",
|
|
310
|
+
id: "subscription_cancellation_modal.renew.error"
|
|
311
|
+
}) : $t({
|
|
312
|
+
defaultMessage: "We could not cancel your subscription. Please try again.",
|
|
313
|
+
description: "Error shown when cancelling a subscription fails",
|
|
314
|
+
id: "subscription_cancellation_modal.cancel.error"
|
|
315
|
+
})
|
|
316
|
+
);
|
|
317
|
+
return { title, explanation, confirmButtonText, cancelButtonText, errorMessage };
|
|
318
|
+
}
|
|
319
|
+
const PAGE_SIZE = 50;
|
|
320
|
+
function usePaymentMethod() {
|
|
321
|
+
const { getPaymentMethods } = createPaymentMethodsService();
|
|
322
|
+
const paymentMethod = shallowRef();
|
|
323
|
+
const get = async ({
|
|
324
|
+
customerId,
|
|
325
|
+
paymentMethodId
|
|
326
|
+
}) => {
|
|
327
|
+
const response = await getPaginatedFullList(async (page) => {
|
|
328
|
+
const pageResponse = await getPaymentMethods({
|
|
329
|
+
customerId,
|
|
330
|
+
pagination: { page, pageSize: PAGE_SIZE }
|
|
331
|
+
});
|
|
332
|
+
if (!isApiSuccessCollectionResponse(pageResponse)) {
|
|
333
|
+
throw new Error("Could not load the customer’s payment methods.");
|
|
334
|
+
}
|
|
335
|
+
return pageResponse;
|
|
336
|
+
});
|
|
337
|
+
paymentMethod.value = response.data.find(({ id }) => id === paymentMethodId);
|
|
338
|
+
return paymentMethod.value;
|
|
339
|
+
};
|
|
340
|
+
return { paymentMethod, get };
|
|
341
|
+
}
|
|
342
|
+
const _hoisted_1$1 = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" };
|
|
343
|
+
const _hoisted_2 = {
|
|
344
|
+
key: 0,
|
|
345
|
+
class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
|
|
346
|
+
};
|
|
347
|
+
const _hoisted_3 = {
|
|
348
|
+
key: 0,
|
|
349
|
+
class: "sv-subscription-cancellation-modal__renews flex gap-1"
|
|
350
|
+
};
|
|
351
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
352
|
+
__name: "SubscriptionCancellationModal",
|
|
353
|
+
props: {
|
|
354
|
+
showModal: { type: Boolean },
|
|
355
|
+
variant: { type: null },
|
|
356
|
+
subscription: { type: Object },
|
|
357
|
+
avatar: { type: String }
|
|
358
|
+
},
|
|
359
|
+
emits: ["confirmed", "close"],
|
|
360
|
+
setup(__props, { emit: __emit }) {
|
|
361
|
+
const props = __props;
|
|
362
|
+
const emit = __emit;
|
|
363
|
+
const { $t, formatDate } = useIntl();
|
|
364
|
+
const logger = useLogger();
|
|
365
|
+
const { setSubscriptionCancellation } = createSubscriptionsService();
|
|
366
|
+
const variant = computed(() => props.variant);
|
|
367
|
+
const renewableUntil = computed(() => {
|
|
368
|
+
var _a;
|
|
369
|
+
const periods = ((_a = props.subscription) == null ? void 0 : _a.inactive_periods) ?? [];
|
|
370
|
+
const cancellation = periods.find(({ type }) => type === "CANCEL") ?? periods[0];
|
|
371
|
+
if (!cancellation) return void 0;
|
|
372
|
+
return formatDate({
|
|
373
|
+
date: cancellation.start_at,
|
|
374
|
+
format: "date",
|
|
375
|
+
offsetType: "local"
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
const billingPeriodEndsAt = computed(() => {
|
|
379
|
+
var _a, _b;
|
|
380
|
+
const invoiceDate = (_b = (_a = props.subscription) == null ? void 0 : _a.next_invoice) == null ? void 0 : _b.invoice_date;
|
|
381
|
+
if (!invoiceDate) return void 0;
|
|
382
|
+
return formatDate({
|
|
383
|
+
date: invoiceDate,
|
|
384
|
+
format: "date",
|
|
385
|
+
offsetType: "local"
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
const renewsOn = billingPeriodEndsAt;
|
|
389
|
+
const enabledPricingIds = computed(
|
|
390
|
+
() => {
|
|
391
|
+
var _a, _b;
|
|
392
|
+
return (((_b = (_a = getMostRecentScheduleInfo(props.subscription)) == null ? void 0 : _a.pricing_plan_schedule) == null ? void 0 : _b.enabled_pricings) ?? []).map(({ pricing_id }) => pricing_id).filter((pricingId) => Boolean(pricingId));
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
const { title, explanation, confirmButtonText, cancelButtonText, errorMessage } = useSubscriptionCancellationModalLabels({ variant, renewableUntil, billingPeriodEndsAt });
|
|
396
|
+
const { paymentMethod, get: fetchPaymentMethod } = usePaymentMethod();
|
|
397
|
+
watch(
|
|
398
|
+
[
|
|
399
|
+
() => props.showModal,
|
|
400
|
+
() => {
|
|
401
|
+
var _a;
|
|
402
|
+
return (_a = props.subscription) == null ? void 0 : _a.payment_method_id;
|
|
403
|
+
},
|
|
404
|
+
() => {
|
|
405
|
+
var _a;
|
|
406
|
+
return (_a = props.subscription) == null ? void 0 : _a.customer_id;
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
([showModal, paymentMethodId, customerId]) => {
|
|
410
|
+
var _a;
|
|
411
|
+
if (!showModal || !paymentMethodId || !customerId) return;
|
|
412
|
+
if (paymentMethodId === ((_a = paymentMethod.value) == null ? void 0 : _a.id)) return;
|
|
413
|
+
void fetchPaymentMethod({ customerId, paymentMethodId }).catch(() => void 0);
|
|
414
|
+
},
|
|
415
|
+
{ immediate: true }
|
|
416
|
+
);
|
|
417
|
+
const isSubmitting = ref(false);
|
|
418
|
+
const hasFailed = ref(false);
|
|
419
|
+
watch(
|
|
420
|
+
() => props.showModal,
|
|
421
|
+
(showModal) => {
|
|
422
|
+
if (!showModal) return;
|
|
423
|
+
hasFailed.value = false;
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
const handleConfirm = async () => {
|
|
427
|
+
if (!props.subscription || !props.variant || isSubmitting.value) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
isSubmitting.value = true;
|
|
431
|
+
hasFailed.value = false;
|
|
432
|
+
try {
|
|
433
|
+
await setSubscriptionCancellation({
|
|
434
|
+
id: props.subscription.id,
|
|
435
|
+
variant: props.variant
|
|
436
|
+
});
|
|
437
|
+
emit("confirmed");
|
|
438
|
+
emit("close");
|
|
439
|
+
} catch (error) {
|
|
440
|
+
logger.error(
|
|
441
|
+
"SUBSCRIPTION_CANCELLATION_FAILED",
|
|
442
|
+
"Failed to change the cancellation state of a subscription",
|
|
443
|
+
{ variant: props.variant },
|
|
444
|
+
error
|
|
445
|
+
);
|
|
446
|
+
hasFailed.value = true;
|
|
447
|
+
} finally {
|
|
448
|
+
isSubmitting.value = false;
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
const handleClose = () => {
|
|
452
|
+
if (isSubmitting.value) return;
|
|
453
|
+
emit("close");
|
|
454
|
+
};
|
|
455
|
+
return (_ctx, _cache) => {
|
|
456
|
+
return openBlock(), createBlock(unref(Modal), {
|
|
457
|
+
size: "md",
|
|
458
|
+
"show-modal": __props.showModal,
|
|
459
|
+
title: unref(title),
|
|
460
|
+
"confirm-button-text": unref(confirmButtonText),
|
|
461
|
+
"cancel-button-text": unref(cancelButtonText),
|
|
462
|
+
"is-loading": isSubmitting.value,
|
|
463
|
+
"no-click-away": isSubmitting.value,
|
|
464
|
+
"no-backdrop-close": isSubmitting.value,
|
|
465
|
+
onConfirm: handleConfirm,
|
|
466
|
+
onClose: handleClose
|
|
467
|
+
}, {
|
|
468
|
+
body: withCtx(() => [
|
|
469
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
470
|
+
createVNode(unref(_sfc_main$7), {
|
|
471
|
+
variant: "body-sm",
|
|
472
|
+
shade: "lighter",
|
|
473
|
+
tag: "p",
|
|
474
|
+
class: "sv-subscription-cancellation-modal__explanation"
|
|
475
|
+
}, {
|
|
476
|
+
default: withCtx(() => [
|
|
477
|
+
createTextVNode(toDisplayString(unref(explanation)), 1)
|
|
478
|
+
]),
|
|
479
|
+
_: 1
|
|
480
|
+
}),
|
|
481
|
+
__props.subscription ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
482
|
+
key: 0,
|
|
483
|
+
"no-spacing": "",
|
|
484
|
+
class: "sv-subscription-cancellation-modal__subscription"
|
|
485
|
+
}, {
|
|
486
|
+
default: withCtx(() => [
|
|
487
|
+
createVNode(_sfc_main$9, {
|
|
488
|
+
subscription: __props.subscription,
|
|
489
|
+
avatar: __props.avatar,
|
|
490
|
+
"enabled-pricing-ids": enabledPricingIds.value
|
|
491
|
+
}, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
|
|
492
|
+
unref(renewsOn) || unref(paymentMethod) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
493
|
+
unref(renewsOn) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
494
|
+
createVNode(unref(_sfc_main$7), {
|
|
495
|
+
tag: "span",
|
|
496
|
+
variant: "body-xs",
|
|
497
|
+
shade: "light",
|
|
498
|
+
weight: "semibold"
|
|
499
|
+
}, {
|
|
500
|
+
default: withCtx(() => [
|
|
501
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
502
|
+
defaultMessage: "Renews",
|
|
503
|
+
description: "Label before the date the subscription renews, shown in the cancel subscription modal",
|
|
504
|
+
id: "subscription_cancellation_modal.renews_label"
|
|
505
|
+
})), 1)
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}),
|
|
509
|
+
createVNode(unref(_sfc_main$7), {
|
|
510
|
+
tag: "span",
|
|
511
|
+
variant: "body-xs",
|
|
512
|
+
shade: "light"
|
|
513
|
+
}, {
|
|
514
|
+
default: withCtx(() => [
|
|
515
|
+
createTextVNode(toDisplayString(unref(renewsOn)), 1)
|
|
516
|
+
]),
|
|
517
|
+
_: 1
|
|
518
|
+
})
|
|
519
|
+
])) : createCommentVNode("", true),
|
|
520
|
+
unref(paymentMethod) ? (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
521
|
+
key: 1,
|
|
522
|
+
variant: "condensed",
|
|
523
|
+
class: "sv-subscription-cancellation-modal__payment-method",
|
|
524
|
+
"payment-method": unref(paymentMethod)
|
|
525
|
+
}, null, 8, ["payment-method"])) : createCommentVNode("", true)
|
|
526
|
+
])) : createCommentVNode("", true)
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
})) : createCommentVNode("", true),
|
|
530
|
+
hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
531
|
+
key: 1,
|
|
532
|
+
class: "sv-subscription-cancellation-modal__error sv-error",
|
|
533
|
+
title: unref(errorMessage)
|
|
534
|
+
}, null, 8, ["title"])) : createCommentVNode("", true)
|
|
535
|
+
])
|
|
536
|
+
]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]);
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
const _hoisted_1 = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" };
|
|
543
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
544
|
+
__name: "SubscriptionDetails",
|
|
545
|
+
props: {
|
|
546
|
+
subscription: { type: Object },
|
|
547
|
+
schedulesData: { type: Array },
|
|
548
|
+
customer: { type: Object },
|
|
549
|
+
paymentMethods: { type: Array },
|
|
550
|
+
walletBalances: { default: () => [], type: Array },
|
|
551
|
+
hasWalletBalancesError: { type: Boolean },
|
|
552
|
+
avatar: { type: String },
|
|
553
|
+
isLoading: { type: Boolean },
|
|
554
|
+
error: { type: null }
|
|
555
|
+
},
|
|
556
|
+
emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed"],
|
|
557
|
+
setup(__props, { emit: __emit }) {
|
|
558
|
+
const props = __props;
|
|
559
|
+
const emit = __emit;
|
|
560
|
+
const { $t } = useIntl();
|
|
561
|
+
const {
|
|
562
|
+
isCancellable,
|
|
563
|
+
isRenewable,
|
|
564
|
+
pendingVariant,
|
|
565
|
+
cancel: handleCancel,
|
|
566
|
+
renew: handleRenew,
|
|
567
|
+
dismiss: handleDismissCancellation,
|
|
568
|
+
manage: handleUpgrade
|
|
569
|
+
} = useSubscriptionActions({ subscription: toRef(props, "subscription") });
|
|
570
|
+
const confirmedVariant = ref();
|
|
571
|
+
watch(pendingVariant, (variant) => {
|
|
572
|
+
if (variant) confirmedVariant.value = void 0;
|
|
573
|
+
});
|
|
574
|
+
const handleCancellationConfirmed = () => {
|
|
575
|
+
confirmedVariant.value = pendingVariant.value;
|
|
576
|
+
emit("subscription-changed");
|
|
577
|
+
};
|
|
578
|
+
const cancellationSuccessMessage = computed(() => {
|
|
579
|
+
if (!confirmedVariant.value) return void 0;
|
|
580
|
+
return confirmedVariant.value === "RENEW" ? $t({
|
|
581
|
+
defaultMessage: "Your subscription has been renewed.",
|
|
582
|
+
id: "subscription_details.renew_success",
|
|
583
|
+
description: "Confirmation shown after a cancellation has been undone"
|
|
584
|
+
}) : $t({
|
|
585
|
+
defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
|
|
586
|
+
id: "subscription_details.cancel_success",
|
|
587
|
+
description: "Confirmation shown after a subscription has been cancelled"
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
const currentScheduleInfo = computed(() => getMostRecentScheduleInfo(props.subscription));
|
|
591
|
+
const subscriptionPaymentMethod = computed(
|
|
592
|
+
() => (props.paymentMethods ?? []).find(({ id }) => {
|
|
593
|
+
var _a;
|
|
594
|
+
return id === ((_a = props.subscription) == null ? void 0 : _a.payment_method_id);
|
|
595
|
+
})
|
|
596
|
+
);
|
|
597
|
+
const topUpSubscriptions = computed(() => props.subscription ? [props.subscription] : []);
|
|
598
|
+
const title = computed(
|
|
599
|
+
() => getSubscriptionName({
|
|
600
|
+
subscription: props.subscription,
|
|
601
|
+
fallback: $t({
|
|
602
|
+
defaultMessage: "Subscription details",
|
|
603
|
+
id: "subscription_details.title",
|
|
604
|
+
description: "Title for the subscription details page"
|
|
605
|
+
})
|
|
606
|
+
})
|
|
607
|
+
);
|
|
608
|
+
return (_ctx, _cache) => {
|
|
609
|
+
return openBlock(), createBlock(unref(ContentWithAsideLayout), { class: "sv-subscription-details sv-root sv-screen" }, {
|
|
610
|
+
header: withCtx(() => [
|
|
611
|
+
createElementVNode("div", _hoisted_1, [
|
|
612
|
+
createVNode(unref(_sfc_main$7), {
|
|
613
|
+
variant: "heading-2",
|
|
614
|
+
tag: "h1",
|
|
615
|
+
class: "sv-subscription-details__title grow"
|
|
616
|
+
}, {
|
|
617
|
+
default: withCtx(() => [
|
|
618
|
+
createTextVNode(toDisplayString(title.value), 1)
|
|
619
|
+
]),
|
|
620
|
+
_: 1
|
|
621
|
+
}),
|
|
622
|
+
unref(isRenewable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
623
|
+
key: 0,
|
|
624
|
+
variant: "outline",
|
|
625
|
+
color: "gray",
|
|
626
|
+
class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
|
|
627
|
+
type: "button",
|
|
628
|
+
onClick: unref(handleRenew)
|
|
629
|
+
}, {
|
|
630
|
+
default: withCtx(() => [
|
|
631
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
632
|
+
defaultMessage: "Renew subscription",
|
|
633
|
+
id: "subscription_details.renew_button.label",
|
|
634
|
+
description: "Label for the renew subscription button on the subscription details page"
|
|
635
|
+
})), 1)
|
|
636
|
+
]),
|
|
637
|
+
_: 1
|
|
638
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
639
|
+
unref(isCancellable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
640
|
+
key: 1,
|
|
641
|
+
variant: "outline",
|
|
642
|
+
color: "gray",
|
|
643
|
+
class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
|
|
644
|
+
type: "button",
|
|
645
|
+
onClick: unref(handleCancel)
|
|
646
|
+
}, {
|
|
647
|
+
default: withCtx(() => [
|
|
648
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
649
|
+
defaultMessage: "Cancel subscription",
|
|
650
|
+
id: "subscription_details.cancel_button.label",
|
|
651
|
+
description: "Label for the cancel subscription button on the subscription details page"
|
|
652
|
+
})), 1)
|
|
653
|
+
]),
|
|
654
|
+
_: 1
|
|
655
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
656
|
+
])
|
|
657
|
+
]),
|
|
658
|
+
content: withCtx(() => [
|
|
659
|
+
cancellationSuccessMessage.value ? (openBlock(), createBlock(unref(_sfc_main$e), {
|
|
660
|
+
key: 0,
|
|
661
|
+
class: "sv-subscription-details__cancellation-success",
|
|
662
|
+
type: "success",
|
|
663
|
+
title: cancellationSuccessMessage.value
|
|
664
|
+
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
665
|
+
__props.error ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
666
|
+
key: 1,
|
|
667
|
+
class: "sv-subscription-details__error sv-error",
|
|
668
|
+
title: unref($t)({
|
|
669
|
+
defaultMessage: "Unable to load this subscription. Please try again later.",
|
|
670
|
+
id: "subscription_details.load_error",
|
|
671
|
+
description: "Error message shown when the subscription cannot be loaded on the subscription details page"
|
|
672
|
+
})
|
|
673
|
+
}, null, 8, ["title"])) : __props.isLoading ? (openBlock(), createBlock(_sfc_main$f, {
|
|
674
|
+
key: 2,
|
|
675
|
+
variant: "section",
|
|
676
|
+
class: "min-h-[220px]"
|
|
677
|
+
})) : __props.subscription ? (openBlock(), createBlock(_sfc_main$g, {
|
|
678
|
+
key: 3,
|
|
679
|
+
class: "sv-subscription-details__schedules",
|
|
680
|
+
"schedules-data": __props.schedulesData ?? [],
|
|
681
|
+
configuration: { subscriptionId: __props.subscription.id },
|
|
682
|
+
"is-loading": __props.isLoading
|
|
683
|
+
}, null, 8, ["schedules-data", "configuration", "is-loading"])) : (openBlock(), createBlock(_sfc_main$h, {
|
|
684
|
+
key: 4,
|
|
685
|
+
class: "sv-subscription-details__empty-state",
|
|
686
|
+
icon: "receipt_long"
|
|
687
|
+
}, {
|
|
688
|
+
title: withCtx(() => [
|
|
689
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
690
|
+
defaultMessage: "Subscription not found",
|
|
691
|
+
id: "subscription_details.empty_state.title",
|
|
692
|
+
description: "Title shown when the requested subscription does not exist"
|
|
693
|
+
})), 1)
|
|
694
|
+
]),
|
|
695
|
+
message: withCtx(() => [
|
|
696
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
697
|
+
defaultMessage: "This subscription is no longer available.",
|
|
698
|
+
id: "subscription_details.empty_state.message",
|
|
699
|
+
description: "Message shown when the requested subscription does not exist"
|
|
700
|
+
})), 1)
|
|
701
|
+
]),
|
|
702
|
+
_: 1
|
|
703
|
+
}))
|
|
704
|
+
]),
|
|
705
|
+
aside: withCtx(() => [
|
|
706
|
+
createVNode(_sfc_main$c, {
|
|
707
|
+
class: "sv-subscription-details__wallet-balances",
|
|
708
|
+
"has-error": Boolean(__props.hasWalletBalancesError),
|
|
709
|
+
"is-loading": __props.isLoading,
|
|
710
|
+
"wallet-balances": __props.walletBalances,
|
|
711
|
+
"show-top-up-button": "",
|
|
712
|
+
customer: __props.customer,
|
|
713
|
+
"payment-methods": __props.paymentMethods,
|
|
714
|
+
subscriptions: topUpSubscriptions.value,
|
|
715
|
+
onTopUpCharged: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up-charged")),
|
|
716
|
+
onAutoTopUpSaved: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("auto-top-up-saved")),
|
|
717
|
+
onAutoTopUpCancelled: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("auto-top-up-cancelled")),
|
|
718
|
+
onPaymentMethodStored: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("payment-method-stored"))
|
|
719
|
+
}, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
|
|
720
|
+
currentScheduleInfo.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
721
|
+
key: 0,
|
|
722
|
+
class: "sv-subscription-details__upgrades",
|
|
723
|
+
"pricing-plan-schedule": currentScheduleInfo.value,
|
|
724
|
+
onUpgrade: unref(handleUpgrade)
|
|
725
|
+
}, null, 8, ["pricing-plan-schedule", "onUpgrade"])) : createCommentVNode("", true),
|
|
726
|
+
subscriptionPaymentMethod.value ? (openBlock(), createBlock(_sfc_main$d, {
|
|
727
|
+
key: 1,
|
|
728
|
+
class: "sv-subscription-details__payment-method",
|
|
729
|
+
"is-loading": __props.isLoading,
|
|
730
|
+
"payment-methods": [subscriptionPaymentMethod.value],
|
|
731
|
+
configuration: { showViewAllButton: false, showAddButton: false }
|
|
732
|
+
}, null, 8, ["is-loading", "payment-methods"])) : createCommentVNode("", true),
|
|
733
|
+
createVNode(_sfc_main$3, {
|
|
734
|
+
"show-modal": Boolean(unref(pendingVariant)),
|
|
735
|
+
variant: unref(pendingVariant),
|
|
736
|
+
subscription: __props.subscription,
|
|
737
|
+
avatar: __props.avatar,
|
|
738
|
+
onConfirmed: handleCancellationConfirmed,
|
|
739
|
+
onClose: unref(handleDismissCancellation)
|
|
740
|
+
}, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
|
|
741
|
+
]),
|
|
742
|
+
_: 1
|
|
743
|
+
});
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
748
|
+
__name: "SubscriptionDetails.entry.view",
|
|
749
|
+
props: {
|
|
750
|
+
configuration: { type: Object },
|
|
751
|
+
environment: { type: String },
|
|
752
|
+
locale: { type: String },
|
|
753
|
+
dateLocale: { type: String },
|
|
754
|
+
messages: { type: Object },
|
|
755
|
+
primaryColor: { type: String },
|
|
756
|
+
secondaryColor: { type: String },
|
|
757
|
+
isShadowRoot: { type: Boolean },
|
|
758
|
+
experimentalFeatures: { type: Array },
|
|
759
|
+
logLevel: { type: String },
|
|
760
|
+
onLog: { type: Function },
|
|
761
|
+
allowedPortalTypes: { type: Array },
|
|
762
|
+
portalObject: { type: Object },
|
|
763
|
+
cssOverrides: { type: [String, Array] },
|
|
764
|
+
branding: { type: Object }
|
|
765
|
+
},
|
|
766
|
+
setup(__props) {
|
|
767
|
+
const props = __props;
|
|
768
|
+
const customerId = props.portalObject.customer_id;
|
|
769
|
+
const {
|
|
770
|
+
subscription,
|
|
771
|
+
withPlanData,
|
|
772
|
+
get: fetchSubscription,
|
|
773
|
+
error
|
|
774
|
+
} = useSubscription({ subscriptionId: props.configuration.subscriptionId });
|
|
775
|
+
const { customer, get: fetchCustomer } = useCustomer({ customerId });
|
|
776
|
+
const { items: paymentMethods, fetchAll: fetchPaymentMethods } = usePaymentMethods({ customerId });
|
|
777
|
+
const {
|
|
778
|
+
walletBalances,
|
|
779
|
+
apiStatus: walletBalancesApiStatus,
|
|
780
|
+
fetch: fetchWalletBalances
|
|
781
|
+
} = useCustomerWalletBalances({ customerId });
|
|
782
|
+
const { isLoading } = useLoadInitialData(
|
|
783
|
+
fetchSubscription(),
|
|
784
|
+
fetchCustomer.execute(),
|
|
785
|
+
fetchPaymentMethods(),
|
|
786
|
+
fetchWalletBalances()
|
|
787
|
+
);
|
|
788
|
+
const schedulesData = computed(() => subscription.value ? withPlanData(subscription.value) : []);
|
|
789
|
+
const walletBalanceItems = computed(() => {
|
|
790
|
+
var _a;
|
|
791
|
+
return ((_a = walletBalances.value) == null ? void 0 : _a.wallet_balances) ?? [];
|
|
792
|
+
});
|
|
793
|
+
const hasWalletBalancesError = computed(() => walletBalancesApiStatus.value === ApiStatus.Failed);
|
|
794
|
+
return (_ctx, _cache) => {
|
|
795
|
+
return renderSlot(_ctx.$slots, "default", {
|
|
796
|
+
subscription: unref(subscription),
|
|
797
|
+
schedulesData: schedulesData.value,
|
|
798
|
+
customer: unref(customer),
|
|
799
|
+
paymentMethods: unref(paymentMethods),
|
|
800
|
+
walletBalances: walletBalanceItems.value,
|
|
801
|
+
hasWalletBalancesError: hasWalletBalancesError.value,
|
|
802
|
+
isLoading: unref(isLoading),
|
|
803
|
+
error: unref(error),
|
|
804
|
+
refreshWalletBalances: unref(fetchWalletBalances),
|
|
805
|
+
refreshPaymentMethods: unref(fetchPaymentMethods),
|
|
806
|
+
refreshSubscription: unref(fetchSubscription)
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
812
|
+
__name: "SubscriptionDetails.entry",
|
|
813
|
+
props: {
|
|
814
|
+
configuration: { type: Object },
|
|
815
|
+
environment: { type: String },
|
|
816
|
+
locale: { type: String },
|
|
817
|
+
dateLocale: { type: String },
|
|
818
|
+
messages: { type: Object },
|
|
819
|
+
primaryColor: { type: String },
|
|
820
|
+
secondaryColor: { type: String },
|
|
821
|
+
isShadowRoot: { type: Boolean },
|
|
822
|
+
experimentalFeatures: { type: Array },
|
|
823
|
+
logLevel: { type: String },
|
|
824
|
+
onLog: { type: Function },
|
|
825
|
+
allowedPortalTypes: { type: Array },
|
|
826
|
+
portalObject: { type: Object },
|
|
827
|
+
cssOverrides: { type: [String, Array] },
|
|
828
|
+
branding: { type: Object }
|
|
829
|
+
},
|
|
830
|
+
setup(__props) {
|
|
831
|
+
const componentName = getComponentName("subscription-details");
|
|
832
|
+
return (_ctx, _cache) => {
|
|
833
|
+
return openBlock(), createBlock(unref(_sfc_main$i), {
|
|
834
|
+
entry: _ctx.$props,
|
|
835
|
+
"component-name": unref(componentName),
|
|
836
|
+
"allowed-portal-types": ["CUSTOMER"],
|
|
837
|
+
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
838
|
+
}, {
|
|
839
|
+
default: withCtx(() => [
|
|
840
|
+
createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
841
|
+
default: withCtx(({
|
|
842
|
+
subscription,
|
|
843
|
+
schedulesData,
|
|
844
|
+
customer,
|
|
845
|
+
paymentMethods,
|
|
846
|
+
walletBalances,
|
|
847
|
+
hasWalletBalancesError,
|
|
848
|
+
isLoading,
|
|
849
|
+
error,
|
|
850
|
+
refreshWalletBalances,
|
|
851
|
+
refreshPaymentMethods,
|
|
852
|
+
refreshSubscription
|
|
853
|
+
}) => [
|
|
854
|
+
createVNode(_sfc_main$2, {
|
|
855
|
+
subscription,
|
|
856
|
+
"schedules-data": schedulesData,
|
|
857
|
+
customer,
|
|
858
|
+
avatar: __props.configuration.avatar,
|
|
859
|
+
"payment-methods": paymentMethods,
|
|
860
|
+
"wallet-balances": walletBalances,
|
|
861
|
+
"has-wallet-balances-error": hasWalletBalancesError,
|
|
862
|
+
"is-loading": isLoading,
|
|
863
|
+
error,
|
|
864
|
+
onTopUpCharged: refreshWalletBalances,
|
|
865
|
+
onAutoTopUpSaved: refreshWalletBalances,
|
|
866
|
+
onAutoTopUpCancelled: refreshWalletBalances,
|
|
867
|
+
onPaymentMethodStored: refreshPaymentMethods,
|
|
868
|
+
onSubscriptionChanged: refreshSubscription
|
|
869
|
+
}, null, 8, ["subscription", "schedules-data", "customer", "avatar", "payment-methods", "wallet-balances", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
|
|
870
|
+
]),
|
|
871
|
+
_: 1
|
|
872
|
+
}, 16)
|
|
873
|
+
]),
|
|
874
|
+
_: 1
|
|
875
|
+
}, 8, ["entry", "component-name"]);
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
const { define: defineSolvimonSubscriptionDetails } = createSolvimonElement(
|
|
880
|
+
_sfc_main,
|
|
881
|
+
"subscription-details"
|
|
882
|
+
);
|
|
883
|
+
export {
|
|
884
|
+
defineSolvimonSubscriptionDetails
|
|
885
|
+
};
|