@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
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 +152 -91
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +426 -426
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as u, computed as a, openBlock as r, createBlock as c, unref as o, createSlots as p, withCtx as l, createVNode as b, createTextVNode as g, toDisplayString as v } from "vue";
|
|
2
|
+
import { _ } from "./Button.vue.es-BHbanjR0.mjs";
|
|
3
|
+
import { _ as h } from "./CustomerBillingInformation.vue.es-DQWt9osz.mjs";
|
|
4
|
+
import { a as k } from "./customElements-d7Bhfqi_.mjs";
|
|
5
|
+
import { _ as y } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
6
|
+
import { u as x } from "./useActionDispatchProvider-BWna0S6N.mjs";
|
|
7
|
+
import { r as A } from "./configuration-BytDBAWs.mjs";
|
|
8
|
+
import { h as B } from "./BillingInformationForm.lib-ad8B2Y1O.mjs";
|
|
9
|
+
const L = /* @__PURE__ */ u({
|
|
10
|
+
__name: "BillingInformation",
|
|
11
|
+
props: {
|
|
12
|
+
customer: { type: Object },
|
|
13
|
+
isLoading: { type: Boolean },
|
|
14
|
+
configuration: { type: Object },
|
|
15
|
+
onEdit: { type: Function }
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const m = {
|
|
19
|
+
showEditButton: !0
|
|
20
|
+
}, i = t, d = a(
|
|
21
|
+
() => A(m, i.configuration)
|
|
22
|
+
), { $t: e } = k(), n = a(() => B(i.customer)), { dispatchAction: f } = x();
|
|
23
|
+
return (E, s) => t.isLoading ? (r(), c(y, {
|
|
24
|
+
key: 0,
|
|
25
|
+
variant: "section",
|
|
26
|
+
class: "sv-billing-information sv-root sv-component sv-loading min-h-[100px]"
|
|
27
|
+
})) : (r(), c(o(h), {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "sv-billing-information sv-root sv-component",
|
|
30
|
+
customer: t.customer,
|
|
31
|
+
"fallback-to-reference": !1
|
|
32
|
+
}, p({ _: 2 }, [
|
|
33
|
+
d.value.showEditButton ? {
|
|
34
|
+
name: "settings",
|
|
35
|
+
fn: l(() => [
|
|
36
|
+
b(o(_), {
|
|
37
|
+
size: "xs",
|
|
38
|
+
intent: "subtle",
|
|
39
|
+
"icon-prefix": n.value ? "edit" : "add",
|
|
40
|
+
class: "sv-action sv-action--ghost sv-billing-information__edit",
|
|
41
|
+
onClick: s[0] || (s[0] = (w) => t.onEdit ? t.onEdit() : o(f)({ action: "edit-billing-information" }))
|
|
42
|
+
}, {
|
|
43
|
+
default: l(() => [
|
|
44
|
+
g(v(n.value ? o(e)({
|
|
45
|
+
defaultMessage: "Edit",
|
|
46
|
+
id: "customer_overview.billing_information_block.edit_button_label",
|
|
47
|
+
description: "The label of the button that opens the form to edit the customer billing information"
|
|
48
|
+
}) : o(e)({
|
|
49
|
+
defaultMessage: "Add billing address",
|
|
50
|
+
id: "customer_overview.billing_information_block.add_button_label",
|
|
51
|
+
description: "The label of the button that opens the form to add a billing address for a customer who has none yet"
|
|
52
|
+
})), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["icon-prefix"])
|
|
56
|
+
]),
|
|
57
|
+
key: "0"
|
|
58
|
+
} : void 0
|
|
59
|
+
]), 1032, ["customer"]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
L as _
|
|
64
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const d = {
|
|
2
|
+
email: "email",
|
|
3
|
+
country: "country",
|
|
4
|
+
legal_name: "companyLegalName",
|
|
5
|
+
tax_ids: "companyVatNumber",
|
|
6
|
+
tax_id: "companyVatNumber",
|
|
7
|
+
vat_number: "companyVatNumber",
|
|
8
|
+
first_name: "firstName",
|
|
9
|
+
last_name: "lastName",
|
|
10
|
+
line1: "addressLine1",
|
|
11
|
+
address_line_1: "addressLine1",
|
|
12
|
+
line2: "addressLine2",
|
|
13
|
+
address_line_2: "addressLine2",
|
|
14
|
+
postal_code: "postalCode",
|
|
15
|
+
city: "city",
|
|
16
|
+
state: "state"
|
|
17
|
+
}, t = (i) => i.split(".").map((e) => e.replace(/\[\d+\]$/, "")).reverse().map((e) => d[e]).find((e) => e !== void 0), l = (i, e) => {
|
|
18
|
+
const a = { fields: {} };
|
|
19
|
+
return Object.entries(i ?? {}).forEach(([n, s]) => {
|
|
20
|
+
const r = n === "_generic" ? void 0 : t(n);
|
|
21
|
+
r && e.includes(r) ? a.fields[r] = s : a.generic ?? (a.generic = s);
|
|
22
|
+
}), a;
|
|
23
|
+
}, o = (i) => {
|
|
24
|
+
var a, n, s;
|
|
25
|
+
if (!i) return !1;
|
|
26
|
+
const e = "individual" in i ? (a = i.individual) == null ? void 0 : a.residential_address : "organization" in i ? (n = i.organization) == null ? void 0 : n.registered_address : void 0;
|
|
27
|
+
return !!((s = e == null ? void 0 : e.line1) != null && s.trim());
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
l as g,
|
|
31
|
+
o as h
|
|
32
|
+
};
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { shallowRef as W, ref as M, computed as V, toRaw as U, defineComponent as X, reactive as Y, watch as J, openBlock as b, createElementBlock as q, withModifiers as K, createBlock as T, unref as t, withCtx as F, createTextVNode as O, toDisplayString as $, createCommentVNode as _, createElementVNode as G, createVNode as k, isRef as z } from "vue";
|
|
2
|
+
import { _ as Q } from "./Button.vue.es-BHbanjR0.mjs";
|
|
3
|
+
import { _ as ee } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
|
|
4
|
+
import { _ as R } from "./Input.vue.es-CxiwRZYs.mjs";
|
|
5
|
+
import { a as ae, d as P } from "./customElements-d7Bhfqi_.mjs";
|
|
6
|
+
import { h as te, g as oe } from "./BillingInformationForm.lib-ad8B2Y1O.mjs";
|
|
7
|
+
import { a as ie, i as Z } from "./typeGuards.es-B4XMtlkM.mjs";
|
|
8
|
+
import { o as le, t as j, _ as ne, a as re } from "./taxId.es-Zu2Ff1gL.mjs";
|
|
9
|
+
import { u as se, b as H, e as ue, r as me, f as B, a as E } from "./formControl-BZQLHnOO.mjs";
|
|
10
|
+
import { r as de, b as ce, g as D, u as pe, p as fe, d as ge, e as w, D as ve, i as ye, f as he, c as be } from "./useAddressFormats-Dw7IEdxg.mjs";
|
|
11
|
+
const Ne = ({
|
|
12
|
+
initialState: e,
|
|
13
|
+
validationRules: a,
|
|
14
|
+
nullifyEmptyValues: o = !1,
|
|
15
|
+
mode: i = "shallow"
|
|
16
|
+
}) => {
|
|
17
|
+
const u = W(structuredClone(e)), l = M(structuredClone(e)), p = se(a ?? {}, l), f = V(
|
|
18
|
+
() => le({ from: u.value, to: l.value, mode: i, nullifyEmptyValues: o })
|
|
19
|
+
), r = V(() => Object.entries(f.value).length > 0);
|
|
20
|
+
return {
|
|
21
|
+
form: l,
|
|
22
|
+
validation: p,
|
|
23
|
+
changes: f,
|
|
24
|
+
hasChanges: r,
|
|
25
|
+
updateInitialState: (d) => {
|
|
26
|
+
l.value = structuredClone(U(d)), u.value = structuredClone(U(d));
|
|
27
|
+
},
|
|
28
|
+
initialState: u
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
function Ie({
|
|
32
|
+
initialState: e = {},
|
|
33
|
+
onSubmit: a
|
|
34
|
+
}) {
|
|
35
|
+
const o = (n) => ge(d.value.country).includes(n), i = () => d.value.type === "ORGANIZATION", u = M([]), l = (n) => {
|
|
36
|
+
var m;
|
|
37
|
+
return ((n == null ? void 0 : n.trim()) ?? "") !== (((m = L.value.companyVatNumber) == null ? void 0 : m.trim()) ?? "");
|
|
38
|
+
}, p = (n, m, x) => !w(d.value) || !l(n) || j.$validator(n, m, x), f = () => S(d.value.country), r = fe(f), C = (n) => d.value.postalCode === L.value.postalCode && d.value.country === L.value.country || r.$validator(n), {
|
|
39
|
+
form: d,
|
|
40
|
+
validation: N,
|
|
41
|
+
changes: A,
|
|
42
|
+
hasChanges: y,
|
|
43
|
+
updateInitialState: h,
|
|
44
|
+
initialState: L
|
|
45
|
+
} = Ne({
|
|
46
|
+
initialState: D(e),
|
|
47
|
+
validationRules: {
|
|
48
|
+
...ce("BILLING", f, o),
|
|
49
|
+
postalCode: {
|
|
50
|
+
...de(o, "postalCode"),
|
|
51
|
+
postalCodeFormat: { ...r, $validator: C }
|
|
52
|
+
},
|
|
53
|
+
email: { required: H, email: ue },
|
|
54
|
+
country: { required: H },
|
|
55
|
+
companyLegalName: { required: me(i) },
|
|
56
|
+
companyVatNumber: { taxId: { ...j, $validator: p } }
|
|
57
|
+
},
|
|
58
|
+
nullifyEmptyValues: !0,
|
|
59
|
+
mode: "deep"
|
|
60
|
+
}), { formatOf: S } = pe({
|
|
61
|
+
isNeeded: () => !0,
|
|
62
|
+
countries: [() => d.value.country]
|
|
63
|
+
});
|
|
64
|
+
return {
|
|
65
|
+
form: d,
|
|
66
|
+
validation: N,
|
|
67
|
+
changes: A,
|
|
68
|
+
hasChanges: y,
|
|
69
|
+
updateInitialState: (n) => {
|
|
70
|
+
u.value = ie(n) ? n.organization.tax_ids ?? [] : [], h(_e(n));
|
|
71
|
+
},
|
|
72
|
+
submit: (n, m = d.value) => a({
|
|
73
|
+
customerId: n,
|
|
74
|
+
payload: Le(
|
|
75
|
+
m,
|
|
76
|
+
// A hidden VAT number, as in the US, is neither checked nor sent.
|
|
77
|
+
w(m) && l(m.companyVatNumber) ? Ce(u.value, m.companyVatNumber) : void 0
|
|
78
|
+
)
|
|
79
|
+
}),
|
|
80
|
+
isRequired: o
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const _e = (e) => {
|
|
84
|
+
var i, u, l, p;
|
|
85
|
+
const a = Z(e) ? e.individual.residential_address : e.organization.registered_address, o = {
|
|
86
|
+
email: e.email || void 0,
|
|
87
|
+
country: a != null && a.country && ye(a.country) ? a.country : void 0,
|
|
88
|
+
addressLine1: (a == null ? void 0 : a.line1) || void 0,
|
|
89
|
+
addressLine2: (a == null ? void 0 : a.line2) || void 0,
|
|
90
|
+
postalCode: (a == null ? void 0 : a.postal_code) || void 0,
|
|
91
|
+
city: (a == null ? void 0 : a.city) || void 0,
|
|
92
|
+
state: (a == null ? void 0 : a.state) || void 0
|
|
93
|
+
};
|
|
94
|
+
return Z(e) ? D({
|
|
95
|
+
type: "INDIVIDUAL",
|
|
96
|
+
...o,
|
|
97
|
+
firstName: ((i = e.individual.name) == null ? void 0 : i.first_name) || void 0,
|
|
98
|
+
lastName: ((u = e.individual.name) == null ? void 0 : u.last_name) || void 0
|
|
99
|
+
}) : D({
|
|
100
|
+
type: "ORGANIZATION",
|
|
101
|
+
...o,
|
|
102
|
+
companyLegalName: e.organization.legal_name || void 0,
|
|
103
|
+
companyVatNumber: ((p = (l = e.organization.tax_ids) == null ? void 0 : l[0]) == null ? void 0 : p.id) || void 0
|
|
104
|
+
});
|
|
105
|
+
}, Ve = ({ id: e, type: a, display_name: o }) => ({
|
|
106
|
+
id: e,
|
|
107
|
+
type: a,
|
|
108
|
+
...o && { display_name: o }
|
|
109
|
+
}), Ce = (e, a) => {
|
|
110
|
+
const o = a == null ? void 0 : a.trim(), [i, ...u] = e.map(Ve);
|
|
111
|
+
return o ? [{ ...i, id: o, type: (i == null ? void 0 : i.type) ?? ve }, ...u] : u;
|
|
112
|
+
}, Le = (e, a) => {
|
|
113
|
+
const o = {
|
|
114
|
+
line1: e.addressLine1 ?? "",
|
|
115
|
+
line2: e.addressLine2 ?? "",
|
|
116
|
+
postal_code: e.postalCode ?? "",
|
|
117
|
+
city: e.city ?? "",
|
|
118
|
+
country: e.country ?? "",
|
|
119
|
+
state: e.state ?? ""
|
|
120
|
+
};
|
|
121
|
+
return e.type === "ORGANIZATION" ? {
|
|
122
|
+
type: "ORGANIZATION",
|
|
123
|
+
email: e.email ?? "",
|
|
124
|
+
organization: {
|
|
125
|
+
legal_name: e.companyLegalName ?? "",
|
|
126
|
+
...a && { tax_ids: a },
|
|
127
|
+
registered_address: o
|
|
128
|
+
}
|
|
129
|
+
} : {
|
|
130
|
+
type: "INDIVIDUAL",
|
|
131
|
+
email: e.email ?? "",
|
|
132
|
+
individual: {
|
|
133
|
+
name: {
|
|
134
|
+
first_name: e.firstName ?? "",
|
|
135
|
+
last_name: e.lastName ?? ""
|
|
136
|
+
},
|
|
137
|
+
residential_address: o
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}, Te = { class: "grid grid-cols-1 gap-2" }, ke = { class: "flex flex-col gap-2" }, Se = {
|
|
141
|
+
key: 0,
|
|
142
|
+
class: "grid grid-cols-2 gap-2"
|
|
143
|
+
}, Me = /* @__PURE__ */ X({
|
|
144
|
+
__name: "BillingInformationForm",
|
|
145
|
+
props: {
|
|
146
|
+
customer: { type: Object },
|
|
147
|
+
isLoading: { type: Boolean },
|
|
148
|
+
apiError: { type: null },
|
|
149
|
+
updateCustomer: { type: Function },
|
|
150
|
+
hideSubmitButton: { type: Boolean },
|
|
151
|
+
hideContactHeading: { type: Boolean }
|
|
152
|
+
},
|
|
153
|
+
emits: ["saved"],
|
|
154
|
+
setup(e, { expose: a, emit: o }) {
|
|
155
|
+
const i = e, u = o, { $t: l } = ae(), p = he(), { validation: f, form: r, updateInitialState: C, submit: d, hasChanges: N, isRequired: A } = Ie({
|
|
156
|
+
onSubmit: ({ customerId: s, payload: c }) => i.updateCustomer({ customerId: s, payload: c })
|
|
157
|
+
}), y = Y({
|
|
158
|
+
email: B(r, "email", E),
|
|
159
|
+
firstName: B(r, "firstName", E),
|
|
160
|
+
lastName: B(r, "lastName", E)
|
|
161
|
+
}), h = V(() => r.value.type === "ORGANIZATION"), L = V(() => !te(i.customer)), S = V({
|
|
162
|
+
get: () => h.value,
|
|
163
|
+
set: (s) => {
|
|
164
|
+
r.value.type = s ? "ORGANIZATION" : "INDIVIDUAL";
|
|
165
|
+
}
|
|
166
|
+
}), I = V(
|
|
167
|
+
() => oe(i.apiError, [
|
|
168
|
+
"email",
|
|
169
|
+
"country",
|
|
170
|
+
"addressLine1",
|
|
171
|
+
"postalCode",
|
|
172
|
+
"city",
|
|
173
|
+
"state",
|
|
174
|
+
...h.value ? ["companyLegalName"] : [],
|
|
175
|
+
// Without the field, as in the US, an error about it is shown as a generic one.
|
|
176
|
+
...w(r.value) ? ["companyVatNumber"] : [],
|
|
177
|
+
...h.value ? [] : ["firstName", "lastName"]
|
|
178
|
+
])
|
|
179
|
+
), v = (s) => f.value[s].$errors.length ? f.value[s].$errors : I.value.fields[s], n = (s) => A(s) ? "" : " " + l({
|
|
180
|
+
defaultMessage: "(optional)",
|
|
181
|
+
id: "checkout.optional_suffix.label",
|
|
182
|
+
description: "The suffix for optional fields in the checkout form"
|
|
183
|
+
}), m = M(!1), x = async () => {
|
|
184
|
+
var s;
|
|
185
|
+
if (m.value || !((s = i.customer) != null && s.id)) return !1;
|
|
186
|
+
if (!N.value)
|
|
187
|
+
return u("saved"), !0;
|
|
188
|
+
m.value = !0;
|
|
189
|
+
try {
|
|
190
|
+
return await f.value.$validate() ? (C(await d(i.customer.id)), f.value.$reset(), u("saved"), !0) : !1;
|
|
191
|
+
} catch {
|
|
192
|
+
return !1;
|
|
193
|
+
} finally {
|
|
194
|
+
m.value = !1;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
return a({ submit: x, isSubmitting: m, hasChanges: N }), J(
|
|
198
|
+
() => i.customer,
|
|
199
|
+
(s) => {
|
|
200
|
+
s && !N.value && C(s);
|
|
201
|
+
},
|
|
202
|
+
{ immediate: !0 }
|
|
203
|
+
), (s, c) => (b(), q("form", {
|
|
204
|
+
onSubmit: K(x, ["prevent"])
|
|
205
|
+
}, [
|
|
206
|
+
e.hideContactHeading ? _("", !0) : (b(), T(t(P), {
|
|
207
|
+
key: 0,
|
|
208
|
+
variant: "heading-3",
|
|
209
|
+
tag: "h2"
|
|
210
|
+
}, {
|
|
211
|
+
default: F(() => [
|
|
212
|
+
O($(t(p).contactInformationTitle), 1)
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
})),
|
|
216
|
+
G("div", Te, [
|
|
217
|
+
k(t(R), {
|
|
218
|
+
modelValue: y.email,
|
|
219
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => y.email = g),
|
|
220
|
+
required: "",
|
|
221
|
+
type: "email",
|
|
222
|
+
name: "email",
|
|
223
|
+
autocomplete: "email",
|
|
224
|
+
label: t(p).emailLabel,
|
|
225
|
+
placeholder: t(p).emailPlaceholder,
|
|
226
|
+
error: v("email")
|
|
227
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
228
|
+
L.value ? (b(), T(ne, {
|
|
229
|
+
key: 0,
|
|
230
|
+
modelValue: S.value,
|
|
231
|
+
"onUpdate:modelValue": c[1] || (c[1] = (g) => S.value = g),
|
|
232
|
+
"no-spacing": "",
|
|
233
|
+
class: "sv-billing-form__company-toggle !flex"
|
|
234
|
+
}, null, 8, ["modelValue"])) : _("", !0),
|
|
235
|
+
h.value ? (b(), T(re, {
|
|
236
|
+
key: 1,
|
|
237
|
+
modelValue: t(r),
|
|
238
|
+
"onUpdate:modelValue": c[2] || (c[2] = (g) => z(r) ? r.value = g : null),
|
|
239
|
+
errors: {
|
|
240
|
+
companyLegalName: v("companyLegalName"),
|
|
241
|
+
companyVatNumber: v("companyVatNumber")
|
|
242
|
+
},
|
|
243
|
+
"is-vat-number-invalid": t(f).companyVatNumber.$invalid
|
|
244
|
+
}, null, 8, ["modelValue", "errors", "is-vat-number-invalid"])) : _("", !0)
|
|
245
|
+
]),
|
|
246
|
+
k(t(P), {
|
|
247
|
+
variant: "heading-3",
|
|
248
|
+
tag: "h2",
|
|
249
|
+
class: "mt-6"
|
|
250
|
+
}, {
|
|
251
|
+
default: F(() => [
|
|
252
|
+
O($(t(l)({
|
|
253
|
+
defaultMessage: "Billing details",
|
|
254
|
+
id: "checkout.billing_information_block.title",
|
|
255
|
+
description: "The title of the billing information block in the checkout form"
|
|
256
|
+
})), 1)
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}),
|
|
260
|
+
G("div", ke, [
|
|
261
|
+
h.value ? _("", !0) : (b(), q("div", Se, [
|
|
262
|
+
k(t(R), {
|
|
263
|
+
modelValue: y.firstName,
|
|
264
|
+
"onUpdate:modelValue": c[3] || (c[3] = (g) => y.firstName = g),
|
|
265
|
+
name: "first_name",
|
|
266
|
+
autocomplete: "billing given-name",
|
|
267
|
+
label: t(l)({
|
|
268
|
+
defaultMessage: "First name",
|
|
269
|
+
id: "checkout.first_name.label",
|
|
270
|
+
description: "The first name of the customer in the checkout form"
|
|
271
|
+
}),
|
|
272
|
+
placeholder: t(l)({
|
|
273
|
+
defaultMessage: "First name",
|
|
274
|
+
id: "checkout.first_name.placeholder",
|
|
275
|
+
description: "The first name of the customer in the checkout form"
|
|
276
|
+
}),
|
|
277
|
+
error: I.value.fields.firstName
|
|
278
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
279
|
+
k(t(R), {
|
|
280
|
+
modelValue: y.lastName,
|
|
281
|
+
"onUpdate:modelValue": c[4] || (c[4] = (g) => y.lastName = g),
|
|
282
|
+
name: "last_name",
|
|
283
|
+
autocomplete: "billing family-name",
|
|
284
|
+
label: t(l)({
|
|
285
|
+
defaultMessage: "Last name",
|
|
286
|
+
id: "checkout.last_name.label",
|
|
287
|
+
description: "The last name of the customer in the checkout form"
|
|
288
|
+
}),
|
|
289
|
+
placeholder: t(l)({
|
|
290
|
+
defaultMessage: "Last name",
|
|
291
|
+
id: "checkout.last_name.placeholder",
|
|
292
|
+
description: "The last name of the customer in the checkout form"
|
|
293
|
+
}),
|
|
294
|
+
error: I.value.fields.lastName
|
|
295
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
296
|
+
])),
|
|
297
|
+
k(be, {
|
|
298
|
+
modelValue: t(r),
|
|
299
|
+
"onUpdate:modelValue": c[5] || (c[5] = (g) => z(r) ? r.value = g : null),
|
|
300
|
+
variant: "BILLING",
|
|
301
|
+
"with-country": "",
|
|
302
|
+
"country-label": t(p).countryLabel,
|
|
303
|
+
"get-optional-suffix": n,
|
|
304
|
+
errors: {
|
|
305
|
+
addressLine1: v("addressLine1"),
|
|
306
|
+
postalCode: v("postalCode"),
|
|
307
|
+
city: v("city"),
|
|
308
|
+
state: v("state"),
|
|
309
|
+
country: v("country")
|
|
310
|
+
}
|
|
311
|
+
}, null, 8, ["modelValue", "country-label", "errors"])
|
|
312
|
+
]),
|
|
313
|
+
I.value.generic ? (b(), T(t(ee), {
|
|
314
|
+
key: 1,
|
|
315
|
+
class: "mt-4",
|
|
316
|
+
title: I.value.generic
|
|
317
|
+
}, null, 8, ["title"])) : _("", !0),
|
|
318
|
+
e.hideSubmitButton ? _("", !0) : (b(), T(t(Q), {
|
|
319
|
+
key: 2,
|
|
320
|
+
type: "submit",
|
|
321
|
+
intent: "primary",
|
|
322
|
+
disabled: !t(N),
|
|
323
|
+
loading: e.isLoading || m.value,
|
|
324
|
+
class: "mt-4"
|
|
325
|
+
}, {
|
|
326
|
+
default: F(() => [
|
|
327
|
+
O($(t(l)({
|
|
328
|
+
defaultMessage: "Save changes",
|
|
329
|
+
id: "billing_information_form.submit_button.label",
|
|
330
|
+
description: "The label for the submit button of the billing information form"
|
|
331
|
+
})), 1)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
}, 8, ["disabled", "loading"]))
|
|
335
|
+
], 32));
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
export {
|
|
339
|
+
Me as _
|
|
340
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent as v, ref as u, watch as w, computed as M, openBlock as c, createBlock as f, unref as o, withCtx as x, createCommentVNode as y } from "vue";
|
|
2
|
+
import { b as C } from "./api.es-QaC926Xu.mjs";
|
|
3
|
+
import { M as _ } from "./Modal.vue.es-CDjfZDDx.mjs";
|
|
4
|
+
import { a as k } from "./customElements-d7Bhfqi_.mjs";
|
|
5
|
+
import { _ as B } from "./BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs";
|
|
6
|
+
import { h as $ } from "./BillingInformationForm.lib-ad8B2Y1O.mjs";
|
|
7
|
+
const j = /* @__PURE__ */ v({
|
|
8
|
+
__name: "BillingInformationModal",
|
|
9
|
+
props: {
|
|
10
|
+
showModal: { type: Boolean },
|
|
11
|
+
customer: { type: Object },
|
|
12
|
+
update: { type: null }
|
|
13
|
+
},
|
|
14
|
+
emits: ["close"],
|
|
15
|
+
setup(e, { emit: b }) {
|
|
16
|
+
const i = e, g = b, { $t: n } = k(), l = u(), r = u(!1);
|
|
17
|
+
w(
|
|
18
|
+
() => i.showModal,
|
|
19
|
+
(t) => {
|
|
20
|
+
t && (r.value = !$(i.customer));
|
|
21
|
+
},
|
|
22
|
+
{ immediate: !0 }
|
|
23
|
+
);
|
|
24
|
+
const h = M(
|
|
25
|
+
() => i.update.error.value ? C(i.update.error.value) : void 0
|
|
26
|
+
), p = () => {
|
|
27
|
+
var t;
|
|
28
|
+
(t = l.value) != null && t.isSubmitting || g("close");
|
|
29
|
+
};
|
|
30
|
+
return (t, a) => {
|
|
31
|
+
var d;
|
|
32
|
+
return c(), f(o(_), {
|
|
33
|
+
"no-click-away": "",
|
|
34
|
+
"full-screen-on-mobile": "",
|
|
35
|
+
size: "lg",
|
|
36
|
+
"show-modal": e.showModal,
|
|
37
|
+
title: r.value ? o(n)({
|
|
38
|
+
defaultMessage: "Add billing address",
|
|
39
|
+
id: "billing_information_modal.add_title",
|
|
40
|
+
description: "Title of the modal in which a customer without a billing address adds one"
|
|
41
|
+
}) : o(n)({
|
|
42
|
+
defaultMessage: "Edit billing information",
|
|
43
|
+
id: "billing_information_modal.title",
|
|
44
|
+
description: "Title of the modal in which the customer edits their billing information"
|
|
45
|
+
}),
|
|
46
|
+
"confirm-button-text": o(n)({
|
|
47
|
+
defaultMessage: "Save changes",
|
|
48
|
+
id: "billing_information_form.submit_button.label",
|
|
49
|
+
description: "The label for the submit button of the billing information form"
|
|
50
|
+
}),
|
|
51
|
+
"cancel-button-text": o(n)({
|
|
52
|
+
defaultMessage: "Cancel",
|
|
53
|
+
id: "billing_information_modal.cancel_button.label",
|
|
54
|
+
description: "Label of the button that closes the billing information modal unsaved"
|
|
55
|
+
}),
|
|
56
|
+
"is-loading": (d = l.value) == null ? void 0 : d.isSubmitting,
|
|
57
|
+
onConfirm: a[1] || (a[1] = (s) => {
|
|
58
|
+
var m;
|
|
59
|
+
return (m = l.value) == null ? void 0 : m.submit();
|
|
60
|
+
}),
|
|
61
|
+
onClose: p
|
|
62
|
+
}, {
|
|
63
|
+
body: x(() => [
|
|
64
|
+
e.showModal ? (c(), f(B, {
|
|
65
|
+
key: 0,
|
|
66
|
+
ref_key: "formRef",
|
|
67
|
+
ref: l,
|
|
68
|
+
class: "sv-billing-information-modal pb-4",
|
|
69
|
+
"hide-submit-button": "",
|
|
70
|
+
"hide-contact-heading": "",
|
|
71
|
+
customer: e.customer,
|
|
72
|
+
"is-loading": e.update.isPending.value,
|
|
73
|
+
"api-error": h.value,
|
|
74
|
+
"update-customer": ({ payload: s }) => e.update.execute(s),
|
|
75
|
+
onSaved: a[0] || (a[0] = (s) => t.$emit("close"))
|
|
76
|
+
}, null, 8, ["customer", "is-loading", "api-error", "update-customer"])) : y("", !0)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading"]);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
j as default
|
|
85
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as I, computed as n, ref as _, toRefs as S, unref as o, createBlock as R, resolveDynamicComponent as q, withCtx as $, createVNode as z, createCommentVNode as d, renderSlot as k, mergeDefaults as V } from "vue";
|
|
2
|
-
import { d as M } from "./customElements-
|
|
2
|
+
import { d as M } from "./customElements-d7Bhfqi_.mjs";
|
|
3
3
|
const N = {
|
|
4
4
|
class: "h-full w-full",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|