@solvimon/solvimon-web 0.1.0-alpha.18 → 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 +70 -31
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
- 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-BWnZ98RQ.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-D7gL7dZX.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-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
- 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-DbY35gE_.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-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-COjIVYX4.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-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-PIT8gHYN.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-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
- package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
- 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/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
- 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-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
- 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/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} +13 -25
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -55
- 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-DovIxTG1.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-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
- 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-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
- 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-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-TnRjtlOw.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/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} +1250 -610
- 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} +33 -36
- 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} +21 -28
- 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} +17 -29
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
- 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} +32 -41
- 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/subscriptions-B4BOzLxR.js +1 -0
- package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
- 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-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +55 -45
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
- 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-DurgWlLC.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
- package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
- package/dist/component--Y7Igv5i.mjs +0 -1022
- package/dist/component-DIy1hvJM.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-brfznoHY.js +0 -1
- package/dist/en-US-BvOHPudj.js +0 -1
- package/dist/index-BMWWP8xj.js +0 -1
- package/dist/index-Do7kzLpg.mjs +0 -265
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-Cf3dSYSj.js +0 -1
- package/dist/nl-NL-COGUFg60.js +0 -1
- package/dist/paymentMethods-DVDC_WfL.js +0 -1
- package/dist/payments-DVZFO5yb.js +0 -1
- package/dist/pricing-CuYndX6t.js +0 -1
- package/dist/pricing-GwLCiSzs.mjs +0 -19
- package/dist/registry-Ck0Gb6rj.mjs +0 -153
- package/dist/registry-Cra6yoB4.js +0 -1
- 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/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-BFCKVHnP.js +0 -1
- package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
- package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
- package/dist/useInvoicesList-DmisMQzy.js +0 -1
- package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
- package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
- package/dist/usePayments-BieVBaz-.js +0 -1
- package/dist/usePayments-D88XSZfS.mjs +0 -42
- package/dist/usePortal-B954nyEB.js +0 -1
- package/dist/useService-BiljI7XA.js +0 -1
- package/dist/useSubscription-9rJpFNUF.mjs +0 -29
- package/dist/useSubscription-k3limdu_.js +0 -1
- package/dist/vendor-ui-Dfh3_g4q.js +0 -1
- package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
|
@@ -1,21 +1,566 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { w as withExpand
|
|
3
|
-
import { c as createRequestService,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, createTextVNode, createElementBlock, unref, createCommentVNode, renderSlot, createSlots, Fragment, renderList, useModel, watch, mergeModels, mergeProps, reactive, normalizeClass, withModifiers, normalizeStyle } from "vue";
|
|
2
|
+
import { w as withExpand } from "./api.es-C5pe8LUl.mjs";
|
|
3
|
+
import { u as useIntl, _ as _sfc_main$h, c as createRequestService, a as useConfig, b as useLogger, g as createLatestGuard } from "./customElements-DdFA__me.mjs";
|
|
4
|
+
import { E as EXPAND_ALL } from "./component-BG6DmXcy.mjs";
|
|
5
|
+
import { u as useService } from "./useService-W3Kxems4.mjs";
|
|
6
|
+
import { _ as _sfc_main$w } from "./ErrorNotification.vue.es-C22Kt8Qn.mjs";
|
|
7
|
+
import { i as isFixedPricing, a as isFlexiblePricing, h as hasOneOfPricingTypes } from "./pricingItemConfigs.es-BPIm6S8M.mjs";
|
|
8
|
+
import { f as formatAmount } from "./formatting.es-D-oVnc8H.mjs";
|
|
9
|
+
import { a as _sfc_main$i, _ as _sfc_main$j } from "./Button.vue.es-BrWHdiEA.mjs";
|
|
10
|
+
import { _ as _sfc_main$f, T as TooltipContent, a as _sfc_main$g } from "./TooltipParagraph.vue.es-B5aHQv9O.mjs";
|
|
11
|
+
import { _ as _sfc_main$k } from "./Section.vue.es-MEFUWCxU.mjs";
|
|
12
|
+
import { _ as _sfc_main$l } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
13
|
+
import { b as _sfc_main$n, a as _sfc_main$r } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
|
|
14
|
+
import { u as useValidation, c as common, _ as _sfc_main$p, a as requiredIf, r as required } from "./index-C5bKRt7l.mjs";
|
|
15
|
+
import { _ as _sfc_main$s } from "./Divider.vue.es-wKkIVBgb.mjs";
|
|
16
|
+
import { _ as _sfc_main$q } from "./Expand.vue.es-C4_XmqbR.mjs";
|
|
17
|
+
import { _ as _sfc_main$m } from "./cn.es-DB5pDpxS.mjs";
|
|
18
|
+
import { c as createInvoicesService } from "./invoices-BSd-nKeE.mjs";
|
|
8
19
|
import { u as useWatchDebounced } from "./useWatchDebounced-Zmxd6InB.mjs";
|
|
9
|
-
import { _ as _sfc_main$
|
|
10
|
-
import { _ as _sfc_main$
|
|
11
|
-
import {
|
|
20
|
+
import { _ as _sfc_main$o } from "./Input.vue.es-Dp_RH03h.mjs";
|
|
21
|
+
import { _ as _sfc_main$t, a as _sfc_main$u } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs";
|
|
22
|
+
import { _ as _sfc_main$v } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
|
|
23
|
+
import { g as getCustomerCountry } from "./customer.es-C_vSWcVA.mjs";
|
|
24
|
+
import { u as usePaymentMethodOptions } from "./usePaymentMethodOptions-d49aOdLB.mjs";
|
|
25
|
+
import { M as Modal } from "./Modal.vue.es-5EpA4Q0t.mjs";
|
|
26
|
+
const formatWalletBalanceValue = (formatMessage, formatNumber, balanceValue) => {
|
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
|
28
|
+
if (balanceValue == null ? void 0 : balanceValue.amount) {
|
|
29
|
+
return formatAmount(balanceValue.amount);
|
|
30
|
+
}
|
|
31
|
+
if (balanceValue == null ? void 0 : balanceValue.credits) {
|
|
32
|
+
const quantity = Number(balanceValue.credits.quantity);
|
|
33
|
+
const unitLabel = quantity === 1 ? (_b = (_a = balanceValue.credits.credit_type) == null ? void 0 : _a.unit_name) == null ? void 0 : _b.singular : ((_d = (_c = balanceValue.credits.credit_type) == null ? void 0 : _c.unit_name) == null ? void 0 : _d.plural) ?? ((_f = (_e = balanceValue.credits.credit_type) == null ? void 0 : _e.unit_name) == null ? void 0 : _f.singular);
|
|
34
|
+
const unit = unitLabel ?? formatMessage({
|
|
35
|
+
defaultMessage: "credits",
|
|
36
|
+
description: "Wallet balances credits default message",
|
|
37
|
+
id: "wB/wXs"
|
|
38
|
+
});
|
|
39
|
+
return `${formatNumber(quantity)} ${unit}`;
|
|
40
|
+
}
|
|
41
|
+
return formatMessage({
|
|
42
|
+
defaultMessage: "N/A",
|
|
43
|
+
description: "Fallback wallet balance label when no balance is available",
|
|
44
|
+
id: "PW+sL4"
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
const REFRESH_INTERVAL_MS = 3e4;
|
|
48
|
+
const SECONDS_PER_MINUTE = 60;
|
|
49
|
+
const MONTHS_PER_YEAR = 12;
|
|
50
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
51
|
+
__name: "DateTimeAgo",
|
|
52
|
+
props: {
|
|
53
|
+
date: {},
|
|
54
|
+
actionVerb: {}
|
|
55
|
+
},
|
|
56
|
+
setup(__props) {
|
|
57
|
+
const SECONDS_PER_HOUR = 60 * SECONDS_PER_MINUTE;
|
|
58
|
+
const SECONDS_PER_DAY = 24 * SECONDS_PER_HOUR;
|
|
59
|
+
const props = __props;
|
|
60
|
+
const { $t, formatDate } = useIntl();
|
|
61
|
+
const now = ref(Date.now());
|
|
62
|
+
let refreshTimer;
|
|
63
|
+
onMounted(() => {
|
|
64
|
+
refreshTimer = setInterval(() => {
|
|
65
|
+
now.value = Date.now();
|
|
66
|
+
}, REFRESH_INTERVAL_MS);
|
|
67
|
+
});
|
|
68
|
+
onBeforeUnmount(() => {
|
|
69
|
+
clearInterval(refreshTimer);
|
|
70
|
+
});
|
|
71
|
+
const elapsedMonths = (from, to) => {
|
|
72
|
+
const months = (to.getFullYear() - from.getFullYear()) * MONTHS_PER_YEAR + (to.getMonth() - from.getMonth());
|
|
73
|
+
return to.getDate() < from.getDate() ? months - 1 : months;
|
|
74
|
+
};
|
|
75
|
+
const timeAgo = computed(() => {
|
|
76
|
+
const elapsed = Math.max(0, (now.value - props.date.getTime()) / 1e3);
|
|
77
|
+
if (elapsed < SECONDS_PER_MINUTE) {
|
|
78
|
+
return $t(
|
|
79
|
+
{
|
|
80
|
+
defaultMessage: "{count, plural, one {# second} other {# seconds}} ago",
|
|
81
|
+
id: "dateTimeAgo.seconds",
|
|
82
|
+
description: "Relative time in whole seconds"
|
|
83
|
+
},
|
|
84
|
+
{ count: Math.trunc(elapsed) }
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
if (elapsed < SECONDS_PER_HOUR) {
|
|
88
|
+
return $t(
|
|
89
|
+
{
|
|
90
|
+
defaultMessage: "{count, plural, one {# minute} other {# minutes}} ago",
|
|
91
|
+
id: "dateTimeAgo.minutes",
|
|
92
|
+
description: "Relative time in whole minutes"
|
|
93
|
+
},
|
|
94
|
+
{ count: Math.trunc(elapsed / SECONDS_PER_MINUTE) }
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
if (elapsed < SECONDS_PER_DAY) {
|
|
98
|
+
return $t(
|
|
99
|
+
{
|
|
100
|
+
defaultMessage: "{count, plural, one {# hour} other {# hours}} ago",
|
|
101
|
+
id: "dateTimeAgo.hours",
|
|
102
|
+
description: "Relative time in whole hours"
|
|
103
|
+
},
|
|
104
|
+
{ count: Math.trunc(elapsed / SECONDS_PER_HOUR) }
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
const months = elapsedMonths(props.date, new Date(now.value));
|
|
108
|
+
if (months < 1) {
|
|
109
|
+
const days = Math.trunc(elapsed / SECONDS_PER_DAY);
|
|
110
|
+
if (days === 1) {
|
|
111
|
+
return $t({
|
|
112
|
+
defaultMessage: "yesterday",
|
|
113
|
+
id: "dateTimeAgo.yesterday",
|
|
114
|
+
description: 'Relative time for a single day ago, reading as "updated yesterday" once the action verb is in front'
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return $t(
|
|
118
|
+
{
|
|
119
|
+
defaultMessage: "{count, plural, one {# day} other {# days}} ago",
|
|
120
|
+
id: "dateTimeAgo.days",
|
|
121
|
+
description: "Relative time in whole days"
|
|
122
|
+
},
|
|
123
|
+
{ count: days }
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
if (months < MONTHS_PER_YEAR) {
|
|
127
|
+
return $t(
|
|
128
|
+
{
|
|
129
|
+
defaultMessage: "{count, plural, one {# month} other {# months}} ago",
|
|
130
|
+
id: "dateTimeAgo.months",
|
|
131
|
+
description: "Relative time in whole months"
|
|
132
|
+
},
|
|
133
|
+
{ count: months }
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
return $t(
|
|
137
|
+
{
|
|
138
|
+
defaultMessage: "{count, plural, one {# year} other {# years}} ago",
|
|
139
|
+
id: "dateTimeAgo.years",
|
|
140
|
+
description: "Relative time in whole years"
|
|
141
|
+
},
|
|
142
|
+
{ count: Math.trunc(months / MONTHS_PER_YEAR) }
|
|
143
|
+
);
|
|
144
|
+
});
|
|
145
|
+
const label = computed(
|
|
146
|
+
() => props.actionVerb ? `${props.actionVerb} ${timeAgo.value}` : timeAgo.value
|
|
147
|
+
);
|
|
148
|
+
const fullDate = computed(
|
|
149
|
+
() => formatDate({ date: props.date, format: "dateTime", offsetType: "local" })
|
|
150
|
+
);
|
|
151
|
+
return (_ctx, _cache) => {
|
|
152
|
+
return openBlock(), createBlock(_sfc_main$f, null, {
|
|
153
|
+
tooltip: withCtx(() => [
|
|
154
|
+
createVNode(TooltipContent, null, {
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(_sfc_main$g, null, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
createTextVNode(toDisplayString(fullDate.value), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
createElementVNode("span", null, toDisplayString(label.value), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
const useWalletBalancesItem = (props) => {
|
|
175
|
+
const { $t, formatNumber } = useIntl();
|
|
176
|
+
const formatBalance = (balanceValue) => formatWalletBalanceValue($t, formatNumber, balanceValue);
|
|
177
|
+
const walletName = computed(
|
|
178
|
+
() => {
|
|
179
|
+
var _a, _b;
|
|
180
|
+
return ((_b = (_a = props.walletBalance.wallet) == null ? void 0 : _a.wallet_type) == null ? void 0 : _b.name) || $t({
|
|
181
|
+
defaultMessage: "Balance",
|
|
182
|
+
id: "wallet_balance.balance_label",
|
|
183
|
+
description: "Label shown above a wallet's balance amount"
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
const getOnDemandConfigs = (chargeOnDemandItem) => {
|
|
188
|
+
var _a;
|
|
189
|
+
return (((_a = chargeOnDemandItem.pricing_item) == null ? void 0 : _a.configs) ?? []).filter((config) => !!config.on_demand);
|
|
190
|
+
};
|
|
191
|
+
const manualTopUpItems = computed(
|
|
192
|
+
() => (props.walletBalance.charge_on_demand_pricing_items ?? []).filter(
|
|
193
|
+
(chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem).some(
|
|
194
|
+
(config) => isFixedPricing(config) || isFlexiblePricing(config)
|
|
195
|
+
)
|
|
196
|
+
)
|
|
197
|
+
);
|
|
198
|
+
const flexibleManualTopUpItem = computed(
|
|
199
|
+
() => manualTopUpItems.value.find(
|
|
200
|
+
(chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem).some((config) => isFlexiblePricing(config))
|
|
201
|
+
)
|
|
202
|
+
);
|
|
203
|
+
const showManualTopUp = computed(
|
|
204
|
+
() => !!props.showManualTopUp && manualTopUpItems.value.length > 0
|
|
205
|
+
);
|
|
206
|
+
const showAutoTopUp = computed(() => !!props.showAutoTopUp && !!flexibleManualTopUpItem.value);
|
|
207
|
+
const activeTopUpConfig = computed(
|
|
208
|
+
() => {
|
|
209
|
+
var _a, _b;
|
|
210
|
+
return (_b = (_a = props.walletBalance.wallet) == null ? void 0 : _a.auto_top_up_configs) == null ? void 0 : _b.find(
|
|
211
|
+
(config) => config.status === "ACTIVE"
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
const balanceCreditType = computed(
|
|
216
|
+
() => {
|
|
217
|
+
var _a, _b;
|
|
218
|
+
return (_b = (_a = props.walletBalance.wallet_balance.open_balance) == null ? void 0 : _a.credits) == null ? void 0 : _b.credit_type;
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
const formatCredits = (quantity, creditTypeId) => formatBalance({
|
|
222
|
+
credits: {
|
|
223
|
+
quantity,
|
|
224
|
+
credit_type_id: creditTypeId,
|
|
225
|
+
credit_type: balanceCreditType.value
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
const formatThreshold = (threshold) => {
|
|
229
|
+
if (threshold.amount) {
|
|
230
|
+
return formatBalance({ amount: threshold.amount });
|
|
231
|
+
}
|
|
232
|
+
if (threshold.credits) {
|
|
233
|
+
return formatCredits(threshold.credits.quantity, threshold.credits.credit_type_id);
|
|
234
|
+
}
|
|
235
|
+
return "";
|
|
236
|
+
};
|
|
237
|
+
const autoTopUpWalletGrant = computed(() => {
|
|
238
|
+
var _a, _b;
|
|
239
|
+
const pricingItemId = (_a = activeTopUpConfig.value) == null ? void 0 : _a.pricing_item_id;
|
|
240
|
+
if (!pricingItemId) {
|
|
241
|
+
return void 0;
|
|
242
|
+
}
|
|
243
|
+
const grants = (props.walletBalance.charge_on_demand_pricing_items ?? []).filter((chargeOnDemandItem) => chargeOnDemandItem.pricing_item_id === pricingItemId).flatMap((chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem)).flatMap((config) => config.wallet_grants ?? []);
|
|
244
|
+
const walletTypeId = (_b = props.walletBalance.wallet) == null ? void 0 : _b.wallet_type_id;
|
|
245
|
+
return grants.find((grant) => grant.wallet_type_id === walletTypeId) ?? grants[0];
|
|
246
|
+
});
|
|
247
|
+
const autoTopUpCredits = computed(() => {
|
|
248
|
+
var _a, _b;
|
|
249
|
+
const topUpAmount = (_a = activeTopUpConfig.value) == null ? void 0 : _a.topup_amount;
|
|
250
|
+
const creditsGrant = (_b = autoTopUpWalletGrant.value) == null ? void 0 : _b.credits_grant;
|
|
251
|
+
if (!topUpAmount || !creditsGrant) {
|
|
252
|
+
return "";
|
|
253
|
+
}
|
|
254
|
+
if (creditsGrant.credits) {
|
|
255
|
+
return formatCredits(
|
|
256
|
+
creditsGrant.credits.quantity,
|
|
257
|
+
creditsGrant.credits.credit_type_id
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
if (creditsGrant.conversion) {
|
|
261
|
+
const quantity = Number(topUpAmount.quantity) * Number(creditsGrant.conversion.rate);
|
|
262
|
+
return formatCredits(String(quantity), creditsGrant.conversion.credit_type_id);
|
|
263
|
+
}
|
|
264
|
+
return "";
|
|
265
|
+
});
|
|
266
|
+
const autoTopUpLabel = computed(
|
|
267
|
+
() => activeTopUpConfig.value ? $t({
|
|
268
|
+
defaultMessage: "Auto top-up enabled",
|
|
269
|
+
id: "wallet_balance.auto_top_up_enabled_label",
|
|
270
|
+
description: "Label shown when a wallet tops itself up automatically"
|
|
271
|
+
}) : $t({
|
|
272
|
+
defaultMessage: "No auto top-up enabled",
|
|
273
|
+
id: "wallet_balance.auto_top_up_disabled_label",
|
|
274
|
+
description: "Label shown when a wallet has no automatic top-up configured"
|
|
275
|
+
})
|
|
276
|
+
);
|
|
277
|
+
const autoTopUpExplanation = computed(() => {
|
|
278
|
+
const config = activeTopUpConfig.value;
|
|
279
|
+
if (!config) {
|
|
280
|
+
return $t({
|
|
281
|
+
defaultMessage: "Set up an automatic top-up and your balance is increased for you whenever it drops below an amount you choose, so you never run out.",
|
|
282
|
+
id: "wallet_balance.auto_top_up_setup_explanation",
|
|
283
|
+
description: "Tooltip explaining what automatic top-ups do, shown when none is configured yet"
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const topUpAmount = config.topup_amount ? formatBalance({ amount: config.topup_amount }) : "";
|
|
287
|
+
const threshold = formatThreshold(config.threshold);
|
|
288
|
+
if (!topUpAmount || !threshold) {
|
|
289
|
+
return $t({
|
|
290
|
+
defaultMessage: "Your balance is topped up automatically once it runs low.",
|
|
291
|
+
id: "wallet_balance.auto_top_up_generic_explanation",
|
|
292
|
+
description: "Tooltip shown for an active automatic top-up whose amount or threshold is unknown"
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
if (autoTopUpCredits.value) {
|
|
296
|
+
return $t(
|
|
297
|
+
{
|
|
298
|
+
defaultMessage: "Your balance is automatically increased with {topUpCredits} ({topUpAmount}) when it drops below {threshold}.",
|
|
299
|
+
id: "wallet_balance.auto_top_up_credits_explanation",
|
|
300
|
+
description: "Tooltip explaining an automatic top-up that grants credits for a paid amount"
|
|
301
|
+
},
|
|
302
|
+
{ topUpCredits: autoTopUpCredits.value, topUpAmount, threshold }
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
return $t(
|
|
306
|
+
{
|
|
307
|
+
defaultMessage: "Your balance is automatically increased with {topUpAmount} when it drops below {threshold}.",
|
|
308
|
+
id: "wallet_balance.auto_top_up_explanation",
|
|
309
|
+
description: "Tooltip explaining how the automatic top-up of a wallet balance works"
|
|
310
|
+
},
|
|
311
|
+
{ topUpAmount, threshold }
|
|
312
|
+
);
|
|
313
|
+
});
|
|
314
|
+
return {
|
|
315
|
+
walletName,
|
|
316
|
+
formatBalance,
|
|
317
|
+
manualTopUpItems,
|
|
318
|
+
flexibleManualTopUpItem,
|
|
319
|
+
showManualTopUp,
|
|
320
|
+
showAutoTopUp,
|
|
321
|
+
activeTopUpConfig,
|
|
322
|
+
autoTopUpLabel,
|
|
323
|
+
autoTopUpExplanation
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
const _hoisted_1$b = { class: "flex flex-col gap-3 py-3" };
|
|
327
|
+
const _hoisted_2$2 = { class: "flex flex-col gap-1 px-4" };
|
|
328
|
+
const _hoisted_3$2 = { class: "flex w-full justify-between gap-3" };
|
|
329
|
+
const _hoisted_4$1 = { class: "flex w-full items-center gap-4" };
|
|
330
|
+
const _hoisted_5$1 = { key: 0 };
|
|
331
|
+
const _hoisted_6 = {
|
|
332
|
+
key: 1,
|
|
333
|
+
class: "flex w-full justify-between gap-3 px-4"
|
|
334
|
+
};
|
|
335
|
+
const _hoisted_7 = { class: "flex min-w-0 items-center gap-1" };
|
|
336
|
+
const _hoisted_8 = { class: "flex min-w-0 items-center gap-1" };
|
|
337
|
+
const _hoisted_9 = { class: "shrink-0" };
|
|
338
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
339
|
+
__name: "WalletBalancesItem",
|
|
340
|
+
props: {
|
|
341
|
+
walletBalance: {},
|
|
342
|
+
showAutoTopUp: { type: Boolean },
|
|
343
|
+
showManualTopUp: { type: Boolean }
|
|
344
|
+
},
|
|
345
|
+
emits: ["top-up", "auto-top-up", "cancel-auto-top-up"],
|
|
346
|
+
setup(__props) {
|
|
347
|
+
const props = __props;
|
|
348
|
+
const { $t } = useIntl();
|
|
349
|
+
const {
|
|
350
|
+
walletName,
|
|
351
|
+
formatBalance,
|
|
352
|
+
manualTopUpItems,
|
|
353
|
+
flexibleManualTopUpItem,
|
|
354
|
+
showManualTopUp,
|
|
355
|
+
showAutoTopUp,
|
|
356
|
+
activeTopUpConfig,
|
|
357
|
+
autoTopUpLabel,
|
|
358
|
+
autoTopUpExplanation
|
|
359
|
+
} = useWalletBalancesItem(props);
|
|
360
|
+
return (_ctx, _cache) => {
|
|
361
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
362
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
363
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
364
|
+
createVNode(_sfc_main$h, {
|
|
365
|
+
variant: "body-xs",
|
|
366
|
+
shade: "lighter",
|
|
367
|
+
"no-spacing": ""
|
|
368
|
+
}, {
|
|
369
|
+
default: withCtx(() => [
|
|
370
|
+
createTextVNode(toDisplayString(unref(walletName)), 1)
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}),
|
|
374
|
+
createVNode(_sfc_main$h, {
|
|
375
|
+
variant: "body-xs",
|
|
376
|
+
shade: "lighter",
|
|
377
|
+
"no-spacing": ""
|
|
378
|
+
}, {
|
|
379
|
+
default: withCtx(() => {
|
|
380
|
+
var _a, _b;
|
|
381
|
+
return [
|
|
382
|
+
((_a = __props.walletBalance.wallet_balance) == null ? void 0 : _a.balance_at) ? (openBlock(), createBlock(_sfc_main$e, {
|
|
383
|
+
key: 0,
|
|
384
|
+
date: new Date((_b = __props.walletBalance.wallet_balance) == null ? void 0 : _b.balance_at),
|
|
385
|
+
"action-verb": unref($t)({
|
|
386
|
+
defaultMessage: "updated",
|
|
387
|
+
id: "wallet_balance.updated_action_verb",
|
|
388
|
+
description: "Verb in front of when a wallet balance was last updated, e.g. 'updated 5 minutes ago'"
|
|
389
|
+
})
|
|
390
|
+
}, null, 8, ["date", "action-verb"])) : createCommentVNode("", true)
|
|
391
|
+
];
|
|
392
|
+
}),
|
|
393
|
+
_: 1
|
|
394
|
+
})
|
|
395
|
+
]),
|
|
396
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
397
|
+
createVNode(_sfc_main$h, {
|
|
398
|
+
variant: "body-lg",
|
|
399
|
+
weight: "semibold",
|
|
400
|
+
"no-spacing": "",
|
|
401
|
+
class: "grow"
|
|
402
|
+
}, {
|
|
403
|
+
default: withCtx(() => [
|
|
404
|
+
createTextVNode(toDisplayString(unref(formatBalance)(props.walletBalance.wallet_balance.open_balance)), 1)
|
|
405
|
+
]),
|
|
406
|
+
_: 1
|
|
407
|
+
}),
|
|
408
|
+
unref(showManualTopUp) ? (openBlock(), createBlock(unref(_sfc_main$i), {
|
|
409
|
+
key: 0,
|
|
410
|
+
size: "xs",
|
|
411
|
+
color: "primary",
|
|
412
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up", unref(manualTopUpItems)[0]))
|
|
413
|
+
}, {
|
|
414
|
+
default: withCtx(() => [
|
|
415
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
416
|
+
defaultMessage: "Top up",
|
|
417
|
+
id: "v1V8kA",
|
|
418
|
+
description: "Button to top up a wallet balance"
|
|
419
|
+
})), 1)
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
})) : createCommentVNode("", true)
|
|
423
|
+
])
|
|
424
|
+
]),
|
|
425
|
+
_ctx.$slots["graph"] ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
426
|
+
renderSlot(_ctx.$slots, "graph")
|
|
427
|
+
])) : createCommentVNode("", true),
|
|
428
|
+
unref(showAutoTopUp) ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
429
|
+
createElementVNode("div", _hoisted_7, [
|
|
430
|
+
createVNode(_sfc_main$f, { class: "min-w-0" }, {
|
|
431
|
+
tooltip: withCtx(() => [
|
|
432
|
+
createVNode(TooltipContent, null, {
|
|
433
|
+
default: withCtx(() => [
|
|
434
|
+
createVNode(_sfc_main$g, null, {
|
|
435
|
+
default: withCtx(() => [
|
|
436
|
+
createTextVNode(toDisplayString(unref(autoTopUpExplanation)), 1)
|
|
437
|
+
]),
|
|
438
|
+
_: 1
|
|
439
|
+
})
|
|
440
|
+
]),
|
|
441
|
+
_: 1
|
|
442
|
+
})
|
|
443
|
+
]),
|
|
444
|
+
default: withCtx(() => [
|
|
445
|
+
createElementVNode("div", _hoisted_8, [
|
|
446
|
+
createVNode(_sfc_main$h, {
|
|
447
|
+
variant: "body-sm",
|
|
448
|
+
shade: "lighter",
|
|
449
|
+
"no-spacing": "",
|
|
450
|
+
class: "truncate"
|
|
451
|
+
}, {
|
|
452
|
+
default: withCtx(() => [
|
|
453
|
+
createTextVNode(toDisplayString(unref(autoTopUpLabel)), 1)
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}),
|
|
457
|
+
createVNode(_sfc_main$j, {
|
|
458
|
+
icon: "info",
|
|
459
|
+
size: "2xs",
|
|
460
|
+
class: "shrink-0 cursor-help text-gray-400"
|
|
461
|
+
})
|
|
462
|
+
])
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
})
|
|
466
|
+
]),
|
|
467
|
+
createElementVNode("div", _hoisted_9, [
|
|
468
|
+
unref(activeTopUpConfig) ? (openBlock(), createBlock(unref(_sfc_main$i), {
|
|
469
|
+
key: 0,
|
|
470
|
+
size: "xs",
|
|
471
|
+
color: "gray",
|
|
472
|
+
variant: "outline",
|
|
473
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("cancel-auto-top-up", unref(activeTopUpConfig)))
|
|
474
|
+
}, {
|
|
475
|
+
default: withCtx(() => [
|
|
476
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
477
|
+
defaultMessage: "Disable",
|
|
478
|
+
id: "wallet_balance.auto_top_up_disable_button",
|
|
479
|
+
description: "Button to turn off a wallet's automatic top-up"
|
|
480
|
+
})), 1)
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$i), {
|
|
484
|
+
key: 1,
|
|
485
|
+
size: "xs",
|
|
486
|
+
color: "gray",
|
|
487
|
+
variant: "outline",
|
|
488
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("auto-top-up", unref(flexibleManualTopUpItem)))
|
|
489
|
+
}, {
|
|
490
|
+
default: withCtx(() => [
|
|
491
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
492
|
+
defaultMessage: "Enable",
|
|
493
|
+
id: "wallet_balance.auto_top_up_enable_button",
|
|
494
|
+
description: "Button to set up a wallet's automatic top-up"
|
|
495
|
+
})), 1)
|
|
496
|
+
]),
|
|
497
|
+
_: 1
|
|
498
|
+
}))
|
|
499
|
+
])
|
|
500
|
+
])) : createCommentVNode("", true)
|
|
501
|
+
]);
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
const _hoisted_1$a = { class: "flex flex-col gap-2" };
|
|
506
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
507
|
+
__name: "WalletBalances",
|
|
508
|
+
props: {
|
|
509
|
+
customerWalletBalances: {},
|
|
510
|
+
title: { default: void 0 },
|
|
511
|
+
showAutoTopUp: { type: Boolean, default: false },
|
|
512
|
+
showManualTopUp: { type: Boolean, default: false }
|
|
513
|
+
},
|
|
514
|
+
emits: ["top-up", "auto-top-up", "cancel-auto-top-up"],
|
|
515
|
+
setup(__props) {
|
|
516
|
+
return (_ctx, _cache) => {
|
|
517
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
518
|
+
"no-spacing": "",
|
|
519
|
+
"no-border": "",
|
|
520
|
+
title: __props.title
|
|
521
|
+
}, createSlots({
|
|
522
|
+
default: withCtx(() => [
|
|
523
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
524
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.customerWalletBalances, (walletBalance) => {
|
|
525
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
526
|
+
key: walletBalance.wallet_id,
|
|
527
|
+
"no-spacing": ""
|
|
528
|
+
}, {
|
|
529
|
+
default: withCtx(() => [
|
|
530
|
+
createVNode(_sfc_main$d, {
|
|
531
|
+
"wallet-balance": walletBalance,
|
|
532
|
+
"show-auto-top-up": __props.showAutoTopUp,
|
|
533
|
+
"show-manual-top-up": __props.showManualTopUp,
|
|
534
|
+
onTopUp: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up", $event)),
|
|
535
|
+
onAutoTopUp: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("auto-top-up", $event)),
|
|
536
|
+
onCancelAutoTopUp: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("cancel-auto-top-up", $event))
|
|
537
|
+
}, null, 8, ["wallet-balance", "show-auto-top-up", "show-manual-top-up"])
|
|
538
|
+
]),
|
|
539
|
+
_: 2
|
|
540
|
+
}, 1024);
|
|
541
|
+
}), 128))
|
|
542
|
+
])
|
|
543
|
+
]),
|
|
544
|
+
_: 2
|
|
545
|
+
}, [
|
|
546
|
+
_ctx.$slots["heading-right"] ? {
|
|
547
|
+
name: "right",
|
|
548
|
+
fn: withCtx(() => [
|
|
549
|
+
renderSlot(_ctx.$slots, "heading-right")
|
|
550
|
+
]),
|
|
551
|
+
key: "0"
|
|
552
|
+
} : void 0
|
|
553
|
+
]), 1032, ["title"]);
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
});
|
|
12
557
|
function createWalletsService() {
|
|
13
558
|
const request = createRequestService();
|
|
14
559
|
const config = useConfig();
|
|
15
560
|
function getCustomerWalletBalances(customerId) {
|
|
16
|
-
const queryParams = withExpand({ expandParams: EXPAND_ALL });
|
|
17
561
|
return request({
|
|
18
|
-
url: `${config.apiUrls.config}/portal/customers/${customerId}/wallets/balance
|
|
562
|
+
url: `${config.apiUrls.config}/portal/customers/${customerId}/wallets/balance`,
|
|
563
|
+
query: withExpand({ expandParams: EXPAND_ALL }),
|
|
19
564
|
options: { method: "POST" },
|
|
20
565
|
data: {}
|
|
21
566
|
});
|
|
@@ -296,10 +841,10 @@ function useTopUpInvoicePreview({
|
|
|
296
841
|
const logger = useLogger();
|
|
297
842
|
const invoicePreview = ref();
|
|
298
843
|
const isPreviewPending = ref(false);
|
|
299
|
-
|
|
844
|
+
const latestGuard = createLatestGuard();
|
|
300
845
|
const loadPreview = async () => {
|
|
301
846
|
const scheduleId = pricingPlanScheduleId.value;
|
|
302
|
-
const
|
|
847
|
+
const isLatest = latestGuard();
|
|
303
848
|
if (!scheduleId || !pricingItems.value) {
|
|
304
849
|
if (pricingItems.value && !scheduleId) {
|
|
305
850
|
logger.warn(
|
|
@@ -318,11 +863,11 @@ function useTopUpInvoicePreview({
|
|
|
318
863
|
pricingPlanScheduleId: scheduleId,
|
|
319
864
|
pricingItems: pricingItems.value
|
|
320
865
|
});
|
|
321
|
-
if (
|
|
866
|
+
if (isLatest()) {
|
|
322
867
|
invoicePreview.value = invoice;
|
|
323
868
|
}
|
|
324
869
|
} catch (error) {
|
|
325
|
-
if (
|
|
870
|
+
if (isLatest()) {
|
|
326
871
|
invoicePreview.value = void 0;
|
|
327
872
|
}
|
|
328
873
|
logger.error(
|
|
@@ -332,7 +877,7 @@ function useTopUpInvoicePreview({
|
|
|
332
877
|
error
|
|
333
878
|
);
|
|
334
879
|
} finally {
|
|
335
|
-
if (
|
|
880
|
+
if (isLatest()) {
|
|
336
881
|
isPreviewPending.value = false;
|
|
337
882
|
}
|
|
338
883
|
}
|
|
@@ -344,8 +889,8 @@ function useTopUpInvoicePreview({
|
|
|
344
889
|
void loadPreview();
|
|
345
890
|
return { invoicePreview, isPreviewPending, loadPreview };
|
|
346
891
|
}
|
|
347
|
-
const _hoisted_1$
|
|
348
|
-
const _sfc_main$
|
|
892
|
+
const _hoisted_1$9 = { key: 0 };
|
|
893
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
349
894
|
__name: "TopUpInvoicePreview",
|
|
350
895
|
props: {
|
|
351
896
|
pricingPlanScheduleId: { type: String },
|
|
@@ -358,13 +903,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
358
903
|
const pricingItems = computed(() => props.pricingItems);
|
|
359
904
|
const { invoicePreview } = useTopUpInvoicePreview({ pricingPlanScheduleId, pricingItems });
|
|
360
905
|
return (_ctx, _cache) => {
|
|
361
|
-
return openBlock(), createBlock(_sfc_main$
|
|
906
|
+
return openBlock(), createBlock(_sfc_main$l, {
|
|
362
907
|
class: "sv-top-up-invoice-preview h-[152px]",
|
|
363
908
|
"data-testid": "top-up-invoice-preview-skeleton"
|
|
364
909
|
}, {
|
|
365
910
|
default: withCtx(() => [
|
|
366
|
-
unref(invoicePreview) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
367
|
-
createVNode(unref(_sfc_main$
|
|
911
|
+
unref(invoicePreview) ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
912
|
+
createVNode(unref(_sfc_main$m), { required: "" }, {
|
|
368
913
|
default: withCtx(() => [
|
|
369
914
|
createTextVNode(toDisplayString(unref($t)({
|
|
370
915
|
defaultMessage: "You will pay",
|
|
@@ -374,9 +919,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
374
919
|
]),
|
|
375
920
|
_: 1
|
|
376
921
|
}),
|
|
377
|
-
createVNode(unref(_sfc_main$
|
|
922
|
+
createVNode(unref(_sfc_main$k), { "content-background": "none" }, {
|
|
378
923
|
default: withCtx(() => [
|
|
379
|
-
createVNode(unref(_sfc_main$
|
|
924
|
+
createVNode(unref(_sfc_main$n), {
|
|
380
925
|
invoice: unref(invoicePreview),
|
|
381
926
|
"is-customer-facing": ""
|
|
382
927
|
}, null, 8, ["invoice"])
|
|
@@ -465,8 +1010,8 @@ const toBoundQuantity = (bound, base, conversionRate, formatNumber) => {
|
|
|
465
1010
|
}
|
|
466
1011
|
return base === "CREDITS" ? formatNumber(quantity) : toMoneyQuantity(quantity);
|
|
467
1012
|
};
|
|
468
|
-
const _hoisted_1$
|
|
469
|
-
const _sfc_main$
|
|
1013
|
+
const _hoisted_1$8 = ["data-testid"];
|
|
1014
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
470
1015
|
__name: "ConvertedAmountInput",
|
|
471
1016
|
props: /* @__PURE__ */ mergeModels({
|
|
472
1017
|
unit: { type: String },
|
|
@@ -617,7 +1162,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
617
1162
|
return void 0;
|
|
618
1163
|
});
|
|
619
1164
|
return (_ctx, _cache) => {
|
|
620
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1165
|
+
return openBlock(), createBlock(unref(_sfc_main$o), {
|
|
621
1166
|
modelValue: enteredQuantity.value,
|
|
622
1167
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => enteredQuantity.value = $event),
|
|
623
1168
|
class: "sv-converted-amount-input",
|
|
@@ -632,14 +1177,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
632
1177
|
suffix: withCtx(() => [
|
|
633
1178
|
createElementVNode("span", {
|
|
634
1179
|
"data-testid": `${__props.name}-unit`
|
|
635
|
-
}, toDisplayString(__props.unit), 9, _hoisted_1$
|
|
1180
|
+
}, toDisplayString(__props.unit), 9, _hoisted_1$8)
|
|
636
1181
|
]),
|
|
637
1182
|
_: 2
|
|
638
1183
|
}, [
|
|
639
1184
|
boundsText.value ? {
|
|
640
1185
|
name: "label-suffix",
|
|
641
1186
|
fn: withCtx(() => [
|
|
642
|
-
createVNode(unref(_sfc_main$
|
|
1187
|
+
createVNode(unref(_sfc_main$h), {
|
|
643
1188
|
tag: "span",
|
|
644
1189
|
variant: "body-xs",
|
|
645
1190
|
shade: "lighter",
|
|
@@ -657,7 +1202,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
657
1202
|
helperText.value ? {
|
|
658
1203
|
name: "helper",
|
|
659
1204
|
fn: withCtx(() => [
|
|
660
|
-
createVNode(unref(_sfc_main$
|
|
1205
|
+
createVNode(unref(_sfc_main$h), {
|
|
661
1206
|
tag: "span",
|
|
662
1207
|
variant: "body-xs",
|
|
663
1208
|
shade: "lighter",
|
|
@@ -676,7 +1221,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
676
1221
|
};
|
|
677
1222
|
}
|
|
678
1223
|
});
|
|
679
|
-
const _sfc_main$
|
|
1224
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
680
1225
|
__name: "Section",
|
|
681
1226
|
props: {
|
|
682
1227
|
emphasized: { type: Boolean, default: false },
|
|
@@ -702,7 +1247,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
702
1247
|
return rest;
|
|
703
1248
|
});
|
|
704
1249
|
return (_ctx, _cache) => {
|
|
705
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1250
|
+
return openBlock(), createBlock(unref(_sfc_main$k), mergeProps(sectionProps.value, {
|
|
706
1251
|
class: "sv-section",
|
|
707
1252
|
"content-classes": contentClasses.value
|
|
708
1253
|
}), createSlots({
|
|
@@ -722,8 +1267,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
722
1267
|
};
|
|
723
1268
|
}
|
|
724
1269
|
});
|
|
725
|
-
const _hoisted_1$
|
|
726
|
-
const _sfc_main$
|
|
1270
|
+
const _hoisted_1$7 = { class: "flex grow flex-col" };
|
|
1271
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
727
1272
|
__name: "AutoTopUpConfig",
|
|
728
1273
|
props: {
|
|
729
1274
|
config: { type: Object },
|
|
@@ -907,14 +1452,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
907
1452
|
isInvalid: computed(() => validation.value.$invalid)
|
|
908
1453
|
});
|
|
909
1454
|
return (_ctx, _cache) => {
|
|
910
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1455
|
+
return openBlock(), createBlock(_sfc_main$9, {
|
|
911
1456
|
class: "sv-auto-topup-config",
|
|
912
1457
|
"content-background": __props.contained ? "gray" : "none",
|
|
913
1458
|
"no-spacing": !__props.contained,
|
|
914
1459
|
"no-border": !__props.contained
|
|
915
1460
|
}, {
|
|
916
1461
|
default: withCtx(() => [
|
|
917
|
-
!__props.alwaysEnabled ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1462
|
+
!__props.alwaysEnabled ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
918
1463
|
key: 0,
|
|
919
1464
|
modelValue: isEnabled.value,
|
|
920
1465
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isEnabled.value = $event),
|
|
@@ -924,8 +1469,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
924
1469
|
disabled: __props.disabled
|
|
925
1470
|
}, {
|
|
926
1471
|
"inline-label": withCtx(() => [
|
|
927
|
-
createElementVNode("div", _hoisted_1$
|
|
928
|
-
createVNode(unref(_sfc_main$
|
|
1472
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
1473
|
+
createVNode(unref(_sfc_main$h), {
|
|
929
1474
|
tag: "span",
|
|
930
1475
|
variant: "body-sm"
|
|
931
1476
|
}, {
|
|
@@ -938,7 +1483,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
938
1483
|
]),
|
|
939
1484
|
_: 1
|
|
940
1485
|
}),
|
|
941
|
-
createVNode(unref(_sfc_main$
|
|
1486
|
+
createVNode(unref(_sfc_main$h), {
|
|
942
1487
|
tag: "span",
|
|
943
1488
|
variant: "body-xs",
|
|
944
1489
|
shade: "lighter"
|
|
@@ -956,13 +1501,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
956
1501
|
]),
|
|
957
1502
|
_: 1
|
|
958
1503
|
}, 8, ["modelValue", "disabled"])) : createCommentVNode("", true),
|
|
959
|
-
createVNode(unref(_sfc_main$
|
|
1504
|
+
createVNode(unref(_sfc_main$q), { "is-open": isEnabled.value }, {
|
|
960
1505
|
default: withCtx(() => [
|
|
961
1506
|
isEnabled.value ? (openBlock(), createElementBlock("div", {
|
|
962
1507
|
key: 0,
|
|
963
1508
|
class: normalizeClass(["grid grid-cols-1 gap-3", { "mt-4": !__props.alwaysEnabled }])
|
|
964
1509
|
}, [
|
|
965
|
-
createVNode(_sfc_main$
|
|
1510
|
+
createVNode(_sfc_main$a, {
|
|
966
1511
|
modelValue: thresholdQuantity.value,
|
|
967
1512
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => thresholdQuantity.value = $event),
|
|
968
1513
|
name: "auto-top-up-threshold",
|
|
@@ -981,7 +1526,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
981
1526
|
id: "auto_topup_config.threshold.label"
|
|
982
1527
|
})
|
|
983
1528
|
}, null, 8, ["modelValue", "unit", "model-base", "entry-base", "currency", "conversion-rate", "show-conversion-hint", "disabled", "error", "label"]),
|
|
984
|
-
createVNode(_sfc_main$
|
|
1529
|
+
createVNode(_sfc_main$a, {
|
|
985
1530
|
modelValue: topUpQuantity.value,
|
|
986
1531
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => topUpQuantity.value = $event),
|
|
987
1532
|
name: "auto-top-up-amount",
|
|
@@ -1058,12 +1603,12 @@ function useWalletBalanceFormat() {
|
|
|
1058
1603
|
const formatOpenBalance = (balanceItem) => formatValue(balanceItem == null ? void 0 : balanceItem.wallet_balance.open_balance);
|
|
1059
1604
|
return { formatValue, formatOpenBalance };
|
|
1060
1605
|
}
|
|
1061
|
-
const _hoisted_1$
|
|
1062
|
-
const _hoisted_2$
|
|
1606
|
+
const _hoisted_1$6 = { class: "sv-top-up-form" };
|
|
1607
|
+
const _hoisted_2$1 = { class: "grid grid-cols-1 gap-4" };
|
|
1063
1608
|
const _hoisted_3$1 = { class: "grid grid-cols-1 gap-1" };
|
|
1064
|
-
const _hoisted_4
|
|
1609
|
+
const _hoisted_4 = { class: "sv-top-up-form__option-details" };
|
|
1065
1610
|
const _hoisted_5 = { key: 0 };
|
|
1066
|
-
const _sfc_main$
|
|
1611
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1067
1612
|
__name: "TopUpModalForm",
|
|
1068
1613
|
props: {
|
|
1069
1614
|
topUpPricingItems: { type: null },
|
|
@@ -1310,10 +1855,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1310
1855
|
selectedPaymentMethodId
|
|
1311
1856
|
});
|
|
1312
1857
|
return (_ctx, _cache) => {
|
|
1313
|
-
return openBlock(), createElementBlock("form", _hoisted_1$
|
|
1314
|
-
createElementVNode("div", _hoisted_2$
|
|
1858
|
+
return openBlock(), createElementBlock("form", _hoisted_1$6, [
|
|
1859
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
1315
1860
|
createElementVNode("div", _hoisted_3$1, [
|
|
1316
|
-
options.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1861
|
+
options.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
1317
1862
|
key: 0,
|
|
1318
1863
|
modelValue: selectedPricingItemId.value,
|
|
1319
1864
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selectedPricingItemId.value = $event),
|
|
@@ -1332,7 +1877,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1332
1877
|
}, {
|
|
1333
1878
|
label: withCtx(({ option, optionValue }) => [
|
|
1334
1879
|
createElementVNode("span", null, toDisplayString(option.label), 1),
|
|
1335
|
-
getCostLabel(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1880
|
+
getCostLabel(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$h), {
|
|
1336
1881
|
key: 0,
|
|
1337
1882
|
tag: "span",
|
|
1338
1883
|
variant: "body-sm",
|
|
@@ -1348,8 +1893,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1348
1893
|
}, 1024)) : createCommentVNode("", true)
|
|
1349
1894
|
]),
|
|
1350
1895
|
description: withCtx(({ option, optionValue }) => [
|
|
1351
|
-
createElementVNode("div", _hoisted_4
|
|
1352
|
-
option.description && !isFlexibleOption(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1896
|
+
createElementVNode("div", _hoisted_4, [
|
|
1897
|
+
option.description && !isFlexibleOption(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$h), {
|
|
1353
1898
|
key: 0,
|
|
1354
1899
|
tag: "span",
|
|
1355
1900
|
variant: "body-xs",
|
|
@@ -1361,7 +1906,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1361
1906
|
]),
|
|
1362
1907
|
_: 2
|
|
1363
1908
|
}, 1024)) : createCommentVNode("", true),
|
|
1364
|
-
flexiblePricingFor(optionValue).length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1909
|
+
flexiblePricingFor(optionValue).length > 0 ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
1365
1910
|
key: 1,
|
|
1366
1911
|
"is-open": String(optionValue) === selectedPricingItemId.value,
|
|
1367
1912
|
lazy: ""
|
|
@@ -1377,7 +1922,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1377
1922
|
onKeydown: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
1378
1923
|
}, ["stop"]))
|
|
1379
1924
|
}, [
|
|
1380
|
-
option.description ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1925
|
+
option.description ? (openBlock(), createBlock(unref(_sfc_main$h), {
|
|
1381
1926
|
key: 0,
|
|
1382
1927
|
tag: "span",
|
|
1383
1928
|
variant: "body-xs",
|
|
@@ -1389,7 +1934,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1389
1934
|
]),
|
|
1390
1935
|
_: 2
|
|
1391
1936
|
}, 1024)) : createCommentVNode("", true),
|
|
1392
|
-
createVNode(_sfc_main$
|
|
1937
|
+
createVNode(_sfc_main$a, {
|
|
1393
1938
|
modelValue: flexibleAmountQuantity.value,
|
|
1394
1939
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => flexibleAmountQuantity.value = $event),
|
|
1395
1940
|
name: "top-up-amount",
|
|
@@ -1412,13 +1957,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1412
1957
|
}, 8, ["modelValue", "disabled", "options", "label"])) : createCommentVNode("", true)
|
|
1413
1958
|
]),
|
|
1414
1959
|
createElementVNode("div", null, [
|
|
1415
|
-
createVNode(_sfc_main$
|
|
1960
|
+
createVNode(_sfc_main$b, {
|
|
1416
1961
|
"pricing-plan-schedule-id": pricingPlanScheduleId.value,
|
|
1417
1962
|
"pricing-items": pricingItems.value
|
|
1418
1963
|
}, null, 8, ["pricing-plan-schedule-id", "pricing-items"])
|
|
1419
1964
|
]),
|
|
1420
1965
|
autoTopUpEditor.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1421
|
-
createVNode(_sfc_main$
|
|
1966
|
+
createVNode(_sfc_main$8, mergeProps({
|
|
1422
1967
|
ref_key: "autoTopUpFormRef",
|
|
1423
1968
|
ref: autoTopUpFormRef,
|
|
1424
1969
|
class: "sv-top-up-form__auto-top-up"
|
|
@@ -1429,11 +1974,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1429
1974
|
}), null, 16, ["disabled"])
|
|
1430
1975
|
])) : createCommentVNode("", true),
|
|
1431
1976
|
createElementVNode("div", null, [
|
|
1432
|
-
createVNode(unref(_sfc_main$
|
|
1977
|
+
createVNode(unref(_sfc_main$s), { spacing: "xs" })
|
|
1433
1978
|
]),
|
|
1434
1979
|
createElementVNode("div", null, [
|
|
1435
1980
|
renderSlot(_ctx.$slots, "payment-method", {}, () => [
|
|
1436
|
-
createVNode(_sfc_main$
|
|
1981
|
+
createVNode(_sfc_main$t, {
|
|
1437
1982
|
modelValue: selectedPaymentMethodId.value,
|
|
1438
1983
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectedPaymentMethodId.value = $event),
|
|
1439
1984
|
class: "sv-top-up-form__payment-methods",
|
|
@@ -1456,8 +2001,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1456
2001
|
};
|
|
1457
2002
|
}
|
|
1458
2003
|
});
|
|
1459
|
-
const _hoisted_1$
|
|
1460
|
-
const _sfc_main$
|
|
2004
|
+
const _hoisted_1$5 = { class: "sv-top-up-success grid grid-cols-1 gap-4" };
|
|
2005
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1461
2006
|
__name: "TopUpModalSuccess",
|
|
1462
2007
|
props: {
|
|
1463
2008
|
addedValue: { type: Object },
|
|
@@ -1466,13 +2011,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1466
2011
|
setup(__props) {
|
|
1467
2012
|
const { $t } = useIntl();
|
|
1468
2013
|
return (_ctx, _cache) => {
|
|
1469
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1470
|
-
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2014
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
2015
|
+
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
1471
2016
|
key: 0,
|
|
1472
2017
|
"content-background": "none"
|
|
1473
2018
|
}, {
|
|
1474
2019
|
default: withCtx(() => [
|
|
1475
|
-
createVNode(unref(_sfc_main$
|
|
2020
|
+
createVNode(unref(_sfc_main$h), {
|
|
1476
2021
|
tag: "span",
|
|
1477
2022
|
variant: "body-sm",
|
|
1478
2023
|
weight: "semibold",
|
|
@@ -1487,7 +2032,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1487
2032
|
]),
|
|
1488
2033
|
_: 1
|
|
1489
2034
|
}),
|
|
1490
|
-
createVNode(unref(_sfc_main$
|
|
2035
|
+
createVNode(unref(_sfc_main$n), {
|
|
1491
2036
|
invoice: __props.invoice,
|
|
1492
2037
|
"is-customer-facing": ""
|
|
1493
2038
|
}, null, 8, ["invoice"])
|
|
@@ -1645,10 +2190,10 @@ function useElementHeight(target) {
|
|
|
1645
2190
|
});
|
|
1646
2191
|
return height;
|
|
1647
2192
|
}
|
|
1648
|
-
const _hoisted_1$
|
|
2193
|
+
const _hoisted_1$4 = ["inert"];
|
|
1649
2194
|
const PANE_TRANSITION_MS = 300;
|
|
1650
2195
|
const PANE_GAP = "1rem";
|
|
1651
|
-
const _sfc_main$
|
|
2196
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1652
2197
|
__name: "SlidingPanes",
|
|
1653
2198
|
props: {
|
|
1654
2199
|
panes: { type: Array },
|
|
@@ -1706,13 +2251,103 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1706
2251
|
}, [
|
|
1707
2252
|
renderSlot(_ctx.$slots, pane)
|
|
1708
2253
|
], 512)
|
|
1709
|
-
], 8, _hoisted_1$
|
|
2254
|
+
], 8, _hoisted_1$4);
|
|
1710
2255
|
}), 128))
|
|
1711
2256
|
], 4)
|
|
1712
2257
|
], 6);
|
|
1713
2258
|
};
|
|
1714
2259
|
}
|
|
1715
2260
|
});
|
|
2261
|
+
const _hoisted_1$3 = { class: "grid grid-cols-1 gap-4 pb-4" };
|
|
2262
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2263
|
+
__name: "WalletModalShell",
|
|
2264
|
+
props: {
|
|
2265
|
+
showModal: { type: Boolean },
|
|
2266
|
+
title: { type: String },
|
|
2267
|
+
subTitle: { type: String },
|
|
2268
|
+
cancelButtonText: { type: String },
|
|
2269
|
+
confirmButtonText: { type: String },
|
|
2270
|
+
isPending: { type: Boolean },
|
|
2271
|
+
panes: { type: Array },
|
|
2272
|
+
step: { type: String },
|
|
2273
|
+
addPaymentMethodPane: { type: String },
|
|
2274
|
+
customer: { type: Object },
|
|
2275
|
+
paymentMethodOptions: { type: Array },
|
|
2276
|
+
isPaymentMethodOptionsPending: { type: Boolean },
|
|
2277
|
+
isAddingPaymentMethod: { type: Boolean }
|
|
2278
|
+
},
|
|
2279
|
+
emits: ["confirm", "cancel", "payment-success", "payment-failed"],
|
|
2280
|
+
setup(__props, { expose: __expose }) {
|
|
2281
|
+
const props = __props;
|
|
2282
|
+
const paneRef = ref();
|
|
2283
|
+
const hostPanes = computed(() => props.panes.filter((pane) => pane !== props.addPaymentMethodPane));
|
|
2284
|
+
__expose({
|
|
2285
|
+
submit: () => {
|
|
2286
|
+
var _a;
|
|
2287
|
+
return (_a = paneRef.value) == null ? void 0 : _a.submit();
|
|
2288
|
+
},
|
|
2289
|
+
isSaving: computed(() => {
|
|
2290
|
+
var _a;
|
|
2291
|
+
return !!((_a = paneRef.value) == null ? void 0 : _a.isSaving);
|
|
2292
|
+
})
|
|
2293
|
+
});
|
|
2294
|
+
return (_ctx, _cache) => {
|
|
2295
|
+
return openBlock(), createBlock(unref(Modal), {
|
|
2296
|
+
"no-click-away": "",
|
|
2297
|
+
"show-modal": __props.showModal,
|
|
2298
|
+
size: "lg",
|
|
2299
|
+
title: __props.title,
|
|
2300
|
+
"sub-title": __props.subTitle,
|
|
2301
|
+
"cancel-button-text": __props.cancelButtonText,
|
|
2302
|
+
"confirm-button-text": __props.confirmButtonText,
|
|
2303
|
+
"is-loading": __props.isPending,
|
|
2304
|
+
onConfirm: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("confirm")),
|
|
2305
|
+
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("cancel"))
|
|
2306
|
+
}, createSlots({
|
|
2307
|
+
body: withCtx(() => [
|
|
2308
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
2309
|
+
createVNode(_sfc_main$5, {
|
|
2310
|
+
panes: __props.panes,
|
|
2311
|
+
current: __props.step
|
|
2312
|
+
}, createSlots({
|
|
2313
|
+
[__props.addPaymentMethodPane]: withCtx(() => [
|
|
2314
|
+
createVNode(_sfc_main$u, {
|
|
2315
|
+
ref_key: "paneRef",
|
|
2316
|
+
ref: paneRef,
|
|
2317
|
+
customer: __props.customer,
|
|
2318
|
+
"payment-method-options": __props.paymentMethodOptions,
|
|
2319
|
+
"is-loading": __props.isPaymentMethodOptionsPending,
|
|
2320
|
+
"is-active": __props.isAddingPaymentMethod,
|
|
2321
|
+
onSuccess: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("payment-success")),
|
|
2322
|
+
onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
|
|
2323
|
+
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
2324
|
+
]),
|
|
2325
|
+
_: 2
|
|
2326
|
+
}, [
|
|
2327
|
+
renderList(hostPanes.value, (pane) => {
|
|
2328
|
+
return {
|
|
2329
|
+
name: pane,
|
|
2330
|
+
fn: withCtx(() => [
|
|
2331
|
+
renderSlot(_ctx.$slots, pane)
|
|
2332
|
+
])
|
|
2333
|
+
};
|
|
2334
|
+
})
|
|
2335
|
+
]), 1032, ["panes", "current"])
|
|
2336
|
+
])
|
|
2337
|
+
]),
|
|
2338
|
+
_: 2
|
|
2339
|
+
}, [
|
|
2340
|
+
_ctx.$slots.footer ? {
|
|
2341
|
+
name: "footer",
|
|
2342
|
+
fn: withCtx(() => [
|
|
2343
|
+
renderSlot(_ctx.$slots, "footer")
|
|
2344
|
+
]),
|
|
2345
|
+
key: "0"
|
|
2346
|
+
} : void 0
|
|
2347
|
+
]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-loading"]);
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
});
|
|
1716
2351
|
const getActiveAutoTopUpConfig = (walletBalanceItem) => {
|
|
1717
2352
|
var _a;
|
|
1718
2353
|
return (((_a = walletBalanceItem == null ? void 0 : walletBalanceItem.wallet) == null ? void 0 : _a.auto_top_up_configs) ?? []).find(
|
|
@@ -1847,13 +2482,12 @@ function useSaveAutoTopUpConfig() {
|
|
|
1847
2482
|
};
|
|
1848
2483
|
return { save, isSaving };
|
|
1849
2484
|
}
|
|
1850
|
-
const _hoisted_1$2 = {
|
|
1851
|
-
const _hoisted_2$1 = {
|
|
2485
|
+
const _hoisted_1$2 = {
|
|
1852
2486
|
key: 0,
|
|
1853
2487
|
class: "mb-4"
|
|
1854
2488
|
};
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
2489
|
+
const _hoisted_2 = { class: "sr-only" };
|
|
2490
|
+
const _hoisted_3 = { class: "flex flex-col gap-2" };
|
|
1857
2491
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1858
2492
|
__name: "TopUpModal",
|
|
1859
2493
|
props: {
|
|
@@ -2021,99 +2655,86 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2021
2655
|
}
|
|
2022
2656
|
);
|
|
2023
2657
|
return (_ctx, _cache) => {
|
|
2024
|
-
return openBlock(), createBlock(
|
|
2025
|
-
|
|
2658
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
2659
|
+
ref_key: "addPaymentMethodRef",
|
|
2660
|
+
ref: addPaymentMethodRef,
|
|
2026
2661
|
"show-modal": __props.showModal,
|
|
2027
|
-
size: "lg",
|
|
2028
2662
|
title: unref(title),
|
|
2029
2663
|
"sub-title": unref(subTitle),
|
|
2030
2664
|
"cancel-button-text": unref(cancelButtonText),
|
|
2031
2665
|
"confirm-button-text": unref(confirmButtonText),
|
|
2032
|
-
"is-
|
|
2666
|
+
"is-pending": isPending.value,
|
|
2667
|
+
panes: unref(TOP_UP_MODAL_STEPS),
|
|
2668
|
+
step: step.value,
|
|
2669
|
+
"add-payment-method-pane": "ADD_PAYMENT_METHOD",
|
|
2670
|
+
customer: __props.customer,
|
|
2671
|
+
"payment-method-options": unref(paymentMethodOptions),
|
|
2672
|
+
"is-payment-method-options-pending": unref(isPaymentMethodOptionsPending),
|
|
2673
|
+
"is-adding-payment-method": unref(isAddingPaymentMethod),
|
|
2033
2674
|
onConfirm: handleConfirm,
|
|
2034
|
-
|
|
2675
|
+
onCancel: handleCancel,
|
|
2676
|
+
onPaymentSuccess: handlePaymentSuccess,
|
|
2677
|
+
onPaymentFailed: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
|
|
2035
2678
|
}, createSlots({
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
createVNode(_sfc_main$
|
|
2039
|
-
|
|
2040
|
-
|
|
2679
|
+
TOP_UP: withCtx(() => [
|
|
2680
|
+
hasSubscriptionChoice.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2681
|
+
createVNode(unref(_sfc_main$r), {
|
|
2682
|
+
modelValue: selectedSubscriptionId.value,
|
|
2683
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedSubscriptionId.value = $event),
|
|
2684
|
+
class: "sv-topup-modal__subscription",
|
|
2685
|
+
name: "top-up-subscription",
|
|
2686
|
+
direction: "column",
|
|
2687
|
+
required: "",
|
|
2688
|
+
options: subscriptionOptions.value,
|
|
2689
|
+
"show-radio": false,
|
|
2690
|
+
label: unref($t)({
|
|
2691
|
+
defaultMessage: "Subscription to top up",
|
|
2692
|
+
description: "Label above the list of subscriptions a top-up can be charged against, in the top-up modal",
|
|
2693
|
+
id: "topup_modal.subscriptions.label"
|
|
2694
|
+
})
|
|
2041
2695
|
}, {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
createVNode(unref(_sfc_main$j), {
|
|
2045
|
-
modelValue: selectedSubscriptionId.value,
|
|
2046
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedSubscriptionId.value = $event),
|
|
2047
|
-
class: "sv-topup-modal__subscription",
|
|
2048
|
-
name: "top-up-subscription",
|
|
2049
|
-
direction: "column",
|
|
2050
|
-
required: "",
|
|
2051
|
-
options: subscriptionOptions.value,
|
|
2052
|
-
"show-radio": false,
|
|
2053
|
-
label: unref($t)({
|
|
2054
|
-
defaultMessage: "Subscription to top up",
|
|
2055
|
-
description: "Label above the list of subscriptions a top-up can be charged against, in the top-up modal",
|
|
2056
|
-
id: "topup_modal.subscriptions.label"
|
|
2057
|
-
})
|
|
2058
|
-
}, {
|
|
2059
|
-
prefix: withCtx(({ optionValue }) => [
|
|
2060
|
-
summaryById.value[String(optionValue)] ? (openBlock(), createBlock(_sfc_main$n, {
|
|
2061
|
-
key: 0,
|
|
2062
|
-
class: "sv-topup-modal__subscription-option grow",
|
|
2063
|
-
"no-spacing": "",
|
|
2064
|
-
subscription: summaryById.value[String(optionValue)].subscription,
|
|
2065
|
-
"enabled-pricing-ids": summaryById.value[String(optionValue)].enabledPricingIds
|
|
2066
|
-
}, null, 8, ["subscription", "enabled-pricing-ids"])) : createCommentVNode("", true)
|
|
2067
|
-
]),
|
|
2068
|
-
label: withCtx(({ option }) => [
|
|
2069
|
-
createElementVNode("span", _hoisted_3, toDisplayString(option.label), 1)
|
|
2070
|
-
]),
|
|
2071
|
-
_: 1
|
|
2072
|
-
}, 8, ["modelValue", "options", "label"])
|
|
2073
|
-
])) : createCommentVNode("", true),
|
|
2074
|
-
(openBlock(), createBlock(_sfc_main$6, {
|
|
2075
|
-
key: topUpFormKey.value,
|
|
2076
|
-
ref_key: "topUpFormRef",
|
|
2077
|
-
ref: topUpFormRef,
|
|
2078
|
-
"top-up-pricing-items": topUpPricingItems.value,
|
|
2079
|
-
"payment-methods": __props.paymentMethods,
|
|
2080
|
-
"auto-top-up-config": savedAutoTopUpRule.value,
|
|
2081
|
-
"payment-method-options": unref(settledOptions),
|
|
2082
|
-
onAddPaymentMethod: unref(openAddPaymentMethod),
|
|
2083
|
-
onSuccess: handleTopUpSuccess,
|
|
2084
|
-
onSaveAutoTopUp: handleSaveAutoTopUp
|
|
2085
|
-
}, null, 8, ["top-up-pricing-items", "payment-methods", "auto-top-up-config", "payment-method-options", "onAddPaymentMethod"]))
|
|
2086
|
-
]),
|
|
2087
|
-
ADD_PAYMENT_METHOD: withCtx(() => [
|
|
2088
|
-
createVNode(_sfc_main$m, {
|
|
2089
|
-
ref_key: "addPaymentMethodRef",
|
|
2090
|
-
ref: addPaymentMethodRef,
|
|
2091
|
-
customer: __props.customer,
|
|
2092
|
-
"payment-method-options": unref(paymentMethodOptions),
|
|
2093
|
-
"is-loading": unref(isPaymentMethodOptionsPending),
|
|
2094
|
-
"is-active": unref(isAddingPaymentMethod),
|
|
2095
|
-
onSuccess: handlePaymentSuccess,
|
|
2096
|
-
onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
|
|
2097
|
-
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
2098
|
-
]),
|
|
2099
|
-
SUCCESS: withCtx(() => [
|
|
2100
|
-
chargedInvoice.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
2696
|
+
prefix: withCtx(({ optionValue }) => [
|
|
2697
|
+
summaryById.value[String(optionValue)] ? (openBlock(), createBlock(_sfc_main$v, {
|
|
2101
2698
|
key: 0,
|
|
2102
|
-
"
|
|
2103
|
-
|
|
2104
|
-
|
|
2699
|
+
class: "sv-topup-modal__subscription-option grow",
|
|
2700
|
+
"no-spacing": "",
|
|
2701
|
+
subscription: summaryById.value[String(optionValue)].subscription,
|
|
2702
|
+
"enabled-pricing-ids": summaryById.value[String(optionValue)].enabledPricingIds
|
|
2703
|
+
}, null, 8, ["subscription", "enabled-pricing-ids"])) : createCommentVNode("", true)
|
|
2704
|
+
]),
|
|
2705
|
+
label: withCtx(({ option }) => [
|
|
2706
|
+
createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1)
|
|
2105
2707
|
]),
|
|
2106
2708
|
_: 1
|
|
2107
|
-
}, 8, ["
|
|
2108
|
-
])
|
|
2709
|
+
}, 8, ["modelValue", "options", "label"])
|
|
2710
|
+
])) : createCommentVNode("", true),
|
|
2711
|
+
(openBlock(), createBlock(_sfc_main$7, {
|
|
2712
|
+
key: topUpFormKey.value,
|
|
2713
|
+
ref_key: "topUpFormRef",
|
|
2714
|
+
ref: topUpFormRef,
|
|
2715
|
+
"top-up-pricing-items": topUpPricingItems.value,
|
|
2716
|
+
"payment-methods": __props.paymentMethods,
|
|
2717
|
+
"auto-top-up-config": savedAutoTopUpRule.value,
|
|
2718
|
+
"payment-method-options": unref(settledOptions),
|
|
2719
|
+
onAddPaymentMethod: unref(openAddPaymentMethod),
|
|
2720
|
+
onSuccess: handleTopUpSuccess,
|
|
2721
|
+
onSaveAutoTopUp: handleSaveAutoTopUp
|
|
2722
|
+
}, null, 8, ["top-up-pricing-items", "payment-methods", "auto-top-up-config", "payment-method-options", "onAddPaymentMethod"]))
|
|
2723
|
+
]),
|
|
2724
|
+
SUCCESS: withCtx(() => [
|
|
2725
|
+
chargedInvoice.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
2726
|
+
key: 0,
|
|
2727
|
+
"added-value": chargedValue.value,
|
|
2728
|
+
invoice: chargedInvoice.value
|
|
2729
|
+
}, null, 8, ["added-value", "invoice"])) : createCommentVNode("", true)
|
|
2109
2730
|
]),
|
|
2110
2731
|
_: 2
|
|
2111
2732
|
}, [
|
|
2112
2733
|
step.value === "SUCCESS" || isTopUpUnavailable.value ? {
|
|
2113
2734
|
name: "footer",
|
|
2114
2735
|
fn: withCtx(() => [
|
|
2115
|
-
createElementVNode("div",
|
|
2116
|
-
step.value === "SUCCESS" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2736
|
+
createElementVNode("div", _hoisted_3, [
|
|
2737
|
+
step.value === "SUCCESS" ? (openBlock(), createBlock(unref(_sfc_main$i), {
|
|
2117
2738
|
key: 0,
|
|
2118
2739
|
size: "lg",
|
|
2119
2740
|
"data-testid": "done",
|
|
@@ -2124,7 +2745,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2124
2745
|
]),
|
|
2125
2746
|
_: 1
|
|
2126
2747
|
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2127
|
-
createVNode(unref(_sfc_main$
|
|
2748
|
+
createVNode(unref(_sfc_main$i), {
|
|
2128
2749
|
size: "lg",
|
|
2129
2750
|
disabled: "",
|
|
2130
2751
|
"data-testid": "confirm"
|
|
@@ -2134,7 +2755,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2134
2755
|
]),
|
|
2135
2756
|
_: 1
|
|
2136
2757
|
}),
|
|
2137
|
-
createVNode(unref(_sfc_main$
|
|
2758
|
+
createVNode(unref(_sfc_main$i), {
|
|
2138
2759
|
size: "lg",
|
|
2139
2760
|
color: "gray",
|
|
2140
2761
|
variant: "ghost",
|
|
@@ -2151,13 +2772,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2151
2772
|
]),
|
|
2152
2773
|
key: "0"
|
|
2153
2774
|
} : void 0
|
|
2154
|
-
]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-
|
|
2775
|
+
]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "customer", "payment-method-options", "is-payment-method-options-pending", "is-adding-payment-method"]);
|
|
2155
2776
|
};
|
|
2156
2777
|
}
|
|
2157
2778
|
});
|
|
2158
2779
|
const AUTO_TOP_UP_MODAL_STEPS = ["AUTO_TOP_UP", "ADD_PAYMENT_METHOD"];
|
|
2159
|
-
const _hoisted_1$1 = { class: "grid grid-cols-1 gap-4
|
|
2160
|
-
const _hoisted_2 = { class: "grid grid-cols-1 gap-4" };
|
|
2780
|
+
const _hoisted_1$1 = { class: "grid grid-cols-1 gap-4" };
|
|
2161
2781
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2162
2782
|
__name: "AutoTopUpModal",
|
|
2163
2783
|
props: {
|
|
@@ -2341,75 +2961,62 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2341
2961
|
}
|
|
2342
2962
|
);
|
|
2343
2963
|
return (_ctx, _cache) => {
|
|
2344
|
-
return openBlock(), createBlock(
|
|
2345
|
-
|
|
2964
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
2965
|
+
ref_key: "addPaymentMethodRef",
|
|
2966
|
+
ref: addPaymentMethodRef,
|
|
2346
2967
|
"show-modal": __props.showModal,
|
|
2347
|
-
size: "lg",
|
|
2348
2968
|
title: title.value,
|
|
2349
2969
|
"sub-title": subTitle.value,
|
|
2350
2970
|
"cancel-button-text": cancelButtonText.value,
|
|
2351
2971
|
"confirm-button-text": confirmButtonText.value,
|
|
2352
|
-
"is-
|
|
2972
|
+
"is-pending": isPending.value,
|
|
2973
|
+
panes: unref(AUTO_TOP_UP_MODAL_STEPS),
|
|
2974
|
+
step: step.value,
|
|
2975
|
+
"add-payment-method-pane": "ADD_PAYMENT_METHOD",
|
|
2976
|
+
customer: __props.customer,
|
|
2977
|
+
"payment-method-options": unref(paymentMethodOptions),
|
|
2978
|
+
"is-payment-method-options-pending": unref(isPaymentMethodOptionsPending),
|
|
2979
|
+
"is-adding-payment-method": unref(isAddingPaymentMethod),
|
|
2353
2980
|
onConfirm: handleConfirm,
|
|
2354
|
-
|
|
2981
|
+
onCancel: handleCancel,
|
|
2982
|
+
onPaymentSuccess: handlePaymentSuccess,
|
|
2983
|
+
onPaymentFailed: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
|
|
2355
2984
|
}, {
|
|
2356
|
-
|
|
2985
|
+
AUTO_TOP_UP: withCtx(() => [
|
|
2357
2986
|
createElementVNode("div", _hoisted_1$1, [
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
defaultMessage: "Pay automatic top-ups with",
|
|
2388
|
-
description: "Label above the payment method an automatic top-up is charged to",
|
|
2389
|
-
id: "auto_topup_modal.payment_method.label"
|
|
2390
|
-
}),
|
|
2391
|
-
onAddPaymentMethod: unref(openAddPaymentMethod)
|
|
2392
|
-
}, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "error", "label", "onAddPaymentMethod"])
|
|
2393
|
-
])
|
|
2394
|
-
]),
|
|
2395
|
-
ADD_PAYMENT_METHOD: withCtx(() => [
|
|
2396
|
-
createVNode(_sfc_main$m, {
|
|
2397
|
-
ref_key: "addPaymentMethodRef",
|
|
2398
|
-
ref: addPaymentMethodRef,
|
|
2399
|
-
customer: __props.customer,
|
|
2400
|
-
"payment-method-options": unref(paymentMethodOptions),
|
|
2401
|
-
"is-loading": unref(isPaymentMethodOptionsPending),
|
|
2402
|
-
"is-active": unref(isAddingPaymentMethod),
|
|
2403
|
-
onSuccess: handlePaymentSuccess,
|
|
2404
|
-
onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
|
|
2405
|
-
}, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
|
|
2406
|
-
]),
|
|
2407
|
-
_: 1
|
|
2408
|
-
}, 8, ["panes", "current"])
|
|
2987
|
+
autoTopUpEditor.value ? (openBlock(), createBlock(_sfc_main$8, mergeProps({
|
|
2988
|
+
key: formKey.value,
|
|
2989
|
+
ref_key: "autoTopUpFormRef",
|
|
2990
|
+
ref: autoTopUpFormRef,
|
|
2991
|
+
class: "sv-auto-topup-modal__rule"
|
|
2992
|
+
}, autoTopUpEditor.value, {
|
|
2993
|
+
config: savedRule.value,
|
|
2994
|
+
"always-enabled": "",
|
|
2995
|
+
disabled: isPending.value
|
|
2996
|
+
}), null, 16, ["config", "disabled"])) : createCommentVNode("", true),
|
|
2997
|
+
createVNode(_sfc_main$b, {
|
|
2998
|
+
"pricing-plan-schedule-id": previewScheduleId.value,
|
|
2999
|
+
"pricing-items": previewPricingItems.value
|
|
3000
|
+
}, null, 8, ["pricing-plan-schedule-id", "pricing-items"]),
|
|
3001
|
+
createVNode(_sfc_main$t, {
|
|
3002
|
+
modelValue: selectedPaymentMethodId.value,
|
|
3003
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedPaymentMethodId.value = $event),
|
|
3004
|
+
class: "sv-auto-topup-modal__payment-method",
|
|
3005
|
+
"payment-methods": unref(sortedPaymentMethods),
|
|
3006
|
+
"payment-method-options": unref(settledOptions),
|
|
3007
|
+
disabled: isPending.value,
|
|
3008
|
+
error: unref(validation).paymentMethodId.$errors,
|
|
3009
|
+
label: unref($t)({
|
|
3010
|
+
defaultMessage: "Pay automatic top-ups with",
|
|
3011
|
+
description: "Label above the payment method an automatic top-up is charged to",
|
|
3012
|
+
id: "auto_topup_modal.payment_method.label"
|
|
3013
|
+
}),
|
|
3014
|
+
onAddPaymentMethod: unref(openAddPaymentMethod)
|
|
3015
|
+
}, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "error", "label", "onAddPaymentMethod"])
|
|
2409
3016
|
])
|
|
2410
3017
|
]),
|
|
2411
3018
|
_: 1
|
|
2412
|
-
}, 8, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-
|
|
3019
|
+
}, 8, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "customer", "payment-method-options", "is-payment-method-options-pending", "is-adding-payment-method"]);
|
|
2413
3020
|
};
|
|
2414
3021
|
}
|
|
2415
3022
|
});
|
|
@@ -2525,7 +3132,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2525
3132
|
}, {
|
|
2526
3133
|
body: withCtx(() => [
|
|
2527
3134
|
createElementVNode("div", _hoisted_1, [
|
|
2528
|
-
createVNode(unref(_sfc_main$
|
|
3135
|
+
createVNode(unref(_sfc_main$h), {
|
|
2529
3136
|
variant: "body-sm",
|
|
2530
3137
|
shade: "lighter",
|
|
2531
3138
|
tag: "p",
|
|
@@ -2536,7 +3143,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2536
3143
|
]),
|
|
2537
3144
|
_: 1
|
|
2538
3145
|
}),
|
|
2539
|
-
hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3146
|
+
hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$w), {
|
|
2540
3147
|
key: 0,
|
|
2541
3148
|
class: "sv-auto-topup-cancellation-modal__error sv-error",
|
|
2542
3149
|
title: unref($t)({
|
|
@@ -2583,20 +3190,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2583
3190
|
const showAutoTopUpCancellation = computed(() => !!cancellingAutoTopUpConfig.value);
|
|
2584
3191
|
return (_ctx, _cache) => {
|
|
2585
3192
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2586
|
-
__props.isLoading ? (openBlock(), createBlock(_sfc_main$
|
|
3193
|
+
__props.isLoading ? (openBlock(), createBlock(_sfc_main$l, mergeProps({
|
|
2587
3194
|
key: 0,
|
|
2588
3195
|
variant: "section"
|
|
2589
3196
|
}, _ctx.$attrs, {
|
|
2590
3197
|
class: "sv-wallet-balances sv-root sv-component sv-loading min-h-48",
|
|
2591
3198
|
"data-testid": "customer-wallet-balances-skeleton"
|
|
2592
|
-
}), null, 16)) : __props.hasError ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3199
|
+
}), null, 16)) : __props.hasError ? (openBlock(), createBlock(unref(_sfc_main$w), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
2593
3200
|
class: "sv-wallet-balances sv-root sv-component sv-error",
|
|
2594
3201
|
title: unref($t)({
|
|
2595
3202
|
defaultMessage: "Could not load wallet balances",
|
|
2596
3203
|
description: "Error shown when wallet balances fail to load",
|
|
2597
3204
|
id: "wallet_balance.load_failed"
|
|
2598
3205
|
})
|
|
2599
|
-
}), null, 16, ["title"])) : __props.walletBalances.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3206
|
+
}), null, 16, ["title"])) : __props.walletBalances.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$c), mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
2600
3207
|
class: "sv-wallet-balances sv-root sv-component",
|
|
2601
3208
|
"customer-wallet-balances": __props.walletBalances,
|
|
2602
3209
|
"show-auto-top-up": "",
|