@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29
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 +151 -17
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
- package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
- package/dist/components/Invoice/Invoice.mjs +2691 -227
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
- package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
- package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
- package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/customer-BIjC0CWJ.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
- package/dist/paymentMethods-B_82JGk_.mjs +77 -0
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
- package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
- package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-CVyKw23D.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- 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/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -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 +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- 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/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
- package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
- package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/usePortal-CwR_FxTb.mjs +7 -0
- package/dist/useService-BZcbUZHI.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +33 -60
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import { r as ge, f as P, a as V } from "./formControl-BZQLHnOO.mjs";
|
|
2
|
+
import { d as ye, A as re, u as be, e as ve, c as oe, _ as I, i as Ce } from "./useCustomerFormLabels-DJWf2O17.mjs";
|
|
3
|
+
import { defineComponent as te, computed as C, openBlock as y, createBlock as M, withCtx as j, createTextVNode as se, toDisplayString as ie, markRaw as Ne, ref as H, watch as X, toRefs as Se, createElementBlock as k, createVNode as E, unref as t, createSlots as Me, createElementVNode as Y, normalizeClass as ee, createCommentVNode as N, shallowRef as Ae, useModel as Le, reactive as Ve, Fragment as Pe, mergeModels as Ie } from "vue";
|
|
4
|
+
import { r as $e } from "./sessionReference-B8Dbmx5t.mjs";
|
|
5
|
+
import { b as Ee } from "./index.es-C7J3WGGo.mjs";
|
|
6
|
+
import { c as Re } from "./countryData.es-BegoD-cZ.mjs";
|
|
7
|
+
import { d as Te, a as de } from "./customElements-BTj4ii4f.mjs";
|
|
8
|
+
import { u as Fe, _ as ke } from "./Input.vue.es-D8Oj8MWv.mjs";
|
|
9
|
+
import { u as z, _ as Ge } from "./Label.vue.es-DtpLM1KH.mjs";
|
|
10
|
+
import { _ as le } from "./FormMessage.vue.es-Cjv358Ab.mjs";
|
|
11
|
+
import { g as ne } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
12
|
+
import { i as we } from "./useService-BZcbUZHI.mjs";
|
|
13
|
+
const ue = {
|
|
14
|
+
AF: "93",
|
|
15
|
+
AX: "358",
|
|
16
|
+
AL: "355",
|
|
17
|
+
DZ: "213",
|
|
18
|
+
AS: "1684",
|
|
19
|
+
AD: "376",
|
|
20
|
+
AO: "244",
|
|
21
|
+
AI: "1264",
|
|
22
|
+
AQ: "672",
|
|
23
|
+
AG: "1268",
|
|
24
|
+
AR: "54",
|
|
25
|
+
AM: "374",
|
|
26
|
+
AW: "297",
|
|
27
|
+
AU: "61",
|
|
28
|
+
AT: "43",
|
|
29
|
+
AZ: "994",
|
|
30
|
+
BS: "1242",
|
|
31
|
+
BH: "973",
|
|
32
|
+
BD: "880",
|
|
33
|
+
BB: "1246",
|
|
34
|
+
BY: "375",
|
|
35
|
+
BE: "32",
|
|
36
|
+
BZ: "501",
|
|
37
|
+
BJ: "229",
|
|
38
|
+
BM: "1441",
|
|
39
|
+
BT: "975",
|
|
40
|
+
BO: "591",
|
|
41
|
+
BA: "387",
|
|
42
|
+
BW: "267",
|
|
43
|
+
BR: "55",
|
|
44
|
+
IO: "246",
|
|
45
|
+
BN: "673",
|
|
46
|
+
BG: "359",
|
|
47
|
+
BF: "226",
|
|
48
|
+
BI: "257",
|
|
49
|
+
KH: "855",
|
|
50
|
+
CM: "237",
|
|
51
|
+
CA: "1",
|
|
52
|
+
CV: "238",
|
|
53
|
+
KY: "1345",
|
|
54
|
+
CF: "236",
|
|
55
|
+
TD: "235",
|
|
56
|
+
CL: "56",
|
|
57
|
+
CN: "86",
|
|
58
|
+
CX: "61",
|
|
59
|
+
CC: "61",
|
|
60
|
+
CO: "57",
|
|
61
|
+
KM: "269",
|
|
62
|
+
CG: "242",
|
|
63
|
+
CD: "243",
|
|
64
|
+
CK: "682",
|
|
65
|
+
CR: "506",
|
|
66
|
+
CI: "225",
|
|
67
|
+
HR: "385",
|
|
68
|
+
CU: "53",
|
|
69
|
+
CW: "599",
|
|
70
|
+
CY: "357",
|
|
71
|
+
CZ: "420",
|
|
72
|
+
DK: "45",
|
|
73
|
+
DJ: "253",
|
|
74
|
+
DM: "1767",
|
|
75
|
+
DO: "1809",
|
|
76
|
+
EC: "593",
|
|
77
|
+
EG: "20",
|
|
78
|
+
SV: "503",
|
|
79
|
+
GQ: "240",
|
|
80
|
+
ER: "291",
|
|
81
|
+
EE: "372",
|
|
82
|
+
ET: "251",
|
|
83
|
+
FK: "500",
|
|
84
|
+
FO: "298",
|
|
85
|
+
FJ: "679",
|
|
86
|
+
FI: "358",
|
|
87
|
+
FR: "33",
|
|
88
|
+
GF: "594",
|
|
89
|
+
PF: "689",
|
|
90
|
+
TF: "262",
|
|
91
|
+
GA: "241",
|
|
92
|
+
GM: "220",
|
|
93
|
+
GE: "995",
|
|
94
|
+
DE: "49",
|
|
95
|
+
GH: "233",
|
|
96
|
+
GI: "350",
|
|
97
|
+
GR: "30",
|
|
98
|
+
GL: "299",
|
|
99
|
+
GD: "1473",
|
|
100
|
+
GP: "590",
|
|
101
|
+
GU: "1671",
|
|
102
|
+
GT: "502",
|
|
103
|
+
GG: "44",
|
|
104
|
+
GN: "224",
|
|
105
|
+
GW: "245",
|
|
106
|
+
GY: "592",
|
|
107
|
+
HT: "509",
|
|
108
|
+
VA: "39",
|
|
109
|
+
HN: "504",
|
|
110
|
+
HK: "852",
|
|
111
|
+
HU: "36",
|
|
112
|
+
IS: "354",
|
|
113
|
+
IN: "91",
|
|
114
|
+
ID: "62",
|
|
115
|
+
IR: "98",
|
|
116
|
+
IQ: "964",
|
|
117
|
+
IE: "353",
|
|
118
|
+
IM: "44",
|
|
119
|
+
IL: "972",
|
|
120
|
+
IT: "39",
|
|
121
|
+
JM: "1876",
|
|
122
|
+
JP: "81",
|
|
123
|
+
JE: "44",
|
|
124
|
+
JO: "962",
|
|
125
|
+
KZ: "7",
|
|
126
|
+
KE: "254",
|
|
127
|
+
KI: "686",
|
|
128
|
+
KR: "82",
|
|
129
|
+
KP: "850",
|
|
130
|
+
KW: "965",
|
|
131
|
+
KG: "996",
|
|
132
|
+
LA: "856",
|
|
133
|
+
LV: "371",
|
|
134
|
+
LB: "961",
|
|
135
|
+
LS: "266",
|
|
136
|
+
LR: "231",
|
|
137
|
+
LY: "218",
|
|
138
|
+
LI: "423",
|
|
139
|
+
LT: "370",
|
|
140
|
+
LU: "352",
|
|
141
|
+
MO: "853",
|
|
142
|
+
MK: "389",
|
|
143
|
+
MG: "261",
|
|
144
|
+
MW: "265",
|
|
145
|
+
MY: "60",
|
|
146
|
+
MV: "960",
|
|
147
|
+
ML: "223",
|
|
148
|
+
MT: "356",
|
|
149
|
+
MH: "692",
|
|
150
|
+
MQ: "596",
|
|
151
|
+
MR: "222",
|
|
152
|
+
MU: "230",
|
|
153
|
+
YT: "262",
|
|
154
|
+
MX: "52",
|
|
155
|
+
FM: "691",
|
|
156
|
+
MD: "373",
|
|
157
|
+
MC: "377",
|
|
158
|
+
MN: "976",
|
|
159
|
+
ME: "382",
|
|
160
|
+
MS: "1664",
|
|
161
|
+
MA: "212",
|
|
162
|
+
MZ: "258",
|
|
163
|
+
MM: "95",
|
|
164
|
+
NA: "264",
|
|
165
|
+
NR: "674",
|
|
166
|
+
NP: "977",
|
|
167
|
+
NL: "31",
|
|
168
|
+
NC: "687",
|
|
169
|
+
NZ: "64",
|
|
170
|
+
NI: "505",
|
|
171
|
+
NE: "227",
|
|
172
|
+
NG: "234",
|
|
173
|
+
NU: "683",
|
|
174
|
+
NF: "672",
|
|
175
|
+
MP: "1670",
|
|
176
|
+
NO: "47",
|
|
177
|
+
OM: "968",
|
|
178
|
+
PK: "92",
|
|
179
|
+
PW: "680",
|
|
180
|
+
PS: "970",
|
|
181
|
+
PA: "507",
|
|
182
|
+
PG: "675",
|
|
183
|
+
PY: "595",
|
|
184
|
+
PE: "51",
|
|
185
|
+
PH: "63",
|
|
186
|
+
PN: "64",
|
|
187
|
+
PL: "48",
|
|
188
|
+
PT: "351",
|
|
189
|
+
PR: "1787",
|
|
190
|
+
QA: "974",
|
|
191
|
+
RE: "262",
|
|
192
|
+
RO: "40",
|
|
193
|
+
RU: "7",
|
|
194
|
+
RW: "250",
|
|
195
|
+
BL: "590",
|
|
196
|
+
SH: "290",
|
|
197
|
+
KN: "1869",
|
|
198
|
+
LC: "1758",
|
|
199
|
+
MF: "590",
|
|
200
|
+
PM: "508",
|
|
201
|
+
VC: "1784",
|
|
202
|
+
WS: "685",
|
|
203
|
+
SM: "378",
|
|
204
|
+
ST: "239",
|
|
205
|
+
SA: "966",
|
|
206
|
+
SN: "221",
|
|
207
|
+
RS: "381",
|
|
208
|
+
SC: "248",
|
|
209
|
+
SL: "232",
|
|
210
|
+
SG: "65",
|
|
211
|
+
SK: "421",
|
|
212
|
+
SI: "386",
|
|
213
|
+
SB: "677",
|
|
214
|
+
SO: "252",
|
|
215
|
+
ZA: "27",
|
|
216
|
+
GS: "500",
|
|
217
|
+
ES: "34",
|
|
218
|
+
LK: "94",
|
|
219
|
+
SD: "249",
|
|
220
|
+
SR: "597",
|
|
221
|
+
SJ: "47",
|
|
222
|
+
SZ: "268",
|
|
223
|
+
SE: "46",
|
|
224
|
+
CH: "41",
|
|
225
|
+
SY: "963",
|
|
226
|
+
TW: "886",
|
|
227
|
+
TJ: "992",
|
|
228
|
+
TZ: "255",
|
|
229
|
+
TH: "66",
|
|
230
|
+
TL: "670",
|
|
231
|
+
TG: "228",
|
|
232
|
+
TK: "690",
|
|
233
|
+
TO: "676",
|
|
234
|
+
TT: "1868",
|
|
235
|
+
TN: "216",
|
|
236
|
+
TR: "90",
|
|
237
|
+
TM: "993",
|
|
238
|
+
TC: "1649",
|
|
239
|
+
TV: "688",
|
|
240
|
+
UG: "256",
|
|
241
|
+
UA: "380",
|
|
242
|
+
AE: "971",
|
|
243
|
+
GB: "44",
|
|
244
|
+
US: "1",
|
|
245
|
+
UM: "1",
|
|
246
|
+
UY: "598",
|
|
247
|
+
UZ: "998",
|
|
248
|
+
VU: "678",
|
|
249
|
+
VE: "58",
|
|
250
|
+
VN: "84",
|
|
251
|
+
VG: "1284",
|
|
252
|
+
VI: "1340",
|
|
253
|
+
WF: "681",
|
|
254
|
+
EH: "212",
|
|
255
|
+
YE: "967",
|
|
256
|
+
ZM: "260",
|
|
257
|
+
ZW: "263"
|
|
258
|
+
}, Be = {
|
|
259
|
+
1: "US",
|
|
260
|
+
7: "RU",
|
|
261
|
+
39: "IT",
|
|
262
|
+
44: "GB",
|
|
263
|
+
47: "NO",
|
|
264
|
+
61: "AU",
|
|
265
|
+
64: "NZ",
|
|
266
|
+
212: "MA",
|
|
267
|
+
262: "RE",
|
|
268
|
+
358: "FI",
|
|
269
|
+
500: "FK",
|
|
270
|
+
590: "GP",
|
|
271
|
+
672: "NF"
|
|
272
|
+
}, De = /* @__PURE__ */ new Set(["IT", "VA", "SM", "CI", "CG", "GA"]), ce = Re.flatMap(({ key: e }) => {
|
|
273
|
+
const a = ue[e];
|
|
274
|
+
return a ? [{ countryCode: e, dialCode: a }] : [];
|
|
275
|
+
}), Oe = (e) => ue[e], Ue = (e) => String.fromCodePoint(
|
|
276
|
+
...[...e.toUpperCase()].map((a) => 127462 + a.charCodeAt(0) - 65)
|
|
277
|
+
), B = (e) => /^\s*(\+|00)/.test(e), ae = (e) => e.replace(/\D/g, ""), me = (e) => ae(e.trim().replace(/^00/, "")), Z = (e, a) => {
|
|
278
|
+
var o;
|
|
279
|
+
if (!B(e))
|
|
280
|
+
return { nationalNumber: ae(e) };
|
|
281
|
+
const r = me(e), i = ce.filter(({ dialCode: c }) => r.startsWith(c)), s = Math.max(0, ...i.map(({ dialCode: c }) => c.length)), u = i.filter(({ dialCode: c }) => c.length === s);
|
|
282
|
+
if (u.length === 0)
|
|
283
|
+
return { nationalNumber: r };
|
|
284
|
+
const b = u[0].dialCode;
|
|
285
|
+
return { countryCode: ((o = u.find(({ countryCode: c }) => c === a)) == null ? void 0 : o.countryCode) ?? Be[b] ?? u[0].countryCode, nationalNumber: r.slice(b.length) };
|
|
286
|
+
}, _e = (e, a) => {
|
|
287
|
+
if (B(a)) {
|
|
288
|
+
const s = me(a);
|
|
289
|
+
return s ? `+${s}` : null;
|
|
290
|
+
}
|
|
291
|
+
const o = e ? Oe(e) : void 0, r = ae(a);
|
|
292
|
+
if (!o || !e || !r)
|
|
293
|
+
return null;
|
|
294
|
+
const i = De.has(e) ? r : r.replace(/^0/, "");
|
|
295
|
+
return `+${o}${i}`;
|
|
296
|
+
}, xe = /* @__PURE__ */ te({
|
|
297
|
+
__name: "PhoneInputFlag",
|
|
298
|
+
props: {
|
|
299
|
+
countryCode: {}
|
|
300
|
+
},
|
|
301
|
+
setup(e) {
|
|
302
|
+
const a = e, o = C(() => Ue(a.countryCode));
|
|
303
|
+
return (r, i) => (y(), M(Te, {
|
|
304
|
+
tag: "span",
|
|
305
|
+
"aria-hidden": "true",
|
|
306
|
+
color: "inherit",
|
|
307
|
+
class: "leading-none"
|
|
308
|
+
}, {
|
|
309
|
+
default: j(() => [
|
|
310
|
+
se(ie(o.value), 1)
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
}));
|
|
314
|
+
}
|
|
315
|
+
}), Ke = ["id"], We = ["aria-labelledby"], He = ["id"], J = "rounded-none border-0 bg-transparent focus-within:border-0 focus-within:ring-0", Ze = /* @__PURE__ */ te({
|
|
316
|
+
__name: "PhoneInput",
|
|
317
|
+
props: {
|
|
318
|
+
modelValue: { default: null },
|
|
319
|
+
label: {},
|
|
320
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
321
|
+
placeholder: {},
|
|
322
|
+
defaultCountry: {},
|
|
323
|
+
required: { type: Boolean, default: !1 },
|
|
324
|
+
disabled: { type: Boolean, default: !1 },
|
|
325
|
+
size: { default: "md" },
|
|
326
|
+
error: {},
|
|
327
|
+
name: { default: "phone" },
|
|
328
|
+
form: {}
|
|
329
|
+
},
|
|
330
|
+
emits: ["update:modelValue"],
|
|
331
|
+
setup(e, { emit: a }) {
|
|
332
|
+
const o = e, r = a, i = de(), { formatMessage: s, formatDisplayName: u } = i, b = z("phone-input-label-"), A = z("phone-input-number-"), c = z("phone-input-error-"), v = C(() => !we(o.error)), m = (l) => u(l, { type: "region" }) ?? ne(l), T = C(
|
|
333
|
+
() => ce.map(({ countryCode: l, dialCode: f }) => {
|
|
334
|
+
const W = m(l);
|
|
335
|
+
return {
|
|
336
|
+
value: l,
|
|
337
|
+
label: W,
|
|
338
|
+
subLabel: `+${f}`,
|
|
339
|
+
selectedLabel: `+${f}`,
|
|
340
|
+
searchValues: [W, ne(l), `+${f}`],
|
|
341
|
+
labelPrefixComponent: Ne({
|
|
342
|
+
component: xe,
|
|
343
|
+
props: { countryCode: l }
|
|
344
|
+
})
|
|
345
|
+
};
|
|
346
|
+
}).sort((l, f) => l.label.localeCompare(f.label, i.locale))
|
|
347
|
+
), L = H(), p = C(() => L.value ?? o.defaultCountry), h = H("");
|
|
348
|
+
let G;
|
|
349
|
+
X(
|
|
350
|
+
() => o.modelValue,
|
|
351
|
+
(l) => {
|
|
352
|
+
if (l === G)
|
|
353
|
+
return;
|
|
354
|
+
if (G = l, !l) {
|
|
355
|
+
h.value = "", L.value = void 0;
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
const { countryCode: f, nationalNumber: W } = Z(l, p.value);
|
|
359
|
+
f ? (L.value = f, h.value = W) : h.value = l;
|
|
360
|
+
},
|
|
361
|
+
{ immediate: !0 }
|
|
362
|
+
);
|
|
363
|
+
const S = () => {
|
|
364
|
+
const l = _e(p.value, h.value);
|
|
365
|
+
G = l, l !== o.modelValue && r("update:modelValue", l);
|
|
366
|
+
};
|
|
367
|
+
X(
|
|
368
|
+
() => o.defaultCountry,
|
|
369
|
+
() => {
|
|
370
|
+
L.value || S();
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
const D = (l) => {
|
|
374
|
+
B(h.value) && (h.value = Z(h.value, p.value).nationalNumber), L.value = l || void 0, S(), l && fe();
|
|
375
|
+
}, g = (l) => {
|
|
376
|
+
if (h.value = typeof l == "string" ? l : "", B(h.value)) {
|
|
377
|
+
const { countryCode: f } = Z(h.value, p.value);
|
|
378
|
+
f && (L.value = f);
|
|
379
|
+
}
|
|
380
|
+
S();
|
|
381
|
+
}, n = () => {
|
|
382
|
+
if (!B(h.value))
|
|
383
|
+
return;
|
|
384
|
+
const { countryCode: l, nationalNumber: f } = Z(
|
|
385
|
+
h.value,
|
|
386
|
+
p.value
|
|
387
|
+
);
|
|
388
|
+
l && (h.value = f, S());
|
|
389
|
+
}, O = (l) => {
|
|
390
|
+
l.target instanceof HTMLInputElement && l.target.select();
|
|
391
|
+
}, U = C(
|
|
392
|
+
() => p.value ? s(
|
|
393
|
+
{
|
|
394
|
+
id: "phone_input.country_select.label_with_country",
|
|
395
|
+
defaultMessage: "Country code: {country}",
|
|
396
|
+
description: "Screen reader label of the phone number country code select, with the selected country"
|
|
397
|
+
},
|
|
398
|
+
{ country: m(p.value) }
|
|
399
|
+
) : s({
|
|
400
|
+
id: "phone_input.country_select.label",
|
|
401
|
+
defaultMessage: "Country code",
|
|
402
|
+
description: "Screen reader label of the phone number country code select"
|
|
403
|
+
})
|
|
404
|
+
), _ = C(() => ({
|
|
405
|
+
placeholderDefault: s({
|
|
406
|
+
id: "phone_input.country_select.placeholder",
|
|
407
|
+
defaultMessage: "Code",
|
|
408
|
+
description: "Placeholder of the phone number country code select when no country is selected"
|
|
409
|
+
}),
|
|
410
|
+
placeholderSearch: s({
|
|
411
|
+
id: "phone_input.country_select.search_placeholder",
|
|
412
|
+
defaultMessage: "Search",
|
|
413
|
+
description: "Placeholder of the phone number country code select while searching"
|
|
414
|
+
}),
|
|
415
|
+
noResults: (l) => s(
|
|
416
|
+
{
|
|
417
|
+
id: "phone_input.country_select.no_results",
|
|
418
|
+
defaultMessage: "No countries match {search}.",
|
|
419
|
+
description: "Shown when no country name or calling code matches the search in the phone number country code select"
|
|
420
|
+
},
|
|
421
|
+
{ search: l }
|
|
422
|
+
)
|
|
423
|
+
})), x = {
|
|
424
|
+
xs: "w-28",
|
|
425
|
+
sm: "w-28",
|
|
426
|
+
md: "w-32",
|
|
427
|
+
lg: "w-36",
|
|
428
|
+
xl: "w-36"
|
|
429
|
+
}, { size: $, disabled: F } = Se(o), { wrapperClasses: K } = Fe({
|
|
430
|
+
size: $,
|
|
431
|
+
disabled: F,
|
|
432
|
+
hasError: v,
|
|
433
|
+
ring: H(!0)
|
|
434
|
+
}), w = {
|
|
435
|
+
xs: "pl-1",
|
|
436
|
+
sm: "pl-2",
|
|
437
|
+
md: "pl-4",
|
|
438
|
+
lg: "pl-4",
|
|
439
|
+
xl: "pl-4"
|
|
440
|
+
}, d = C(
|
|
441
|
+
() => p.value ? "pl-2 pr-0" : `${w[o.size]} pr-0`
|
|
442
|
+
), pe = C(
|
|
443
|
+
() => p.value && w[o.size] === "pl-4" ? `${J} pl-1` : J
|
|
444
|
+
), q = H(), { width: he } = Ee(q), fe = () => {
|
|
445
|
+
var l, f;
|
|
446
|
+
(f = (l = q.value) == null ? void 0 : l.querySelector(`#${A}`)) == null || f.focus();
|
|
447
|
+
};
|
|
448
|
+
return (l, f) => (y(), k("div", null, [
|
|
449
|
+
E(Ge, {
|
|
450
|
+
id: t(b),
|
|
451
|
+
for: t(A),
|
|
452
|
+
required: e.required,
|
|
453
|
+
"screen-reader-only": e.labelScreenReaderOnly
|
|
454
|
+
}, Me({
|
|
455
|
+
default: j(() => [
|
|
456
|
+
se(ie(e.label) + " ", 1)
|
|
457
|
+
]),
|
|
458
|
+
_: 2
|
|
459
|
+
}, [
|
|
460
|
+
v.value && !e.labelScreenReaderOnly ? {
|
|
461
|
+
name: "suffix",
|
|
462
|
+
fn: j(() => [
|
|
463
|
+
Y("div", { id: t(c) }, [
|
|
464
|
+
E(le, { message: e.error }, null, 8, ["message"])
|
|
465
|
+
], 8, Ke)
|
|
466
|
+
]),
|
|
467
|
+
key: "0"
|
|
468
|
+
} : void 0
|
|
469
|
+
]), 1032, ["id", "for", "required", "screen-reader-only"]),
|
|
470
|
+
Y("div", {
|
|
471
|
+
ref_key: "fieldRef",
|
|
472
|
+
ref: q,
|
|
473
|
+
role: "group",
|
|
474
|
+
"aria-labelledby": t(b),
|
|
475
|
+
class: ee(["flex flex-row items-end", t(K)])
|
|
476
|
+
}, [
|
|
477
|
+
Y("div", {
|
|
478
|
+
class: ee(["shrink-0", x[t($)]]),
|
|
479
|
+
onFocusin: O
|
|
480
|
+
}, [
|
|
481
|
+
E(ye, {
|
|
482
|
+
"single-model-value": p.value ?? null,
|
|
483
|
+
options: T.value,
|
|
484
|
+
"options-order-properties": null,
|
|
485
|
+
label: U.value,
|
|
486
|
+
"label-screen-reader-only": "",
|
|
487
|
+
i18n: _.value,
|
|
488
|
+
size: t($),
|
|
489
|
+
disabled: t(F),
|
|
490
|
+
required: "",
|
|
491
|
+
invalid: v.value,
|
|
492
|
+
name: `${e.name}-country`,
|
|
493
|
+
form: e.form,
|
|
494
|
+
"dropdown-width": t(he) || void 0,
|
|
495
|
+
"wrapper-class": pe.value,
|
|
496
|
+
"input-class": d.value,
|
|
497
|
+
condensed: "",
|
|
498
|
+
"onUpdate:singleModelValue": D
|
|
499
|
+
}, null, 8, ["single-model-value", "options", "label", "i18n", "size", "disabled", "invalid", "name", "form", "dropdown-width", "wrapper-class", "input-class"])
|
|
500
|
+
], 34),
|
|
501
|
+
E(ke, {
|
|
502
|
+
id: t(A),
|
|
503
|
+
"model-value": h.value,
|
|
504
|
+
type: "tel",
|
|
505
|
+
autocomplete: "tel",
|
|
506
|
+
class: "grow",
|
|
507
|
+
"wrapper-class": J,
|
|
508
|
+
"has-focus-styles": !1,
|
|
509
|
+
size: t($),
|
|
510
|
+
name: e.name,
|
|
511
|
+
form: e.form,
|
|
512
|
+
required: e.required,
|
|
513
|
+
disabled: t(F),
|
|
514
|
+
invalid: v.value,
|
|
515
|
+
"aria-required": e.required || void 0,
|
|
516
|
+
"aria-invalid": v.value || void 0,
|
|
517
|
+
"aria-describedby": v.value ? t(c) : void 0,
|
|
518
|
+
placeholder: e.placeholder,
|
|
519
|
+
"onUpdate:modelValue": g,
|
|
520
|
+
onBlur: n
|
|
521
|
+
}, null, 8, ["id", "model-value", "size", "name", "form", "required", "disabled", "invalid", "aria-required", "aria-invalid", "aria-describedby", "placeholder"])
|
|
522
|
+
], 10, We),
|
|
523
|
+
v.value && e.labelScreenReaderOnly ? (y(), k("div", {
|
|
524
|
+
key: 0,
|
|
525
|
+
id: t(c),
|
|
526
|
+
class: "mt-1"
|
|
527
|
+
}, [
|
|
528
|
+
E(le, { message: e.error }, null, 8, ["message"])
|
|
529
|
+
], 8, He)) : N("", !0)
|
|
530
|
+
]));
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
let Q;
|
|
534
|
+
const qe = () => (Q ?? (Q = import("./addressFormats.data-dzBx49dw.mjs").catch((e) => {
|
|
535
|
+
throw Q = void 0, e;
|
|
536
|
+
})), Q), Ye = (e, a) => a && e.ADDRESS_FORMATS[a] || e.DEFAULT_ADDRESS_FORMAT, ze = (e, a) => !e.postalCode || new RegExp(`^(?:${e.postalCode})$`, "i").test(a.trim()), Je = (e) => {
|
|
537
|
+
const a = e.trim();
|
|
538
|
+
if (!/^\+?[\d\s\-().]+$/.test(a)) return !1;
|
|
539
|
+
const o = a.replace(/\D/g, "").length;
|
|
540
|
+
return o >= 7 && o <= 15;
|
|
541
|
+
}, R = (e, a) => ({
|
|
542
|
+
required: ge(() => e(a))
|
|
543
|
+
}), Qe = (e) => (a) => {
|
|
544
|
+
const o = e();
|
|
545
|
+
return typeof a != "string" || !a.trim() || !o || ze(o, a);
|
|
546
|
+
}, mt = (e, a, o) => {
|
|
547
|
+
const r = re[e];
|
|
548
|
+
return {
|
|
549
|
+
[r.line1]: R(o, r.line1),
|
|
550
|
+
[r.city]: R(o, r.city),
|
|
551
|
+
[r.state]: R(o, r.state),
|
|
552
|
+
[r.country]: R(o, r.country),
|
|
553
|
+
[r.postalCode]: {
|
|
554
|
+
...R(o, r.postalCode),
|
|
555
|
+
postalCodeFormat: {
|
|
556
|
+
$validator: Qe(a),
|
|
557
|
+
$message: "The postal code does not match the country"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
}, pt = (e) => ({
|
|
562
|
+
shippingPhoneNumber: {
|
|
563
|
+
...R(e, "shippingPhoneNumber"),
|
|
564
|
+
phoneNumberFormat: {
|
|
565
|
+
$validator: (a) => typeof a != "string" || !a.trim() || Je(a),
|
|
566
|
+
$message: "The phone number is not valid"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
shippingLastName: R(e, "shippingLastName")
|
|
570
|
+
});
|
|
571
|
+
function ht({
|
|
572
|
+
isNeeded: e,
|
|
573
|
+
countries: a
|
|
574
|
+
}) {
|
|
575
|
+
const o = Ae();
|
|
576
|
+
let r = !1;
|
|
577
|
+
return X(
|
|
578
|
+
[e, ...a],
|
|
579
|
+
() => {
|
|
580
|
+
!e() || o.value || r || (r = !0, qe().then((s) => {
|
|
581
|
+
o.value = s;
|
|
582
|
+
}).catch(() => {
|
|
583
|
+
}).finally(() => {
|
|
584
|
+
r = !1;
|
|
585
|
+
}));
|
|
586
|
+
},
|
|
587
|
+
{ immediate: !0 }
|
|
588
|
+
), { formatOf: (s) => o.value ? Ye(o.value, s) : void 0 };
|
|
589
|
+
}
|
|
590
|
+
function ft() {
|
|
591
|
+
const e = $e(16);
|
|
592
|
+
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
|
|
593
|
+
const a = Array.from(e, (o) => o.toString(16).padStart(2, "0")).join("");
|
|
594
|
+
return `${a.slice(0, 8)}-${a.slice(8, 12)}-${a.slice(12, 16)}-${a.slice(16, 20)}-${a.slice(20)}`;
|
|
595
|
+
}
|
|
596
|
+
const je = { class: "sv-checkout-address-fields flex flex-col gap-2" }, Xe = {
|
|
597
|
+
key: 1,
|
|
598
|
+
class: "sv-checkout__shipping-recipient grid grid-cols-2 gap-2"
|
|
599
|
+
}, gt = /* @__PURE__ */ te({
|
|
600
|
+
__name: "CheckoutAddressFields",
|
|
601
|
+
props: /* @__PURE__ */ Ie({
|
|
602
|
+
variant: { type: String },
|
|
603
|
+
withCountry: { type: Boolean },
|
|
604
|
+
countryBeforeAddress: { type: Boolean },
|
|
605
|
+
countryLabel: { type: String },
|
|
606
|
+
format: { type: Object },
|
|
607
|
+
getOptionalSuffix: { type: Function },
|
|
608
|
+
errors: { type: Object }
|
|
609
|
+
}, {
|
|
610
|
+
modelValue: { required: !0 },
|
|
611
|
+
modelModifiers: {}
|
|
612
|
+
}),
|
|
613
|
+
emits: ["update:modelValue"],
|
|
614
|
+
setup(e) {
|
|
615
|
+
const a = (g) => Ce(g), o = {
|
|
616
|
+
1: "grid-cols-1",
|
|
617
|
+
2: "grid-cols-2",
|
|
618
|
+
3: "grid-cols-3"
|
|
619
|
+
}, r = e, i = Le(e, "modelValue"), { $t: s } = de(), u = be(), b = re[r.variant], A = r.variant === "SHIPPING", c = A ? "shipping_" : "", v = r.variant.toLowerCase(), m = Ve({
|
|
620
|
+
addressLine1: P(i, b.line1, V),
|
|
621
|
+
addressLine2: P(i, b.line2, V),
|
|
622
|
+
postalCode: P(i, b.postalCode, V),
|
|
623
|
+
city: P(i, b.city, V),
|
|
624
|
+
state: P(i, b.state, V),
|
|
625
|
+
firstName: P(i, "shippingFirstName", V),
|
|
626
|
+
lastName: P(i, "shippingLastName", V),
|
|
627
|
+
attentionName: P(i, "shippingAttentionName", V)
|
|
628
|
+
}), T = C({
|
|
629
|
+
get: () => i.value[b.country],
|
|
630
|
+
set: (g) => {
|
|
631
|
+
const n = V(g);
|
|
632
|
+
i.value[b.country] = n !== void 0 && a(n) ? n : void 0;
|
|
633
|
+
}
|
|
634
|
+
}), L = C({
|
|
635
|
+
get: () => i.value.shippingPhoneNumber ?? null,
|
|
636
|
+
set: (g) => {
|
|
637
|
+
i.value.shippingPhoneNumber = g ?? void 0;
|
|
638
|
+
}
|
|
639
|
+
}), p = C(() => new Set(ve(A ? r.format : void 0))), h = C(
|
|
640
|
+
() => o[["postalCode", "city", "state"].filter((g) => p.value.has(g)).length]
|
|
641
|
+
), G = C(() => i.value.type === "ORGANIZATION"), S = (g) => r.getOptionalSuffix(b[g]), D = (g) => g == null ? void 0 : g.map((n) => n.$validator === "postalCodeFormat" ? {
|
|
642
|
+
...n,
|
|
643
|
+
$message: s({
|
|
644
|
+
defaultMessage: "Enter a postal code in the format of this country",
|
|
645
|
+
id: "checkout.postal_code.invalid",
|
|
646
|
+
description: "Error under a shipping or billing postal code that does not match its country's format"
|
|
647
|
+
})
|
|
648
|
+
} : n.$validator === "phoneNumberFormat" ? {
|
|
649
|
+
...n,
|
|
650
|
+
$message: s({
|
|
651
|
+
defaultMessage: "Enter a phone number of 7 to 15 digits",
|
|
652
|
+
id: "checkout.shipping_phone_number.invalid",
|
|
653
|
+
description: "Error under a shipping phone number with characters other than digits and separators, or too few or many digits"
|
|
654
|
+
})
|
|
655
|
+
} : n);
|
|
656
|
+
return (g, n) => {
|
|
657
|
+
var O, U, _, x, $, F, K, w;
|
|
658
|
+
return y(), k("div", je, [
|
|
659
|
+
e.withCountry && !e.countryBeforeAddress ? (y(), M(t(oe), {
|
|
660
|
+
key: 0,
|
|
661
|
+
"single-model-value": T.value,
|
|
662
|
+
"onUpdate:singleModelValue": n[0] || (n[0] = (d) => T.value = d),
|
|
663
|
+
"label-screen-reader-only": "",
|
|
664
|
+
i18n: { placeholderDefault: t(u).countryPlaceholder },
|
|
665
|
+
required: "",
|
|
666
|
+
label: e.countryLabel ?? t(u).countryLabel,
|
|
667
|
+
name: `${t(c)}country`,
|
|
668
|
+
error: (O = e.errors) == null ? void 0 : O.country
|
|
669
|
+
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : N("", !0),
|
|
670
|
+
A ? (y(), k(Pe, { key: 1 }, [
|
|
671
|
+
G.value ? (y(), M(I, {
|
|
672
|
+
key: 0,
|
|
673
|
+
modelValue: m.attentionName,
|
|
674
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => m.attentionName = d),
|
|
675
|
+
name: "shipping_attention_name",
|
|
676
|
+
class: "sv-checkout__shipping-attention-name",
|
|
677
|
+
autocomplete: "shipping name",
|
|
678
|
+
label: t(s)({
|
|
679
|
+
defaultMessage: "Contact person",
|
|
680
|
+
id: "checkout.shipping_attention_name.label",
|
|
681
|
+
description: "Label of the person at the company a shipped order is for the attention of"
|
|
682
|
+
}),
|
|
683
|
+
placeholder: t(s)({
|
|
684
|
+
defaultMessage: "Contact person",
|
|
685
|
+
id: "checkout.shipping_attention_name.placeholder",
|
|
686
|
+
description: "Placeholder of the person at the company a shipped order is for the attention of"
|
|
687
|
+
}) + e.getOptionalSuffix("shippingAttentionName")
|
|
688
|
+
}, null, 8, ["modelValue", "label", "placeholder"])) : (y(), k("div", Xe, [
|
|
689
|
+
E(I, {
|
|
690
|
+
modelValue: m.firstName,
|
|
691
|
+
"onUpdate:modelValue": n[2] || (n[2] = (d) => m.firstName = d),
|
|
692
|
+
name: "shipping_first_name",
|
|
693
|
+
autocomplete: "shipping given-name",
|
|
694
|
+
label: t(s)({
|
|
695
|
+
defaultMessage: "First name",
|
|
696
|
+
id: "checkout.shipping_first_name.label",
|
|
697
|
+
description: "Label of the first name of the recipient of a shipped order"
|
|
698
|
+
}),
|
|
699
|
+
placeholder: t(s)({
|
|
700
|
+
defaultMessage: "First name",
|
|
701
|
+
id: "checkout.shipping_first_name.placeholder",
|
|
702
|
+
description: "Placeholder of the first name of the recipient of a shipped order"
|
|
703
|
+
}) + e.getOptionalSuffix("shippingFirstName")
|
|
704
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
705
|
+
E(I, {
|
|
706
|
+
modelValue: m.lastName,
|
|
707
|
+
"onUpdate:modelValue": n[3] || (n[3] = (d) => m.lastName = d),
|
|
708
|
+
name: "shipping_last_name",
|
|
709
|
+
autocomplete: "shipping family-name",
|
|
710
|
+
label: t(s)({
|
|
711
|
+
defaultMessage: "Last name",
|
|
712
|
+
id: "checkout.shipping_last_name.label",
|
|
713
|
+
description: "Label of the last name of the recipient of a shipped order"
|
|
714
|
+
}),
|
|
715
|
+
placeholder: t(s)({
|
|
716
|
+
defaultMessage: "Last name",
|
|
717
|
+
id: "checkout.shipping_last_name.placeholder",
|
|
718
|
+
description: "Placeholder of the last name of the recipient of a shipped order"
|
|
719
|
+
}) + e.getOptionalSuffix("shippingLastName"),
|
|
720
|
+
error: (U = e.errors) == null ? void 0 : U.lastName
|
|
721
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"])
|
|
722
|
+
]))
|
|
723
|
+
], 64)) : N("", !0),
|
|
724
|
+
e.withCountry && e.countryBeforeAddress ? (y(), M(t(oe), {
|
|
725
|
+
key: 2,
|
|
726
|
+
"single-model-value": T.value,
|
|
727
|
+
"onUpdate:singleModelValue": n[4] || (n[4] = (d) => T.value = d),
|
|
728
|
+
"label-screen-reader-only": "",
|
|
729
|
+
i18n: { placeholderDefault: t(u).countryPlaceholder },
|
|
730
|
+
required: "",
|
|
731
|
+
label: e.countryLabel ?? t(u).countryLabel,
|
|
732
|
+
name: `${t(c)}country`,
|
|
733
|
+
error: (_ = e.errors) == null ? void 0 : _.country
|
|
734
|
+
}, null, 8, ["single-model-value", "i18n", "label", "name", "error"])) : N("", !0),
|
|
735
|
+
p.value.has("line1") ? (y(), M(I, {
|
|
736
|
+
key: 3,
|
|
737
|
+
modelValue: m.addressLine1,
|
|
738
|
+
"onUpdate:modelValue": n[5] || (n[5] = (d) => m.addressLine1 = d),
|
|
739
|
+
name: `${t(c)}address_line_1`,
|
|
740
|
+
autocomplete: `${t(v)} address-line1`,
|
|
741
|
+
label: t(u).addressLine1Label,
|
|
742
|
+
placeholder: t(s)({
|
|
743
|
+
defaultMessage: "Address line 1",
|
|
744
|
+
id: "checkout.address.line1.placeholder",
|
|
745
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
746
|
+
}) + S("line1"),
|
|
747
|
+
error: (x = e.errors) == null ? void 0 : x.addressLine1
|
|
748
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
749
|
+
p.value.has("line2") ? (y(), M(I, {
|
|
750
|
+
key: 4,
|
|
751
|
+
modelValue: m.addressLine2,
|
|
752
|
+
"onUpdate:modelValue": n[6] || (n[6] = (d) => m.addressLine2 = d),
|
|
753
|
+
name: `${t(c)}address_line_2`,
|
|
754
|
+
autocomplete: `${t(v)} address-line2`,
|
|
755
|
+
label: t(u).addressLine2Label,
|
|
756
|
+
placeholder: t(s)({
|
|
757
|
+
defaultMessage: "Address line 2",
|
|
758
|
+
id: "checkout.address.line2.placeholder",
|
|
759
|
+
description: "Address line 2 of the customer address in the checkout form"
|
|
760
|
+
}) + S("line2")
|
|
761
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder"])) : N("", !0),
|
|
762
|
+
h.value ? (y(), k("div", {
|
|
763
|
+
key: 5,
|
|
764
|
+
class: ee(["grid gap-2", h.value])
|
|
765
|
+
}, [
|
|
766
|
+
p.value.has("postalCode") ? (y(), M(I, {
|
|
767
|
+
key: 0,
|
|
768
|
+
modelValue: m.postalCode,
|
|
769
|
+
"onUpdate:modelValue": n[7] || (n[7] = (d) => m.postalCode = d),
|
|
770
|
+
name: `${t(c)}postal_code`,
|
|
771
|
+
autocomplete: `${t(v)} postal-code`,
|
|
772
|
+
label: t(u).postalCodeLabel,
|
|
773
|
+
placeholder: t(u).postalCodePlaceholder + S("postalCode"),
|
|
774
|
+
error: D(($ = e.errors) == null ? void 0 : $.postalCode)
|
|
775
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
776
|
+
p.value.has("city") ? (y(), M(I, {
|
|
777
|
+
key: 1,
|
|
778
|
+
modelValue: m.city,
|
|
779
|
+
"onUpdate:modelValue": n[8] || (n[8] = (d) => m.city = d),
|
|
780
|
+
name: `${t(c)}city`,
|
|
781
|
+
autocomplete: `${t(v)} address-level2`,
|
|
782
|
+
label: t(u).cityLabel,
|
|
783
|
+
placeholder: t(u).cityPlaceholder + S("city"),
|
|
784
|
+
error: (F = e.errors) == null ? void 0 : F.city
|
|
785
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0),
|
|
786
|
+
p.value.has("state") ? (y(), M(I, {
|
|
787
|
+
key: 2,
|
|
788
|
+
modelValue: m.state,
|
|
789
|
+
"onUpdate:modelValue": n[9] || (n[9] = (d) => m.state = d),
|
|
790
|
+
name: `${t(c)}state`,
|
|
791
|
+
autocomplete: `${t(v)} address-level1`,
|
|
792
|
+
label: t(u).stateLabel,
|
|
793
|
+
placeholder: t(u).statePlaceholder + S("state"),
|
|
794
|
+
error: (K = e.errors) == null ? void 0 : K.state
|
|
795
|
+
}, null, 8, ["modelValue", "name", "autocomplete", "label", "placeholder", "error"])) : N("", !0)
|
|
796
|
+
], 2)) : N("", !0),
|
|
797
|
+
A ? (y(), M(t(Ze), {
|
|
798
|
+
key: 6,
|
|
799
|
+
modelValue: L.value,
|
|
800
|
+
"onUpdate:modelValue": n[10] || (n[10] = (d) => L.value = d),
|
|
801
|
+
"label-screen-reader-only": "",
|
|
802
|
+
required: "",
|
|
803
|
+
name: "shipping_phone_number",
|
|
804
|
+
class: "sv-checkout__shipping-phone-number",
|
|
805
|
+
"default-country": i.value[t(b).country],
|
|
806
|
+
label: t(s)({
|
|
807
|
+
defaultMessage: "Phone number",
|
|
808
|
+
id: "checkout.shipping_phone_number.label",
|
|
809
|
+
description: "Label of the phone number the carrier can reach the recipient of a shipped order on"
|
|
810
|
+
}),
|
|
811
|
+
placeholder: t(s)({
|
|
812
|
+
defaultMessage: "Phone number",
|
|
813
|
+
id: "checkout.shipping_phone_number.placeholder",
|
|
814
|
+
description: "Placeholder of the phone number the carrier can reach the recipient of a shipped order on"
|
|
815
|
+
}),
|
|
816
|
+
error: D((w = e.errors) == null ? void 0 : w.phoneNumber)
|
|
817
|
+
}, null, 8, ["modelValue", "default-country", "label", "placeholder", "error"])) : N("", !0)
|
|
818
|
+
]);
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
export {
|
|
823
|
+
gt as _,
|
|
824
|
+
mt as a,
|
|
825
|
+
ft as r,
|
|
826
|
+
pt as s,
|
|
827
|
+
ht as u
|
|
828
|
+
};
|