@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28
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 +126 -17
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- 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-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
- package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.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 +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -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 +20 -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/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- 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 +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- 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 +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -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/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -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/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/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 +2 -0
- 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/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- 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-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +28 -55
- 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-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/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/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-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/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-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-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-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/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-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-BIMpDI_p.mjs +0 -29
- 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-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-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,1369 @@
|
|
|
1
|
+
import { a as Se, d as Ke, i as xl } from "./useService-B0OQJmif.mjs";
|
|
2
|
+
import { defineComponent as J, openBlock as s, createElementBlock as I, createVNode as F, unref as w, withCtx as L, renderSlot as H, toDisplayString as z, createCommentVNode as p, createElementVNode as k, computed as f, withKeys as yl, withModifiers as qe, normalizeClass as P, Fragment as ee, mergeProps as V, createBlock as x, resolveDynamicComponent as R, normalizeProps as T, renderList as Ze, createTextVNode as Q, inject as je, getCurrentInstance as gl, ref as G, watch as ge, useModel as Xe, useSlots as Cl, createSlots as Ee, guardReactiveProps as Pe, Teleport as Sl, normalizeStyle as De, mergeModels as Ie, isRef as Ne, useId as Il } from "vue";
|
|
3
|
+
import { u as re, d as kl, c as wl } from "./index.es-CXkP_k3u.mjs";
|
|
4
|
+
import { c as Ye } from "./countryData.es-BegoD-cZ.mjs";
|
|
5
|
+
import { u as Ll, a as El, o as $l, f as Ml, s as Al, b as Rl } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
6
|
+
import { _ as ke, S as Tl, I as Ol, a as Bl } from "./customElements-Di3zwlEU.mjs";
|
|
7
|
+
import { e as we } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
8
|
+
import { _ as W, s as Ue, u as Vl } from "./sorting.es-qtEN8J8T.mjs";
|
|
9
|
+
import { _ as ze } from "./IconButton.vue.es-oe4MVBK1.mjs";
|
|
10
|
+
import { a as Fe, _ as Ce } from "./Button.vue.es-rh6mITmN.mjs";
|
|
11
|
+
import { _ as Pl } from "./Chip.vue.es-Cn2R_0mE.mjs";
|
|
12
|
+
import { c as Dl } from "./cn.es-2bVdkiFV.mjs";
|
|
13
|
+
import { _ as We } from "./Input.vue.es-DAlPmtE_.mjs";
|
|
14
|
+
import { d as Nl } from "./formControl-CsITfsBk.mjs";
|
|
15
|
+
import { _ as Ul } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
16
|
+
const Le = (e) => Se(e) && typeof e != "boolean" ? null : e, se = (e) => typeof e == "object" && e !== null, zl = ({
|
|
17
|
+
from: e,
|
|
18
|
+
to: i,
|
|
19
|
+
nullifyEmptyValues: r = !1
|
|
20
|
+
}) => {
|
|
21
|
+
const o = Object.fromEntries(
|
|
22
|
+
Object.entries(i).filter(([t, d]) => !Ke(d, e[t]))
|
|
23
|
+
);
|
|
24
|
+
return r ? Object.entries(o).reduce(
|
|
25
|
+
(t, [d, u]) => ({ ...t, [d]: Le(u) }),
|
|
26
|
+
{}
|
|
27
|
+
) : o;
|
|
28
|
+
}, Fl = ({
|
|
29
|
+
from: e,
|
|
30
|
+
to: i,
|
|
31
|
+
nullifyEmptyValues: r = !1
|
|
32
|
+
}) => {
|
|
33
|
+
const o = {}, t = (u, c, a) => {
|
|
34
|
+
const y = c[a];
|
|
35
|
+
return u === void 0 ? Array.isArray(y) ? o[a] = [] : se(y) && (o[a] = {}) : Array.isArray(y) ? u[a] = [] : se(y) && (u[a] = {}), [u === void 0 ? o : u, a];
|
|
36
|
+
}, d = (u, c, a) => {
|
|
37
|
+
for (const y of Object.keys(u)) {
|
|
38
|
+
const g = t(a, u, y);
|
|
39
|
+
y in c || (g[0][g[1]] = {
|
|
40
|
+
from: u[y]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
for (const [y, g] of Object.entries(c)) {
|
|
44
|
+
const O = y in u, m = t(a, u, y);
|
|
45
|
+
if (O) {
|
|
46
|
+
const C = u[y];
|
|
47
|
+
Ke(C, g) ? delete m[0][m[1]] : se(g) && se(C) ? d(C, g, m[0][m[1]]) : m[0][m[1]] = r && typeof g != "boolean" ? Le(g) : g;
|
|
48
|
+
} else
|
|
49
|
+
m[0][m[1]] = r ? Le(g) : g;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return d(e, i), o;
|
|
53
|
+
}, jt = ({
|
|
54
|
+
from: e,
|
|
55
|
+
to: i,
|
|
56
|
+
mode: r = "shallow",
|
|
57
|
+
nullifyEmptyValues: o = !1
|
|
58
|
+
}) => r === "deep" ? Fl({ from: e, to: i, nullifyEmptyValues: o }) : zl({ from: e, to: i, nullifyEmptyValues: o });
|
|
59
|
+
function Gl(e, i, r = []) {
|
|
60
|
+
return [...e].sort((o, t) => {
|
|
61
|
+
for (let d = 0; d < i.length; d++) {
|
|
62
|
+
const u = i[d], c = typeof u == "function" ? u : (O) => O[u], a = r[d] === "desc" ? -1 : 1, y = c(o), g = c(t);
|
|
63
|
+
if (!(y == null && g == null)) {
|
|
64
|
+
if (y == null) return a;
|
|
65
|
+
if (g == null || y < g) return -a;
|
|
66
|
+
if (y > g) return a;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return 0;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const Hl = { class: "flex items-center pt-1" }, Kl = {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "ml-1 normal-case"
|
|
75
|
+
}, ql = /* @__PURE__ */ J({
|
|
76
|
+
__name: "SearchSelectInputOptionsDivider",
|
|
77
|
+
props: {
|
|
78
|
+
suffix: {}
|
|
79
|
+
},
|
|
80
|
+
setup(e) {
|
|
81
|
+
return (i, r) => (s(), I("div", Hl, [
|
|
82
|
+
F(w(ke), {
|
|
83
|
+
tag: "span",
|
|
84
|
+
variant: "caps-heading",
|
|
85
|
+
"no-spacing": "",
|
|
86
|
+
class: "pl-4 pr-1.5"
|
|
87
|
+
}, {
|
|
88
|
+
default: L(() => [
|
|
89
|
+
H(i.$slots, "default"),
|
|
90
|
+
e.suffix ? (s(), I("span", Kl, z(e.suffix), 1)) : p("", !0)
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}),
|
|
94
|
+
r[0] || (r[0] = k("div", { class: "grow border-t" }, null, -1))
|
|
95
|
+
]));
|
|
96
|
+
}
|
|
97
|
+
}), Zl = (e) => `checkbox-item-${e}`, jl = "select-search-done-button", Xl = ["aria-selected", "aria-disabled", "data-testid", "onKeydown"], Yl = ["id", "value", "checked", "disabled"], Wl = ["for"], Ql = { class: "flex min-w-0 items-center gap-1" }, Jl = { class: "flex min-w-0 flex-grow flex-col" }, _l = { class: "flex min-w-0 flex-grow gap-2" }, et = { class: "mr-8 flex min-w-0 flex-grow flex-col" }, lt = { class: "flex min-w-0 flex-grow items-center gap-2" }, tt = /* @__PURE__ */ J({
|
|
98
|
+
__name: "SearchSelectInputOption",
|
|
99
|
+
props: {
|
|
100
|
+
multiple: { type: Boolean },
|
|
101
|
+
search: {},
|
|
102
|
+
condensed: { type: Boolean },
|
|
103
|
+
label: {},
|
|
104
|
+
checked: { type: Boolean },
|
|
105
|
+
disabled: { type: Boolean },
|
|
106
|
+
subLabel: {},
|
|
107
|
+
labelPrefixComponent: {},
|
|
108
|
+
labelSuffixComponent: {},
|
|
109
|
+
labelInlineComponent: {},
|
|
110
|
+
labelBeforeSuffixComponent: {},
|
|
111
|
+
value: {},
|
|
112
|
+
labelSrOnly: { type: Boolean }
|
|
113
|
+
},
|
|
114
|
+
emits: ["value-changed"],
|
|
115
|
+
setup(e, { emit: i }) {
|
|
116
|
+
const r = i, o = e, t = (a) => {
|
|
117
|
+
const y = a.target, g = {
|
|
118
|
+
value: y.value,
|
|
119
|
+
checked: y.checked
|
|
120
|
+
};
|
|
121
|
+
r("value-changed", g);
|
|
122
|
+
}, d = () => {
|
|
123
|
+
o.multiple || o.disabled || r("value-changed", {
|
|
124
|
+
value: o.value
|
|
125
|
+
});
|
|
126
|
+
}, u = f(() => Zl(o.value)), c = f(() => we(o.search ?? ""));
|
|
127
|
+
return (a, y) => (s(), I("li", {
|
|
128
|
+
role: "option",
|
|
129
|
+
"aria-selected": e.checked,
|
|
130
|
+
"aria-disabled": e.disabled,
|
|
131
|
+
class: P([{ "hover:bg-gray-100": !e.disabled }, "relative flex"]),
|
|
132
|
+
"data-testid": u.value,
|
|
133
|
+
tabindex: "0",
|
|
134
|
+
onClick: d,
|
|
135
|
+
onKeydown: yl(qe(d, ["prevent"]), ["enter"])
|
|
136
|
+
}, [
|
|
137
|
+
e.multiple ? (s(), I(ee, { key: 0 }, [
|
|
138
|
+
k("input", V(a.$attrs, {
|
|
139
|
+
id: u.value,
|
|
140
|
+
ref: "inputRef",
|
|
141
|
+
value: e.value,
|
|
142
|
+
checked: e.checked,
|
|
143
|
+
disabled: e.disabled,
|
|
144
|
+
type: "checkbox",
|
|
145
|
+
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"],
|
|
146
|
+
tabindex: "-1",
|
|
147
|
+
onChange: t
|
|
148
|
+
}), null, 16, Yl),
|
|
149
|
+
k("label", {
|
|
150
|
+
for: u.value,
|
|
151
|
+
class: P([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
|
|
152
|
+
}, [
|
|
153
|
+
k("div", Ql, [
|
|
154
|
+
e.labelPrefixComponent ? (s(), x(R(e.labelPrefixComponent.component), T(V({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
155
|
+
k("div", Jl, [
|
|
156
|
+
k("div", _l, [
|
|
157
|
+
F(W, {
|
|
158
|
+
text: e.label,
|
|
159
|
+
search: c.value,
|
|
160
|
+
title: e.label,
|
|
161
|
+
class: P(["truncate font-semibold", { "sr-only": e.labelSrOnly }])
|
|
162
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
163
|
+
e.labelInlineComponent ? (s(), x(R(e.labelInlineComponent.component), T(V({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
164
|
+
e.subLabel && e.condensed ? (s(), x(W, {
|
|
165
|
+
key: 1,
|
|
166
|
+
class: "truncate text-xs text-subtle",
|
|
167
|
+
text: e.subLabel,
|
|
168
|
+
title: e.subLabel,
|
|
169
|
+
search: c.value
|
|
170
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
171
|
+
]),
|
|
172
|
+
e.subLabel && !e.condensed ? (s(), x(W, {
|
|
173
|
+
key: 0,
|
|
174
|
+
class: "truncate text-xs text-subtle",
|
|
175
|
+
text: e.subLabel,
|
|
176
|
+
title: e.subLabel,
|
|
177
|
+
search: c.value
|
|
178
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
179
|
+
]),
|
|
180
|
+
e.labelBeforeSuffixComponent ? (s(), x(R(e.labelBeforeSuffixComponent.component), T(V({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
181
|
+
e.labelSuffixComponent ? (s(), x(R(e.labelSuffixComponent.component), T(V({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
182
|
+
])
|
|
183
|
+
], 10, Wl)
|
|
184
|
+
], 64)) : (s(), I("div", {
|
|
185
|
+
key: 1,
|
|
186
|
+
class: P(["flex w-full min-w-0 items-center gap-3 px-4 text-sm font-medium", [
|
|
187
|
+
e.condensed ? "p-2" : "py-2",
|
|
188
|
+
e.disabled ?? "cursor-not-allowed",
|
|
189
|
+
!e.disabled && "cursor-pointer"
|
|
190
|
+
]])
|
|
191
|
+
}, [
|
|
192
|
+
e.labelPrefixComponent ? (s(), x(R(e.labelPrefixComponent.component), T(V({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
193
|
+
k("div", et, [
|
|
194
|
+
k("div", lt, [
|
|
195
|
+
F(W, {
|
|
196
|
+
text: e.label,
|
|
197
|
+
search: w(we)(e.search ?? ""),
|
|
198
|
+
title: e.label,
|
|
199
|
+
class: P(["truncate font-semibold", { "text-disabled": e.disabled }])
|
|
200
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
201
|
+
e.labelInlineComponent ? (s(), x(R(e.labelInlineComponent.component), T(V({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
202
|
+
e.subLabel && e.condensed ? (s(), x(W, {
|
|
203
|
+
key: 1,
|
|
204
|
+
class: "truncate text-xs text-subtle",
|
|
205
|
+
text: e.subLabel,
|
|
206
|
+
title: e.subLabel,
|
|
207
|
+
search: c.value
|
|
208
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
209
|
+
]),
|
|
210
|
+
e.subLabel && !e.condensed ? (s(), x(W, {
|
|
211
|
+
key: 0,
|
|
212
|
+
class: "truncate text-xs text-subtle",
|
|
213
|
+
text: e.subLabel,
|
|
214
|
+
title: e.subLabel,
|
|
215
|
+
search: c.value
|
|
216
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
217
|
+
]),
|
|
218
|
+
e.labelBeforeSuffixComponent ? (s(), x(R(e.labelBeforeSuffixComponent.component), T(V({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
219
|
+
e.labelSuffixComponent ? (s(), x(R(e.labelSuffixComponent.component), T(V({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
220
|
+
], 2))
|
|
221
|
+
], 42, Xl));
|
|
222
|
+
}
|
|
223
|
+
}), at = { class: "flex flex-col rounded-bl rounded-br" }, nt = {
|
|
224
|
+
key: 0,
|
|
225
|
+
class: "px-5 py-5 text-sm text-secondary"
|
|
226
|
+
}, ot = { key: 0 }, st = ["innerHTML"], it = { key: 0 }, rt = { class: "mt-1 px-3 py-2 text-sm text-secondary" }, ut = /* @__PURE__ */ J({
|
|
227
|
+
__name: "SearchSelectInputOptions",
|
|
228
|
+
props: {
|
|
229
|
+
i18n: {},
|
|
230
|
+
model: {},
|
|
231
|
+
search: {},
|
|
232
|
+
multiple: { type: Boolean },
|
|
233
|
+
condensed: { type: Boolean },
|
|
234
|
+
hasLargeDropdown: { type: Boolean },
|
|
235
|
+
addOnly: { type: Boolean },
|
|
236
|
+
options: {}
|
|
237
|
+
},
|
|
238
|
+
emits: ["value-changed"],
|
|
239
|
+
setup(e, { emit: i }) {
|
|
240
|
+
const r = i, o = e, t = (m) => r("value-changed", m), d = f(() => {
|
|
241
|
+
var m, C;
|
|
242
|
+
const S = o.search ? `<span class="font-bold">"${we(o.search)}"</span>` : "";
|
|
243
|
+
return ((C = (m = o.i18n) == null ? void 0 : m.noResults) == null ? void 0 : C.call(m, S)) ?? `No matches found for ${S}.`;
|
|
244
|
+
}), u = f(() => o.search === ""), c = f(() => o.options.filter((m) => !m.hidden)), a = f(() => c.value.length > 0), y = f(() => a.value ? !1 : u.value ? !0 : !!d.value), g = f(
|
|
245
|
+
() => Ue(o.options, "group").reduce(
|
|
246
|
+
(m, C) => C.value === "" ? m : {
|
|
247
|
+
...m,
|
|
248
|
+
[C.value]: C.group
|
|
249
|
+
},
|
|
250
|
+
{}
|
|
251
|
+
)
|
|
252
|
+
), O = f(
|
|
253
|
+
() => Ue(o.options, "group").reduce(
|
|
254
|
+
(m, C) => C.value === "" ? m : {
|
|
255
|
+
...m,
|
|
256
|
+
[C.value]: C.groupSuffix
|
|
257
|
+
},
|
|
258
|
+
{}
|
|
259
|
+
)
|
|
260
|
+
);
|
|
261
|
+
return (m, C) => {
|
|
262
|
+
var S, le;
|
|
263
|
+
return s(), I("div", at, [
|
|
264
|
+
y.value ? (s(), I("div", nt, [
|
|
265
|
+
u.value ? (s(), I("span", ot, z(((S = o.i18n) == null ? void 0 : S.noOptionsAvailable) ?? "No available options."), 1)) : (s(), I("span", {
|
|
266
|
+
key: 1,
|
|
267
|
+
innerHTML: d.value
|
|
268
|
+
}, null, 8, st))
|
|
269
|
+
])) : a.value ? (s(), I("ul", {
|
|
270
|
+
key: 1,
|
|
271
|
+
class: P(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-[19rem]" : "max-h-48"]])
|
|
272
|
+
}, [
|
|
273
|
+
e.addOnly ? (s(), I("div", it, [
|
|
274
|
+
k("p", rt, z(((le = e.i18n) == null ? void 0 : le.addOnly) ?? "You can only select currently unselected options."), 1)
|
|
275
|
+
])) : p("", !0),
|
|
276
|
+
(s(!0), I(ee, null, Ze(c.value, ({
|
|
277
|
+
label: te,
|
|
278
|
+
subLabel: ae,
|
|
279
|
+
value: K,
|
|
280
|
+
checked: de,
|
|
281
|
+
disabled: M,
|
|
282
|
+
labelInlineComponent: ce,
|
|
283
|
+
labelSuffixComponent: fe,
|
|
284
|
+
labelSrOnly: me,
|
|
285
|
+
labelPrefixComponent: h,
|
|
286
|
+
labelBeforeSuffixComponent: q,
|
|
287
|
+
searchValues: D
|
|
288
|
+
}) => (s(), I(ee, { key: K }, [
|
|
289
|
+
g.value[K] ? (s(), x(ql, {
|
|
290
|
+
key: 0,
|
|
291
|
+
suffix: O.value[K]
|
|
292
|
+
}, {
|
|
293
|
+
default: L(() => [
|
|
294
|
+
Q(z(g.value[K]), 1)
|
|
295
|
+
]),
|
|
296
|
+
_: 2
|
|
297
|
+
}, 1032, ["suffix"])) : p("", !0),
|
|
298
|
+
F(tt, {
|
|
299
|
+
label: te,
|
|
300
|
+
"sub-label": ae,
|
|
301
|
+
value: K,
|
|
302
|
+
checked: de,
|
|
303
|
+
disabled: M,
|
|
304
|
+
search: D ? "" : e.search,
|
|
305
|
+
multiple: e.multiple,
|
|
306
|
+
condensed: e.condensed,
|
|
307
|
+
"label-suffix-component": fe,
|
|
308
|
+
"label-prefix-component": h,
|
|
309
|
+
"label-before-suffix-component": q,
|
|
310
|
+
"label-inline-component": ce,
|
|
311
|
+
"label-sr-only": me,
|
|
312
|
+
onValueChanged: t
|
|
313
|
+
}, 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"])
|
|
314
|
+
], 64))), 128))
|
|
315
|
+
], 2)) : p("", !0),
|
|
316
|
+
m.$slots["list-footer-content"] ? (s(), I("div", {
|
|
317
|
+
key: 2,
|
|
318
|
+
class: P({ "border-t border-gray-200": a.value })
|
|
319
|
+
}, [
|
|
320
|
+
H(m.$slots, "list-footer-content")
|
|
321
|
+
], 2)) : p("", !0)
|
|
322
|
+
]);
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}), dt = { class: "flex flex-col gap-2" }, ct = ["aria-expanded"], ft = { class: "flex items-center gap-2" }, mt = { key: 2 }, vt = { class: "flex items-center gap-2 self-stretch" }, pt = { class: "flex items-center" }, ht = {
|
|
326
|
+
key: 0,
|
|
327
|
+
class: "flex flex-wrap gap-2"
|
|
328
|
+
}, bt = ["innerHTML"], xt = /* @__PURE__ */ J({
|
|
329
|
+
__name: "SearchSelectInput",
|
|
330
|
+
props: /* @__PURE__ */ Ie({
|
|
331
|
+
addOnly: { type: Boolean, default: !1 },
|
|
332
|
+
disabled: { type: Boolean },
|
|
333
|
+
i18n: {},
|
|
334
|
+
label: {},
|
|
335
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
336
|
+
singleModelValue: {},
|
|
337
|
+
multiModelValue: {},
|
|
338
|
+
options: { default: () => [] },
|
|
339
|
+
optionsOrder: { default: () => ["asc", "asc"] },
|
|
340
|
+
optionsOrderProperties: { default: () => ["group", "label"] },
|
|
341
|
+
required: { type: Boolean, default: !1 },
|
|
342
|
+
rootClass: {},
|
|
343
|
+
wrapperClass: {},
|
|
344
|
+
inputClass: {},
|
|
345
|
+
dropdownWidth: {},
|
|
346
|
+
invalid: { type: Boolean },
|
|
347
|
+
size: { default: "md" },
|
|
348
|
+
withChips: { type: Boolean, default: !1 },
|
|
349
|
+
error: {},
|
|
350
|
+
hasReset: { type: Boolean },
|
|
351
|
+
name: {},
|
|
352
|
+
hasLargeDropdown: { type: Boolean, default: !1 },
|
|
353
|
+
showSuffixInClosedInput: { type: Boolean },
|
|
354
|
+
showSuffixLabelInInput: { type: Boolean },
|
|
355
|
+
showSelectionInClosedInput: { type: Boolean },
|
|
356
|
+
condensed: { type: Boolean },
|
|
357
|
+
form: {},
|
|
358
|
+
prefix: {}
|
|
359
|
+
}, {
|
|
360
|
+
search: { default: "" },
|
|
361
|
+
searchModifiers: {}
|
|
362
|
+
}),
|
|
363
|
+
emits: /* @__PURE__ */ Ie(["update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"], ["update:search"]),
|
|
364
|
+
setup(e, { expose: i, emit: r }) {
|
|
365
|
+
var o;
|
|
366
|
+
const t = e, d = je(Tl), u = (o = gl()) == null ? void 0 : o.vnode.props, c = !(u != null && u["onUpdate:search"]), a = f(() => Array.isArray(t.multiModelValue)), y = G(t.singleModelValue), g = r, O = re(t, "singleModelValue", g), m = re(t, "multiModelValue", g), C = G(m.value ?? []);
|
|
367
|
+
ge(
|
|
368
|
+
() => t.multiModelValue,
|
|
369
|
+
(l) => {
|
|
370
|
+
l && (C.value = l);
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
const S = Xe(e, "search"), le = Cl(), te = f(() => !!le.prefix), ae = f(() => !!t.prefix), K = f(() => te.value || ae.value), de = f(() => K.value || !ye.value), M = f({
|
|
374
|
+
get: () => a.value ? C.value ?? [] : typeof O.value == "string" ? [O.value] : [],
|
|
375
|
+
set(l) {
|
|
376
|
+
a.value ? C.value = l : O.value = (l == null ? void 0 : l[0]) ?? "";
|
|
377
|
+
}
|
|
378
|
+
}), ce = f(
|
|
379
|
+
() => Z.value.filter((l) => {
|
|
380
|
+
var n;
|
|
381
|
+
return (n = M.value) == null ? void 0 : n.includes(l.value);
|
|
382
|
+
})
|
|
383
|
+
), fe = f(() => ce.value[0]), me = Vl(), h = G(!1), q = G(), D = G(), ll = G(), $e = () => q.value ? Array.from(
|
|
384
|
+
q.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
|
|
385
|
+
) : [], Me = () => {
|
|
386
|
+
var l;
|
|
387
|
+
let n = document.activeElement;
|
|
388
|
+
for (; (l = n == null ? void 0 : n.shadowRoot) != null && l.activeElement; )
|
|
389
|
+
n = n.shadowRoot.activeElement;
|
|
390
|
+
return n;
|
|
391
|
+
}, ve = () => {
|
|
392
|
+
if (!D.value) return null;
|
|
393
|
+
let l = D.value.querySelector("input");
|
|
394
|
+
if (l) return l;
|
|
395
|
+
const n = D.value.querySelectorAll("*");
|
|
396
|
+
for (const v of n)
|
|
397
|
+
if (v.shadowRoot && (l = v.shadowRoot.querySelector("input"), l))
|
|
398
|
+
return l;
|
|
399
|
+
return null;
|
|
400
|
+
};
|
|
401
|
+
let pe = !1;
|
|
402
|
+
const he = () => {
|
|
403
|
+
var l;
|
|
404
|
+
pe = !0, (l = ve()) == null || l.focus(), pe = !1;
|
|
405
|
+
}, be = (l) => (l == null ? void 0 : l.selectedLabel) ?? (l == null ? void 0 : l.label) ?? "", N = G(""), _ = G(!1), tl = () => {
|
|
406
|
+
pe || (h.value = !0);
|
|
407
|
+
}, al = (l) => {
|
|
408
|
+
var n;
|
|
409
|
+
t.disabled || (n = l.target) != null && n.closest("button") || (h.value = !0);
|
|
410
|
+
}, nl = () => {
|
|
411
|
+
t.disabled || (_.value = !0, h.value = !0);
|
|
412
|
+
}, ol = (l) => {
|
|
413
|
+
var n;
|
|
414
|
+
if (!h.value) return;
|
|
415
|
+
const v = $e(), $ = ve();
|
|
416
|
+
if (Me() === $)
|
|
417
|
+
switch (l.key) {
|
|
418
|
+
case "ArrowDown":
|
|
419
|
+
v.length > 0 && (l.preventDefault(), (n = v[0]) == null || n.focus());
|
|
420
|
+
break;
|
|
421
|
+
case "Tab":
|
|
422
|
+
U();
|
|
423
|
+
break;
|
|
424
|
+
case "Escape":
|
|
425
|
+
l.preventDefault(), U();
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
}, sl = (l) => {
|
|
429
|
+
var n, v, $;
|
|
430
|
+
const B = $e(), b = Me(), A = B.indexOf(b), Y = ve();
|
|
431
|
+
switch (l.key) {
|
|
432
|
+
case "ArrowDown":
|
|
433
|
+
A < B.length - 1 && (l.preventDefault(), (n = B[A + 1]) == null || n.focus());
|
|
434
|
+
break;
|
|
435
|
+
case "ArrowUp":
|
|
436
|
+
l.preventDefault(), A <= 0 ? Y == null || Y.focus() : (v = B[A - 1]) == null || v.focus();
|
|
437
|
+
break;
|
|
438
|
+
case "Tab":
|
|
439
|
+
if (l.preventDefault(), l.shiftKey && A > 0) {
|
|
440
|
+
($ = B[A - 1]) == null || $.focus();
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
U(), he();
|
|
444
|
+
break;
|
|
445
|
+
case "Escape":
|
|
446
|
+
l.preventDefault(), U(), he();
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
}, { floatingStyles: il } = Ll(D, q, {
|
|
450
|
+
whileElementsMounted: El,
|
|
451
|
+
// Matches `bottom` while the dropdown is as wide as the input, and keeps a wider
|
|
452
|
+
// `dropdownWidth` dropdown aligned to the input's left edge.
|
|
453
|
+
placement: "bottom-start",
|
|
454
|
+
middleware: [
|
|
455
|
+
$l(4),
|
|
456
|
+
Ml({
|
|
457
|
+
mainAxis: !0
|
|
458
|
+
}),
|
|
459
|
+
Al({ padding: 8 }),
|
|
460
|
+
Rl({
|
|
461
|
+
padding: 8,
|
|
462
|
+
apply({ availableHeight: l, elements: n }) {
|
|
463
|
+
Object.assign(n.floating.style, {
|
|
464
|
+
maxHeight: `${l}px`
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
})
|
|
468
|
+
]
|
|
469
|
+
}), { width: rl } = kl(D), Ae = (l) => {
|
|
470
|
+
var n;
|
|
471
|
+
return t.disabled || !t.disabled && t.addOnly && !!((n = y.value) != null && n.includes(l));
|
|
472
|
+
}, Z = f(() => {
|
|
473
|
+
const l = t.options.map((v) => ({
|
|
474
|
+
...v,
|
|
475
|
+
checked: M.value.includes(v.value),
|
|
476
|
+
disabled: v.disabled ?? Ae(v.value)
|
|
477
|
+
})), n = [
|
|
478
|
+
...l,
|
|
479
|
+
...S.value.length === 0 && ne.value ? ne.value.filter(
|
|
480
|
+
(v) => !l.some(($) => $.value === v.value)
|
|
481
|
+
) : []
|
|
482
|
+
];
|
|
483
|
+
return t.optionsOrderProperties && !Se(t.optionsOrderProperties) ? Gl(n, t.optionsOrderProperties, t.optionsOrder) : n;
|
|
484
|
+
}), Re = (l) => Z.value.filter((n) => l.some((v) => n.value === v)), j = f(() => Re(M.value)), E = f(() => j.value[0]), xe = f(() => {
|
|
485
|
+
var l;
|
|
486
|
+
if (!(h.value || !t.showSuffixInClosedInput) && !(a.value && j.value.length !== 1))
|
|
487
|
+
return (l = E.value) == null ? void 0 : l.labelSuffixComponent;
|
|
488
|
+
}), X = f(() => {
|
|
489
|
+
var l;
|
|
490
|
+
if (!t.showSelectionInClosedInput || h.value || !a.value)
|
|
491
|
+
return;
|
|
492
|
+
const n = (l = E.value) == null ? void 0 : l.labelPrefixComponent;
|
|
493
|
+
if (n)
|
|
494
|
+
return { component: n, extraCount: j.value.length - 1 };
|
|
495
|
+
}), ul = f(() => t.size === "xs" ? "px-1" : t.size === "sm" ? "px-2" : "px-4"), ne = G([]);
|
|
496
|
+
ge(
|
|
497
|
+
() => {
|
|
498
|
+
if (a.value) return null;
|
|
499
|
+
const l = O.value ?? "";
|
|
500
|
+
return {
|
|
501
|
+
selectedValue: l,
|
|
502
|
+
label: be(t.options.find((n) => n.value === l))
|
|
503
|
+
};
|
|
504
|
+
},
|
|
505
|
+
(l) => {
|
|
506
|
+
if (l) {
|
|
507
|
+
if (!l.selectedValue) {
|
|
508
|
+
N.value = "", h.value || (S.value = "");
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
l.label && (N.value = l.label, h.value || (S.value = l.label));
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{ immediate: !0 }
|
|
515
|
+
);
|
|
516
|
+
const Te = ({
|
|
517
|
+
value: l,
|
|
518
|
+
checked: n
|
|
519
|
+
}) => {
|
|
520
|
+
let v;
|
|
521
|
+
a.value ? v = n ? [...M.value, l] : M.value.filter(($) => $ !== l) : (v = [l], N.value = be(
|
|
522
|
+
Z.value.find(($) => $.value === l)
|
|
523
|
+
), S.value = N.value, _.value = !1, h.value = !1, he()), ne.value = Re(v), M.value = v, g("change");
|
|
524
|
+
}, Oe = f(
|
|
525
|
+
() => M.value.length > 0 && !t.disabled && !(M.value.length === 1 && M.value[0] === "")
|
|
526
|
+
), oe = () => {
|
|
527
|
+
M.value = [], C.value = [], a.value || (N.value = "", S.value = "", _.value = !1);
|
|
528
|
+
}, dl = () => {
|
|
529
|
+
if (!a.value && N.value && S.value === N.value) {
|
|
530
|
+
oe();
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
S.value = "";
|
|
534
|
+
}, cl = f(() => {
|
|
535
|
+
if (!c || !a.value && !_.value)
|
|
536
|
+
return Z.value;
|
|
537
|
+
const l = S.value.toLowerCase();
|
|
538
|
+
return Z.value.filter((n) => n.searchValues ? n.searchValues.some(
|
|
539
|
+
(v) => v.toLowerCase().includes(l)
|
|
540
|
+
) : (n.label ?? "").toLowerCase().includes(l));
|
|
541
|
+
}), U = () => {
|
|
542
|
+
a.value ? (m.value = C.value, S.value = "") : S.value === "" && t.hasReset ? oe() : (S.value = N.value, _.value = !1), h.value = !1;
|
|
543
|
+
};
|
|
544
|
+
ge(C, () => {
|
|
545
|
+
!h.value && !xl(m.value, C.value) && a.value && (m.value = C.value);
|
|
546
|
+
}), wl("mousedown", (l) => {
|
|
547
|
+
const n = l.composedPath();
|
|
548
|
+
q.value && n.includes(q.value) || D.value && n.includes(D.value) || h.value && U();
|
|
549
|
+
});
|
|
550
|
+
const fl = f(() => {
|
|
551
|
+
var l, n, v, $, B, b;
|
|
552
|
+
return a.value && h.value ? ((l = t.i18n) == null ? void 0 : l.placeholderSearch) ?? "Search" : X.value ? "" : a.value && j.value.length === 1 ? (n = E.value) == null ? void 0 : n.label : a.value && j.value.length >= 2 ? `${(v = E.value) == null ? void 0 : v.label} +${j.value.length - 1}` : !O.value && !E.value ? h.value ? (($ = t.i18n) == null ? void 0 : $.placeholderSearch) ?? "Search" : ((B = t.i18n) == null ? void 0 : B.placeholderDefault) ?? "Select an option" : h.value ? ((b = t.i18n) == null ? void 0 : b.placeholderSearch) ?? "Search" : !t.singleModelValue && !E.value ? "" : be(
|
|
553
|
+
Z.value.find((A) => {
|
|
554
|
+
var Y;
|
|
555
|
+
return A.value === ((Y = fe.value) == null ? void 0 : Y.value);
|
|
556
|
+
})
|
|
557
|
+
);
|
|
558
|
+
}), ml = f(() => {
|
|
559
|
+
const l = !h.value && (!a.value && !!O.value || a.value && !Se(t.multiModelValue));
|
|
560
|
+
return Dl(t.inputClass, {
|
|
561
|
+
"text-ellipsis placeholder:text-default": l
|
|
562
|
+
});
|
|
563
|
+
}), Be = f(() => S.value === ""), vl = f(() => !(Be.value || !a.value && N.value !== "" && S.value === N.value && !t.hasReset)), pl = f(
|
|
564
|
+
() => Oe.value && !!t.hasReset && Be.value && (a.value || !h.value)
|
|
565
|
+
), hl = !!(u != null && u.onAddOption), bl = () => {
|
|
566
|
+
g("add-option"), U();
|
|
567
|
+
}, ye = f(
|
|
568
|
+
() => {
|
|
569
|
+
var l;
|
|
570
|
+
return !h.value && !a.value && ((l = E.value) == null ? void 0 : l.labelPrefixComponent);
|
|
571
|
+
}
|
|
572
|
+
), Ve = `search-select-options-${Math.random().toString(36).substring(2, 9)}`;
|
|
573
|
+
return i({
|
|
574
|
+
flushMemoryCachedSelectedOptions: () => ne.value = [],
|
|
575
|
+
close: U
|
|
576
|
+
}), (l, n) => {
|
|
577
|
+
var v, $, B;
|
|
578
|
+
return s(), I(ee, null, [
|
|
579
|
+
k("div", dt, [
|
|
580
|
+
k("div", {
|
|
581
|
+
ref_key: "wrapperRef",
|
|
582
|
+
ref: D,
|
|
583
|
+
class: P(["relative flex items-end", {
|
|
584
|
+
[`${e.rootClass}`]: e.rootClass,
|
|
585
|
+
"z-30": h.value
|
|
586
|
+
}]),
|
|
587
|
+
role: "combobox",
|
|
588
|
+
"aria-expanded": h.value,
|
|
589
|
+
"aria-haspopup": !0,
|
|
590
|
+
"aria-controls": Ve,
|
|
591
|
+
onKeydown: ol
|
|
592
|
+
}, [
|
|
593
|
+
F(w(We), {
|
|
594
|
+
ref_key: "inputRef",
|
|
595
|
+
ref: ll,
|
|
596
|
+
modelValue: S.value,
|
|
597
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => S.value = b),
|
|
598
|
+
required: e.required,
|
|
599
|
+
label: e.label,
|
|
600
|
+
name: e.name,
|
|
601
|
+
form: e.form,
|
|
602
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
603
|
+
placeholder: fl.value,
|
|
604
|
+
class: "grow",
|
|
605
|
+
"wrapper-class": [
|
|
606
|
+
{
|
|
607
|
+
"border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none": h.value
|
|
608
|
+
},
|
|
609
|
+
e.wrapperClass
|
|
610
|
+
],
|
|
611
|
+
"input-class": ml.value,
|
|
612
|
+
"suffix-class": "border-l-0",
|
|
613
|
+
disabled: e.disabled,
|
|
614
|
+
size: e.size,
|
|
615
|
+
error: e.error,
|
|
616
|
+
invalid: e.invalid,
|
|
617
|
+
"prefix-has-border": de.value,
|
|
618
|
+
"aria-autocomplete": "list",
|
|
619
|
+
onFocus: tl,
|
|
620
|
+
onClick: al,
|
|
621
|
+
onInput: nl,
|
|
622
|
+
onBlur: n[2] || (n[2] = (b) => l.$emit("blur"))
|
|
623
|
+
}, Ee({
|
|
624
|
+
suffix: L(() => {
|
|
625
|
+
var b, A;
|
|
626
|
+
return [
|
|
627
|
+
k("div", vt, [
|
|
628
|
+
!h.value && !a.value && ((b = E.value) != null && b.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (s(), x(R(E.value.labelInlineComponent.component), T(V({ key: 0 }, E.value.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
629
|
+
!h.value && !a.value && ((A = E.value) != null && A.labelBeforeSuffixComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (s(), x(R(E.value.labelBeforeSuffixComponent.component), T(V({ key: 1 }, E.value.labelBeforeSuffixComponent.props)), null, 16)) : p("", !0),
|
|
630
|
+
xe.value ? (s(), x(R(xe.value.component), T(V({ key: 2 }, xe.value.props)), null, 16)) : p("", !0),
|
|
631
|
+
k("div", pt, [
|
|
632
|
+
pl.value ? (s(), x(ze, {
|
|
633
|
+
key: 0,
|
|
634
|
+
icon: "close",
|
|
635
|
+
size: "sm",
|
|
636
|
+
intent: "subtle",
|
|
637
|
+
type: "button",
|
|
638
|
+
onMousedown: n[0] || (n[0] = qe(() => {
|
|
639
|
+
}, ["prevent"])),
|
|
640
|
+
onClick: oe
|
|
641
|
+
})) : p("", !0),
|
|
642
|
+
vl.value ? (s(), x(ze, {
|
|
643
|
+
key: 1,
|
|
644
|
+
icon: "close",
|
|
645
|
+
size: "sm",
|
|
646
|
+
intent: "subtle",
|
|
647
|
+
type: "button",
|
|
648
|
+
onClick: dl
|
|
649
|
+
})) : p("", !0),
|
|
650
|
+
F(Fe, {
|
|
651
|
+
icon: h.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
652
|
+
size: e.size === "xs" || e.size === "sm" ? "xs" : "sm",
|
|
653
|
+
class: P(e.disabled ? "text-disabled" : "text-secondary"),
|
|
654
|
+
"aria-hidden": "true",
|
|
655
|
+
"data-testid": "search-select-chevron"
|
|
656
|
+
}, null, 8, ["icon", "size", "class"])
|
|
657
|
+
])
|
|
658
|
+
])
|
|
659
|
+
];
|
|
660
|
+
}),
|
|
661
|
+
_: 2
|
|
662
|
+
}, [
|
|
663
|
+
l.$slots["label-suffix"] ? {
|
|
664
|
+
name: "label-suffix",
|
|
665
|
+
fn: L(() => [
|
|
666
|
+
H(l.$slots, "label-suffix")
|
|
667
|
+
]),
|
|
668
|
+
key: "0"
|
|
669
|
+
} : void 0,
|
|
670
|
+
l.$slots.tooltip ? {
|
|
671
|
+
name: "tooltip",
|
|
672
|
+
fn: L(() => [
|
|
673
|
+
H(l.$slots, "tooltip")
|
|
674
|
+
]),
|
|
675
|
+
key: "1"
|
|
676
|
+
} : void 0,
|
|
677
|
+
X.value ? {
|
|
678
|
+
name: "input",
|
|
679
|
+
fn: L(() => [
|
|
680
|
+
k("div", {
|
|
681
|
+
class: P(["pointer-events-none absolute inset-0 flex items-center gap-1", ul.value])
|
|
682
|
+
}, [
|
|
683
|
+
(s(), x(R(X.value.component.component), T(Pe(X.value.component.props)), null, 16)),
|
|
684
|
+
X.value.extraCount > 0 ? (s(), x(w(ke), {
|
|
685
|
+
key: 0,
|
|
686
|
+
variant: e.size === "xs" || e.size === "sm" ? "body-xs" : "body-sm",
|
|
687
|
+
tag: "span",
|
|
688
|
+
weight: "semibold",
|
|
689
|
+
"no-spacing": ""
|
|
690
|
+
}, {
|
|
691
|
+
default: L(() => [
|
|
692
|
+
Q(" +" + z(X.value.extraCount), 1)
|
|
693
|
+
]),
|
|
694
|
+
_: 1
|
|
695
|
+
}, 8, ["variant"])) : p("", !0)
|
|
696
|
+
], 2)
|
|
697
|
+
]),
|
|
698
|
+
key: "2"
|
|
699
|
+
} : void 0,
|
|
700
|
+
K.value || ye.value || !c ? {
|
|
701
|
+
name: "prefix",
|
|
702
|
+
fn: L(() => {
|
|
703
|
+
var b;
|
|
704
|
+
return [
|
|
705
|
+
k("div", ft, [
|
|
706
|
+
te.value ? H(l.$slots, "prefix", {}, void 0, void 0, 0) : ae.value ? (s(), x(w(ke), {
|
|
707
|
+
key: 1,
|
|
708
|
+
variant: e.size === "xs" ? "body-xs" : "body-sm",
|
|
709
|
+
tag: "span",
|
|
710
|
+
weight: "semibold"
|
|
711
|
+
}, {
|
|
712
|
+
default: L(() => [
|
|
713
|
+
Q(z(e.prefix), 1)
|
|
714
|
+
]),
|
|
715
|
+
_: 1
|
|
716
|
+
}, 8, ["variant"])) : ye.value && ((b = E.value) != null && b.labelPrefixComponent) ? (s(), I("div", mt, [
|
|
717
|
+
(s(), x(R(E.value.labelPrefixComponent.component), T(Pe(E.value.labelPrefixComponent.props)), null, 16))
|
|
718
|
+
])) : c ? p("", !0) : (s(), x(Fe, {
|
|
719
|
+
key: 3,
|
|
720
|
+
icon: "search",
|
|
721
|
+
size: "sm"
|
|
722
|
+
}))
|
|
723
|
+
])
|
|
724
|
+
];
|
|
725
|
+
}),
|
|
726
|
+
key: "3"
|
|
727
|
+
} : void 0,
|
|
728
|
+
l.$slots.helper ? {
|
|
729
|
+
name: "helper",
|
|
730
|
+
fn: L(() => [
|
|
731
|
+
H(l.$slots, "helper")
|
|
732
|
+
]),
|
|
733
|
+
key: "4"
|
|
734
|
+
} : void 0
|
|
735
|
+
]), 1032, ["modelValue", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "disabled", "size", "error", "invalid", "prefix-has-border"])
|
|
736
|
+
], 42, ct),
|
|
737
|
+
e.withChips ? (s(), I("div", ht, [
|
|
738
|
+
(s(!0), I(ee, null, Ze(j.value, ({ value: b, label: A }) => (s(), x(Pl, {
|
|
739
|
+
key: b,
|
|
740
|
+
removable: !Ae(b),
|
|
741
|
+
onRemoved: (Y) => Te({ value: b, checked: !1 })
|
|
742
|
+
}, {
|
|
743
|
+
default: L(() => [
|
|
744
|
+
k("span", { innerHTML: A }, null, 8, bt)
|
|
745
|
+
]),
|
|
746
|
+
_: 2
|
|
747
|
+
}, 1032, ["removable", "onRemoved"]))), 128))
|
|
748
|
+
])) : p("", !0)
|
|
749
|
+
]),
|
|
750
|
+
w(me) && w(d) ? (s(), x(Sl, {
|
|
751
|
+
key: 0,
|
|
752
|
+
to: w(d)
|
|
753
|
+
}, [
|
|
754
|
+
h.value && !e.disabled ? (s(), I("div", {
|
|
755
|
+
key: 0,
|
|
756
|
+
id: Ve,
|
|
757
|
+
ref_key: "optionsRef",
|
|
758
|
+
ref: q,
|
|
759
|
+
role: "listbox",
|
|
760
|
+
style: De(w(il)),
|
|
761
|
+
class: "z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",
|
|
762
|
+
onMouseenter: n[3] || (n[3] = (b) => h.value = !0),
|
|
763
|
+
onKeydown: sl
|
|
764
|
+
}, [
|
|
765
|
+
k("div", {
|
|
766
|
+
class: "rounded pt-0",
|
|
767
|
+
style: De({ width: `${e.dropdownWidth ?? w(rl)}px` })
|
|
768
|
+
}, [
|
|
769
|
+
F(ut, {
|
|
770
|
+
i18n: {
|
|
771
|
+
addOnly: (v = e.i18n) == null ? void 0 : v.addOnly,
|
|
772
|
+
noResults: ($ = e.i18n) == null ? void 0 : $.noResults,
|
|
773
|
+
noOptionsAvailable: (B = e.i18n) == null ? void 0 : B.noOptionsAvailable
|
|
774
|
+
},
|
|
775
|
+
options: cl.value,
|
|
776
|
+
multiple: a.value,
|
|
777
|
+
search: S.value,
|
|
778
|
+
model: M.value,
|
|
779
|
+
"add-only": e.addOnly,
|
|
780
|
+
"allows-multiple-values": !!a.value,
|
|
781
|
+
condensed: e.condensed,
|
|
782
|
+
"has-large-dropdown": e.hasLargeDropdown,
|
|
783
|
+
onValueChanged: Te
|
|
784
|
+
}, {
|
|
785
|
+
"list-footer-content": L(() => [
|
|
786
|
+
hl ? (s(), x(Ce, {
|
|
787
|
+
key: 0,
|
|
788
|
+
intent: "subtle",
|
|
789
|
+
class: "w-full rounded-t-none",
|
|
790
|
+
type: "button",
|
|
791
|
+
"icon-prefix": "add",
|
|
792
|
+
onClick: bl
|
|
793
|
+
}, {
|
|
794
|
+
default: L(() => {
|
|
795
|
+
var b;
|
|
796
|
+
return [
|
|
797
|
+
Q(z((b = e.i18n) == null ? void 0 : b.addOption), 1)
|
|
798
|
+
];
|
|
799
|
+
}),
|
|
800
|
+
_: 1
|
|
801
|
+
})) : p("", !0),
|
|
802
|
+
a.value ? (s(), I("div", {
|
|
803
|
+
key: 1,
|
|
804
|
+
class: P(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
|
|
805
|
+
}, [
|
|
806
|
+
Oe.value ? (s(), x(Ce, {
|
|
807
|
+
key: 0,
|
|
808
|
+
type: "button",
|
|
809
|
+
intent: "subtle",
|
|
810
|
+
size: "xs",
|
|
811
|
+
class: "ml-2",
|
|
812
|
+
onClick: oe
|
|
813
|
+
}, {
|
|
814
|
+
default: L(() => {
|
|
815
|
+
var b;
|
|
816
|
+
return [
|
|
817
|
+
Q(z(((b = e.i18n) == null ? void 0 : b.multipleValuesClearButtonText) ?? "Clear"), 1)
|
|
818
|
+
];
|
|
819
|
+
}),
|
|
820
|
+
_: 1
|
|
821
|
+
})) : p("", !0),
|
|
822
|
+
k("div", null, [
|
|
823
|
+
H(l.$slots, "list-footer-content", { close: U })
|
|
824
|
+
]),
|
|
825
|
+
F(Ce, {
|
|
826
|
+
type: "button",
|
|
827
|
+
intent: "secondary",
|
|
828
|
+
size: "xs",
|
|
829
|
+
class: "mr-2",
|
|
830
|
+
"data-testid": w(jl),
|
|
831
|
+
onClick: U
|
|
832
|
+
}, {
|
|
833
|
+
default: L(() => {
|
|
834
|
+
var b;
|
|
835
|
+
return [
|
|
836
|
+
Q(z(((b = e.i18n) == null ? void 0 : b.multipleValuesDoneButtonText) ?? "Done"), 1)
|
|
837
|
+
];
|
|
838
|
+
}),
|
|
839
|
+
_: 1
|
|
840
|
+
}, 8, ["data-testid"])
|
|
841
|
+
], 2)) : H(l.$slots, "list-footer-content", { close: U }, void 0, void 0, 2)
|
|
842
|
+
]),
|
|
843
|
+
_: 3
|
|
844
|
+
}, 8, ["i18n", "options", "multiple", "search", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown"])
|
|
845
|
+
], 4)
|
|
846
|
+
], 36)) : p("", !0)
|
|
847
|
+
], 8, ["to"])) : p("", !0)
|
|
848
|
+
], 64);
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
}), Xt = /* @__PURE__ */ J({
|
|
852
|
+
__name: "CountrySelect",
|
|
853
|
+
props: {
|
|
854
|
+
label: {},
|
|
855
|
+
singleModelValue: {},
|
|
856
|
+
multiModelValue: {},
|
|
857
|
+
error: {},
|
|
858
|
+
required: { type: Boolean, default: !0 },
|
|
859
|
+
hasReset: { type: Boolean },
|
|
860
|
+
disabled: { type: Boolean },
|
|
861
|
+
size: {},
|
|
862
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
863
|
+
i18n: {},
|
|
864
|
+
name: {},
|
|
865
|
+
form: {}
|
|
866
|
+
},
|
|
867
|
+
emits: ["update:modelValue", "update:singleModelValue"],
|
|
868
|
+
setup(e, { emit: i }) {
|
|
869
|
+
const r = e, o = re(r, "singleModelValue"), t = re(r, "multiModelValue"), d = i;
|
|
870
|
+
return (u, c) => (s(), x(xt, {
|
|
871
|
+
"multi-model-value": w(t),
|
|
872
|
+
"onUpdate:multiModelValue": c[0] || (c[0] = (a) => Ne(t) ? t.value = a : null),
|
|
873
|
+
"single-model-value": w(o),
|
|
874
|
+
"onUpdate:singleModelValue": [
|
|
875
|
+
c[1] || (c[1] = (a) => Ne(o) ? o.value = a : null),
|
|
876
|
+
c[2] || (c[2] = (a) => {
|
|
877
|
+
d("update:modelValue", a);
|
|
878
|
+
})
|
|
879
|
+
],
|
|
880
|
+
"root-class": u.$attrs.class,
|
|
881
|
+
label: e.label,
|
|
882
|
+
options: w(Ye).map(({ key: a, value: y }) => ({ label: y, value: a })),
|
|
883
|
+
error: e.error,
|
|
884
|
+
"has-reset": e.hasReset,
|
|
885
|
+
disabled: e.disabled,
|
|
886
|
+
required: e.required,
|
|
887
|
+
"with-chips": !!e.multiModelValue,
|
|
888
|
+
name: e.name,
|
|
889
|
+
form: e.form,
|
|
890
|
+
size: e.size,
|
|
891
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
892
|
+
i18n: e.i18n
|
|
893
|
+
}, Ee({ _: 2 }, [
|
|
894
|
+
u.$slots["label-suffix"] ? {
|
|
895
|
+
name: "label-suffix",
|
|
896
|
+
fn: L(() => [
|
|
897
|
+
H(u.$slots, "label-suffix")
|
|
898
|
+
]),
|
|
899
|
+
key: "0"
|
|
900
|
+
} : void 0
|
|
901
|
+
]), 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"]));
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
function Yt(e) {
|
|
905
|
+
return !!Ye.find((i) => i.key === e);
|
|
906
|
+
}
|
|
907
|
+
const Qe = {
|
|
908
|
+
AT: {
|
|
909
|
+
regex: /^ATU\d{8}$/,
|
|
910
|
+
prefix: "AT",
|
|
911
|
+
example: "ATU12345678"
|
|
912
|
+
},
|
|
913
|
+
BE: {
|
|
914
|
+
regex: /^BE0?\d{9}$/,
|
|
915
|
+
prefix: "BE",
|
|
916
|
+
example: "BE0123456789"
|
|
917
|
+
},
|
|
918
|
+
BG: {
|
|
919
|
+
regex: /^BG\d{9,10}$/,
|
|
920
|
+
prefix: "BG",
|
|
921
|
+
example: "BG123456789"
|
|
922
|
+
},
|
|
923
|
+
HR: {
|
|
924
|
+
regex: /^HR\d{11}$/,
|
|
925
|
+
prefix: "HR",
|
|
926
|
+
example: "HR12345678901"
|
|
927
|
+
},
|
|
928
|
+
CY: {
|
|
929
|
+
regex: /^CY\d{8}[A-Z]$/,
|
|
930
|
+
prefix: "CY",
|
|
931
|
+
example: "CY12345678X"
|
|
932
|
+
},
|
|
933
|
+
CZ: {
|
|
934
|
+
regex: /^CZ\d{8,10}$/,
|
|
935
|
+
prefix: "CZ",
|
|
936
|
+
example: "CZ12345678"
|
|
937
|
+
},
|
|
938
|
+
DE: {
|
|
939
|
+
regex: /^DE\d{9}$/,
|
|
940
|
+
prefix: "DE",
|
|
941
|
+
example: "DE123456789"
|
|
942
|
+
},
|
|
943
|
+
DK: {
|
|
944
|
+
regex: /^DK\d{8}$/,
|
|
945
|
+
prefix: "DK",
|
|
946
|
+
example: "DK12345678"
|
|
947
|
+
},
|
|
948
|
+
EE: {
|
|
949
|
+
regex: /^EE\d{9}$/,
|
|
950
|
+
prefix: "EE",
|
|
951
|
+
example: "EE123456789"
|
|
952
|
+
},
|
|
953
|
+
GR: {
|
|
954
|
+
regex: /^(EL|GR)\d{9}$/,
|
|
955
|
+
prefix: "GR",
|
|
956
|
+
example: "GR123456789"
|
|
957
|
+
},
|
|
958
|
+
ES: {
|
|
959
|
+
regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
|
|
960
|
+
prefix: "ES",
|
|
961
|
+
example: "ESX1234567X"
|
|
962
|
+
},
|
|
963
|
+
FI: {
|
|
964
|
+
regex: /^FI\d{8}$/,
|
|
965
|
+
prefix: "FI",
|
|
966
|
+
example: "FI12345678"
|
|
967
|
+
},
|
|
968
|
+
FR: {
|
|
969
|
+
regex: /^FR[0-9A-Z]{2}\d{9}$/,
|
|
970
|
+
prefix: "FR",
|
|
971
|
+
example: "FRXX123456789"
|
|
972
|
+
},
|
|
973
|
+
HU: {
|
|
974
|
+
regex: /^HU\d{8}$/,
|
|
975
|
+
prefix: "HU",
|
|
976
|
+
example: "HU12345678"
|
|
977
|
+
},
|
|
978
|
+
IE: {
|
|
979
|
+
regex: /^IE[0-9A-Z]{8,9}$/,
|
|
980
|
+
prefix: "IE",
|
|
981
|
+
example: "IE1234567A"
|
|
982
|
+
},
|
|
983
|
+
IS: {
|
|
984
|
+
regex: /^IS\d{5}$/,
|
|
985
|
+
prefix: "IS",
|
|
986
|
+
example: "IS12345"
|
|
987
|
+
},
|
|
988
|
+
IT: {
|
|
989
|
+
regex: /^IT\d{11}$/,
|
|
990
|
+
prefix: "IT",
|
|
991
|
+
example: "IT12345678901"
|
|
992
|
+
},
|
|
993
|
+
LT: {
|
|
994
|
+
regex: /^LT(\d{9}|\d{12})$/,
|
|
995
|
+
prefix: "LT",
|
|
996
|
+
example: "LT123456789 or LT123456789012"
|
|
997
|
+
},
|
|
998
|
+
LU: {
|
|
999
|
+
regex: /^LU\d{8}$/,
|
|
1000
|
+
prefix: "LU",
|
|
1001
|
+
example: "LU12345678"
|
|
1002
|
+
},
|
|
1003
|
+
LV: {
|
|
1004
|
+
regex: /^LV\d{11}$/,
|
|
1005
|
+
prefix: "LV",
|
|
1006
|
+
example: "LV12345678901"
|
|
1007
|
+
},
|
|
1008
|
+
ME: {
|
|
1009
|
+
regex: /^ME\d{9}$/,
|
|
1010
|
+
prefix: "ME",
|
|
1011
|
+
example: "ME123456789"
|
|
1012
|
+
},
|
|
1013
|
+
MT: {
|
|
1014
|
+
regex: /^MT\d{8}$/,
|
|
1015
|
+
prefix: "MT",
|
|
1016
|
+
example: "MT12345678"
|
|
1017
|
+
},
|
|
1018
|
+
NL: {
|
|
1019
|
+
regex: /^NL\d{9}B\d{2}$/,
|
|
1020
|
+
prefix: "NL",
|
|
1021
|
+
example: "NL123456789B01"
|
|
1022
|
+
},
|
|
1023
|
+
PL: {
|
|
1024
|
+
regex: /^PL\d{10}$/,
|
|
1025
|
+
prefix: "PL",
|
|
1026
|
+
example: "PL1234567890"
|
|
1027
|
+
},
|
|
1028
|
+
PT: {
|
|
1029
|
+
regex: /^PT\d{9}$/,
|
|
1030
|
+
prefix: "PT",
|
|
1031
|
+
example: "PT123456789"
|
|
1032
|
+
},
|
|
1033
|
+
RO: {
|
|
1034
|
+
regex: /^RO\d{2,10}$/,
|
|
1035
|
+
prefix: "RO",
|
|
1036
|
+
example: "RO1234567890"
|
|
1037
|
+
},
|
|
1038
|
+
RU: {
|
|
1039
|
+
regex: /^RU(\d{9}|\d{10}|\d{12})$/,
|
|
1040
|
+
prefix: "RU",
|
|
1041
|
+
example: "RU123456789 or RU1234567890 or RU123456789012"
|
|
1042
|
+
},
|
|
1043
|
+
SE: {
|
|
1044
|
+
regex: /^SE\d{10}01$/,
|
|
1045
|
+
prefix: "SE",
|
|
1046
|
+
example: "SE123456789001"
|
|
1047
|
+
},
|
|
1048
|
+
SI: {
|
|
1049
|
+
regex: /^SI\d{8}$/,
|
|
1050
|
+
prefix: "SI",
|
|
1051
|
+
example: "SI12345678"
|
|
1052
|
+
},
|
|
1053
|
+
SK: {
|
|
1054
|
+
regex: /^SK\d{10}$/,
|
|
1055
|
+
prefix: "SK",
|
|
1056
|
+
example: "SK1234567890"
|
|
1057
|
+
},
|
|
1058
|
+
CH: {
|
|
1059
|
+
regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
|
|
1060
|
+
prefix: "CHE",
|
|
1061
|
+
example: "CHE123456789MWST"
|
|
1062
|
+
},
|
|
1063
|
+
NO: {
|
|
1064
|
+
regex: /^NO\d{9}MVA$/,
|
|
1065
|
+
prefix: "NO",
|
|
1066
|
+
example: "NO123456789MVA"
|
|
1067
|
+
},
|
|
1068
|
+
GB: {
|
|
1069
|
+
regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
|
|
1070
|
+
prefix: "GB",
|
|
1071
|
+
example: "GB123456789"
|
|
1072
|
+
},
|
|
1073
|
+
XI: {
|
|
1074
|
+
regex: /^XI(\d{9}|\d{12})$/,
|
|
1075
|
+
prefix: "XI",
|
|
1076
|
+
example: "XI123456789"
|
|
1077
|
+
}
|
|
1078
|
+
}, yt = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Qe).some((i) => i.regex.test(e)), gt = ({ $model: e }) => {
|
|
1079
|
+
if (!e || typeof e != "string" || e.trim() === "")
|
|
1080
|
+
return "";
|
|
1081
|
+
const i = je(Ol, null);
|
|
1082
|
+
if (!i)
|
|
1083
|
+
return "Invalid tax ID";
|
|
1084
|
+
const { formatMessage: r } = i, o = Object.values(Qe).find(
|
|
1085
|
+
(t) => e.toUpperCase().startsWith(t.prefix.toUpperCase())
|
|
1086
|
+
);
|
|
1087
|
+
return o ? r(
|
|
1088
|
+
{
|
|
1089
|
+
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
1090
|
+
id: "form_validation.tax_id.invalid_format",
|
|
1091
|
+
description: "Error message when tax ID format is invalid but prefix matches"
|
|
1092
|
+
},
|
|
1093
|
+
{ example: o.example }
|
|
1094
|
+
) : r({
|
|
1095
|
+
defaultMessage: "Invalid tax ID",
|
|
1096
|
+
id: "taxId.invalid",
|
|
1097
|
+
description: "Error message when tax ID is invalid"
|
|
1098
|
+
});
|
|
1099
|
+
}, Wt = Nl.withMessage(gt, yt), Ge = ["email", "country"], Ct = "GENERIC_TAX_ID", He = {
|
|
1100
|
+
US: ["addressLine1", "postalCode"],
|
|
1101
|
+
CA: ["state"]
|
|
1102
|
+
}, St = (e) => !e || !He[e] ? Ge : [...He[e], ...Ge], Je = (e) => e.type === "ORGANIZATION" && e.country !== "US", ue = {
|
|
1103
|
+
BILLING: {
|
|
1104
|
+
line1: "addressLine1",
|
|
1105
|
+
line2: "addressLine2",
|
|
1106
|
+
postalCode: "postalCode",
|
|
1107
|
+
city: "city",
|
|
1108
|
+
state: "state",
|
|
1109
|
+
country: "country"
|
|
1110
|
+
},
|
|
1111
|
+
SHIPPING: {
|
|
1112
|
+
line1: "shippingAddressLine1",
|
|
1113
|
+
line2: "shippingAddressLine2",
|
|
1114
|
+
postalCode: "shippingPostalCode",
|
|
1115
|
+
city: "shippingCity",
|
|
1116
|
+
state: "shippingState",
|
|
1117
|
+
country: "shippingCountry"
|
|
1118
|
+
}
|
|
1119
|
+
}, It = ["line1", "line2", "postalCode", "city", "state", "country"], kt = ["A", "C", "S", "Z"], wt = {
|
|
1120
|
+
A: ["line1", "line2"],
|
|
1121
|
+
C: ["city"],
|
|
1122
|
+
S: ["state"],
|
|
1123
|
+
Z: ["postalCode"]
|
|
1124
|
+
}, _e = (e) => kt.filter((i) => e.includes(i)).flatMap(
|
|
1125
|
+
(i) => wt[i]
|
|
1126
|
+
), Lt = (e) => _e((e == null ? void 0 : e.fields) ?? "ACSZ"), Et = (e, i) => {
|
|
1127
|
+
const r = St(i);
|
|
1128
|
+
return It.filter((o) => r.includes(ue.BILLING[o])).map(
|
|
1129
|
+
(o) => ue[e][o]
|
|
1130
|
+
);
|
|
1131
|
+
}, Qt = (e, i, r) => {
|
|
1132
|
+
const o = r ? _e(r.required).filter((t) => t !== "line2") : ["line1", "postalCode", "city"];
|
|
1133
|
+
return [
|
|
1134
|
+
.../* @__PURE__ */ new Set([
|
|
1135
|
+
...o.map((t) => ue[e][t]),
|
|
1136
|
+
...Et(e, i)
|
|
1137
|
+
])
|
|
1138
|
+
];
|
|
1139
|
+
}, ie = (e) => (e == null ? void 0 : e.trim()) || void 0, el = (e, i, r) => {
|
|
1140
|
+
var c;
|
|
1141
|
+
const o = ue[i], t = new Set(Lt(r)), d = (a) => t.has(a) ? ie(e[o[a]]) : void 0, u = (c = d("postalCode")) == null ? void 0 : c.toUpperCase();
|
|
1142
|
+
return {
|
|
1143
|
+
...d("line1") && { line1: d("line1") },
|
|
1144
|
+
...d("line2") && { line2: d("line2") },
|
|
1145
|
+
...d("city") && { city: d("city") },
|
|
1146
|
+
...d("state") && { state: d("state") },
|
|
1147
|
+
...u && { postal_code: u },
|
|
1148
|
+
country: e[o.country] ?? ""
|
|
1149
|
+
};
|
|
1150
|
+
}, $t = (e, i) => {
|
|
1151
|
+
const r = el(e, "SHIPPING", i);
|
|
1152
|
+
return {
|
|
1153
|
+
addressLine1: r.line1,
|
|
1154
|
+
addressLine2: r.line2,
|
|
1155
|
+
postalCode: r.postal_code,
|
|
1156
|
+
city: r.city,
|
|
1157
|
+
state: r.state,
|
|
1158
|
+
country: e.shippingCountry
|
|
1159
|
+
};
|
|
1160
|
+
}, Jt = (e, i, r) => {
|
|
1161
|
+
var u;
|
|
1162
|
+
const o = ie(e.shippingAttentionName), t = ie(e.shippingFirstName), d = ie(e.shippingLastName);
|
|
1163
|
+
return {
|
|
1164
|
+
reference: i,
|
|
1165
|
+
recipient: {
|
|
1166
|
+
type: e.type,
|
|
1167
|
+
...e.type === "ORGANIZATION" ? {
|
|
1168
|
+
organization: {
|
|
1169
|
+
company_name: e.companyLegalName ?? "",
|
|
1170
|
+
...o && { attention_name: o }
|
|
1171
|
+
}
|
|
1172
|
+
} : {
|
|
1173
|
+
individual: {
|
|
1174
|
+
name: {
|
|
1175
|
+
...t && { first_name: t },
|
|
1176
|
+
...d && { last_name: d }
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
phone_number: ((u = e.shippingPhoneNumber) == null ? void 0 : u.trim()) ?? "",
|
|
1181
|
+
email: e.email ?? ""
|
|
1182
|
+
},
|
|
1183
|
+
address: el(e, "SHIPPING", r)
|
|
1184
|
+
};
|
|
1185
|
+
}, _t = (e, { isShipped: i, format: r }) => Mt(i ? { ...e, ...$t(e, r) } : e, {
|
|
1186
|
+
withVatNumber: Je(e)
|
|
1187
|
+
}), Mt = (e, { withVatNumber: i = Je(e) } = {}) => {
|
|
1188
|
+
const r = {
|
|
1189
|
+
...e.addressLine1 && { line1: e.addressLine1 },
|
|
1190
|
+
...e.addressLine2 && { line2: e.addressLine2 },
|
|
1191
|
+
...e.city && { city: e.city },
|
|
1192
|
+
...e.state && { state: e.state },
|
|
1193
|
+
...e.postalCode && { postal_code: e.postalCode },
|
|
1194
|
+
country: e.country ?? ""
|
|
1195
|
+
};
|
|
1196
|
+
return e.type === "ORGANIZATION" ? {
|
|
1197
|
+
type: "ORGANIZATION",
|
|
1198
|
+
organization: {
|
|
1199
|
+
legal_name: e.companyLegalName ?? "",
|
|
1200
|
+
registered_address: r,
|
|
1201
|
+
...e.companyVatNumber && i && {
|
|
1202
|
+
tax_ids: [
|
|
1203
|
+
{ id: e.companyVatNumber, type: Ct }
|
|
1204
|
+
]
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
} : {
|
|
1208
|
+
type: "INDIVIDUAL",
|
|
1209
|
+
individual: {
|
|
1210
|
+
residential_address: r
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
}, At = ["for"], ea = /* @__PURE__ */ J({
|
|
1214
|
+
__name: "HiddenLabelInput",
|
|
1215
|
+
props: /* @__PURE__ */ Ie({
|
|
1216
|
+
label: { type: String },
|
|
1217
|
+
name: { type: String },
|
|
1218
|
+
placeholder: { type: String },
|
|
1219
|
+
error: { type: [String, Array] },
|
|
1220
|
+
autocomplete: { type: String }
|
|
1221
|
+
}, {
|
|
1222
|
+
modelValue: {},
|
|
1223
|
+
modelModifiers: {}
|
|
1224
|
+
}),
|
|
1225
|
+
emits: ["update:modelValue"],
|
|
1226
|
+
setup(e) {
|
|
1227
|
+
const i = e, r = Xe(e, "modelValue"), o = Il(), t = f(
|
|
1228
|
+
() => Array.isArray(i.error) ? !!i.error.length : !!i.error
|
|
1229
|
+
);
|
|
1230
|
+
return (d, u) => (s(), I("div", null, [
|
|
1231
|
+
k("label", {
|
|
1232
|
+
for: w(o),
|
|
1233
|
+
class: "sr-only"
|
|
1234
|
+
}, z(e.label), 9, At),
|
|
1235
|
+
F(w(We), {
|
|
1236
|
+
id: w(o),
|
|
1237
|
+
modelValue: r.value,
|
|
1238
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
|
|
1239
|
+
name: e.name,
|
|
1240
|
+
placeholder: e.placeholder,
|
|
1241
|
+
error: e.error,
|
|
1242
|
+
autocomplete: e.autocomplete
|
|
1243
|
+
}, Ee({ _: 2 }, [
|
|
1244
|
+
t.value ? {
|
|
1245
|
+
name: "helper",
|
|
1246
|
+
fn: L(() => [
|
|
1247
|
+
F(w(Ul), { message: e.error }, null, 8, ["message"])
|
|
1248
|
+
]),
|
|
1249
|
+
key: "0"
|
|
1250
|
+
} : void 0
|
|
1251
|
+
]), 1032, ["id", "modelValue", "name", "placeholder", "error", "autocomplete"])
|
|
1252
|
+
]));
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
function la() {
|
|
1256
|
+
const { $t: e } = Bl();
|
|
1257
|
+
return {
|
|
1258
|
+
contactInformationTitle: e({
|
|
1259
|
+
defaultMessage: "Customer information",
|
|
1260
|
+
id: "checkout.contact_information_block.title",
|
|
1261
|
+
description: "The title of the contact information block in the checkout form"
|
|
1262
|
+
}),
|
|
1263
|
+
emailLabel: e({
|
|
1264
|
+
defaultMessage: "Email address",
|
|
1265
|
+
id: "checkout.email_address.label",
|
|
1266
|
+
description: "The email address of the customer in the checkout form"
|
|
1267
|
+
}),
|
|
1268
|
+
emailPlaceholder: e({
|
|
1269
|
+
defaultMessage: "Email address",
|
|
1270
|
+
id: "checkout.email_address.placeholder",
|
|
1271
|
+
description: "The email address of the customer in the checkout form"
|
|
1272
|
+
}),
|
|
1273
|
+
countryLabel: e({
|
|
1274
|
+
defaultMessage: "Billing country",
|
|
1275
|
+
id: "checkout.country.label",
|
|
1276
|
+
description: "The country of the customer in the checkout form"
|
|
1277
|
+
}),
|
|
1278
|
+
countryPlaceholder: e({
|
|
1279
|
+
defaultMessage: "Billing country",
|
|
1280
|
+
id: "checkout.country.placeholder",
|
|
1281
|
+
description: "Placeholder of the billing country select while no country is chosen"
|
|
1282
|
+
}),
|
|
1283
|
+
vatNumberLabel: e({
|
|
1284
|
+
defaultMessage: "VAT number",
|
|
1285
|
+
id: "checkout.vat_number.label",
|
|
1286
|
+
description: "The label for the vat number in the checkout form"
|
|
1287
|
+
}),
|
|
1288
|
+
vatNumberPlaceholder: e({
|
|
1289
|
+
defaultMessage: "VAT number",
|
|
1290
|
+
id: "checkout.vat_number.placeholder",
|
|
1291
|
+
description: "The label for the vat number in the checkout form"
|
|
1292
|
+
}),
|
|
1293
|
+
legalNameLabel: e({
|
|
1294
|
+
defaultMessage: "Legal entity name",
|
|
1295
|
+
id: "checkout.legal_name.label",
|
|
1296
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1297
|
+
}),
|
|
1298
|
+
legalNamePlaceholder: e({
|
|
1299
|
+
defaultMessage: "Legal entity name",
|
|
1300
|
+
id: "checkout.legal_name.placeholder",
|
|
1301
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1302
|
+
}),
|
|
1303
|
+
addressTitle: e({
|
|
1304
|
+
defaultMessage: "Billing address",
|
|
1305
|
+
id: "checkout.address.title",
|
|
1306
|
+
description: "Label of the billing address, above its first line, in the checkout and billing information forms"
|
|
1307
|
+
}),
|
|
1308
|
+
addressLine1Label: e({
|
|
1309
|
+
defaultMessage: "Address line 1",
|
|
1310
|
+
id: "checkout.address.line1.label",
|
|
1311
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1312
|
+
}),
|
|
1313
|
+
addressLine2Label: e({
|
|
1314
|
+
defaultMessage: "Address line 2",
|
|
1315
|
+
id: "checkout.address.line2.label",
|
|
1316
|
+
description: "Address line 2 of the customer address in the checkout form"
|
|
1317
|
+
}),
|
|
1318
|
+
postalCodeLabel: e({
|
|
1319
|
+
defaultMessage: "Postal code",
|
|
1320
|
+
id: "checkout.address.postal_code.label",
|
|
1321
|
+
description: "Postal code of the customer address in the checkout form"
|
|
1322
|
+
}),
|
|
1323
|
+
cityLabel: e({
|
|
1324
|
+
defaultMessage: "City",
|
|
1325
|
+
id: "checkout.address.city.label",
|
|
1326
|
+
description: "City of the customer address in the checkout form"
|
|
1327
|
+
}),
|
|
1328
|
+
stateLabel: e({
|
|
1329
|
+
defaultMessage: "State",
|
|
1330
|
+
id: "checkout.address.state.label",
|
|
1331
|
+
description: "State of the customer address in the checkout form"
|
|
1332
|
+
}),
|
|
1333
|
+
postalCodePlaceholder: e({
|
|
1334
|
+
defaultMessage: "Postal code",
|
|
1335
|
+
id: "checkout.address.portal_code.placeholder",
|
|
1336
|
+
description: "Postal code of the customer address in the checkout form"
|
|
1337
|
+
}),
|
|
1338
|
+
cityPlaceholder: e({
|
|
1339
|
+
defaultMessage: "City",
|
|
1340
|
+
id: "checkout.address.city.placeholder",
|
|
1341
|
+
description: "City of the customer address in the checkout form"
|
|
1342
|
+
}),
|
|
1343
|
+
statePlaceholder: e({
|
|
1344
|
+
defaultMessage: "State",
|
|
1345
|
+
id: "checkout.address.state.placeholder",
|
|
1346
|
+
description: "State of the customer address in the checkout form"
|
|
1347
|
+
})
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
export {
|
|
1351
|
+
ue as A,
|
|
1352
|
+
Ct as D,
|
|
1353
|
+
Xt as _,
|
|
1354
|
+
ea as a,
|
|
1355
|
+
xt as b,
|
|
1356
|
+
Qt as c,
|
|
1357
|
+
Je as d,
|
|
1358
|
+
$t as e,
|
|
1359
|
+
Et as f,
|
|
1360
|
+
St as g,
|
|
1361
|
+
Jt as h,
|
|
1362
|
+
Yt as i,
|
|
1363
|
+
_t as j,
|
|
1364
|
+
Lt as k,
|
|
1365
|
+
jt as o,
|
|
1366
|
+
el as r,
|
|
1367
|
+
Wt as t,
|
|
1368
|
+
la as u
|
|
1369
|
+
};
|