@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.32
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-Cx203VXo.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
- package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
- package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
- package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
- package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
- package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
- package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
- package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
- package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
- package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
- package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
- package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
- package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
- package/dist/adyen-CHgq2l6n.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 +1087 -1019
- 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-B8c354Nu.mjs} +802 -768
- package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
- package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
- package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
- package/dist/index.es-Bv55VtdE.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-I7PghcPV.mjs +143 -0
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
- package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-BKoKpoLN.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
- package/dist/pricing-Y-7ELzN-.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-CGm_-jJq.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 +1322 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
- 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/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-B7dNqi1C.mjs +99 -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/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
- 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 +199 -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-BCtk-FGU.mjs} +1 -1
- package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
- package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
- package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
- package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
- package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
- package/dist/usePortal-DuLR5Mid.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
- package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
- package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
- package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
- package/package.json +41 -11
- 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/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
- 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/Section.vue.es-Oqn1wGPZ.mjs +0 -72
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
- 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/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
- 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
|
@@ -1,417 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { b as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { o as de, t as D } from "../../taxId.es-e6NEvprh.mjs";
|
|
9
|
-
import { u as me, b as M, e as ue, r as A, f as g, a as L, d as C } from "../../formControl-BZQLHnOO.mjs";
|
|
10
|
-
import { b as ce } from "../../api.es-qgvzNMU-.mjs";
|
|
11
|
-
import { u as pe } from "../../useCustomer-CTMhg1nd.mjs";
|
|
12
|
-
import { u as ye } from "../../useLoadInitialData-UvfYXgbi.mjs";
|
|
13
|
-
const ge = {
|
|
14
|
-
email: "email",
|
|
15
|
-
country: "country",
|
|
16
|
-
legal_name: "companyLegalName",
|
|
17
|
-
tax_ids: "companyVatNumber",
|
|
18
|
-
tax_id: "companyVatNumber",
|
|
19
|
-
vat_number: "companyVatNumber",
|
|
20
|
-
first_name: "firstName",
|
|
21
|
-
last_name: "lastName",
|
|
22
|
-
line1: "addressLine1",
|
|
23
|
-
address_line_1: "addressLine1",
|
|
24
|
-
line2: "addressLine2",
|
|
25
|
-
address_line_2: "addressLine2",
|
|
26
|
-
postal_code: "postalCode",
|
|
27
|
-
city: "city",
|
|
28
|
-
state: "state"
|
|
29
|
-
}, fe = (a) => a.split(".").map((e) => e.replace(/\[\d+\]$/, "")).reverse().map((e) => ge[e]).find((e) => e !== void 0), be = (a, e) => {
|
|
30
|
-
const o = { fields: {} };
|
|
31
|
-
return Object.entries(a ?? {}).forEach(([l, i]) => {
|
|
32
|
-
const r = l === "_generic" ? void 0 : fe(l);
|
|
33
|
-
r && e.includes(r) ? o.fields[r] = i : o.generic ?? (o.generic = i);
|
|
34
|
-
}), o;
|
|
35
|
-
}, he = ({
|
|
36
|
-
initialState: a,
|
|
37
|
-
validationRules: e,
|
|
38
|
-
nullifyEmptyValues: o = !1,
|
|
39
|
-
mode: l = "shallow"
|
|
40
|
-
}) => {
|
|
41
|
-
const i = q(structuredClone(a)), r = U(structuredClone(a)), p = me(e ?? {}, r), y = S(
|
|
42
|
-
() => de({ from: i.value, to: r.value, mode: l, nullifyEmptyValues: o })
|
|
43
|
-
), b = S(() => Object.entries(y.value).length > 0);
|
|
44
|
-
return {
|
|
45
|
-
form: r,
|
|
46
|
-
validation: p,
|
|
47
|
-
changes: y,
|
|
48
|
-
hasChanges: b,
|
|
49
|
-
updateInitialState: (v) => {
|
|
50
|
-
r.value = structuredClone(B(v)), i.value = structuredClone(B(v));
|
|
51
|
-
},
|
|
52
|
-
initialState: i
|
|
53
|
-
};
|
|
54
|
-
}, ve = (a) => W(a), _e = {
|
|
55
|
-
type: "INDIVIDUAL",
|
|
56
|
-
email: "",
|
|
57
|
-
country: "",
|
|
58
|
-
addressLine1: "",
|
|
59
|
-
postalCode: "",
|
|
60
|
-
city: "",
|
|
61
|
-
state: ""
|
|
62
|
-
};
|
|
63
|
-
function Ne({
|
|
64
|
-
initialState: a = {},
|
|
65
|
-
onSubmit: e
|
|
66
|
-
}) {
|
|
67
|
-
const o = (u) => Q(
|
|
68
|
-
ve(y.value.country) ? y.value.country : void 0
|
|
69
|
-
).includes(u), l = () => y.value.type === "ORGANIZATION", i = U([]), r = (u) => {
|
|
70
|
-
var d;
|
|
71
|
-
return ((u == null ? void 0 : u.trim()) ?? "") !== (((d = f.value.companyVatNumber) == null ? void 0 : d.trim()) ?? "");
|
|
72
|
-
}, p = (u, d, n) => !r(u) || D.$validator(u, d, n), {
|
|
73
|
-
form: y,
|
|
74
|
-
validation: b,
|
|
75
|
-
changes: s,
|
|
76
|
-
hasChanges: v,
|
|
77
|
-
updateInitialState: V,
|
|
78
|
-
initialState: f
|
|
79
|
-
} = he({
|
|
80
|
-
initialState: {
|
|
81
|
-
..._e,
|
|
82
|
-
...a
|
|
83
|
-
},
|
|
84
|
-
validationRules: {
|
|
85
|
-
email: { required: M, email: ue },
|
|
86
|
-
country: { required: M },
|
|
87
|
-
addressLine1: { required: A(() => o("addressLine1")) },
|
|
88
|
-
postalCode: { required: A(() => o("postalCode")) },
|
|
89
|
-
state: { required: A(() => o("state")) },
|
|
90
|
-
companyLegalName: { required: A(l) },
|
|
91
|
-
companyVatNumber: { taxId: { ...D, $validator: p } }
|
|
92
|
-
},
|
|
93
|
-
nullifyEmptyValues: !0,
|
|
94
|
-
mode: "deep"
|
|
95
|
-
});
|
|
96
|
-
return {
|
|
97
|
-
form: y,
|
|
98
|
-
validation: b,
|
|
99
|
-
changes: s,
|
|
100
|
-
hasChanges: v,
|
|
101
|
-
updateInitialState: (u) => {
|
|
102
|
-
i.value = se(u) ? u.organization.tax_ids ?? [] : [], V(Le(u));
|
|
103
|
-
},
|
|
104
|
-
submit: (u, d = y.value) => e({
|
|
105
|
-
customerId: u,
|
|
106
|
-
payload: Ce(
|
|
107
|
-
d,
|
|
108
|
-
r(d.companyVatNumber) ? Ie(i.value, d.companyVatNumber) : void 0
|
|
109
|
-
)
|
|
110
|
-
})
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
const Le = (a) => {
|
|
114
|
-
var l, i, r, p;
|
|
115
|
-
const e = w(a) ? a.individual.residential_address : a.organization.registered_address, o = {
|
|
116
|
-
email: a.email ?? "",
|
|
117
|
-
country: (e == null ? void 0 : e.country) ?? "",
|
|
118
|
-
addressLine1: (e == null ? void 0 : e.line1) ?? "",
|
|
119
|
-
addressLine2: (e == null ? void 0 : e.line2) ?? "",
|
|
120
|
-
postalCode: (e == null ? void 0 : e.postal_code) ?? "",
|
|
121
|
-
city: (e == null ? void 0 : e.city) ?? "",
|
|
122
|
-
state: (e == null ? void 0 : e.state) ?? ""
|
|
123
|
-
};
|
|
124
|
-
return w(a) ? {
|
|
125
|
-
type: "INDIVIDUAL",
|
|
126
|
-
...o,
|
|
127
|
-
firstName: ((l = a.individual.name) == null ? void 0 : l.first_name) ?? "",
|
|
128
|
-
lastName: ((i = a.individual.name) == null ? void 0 : i.last_name) ?? ""
|
|
129
|
-
} : {
|
|
130
|
-
type: "ORGANIZATION",
|
|
131
|
-
...o,
|
|
132
|
-
companyLegalName: a.organization.legal_name ?? "",
|
|
133
|
-
companyVatNumber: ((p = (r = a.organization.tax_ids) == null ? void 0 : r[0]) == null ? void 0 : p.id) ?? ""
|
|
134
|
-
};
|
|
135
|
-
}, Ve = ({ id: a, type: e, display_name: o }) => ({
|
|
136
|
-
id: a,
|
|
137
|
-
type: e,
|
|
138
|
-
...o && { display_name: o }
|
|
139
|
-
}), Ie = (a, e) => {
|
|
140
|
-
const o = e == null ? void 0 : e.trim(), [l, ...i] = a.map(Ve);
|
|
141
|
-
return o ? [{ ...l, id: o, type: (l == null ? void 0 : l.type) ?? ee }, ...i] : i;
|
|
142
|
-
}, Ce = (a, e) => {
|
|
143
|
-
const o = {
|
|
144
|
-
line1: a.addressLine1,
|
|
145
|
-
line2: a.addressLine2 ?? "",
|
|
146
|
-
postal_code: a.postalCode,
|
|
147
|
-
city: a.city,
|
|
148
|
-
country: a.country,
|
|
149
|
-
state: a.state ?? ""
|
|
150
|
-
};
|
|
151
|
-
return a.type === "ORGANIZATION" ? {
|
|
152
|
-
type: "ORGANIZATION",
|
|
153
|
-
email: a.email,
|
|
154
|
-
organization: {
|
|
155
|
-
legal_name: a.companyLegalName ?? "",
|
|
156
|
-
...e && { tax_ids: e },
|
|
157
|
-
registered_address: o
|
|
158
|
-
}
|
|
159
|
-
} : {
|
|
160
|
-
type: "INDIVIDUAL",
|
|
161
|
-
email: a.email,
|
|
162
|
-
individual: {
|
|
163
|
-
name: {
|
|
164
|
-
first_name: a.firstName ?? "",
|
|
165
|
-
last_name: a.lastName ?? ""
|
|
166
|
-
},
|
|
167
|
-
residential_address: o
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
}, Se = { class: "grid grid-cols-1 gap-4" }, Te = { class: "mt-6 flex items-center justify-between gap-4" }, Fe = { class: "flex flex-col gap-2" }, Oe = {
|
|
171
|
-
key: 0,
|
|
172
|
-
class: "grid grid-cols-2 gap-2"
|
|
173
|
-
}, Ae = { class: "grid grid-cols-3 gap-2" }, ke = /* @__PURE__ */ x({
|
|
174
|
-
__name: "BillingInformationForm",
|
|
175
|
-
props: {
|
|
176
|
-
customer: { type: Object },
|
|
177
|
-
isLoading: { type: Boolean },
|
|
178
|
-
apiError: { type: null },
|
|
179
|
-
updateCustomer: { type: Function }
|
|
180
|
-
},
|
|
181
|
-
setup(a) {
|
|
182
|
-
const e = a, { $t: o } = le(), l = ae(), { validation: i, form: r, updateInitialState: p, submit: y, hasChanges: b } = Ne({
|
|
183
|
-
onSubmit: ({ customerId: d, payload: n }) => e.updateCustomer({ customerId: d, payload: n })
|
|
184
|
-
}), s = z({
|
|
185
|
-
email: g(r, "email", C),
|
|
186
|
-
companyVatNumber: g(r, "companyVatNumber", L),
|
|
187
|
-
companyLegalName: g(r, "companyLegalName", L),
|
|
188
|
-
firstName: g(r, "firstName", L),
|
|
189
|
-
lastName: g(r, "lastName", L),
|
|
190
|
-
addressLine1: g(r, "addressLine1", C),
|
|
191
|
-
addressLine2: g(r, "addressLine2", L),
|
|
192
|
-
postalCode: g(r, "postalCode", C),
|
|
193
|
-
city: g(r, "city", C),
|
|
194
|
-
state: g(r, "state", L)
|
|
195
|
-
}), v = S({
|
|
196
|
-
get: () => r.value.country,
|
|
197
|
-
set: (d) => {
|
|
198
|
-
r.value.country = C(d);
|
|
199
|
-
}
|
|
200
|
-
}), V = S(() => r.value.type === "ORGANIZATION"), f = S(
|
|
201
|
-
() => be(e.apiError, [
|
|
202
|
-
"email",
|
|
203
|
-
"country",
|
|
204
|
-
"addressLine1",
|
|
205
|
-
"addressLine2",
|
|
206
|
-
"postalCode",
|
|
207
|
-
"city",
|
|
208
|
-
"state",
|
|
209
|
-
...V.value ? ["companyLegalName", "companyVatNumber"] : ["firstName", "lastName"]
|
|
210
|
-
])
|
|
211
|
-
), h = (d) => i.value[d].$errors.length ? i.value[d].$errors : f.value.fields[d], I = U(!1), u = async () => {
|
|
212
|
-
var d;
|
|
213
|
-
if (!(I.value || !((d = e.customer) != null && d.id))) {
|
|
214
|
-
I.value = !0;
|
|
215
|
-
try {
|
|
216
|
-
if (!await i.value.$validate()) return;
|
|
217
|
-
p(await y(e.customer.id)), i.value.$reset();
|
|
218
|
-
} catch {
|
|
219
|
-
} finally {
|
|
220
|
-
I.value = !1;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
return G(
|
|
225
|
-
() => e.customer,
|
|
226
|
-
(d) => {
|
|
227
|
-
d && !b.value && p(d);
|
|
228
|
-
},
|
|
229
|
-
{ immediate: !0 }
|
|
230
|
-
), (d, n) => (_(), $("form", {
|
|
231
|
-
onSubmit: Z(u, ["prevent"])
|
|
232
|
-
}, [
|
|
233
|
-
c(t(R), {
|
|
234
|
-
variant: "heading-3",
|
|
235
|
-
tag: "h2"
|
|
236
|
-
}, {
|
|
237
|
-
default: T(() => [
|
|
238
|
-
j(P(t(l).contactInformationTitle), 1)
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}),
|
|
242
|
-
F("div", Se, [
|
|
243
|
-
c(t(N), {
|
|
244
|
-
modelValue: s.email,
|
|
245
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => s.email = m),
|
|
246
|
-
required: "",
|
|
247
|
-
type: "email",
|
|
248
|
-
name: "email",
|
|
249
|
-
autocomplete: "email",
|
|
250
|
-
label: t(l).emailLabel,
|
|
251
|
-
placeholder: t(l).emailPlaceholder,
|
|
252
|
-
error: h("email")
|
|
253
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
254
|
-
c(t(te), {
|
|
255
|
-
"single-model-value": v.value,
|
|
256
|
-
"onUpdate:singleModelValue": n[1] || (n[1] = (m) => v.value = m),
|
|
257
|
-
i18n: { placeholderDefault: t(l).countryPlaceholder },
|
|
258
|
-
label: t(l).countryLabel,
|
|
259
|
-
error: h("country")
|
|
260
|
-
}, null, 8, ["single-model-value", "i18n", "label", "error"]),
|
|
261
|
-
V.value ? (_(), $(Y, { key: 0 }, [
|
|
262
|
-
c(t(N), {
|
|
263
|
-
modelValue: s.companyVatNumber,
|
|
264
|
-
"onUpdate:modelValue": n[2] || (n[2] = (m) => s.companyVatNumber = m),
|
|
265
|
-
name: "vat_number",
|
|
266
|
-
autocomplete: "off",
|
|
267
|
-
label: t(l).vatNumberLabel,
|
|
268
|
-
placeholder: t(l).vatNumberPlaceholder,
|
|
269
|
-
error: h("companyVatNumber")
|
|
270
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
271
|
-
c(t(N), {
|
|
272
|
-
modelValue: s.companyLegalName,
|
|
273
|
-
"onUpdate:modelValue": n[3] || (n[3] = (m) => s.companyLegalName = m),
|
|
274
|
-
required: "",
|
|
275
|
-
name: "legal_name",
|
|
276
|
-
autocomplete: "billing organization",
|
|
277
|
-
label: t(l).legalNameLabel,
|
|
278
|
-
placeholder: t(l).legalNamePlaceholder,
|
|
279
|
-
error: h("companyLegalName")
|
|
280
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
281
|
-
], 64)) : k("", !0)
|
|
282
|
-
]),
|
|
283
|
-
F("div", Te, [
|
|
284
|
-
c(t(R), {
|
|
285
|
-
variant: "heading-3",
|
|
286
|
-
tag: "h2"
|
|
287
|
-
}, {
|
|
288
|
-
default: T(() => [
|
|
289
|
-
j(P(t(o)({
|
|
290
|
-
defaultMessage: "Billing details",
|
|
291
|
-
id: "checkout.billing_information_block.title",
|
|
292
|
-
description: "The title of the billing information block in the checkout form"
|
|
293
|
-
})), 1)
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
})
|
|
297
|
-
]),
|
|
298
|
-
F("div", Fe, [
|
|
299
|
-
V.value ? k("", !0) : (_(), $("div", Oe, [
|
|
300
|
-
c(t(N), {
|
|
301
|
-
modelValue: s.firstName,
|
|
302
|
-
"onUpdate:modelValue": n[4] || (n[4] = (m) => s.firstName = m),
|
|
303
|
-
name: "first_name",
|
|
304
|
-
autocomplete: "billing given-name",
|
|
305
|
-
label: t(o)({
|
|
306
|
-
defaultMessage: "First name",
|
|
307
|
-
id: "checkout.first_name.label",
|
|
308
|
-
description: "The first name of the customer in the checkout form"
|
|
309
|
-
}),
|
|
310
|
-
placeholder: t(o)({
|
|
311
|
-
defaultMessage: "First name",
|
|
312
|
-
id: "checkout.first_name.placeholder",
|
|
313
|
-
description: "The first name of the customer in the checkout form"
|
|
314
|
-
}),
|
|
315
|
-
error: f.value.fields.firstName
|
|
316
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
317
|
-
c(t(N), {
|
|
318
|
-
modelValue: s.lastName,
|
|
319
|
-
"onUpdate:modelValue": n[5] || (n[5] = (m) => s.lastName = m),
|
|
320
|
-
name: "last_name",
|
|
321
|
-
autocomplete: "billing family-name",
|
|
322
|
-
label: t(o)({
|
|
323
|
-
defaultMessage: "Last name",
|
|
324
|
-
id: "checkout.last_name.label",
|
|
325
|
-
description: "The last name of the customer in the checkout form"
|
|
326
|
-
}),
|
|
327
|
-
placeholder: t(o)({
|
|
328
|
-
defaultMessage: "Last name",
|
|
329
|
-
id: "checkout.last_name.placeholder",
|
|
330
|
-
description: "The last name of the customer in the checkout form"
|
|
331
|
-
}),
|
|
332
|
-
error: f.value.fields.lastName
|
|
333
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
334
|
-
])),
|
|
335
|
-
c(t(N), {
|
|
336
|
-
modelValue: s.addressLine1,
|
|
337
|
-
"onUpdate:modelValue": n[6] || (n[6] = (m) => s.addressLine1 = m),
|
|
338
|
-
name: "address_line_1",
|
|
339
|
-
autocomplete: "billing address-line1",
|
|
340
|
-
label: t(l).addressTitle,
|
|
341
|
-
placeholder: t(o)({
|
|
342
|
-
defaultMessage: "Address line 1",
|
|
343
|
-
id: "checkout.address.line1.placeholder",
|
|
344
|
-
description: "Address line 1 of the customer address in the checkout form"
|
|
345
|
-
}),
|
|
346
|
-
error: h("addressLine1")
|
|
347
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
348
|
-
c(O, {
|
|
349
|
-
modelValue: s.addressLine2,
|
|
350
|
-
"onUpdate:modelValue": n[7] || (n[7] = (m) => s.addressLine2 = m),
|
|
351
|
-
name: "address_line_2",
|
|
352
|
-
autocomplete: "billing address-line2",
|
|
353
|
-
label: t(l).addressLine2Label,
|
|
354
|
-
placeholder: t(o)({
|
|
355
|
-
defaultMessage: "Address line 2",
|
|
356
|
-
id: "checkout.address.line2.placeholder",
|
|
357
|
-
description: "Address line 2 of the customer address in the checkout form"
|
|
358
|
-
}),
|
|
359
|
-
error: f.value.fields.addressLine2
|
|
360
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
361
|
-
F("div", Ae, [
|
|
362
|
-
c(O, {
|
|
363
|
-
modelValue: s.postalCode,
|
|
364
|
-
"onUpdate:modelValue": n[8] || (n[8] = (m) => s.postalCode = m),
|
|
365
|
-
name: "postal_code",
|
|
366
|
-
autocomplete: "billing postal-code",
|
|
367
|
-
label: t(l).postalCodeLabel,
|
|
368
|
-
placeholder: t(l).postalCodePlaceholder,
|
|
369
|
-
error: h("postalCode")
|
|
370
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
371
|
-
c(O, {
|
|
372
|
-
modelValue: s.city,
|
|
373
|
-
"onUpdate:modelValue": n[9] || (n[9] = (m) => s.city = m),
|
|
374
|
-
name: "city",
|
|
375
|
-
autocomplete: "billing address-level2",
|
|
376
|
-
label: t(l).cityLabel,
|
|
377
|
-
placeholder: t(l).cityPlaceholder,
|
|
378
|
-
error: f.value.fields.city
|
|
379
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
380
|
-
c(O, {
|
|
381
|
-
modelValue: s.state,
|
|
382
|
-
"onUpdate:modelValue": n[10] || (n[10] = (m) => s.state = m),
|
|
383
|
-
name: "state",
|
|
384
|
-
autocomplete: "billing address-level1",
|
|
385
|
-
label: t(l).stateLabel,
|
|
386
|
-
placeholder: t(l).statePlaceholder,
|
|
387
|
-
error: h("state")
|
|
388
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
389
|
-
])
|
|
390
|
-
]),
|
|
391
|
-
f.value.generic ? (_(), E(t(oe), {
|
|
392
|
-
key: 0,
|
|
393
|
-
class: "mt-4",
|
|
394
|
-
title: f.value.generic
|
|
395
|
-
}, null, 8, ["title"])) : k("", !0),
|
|
396
|
-
c(t(K), {
|
|
397
|
-
type: "submit",
|
|
398
|
-
intent: "primary",
|
|
399
|
-
disabled: !t(b),
|
|
400
|
-
loading: a.isLoading || I.value,
|
|
401
|
-
class: "mt-4"
|
|
402
|
-
}, {
|
|
403
|
-
default: T(() => [
|
|
404
|
-
j(P(t(o)({
|
|
405
|
-
defaultMessage: "Save changes",
|
|
406
|
-
id: "billing_information_form.submit_button.label",
|
|
407
|
-
description: "The label for the submit button of the billing information form"
|
|
408
|
-
})), 1)
|
|
409
|
-
]),
|
|
410
|
-
_: 1
|
|
411
|
-
}, 8, ["disabled", "loading"])
|
|
412
|
-
], 32));
|
|
413
|
-
}
|
|
414
|
-
}), Ee = /* @__PURE__ */ x({
|
|
1
|
+
import { defineComponent as m, openBlock as p, createBlock as s, renderSlot as g, unref as e, withCtx as u, createVNode as y, normalizeProps as f, guardReactiveProps as _, createCommentVNode as v } from "vue";
|
|
2
|
+
import { _ as b } from "../../BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs";
|
|
3
|
+
import { b as S } from "../../api.es-QaC926Xu.mjs";
|
|
4
|
+
import { u as O } from "../../useCustomer-mQysxUwp.mjs";
|
|
5
|
+
import { u as j } from "../../useLoadInitialData-Bomj_1mo.mjs";
|
|
6
|
+
import { j as L, k as C, l as F } from "../../customElements-B8c354Nu.mjs";
|
|
7
|
+
const B = /* @__PURE__ */ m({
|
|
415
8
|
__name: "BillingInformationForm",
|
|
416
9
|
props: {
|
|
417
10
|
customer: { type: Object },
|
|
@@ -419,81 +12,71 @@ const Le = (a) => {
|
|
|
419
12
|
updateCustomer: { type: Function },
|
|
420
13
|
isLoading: { type: Boolean }
|
|
421
14
|
},
|
|
422
|
-
setup(
|
|
423
|
-
return (
|
|
15
|
+
setup(t) {
|
|
16
|
+
return (a, o) => (p(), s(b, {
|
|
424
17
|
class: "sv-billing-form sv-root sv-component",
|
|
425
|
-
customer:
|
|
426
|
-
"update-customer":
|
|
427
|
-
"is-loading":
|
|
428
|
-
"api-error":
|
|
18
|
+
customer: t.customer,
|
|
19
|
+
"update-customer": t.updateCustomer,
|
|
20
|
+
"is-loading": t.isLoading,
|
|
21
|
+
"api-error": t.apiError
|
|
429
22
|
}, null, 8, ["customer", "update-customer", "is-loading", "api-error"]));
|
|
430
23
|
}
|
|
431
|
-
}),
|
|
24
|
+
}), $ = /* @__PURE__ */ m({
|
|
432
25
|
__name: "BillingInformationForm.entry.view",
|
|
433
26
|
props: {
|
|
434
|
-
portalToken: { type: Object },
|
|
435
27
|
environment: { type: String },
|
|
436
28
|
locale: { type: String },
|
|
437
29
|
dateLocale: { type: String },
|
|
438
30
|
messages: { type: Object },
|
|
439
|
-
|
|
440
|
-
secondaryColor: { type: String },
|
|
441
|
-
isShadowRoot: { type: Boolean },
|
|
31
|
+
portalToken: { type: Object },
|
|
442
32
|
experimentalFeatures: { type: Array },
|
|
443
33
|
logLevel: { type: String },
|
|
444
34
|
onLog: { type: Function },
|
|
445
|
-
allowedPortalTypes: { type: Array },
|
|
446
|
-
portalObject: { type: Object },
|
|
447
35
|
cssOverrides: { type: [String, Array] },
|
|
448
|
-
branding: { type: Object }
|
|
36
|
+
branding: { type: Object },
|
|
37
|
+
portalObject: { type: null }
|
|
449
38
|
},
|
|
450
|
-
setup(
|
|
451
|
-
const o =
|
|
452
|
-
return
|
|
453
|
-
customer:
|
|
454
|
-
isLoading:
|
|
455
|
-
updateCustomer:
|
|
456
|
-
apiError:
|
|
39
|
+
setup(t) {
|
|
40
|
+
const o = t.portalObject.customer_id, { customer: l, get: n, update: r } = O({ customerId: o });
|
|
41
|
+
return j(n.execute()), (i, c) => g(i.$slots, "default", {
|
|
42
|
+
customer: e(l),
|
|
43
|
+
isLoading: e(n).isPending.value || e(r).isPending.value,
|
|
44
|
+
updateCustomer: e(r),
|
|
45
|
+
apiError: e(r).error.value ? e(S)(e(r).error.value) : void 0
|
|
457
46
|
});
|
|
458
47
|
}
|
|
459
|
-
}),
|
|
48
|
+
}), k = /* @__PURE__ */ m({
|
|
460
49
|
__name: "BillingInformationForm.entry",
|
|
461
50
|
props: {
|
|
462
|
-
portalToken: { type: Object },
|
|
463
51
|
environment: { type: String },
|
|
464
52
|
locale: { type: String },
|
|
465
53
|
dateLocale: { type: String },
|
|
466
54
|
messages: { type: Object },
|
|
467
|
-
|
|
468
|
-
secondaryColor: { type: String },
|
|
469
|
-
isShadowRoot: { type: Boolean },
|
|
55
|
+
portalToken: { type: Object },
|
|
470
56
|
experimentalFeatures: { type: Array },
|
|
471
57
|
logLevel: { type: String },
|
|
472
58
|
onLog: { type: Function },
|
|
473
|
-
allowedPortalTypes: { type: Array },
|
|
474
|
-
portalObject: { type: Object },
|
|
475
59
|
cssOverrides: { type: [String, Array] },
|
|
476
|
-
branding: { type: Object }
|
|
60
|
+
branding: { type: Object },
|
|
61
|
+
portalObject: { type: null }
|
|
477
62
|
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
return (o, l) => (_(), E(t(re), {
|
|
63
|
+
setup(t) {
|
|
64
|
+
const a = C("billing-information-form");
|
|
65
|
+
return (o, l) => (p(), s(e(L), {
|
|
482
66
|
entry: o.$props,
|
|
483
|
-
"component-name":
|
|
484
|
-
"allowed-portal-types": ["CUSTOMER"]
|
|
485
|
-
onError: l[0] || (l[0] = (i) => o.$emit("error", i))
|
|
67
|
+
"component-name": e(a),
|
|
68
|
+
"allowed-portal-types": ["CUSTOMER"]
|
|
486
69
|
}, {
|
|
487
|
-
default:
|
|
488
|
-
|
|
489
|
-
default:
|
|
490
|
-
|
|
70
|
+
default: u(() => [
|
|
71
|
+
y($, f(_(o.$props)), {
|
|
72
|
+
default: u(({ customer: n, updateCustomer: r, isLoading: i, apiError: c }) => [
|
|
73
|
+
n ? (p(), s(B, {
|
|
491
74
|
key: 0,
|
|
492
|
-
customer:
|
|
493
|
-
"is-loading":
|
|
494
|
-
"update-customer": ({ payload:
|
|
495
|
-
"api-error":
|
|
496
|
-
}, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) :
|
|
75
|
+
customer: n,
|
|
76
|
+
"is-loading": i,
|
|
77
|
+
"update-customer": ({ payload: d }) => r.execute(d),
|
|
78
|
+
"api-error": c
|
|
79
|
+
}, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) : v("", !0)
|
|
497
80
|
]),
|
|
498
81
|
_: 1
|
|
499
82
|
}, 16)
|
|
@@ -501,10 +84,10 @@ const Le = (a) => {
|
|
|
501
84
|
_: 1
|
|
502
85
|
}, 8, ["entry", "component-name"]));
|
|
503
86
|
}
|
|
504
|
-
}), { define:
|
|
505
|
-
|
|
87
|
+
}), { define: P } = F(
|
|
88
|
+
k,
|
|
506
89
|
"billing-information-form"
|
|
507
90
|
);
|
|
508
91
|
export {
|
|
509
|
-
|
|
92
|
+
P as defineSolvimonBillingInformationForm
|
|
510
93
|
};
|
|
@@ -1,75 +1,66 @@
|
|
|
1
|
-
import { defineComponent as m, renderSlot as
|
|
2
|
-
import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { D as
|
|
4
|
-
import { u as O } from "../../useLoadInitialData-
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
1
|
+
import { defineComponent as m, renderSlot as y, unref as n, openBlock as l, createBlock as u, withCtx as p, createVNode as i, normalizeProps as d, guardReactiveProps as g } from "vue";
|
|
2
|
+
import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs";
|
|
3
|
+
import { D as _ } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
|
|
4
|
+
import { u as O } from "../../useLoadInitialData-Bomj_1mo.mjs";
|
|
5
|
+
import { u as S } from "../../usePaymentMethods-BDdetXts.mjs";
|
|
6
|
+
import { j as b, k as h, l as j } from "../../customElements-B8c354Nu.mjs";
|
|
7
7
|
const v = /* @__PURE__ */ m({
|
|
8
8
|
__name: "CustomerPaymentMethods.entry.view",
|
|
9
9
|
props: {
|
|
10
10
|
portalObject: { type: Object },
|
|
11
|
-
portalToken: { type: Object },
|
|
12
11
|
environment: { type: String },
|
|
13
12
|
locale: { type: String },
|
|
14
13
|
dateLocale: { type: String },
|
|
15
14
|
messages: { type: Object },
|
|
16
|
-
|
|
17
|
-
secondaryColor: { type: String },
|
|
18
|
-
isShadowRoot: { type: Boolean },
|
|
15
|
+
portalToken: { type: Object },
|
|
19
16
|
experimentalFeatures: { type: Array },
|
|
20
17
|
logLevel: { type: String },
|
|
21
18
|
onLog: { type: Function },
|
|
22
|
-
allowedPortalTypes: { type: Array },
|
|
23
19
|
cssOverrides: { type: [String, Array] },
|
|
24
20
|
branding: { type: Object },
|
|
25
21
|
configuration: { type: Object }
|
|
26
22
|
},
|
|
27
|
-
setup(
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
customerId:
|
|
31
|
-
pageSize: ((
|
|
32
|
-
}), { isLoading:
|
|
33
|
-
return (
|
|
34
|
-
paymentMethods: a
|
|
35
|
-
isLoading:
|
|
23
|
+
setup(r) {
|
|
24
|
+
var o;
|
|
25
|
+
const e = r, t = e.portalObject.customer_id, a = S({
|
|
26
|
+
customerId: t,
|
|
27
|
+
pageSize: ((o = e.configuration) == null ? void 0 : o.maxItems) || _
|
|
28
|
+
}), { isLoading: s } = O(a.fetchInitial());
|
|
29
|
+
return (c, M) => y(c.$slots, "default", {
|
|
30
|
+
paymentMethods: n(a).items.value,
|
|
31
|
+
isLoading: n(s)
|
|
36
32
|
});
|
|
37
33
|
}
|
|
38
|
-
}),
|
|
34
|
+
}), L = /* @__PURE__ */ m({
|
|
39
35
|
__name: "CustomerPaymentMethods.entry",
|
|
40
36
|
props: {
|
|
41
37
|
portalObject: { type: Object },
|
|
42
|
-
portalToken: { type: Object },
|
|
43
38
|
environment: { type: String },
|
|
44
39
|
locale: { type: String },
|
|
45
40
|
dateLocale: { type: String },
|
|
46
41
|
messages: { type: Object },
|
|
47
|
-
|
|
48
|
-
secondaryColor: { type: String },
|
|
49
|
-
isShadowRoot: { type: Boolean },
|
|
42
|
+
portalToken: { type: Object },
|
|
50
43
|
experimentalFeatures: { type: Array },
|
|
51
44
|
logLevel: { type: String },
|
|
52
45
|
onLog: { type: Function },
|
|
53
|
-
allowedPortalTypes: { type: Array },
|
|
54
46
|
cssOverrides: { type: [String, Array] },
|
|
55
47
|
branding: { type: Object },
|
|
56
48
|
configuration: { type: Object }
|
|
57
49
|
},
|
|
58
|
-
setup(
|
|
59
|
-
const
|
|
60
|
-
return (
|
|
61
|
-
entry:
|
|
62
|
-
"component-name":
|
|
63
|
-
"allowed-portal-types": ["CUSTOMER"]
|
|
64
|
-
onError: t[0] || (t[0] = (o) => e.$emit("error", o))
|
|
50
|
+
setup(r) {
|
|
51
|
+
const e = h("customer-payment-methods");
|
|
52
|
+
return (t, a) => (l(), u(n(b), {
|
|
53
|
+
entry: t.$props,
|
|
54
|
+
"component-name": n(e),
|
|
55
|
+
"allowed-portal-types": ["CUSTOMER"]
|
|
65
56
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
i(v, g(
|
|
68
|
-
default:
|
|
57
|
+
default: p(() => [
|
|
58
|
+
i(v, d(g(t.$props)), {
|
|
59
|
+
default: p(({ paymentMethods: s, isLoading: o }) => [
|
|
69
60
|
i(f, {
|
|
70
|
-
configuration:
|
|
71
|
-
"payment-methods":
|
|
72
|
-
"is-loading":
|
|
61
|
+
configuration: r.configuration,
|
|
62
|
+
"payment-methods": s,
|
|
63
|
+
"is-loading": o
|
|
73
64
|
}, null, 8, ["configuration", "payment-methods", "is-loading"])
|
|
74
65
|
]),
|
|
75
66
|
_: 1
|
|
@@ -78,10 +69,10 @@ const v = /* @__PURE__ */ m({
|
|
|
78
69
|
_: 1
|
|
79
70
|
}, 8, ["entry", "component-name"]));
|
|
80
71
|
}
|
|
81
|
-
}), { define:
|
|
82
|
-
|
|
72
|
+
}), { define: I } = j(
|
|
73
|
+
L,
|
|
83
74
|
"customer-payment-methods"
|
|
84
75
|
);
|
|
85
76
|
export {
|
|
86
|
-
|
|
77
|
+
I as defineSolvimonCustomerPaymentMethods
|
|
87
78
|
};
|