@solvimon/solvimon-web 0.1.0-alpha.17 → 0.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -50
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs +241 -0
- package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
- package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
- package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
- package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
- package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
- package/dist/Button.vue.es-aLcIdATK.js +1 -0
- package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
- package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
- package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
- package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
- package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
- package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs +3261 -0
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
- package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
- package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
- package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
- package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
- package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
- package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
- package/dist/Input.vue.es-C8VhMKuI.js +1 -0
- package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
- package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
- package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
- package/dist/Modal.vue.es-CX5geho3.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs +155 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs +54 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-BitwS9Re.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-ZtmPXXwI.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BZTzCUiu.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-BK2aLPCo.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs +149 -0
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-CuRwe9_9.mjs +691 -0
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/PaymentIntegrationFormStripe-JZw2m1kJ.mjs +545 -0
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/PaymentMethodForm-C5WqTDow.mjs +4 -0
- package/dist/PaymentMethodForm-CBjHdZT7.js +1 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +80 -30
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
- package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
- package/dist/Section.vue.es-tLYXp-tF.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +17 -63
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +8 -5
- package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
- package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
- package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
- package/dist/adyen-BMDZQBUG.js +1 -0
- package/dist/{url-BjZ1Pg0l.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/cn.es-BLHlMR4Y.js +1 -0
- package/dist/cn.es-DB5pDpxS.mjs +3298 -0
- package/dist/comparators.es-9VsCB-JI.mjs +175 -0
- package/dist/comparators.es-wrKHduVq.js +1 -0
- package/dist/component-BG6DmXcy.mjs +9 -0
- package/dist/component-hDuDTBt5.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +31 -29
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -67
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -11
- package/dist/core/index.mjs +197 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -121
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-BTJzBHMy.js +1 -0
- package/dist/customElements-DdFA__me.mjs +6729 -0
- package/dist/{customer-DAgdegIW.mjs → customer-B0AMetq6.mjs} +1 -1
- package/dist/customer-D7HUfF3j.js +1 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/en-US-BSrbFk5W.js +1 -0
- package/dist/en-US-D0P7NNNZ.mjs +228 -0
- package/dist/{en-US-DSzSbgL5.mjs → en-US-Daw3v6GD.mjs} +60 -30
- package/dist/en-US-scSQQXK8.js +1 -0
- package/dist/error-Cg-i7gGl.js +1 -0
- package/dist/error-DY_I2hPx.mjs +13 -0
- package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D-oVnc8H.mjs +68 -0
- package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
- package/dist/getComposedString.es-DvSNX-_z.js +1 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-BJ3dHkSK.js +1 -0
- package/dist/index-C5bKRt7l.mjs +1069 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.es-0cystq8F.mjs +542 -0
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.mjs +42 -0
- package/dist/{invoices-BXDgW8ch.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-Li7RW89R.mjs → nl-NL-B4zEBFTw.mjs} +60 -52
- package/dist/nl-NL-B5tuyIOM.mjs +88 -0
- package/dist/nl-NL-Bs3d8q6T.js +1 -0
- package/dist/nl-NL-DIAZWDF9.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/{paymentMethods-xzFD2L30.mjs → paymentMethods-BsrkEbKT.mjs} +23 -19
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-DV6csRej.mjs → payments-B6Nfd6Al.mjs} +1 -1
- package/dist/payments-Bbm1HMQj.js +1 -0
- package/dist/pricing-3W7XLwL6.js +1 -0
- package/dist/pricing-CJxS2hr2.mjs +17 -0
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
- package/dist/{pricingPlanSchedule-C_cqUyTk.mjs → pricingPlanSchedule-CXG3CQ61.mjs} +3 -1
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1271 -630
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +54 -81
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +41 -32
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +35 -37
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +885 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +45 -63
- package/dist/slots.es-BpwYO3A3.mjs +18 -0
- package/dist/slots.es-Dq1PTUOv.js +1 -0
- package/dist/sorting.es-CjTrRfSW.mjs +105 -0
- package/dist/sorting.es-RyvcgbSL.js +1 -0
- package/dist/{subscription-B4dBAY9C.mjs → subscription-C41lG-rH.mjs} +1 -1
- package/dist/subscriptions-B4BOzLxR.js +1 -0
- package/dist/subscriptions-C2C4WTuI.mjs +58 -0
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
- package/dist/{useActionDispatchProvider-zB_GKeUR.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-VfeQ6rG2.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-bO4D6e4Z.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-C59FXHzp.mjs → useIncrementalLoading-BK9pRYAU.mjs} +6 -5
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-CxxkBTGY.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Dhg-hx8C.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DBz7T7sM.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BhpIg7OF.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-PcMjtMSF.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -3
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-B5AbGWsn.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-Bb1Xbads.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-DWLtNqBB.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-BZqFkz7p.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +66 -49
- package/dist/ApiStatus-CyNDp_op.mjs +0 -9
- package/dist/ApiStatus-oqvUEWJx.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs +0 -77
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs +0 -27
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs +0 -1537
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +0 -1
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +0 -156
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs +0 -217
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +0 -37
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +0 -1
- package/dist/component-CUJ_G2Nw.mjs +0 -962
- package/dist/component-CiKxWtdx.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/customer-AfRcAZ5P.js +0 -1
- package/dist/en-US-QzQnGXP1.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-BHgajZHq.js +0 -1
- package/dist/nl-NL-C4rr-1tr.js +0 -1
- package/dist/paymentMethods-BMcc-eTl.js +0 -1
- package/dist/payments-DMvmB5vg.js +0 -1
- package/dist/pricing-B1uImUm4.mjs +0 -19
- package/dist/pricing-BEjY_5wb.js +0 -1
- package/dist/registry-CeMxLjwU.js +0 -1
- package/dist/registry-CyENvS6l.mjs +0 -153
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +0 -542
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-CrNDM9qa.mjs +0 -79
- package/dist/subscriptions-DC-mxa17.js +0 -1
- package/dist/url-D8GJi5rF.js +0 -1
- package/dist/useActionDispatchProvider-bqR_FeM4.js +0 -1
- package/dist/useIncrementalLoading-BgWuwoMo.js +0 -1
- package/dist/useInvoicesList-BXZ9uV9i.js +0 -1
- package/dist/useLoadInitialData-BqiAFNFi.js +0 -1
- package/dist/usePaymentMethodOptions-DszFvgKX.js +0 -1
- package/dist/usePayments-DgoZoBZh.mjs +0 -36
- package/dist/usePayments-is5c66Z6.js +0 -1
- package/dist/usePortal-C4qWsJeq.js +0 -1
- package/dist/useService-DKm3QtT4.js +0 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +0 -23
- package/dist/useSubscription-DuUNc1_l.js +0 -1
- package/dist/useTopUpModal-DNyWrHDv.mjs +0 -1012
- package/dist/useTopUpModal-DeF-cfCK.js +0 -1
- package/dist/vendor-ui-BoGKOJ36.mjs +0 -29826
- package/dist/vendor-ui-BuRqLx74.js +0 -1
|
@@ -1,25 +1,728 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { defineComponent, createPropsRestProxy, computed, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, useModel, ref, onMounted, watch, createSlots, createVNode, normalizeClass, createElementVNode, createCommentVNode, renderSlot, mergeModels, inject, createElementBlock, withModifiers, Fragment, renderList, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
|
|
2
|
+
import { c as countryData } from "../../countryData.es--zJAd6LA.mjs";
|
|
3
|
+
import { _ as _sfc_main$r, I as I18N_INJECTION_KEY, b as useLogger, u as useIntl, d as _sfc_main$Q, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
|
|
4
|
+
import { u as useTimePeriod } from "../../PricingGroupRangeInput.vue.es-A6eW-u2k.mjs";
|
|
5
|
+
import { b as formatBillingPeriod, f as formatAmount } from "../../formatting.es-D-oVnc8H.mjs";
|
|
6
|
+
import { a as _sfc_main$v, _ as _sfc_main$K } from "../../Button.vue.es-BrWHdiEA.mjs";
|
|
7
|
+
import { _ as _sfc_main$N } from "../../ErrorNotification.vue.es-C22Kt8Qn.mjs";
|
|
8
|
+
import { c as createSubscriptionsService } from "../../subscriptions-C2C4WTuI.mjs";
|
|
9
|
+
import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
|
|
10
|
+
import { c as convertDateRangeToTimePeriod, _ as _sfc_main$y } from "../../TrialChip.vue.es-Fp7Lqo-b.mjs";
|
|
11
|
+
import { a as isEqual } from "../../useService-W3Kxems4.mjs";
|
|
12
|
+
import { c as createInvoicesService } from "../../invoices-BSd-nKeE.mjs";
|
|
13
|
+
import { g as getFirstPricingPlanScheduleOfType, b as getScheduleCustomizations, e as getPricingItemConfigMetaById } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
|
|
14
|
+
import { u as useValidation, r as required, e as email, a as requiredIf, _ as _sfc_main$E } from "../../index-C5bKRt7l.mjs";
|
|
15
|
+
import { o as objectDiff, u as useCustomerFormLabels, _ as _sfc_main$u, a as _sfc_main$x } from "../../useCustomerFormLabels-mX5QpApD.mjs";
|
|
9
16
|
import { u as useWatchDebounced } from "../../useWatchDebounced-Zmxd6InB.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _sfc_main$
|
|
17
|
+
import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
|
|
18
|
+
import { c as getPricingGroupsFromExtendedPricingPlanSubscription, a as getSubscriptionName, d as getFallbackTrialAndSubscriptionStartAndEndDates } from "../../subscription-C41lG-rH.mjs";
|
|
19
|
+
import { a as getAllPricingsFromScheduleInfos, b as getPricingsFromScheduleInfo, g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
|
|
20
|
+
import { g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyen-Ba-mF3Jy.mjs";
|
|
21
|
+
import { u as usePortal } from "../../usePortal-eyA4OqjU.mjs";
|
|
22
|
+
import { g as getCountryNameByCode } from "../../getCountryNameByCode.es-ymC9R46j.mjs";
|
|
23
|
+
import { _ as _sfc_main$w } from "../../Expand.vue.es-C4_XmqbR.mjs";
|
|
24
|
+
import { _ as _sfc_main$p } from "../../Input.vue.es-Dp_RH03h.mjs";
|
|
25
|
+
import { _ as _sfc_main$t } from "../../Section.vue.es-MEFUWCxU.mjs";
|
|
26
|
+
import { a as _sfc_main$q, _ as _sfc_main$s } from "../../IconButton.vue.es-DcC4f5EQ.mjs";
|
|
27
|
+
import { c as createCustomerService } from "../../customer-B0AMetq6.mjs";
|
|
28
|
+
import { c as _sfc_main$A, d as _sfc_main$G, b as _sfc_main$H, _ as _sfc_main$P } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
|
|
29
|
+
import { _ as _sfc_main$z, T as TooltipContent, a as _sfc_main$B } from "../../TooltipParagraph.vue.es-B5aHQv9O.mjs";
|
|
30
|
+
import { _ as _sfc_main$C } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
|
|
31
|
+
import { _ as _sfc_main$o } from "../../Chip.vue.es-DPGTweAr.mjs";
|
|
32
|
+
import { b as _sfc_main$F, u as usePricingDescription, c as _sfc_main$L, _ as _sfc_main$M, a as _sfc_main$O } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs";
|
|
33
|
+
import { _ as _sfc_main$D } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
|
|
18
34
|
import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
|
|
19
|
-
import { _ as _sfc_main$
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
35
|
+
import { _ as _sfc_main$I } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
36
|
+
import { _ as _sfc_main$J } from "../../DividerText.vue.es-DMg-DNgi.mjs";
|
|
37
|
+
import { c as createPaymentsService } from "../../payments-B6Nfd6Al.mjs";
|
|
22
38
|
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
|
|
39
|
+
import { u as uniqueId } from "../../cn.es-DB5pDpxS.mjs";
|
|
40
|
+
import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
|
|
41
|
+
const EU_COUNTRIES = {
|
|
42
|
+
AT: "Austria",
|
|
43
|
+
BE: "Belgium",
|
|
44
|
+
BG: "Bulgaria",
|
|
45
|
+
CY: "Cyprus",
|
|
46
|
+
CZ: "Czech Republic",
|
|
47
|
+
DE: "Germany",
|
|
48
|
+
DK: "Denmark",
|
|
49
|
+
EE: "Estonia",
|
|
50
|
+
ES: "Spain",
|
|
51
|
+
FI: "Finland",
|
|
52
|
+
FR: "France",
|
|
53
|
+
GR: "Greece",
|
|
54
|
+
HR: "Croatia",
|
|
55
|
+
HU: "Hungary",
|
|
56
|
+
IE: "Ireland",
|
|
57
|
+
IT: "Italy",
|
|
58
|
+
LT: "Lithuania",
|
|
59
|
+
LU: "Luxembourg",
|
|
60
|
+
LV: "Latvia",
|
|
61
|
+
MT: "Malta",
|
|
62
|
+
NL: "Netherlands",
|
|
63
|
+
PL: "Poland",
|
|
64
|
+
PT: "Portugal",
|
|
65
|
+
RO: "Romania",
|
|
66
|
+
SE: "Sweden",
|
|
67
|
+
SI: "Slovenia",
|
|
68
|
+
SK: "Slovakia"
|
|
69
|
+
};
|
|
70
|
+
function isEUCountry(countryCode) {
|
|
71
|
+
return Object.keys(EU_COUNTRIES).includes(countryCode);
|
|
72
|
+
}
|
|
73
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
74
|
+
__name: "DeltaChip",
|
|
75
|
+
props: {
|
|
76
|
+
oldValue: {},
|
|
77
|
+
newValue: {},
|
|
78
|
+
color: { default: "dark" },
|
|
79
|
+
content: {},
|
|
80
|
+
dark: { type: Boolean },
|
|
81
|
+
removable: { type: Boolean },
|
|
82
|
+
size: {},
|
|
83
|
+
variant: {},
|
|
84
|
+
textClass: {},
|
|
85
|
+
tag: {},
|
|
86
|
+
hasChipBefore: { type: Boolean },
|
|
87
|
+
hasChipAfter: { type: Boolean }
|
|
88
|
+
},
|
|
89
|
+
setup(__props) {
|
|
90
|
+
const chipProps = createPropsRestProxy(__props, ["oldValue", "newValue", "color"]);
|
|
91
|
+
const delta = computed(() => {
|
|
92
|
+
const calculatedDelta = __props.newValue - __props.oldValue;
|
|
93
|
+
return `${calculatedDelta >= 0 ? "+" : ""}${calculatedDelta}`;
|
|
94
|
+
});
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return openBlock(), createBlock(unref(_sfc_main$o), mergeProps(chipProps, {
|
|
97
|
+
color: __props.color,
|
|
98
|
+
class: "pointer-events-none select-none"
|
|
99
|
+
}), {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createTextVNode(toDisplayString(delta.value), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 16, ["color"]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
function ownKeys(object, enumerableOnly) {
|
|
109
|
+
var keys = Object.keys(object);
|
|
110
|
+
if (Object.getOwnPropertySymbols) {
|
|
111
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
112
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
113
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
114
|
+
})), keys.push.apply(keys, symbols);
|
|
115
|
+
}
|
|
116
|
+
return keys;
|
|
117
|
+
}
|
|
118
|
+
function _objectSpread2(target) {
|
|
119
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
120
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
121
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
122
|
+
_defineProperty(target, key, source[key]);
|
|
123
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
124
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
return target;
|
|
128
|
+
}
|
|
129
|
+
function _defineProperty(obj, key, value) {
|
|
130
|
+
if (key in obj) {
|
|
131
|
+
Object.defineProperty(obj, key, {
|
|
132
|
+
value,
|
|
133
|
+
enumerable: true,
|
|
134
|
+
configurable: true,
|
|
135
|
+
writable: true
|
|
136
|
+
});
|
|
137
|
+
} else {
|
|
138
|
+
obj[key] = value;
|
|
139
|
+
}
|
|
140
|
+
return obj;
|
|
141
|
+
}
|
|
142
|
+
function isFunction(val) {
|
|
143
|
+
return typeof val === "function";
|
|
144
|
+
}
|
|
145
|
+
function isObject(o) {
|
|
146
|
+
return o !== null && typeof o === "object" && !Array.isArray(o);
|
|
147
|
+
}
|
|
148
|
+
function normalizeValidatorObject(validator) {
|
|
149
|
+
return isFunction(validator.$validator) ? _objectSpread2({}, validator) : {
|
|
150
|
+
$validator: validator
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function unwrapValidatorResponse(result) {
|
|
154
|
+
if (typeof result === "object") return result.$valid;
|
|
155
|
+
return result;
|
|
156
|
+
}
|
|
157
|
+
function unwrapNormalizedValidator(validator) {
|
|
158
|
+
return validator.$validator || validator;
|
|
159
|
+
}
|
|
160
|
+
function withParams($params, $validator) {
|
|
161
|
+
if (!isObject($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
|
|
162
|
+
if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
|
|
163
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
164
|
+
validatorObj.$params = _objectSpread2(_objectSpread2({}, validatorObj.$params || {}), $params);
|
|
165
|
+
return validatorObj;
|
|
166
|
+
}
|
|
167
|
+
function withMessage($message, $validator) {
|
|
168
|
+
if (!isFunction($message) && typeof unref($message) !== "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof $message}`);
|
|
169
|
+
if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
|
|
170
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
171
|
+
validatorObj.$message = $message;
|
|
172
|
+
return validatorObj;
|
|
173
|
+
}
|
|
174
|
+
function withAsync($validator) {
|
|
175
|
+
let $watchTargets = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
176
|
+
const validatorObj = normalizeValidatorObject($validator);
|
|
177
|
+
return _objectSpread2(_objectSpread2({}, validatorObj), {}, {
|
|
178
|
+
$async: true,
|
|
179
|
+
$watchTargets
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function forEach(validators) {
|
|
183
|
+
return {
|
|
184
|
+
$validator(collection) {
|
|
185
|
+
for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
186
|
+
others[_key - 1] = arguments[_key];
|
|
187
|
+
}
|
|
188
|
+
return unref(collection).reduce((previous, collectionItem, index) => {
|
|
189
|
+
const collectionEntryResult = Object.entries(collectionItem).reduce((all, _ref) => {
|
|
190
|
+
let [property, $model] = _ref;
|
|
191
|
+
const innerValidators = validators[property] || {};
|
|
192
|
+
const propertyResult = Object.entries(innerValidators).reduce((all2, _ref2) => {
|
|
193
|
+
let [validatorName, currentValidator] = _ref2;
|
|
194
|
+
const validatorFunction = unwrapNormalizedValidator(currentValidator);
|
|
195
|
+
const $response = validatorFunction.call(this, $model, collectionItem, index, ...others);
|
|
196
|
+
const $valid = unwrapValidatorResponse($response);
|
|
197
|
+
all2.$data[validatorName] = $response;
|
|
198
|
+
all2.$data.$invalid = !$valid || !!all2.$data.$invalid;
|
|
199
|
+
all2.$data.$error = all2.$data.$invalid;
|
|
200
|
+
if (!$valid) {
|
|
201
|
+
let $message = currentValidator.$message || "";
|
|
202
|
+
const $params = currentValidator.$params || {};
|
|
203
|
+
if (typeof $message === "function") {
|
|
204
|
+
$message = $message({
|
|
205
|
+
$pending: false,
|
|
206
|
+
$invalid: !$valid,
|
|
207
|
+
$params,
|
|
208
|
+
$model,
|
|
209
|
+
$response
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
all2.$errors.push({
|
|
213
|
+
$property: property,
|
|
214
|
+
$message,
|
|
215
|
+
$params,
|
|
216
|
+
$response,
|
|
217
|
+
$model,
|
|
218
|
+
$pending: false,
|
|
219
|
+
$validator: validatorName
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
$valid: all2.$valid && $valid,
|
|
224
|
+
$data: all2.$data,
|
|
225
|
+
$errors: all2.$errors
|
|
226
|
+
};
|
|
227
|
+
}, {
|
|
228
|
+
$valid: true,
|
|
229
|
+
$data: {},
|
|
230
|
+
$errors: []
|
|
231
|
+
});
|
|
232
|
+
all.$data[property] = propertyResult.$data;
|
|
233
|
+
all.$errors[property] = propertyResult.$errors;
|
|
234
|
+
return {
|
|
235
|
+
$valid: all.$valid && propertyResult.$valid,
|
|
236
|
+
$data: all.$data,
|
|
237
|
+
$errors: all.$errors
|
|
238
|
+
};
|
|
239
|
+
}, {
|
|
240
|
+
$valid: true,
|
|
241
|
+
$data: {},
|
|
242
|
+
$errors: {}
|
|
243
|
+
});
|
|
244
|
+
return {
|
|
245
|
+
$valid: previous.$valid && collectionEntryResult.$valid,
|
|
246
|
+
$data: previous.$data.concat(collectionEntryResult.$data),
|
|
247
|
+
$errors: previous.$errors.concat(collectionEntryResult.$errors)
|
|
248
|
+
};
|
|
249
|
+
}, {
|
|
250
|
+
$valid: true,
|
|
251
|
+
$data: [],
|
|
252
|
+
$errors: []
|
|
253
|
+
});
|
|
254
|
+
},
|
|
255
|
+
$message: (_ref3) => {
|
|
256
|
+
let {
|
|
257
|
+
$response
|
|
258
|
+
} = _ref3;
|
|
259
|
+
return $response ? $response.$errors.map((context) => {
|
|
260
|
+
return Object.values(context).map((errors) => errors.map((error) => error.$message)).reduce((a, b) => a.concat(b), []);
|
|
261
|
+
}) : [];
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
const req = (value) => {
|
|
266
|
+
value = unref(value);
|
|
267
|
+
if (Array.isArray(value)) return !!value.length;
|
|
268
|
+
if (value === void 0 || value === null) {
|
|
269
|
+
return false;
|
|
270
|
+
}
|
|
271
|
+
if (value === false) {
|
|
272
|
+
return true;
|
|
273
|
+
}
|
|
274
|
+
if (value instanceof Date) {
|
|
275
|
+
return !isNaN(value.getTime());
|
|
276
|
+
}
|
|
277
|
+
if (typeof value === "object") {
|
|
278
|
+
for (let _ in value) return true;
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
return !!String(value).length;
|
|
282
|
+
};
|
|
283
|
+
const len = (value) => {
|
|
284
|
+
value = unref(value);
|
|
285
|
+
if (Array.isArray(value)) return value.length;
|
|
286
|
+
if (typeof value === "object") {
|
|
287
|
+
return Object.keys(value).length;
|
|
288
|
+
}
|
|
289
|
+
return String(value).length;
|
|
290
|
+
};
|
|
291
|
+
function regex() {
|
|
292
|
+
for (var _len = arguments.length, expr = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
293
|
+
expr[_key] = arguments[_key];
|
|
294
|
+
}
|
|
295
|
+
return (value) => {
|
|
296
|
+
value = unref(value);
|
|
297
|
+
return !req(value) || expr.every((reg) => {
|
|
298
|
+
reg.lastIndex = 0;
|
|
299
|
+
return reg.test(value);
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
var common = /* @__PURE__ */ Object.freeze({
|
|
304
|
+
__proto__: null,
|
|
305
|
+
forEach,
|
|
306
|
+
len,
|
|
307
|
+
normalizeValidatorObject,
|
|
308
|
+
regex,
|
|
309
|
+
req,
|
|
310
|
+
unwrap: unref,
|
|
311
|
+
unwrapNormalizedValidator,
|
|
312
|
+
unwrapValidatorResponse,
|
|
313
|
+
withAsync,
|
|
314
|
+
withMessage,
|
|
315
|
+
withParams
|
|
316
|
+
});
|
|
317
|
+
regex(/^[a-zA-Z]*$/);
|
|
318
|
+
regex(/^[a-zA-Z0-9]*$/);
|
|
319
|
+
regex(/^\d*(\.\d+)?$/);
|
|
320
|
+
const emailRegex = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
321
|
+
regex(emailRegex);
|
|
322
|
+
const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
|
323
|
+
regex(urlRegex);
|
|
324
|
+
regex(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
325
|
+
regex(/^[-]?\d*(\.\d+)?$/);
|
|
326
|
+
const _hoisted_1$k = { class: "flex items-center gap-1.5 text-gray-800" };
|
|
327
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
328
|
+
__name: "StepInput",
|
|
329
|
+
props: /* @__PURE__ */ mergeModels({
|
|
330
|
+
step: { default: 1 },
|
|
331
|
+
min: { default: 0 },
|
|
332
|
+
max: {},
|
|
333
|
+
initialValue: { default: 1 },
|
|
334
|
+
unitName: {},
|
|
335
|
+
showDelta: { type: Boolean, default: false },
|
|
336
|
+
size: { default: "md" },
|
|
337
|
+
name: {},
|
|
338
|
+
required: { type: Boolean },
|
|
339
|
+
label: {},
|
|
340
|
+
error: {},
|
|
341
|
+
disabled: { type: Boolean, default: false }
|
|
342
|
+
}, {
|
|
343
|
+
"modelValue": { required: true },
|
|
344
|
+
"modelModifiers": {}
|
|
345
|
+
}),
|
|
346
|
+
emits: ["update:modelValue"],
|
|
347
|
+
setup(__props) {
|
|
348
|
+
const props = __props;
|
|
349
|
+
const model = useModel(__props, "modelValue");
|
|
350
|
+
const contentEditableRef = ref(null);
|
|
351
|
+
const computedUnitName = computed(() => {
|
|
352
|
+
if (!props.unitName) return void 0;
|
|
353
|
+
return props.unitName[model.value === 1 ? "singular" : "plural"];
|
|
354
|
+
});
|
|
355
|
+
const handleAdd = () => {
|
|
356
|
+
if (props.max && model.value + props.step > props.max) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
model.value += props.step;
|
|
360
|
+
};
|
|
361
|
+
const handleSubstract = () => {
|
|
362
|
+
if (model.value - props.step < props.min) {
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
model.value -= props.step;
|
|
366
|
+
};
|
|
367
|
+
function setContentAndMoveCaretToEnd(content) {
|
|
368
|
+
var _a;
|
|
369
|
+
const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
|
|
370
|
+
if (!el) return;
|
|
371
|
+
const value = parseInt(`${content}`);
|
|
372
|
+
model.value = value;
|
|
373
|
+
el.innerText = `${value}`;
|
|
374
|
+
el.focus();
|
|
375
|
+
const range = document.createRange();
|
|
376
|
+
range.selectNodeContents(el);
|
|
377
|
+
range.collapse(false);
|
|
378
|
+
const selection = window.getSelection();
|
|
379
|
+
selection == null ? void 0 : selection.removeAllRanges();
|
|
380
|
+
selection == null ? void 0 : selection.addRange(range);
|
|
381
|
+
}
|
|
382
|
+
const handleInputUpdate = (event) => {
|
|
383
|
+
const target = event.target;
|
|
384
|
+
if (target instanceof HTMLElement) {
|
|
385
|
+
setContentAndMoveCaretToEnd(target.innerText);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const isIncreaseButtonEnabled = computed(() => {
|
|
389
|
+
if (props.disabled) {
|
|
390
|
+
return false;
|
|
391
|
+
}
|
|
392
|
+
if (props.max) {
|
|
393
|
+
return model.value + props.step < props.max;
|
|
394
|
+
}
|
|
395
|
+
return true;
|
|
396
|
+
});
|
|
397
|
+
const isDecreaseButtonEnabled = computed(() => {
|
|
398
|
+
return props.disabled ? false : model.value - props.step >= props.min;
|
|
399
|
+
});
|
|
400
|
+
function handleFocusContentEditable() {
|
|
401
|
+
var _a;
|
|
402
|
+
const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
|
|
403
|
+
if (!el) return;
|
|
404
|
+
el.focus();
|
|
405
|
+
const range = document.createRange();
|
|
406
|
+
range.selectNodeContents(el);
|
|
407
|
+
const selection = window.getSelection();
|
|
408
|
+
selection == null ? void 0 : selection.removeAllRanges();
|
|
409
|
+
selection == null ? void 0 : selection.addRange(range);
|
|
410
|
+
}
|
|
411
|
+
onMounted(() => {
|
|
412
|
+
var _a;
|
|
413
|
+
const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
|
|
414
|
+
if (!el) return;
|
|
415
|
+
el.innerText = `${model.value}`;
|
|
416
|
+
});
|
|
417
|
+
watch(
|
|
418
|
+
() => model.value,
|
|
419
|
+
(value) => {
|
|
420
|
+
setContentAndMoveCaretToEnd(value);
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
return (_ctx, _cache) => {
|
|
424
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
425
|
+
modelValue: model.value,
|
|
426
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
427
|
+
type: "number",
|
|
428
|
+
class: "text-transparent [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
429
|
+
"prefix-class": {
|
|
430
|
+
"!px-0 w-5": __props.size === "sm",
|
|
431
|
+
"!px-0 w-6": __props.size === "md",
|
|
432
|
+
"!px-0 w-7": __props.size === "lg"
|
|
433
|
+
},
|
|
434
|
+
"suffix-class": {
|
|
435
|
+
"!px-0 w-5": __props.size === "sm",
|
|
436
|
+
"!px-0 w-6": __props.size === "md",
|
|
437
|
+
"!px-0 w-7": __props.size === "lg"
|
|
438
|
+
},
|
|
439
|
+
size: __props.size,
|
|
440
|
+
label: __props.label,
|
|
441
|
+
disabled: __props.disabled,
|
|
442
|
+
name: __props.name,
|
|
443
|
+
required: __props.required
|
|
444
|
+
}, createSlots({
|
|
445
|
+
prefix: withCtx(() => [
|
|
446
|
+
createElementVNode("div", {
|
|
447
|
+
class: "absolute inset-0 flex items-center justify-center",
|
|
448
|
+
onMousedown: handleFocusContentEditable
|
|
449
|
+
}, [
|
|
450
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
451
|
+
createVNode(_sfc_main$r, {
|
|
452
|
+
ref_key: "contentEditableRef",
|
|
453
|
+
ref: contentEditableRef,
|
|
454
|
+
tag: "span",
|
|
455
|
+
variant: __props.size === "sm" ? "body" : "body-lg",
|
|
456
|
+
contenteditable: !__props.disabled,
|
|
457
|
+
class: normalizeClass(["outline-none", { "pointer-events-none select-none": __props.disabled }]),
|
|
458
|
+
weight: "semibold",
|
|
459
|
+
onInput: handleInputUpdate
|
|
460
|
+
}, null, 8, ["variant", "contenteditable", "class"]),
|
|
461
|
+
computedUnitName.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
462
|
+
key: 0,
|
|
463
|
+
tag: "span",
|
|
464
|
+
shade: "lighter",
|
|
465
|
+
class: "pointer-events-none select-none"
|
|
466
|
+
}, {
|
|
467
|
+
default: withCtx(() => [
|
|
468
|
+
createTextVNode(toDisplayString(" ") + toDisplayString(computedUnitName.value), 1)
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
})) : createCommentVNode("", true),
|
|
472
|
+
__props.showDelta ? (openBlock(), createBlock(_sfc_main$n, {
|
|
473
|
+
key: 1,
|
|
474
|
+
"old-value": props.initialValue,
|
|
475
|
+
"new-value": model.value,
|
|
476
|
+
class: "pointer-events-none ml-0.5 select-none"
|
|
477
|
+
}, null, 8, ["old-value", "new-value"])) : createCommentVNode("", true)
|
|
478
|
+
])
|
|
479
|
+
], 32),
|
|
480
|
+
createVNode(_sfc_main$q, {
|
|
481
|
+
disabled: !isDecreaseButtonEnabled.value,
|
|
482
|
+
type: "button",
|
|
483
|
+
color: "gray",
|
|
484
|
+
variant: "ghost",
|
|
485
|
+
size: "sm",
|
|
486
|
+
class: normalizeClass(["!h-full select-none rounded-br-none rounded-tr-none", { "!w-7": __props.size === "lg", "!w-5": __props.size === "sm", "!w-6": __props.size === "md" }]),
|
|
487
|
+
icon: "remove",
|
|
488
|
+
onMousedown: handleSubstract
|
|
489
|
+
}, null, 8, ["disabled", "class"])
|
|
490
|
+
]),
|
|
491
|
+
suffix: withCtx(() => [
|
|
492
|
+
createVNode(_sfc_main$q, {
|
|
493
|
+
disabled: !isIncreaseButtonEnabled.value,
|
|
494
|
+
type: "button",
|
|
495
|
+
color: "gray",
|
|
496
|
+
variant: "ghost",
|
|
497
|
+
size: "sm",
|
|
498
|
+
class: normalizeClass(["!h-full select-none rounded-bl-none rounded-tl-none", { "!w-7": __props.size === "lg", "!w-5": __props.size === "sm", "!w-6": __props.size === "md" }]),
|
|
499
|
+
icon: "add",
|
|
500
|
+
onMousedown: handleAdd
|
|
501
|
+
}, null, 8, ["disabled", "class"])
|
|
502
|
+
]),
|
|
503
|
+
_: 2
|
|
504
|
+
}, [
|
|
505
|
+
_ctx.$slots.helper ? {
|
|
506
|
+
name: "helper",
|
|
507
|
+
fn: withCtx(() => [
|
|
508
|
+
renderSlot(_ctx.$slots, "helper")
|
|
509
|
+
]),
|
|
510
|
+
key: "0"
|
|
511
|
+
} : void 0
|
|
512
|
+
]), 1032, ["modelValue", "prefix-class", "suffix-class", "size", "label", "disabled", "name", "required"]);
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
function isValidCountryCode(code) {
|
|
517
|
+
return !!countryData.find((item) => item.key === code);
|
|
518
|
+
}
|
|
519
|
+
const taxIdMap = {
|
|
520
|
+
AT: {
|
|
521
|
+
regex: /^ATU\d{8}$/,
|
|
522
|
+
prefix: "AT",
|
|
523
|
+
example: "ATU12345678"
|
|
524
|
+
},
|
|
525
|
+
BE: {
|
|
526
|
+
regex: /^BE0?\d{9}$/,
|
|
527
|
+
prefix: "BE",
|
|
528
|
+
example: "BE0123456789"
|
|
529
|
+
},
|
|
530
|
+
BG: {
|
|
531
|
+
regex: /^BG\d{9,10}$/,
|
|
532
|
+
prefix: "BG",
|
|
533
|
+
example: "BG123456789"
|
|
534
|
+
},
|
|
535
|
+
HR: {
|
|
536
|
+
regex: /^HR\d{11}$/,
|
|
537
|
+
prefix: "HR",
|
|
538
|
+
example: "HR12345678901"
|
|
539
|
+
},
|
|
540
|
+
CY: {
|
|
541
|
+
regex: /^CY\d{8}[A-Z]$/,
|
|
542
|
+
prefix: "CY",
|
|
543
|
+
example: "CY12345678X"
|
|
544
|
+
},
|
|
545
|
+
CZ: {
|
|
546
|
+
regex: /^CZ\d{8,10}$/,
|
|
547
|
+
prefix: "CZ",
|
|
548
|
+
example: "CZ12345678"
|
|
549
|
+
},
|
|
550
|
+
DE: {
|
|
551
|
+
regex: /^DE\d{9}$/,
|
|
552
|
+
prefix: "DE",
|
|
553
|
+
example: "DE123456789"
|
|
554
|
+
},
|
|
555
|
+
DK: {
|
|
556
|
+
regex: /^DK\d{8}$/,
|
|
557
|
+
prefix: "DK",
|
|
558
|
+
example: "DK12345678"
|
|
559
|
+
},
|
|
560
|
+
EE: {
|
|
561
|
+
regex: /^EE\d{9}$/,
|
|
562
|
+
prefix: "EE",
|
|
563
|
+
example: "EE123456789"
|
|
564
|
+
},
|
|
565
|
+
GR: {
|
|
566
|
+
regex: /^(EL|GR)\d{9}$/,
|
|
567
|
+
prefix: "GR",
|
|
568
|
+
example: "GR123456789"
|
|
569
|
+
},
|
|
570
|
+
ES: {
|
|
571
|
+
regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
|
|
572
|
+
prefix: "ES",
|
|
573
|
+
example: "ESX1234567X"
|
|
574
|
+
},
|
|
575
|
+
FI: {
|
|
576
|
+
regex: /^FI\d{8}$/,
|
|
577
|
+
prefix: "FI",
|
|
578
|
+
example: "FI12345678"
|
|
579
|
+
},
|
|
580
|
+
FR: {
|
|
581
|
+
regex: /^FR[0-9A-Z]{2}\d{9}$/,
|
|
582
|
+
prefix: "FR",
|
|
583
|
+
example: "FRXX123456789"
|
|
584
|
+
},
|
|
585
|
+
HU: {
|
|
586
|
+
regex: /^HU\d{8}$/,
|
|
587
|
+
prefix: "HU",
|
|
588
|
+
example: "HU12345678"
|
|
589
|
+
},
|
|
590
|
+
IE: {
|
|
591
|
+
regex: /^IE[0-9A-Z]{8,9}$/,
|
|
592
|
+
prefix: "IE",
|
|
593
|
+
example: "IE1234567A"
|
|
594
|
+
},
|
|
595
|
+
IS: {
|
|
596
|
+
regex: /^IS\d{5}$/,
|
|
597
|
+
prefix: "IS",
|
|
598
|
+
example: "IS12345"
|
|
599
|
+
},
|
|
600
|
+
IT: {
|
|
601
|
+
regex: /^IT\d{11}$/,
|
|
602
|
+
prefix: "IT",
|
|
603
|
+
example: "IT12345678901"
|
|
604
|
+
},
|
|
605
|
+
LT: {
|
|
606
|
+
regex: /^LT(\d{9}|\d{12})$/,
|
|
607
|
+
prefix: "LT",
|
|
608
|
+
example: "LT123456789 or LT123456789012"
|
|
609
|
+
},
|
|
610
|
+
LU: {
|
|
611
|
+
regex: /^LU\d{8}$/,
|
|
612
|
+
prefix: "LU",
|
|
613
|
+
example: "LU12345678"
|
|
614
|
+
},
|
|
615
|
+
LV: {
|
|
616
|
+
regex: /^LV\d{11}$/,
|
|
617
|
+
prefix: "LV",
|
|
618
|
+
example: "LV12345678901"
|
|
619
|
+
},
|
|
620
|
+
ME: {
|
|
621
|
+
regex: /^ME\d{9}$/,
|
|
622
|
+
prefix: "ME",
|
|
623
|
+
example: "ME123456789"
|
|
624
|
+
},
|
|
625
|
+
MT: {
|
|
626
|
+
regex: /^MT\d{8}$/,
|
|
627
|
+
prefix: "MT",
|
|
628
|
+
example: "MT12345678"
|
|
629
|
+
},
|
|
630
|
+
NL: {
|
|
631
|
+
regex: /^NL\d{9}B\d{2}$/,
|
|
632
|
+
prefix: "NL",
|
|
633
|
+
example: "NL123456789B01"
|
|
634
|
+
},
|
|
635
|
+
PL: {
|
|
636
|
+
regex: /^PL\d{10}$/,
|
|
637
|
+
prefix: "PL",
|
|
638
|
+
example: "PL1234567890"
|
|
639
|
+
},
|
|
640
|
+
PT: {
|
|
641
|
+
regex: /^PT\d{9}$/,
|
|
642
|
+
prefix: "PT",
|
|
643
|
+
example: "PT123456789"
|
|
644
|
+
},
|
|
645
|
+
RO: {
|
|
646
|
+
regex: /^RO\d{2,10}$/,
|
|
647
|
+
prefix: "RO",
|
|
648
|
+
example: "RO1234567890"
|
|
649
|
+
},
|
|
650
|
+
RU: {
|
|
651
|
+
regex: /^RU(\d{9}|\d{10}|\d{12})$/,
|
|
652
|
+
prefix: "RU",
|
|
653
|
+
example: "RU123456789 or RU1234567890 or RU123456789012"
|
|
654
|
+
},
|
|
655
|
+
SE: {
|
|
656
|
+
regex: /^SE\d{10}01$/,
|
|
657
|
+
prefix: "SE",
|
|
658
|
+
example: "SE123456789001"
|
|
659
|
+
},
|
|
660
|
+
SI: {
|
|
661
|
+
regex: /^SI\d{8}$/,
|
|
662
|
+
prefix: "SI",
|
|
663
|
+
example: "SI12345678"
|
|
664
|
+
},
|
|
665
|
+
SK: {
|
|
666
|
+
regex: /^SK\d{10}$/,
|
|
667
|
+
prefix: "SK",
|
|
668
|
+
example: "SK1234567890"
|
|
669
|
+
},
|
|
670
|
+
CH: {
|
|
671
|
+
regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
|
|
672
|
+
prefix: "CHE",
|
|
673
|
+
example: "CHE123456789MWST"
|
|
674
|
+
},
|
|
675
|
+
NO: {
|
|
676
|
+
regex: /^NO\d{9}MVA$/,
|
|
677
|
+
prefix: "NO",
|
|
678
|
+
example: "NO123456789MVA"
|
|
679
|
+
},
|
|
680
|
+
GB: {
|
|
681
|
+
regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
|
|
682
|
+
prefix: "GB",
|
|
683
|
+
example: "GB123456789"
|
|
684
|
+
},
|
|
685
|
+
XI: {
|
|
686
|
+
regex: /^XI(\d{9}|\d{12})$/,
|
|
687
|
+
prefix: "XI",
|
|
688
|
+
example: "XI123456789"
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
const taxIdValidator = (value) => {
|
|
692
|
+
if (!value || typeof value !== "string" || value.trim() === "") {
|
|
693
|
+
return true;
|
|
694
|
+
}
|
|
695
|
+
return Object.values(taxIdMap).some((entry) => entry.regex.test(value));
|
|
696
|
+
};
|
|
697
|
+
const getTaxIdMessage = ({ $model }) => {
|
|
698
|
+
if (!$model || typeof $model !== "string" || $model.trim() === "") {
|
|
699
|
+
return "";
|
|
700
|
+
}
|
|
701
|
+
const intl = inject(I18N_INJECTION_KEY, null);
|
|
702
|
+
if (!intl) {
|
|
703
|
+
return "Invalid tax ID";
|
|
704
|
+
}
|
|
705
|
+
const { formatMessage } = intl;
|
|
706
|
+
const matchingEntry = Object.values(taxIdMap).find(
|
|
707
|
+
(entry) => $model.toUpperCase().startsWith(entry.prefix.toUpperCase())
|
|
708
|
+
);
|
|
709
|
+
if (matchingEntry) {
|
|
710
|
+
return formatMessage(
|
|
711
|
+
{
|
|
712
|
+
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
713
|
+
id: "form_validation.tax_id.invalid_format",
|
|
714
|
+
description: "Error message when tax ID format is invalid but prefix matches"
|
|
715
|
+
},
|
|
716
|
+
{ example: matchingEntry.example }
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
return formatMessage({
|
|
720
|
+
defaultMessage: "Invalid tax ID",
|
|
721
|
+
id: "taxId.invalid",
|
|
722
|
+
description: "Error message when tax ID is invalid"
|
|
723
|
+
});
|
|
724
|
+
};
|
|
725
|
+
const taxId = common.withMessage(getTaxIdMessage, taxIdValidator);
|
|
23
726
|
const EMPTY_LEGAL_ENTITY_NAME = "preview";
|
|
24
727
|
const EMPTY_COUNTRY = "NL";
|
|
25
728
|
const getCustomerAddress = (customer) => {
|
|
@@ -624,40 +1327,6 @@ const getInitialState = (initialState = {}) => {
|
|
|
624
1327
|
function isCheckoutFormStateKey(key) {
|
|
625
1328
|
return key in getInitialState();
|
|
626
1329
|
}
|
|
627
|
-
const usePaymentMethodOptions = () => {
|
|
628
|
-
const cachedPayload = ref();
|
|
629
|
-
const { getPaymentMethodOptions } = createPaymentMethodsService();
|
|
630
|
-
const initialValue = [];
|
|
631
|
-
const {
|
|
632
|
-
data: paymentMethodOptions,
|
|
633
|
-
execute,
|
|
634
|
-
isPending
|
|
635
|
-
} = useService({
|
|
636
|
-
initialValue,
|
|
637
|
-
service: getPaymentMethodOptions
|
|
638
|
-
});
|
|
639
|
-
const loadPaymentMethodOptions = async ({
|
|
640
|
-
subscriptionId,
|
|
641
|
-
country,
|
|
642
|
-
amount
|
|
643
|
-
}) => {
|
|
644
|
-
const payload = {
|
|
645
|
-
subscriptionId,
|
|
646
|
-
country,
|
|
647
|
-
amount
|
|
648
|
-
};
|
|
649
|
-
if (isEqual(payload, cachedPayload.value)) {
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
|
-
cachedPayload.value = payload;
|
|
653
|
-
await execute(payload);
|
|
654
|
-
};
|
|
655
|
-
return {
|
|
656
|
-
loadPaymentMethodOptions,
|
|
657
|
-
paymentMethodOptions,
|
|
658
|
-
isPending
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
1330
|
function withPreselectedEnabledPricings(subscription, enabledPricingIds = void 0) {
|
|
662
1331
|
const result = enabledPricingIds ?? [];
|
|
663
1332
|
const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
|
|
@@ -683,6 +1352,41 @@ function isSubscriptionWithAddonProducts(subscription) {
|
|
|
683
1352
|
const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
|
|
684
1353
|
return pricings.some((pricing) => pricing.product_type === "ADDON") || pricingGroups.some((pricingGroup) => pricingGroup.object_type === "ADDON");
|
|
685
1354
|
}
|
|
1355
|
+
const FALLBACK_SEATS_NUMBER = "1";
|
|
1356
|
+
const getConfigsOfBillingPeriods = (billingPeriodConfigs) => (billingPeriodConfigs ?? []).flatMap(
|
|
1357
|
+
(billingPeriodConfig) => billingPeriodConfig.configs ?? []
|
|
1358
|
+
);
|
|
1359
|
+
const getPricingItemConfigs = (item) => [
|
|
1360
|
+
...item.configs ?? [],
|
|
1361
|
+
...getConfigsOfBillingPeriods(item.billing_period_configs),
|
|
1362
|
+
...(item.pricing_currency_configs ?? []).flatMap((currencyConfig) => [
|
|
1363
|
+
...currencyConfig.configs ?? [],
|
|
1364
|
+
...getConfigsOfBillingPeriods(currencyConfig.billing_period_configs)
|
|
1365
|
+
])
|
|
1366
|
+
];
|
|
1367
|
+
function getDefaultSeatsNumbersById(scheduleInfo) {
|
|
1368
|
+
const configs = getPricingsFromScheduleInfo(scheduleInfo).flatMap((pricing) => pricing.items ?? []).flatMap(getPricingItemConfigs);
|
|
1369
|
+
return new Map(
|
|
1370
|
+
configs.flatMap(
|
|
1371
|
+
(config) => {
|
|
1372
|
+
var _a;
|
|
1373
|
+
return ((_a = config.default_seats_value) == null ? void 0 : _a.number) ? [[config.id, config.default_seats_value.number]] : [];
|
|
1374
|
+
}
|
|
1375
|
+
)
|
|
1376
|
+
);
|
|
1377
|
+
}
|
|
1378
|
+
function getInitialSeatsValues(scheduleInfo) {
|
|
1379
|
+
var _a;
|
|
1380
|
+
const seatsValues = (_a = scheduleInfo == null ? void 0 : scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.seats_values;
|
|
1381
|
+
if (!scheduleInfo || !(seatsValues == null ? void 0 : seatsValues.length)) {
|
|
1382
|
+
return void 0;
|
|
1383
|
+
}
|
|
1384
|
+
const defaultNumbers = scheduleInfo.pricing_plan_version ? getDefaultSeatsNumbersById(scheduleInfo) : /* @__PURE__ */ new Map();
|
|
1385
|
+
return seatsValues.map(({ pricing_item_config_id, number }) => ({
|
|
1386
|
+
pricing_item_config_id,
|
|
1387
|
+
number: number || defaultNumbers.get(pricing_item_config_id) || FALLBACK_SEATS_NUMBER
|
|
1388
|
+
}));
|
|
1389
|
+
}
|
|
686
1390
|
const REDIRECT_FORM_STATE_KEY = "solvimon_checkout_redirect_state";
|
|
687
1391
|
function useCheckoutView({
|
|
688
1392
|
initialCountry,
|
|
@@ -700,9 +1404,34 @@ function useCheckoutView({
|
|
|
700
1404
|
});
|
|
701
1405
|
const {
|
|
702
1406
|
paymentMethodOptions,
|
|
703
|
-
loadPaymentMethodOptions,
|
|
704
|
-
isPending: isPaymentMethodsPending
|
|
1407
|
+
get: loadPaymentMethodOptions,
|
|
1408
|
+
isPending: isPaymentMethodsPending,
|
|
1409
|
+
error: paymentMethodOptionsError
|
|
705
1410
|
} = usePaymentMethodOptions();
|
|
1411
|
+
const loadPaymentMethodOptionsFor = async (country, amountValue) => {
|
|
1412
|
+
try {
|
|
1413
|
+
await loadPaymentMethodOptions({
|
|
1414
|
+
subscriptionId: subscription.value.id,
|
|
1415
|
+
country,
|
|
1416
|
+
amount: amountValue
|
|
1417
|
+
});
|
|
1418
|
+
} catch {
|
|
1419
|
+
logger.error(
|
|
1420
|
+
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
1421
|
+
"Failed to load the payment methods the checkout can offer",
|
|
1422
|
+
{},
|
|
1423
|
+
paymentMethodOptionsError.value
|
|
1424
|
+
);
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
const hasPaymentMethodOptionsError = computed(() => paymentMethodOptionsError.value !== null);
|
|
1428
|
+
const loadPaymentMethodOptionsIfReady = () => {
|
|
1429
|
+
const { country } = checkoutForm.form.value;
|
|
1430
|
+
if (!subscription.value || !country || !amount.value) {
|
|
1431
|
+
return;
|
|
1432
|
+
}
|
|
1433
|
+
void loadPaymentMethodOptionsFor(country, amount.value);
|
|
1434
|
+
};
|
|
706
1435
|
const loadInvoicePreview = () => {
|
|
707
1436
|
const formState = checkoutForm.form.value;
|
|
708
1437
|
return invoicePreview.loadInvoicePreview({
|
|
@@ -743,7 +1472,7 @@ function useCheckoutView({
|
|
|
743
1472
|
}
|
|
744
1473
|
});
|
|
745
1474
|
const loadSubscription = async () => {
|
|
746
|
-
var _a, _b, _c, _d
|
|
1475
|
+
var _a, _b, _c, _d;
|
|
747
1476
|
const response = await getSubscription({
|
|
748
1477
|
id: subscriptionId,
|
|
749
1478
|
expanded: true
|
|
@@ -757,17 +1486,11 @@ function useCheckoutView({
|
|
|
757
1486
|
...response,
|
|
758
1487
|
billing_period: defaultBillingPeriod ?? response.billing_period
|
|
759
1488
|
};
|
|
1489
|
+
const seatsValues = getInitialSeatsValues(subscriptionSchedule);
|
|
760
1490
|
checkoutForm.updateInitialState({
|
|
761
1491
|
...checkoutForm.form.value,
|
|
762
1492
|
enabledPricingIds: withPreselectedEnabledPricings(response, enabledPricingIds),
|
|
763
|
-
...
|
|
764
|
-
seatsValues: (_f = subscriptionSchedule == null ? void 0 : subscriptionSchedule.pricing_plan_schedule) == null ? void 0 : _f.seats_values.map(
|
|
765
|
-
({ pricing_item_config_id, number }) => ({
|
|
766
|
-
pricing_item_config_id,
|
|
767
|
-
number
|
|
768
|
-
})
|
|
769
|
-
)
|
|
770
|
-
} : {}
|
|
1493
|
+
...seatsValues ? { seatsValues } : {}
|
|
771
1494
|
});
|
|
772
1495
|
};
|
|
773
1496
|
const authorizationContext = computed(() => {
|
|
@@ -882,13 +1605,7 @@ function useCheckoutView({
|
|
|
882
1605
|
if (!subscription.value || !country || !amountValue) {
|
|
883
1606
|
return;
|
|
884
1607
|
}
|
|
885
|
-
|
|
886
|
-
subscriptionId: subscription.value.id,
|
|
887
|
-
country,
|
|
888
|
-
amount: amountValue
|
|
889
|
-
}).catch((err) => {
|
|
890
|
-
console.log(err);
|
|
891
|
-
});
|
|
1608
|
+
void loadPaymentMethodOptionsFor(country, amountValue);
|
|
892
1609
|
}
|
|
893
1610
|
);
|
|
894
1611
|
function saveFormStateForRedirect() {
|
|
@@ -937,11 +1654,7 @@ function useCheckoutView({
|
|
|
937
1654
|
shouldLoadPaymentMethodOptions,
|
|
938
1655
|
(shouldLoad) => {
|
|
939
1656
|
if (shouldLoad) {
|
|
940
|
-
|
|
941
|
-
subscriptionId: subscription.value.id,
|
|
942
|
-
country: checkoutForm.form.value.country,
|
|
943
|
-
amount: amount.value
|
|
944
|
-
});
|
|
1657
|
+
loadPaymentMethodOptionsIfReady();
|
|
945
1658
|
}
|
|
946
1659
|
},
|
|
947
1660
|
{ once: true }
|
|
@@ -955,6 +1668,8 @@ function useCheckoutView({
|
|
|
955
1668
|
updateInvoicePreviewOnBillingInformationChange,
|
|
956
1669
|
lastPreviewScheduleId: invoicePreview.lastPreviewScheduleId,
|
|
957
1670
|
paymentMethodOptions,
|
|
1671
|
+
hasPaymentMethodOptionsError,
|
|
1672
|
+
retryPaymentMethodOptions: loadPaymentMethodOptionsIfReady,
|
|
958
1673
|
isPaymentMethodsPending,
|
|
959
1674
|
isInvoicePreviewPending: invoicePreview.isPending,
|
|
960
1675
|
subscription,
|
|
@@ -1082,13 +1797,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1082
1797
|
});
|
|
1083
1798
|
});
|
|
1084
1799
|
return (_ctx, _cache) => {
|
|
1085
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1800
|
+
return openBlock(), createBlock(unref(_sfc_main$s), {
|
|
1086
1801
|
type: isTaxIdValid.value ? "success" : "danger",
|
|
1087
1802
|
icon: false
|
|
1088
1803
|
}, {
|
|
1089
1804
|
default: withCtx(() => [
|
|
1090
1805
|
createElementVNode("div", _hoisted_1$j, [
|
|
1091
|
-
createVNode(unref(_sfc_main$
|
|
1806
|
+
createVNode(unref(_sfc_main$r), { variant: "body-xs" }, {
|
|
1092
1807
|
default: withCtx(() => [
|
|
1093
1808
|
createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
|
|
1094
1809
|
]),
|
|
@@ -1114,7 +1829,9 @@ function useTaxIDValidationCheck(form) {
|
|
|
1114
1829
|
const isSelectedCountryEU = computed(() => {
|
|
1115
1830
|
return isEUCountry(countryCode.value ?? "");
|
|
1116
1831
|
});
|
|
1117
|
-
const isTaxIDCheckEnabled = computed(
|
|
1832
|
+
const isTaxIDCheckEnabled = computed(
|
|
1833
|
+
() => !!(taxId2.value && legalName.value && countryCode.value)
|
|
1834
|
+
);
|
|
1118
1835
|
const showViesCheckNotice = computed(() => {
|
|
1119
1836
|
return isSelectedCountryEU.value && taxId2.value;
|
|
1120
1837
|
});
|
|
@@ -1158,9 +1875,8 @@ const _hoisted_2$a = { class: "grid grid-cols-1 gap-2" };
|
|
|
1158
1875
|
const _hoisted_3$7 = { key: 0 };
|
|
1159
1876
|
const _hoisted_4$6 = { class: "mt-2 flex flex-col gap-3" };
|
|
1160
1877
|
const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
|
|
1161
|
-
const _hoisted_6$2 = {
|
|
1162
|
-
const _hoisted_7$1 = {
|
|
1163
|
-
const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
|
|
1878
|
+
const _hoisted_6$2 = { key: 0 };
|
|
1879
|
+
const _hoisted_7$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
|
|
1164
1880
|
const FORM_ID = "checkout-form";
|
|
1165
1881
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1166
1882
|
__name: "CheckoutForm",
|
|
@@ -1197,6 +1913,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1197
1913
|
const showVatIdInput = computed(() => model.value.country !== "US");
|
|
1198
1914
|
const { isTaxIDCheckEnabled, isTaxIDCheckPending, taxIdValidationData, runTaxIDCheck } = useTaxIDValidationCheck(model);
|
|
1199
1915
|
const { $t } = useIntl();
|
|
1916
|
+
const labels = useCustomerFormLabels();
|
|
1200
1917
|
const getOptionalSuffix = (field) => {
|
|
1201
1918
|
if (props.getIsFieldRequired(field)) {
|
|
1202
1919
|
return "";
|
|
@@ -1216,17 +1933,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1216
1933
|
onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
|
|
1217
1934
|
}, [
|
|
1218
1935
|
createElementVNode("div", _hoisted_1$i, [
|
|
1219
|
-
createVNode(unref(_sfc_main$
|
|
1220
|
-
title: unref(
|
|
1221
|
-
defaultMessage: "Customer information",
|
|
1222
|
-
id: "checkout.contact_information_block.title",
|
|
1223
|
-
description: "The title of the contact information block in the checkout form"
|
|
1224
|
-
})
|
|
1936
|
+
createVNode(unref(_sfc_main$t), {
|
|
1937
|
+
title: unref(labels).contactInformationTitle
|
|
1225
1938
|
}, {
|
|
1226
1939
|
default: withCtx(() => [
|
|
1227
1940
|
createElementVNode("div", _hoisted_2$a, [
|
|
1228
1941
|
__props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1229
|
-
createVNode(unref(_sfc_main$
|
|
1942
|
+
createVNode(unref(_sfc_main$r), {
|
|
1230
1943
|
variant: "body",
|
|
1231
1944
|
tag: "span",
|
|
1232
1945
|
weight: "semibold",
|
|
@@ -1237,7 +1950,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1237
1950
|
]),
|
|
1238
1951
|
_: 1
|
|
1239
1952
|
}),
|
|
1240
|
-
createVNode(unref(_sfc_main$
|
|
1953
|
+
createVNode(unref(_sfc_main$r), {
|
|
1241
1954
|
variant: "body-sm",
|
|
1242
1955
|
tag: "span",
|
|
1243
1956
|
shade: "lighter",
|
|
@@ -1256,32 +1969,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1256
1969
|
type: "email",
|
|
1257
1970
|
name: "email",
|
|
1258
1971
|
disabled: !!__props.readOnlyEmail,
|
|
1259
|
-
label: unref(
|
|
1260
|
-
|
|
1261
|
-
id: "checkout.email_address.label",
|
|
1262
|
-
description: "The email address of the customer in the checkout form"
|
|
1263
|
-
}),
|
|
1264
|
-
placeholder: unref($t)({
|
|
1265
|
-
defaultMessage: "Email address...",
|
|
1266
|
-
id: "checkout.email_address.placeholder",
|
|
1267
|
-
description: "The email address of the customer in the checkout form"
|
|
1268
|
-
}) + getOptionalSuffix("email"),
|
|
1972
|
+
label: unref(labels).emailLabel,
|
|
1973
|
+
placeholder: unref(labels).emailPlaceholder + getOptionalSuffix("email"),
|
|
1269
1974
|
error: __props.validation.value.email.$errors
|
|
1270
1975
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
|
|
1271
|
-
createVNode(unref(_sfc_main$
|
|
1976
|
+
createVNode(unref(_sfc_main$u), {
|
|
1272
1977
|
"single-model-value": country.value,
|
|
1273
1978
|
"onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
|
|
1274
1979
|
required: "",
|
|
1275
1980
|
name: "country",
|
|
1276
|
-
label: unref(
|
|
1277
|
-
defaultMessage: "Billing country",
|
|
1278
|
-
id: "checkout.country.label",
|
|
1279
|
-
description: "The country of the customer in the checkout form"
|
|
1280
|
-
}) + getOptionalSuffix("country"),
|
|
1981
|
+
label: unref(labels).countryLabel + getOptionalSuffix("country"),
|
|
1281
1982
|
error: __props.validation.value.country.$errors
|
|
1282
1983
|
}, {
|
|
1283
1984
|
"label-suffix": withCtx(() => [
|
|
1284
|
-
!showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1985
|
+
!showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
1285
1986
|
key: 0,
|
|
1286
1987
|
size: "xs",
|
|
1287
1988
|
variant: "ghost",
|
|
@@ -1298,7 +1999,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1298
1999
|
]),
|
|
1299
2000
|
_: 1
|
|
1300
2001
|
})) : createCommentVNode("", true),
|
|
1301
|
-
showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2002
|
+
showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
1302
2003
|
key: 1,
|
|
1303
2004
|
size: "sm",
|
|
1304
2005
|
variant: "ghost",
|
|
@@ -1320,7 +2021,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1320
2021
|
}, 8, ["single-model-value", "label", "error"])
|
|
1321
2022
|
], 64))
|
|
1322
2023
|
]),
|
|
1323
|
-
createVNode(unref(_sfc_main$
|
|
2024
|
+
createVNode(unref(_sfc_main$w), {
|
|
1324
2025
|
"is-open": showBillingDetails.value || !!__props.isBillingInformationMandatory
|
|
1325
2026
|
}, {
|
|
1326
2027
|
default: withCtx(() => [
|
|
@@ -1358,32 +2059,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1358
2059
|
modelValue: model.value.postalCode,
|
|
1359
2060
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
|
|
1360
2061
|
name: "postal_code",
|
|
1361
|
-
placeholder: unref(
|
|
1362
|
-
defaultMessage: "Postal code...",
|
|
1363
|
-
id: "checkout.address.portal_code.placeholder",
|
|
1364
|
-
description: "Postal code of the customer address in the checkout form"
|
|
1365
|
-
}) + getOptionalSuffix("postalCode"),
|
|
2062
|
+
placeholder: unref(labels).postalCodePlaceholder + getOptionalSuffix("postalCode"),
|
|
1366
2063
|
error: __props.validation.value.addressLine1.$errors
|
|
1367
2064
|
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
1368
2065
|
createVNode(unref(_sfc_main$p), {
|
|
1369
2066
|
modelValue: model.value.city,
|
|
1370
2067
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
|
|
1371
2068
|
name: "city",
|
|
1372
|
-
placeholder: unref(
|
|
1373
|
-
defaultMessage: "City...",
|
|
1374
|
-
id: "checkout.address.city.placeholder",
|
|
1375
|
-
description: "City of the customer address in the checkout form"
|
|
1376
|
-
}) + getOptionalSuffix("city")
|
|
2069
|
+
placeholder: unref(labels).cityPlaceholder + getOptionalSuffix("city")
|
|
1377
2070
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1378
2071
|
createVNode(unref(_sfc_main$p), {
|
|
1379
2072
|
modelValue: model.value.state,
|
|
1380
2073
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
|
|
1381
2074
|
name: "state",
|
|
1382
|
-
placeholder: unref(
|
|
1383
|
-
defaultMessage: "State...",
|
|
1384
|
-
id: "checkout.address.state.placeholder",
|
|
1385
|
-
description: "State of the customer address in the checkout form"
|
|
1386
|
-
}) + getOptionalSuffix("state"),
|
|
2075
|
+
placeholder: unref(labels).statePlaceholder + getOptionalSuffix("state"),
|
|
1387
2076
|
error: __props.validation.value.state.$errors
|
|
1388
2077
|
}, null, 8, ["modelValue", "placeholder", "error"])
|
|
1389
2078
|
])
|
|
@@ -1395,64 +2084,25 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1395
2084
|
]),
|
|
1396
2085
|
_: 1
|
|
1397
2086
|
}, 8, ["title"]),
|
|
1398
|
-
!__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2087
|
+
!__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$t), { key: 0 }, {
|
|
1399
2088
|
default: withCtx(() => [
|
|
1400
|
-
createVNode(
|
|
2089
|
+
createVNode(_sfc_main$x, {
|
|
1401
2090
|
modelValue: companyPurchaseModel.value,
|
|
1402
2091
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
|
|
1403
2092
|
"no-spacing": "",
|
|
1404
|
-
"label-position": "before",
|
|
1405
2093
|
class: "!flex"
|
|
1406
|
-
},
|
|
1407
|
-
|
|
1408
|
-
createElementVNode("div", _hoisted_6$2, [
|
|
1409
|
-
createVNode(unref(_sfc_main$n), { tag: "span" }, {
|
|
1410
|
-
default: withCtx(() => [
|
|
1411
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
1412
|
-
defaultMessage: "Company purchase",
|
|
1413
|
-
id: "checkout.company_purchase_toggle.title",
|
|
1414
|
-
description: "The title of the company purchase toggle in the checkout"
|
|
1415
|
-
})), 1)
|
|
1416
|
-
]),
|
|
1417
|
-
_: 1
|
|
1418
|
-
}),
|
|
1419
|
-
createVNode(unref(_sfc_main$n), {
|
|
1420
|
-
tag: "span",
|
|
1421
|
-
variant: "body-xs",
|
|
1422
|
-
shade: "lighter"
|
|
1423
|
-
}, {
|
|
1424
|
-
default: withCtx(() => [
|
|
1425
|
-
createTextVNode(toDisplayString(unref($t)({
|
|
1426
|
-
defaultMessage: "I am purchasing on behalf of a company",
|
|
1427
|
-
id: "checkout.company_purchase_toggle.sub_title",
|
|
1428
|
-
description: "The subtitle of the company purchase toggle in the checkout"
|
|
1429
|
-
})), 1)
|
|
1430
|
-
]),
|
|
1431
|
-
_: 1
|
|
1432
|
-
})
|
|
1433
|
-
])
|
|
1434
|
-
]),
|
|
1435
|
-
_: 1
|
|
1436
|
-
}, 8, ["modelValue"]),
|
|
1437
|
-
createVNode(unref(_sfc_main$s), { "is-open": isCompanyPurchase.value }, {
|
|
2094
|
+
}, null, 8, ["modelValue"]),
|
|
2095
|
+
createVNode(unref(_sfc_main$w), { "is-open": isCompanyPurchase.value }, {
|
|
1438
2096
|
default: withCtx(() => [
|
|
1439
|
-
isCompanyPurchase.value ? (openBlock(), createElementBlock("div",
|
|
1440
|
-
createElementVNode("div",
|
|
2097
|
+
isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
2098
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
1441
2099
|
createVNode(unref(_sfc_main$p), {
|
|
1442
2100
|
modelValue: model.value.companyLegalName,
|
|
1443
2101
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
|
|
1444
2102
|
required: "",
|
|
1445
2103
|
name: "legal_name",
|
|
1446
|
-
label: unref(
|
|
1447
|
-
|
|
1448
|
-
id: "checkout.legal_name.label",
|
|
1449
|
-
description: "The legal name of the organization customer in the checkout form"
|
|
1450
|
-
}),
|
|
1451
|
-
placeholder: unref($t)({
|
|
1452
|
-
defaultMessage: "Legal entity name...",
|
|
1453
|
-
id: "checkout.legal_name.placeholder",
|
|
1454
|
-
description: "The legal name of the organization customer in the checkout form"
|
|
1455
|
-
})
|
|
2104
|
+
label: unref(labels).legalNameLabel,
|
|
2105
|
+
placeholder: unref(labels).legalNamePlaceholder
|
|
1456
2106
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1457
2107
|
showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
1458
2108
|
key: 0,
|
|
@@ -1460,23 +2110,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1460
2110
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
|
|
1461
2111
|
name: "vat_number",
|
|
1462
2112
|
"input-class": "focus:outline-none focus:ring-0",
|
|
1463
|
-
label: unref(
|
|
1464
|
-
|
|
1465
|
-
id: "checkout.vat_number.label",
|
|
1466
|
-
description: "The label for the vat number in the checkout form"
|
|
1467
|
-
}),
|
|
1468
|
-
placeholder: unref($t)({
|
|
1469
|
-
defaultMessage: "VAT number...",
|
|
1470
|
-
id: "checkout.vat_number.placeholder",
|
|
1471
|
-
description: "The label for the vat number in the checkout form"
|
|
1472
|
-
}),
|
|
2113
|
+
label: unref(labels).vatNumberLabel,
|
|
2114
|
+
placeholder: unref(labels).vatNumberPlaceholder,
|
|
1473
2115
|
error: __props.validation.value.companyVatNumber.$errors,
|
|
1474
2116
|
"suffix-class": "px-2 border-l-0"
|
|
1475
2117
|
}, createSlots({ _: 2 }, [
|
|
1476
2118
|
unref(isEUCountry)(model.value.country ?? "") ? {
|
|
1477
2119
|
name: "suffix",
|
|
1478
2120
|
fn: withCtx(() => [
|
|
1479
|
-
createVNode(unref(_sfc_main$
|
|
2121
|
+
createVNode(unref(_sfc_main$v), {
|
|
1480
2122
|
type: "button",
|
|
1481
2123
|
size: "sm",
|
|
1482
2124
|
color: "green",
|
|
@@ -1537,7 +2179,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1537
2179
|
return (_ctx, _cache) => {
|
|
1538
2180
|
return openBlock(), createElementBlock("div", null, [
|
|
1539
2181
|
createElementVNode("div", null, [
|
|
1540
|
-
createVNode(unref(_sfc_main$
|
|
2182
|
+
createVNode(unref(_sfc_main$r), {
|
|
1541
2183
|
variant: "heading-1",
|
|
1542
2184
|
class: "inline-block"
|
|
1543
2185
|
}, {
|
|
@@ -1547,7 +2189,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1547
2189
|
id: "checkout.page_title",
|
|
1548
2190
|
description: "The title of the checkout page"
|
|
1549
2191
|
})) + toDisplayString(" "), 1),
|
|
1550
|
-
__props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2192
|
+
__props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$y), {
|
|
1551
2193
|
key: 0,
|
|
1552
2194
|
"trial-period": __props.trialPeriod,
|
|
1553
2195
|
size: "lg",
|
|
@@ -1557,18 +2199,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1557
2199
|
_: 1
|
|
1558
2200
|
})
|
|
1559
2201
|
]),
|
|
1560
|
-
createVNode(unref(_sfc_main$
|
|
2202
|
+
createVNode(unref(_sfc_main$r), {
|
|
1561
2203
|
variant: "body-sm",
|
|
1562
2204
|
shade: "lighter",
|
|
1563
2205
|
"no-spacing": ""
|
|
1564
2206
|
}, {
|
|
1565
2207
|
default: withCtx(() => [
|
|
1566
2208
|
!__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$h, [
|
|
1567
|
-
createVNode(unref(_sfc_main$
|
|
2209
|
+
createVNode(unref(_sfc_main$z), { "is-dark-mode": "" }, {
|
|
1568
2210
|
tooltip: withCtx(() => [
|
|
1569
2211
|
createVNode(unref(TooltipContent), null, {
|
|
1570
2212
|
default: withCtx(() => [
|
|
1571
|
-
createVNode(unref(_sfc_main$
|
|
2213
|
+
createVNode(unref(_sfc_main$B), null, {
|
|
1572
2214
|
default: withCtx(() => [
|
|
1573
2215
|
createTextVNode(toDisplayString(unref($t)({
|
|
1574
2216
|
defaultMessage: "Will be determined by billing information",
|
|
@@ -1583,11 +2225,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1583
2225
|
})
|
|
1584
2226
|
]),
|
|
1585
2227
|
default: withCtx(() => [
|
|
1586
|
-
createVNode(unref(_sfc_main$
|
|
2228
|
+
createVNode(unref(_sfc_main$A), {
|
|
1587
2229
|
"width-class": "w-10",
|
|
1588
2230
|
"height-class": "h-4",
|
|
1589
2231
|
shade: "darker",
|
|
1590
|
-
class: "
|
|
2232
|
+
class: "mr-1.5 inline-block"
|
|
1591
2233
|
})
|
|
1592
2234
|
]),
|
|
1593
2235
|
_: 1
|
|
@@ -1596,8 +2238,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1596
2238
|
innerHTML: __props.trialStartDate ? unref($t)(
|
|
1597
2239
|
{
|
|
1598
2240
|
defaultMessage: "per {period_name} starting, {startDate, date, long}",
|
|
1599
|
-
id: "checkout.
|
|
1600
|
-
description: "The description of the trial period"
|
|
2241
|
+
id: "checkout.trial_period_description_without_price",
|
|
2242
|
+
description: "The description of the trial period, while the price is still being determined"
|
|
1601
2243
|
},
|
|
1602
2244
|
{
|
|
1603
2245
|
// @ts-expect-error formatjs does not support this type yet
|
|
@@ -1610,8 +2252,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1610
2252
|
) : unref($t)(
|
|
1611
2253
|
{
|
|
1612
2254
|
defaultMessage: "per {period_name}, starting today",
|
|
1613
|
-
id: "checkout.
|
|
1614
|
-
description: "The description of the subscription"
|
|
2255
|
+
id: "checkout.subscription_description_without_price",
|
|
2256
|
+
description: "The description of the subscription, while the price is still being determined"
|
|
1615
2257
|
},
|
|
1616
2258
|
{
|
|
1617
2259
|
period_name: unref(formatBillingPeriod)(__props.billingPeriod, {
|
|
@@ -1679,7 +2321,7 @@ const isInvoiceUsageBased = (invoice) => {
|
|
|
1679
2321
|
)
|
|
1680
2322
|
)) ?? false;
|
|
1681
2323
|
};
|
|
1682
|
-
const _hoisted_1$g = { class: "flex
|
|
2324
|
+
const _hoisted_1$g = { class: "flex min-h-96 w-full items-center justify-center" };
|
|
1683
2325
|
const _hoisted_2$8 = { class: "max-w-sm" };
|
|
1684
2326
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1685
2327
|
__name: "CheckoutNotAvailable",
|
|
@@ -1691,7 +2333,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1691
2333
|
return (_ctx, _cache) => {
|
|
1692
2334
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
1693
2335
|
createElementVNode("div", _hoisted_2$8, [
|
|
1694
|
-
createVNode(unref(_sfc_main$
|
|
2336
|
+
createVNode(unref(_sfc_main$r), { variant: "heading-1" }, {
|
|
1695
2337
|
default: withCtx(() => [
|
|
1696
2338
|
createTextVNode(toDisplayString(unref($t)({
|
|
1697
2339
|
defaultMessage: "Checkout not available",
|
|
@@ -1701,7 +2343,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1701
2343
|
]),
|
|
1702
2344
|
_: 1
|
|
1703
2345
|
}),
|
|
1704
|
-
createVNode(unref(_sfc_main$
|
|
2346
|
+
createVNode(unref(_sfc_main$r), {
|
|
1705
2347
|
variant: "body-sm",
|
|
1706
2348
|
shade: "lighter"
|
|
1707
2349
|
}, {
|
|
@@ -1739,7 +2381,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1739
2381
|
setup(__props) {
|
|
1740
2382
|
const { $t } = useIntl();
|
|
1741
2383
|
return (_ctx, _cache) => {
|
|
1742
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2384
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
1743
2385
|
status: "success",
|
|
1744
2386
|
title: unref($t)({
|
|
1745
2387
|
defaultMessage: "Payment successful",
|
|
@@ -1748,7 +2390,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1748
2390
|
})
|
|
1749
2391
|
}, {
|
|
1750
2392
|
default: withCtx(() => [
|
|
1751
|
-
createVNode(unref(_sfc_main$
|
|
2393
|
+
createVNode(unref(_sfc_main$r), {
|
|
1752
2394
|
variant: "body-xs",
|
|
1753
2395
|
shade: "lighter",
|
|
1754
2396
|
tag: "span"
|
|
@@ -1769,9 +2411,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1769
2411
|
}
|
|
1770
2412
|
});
|
|
1771
2413
|
const _hoisted_1$f = { class: "flex items-start" };
|
|
1772
|
-
const _hoisted_2$7 = { class: "flex flex-col
|
|
2414
|
+
const _hoisted_2$7 = { class: "flex grow flex-col" };
|
|
1773
2415
|
const _hoisted_3$5 = { class: "flex items-center gap-1" };
|
|
1774
|
-
const _hoisted_4$5 = { class: "flex items-center
|
|
2416
|
+
const _hoisted_4$5 = { class: "ml-4 flex items-center self-center" };
|
|
1775
2417
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1776
2418
|
__name: "PricingGroupContent",
|
|
1777
2419
|
props: {
|
|
@@ -1783,7 +2425,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1783
2425
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1784
2426
|
createElementVNode("div", _hoisted_2$7, [
|
|
1785
2427
|
createElementVNode("div", _hoisted_3$5, [
|
|
1786
|
-
createVNode(unref(_sfc_main$
|
|
2428
|
+
createVNode(unref(_sfc_main$r), {
|
|
1787
2429
|
tag: "span",
|
|
1788
2430
|
variant: "body-sm",
|
|
1789
2431
|
weight: "semibold"
|
|
@@ -1795,7 +2437,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1795
2437
|
}),
|
|
1796
2438
|
renderSlot(_ctx.$slots, "badge")
|
|
1797
2439
|
]),
|
|
1798
|
-
createVNode(unref(_sfc_main$
|
|
2440
|
+
createVNode(unref(_sfc_main$r), {
|
|
1799
2441
|
tag: "span",
|
|
1800
2442
|
variant: "body-xs",
|
|
1801
2443
|
shade: "lighter"
|
|
@@ -2041,7 +2683,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2041
2683
|
label,
|
|
2042
2684
|
subLabel: getSelectedPeriodAmountLabel(period),
|
|
2043
2685
|
labelSuffixComponent: saveText ? {
|
|
2044
|
-
component: _sfc_main$
|
|
2686
|
+
component: _sfc_main$o,
|
|
2045
2687
|
props: {
|
|
2046
2688
|
color: "primary",
|
|
2047
2689
|
content: saveText,
|
|
@@ -2100,7 +2742,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2100
2742
|
selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
|
|
2101
2743
|
};
|
|
2102
2744
|
return (_ctx, _cache) => {
|
|
2103
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2745
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
2104
2746
|
class: "sv-order-summary",
|
|
2105
2747
|
"no-border": "",
|
|
2106
2748
|
"no-spacing": "",
|
|
@@ -2113,12 +2755,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2113
2755
|
}, {
|
|
2114
2756
|
default: withCtx(() => [
|
|
2115
2757
|
createElementVNode("div", _hoisted_1$e, [
|
|
2116
|
-
createVNode(unref(_sfc_main$
|
|
2758
|
+
createVNode(unref(_sfc_main$t), {
|
|
2117
2759
|
"no-spacing": "",
|
|
2118
2760
|
class: "sv-order-summary__subscription"
|
|
2119
2761
|
}, {
|
|
2120
2762
|
default: withCtx(() => [
|
|
2121
|
-
__props.subscription ? (openBlock(), createBlock(_sfc_main$
|
|
2763
|
+
__props.subscription ? (openBlock(), createBlock(_sfc_main$D, {
|
|
2122
2764
|
key: 0,
|
|
2123
2765
|
avatar: __props.avatar,
|
|
2124
2766
|
invoice: __props.invoice,
|
|
@@ -2130,7 +2772,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2130
2772
|
]),
|
|
2131
2773
|
_: 1
|
|
2132
2774
|
}),
|
|
2133
|
-
billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2775
|
+
billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$t), {
|
|
2134
2776
|
key: 0,
|
|
2135
2777
|
"no-spacing": "",
|
|
2136
2778
|
"content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
|
|
@@ -2146,7 +2788,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2146
2788
|
description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
|
|
2147
2789
|
}, createSlots({
|
|
2148
2790
|
default: withCtx(() => [
|
|
2149
|
-
createVNode(unref(_sfc_main$
|
|
2791
|
+
createVNode(unref(_sfc_main$E), {
|
|
2150
2792
|
"model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
|
|
2151
2793
|
"onUpdate:modelValue": handleBinaryBillingToggle
|
|
2152
2794
|
}, null, 8, ["model-value"])
|
|
@@ -2156,7 +2798,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2156
2798
|
toggleSaveText.value ? {
|
|
2157
2799
|
name: "badge",
|
|
2158
2800
|
fn: withCtx(() => [
|
|
2159
|
-
createVNode(unref(_sfc_main$
|
|
2801
|
+
createVNode(unref(_sfc_main$o), {
|
|
2160
2802
|
color: "primary",
|
|
2161
2803
|
content: toggleSaveText.value,
|
|
2162
2804
|
size: saveBadgeSize.value,
|
|
@@ -2171,7 +2813,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2171
2813
|
];
|
|
2172
2814
|
}),
|
|
2173
2815
|
_: 1
|
|
2174
|
-
}, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2816
|
+
}, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
2175
2817
|
key: 1,
|
|
2176
2818
|
"single-model-value": selectedBillingPeriodKey.value,
|
|
2177
2819
|
"onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
|
|
@@ -2182,14 +2824,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2182
2824
|
"show-sub-label-in-input": "",
|
|
2183
2825
|
"show-suffix-in-closed-input": ""
|
|
2184
2826
|
}, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
|
|
2185
|
-
__props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2827
|
+
__props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$t), {
|
|
2186
2828
|
key: 2,
|
|
2187
2829
|
"no-spacing": "",
|
|
2188
2830
|
class: "sv-order-summary__usage"
|
|
2189
2831
|
}, {
|
|
2190
2832
|
default: withCtx(() => [
|
|
2191
2833
|
createElementVNode("div", _hoisted_4$4, [
|
|
2192
|
-
createVNode(unref(_sfc_main$
|
|
2834
|
+
createVNode(unref(_sfc_main$r), {
|
|
2193
2835
|
"no-spacing": "",
|
|
2194
2836
|
variant: "body-sm",
|
|
2195
2837
|
shade: "lighter"
|
|
@@ -2208,14 +2850,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2208
2850
|
_: 1
|
|
2209
2851
|
})) : createCommentVNode("", true),
|
|
2210
2852
|
__props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
2211
|
-
createVNode(unref(_sfc_main$
|
|
2853
|
+
createVNode(unref(_sfc_main$G), {
|
|
2212
2854
|
invoice: __props.invoice,
|
|
2213
|
-
"wrapper-component": unref(_sfc_main$
|
|
2855
|
+
"wrapper-component": unref(_sfc_main$t)
|
|
2214
2856
|
}, null, 8, ["invoice", "wrapper-component"])
|
|
2215
2857
|
])) : createCommentVNode("", true),
|
|
2216
|
-
createVNode(unref(_sfc_main$
|
|
2858
|
+
createVNode(unref(_sfc_main$t), { class: "sv-order-summary__totals" }, {
|
|
2217
2859
|
default: withCtx(() => [
|
|
2218
|
-
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2860
|
+
__props.invoice ? (openBlock(), createBlock(unref(_sfc_main$H), {
|
|
2219
2861
|
key: 0,
|
|
2220
2862
|
class: "sv-order-summary__invoice-preview",
|
|
2221
2863
|
variant: __props.variant === "products-inline" ? "default" : "without-products",
|
|
@@ -2225,7 +2867,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2225
2867
|
collapsible: __props.collapsible,
|
|
2226
2868
|
"is-preview-without-taxes": !__props.countryCode,
|
|
2227
2869
|
"is-customer-facing": ""
|
|
2228
|
-
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
2870
|
+
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
2229
2871
|
key: 1,
|
|
2230
2872
|
variant: "body-sm",
|
|
2231
2873
|
shade: "lighter",
|
|
@@ -2250,6 +2892,47 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2250
2892
|
};
|
|
2251
2893
|
}
|
|
2252
2894
|
});
|
|
2895
|
+
async function createExpressCheckout(props, logger) {
|
|
2896
|
+
const { AdyenCheckout: createCheckout } = await import("../../index-DyvRdSR7.mjs");
|
|
2897
|
+
return createCheckout(
|
|
2898
|
+
getAdyenExpressCheckoutConfiguration({
|
|
2899
|
+
locale: props.locale,
|
|
2900
|
+
amount: props.amount,
|
|
2901
|
+
countryCode: props.countryCode,
|
|
2902
|
+
paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
|
|
2903
|
+
logger
|
|
2904
|
+
})
|
|
2905
|
+
);
|
|
2906
|
+
}
|
|
2907
|
+
function useExpressPaymentMethod({
|
|
2908
|
+
props,
|
|
2909
|
+
create,
|
|
2910
|
+
onMissingButton,
|
|
2911
|
+
onMountFailed,
|
|
2912
|
+
afterMount
|
|
2913
|
+
}) {
|
|
2914
|
+
const buttonRef = ref();
|
|
2915
|
+
const logger = useLogger();
|
|
2916
|
+
const mount = async () => {
|
|
2917
|
+
const checkout = await createExpressCheckout(props, logger);
|
|
2918
|
+
const component = await create(checkout);
|
|
2919
|
+
if (!buttonRef.value) {
|
|
2920
|
+
onMissingButton();
|
|
2921
|
+
return;
|
|
2922
|
+
}
|
|
2923
|
+
try {
|
|
2924
|
+
await component.isAvailable();
|
|
2925
|
+
component.mount(buttonRef.value);
|
|
2926
|
+
afterMount == null ? void 0 : afterMount();
|
|
2927
|
+
} catch (error) {
|
|
2928
|
+
onMountFailed(error);
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
onMounted(() => {
|
|
2932
|
+
void mount();
|
|
2933
|
+
});
|
|
2934
|
+
return { buttonRef };
|
|
2935
|
+
}
|
|
2253
2936
|
const _hoisted_1$d = {
|
|
2254
2937
|
key: 0,
|
|
2255
2938
|
id: "svg-logo",
|
|
@@ -2299,10 +2982,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2299
2982
|
emit("click");
|
|
2300
2983
|
}
|
|
2301
2984
|
return (_ctx, _cache) => {
|
|
2302
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
2985
|
+
return openBlock(), createBlock(unref(_sfc_main$v), {
|
|
2303
2986
|
size: "lg",
|
|
2304
2987
|
"aria-label": ariaLabel.value,
|
|
2305
|
-
class: normalizeClass([buttonClasses.value, "!block w-full
|
|
2988
|
+
class: normalizeClass([buttonClasses.value, "!block h-11 w-full bg-center bg-no-repeat"]),
|
|
2306
2989
|
onClick: handleClick
|
|
2307
2990
|
}, {
|
|
2308
2991
|
default: withCtx(() => [
|
|
@@ -2363,16 +3046,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2363
3046
|
const { authorizePayment } = createPaymentsService();
|
|
2364
3047
|
const paymentAcceptorId = props.paymentMethodOptionsResponse.payment_acceptor.id;
|
|
2365
3048
|
const initApplePay = async () => {
|
|
2366
|
-
const {
|
|
2367
|
-
const checkout = await
|
|
2368
|
-
getAdyenExpressCheckoutConfiguration({
|
|
2369
|
-
amount: props.amount,
|
|
2370
|
-
locale: props.locale,
|
|
2371
|
-
countryCode: props.countryCode,
|
|
2372
|
-
paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
|
|
2373
|
-
logger
|
|
2374
|
-
})
|
|
2375
|
-
);
|
|
3049
|
+
const { ApplePay } = await import("../../index-DyvRdSR7.mjs");
|
|
3050
|
+
const checkout = await createExpressCheckout(props, logger);
|
|
2376
3051
|
const applePay = new ApplePay(checkout, {
|
|
2377
3052
|
isExpress: true,
|
|
2378
3053
|
recurringPaymentRequest: {
|
|
@@ -2608,49 +3283,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2608
3283
|
setup(__props, { emit: __emit }) {
|
|
2609
3284
|
const props = __props;
|
|
2610
3285
|
const emit = __emit;
|
|
2611
|
-
const paypalButtonRef = ref();
|
|
2612
3286
|
const logger = useLogger();
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
});
|
|
2636
|
-
if (!paypalButtonRef.value) {
|
|
2637
|
-
logger.error(
|
|
2638
|
-
"EXPRESS_CHECKOUT_PAYPAL_ERROR",
|
|
2639
|
-
"The PayPal button reference is not found and cannot be mounted"
|
|
2640
|
-
);
|
|
2641
|
-
return;
|
|
2642
|
-
}
|
|
2643
|
-
try {
|
|
2644
|
-
await paypal.isAvailable();
|
|
2645
|
-
paypal.mount(paypalButtonRef.value);
|
|
2646
|
-
} catch (error) {
|
|
2647
|
-
logger.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
|
|
2648
|
-
error
|
|
3287
|
+
const { buttonRef: paypalButtonRef } = useExpressPaymentMethod({
|
|
3288
|
+
props,
|
|
3289
|
+
onMissingButton: () => logger.error(
|
|
3290
|
+
"EXPRESS_CHECKOUT_PAYPAL_ERROR",
|
|
3291
|
+
"The PayPal button reference is not found and cannot be mounted"
|
|
3292
|
+
),
|
|
3293
|
+
onMountFailed: (error) => logger.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
|
|
3294
|
+
error
|
|
3295
|
+
}),
|
|
3296
|
+
create: async (checkout) => {
|
|
3297
|
+
const { PayPal } = await import("../../index-DyvRdSR7.mjs");
|
|
3298
|
+
return new PayPal(checkout, {
|
|
3299
|
+
isExpress: true,
|
|
3300
|
+
blockPayPalPayLaterButton: true,
|
|
3301
|
+
blockPayPalCreditButton: true,
|
|
3302
|
+
blockPayPalVenmoButton: true,
|
|
3303
|
+
style: {
|
|
3304
|
+
height: 55
|
|
3305
|
+
},
|
|
3306
|
+
onInit: () => {
|
|
3307
|
+
emit("ready");
|
|
3308
|
+
}
|
|
2649
3309
|
});
|
|
2650
3310
|
}
|
|
2651
|
-
};
|
|
2652
|
-
onMounted(() => {
|
|
2653
|
-
void initPaypal();
|
|
2654
3311
|
});
|
|
2655
3312
|
return (_ctx, _cache) => {
|
|
2656
3313
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
@@ -2683,39 +3340,24 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2683
3340
|
setup(__props, { emit: __emit }) {
|
|
2684
3341
|
const props = __props;
|
|
2685
3342
|
const emit = __emit;
|
|
2686
|
-
const googlePayButtonRef = ref();
|
|
2687
3343
|
const logger = useLogger();
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
}
|
|
2698
|
-
)
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
return;
|
|
2706
|
-
}
|
|
2707
|
-
try {
|
|
2708
|
-
await googlePay.isAvailable();
|
|
2709
|
-
googlePay.mount(googlePayButtonRef.value);
|
|
2710
|
-
emit("ready");
|
|
2711
|
-
} catch (error) {
|
|
2712
|
-
logger.error(
|
|
2713
|
-
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2714
|
-
"Failed mounting Google Pay express button",
|
|
2715
|
-
{ error }
|
|
2716
|
-
);
|
|
2717
|
-
}
|
|
2718
|
-
};
|
|
3344
|
+
const { buttonRef: googlePayButtonRef } = useExpressPaymentMethod({
|
|
3345
|
+
props,
|
|
3346
|
+
onMissingButton: () => logger.error(
|
|
3347
|
+
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
3348
|
+
"The Google Pay button reference is not found and cannot be mounted"
|
|
3349
|
+
),
|
|
3350
|
+
onMountFailed: (error) => logger.error(
|
|
3351
|
+
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
3352
|
+
"Failed mounting Google Pay express button",
|
|
3353
|
+
{ error }
|
|
3354
|
+
),
|
|
3355
|
+
create: async (checkout) => {
|
|
3356
|
+
const { GooglePay } = await import("../../index-DyvRdSR7.mjs");
|
|
3357
|
+
return new GooglePay(checkout, { isExpress: true });
|
|
3358
|
+
},
|
|
3359
|
+
afterMount: () => emit("ready")
|
|
3360
|
+
});
|
|
2719
3361
|
const handleClick = () => {
|
|
2720
3362
|
var _a;
|
|
2721
3363
|
const googlePayButton = (_a = googlePayButtonRef.value) == null ? void 0 : _a.querySelector("#gpay-button-online-api-id");
|
|
@@ -2728,9 +3370,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2728
3370
|
googlePayButton.dispatchEvent(clickEvent);
|
|
2729
3371
|
}
|
|
2730
3372
|
};
|
|
2731
|
-
onMounted(() => {
|
|
2732
|
-
void initGooglePay();
|
|
2733
|
-
});
|
|
2734
3373
|
return (_ctx, _cache) => {
|
|
2735
3374
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2736
3375
|
__props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
|
|
@@ -2838,10 +3477,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2838
3477
|
return (_ctx, _cache) => {
|
|
2839
3478
|
return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2840
3479
|
createElementVNode("div", _hoisted_2$4, [
|
|
2841
|
-
!isReady.value ? (openBlock(), createBlock(_sfc_main$
|
|
3480
|
+
!isReady.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
2842
3481
|
key: 0,
|
|
2843
3482
|
variant: "title"
|
|
2844
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
3483
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
2845
3484
|
key: 1,
|
|
2846
3485
|
variant: "heading-3",
|
|
2847
3486
|
tag: "h2"
|
|
@@ -2858,8 +3497,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2858
3497
|
]),
|
|
2859
3498
|
createElementVNode("div", _hoisted_3$3, [
|
|
2860
3499
|
!isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2861
|
-
createVNode(_sfc_main$
|
|
2862
|
-
createVNode(_sfc_main$
|
|
3500
|
+
createVNode(_sfc_main$I, { class: "col-span-3 h-11" }),
|
|
3501
|
+
createVNode(_sfc_main$I, { class: "col-span-3 h-11" })
|
|
2863
3502
|
], 64)) : createCommentVNode("", true),
|
|
2864
3503
|
createElementVNode("div", {
|
|
2865
3504
|
class: normalizeClass(["col-span-3 md:col-span-2", {
|
|
@@ -2920,10 +3559,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2920
3559
|
], 2)
|
|
2921
3560
|
]),
|
|
2922
3561
|
createElementVNode("div", _hoisted_4$3, [
|
|
2923
|
-
!isReady.value ? (openBlock(), createBlock(_sfc_main$
|
|
3562
|
+
!isReady.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
2924
3563
|
key: 0,
|
|
2925
3564
|
variant: "divider-text"
|
|
2926
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
3565
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$J), {
|
|
2927
3566
|
key: 1,
|
|
2928
3567
|
text: unref($t)({
|
|
2929
3568
|
defaultMessage: "Or",
|
|
@@ -2968,7 +3607,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2968
3607
|
});
|
|
2969
3608
|
return (_ctx, _cache) => {
|
|
2970
3609
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2971
|
-
createVNode(unref(_sfc_main$
|
|
3610
|
+
createVNode(unref(_sfc_main$r), {
|
|
2972
3611
|
variant: "body-xs",
|
|
2973
3612
|
shade: "lighter",
|
|
2974
3613
|
tag: "div"
|
|
@@ -3001,7 +3640,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3001
3640
|
]),
|
|
3002
3641
|
_: 1
|
|
3003
3642
|
}),
|
|
3004
|
-
createVNode(unref(_sfc_main$
|
|
3643
|
+
createVNode(unref(_sfc_main$r), {
|
|
3005
3644
|
variant: "body-xs",
|
|
3006
3645
|
shade: "lighter",
|
|
3007
3646
|
tag: "div",
|
|
@@ -3088,14 +3727,18 @@ function useSeatBasedPricing({
|
|
|
3088
3727
|
description: productItem == null ? void 0 : productItem.description
|
|
3089
3728
|
},
|
|
3090
3729
|
pricing: {
|
|
3091
|
-
...((_c = config == null ? void 0 : config.details) == null ? void 0 : _c.pricing_type) === "FLAT" && {
|
|
3092
|
-
|
|
3730
|
+
...((_c = config == null ? void 0 : config.details) == null ? void 0 : _c.pricing_type) === "FLAT" && {
|
|
3731
|
+
amount: (_f = (_e = (_d = config.details) == null ? void 0 : _d.bands) == null ? void 0 : _e[0]) == null ? void 0 : _f.amount
|
|
3732
|
+
},
|
|
3733
|
+
...((_g = config == null ? void 0 : config.details) == null ? void 0 : _g.pricing_type) === "TIERED" && {
|
|
3734
|
+
tiered: { bands: (_h = config.details) == null ? void 0 : _h.bands }
|
|
3735
|
+
}
|
|
3093
3736
|
}
|
|
3094
3737
|
};
|
|
3095
3738
|
});
|
|
3096
3739
|
}
|
|
3097
|
-
const _hoisted_1$6 = { class: "flex flex-row-reverse md:flex-row
|
|
3098
|
-
const _hoisted_2$3 = { class: "w-24
|
|
3740
|
+
const _hoisted_1$6 = { class: "flex flex-row-reverse gap-4 md:flex-row" };
|
|
3741
|
+
const _hoisted_2$3 = { class: "w-24 shrink-0 justify-start md:w-32" };
|
|
3099
3742
|
const _hoisted_3$2 = ["tabindex"];
|
|
3100
3743
|
const _hoisted_4$2 = { key: 0 };
|
|
3101
3744
|
const _hoisted_5$2 = { key: 0 };
|
|
@@ -3117,7 +3760,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3117
3760
|
const { formatTimePeriod } = useTimePeriod();
|
|
3118
3761
|
const isExpanded = ref(false);
|
|
3119
3762
|
const seatsNumber = computed({
|
|
3120
|
-
get: () =>
|
|
3763
|
+
get: () => +(model.value.number || FALLBACK_SEATS_NUMBER),
|
|
3121
3764
|
set(number) {
|
|
3122
3765
|
model.value = {
|
|
3123
3766
|
...model.value,
|
|
@@ -3138,7 +3781,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3138
3781
|
return openBlock(), createElementBlock("div", null, [
|
|
3139
3782
|
createElementVNode("div", _hoisted_1$6, [
|
|
3140
3783
|
createElementVNode("div", _hoisted_2$3, [
|
|
3141
|
-
createVNode(unref(_sfc_main$
|
|
3784
|
+
createVNode(unref(_sfc_main$m), {
|
|
3142
3785
|
modelValue: seatsNumber.value,
|
|
3143
3786
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
|
|
3144
3787
|
size: "sm",
|
|
@@ -3146,11 +3789,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3146
3789
|
}, null, 8, ["modelValue", "min"])
|
|
3147
3790
|
]),
|
|
3148
3791
|
createElementVNode("div", {
|
|
3149
|
-
class: normalizeClass(["flex flex-col
|
|
3792
|
+
class: normalizeClass(["flex grow flex-col", { "hover:cursor-pointer": isCollapsible.value }]),
|
|
3150
3793
|
tabindex: isCollapsible.value ? 0 : void 0,
|
|
3151
3794
|
onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
|
|
3152
3795
|
}, [
|
|
3153
|
-
createVNode(unref(_sfc_main$
|
|
3796
|
+
createVNode(unref(_sfc_main$r), {
|
|
3154
3797
|
tag: "span",
|
|
3155
3798
|
variant: "body-sm",
|
|
3156
3799
|
weight: "semibold"
|
|
@@ -3164,7 +3807,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3164
3807
|
]),
|
|
3165
3808
|
_: 1
|
|
3166
3809
|
}),
|
|
3167
|
-
unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3810
|
+
unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
3168
3811
|
key: 0,
|
|
3169
3812
|
tag: "span",
|
|
3170
3813
|
variant: "body-xs",
|
|
@@ -3187,7 +3830,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3187
3830
|
)), 1)
|
|
3188
3831
|
]),
|
|
3189
3832
|
_: 1
|
|
3190
|
-
})) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$
|
|
3833
|
+
})) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
3191
3834
|
key: 1,
|
|
3192
3835
|
tag: "span",
|
|
3193
3836
|
variant: "body-xs",
|
|
@@ -3199,10 +3842,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3199
3842
|
id: "seats.tiered_pricing_label",
|
|
3200
3843
|
description: "The label indicating tiered pricing structure for seats"
|
|
3201
3844
|
})) + " ", 1),
|
|
3202
|
-
createVNode(unref(_sfc_main$
|
|
3845
|
+
createVNode(unref(_sfc_main$K), {
|
|
3203
3846
|
icon: "keyboard_arrow_down",
|
|
3204
3847
|
size: "xs",
|
|
3205
|
-
class: normalizeClass(["absolute transition ease-in-out
|
|
3848
|
+
class: normalizeClass(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
|
|
3206
3849
|
}, null, 8, ["class"])
|
|
3207
3850
|
]),
|
|
3208
3851
|
_: 1
|
|
@@ -3210,7 +3853,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3210
3853
|
], 10, _hoisted_3$2)
|
|
3211
3854
|
]),
|
|
3212
3855
|
((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
3213
|
-
createVNode(unref(_sfc_main$
|
|
3856
|
+
createVNode(unref(_sfc_main$w), { "is-open": isExpanded.value }, {
|
|
3214
3857
|
default: withCtx(() => [
|
|
3215
3858
|
isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
3216
3859
|
createVNode(_sfc_main$8, {
|
|
@@ -3254,7 +3897,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3254
3897
|
return (_ctx, _cache) => {
|
|
3255
3898
|
return __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
3256
3899
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
|
|
3257
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3900
|
+
return openBlock(), createBlock(unref(_sfc_main$t), { key: index }, {
|
|
3258
3901
|
default: withCtx(() => {
|
|
3259
3902
|
var _a;
|
|
3260
3903
|
return [
|
|
@@ -3294,7 +3937,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3294
3937
|
const props = __props;
|
|
3295
3938
|
const model = useModel(__props, "modelValue");
|
|
3296
3939
|
const { $t } = useIntl();
|
|
3297
|
-
const {
|
|
3940
|
+
const { describePricing } = usePricingDescription({
|
|
3298
3941
|
currency: toRef(props, "currency"),
|
|
3299
3942
|
billingPeriod: toRef(props, "billingPeriod")
|
|
3300
3943
|
});
|
|
@@ -3335,10 +3978,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3335
3978
|
}
|
|
3336
3979
|
};
|
|
3337
3980
|
return (_ctx, _cache) => {
|
|
3338
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3981
|
+
return openBlock(), createBlock(unref(_sfc_main$t), { "no-spacing": "" }, {
|
|
3339
3982
|
default: withCtx(() => [
|
|
3340
3983
|
createElementVNode("div", _hoisted_1$4, [
|
|
3341
|
-
createVNode(_sfc_main$
|
|
3984
|
+
createVNode(_sfc_main$L, null, {
|
|
3342
3985
|
title: withCtx(() => [
|
|
3343
3986
|
createTextVNode(toDisplayString(__props.groupName), 1)
|
|
3344
3987
|
]),
|
|
@@ -3349,34 +3992,25 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3349
3992
|
}),
|
|
3350
3993
|
createElementVNode("div", _hoisted_2$2, [
|
|
3351
3994
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
|
|
3352
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3995
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
3353
3996
|
key: pricing.id,
|
|
3354
3997
|
"content-background": "none",
|
|
3355
3998
|
class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
|
|
3356
3999
|
}, {
|
|
3357
|
-
default: withCtx(() =>
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
createVNode(unref(_sfc_main$t), {
|
|
3372
|
-
"model-value": isSelected(pricing.id),
|
|
3373
|
-
"onUpdate:modelValue": ($event) => handleToggle(pricing.id)
|
|
3374
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3375
|
-
]),
|
|
3376
|
-
_: 2
|
|
3377
|
-
}, 1032, ["name", "description"])
|
|
3378
|
-
];
|
|
3379
|
-
}),
|
|
4000
|
+
default: withCtx(() => [
|
|
4001
|
+
createVNode(_sfc_main$g, {
|
|
4002
|
+
name: unref(getNameFromPricing)(pricing) ?? "",
|
|
4003
|
+
description: unref(describePricing)(pricing)
|
|
4004
|
+
}, {
|
|
4005
|
+
default: withCtx(() => [
|
|
4006
|
+
createVNode(unref(_sfc_main$E), {
|
|
4007
|
+
"model-value": isSelected(pricing.id),
|
|
4008
|
+
"onUpdate:modelValue": ($event) => handleToggle(pricing.id)
|
|
4009
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4010
|
+
]),
|
|
4011
|
+
_: 2
|
|
4012
|
+
}, 1032, ["name", "description"])
|
|
4013
|
+
]),
|
|
3380
4014
|
_: 2
|
|
3381
4015
|
}, 1032, ["class"]);
|
|
3382
4016
|
}), 128))
|
|
@@ -3406,7 +4040,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3406
4040
|
const props = __props;
|
|
3407
4041
|
const model = useModel(__props, "modelValue");
|
|
3408
4042
|
const { $t } = useIntl();
|
|
3409
|
-
const {
|
|
4043
|
+
const { describePricing } = usePricingDescription({
|
|
3410
4044
|
currency: toRef(props, "currency"),
|
|
3411
4045
|
billingPeriod: toRef(props, "billingPeriod")
|
|
3412
4046
|
});
|
|
@@ -3421,7 +4055,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3421
4055
|
}
|
|
3422
4056
|
};
|
|
3423
4057
|
return (_ctx, _cache) => {
|
|
3424
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4058
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
3425
4059
|
"no-spacing": "",
|
|
3426
4060
|
"no-border": !__props.groupName,
|
|
3427
4061
|
"content-background": __props.groupName ? "gray" : "none"
|
|
@@ -3430,7 +4064,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3430
4064
|
createElementVNode("div", {
|
|
3431
4065
|
class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
|
|
3432
4066
|
}, [
|
|
3433
|
-
__props.groupName ? (openBlock(), createBlock(_sfc_main$
|
|
4067
|
+
__props.groupName ? (openBlock(), createBlock(_sfc_main$L, { key: 0 }, {
|
|
3434
4068
|
title: withCtx(() => [
|
|
3435
4069
|
createTextVNode(toDisplayString(__props.groupName), 1)
|
|
3436
4070
|
]),
|
|
@@ -3445,54 +4079,45 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3445
4079
|
})) : createCommentVNode("", true),
|
|
3446
4080
|
createElementVNode("div", _hoisted_1$3, [
|
|
3447
4081
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
|
|
3448
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4082
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
3449
4083
|
key: pricing.id,
|
|
3450
4084
|
"content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
|
|
3451
4085
|
class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
|
|
3452
4086
|
}, {
|
|
3453
|
-
default: withCtx(() =>
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
})), 1)
|
|
3488
|
-
]),
|
|
3489
|
-
_: 1
|
|
3490
|
-
}, 8, ["onClick"]))
|
|
3491
|
-
]),
|
|
3492
|
-
_: 2
|
|
3493
|
-
}, 1032, ["name", "description"])
|
|
3494
|
-
];
|
|
3495
|
-
}),
|
|
4087
|
+
default: withCtx(() => [
|
|
4088
|
+
createVNode(_sfc_main$g, {
|
|
4089
|
+
name: unref(getNameFromPricing)(pricing) ?? "",
|
|
4090
|
+
description: unref(describePricing)(pricing)
|
|
4091
|
+
}, {
|
|
4092
|
+
default: withCtx(() => [
|
|
4093
|
+
isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
4094
|
+
key: 0,
|
|
4095
|
+
color: "gray",
|
|
4096
|
+
variant: "outline",
|
|
4097
|
+
square: "",
|
|
4098
|
+
size: "sm",
|
|
4099
|
+
"icon-prefix": "remove_shopping_cart",
|
|
4100
|
+
onClick: ($event) => handleToggle(pricing.id)
|
|
4101
|
+
}, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
4102
|
+
key: 1,
|
|
4103
|
+
color: "primary",
|
|
4104
|
+
"icon-prefix": "add",
|
|
4105
|
+
size: "sm",
|
|
4106
|
+
onClick: ($event) => handleToggle(pricing.id)
|
|
4107
|
+
}, {
|
|
4108
|
+
default: withCtx(() => [
|
|
4109
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4110
|
+
defaultMessage: "Add to subscription ",
|
|
4111
|
+
id: "addon_multiple_editor.add_to_subscription_button",
|
|
4112
|
+
description: "The button to add a pricing to the subscription"
|
|
4113
|
+
})), 1)
|
|
4114
|
+
]),
|
|
4115
|
+
_: 1
|
|
4116
|
+
}, 8, ["onClick"]))
|
|
4117
|
+
]),
|
|
4118
|
+
_: 2
|
|
4119
|
+
}, 1032, ["name", "description"])
|
|
4120
|
+
]),
|
|
3496
4121
|
_: 2
|
|
3497
4122
|
}, 1032, ["content-background", "class"]);
|
|
3498
4123
|
}), 128))
|
|
@@ -3550,7 +4175,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3550
4175
|
() => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
|
|
3551
4176
|
);
|
|
3552
4177
|
return (_ctx, _cache) => {
|
|
3553
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4178
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
3554
4179
|
class: "sv-plan-customization",
|
|
3555
4180
|
title: unref($t)({
|
|
3556
4181
|
defaultMessage: "Customize plan",
|
|
@@ -3574,7 +4199,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3574
4199
|
return openBlock(), createElementBlock(Fragment, {
|
|
3575
4200
|
key: pricingGroup.id
|
|
3576
4201
|
}, [
|
|
3577
|
-
pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$
|
|
4202
|
+
pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$M, {
|
|
3578
4203
|
key: 0,
|
|
3579
4204
|
modelValue: enabledPricingIdsModel.value,
|
|
3580
4205
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
@@ -3753,7 +4378,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3753
4378
|
);
|
|
3754
4379
|
return (_ctx, _cache) => {
|
|
3755
4380
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
3756
|
-
!isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4381
|
+
!isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$t), mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
3757
4382
|
"no-spacing": "",
|
|
3758
4383
|
class: "relative w-full"
|
|
3759
4384
|
}), {
|
|
@@ -3770,8 +4395,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3770
4395
|
}, [
|
|
3771
4396
|
createElementVNode("div", _hoisted_2$1, [
|
|
3772
4397
|
createElementVNode("div", _hoisted_3$1, [
|
|
3773
|
-
createVNode(unref(_sfc_main$
|
|
3774
|
-
createVNode(unref(_sfc_main$
|
|
4398
|
+
createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
|
|
4399
|
+
createVNode(unref(_sfc_main$r), {
|
|
3775
4400
|
id: labelId,
|
|
3776
4401
|
variant: "body-sm"
|
|
3777
4402
|
}, {
|
|
@@ -3785,7 +4410,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3785
4410
|
_: 1
|
|
3786
4411
|
})
|
|
3787
4412
|
]),
|
|
3788
|
-
createVNode(unref(_sfc_main$
|
|
4413
|
+
createVNode(unref(_sfc_main$K), {
|
|
3789
4414
|
icon: isExpanded.value ? "remove" : "add"
|
|
3790
4415
|
}, null, 8, ["icon"])
|
|
3791
4416
|
])
|
|
@@ -3815,7 +4440,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3815
4440
|
class: "w-full",
|
|
3816
4441
|
onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
|
|
3817
4442
|
}, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
|
|
3818
|
-
createVNode(unref(_sfc_main$
|
|
4443
|
+
createVNode(unref(_sfc_main$v), {
|
|
3819
4444
|
type: "button",
|
|
3820
4445
|
disabled: !canApply.value,
|
|
3821
4446
|
"aria-label": applyAriaLabel.value,
|
|
@@ -3836,7 +4461,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3836
4461
|
])
|
|
3837
4462
|
]),
|
|
3838
4463
|
_: 1
|
|
3839
|
-
}, 16)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
4464
|
+
}, 16)) : (openBlock(), createBlock(unref(_sfc_main$t), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
3840
4465
|
"no-border": "",
|
|
3841
4466
|
"no-spacing": "",
|
|
3842
4467
|
"content-background": "none",
|
|
@@ -3851,8 +4476,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3851
4476
|
}, [
|
|
3852
4477
|
createElementVNode("div", _hoisted_6$1, [
|
|
3853
4478
|
createElementVNode("div", _hoisted_7, [
|
|
3854
|
-
createVNode(unref(_sfc_main$
|
|
3855
|
-
createVNode(unref(_sfc_main$
|
|
4479
|
+
createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
|
|
4480
|
+
createVNode(unref(_sfc_main$r), {
|
|
3856
4481
|
variant: "body-sm",
|
|
3857
4482
|
class: "font-semibold"
|
|
3858
4483
|
}, {
|
|
@@ -3862,7 +4487,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3862
4487
|
_: 1
|
|
3863
4488
|
})
|
|
3864
4489
|
]),
|
|
3865
|
-
createVNode(unref(_sfc_main$
|
|
4490
|
+
createVNode(unref(_sfc_main$K), { icon: "close" })
|
|
3866
4491
|
])
|
|
3867
4492
|
], 8, _hoisted_5$1)
|
|
3868
4493
|
]),
|
|
@@ -3874,16 +4499,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3874
4499
|
}
|
|
3875
4500
|
});
|
|
3876
4501
|
const _hoisted_1 = { class: "sv-checkout__header" };
|
|
3877
|
-
const _hoisted_2 = {
|
|
3878
|
-
key: 5,
|
|
3879
|
-
class: "sv-checkout__payment-methods"
|
|
3880
|
-
};
|
|
4502
|
+
const _hoisted_2 = { class: "sv-checkout__payment-methods" };
|
|
3881
4503
|
const _hoisted_3 = {
|
|
3882
4504
|
key: 0,
|
|
3883
4505
|
class: "sv-checkout__payment-methods-body"
|
|
3884
4506
|
};
|
|
3885
4507
|
const _hoisted_4 = {
|
|
3886
|
-
key:
|
|
4508
|
+
key: 3,
|
|
3887
4509
|
class: "sv-checkout__payment-form"
|
|
3888
4510
|
};
|
|
3889
4511
|
const _hoisted_5 = { class: "sv-checkout__order-summary" };
|
|
@@ -3897,7 +4519,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3897
4519
|
setup(__props, { emit: __emit }) {
|
|
3898
4520
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
3899
4521
|
const PaymentIntegrationForm = defineAsyncComponent(
|
|
3900
|
-
() => import("../../PaymentIntegrationForm-
|
|
4522
|
+
() => import("../../PaymentIntegrationForm-CbqfAdkc.mjs")
|
|
3901
4523
|
);
|
|
3902
4524
|
const props = __props;
|
|
3903
4525
|
const emit = __emit;
|
|
@@ -3925,6 +4547,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3925
4547
|
const successRedirectUrl = (_e = (_d = portal.value) == null ? void 0 : _d.init_pricing_plan_subscription) == null ? void 0 : _e.success_url;
|
|
3926
4548
|
const {
|
|
3927
4549
|
paymentMethodOptions,
|
|
4550
|
+
hasPaymentMethodOptionsError,
|
|
4551
|
+
retryPaymentMethodOptions,
|
|
3928
4552
|
subscription,
|
|
3929
4553
|
isPaymentMethodsPending,
|
|
3930
4554
|
isInvoicePreviewPending,
|
|
@@ -4240,7 +4864,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4240
4864
|
}, {
|
|
4241
4865
|
header: withCtx(() => [
|
|
4242
4866
|
createElementVNode("div", _hoisted_1, [
|
|
4243
|
-
createVNode(_sfc_main$
|
|
4867
|
+
createVNode(_sfc_main$I, { class: "min-h-[52px] w-96" }, {
|
|
4244
4868
|
default: withCtx(() => {
|
|
4245
4869
|
var _a2, _b2, _c2;
|
|
4246
4870
|
return [
|
|
@@ -4264,156 +4888,188 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4264
4888
|
content: withCtx(() => {
|
|
4265
4889
|
var _a2, _b2, _c2;
|
|
4266
4890
|
return [
|
|
4267
|
-
unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
|
|
4268
|
-
key: 0,
|
|
4269
|
-
class: "sv-checkout__mobile-order-summary",
|
|
4270
|
-
subscription: unref(subscription),
|
|
4271
|
-
invoice: unref(invoicePreview),
|
|
4272
|
-
"invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
|
|
4273
|
-
"trial-invoice": unref(trialInvoicePreview),
|
|
4274
|
-
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4275
|
-
"trial-period": unref(trialPeriod),
|
|
4276
|
-
avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
|
|
4277
|
-
"is-paid": unref(isPaid),
|
|
4278
|
-
"is-usage-based": isUsageBased.value,
|
|
4279
|
-
"is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
|
|
4280
|
-
"country-code": unref(checkoutForm).form.value.country,
|
|
4281
|
-
collapsible: "collapsed",
|
|
4282
|
-
variant: "products-inline",
|
|
4283
|
-
onBillingPeriodChange: handleBillingPeriodChange
|
|
4284
|
-
}, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : createCommentVNode("", true),
|
|
4285
|
-
showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
|
|
4286
|
-
key: 1,
|
|
4287
|
-
"seats-values": seatsValuesModel.value,
|
|
4288
|
-
"onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
|
|
4289
|
-
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4290
|
-
"onUpdate:enabledPricingIds": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
4291
|
-
class: "sv-checkout__plan-customization",
|
|
4292
|
-
subscription: unref(subscription),
|
|
4293
|
-
"initial-seats-values": (_b2 = unref(checkoutForm).initialState) == null ? void 0 : _b2.value.seatsValues,
|
|
4294
|
-
"billing-period": unref(subscription).billing_period,
|
|
4295
|
-
currency: activePricingCurrency.value
|
|
4296
|
-
}, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
|
|
4297
|
-
!unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4298
|
-
key: 2,
|
|
4299
|
-
class: "sv-checkout__express-payment-methods",
|
|
4300
|
-
amount: unref(amount),
|
|
4301
|
-
"country-code": unref(checkoutForm).form.value.country,
|
|
4302
|
-
locale: unref(locale),
|
|
4303
|
-
"payment-methods-options-response": unref(paymentMethodOptions) ?? [],
|
|
4304
|
-
"billing-information": expressPaymentMethodBillingInformation.value,
|
|
4305
|
-
"on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
|
|
4306
|
-
onUpdateBillingInformation: handleUpdateBillingInformation
|
|
4307
|
-
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
|
|
4308
4891
|
unref(isPaid) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
4309
|
-
key:
|
|
4892
|
+
key: 0,
|
|
4310
4893
|
class: "sv-checkout__completed-payment",
|
|
4311
4894
|
onContinueToMerchant: handleRedirect
|
|
4312
|
-
})) :
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
class:
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4895
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4896
|
+
unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
|
|
4897
|
+
key: 0,
|
|
4898
|
+
class: "sv-checkout__mobile-order-summary",
|
|
4899
|
+
subscription: unref(subscription),
|
|
4900
|
+
invoice: unref(invoicePreview),
|
|
4901
|
+
"invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
|
|
4902
|
+
"trial-invoice": unref(trialInvoicePreview),
|
|
4903
|
+
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4904
|
+
"trial-period": unref(trialPeriod),
|
|
4905
|
+
avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
|
|
4906
|
+
"is-paid": unref(isPaid),
|
|
4907
|
+
"is-usage-based": isUsageBased.value,
|
|
4908
|
+
"is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
|
|
4909
|
+
"country-code": unref(checkoutForm).form.value.country,
|
|
4910
|
+
collapsible: "collapsed",
|
|
4911
|
+
variant: "products-inline",
|
|
4912
|
+
onBillingPeriodChange: handleBillingPeriodChange
|
|
4913
|
+
}, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : createCommentVNode("", true),
|
|
4914
|
+
showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
|
|
4915
|
+
key: 1,
|
|
4916
|
+
"seats-values": seatsValuesModel.value,
|
|
4917
|
+
"onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
|
|
4918
|
+
"enabled-pricing-ids": enabledPricingIdsModel.value,
|
|
4919
|
+
"onUpdate:enabledPricingIds": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
|
|
4920
|
+
class: "sv-checkout__plan-customization",
|
|
4921
|
+
subscription: unref(subscription),
|
|
4922
|
+
"initial-seats-values": (_b2 = unref(checkoutForm).initialState) == null ? void 0 : _b2.value.seatsValues,
|
|
4923
|
+
"billing-period": unref(subscription).billing_period,
|
|
4924
|
+
currency: activePricingCurrency.value
|
|
4925
|
+
}, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
|
|
4926
|
+
unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4927
|
+
key: 2,
|
|
4928
|
+
class: "sv-checkout__express-payment-methods",
|
|
4929
|
+
amount: unref(amount),
|
|
4930
|
+
"country-code": unref(checkoutForm).form.value.country,
|
|
4931
|
+
locale: unref(locale),
|
|
4932
|
+
"payment-methods-options-response": unref(paymentMethodOptions) ?? [],
|
|
4933
|
+
"billing-information": expressPaymentMethodBillingInformation.value,
|
|
4934
|
+
"on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
|
|
4935
|
+
onUpdateBillingInformation: handleUpdateBillingInformation
|
|
4936
|
+
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
|
|
4937
|
+
createVNode(_sfc_main$k, {
|
|
4938
|
+
modelValue: unref(checkoutForm).form.value,
|
|
4939
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
|
|
4940
|
+
class: "sv-checkout__customer-form",
|
|
4941
|
+
validation: unref(checkoutForm).validation,
|
|
4942
|
+
"read-only-email": (_c2 = props.configuration) == null ? void 0 : _c2.email,
|
|
4943
|
+
"show-customer-info-on-top": showCustomerInfoOnTop.value || unref(isPaid),
|
|
4944
|
+
"is-billing-information-mandatory": isBillingInformationMandatory.value,
|
|
4945
|
+
"get-is-field-required": unref(checkoutForm).getIsFieldRequired,
|
|
4946
|
+
"read-only": unref(isPaid)
|
|
4947
|
+
}, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
|
|
4948
|
+
createElementVNode("div", _hoisted_2, [
|
|
4949
|
+
createVNode(_sfc_main$I, {
|
|
4950
|
+
variant: "section",
|
|
4951
|
+
class: "min-h-[130px]"
|
|
4952
|
+
}, {
|
|
4953
|
+
default: withCtx(() => [
|
|
4954
|
+
!unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
4955
|
+
createVNode(unref(_sfc_main$r), {
|
|
4956
|
+
variant: "heading-3",
|
|
4957
|
+
tag: "h2",
|
|
4958
|
+
class: "sv-checkout__payment-methods-title mb-2"
|
|
4959
|
+
}, {
|
|
4960
|
+
default: withCtx(() => [
|
|
4961
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4962
|
+
defaultMessage: "Payment method",
|
|
4963
|
+
id: "checkout.payment_method_block.title",
|
|
4964
|
+
description: "The title of the payment method block in the checkout form"
|
|
4965
|
+
})), 1)
|
|
4966
|
+
]),
|
|
4967
|
+
_: 1
|
|
4968
|
+
}),
|
|
4969
|
+
!unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$P, {
|
|
4970
|
+
key: 0,
|
|
4971
|
+
class: "sv-checkout__payment-methods-empty",
|
|
4972
|
+
icon: "captive_portal"
|
|
4973
|
+
}, {
|
|
4974
|
+
title: withCtx(() => [
|
|
4975
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4976
|
+
defaultMessage: "Select your billing country",
|
|
4977
|
+
id: "checkout.payment_method_block.no_country_selected_title",
|
|
4978
|
+
description: "The title shown when no country is selected"
|
|
4979
|
+
})), 1)
|
|
4980
|
+
]),
|
|
4981
|
+
message: withCtx(() => [
|
|
4982
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4983
|
+
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
4984
|
+
id: "checkout.payment_method_block.no_country_selected_message",
|
|
4985
|
+
description: "The message shown when no country is selected"
|
|
4986
|
+
})), 1)
|
|
4987
|
+
]),
|
|
4988
|
+
_: 1
|
|
4989
|
+
})) : unref(hasPaymentMethodOptionsError) ? (openBlock(), createBlock(_sfc_main$P, {
|
|
4990
|
+
key: 1,
|
|
4991
|
+
class: "sv-checkout__payment-methods-error",
|
|
4992
|
+
icon: "error"
|
|
4993
|
+
}, {
|
|
4994
|
+
title: withCtx(() => [
|
|
4995
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
4996
|
+
defaultMessage: "Could not load payment methods",
|
|
4997
|
+
id: "checkout.payment_method_block.load_failed_title",
|
|
4998
|
+
description: "The title shown when the payment methods failed to load"
|
|
4999
|
+
})), 1)
|
|
5000
|
+
]),
|
|
5001
|
+
message: withCtx(() => [
|
|
5002
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
5003
|
+
defaultMessage: "Check your connection and try again.",
|
|
5004
|
+
id: "checkout.payment_method_block.load_failed_message",
|
|
5005
|
+
description: "The message shown when the payment methods failed to load"
|
|
5006
|
+
})), 1)
|
|
5007
|
+
]),
|
|
5008
|
+
action: withCtx(() => [
|
|
5009
|
+
createVNode(unref(_sfc_main$v), {
|
|
5010
|
+
type: "button",
|
|
5011
|
+
color: "gray",
|
|
5012
|
+
variant: "outline",
|
|
5013
|
+
size: "sm",
|
|
5014
|
+
class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
|
|
5015
|
+
onClick: unref(retryPaymentMethodOptions)
|
|
5016
|
+
}, {
|
|
5017
|
+
default: withCtx(() => [
|
|
5018
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
5019
|
+
defaultMessage: "Try again",
|
|
5020
|
+
id: "checkout.payment_method_block.load_failed_retry_button.label",
|
|
5021
|
+
description: "The label of the button that loads the payment methods again"
|
|
5022
|
+
})), 1)
|
|
5023
|
+
]),
|
|
5024
|
+
_: 1
|
|
5025
|
+
}, 8, ["onClick"])
|
|
5026
|
+
]),
|
|
5027
|
+
_: 1
|
|
5028
|
+
})) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$P, {
|
|
5029
|
+
key: 2,
|
|
5030
|
+
class: "sv-checkout__payment-methods-empty",
|
|
5031
|
+
icon: "credit_card_off"
|
|
5032
|
+
}, {
|
|
5033
|
+
title: withCtx(() => [
|
|
5034
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
5035
|
+
defaultMessage: "No payment methods available",
|
|
5036
|
+
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
5037
|
+
description: "The title shown when there are no available payment methods"
|
|
5038
|
+
})), 1)
|
|
5039
|
+
]),
|
|
5040
|
+
_: 1
|
|
5041
|
+
})) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
5042
|
+
createElementVNode("div", {
|
|
5043
|
+
class: normalizeClass({ "pointer-events-none opacity-60": isPaymentPending.value })
|
|
5044
|
+
}, [
|
|
5045
|
+
createVNode(unref(PaymentIntegrationForm), {
|
|
5046
|
+
ref_key: "paymentIntegrationFormRef",
|
|
5047
|
+
ref: paymentIntegrationFormRef,
|
|
5048
|
+
"country-code": unref(checkoutForm).form.value.country,
|
|
5049
|
+
context: unref(authorizationContext),
|
|
5050
|
+
amount: unref(amount),
|
|
5051
|
+
email: unref(checkoutForm).form.value.email,
|
|
5052
|
+
variant: "AUTHORIZE",
|
|
5053
|
+
"payment-method-options": unref(paymentMethodOptions) ?? [],
|
|
5054
|
+
"validate-on-submit": handleValidateOnSubmit,
|
|
5055
|
+
"force-store-payment-method": "",
|
|
5056
|
+
onPaymentSuccess: handlePaymentSuccess,
|
|
5057
|
+
onPaymentFailed: handlePaymentFailed,
|
|
5058
|
+
onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
|
|
5059
|
+
}, null, 8, ["country-code", "context", "amount", "email", "payment-method-options"])
|
|
5060
|
+
], 2)
|
|
5061
|
+
])) : createCommentVNode("", true)
|
|
4406
5062
|
])) : createCommentVNode("", true)
|
|
4407
|
-
])
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
]
|
|
5063
|
+
]),
|
|
5064
|
+
_: 1
|
|
5065
|
+
})
|
|
5066
|
+
])
|
|
5067
|
+
], 64))
|
|
4412
5068
|
];
|
|
4413
5069
|
}),
|
|
4414
5070
|
aside: withCtx(() => [
|
|
4415
5071
|
createElementVNode("div", _hoisted_5, [
|
|
4416
|
-
createVNode(_sfc_main$
|
|
5072
|
+
createVNode(_sfc_main$I, {
|
|
4417
5073
|
variant: "section",
|
|
4418
5074
|
class: "min-h-[220px]"
|
|
4419
5075
|
}, {
|
|
@@ -4440,52 +5096,50 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4440
5096
|
_: 1
|
|
4441
5097
|
})
|
|
4442
5098
|
]),
|
|
4443
|
-
!unref(isPaid) ? (openBlock(),
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
key: 1,
|
|
4453
|
-
class: "sv-checkout__promotion-error mt-2",
|
|
4454
|
-
title: unref(promotionCodeErrorMessage)
|
|
4455
|
-
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
4456
|
-
createElementVNode("div", _hoisted_6, [
|
|
4457
|
-
!unref(isPaid) ? (openBlock(), createBlock(_sfc_main$E, {
|
|
5099
|
+
!unref(isPaid) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5100
|
+
createVNode(_sfc_main$2, {
|
|
5101
|
+
class: "sv-checkout__promotion-code",
|
|
5102
|
+
"promotion-code": promotionCode.value,
|
|
5103
|
+
"onUpdate:appliedCode": _cache[4] || (_cache[4] = ($event) => promotionCode.value = $event),
|
|
5104
|
+
onRemove: unref(removePromotionCode),
|
|
5105
|
+
onApply: unref(applyPromotionCode)
|
|
5106
|
+
}, null, 8, ["promotion-code", "onRemove", "onApply"]),
|
|
5107
|
+
unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$N), {
|
|
4458
5108
|
key: 0,
|
|
4459
|
-
class: "sv-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
5109
|
+
class: "sv-checkout__promotion-error mt-2",
|
|
5110
|
+
title: unref(promotionCodeErrorMessage)
|
|
5111
|
+
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
5112
|
+
createElementVNode("div", _hoisted_6, [
|
|
5113
|
+
createVNode(_sfc_main$I, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
|
|
5114
|
+
default: withCtx(() => [
|
|
5115
|
+
unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
5116
|
+
key: 0,
|
|
5117
|
+
type: "button",
|
|
5118
|
+
size: "lg",
|
|
5119
|
+
class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
|
|
5120
|
+
disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0 || isPaymentPending.value,
|
|
5121
|
+
loading: isPaymentPending.value,
|
|
5122
|
+
onClick: handleSubmit
|
|
5123
|
+
}, {
|
|
5124
|
+
default: withCtx(() => [
|
|
5125
|
+
createTextVNode(toDisplayString(hasTrialPeriod.value ? unref($t)({
|
|
5126
|
+
defaultMessage: "Start trial",
|
|
5127
|
+
id: "checkout.pay_and_subscribe_button_trial.label",
|
|
5128
|
+
description: "The label of the start trial button in the checkout form"
|
|
5129
|
+
}) : unref($t)({
|
|
5130
|
+
defaultMessage: "Pay and subscribe",
|
|
5131
|
+
id: "checkout.pay_and_subscribe_button.label",
|
|
5132
|
+
description: "The label of the pay and subscribe button in the checkout form"
|
|
5133
|
+
})), 1)
|
|
5134
|
+
]),
|
|
5135
|
+
_: 1
|
|
5136
|
+
}, 8, ["disabled", "loading"])) : createCommentVNode("", true)
|
|
5137
|
+
]),
|
|
5138
|
+
_: 1
|
|
5139
|
+
}),
|
|
5140
|
+
createVNode(_sfc_main$O, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
|
|
5141
|
+
])
|
|
5142
|
+
], 64)) : createCommentVNode("", true)
|
|
4489
5143
|
]),
|
|
4490
5144
|
_: 1
|
|
4491
5145
|
}, 8, ["class"]));
|
|
@@ -4514,6 +5168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4514
5168
|
emits: ["error", "ready"],
|
|
4515
5169
|
setup(__props, { emit: __emit }) {
|
|
4516
5170
|
var _a, _b, _c;
|
|
5171
|
+
const componentName = getComponentName("checkout");
|
|
4517
5172
|
const props = __props;
|
|
4518
5173
|
const emit = __emit;
|
|
4519
5174
|
const logger = useLogger();
|
|
@@ -4541,30 +5196,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4541
5196
|
const validEmail = getValidEmail((_b = props.configuration) == null ? void 0 : _b.email);
|
|
4542
5197
|
const couponCode = ((_c = props.configuration) == null ? void 0 : _c.couponCode) ?? getQueryParam("coupon_code") ?? void 0;
|
|
4543
5198
|
return (_ctx, _cache) => {
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
"
|
|
4547
|
-
environment: __props.environment,
|
|
4548
|
-
locale: __props.locale,
|
|
4549
|
-
"portal-object": __props.portalObject,
|
|
5199
|
+
return openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
5200
|
+
entry: _ctx.$props,
|
|
5201
|
+
"component-name": unref(componentName),
|
|
4550
5202
|
"allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
|
|
4551
|
-
"primary-color": (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b2.primary,
|
|
4552
|
-
"secondary-color": (_d = (_c2 = __props.branding) == null ? void 0 : _c2.colors) == null ? void 0 : _d.secondary,
|
|
4553
|
-
"experimental-features": __props.experimentalFeatures,
|
|
4554
|
-
"log-level": __props.logLevel,
|
|
4555
|
-
"on-log": __props.onLog,
|
|
4556
|
-
"css-overrides": __props.cssOverrides,
|
|
4557
5203
|
onError: _cache[1] || (_cache[1] = (error) => _ctx.$emit("error", error))
|
|
4558
5204
|
}, {
|
|
4559
5205
|
default: withCtx(() => {
|
|
4560
|
-
var
|
|
5206
|
+
var _a2, _b2, _c2;
|
|
4561
5207
|
return [
|
|
4562
5208
|
createVNode(_sfc_main$1, {
|
|
4563
5209
|
configuration: {
|
|
4564
|
-
avatar: (
|
|
5210
|
+
avatar: (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.emblem) == null ? void 0 : _b2.public_url,
|
|
4565
5211
|
email: unref(validEmail),
|
|
4566
5212
|
countryCode: unref(validCountryCode),
|
|
4567
|
-
enabledPricingIds: (
|
|
5213
|
+
enabledPricingIds: (_c2 = __props.configuration) == null ? void 0 : _c2.enabledPricingIds,
|
|
4568
5214
|
couponCode: unref(couponCode)
|
|
4569
5215
|
},
|
|
4570
5216
|
onReady: _cache[0] || (_cache[0] = ($event) => emit("ready"))
|
|
@@ -4580,19 +5226,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4580
5226
|
];
|
|
4581
5227
|
}),
|
|
4582
5228
|
_: 3
|
|
4583
|
-
}, 8, ["
|
|
5229
|
+
}, 8, ["entry", "component-name"]);
|
|
4584
5230
|
};
|
|
4585
5231
|
}
|
|
4586
5232
|
});
|
|
4587
|
-
const
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
customElements.define(COMPONENT_NAME, SolvimonCheckout);
|
|
4592
|
-
}
|
|
4593
|
-
};
|
|
5233
|
+
const { define: defineSolvimonCheckout } = createSolvimonElement(
|
|
5234
|
+
_sfc_main,
|
|
5235
|
+
"checkout"
|
|
5236
|
+
);
|
|
4594
5237
|
export {
|
|
4595
|
-
COMPONENT_NAME,
|
|
4596
|
-
SolvimonCheckout,
|
|
4597
5238
|
defineSolvimonCheckout
|
|
4598
5239
|
};
|