@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,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonCustomerOverview: () => void;
|
|
1
|
+
export * from '../../types/public/screens/CustomerOverview/CustomerOverview.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../error-Cg-i7gGl.js"),r=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useInvoicesList-rMg-8LbH.js"),s=require("../../usePortal-fhri8neB.js"),n=require("../../customElements-BTJzBHMy.js"),i=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js"),u=require("../../useCustomer-DYCpgA-3.js"),a=require("../../usePaymentMethods-CFL3hFW_.js"),l=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js"),c=require("../../useLoadInitialData-CiJldX50.js"),m=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js"),p=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),d=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js"),v=require("../../pricingPlanSchedule-B9HFiXy-.js"),_=require("../../component-hDuDTBt5.js"),f=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(_){var f;const y=_,g=s.usePortal(),h=n.useLogger(),C=null==(f=g.value)?void 0:f.customer_id,b=u.useCustomer({customerId:C}),w=o.useInvoicesList({customerId:C,batchSize:5}),S=i.useSubscriptionsList({customerId:C}),j=a.usePaymentMethods({customerId:C}),q=d.useCustomerWalletBalances({customerId:C}),L=e.computed(()=>{var e;return(null==(e=q.walletBalances.value)?void 0:e.wallet_balances)??[]}),A=e.computed(()=>S.items.value.slice(0,2)),I=e.computed(()=>{var e;return j.items.value.slice(0,(null==(e=y.configuration)?void 0:e.maxItems)??p.DEFAULT_MAX_ITEMS)}),{isLoading:B}=c.useLoadInitialData(b.get.execute(),w.fetchInitial(),S.fetchAll(),j.fetchAll(),q.fetch()),O=()=>{j.fetchAll()},M=()=>{q.fetch()},x=e.computed(()=>v.getActiveDefaultScheduleId(S.items.value));return e.watch([x,()=>S.items.value],([e,t])=>{e||0===t.length||h.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:t.flatMap(({pricing_plan_schedule_infos:e})=>(e??[]).map(({id:e,type:t,start_at:r,end_at:o,...s})=>{var n;return{id:e,type:(null==(n=s.pricing_plan_schedule)?void 0:n.type)??t,start_at:r,end_at:o}}))})}),(s,n)=>(e.openBlock(),e.createBlock(e.unref(r.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(b).customer.value?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(b).customer.value,subscriptions:A.value,"payment-methods":e.unref(j).items.value,"is-loading":e.unref(B)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(o._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(w).items.value,"has-more-items":e.unref(w).hasNextBatch.value,"is-loading":e.unref(B),onLoadMore:e.unref(w).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(d._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(q).apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":e.unref(B),"wallet-balances":L.value,"show-top-up-button":"",customer:e.unref(b).customer.value,"payment-methods":e.unref(j).items.value,subscriptions:e.unref(S).items.value,onTopUpCharged:M,onAutoTopUpSaved:M,onAutoTopUpCancelled:M,onPaymentMethodStored:O},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(m._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:_.configuration,"is-loading":e.unref(B),"payment-methods":I.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(b).customer.value?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(B),customer:e.unref(b).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),y=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const r=_.getComponentName("customer-overview");return(o,s)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{entry:o.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:s[0]||(s[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(f,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:g}=n.createSolvimonElement(y,"customer-overview");exports.defineSolvimonCustomerOverview=g;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, openBlock, createBlock, unref, withCtx, createVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { A as ApiStatus } from "../../
|
|
2
|
+
import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
|
|
3
3
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
4
|
-
import { u as useInvoicesList, _ as _sfc_main$5 } from "../../useInvoicesList-
|
|
5
|
-
import { u as usePortal } from "../../usePortal-
|
|
6
|
-
import {
|
|
7
|
-
import { u as useSubscriptionsList, _ as _sfc_main$6 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
9
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
10
|
-
import { _ as _sfc_main$4 } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
12
|
-
import { _ as _sfc_main$3 } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import {
|
|
4
|
+
import { u as useInvoicesList, _ as _sfc_main$5 } from "../../useInvoicesList-BJJYwkIA.mjs";
|
|
5
|
+
import { u as usePortal } from "../../usePortal-eyA4OqjU.mjs";
|
|
6
|
+
import { b as useLogger, d as _sfc_main$7, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
7
|
+
import { u as useSubscriptionsList, _ as _sfc_main$6 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs";
|
|
8
|
+
import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
|
|
9
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
10
|
+
import { _ as _sfc_main$4 } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs";
|
|
11
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
12
|
+
import { _ as _sfc_main$3 } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs";
|
|
13
|
+
import { D as DEFAULT_MAX_ITEMS } from "../../CustomerPaymentMethods.lib-CcSt0sl1.mjs";
|
|
14
|
+
import { u as useCustomerWalletBalances, _ as _sfc_main$2 } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs";
|
|
14
15
|
import { a as getActiveDefaultScheduleId } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
|
|
16
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
15
17
|
const SUBSCRIPTIONS_SHOWN = 2;
|
|
16
18
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
17
19
|
__name: "CustomerOverview",
|
|
@@ -20,6 +22,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
20
22
|
},
|
|
21
23
|
setup(__props) {
|
|
22
24
|
var _a;
|
|
25
|
+
const props = __props;
|
|
23
26
|
const portal = usePortal();
|
|
24
27
|
const logger = useLogger();
|
|
25
28
|
const customerId = (_a = portal.value) == null ? void 0 : _a.customer_id;
|
|
@@ -35,6 +38,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
35
38
|
}
|
|
36
39
|
);
|
|
37
40
|
const shownSubscriptions = computed(() => subscriptions.items.value.slice(0, SUBSCRIPTIONS_SHOWN));
|
|
41
|
+
const shownPaymentMethods = computed(
|
|
42
|
+
() => {
|
|
43
|
+
var _a2;
|
|
44
|
+
return paymentMethods.items.value.slice(0, ((_a2 = props.configuration) == null ? void 0 : _a2.maxItems) ?? DEFAULT_MAX_ITEMS);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
38
47
|
const { isLoading } = useLoadInitialData(
|
|
39
48
|
customer.get.execute(),
|
|
40
49
|
invoices.fetchInitial(),
|
|
@@ -105,9 +114,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
105
114
|
}, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
|
|
106
115
|
createVNode(_sfc_main$3, {
|
|
107
116
|
class: "sv-customer-overview__payment-methods",
|
|
117
|
+
configuration: __props.configuration,
|
|
108
118
|
"is-loading": unref(isLoading),
|
|
109
|
-
"payment-methods":
|
|
110
|
-
}, null, 8, ["is-loading", "payment-methods"]),
|
|
119
|
+
"payment-methods": shownPaymentMethods.value
|
|
120
|
+
}, null, 8, ["configuration", "is-loading", "payment-methods"]),
|
|
111
121
|
unref(customer).customer.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
112
122
|
key: 0,
|
|
113
123
|
class: "sv-customer-overview__billing-information",
|
|
@@ -140,39 +150,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
150
|
configuration: { type: Object }
|
|
141
151
|
},
|
|
142
152
|
setup(__props) {
|
|
153
|
+
const componentName = getComponentName("customer-overview");
|
|
143
154
|
return (_ctx, _cache) => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
environment: __props.environment,
|
|
148
|
-
locale: __props.locale,
|
|
149
|
-
"portal-object": __props.portalObject,
|
|
155
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
156
|
+
entry: _ctx.$props,
|
|
157
|
+
"component-name": unref(componentName),
|
|
150
158
|
"allowed-portal-types": ["CUSTOMER"],
|
|
151
|
-
"primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
|
|
152
|
-
"secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
|
|
153
|
-
"experimental-features": __props.experimentalFeatures,
|
|
154
|
-
"log-level": __props.logLevel,
|
|
155
|
-
"on-log": __props.onLog,
|
|
156
|
-
"css-overrides": __props.cssOverrides,
|
|
157
159
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
158
160
|
}, {
|
|
159
161
|
default: withCtx(() => [
|
|
160
|
-
createVNode(_sfc_main$1)
|
|
162
|
+
createVNode(_sfc_main$1, { configuration: __props.configuration }, null, 8, ["configuration"])
|
|
161
163
|
]),
|
|
162
164
|
_: 1
|
|
163
|
-
}, 8, ["
|
|
165
|
+
}, 8, ["entry", "component-name"]);
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
168
|
});
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
customElements.define(COMPONENT_NAME, SolvimonCustomerOverview);
|
|
172
|
-
}
|
|
173
|
-
};
|
|
169
|
+
const { define: defineSolvimonCustomerOverview } = createSolvimonElement(
|
|
170
|
+
_sfc_main,
|
|
171
|
+
"customer-overview"
|
|
172
|
+
);
|
|
174
173
|
export {
|
|
175
|
-
COMPONENT_NAME,
|
|
176
|
-
SolvimonCustomerOverview,
|
|
177
174
|
defineSolvimonCustomerOverview
|
|
178
175
|
};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonPayInvoice: () => void;
|
|
1
|
+
export * from '../../types/public/screens/PayInvoice/PayInvoice.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../formatting.es-9hM8aHSg.js"),n=require("../../Button.vue.es-aLcIdATK.js"),o=require("../../usePayments-BKTNn_RN.js"),a=require("../../InvoiceSummary.vue.es-emE-mCFh.js"),i=require("../../Section.vue.es-tLYXp-tF.js"),r=require("../../customElements-BTJzBHMy.js"),c=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js"),u=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),l=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js"),p=require("../../customer.es-D42Md24r.js"),y=require("../../useLoadInitialData-CiJldX50.js"),d=require("../../usePaymentMethodOptions-fBvWYynV.js"),m=require("../../usePaymentMethods-CFL3hFW_.js"),v=require("../../component-hDuDTBt5.js"),f=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},variant:{type:String},color:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(o){const a=o,{$t:i}=r.useIntl(),c=e.computed(()=>({color:a.color??"primary",disabled:a.disabled,iconPrefix:a.iconPrefix,iconSuffix:a.iconSuffix,loading:a.loading,pill:a.pill,size:a.size??"lg",square:a.square,tag:a.tag,type:a.type,variant:a.variant})),s=e.computed(()=>{var t,n,o;switch(null==(t=a.paymentMethod)?void 0:t.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(null==(n=a.paymentMethod)?void 0:n.paymentMethodType)?e.capitalize(null==(o=a.paymentMethod)?void 0:o.paymentMethodType):""}}),u=e.computed(()=>a.amount&&a.paymentMethod?i({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:t.formatAmount(a.amount),type:s.value}):a.amount?i({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:t.formatAmount(a.amount),type:s.value}):i({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(t,o)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),e.mergeProps(c.value,{class:"w-full",onClick:o[0]||(o[0]=e=>t.$emit("click",e))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1},16))}}),g={key:0},h=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(p){const{$t:y}=r.useIntl(),d=p,m=e.ref(),v=e.ref(),h=e.ref(!1);function _(){if(!v.value)throw new Error("payment integration form not found");h.value=!0,v.value.submit()}const w=()=>{d.configuration.onPaymentSuccess&&d.configuration.onPaymentSuccess()},b=()=>{h.value=!1};return(d,C)=>(e.openBlock(),e.createBlock(e.unref(c.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(u._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[p.invoice&&p.downloadService?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,invoice:p.invoice,"payment-attempts":p.paymentAttempts,"download-service":()=>p.downloadService(p.invoice.id)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var o,a;return[p.isLoading?(e.openBlock(),e.createBlock(u._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(null==(o=p.invoice)?void 0:o.paid)?(e.openBlock(),e.createBlock(l._sfc_main,{key:1,status:"success",title:e.unref(y)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(r._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(p.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):p.error?(e.openBlock(),e.createBlock(l._sfc_main,{key:2,status:"error",title:e.unref(y)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(r._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!p.isLoading&&p.countryCode&&p.amount&&p.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[(null==(a=p.paymentMethodOptions)?void 0:a.length)?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,title:e.unref(y)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":h.value})},[e.createVNode(s._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:v,amount:p.amount,"country-code":p.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:p.invoice.id}]},"customer-id":p.invoice.customer.id,"force-store-payment-method":"","invoice-id":p.invoice.id,"payment-method-options":p.paymentMethodOptions,variant:"AUTHORIZE",onPaymentSuccess:w,onPaymentFailed:b,onSelect:C[0]||(C[0]=e=>m.value=e)},null,8,["amount","country-code","context","customer-id","invoice-id","payment-method-options"])],2)]),_:1},8,["title"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(u._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[p.invoice?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,invoice:p.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),p.invoice?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{disabled:!m.value||h.value,loading:h.value,amount:p.amount,"payment-method":m.value,onClick:_},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),_=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:a,get:i,downloadInvoicePdf:r}=o.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:s}=o.usePayments(),{fetchInitial:u}=m.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:l,get:v}=d.usePaymentMethodOptions(),{isLoading:f}=y.useLoadInitialData((async()=>{const e=await i();await v({customerId:e.customer.id,amount:e.open_invoice_amount})})(),u(),s(n.configuration.invoiceId)),g=e.computed(()=>{var e;return(null==(e=a.value)?void 0:e.customer)?p.getCustomerCountry(a.value.customer):void 0});return(t,n)=>{var o;return e.renderSlot(t.$slots,"default",{invoice:e.unref(a),isLoading:e.unref(f),amount:null==(o=e.unref(a))?void 0:o.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(l),paymentAttempts:e.unref(c),downloadService:e.unref(r)})}}}),w=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=v.getComponentName("pay-invoice");return(o,a)=>(e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:a[0]||(a[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(_,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:n,isLoading:o,amount:a,countryCode:i,paymentMethodOptions:r,paymentAttempts:c,downloadService:s})=>[e.createVNode(h,{"is-loading":o,invoice:n,amount:a,"country-code":i,"payment-method-options":r,configuration:t.configuration,"payment-attempts":c??[],"download-service":s},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:b}=r.createSolvimonElement(w,"pay-invoice");exports.defineSolvimonPayInvoice=b;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { defineComponent, computed, capitalize, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, ref, createVNode, createCommentVNode, createElementBlock, Fragment, createElementVNode, normalizeClass, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { f as formatAmount } from "../../formatting.es-D-oVnc8H.mjs";
|
|
3
|
+
import { a as _sfc_main$4, _ as _sfc_main$9 } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
4
|
+
import { _ as _sfc_main$c, u as useInvoice, a as usePayments } from "../../usePayments-BlliAt1E.mjs";
|
|
5
|
+
import { _ as _sfc_main$6 } from "../../InvoiceSummary.vue.es-nCYeQ4tj.mjs";
|
|
6
|
+
import { _ as _sfc_main$a } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
7
|
+
import { u as useIntl, _ as _sfc_main$8, d as _sfc_main$d, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
4
8
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
5
|
-
import { _ as _sfc_main$b } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as _sfc_main$b } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs";
|
|
6
10
|
import { _ as _sfc_main$5 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
7
|
-
import { _ as _sfc_main$7 } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-
|
|
11
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
11
|
+
import { _ as _sfc_main$7 } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
|
|
12
|
+
import { g as getCustomerCountry } from "../../customer.es-C_vSWcVA.mjs";
|
|
13
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
14
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
|
|
15
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
16
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
12
17
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
13
18
|
__name: "PayButton",
|
|
14
19
|
props: {
|
|
@@ -427,19 +432,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
427
432
|
configuration: { type: Object }
|
|
428
433
|
},
|
|
429
434
|
setup(__props) {
|
|
435
|
+
const componentName = getComponentName("pay-invoice");
|
|
430
436
|
return (_ctx, _cache) => {
|
|
431
|
-
var _a, _b, _c, _d;
|
|
432
437
|
return openBlock(), createBlock(unref(_sfc_main$d), {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
locale: __props.locale,
|
|
436
|
-
"portal-object": __props.portalObject,
|
|
438
|
+
entry: _ctx.$props,
|
|
439
|
+
"component-name": unref(componentName),
|
|
437
440
|
"allowed-portal-types": ["CUSTOMER"],
|
|
438
|
-
"primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
|
|
439
|
-
"secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
|
|
440
|
-
"experimental-features": __props.experimentalFeatures,
|
|
441
|
-
"log-level": __props.logLevel,
|
|
442
|
-
"on-log": __props.onLog,
|
|
443
441
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
444
442
|
}, {
|
|
445
443
|
default: withCtx(() => [
|
|
@@ -468,19 +466,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
468
466
|
}, 16)
|
|
469
467
|
]),
|
|
470
468
|
_: 1
|
|
471
|
-
}, 8, ["
|
|
469
|
+
}, 8, ["entry", "component-name"]);
|
|
472
470
|
};
|
|
473
471
|
}
|
|
474
472
|
});
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
customElements.define(COMPONENT_NAME, SolvimonPayInvoice);
|
|
480
|
-
}
|
|
481
|
-
};
|
|
473
|
+
const { define: defineSolvimonPayInvoice } = createSolvimonElement(
|
|
474
|
+
_sfc_main,
|
|
475
|
+
"pay-invoice"
|
|
476
|
+
);
|
|
482
477
|
export {
|
|
483
|
-
COMPONENT_NAME,
|
|
484
|
-
SolvimonPayInvoice,
|
|
485
478
|
defineSolvimonPayInvoice
|
|
486
479
|
};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonPaymentMethodsManagement: () => void;
|
|
1
|
+
export * from '../../types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-aLcIdATK.js"),o=require("../../Section.vue.es-tLYXp-tF.js"),n=require("../../customElements-BTJzBHMy.js"),r=require("../../ContentWithAsideLayout-DHpnJfGA.js"),a=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js"),s=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js"),i=require("../../useCustomer-DYCpgA-3.js"),m=require("../../usePaymentMethods-CFL3hFW_.js"),p=require("../../usePaymentMethodOptions-fBvWYynV.js"),d=require("../../useLoadInitialData-CiJldX50.js"),l=require("../../component-hDuDTBt5.js"),c={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},u={key:0},y=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup:t=>(o,r)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",null,[e.createVNode(e.unref(n._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),t.description?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)]),o.$slots.right?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"right")])):e.createCommentVNode("",!0)]))}),h=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete"],setup(i,{emit:m}){const p=m,{$t:d}=n.useIntl(),l=e.ref(!1);return(n,m)=>(e.openBlock(),e.createBlock(e.unref(r.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(y,{title:e.unref(d)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(d)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(a._sfc_main,{"payment-methods":i.paymentMethods,onSetDefault:m[0]||(m[0]=e=>p("set-default")),onDelete:m[1]||(m[1]=e=>p("delete"))},null,8,["payment-methods"])]),_:1}),l.value?(e.openBlock(),e.createBlock(s._sfc_main,{key:0,customer:i.customer,"payment-method-options":i.paymentMethodOptions},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,color:"gray",variant:"outline",onClick:m[2]||(m[2]=e=>l.value=!1)},{default:e.withCtx(()=>[...m[4]||(m[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:2,color:"gray",variant:"outline",onClick:m[3]||(m[3]=e=>l.value=!0)},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),g=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const o=t,n=o.portalObject.customer_id,{customer:r,get:a}=i.useCustomer({customerId:n}),{items:s,fetchInitial:l}=m.usePaymentMethods({customerId:o.portalObject.customer_id}),{paymentMethodOptions:c,get:u}=p.usePaymentMethodOptions(),{isLoading:y}=d.useLoadInitialData(a.execute(),l(),u({customerId:o.portalObject.customer_id}));return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(r),paymentMethods:e.unref(s),paymentMethodOptions:e.unref(c),isLoading:e.unref(y),refreshPaymentMethods:e.unref(l)})}}),f=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const o=l.getComponentName("payment-methods-management");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{entry:t.$props,"component-name":e.unref(o),"allowed-portal-types":["CUSTOMER"],onError:r[0]||(r[0]=e=>t.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(g,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(({customer:t,paymentMethods:o,paymentMethodOptions:n,isLoading:r,refreshPaymentMethods:a})=>[t?(e.openBlock(),e.createBlock(h,{key:0,"is-loading":r,"payment-methods":o,"payment-method-options":n,customer:t,onSetDefault:a,onDelete:a},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:_}=n.createSolvimonElement(f,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=_;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, renderSlot, ref, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { a as _sfc_main$8 } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
3
|
+
import { _ as _sfc_main$5 } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
4
|
+
import { _ as _sfc_main$4, u as useIntl, d as _sfc_main$9, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
4
5
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
5
|
-
import { _ as _sfc_main$6 } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as _sfc_main$7 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as useCustomer } from "../../useCustomer-
|
|
8
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
9
|
-
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-
|
|
10
|
-
import { u as useLoadInitialData } from "../../useLoadInitialData-
|
|
6
|
+
import { _ as _sfc_main$6 } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs";
|
|
7
|
+
import { _ as _sfc_main$7 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs";
|
|
8
|
+
import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
|
|
9
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
10
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
|
|
11
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
12
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
11
13
|
const _hoisted_1 = { class: "grid gap-4 sm:grid-cols-1 md:grid-cols-2" };
|
|
12
14
|
const _hoisted_2 = { key: 0 };
|
|
13
15
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -183,19 +185,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
185
|
branding: { type: Object }
|
|
184
186
|
},
|
|
185
187
|
setup(__props) {
|
|
188
|
+
const componentName = getComponentName("payment-methods-management");
|
|
186
189
|
return (_ctx, _cache) => {
|
|
187
|
-
var _a, _b, _c, _d;
|
|
188
190
|
return openBlock(), createBlock(unref(_sfc_main$9), {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
locale: __props.locale,
|
|
192
|
-
"portal-object": __props.portalObject,
|
|
191
|
+
entry: _ctx.$props,
|
|
192
|
+
"component-name": unref(componentName),
|
|
193
193
|
"allowed-portal-types": ["CUSTOMER"],
|
|
194
|
-
"primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
|
|
195
|
-
"secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
|
|
196
|
-
"experimental-features": __props.experimentalFeatures,
|
|
197
|
-
"log-level": __props.logLevel,
|
|
198
|
-
"on-log": __props.onLog,
|
|
199
194
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
200
195
|
}, {
|
|
201
196
|
default: withCtx(() => [
|
|
@@ -221,21 +216,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
216
|
}, 16)
|
|
222
217
|
]),
|
|
223
218
|
_: 1
|
|
224
|
-
}, 8, ["
|
|
219
|
+
}, 8, ["entry", "component-name"]);
|
|
225
220
|
};
|
|
226
221
|
}
|
|
227
222
|
});
|
|
228
|
-
const
|
|
229
|
-
_sfc_main
|
|
223
|
+
const { define: defineSolvimonPaymentMethodsManagement } = createSolvimonElement(
|
|
224
|
+
_sfc_main,
|
|
225
|
+
"payment-methods-management"
|
|
230
226
|
);
|
|
231
|
-
const COMPONENT_NAME = getComponentName("payment-methods-management");
|
|
232
|
-
const defineSolvimonPaymentMethodsManagement = () => {
|
|
233
|
-
if (!customElements.get(COMPONENT_NAME)) {
|
|
234
|
-
customElements.define(COMPONENT_NAME, SolvimonPaymentMethodsManagement);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
227
|
export {
|
|
238
|
-
COMPONENT_NAME,
|
|
239
|
-
SolvimonPaymentMethodsManagement,
|
|
240
228
|
defineSolvimonPaymentMethodsManagement
|
|
241
229
|
};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonSubscriptionDetails: () => void;
|
|
1
|
+
export * from '../../types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../IconButton.vue.es-CVFn0Ntj.js"),n=require("../../Button.vue.es-aLcIdATK.js"),i=require("../../ErrorNotification.vue.es-BX3khKFc.js"),a=require("../../customElements-BTJzBHMy.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../useActionDispatchProvider-Cz8xLLYA.js"),r=require("../../subscription-b0OPx8Du.js"),l=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js"),c=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js"),u=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js"),d=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),p=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),m=require("../../Section.vue.es-tLYXp-tF.js"),b=require("../../pricing-3W7XLwL6.js"),g=require("../../formatting.es-9hM8aHSg.js"),_=require("../../PaymentMethod.vue.es-uVZO0Zju.js"),f=require("../../Modal.vue.es-CX5geho3.js"),h=require("../../subscriptions-B4BOzLxR.js"),v=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js"),y=require("../../api.es-Czekkp_X.js"),w=require("../../useIncrementalLoading-CdtGJm_Y.js"),C=require("../../paymentMethods-Cu2RzLgm.js"),x=require("../../error-Cg-i7gGl.js"),S=require("../../useSubscription-V3KSuhOY.js"),k=require("../../useCustomer-DYCpgA-3.js"),B=require("../../usePaymentMethods-CFL3hFW_.js"),M=require("../../useLoadInitialData-CiJldX50.js"),N=require("../../component-hDuDTBt5.js");function j(e){var t,n,i,a,o,s,r;const l=null==(i=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:i[0],c=null==(o=null==(a=null==l?void 0:l.details)?void 0:a.bands)?void 0:o[0];return{amount:(null==c?void 0:c.amount)??(null==c?void 0:c.fixed_amount),billingPeriod:(null==(s=null==l?void 0:l.details)?void 0:s.pricing_period)??(null==(r=null==l?void 0:l.details)?void 0:r.billing_period)}}const V={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},E={class:"sv-enabled-pricings-list__item-content grow"},T=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const i=t,{$t:o}=a.useIntl(),s=e.computed(()=>{const{amount:e,billingPeriod:t}=i.entry;if(e)return t?o({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:g.formatAmount(e),period:g.formatBillingPeriod(t,{short:!0,hideValueForExactPeriods:!0})}):g.formatAmount(e)});return(i,r)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"lighter",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),s.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"span",variant:"body-sm",shade:"lighter",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(n._sfc_main$1),{variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:r[0]||(r[0]=e=>i.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),A={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},L=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:i}=a.useIntl(),o=e.computed(()=>function(e){var t,n,i;const a=new Set(((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e));return 0===a.size?[]:((null==(i=null==(n=e.pricing_plan_version)?void 0:n.pricing_categories)?void 0:i.flatMap(e=>e.pricing_groups??[]))??[]).flatMap(e=>(e.pricings??[]).filter(e=>a.has(e.id)).map(t=>({pricingId:t.id,pricingGroupId:e.id,groupName:e.name,name:b.getNameFromPricing(t)||e.name,...j(t)})))}(n.pricingPlanSchedule));return(t,n)=>o.value.length>0?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,i=>(e.openBlock(),e.createBlock(T,{key:i.pricingId,entry:i,onUpgrade:n[0]||(n[0]=e=>t.$emit("upgrade",e))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});const P={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},q={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},I={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},D=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:n}){const o=t,s=n,{$t:l,formatDate:c}=a.useIntl(),u=a.useLogger(),{setSubscriptionCancellation:d}=h.createSubscriptionsService(),p=e.computed(()=>o.variant),b=e.computed(()=>{var e;const t=(null==(e=o.subscription)?void 0:e.inactive_periods)??[],n=t.find(({type:e})=>"CANCEL"===e)??t[0];if(n)return c({date:n.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var e,t;const n=null==(t=null==(e=o.subscription)?void 0:e.next_invoice)?void 0:t.invoice_date;if(n)return c({date:n,format:"date",offsetType:"local"})}),x=g,S=e.computed(()=>{var e,t;return((null==(t=null==(e=r.getMostRecentScheduleInfo(o.subscription))?void 0:e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e).filter(e=>Boolean(e))}),{title:k,explanation:B,confirmButtonText:M,cancelButtonText:N,errorMessage:j}=function({variant:t,renewableUntil:n,billingPeriodEndsAt:i}){const{$t:o}=a.useIntl(),s=e.computed(()=>"RENEW"===t.value);return{title:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):o({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),explanation:e.computed(()=>s.value?n.value?o({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:n.value}):o({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),confirmButtonText:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):o({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),cancelButtonText:e.computed(()=>o({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),errorMessage:e.computed(()=>s.value?o({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):o({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}))}}({variant:p,renewableUntil:b,billingPeriodEndsAt:g}),{paymentMethod:V,get:E}=function(){const{getPaymentMethods:t}=C.createPaymentMethodsService(),n=e.shallowRef();return{paymentMethod:n,get:async({customerId:e,paymentMethodId:i})=>{const a=await y.getPaginatedFullList(async n=>{const i=await t({customerId:e,pagination:{page:n,pageSize:50}});if(!w.isApiSuccessCollectionResponse(i))throw new Error("Could not load the customer’s payment methods.");return i});return n.value=a.data.find(({id:e})=>e===i),n.value}}}();e.watch([()=>o.showModal,()=>{var e;return null==(e=o.subscription)?void 0:e.payment_method_id},()=>{var e;return null==(e=o.subscription)?void 0:e.customer_id}],([e,t,n])=>{var i;e&&t&&n&&t!==(null==(i=V.value)?void 0:i.id)&&E({customerId:n,paymentMethodId:t}).catch(()=>{})},{immediate:!0});const T=e.ref(!1),A=e.ref(!1);e.watch(()=>o.showModal,e=>{e&&(A.value=!1)});const L=async()=>{if(o.subscription&&o.variant&&!T.value){T.value=!0,A.value=!1;try{await d({id:o.subscription.id,variant:o.variant}),s("confirmed"),s("close")}catch(e){u.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:o.variant},e),A.value=!0}finally{T.value=!1}}},D=()=>{T.value||s("close")};return(n,o)=>(e.openBlock(),e.createBlock(e.unref(f.Modal),{size:"md","show-modal":t.showModal,title:e.unref(k),"confirm-button-text":e.unref(M),"cancel-button-text":e.unref(N),"is-loading":T.value,"no-click-away":T.value,"no-backdrop-close":T.value,onConfirm:L,onClose:D},{body:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(a._sfc_main),{variant:"body-sm",shade:"lighter",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(v._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":S.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(x)||e.unref(V)?(e.openBlock(),e.createElementBlock("div",q,[e.unref(x)?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"light",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"light"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(V)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(j)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),O={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},R=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(m,{emit:b}){const g=m,_=b,{$t:f}=a.useIntl(),{isCancellable:h,isRenewable:v,pendingVariant:y,cancel:w,renew:C,dismiss:x,manage:S}=function({subscription:t}){const{dispatchAction:n}=s.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const e=t.value.inactive_periods;return!e||0===e.length}),a=e.computed(()=>{var e;const n=null==(e=t.value)?void 0:e.inactive_periods;return Array.isArray(n)&&n.length>0}),o=e.ref();return{isCancellable:i,isRenewable:a,pendingVariant:o,cancel:()=>{t.value&&(o.value="CANCEL")},renew:()=>{t.value&&(o.value="RENEW")},dismiss:()=>{o.value=void 0},manage:()=>{t.value&&n({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}({subscription:e.toRef(g,"subscription")}),k=e.ref();e.watch(y,e=>{e&&(k.value=void 0)});const B=()=>{k.value=y.value,_("subscription-changed")},M=e.computed(()=>{if(k.value)return"RENEW"===k.value?f({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):f({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),N=e.computed(()=>r.getMostRecentScheduleInfo(g.subscription)),j=e.computed(()=>(g.paymentMethods??[]).find(({id:e})=>{var t;return e===(null==(t=g.subscription)?void 0:t.payment_method_id)})),V=e.computed(()=>g.subscription?[g.subscription]:[]),E=e.computed(()=>r.getSubscriptionName({subscription:g.subscription,fallback:f({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(a._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.value),1)]),_:1}),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:1,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[M.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:M.value},null,8,["title"])):e.createCommentVNode("",!0),m.error?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(f)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):m.isLoading?(e.openBlock(),e.createBlock(p._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):m.subscription?(e.openBlock(),e.createBlock(l._sfc_main,{key:3,class:"sv-subscription-details__schedules","schedules-data":m.schedulesData??[],configuration:{subscriptionId:m.subscription.id},"is-loading":m.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(d._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(c._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":Boolean(m.hasWalletBalancesError),"is-loading":m.isLoading,"wallet-balances":m.walletBalances,"show-top-up-button":"",customer:m.customer,"payment-methods":m.paymentMethods,subscriptions:V.value,onTopUpCharged:r[0]||(r[0]=e=>s.$emit("top-up-charged")),onAutoTopUpSaved:r[1]||(r[1]=e=>s.$emit("auto-top-up-saved")),onAutoTopUpCancelled:r[2]||(r[2]=e=>s.$emit("auto-top-up-cancelled")),onPaymentMethodStored:r[3]||(r[3]=e=>s.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),N.value?(e.openBlock(),e.createBlock(L,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":N.value,onUpgrade:e.unref(S)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":m.isLoading,"payment-methods":[j.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(D,{"show-modal":Boolean(e.unref(y)),variant:e.unref(y),subscription:m.subscription,avatar:m.avatar,onConfirmed:B,onClose:e.unref(x)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),U=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=t,i=n.portalObject.customer_id,{subscription:a,withPlanData:o,get:s,error:r}=S.useSubscription({subscriptionId:n.configuration.subscriptionId}),{customer:l,get:u}=k.useCustomer({customerId:i}),{items:d,fetchAll:p}=B.usePaymentMethods({customerId:i}),{walletBalances:m,apiStatus:b,fetch:g}=c.useCustomerWalletBalances({customerId:i}),{isLoading:_}=M.useLoadInitialData(s(),u.execute(),p(),g()),f=e.computed(()=>a.value?o(a.value):[]),h=e.computed(()=>{var e;return(null==(e=m.value)?void 0:e.wallet_balances)??[]}),v=e.computed(()=>b.value===x.ApiStatus.Failed);return(t,n)=>e.renderSlot(t.$slots,"default",{subscription:e.unref(a),schedulesData:f.value,customer:e.unref(l),paymentMethods:e.unref(d),walletBalances:h.value,hasWalletBalancesError:v.value,isLoading:e.unref(_),error:e.unref(r),refreshWalletBalances:e.unref(g),refreshPaymentMethods:e.unref(p),refreshSubscription:e.unref(s)})}}),$=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=N.getComponentName("subscription-details");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{entry:i.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:n,schedulesData:i,customer:a,paymentMethods:o,walletBalances:s,hasWalletBalancesError:r,isLoading:l,error:c,refreshWalletBalances:u,refreshPaymentMethods:d,refreshSubscription:p})=>[e.createVNode(R,{subscription:n,"schedules-data":i,customer:a,avatar:t.configuration.avatar,"payment-methods":o,"wallet-balances":s,"has-wallet-balances-error":r,"is-loading":l,error:c,onTopUpCharged:u,onAutoTopUpSaved:u,onAutoTopUpCancelled:u,onPaymentMethodStored:d,onSubscriptionChanged:p},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:W}=a.createSolvimonElement($,"subscription-details");exports.defineSolvimonSubscriptionDetails=W;
|
package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs}
RENAMED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { computed, ref, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, shallowRef, watch, toRef, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$e } from "../../IconButton.vue.es-DcC4f5EQ.mjs";
|
|
3
|
+
import { a as _sfc_main$8 } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
4
|
+
import { _ as _sfc_main$b } from "../../ErrorNotification.vue.es-C22Kt8Qn.mjs";
|
|
5
|
+
import { u as useIntl, _ as _sfc_main$7, b as useLogger, d as _sfc_main$i, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
4
6
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
5
|
-
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-
|
|
7
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-D55t_7LY.mjs";
|
|
6
8
|
import { b as getMostRecentScheduleInfo, a as getSubscriptionName } from "../../subscription-C41lG-rH.mjs";
|
|
7
|
-
import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs";
|
|
10
|
+
import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs";
|
|
11
|
+
import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs";
|
|
12
|
+
import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
|
|
11
13
|
import { _ as _sfc_main$f } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
14
|
+
import { _ as _sfc_main$6 } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
15
|
+
import { g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
|
|
16
|
+
import { f as formatAmount, b as formatBillingPeriod } from "../../formatting.es-D-oVnc8H.mjs";
|
|
17
|
+
import { _ as _sfc_main$a } from "../../PaymentMethod.vue.es-CH__kPw4.mjs";
|
|
18
|
+
import { M as Modal } from "../../Modal.vue.es-5EpA4Q0t.mjs";
|
|
19
|
+
import { c as createSubscriptionsService } from "../../subscriptions-C2C4WTuI.mjs";
|
|
20
|
+
import { _ as _sfc_main$9 } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
|
|
21
|
+
import { g as getPaginatedFullList } from "../../api.es-C5pe8LUl.mjs";
|
|
22
|
+
import { i as isApiSuccessCollectionResponse } from "../../useIncrementalLoading-BK9pRYAU.mjs";
|
|
23
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-BsrkEbKT.mjs";
|
|
24
|
+
import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
|
|
25
|
+
import { u as useSubscription } from "../../useSubscription--IGLmLS6.mjs";
|
|
26
|
+
import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
|
|
27
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
|
|
28
|
+
import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
|
|
29
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
21
30
|
function useSubscriptionActions({
|
|
22
31
|
subscription
|
|
23
32
|
}) {
|
|
@@ -819,20 +828,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
819
828
|
branding: { type: Object }
|
|
820
829
|
},
|
|
821
830
|
setup(__props) {
|
|
831
|
+
const componentName = getComponentName("subscription-details");
|
|
822
832
|
return (_ctx, _cache) => {
|
|
823
|
-
var _a, _b, _c, _d;
|
|
824
833
|
return openBlock(), createBlock(unref(_sfc_main$i), {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
locale: __props.locale,
|
|
828
|
-
"portal-object": __props.portalObject,
|
|
834
|
+
entry: _ctx.$props,
|
|
835
|
+
"component-name": unref(componentName),
|
|
829
836
|
"allowed-portal-types": ["CUSTOMER"],
|
|
830
|
-
"primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
|
|
831
|
-
"secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
|
|
832
|
-
"experimental-features": __props.experimentalFeatures,
|
|
833
|
-
"log-level": __props.logLevel,
|
|
834
|
-
"on-log": __props.onLog,
|
|
835
|
-
"css-overrides": __props.cssOverrides,
|
|
836
837
|
onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
|
|
837
838
|
}, {
|
|
838
839
|
default: withCtx(() => [
|
|
@@ -871,19 +872,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
871
872
|
}, 16)
|
|
872
873
|
]),
|
|
873
874
|
_: 1
|
|
874
|
-
}, 8, ["
|
|
875
|
+
}, 8, ["entry", "component-name"]);
|
|
875
876
|
};
|
|
876
877
|
}
|
|
877
878
|
});
|
|
878
|
-
const
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
customElements.define(COMPONENT_NAME, SolvimonSubscriptionDetails);
|
|
883
|
-
}
|
|
884
|
-
};
|
|
879
|
+
const { define: defineSolvimonSubscriptionDetails } = createSolvimonElement(
|
|
880
|
+
_sfc_main,
|
|
881
|
+
"subscription-details"
|
|
882
|
+
);
|
|
885
883
|
export {
|
|
886
|
-
COMPONENT_NAME,
|
|
887
|
-
SolvimonSubscriptionDetails,
|
|
888
884
|
defineSolvimonSubscriptionDetails
|
|
889
885
|
};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const COMPONENT_NAME: string;
|
|
3
|
-
export declare const defineSolvimonSubscriptionManagement: () => void;
|
|
1
|
+
export * from '../../types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-aLcIdATK.js"),n=require("../../ErrorNotification.vue.es-BX3khKFc.js"),i=require("../../customElements-BTJzBHMy.js"),a=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useActionDispatchProvider-Cz8xLLYA.js"),s=require("../../usePortal-fhri8neB.js"),r=require("../../useSubscription-V3KSuhOY.js"),c=require("../../useCustomer-DYCpgA-3.js"),l=require("../../usePaymentMethods-CFL3hFW_.js"),u=require("../../usePaymentMethodOptions-fBvWYynV.js"),d=require("../../useLoadInitialData-CiJldX50.js"),p=require("../../invoices-BiqM6xN6.js"),m=require("../../pricingPlanSchedule-B9HFiXy-.js"),g=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js"),v=require("../../Divider.vue.es-ClFG8QtG.js"),_=require("../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js"),h=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),f=require("../../Section.vue.es-tLYXp-tF.js"),b=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),y=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js"),w=require("../../Modal.vue.es-CX5geho3.js"),S=require("../../component-hDuDTBt5.js");const M={class:"sv-subscription-management-form__body grid grid-cols-1 gap-4"},P=e.defineComponent({__name:"SubscriptionManagementForm",props:e.mergeModels({pricingGroup:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},billingPeriod:{type:Object},currency:{type:String},disabled:{type:Boolean}},{enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{},paymentMethodId:{},paymentMethodIdModifiers:{}}),emits:e.mergeModels(["add-payment-method"],["update:enabledPricingIds","update:paymentMethodId"]),setup(t,{emit:n}){const a=t,o=n,s=e.useModel(t,"enabledPricingIds"),r=e.useModel(t,"paymentMethodId"),{$t:c}=i.useIntl(),l=e=>{const t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:0},u=e.computed(()=>[...a.paymentMethods??[]].sort((e,t)=>l(t.created_at)-l(e.created_at)));return e.watch(()=>a.paymentMethods,(e,t)=>{var n;const i=null==e?void 0:e.find(({id:e})=>!(null==t?void 0:t.some(t=>t.id===e)));i&&(null==t?void 0:t.length)?r.value=i.id:(null==e?void 0:e.some(({id:e})=>e===r.value))||(r.value=null==(n=(null==e?void 0:e.find(({is_default:e})=>e))??u.value[0])?void 0:n.id)},{immediate:!0}),(n,i)=>(e.openBlock(),e.createElementBlock("form",{class:"sv-subscription-management-form",onSubmit:i[3]||(i[3]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",M,[e.createVNode(g._sfc_main,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=e=>s.value=e),class:"sv-subscription-management-form__pricing-group","group-name":t.pricingGroup.name,pricings:t.pricingGroup.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"]),e.createElementVNode("div",null,[e.createVNode(e.unref(v._sfc_main),{spacing:"xs"})]),e.createVNode(_._sfc_main,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=e=>r.value=e),class:"sv-subscription-management-form__payment-methods","payment-methods":u.value,"payment-method-options":t.paymentMethodOptions,required:"",disabled:t.disabled,label:e.unref(c)({defaultMessage:"Payment method",id:"subscription_management.payment_method_selector.label",description:"Label above the payment method that pays for the subscription change"}),onAddPaymentMethod:i[2]||(i[2]=e=>o("add-payment-method"))},null,8,["modelValue","payment-methods","payment-method-options","disabled","label"])])],32))}}),k=e.defineComponent({__name:"TranslationOverride",props:{messages:{type:Object}},setup(t){const n=t,a=e.inject(i.TRANSLATION_SETTINGS_KEY,void 0),o=e.computed(()=>({...null==a?void 0:a.messages.value,...n.messages}));return(t,n)=>{var s,r;return e.openBlock(),e.createBlock(e.unref(i._sfc_main$2),{locale:null==(s=e.unref(a))?void 0:s.locale.value,"date-locale":null==(r=e.unref(a))?void 0:r.dateLocale.value,messages:o.value,"show-timezones":!1},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["locale","date-locale","messages"])}}}),I=e.defineComponent({__name:"SubscriptionManagementSummary",props:{invoice:{type:Object},isPending:{type:Boolean},hasError:{type:Boolean}},setup(t){const{$t:a}=i.useIntl(),o=e.computed(()=>({"invoice_preview.total_due_today_heading":a({defaultMessage:"Total due",id:"subscription_management.summary.total_due_heading",description:'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-subscription-management-summary",title:e.unref(a)({defaultMessage:"Order summary",id:"subscription_management.summary.title",description:"Title of the block previewing what a subscription change is invoiced for"})},{default:e.withCtx(()=>[t.hasError?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management-summary__error sv-error",title:e.unref(a)({defaultMessage:"Unable to calculate the total. Please try again.",id:"subscription_management.summary.error",description:"Error shown when the invoice preview for a subscription change cannot be loaded"})},null,8,["title"])):t.isPending||!t.invoice?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"sv-subscription-management-summary__skeleton min-h-[120px]"},{default:e.withCtx(()=>[t.isPending?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,variant:"body-sm",shade:"lighter",tag:"div",class:"sv-subscription-management-summary__empty-state"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Select your plan to see what it costs.",id:"subscription_management.summary.empty_state",description:"Shown in the order summary before a plan has been picked to preview"})),1)]),_:1}))]),_:1})):(e.openBlock(),e.createBlock(k,{key:2,messages:o.value},{default:e.withCtx(()=>[e.createVNode(e.unref(h._sfc_main$2),{class:"sv-subscription-management-summary__invoice",invoice:t.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1},8,["messages"]))]),_:1},8,["title"]))}}),B={class:"sv-subscription-management-success grid grid-cols-1 gap-4"},C={class:"sv-subscription-management-success__message"},j=e.defineComponent({__name:"SubscriptionManagementSuccess",props:{pricingGroupName:{type:String}},setup(t){const n=t,{$t:a}=i.useIntl(),o=e.computed(()=>a({defaultMessage:"Subscription updated",description:"Title shown on the manage subscription screen once the change is committed",id:"subscription_management.success.title"})),s=e.computed(()=>n.pricingGroupName?a({defaultMessage:"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of the pricing group a committed subscription change applied to",id:"subscription_management.success.message"},{subject:n.pricingGroupName}):a({defaultMessage:"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of a committed subscription change when the pricing group is not known",id:"subscription_management.success.message_generic"}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(y._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",C,e.toDisplayString(s.value),1)]),_:1},8,["title"])]))}}),N=e.defineComponent({__name:"AddPaymentMethodModal",props:{showModal:{type:Boolean},customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean}},emits:["success","failure","close"],setup(t,{emit:n}){const a=n,{$t:o}=i.useIntl(),s=e.ref(),r=e.computed(()=>{var e;return!!(null==(e=s.value)?void 0:e.isSaving)}),c=()=>{var e;null==(e=s.value)||e.submit()};return(n,i)=>(e.openBlock(),e.createBlock(e.unref(w.Modal),{"no-click-away":"",size:"lg","show-modal":t.showModal,"is-loading":r.value,title:e.unref(o)({defaultMessage:"Add payment method",id:"add_payment_method_modal.title",description:"Title of the modal for adding a payment method"}),"sub-title":e.unref(o)({defaultMessage:"Add a new payment method to pay with.",id:"add_payment_method_modal.subtitle",description:"Subtitle of the modal for adding a payment method"}),"confirm-button-text":e.unref(o)({defaultMessage:"Save payment method",id:"add_payment_method_modal.confirm_button.label",description:"Label of the button that stores the payment method being added"}),"cancel-button-text":e.unref(o)({defaultMessage:"Cancel",id:"add_payment_method_modal.cancel_button.label",description:"Label of the button that abandons adding a payment method"}),onConfirm:c,onClose:i[2]||(i[2]=e=>a("close"))},{body:e.withCtx(()=>[e.createVNode(_._sfc_main$1,{ref_key:"addPaymentMethodRef",ref:s,class:"sv-add-payment-method-modal sv-add-payment-method-modal__form",customer:t.customer,"payment-method-options":t.paymentMethodOptions,"is-loading":t.isLoading,"is-active":t.showModal,onSuccess:i[0]||(i[0]=e=>a("success")),onFailure:i[1]||(i[1]=e=>a("failure",e))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:1},8,["show-modal","is-loading","title","sub-title","confirm-button-text","cancel-button-text"]))}}),x={class:"sv-subscription-management__header"},V={class:"flex flex-col gap-2"},O=e.defineComponent({__name:"SubscriptionManagement",props:{configuration:{type:Object}},setup(v){const _=v,{$t:h}=i.useIntl(),f=s.usePortal(),y=i.useLogger(),{dispatchAction:w}=o.useActionDispatchProvider(),{createPricingPlanSchedule:S}=function(){const e=i.createRequestService(),t=i.useConfig();return{getOnDemandPricingItems:function({scheduleId:n}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${n}/on-demand-pricing-items`})},createPricingPlanSchedule:function({pricingPlanSubscriptionId:n,enabledPricings:i}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:n,enabled_pricings:i,start_at:(new Date).toJSON()}})}}}(),{subscription:M,get:k}=r.useSubscription({subscriptionId:_.configuration.subscriptionId}),{items:B,fetchAll:C}=l.usePaymentMethods({customerId:f.value.customer_id}),{customer:O,get:E}=c.useCustomer({customerId:f.value.customer_id}),{paymentMethodOptions:q,get:A}=u.usePaymentMethodOptions(),{isLoading:L}=d.useLoadInitialData(k(),C(),E.execute(),A({customerId:f.value.customer_id})),T=e.ref(!1),D=async()=>{await C(),T.value=!1},$=e.computed(()=>{var e;return m.getActiveDefaultScheduleInfo((null==(e=M.value)?void 0:e.pricing_plan_schedule_infos)??[])}),F=e.computed(()=>{var e;const t=$.value;if(!t)return;const{enabledPricingId:n}=_.configuration;return(n?[n]:((null==(e=t.pricing_plan_schedule)?void 0:e.enabled_pricings)??[]).map(({pricing_id:e})=>e)).map(e=>m.getPricingGroupByPricingId({pricingPlanScheduleInfo:t,pricingId:e})).find(e=>Boolean(e))}),U=e.computed(()=>{var e;return h({defaultMessage:"Manage {subject}",id:"subscription_management.title",description:"Title for the manage subscription page, naming the pricing group being changed"},{subject:(null==(e=F.value)?void 0:e.name)||h({defaultMessage:"subscription",id:"subscription_management.title.default_subject",description:'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'})})}),G=e.ref([]),z=e.ref();e.watch([$,F],([e,t])=>{var n;const i=((null==(n=null==e?void 0:e.pricing_plan_schedule)?void 0:n.enabled_pricings)??[]).map(({pricing_id:e})=>e),{enabledPricingId:a}=_.configuration,o=((null==t?void 0:t.pricings)??[]).map(({id:e})=>e);G.value=a&&o.includes(a)?[...i.filter(e=>!o.includes(e)),a]:i},{immediate:!0});const{invoice:R,isPending:Y,error:W,load:K}=function(){const{getInvoicePreview:t}=p.createInvoicesService(),n=i.useLogger(),a=e.ref(),o=e.ref(!1),s=e.ref(),r=i.createLatestGuard();return{invoice:a,isPending:o,error:s,load:async({subscription:e,enabledPricingIds:i})=>{const c=m.getScheduleCustomizations({enabledPricings:i.map(e=>({pricing_id:e})),pricingPlanScheduleInfos:e.pricing_plan_schedule_infos});if(!c)return void(a.value=void 0);const l=r();o.value=!0,s.value=void 0;try{const n=await t({forExistingSubscription:!0,pricingPlanSubscriptionId:e.id,customizations:c});if(!l())return;a.value=n.invoice}catch(W){if(!l())return;n.error("INVOICE_PREVIEW_FAILED","Failed to preview the subscription upgrade",{},W),s.value=W,a.value=void 0}finally{l()&&(o.value=!1)}}}}();e.watch([G,M],([e,t])=>{t&&0!==e.length&&K({subscription:t,enabledPricingIds:e})},{immediate:!0});const H=e.ref(!1),J=e.ref(),Z=e.ref(!1),Q=e.computed(()=>!L.value&&!H.value&&G.value.length>0&&Boolean(M.value)&&Boolean(z.value)),X=async()=>{if(Q.value&&M.value){H.value=!0,J.value=void 0;try{await S({pricingPlanSubscriptionId:M.value.id,enabledPricings:G.value.map(e=>({pricing_id:e}))}),Z.value=!0}catch(e){y.error("SUBSCRIPTION_UPDATE_FAILED","Failed to start a new pricing plan schedule",{},e),J.value=h({defaultMessage:"Something went wrong. Please try again.",id:"subscription_management.update_error",description:"Error shown when committing a subscription change fails"})}finally{H.value=!1}}},ee=e.computed(()=>{var e,t,n;return(null==(t=null==(e=$.value)?void 0:e.pricing_plan_schedule)?void 0:t.billing_period)??(null==(n=M.value)?void 0:n.billing_period)});return(o,s)=>(e.openBlock(),e.createBlock(e.unref(a.ContentWithAsideLayout),{class:"sv-subscription-management sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(i._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-management__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.value),1)]),_:1})])]),content:e.withCtx(()=>{var t,n;return[Z.value?(e.openBlock(),e.createBlock(j,{key:0,class:"sv-subscription-management__success","pricing-group-name":null==(t=F.value)?void 0:t.name},null,8,["pricing-group-name"])):e.unref(L)?(e.openBlock(),e.createBlock(b._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):F.value&&ee.value?(e.openBlock(),e.createBlock(P,{key:2,"enabled-pricing-ids":G.value,"onUpdate:enabledPricingIds":s[0]||(s[0]=e=>G.value=e),"payment-method-id":z.value,"onUpdate:paymentMethodId":s[1]||(s[1]=e=>z.value=e),class:"sv-subscription-management__form","pricing-group":F.value,"payment-methods":e.unref(B),"payment-method-options":e.unref(q),"billing-period":ee.value,currency:null==(n=e.unref(M))?void 0:n.billing_currency,onAddPaymentMethod:s[2]||(s[2]=e=>T.value=!0)},null,8,["enabled-pricing-ids","payment-method-id","pricing-group","payment-methods","payment-method-options","billing-period","currency"])):e.createCommentVNode("",!0),e.createVNode(N,{"show-modal":T.value,customer:e.unref(O),"payment-method-options":e.unref(q),onSuccess:D,onClose:s[3]||(s[3]=e=>T.value=!1)},null,8,["show-modal","customer","payment-method-options"])]}),aside:e.withCtx(()=>[Z.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",type:"button",onClick:s[4]||(s[4]=t=>e.unref(w)({action:"navigate-to-customer-overview"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Done",id:"subscription_management.done_button.label",description:"Label of the button that leaves the manage subscription screen once the change is committed"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(I,{class:"sv-subscription-management__summary",invoice:e.unref(R),"is-pending":e.unref(L)||e.unref(Y),"has-error":Boolean(e.unref(W))},null,8,["invoice","is-pending","has-error"]),J.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,class:"sv-subscription-management__update-error sv-error",title:J.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[e.createVNode(e.unref(t._sfc_main$1),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",type:"button",disabled:!Q.value,loading:H.value,onClick:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)({defaultMessage:"Update subscription",id:"subscription_management.update_button.label",description:"Label of the button that commits the subscription change"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(g._sfc_main$1,{class:"sv-subscription-management__kpi","payment-method-options":e.unref(q)},null,8,["payment-method-options"])])],64))]),_:1}))}}),E=e.defineComponent({__name:"SubscriptionManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=S.getComponentName("subscription-management");return(a,o)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{entry:a.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(O,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:q}=i.createSolvimonElement(E,"subscription-management");exports.defineSolvimonSubscriptionManagement=q;
|