@solvimon/solvimon-web 0.1.0-alpha.3 → 0.1.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +501 -52
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/Alert.vue.es-xhsk_7Gn.mjs +158 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/Avatar.vue.es-DrbtUiLO.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/Button.vue.es-BHbanjR0.mjs +368 -0
- package/dist/ChargeOnDemandModal-DYiFtw1n.mjs +965 -0
- package/dist/Chip.vue.es-Dc6-PjEn.mjs +128 -0
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-C2kFcft1.mjs +32 -0
- package/dist/ContextMenu.vue.es-CvX6O2IM.mjs +572 -0
- package/dist/CustomerBillingInformation.vue.es-DQWt9osz.mjs +153 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs +2828 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/DividerText.vue.es-ChN6fnrH.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs +55 -0
- package/dist/ErrorNotification.vue.es-CWIVt5q9.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/FormMessage.vue.es-CQ64C8dt.mjs +39 -0
- package/dist/IconButton.vue.es-BXzwMvVk.mjs +56 -0
- package/dist/IconTitle.vue.es-GyanM-JQ.mjs +103 -0
- package/dist/Input.vue.es-CxiwRZYs.mjs +250 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs +93 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs +56 -0
- package/dist/InvoicePreview.vue.es-BvnikfEH.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs +124 -0
- package/dist/Label.vue.es-3ACRco55.mjs +113 -0
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/Modal.vue.es-CDjfZDDx.mjs +404 -0
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs +48 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs +250 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs +51 -0
- package/dist/PaymentHistoryBlock-HUazLER6.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs +93 -0
- package/dist/PaymentIntegrationForm-ZnIjTyda.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/PaymentIntegrationFormAdyen-sbw3AoKS.mjs +946 -0
- package/dist/PaymentIntegrationFormStripe-4JmKEwbS.mjs +767 -0
- package/dist/PaymentMethod.vue.es-DAabE41t.mjs +645 -0
- package/dist/PaymentMethodForm-MmCUSJLE.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs +169 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs +176 -0
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/PortalLinkUnverified-B7YYhv97.mjs +52 -0
- package/dist/PortalNotAvailable-DIyeKrAp.mjs +25 -0
- package/dist/PricingGroupRangeInput.vue.es-C6J8C7JS.mjs +578 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs +178 -0
- package/dist/RadioGroupExtended.vue.es-hDmUAKIA.mjs +176 -0
- package/dist/Section.vue.es-CwKTCeZ1.mjs +72 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs +60 -0
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/StepInput.vue.es-GkrOtOVa.mjs +213 -0
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/SubscriptionSchedules-DosBeXD7.mjs +4 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs +5183 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs +344 -0
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/TooltipParagraph.vue.es-4HaXi8RP.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs +31 -0
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cn.es-B8acFrov.mjs +2936 -0
- package/dist/comparators.es-C8rHpb70.mjs +157 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.mjs +78 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +93 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +78 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.mjs +2930 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +101 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +63 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.mjs +79 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +109 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +90 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +80 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +99 -0
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.mjs +105 -0
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/core/action-request.types.d.ts +1 -58
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.d.ts +1 -10
- package/dist/core/index.mjs +168 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -111
- package/dist/customElements-d7Bhfqi_.mjs +5099 -0
- package/dist/customer-CNCSN_G5.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/de-DE-D-sV3avS.mjs +309 -0
- package/dist/de-DE-wZp39RC-.mjs +498 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/fr-FR-BYHycSxz.mjs +310 -0
- package/dist/fr-FR-BrNXJ7gR.mjs +498 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getCountryNameByCode.es-OGxn_zT0.mjs +257 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/index.es-C7J3WGGo.mjs +345 -0
- package/dist/index.mjs +46 -0
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/it-IT-Bd1qsMVU.mjs +498 -0
- package/dist/it-IT-zpPyT9PH.mjs +309 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/nl-NL-BOr4MR7L.mjs +324 -0
- package/dist/nl-NL-C6Y6fqaW.mjs +498 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/paymentMethods-CG1fcG2v.mjs +78 -0
- package/dist/paymentOutcome-D59QkGfm.mjs +22 -0
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingItem.es-AYq_hYeD.mjs +55 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.mjs +1100 -0
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +277 -0
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
- package/dist/screens/PayInvoice/PayInvoice.mjs +873 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +219 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +5 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +1135 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/sorting.es-kM0f1VX0.mjs +77 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/subscription-DQ5mRp_e.mjs +212 -0
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +21 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +20 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +10 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +21 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +15 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +58 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +16 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +78 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +12 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +26 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +25 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +12 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +9 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +148 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +68 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +49 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +32 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +20 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +12 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +12 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +13 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +28 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +34 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +82 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +21 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +4 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +22 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +15 -0
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +20 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +9 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +70 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +29 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +18 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +10 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +10 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +8 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +23 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +10 -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/SubscriptionSummary.types.d.ts +20 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +20 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +53 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +25 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +5 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +10 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +14 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +3 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +25 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +25 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +6 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +7 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +15 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +38 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +6 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +8 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +50 -0
- 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/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +6 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +7 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +28 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +54 -0
- package/dist/types/public/core/configuration.d.ts +2 -0
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +16 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +3 -0
- package/dist/types/public/core/types.d.ts +139 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +23 -0
- 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.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +21 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +10 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +22 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +14 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +36 -0
- package/dist/types/services/requests.types.d.ts +41 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +14 -0
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +15 -0
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +82 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +51 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +375 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +379 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +127 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +132 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +134 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +135 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +94 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +62 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +46 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +128 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +81 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +222 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/useActionDispatchProvider-BWna0S6N.mjs +9 -0
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/useCustomer-RUtEzDOY.mjs +20 -0
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/useIncrementalLoading-B3gp58X-.mjs +60 -0
- package/dist/useInvoiceData-Dya4mmvf.mjs +21 -0
- package/dist/useInvoicesList-Dp3c_cb3.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-CwySdYZM.mjs +15 -0
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/usePaymentMethodAvailability-B7NV0ZtX.mjs +117 -0
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/usePaymentMethods-DBGyQA_I.mjs +21 -0
- package/dist/usePayments-ChGtK_As.mjs +323 -0
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/useService-DayNZhPh.mjs +56 -0
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +115 -77
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs +0 -56
- package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
- package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs +0 -85
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs +0 -90
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs +0 -63
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs +0 -373
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DEo_ndpK.mjs +0 -58668
- package/dist/component-XHQYFLA_.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +0 -98
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +0 -584
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.es.js +0 -582
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +0 -129
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +0 -104
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +0 -133
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +0 -120
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -45
- package/dist/invoices-BW1notiX.js +0 -1
- package/dist/invoices-M5oYVch6.mjs +0 -84
- package/dist/paymentMethods-BX80t2zk.js +0 -1
- package/dist/paymentMethods-CqKUfc3w.mjs +0 -65
- package/dist/payments-BHv4hCeJ.js +0 -1
- package/dist/payments-CosaPZwo.mjs +0 -47
- package/dist/registry-BwKEYOf7.js +0 -1
- package/dist/registry-Cag1Jj7P.mjs +0 -143
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/Checkout/Checkout.es.js +0 -5142
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
- package/dist/solvimon-web.css +0 -1
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
- package/dist/subscriptions-CnxvsBXd.js +0 -1
- package/dist/useActionDispatchProvider-CgRcOqv3.mjs +0 -12
- package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
- package/dist/useCustomer-B0NK96dA.js +0 -1
- package/dist/useCustomer-DlcjY3fP.mjs +0 -45
- package/dist/useCustomerPaymentMethodOptions-BzEquyUV.mjs +0 -169
- package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
- package/dist/useIncrementalLoading-C7ToTmZK.mjs +0 -71
- package/dist/useIncrementalLoading-D60Vttil.js +0 -1
- package/dist/useInvoiceData-CcueV3We.mjs +0 -51
- package/dist/useInvoiceData-DstXfI7t.js +0 -1
- package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
- package/dist/useInvoicesList-DmzjgMlW.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useLoadInitialData-Dm48tlSO.mjs +0 -13
- package/dist/usePaymentMethods-DCGVRXA4.js +0 -1
- package/dist/usePaymentMethods-Db-1R6rI.mjs +0 -16
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
- package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
|
@@ -0,0 +1,1997 @@
|
|
|
1
|
+
import { defineComponent as ee, openBlock as i, createElementBlock as w, createVNode as B, unref as s, withCtx as P, renderSlot as X, toDisplayString as J, createCommentVNode as p, createElementVNode as $, computed as f, withKeys as El, withModifiers as il, normalizeClass as q, Fragment as ve, mergeProps as Y, createBlock as y, resolveDynamicComponent as Z, normalizeProps as W, createTextVNode as _, renderList as rl, inject as Ol, getCurrentInstance as Rl, ref as H, watch as he, useModel as Ue, useSlots as Bl, createSlots as Ve, guardReactiveProps as Qe, Teleport as Tl, normalizeStyle as Xe, mergeModels as Ne, isRef as _e, markRaw as Dl, toRefs as Fl, useId as Ul, reactive as Gl, shallowRef as zl } from "vue";
|
|
2
|
+
import { u as Ae, b as ul, a as ql } from "./index.es-C7J3WGGo.mjs";
|
|
3
|
+
import { c as Ge, g as el } from "./getCountryNameByCode.es-OGxn_zT0.mjs";
|
|
4
|
+
import { d as Se, S as Kl, a as ze } from "./customElements-d7Bhfqi_.mjs";
|
|
5
|
+
import { e as Te } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
6
|
+
import { _ as pe, s as ll, u as Hl } from "./sorting.es-kM0f1VX0.mjs";
|
|
7
|
+
import { u as Zl } from "./useLazyFloating.es-CycqRyeb.mjs";
|
|
8
|
+
import { _ as tl } from "./IconButton.vue.es-BXzwMvVk.mjs";
|
|
9
|
+
import { a as al, _ as Ee } from "./Button.vue.es-BHbanjR0.mjs";
|
|
10
|
+
import { _ as Wl } from "./Chip.vue.es-Dc6-PjEn.mjs";
|
|
11
|
+
import { i as De, a as Yl } from "./useService-DayNZhPh.mjs";
|
|
12
|
+
import { c as Jl } from "./cn.es-B8acFrov.mjs";
|
|
13
|
+
import { _ as qe, u as jl } from "./Input.vue.es-CxiwRZYs.mjs";
|
|
14
|
+
import { u as Oe, _ as Ql } from "./Label.vue.es-3ACRco55.mjs";
|
|
15
|
+
import { _ as Fe } from "./FormMessage.vue.es-CQ64C8dt.mjs";
|
|
16
|
+
import { f as ne, a as Q, r as Xl } from "./formControl-BZQLHnOO.mjs";
|
|
17
|
+
function _l(e, o, a = []) {
|
|
18
|
+
return [...e].sort((t, n) => {
|
|
19
|
+
for (let u = 0; u < o.length; u++) {
|
|
20
|
+
const m = o[u], v = typeof m == "function" ? m : (E) => E[m], r = a[u] === "desc" ? -1 : 1, S = v(t), h = v(n);
|
|
21
|
+
if (!(S == null && h == null)) {
|
|
22
|
+
if (S == null) return r;
|
|
23
|
+
if (h == null || S < h) return -r;
|
|
24
|
+
if (S > h) return r;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return 0;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const et = { class: "flex items-center pt-1" }, lt = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "ml-1 normal-case"
|
|
33
|
+
}, tt = /* @__PURE__ */ ee({
|
|
34
|
+
__name: "SearchSelectInputOptionsDivider",
|
|
35
|
+
props: {
|
|
36
|
+
suffix: {}
|
|
37
|
+
},
|
|
38
|
+
setup(e) {
|
|
39
|
+
return (o, a) => (i(), w("div", et, [
|
|
40
|
+
B(s(Se), {
|
|
41
|
+
tag: "span",
|
|
42
|
+
variant: "caps-heading",
|
|
43
|
+
"no-spacing": "",
|
|
44
|
+
class: "pl-4 pr-1.5"
|
|
45
|
+
}, {
|
|
46
|
+
default: P(() => [
|
|
47
|
+
X(o.$slots, "default"),
|
|
48
|
+
e.suffix ? (i(), w("span", lt, J(e.suffix), 1)) : p("", !0)
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
}),
|
|
52
|
+
a[0] || (a[0] = $("div", { class: "grow border-t" }, null, -1))
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
}), at = (e) => `checkbox-item-${e}`, nt = "select-search-done-button", ot = ["aria-selected", "aria-disabled", "data-testid", "onKeydown"], st = ["id", "value", "checked", "disabled"], it = ["for"], rt = { class: "flex min-w-0 items-center gap-1" }, ut = { class: "flex min-w-0 flex-grow flex-col" }, dt = { class: "flex min-w-0 flex-grow gap-2" }, ct = { class: "mr-8 flex min-w-0 flex-grow flex-col" }, mt = { class: "flex min-w-0 flex-grow items-center gap-2" }, ft = /* @__PURE__ */ ee({
|
|
56
|
+
__name: "SearchSelectInputOption",
|
|
57
|
+
props: {
|
|
58
|
+
multiple: { type: Boolean },
|
|
59
|
+
search: {},
|
|
60
|
+
condensed: { type: Boolean },
|
|
61
|
+
label: {},
|
|
62
|
+
checked: { type: Boolean },
|
|
63
|
+
disabled: { type: Boolean },
|
|
64
|
+
subLabel: {},
|
|
65
|
+
labelPrefixComponent: {},
|
|
66
|
+
labelSuffixComponent: {},
|
|
67
|
+
labelInlineComponent: {},
|
|
68
|
+
labelBeforeSuffixComponent: {},
|
|
69
|
+
value: {},
|
|
70
|
+
labelSrOnly: { type: Boolean }
|
|
71
|
+
},
|
|
72
|
+
emits: ["value-changed"],
|
|
73
|
+
setup(e, { emit: o }) {
|
|
74
|
+
const a = o, t = e, n = (r) => {
|
|
75
|
+
const S = r.target, h = {
|
|
76
|
+
value: S.value,
|
|
77
|
+
checked: S.checked
|
|
78
|
+
};
|
|
79
|
+
a("value-changed", h);
|
|
80
|
+
}, u = () => {
|
|
81
|
+
t.multiple || t.disabled || a("value-changed", {
|
|
82
|
+
value: t.value
|
|
83
|
+
});
|
|
84
|
+
}, m = f(() => at(t.value)), v = f(() => Te(t.search ?? ""));
|
|
85
|
+
return (r, S) => (i(), w("li", {
|
|
86
|
+
role: "option",
|
|
87
|
+
"aria-selected": e.checked,
|
|
88
|
+
"aria-disabled": e.disabled,
|
|
89
|
+
class: q([{ "hover:bg-gray-100": !e.disabled }, "relative flex"]),
|
|
90
|
+
"data-testid": m.value,
|
|
91
|
+
tabindex: "0",
|
|
92
|
+
onClick: u,
|
|
93
|
+
onKeydown: El(il(u, ["prevent"]), ["enter"])
|
|
94
|
+
}, [
|
|
95
|
+
e.multiple ? (i(), w(ve, { key: 0 }, [
|
|
96
|
+
$("input", Y(r.$attrs, {
|
|
97
|
+
id: m.value,
|
|
98
|
+
ref: "inputRef",
|
|
99
|
+
value: e.value,
|
|
100
|
+
checked: e.checked,
|
|
101
|
+
disabled: e.disabled,
|
|
102
|
+
type: "checkbox",
|
|
103
|
+
class: ["absolute left-3.5 top-1/2 h-4 w-4 -translate-y-2 rounded border-gray-300 bg-gray-100 focus:ring-2 focus:ring-primary-500", e.disabled ? "text-disabled" : "text-primary-600"],
|
|
104
|
+
tabindex: "-1",
|
|
105
|
+
onChange: n
|
|
106
|
+
}), null, 16, st),
|
|
107
|
+
$("label", {
|
|
108
|
+
for: m.value,
|
|
109
|
+
class: q([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
|
|
110
|
+
}, [
|
|
111
|
+
$("div", rt, [
|
|
112
|
+
e.labelPrefixComponent ? (i(), y(Z(e.labelPrefixComponent.component), W(Y({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
113
|
+
$("div", ut, [
|
|
114
|
+
$("div", dt, [
|
|
115
|
+
B(pe, {
|
|
116
|
+
text: e.label,
|
|
117
|
+
search: v.value,
|
|
118
|
+
title: e.label,
|
|
119
|
+
class: q(["truncate font-semibold", { "sr-only": e.labelSrOnly }])
|
|
120
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
121
|
+
e.labelInlineComponent ? (i(), y(Z(e.labelInlineComponent.component), W(Y({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
122
|
+
e.subLabel && e.condensed ? (i(), y(pe, {
|
|
123
|
+
key: 1,
|
|
124
|
+
class: "truncate text-xs text-subtle",
|
|
125
|
+
text: e.subLabel,
|
|
126
|
+
title: e.subLabel,
|
|
127
|
+
search: v.value
|
|
128
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
129
|
+
]),
|
|
130
|
+
e.subLabel && !e.condensed ? (i(), y(pe, {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: "truncate text-xs text-subtle",
|
|
133
|
+
text: e.subLabel,
|
|
134
|
+
title: e.subLabel,
|
|
135
|
+
search: v.value
|
|
136
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
137
|
+
]),
|
|
138
|
+
e.labelBeforeSuffixComponent ? (i(), y(Z(e.labelBeforeSuffixComponent.component), W(Y({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
139
|
+
e.labelSuffixComponent ? (i(), y(Z(e.labelSuffixComponent.component), W(Y({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
140
|
+
])
|
|
141
|
+
], 10, it)
|
|
142
|
+
], 64)) : (i(), w("div", {
|
|
143
|
+
key: 1,
|
|
144
|
+
class: q(["flex w-full min-w-0 items-center gap-3 px-4 text-sm font-medium", [
|
|
145
|
+
e.condensed ? "p-2" : "py-2",
|
|
146
|
+
e.disabled ?? "cursor-not-allowed",
|
|
147
|
+
!e.disabled && "cursor-pointer"
|
|
148
|
+
]])
|
|
149
|
+
}, [
|
|
150
|
+
e.labelPrefixComponent ? (i(), y(Z(e.labelPrefixComponent.component), W(Y({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
151
|
+
$("div", ct, [
|
|
152
|
+
$("div", mt, [
|
|
153
|
+
B(pe, {
|
|
154
|
+
text: e.label,
|
|
155
|
+
search: s(Te)(e.search ?? ""),
|
|
156
|
+
title: e.label,
|
|
157
|
+
class: q(["truncate font-semibold", { "text-disabled": e.disabled }])
|
|
158
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
159
|
+
e.labelInlineComponent ? (i(), y(Z(e.labelInlineComponent.component), W(Y({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
160
|
+
e.subLabel && e.condensed ? (i(), y(pe, {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: "truncate text-xs text-subtle",
|
|
163
|
+
text: e.subLabel,
|
|
164
|
+
title: e.subLabel,
|
|
165
|
+
search: v.value
|
|
166
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
167
|
+
]),
|
|
168
|
+
e.subLabel && !e.condensed ? (i(), y(pe, {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "truncate text-xs text-subtle",
|
|
171
|
+
text: e.subLabel,
|
|
172
|
+
title: e.subLabel,
|
|
173
|
+
search: v.value
|
|
174
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
175
|
+
]),
|
|
176
|
+
e.labelBeforeSuffixComponent ? (i(), y(Z(e.labelBeforeSuffixComponent.component), W(Y({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
177
|
+
e.labelSuffixComponent ? (i(), y(Z(e.labelSuffixComponent.component), W(Y({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
178
|
+
], 2))
|
|
179
|
+
], 42, ot));
|
|
180
|
+
}
|
|
181
|
+
}), pt = { class: "flex flex-col rounded-bl rounded-br" }, ht = {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "px-5 py-5 text-sm text-secondary"
|
|
184
|
+
}, vt = { key: 0 }, bt = ["innerHTML"], yt = { key: 0 }, gt = /* @__PURE__ */ ee({
|
|
185
|
+
__name: "SearchSelectInputOptions",
|
|
186
|
+
props: {
|
|
187
|
+
i18n: {},
|
|
188
|
+
model: {},
|
|
189
|
+
search: {},
|
|
190
|
+
multiple: { type: Boolean },
|
|
191
|
+
condensed: { type: Boolean },
|
|
192
|
+
hasLargeDropdown: { type: Boolean },
|
|
193
|
+
addOnly: { type: Boolean },
|
|
194
|
+
options: {}
|
|
195
|
+
},
|
|
196
|
+
emits: ["value-changed"],
|
|
197
|
+
setup(e, { emit: o }) {
|
|
198
|
+
const a = o, t = e, n = (M) => a("value-changed", M), u = f(() => {
|
|
199
|
+
var M, C;
|
|
200
|
+
const g = t.search ? `<span class="font-bold">"${Te(t.search)}"</span>` : "";
|
|
201
|
+
return ((C = (M = t.i18n) == null ? void 0 : M.noResults) == null ? void 0 : C.call(M, g)) ?? `No matches found for ${g}.`;
|
|
202
|
+
}), m = f(() => t.search === ""), v = f(() => t.options.filter((M) => !M.hidden)), r = f(() => v.value.length > 0), S = f(() => r.value ? !1 : m.value ? !0 : !!u.value), h = f(
|
|
203
|
+
() => ll(t.options, "group").reduce(
|
|
204
|
+
(M, C) => C.value === "" ? M : {
|
|
205
|
+
...M,
|
|
206
|
+
[C.value]: C.group
|
|
207
|
+
},
|
|
208
|
+
{}
|
|
209
|
+
)
|
|
210
|
+
), E = f(
|
|
211
|
+
() => ll(t.options, "group").reduce(
|
|
212
|
+
(M, C) => C.value === "" ? M : {
|
|
213
|
+
...M,
|
|
214
|
+
[C.value]: C.groupSuffix
|
|
215
|
+
},
|
|
216
|
+
{}
|
|
217
|
+
)
|
|
218
|
+
);
|
|
219
|
+
return (M, C) => {
|
|
220
|
+
var g;
|
|
221
|
+
return i(), w("div", pt, [
|
|
222
|
+
S.value ? (i(), w("div", ht, [
|
|
223
|
+
m.value ? (i(), w("span", vt, J(((g = t.i18n) == null ? void 0 : g.noOptionsAvailable) ?? "No available options."), 1)) : (i(), w("span", {
|
|
224
|
+
key: 1,
|
|
225
|
+
innerHTML: u.value
|
|
226
|
+
}, null, 8, bt))
|
|
227
|
+
])) : r.value ? (i(), w("ul", {
|
|
228
|
+
key: 1,
|
|
229
|
+
class: q(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-[19rem]" : "max-h-48"]])
|
|
230
|
+
}, [
|
|
231
|
+
e.addOnly ? (i(), w("div", yt, [
|
|
232
|
+
B(Se, {
|
|
233
|
+
variant: "body-sm",
|
|
234
|
+
color: "secondary",
|
|
235
|
+
"no-spacing": "",
|
|
236
|
+
class: "mt-1 px-3 py-2"
|
|
237
|
+
}, {
|
|
238
|
+
default: P(() => {
|
|
239
|
+
var N;
|
|
240
|
+
return [
|
|
241
|
+
_(J(((N = e.i18n) == null ? void 0 : N.addOnly) ?? "You can only select currently unselected options."), 1)
|
|
242
|
+
];
|
|
243
|
+
}),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
])) : p("", !0),
|
|
247
|
+
(i(!0), w(ve, null, rl(v.value, ({
|
|
248
|
+
label: N,
|
|
249
|
+
subLabel: G,
|
|
250
|
+
value: T,
|
|
251
|
+
checked: V,
|
|
252
|
+
disabled: b,
|
|
253
|
+
labelInlineComponent: O,
|
|
254
|
+
labelSuffixComponent: le,
|
|
255
|
+
labelSrOnly: te,
|
|
256
|
+
labelPrefixComponent: ae,
|
|
257
|
+
labelBeforeSuffixComponent: x,
|
|
258
|
+
searchValues: D
|
|
259
|
+
}) => (i(), w(ve, { key: T }, [
|
|
260
|
+
h.value[T] ? (i(), y(tt, {
|
|
261
|
+
key: 0,
|
|
262
|
+
suffix: E.value[T]
|
|
263
|
+
}, {
|
|
264
|
+
default: P(() => [
|
|
265
|
+
_(J(h.value[T]), 1)
|
|
266
|
+
]),
|
|
267
|
+
_: 2
|
|
268
|
+
}, 1032, ["suffix"])) : p("", !0),
|
|
269
|
+
B(ft, {
|
|
270
|
+
label: N,
|
|
271
|
+
"sub-label": G,
|
|
272
|
+
value: T,
|
|
273
|
+
checked: V,
|
|
274
|
+
disabled: b,
|
|
275
|
+
search: D ? "" : e.search,
|
|
276
|
+
multiple: e.multiple,
|
|
277
|
+
condensed: e.condensed,
|
|
278
|
+
"label-suffix-component": le,
|
|
279
|
+
"label-prefix-component": ae,
|
|
280
|
+
"label-before-suffix-component": x,
|
|
281
|
+
"label-inline-component": O,
|
|
282
|
+
"label-sr-only": te,
|
|
283
|
+
onValueChanged: n
|
|
284
|
+
}, null, 8, ["label", "sub-label", "value", "checked", "disabled", "search", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-before-suffix-component", "label-inline-component", "label-sr-only"])
|
|
285
|
+
], 64))), 128))
|
|
286
|
+
], 2)) : p("", !0),
|
|
287
|
+
M.$slots["list-footer-content"] ? (i(), w("div", {
|
|
288
|
+
key: 2,
|
|
289
|
+
class: q({ "border-t border-gray-200": r.value })
|
|
290
|
+
}, [
|
|
291
|
+
X(M.$slots, "list-footer-content")
|
|
292
|
+
], 2)) : p("", !0)
|
|
293
|
+
]);
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
}), Ct = { class: "flex flex-col gap-2" }, xt = ["aria-expanded"], St = { class: "flex items-center gap-2" }, kt = { key: 2 }, Lt = { class: "flex items-center gap-2 self-stretch" }, It = { class: "flex items-center" }, wt = {
|
|
297
|
+
key: 0,
|
|
298
|
+
class: "flex flex-wrap gap-2"
|
|
299
|
+
}, Mt = ["innerHTML"], dl = /* @__PURE__ */ ee({
|
|
300
|
+
__name: "SearchSelectInput",
|
|
301
|
+
props: /* @__PURE__ */ Ne({
|
|
302
|
+
addOnly: { type: Boolean, default: !1 },
|
|
303
|
+
disabled: { type: Boolean },
|
|
304
|
+
i18n: {},
|
|
305
|
+
label: {},
|
|
306
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
307
|
+
singleModelValue: {},
|
|
308
|
+
multiModelValue: {},
|
|
309
|
+
options: { default: () => [] },
|
|
310
|
+
optionsOrder: { default: () => ["asc", "asc"] },
|
|
311
|
+
optionsOrderProperties: { default: () => ["group", "label"] },
|
|
312
|
+
required: { type: Boolean, default: !1 },
|
|
313
|
+
rootClass: {},
|
|
314
|
+
wrapperClass: {},
|
|
315
|
+
inputClass: {},
|
|
316
|
+
dropdownWidth: {},
|
|
317
|
+
invalid: { type: Boolean },
|
|
318
|
+
size: { default: "md" },
|
|
319
|
+
withChips: { type: Boolean, default: !1 },
|
|
320
|
+
error: {},
|
|
321
|
+
hasReset: { type: Boolean },
|
|
322
|
+
name: {},
|
|
323
|
+
hasLargeDropdown: { type: Boolean, default: !1 },
|
|
324
|
+
showSuffixInClosedInput: { type: Boolean },
|
|
325
|
+
showSuffixLabelInInput: { type: Boolean },
|
|
326
|
+
showSelectionInClosedInput: { type: Boolean },
|
|
327
|
+
condensed: { type: Boolean },
|
|
328
|
+
form: {},
|
|
329
|
+
prefix: {}
|
|
330
|
+
}, {
|
|
331
|
+
search: { default: "" },
|
|
332
|
+
searchModifiers: {}
|
|
333
|
+
}),
|
|
334
|
+
emits: /* @__PURE__ */ Ne(["update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"], ["update:search"]),
|
|
335
|
+
setup(e, { expose: o, emit: a }) {
|
|
336
|
+
var t;
|
|
337
|
+
const n = e, u = Ol(Kl), m = (t = Rl()) == null ? void 0 : t.vnode.props, v = !(m != null && m["onUpdate:search"]), r = f(() => Array.isArray(n.multiModelValue)), S = H(n.singleModelValue), h = a, E = Ae(n, "singleModelValue", h), M = Ae(n, "multiModelValue", h), C = H(M.value ?? []);
|
|
338
|
+
he(
|
|
339
|
+
() => n.multiModelValue,
|
|
340
|
+
(l) => {
|
|
341
|
+
l && (C.value = l);
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
const g = Ue(e, "search"), N = Bl(), G = f(() => !!N.prefix), T = f(() => !!n.prefix), V = f(() => G.value || T.value), b = f(() => V.value || !$e.value), O = f({
|
|
345
|
+
get: () => r.value ? C.value ?? [] : typeof E.value == "string" ? [E.value] : [],
|
|
346
|
+
set(l) {
|
|
347
|
+
r.value ? C.value = l : E.value = (l == null ? void 0 : l[0]) ?? "";
|
|
348
|
+
}
|
|
349
|
+
}), le = f(
|
|
350
|
+
() => ie.value.filter((l) => {
|
|
351
|
+
var d;
|
|
352
|
+
return (d = O.value) == null ? void 0 : d.includes(l.value);
|
|
353
|
+
})
|
|
354
|
+
), te = f(() => le.value[0]), ae = Hl(), x = H(!1), D = H(), U = H(), de = H(), I = () => D.value ? Array.from(
|
|
355
|
+
D.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
|
|
356
|
+
) : [], ke = () => {
|
|
357
|
+
var l;
|
|
358
|
+
let d = document.activeElement;
|
|
359
|
+
for (; (l = d == null ? void 0 : d.shadowRoot) != null && l.activeElement; )
|
|
360
|
+
d = d.shadowRoot.activeElement;
|
|
361
|
+
return d;
|
|
362
|
+
}, ye = () => {
|
|
363
|
+
if (!U.value) return null;
|
|
364
|
+
let l = U.value.querySelector("input");
|
|
365
|
+
if (l) return l;
|
|
366
|
+
const d = U.value.querySelectorAll("*");
|
|
367
|
+
for (const k of d)
|
|
368
|
+
if (k.shadowRoot && (l = k.shadowRoot.querySelector("input"), l))
|
|
369
|
+
return l;
|
|
370
|
+
return null;
|
|
371
|
+
};
|
|
372
|
+
let se = !1;
|
|
373
|
+
const ge = () => {
|
|
374
|
+
var l;
|
|
375
|
+
se = !0, (l = ye()) == null || l.focus(), se = !1;
|
|
376
|
+
}, Ce = (l) => (l == null ? void 0 : l.selectedLabel) ?? (l == null ? void 0 : l.label) ?? "", c = H(""), A = H(!1), ce = () => {
|
|
377
|
+
se || (x.value = !0);
|
|
378
|
+
}, yl = (l) => {
|
|
379
|
+
var d;
|
|
380
|
+
n.disabled || (d = l.target) != null && d.closest("button") || (x.value = !0);
|
|
381
|
+
}, gl = () => {
|
|
382
|
+
n.disabled || (A.value = !0, x.value = !0);
|
|
383
|
+
}, Cl = (l) => {
|
|
384
|
+
var d;
|
|
385
|
+
if (!x.value) return;
|
|
386
|
+
const k = I(), R = ye();
|
|
387
|
+
if (ke() === R)
|
|
388
|
+
switch (l.key) {
|
|
389
|
+
case "ArrowDown":
|
|
390
|
+
k.length > 0 && (l.preventDefault(), (d = k[0]) == null || d.focus());
|
|
391
|
+
break;
|
|
392
|
+
case "Tab":
|
|
393
|
+
j();
|
|
394
|
+
break;
|
|
395
|
+
case "Escape":
|
|
396
|
+
l.preventDefault(), j();
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
}, xl = (l) => {
|
|
400
|
+
var d, k, R;
|
|
401
|
+
const z = I(), L = ke(), K = z.indexOf(L), fe = ye();
|
|
402
|
+
switch (l.key) {
|
|
403
|
+
case "ArrowDown":
|
|
404
|
+
K < z.length - 1 && (l.preventDefault(), (d = z[K + 1]) == null || d.focus());
|
|
405
|
+
break;
|
|
406
|
+
case "ArrowUp":
|
|
407
|
+
l.preventDefault(), K <= 0 ? fe == null || fe.focus() : (k = z[K - 1]) == null || k.focus();
|
|
408
|
+
break;
|
|
409
|
+
case "Tab":
|
|
410
|
+
if (l.preventDefault(), l.shiftKey && K > 0) {
|
|
411
|
+
(R = z[K - 1]) == null || R.focus();
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
j(), ge();
|
|
415
|
+
break;
|
|
416
|
+
case "Escape":
|
|
417
|
+
l.preventDefault(), j(), ge();
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
}, { floatingStyles: Sl } = Zl(U, D, {
|
|
421
|
+
// Matches `bottom` while the dropdown is as wide as the input, and keeps a wider
|
|
422
|
+
// `dropdownWidth` dropdown aligned to the input's left edge.
|
|
423
|
+
placement: "bottom-start",
|
|
424
|
+
middleware: ({ offset: l, flip: d, shift: k, size: R }) => [
|
|
425
|
+
l(4),
|
|
426
|
+
d({
|
|
427
|
+
mainAxis: !0
|
|
428
|
+
}),
|
|
429
|
+
k({ padding: 8 }),
|
|
430
|
+
R({
|
|
431
|
+
padding: 8,
|
|
432
|
+
apply({ availableHeight: z, elements: L }) {
|
|
433
|
+
Object.assign(L.floating.style, {
|
|
434
|
+
maxHeight: `${z}px`
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
})
|
|
438
|
+
]
|
|
439
|
+
}), { width: kl } = ul(U), He = (l) => {
|
|
440
|
+
var d;
|
|
441
|
+
return n.disabled || !n.disabled && n.addOnly && !!((d = S.value) != null && d.includes(l));
|
|
442
|
+
}, ie = f(() => {
|
|
443
|
+
const l = n.options.map((k) => ({
|
|
444
|
+
...k,
|
|
445
|
+
checked: O.value.includes(k.value),
|
|
446
|
+
disabled: k.disabled ?? He(k.value)
|
|
447
|
+
})), d = [
|
|
448
|
+
...l,
|
|
449
|
+
...g.value.length === 0 && Le.value ? Le.value.filter(
|
|
450
|
+
(k) => !l.some((R) => R.value === k.value)
|
|
451
|
+
) : []
|
|
452
|
+
];
|
|
453
|
+
return n.optionsOrderProperties && !De(n.optionsOrderProperties) ? _l(d, n.optionsOrderProperties, n.optionsOrder) : d;
|
|
454
|
+
}), Ze = (l) => ie.value.filter((d) => l.some((k) => d.value === k)), re = f(() => Ze(O.value)), F = f(() => re.value[0]), Pe = f(() => {
|
|
455
|
+
var l;
|
|
456
|
+
if (!(x.value || !n.showSuffixInClosedInput) && !(r.value && re.value.length !== 1))
|
|
457
|
+
return (l = F.value) == null ? void 0 : l.labelSuffixComponent;
|
|
458
|
+
}), me = f(() => {
|
|
459
|
+
var l;
|
|
460
|
+
if (!n.showSelectionInClosedInput || x.value || !r.value)
|
|
461
|
+
return;
|
|
462
|
+
const d = (l = F.value) == null ? void 0 : l.labelPrefixComponent;
|
|
463
|
+
if (d)
|
|
464
|
+
return { component: d, extraCount: re.value.length - 1 };
|
|
465
|
+
}), Ll = f(() => n.size === "xs" ? "px-1" : n.size === "sm" ? "px-2" : "px-4"), Le = H([]);
|
|
466
|
+
he(
|
|
467
|
+
() => {
|
|
468
|
+
if (r.value) return null;
|
|
469
|
+
const l = E.value ?? "";
|
|
470
|
+
return {
|
|
471
|
+
selectedValue: l,
|
|
472
|
+
label: Ce(n.options.find((d) => d.value === l))
|
|
473
|
+
};
|
|
474
|
+
},
|
|
475
|
+
(l) => {
|
|
476
|
+
if (l) {
|
|
477
|
+
if (!l.selectedValue) {
|
|
478
|
+
c.value = "", x.value || (g.value = "");
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
l.label && (c.value = l.label, x.value || (g.value = l.label));
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{ immediate: !0 }
|
|
485
|
+
);
|
|
486
|
+
const We = ({
|
|
487
|
+
value: l,
|
|
488
|
+
checked: d
|
|
489
|
+
}) => {
|
|
490
|
+
let k;
|
|
491
|
+
r.value ? k = d ? [...O.value, l] : O.value.filter((R) => R !== l) : (k = [l], c.value = Ce(
|
|
492
|
+
ie.value.find((R) => R.value === l)
|
|
493
|
+
), g.value = c.value, A.value = !1, x.value = !1, ge()), Le.value = Ze(k), O.value = k, h("change");
|
|
494
|
+
}, Ye = f(
|
|
495
|
+
() => O.value.length > 0 && !n.disabled && !(O.value.length === 1 && O.value[0] === "")
|
|
496
|
+
), Ie = () => {
|
|
497
|
+
O.value = [], C.value = [], r.value || (c.value = "", g.value = "", A.value = !1);
|
|
498
|
+
}, Il = () => {
|
|
499
|
+
if (!r.value && c.value && g.value === c.value) {
|
|
500
|
+
Ie();
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
g.value = "";
|
|
504
|
+
}, wl = f(() => {
|
|
505
|
+
if (!v || !r.value && !A.value)
|
|
506
|
+
return ie.value;
|
|
507
|
+
const l = g.value.toLowerCase();
|
|
508
|
+
return ie.value.filter((d) => d.searchValues ? d.searchValues.some(
|
|
509
|
+
(k) => k.toLowerCase().includes(l)
|
|
510
|
+
) : (d.label ?? "").toLowerCase().includes(l));
|
|
511
|
+
}), j = () => {
|
|
512
|
+
r.value ? (M.value = C.value, g.value = "") : g.value === "" && n.hasReset ? Ie() : (g.value = c.value, A.value = !1), x.value = !1;
|
|
513
|
+
};
|
|
514
|
+
he(C, () => {
|
|
515
|
+
!x.value && !Yl(M.value, C.value) && r.value && (M.value = C.value);
|
|
516
|
+
}), ql("mousedown", (l) => {
|
|
517
|
+
const d = l.composedPath();
|
|
518
|
+
D.value && d.includes(D.value) || U.value && d.includes(U.value) || x.value && j();
|
|
519
|
+
});
|
|
520
|
+
const Ml = f(() => {
|
|
521
|
+
var l, d, k, R, z, L;
|
|
522
|
+
return r.value && x.value ? ((l = n.i18n) == null ? void 0 : l.placeholderSearch) ?? "Search" : me.value ? "" : r.value && re.value.length === 1 ? (d = F.value) == null ? void 0 : d.label : r.value && re.value.length >= 2 ? `${(k = F.value) == null ? void 0 : k.label} +${re.value.length - 1}` : !E.value && !F.value ? x.value ? ((R = n.i18n) == null ? void 0 : R.placeholderSearch) ?? "Search" : ((z = n.i18n) == null ? void 0 : z.placeholderDefault) ?? "Select an option" : x.value ? ((L = n.i18n) == null ? void 0 : L.placeholderSearch) ?? "Search" : !n.singleModelValue && !F.value ? "" : Ce(
|
|
523
|
+
ie.value.find((K) => {
|
|
524
|
+
var fe;
|
|
525
|
+
return K.value === ((fe = te.value) == null ? void 0 : fe.value);
|
|
526
|
+
})
|
|
527
|
+
);
|
|
528
|
+
}), Nl = f(() => {
|
|
529
|
+
const l = !x.value && (!r.value && !!E.value || r.value && !De(n.multiModelValue));
|
|
530
|
+
return Jl(n.inputClass, {
|
|
531
|
+
"text-ellipsis placeholder:text-default": l
|
|
532
|
+
});
|
|
533
|
+
}), Je = f(() => g.value === ""), Al = f(() => !(n.disabled || Je.value || !r.value && c.value !== "" && g.value === c.value && !n.hasReset)), Vl = f(
|
|
534
|
+
() => Ye.value && !!n.hasReset && Je.value && (r.value || !x.value)
|
|
535
|
+
), Pl = !!(m != null && m.onAddOption), $l = () => {
|
|
536
|
+
h("add-option"), j();
|
|
537
|
+
}, $e = f(
|
|
538
|
+
() => {
|
|
539
|
+
var l;
|
|
540
|
+
return !x.value && !r.value && ((l = F.value) == null ? void 0 : l.labelPrefixComponent);
|
|
541
|
+
}
|
|
542
|
+
), je = `search-select-options-${Math.random().toString(36).substring(2, 9)}`;
|
|
543
|
+
return o({
|
|
544
|
+
flushMemoryCachedSelectedOptions: () => Le.value = [],
|
|
545
|
+
close: j
|
|
546
|
+
}), (l, d) => {
|
|
547
|
+
var k, R, z;
|
|
548
|
+
return i(), w(ve, null, [
|
|
549
|
+
$("div", Ct, [
|
|
550
|
+
$("div", {
|
|
551
|
+
ref_key: "wrapperRef",
|
|
552
|
+
ref: U,
|
|
553
|
+
class: q(["relative flex items-end", {
|
|
554
|
+
[`${e.rootClass}`]: e.rootClass,
|
|
555
|
+
"z-30": x.value
|
|
556
|
+
}]),
|
|
557
|
+
role: "combobox",
|
|
558
|
+
"aria-expanded": x.value,
|
|
559
|
+
"aria-haspopup": !0,
|
|
560
|
+
"aria-controls": je,
|
|
561
|
+
onKeydown: Cl
|
|
562
|
+
}, [
|
|
563
|
+
B(s(qe), {
|
|
564
|
+
ref_key: "inputRef",
|
|
565
|
+
ref: de,
|
|
566
|
+
modelValue: g.value,
|
|
567
|
+
"onUpdate:modelValue": d[1] || (d[1] = (L) => g.value = L),
|
|
568
|
+
required: e.required,
|
|
569
|
+
label: e.label,
|
|
570
|
+
name: e.name,
|
|
571
|
+
form: e.form,
|
|
572
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
573
|
+
placeholder: Ml.value,
|
|
574
|
+
class: "grow",
|
|
575
|
+
"wrapper-class": [
|
|
576
|
+
{
|
|
577
|
+
"border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none": x.value
|
|
578
|
+
},
|
|
579
|
+
e.wrapperClass
|
|
580
|
+
],
|
|
581
|
+
"input-class": Nl.value,
|
|
582
|
+
"suffix-class": "border-l-0",
|
|
583
|
+
disabled: e.disabled,
|
|
584
|
+
size: e.size,
|
|
585
|
+
error: e.error,
|
|
586
|
+
invalid: e.invalid,
|
|
587
|
+
"prefix-has-border": b.value,
|
|
588
|
+
"aria-autocomplete": "list",
|
|
589
|
+
onFocus: ce,
|
|
590
|
+
onClick: yl,
|
|
591
|
+
onInput: gl,
|
|
592
|
+
onBlur: d[2] || (d[2] = (L) => l.$emit("blur"))
|
|
593
|
+
}, Ve({
|
|
594
|
+
suffix: P(() => {
|
|
595
|
+
var L, K;
|
|
596
|
+
return [
|
|
597
|
+
$("div", Lt, [
|
|
598
|
+
!x.value && !r.value && ((L = F.value) != null && L.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (i(), y(Z(F.value.labelInlineComponent.component), W(Y({ key: 0 }, F.value.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
599
|
+
!x.value && !r.value && ((K = F.value) != null && K.labelBeforeSuffixComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (i(), y(Z(F.value.labelBeforeSuffixComponent.component), W(Y({ key: 1 }, F.value.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
600
|
+
Pe.value ? (i(), y(Z(Pe.value.component), W(Y({ key: 2 }, Pe.value.props)), null, 16)) : p("", !0),
|
|
601
|
+
$("div", It, [
|
|
602
|
+
Vl.value ? (i(), y(tl, {
|
|
603
|
+
key: 0,
|
|
604
|
+
icon: "close",
|
|
605
|
+
size: "sm",
|
|
606
|
+
intent: "subtle",
|
|
607
|
+
type: "button",
|
|
608
|
+
onMousedown: d[0] || (d[0] = il(() => {
|
|
609
|
+
}, ["prevent"])),
|
|
610
|
+
onClick: Ie
|
|
611
|
+
})) : p("", !0),
|
|
612
|
+
Al.value ? (i(), y(tl, {
|
|
613
|
+
key: 1,
|
|
614
|
+
icon: "close",
|
|
615
|
+
size: "sm",
|
|
616
|
+
intent: "subtle",
|
|
617
|
+
type: "button",
|
|
618
|
+
onClick: Il
|
|
619
|
+
})) : p("", !0),
|
|
620
|
+
B(al, {
|
|
621
|
+
icon: x.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
622
|
+
size: e.size === "xs" || e.size === "sm" ? "xs" : "sm",
|
|
623
|
+
class: q(e.disabled ? "text-disabled" : "text-secondary"),
|
|
624
|
+
"aria-hidden": "true",
|
|
625
|
+
"data-testid": "search-select-chevron"
|
|
626
|
+
}, null, 8, ["icon", "size", "class"])
|
|
627
|
+
])
|
|
628
|
+
])
|
|
629
|
+
];
|
|
630
|
+
}),
|
|
631
|
+
_: 2
|
|
632
|
+
}, [
|
|
633
|
+
l.$slots["label-suffix"] ? {
|
|
634
|
+
name: "label-suffix",
|
|
635
|
+
fn: P(() => [
|
|
636
|
+
X(l.$slots, "label-suffix")
|
|
637
|
+
]),
|
|
638
|
+
key: "0"
|
|
639
|
+
} : void 0,
|
|
640
|
+
l.$slots.tooltip ? {
|
|
641
|
+
name: "tooltip",
|
|
642
|
+
fn: P(() => [
|
|
643
|
+
X(l.$slots, "tooltip")
|
|
644
|
+
]),
|
|
645
|
+
key: "1"
|
|
646
|
+
} : void 0,
|
|
647
|
+
me.value ? {
|
|
648
|
+
name: "input",
|
|
649
|
+
fn: P(() => [
|
|
650
|
+
$("div", {
|
|
651
|
+
class: q(["pointer-events-none absolute inset-0 flex items-center gap-1", Ll.value])
|
|
652
|
+
}, [
|
|
653
|
+
(i(), y(Z(me.value.component.component), W(Qe(me.value.component.props)), null, 16)),
|
|
654
|
+
me.value.extraCount > 0 ? (i(), y(s(Se), {
|
|
655
|
+
key: 0,
|
|
656
|
+
variant: e.size === "xs" || e.size === "sm" ? "body-xs" : "body-sm",
|
|
657
|
+
tag: "span",
|
|
658
|
+
weight: "semibold",
|
|
659
|
+
"no-spacing": ""
|
|
660
|
+
}, {
|
|
661
|
+
default: P(() => [
|
|
662
|
+
_(" +" + J(me.value.extraCount), 1)
|
|
663
|
+
]),
|
|
664
|
+
_: 1
|
|
665
|
+
}, 8, ["variant"])) : p("", !0)
|
|
666
|
+
], 2)
|
|
667
|
+
]),
|
|
668
|
+
key: "2"
|
|
669
|
+
} : void 0,
|
|
670
|
+
V.value || $e.value || !v ? {
|
|
671
|
+
name: "prefix",
|
|
672
|
+
fn: P(() => {
|
|
673
|
+
var L;
|
|
674
|
+
return [
|
|
675
|
+
$("div", St, [
|
|
676
|
+
G.value ? X(l.$slots, "prefix", {}, void 0, void 0, 0) : T.value ? (i(), y(s(Se), {
|
|
677
|
+
key: 1,
|
|
678
|
+
variant: e.size === "xs" ? "body-xs" : "body-sm",
|
|
679
|
+
tag: "span",
|
|
680
|
+
weight: "semibold"
|
|
681
|
+
}, {
|
|
682
|
+
default: P(() => [
|
|
683
|
+
_(J(e.prefix), 1)
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
}, 8, ["variant"])) : $e.value && ((L = F.value) != null && L.labelPrefixComponent) ? (i(), w("div", kt, [
|
|
687
|
+
(i(), y(Z(F.value.labelPrefixComponent.component), W(Qe(F.value.labelPrefixComponent.props)), null, 16))
|
|
688
|
+
])) : v ? p("", !0) : (i(), y(al, {
|
|
689
|
+
key: 3,
|
|
690
|
+
icon: "search",
|
|
691
|
+
size: "sm"
|
|
692
|
+
}))
|
|
693
|
+
])
|
|
694
|
+
];
|
|
695
|
+
}),
|
|
696
|
+
key: "3"
|
|
697
|
+
} : void 0,
|
|
698
|
+
l.$slots.helper ? {
|
|
699
|
+
name: "helper",
|
|
700
|
+
fn: P(() => [
|
|
701
|
+
X(l.$slots, "helper")
|
|
702
|
+
]),
|
|
703
|
+
key: "4"
|
|
704
|
+
} : void 0
|
|
705
|
+
]), 1032, ["modelValue", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "disabled", "size", "error", "invalid", "prefix-has-border"])
|
|
706
|
+
], 42, xt),
|
|
707
|
+
e.withChips ? (i(), w("div", wt, [
|
|
708
|
+
(i(!0), w(ve, null, rl(re.value, ({ value: L, label: K }) => (i(), y(Wl, {
|
|
709
|
+
key: L,
|
|
710
|
+
removable: !He(L),
|
|
711
|
+
onRemoved: (fe) => We({ value: L, checked: !1 })
|
|
712
|
+
}, {
|
|
713
|
+
default: P(() => [
|
|
714
|
+
$("span", { innerHTML: K }, null, 8, Mt)
|
|
715
|
+
]),
|
|
716
|
+
_: 2
|
|
717
|
+
}, 1032, ["removable", "onRemoved"]))), 128))
|
|
718
|
+
])) : p("", !0)
|
|
719
|
+
]),
|
|
720
|
+
s(ae) && s(u) ? (i(), y(Tl, {
|
|
721
|
+
key: 0,
|
|
722
|
+
to: s(u)
|
|
723
|
+
}, [
|
|
724
|
+
x.value && !e.disabled ? (i(), w("div", {
|
|
725
|
+
key: 0,
|
|
726
|
+
id: je,
|
|
727
|
+
ref_key: "optionsRef",
|
|
728
|
+
ref: D,
|
|
729
|
+
role: "listbox",
|
|
730
|
+
style: Xe(s(Sl)),
|
|
731
|
+
class: "z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",
|
|
732
|
+
onMouseenter: d[3] || (d[3] = (L) => x.value = !0),
|
|
733
|
+
onKeydown: xl
|
|
734
|
+
}, [
|
|
735
|
+
$("div", {
|
|
736
|
+
class: "rounded pt-0",
|
|
737
|
+
style: Xe({ width: `${e.dropdownWidth ?? s(kl)}px` })
|
|
738
|
+
}, [
|
|
739
|
+
B(gt, {
|
|
740
|
+
i18n: {
|
|
741
|
+
addOnly: (k = e.i18n) == null ? void 0 : k.addOnly,
|
|
742
|
+
noResults: (R = e.i18n) == null ? void 0 : R.noResults,
|
|
743
|
+
noOptionsAvailable: (z = e.i18n) == null ? void 0 : z.noOptionsAvailable
|
|
744
|
+
},
|
|
745
|
+
options: wl.value,
|
|
746
|
+
multiple: r.value,
|
|
747
|
+
search: g.value,
|
|
748
|
+
model: O.value,
|
|
749
|
+
"add-only": e.addOnly,
|
|
750
|
+
"allows-multiple-values": !!r.value,
|
|
751
|
+
condensed: e.condensed,
|
|
752
|
+
"has-large-dropdown": e.hasLargeDropdown,
|
|
753
|
+
onValueChanged: We
|
|
754
|
+
}, {
|
|
755
|
+
"list-footer-content": P(() => [
|
|
756
|
+
Pl ? (i(), y(Ee, {
|
|
757
|
+
key: 0,
|
|
758
|
+
intent: "subtle",
|
|
759
|
+
class: "w-full rounded-t-none",
|
|
760
|
+
type: "button",
|
|
761
|
+
"icon-prefix": "add",
|
|
762
|
+
onClick: $l
|
|
763
|
+
}, {
|
|
764
|
+
default: P(() => {
|
|
765
|
+
var L;
|
|
766
|
+
return [
|
|
767
|
+
_(J((L = e.i18n) == null ? void 0 : L.addOption), 1)
|
|
768
|
+
];
|
|
769
|
+
}),
|
|
770
|
+
_: 1
|
|
771
|
+
})) : p("", !0),
|
|
772
|
+
r.value ? (i(), w("div", {
|
|
773
|
+
key: 1,
|
|
774
|
+
class: q(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
|
|
775
|
+
}, [
|
|
776
|
+
Ye.value ? (i(), y(Ee, {
|
|
777
|
+
key: 0,
|
|
778
|
+
type: "button",
|
|
779
|
+
intent: "subtle",
|
|
780
|
+
size: "xs",
|
|
781
|
+
class: "ml-2",
|
|
782
|
+
onClick: Ie
|
|
783
|
+
}, {
|
|
784
|
+
default: P(() => {
|
|
785
|
+
var L;
|
|
786
|
+
return [
|
|
787
|
+
_(J(((L = e.i18n) == null ? void 0 : L.multipleValuesClearButtonText) ?? "Clear"), 1)
|
|
788
|
+
];
|
|
789
|
+
}),
|
|
790
|
+
_: 1
|
|
791
|
+
})) : p("", !0),
|
|
792
|
+
$("div", null, [
|
|
793
|
+
X(l.$slots, "list-footer-content", { close: j })
|
|
794
|
+
]),
|
|
795
|
+
B(Ee, {
|
|
796
|
+
type: "button",
|
|
797
|
+
intent: "secondary",
|
|
798
|
+
size: "xs",
|
|
799
|
+
class: "mr-2",
|
|
800
|
+
"data-testid": s(nt),
|
|
801
|
+
onClick: j
|
|
802
|
+
}, {
|
|
803
|
+
default: P(() => {
|
|
804
|
+
var L;
|
|
805
|
+
return [
|
|
806
|
+
_(J(((L = e.i18n) == null ? void 0 : L.multipleValuesDoneButtonText) ?? "Done"), 1)
|
|
807
|
+
];
|
|
808
|
+
}),
|
|
809
|
+
_: 1
|
|
810
|
+
}, 8, ["data-testid"])
|
|
811
|
+
], 2)) : X(l.$slots, "list-footer-content", { close: j }, void 0, void 0, 2)
|
|
812
|
+
]),
|
|
813
|
+
_: 3
|
|
814
|
+
}, 8, ["i18n", "options", "multiple", "search", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown"])
|
|
815
|
+
], 4)
|
|
816
|
+
], 36)) : p("", !0)
|
|
817
|
+
], 8, ["to"])) : p("", !0)
|
|
818
|
+
], 64);
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
}), nl = /* @__PURE__ */ ee({
|
|
822
|
+
__name: "CountrySelect",
|
|
823
|
+
props: {
|
|
824
|
+
label: {},
|
|
825
|
+
singleModelValue: {},
|
|
826
|
+
multiModelValue: {},
|
|
827
|
+
error: {},
|
|
828
|
+
required: { type: Boolean, default: !0 },
|
|
829
|
+
hasReset: { type: Boolean },
|
|
830
|
+
disabled: { type: Boolean },
|
|
831
|
+
size: {},
|
|
832
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
833
|
+
i18n: {},
|
|
834
|
+
name: {},
|
|
835
|
+
form: {}
|
|
836
|
+
},
|
|
837
|
+
emits: ["update:modelValue", "update:singleModelValue"],
|
|
838
|
+
setup(e, { emit: o }) {
|
|
839
|
+
const a = e, t = Ae(a, "singleModelValue"), n = Ae(a, "multiModelValue"), u = o;
|
|
840
|
+
return (m, v) => (i(), y(dl, {
|
|
841
|
+
"multi-model-value": s(n),
|
|
842
|
+
"onUpdate:multiModelValue": v[0] || (v[0] = (r) => _e(n) ? n.value = r : null),
|
|
843
|
+
"single-model-value": s(t),
|
|
844
|
+
"onUpdate:singleModelValue": [
|
|
845
|
+
v[1] || (v[1] = (r) => _e(t) ? t.value = r : null),
|
|
846
|
+
v[2] || (v[2] = (r) => {
|
|
847
|
+
u("update:modelValue", r);
|
|
848
|
+
})
|
|
849
|
+
],
|
|
850
|
+
"root-class": m.$attrs.class,
|
|
851
|
+
label: e.label,
|
|
852
|
+
options: s(Ge).map(({ key: r, value: S }) => ({ label: S, value: r })),
|
|
853
|
+
error: e.error,
|
|
854
|
+
"has-reset": e.hasReset,
|
|
855
|
+
disabled: e.disabled,
|
|
856
|
+
required: e.required,
|
|
857
|
+
"with-chips": !!e.multiModelValue,
|
|
858
|
+
name: e.name,
|
|
859
|
+
form: e.form,
|
|
860
|
+
size: e.size,
|
|
861
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
862
|
+
i18n: e.i18n
|
|
863
|
+
}, Ve({ _: 2 }, [
|
|
864
|
+
m.$slots["label-suffix"] ? {
|
|
865
|
+
name: "label-suffix",
|
|
866
|
+
fn: P(() => [
|
|
867
|
+
X(m.$slots, "label-suffix")
|
|
868
|
+
]),
|
|
869
|
+
key: "0"
|
|
870
|
+
} : void 0
|
|
871
|
+
]), 1032, ["multi-model-value", "single-model-value", "root-class", "label", "options", "error", "has-reset", "disabled", "required", "with-chips", "name", "form", "size", "label-screen-reader-only", "i18n"]));
|
|
872
|
+
}
|
|
873
|
+
}), cl = {
|
|
874
|
+
AF: "93",
|
|
875
|
+
AX: "358",
|
|
876
|
+
AL: "355",
|
|
877
|
+
DZ: "213",
|
|
878
|
+
AS: "1684",
|
|
879
|
+
AD: "376",
|
|
880
|
+
AO: "244",
|
|
881
|
+
AI: "1264",
|
|
882
|
+
AQ: "672",
|
|
883
|
+
AG: "1268",
|
|
884
|
+
AR: "54",
|
|
885
|
+
AM: "374",
|
|
886
|
+
AW: "297",
|
|
887
|
+
AU: "61",
|
|
888
|
+
AT: "43",
|
|
889
|
+
AZ: "994",
|
|
890
|
+
BS: "1242",
|
|
891
|
+
BH: "973",
|
|
892
|
+
BD: "880",
|
|
893
|
+
BB: "1246",
|
|
894
|
+
BY: "375",
|
|
895
|
+
BE: "32",
|
|
896
|
+
BZ: "501",
|
|
897
|
+
BJ: "229",
|
|
898
|
+
BM: "1441",
|
|
899
|
+
BT: "975",
|
|
900
|
+
BO: "591",
|
|
901
|
+
BA: "387",
|
|
902
|
+
BW: "267",
|
|
903
|
+
BR: "55",
|
|
904
|
+
IO: "246",
|
|
905
|
+
BN: "673",
|
|
906
|
+
BG: "359",
|
|
907
|
+
BF: "226",
|
|
908
|
+
BI: "257",
|
|
909
|
+
KH: "855",
|
|
910
|
+
CM: "237",
|
|
911
|
+
CA: "1",
|
|
912
|
+
CV: "238",
|
|
913
|
+
KY: "1345",
|
|
914
|
+
CF: "236",
|
|
915
|
+
TD: "235",
|
|
916
|
+
CL: "56",
|
|
917
|
+
CN: "86",
|
|
918
|
+
CX: "61",
|
|
919
|
+
CC: "61",
|
|
920
|
+
CO: "57",
|
|
921
|
+
KM: "269",
|
|
922
|
+
CG: "242",
|
|
923
|
+
CD: "243",
|
|
924
|
+
CK: "682",
|
|
925
|
+
CR: "506",
|
|
926
|
+
CI: "225",
|
|
927
|
+
HR: "385",
|
|
928
|
+
CU: "53",
|
|
929
|
+
CW: "599",
|
|
930
|
+
CY: "357",
|
|
931
|
+
CZ: "420",
|
|
932
|
+
DK: "45",
|
|
933
|
+
DJ: "253",
|
|
934
|
+
DM: "1767",
|
|
935
|
+
DO: "1809",
|
|
936
|
+
EC: "593",
|
|
937
|
+
EG: "20",
|
|
938
|
+
SV: "503",
|
|
939
|
+
GQ: "240",
|
|
940
|
+
ER: "291",
|
|
941
|
+
EE: "372",
|
|
942
|
+
ET: "251",
|
|
943
|
+
FK: "500",
|
|
944
|
+
FO: "298",
|
|
945
|
+
FJ: "679",
|
|
946
|
+
FI: "358",
|
|
947
|
+
FR: "33",
|
|
948
|
+
GF: "594",
|
|
949
|
+
PF: "689",
|
|
950
|
+
TF: "262",
|
|
951
|
+
GA: "241",
|
|
952
|
+
GM: "220",
|
|
953
|
+
GE: "995",
|
|
954
|
+
DE: "49",
|
|
955
|
+
GH: "233",
|
|
956
|
+
GI: "350",
|
|
957
|
+
GR: "30",
|
|
958
|
+
GL: "299",
|
|
959
|
+
GD: "1473",
|
|
960
|
+
GP: "590",
|
|
961
|
+
GU: "1671",
|
|
962
|
+
GT: "502",
|
|
963
|
+
GG: "44",
|
|
964
|
+
GN: "224",
|
|
965
|
+
GW: "245",
|
|
966
|
+
GY: "592",
|
|
967
|
+
HT: "509",
|
|
968
|
+
VA: "39",
|
|
969
|
+
HN: "504",
|
|
970
|
+
HK: "852",
|
|
971
|
+
HU: "36",
|
|
972
|
+
IS: "354",
|
|
973
|
+
IN: "91",
|
|
974
|
+
ID: "62",
|
|
975
|
+
IR: "98",
|
|
976
|
+
IQ: "964",
|
|
977
|
+
IE: "353",
|
|
978
|
+
IM: "44",
|
|
979
|
+
IL: "972",
|
|
980
|
+
IT: "39",
|
|
981
|
+
JM: "1876",
|
|
982
|
+
JP: "81",
|
|
983
|
+
JE: "44",
|
|
984
|
+
JO: "962",
|
|
985
|
+
KZ: "7",
|
|
986
|
+
KE: "254",
|
|
987
|
+
KI: "686",
|
|
988
|
+
KR: "82",
|
|
989
|
+
KP: "850",
|
|
990
|
+
KW: "965",
|
|
991
|
+
KG: "996",
|
|
992
|
+
LA: "856",
|
|
993
|
+
LV: "371",
|
|
994
|
+
LB: "961",
|
|
995
|
+
LS: "266",
|
|
996
|
+
LR: "231",
|
|
997
|
+
LY: "218",
|
|
998
|
+
LI: "423",
|
|
999
|
+
LT: "370",
|
|
1000
|
+
LU: "352",
|
|
1001
|
+
MO: "853",
|
|
1002
|
+
MK: "389",
|
|
1003
|
+
MG: "261",
|
|
1004
|
+
MW: "265",
|
|
1005
|
+
MY: "60",
|
|
1006
|
+
MV: "960",
|
|
1007
|
+
ML: "223",
|
|
1008
|
+
MT: "356",
|
|
1009
|
+
MH: "692",
|
|
1010
|
+
MQ: "596",
|
|
1011
|
+
MR: "222",
|
|
1012
|
+
MU: "230",
|
|
1013
|
+
YT: "262",
|
|
1014
|
+
MX: "52",
|
|
1015
|
+
FM: "691",
|
|
1016
|
+
MD: "373",
|
|
1017
|
+
MC: "377",
|
|
1018
|
+
MN: "976",
|
|
1019
|
+
ME: "382",
|
|
1020
|
+
MS: "1664",
|
|
1021
|
+
MA: "212",
|
|
1022
|
+
MZ: "258",
|
|
1023
|
+
MM: "95",
|
|
1024
|
+
NA: "264",
|
|
1025
|
+
NR: "674",
|
|
1026
|
+
NP: "977",
|
|
1027
|
+
NL: "31",
|
|
1028
|
+
NC: "687",
|
|
1029
|
+
NZ: "64",
|
|
1030
|
+
NI: "505",
|
|
1031
|
+
NE: "227",
|
|
1032
|
+
NG: "234",
|
|
1033
|
+
NU: "683",
|
|
1034
|
+
NF: "672",
|
|
1035
|
+
MP: "1670",
|
|
1036
|
+
NO: "47",
|
|
1037
|
+
OM: "968",
|
|
1038
|
+
PK: "92",
|
|
1039
|
+
PW: "680",
|
|
1040
|
+
PS: "970",
|
|
1041
|
+
PA: "507",
|
|
1042
|
+
PG: "675",
|
|
1043
|
+
PY: "595",
|
|
1044
|
+
PE: "51",
|
|
1045
|
+
PH: "63",
|
|
1046
|
+
PN: "64",
|
|
1047
|
+
PL: "48",
|
|
1048
|
+
PT: "351",
|
|
1049
|
+
PR: "1787",
|
|
1050
|
+
QA: "974",
|
|
1051
|
+
RE: "262",
|
|
1052
|
+
RO: "40",
|
|
1053
|
+
RU: "7",
|
|
1054
|
+
RW: "250",
|
|
1055
|
+
BL: "590",
|
|
1056
|
+
SH: "290",
|
|
1057
|
+
KN: "1869",
|
|
1058
|
+
LC: "1758",
|
|
1059
|
+
MF: "590",
|
|
1060
|
+
PM: "508",
|
|
1061
|
+
VC: "1784",
|
|
1062
|
+
WS: "685",
|
|
1063
|
+
SM: "378",
|
|
1064
|
+
ST: "239",
|
|
1065
|
+
SA: "966",
|
|
1066
|
+
SN: "221",
|
|
1067
|
+
RS: "381",
|
|
1068
|
+
SC: "248",
|
|
1069
|
+
SL: "232",
|
|
1070
|
+
SG: "65",
|
|
1071
|
+
SK: "421",
|
|
1072
|
+
SI: "386",
|
|
1073
|
+
SB: "677",
|
|
1074
|
+
SO: "252",
|
|
1075
|
+
ZA: "27",
|
|
1076
|
+
GS: "500",
|
|
1077
|
+
ES: "34",
|
|
1078
|
+
LK: "94",
|
|
1079
|
+
SD: "249",
|
|
1080
|
+
SR: "597",
|
|
1081
|
+
SJ: "47",
|
|
1082
|
+
SZ: "268",
|
|
1083
|
+
SE: "46",
|
|
1084
|
+
CH: "41",
|
|
1085
|
+
SY: "963",
|
|
1086
|
+
TW: "886",
|
|
1087
|
+
TJ: "992",
|
|
1088
|
+
TZ: "255",
|
|
1089
|
+
TH: "66",
|
|
1090
|
+
TL: "670",
|
|
1091
|
+
TG: "228",
|
|
1092
|
+
TK: "690",
|
|
1093
|
+
TO: "676",
|
|
1094
|
+
TT: "1868",
|
|
1095
|
+
TN: "216",
|
|
1096
|
+
TR: "90",
|
|
1097
|
+
TM: "993",
|
|
1098
|
+
TC: "1649",
|
|
1099
|
+
TV: "688",
|
|
1100
|
+
UG: "256",
|
|
1101
|
+
UA: "380",
|
|
1102
|
+
AE: "971",
|
|
1103
|
+
GB: "44",
|
|
1104
|
+
US: "1",
|
|
1105
|
+
UM: "1",
|
|
1106
|
+
UY: "598",
|
|
1107
|
+
UZ: "998",
|
|
1108
|
+
VU: "678",
|
|
1109
|
+
VE: "58",
|
|
1110
|
+
VN: "84",
|
|
1111
|
+
VG: "1284",
|
|
1112
|
+
VI: "1340",
|
|
1113
|
+
WF: "681",
|
|
1114
|
+
EH: "212",
|
|
1115
|
+
YE: "967",
|
|
1116
|
+
ZM: "260",
|
|
1117
|
+
ZW: "263"
|
|
1118
|
+
}, Nt = {
|
|
1119
|
+
1: "US",
|
|
1120
|
+
7: "RU",
|
|
1121
|
+
39: "IT",
|
|
1122
|
+
44: "GB",
|
|
1123
|
+
47: "NO",
|
|
1124
|
+
61: "AU",
|
|
1125
|
+
64: "NZ",
|
|
1126
|
+
212: "MA",
|
|
1127
|
+
262: "RE",
|
|
1128
|
+
358: "FI",
|
|
1129
|
+
500: "FK",
|
|
1130
|
+
590: "GP",
|
|
1131
|
+
672: "NF"
|
|
1132
|
+
}, At = /* @__PURE__ */ new Set(["IT", "VA", "SM", "CI", "CG", "GA"]), ml = Ge.flatMap(({ key: e }) => {
|
|
1133
|
+
const o = cl[e];
|
|
1134
|
+
return o ? [{ countryCode: e, dialCode: o }] : [];
|
|
1135
|
+
}), Vt = (e) => cl[e], Pt = (e) => String.fromCodePoint(
|
|
1136
|
+
...[...e.toUpperCase()].map((o) => 127462 + o.charCodeAt(0) - 65)
|
|
1137
|
+
), xe = (e) => /^\s*(\+|00)/.test(e), Ke = (e) => e.replace(/\D/g, ""), fl = (e) => Ke(e.trim().replace(/^00/, "")), we = (e, o) => {
|
|
1138
|
+
var a;
|
|
1139
|
+
if (!xe(e))
|
|
1140
|
+
return { nationalNumber: Ke(e) };
|
|
1141
|
+
const t = fl(e), n = ml.filter(({ dialCode: S }) => t.startsWith(S)), u = Math.max(0, ...n.map(({ dialCode: S }) => S.length)), m = n.filter(({ dialCode: S }) => S.length === u);
|
|
1142
|
+
if (m.length === 0)
|
|
1143
|
+
return { nationalNumber: t };
|
|
1144
|
+
const v = m[0].dialCode;
|
|
1145
|
+
return { countryCode: ((a = m.find(({ countryCode: S }) => S === o)) == null ? void 0 : a.countryCode) ?? Nt[v] ?? m[0].countryCode, nationalNumber: t.slice(v.length) };
|
|
1146
|
+
}, $t = (e, o) => {
|
|
1147
|
+
if (xe(o)) {
|
|
1148
|
+
const u = fl(o);
|
|
1149
|
+
return u ? `+${u}` : null;
|
|
1150
|
+
}
|
|
1151
|
+
const a = e ? Vt(e) : void 0, t = Ke(o);
|
|
1152
|
+
if (!a || !e || !t)
|
|
1153
|
+
return null;
|
|
1154
|
+
const n = At.has(e) ? t : t.replace(/^0/, "");
|
|
1155
|
+
return `+${a}${n}`;
|
|
1156
|
+
}, Et = /* @__PURE__ */ ee({
|
|
1157
|
+
__name: "PhoneInputFlag",
|
|
1158
|
+
props: {
|
|
1159
|
+
countryCode: {}
|
|
1160
|
+
},
|
|
1161
|
+
setup(e) {
|
|
1162
|
+
const o = e, a = f(() => Pt(o.countryCode));
|
|
1163
|
+
return (t, n) => (i(), y(Se, {
|
|
1164
|
+
tag: "span",
|
|
1165
|
+
"aria-hidden": "true",
|
|
1166
|
+
color: "inherit",
|
|
1167
|
+
class: "leading-none"
|
|
1168
|
+
}, {
|
|
1169
|
+
default: P(() => [
|
|
1170
|
+
_(J(a.value), 1)
|
|
1171
|
+
]),
|
|
1172
|
+
_: 1
|
|
1173
|
+
}));
|
|
1174
|
+
}
|
|
1175
|
+
}), Ot = ["id"], Rt = ["aria-labelledby"], Bt = ["id"], Re = "rounded-none border-0 bg-transparent focus-within:border-0 focus-within:ring-0", Tt = /* @__PURE__ */ ee({
|
|
1176
|
+
__name: "PhoneInput",
|
|
1177
|
+
props: {
|
|
1178
|
+
modelValue: { default: null },
|
|
1179
|
+
label: {},
|
|
1180
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
1181
|
+
placeholder: {},
|
|
1182
|
+
defaultCountry: {},
|
|
1183
|
+
required: { type: Boolean, default: !1 },
|
|
1184
|
+
disabled: { type: Boolean, default: !1 },
|
|
1185
|
+
size: { default: "md" },
|
|
1186
|
+
error: {},
|
|
1187
|
+
name: { default: "phone" },
|
|
1188
|
+
form: {}
|
|
1189
|
+
},
|
|
1190
|
+
emits: ["update:modelValue"],
|
|
1191
|
+
setup(e, { emit: o }) {
|
|
1192
|
+
const a = e, t = o, n = ze(), { formatMessage: u, formatDisplayName: m } = n, v = Oe("phone-input-label-"), r = Oe("phone-input-number-"), S = Oe("phone-input-error-"), h = f(() => !De(a.error)), E = (c) => m(c, { type: "region" }) ?? el(c), M = f(
|
|
1193
|
+
() => ml.map(({ countryCode: c, dialCode: A }) => {
|
|
1194
|
+
const ce = E(c);
|
|
1195
|
+
return {
|
|
1196
|
+
value: c,
|
|
1197
|
+
label: ce,
|
|
1198
|
+
subLabel: `+${A}`,
|
|
1199
|
+
selectedLabel: `+${A}`,
|
|
1200
|
+
searchValues: [ce, el(c), `+${A}`],
|
|
1201
|
+
labelPrefixComponent: Dl({
|
|
1202
|
+
component: Et,
|
|
1203
|
+
props: { countryCode: c }
|
|
1204
|
+
})
|
|
1205
|
+
};
|
|
1206
|
+
}).sort((c, A) => c.label.localeCompare(A.label, n.locale))
|
|
1207
|
+
), C = H(), g = f(() => C.value ?? a.defaultCountry), N = H("");
|
|
1208
|
+
let G;
|
|
1209
|
+
he(
|
|
1210
|
+
() => a.modelValue,
|
|
1211
|
+
(c) => {
|
|
1212
|
+
if (c === G)
|
|
1213
|
+
return;
|
|
1214
|
+
if (G = c, !c) {
|
|
1215
|
+
N.value = "", C.value = void 0;
|
|
1216
|
+
return;
|
|
1217
|
+
}
|
|
1218
|
+
const { countryCode: A, nationalNumber: ce } = we(c, g.value);
|
|
1219
|
+
A ? (C.value = A, N.value = ce) : N.value = c;
|
|
1220
|
+
},
|
|
1221
|
+
{ immediate: !0 }
|
|
1222
|
+
);
|
|
1223
|
+
const T = () => {
|
|
1224
|
+
const c = $t(g.value, N.value);
|
|
1225
|
+
G = c, c !== a.modelValue && t("update:modelValue", c);
|
|
1226
|
+
};
|
|
1227
|
+
he(
|
|
1228
|
+
() => a.defaultCountry,
|
|
1229
|
+
() => {
|
|
1230
|
+
C.value || T();
|
|
1231
|
+
}
|
|
1232
|
+
);
|
|
1233
|
+
const V = (c) => {
|
|
1234
|
+
xe(N.value) && (N.value = we(N.value, g.value).nationalNumber), C.value = c || void 0, T(), c && Ce();
|
|
1235
|
+
}, b = (c) => {
|
|
1236
|
+
if (N.value = typeof c == "string" ? c : "", xe(N.value)) {
|
|
1237
|
+
const { countryCode: A } = we(N.value, g.value);
|
|
1238
|
+
A && (C.value = A);
|
|
1239
|
+
}
|
|
1240
|
+
T();
|
|
1241
|
+
}, O = () => {
|
|
1242
|
+
if (!xe(N.value))
|
|
1243
|
+
return;
|
|
1244
|
+
const { countryCode: c, nationalNumber: A } = we(
|
|
1245
|
+
N.value,
|
|
1246
|
+
g.value
|
|
1247
|
+
);
|
|
1248
|
+
c && (N.value = A, T());
|
|
1249
|
+
}, le = (c) => {
|
|
1250
|
+
c.target instanceof HTMLInputElement && c.target.select();
|
|
1251
|
+
}, te = f(
|
|
1252
|
+
() => g.value ? u(
|
|
1253
|
+
{
|
|
1254
|
+
id: "phone_input.country_select.label_with_country",
|
|
1255
|
+
defaultMessage: "Country code: {country}",
|
|
1256
|
+
description: "Screen reader label of the phone number country code select, with the selected country"
|
|
1257
|
+
},
|
|
1258
|
+
{ country: E(g.value) }
|
|
1259
|
+
) : u({
|
|
1260
|
+
id: "phone_input.country_select.label",
|
|
1261
|
+
defaultMessage: "Country code",
|
|
1262
|
+
description: "Screen reader label of the phone number country code select"
|
|
1263
|
+
})
|
|
1264
|
+
), ae = f(() => ({
|
|
1265
|
+
placeholderDefault: u({
|
|
1266
|
+
id: "phone_input.country_select.placeholder",
|
|
1267
|
+
defaultMessage: "Code",
|
|
1268
|
+
description: "Placeholder of the phone number country code select when no country is selected"
|
|
1269
|
+
}),
|
|
1270
|
+
placeholderSearch: u({
|
|
1271
|
+
id: "phone_input.country_select.search_placeholder",
|
|
1272
|
+
defaultMessage: "Search",
|
|
1273
|
+
description: "Placeholder of the phone number country code select while searching"
|
|
1274
|
+
}),
|
|
1275
|
+
noResults: (c) => u(
|
|
1276
|
+
{
|
|
1277
|
+
id: "phone_input.country_select.no_results",
|
|
1278
|
+
defaultMessage: "No countries match {search}.",
|
|
1279
|
+
description: "Shown when no country name or calling code matches the search in the phone number country code select"
|
|
1280
|
+
},
|
|
1281
|
+
{ search: c }
|
|
1282
|
+
)
|
|
1283
|
+
})), x = {
|
|
1284
|
+
xs: "w-28",
|
|
1285
|
+
sm: "w-28",
|
|
1286
|
+
md: "w-32",
|
|
1287
|
+
lg: "w-36",
|
|
1288
|
+
xl: "w-36"
|
|
1289
|
+
}, { size: D, disabled: U } = Fl(a), { wrapperClasses: de } = jl({
|
|
1290
|
+
size: D,
|
|
1291
|
+
disabled: U,
|
|
1292
|
+
hasError: h,
|
|
1293
|
+
ring: H(!0)
|
|
1294
|
+
}), I = {
|
|
1295
|
+
xs: "pl-1",
|
|
1296
|
+
sm: "pl-2",
|
|
1297
|
+
md: "pl-4",
|
|
1298
|
+
lg: "pl-4",
|
|
1299
|
+
xl: "pl-4"
|
|
1300
|
+
}, ke = f(
|
|
1301
|
+
() => g.value ? "pl-2 pr-0" : `${I[a.size]} pr-0`
|
|
1302
|
+
), ye = f(
|
|
1303
|
+
() => g.value && I[a.size] === "pl-4" ? `${Re} pl-1` : Re
|
|
1304
|
+
), se = H(), { width: ge } = ul(se), Ce = () => {
|
|
1305
|
+
var c, A;
|
|
1306
|
+
(A = (c = se.value) == null ? void 0 : c.querySelector(`#${r}`)) == null || A.focus();
|
|
1307
|
+
};
|
|
1308
|
+
return (c, A) => (i(), w("div", null, [
|
|
1309
|
+
B(Ql, {
|
|
1310
|
+
id: s(v),
|
|
1311
|
+
for: s(r),
|
|
1312
|
+
required: e.required,
|
|
1313
|
+
"screen-reader-only": e.labelScreenReaderOnly
|
|
1314
|
+
}, Ve({
|
|
1315
|
+
default: P(() => [
|
|
1316
|
+
_(J(e.label) + " ", 1)
|
|
1317
|
+
]),
|
|
1318
|
+
_: 2
|
|
1319
|
+
}, [
|
|
1320
|
+
h.value && !e.labelScreenReaderOnly ? {
|
|
1321
|
+
name: "suffix",
|
|
1322
|
+
fn: P(() => [
|
|
1323
|
+
$("div", { id: s(S) }, [
|
|
1324
|
+
B(Fe, { message: e.error }, null, 8, ["message"])
|
|
1325
|
+
], 8, Ot)
|
|
1326
|
+
]),
|
|
1327
|
+
key: "0"
|
|
1328
|
+
} : void 0
|
|
1329
|
+
]), 1032, ["id", "for", "required", "screen-reader-only"]),
|
|
1330
|
+
$("div", {
|
|
1331
|
+
ref_key: "fieldRef",
|
|
1332
|
+
ref: se,
|
|
1333
|
+
role: "group",
|
|
1334
|
+
"aria-labelledby": s(v),
|
|
1335
|
+
class: q(["flex flex-row items-end", s(de)])
|
|
1336
|
+
}, [
|
|
1337
|
+
$("div", {
|
|
1338
|
+
class: q(["shrink-0", x[s(D)]]),
|
|
1339
|
+
onFocusin: le
|
|
1340
|
+
}, [
|
|
1341
|
+
B(dl, {
|
|
1342
|
+
"single-model-value": g.value ?? null,
|
|
1343
|
+
options: M.value,
|
|
1344
|
+
"options-order-properties": null,
|
|
1345
|
+
label: te.value,
|
|
1346
|
+
"label-screen-reader-only": "",
|
|
1347
|
+
i18n: ae.value,
|
|
1348
|
+
size: s(D),
|
|
1349
|
+
disabled: s(U),
|
|
1350
|
+
required: "",
|
|
1351
|
+
invalid: h.value,
|
|
1352
|
+
name: `${e.name}-country`,
|
|
1353
|
+
form: e.form,
|
|
1354
|
+
"dropdown-width": s(ge) || void 0,
|
|
1355
|
+
"wrapper-class": ye.value,
|
|
1356
|
+
"input-class": ke.value,
|
|
1357
|
+
condensed: "",
|
|
1358
|
+
"onUpdate:singleModelValue": V
|
|
1359
|
+
}, null, 8, ["single-model-value", "options", "label", "i18n", "size", "disabled", "invalid", "name", "form", "dropdown-width", "wrapper-class", "input-class"])
|
|
1360
|
+
], 34),
|
|
1361
|
+
B(qe, {
|
|
1362
|
+
id: s(r),
|
|
1363
|
+
"model-value": N.value,
|
|
1364
|
+
type: "tel",
|
|
1365
|
+
autocomplete: "tel",
|
|
1366
|
+
class: "grow",
|
|
1367
|
+
"wrapper-class": Re,
|
|
1368
|
+
"has-focus-styles": !1,
|
|
1369
|
+
size: s(D),
|
|
1370
|
+
name: e.name,
|
|
1371
|
+
form: e.form,
|
|
1372
|
+
required: e.required,
|
|
1373
|
+
disabled: s(U),
|
|
1374
|
+
invalid: h.value,
|
|
1375
|
+
"aria-required": e.required || void 0,
|
|
1376
|
+
"aria-invalid": h.value || void 0,
|
|
1377
|
+
"aria-describedby": h.value ? s(S) : void 0,
|
|
1378
|
+
placeholder: e.placeholder,
|
|
1379
|
+
"onUpdate:modelValue": b,
|
|
1380
|
+
onBlur: O
|
|
1381
|
+
}, null, 8, ["id", "model-value", "size", "name", "form", "required", "disabled", "invalid", "aria-required", "aria-invalid", "aria-describedby", "placeholder"])
|
|
1382
|
+
], 10, Rt),
|
|
1383
|
+
h.value && e.labelScreenReaderOnly ? (i(), w("div", {
|
|
1384
|
+
key: 0,
|
|
1385
|
+
id: s(S),
|
|
1386
|
+
class: "mt-1"
|
|
1387
|
+
}, [
|
|
1388
|
+
B(Fe, { message: e.error }, null, 8, ["message"])
|
|
1389
|
+
], 8, Bt)) : p("", !0)
|
|
1390
|
+
]));
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
function Dt(e) {
|
|
1394
|
+
return !!Ge.find((o) => o.key === e);
|
|
1395
|
+
}
|
|
1396
|
+
const ol = ["email", "country"], Ft = "GENERIC_TAX_ID", sl = {
|
|
1397
|
+
US: ["addressLine1", "postalCode"],
|
|
1398
|
+
CA: ["state"]
|
|
1399
|
+
}, Ut = (e) => !e || !sl[e] ? ol : [...sl[e], ...ol], Gt = [
|
|
1400
|
+
[
|
|
1401
|
+
"customer_details",
|
|
1402
|
+
["companyLegalName", "companyRegistrationNumber", "firstName", "infix", "lastName"]
|
|
1403
|
+
],
|
|
1404
|
+
["address", ["addressLine1", "addressLine2", "postalCode", "city", "state", "country"]],
|
|
1405
|
+
["tax_ids", ["companyVatNumber", "taxExempt", "taxExemptNote"]],
|
|
1406
|
+
["email", ["email"]]
|
|
1407
|
+
], Sa = (e, o) => {
|
|
1408
|
+
var t;
|
|
1409
|
+
const a = (t = Gt.find(([, n]) => n.includes(o))) == null ? void 0 : t[0];
|
|
1410
|
+
return a && (e == null ? void 0 : e[a]) || "EDITABLE";
|
|
1411
|
+
}, pl = (e) => e.type === "ORGANIZATION" && e.country !== "US", be = {
|
|
1412
|
+
BILLING: {
|
|
1413
|
+
line1: "addressLine1",
|
|
1414
|
+
line2: "addressLine2",
|
|
1415
|
+
postalCode: "postalCode",
|
|
1416
|
+
city: "city",
|
|
1417
|
+
state: "state",
|
|
1418
|
+
country: "country"
|
|
1419
|
+
},
|
|
1420
|
+
SHIPPING: {
|
|
1421
|
+
line1: "shippingAddressLine1",
|
|
1422
|
+
line2: "shippingAddressLine2",
|
|
1423
|
+
postalCode: "shippingPostalCode",
|
|
1424
|
+
city: "shippingCity",
|
|
1425
|
+
state: "shippingState",
|
|
1426
|
+
country: "shippingCountry"
|
|
1427
|
+
}
|
|
1428
|
+
}, zt = ["line1", "line2", "postalCode", "city", "state", "country"], qt = ["A", "C", "S", "Z"], Kt = {
|
|
1429
|
+
A: ["line1", "line2"],
|
|
1430
|
+
C: ["city"],
|
|
1431
|
+
S: ["state"],
|
|
1432
|
+
Z: ["postalCode"]
|
|
1433
|
+
}, hl = (e) => qt.filter((o) => e.includes(o)).flatMap(
|
|
1434
|
+
(o) => Kt[o]
|
|
1435
|
+
), vl = (e) => hl((e == null ? void 0 : e.fields) ?? "ACSZ"), Ht = (e, o) => {
|
|
1436
|
+
const a = Ut(o);
|
|
1437
|
+
return zt.filter((t) => a.includes(be.BILLING[t])).map(
|
|
1438
|
+
(t) => be[e][t]
|
|
1439
|
+
);
|
|
1440
|
+
}, ka = (e, o, a) => {
|
|
1441
|
+
const t = a ? hl(a.required).filter((n) => n !== "line2") : ["line1", "postalCode", "city"];
|
|
1442
|
+
return [
|
|
1443
|
+
.../* @__PURE__ */ new Set([
|
|
1444
|
+
...t.map((n) => be[e][n]),
|
|
1445
|
+
...Ht(e, o)
|
|
1446
|
+
])
|
|
1447
|
+
];
|
|
1448
|
+
}, Me = (e) => (e == null ? void 0 : e.trim()) || void 0, bl = (e, o, a) => {
|
|
1449
|
+
var v;
|
|
1450
|
+
const t = be[o], n = new Set(vl(a)), u = (r) => n.has(r) ? Me(e[t[r]]) : void 0, m = (v = u("postalCode")) == null ? void 0 : v.toUpperCase();
|
|
1451
|
+
return {
|
|
1452
|
+
...u("line1") && { line1: u("line1") },
|
|
1453
|
+
...u("line2") && { line2: u("line2") },
|
|
1454
|
+
...u("city") && { city: u("city") },
|
|
1455
|
+
...u("state") && { state: u("state") },
|
|
1456
|
+
...m && { postal_code: m },
|
|
1457
|
+
country: e[t.country] ?? ""
|
|
1458
|
+
};
|
|
1459
|
+
}, Zt = (e, o) => {
|
|
1460
|
+
const a = bl(e, "SHIPPING", o);
|
|
1461
|
+
return {
|
|
1462
|
+
addressLine1: a.line1,
|
|
1463
|
+
addressLine2: a.line2,
|
|
1464
|
+
postalCode: a.postal_code,
|
|
1465
|
+
city: a.city,
|
|
1466
|
+
state: a.state,
|
|
1467
|
+
country: e.shippingCountry
|
|
1468
|
+
};
|
|
1469
|
+
}, La = (e, o, a) => {
|
|
1470
|
+
var m;
|
|
1471
|
+
const t = Me(e.shippingAttentionName), n = Me(e.shippingFirstName), u = Me(e.shippingLastName);
|
|
1472
|
+
return {
|
|
1473
|
+
reference: o,
|
|
1474
|
+
recipient: {
|
|
1475
|
+
type: e.type,
|
|
1476
|
+
...e.type === "ORGANIZATION" ? {
|
|
1477
|
+
organization: {
|
|
1478
|
+
company_name: e.companyLegalName ?? "",
|
|
1479
|
+
...t && { attention_name: t }
|
|
1480
|
+
}
|
|
1481
|
+
} : {
|
|
1482
|
+
individual: {
|
|
1483
|
+
name: {
|
|
1484
|
+
...n && { first_name: n },
|
|
1485
|
+
...u && { last_name: u }
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
phone_number: ((m = e.shippingPhoneNumber) == null ? void 0 : m.trim()) ?? "",
|
|
1490
|
+
email: e.email ?? ""
|
|
1491
|
+
},
|
|
1492
|
+
address: bl(e, "SHIPPING", a)
|
|
1493
|
+
};
|
|
1494
|
+
}, Ia = (e, { isShipped: o, format: a }) => Wt(o ? { ...e, ...Zt(e, a) } : e, {
|
|
1495
|
+
withVatNumber: pl(e)
|
|
1496
|
+
}), Wt = (e, { withVatNumber: o = pl(e) } = {}) => {
|
|
1497
|
+
const a = {
|
|
1498
|
+
...e.addressLine1 && { line1: e.addressLine1 },
|
|
1499
|
+
...e.addressLine2 && { line2: e.addressLine2 },
|
|
1500
|
+
...e.city && { city: e.city },
|
|
1501
|
+
...e.state && { state: e.state },
|
|
1502
|
+
...e.postalCode && { postal_code: e.postalCode },
|
|
1503
|
+
country: e.country ?? ""
|
|
1504
|
+
};
|
|
1505
|
+
return e.type === "ORGANIZATION" ? {
|
|
1506
|
+
type: "ORGANIZATION",
|
|
1507
|
+
organization: {
|
|
1508
|
+
legal_name: e.companyLegalName ?? "",
|
|
1509
|
+
registered_address: a,
|
|
1510
|
+
...e.companyVatNumber && o && {
|
|
1511
|
+
tax_ids: [
|
|
1512
|
+
{ id: e.companyVatNumber, type: Ft }
|
|
1513
|
+
]
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
} : {
|
|
1517
|
+
type: "INDIVIDUAL",
|
|
1518
|
+
individual: {
|
|
1519
|
+
residential_address: a
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
}, wa = (e = {}) => ({
|
|
1523
|
+
email: void 0,
|
|
1524
|
+
country: void 0,
|
|
1525
|
+
type: "INDIVIDUAL",
|
|
1526
|
+
companyLegalName: void 0,
|
|
1527
|
+
firstName: void 0,
|
|
1528
|
+
infix: void 0,
|
|
1529
|
+
lastName: void 0,
|
|
1530
|
+
addressLine1: void 0,
|
|
1531
|
+
addressLine2: void 0,
|
|
1532
|
+
postalCode: void 0,
|
|
1533
|
+
city: void 0,
|
|
1534
|
+
state: void 0,
|
|
1535
|
+
companyVatNumber: void 0,
|
|
1536
|
+
companyRegistrationNumber: void 0,
|
|
1537
|
+
taxExempt: void 0,
|
|
1538
|
+
taxExemptNote: void 0,
|
|
1539
|
+
shippingAddressLine1: void 0,
|
|
1540
|
+
shippingAddressLine2: void 0,
|
|
1541
|
+
shippingPostalCode: void 0,
|
|
1542
|
+
shippingCity: void 0,
|
|
1543
|
+
shippingState: void 0,
|
|
1544
|
+
shippingCountry: void 0,
|
|
1545
|
+
shippingPhoneNumber: void 0,
|
|
1546
|
+
shippingFirstName: void 0,
|
|
1547
|
+
shippingLastName: void 0,
|
|
1548
|
+
shippingAttentionName: void 0,
|
|
1549
|
+
billingAddressSameAsShipping: !0,
|
|
1550
|
+
seatsValues: void 0,
|
|
1551
|
+
unitsValues: void 0,
|
|
1552
|
+
enabledPricingIds: void 0,
|
|
1553
|
+
...e
|
|
1554
|
+
}), Yt = ["for"], oe = /* @__PURE__ */ ee({
|
|
1555
|
+
__name: "HiddenLabelInput",
|
|
1556
|
+
props: /* @__PURE__ */ Ne({
|
|
1557
|
+
label: { type: String },
|
|
1558
|
+
name: { type: String },
|
|
1559
|
+
placeholder: { type: String },
|
|
1560
|
+
error: { type: [String, Array] },
|
|
1561
|
+
autocomplete: { type: String }
|
|
1562
|
+
}, {
|
|
1563
|
+
modelValue: {},
|
|
1564
|
+
modelModifiers: {}
|
|
1565
|
+
}),
|
|
1566
|
+
emits: ["update:modelValue"],
|
|
1567
|
+
setup(e) {
|
|
1568
|
+
const o = e, a = Ue(e, "modelValue"), t = Ul(), n = f(
|
|
1569
|
+
() => Array.isArray(o.error) ? !!o.error.length : !!o.error
|
|
1570
|
+
);
|
|
1571
|
+
return (u, m) => (i(), w("div", null, [
|
|
1572
|
+
$("label", {
|
|
1573
|
+
for: s(t),
|
|
1574
|
+
class: "sr-only"
|
|
1575
|
+
}, J(e.label), 9, Yt),
|
|
1576
|
+
B(s(qe), {
|
|
1577
|
+
id: s(t),
|
|
1578
|
+
modelValue: a.value,
|
|
1579
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => a.value = v),
|
|
1580
|
+
name: e.name,
|
|
1581
|
+
placeholder: e.placeholder,
|
|
1582
|
+
error: e.error,
|
|
1583
|
+
autocomplete: e.autocomplete
|
|
1584
|
+
}, Ve({ _: 2 }, [
|
|
1585
|
+
n.value ? {
|
|
1586
|
+
name: "helper",
|
|
1587
|
+
fn: P(() => [
|
|
1588
|
+
B(s(Fe), { message: e.error }, null, 8, ["message"])
|
|
1589
|
+
]),
|
|
1590
|
+
key: "0"
|
|
1591
|
+
} : void 0
|
|
1592
|
+
]), 1032, ["id", "modelValue", "name", "placeholder", "error", "autocomplete"])
|
|
1593
|
+
]));
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
function Jt() {
|
|
1597
|
+
const { $t: e } = ze();
|
|
1598
|
+
return {
|
|
1599
|
+
contactInformationTitle: e({
|
|
1600
|
+
defaultMessage: "Customer information",
|
|
1601
|
+
id: "checkout.contact_information_block.title",
|
|
1602
|
+
description: "The title of the contact information block in the checkout form"
|
|
1603
|
+
}),
|
|
1604
|
+
emailLabel: e({
|
|
1605
|
+
defaultMessage: "Email address",
|
|
1606
|
+
id: "checkout.email_address.label",
|
|
1607
|
+
description: "The email address of the customer in the checkout form"
|
|
1608
|
+
}),
|
|
1609
|
+
emailPlaceholder: e({
|
|
1610
|
+
defaultMessage: "Email address",
|
|
1611
|
+
id: "checkout.email_address.placeholder",
|
|
1612
|
+
description: "The email address of the customer in the checkout form"
|
|
1613
|
+
}),
|
|
1614
|
+
countryLabel: e({
|
|
1615
|
+
defaultMessage: "Billing country",
|
|
1616
|
+
id: "checkout.country.label",
|
|
1617
|
+
description: "The country of the customer in the checkout form"
|
|
1618
|
+
}),
|
|
1619
|
+
countryPlaceholder: e({
|
|
1620
|
+
defaultMessage: "Billing country",
|
|
1621
|
+
id: "checkout.country.placeholder",
|
|
1622
|
+
description: "Placeholder of the billing country select while no country is chosen"
|
|
1623
|
+
}),
|
|
1624
|
+
vatNumberLabel: e({
|
|
1625
|
+
defaultMessage: "VAT number",
|
|
1626
|
+
id: "checkout.vat_number.label",
|
|
1627
|
+
description: "The label for the vat number in the checkout form"
|
|
1628
|
+
}),
|
|
1629
|
+
vatNumberPlaceholder: e({
|
|
1630
|
+
defaultMessage: "VAT number",
|
|
1631
|
+
id: "checkout.vat_number.placeholder",
|
|
1632
|
+
description: "The label for the vat number in the checkout form"
|
|
1633
|
+
}),
|
|
1634
|
+
legalNameLabel: e({
|
|
1635
|
+
defaultMessage: "Legal entity name",
|
|
1636
|
+
id: "checkout.legal_name.label",
|
|
1637
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1638
|
+
}),
|
|
1639
|
+
legalNamePlaceholder: e({
|
|
1640
|
+
defaultMessage: "Legal entity name",
|
|
1641
|
+
id: "checkout.legal_name.placeholder",
|
|
1642
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1643
|
+
}),
|
|
1644
|
+
addressTitle: e({
|
|
1645
|
+
defaultMessage: "Billing address",
|
|
1646
|
+
id: "checkout.address.title",
|
|
1647
|
+
description: "Label of the billing address, above its first line, in the checkout and billing information forms"
|
|
1648
|
+
}),
|
|
1649
|
+
addressLine1Label: e({
|
|
1650
|
+
defaultMessage: "Address line 1",
|
|
1651
|
+
id: "checkout.address.line1.label",
|
|
1652
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1653
|
+
}),
|
|
1654
|
+
addressLine2Label: e({
|
|
1655
|
+
defaultMessage: "Address line 2",
|
|
1656
|
+
id: "checkout.address.line2.label",
|
|
1657
|
+
description: "Address line 2 of the customer address in the checkout form"
|
|
1658
|
+
}),
|
|
1659
|
+
postalCodeLabel: e({
|
|
1660
|
+
defaultMessage: "Postal code",
|
|
1661
|
+
id: "checkout.address.postal_code.label",
|
|
1662
|
+
description: "Postal code of the customer address in the checkout form"
|
|
1663
|
+
}),
|
|
1664
|
+
cityLabel: e({
|
|
1665
|
+
defaultMessage: "City",
|
|
1666
|
+
id: "checkout.address.city.label",
|
|
1667
|
+
description: "City of the customer address in the checkout form"
|
|
1668
|
+
}),
|
|
1669
|
+
stateLabel: e({
|
|
1670
|
+
defaultMessage: "State",
|
|
1671
|
+
id: "checkout.address.state.label",
|
|
1672
|
+
description: "State of the customer address in the checkout form"
|
|
1673
|
+
}),
|
|
1674
|
+
postalCodePlaceholder: e({
|
|
1675
|
+
defaultMessage: "Postal code",
|
|
1676
|
+
id: "checkout.address.portal_code.placeholder",
|
|
1677
|
+
description: "Postal code of the customer address in the checkout form"
|
|
1678
|
+
}),
|
|
1679
|
+
cityPlaceholder: e({
|
|
1680
|
+
defaultMessage: "City",
|
|
1681
|
+
id: "checkout.address.city.placeholder",
|
|
1682
|
+
description: "City of the customer address in the checkout form"
|
|
1683
|
+
}),
|
|
1684
|
+
statePlaceholder: e({
|
|
1685
|
+
defaultMessage: "State",
|
|
1686
|
+
id: "checkout.address.state.placeholder",
|
|
1687
|
+
description: "State of the customer address in the checkout form"
|
|
1688
|
+
})
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
const jt = (e) => Dt(e), Qt = { class: "sv-checkout-address-fields flex flex-col gap-2 [container-type:inline-size]" }, Xt = {
|
|
1692
|
+
key: 1,
|
|
1693
|
+
class: "sv-checkout__shipping-recipient grid grid-cols-2 gap-2"
|
|
1694
|
+
}, Ma = /* @__PURE__ */ ee({
|
|
1695
|
+
__name: "CheckoutAddressFields",
|
|
1696
|
+
props: /* @__PURE__ */ Ne({
|
|
1697
|
+
variant: { type: String },
|
|
1698
|
+
withCountry: { type: Boolean },
|
|
1699
|
+
countryBeforeAddress: { type: Boolean },
|
|
1700
|
+
countryLabel: { type: String },
|
|
1701
|
+
format: { type: Object },
|
|
1702
|
+
getOptionalSuffix: { type: Function },
|
|
1703
|
+
errors: { type: Object }
|
|
1704
|
+
}, {
|
|
1705
|
+
modelValue: { required: !0 },
|
|
1706
|
+
modelModifiers: {}
|
|
1707
|
+
}),
|
|
1708
|
+
emits: ["update:modelValue"],
|
|
1709
|
+
setup(e) {
|
|
1710
|
+
const o = {
|
|
1711
|
+
1: "grid-cols-1",
|
|
1712
|
+
2: "grid-cols-1 [@container(min-width:24rem)]:grid-cols-2",
|
|
1713
|
+
3: "grid-cols-1 [@container(min-width:24rem)]:grid-cols-3"
|
|
1714
|
+
}, a = e, t = Ue(e, "modelValue"), { $t: n } = ze(), u = Jt(), m = be[a.variant], v = a.variant === "SHIPPING", r = v ? "shipping_" : "", S = a.variant.toLowerCase(), h = Gl({
|
|
1715
|
+
addressLine1: ne(t, m.line1, Q),
|
|
1716
|
+
addressLine2: ne(t, m.line2, Q),
|
|
1717
|
+
postalCode: ne(t, m.postalCode, Q),
|
|
1718
|
+
city: ne(t, m.city, Q),
|
|
1719
|
+
state: ne(t, m.state, Q),
|
|
1720
|
+
firstName: ne(t, "shippingFirstName", Q),
|
|
1721
|
+
lastName: ne(t, "shippingLastName", Q),
|
|
1722
|
+
attentionName: ne(t, "shippingAttentionName", Q)
|
|
1723
|
+
}), E = f({
|
|
1724
|
+
get: () => t.value[m.country],
|
|
1725
|
+
set: (V) => {
|
|
1726
|
+
const b = Q(V);
|
|
1727
|
+
t.value[m.country] = b !== void 0 && jt(b) ? b : void 0;
|
|
1728
|
+
}
|
|
1729
|
+
}), M = f({
|
|
1730
|
+
get: () => t.value.shippingPhoneNumber ?? null,
|
|
1731
|
+
set: (V) => {
|
|
1732
|
+
t.value.shippingPhoneNumber = V ?? void 0;
|
|
1733
|
+
}
|
|
1734
|
+
}), C = f(() => new Set(vl(v ? a.format : void 0))), g = f(
|
|
1735
|
+
() => o[["postalCode", "city", "state"].filter((V) => C.value.has(V)).length]
|
|
1736
|
+
), N = f(() => t.value.type === "ORGANIZATION"), G = (V) => a.getOptionalSuffix(m[V]), T = (V) => typeof V == "string" ? V : V == null ? void 0 : V.map((b) => b.$validator === "postalCodeFormat" ? {
|
|
1737
|
+
...b,
|
|
1738
|
+
$message: n({
|
|
1739
|
+
defaultMessage: "Enter a postal code in the format of this country",
|
|
1740
|
+
id: "checkout.postal_code.invalid",
|
|
1741
|
+
description: "Error under a shipping or billing postal code that does not match its country's format"
|
|
1742
|
+
})
|
|
1743
|
+
} : b.$validator === "phoneNumberFormat" ? {
|
|
1744
|
+
...b,
|
|
1745
|
+
$message: n({
|
|
1746
|
+
defaultMessage: "Enter a phone number of 7 to 15 digits",
|
|
1747
|
+
id: "checkout.shipping_phone_number.invalid",
|
|
1748
|
+
description: "Error under a shipping phone number with characters other than digits and separators, or too few or many digits"
|
|
1749
|
+
})
|
|
1750
|
+
} : b);
|
|
1751
|
+
return (V, b) => {
|
|
1752
|
+
var O, le, te, ae, x, D, U, de;
|
|
1753
|
+
return i(), w("div", Qt, [
|
|
1754
|
+
e.withCountry && !e.countryBeforeAddress ? (i(), y(s(nl), {
|
|
1755
|
+
key: 0,
|
|
1756
|
+
"single-model-value": E.value,
|
|
1757
|
+
"onUpdate:singleModelValue": b[0] || (b[0] = (I) => E.value = I),
|
|
1758
|
+
"label-screen-reader-only": "",
|
|
1759
|
+
i18n: { placeholderDefault: s(u).countryPlaceholder },
|
|
1760
|
+
required: "",
|
|
1761
|
+
label: e.countryLabel ?? s(u).countryLabel,
|
|
1762
|
+
name: `${s(r)}country`,
|
|
1763
|
+
error: (O = e.errors) == null ? void 0 : O.country
|
|
1764
|
+
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : p("", !0),
|
|
1765
|
+
v ? (i(), w(ve, { key: 1 }, [
|
|
1766
|
+
N.value ? (i(), y(oe, {
|
|
1767
|
+
key: 0,
|
|
1768
|
+
modelValue: h.attentionName,
|
|
1769
|
+
"onUpdate:modelValue": b[1] || (b[1] = (I) => h.attentionName = I),
|
|
1770
|
+
name: "shipping_attention_name",
|
|
1771
|
+
class: "sv-checkout__shipping-attention-name",
|
|
1772
|
+
autocomplete: "shipping name",
|
|
1773
|
+
label: s(n)({
|
|
1774
|
+
defaultMessage: "Contact person",
|
|
1775
|
+
id: "checkout.shipping_attention_name.label",
|
|
1776
|
+
description: "Label of the person at the company a shipped order is for the attention of"
|
|
1777
|
+
}),
|
|
1778
|
+
placeholder: s(n)({
|
|
1779
|
+
defaultMessage: "Contact person",
|
|
1780
|
+
id: "checkout.shipping_attention_name.placeholder",
|
|
1781
|
+
description: "Placeholder of the person at the company a shipped order is for the attention of"
|
|
1782
|
+
}) + e.getOptionalSuffix("shippingAttentionName")
|
|
1783
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : (i(), w("div", Xt, [
|
|
1784
|
+
B(oe, {
|
|
1785
|
+
modelValue: h.firstName,
|
|
1786
|
+
"onUpdate:modelValue": b[2] || (b[2] = (I) => h.firstName = I),
|
|
1787
|
+
name: "shipping_first_name",
|
|
1788
|
+
autocomplete: "shipping given-name",
|
|
1789
|
+
label: s(n)({
|
|
1790
|
+
defaultMessage: "First name",
|
|
1791
|
+
id: "checkout.shipping_first_name.label",
|
|
1792
|
+
description: "Label of the first name of the recipient of a shipped order"
|
|
1793
|
+
}),
|
|
1794
|
+
placeholder: s(n)({
|
|
1795
|
+
defaultMessage: "First name",
|
|
1796
|
+
id: "checkout.shipping_first_name.placeholder",
|
|
1797
|
+
description: "Placeholder of the first name of the recipient of a shipped order"
|
|
1798
|
+
}) + e.getOptionalSuffix("shippingFirstName")
|
|
1799
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1800
|
+
B(oe, {
|
|
1801
|
+
modelValue: h.lastName,
|
|
1802
|
+
"onUpdate:modelValue": b[3] || (b[3] = (I) => h.lastName = I),
|
|
1803
|
+
name: "shipping_last_name",
|
|
1804
|
+
autocomplete: "shipping family-name",
|
|
1805
|
+
label: s(n)({
|
|
1806
|
+
defaultMessage: "Last name",
|
|
1807
|
+
id: "checkout.shipping_last_name.label",
|
|
1808
|
+
description: "Label of the last name of the recipient of a shipped order"
|
|
1809
|
+
}),
|
|
1810
|
+
placeholder: s(n)({
|
|
1811
|
+
defaultMessage: "Last name",
|
|
1812
|
+
id: "checkout.shipping_last_name.placeholder",
|
|
1813
|
+
description: "Placeholder of the last name of the recipient of a shipped order"
|
|
1814
|
+
}) + e.getOptionalSuffix("shippingLastName"),
|
|
1815
|
+
error: (le = e.errors) == null ? void 0 : le.lastName
|
|
1816
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
1817
|
+
]))
|
|
1818
|
+
], 64)) : p("", !0),
|
|
1819
|
+
e.withCountry && e.countryBeforeAddress ? (i(), y(s(nl), {
|
|
1820
|
+
key: 2,
|
|
1821
|
+
"single-model-value": E.value,
|
|
1822
|
+
"onUpdate:singleModelValue": b[4] || (b[4] = (I) => E.value = I),
|
|
1823
|
+
"label-screen-reader-only": "",
|
|
1824
|
+
i18n: { placeholderDefault: s(u).countryPlaceholder },
|
|
1825
|
+
required: "",
|
|
1826
|
+
label: e.countryLabel ?? s(u).countryLabel,
|
|
1827
|
+
name: `${s(r)}country`,
|
|
1828
|
+
error: (te = e.errors) == null ? void 0 : te.country
|
|
1829
|
+
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : p("", !0),
|
|
1830
|
+
C.value.has("line1") ? (i(), y(oe, {
|
|
1831
|
+
key: 3,
|
|
1832
|
+
modelValue: h.addressLine1,
|
|
1833
|
+
"onUpdate:modelValue": b[5] || (b[5] = (I) => h.addressLine1 = I),
|
|
1834
|
+
name: `${s(r)}address_line_1`,
|
|
1835
|
+
autocomplete: `${s(S)} address-line1`,
|
|
1836
|
+
label: s(u).addressLine1Label,
|
|
1837
|
+
placeholder: s(n)({
|
|
1838
|
+
defaultMessage: "Address line 1",
|
|
1839
|
+
id: "checkout.address.line1.placeholder",
|
|
1840
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1841
|
+
}) + G("line1"),
|
|
1842
|
+
error: (ae = e.errors) == null ? void 0 : ae.addressLine1
|
|
1843
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : p("", !0),
|
|
1844
|
+
C.value.has("line2") ? (i(), y(oe, {
|
|
1845
|
+
key: 4,
|
|
1846
|
+
modelValue: h.addressLine2,
|
|
1847
|
+
"onUpdate:modelValue": b[6] || (b[6] = (I) => h.addressLine2 = I),
|
|
1848
|
+
name: `${s(r)}address_line_2`,
|
|
1849
|
+
autocomplete: `${s(S)} address-line2`,
|
|
1850
|
+
label: s(u).addressLine2Label,
|
|
1851
|
+
placeholder: s(n)({
|
|
1852
|
+
defaultMessage: "Address line 2",
|
|
1853
|
+
id: "checkout.address.line2.placeholder",
|
|
1854
|
+
description: "Address line 2 of the customer address in the checkout form"
|
|
1855
|
+
}) + G("line2")
|
|
1856
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder"])) : p("", !0),
|
|
1857
|
+
g.value ? (i(), w("div", {
|
|
1858
|
+
key: 5,
|
|
1859
|
+
class: q(["grid gap-2", g.value])
|
|
1860
|
+
}, [
|
|
1861
|
+
C.value.has("postalCode") ? (i(), y(oe, {
|
|
1862
|
+
key: 0,
|
|
1863
|
+
modelValue: h.postalCode,
|
|
1864
|
+
"onUpdate:modelValue": b[7] || (b[7] = (I) => h.postalCode = I),
|
|
1865
|
+
name: `${s(r)}postal_code`,
|
|
1866
|
+
autocomplete: `${s(S)} postal-code`,
|
|
1867
|
+
label: s(u).postalCodeLabel,
|
|
1868
|
+
placeholder: s(u).postalCodePlaceholder + G("postalCode"),
|
|
1869
|
+
error: T((x = e.errors) == null ? void 0 : x.postalCode)
|
|
1870
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : p("", !0),
|
|
1871
|
+
C.value.has("city") ? (i(), y(oe, {
|
|
1872
|
+
key: 1,
|
|
1873
|
+
modelValue: h.city,
|
|
1874
|
+
"onUpdate:modelValue": b[8] || (b[8] = (I) => h.city = I),
|
|
1875
|
+
name: `${s(r)}city`,
|
|
1876
|
+
autocomplete: `${s(S)} address-level2`,
|
|
1877
|
+
label: s(u).cityLabel,
|
|
1878
|
+
placeholder: s(u).cityPlaceholder + G("city"),
|
|
1879
|
+
error: (D = e.errors) == null ? void 0 : D.city
|
|
1880
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : p("", !0),
|
|
1881
|
+
C.value.has("state") ? (i(), y(oe, {
|
|
1882
|
+
key: 2,
|
|
1883
|
+
modelValue: h.state,
|
|
1884
|
+
"onUpdate:modelValue": b[9] || (b[9] = (I) => h.state = I),
|
|
1885
|
+
name: `${s(r)}state`,
|
|
1886
|
+
autocomplete: `${s(S)} address-level1`,
|
|
1887
|
+
label: s(u).stateLabel,
|
|
1888
|
+
placeholder: s(u).statePlaceholder + G("state"),
|
|
1889
|
+
error: (U = e.errors) == null ? void 0 : U.state
|
|
1890
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : p("", !0)
|
|
1891
|
+
], 2)) : p("", !0),
|
|
1892
|
+
v ? (i(), y(s(Tt), {
|
|
1893
|
+
key: 6,
|
|
1894
|
+
modelValue: M.value,
|
|
1895
|
+
"onUpdate:modelValue": b[10] || (b[10] = (I) => M.value = I),
|
|
1896
|
+
"label-screen-reader-only": "",
|
|
1897
|
+
required: "",
|
|
1898
|
+
name: "shipping_phone_number",
|
|
1899
|
+
class: "sv-checkout__shipping-phone-number",
|
|
1900
|
+
"default-country": t.value[s(m).country],
|
|
1901
|
+
label: s(n)({
|
|
1902
|
+
defaultMessage: "Phone number",
|
|
1903
|
+
id: "checkout.shipping_phone_number.label",
|
|
1904
|
+
description: "Label of the phone number the carrier can reach the recipient of a shipped order on"
|
|
1905
|
+
}),
|
|
1906
|
+
placeholder: s(n)({
|
|
1907
|
+
defaultMessage: "Phone number",
|
|
1908
|
+
id: "checkout.shipping_phone_number.placeholder",
|
|
1909
|
+
description: "Placeholder of the phone number the carrier can reach the recipient of a shipped order on"
|
|
1910
|
+
}),
|
|
1911
|
+
error: T((de = e.errors) == null ? void 0 : de.phoneNumber)
|
|
1912
|
+
}, null, 8, ["modelValue", "default-country", "label", "placeholder", "error"])) : p("", !0)
|
|
1913
|
+
]);
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
});
|
|
1917
|
+
let Be;
|
|
1918
|
+
const _t = () => (Be ?? (Be = import("./addressFormats.data-dzBx49dw.mjs").catch((e) => {
|
|
1919
|
+
throw Be = void 0, e;
|
|
1920
|
+
})), Be), ea = (e, o) => o && e.ADDRESS_FORMATS[o] || e.DEFAULT_ADDRESS_FORMAT, la = (e, o) => !e.postalCode || new RegExp(`^(?:${e.postalCode})$`, "i").test(o.trim()), ta = (e) => {
|
|
1921
|
+
const o = e.trim();
|
|
1922
|
+
if (!/^\+?[\d\s\-().]+$/.test(o)) return !1;
|
|
1923
|
+
const a = o.replace(/\D/g, "").length;
|
|
1924
|
+
return a >= 7 && a <= 15;
|
|
1925
|
+
}, ue = (e, o) => ({
|
|
1926
|
+
required: Xl(() => e(o))
|
|
1927
|
+
}), aa = (e) => (o) => {
|
|
1928
|
+
const a = e();
|
|
1929
|
+
return typeof o != "string" || !o.trim() || !a || la(a, o);
|
|
1930
|
+
}, na = (e) => ({
|
|
1931
|
+
$validator: aa(e),
|
|
1932
|
+
$message: "The postal code does not match the country"
|
|
1933
|
+
}), Na = (e, o, a) => {
|
|
1934
|
+
const t = be[e];
|
|
1935
|
+
return {
|
|
1936
|
+
[t.line1]: ue(a, t.line1),
|
|
1937
|
+
[t.city]: ue(a, t.city),
|
|
1938
|
+
[t.state]: ue(a, t.state),
|
|
1939
|
+
[t.country]: ue(a, t.country),
|
|
1940
|
+
[t.postalCode]: {
|
|
1941
|
+
...ue(a, t.postalCode),
|
|
1942
|
+
postalCodeFormat: na(o)
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
}, Aa = (e) => ({
|
|
1946
|
+
shippingPhoneNumber: {
|
|
1947
|
+
...ue(e, "shippingPhoneNumber"),
|
|
1948
|
+
phoneNumberFormat: {
|
|
1949
|
+
$validator: (o) => typeof o != "string" || !o.trim() || ta(o),
|
|
1950
|
+
$message: "The phone number is not valid"
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
shippingLastName: ue(e, "shippingLastName")
|
|
1954
|
+
});
|
|
1955
|
+
function Va({
|
|
1956
|
+
isNeeded: e,
|
|
1957
|
+
countries: o
|
|
1958
|
+
}) {
|
|
1959
|
+
const a = zl();
|
|
1960
|
+
let t = !1;
|
|
1961
|
+
return he(
|
|
1962
|
+
[e, ...o],
|
|
1963
|
+
() => {
|
|
1964
|
+
!e() || a.value || t || (t = !0, _t().then((u) => {
|
|
1965
|
+
a.value = u;
|
|
1966
|
+
}).catch(() => {
|
|
1967
|
+
}).finally(() => {
|
|
1968
|
+
t = !1;
|
|
1969
|
+
}));
|
|
1970
|
+
},
|
|
1971
|
+
{ immediate: !0 }
|
|
1972
|
+
), { formatOf: (u) => a.value ? ea(a.value, u) : void 0 };
|
|
1973
|
+
}
|
|
1974
|
+
export {
|
|
1975
|
+
Ft as D,
|
|
1976
|
+
oe as _,
|
|
1977
|
+
ka as a,
|
|
1978
|
+
Na as b,
|
|
1979
|
+
Ma as c,
|
|
1980
|
+
Ut as d,
|
|
1981
|
+
pl as e,
|
|
1982
|
+
Jt as f,
|
|
1983
|
+
wa as g,
|
|
1984
|
+
Dt as h,
|
|
1985
|
+
jt as i,
|
|
1986
|
+
Ia as j,
|
|
1987
|
+
bl as k,
|
|
1988
|
+
nl as l,
|
|
1989
|
+
Sa as m,
|
|
1990
|
+
Zt as n,
|
|
1991
|
+
Ht as o,
|
|
1992
|
+
na as p,
|
|
1993
|
+
ue as r,
|
|
1994
|
+
Aa as s,
|
|
1995
|
+
La as t,
|
|
1996
|
+
Va as u
|
|
1997
|
+
};
|