@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.22
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/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs} +6 -6
- package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-D42J_izE.js} +1 -1
- package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-DNJ-jexx.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs} +4 -4
- package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-Dz-2L8dJ.mjs} +1 -1
- package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-M_jXZda4.js} +1 -1
- package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-B5-0AM67.mjs} +1298 -1225
- package/dist/Checkout.entry.ce-C52gkrNZ.js +1 -0
- package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DMK9C78d.mjs} +2 -2
- package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-G8doKsZb.js} +1 -1
- package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-B3Rz6Ojk.js} +1 -1
- package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-CzkkNoJG.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-BmtU9Pk0.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-Db6bN2RZ.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs} +5 -5
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +1 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs} +485 -501
- package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-D-QxT2OD.js} +1 -1
- package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-IK2fns6f.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-BGckEwHf.mjs} +2 -2
- package/dist/{ErrorNotification.vue.es-0ZC_DozN.js → ErrorNotification.vue.es-Cd2UKPAz.js} +1 -1
- package/dist/{IconButton.vue.es-DGLIdHkR.js → IconButton.vue.es-BTAkuFsm.js} +1 -1
- package/dist/{IconButton.vue.es-DAR7e8NA.mjs → IconButton.vue.es-C4dQEQAc.mjs} +2 -2
- package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-BmX68uJx.mjs} +3 -3
- package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-CmR2xoeu.js} +1 -1
- package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-BGPELaZU.mjs} +2 -2
- package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-CTOrmrcB.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js} +1 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js +1 -0
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs} +3 -3
- package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-BWLiwlNs.mjs} +692 -705
- package/dist/InvoiceSummary.vue.es-hpG8Tq1D.js +1 -0
- package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-BD4vUaOQ.js} +1 -1
- package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-B_G8NQS2.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs} +3 -3
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-ComJzB3H.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DSHW_eW1.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CH5B6BY5.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-CwfCLnKt.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs} +3 -3
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js} +1 -1
- package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-DfN7cPYZ.mjs} +5 -5
- package/dist/{PaymentIntegrationFormAdyen-DronjwO3.js → PaymentIntegrationFormAdyen-Q48aDXR7.js} +1 -1
- package/dist/{PaymentIntegrationFormStripe-ybM6wirp.js → PaymentIntegrationFormStripe-BSEqarl7.js} +1 -1
- package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-CBsXDuhy.mjs} +4 -4
- package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-D18g-QB4.js} +1 -1
- package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-DkQdPXfk.mjs} +3 -3
- package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-CpIZKfPH.mjs} +1 -1
- package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-DK8ntFA0.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs} +5 -5
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js} +1 -1
- package/dist/PlanCustomizationEditor-0zCXN-cv.mjs +877 -0
- package/dist/PlanCustomizationEditor-XpofGULc.js +1 -0
- package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-8_5nfZDI.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-QnpfHxaY.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs} +5 -5
- package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-C92xlCFQ.mjs} +3 -3
- package/dist/{RadioGroupExtended.vue.es-B1YtLNKG.js → RadioGroupExtended.vue.es-Cb1iD73r.js} +1 -1
- package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Btff-cLY.js} +1 -1
- package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-DQ5H7mqW.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs} +6 -6
- package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-Dc0rUnnf.mjs} +1 -1
- package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-pzNsego6.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs} +1655 -1620
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs} +3 -3
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs} +7 -7
- package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-BaqCDjl8.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-CIedcXGT.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-BzNI94k0.js} +1 -1
- package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-DkBuMNr_.mjs} +2 -2
- package/dist/{cn.es-DjnGlmqV.mjs → cn.es-BGqYNPM3.mjs} +2 -2
- package/dist/{cn.es-CNvIP217.js → cn.es-CvmLj7KH.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-Com2NiGU.mjs → customElements-CSE7dwUr.mjs} +312 -282
- package/dist/{customElements-Bt8PbjIn.js → customElements-Vox1PB6G.js} +42 -18
- package/dist/{customer-CKgMJEgv.mjs → customer-5krPxZ8i.mjs} +1 -1
- package/dist/{customer-Q4JGfVfq.js → customer-Dsq-Moea.js} +1 -1
- package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
- package/dist/{de-DE-Ds_yJLS3.js → de-DE-C3DzP1nj.js} +1 -1
- package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
- package/dist/{de-DE-CVCmzlNH.mjs → de-DE-DsFtpLsx.mjs} +2 -0
- package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
- package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
- package/dist/{en-US-DVR9O7b_.mjs → en-US-DvkvbV0p.mjs} +2 -0
- package/dist/{en-US-C51ILrVv.js → en-US-X_pSFsNm.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-CV9iAUHf.mjs → invoices-DRgfpkJ6.mjs} +8 -5
- package/dist/invoices-xOV2YaEV.js +1 -0
- package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
- package/dist/it-IT-DT3rfjOY.js +1 -0
- package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-TE7oqvXa.mjs} +2 -0
- package/dist/{it-IT-Dxw59eR_.js → it-IT-YBtHAao1.js} +1 -1
- package/dist/{nl-NL-Btbfd9p2.js → nl-NL-C8wnyKju.js} +1 -1
- package/dist/nl-NL-DfkhOJKc.js +1 -0
- package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Di3-JArV.mjs} +2 -0
- package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
- package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CRDIw9lz.js} +1 -1
- package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-PmkHYomw.mjs} +1 -1
- package/dist/{payments-C_cMXQzE.mjs → payments-Dvqh6CGW.mjs} +1 -1
- package/dist/{payments-DGckugN0.js → payments-jAgXhdp_.js} +1 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
- package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
- package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +11 -11
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +13 -13
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +20 -20
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
- package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
- package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
- package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-XDyI2Cqm.mjs} +1 -1
- package/dist/{subscriptions-X0Ciw8z3.js → subscriptions-fJcj88X9.js} +1 -1
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
- package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-B8-oycQk.mjs} +1 -1
- package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CNAuaHdm.js} +1 -1
- package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-CP8eWUZV.mjs} +1 -1
- package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-DSx-wN-6.js} +1 -1
- package/dist/useCustomerFormLabels-DW6jnDYH.mjs +968 -0
- package/dist/useCustomerFormLabels-TVTgy0MT.js +1 -0
- package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-BvE_EOX-.mjs} +1 -1
- package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-CC-DrIcL.js} +1 -1
- package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CRRPdXc6.js} +1 -1
- package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-D8ds05CX.mjs} +2 -2
- package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-DIfQcvER.js} +1 -1
- package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-SJU5YWBQ.mjs} +7 -7
- package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-DsabgMLZ.js} +1 -1
- package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-MUljS38K.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-Bt7P9InI.js} +1 -1
- package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-D0NUanyF.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-B7JYkGsw.mjs} +1 -1
- package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-cT1o-BA1.js} +1 -1
- package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-CpzqXQUT.mjs} +1 -1
- package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-DNVw2eVg.js} +1 -1
- package/dist/{usePayments-SQF_V7oL.js → usePayments-D9Eo-uBk.js} +1 -1
- package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Gx9kBvNB.mjs} +6 -6
- package/dist/{usePortal-DDG9b6FI.mjs → usePortal-3VCZwSUE.mjs} +1 -1
- package/dist/{usePortal-BdM7hDge.js → usePortal-DsebXdhx.js} +1 -1
- package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-DnL1wVh1.mjs} +1 -1
- package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-K_gP9TeX.js} +1 -1
- package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CmltiTE-.js} +1 -1
- package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-DMtKzcoB.mjs} +1 -1
- package/dist/wallets.es-CNIMW5ay.js +1 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/package.json +1 -1
- package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
- package/dist/invoices-CvpL4rv5.js +0 -1
- package/dist/it-IT-CFEfSpPH.js +0 -1
- package/dist/nl-NL-jtVgF3jx.js +0 -1
- package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
- package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
- package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
import { i as xe, d as qe, a as sl } from "./useService-Bh47bllz.mjs";
|
|
2
|
+
import { openBlock as o, createElementBlock as M, createElementVNode as x, renderSlot as j, defineComponent as le, computed as d, withKeys as il, withModifiers as ke, normalizeClass as z, Fragment as ee, mergeProps as N, createBlock as h, resolveDynamicComponent as R, normalizeProps as D, createCommentVNode as p, createVNode as F, unref as S, toDisplayString as A, renderList as Ne, withCtx as I, createTextVNode as U, inject as ul, getCurrentInstance as rl, ref as q, watch as ye, useModel as je, useSlots as dl, createSlots as cl, guardReactiveProps as Ee, Teleport as fl, normalizeStyle as Re, mergeModels as we, isRef as De } from "vue";
|
|
3
|
+
import { u as ie, d as vl, c as ml } from "./index.es-CXkP_k3u.mjs";
|
|
4
|
+
import { c as hl } from "./countryData.es-BegoD-cZ.mjs";
|
|
5
|
+
import { _ as bl, u as pl, a as yl, o as gl, f as xl, s as kl, b as wl } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
6
|
+
import { e as Ce, _ as J, s as Cl, u as Sl } from "./sorting.es-DCihKqD2.mjs";
|
|
7
|
+
import { S as Ml, _ as ue, u as Fe } from "./customElements-CSE7dwUr.mjs";
|
|
8
|
+
import { a as ze } from "./IconButton.vue.es-C4dQEQAc.mjs";
|
|
9
|
+
import { a as Ae, _ as ge } from "./Button.vue.es-Dz-2L8dJ.mjs";
|
|
10
|
+
import { _ as $l } from "./Chip.vue.es-DMK9C78d.mjs";
|
|
11
|
+
import { _ as Il } from "./Input.vue.es-BGPELaZU.mjs";
|
|
12
|
+
import { _ as Vl } from "./index-BPU8tIml.mjs";
|
|
13
|
+
const Se = (e) => xe(e) && typeof e != "boolean" ? null : e, se = (e) => typeof e == "object" && e !== null, Ol = ({
|
|
14
|
+
from: e,
|
|
15
|
+
to: b,
|
|
16
|
+
nullifyEmptyValues: k = !1
|
|
17
|
+
}) => {
|
|
18
|
+
const s = Object.fromEntries(
|
|
19
|
+
Object.entries(b).filter(([n, y]) => !qe(y, e[n]))
|
|
20
|
+
);
|
|
21
|
+
return k ? Object.entries(s).reduce(
|
|
22
|
+
(n, [y, i]) => ({ ...n, [y]: Se(i) }),
|
|
23
|
+
{}
|
|
24
|
+
) : s;
|
|
25
|
+
}, Ll = ({
|
|
26
|
+
from: e,
|
|
27
|
+
to: b,
|
|
28
|
+
nullifyEmptyValues: k = !1
|
|
29
|
+
}) => {
|
|
30
|
+
const s = {}, n = (i, f, a) => {
|
|
31
|
+
const v = f[a];
|
|
32
|
+
return i === void 0 ? Array.isArray(v) ? s[a] = [] : se(v) && (s[a] = {}) : Array.isArray(v) ? i[a] = [] : se(v) && (i[a] = {}), [i === void 0 ? s : i, a];
|
|
33
|
+
}, y = (i, f, a) => {
|
|
34
|
+
for (const v of Object.keys(i)) {
|
|
35
|
+
const m = n(a, i, v);
|
|
36
|
+
v in f || (m[0][m[1]] = {
|
|
37
|
+
from: i[v]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
for (const [v, m] of Object.entries(f)) {
|
|
41
|
+
const g = v in i, w = n(a, i, v);
|
|
42
|
+
if (g) {
|
|
43
|
+
const $ = i[v];
|
|
44
|
+
qe($, m) ? delete w[0][w[1]] : se(m) && se($) ? y($, m, w[0][w[1]]) : w[0][w[1]] = k && typeof m != "boolean" ? Se(m) : m;
|
|
45
|
+
} else
|
|
46
|
+
w[0][w[1]] = k ? Se(m) : m;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return y(e, b), s;
|
|
50
|
+
}, St = ({
|
|
51
|
+
from: e,
|
|
52
|
+
to: b,
|
|
53
|
+
mode: k = "shallow",
|
|
54
|
+
nullifyEmptyValues: s = !1
|
|
55
|
+
}) => k === "deep" ? Ll({ from: e, to: b, nullifyEmptyValues: s }) : Ol({ from: e, to: b, nullifyEmptyValues: s });
|
|
56
|
+
function Pl(e, b, k = []) {
|
|
57
|
+
return [...e].sort((s, n) => {
|
|
58
|
+
for (let y = 0; y < b.length; y++) {
|
|
59
|
+
const i = b[y], f = typeof i == "function" ? i : (g) => g[i], a = k[y] === "desc" ? -1 : 1, v = f(s), m = f(n);
|
|
60
|
+
if (!(v == null && m == null)) {
|
|
61
|
+
if (v == null) return a;
|
|
62
|
+
if (m == null || v < m) return -a;
|
|
63
|
+
if (v > m) return a;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return 0;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const Bl = {}, Tl = { class: "flex items-center pt-1" }, El = { class: "px-1.5 text-xs font-semibold text-subtle" };
|
|
70
|
+
function Rl(e, b) {
|
|
71
|
+
return o(), M("div", Tl, [
|
|
72
|
+
b[0] || (b[0] = x("div", { class: "w-2 border-t" }, null, -1)),
|
|
73
|
+
x("span", El, [
|
|
74
|
+
j(e.$slots, "default")
|
|
75
|
+
]),
|
|
76
|
+
b[1] || (b[1] = x("div", { class: "grow border-t" }, null, -1))
|
|
77
|
+
]);
|
|
78
|
+
}
|
|
79
|
+
const Dl = /* @__PURE__ */ bl(Bl, [["render", Rl]]), zl = (e) => `checkbox-item-${e}`, Al = "select-search-done-button", ql = ["aria-selected", "aria-disabled", "data-testid", "onKeydown"], Nl = ["id", "value", "checked", "disabled"], jl = ["for"], Fl = { class: "flex min-w-0 items-center gap-1" }, Kl = { class: "flex min-w-0 flex-grow flex-col" }, Ul = { class: "flex min-w-0 flex-grow gap-2" }, Hl = { class: "flex min-w-0 flex-grow flex-col" }, Wl = { class: "flex min-w-0 flex-grow items-center gap-2" }, Gl = /* @__PURE__ */ le({
|
|
80
|
+
__name: "SearchSelectInputOption",
|
|
81
|
+
props: {
|
|
82
|
+
multiple: { type: Boolean },
|
|
83
|
+
search: {},
|
|
84
|
+
condensed: { type: Boolean },
|
|
85
|
+
label: {},
|
|
86
|
+
checked: { type: Boolean },
|
|
87
|
+
disabled: { type: Boolean },
|
|
88
|
+
subLabel: {},
|
|
89
|
+
labelPrefixComponent: {},
|
|
90
|
+
labelSuffixComponent: {},
|
|
91
|
+
labelInlineComponent: {},
|
|
92
|
+
value: {},
|
|
93
|
+
labelSrOnly: { type: Boolean }
|
|
94
|
+
},
|
|
95
|
+
emits: ["value-changed"],
|
|
96
|
+
setup(e, { emit: b }) {
|
|
97
|
+
const k = b, s = e, n = (a) => {
|
|
98
|
+
const v = a.target, m = {
|
|
99
|
+
value: v.value,
|
|
100
|
+
checked: v.checked
|
|
101
|
+
};
|
|
102
|
+
k("value-changed", m);
|
|
103
|
+
}, y = () => {
|
|
104
|
+
s.multiple || s.disabled || k("value-changed", {
|
|
105
|
+
value: s.value
|
|
106
|
+
});
|
|
107
|
+
}, i = d(() => zl(s.value)), f = d(() => Ce(s.search ?? ""));
|
|
108
|
+
return (a, v) => (o(), M("li", {
|
|
109
|
+
role: "option",
|
|
110
|
+
"aria-selected": e.checked,
|
|
111
|
+
"aria-disabled": e.disabled,
|
|
112
|
+
class: z([{ "hover:bg-gray-100": !e.disabled }, "relative flex"]),
|
|
113
|
+
"data-testid": i.value,
|
|
114
|
+
tabindex: "0",
|
|
115
|
+
onClick: y,
|
|
116
|
+
onKeydown: il(ke(y, ["prevent"]), ["enter"])
|
|
117
|
+
}, [
|
|
118
|
+
e.multiple ? (o(), M(ee, { key: 0 }, [
|
|
119
|
+
x("input", N(a.$attrs, {
|
|
120
|
+
id: i.value,
|
|
121
|
+
ref: "inputRef",
|
|
122
|
+
value: e.value,
|
|
123
|
+
checked: e.checked,
|
|
124
|
+
disabled: e.disabled,
|
|
125
|
+
type: "checkbox",
|
|
126
|
+
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"],
|
|
127
|
+
tabindex: "-1",
|
|
128
|
+
onChange: n
|
|
129
|
+
}), null, 16, Nl),
|
|
130
|
+
x("label", {
|
|
131
|
+
for: i.value,
|
|
132
|
+
class: z([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
|
|
133
|
+
}, [
|
|
134
|
+
x("div", Fl, [
|
|
135
|
+
e.labelPrefixComponent ? (o(), h(R(e.labelPrefixComponent.component), D(N({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
136
|
+
x("div", Kl, [
|
|
137
|
+
x("div", Ul, [
|
|
138
|
+
F(J, {
|
|
139
|
+
text: e.label,
|
|
140
|
+
search: f.value,
|
|
141
|
+
title: e.label,
|
|
142
|
+
class: z(["truncate font-semibold", { "sr-only": e.labelSrOnly }])
|
|
143
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
144
|
+
e.labelInlineComponent ? (o(), h(R(e.labelInlineComponent.component), D(N({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
145
|
+
e.subLabel && e.condensed ? (o(), h(J, {
|
|
146
|
+
key: 1,
|
|
147
|
+
class: "truncate text-xs text-secondary",
|
|
148
|
+
text: e.subLabel,
|
|
149
|
+
title: e.subLabel,
|
|
150
|
+
search: f.value
|
|
151
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
152
|
+
]),
|
|
153
|
+
e.subLabel && !e.condensed ? (o(), h(J, {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: "truncate text-xs text-secondary",
|
|
156
|
+
text: e.subLabel,
|
|
157
|
+
title: e.subLabel,
|
|
158
|
+
search: f.value
|
|
159
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
160
|
+
]),
|
|
161
|
+
e.labelSuffixComponent ? (o(), h(R(e.labelSuffixComponent.component), D(N({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
162
|
+
])
|
|
163
|
+
], 10, jl)
|
|
164
|
+
], 64)) : (o(), M("div", {
|
|
165
|
+
key: 1,
|
|
166
|
+
class: z(["flex w-full min-w-0 items-center gap-3 px-4 text-sm font-medium", [
|
|
167
|
+
e.condensed ? "p-2" : "py-3",
|
|
168
|
+
e.disabled ?? "cursor-not-allowed",
|
|
169
|
+
!e.disabled && "cursor-pointer"
|
|
170
|
+
]])
|
|
171
|
+
}, [
|
|
172
|
+
e.labelPrefixComponent ? (o(), h(R(e.labelPrefixComponent.component), D(N({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : p("", !0),
|
|
173
|
+
x("div", Hl, [
|
|
174
|
+
x("div", Wl, [
|
|
175
|
+
F(J, {
|
|
176
|
+
text: e.label,
|
|
177
|
+
search: S(Ce)(e.search ?? ""),
|
|
178
|
+
title: e.label,
|
|
179
|
+
class: z(["truncate font-semibold", { "text-disabled": e.disabled }])
|
|
180
|
+
}, null, 8, ["text", "search", "title", "class"]),
|
|
181
|
+
e.labelInlineComponent ? (o(), h(R(e.labelInlineComponent.component), D(N({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
182
|
+
e.subLabel && e.condensed ? (o(), h(J, {
|
|
183
|
+
key: 1,
|
|
184
|
+
class: "truncate text-xs text-secondary",
|
|
185
|
+
text: e.subLabel,
|
|
186
|
+
title: e.subLabel,
|
|
187
|
+
search: f.value
|
|
188
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
189
|
+
]),
|
|
190
|
+
e.subLabel && !e.condensed ? (o(), h(J, {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: "truncate text-xs text-secondary",
|
|
193
|
+
text: e.subLabel,
|
|
194
|
+
title: e.subLabel,
|
|
195
|
+
search: f.value
|
|
196
|
+
}, null, 8, ["text", "title", "search"])) : p("", !0)
|
|
197
|
+
]),
|
|
198
|
+
e.labelSuffixComponent ? (o(), h(R(e.labelSuffixComponent.component), D(N({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : p("", !0)
|
|
199
|
+
], 2))
|
|
200
|
+
], 42, ql));
|
|
201
|
+
}
|
|
202
|
+
}), Ql = { class: "flex flex-col rounded-bl rounded-br" }, Yl = {
|
|
203
|
+
key: 0,
|
|
204
|
+
class: "px-5 py-5 text-sm text-secondary"
|
|
205
|
+
}, Jl = { key: 0 }, Xl = ["innerHTML"], Zl = { key: 0 }, _l = { class: "mt-1 px-3 py-2 text-sm text-secondary" }, et = /* @__PURE__ */ le({
|
|
206
|
+
__name: "SearchSelectInputOptions",
|
|
207
|
+
props: {
|
|
208
|
+
i18n: {},
|
|
209
|
+
model: {},
|
|
210
|
+
search: {},
|
|
211
|
+
multiple: { type: Boolean },
|
|
212
|
+
condensed: { type: Boolean },
|
|
213
|
+
hasLargeDropdown: { type: Boolean },
|
|
214
|
+
addOnly: { type: Boolean },
|
|
215
|
+
options: {}
|
|
216
|
+
},
|
|
217
|
+
emits: ["value-changed"],
|
|
218
|
+
setup(e, { emit: b }) {
|
|
219
|
+
const k = b, s = e, n = (g) => k("value-changed", g), y = d(() => {
|
|
220
|
+
var g, w;
|
|
221
|
+
const $ = s.search ? `<span class="font-bold">"${Ce(s.search)}"</span>` : "";
|
|
222
|
+
return ((w = (g = s.i18n) == null ? void 0 : g.noResults) == null ? void 0 : w.call(g, $)) ?? `No matches found for ${$}.`;
|
|
223
|
+
}), i = d(() => s.search === ""), f = d(() => s.options.filter((g) => !g.hidden)), a = d(() => f.value.length > 0), v = d(() => a.value ? !1 : i.value ? !0 : !!y.value), m = d(
|
|
224
|
+
() => Cl(s.options, "group").reduce(
|
|
225
|
+
(g, w) => w.value === "" ? g : {
|
|
226
|
+
...g,
|
|
227
|
+
[w.value]: w.group
|
|
228
|
+
},
|
|
229
|
+
{}
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
return (g, w) => {
|
|
233
|
+
var $, C;
|
|
234
|
+
return o(), M("div", Ql, [
|
|
235
|
+
v.value ? (o(), M("div", Yl, [
|
|
236
|
+
i.value ? (o(), M("span", Jl, A((($ = s.i18n) == null ? void 0 : $.noOptionsAvailable) ?? "No available options."), 1)) : (o(), M("span", {
|
|
237
|
+
key: 1,
|
|
238
|
+
innerHTML: y.value
|
|
239
|
+
}, null, 8, Xl))
|
|
240
|
+
])) : a.value ? (o(), M("ul", {
|
|
241
|
+
key: 1,
|
|
242
|
+
class: z(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-[19rem]" : "max-h-48"]])
|
|
243
|
+
}, [
|
|
244
|
+
e.addOnly ? (o(), M("div", Zl, [
|
|
245
|
+
x("p", _l, A(((C = e.i18n) == null ? void 0 : C.addOnly) ?? "You can only select currently unselected options."), 1)
|
|
246
|
+
])) : p("", !0),
|
|
247
|
+
(o(!0), M(ee, null, Ne(f.value, ({
|
|
248
|
+
label: re,
|
|
249
|
+
subLabel: te,
|
|
250
|
+
value: H,
|
|
251
|
+
checked: ae,
|
|
252
|
+
disabled: de,
|
|
253
|
+
labelInlineComponent: L,
|
|
254
|
+
labelSuffixComponent: ce,
|
|
255
|
+
labelSrOnly: fe,
|
|
256
|
+
labelPrefixComponent: ve,
|
|
257
|
+
searchValues: r
|
|
258
|
+
}) => (o(), M(ee, { key: H }, [
|
|
259
|
+
m.value[H] ? (o(), h(Dl, { key: 0 }, {
|
|
260
|
+
default: I(() => [
|
|
261
|
+
U(A(m.value[H]), 1)
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1024)) : p("", !0),
|
|
265
|
+
F(Gl, {
|
|
266
|
+
label: re,
|
|
267
|
+
"sub-label": te,
|
|
268
|
+
value: H,
|
|
269
|
+
checked: ae,
|
|
270
|
+
disabled: de,
|
|
271
|
+
search: r ? "" : e.search,
|
|
272
|
+
multiple: e.multiple,
|
|
273
|
+
condensed: e.condensed,
|
|
274
|
+
"label-suffix-component": ce,
|
|
275
|
+
"label-prefix-component": ve,
|
|
276
|
+
"label-inline-component": L,
|
|
277
|
+
"label-sr-only": fe,
|
|
278
|
+
onValueChanged: n
|
|
279
|
+
}, null, 8, ["label", "sub-label", "value", "checked", "disabled", "search", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-inline-component", "label-sr-only"])
|
|
280
|
+
], 64))), 128))
|
|
281
|
+
], 2)) : p("", !0),
|
|
282
|
+
g.$slots["list-footer-content"] ? (o(), M("div", {
|
|
283
|
+
key: 2,
|
|
284
|
+
class: z({ "border-t border-gray-200": a.value })
|
|
285
|
+
}, [
|
|
286
|
+
j(g.$slots, "list-footer-content")
|
|
287
|
+
], 2)) : p("", !0)
|
|
288
|
+
]);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}), lt = { class: "flex flex-col gap-2" }, tt = ["aria-expanded"], at = { class: "flex items-center gap-2" }, nt = { key: 2 }, ot = { class: "flex items-center gap-2 self-stretch" }, st = { class: "flex items-center self-stretch pr-1" }, it = {
|
|
292
|
+
key: 0,
|
|
293
|
+
class: "flex flex-wrap gap-2"
|
|
294
|
+
}, ut = ["innerHTML"], rt = /* @__PURE__ */ le({
|
|
295
|
+
__name: "SearchSelectInput",
|
|
296
|
+
props: /* @__PURE__ */ we({
|
|
297
|
+
addOnly: { type: Boolean, default: !1 },
|
|
298
|
+
disabled: { type: Boolean },
|
|
299
|
+
i18n: {},
|
|
300
|
+
label: {},
|
|
301
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
302
|
+
singleModelValue: {},
|
|
303
|
+
multiModelValue: {},
|
|
304
|
+
options: { default: () => [] },
|
|
305
|
+
optionsOrder: { default: () => ["asc", "asc"] },
|
|
306
|
+
optionsOrderProperties: { default: () => ["group", "label"] },
|
|
307
|
+
required: { type: Boolean, default: !1 },
|
|
308
|
+
rootClass: {},
|
|
309
|
+
wrapperClass: {},
|
|
310
|
+
size: { default: "md" },
|
|
311
|
+
withChips: { type: Boolean, default: !1 },
|
|
312
|
+
error: {},
|
|
313
|
+
hasReset: { type: Boolean },
|
|
314
|
+
name: {},
|
|
315
|
+
hasLargeDropdown: { type: Boolean, default: !1 },
|
|
316
|
+
showSuffixInClosedInput: { type: Boolean },
|
|
317
|
+
showSuffixLabelInInput: { type: Boolean },
|
|
318
|
+
showSelectionInClosedInput: { type: Boolean },
|
|
319
|
+
condensed: { type: Boolean },
|
|
320
|
+
form: {},
|
|
321
|
+
prefix: {}
|
|
322
|
+
}, {
|
|
323
|
+
search: { default: "" },
|
|
324
|
+
searchModifiers: {}
|
|
325
|
+
}),
|
|
326
|
+
emits: /* @__PURE__ */ we(["update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"], ["update:search"]),
|
|
327
|
+
setup(e, { expose: b, emit: k }) {
|
|
328
|
+
var s;
|
|
329
|
+
const n = e, y = ul(Ml), i = (s = rl()) == null ? void 0 : s.vnode.props, f = !(i != null && i["onUpdate:search"]), a = d(() => Array.isArray(n.multiModelValue)), v = q(n.singleModelValue), m = k, g = ie(n, "singleModelValue", m), w = ie(n, "multiModelValue", m), $ = q(w.value ?? []);
|
|
330
|
+
ye(
|
|
331
|
+
() => n.multiModelValue,
|
|
332
|
+
(l) => {
|
|
333
|
+
l && ($.value = l);
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
const C = je(e, "search"), re = dl(), te = d(() => !!re.prefix), H = d(() => !!n.prefix), ae = d(() => te.value || H.value), de = d(() => ae.value || !pe.value), L = d({
|
|
337
|
+
get: () => a.value ? $.value ?? [] : typeof g.value == "string" ? [g.value] : [],
|
|
338
|
+
set(l) {
|
|
339
|
+
a.value ? $.value = l : g.value = (l == null ? void 0 : l[0]) ?? "";
|
|
340
|
+
}
|
|
341
|
+
}), ce = d(
|
|
342
|
+
() => W.value.filter((l) => {
|
|
343
|
+
var t;
|
|
344
|
+
return (t = L.value) == null ? void 0 : t.includes(l.value);
|
|
345
|
+
})
|
|
346
|
+
), fe = d(() => ce.value[0]), ve = Sl(), r = q(!1), Q = q(), K = q(), Ke = q(), Me = () => Q.value ? Array.from(
|
|
347
|
+
Q.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
|
|
348
|
+
) : [], $e = () => {
|
|
349
|
+
var l;
|
|
350
|
+
let t = document.activeElement;
|
|
351
|
+
for (; (l = t == null ? void 0 : t.shadowRoot) != null && l.activeElement; )
|
|
352
|
+
t = t.shadowRoot.activeElement;
|
|
353
|
+
return t;
|
|
354
|
+
}, X = () => {
|
|
355
|
+
if (!K.value) return null;
|
|
356
|
+
let l = K.value.querySelector("input");
|
|
357
|
+
if (l) return l;
|
|
358
|
+
const t = K.value.querySelectorAll("*");
|
|
359
|
+
for (const u of t)
|
|
360
|
+
if (u.shadowRoot && (l = u.shadowRoot.querySelector("input"), l))
|
|
361
|
+
return l;
|
|
362
|
+
return null;
|
|
363
|
+
};
|
|
364
|
+
let me = !1;
|
|
365
|
+
const he = () => {
|
|
366
|
+
var l;
|
|
367
|
+
me = !0, (l = X()) == null || l.focus(), me = !1;
|
|
368
|
+
}, E = q(""), Z = q(!1), Ue = () => {
|
|
369
|
+
me || (r.value = !0);
|
|
370
|
+
}, He = (l) => {
|
|
371
|
+
l.target === X() && (r.value = !0);
|
|
372
|
+
}, We = () => {
|
|
373
|
+
n.disabled || (Z.value = !0, r.value = !0);
|
|
374
|
+
}, Ge = (l) => {
|
|
375
|
+
var t;
|
|
376
|
+
if (!r.value) return;
|
|
377
|
+
const u = Me(), V = X();
|
|
378
|
+
if ($e() === V)
|
|
379
|
+
switch (l.key) {
|
|
380
|
+
case "ArrowDown":
|
|
381
|
+
u.length > 0 && (l.preventDefault(), (t = u[0]) == null || t.focus());
|
|
382
|
+
break;
|
|
383
|
+
case "Tab":
|
|
384
|
+
B();
|
|
385
|
+
break;
|
|
386
|
+
case "Escape":
|
|
387
|
+
l.preventDefault(), B();
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
}, Qe = (l) => {
|
|
391
|
+
var t, u, V;
|
|
392
|
+
const O = Me(), c = $e(), T = O.indexOf(c), _ = X();
|
|
393
|
+
switch (l.key) {
|
|
394
|
+
case "ArrowDown":
|
|
395
|
+
T < O.length - 1 && (l.preventDefault(), (t = O[T + 1]) == null || t.focus());
|
|
396
|
+
break;
|
|
397
|
+
case "ArrowUp":
|
|
398
|
+
l.preventDefault(), T <= 0 ? _ == null || _.focus() : (u = O[T - 1]) == null || u.focus();
|
|
399
|
+
break;
|
|
400
|
+
case "Tab":
|
|
401
|
+
if (l.preventDefault(), l.shiftKey && T > 0) {
|
|
402
|
+
(V = O[T - 1]) == null || V.focus();
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
B(), he();
|
|
406
|
+
break;
|
|
407
|
+
case "Escape":
|
|
408
|
+
l.preventDefault(), B(), he();
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
}, { floatingStyles: Ye } = pl(K, Q, {
|
|
412
|
+
whileElementsMounted: yl,
|
|
413
|
+
placement: "bottom",
|
|
414
|
+
middleware: [
|
|
415
|
+
gl(4),
|
|
416
|
+
xl({
|
|
417
|
+
mainAxis: !0
|
|
418
|
+
}),
|
|
419
|
+
kl({ padding: 8 }),
|
|
420
|
+
wl({
|
|
421
|
+
padding: 8,
|
|
422
|
+
apply({ availableHeight: l, elements: t }) {
|
|
423
|
+
Object.assign(t.floating.style, {
|
|
424
|
+
maxHeight: `${l}px`
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
})
|
|
428
|
+
]
|
|
429
|
+
}), { width: Je } = vl(K), Ie = (l) => {
|
|
430
|
+
var t;
|
|
431
|
+
return n.disabled || !n.disabled && n.addOnly && !!((t = v.value) != null && t.includes(l));
|
|
432
|
+
}, W = d(() => {
|
|
433
|
+
const l = n.options.map((u) => ({
|
|
434
|
+
...u,
|
|
435
|
+
checked: L.value.includes(u.value),
|
|
436
|
+
disabled: u.disabled ?? Ie(u.value)
|
|
437
|
+
})), t = [
|
|
438
|
+
...l,
|
|
439
|
+
...C.value.length === 0 && ne.value ? ne.value.filter(
|
|
440
|
+
(u) => !l.some((V) => V.value === u.value)
|
|
441
|
+
) : []
|
|
442
|
+
];
|
|
443
|
+
return n.optionsOrderProperties && !xe(n.optionsOrderProperties) ? Pl(t, n.optionsOrderProperties, n.optionsOrder) : t;
|
|
444
|
+
}), Ve = (l) => W.value.filter((t) => l.some((u) => t.value === u)), G = d(() => Ve(L.value)), P = d(() => G.value[0]), be = d(() => {
|
|
445
|
+
var l;
|
|
446
|
+
if (!(r.value || !n.showSuffixInClosedInput) && !(a.value && G.value.length !== 1))
|
|
447
|
+
return (l = P.value) == null ? void 0 : l.labelSuffixComponent;
|
|
448
|
+
}), Y = d(() => {
|
|
449
|
+
var l;
|
|
450
|
+
if (!n.showSelectionInClosedInput || r.value || !a.value)
|
|
451
|
+
return;
|
|
452
|
+
const t = (l = P.value) == null ? void 0 : l.labelPrefixComponent;
|
|
453
|
+
if (t)
|
|
454
|
+
return { component: t, extraCount: G.value.length - 1 };
|
|
455
|
+
}), Xe = d(() => n.size === "xs" ? "px-1" : n.size === "sm" ? "px-2" : "px-4"), ne = q([]);
|
|
456
|
+
ye(
|
|
457
|
+
() => {
|
|
458
|
+
var l;
|
|
459
|
+
if (a.value) return null;
|
|
460
|
+
const t = g.value ?? "";
|
|
461
|
+
return {
|
|
462
|
+
selectedValue: t,
|
|
463
|
+
label: ((l = n.options.find((u) => u.value === t)) == null ? void 0 : l.label) ?? ""
|
|
464
|
+
};
|
|
465
|
+
},
|
|
466
|
+
(l) => {
|
|
467
|
+
if (l) {
|
|
468
|
+
if (!l.selectedValue) {
|
|
469
|
+
E.value = "", r.value || (C.value = "");
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
l.label && (E.value = l.label, !r.value && C.value === "" && (C.value = l.label));
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
{ immediate: !0 }
|
|
476
|
+
);
|
|
477
|
+
const Oe = ({
|
|
478
|
+
value: l,
|
|
479
|
+
checked: t
|
|
480
|
+
}) => {
|
|
481
|
+
var u;
|
|
482
|
+
let V;
|
|
483
|
+
a.value ? V = t ? [...L.value, l] : L.value.filter((O) => O !== l) : (V = [l], E.value = ((u = W.value.find((O) => O.value === l)) == null ? void 0 : u.label) ?? "", C.value = E.value, Z.value = !1, r.value = !1, he()), ne.value = Ve(V), L.value = V, m("change");
|
|
484
|
+
}, Le = d(
|
|
485
|
+
() => L.value.length > 0 && !n.disabled && !(L.value.length === 1 && L.value[0] === "")
|
|
486
|
+
), oe = () => {
|
|
487
|
+
L.value = [], $.value = [], a.value || (E.value = "", C.value = "", Z.value = !1);
|
|
488
|
+
}, Ze = () => {
|
|
489
|
+
if (!a.value && E.value && C.value === E.value) {
|
|
490
|
+
oe();
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
C.value = "";
|
|
494
|
+
}, _e = d(() => {
|
|
495
|
+
if (!f || !a.value && !Z.value)
|
|
496
|
+
return W.value;
|
|
497
|
+
const l = C.value.toLowerCase();
|
|
498
|
+
return W.value.filter((t) => t.searchValues ? t.searchValues.some(
|
|
499
|
+
(u) => u.toLowerCase().includes(l)
|
|
500
|
+
) : (t.label ?? "").toLowerCase().includes(l));
|
|
501
|
+
}), B = () => {
|
|
502
|
+
a.value ? (w.value = $.value, C.value = "") : C.value === "" && n.hasReset ? oe() : (C.value = E.value, Z.value = !1), r.value = !1;
|
|
503
|
+
}, el = () => {
|
|
504
|
+
var l;
|
|
505
|
+
r.value ? B() : (r.value = !0, (l = X()) == null || l.focus());
|
|
506
|
+
};
|
|
507
|
+
ye($, () => {
|
|
508
|
+
!r.value && !sl(w.value, $.value) && a.value && (w.value = $.value);
|
|
509
|
+
}), ml("mousedown", (l) => {
|
|
510
|
+
const t = l.composedPath();
|
|
511
|
+
Q.value && t.includes(Q.value) || K.value && t.includes(K.value) || r.value && B();
|
|
512
|
+
});
|
|
513
|
+
const ll = d(() => {
|
|
514
|
+
var l, t, u, V, O, c, T;
|
|
515
|
+
return a.value && r.value ? ((l = n.i18n) == null ? void 0 : l.placeholderSearch) ?? "Search" : Y.value ? "" : a.value && G.value.length === 1 ? (t = P.value) == null ? void 0 : t.label : a.value && G.value.length >= 2 ? `${(u = P.value) == null ? void 0 : u.label} +${G.value.length - 1}` : !g.value && !P.value ? r.value ? ((V = n.i18n) == null ? void 0 : V.placeholderSearch) ?? "Search" : ((O = n.i18n) == null ? void 0 : O.placeholderDefault) ?? "Select an option" : r.value ? ((c = n.i18n) == null ? void 0 : c.placeholderSearch) ?? "Search" : !n.singleModelValue && !P.value ? "" : (T = W.value.find((_) => {
|
|
516
|
+
var Te;
|
|
517
|
+
return _.value === ((Te = fe.value) == null ? void 0 : Te.value);
|
|
518
|
+
})) == null ? void 0 : T.label;
|
|
519
|
+
}), Pe = d(() => C.value === ""), tl = d(() => !(Pe.value || !a.value && E.value !== "" && C.value === E.value && !n.hasReset)), al = d(
|
|
520
|
+
() => Le.value && !!n.hasReset && Pe.value && (a.value || !r.value)
|
|
521
|
+
), nl = !!(i != null && i.onAddOption), ol = () => {
|
|
522
|
+
m("add-option"), B();
|
|
523
|
+
}, pe = d(
|
|
524
|
+
() => {
|
|
525
|
+
var l;
|
|
526
|
+
return !r.value && !a.value && ((l = P.value) == null ? void 0 : l.labelPrefixComponent);
|
|
527
|
+
}
|
|
528
|
+
), Be = `search-select-options-${Math.random().toString(36).substring(2, 9)}`;
|
|
529
|
+
return b({
|
|
530
|
+
flushMemoryCachedSelectedOptions: () => ne.value = [],
|
|
531
|
+
close: B
|
|
532
|
+
}), (l, t) => {
|
|
533
|
+
var u, V, O;
|
|
534
|
+
return o(), M(ee, null, [
|
|
535
|
+
x("div", lt, [
|
|
536
|
+
x("div", {
|
|
537
|
+
ref_key: "wrapperRef",
|
|
538
|
+
ref: K,
|
|
539
|
+
class: z(["relative flex items-end", {
|
|
540
|
+
[`${e.rootClass}`]: e.rootClass,
|
|
541
|
+
"z-30": r.value
|
|
542
|
+
}]),
|
|
543
|
+
role: "combobox",
|
|
544
|
+
"aria-expanded": r.value,
|
|
545
|
+
"aria-haspopup": !0,
|
|
546
|
+
"aria-controls": Be,
|
|
547
|
+
onKeydown: Ge
|
|
548
|
+
}, [
|
|
549
|
+
F(S(Il), {
|
|
550
|
+
ref_key: "inputRef",
|
|
551
|
+
ref: Ke,
|
|
552
|
+
modelValue: C.value,
|
|
553
|
+
"onUpdate:modelValue": t[2] || (t[2] = (c) => C.value = c),
|
|
554
|
+
required: e.required,
|
|
555
|
+
label: e.label,
|
|
556
|
+
name: e.name,
|
|
557
|
+
form: e.form,
|
|
558
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
559
|
+
placeholder: ll.value,
|
|
560
|
+
class: "grow",
|
|
561
|
+
"wrapper-class": [
|
|
562
|
+
e.wrapperClass,
|
|
563
|
+
{
|
|
564
|
+
"border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none": r.value
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"input-class": !r.value && (!a.value && S(g) || a.value && !S(xe)(e.multiModelValue)) ? "text-ellipsis placeholder:text-default" : "",
|
|
568
|
+
"suffix-class": "border-l-0",
|
|
569
|
+
disabled: e.disabled,
|
|
570
|
+
size: e.size,
|
|
571
|
+
error: e.error,
|
|
572
|
+
"prefix-has-border": de.value,
|
|
573
|
+
"aria-autocomplete": "list",
|
|
574
|
+
onFocus: Ue,
|
|
575
|
+
onClick: He,
|
|
576
|
+
onInput: We,
|
|
577
|
+
onBlur: t[3] || (t[3] = (c) => l.$emit("blur"))
|
|
578
|
+
}, cl({
|
|
579
|
+
"label-suffix": I(() => [
|
|
580
|
+
j(l.$slots, "label-suffix")
|
|
581
|
+
]),
|
|
582
|
+
suffix: I(() => {
|
|
583
|
+
var c;
|
|
584
|
+
return [
|
|
585
|
+
x("div", ot, [
|
|
586
|
+
!r.value && !a.value && ((c = P.value) != null && c.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (o(), h(R(P.value.labelInlineComponent.component), D(N({ key: 0 }, P.value.labelInlineComponent.props)), null, 16)) : p("", !0),
|
|
587
|
+
be.value ? (o(), h(R(be.value.component), D(N({ key: 1 }, be.value.props)), null, 16)) : p("", !0),
|
|
588
|
+
x("div", st, [
|
|
589
|
+
al.value ? (o(), h(ze, {
|
|
590
|
+
key: 0,
|
|
591
|
+
icon: "close",
|
|
592
|
+
size: "sm",
|
|
593
|
+
intent: "subtle",
|
|
594
|
+
type: "button",
|
|
595
|
+
onMousedown: t[0] || (t[0] = ke(() => {
|
|
596
|
+
}, ["prevent"])),
|
|
597
|
+
onClick: oe
|
|
598
|
+
})) : p("", !0),
|
|
599
|
+
tl.value ? (o(), h(ze, {
|
|
600
|
+
key: 1,
|
|
601
|
+
icon: "close",
|
|
602
|
+
size: "sm",
|
|
603
|
+
intent: "subtle",
|
|
604
|
+
type: "button",
|
|
605
|
+
onClick: Ze
|
|
606
|
+
})) : p("", !0),
|
|
607
|
+
x("button", {
|
|
608
|
+
type: "button",
|
|
609
|
+
class: "flex aspect-square items-center justify-center self-stretch text-gray-800",
|
|
610
|
+
onMousedown: t[1] || (t[1] = ke(() => {
|
|
611
|
+
}, ["prevent"])),
|
|
612
|
+
onClick: el
|
|
613
|
+
}, [
|
|
614
|
+
F(Ae, {
|
|
615
|
+
icon: r.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
616
|
+
size: e.size === "xs" ? "xs" : "sm"
|
|
617
|
+
}, null, 8, ["icon", "size"])
|
|
618
|
+
], 32)
|
|
619
|
+
])
|
|
620
|
+
])
|
|
621
|
+
];
|
|
622
|
+
}),
|
|
623
|
+
_: 2
|
|
624
|
+
}, [
|
|
625
|
+
l.$slots.tooltip ? {
|
|
626
|
+
name: "tooltip",
|
|
627
|
+
fn: I(() => [
|
|
628
|
+
j(l.$slots, "tooltip")
|
|
629
|
+
]),
|
|
630
|
+
key: "0"
|
|
631
|
+
} : void 0,
|
|
632
|
+
Y.value ? {
|
|
633
|
+
name: "input",
|
|
634
|
+
fn: I(() => [
|
|
635
|
+
x("div", {
|
|
636
|
+
class: z(["pointer-events-none absolute inset-0 flex items-center gap-1", Xe.value])
|
|
637
|
+
}, [
|
|
638
|
+
(o(), h(R(Y.value.component.component), D(Ee(Y.value.component.props)), null, 16)),
|
|
639
|
+
Y.value.extraCount > 0 ? (o(), h(S(ue), {
|
|
640
|
+
key: 0,
|
|
641
|
+
variant: e.size === "xs" || e.size === "sm" ? "body-xs" : "body-sm",
|
|
642
|
+
tag: "span",
|
|
643
|
+
weight: "semibold",
|
|
644
|
+
"no-spacing": ""
|
|
645
|
+
}, {
|
|
646
|
+
default: I(() => [
|
|
647
|
+
U(" +" + A(Y.value.extraCount), 1)
|
|
648
|
+
]),
|
|
649
|
+
_: 1
|
|
650
|
+
}, 8, ["variant"])) : p("", !0)
|
|
651
|
+
], 2)
|
|
652
|
+
]),
|
|
653
|
+
key: "1"
|
|
654
|
+
} : void 0,
|
|
655
|
+
ae.value || pe.value || !f ? {
|
|
656
|
+
name: "prefix",
|
|
657
|
+
fn: I(() => {
|
|
658
|
+
var c;
|
|
659
|
+
return [
|
|
660
|
+
x("div", at, [
|
|
661
|
+
te.value ? j(l.$slots, "prefix", {}, void 0, void 0, 0) : H.value ? (o(), h(S(ue), {
|
|
662
|
+
key: 1,
|
|
663
|
+
variant: e.size === "xs" ? "body-xs" : "body-sm",
|
|
664
|
+
tag: "span",
|
|
665
|
+
weight: "semibold"
|
|
666
|
+
}, {
|
|
667
|
+
default: I(() => [
|
|
668
|
+
U(A(e.prefix), 1)
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["variant"])) : pe.value && ((c = P.value) != null && c.labelPrefixComponent) ? (o(), M("div", nt, [
|
|
672
|
+
(o(), h(R(P.value.labelPrefixComponent.component), D(Ee(P.value.labelPrefixComponent.props)), null, 16))
|
|
673
|
+
])) : f ? p("", !0) : (o(), h(Ae, {
|
|
674
|
+
key: 3,
|
|
675
|
+
icon: "search",
|
|
676
|
+
size: "sm"
|
|
677
|
+
}))
|
|
678
|
+
])
|
|
679
|
+
];
|
|
680
|
+
}),
|
|
681
|
+
key: "2"
|
|
682
|
+
} : void 0,
|
|
683
|
+
l.$slots.helper ? {
|
|
684
|
+
name: "helper",
|
|
685
|
+
fn: I(() => [
|
|
686
|
+
j(l.$slots, "helper")
|
|
687
|
+
]),
|
|
688
|
+
key: "3"
|
|
689
|
+
} : void 0
|
|
690
|
+
]), 1032, ["modelValue", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "disabled", "size", "error", "prefix-has-border"])
|
|
691
|
+
], 42, tt),
|
|
692
|
+
e.withChips ? (o(), M("div", it, [
|
|
693
|
+
(o(!0), M(ee, null, Ne(G.value, ({ value: c, label: T }) => (o(), h($l, {
|
|
694
|
+
key: c,
|
|
695
|
+
removable: !Ie(c),
|
|
696
|
+
onRemoved: (_) => Oe({ value: c, checked: !1 })
|
|
697
|
+
}, {
|
|
698
|
+
default: I(() => [
|
|
699
|
+
x("span", { innerHTML: T }, null, 8, ut)
|
|
700
|
+
]),
|
|
701
|
+
_: 2
|
|
702
|
+
}, 1032, ["removable", "onRemoved"]))), 128))
|
|
703
|
+
])) : p("", !0)
|
|
704
|
+
]),
|
|
705
|
+
S(ve) && S(y) ? (o(), h(fl, {
|
|
706
|
+
key: 0,
|
|
707
|
+
to: S(y)
|
|
708
|
+
}, [
|
|
709
|
+
r.value && !e.disabled ? (o(), M("div", {
|
|
710
|
+
key: 0,
|
|
711
|
+
id: Be,
|
|
712
|
+
ref_key: "optionsRef",
|
|
713
|
+
ref: Q,
|
|
714
|
+
role: "listbox",
|
|
715
|
+
style: Re(S(Ye)),
|
|
716
|
+
class: "z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",
|
|
717
|
+
onMouseenter: t[4] || (t[4] = (c) => r.value = !0),
|
|
718
|
+
onKeydown: Qe
|
|
719
|
+
}, [
|
|
720
|
+
x("div", {
|
|
721
|
+
class: "rounded pt-0",
|
|
722
|
+
style: Re({ width: `${S(Je)}px` })
|
|
723
|
+
}, [
|
|
724
|
+
F(et, {
|
|
725
|
+
i18n: {
|
|
726
|
+
addOnly: (u = e.i18n) == null ? void 0 : u.addOnly,
|
|
727
|
+
noResults: (V = e.i18n) == null ? void 0 : V.noResults,
|
|
728
|
+
noOptionsAvailable: (O = e.i18n) == null ? void 0 : O.noOptionsAvailable
|
|
729
|
+
},
|
|
730
|
+
options: _e.value,
|
|
731
|
+
multiple: a.value,
|
|
732
|
+
search: C.value,
|
|
733
|
+
model: L.value,
|
|
734
|
+
"add-only": e.addOnly,
|
|
735
|
+
"allows-multiple-values": !!a.value,
|
|
736
|
+
condensed: e.condensed,
|
|
737
|
+
"has-large-dropdown": e.hasLargeDropdown,
|
|
738
|
+
onValueChanged: Oe
|
|
739
|
+
}, {
|
|
740
|
+
"list-footer-content": I(() => [
|
|
741
|
+
nl ? (o(), h(ge, {
|
|
742
|
+
key: 0,
|
|
743
|
+
intent: "subtle",
|
|
744
|
+
class: "w-full rounded-t-none",
|
|
745
|
+
type: "button",
|
|
746
|
+
"icon-prefix": "add",
|
|
747
|
+
onClick: ol
|
|
748
|
+
}, {
|
|
749
|
+
default: I(() => {
|
|
750
|
+
var c;
|
|
751
|
+
return [
|
|
752
|
+
U(A((c = e.i18n) == null ? void 0 : c.addOption), 1)
|
|
753
|
+
];
|
|
754
|
+
}),
|
|
755
|
+
_: 1
|
|
756
|
+
})) : p("", !0),
|
|
757
|
+
a.value ? (o(), M("div", {
|
|
758
|
+
key: 1,
|
|
759
|
+
class: z(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
|
|
760
|
+
}, [
|
|
761
|
+
Le.value ? (o(), h(ge, {
|
|
762
|
+
key: 0,
|
|
763
|
+
type: "button",
|
|
764
|
+
intent: "subtle",
|
|
765
|
+
size: "xs",
|
|
766
|
+
class: "ml-2",
|
|
767
|
+
onClick: oe
|
|
768
|
+
}, {
|
|
769
|
+
default: I(() => {
|
|
770
|
+
var c;
|
|
771
|
+
return [
|
|
772
|
+
U(A(((c = e.i18n) == null ? void 0 : c.multipleValuesClearButtonText) ?? "Clear"), 1)
|
|
773
|
+
];
|
|
774
|
+
}),
|
|
775
|
+
_: 1
|
|
776
|
+
})) : p("", !0),
|
|
777
|
+
x("div", null, [
|
|
778
|
+
j(l.$slots, "list-footer-content", { close: B })
|
|
779
|
+
]),
|
|
780
|
+
F(ge, {
|
|
781
|
+
type: "button",
|
|
782
|
+
intent: "secondary",
|
|
783
|
+
size: "xs",
|
|
784
|
+
class: "mr-2",
|
|
785
|
+
"data-testid": S(Al),
|
|
786
|
+
onClick: B
|
|
787
|
+
}, {
|
|
788
|
+
default: I(() => {
|
|
789
|
+
var c;
|
|
790
|
+
return [
|
|
791
|
+
U(A(((c = e.i18n) == null ? void 0 : c.multipleValuesDoneButtonText) ?? "Done"), 1)
|
|
792
|
+
];
|
|
793
|
+
}),
|
|
794
|
+
_: 1
|
|
795
|
+
}, 8, ["data-testid"])
|
|
796
|
+
], 2)) : j(l.$slots, "list-footer-content", { close: B }, void 0, void 0, 2)
|
|
797
|
+
]),
|
|
798
|
+
_: 3
|
|
799
|
+
}, 8, ["i18n", "options", "multiple", "search", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown"])
|
|
800
|
+
], 4)
|
|
801
|
+
], 36)) : p("", !0)
|
|
802
|
+
], 8, ["to"])) : p("", !0)
|
|
803
|
+
], 64);
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
}), Mt = /* @__PURE__ */ le({
|
|
807
|
+
__name: "CountrySelect",
|
|
808
|
+
props: {
|
|
809
|
+
label: {},
|
|
810
|
+
singleModelValue: {},
|
|
811
|
+
multiModelValue: {},
|
|
812
|
+
error: {},
|
|
813
|
+
required: { type: Boolean, default: !0 },
|
|
814
|
+
hasReset: { type: Boolean },
|
|
815
|
+
disabled: { type: Boolean },
|
|
816
|
+
name: {},
|
|
817
|
+
form: {}
|
|
818
|
+
},
|
|
819
|
+
emits: ["update:modelValue", "update:singleModelValue"],
|
|
820
|
+
setup(e, { emit: b }) {
|
|
821
|
+
const k = e, s = ie(k, "singleModelValue"), n = ie(k, "multiModelValue"), y = b;
|
|
822
|
+
return (i, f) => (o(), h(rt, {
|
|
823
|
+
"multi-model-value": S(n),
|
|
824
|
+
"onUpdate:multiModelValue": f[0] || (f[0] = (a) => De(n) ? n.value = a : null),
|
|
825
|
+
"single-model-value": S(s),
|
|
826
|
+
"onUpdate:singleModelValue": [
|
|
827
|
+
f[1] || (f[1] = (a) => De(s) ? s.value = a : null),
|
|
828
|
+
f[2] || (f[2] = (a) => {
|
|
829
|
+
y("update:modelValue", a);
|
|
830
|
+
})
|
|
831
|
+
],
|
|
832
|
+
"root-class": i.$attrs.class,
|
|
833
|
+
label: e.label,
|
|
834
|
+
options: S(hl).map(({ key: a, value: v }) => ({ label: v, value: a })),
|
|
835
|
+
error: e.error,
|
|
836
|
+
"has-reset": e.hasReset,
|
|
837
|
+
disabled: e.disabled,
|
|
838
|
+
required: e.required,
|
|
839
|
+
"with-chips": !!e.multiModelValue,
|
|
840
|
+
name: e.name,
|
|
841
|
+
form: e.form
|
|
842
|
+
}, {
|
|
843
|
+
"label-suffix": I(() => [
|
|
844
|
+
j(i.$slots, "label-suffix")
|
|
845
|
+
]),
|
|
846
|
+
_: 3
|
|
847
|
+
}, 8, ["multi-model-value", "single-model-value", "root-class", "label", "options", "error", "has-reset", "disabled", "required", "with-chips", "name", "form"]));
|
|
848
|
+
}
|
|
849
|
+
}), dt = { class: "flex grow flex-col" }, $t = /* @__PURE__ */ le({
|
|
850
|
+
__name: "CompanyPurchaseToggle",
|
|
851
|
+
props: /* @__PURE__ */ we({
|
|
852
|
+
noSpacing: { type: Boolean }
|
|
853
|
+
}, {
|
|
854
|
+
modelValue: { type: Boolean, required: !0 },
|
|
855
|
+
modelModifiers: {}
|
|
856
|
+
}),
|
|
857
|
+
emits: ["update:modelValue"],
|
|
858
|
+
setup(e) {
|
|
859
|
+
const b = je(e, "modelValue"), { $t: k } = Fe();
|
|
860
|
+
return (s, n) => (o(), h(S(Vl), {
|
|
861
|
+
modelValue: b.value,
|
|
862
|
+
"onUpdate:modelValue": n[0] || (n[0] = (y) => b.value = y),
|
|
863
|
+
"no-spacing": e.noSpacing,
|
|
864
|
+
"label-position": "before"
|
|
865
|
+
}, {
|
|
866
|
+
"inline-label": I(() => [
|
|
867
|
+
x("div", dt, [
|
|
868
|
+
F(S(ue), { tag: "span" }, {
|
|
869
|
+
default: I(() => [
|
|
870
|
+
U(A(S(k)({
|
|
871
|
+
defaultMessage: "Company purchase",
|
|
872
|
+
id: "checkout.company_purchase_toggle.title",
|
|
873
|
+
description: "The title of the company purchase toggle in the checkout"
|
|
874
|
+
})), 1)
|
|
875
|
+
]),
|
|
876
|
+
_: 1
|
|
877
|
+
}),
|
|
878
|
+
F(S(ue), {
|
|
879
|
+
tag: "span",
|
|
880
|
+
variant: "body-xs",
|
|
881
|
+
color: "subtle"
|
|
882
|
+
}, {
|
|
883
|
+
default: I(() => [
|
|
884
|
+
U(A(S(k)({
|
|
885
|
+
defaultMessage: "I am purchasing on behalf of a company",
|
|
886
|
+
id: "checkout.company_purchase_toggle.sub_title",
|
|
887
|
+
description: "The subtitle of the company purchase toggle in the checkout"
|
|
888
|
+
})), 1)
|
|
889
|
+
]),
|
|
890
|
+
_: 1
|
|
891
|
+
})
|
|
892
|
+
])
|
|
893
|
+
]),
|
|
894
|
+
_: 1
|
|
895
|
+
}, 8, ["modelValue", "no-spacing"]));
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
function It() {
|
|
899
|
+
const { $t: e } = Fe();
|
|
900
|
+
return {
|
|
901
|
+
contactInformationTitle: e({
|
|
902
|
+
defaultMessage: "Customer information",
|
|
903
|
+
id: "checkout.contact_information_block.title",
|
|
904
|
+
description: "The title of the contact information block in the checkout form"
|
|
905
|
+
}),
|
|
906
|
+
emailLabel: e({
|
|
907
|
+
defaultMessage: "Email address",
|
|
908
|
+
id: "checkout.email_address.label",
|
|
909
|
+
description: "The email address of the customer in the checkout form"
|
|
910
|
+
}),
|
|
911
|
+
emailPlaceholder: e({
|
|
912
|
+
defaultMessage: "Email address...",
|
|
913
|
+
id: "checkout.email_address.placeholder",
|
|
914
|
+
description: "The email address of the customer in the checkout form"
|
|
915
|
+
}),
|
|
916
|
+
countryLabel: e({
|
|
917
|
+
defaultMessage: "Billing country",
|
|
918
|
+
id: "checkout.country.label",
|
|
919
|
+
description: "The country of the customer in the checkout form"
|
|
920
|
+
}),
|
|
921
|
+
vatNumberLabel: e({
|
|
922
|
+
defaultMessage: "VAT number",
|
|
923
|
+
id: "checkout.vat_number.label",
|
|
924
|
+
description: "The label for the vat number in the checkout form"
|
|
925
|
+
}),
|
|
926
|
+
vatNumberPlaceholder: e({
|
|
927
|
+
defaultMessage: "VAT number...",
|
|
928
|
+
id: "checkout.vat_number.placeholder",
|
|
929
|
+
description: "The label for the vat number in the checkout form"
|
|
930
|
+
}),
|
|
931
|
+
legalNameLabel: e({
|
|
932
|
+
defaultMessage: "Legal entity name",
|
|
933
|
+
id: "checkout.legal_name.label",
|
|
934
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
935
|
+
}),
|
|
936
|
+
legalNamePlaceholder: e({
|
|
937
|
+
defaultMessage: "Legal entity name...",
|
|
938
|
+
id: "checkout.legal_name.placeholder",
|
|
939
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
940
|
+
}),
|
|
941
|
+
addressTitle: e({
|
|
942
|
+
defaultMessage: "Billing address",
|
|
943
|
+
id: "checkout.address.title",
|
|
944
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
945
|
+
}),
|
|
946
|
+
postalCodePlaceholder: e({
|
|
947
|
+
defaultMessage: "Postal code...",
|
|
948
|
+
id: "checkout.address.portal_code.placeholder",
|
|
949
|
+
description: "Postal code of the customer address in the checkout form"
|
|
950
|
+
}),
|
|
951
|
+
cityPlaceholder: e({
|
|
952
|
+
defaultMessage: "City...",
|
|
953
|
+
id: "checkout.address.city.placeholder",
|
|
954
|
+
description: "City of the customer address in the checkout form"
|
|
955
|
+
}),
|
|
956
|
+
statePlaceholder: e({
|
|
957
|
+
defaultMessage: "State...",
|
|
958
|
+
id: "checkout.address.state.placeholder",
|
|
959
|
+
description: "State of the customer address in the checkout form"
|
|
960
|
+
})
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
export {
|
|
964
|
+
Mt as _,
|
|
965
|
+
$t as a,
|
|
966
|
+
St as o,
|
|
967
|
+
It as u
|
|
968
|
+
};
|