@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,828 +0,0 @@
|
|
|
1
|
-
import { r as ge, f as P, a as V } from "./formControl-BZQLHnOO.mjs";
|
|
2
|
-
import { d as ye, A as re, u as be, e as ve, c as oe, _ as I, i as Ce } from "./useCustomerFormLabels-D4oDnfxA.mjs";
|
|
3
|
-
import { defineComponent as te, computed as C, openBlock as y, createBlock as M, withCtx as j, createTextVNode as se, toDisplayString as ie, markRaw as Ne, ref as H, watch as X, toRefs as Se, createElementBlock as k, createVNode as E, unref as t, createSlots as Me, createElementVNode as Y, normalizeClass as ee, createCommentVNode as N, shallowRef as Ae, useModel as Le, reactive as Ve, Fragment as Pe, mergeModels as Ie } from "vue";
|
|
4
|
-
import { r as $e } from "./sessionReference-B8Dbmx5t.mjs";
|
|
5
|
-
import { c as Ee } from "./index.es-BrVTOW5D.mjs";
|
|
6
|
-
import { c as Re } from "./countryData.es-BegoD-cZ.mjs";
|
|
7
|
-
import { d as Te, a as de } from "./customElements-DK4GKNJG.mjs";
|
|
8
|
-
import { u as Fe, _ as ke } from "./Input.vue.es-BLyHcmu4.mjs";
|
|
9
|
-
import { u as z, _ as Ge } from "./Label.vue.es-es7ZUBSP.mjs";
|
|
10
|
-
import { _ as le } from "./FormMessage.vue.es-CwMQpIAW.mjs";
|
|
11
|
-
import { g as ne } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
12
|
-
import { i as we } from "./useService-BwzIBIRp.mjs";
|
|
13
|
-
const ue = {
|
|
14
|
-
AF: "93",
|
|
15
|
-
AX: "358",
|
|
16
|
-
AL: "355",
|
|
17
|
-
DZ: "213",
|
|
18
|
-
AS: "1684",
|
|
19
|
-
AD: "376",
|
|
20
|
-
AO: "244",
|
|
21
|
-
AI: "1264",
|
|
22
|
-
AQ: "672",
|
|
23
|
-
AG: "1268",
|
|
24
|
-
AR: "54",
|
|
25
|
-
AM: "374",
|
|
26
|
-
AW: "297",
|
|
27
|
-
AU: "61",
|
|
28
|
-
AT: "43",
|
|
29
|
-
AZ: "994",
|
|
30
|
-
BS: "1242",
|
|
31
|
-
BH: "973",
|
|
32
|
-
BD: "880",
|
|
33
|
-
BB: "1246",
|
|
34
|
-
BY: "375",
|
|
35
|
-
BE: "32",
|
|
36
|
-
BZ: "501",
|
|
37
|
-
BJ: "229",
|
|
38
|
-
BM: "1441",
|
|
39
|
-
BT: "975",
|
|
40
|
-
BO: "591",
|
|
41
|
-
BA: "387",
|
|
42
|
-
BW: "267",
|
|
43
|
-
BR: "55",
|
|
44
|
-
IO: "246",
|
|
45
|
-
BN: "673",
|
|
46
|
-
BG: "359",
|
|
47
|
-
BF: "226",
|
|
48
|
-
BI: "257",
|
|
49
|
-
KH: "855",
|
|
50
|
-
CM: "237",
|
|
51
|
-
CA: "1",
|
|
52
|
-
CV: "238",
|
|
53
|
-
KY: "1345",
|
|
54
|
-
CF: "236",
|
|
55
|
-
TD: "235",
|
|
56
|
-
CL: "56",
|
|
57
|
-
CN: "86",
|
|
58
|
-
CX: "61",
|
|
59
|
-
CC: "61",
|
|
60
|
-
CO: "57",
|
|
61
|
-
KM: "269",
|
|
62
|
-
CG: "242",
|
|
63
|
-
CD: "243",
|
|
64
|
-
CK: "682",
|
|
65
|
-
CR: "506",
|
|
66
|
-
CI: "225",
|
|
67
|
-
HR: "385",
|
|
68
|
-
CU: "53",
|
|
69
|
-
CW: "599",
|
|
70
|
-
CY: "357",
|
|
71
|
-
CZ: "420",
|
|
72
|
-
DK: "45",
|
|
73
|
-
DJ: "253",
|
|
74
|
-
DM: "1767",
|
|
75
|
-
DO: "1809",
|
|
76
|
-
EC: "593",
|
|
77
|
-
EG: "20",
|
|
78
|
-
SV: "503",
|
|
79
|
-
GQ: "240",
|
|
80
|
-
ER: "291",
|
|
81
|
-
EE: "372",
|
|
82
|
-
ET: "251",
|
|
83
|
-
FK: "500",
|
|
84
|
-
FO: "298",
|
|
85
|
-
FJ: "679",
|
|
86
|
-
FI: "358",
|
|
87
|
-
FR: "33",
|
|
88
|
-
GF: "594",
|
|
89
|
-
PF: "689",
|
|
90
|
-
TF: "262",
|
|
91
|
-
GA: "241",
|
|
92
|
-
GM: "220",
|
|
93
|
-
GE: "995",
|
|
94
|
-
DE: "49",
|
|
95
|
-
GH: "233",
|
|
96
|
-
GI: "350",
|
|
97
|
-
GR: "30",
|
|
98
|
-
GL: "299",
|
|
99
|
-
GD: "1473",
|
|
100
|
-
GP: "590",
|
|
101
|
-
GU: "1671",
|
|
102
|
-
GT: "502",
|
|
103
|
-
GG: "44",
|
|
104
|
-
GN: "224",
|
|
105
|
-
GW: "245",
|
|
106
|
-
GY: "592",
|
|
107
|
-
HT: "509",
|
|
108
|
-
VA: "39",
|
|
109
|
-
HN: "504",
|
|
110
|
-
HK: "852",
|
|
111
|
-
HU: "36",
|
|
112
|
-
IS: "354",
|
|
113
|
-
IN: "91",
|
|
114
|
-
ID: "62",
|
|
115
|
-
IR: "98",
|
|
116
|
-
IQ: "964",
|
|
117
|
-
IE: "353",
|
|
118
|
-
IM: "44",
|
|
119
|
-
IL: "972",
|
|
120
|
-
IT: "39",
|
|
121
|
-
JM: "1876",
|
|
122
|
-
JP: "81",
|
|
123
|
-
JE: "44",
|
|
124
|
-
JO: "962",
|
|
125
|
-
KZ: "7",
|
|
126
|
-
KE: "254",
|
|
127
|
-
KI: "686",
|
|
128
|
-
KR: "82",
|
|
129
|
-
KP: "850",
|
|
130
|
-
KW: "965",
|
|
131
|
-
KG: "996",
|
|
132
|
-
LA: "856",
|
|
133
|
-
LV: "371",
|
|
134
|
-
LB: "961",
|
|
135
|
-
LS: "266",
|
|
136
|
-
LR: "231",
|
|
137
|
-
LY: "218",
|
|
138
|
-
LI: "423",
|
|
139
|
-
LT: "370",
|
|
140
|
-
LU: "352",
|
|
141
|
-
MO: "853",
|
|
142
|
-
MK: "389",
|
|
143
|
-
MG: "261",
|
|
144
|
-
MW: "265",
|
|
145
|
-
MY: "60",
|
|
146
|
-
MV: "960",
|
|
147
|
-
ML: "223",
|
|
148
|
-
MT: "356",
|
|
149
|
-
MH: "692",
|
|
150
|
-
MQ: "596",
|
|
151
|
-
MR: "222",
|
|
152
|
-
MU: "230",
|
|
153
|
-
YT: "262",
|
|
154
|
-
MX: "52",
|
|
155
|
-
FM: "691",
|
|
156
|
-
MD: "373",
|
|
157
|
-
MC: "377",
|
|
158
|
-
MN: "976",
|
|
159
|
-
ME: "382",
|
|
160
|
-
MS: "1664",
|
|
161
|
-
MA: "212",
|
|
162
|
-
MZ: "258",
|
|
163
|
-
MM: "95",
|
|
164
|
-
NA: "264",
|
|
165
|
-
NR: "674",
|
|
166
|
-
NP: "977",
|
|
167
|
-
NL: "31",
|
|
168
|
-
NC: "687",
|
|
169
|
-
NZ: "64",
|
|
170
|
-
NI: "505",
|
|
171
|
-
NE: "227",
|
|
172
|
-
NG: "234",
|
|
173
|
-
NU: "683",
|
|
174
|
-
NF: "672",
|
|
175
|
-
MP: "1670",
|
|
176
|
-
NO: "47",
|
|
177
|
-
OM: "968",
|
|
178
|
-
PK: "92",
|
|
179
|
-
PW: "680",
|
|
180
|
-
PS: "970",
|
|
181
|
-
PA: "507",
|
|
182
|
-
PG: "675",
|
|
183
|
-
PY: "595",
|
|
184
|
-
PE: "51",
|
|
185
|
-
PH: "63",
|
|
186
|
-
PN: "64",
|
|
187
|
-
PL: "48",
|
|
188
|
-
PT: "351",
|
|
189
|
-
PR: "1787",
|
|
190
|
-
QA: "974",
|
|
191
|
-
RE: "262",
|
|
192
|
-
RO: "40",
|
|
193
|
-
RU: "7",
|
|
194
|
-
RW: "250",
|
|
195
|
-
BL: "590",
|
|
196
|
-
SH: "290",
|
|
197
|
-
KN: "1869",
|
|
198
|
-
LC: "1758",
|
|
199
|
-
MF: "590",
|
|
200
|
-
PM: "508",
|
|
201
|
-
VC: "1784",
|
|
202
|
-
WS: "685",
|
|
203
|
-
SM: "378",
|
|
204
|
-
ST: "239",
|
|
205
|
-
SA: "966",
|
|
206
|
-
SN: "221",
|
|
207
|
-
RS: "381",
|
|
208
|
-
SC: "248",
|
|
209
|
-
SL: "232",
|
|
210
|
-
SG: "65",
|
|
211
|
-
SK: "421",
|
|
212
|
-
SI: "386",
|
|
213
|
-
SB: "677",
|
|
214
|
-
SO: "252",
|
|
215
|
-
ZA: "27",
|
|
216
|
-
GS: "500",
|
|
217
|
-
ES: "34",
|
|
218
|
-
LK: "94",
|
|
219
|
-
SD: "249",
|
|
220
|
-
SR: "597",
|
|
221
|
-
SJ: "47",
|
|
222
|
-
SZ: "268",
|
|
223
|
-
SE: "46",
|
|
224
|
-
CH: "41",
|
|
225
|
-
SY: "963",
|
|
226
|
-
TW: "886",
|
|
227
|
-
TJ: "992",
|
|
228
|
-
TZ: "255",
|
|
229
|
-
TH: "66",
|
|
230
|
-
TL: "670",
|
|
231
|
-
TG: "228",
|
|
232
|
-
TK: "690",
|
|
233
|
-
TO: "676",
|
|
234
|
-
TT: "1868",
|
|
235
|
-
TN: "216",
|
|
236
|
-
TR: "90",
|
|
237
|
-
TM: "993",
|
|
238
|
-
TC: "1649",
|
|
239
|
-
TV: "688",
|
|
240
|
-
UG: "256",
|
|
241
|
-
UA: "380",
|
|
242
|
-
AE: "971",
|
|
243
|
-
GB: "44",
|
|
244
|
-
US: "1",
|
|
245
|
-
UM: "1",
|
|
246
|
-
UY: "598",
|
|
247
|
-
UZ: "998",
|
|
248
|
-
VU: "678",
|
|
249
|
-
VE: "58",
|
|
250
|
-
VN: "84",
|
|
251
|
-
VG: "1284",
|
|
252
|
-
VI: "1340",
|
|
253
|
-
WF: "681",
|
|
254
|
-
EH: "212",
|
|
255
|
-
YE: "967",
|
|
256
|
-
ZM: "260",
|
|
257
|
-
ZW: "263"
|
|
258
|
-
}, Be = {
|
|
259
|
-
1: "US",
|
|
260
|
-
7: "RU",
|
|
261
|
-
39: "IT",
|
|
262
|
-
44: "GB",
|
|
263
|
-
47: "NO",
|
|
264
|
-
61: "AU",
|
|
265
|
-
64: "NZ",
|
|
266
|
-
212: "MA",
|
|
267
|
-
262: "RE",
|
|
268
|
-
358: "FI",
|
|
269
|
-
500: "FK",
|
|
270
|
-
590: "GP",
|
|
271
|
-
672: "NF"
|
|
272
|
-
}, De = /* @__PURE__ */ new Set(["IT", "VA", "SM", "CI", "CG", "GA"]), ce = Re.flatMap(({ key: e }) => {
|
|
273
|
-
const a = ue[e];
|
|
274
|
-
return a ? [{ countryCode: e, dialCode: a }] : [];
|
|
275
|
-
}), Oe = (e) => ue[e], Ue = (e) => String.fromCodePoint(
|
|
276
|
-
...[...e.toUpperCase()].map((a) => 127462 + a.charCodeAt(0) - 65)
|
|
277
|
-
), B = (e) => /^\s*(\+|00)/.test(e), ae = (e) => e.replace(/\D/g, ""), me = (e) => ae(e.trim().replace(/^00/, "")), Z = (e, a) => {
|
|
278
|
-
var o;
|
|
279
|
-
if (!B(e))
|
|
280
|
-
return { nationalNumber: ae(e) };
|
|
281
|
-
const r = me(e), i = ce.filter(({ dialCode: c }) => r.startsWith(c)), s = Math.max(0, ...i.map(({ dialCode: c }) => c.length)), u = i.filter(({ dialCode: c }) => c.length === s);
|
|
282
|
-
if (u.length === 0)
|
|
283
|
-
return { nationalNumber: r };
|
|
284
|
-
const b = u[0].dialCode;
|
|
285
|
-
return { countryCode: ((o = u.find(({ countryCode: c }) => c === a)) == null ? void 0 : o.countryCode) ?? Be[b] ?? u[0].countryCode, nationalNumber: r.slice(b.length) };
|
|
286
|
-
}, _e = (e, a) => {
|
|
287
|
-
if (B(a)) {
|
|
288
|
-
const s = me(a);
|
|
289
|
-
return s ? `+${s}` : null;
|
|
290
|
-
}
|
|
291
|
-
const o = e ? Oe(e) : void 0, r = ae(a);
|
|
292
|
-
if (!o || !e || !r)
|
|
293
|
-
return null;
|
|
294
|
-
const i = De.has(e) ? r : r.replace(/^0/, "");
|
|
295
|
-
return `+${o}${i}`;
|
|
296
|
-
}, xe = /* @__PURE__ */ te({
|
|
297
|
-
__name: "PhoneInputFlag",
|
|
298
|
-
props: {
|
|
299
|
-
countryCode: {}
|
|
300
|
-
},
|
|
301
|
-
setup(e) {
|
|
302
|
-
const a = e, o = C(() => Ue(a.countryCode));
|
|
303
|
-
return (r, i) => (y(), M(Te, {
|
|
304
|
-
tag: "span",
|
|
305
|
-
"aria-hidden": "true",
|
|
306
|
-
color: "inherit",
|
|
307
|
-
class: "leading-none"
|
|
308
|
-
}, {
|
|
309
|
-
default: j(() => [
|
|
310
|
-
se(ie(o.value), 1)
|
|
311
|
-
]),
|
|
312
|
-
_: 1
|
|
313
|
-
}));
|
|
314
|
-
}
|
|
315
|
-
}), Ke = ["id"], We = ["aria-labelledby"], He = ["id"], J = "rounded-none border-0 bg-transparent focus-within:border-0 focus-within:ring-0", Ze = /* @__PURE__ */ te({
|
|
316
|
-
__name: "PhoneInput",
|
|
317
|
-
props: {
|
|
318
|
-
modelValue: { default: null },
|
|
319
|
-
label: {},
|
|
320
|
-
labelScreenReaderOnly: { type: Boolean },
|
|
321
|
-
placeholder: {},
|
|
322
|
-
defaultCountry: {},
|
|
323
|
-
required: { type: Boolean, default: !1 },
|
|
324
|
-
disabled: { type: Boolean, default: !1 },
|
|
325
|
-
size: { default: "md" },
|
|
326
|
-
error: {},
|
|
327
|
-
name: { default: "phone" },
|
|
328
|
-
form: {}
|
|
329
|
-
},
|
|
330
|
-
emits: ["update:modelValue"],
|
|
331
|
-
setup(e, { emit: a }) {
|
|
332
|
-
const o = e, r = a, i = de(), { formatMessage: s, formatDisplayName: u } = i, b = z("phone-input-label-"), A = z("phone-input-number-"), c = z("phone-input-error-"), v = C(() => !we(o.error)), m = (l) => u(l, { type: "region" }) ?? ne(l), T = C(
|
|
333
|
-
() => ce.map(({ countryCode: l, dialCode: f }) => {
|
|
334
|
-
const W = m(l);
|
|
335
|
-
return {
|
|
336
|
-
value: l,
|
|
337
|
-
label: W,
|
|
338
|
-
subLabel: `+${f}`,
|
|
339
|
-
selectedLabel: `+${f}`,
|
|
340
|
-
searchValues: [W, ne(l), `+${f}`],
|
|
341
|
-
labelPrefixComponent: Ne({
|
|
342
|
-
component: xe,
|
|
343
|
-
props: { countryCode: l }
|
|
344
|
-
})
|
|
345
|
-
};
|
|
346
|
-
}).sort((l, f) => l.label.localeCompare(f.label, i.locale))
|
|
347
|
-
), L = H(), p = C(() => L.value ?? o.defaultCountry), h = H("");
|
|
348
|
-
let G;
|
|
349
|
-
X(
|
|
350
|
-
() => o.modelValue,
|
|
351
|
-
(l) => {
|
|
352
|
-
if (l === G)
|
|
353
|
-
return;
|
|
354
|
-
if (G = l, !l) {
|
|
355
|
-
h.value = "", L.value = void 0;
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
const { countryCode: f, nationalNumber: W } = Z(l, p.value);
|
|
359
|
-
f ? (L.value = f, h.value = W) : h.value = l;
|
|
360
|
-
},
|
|
361
|
-
{ immediate: !0 }
|
|
362
|
-
);
|
|
363
|
-
const S = () => {
|
|
364
|
-
const l = _e(p.value, h.value);
|
|
365
|
-
G = l, l !== o.modelValue && r("update:modelValue", l);
|
|
366
|
-
};
|
|
367
|
-
X(
|
|
368
|
-
() => o.defaultCountry,
|
|
369
|
-
() => {
|
|
370
|
-
L.value || S();
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
const D = (l) => {
|
|
374
|
-
B(h.value) && (h.value = Z(h.value, p.value).nationalNumber), L.value = l || void 0, S(), l && fe();
|
|
375
|
-
}, g = (l) => {
|
|
376
|
-
if (h.value = typeof l == "string" ? l : "", B(h.value)) {
|
|
377
|
-
const { countryCode: f } = Z(h.value, p.value);
|
|
378
|
-
f && (L.value = f);
|
|
379
|
-
}
|
|
380
|
-
S();
|
|
381
|
-
}, n = () => {
|
|
382
|
-
if (!B(h.value))
|
|
383
|
-
return;
|
|
384
|
-
const { countryCode: l, nationalNumber: f } = Z(
|
|
385
|
-
h.value,
|
|
386
|
-
p.value
|
|
387
|
-
);
|
|
388
|
-
l && (h.value = f, S());
|
|
389
|
-
}, O = (l) => {
|
|
390
|
-
l.target instanceof HTMLInputElement && l.target.select();
|
|
391
|
-
}, U = C(
|
|
392
|
-
() => p.value ? s(
|
|
393
|
-
{
|
|
394
|
-
id: "phone_input.country_select.label_with_country",
|
|
395
|
-
defaultMessage: "Country code: {country}",
|
|
396
|
-
description: "Screen reader label of the phone number country code select, with the selected country"
|
|
397
|
-
},
|
|
398
|
-
{ country: m(p.value) }
|
|
399
|
-
) : s({
|
|
400
|
-
id: "phone_input.country_select.label",
|
|
401
|
-
defaultMessage: "Country code",
|
|
402
|
-
description: "Screen reader label of the phone number country code select"
|
|
403
|
-
})
|
|
404
|
-
), _ = C(() => ({
|
|
405
|
-
placeholderDefault: s({
|
|
406
|
-
id: "phone_input.country_select.placeholder",
|
|
407
|
-
defaultMessage: "Code",
|
|
408
|
-
description: "Placeholder of the phone number country code select when no country is selected"
|
|
409
|
-
}),
|
|
410
|
-
placeholderSearch: s({
|
|
411
|
-
id: "phone_input.country_select.search_placeholder",
|
|
412
|
-
defaultMessage: "Search",
|
|
413
|
-
description: "Placeholder of the phone number country code select while searching"
|
|
414
|
-
}),
|
|
415
|
-
noResults: (l) => s(
|
|
416
|
-
{
|
|
417
|
-
id: "phone_input.country_select.no_results",
|
|
418
|
-
defaultMessage: "No countries match {search}.",
|
|
419
|
-
description: "Shown when no country name or calling code matches the search in the phone number country code select"
|
|
420
|
-
},
|
|
421
|
-
{ search: l }
|
|
422
|
-
)
|
|
423
|
-
})), x = {
|
|
424
|
-
xs: "w-28",
|
|
425
|
-
sm: "w-28",
|
|
426
|
-
md: "w-32",
|
|
427
|
-
lg: "w-36",
|
|
428
|
-
xl: "w-36"
|
|
429
|
-
}, { size: $, disabled: F } = Se(o), { wrapperClasses: K } = Fe({
|
|
430
|
-
size: $,
|
|
431
|
-
disabled: F,
|
|
432
|
-
hasError: v,
|
|
433
|
-
ring: H(!0)
|
|
434
|
-
}), w = {
|
|
435
|
-
xs: "pl-1",
|
|
436
|
-
sm: "pl-2",
|
|
437
|
-
md: "pl-4",
|
|
438
|
-
lg: "pl-4",
|
|
439
|
-
xl: "pl-4"
|
|
440
|
-
}, d = C(
|
|
441
|
-
() => p.value ? "pl-2 pr-0" : `${w[o.size]} pr-0`
|
|
442
|
-
), pe = C(
|
|
443
|
-
() => p.value && w[o.size] === "pl-4" ? `${J} pl-1` : J
|
|
444
|
-
), q = H(), { width: he } = Ee(q), fe = () => {
|
|
445
|
-
var l, f;
|
|
446
|
-
(f = (l = q.value) == null ? void 0 : l.querySelector(`#${A}`)) == null || f.focus();
|
|
447
|
-
};
|
|
448
|
-
return (l, f) => (y(), k("div", null, [
|
|
449
|
-
E(Ge, {
|
|
450
|
-
id: t(b),
|
|
451
|
-
for: t(A),
|
|
452
|
-
required: e.required,
|
|
453
|
-
"screen-reader-only": e.labelScreenReaderOnly
|
|
454
|
-
}, Me({
|
|
455
|
-
default: j(() => [
|
|
456
|
-
se(ie(e.label) + " ", 1)
|
|
457
|
-
]),
|
|
458
|
-
_: 2
|
|
459
|
-
}, [
|
|
460
|
-
v.value && !e.labelScreenReaderOnly ? {
|
|
461
|
-
name: "suffix",
|
|
462
|
-
fn: j(() => [
|
|
463
|
-
Y("div", { id: t(c) }, [
|
|
464
|
-
E(le, { message: e.error }, null, 8, ["message"])
|
|
465
|
-
], 8, Ke)
|
|
466
|
-
]),
|
|
467
|
-
key: "0"
|
|
468
|
-
} : void 0
|
|
469
|
-
]), 1032, ["id", "for", "required", "screen-reader-only"]),
|
|
470
|
-
Y("div", {
|
|
471
|
-
ref_key: "fieldRef",
|
|
472
|
-
ref: q,
|
|
473
|
-
role: "group",
|
|
474
|
-
"aria-labelledby": t(b),
|
|
475
|
-
class: ee(["flex flex-row items-end", t(K)])
|
|
476
|
-
}, [
|
|
477
|
-
Y("div", {
|
|
478
|
-
class: ee(["shrink-0", x[t($)]]),
|
|
479
|
-
onFocusin: O
|
|
480
|
-
}, [
|
|
481
|
-
E(ye, {
|
|
482
|
-
"single-model-value": p.value ?? null,
|
|
483
|
-
options: T.value,
|
|
484
|
-
"options-order-properties": null,
|
|
485
|
-
label: U.value,
|
|
486
|
-
"label-screen-reader-only": "",
|
|
487
|
-
i18n: _.value,
|
|
488
|
-
size: t($),
|
|
489
|
-
disabled: t(F),
|
|
490
|
-
required: "",
|
|
491
|
-
invalid: v.value,
|
|
492
|
-
name: `${e.name}-country`,
|
|
493
|
-
form: e.form,
|
|
494
|
-
"dropdown-width": t(he) || void 0,
|
|
495
|
-
"wrapper-class": pe.value,
|
|
496
|
-
"input-class": d.value,
|
|
497
|
-
condensed: "",
|
|
498
|
-
"onUpdate:singleModelValue": D
|
|
499
|
-
}, null, 8, ["single-model-value", "options", "label", "i18n", "size", "disabled", "invalid", "name", "form", "dropdown-width", "wrapper-class", "input-class"])
|
|
500
|
-
], 34),
|
|
501
|
-
E(ke, {
|
|
502
|
-
id: t(A),
|
|
503
|
-
"model-value": h.value,
|
|
504
|
-
type: "tel",
|
|
505
|
-
autocomplete: "tel",
|
|
506
|
-
class: "grow",
|
|
507
|
-
"wrapper-class": J,
|
|
508
|
-
"has-focus-styles": !1,
|
|
509
|
-
size: t($),
|
|
510
|
-
name: e.name,
|
|
511
|
-
form: e.form,
|
|
512
|
-
required: e.required,
|
|
513
|
-
disabled: t(F),
|
|
514
|
-
invalid: v.value,
|
|
515
|
-
"aria-required": e.required || void 0,
|
|
516
|
-
"aria-invalid": v.value || void 0,
|
|
517
|
-
"aria-describedby": v.value ? t(c) : void 0,
|
|
518
|
-
placeholder: e.placeholder,
|
|
519
|
-
"onUpdate:modelValue": g,
|
|
520
|
-
onBlur: n
|
|
521
|
-
}, null, 8, ["id", "model-value", "size", "name", "form", "required", "disabled", "invalid", "aria-required", "aria-invalid", "aria-describedby", "placeholder"])
|
|
522
|
-
], 10, We),
|
|
523
|
-
v.value && e.labelScreenReaderOnly ? (y(), k("div", {
|
|
524
|
-
key: 0,
|
|
525
|
-
id: t(c),
|
|
526
|
-
class: "mt-1"
|
|
527
|
-
}, [
|
|
528
|
-
E(le, { message: e.error }, null, 8, ["message"])
|
|
529
|
-
], 8, He)) : N("", !0)
|
|
530
|
-
]));
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
let Q;
|
|
534
|
-
const qe = () => (Q ?? (Q = import("./addressFormats.data-dzBx49dw.mjs").catch((e) => {
|
|
535
|
-
throw Q = void 0, e;
|
|
536
|
-
})), Q), Ye = (e, a) => a && e.ADDRESS_FORMATS[a] || e.DEFAULT_ADDRESS_FORMAT, ze = (e, a) => !e.postalCode || new RegExp(`^(?:${e.postalCode})$`, "i").test(a.trim()), Je = (e) => {
|
|
537
|
-
const a = e.trim();
|
|
538
|
-
if (!/^\+?[\d\s\-().]+$/.test(a)) return !1;
|
|
539
|
-
const o = a.replace(/\D/g, "").length;
|
|
540
|
-
return o >= 7 && o <= 15;
|
|
541
|
-
}, R = (e, a) => ({
|
|
542
|
-
required: ge(() => e(a))
|
|
543
|
-
}), Qe = (e) => (a) => {
|
|
544
|
-
const o = e();
|
|
545
|
-
return typeof a != "string" || !a.trim() || !o || ze(o, a);
|
|
546
|
-
}, mt = (e, a, o) => {
|
|
547
|
-
const r = re[e];
|
|
548
|
-
return {
|
|
549
|
-
[r.line1]: R(o, r.line1),
|
|
550
|
-
[r.city]: R(o, r.city),
|
|
551
|
-
[r.state]: R(o, r.state),
|
|
552
|
-
[r.country]: R(o, r.country),
|
|
553
|
-
[r.postalCode]: {
|
|
554
|
-
...R(o, r.postalCode),
|
|
555
|
-
postalCodeFormat: {
|
|
556
|
-
$validator: Qe(a),
|
|
557
|
-
$message: "The postal code does not match the country"
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
}, pt = (e) => ({
|
|
562
|
-
shippingPhoneNumber: {
|
|
563
|
-
...R(e, "shippingPhoneNumber"),
|
|
564
|
-
phoneNumberFormat: {
|
|
565
|
-
$validator: (a) => typeof a != "string" || !a.trim() || Je(a),
|
|
566
|
-
$message: "The phone number is not valid"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
shippingLastName: R(e, "shippingLastName")
|
|
570
|
-
});
|
|
571
|
-
function ht({
|
|
572
|
-
isNeeded: e,
|
|
573
|
-
countries: a
|
|
574
|
-
}) {
|
|
575
|
-
const o = Ae();
|
|
576
|
-
let r = !1;
|
|
577
|
-
return X(
|
|
578
|
-
[e, ...a],
|
|
579
|
-
() => {
|
|
580
|
-
!e() || o.value || r || (r = !0, qe().then((s) => {
|
|
581
|
-
o.value = s;
|
|
582
|
-
}).catch(() => {
|
|
583
|
-
}).finally(() => {
|
|
584
|
-
r = !1;
|
|
585
|
-
}));
|
|
586
|
-
},
|
|
587
|
-
{ immediate: !0 }
|
|
588
|
-
), { formatOf: (s) => o.value ? Ye(o.value, s) : void 0 };
|
|
589
|
-
}
|
|
590
|
-
function ft() {
|
|
591
|
-
const e = $e(16);
|
|
592
|
-
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
|
|
593
|
-
const a = Array.from(e, (o) => o.toString(16).padStart(2, "0")).join("");
|
|
594
|
-
return `${a.slice(0, 8)}-${a.slice(8, 12)}-${a.slice(12, 16)}-${a.slice(16, 20)}-${a.slice(20)}`;
|
|
595
|
-
}
|
|
596
|
-
const je = { class: "sv-checkout-address-fields flex flex-col gap-2" }, Xe = {
|
|
597
|
-
key: 1,
|
|
598
|
-
class: "sv-checkout__shipping-recipient grid grid-cols-2 gap-2"
|
|
599
|
-
}, gt = /* @__PURE__ */ te({
|
|
600
|
-
__name: "CheckoutAddressFields",
|
|
601
|
-
props: /* @__PURE__ */ Ie({
|
|
602
|
-
variant: { type: String },
|
|
603
|
-
withCountry: { type: Boolean },
|
|
604
|
-
countryBeforeAddress: { type: Boolean },
|
|
605
|
-
countryLabel: { type: String },
|
|
606
|
-
format: { type: Object },
|
|
607
|
-
getOptionalSuffix: { type: Function },
|
|
608
|
-
errors: { type: Object }
|
|
609
|
-
}, {
|
|
610
|
-
modelValue: { required: !0 },
|
|
611
|
-
modelModifiers: {}
|
|
612
|
-
}),
|
|
613
|
-
emits: ["update:modelValue"],
|
|
614
|
-
setup(e) {
|
|
615
|
-
const a = (g) => Ce(g), o = {
|
|
616
|
-
1: "grid-cols-1",
|
|
617
|
-
2: "grid-cols-2",
|
|
618
|
-
3: "grid-cols-3"
|
|
619
|
-
}, r = e, i = Le(e, "modelValue"), { $t: s } = de(), u = be(), b = re[r.variant], A = r.variant === "SHIPPING", c = A ? "shipping_" : "", v = r.variant.toLowerCase(), m = Ve({
|
|
620
|
-
addressLine1: P(i, b.line1, V),
|
|
621
|
-
addressLine2: P(i, b.line2, V),
|
|
622
|
-
postalCode: P(i, b.postalCode, V),
|
|
623
|
-
city: P(i, b.city, V),
|
|
624
|
-
state: P(i, b.state, V),
|
|
625
|
-
firstName: P(i, "shippingFirstName", V),
|
|
626
|
-
lastName: P(i, "shippingLastName", V),
|
|
627
|
-
attentionName: P(i, "shippingAttentionName", V)
|
|
628
|
-
}), T = C({
|
|
629
|
-
get: () => i.value[b.country],
|
|
630
|
-
set: (g) => {
|
|
631
|
-
const n = V(g);
|
|
632
|
-
i.value[b.country] = n !== void 0 && a(n) ? n : void 0;
|
|
633
|
-
}
|
|
634
|
-
}), L = C({
|
|
635
|
-
get: () => i.value.shippingPhoneNumber ?? null,
|
|
636
|
-
set: (g) => {
|
|
637
|
-
i.value.shippingPhoneNumber = g ?? void 0;
|
|
638
|
-
}
|
|
639
|
-
}), p = C(() => new Set(ve(A ? r.format : void 0))), h = C(
|
|
640
|
-
() => o[["postalCode", "city", "state"].filter((g) => p.value.has(g)).length]
|
|
641
|
-
), G = C(() => i.value.type === "ORGANIZATION"), S = (g) => r.getOptionalSuffix(b[g]), D = (g) => g == null ? void 0 : g.map((n) => n.$validator === "postalCodeFormat" ? {
|
|
642
|
-
...n,
|
|
643
|
-
$message: s({
|
|
644
|
-
defaultMessage: "Enter a postal code in the format of this country",
|
|
645
|
-
id: "checkout.postal_code.invalid",
|
|
646
|
-
description: "Error under a shipping or billing postal code that does not match its country's format"
|
|
647
|
-
})
|
|
648
|
-
} : n.$validator === "phoneNumberFormat" ? {
|
|
649
|
-
...n,
|
|
650
|
-
$message: s({
|
|
651
|
-
defaultMessage: "Enter a phone number of 7 to 15 digits",
|
|
652
|
-
id: "checkout.shipping_phone_number.invalid",
|
|
653
|
-
description: "Error under a shipping phone number with characters other than digits and separators, or too few or many digits"
|
|
654
|
-
})
|
|
655
|
-
} : n);
|
|
656
|
-
return (g, n) => {
|
|
657
|
-
var O, U, _, x, $, F, K, w;
|
|
658
|
-
return y(), k("div", je, [
|
|
659
|
-
e.withCountry && !e.countryBeforeAddress ? (y(), M(t(oe), {
|
|
660
|
-
key: 0,
|
|
661
|
-
"single-model-value": T.value,
|
|
662
|
-
"onUpdate:singleModelValue": n[0] || (n[0] = (d) => T.value = d),
|
|
663
|
-
"label-screen-reader-only": "",
|
|
664
|
-
i18n: { placeholderDefault: t(u).countryPlaceholder },
|
|
665
|
-
required: "",
|
|
666
|
-
label: e.countryLabel ?? t(u).countryLabel,
|
|
667
|
-
name: `${t(c)}country`,
|
|
668
|
-
error: (O = e.errors) == null ? void 0 : O.country
|
|
669
|
-
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : N("", !0),
|
|
670
|
-
A ? (y(), k(Pe, { key: 1 }, [
|
|
671
|
-
G.value ? (y(), M(I, {
|
|
672
|
-
key: 0,
|
|
673
|
-
modelValue: m.attentionName,
|
|
674
|
-
"onUpdate:modelValue": n[1] || (n[1] = (d) => m.attentionName = d),
|
|
675
|
-
name: "shipping_attention_name",
|
|
676
|
-
class: "sv-checkout__shipping-attention-name",
|
|
677
|
-
autocomplete: "shipping name",
|
|
678
|
-
label: t(s)({
|
|
679
|
-
defaultMessage: "Contact person",
|
|
680
|
-
id: "checkout.shipping_attention_name.label",
|
|
681
|
-
description: "Label of the person at the company a shipped order is for the attention of"
|
|
682
|
-
}),
|
|
683
|
-
placeholder: t(s)({
|
|
684
|
-
defaultMessage: "Contact person",
|
|
685
|
-
id: "checkout.shipping_attention_name.placeholder",
|
|
686
|
-
description: "Placeholder of the person at the company a shipped order is for the attention of"
|
|
687
|
-
}) + e.getOptionalSuffix("shippingAttentionName")
|
|
688
|
-
}, null, 8, ["modelValue", "label", "placeholder"])) : (y(), k("div", Xe, [
|
|
689
|
-
E(I, {
|
|
690
|
-
modelValue: m.firstName,
|
|
691
|
-
"onUpdate:modelValue": n[2] || (n[2] = (d) => m.firstName = d),
|
|
692
|
-
name: "shipping_first_name",
|
|
693
|
-
autocomplete: "shipping given-name",
|
|
694
|
-
label: t(s)({
|
|
695
|
-
defaultMessage: "First name",
|
|
696
|
-
id: "checkout.shipping_first_name.label",
|
|
697
|
-
description: "Label of the first name of the recipient of a shipped order"
|
|
698
|
-
}),
|
|
699
|
-
placeholder: t(s)({
|
|
700
|
-
defaultMessage: "First name",
|
|
701
|
-
id: "checkout.shipping_first_name.placeholder",
|
|
702
|
-
description: "Placeholder of the first name of the recipient of a shipped order"
|
|
703
|
-
}) + e.getOptionalSuffix("shippingFirstName")
|
|
704
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
705
|
-
E(I, {
|
|
706
|
-
modelValue: m.lastName,
|
|
707
|
-
"onUpdate:modelValue": n[3] || (n[3] = (d) => m.lastName = d),
|
|
708
|
-
name: "shipping_last_name",
|
|
709
|
-
autocomplete: "shipping family-name",
|
|
710
|
-
label: t(s)({
|
|
711
|
-
defaultMessage: "Last name",
|
|
712
|
-
id: "checkout.shipping_last_name.label",
|
|
713
|
-
description: "Label of the last name of the recipient of a shipped order"
|
|
714
|
-
}),
|
|
715
|
-
placeholder: t(s)({
|
|
716
|
-
defaultMessage: "Last name",
|
|
717
|
-
id: "checkout.shipping_last_name.placeholder",
|
|
718
|
-
description: "Placeholder of the last name of the recipient of a shipped order"
|
|
719
|
-
}) + e.getOptionalSuffix("shippingLastName"),
|
|
720
|
-
error: (U = e.errors) == null ? void 0 : U.lastName
|
|
721
|
-
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
722
|
-
]))
|
|
723
|
-
], 64)) : N("", !0),
|
|
724
|
-
e.withCountry && e.countryBeforeAddress ? (y(), M(t(oe), {
|
|
725
|
-
key: 2,
|
|
726
|
-
"single-model-value": T.value,
|
|
727
|
-
"onUpdate:singleModelValue": n[4] || (n[4] = (d) => T.value = d),
|
|
728
|
-
"label-screen-reader-only": "",
|
|
729
|
-
i18n: { placeholderDefault: t(u).countryPlaceholder },
|
|
730
|
-
required: "",
|
|
731
|
-
label: e.countryLabel ?? t(u).countryLabel,
|
|
732
|
-
name: `${t(c)}country`,
|
|
733
|
-
error: (_ = e.errors) == null ? void 0 : _.country
|
|
734
|
-
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : N("", !0),
|
|
735
|
-
p.value.has("line1") ? (y(), M(I, {
|
|
736
|
-
key: 3,
|
|
737
|
-
modelValue: m.addressLine1,
|
|
738
|
-
"onUpdate:modelValue": n[5] || (n[5] = (d) => m.addressLine1 = d),
|
|
739
|
-
name: `${t(c)}address_line_1`,
|
|
740
|
-
autocomplete: `${t(v)} address-line1`,
|
|
741
|
-
label: t(u).addressLine1Label,
|
|
742
|
-
placeholder: t(s)({
|
|
743
|
-
defaultMessage: "Address line 1",
|
|
744
|
-
id: "checkout.address.line1.placeholder",
|
|
745
|
-
description: "Address line 1 of the customer address in the checkout form"
|
|
746
|
-
}) + S("line1"),
|
|
747
|
-
error: (x = e.errors) == null ? void 0 : x.addressLine1
|
|
748
|
-
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
749
|
-
p.value.has("line2") ? (y(), M(I, {
|
|
750
|
-
key: 4,
|
|
751
|
-
modelValue: m.addressLine2,
|
|
752
|
-
"onUpdate:modelValue": n[6] || (n[6] = (d) => m.addressLine2 = d),
|
|
753
|
-
name: `${t(c)}address_line_2`,
|
|
754
|
-
autocomplete: `${t(v)} address-line2`,
|
|
755
|
-
label: t(u).addressLine2Label,
|
|
756
|
-
placeholder: t(s)({
|
|
757
|
-
defaultMessage: "Address line 2",
|
|
758
|
-
id: "checkout.address.line2.placeholder",
|
|
759
|
-
description: "Address line 2 of the customer address in the checkout form"
|
|
760
|
-
}) + S("line2")
|
|
761
|
-
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder"])) : N("", !0),
|
|
762
|
-
h.value ? (y(), k("div", {
|
|
763
|
-
key: 5,
|
|
764
|
-
class: ee(["grid gap-2", h.value])
|
|
765
|
-
}, [
|
|
766
|
-
p.value.has("postalCode") ? (y(), M(I, {
|
|
767
|
-
key: 0,
|
|
768
|
-
modelValue: m.postalCode,
|
|
769
|
-
"onUpdate:modelValue": n[7] || (n[7] = (d) => m.postalCode = d),
|
|
770
|
-
name: `${t(c)}postal_code`,
|
|
771
|
-
autocomplete: `${t(v)} postal-code`,
|
|
772
|
-
label: t(u).postalCodeLabel,
|
|
773
|
-
placeholder: t(u).postalCodePlaceholder + S("postalCode"),
|
|
774
|
-
error: D(($ = e.errors) == null ? void 0 : $.postalCode)
|
|
775
|
-
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
776
|
-
p.value.has("city") ? (y(), M(I, {
|
|
777
|
-
key: 1,
|
|
778
|
-
modelValue: m.city,
|
|
779
|
-
"onUpdate:modelValue": n[8] || (n[8] = (d) => m.city = d),
|
|
780
|
-
name: `${t(c)}city`,
|
|
781
|
-
autocomplete: `${t(v)} address-level2`,
|
|
782
|
-
label: t(u).cityLabel,
|
|
783
|
-
placeholder: t(u).cityPlaceholder + S("city"),
|
|
784
|
-
error: (F = e.errors) == null ? void 0 : F.city
|
|
785
|
-
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
786
|
-
p.value.has("state") ? (y(), M(I, {
|
|
787
|
-
key: 2,
|
|
788
|
-
modelValue: m.state,
|
|
789
|
-
"onUpdate:modelValue": n[9] || (n[9] = (d) => m.state = d),
|
|
790
|
-
name: `${t(c)}state`,
|
|
791
|
-
autocomplete: `${t(v)} address-level1`,
|
|
792
|
-
label: t(u).stateLabel,
|
|
793
|
-
placeholder: t(u).statePlaceholder + S("state"),
|
|
794
|
-
error: (K = e.errors) == null ? void 0 : K.state
|
|
795
|
-
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0)
|
|
796
|
-
], 2)) : N("", !0),
|
|
797
|
-
A ? (y(), M(t(Ze), {
|
|
798
|
-
key: 6,
|
|
799
|
-
modelValue: L.value,
|
|
800
|
-
"onUpdate:modelValue": n[10] || (n[10] = (d) => L.value = d),
|
|
801
|
-
"label-screen-reader-only": "",
|
|
802
|
-
required: "",
|
|
803
|
-
name: "shipping_phone_number",
|
|
804
|
-
class: "sv-checkout__shipping-phone-number",
|
|
805
|
-
"default-country": i.value[t(b).country],
|
|
806
|
-
label: t(s)({
|
|
807
|
-
defaultMessage: "Phone number",
|
|
808
|
-
id: "checkout.shipping_phone_number.label",
|
|
809
|
-
description: "Label of the phone number the carrier can reach the recipient of a shipped order on"
|
|
810
|
-
}),
|
|
811
|
-
placeholder: t(s)({
|
|
812
|
-
defaultMessage: "Phone number",
|
|
813
|
-
id: "checkout.shipping_phone_number.placeholder",
|
|
814
|
-
description: "Placeholder of the phone number the carrier can reach the recipient of a shipped order on"
|
|
815
|
-
}),
|
|
816
|
-
error: D((w = e.errors) == null ? void 0 : w.phoneNumber)
|
|
817
|
-
}, null, 8, ["modelValue", "default-country", "label", "placeholder", "error"])) : N("", !0)
|
|
818
|
-
]);
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
});
|
|
822
|
-
export {
|
|
823
|
-
gt as _,
|
|
824
|
-
mt as a,
|
|
825
|
-
ft as r,
|
|
826
|
-
pt as s,
|
|
827
|
-
ht as u
|
|
828
|
-
};
|