@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
@@ -0,0 +1,633 @@
1
+ import { openBlock as n, createElementBlock as b, createElementVNode as c, renderSlot as P, defineComponent as ee, computed as p, withKeys as ke, normalizeClass as k, Fragment as j, mergeProps as z, createBlock as i, resolveDynamicComponent as O, createCommentVNode as s, createVNode as E, normalizeProps as T, withCtx as m, createTextVNode as q, toDisplayString as F, renderList as ce, getCurrentInstance as Ce, ref as G, inject as we, unref as x, isRef as Se, createSlots as $e, guardReactiveProps as Ie, Teleport as Oe, normalizeStyle as re, nextTick as Ee } from "vue";
2
+ import { u as Z, a as Le, b as Me } from "./index.es-C7J3WGGo.mjs";
3
+ import { _ as Re, u as Be } from "./useLazyFloating.es-CycqRyeb.mjs";
4
+ import { e as De } from "./sanitization.es-C6dbuxUJ.mjs";
5
+ import { _ as U, s as Ve, u as Ae } from "./sorting.es-CVyKw23D.mjs";
6
+ import { d as W, S as Pe } from "./customElements-BTj4ii4f.mjs";
7
+ import { u as ze } from "./Label.vue.es-DtpLM1KH.mjs";
8
+ import { a as Te, _ } from "./Button.vue.es-Zw--kuaU.mjs";
9
+ import { _ as qe } from "./IconButton.vue.es-C8lYFx5_.mjs";
10
+ import { _ as Ne } from "./Chip.vue.es-D3UDSyXC.mjs";
11
+ import { a as Ke, i as Fe } from "./useService-BZcbUZHI.mjs";
12
+ import { _ as Ue } from "./Input.vue.es-D8Oj8MWv.mjs";
13
+ const je = (e) => `checkbox-item-${e}`, He = "select-search-done-button", Ge = {}, We = { class: "flex items-center pt-1" }, Ye = { class: "px-1.5 text-xs font-semibold text-subtle" };
14
+ function Je(e, C) {
15
+ return n(), b("div", We, [
16
+ C[0] || (C[0] = c("div", { class: "w-2 border-t" }, null, -1)),
17
+ c("span", Ye, [
18
+ P(e.$slots, "default")
19
+ ]),
20
+ C[1] || (C[1] = c("div", { class: "grow border-t" }, null, -1))
21
+ ]);
22
+ }
23
+ const Qe = /* @__PURE__ */ Re(Ge, [["render", Je]]), Xe = ["aria-selected", "aria-disabled", "data-testid"], Ze = ["id", "value", "checked", "disabled"], _e = ["for"], el = { class: "flex items-center gap-1" }, ll = { class: "flex flex-grow flex-col" }, tl = { class: "flex flex-grow gap-2" }, nl = { class: "flex flex-grow flex-col" }, al = { class: "flex flex-grow items-start justify-between gap-2" }, ol = { class: "flex items-center gap-2" }, sl = /* @__PURE__ */ ee({
24
+ __name: "SelectExtendedOption",
25
+ props: {
26
+ multiple: { type: Boolean },
27
+ inputValue: {},
28
+ condensed: { type: Boolean },
29
+ label: {},
30
+ checked: { type: Boolean },
31
+ disabled: { type: Boolean },
32
+ subLabel: {},
33
+ labelPrefixComponent: {},
34
+ labelSuffixComponent: {},
35
+ labelInlineComponent: {},
36
+ value: {},
37
+ labelSrOnly: { type: Boolean }
38
+ },
39
+ emits: ["value-changed"],
40
+ setup(e, { emit: C }) {
41
+ const L = C, o = e, $ = (h) => {
42
+ const R = h.target;
43
+ L("value-changed", {
44
+ value: R.value,
45
+ checked: R.checked
46
+ });
47
+ }, M = () => {
48
+ o.multiple || o.disabled || L("value-changed", { value: o.value });
49
+ }, y = p(() => je(o.value)), u = p(() => De(o.inputValue ?? ""));
50
+ return (h, R) => (n(), b("li", {
51
+ role: "option",
52
+ "aria-selected": e.checked,
53
+ "aria-disabled": e.disabled,
54
+ class: k([{ "hover:bg-gray-50": !e.disabled }, "relative flex"]),
55
+ "data-testid": y.value,
56
+ tabindex: "0",
57
+ onClick: M,
58
+ onKeydown: ke(M, ["enter"])
59
+ }, [
60
+ e.multiple ? (n(), b(j, { key: 0 }, [
61
+ c("input", z(h.$attrs, {
62
+ id: y.value,
63
+ ref: "inputRef",
64
+ value: e.value,
65
+ checked: e.checked,
66
+ disabled: e.disabled,
67
+ type: "checkbox",
68
+ 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"],
69
+ tabindex: "-1",
70
+ onChange: $
71
+ }), null, 16, Ze),
72
+ c("label", {
73
+ for: y.value,
74
+ class: k([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
75
+ }, [
76
+ c("div", el, [
77
+ e.labelPrefixComponent ? (n(), i(O(e.labelPrefixComponent.component), { key: 0 })) : s("", !0),
78
+ c("div", ll, [
79
+ c("div", tl, [
80
+ E(U, {
81
+ text: e.label,
82
+ search: u.value,
83
+ class: k(["font-semibold", { "sr-only": e.labelSrOnly }])
84
+ }, null, 8, ["text", "search", "class"]),
85
+ e.labelInlineComponent ? (n(), i(O(e.labelInlineComponent.component), T(z({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : s("", !0),
86
+ e.subLabel && e.condensed ? (n(), i(U, {
87
+ key: 1,
88
+ class: "text-xs text-secondary",
89
+ text: e.subLabel,
90
+ search: u.value
91
+ }, null, 8, ["text", "search"])) : s("", !0)
92
+ ]),
93
+ e.subLabel && !e.condensed ? (n(), i(U, {
94
+ key: 0,
95
+ class: "text-xs text-secondary",
96
+ text: e.subLabel,
97
+ search: u.value
98
+ }, null, 8, ["text", "search"])) : s("", !0)
99
+ ]),
100
+ e.labelSuffixComponent ? (n(), i(O(e.labelSuffixComponent.component), T(z({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : s("", !0)
101
+ ])
102
+ ], 10, _e)
103
+ ], 64)) : (n(), b("div", {
104
+ key: 1,
105
+ class: k(["flex w-full items-start gap-3 px-4 text-sm font-medium", [
106
+ e.condensed ? "p-2" : "py-3",
107
+ e.disabled ?? "cursor-not-allowed",
108
+ !e.disabled && "cursor-pointer"
109
+ ]])
110
+ }, [
111
+ e.labelPrefixComponent ? (n(), i(O(e.labelPrefixComponent.component), T(z({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : s("", !0),
112
+ c("div", nl, [
113
+ c("div", al, [
114
+ E(U, {
115
+ text: e.label,
116
+ search: u.value,
117
+ class: k(["font-semibold", { "text-disabled": e.disabled }])
118
+ }, null, 8, ["text", "search", "class"]),
119
+ c("div", ol, [
120
+ e.labelInlineComponent ? (n(), i(O(e.labelInlineComponent.component), T(z({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : s("", !0),
121
+ e.labelSuffixComponent ? (n(), i(O(e.labelSuffixComponent.component), T(z({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : s("", !0)
122
+ ])
123
+ ]),
124
+ e.subLabel && e.condensed ? (n(), i(U, {
125
+ key: 0,
126
+ class: "text-xs text-secondary",
127
+ text: e.subLabel,
128
+ search: u.value
129
+ }, null, 8, ["text", "search"])) : s("", !0),
130
+ e.subLabel && !e.condensed ? (n(), i(U, {
131
+ key: 1,
132
+ class: "text-xs text-secondary",
133
+ text: e.subLabel,
134
+ search: u.value
135
+ }, null, 8, ["text", "search"])) : s("", !0)
136
+ ])
137
+ ], 2))
138
+ ], 42, Xe));
139
+ }
140
+ }), ul = { class: "flex flex-col rounded-bl rounded-br" }, il = { key: 0 }, dl = {
141
+ key: 2,
142
+ class: "border-t border-gray-200"
143
+ }, rl = /* @__PURE__ */ ee({
144
+ __name: "SelectExtendedOptions",
145
+ props: {
146
+ model: {},
147
+ multiple: { type: Boolean },
148
+ condensed: { type: Boolean },
149
+ hasLargeDropdown: { type: Boolean },
150
+ inputValue: {},
151
+ addOnly: { type: Boolean },
152
+ options: {}
153
+ },
154
+ emits: ["value-changed"],
155
+ setup(e, { emit: C }) {
156
+ const L = e, o = C, $ = (u) => o("value-changed", u), M = p(
157
+ () => Ve(L.options, "group").reduce((u, h) => h.value === "" ? u : { ...u, [h.value]: h.group }, {})
158
+ ), y = p(() => L.options.length === 0);
159
+ return (u, h) => (n(), b("div", ul, [
160
+ y.value ? (n(), i(W, {
161
+ key: 0,
162
+ tag: "div",
163
+ "no-spacing": "",
164
+ variant: "body-sm",
165
+ color: "secondary",
166
+ class: "px-5 py-5"
167
+ }, {
168
+ default: m(() => [...h[0] || (h[0] = [
169
+ q("No results", -1)
170
+ ])]),
171
+ _: 1
172
+ })) : (n(), b("ul", {
173
+ key: 1,
174
+ class: k(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-76" : "max-h-48"]])
175
+ }, [
176
+ e.addOnly ? (n(), b("div", il, [
177
+ E(W, {
178
+ tag: "p",
179
+ "no-spacing": "",
180
+ variant: "body-sm",
181
+ color: "secondary",
182
+ class: "mt-1 px-3 py-2"
183
+ }, {
184
+ default: m(() => [...h[1] || (h[1] = [
185
+ q(F("You can only select currently unselected options."), -1)
186
+ ])]),
187
+ _: 1
188
+ })
189
+ ])) : s("", !0),
190
+ (n(!0), b(j, null, ce(e.options, ({
191
+ label: R,
192
+ subLabel: N,
193
+ value: d,
194
+ checked: g,
195
+ disabled: f,
196
+ labelInlineComponent: Y,
197
+ labelSuffixComponent: B,
198
+ labelSrOnly: w,
199
+ labelPrefixComponent: H,
200
+ hidden: J
201
+ }) => (n(), b(j, { key: d }, [
202
+ M.value[d] ? (n(), i(Qe, { key: 0 }, {
203
+ default: m(() => [
204
+ q(F(M.value[d]), 1)
205
+ ]),
206
+ _: 2
207
+ }, 1024)) : s("", !0),
208
+ J ? s("", !0) : (n(), i(sl, {
209
+ key: 1,
210
+ label: R,
211
+ "sub-label": N,
212
+ value: d,
213
+ checked: g,
214
+ disabled: f,
215
+ multiple: e.multiple,
216
+ condensed: e.condensed,
217
+ "label-suffix-component": B,
218
+ "label-prefix-component": H,
219
+ "label-inline-component": Y,
220
+ "label-sr-only": w,
221
+ "input-value": e.inputValue,
222
+ onValueChanged: $
223
+ }, null, 8, ["label", "sub-label", "value", "checked", "disabled", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-inline-component", "label-sr-only", "input-value"]))
224
+ ], 64))), 128))
225
+ ], 2)),
226
+ u.$slots["list-footer-content"] ? (n(), b("div", dl, [
227
+ P(u.$slots, "list-footer-content")
228
+ ])) : s("", !0)
229
+ ]));
230
+ }
231
+ }), cl = ["aria-expanded", "aria-controls"], fl = { class: "flex items-center gap-2" }, vl = { key: 1 }, ml = { class: "flex items-center gap-2" }, bl = {
232
+ key: 0,
233
+ class: "mt-2 flex flex-wrap gap-2"
234
+ }, pl = ["innerHTML"], yl = ["id"], hl = /* @__PURE__ */ ee({
235
+ __name: "SelectExtended",
236
+ props: {
237
+ addOnly: { type: Boolean, default: !1 },
238
+ disabled: { type: Boolean },
239
+ label: {},
240
+ labelScreenReaderOnly: { type: Boolean },
241
+ inputModel: {},
242
+ singleModelValue: {},
243
+ multiModelValue: {},
244
+ options: { default: () => [] },
245
+ optionsOrder: { default: () => ["asc", "asc"] },
246
+ optionsOrderProperties: { default: () => ["group", "label"] },
247
+ required: { type: Boolean, default: !1 },
248
+ rootClass: {},
249
+ size: { default: "md" },
250
+ withChips: { type: Boolean, default: !1 },
251
+ error: {},
252
+ hasReset: { type: Boolean },
253
+ name: {},
254
+ hasLargeDropdown: { type: Boolean, default: !1 },
255
+ showSuffixInClosedInput: { type: Boolean },
256
+ showSuffixLabelInInput: { type: Boolean },
257
+ showSubLabelInInput: { type: Boolean, default: !1 },
258
+ condensed: { type: Boolean },
259
+ form: {},
260
+ isInputReadOnly: { type: Boolean, default: !0 },
261
+ textContent: { default: () => ({
262
+ placeholderSingleOpen: "Search",
263
+ placeholderSingleEmpty: "Select an option",
264
+ placeholderMultipleOpen: "Search",
265
+ placeholderMultipleEmpty: "Select one or more options",
266
+ buttonAddLabel: "Add",
267
+ buttonClearLabel: "Reset",
268
+ buttonDoneLabel: "Done"
269
+ }) }
270
+ },
271
+ emits: ["update:inputModel", "update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"],
272
+ setup(e, { emit: C }) {
273
+ var L;
274
+ const o = e, $ = C, M = (L = Ce()) == null ? void 0 : L.vnode.props, y = Z(o, "inputModel", $), u = Z(o, "singleModelValue", $), h = Z(o, "multiModelValue", $), R = p(() => d.value ? h.value ?? [] : u.value ? [u.value] : []), N = G(o.multiModelValue ?? []), d = p(() => Array.isArray(o.multiModelValue)), g = p({
275
+ get: () => d.value ? N.value ?? [] : typeof u.value == "string" ? [u.value] : [],
276
+ set(l) {
277
+ d.value ? N.value = l : u.value = (l == null ? void 0 : l[0]) ?? "";
278
+ }
279
+ }), f = G(!1), Y = Ae(), B = G(), w = G(), H = we(Pe), J = (l) => o.options.filter((t) => l.some((r) => t.value === r)), K = p(() => J(g.value)), v = p(() => K.value[0]), fe = p(() => de.value[0]), le = p(
280
+ () => {
281
+ var l;
282
+ return !f.value && !d.value && ((l = v.value) == null ? void 0 : l.labelPrefixComponent);
283
+ }
284
+ ), ve = !!(M != null && M.onAddOption), me = () => {
285
+ $("add-option"), D();
286
+ }, be = p(() => {
287
+ var l, t, r, a;
288
+ if (!d.value) {
289
+ if (v.value)
290
+ return (l = v.value) == null ? void 0 : l.label;
291
+ if (K.value.length === 0)
292
+ return o.textContent.placeholderSingleEmpty;
293
+ }
294
+ if (d.value) {
295
+ if (K.value.length === 1)
296
+ return (t = v.value) == null ? void 0 : t.label;
297
+ if (K.value.length >= 2)
298
+ return `${(r = v.value) == null ? void 0 : r.label} +${K.value.length - 1}`;
299
+ if (K.value.length === 0)
300
+ return o.textContent.placeholderMultipleEmpty;
301
+ }
302
+ return (a = fe.value) == null ? void 0 : a.label;
303
+ }), D = () => {
304
+ d.value, f.value = !1;
305
+ }, te = ({
306
+ value: l,
307
+ checked: t
308
+ }) => {
309
+ let r;
310
+ d.value ? r = t ? [...g.value, l] : g.value.filter((a) => a !== l) : (r = [l], f.value = !1), g.value = r, $("change");
311
+ }, ne = p(() => o.disabled ? !1 : !!(o.addOnly && !Ke(N.value, o.multiModelValue) || !o.addOnly && g.value.length > 0 && !(g.value.length === 1 && g.value[0] === ""))), ae = () => {
312
+ if (o.addOnly) {
313
+ N.value = R.value, y.value = "", D();
314
+ return;
315
+ }
316
+ g.value = [], N.value = [], y.value && (y.value = ""), D();
317
+ }, oe = () => B.value ? Array.from(
318
+ B.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
319
+ ) : [], se = () => {
320
+ var l;
321
+ let t = document.activeElement;
322
+ for (; (l = t == null ? void 0 : t.shadowRoot) != null && l.activeElement; )
323
+ t = t.shadowRoot.activeElement;
324
+ return t;
325
+ }, Q = () => {
326
+ if (!w.value) return null;
327
+ let l = w.value.querySelector("input");
328
+ if (l) return l;
329
+ const t = w.value.querySelectorAll("*");
330
+ for (const r of t)
331
+ if (r.shadowRoot && (l = r.shadowRoot.querySelector("input"), l))
332
+ return l;
333
+ return null;
334
+ }, pe = (l) => {
335
+ var t, r;
336
+ if (!f.value) return;
337
+ const a = oe(), I = Q();
338
+ if (se() === I)
339
+ switch (l.key) {
340
+ case "ArrowDown":
341
+ a.length > 0 && (l.preventDefault(), (t = a[0]) == null || t.focus());
342
+ break;
343
+ case "Tab":
344
+ !l.shiftKey && a.length > 0 && (l.preventDefault(), (r = a[0]) == null || r.focus());
345
+ break;
346
+ case "Escape":
347
+ l.preventDefault(), D();
348
+ break;
349
+ }
350
+ }, ye = (l) => {
351
+ var t, r, a, I;
352
+ const S = oe(), X = se(), V = S.indexOf(X), A = Q();
353
+ switch (l.key) {
354
+ case "ArrowDown":
355
+ V < S.length - 1 && (l.preventDefault(), (t = S[V + 1]) == null || t.focus());
356
+ break;
357
+ case "ArrowUp":
358
+ l.preventDefault(), V <= 0 ? A == null || A.focus() : (r = S[V - 1]) == null || r.focus();
359
+ break;
360
+ case "Tab":
361
+ l.shiftKey ? V <= 0 ? (l.preventDefault(), A == null || A.focus()) : (l.preventDefault(), (a = S[V - 1]) == null || a.focus()) : V >= S.length - 1 ? (l.preventDefault(), D(), A == null || A.focus()) : (l.preventDefault(), (I = S[V + 1]) == null || I.focus());
362
+ break;
363
+ case "Escape":
364
+ l.preventDefault(), D(), Ee(() => {
365
+ A == null || A.focus();
366
+ });
367
+ break;
368
+ }
369
+ };
370
+ Le("mousedown", (l) => {
371
+ const t = l.composedPath();
372
+ B.value && t.includes(B.value) || w.value && t.includes(w.value) || f.value && D();
373
+ });
374
+ const { floatingStyles: he } = Be(w, B, {
375
+ placement: "bottom",
376
+ middleware: ({ offset: l, flip: t }) => [
377
+ l(4),
378
+ t({
379
+ mainAxis: !0
380
+ })
381
+ ]
382
+ }), ue = ze("search-select-options-"), { width: xe } = Me(w), ge = () => {
383
+ const l = Q();
384
+ l && l.focus();
385
+ }, ie = p(() => o.options.map((l) => ({
386
+ ...l,
387
+ checked: K.value.some((t) => t.value === l.value),
388
+ disabled: o.disabled || !o.disabled && o.addOnly && !!R.value.includes(l.value)
389
+ }))), de = p(
390
+ () => ie.value.filter((l) => {
391
+ var t;
392
+ return (t = g.value) == null ? void 0 : t.includes(l.value);
393
+ })
394
+ );
395
+ return (l, t) => {
396
+ var r;
397
+ return n(), b(j, null, [
398
+ c("div", {
399
+ ref_key: "wrapperRef",
400
+ ref: w,
401
+ class: k(["relative flex items-end", {
402
+ rootClass: e.rootClass,
403
+ "z-30": f.value,
404
+ "cursor-text": !e.disabled
405
+ }]),
406
+ role: "combobox",
407
+ "aria-expanded": f.value,
408
+ "aria-haspopup": !0,
409
+ "aria-controls": x(ue),
410
+ onKeydown: pe,
411
+ onClick: ge
412
+ }, [
413
+ E(x(Ue), {
414
+ modelValue: x(y),
415
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => Se(y) ? y.value = a : null),
416
+ readonly: e.isInputReadOnly,
417
+ required: e.required,
418
+ label: e.label,
419
+ name: e.name,
420
+ form: e.form,
421
+ "label-screen-reader-only": e.labelScreenReaderOnly,
422
+ placeholder: be.value,
423
+ class: k(["grow !outline-none", { "cursor-default": e.isInputReadOnly }]),
424
+ "wrapper-class": {
425
+ "border-transparent border-b-gray-200 focus-within:border-b relative z-10": f.value
426
+ },
427
+ "input-class": !f.value && (!d.value && x(u) || d.value && !x(Fe)(e.multiModelValue)) ? "placeholder:text-default" : "",
428
+ "suffix-class": "border-l-0 pl-0",
429
+ disabled: e.disabled,
430
+ size: e.size,
431
+ error: e.error,
432
+ "prefix-has-border": !1,
433
+ "aria-autocomplete": "list",
434
+ onFocus: t[1] || (t[1] = () => f.value = !0),
435
+ onBlur: t[2] || (t[2] = (a) => l.$emit("blur"))
436
+ }, $e({
437
+ "label-suffix": m(() => [
438
+ P(l.$slots, "label-suffix")
439
+ ]),
440
+ suffix: m(() => {
441
+ var a, I;
442
+ return [
443
+ c("div", ml, [
444
+ !f.value && !d.value && ((a = v.value) != null && a.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (n(), i(O(v.value.labelInlineComponent.component), T(z({ key: 0 }, v.value.labelInlineComponent.props)), null, 16)) : s("", !0),
445
+ !f.value && !d.value && ((I = v.value) != null && I.labelSuffixComponent) && e.showSuffixInClosedInput ? (n(), i(O(v.value.labelSuffixComponent.component), T(z({ key: 1 }, v.value.labelSuffixComponent.props)), null, 16)) : s("", !0),
446
+ !e.disabled && (x(y) || ne.value && e.hasReset) ? (n(), i(qe, {
447
+ key: 2,
448
+ icon: "close",
449
+ size: "xs",
450
+ intent: "subtle",
451
+ type: "button",
452
+ onClick: ae
453
+ })) : s("", !0),
454
+ E(Te, {
455
+ icon: "keyboard_arrow_down",
456
+ size: "xs",
457
+ class: k(["transition-transform", { "rotate-180": f.value }])
458
+ }, null, 8, ["class"])
459
+ ])
460
+ ];
461
+ }),
462
+ _: 2
463
+ }, [
464
+ e.showSubLabelInInput && ((r = v.value) != null && r.subLabel) ? {
465
+ name: "input",
466
+ fn: m(() => [
467
+ c("div", {
468
+ class: k(["pointer-events-none absolute inset-0 bg-white", { "px-4 py-3": e.size === "xl" }])
469
+ }, [
470
+ E(W, {
471
+ tag: "span",
472
+ class: "block",
473
+ variant: "body-sm",
474
+ weight: "semibold"
475
+ }, {
476
+ default: m(() => {
477
+ var a;
478
+ return [
479
+ q(F((a = v.value) == null ? void 0 : a.label), 1)
480
+ ];
481
+ }),
482
+ _: 1
483
+ }),
484
+ E(W, {
485
+ tag: "span",
486
+ class: "block",
487
+ variant: "body-xs",
488
+ color: "secondary"
489
+ }, {
490
+ default: m(() => {
491
+ var a;
492
+ return [
493
+ q(F((a = v.value) == null ? void 0 : a.subLabel), 1)
494
+ ];
495
+ }),
496
+ _: 1
497
+ })
498
+ ], 2)
499
+ ]),
500
+ key: "0"
501
+ } : void 0,
502
+ l.$slots.tooltip ? {
503
+ name: "tooltip",
504
+ fn: m(() => [
505
+ P(l.$slots, "tooltip")
506
+ ]),
507
+ key: "1"
508
+ } : void 0,
509
+ le.value || l.$slots.prefix ? {
510
+ name: "prefix",
511
+ fn: m(() => {
512
+ var a;
513
+ return [
514
+ c("div", fl, [
515
+ l.$slots.prefix ? P(l.$slots, "prefix", {}, void 0, void 0, 0) : le.value && ((a = v.value) != null && a.labelPrefixComponent) ? (n(), b("div", vl, [
516
+ (n(), i(O(v.value.labelPrefixComponent.component), T(Ie(v.value.labelPrefixComponent.props)), null, 16))
517
+ ])) : s("", !0)
518
+ ])
519
+ ];
520
+ }),
521
+ key: "2"
522
+ } : void 0,
523
+ l.$slots.helper ? {
524
+ name: "helper",
525
+ fn: m(() => [
526
+ P(l.$slots, "helper")
527
+ ]),
528
+ key: "3"
529
+ } : void 0
530
+ ]), 1032, ["modelValue", "readonly", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "class", "disabled", "size", "error"])
531
+ ], 42, cl),
532
+ e.withChips ? (n(), b("div", bl, [
533
+ (n(!0), b(j, null, ce(de.value, ({ value: a, label: I, disabled: S }) => (n(), i(Ne, {
534
+ key: a,
535
+ removable: !e.disabled && !S,
536
+ onRemoved: (X) => te({ value: a, checked: !1 })
537
+ }, {
538
+ default: m(() => [
539
+ c("span", { innerHTML: I }, null, 8, pl)
540
+ ]),
541
+ _: 2
542
+ }, 1032, ["removable", "onRemoved"]))), 128))
543
+ ])) : s("", !0),
544
+ x(Y) && x(H) ? (n(), i(Oe, {
545
+ key: 1,
546
+ to: x(H)
547
+ }, [
548
+ f.value && !e.disabled ? (n(), b("div", {
549
+ key: 0,
550
+ id: x(ue),
551
+ ref_key: "optionsRef",
552
+ ref: B,
553
+ role: "listbox",
554
+ style: re(x(he)),
555
+ class: "z-70 rounded bg-white drop-shadow-md",
556
+ onMouseenter: t[3] || (t[3] = (a) => f.value = !0),
557
+ onKeydown: ye
558
+ }, [
559
+ c("div", {
560
+ class: "rounded pt-0",
561
+ style: re({ width: `${x(xe)}px` })
562
+ }, [
563
+ E(rl, {
564
+ options: ie.value,
565
+ multiple: d.value,
566
+ model: g.value,
567
+ "add-only": e.addOnly,
568
+ "allows-multiple-values": !!d.value,
569
+ condensed: e.condensed,
570
+ "has-large-dropdown": e.hasLargeDropdown,
571
+ "input-value": x(y),
572
+ onValueChanged: te
573
+ }, {
574
+ "list-footer-content": m(() => [
575
+ ve ? (n(), i(_, {
576
+ key: 0,
577
+ intent: "subtle",
578
+ class: "w-full",
579
+ type: "button",
580
+ "icon-prefix": "add",
581
+ onClick: me
582
+ }, {
583
+ default: m(() => [
584
+ q(F(e.textContent.buttonAddLabel), 1)
585
+ ]),
586
+ _: 1
587
+ })) : s("", !0),
588
+ d.value ? (n(), b("div", {
589
+ key: 1,
590
+ class: k(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
591
+ }, [
592
+ ne.value ? (n(), i(_, {
593
+ key: 0,
594
+ type: "button",
595
+ intent: "subtle",
596
+ size: "sm",
597
+ class: "ml-2",
598
+ onClick: ae
599
+ }, {
600
+ default: m(() => [
601
+ q(F(e.textContent.buttonClearLabel), 1)
602
+ ]),
603
+ _: 1
604
+ })) : s("", !0),
605
+ c("div", null, [
606
+ P(l.$slots, "list-footer-content")
607
+ ]),
608
+ E(_, {
609
+ type: "button",
610
+ size: "sm",
611
+ class: "mr-2",
612
+ "data-testid": x(He),
613
+ onClick: D
614
+ }, {
615
+ default: m(() => [
616
+ q(F(e.textContent.buttonDoneLabel), 1)
617
+ ]),
618
+ _: 1
619
+ }, 8, ["data-testid"])
620
+ ], 2)) : P(l.$slots, "list-footer-content", {}, void 0, void 0, 2)
621
+ ]),
622
+ _: 3
623
+ }, 8, ["options", "multiple", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown", "input-value"])
624
+ ], 4)
625
+ ], 44, yl)) : s("", !0)
626
+ ], 8, ["to"])) : s("", !0)
627
+ ], 64);
628
+ };
629
+ }
630
+ }), Bl = hl;
631
+ export {
632
+ Bl as S
633
+ };
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createSolvimonCore as i, getRegisteredComponentIds as n, getRegisteredScreenIds as r } from "./core/index.mjs";
2
- import { d as t } from "./Checkout.entry.ce-BZ1rYQvt.mjs";
2
+ import { d as t } from "./Checkout.entry.ce-DsGl-5aR.mjs";
3
3
  import { defineSolvimonCustomerOverview as d } from "./screens/CustomerOverview/CustomerOverview.mjs";
4
4
  import { defineSolvimonSubscriptionManagement as v } from "./screens/SubscriptionManagement/SubscriptionManagement.mjs";
5
- import { d as p } from "./SubscriptionDetails.entry.ce-DufQX3uI.mjs";
5
+ import { d as p } from "./SubscriptionDetails.entry.ce-D5SwM0YS.mjs";
6
6
  import { defineSolvimonPayInvoice as a } from "./screens/PayInvoice/PayInvoice.mjs";
7
7
  import { defineSolvimonPaymentMethodsManagement as c } from "./screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs";
8
8
  import { defineSolvimonBillingInformation as g } from "./components/BillingInformation/BillingInformation.mjs";
@@ -1,5 +1,5 @@
1
- import { a as g } from "./api.es-QaC926Xu.mjs";
2
- import { c as _, u as w, b as a, h } from "./customElements-Di3zwlEU.mjs";
1
+ import { w as g } from "./api.es-qgvzNMU-.mjs";
2
+ import { c as w, u as _, b as a, k as h } from "./customElements-BTj4ii4f.mjs";
3
3
  const U = (n, t) => {
4
4
  const r = window.URL.createObjectURL(n);
5
5
  P(r, t);
@@ -10,7 +10,7 @@ const U = (n, t) => {
10
10
  }, 250);
11
11
  };
12
12
  function y() {
13
- const n = _(), t = w(), r = a(
13
+ const n = w(), t = _(), r = a(
14
14
  t.apiUrls.transaction,
15
15
  "portal",
16
16
  "invoices",