@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
@@ -1,688 +0,0 @@
1
- import { openBlock as t, createElementBlock as v, createElementVNode as c, renderSlot as T, defineComponent as Y, computed as h, withKeys as ke, normalizeClass as $, Fragment as F, mergeProps as H, createBlock as i, resolveDynamicComponent as E, createCommentVNode as u, createVNode as S, normalizeProps as q, withCtx as y, createTextVNode as L, toDisplayString as R, renderList as ce, getCurrentInstance as Ce, ref as G, inject as Se, unref as x, isRef as $e, createSlots as Ie, guardReactiveProps as Me, Teleport as Oe, normalizeStyle as de, nextTick as Ve } from "vue";
2
- import { u as _, c as Ee, d as Le } from "./index.es-CXkP_k3u.mjs";
3
- import { _ as Re, u as Be, a as De, o as Pe, f as ze } from "./floating-ui.vue.es-CYt0fSY7.mjs";
4
- import { e as Ae } from "./sanitization.es-C6dbuxUJ.mjs";
5
- import { _ as U, s as Te, u as He } from "./sorting.es-qtEN8J8T.mjs";
6
- import { _ as j, S as qe, a as Ke } from "./customElements-Di3zwlEU.mjs";
7
- import { u as Ne } from "./cn.es-2bVdkiFV.mjs";
8
- import { a as fe, _ as ee } from "./Button.vue.es-rh6mITmN.mjs";
9
- import { _ as Ue } from "./IconButton.vue.es-oe4MVBK1.mjs";
10
- import { _ as Fe } from "./Chip.vue.es-Cn2R_0mE.mjs";
11
- import { i as je, a as Ze } from "./useService-B0OQJmif.mjs";
12
- import { _ as Ge } from "./Input.vue.es-DAlPmtE_.mjs";
13
- const Ye = (e) => `checkbox-item-${e}`, We = "select-search-done-button", Je = {}, Qe = { class: "flex items-center pt-1" }, Xe = { class: "px-1.5 text-xs font-semibold text-subtle" };
14
- function _e(e, w) {
15
- return t(), v("div", Qe, [
16
- w[0] || (w[0] = c("div", { class: "w-2 border-t" }, null, -1)),
17
- c("span", Xe, [
18
- T(e.$slots, "default")
19
- ]),
20
- w[1] || (w[1] = c("div", { class: "grow border-t" }, null, -1))
21
- ]);
22
- }
23
- const el = /* @__PURE__ */ Re(Je, [["render", _e]]), ll = ["aria-selected", "aria-disabled", "data-testid"], tl = ["id", "value", "checked", "disabled"], nl = ["for"], al = { class: "flex items-center gap-1" }, ol = { class: "flex flex-grow flex-col" }, sl = { class: "flex flex-grow gap-2" }, ul = { class: "flex flex-grow flex-col" }, il = { class: "flex flex-grow items-start justify-between gap-2" }, rl = { class: "flex items-center gap-2" }, dl = /* @__PURE__ */ Y({
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: w }) {
41
- const C = w, o = e, g = (m) => {
42
- const B = m.target;
43
- C("value-changed", {
44
- value: B.value,
45
- checked: B.checked
46
- });
47
- }, I = () => {
48
- o.multiple || o.disabled || C("value-changed", { value: o.value });
49
- }, f = h(() => Ye(o.value)), s = h(() => Ae(o.inputValue ?? ""));
50
- return (m, B) => (t(), v("li", {
51
- role: "option",
52
- "aria-selected": e.checked,
53
- "aria-disabled": e.disabled,
54
- class: $([{ "hover:bg-gray-50": !e.disabled }, "relative flex"]),
55
- "data-testid": f.value,
56
- tabindex: "0",
57
- onClick: I,
58
- onKeydown: ke(I, ["enter"])
59
- }, [
60
- e.multiple ? (t(), v(F, { key: 0 }, [
61
- c("input", H(m.$attrs, {
62
- id: f.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: g
71
- }), null, 16, tl),
72
- c("label", {
73
- for: f.value,
74
- class: $([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
75
- }, [
76
- c("div", al, [
77
- e.labelPrefixComponent ? (t(), i(E(e.labelPrefixComponent.component), { key: 0 })) : u("", !0),
78
- c("div", ol, [
79
- c("div", sl, [
80
- S(U, {
81
- text: e.label,
82
- search: s.value,
83
- class: $(["font-semibold", { "sr-only": e.labelSrOnly }])
84
- }, null, 8, ["text", "search", "class"]),
85
- e.labelInlineComponent ? (t(), i(E(e.labelInlineComponent.component), q(H({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : u("", !0),
86
- e.subLabel && e.condensed ? (t(), i(U, {
87
- key: 1,
88
- class: "text-xs text-secondary",
89
- text: e.subLabel,
90
- search: s.value
91
- }, null, 8, ["text", "search"])) : u("", !0)
92
- ]),
93
- e.subLabel && !e.condensed ? (t(), i(U, {
94
- key: 0,
95
- class: "text-xs text-secondary",
96
- text: e.subLabel,
97
- search: s.value
98
- }, null, 8, ["text", "search"])) : u("", !0)
99
- ]),
100
- e.labelSuffixComponent ? (t(), i(E(e.labelSuffixComponent.component), q(H({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : u("", !0)
101
- ])
102
- ], 10, nl)
103
- ], 64)) : (t(), v("div", {
104
- key: 1,
105
- class: $(["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 ? (t(), i(E(e.labelPrefixComponent.component), q(H({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : u("", !0),
112
- c("div", ul, [
113
- c("div", il, [
114
- S(U, {
115
- text: e.label,
116
- search: s.value,
117
- class: $(["font-semibold", { "text-disabled": e.disabled }])
118
- }, null, 8, ["text", "search", "class"]),
119
- c("div", rl, [
120
- e.labelInlineComponent ? (t(), i(E(e.labelInlineComponent.component), q(H({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : u("", !0),
121
- e.labelSuffixComponent ? (t(), i(E(e.labelSuffixComponent.component), q(H({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : u("", !0)
122
- ])
123
- ]),
124
- e.subLabel && e.condensed ? (t(), i(U, {
125
- key: 0,
126
- class: "text-xs text-secondary",
127
- text: e.subLabel,
128
- search: s.value
129
- }, null, 8, ["text", "search"])) : u("", !0),
130
- e.subLabel && !e.condensed ? (t(), i(U, {
131
- key: 1,
132
- class: "text-xs text-secondary",
133
- text: e.subLabel,
134
- search: s.value
135
- }, null, 8, ["text", "search"])) : u("", !0)
136
- ])
137
- ], 2))
138
- ], 42, ll));
139
- }
140
- }), cl = { class: "flex flex-col rounded-bl rounded-br" }, fl = { key: 0 }, vl = {
141
- key: 2,
142
- class: "border-t border-gray-200"
143
- }, ml = /* @__PURE__ */ Y({
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: w }) {
156
- const C = e, o = w, g = (s) => o("value-changed", s), I = h(
157
- () => Te(C.options, "group").reduce((s, m) => m.value === "" ? s : { ...s, [m.value]: m.group }, {})
158
- ), f = h(() => C.options.length === 0);
159
- return (s, m) => (t(), v("div", cl, [
160
- f.value ? (t(), i(j, {
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: y(() => [...m[0] || (m[0] = [
169
- L("No results", -1)
170
- ])]),
171
- _: 1
172
- })) : (t(), v("ul", {
173
- key: 1,
174
- class: $(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-76" : "max-h-48"]])
175
- }, [
176
- e.addOnly ? (t(), v("div", fl, [
177
- S(j, {
178
- tag: "p",
179
- "no-spacing": "",
180
- variant: "body-sm",
181
- color: "secondary",
182
- class: "mt-1 px-3 py-2"
183
- }, {
184
- default: y(() => [...m[1] || (m[1] = [
185
- L(R("You can only select currently unselected options."), -1)
186
- ])]),
187
- _: 1
188
- })
189
- ])) : u("", !0),
190
- (t(!0), v(F, null, ce(e.options, ({
191
- label: B,
192
- subLabel: K,
193
- value: r,
194
- checked: k,
195
- disabled: p,
196
- labelInlineComponent: W,
197
- labelSuffixComponent: D,
198
- labelSrOnly: M,
199
- labelPrefixComponent: Z,
200
- hidden: J
201
- }) => (t(), v(F, { key: r }, [
202
- I.value[r] ? (t(), i(el, { key: 0 }, {
203
- default: y(() => [
204
- L(R(I.value[r]), 1)
205
- ]),
206
- _: 2
207
- }, 1024)) : u("", !0),
208
- J ? u("", !0) : (t(), i(dl, {
209
- key: 1,
210
- label: B,
211
- "sub-label": K,
212
- value: r,
213
- checked: k,
214
- disabled: p,
215
- multiple: e.multiple,
216
- condensed: e.condensed,
217
- "label-suffix-component": D,
218
- "label-prefix-component": Z,
219
- "label-inline-component": W,
220
- "label-sr-only": M,
221
- "input-value": e.inputValue,
222
- onValueChanged: g
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
- s.$slots["list-footer-content"] ? (t(), v("div", vl, [
227
- T(s.$slots, "list-footer-content")
228
- ])) : u("", !0)
229
- ]));
230
- }
231
- }), pl = ["aria-expanded", "aria-controls"], bl = { class: "flex items-center gap-2" }, yl = { key: 1 }, hl = { class: "flex items-center gap-2" }, xl = {
232
- key: 0,
233
- class: "mt-2 flex flex-wrap gap-2"
234
- }, gl = ["innerHTML"], wl = ["id"], ql = /* @__PURE__ */ Y({
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: w }) {
273
- var C;
274
- const o = e, g = w, I = (C = Ce()) == null ? void 0 : C.vnode.props, f = _(o, "inputModel", g), s = _(o, "singleModelValue", g), m = _(o, "multiModelValue", g), B = h(() => r.value ? m.value ?? [] : s.value ? [s.value] : []), K = G(o.multiModelValue ?? []), r = h(() => Array.isArray(o.multiModelValue)), k = h({
275
- get: () => r.value ? K.value ?? [] : typeof s.value == "string" ? [s.value] : [],
276
- set(l) {
277
- r.value ? K.value = l : s.value = (l == null ? void 0 : l[0]) ?? "";
278
- }
279
- }), p = G(!1), W = He(), D = G(), M = G(), Z = Se(qe), J = (l) => o.options.filter((n) => l.some((d) => n.value === d)), N = h(() => J(k.value)), b = h(() => N.value[0]), ve = h(() => re.value[0]), le = h(
280
- () => {
281
- var l;
282
- return !p.value && !r.value && ((l = b.value) == null ? void 0 : l.labelPrefixComponent);
283
- }
284
- ), me = !!(I != null && I.onAddOption), pe = () => {
285
- g("add-option"), P();
286
- }, be = h(() => {
287
- var l, n, d, a;
288
- if (!r.value) {
289
- if (b.value)
290
- return (l = b.value) == null ? void 0 : l.label;
291
- if (N.value.length === 0)
292
- return o.textContent.placeholderSingleEmpty;
293
- }
294
- if (r.value) {
295
- if (N.value.length === 1)
296
- return (n = b.value) == null ? void 0 : n.label;
297
- if (N.value.length >= 2)
298
- return `${(d = b.value) == null ? void 0 : d.label} +${N.value.length - 1}`;
299
- if (N.value.length === 0)
300
- return o.textContent.placeholderMultipleEmpty;
301
- }
302
- return (a = ve.value) == null ? void 0 : a.label;
303
- }), P = () => {
304
- r.value, p.value = !1;
305
- }, te = ({
306
- value: l,
307
- checked: n
308
- }) => {
309
- let d;
310
- r.value ? d = n ? [...k.value, l] : k.value.filter((a) => a !== l) : (d = [l], p.value = !1), k.value = d, g("change");
311
- }, ne = h(() => !!(o.addOnly && !je(K.value, o.multiModelValue) || !o.addOnly && k.value.length > 0 && !o.disabled && !(k.value.length === 1 && k.value[0] === ""))), ae = () => {
312
- if (o.addOnly) {
313
- K.value = B.value, f.value = "", P();
314
- return;
315
- }
316
- k.value = [], K.value = [], f.value && (f.value = ""), P();
317
- }, oe = () => D.value ? Array.from(
318
- D.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
319
- ) : [], se = () => {
320
- var l;
321
- let n = document.activeElement;
322
- for (; (l = n == null ? void 0 : n.shadowRoot) != null && l.activeElement; )
323
- n = n.shadowRoot.activeElement;
324
- return n;
325
- }, Q = () => {
326
- if (!M.value) return null;
327
- let l = M.value.querySelector("input");
328
- if (l) return l;
329
- const n = M.value.querySelectorAll("*");
330
- for (const d of n)
331
- if (d.shadowRoot && (l = d.shadowRoot.querySelector("input"), l))
332
- return l;
333
- return null;
334
- }, ye = (l) => {
335
- var n, d;
336
- if (!p.value) return;
337
- const a = oe(), V = Q();
338
- if (se() === V)
339
- switch (l.key) {
340
- case "ArrowDown":
341
- a.length > 0 && (l.preventDefault(), (n = a[0]) == null || n.focus());
342
- break;
343
- case "Tab":
344
- !l.shiftKey && a.length > 0 && (l.preventDefault(), (d = a[0]) == null || d.focus());
345
- break;
346
- case "Escape":
347
- l.preventDefault(), P();
348
- break;
349
- }
350
- }, he = (l) => {
351
- var n, d, a, V;
352
- const O = oe(), X = se(), z = O.indexOf(X), A = Q();
353
- switch (l.key) {
354
- case "ArrowDown":
355
- z < O.length - 1 && (l.preventDefault(), (n = O[z + 1]) == null || n.focus());
356
- break;
357
- case "ArrowUp":
358
- l.preventDefault(), z <= 0 ? A == null || A.focus() : (d = O[z - 1]) == null || d.focus();
359
- break;
360
- case "Tab":
361
- l.shiftKey ? z <= 0 ? (l.preventDefault(), A == null || A.focus()) : (l.preventDefault(), (a = O[z - 1]) == null || a.focus()) : z >= O.length - 1 ? (l.preventDefault(), P(), A == null || A.focus()) : (l.preventDefault(), (V = O[z + 1]) == null || V.focus());
362
- break;
363
- case "Escape":
364
- l.preventDefault(), P(), Ve(() => {
365
- A == null || A.focus();
366
- });
367
- break;
368
- }
369
- };
370
- Ee("mousedown", (l) => {
371
- const n = l.composedPath();
372
- D.value && n.includes(D.value) || M.value && n.includes(M.value) || p.value && P();
373
- });
374
- const { floatingStyles: xe } = Be(M, D, {
375
- whileElementsMounted: De,
376
- placement: "bottom",
377
- middleware: [
378
- Pe(4),
379
- ze({
380
- mainAxis: !0
381
- })
382
- ]
383
- }), ue = Ne("search-select-options-"), { width: ge } = Le(M), we = () => {
384
- const l = Q();
385
- l && l.focus();
386
- }, ie = h(() => o.options.map((l) => ({
387
- ...l,
388
- checked: N.value.some((n) => n.value === l.value),
389
- disabled: o.disabled || !o.disabled && o.addOnly && !!B.value.includes(l.value)
390
- }))), re = h(
391
- () => ie.value.filter((l) => {
392
- var n;
393
- return (n = k.value) == null ? void 0 : n.includes(l.value);
394
- })
395
- );
396
- return (l, n) => {
397
- var d;
398
- return t(), v(F, null, [
399
- c("div", {
400
- ref_key: "wrapperRef",
401
- ref: M,
402
- class: $(["relative flex items-end", {
403
- rootClass: e.rootClass,
404
- "z-30": p.value,
405
- "cursor-text": !e.disabled
406
- }]),
407
- role: "combobox",
408
- "aria-expanded": p.value,
409
- "aria-haspopup": !0,
410
- "aria-controls": x(ue),
411
- onKeydown: ye,
412
- onClick: we
413
- }, [
414
- S(x(Ge), {
415
- modelValue: x(f),
416
- "onUpdate:modelValue": n[0] || (n[0] = (a) => $e(f) ? f.value = a : null),
417
- readonly: e.isInputReadOnly,
418
- required: e.required,
419
- label: e.label,
420
- name: e.name,
421
- form: e.form,
422
- "label-screen-reader-only": e.labelScreenReaderOnly,
423
- placeholder: be.value,
424
- class: $(["grow !outline-none", { "cursor-default": e.isInputReadOnly }]),
425
- "wrapper-class": {
426
- "border-transparent border-b-gray-200 focus-within:border-b relative z-10": p.value
427
- },
428
- "input-class": !p.value && (!r.value && x(s) || r.value && !x(Ze)(e.multiModelValue)) ? "placeholder:text-default" : "",
429
- "suffix-class": "border-l-0 pl-0",
430
- disabled: e.disabled,
431
- size: e.size,
432
- error: e.error,
433
- "prefix-has-border": !1,
434
- "aria-autocomplete": "list",
435
- onFocus: n[1] || (n[1] = () => p.value = !0),
436
- onBlur: n[2] || (n[2] = (a) => l.$emit("blur"))
437
- }, Ie({
438
- "label-suffix": y(() => [
439
- T(l.$slots, "label-suffix")
440
- ]),
441
- suffix: y(() => {
442
- var a, V;
443
- return [
444
- c("div", hl, [
445
- !p.value && !r.value && ((a = b.value) != null && a.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (t(), i(E(b.value.labelInlineComponent.component), q(H({ key: 0 }, b.value.labelInlineComponent.props)), null, 16)) : u("", !0),
446
- !p.value && !r.value && ((V = b.value) != null && V.labelSuffixComponent) && e.showSuffixInClosedInput ? (t(), i(E(b.value.labelSuffixComponent.component), q(H({ key: 1 }, b.value.labelSuffixComponent.props)), null, 16)) : u("", !0),
447
- x(f) || ne.value && e.hasReset ? (t(), i(Ue, {
448
- key: 2,
449
- icon: "close",
450
- size: "xs",
451
- intent: "subtle",
452
- type: "button",
453
- onClick: ae
454
- })) : u("", !0),
455
- S(fe, {
456
- icon: "keyboard_arrow_down",
457
- size: "xs",
458
- class: $(["transition-transform", { "rotate-180": p.value }])
459
- }, null, 8, ["class"])
460
- ])
461
- ];
462
- }),
463
- _: 2
464
- }, [
465
- e.showSubLabelInInput && ((d = b.value) != null && d.subLabel) ? {
466
- name: "input",
467
- fn: y(() => [
468
- c("div", {
469
- class: $(["pointer-events-none absolute inset-0 bg-white", { "px-4 py-3": e.size === "xl" }])
470
- }, [
471
- S(j, {
472
- tag: "span",
473
- class: "block",
474
- variant: "body-sm",
475
- weight: "semibold"
476
- }, {
477
- default: y(() => {
478
- var a;
479
- return [
480
- L(R((a = b.value) == null ? void 0 : a.label), 1)
481
- ];
482
- }),
483
- _: 1
484
- }),
485
- S(j, {
486
- tag: "span",
487
- class: "block",
488
- variant: "body-xs",
489
- color: "secondary"
490
- }, {
491
- default: y(() => {
492
- var a;
493
- return [
494
- L(R((a = b.value) == null ? void 0 : a.subLabel), 1)
495
- ];
496
- }),
497
- _: 1
498
- })
499
- ], 2)
500
- ]),
501
- key: "0"
502
- } : void 0,
503
- l.$slots.tooltip ? {
504
- name: "tooltip",
505
- fn: y(() => [
506
- T(l.$slots, "tooltip")
507
- ]),
508
- key: "1"
509
- } : void 0,
510
- le.value || l.$slots.prefix ? {
511
- name: "prefix",
512
- fn: y(() => {
513
- var a;
514
- return [
515
- c("div", bl, [
516
- l.$slots.prefix ? T(l.$slots, "prefix", {}, void 0, void 0, 0) : le.value && ((a = b.value) != null && a.labelPrefixComponent) ? (t(), v("div", yl, [
517
- (t(), i(E(b.value.labelPrefixComponent.component), q(Me(b.value.labelPrefixComponent.props)), null, 16))
518
- ])) : u("", !0)
519
- ])
520
- ];
521
- }),
522
- key: "2"
523
- } : void 0,
524
- l.$slots.helper ? {
525
- name: "helper",
526
- fn: y(() => [
527
- T(l.$slots, "helper")
528
- ]),
529
- key: "3"
530
- } : void 0
531
- ]), 1032, ["modelValue", "readonly", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "class", "disabled", "size", "error"])
532
- ], 42, pl),
533
- e.withChips ? (t(), v("div", xl, [
534
- (t(!0), v(F, null, ce(re.value, ({ value: a, label: V, disabled: O }) => (t(), i(Fe, {
535
- key: a,
536
- removable: !O,
537
- onRemoved: (X) => te({ value: a, checked: !1 })
538
- }, {
539
- default: y(() => [
540
- c("span", { innerHTML: V }, null, 8, gl)
541
- ]),
542
- _: 2
543
- }, 1032, ["removable", "onRemoved"]))), 128))
544
- ])) : u("", !0),
545
- x(W) && x(Z) ? (t(), i(Oe, {
546
- key: 1,
547
- to: x(Z)
548
- }, [
549
- p.value && !e.disabled ? (t(), v("div", {
550
- key: 0,
551
- id: x(ue),
552
- ref_key: "optionsRef",
553
- ref: D,
554
- role: "listbox",
555
- style: de(x(xe)),
556
- class: "z-70 rounded bg-white drop-shadow-md",
557
- onMouseenter: n[3] || (n[3] = (a) => p.value = !0),
558
- onKeydown: he
559
- }, [
560
- c("div", {
561
- class: "rounded pt-0",
562
- style: de({ width: `${x(ge)}px` })
563
- }, [
564
- S(ml, {
565
- options: ie.value,
566
- multiple: r.value,
567
- model: k.value,
568
- "add-only": e.addOnly,
569
- "allows-multiple-values": !!r.value,
570
- condensed: e.condensed,
571
- "has-large-dropdown": e.hasLargeDropdown,
572
- "input-value": x(f),
573
- onValueChanged: te
574
- }, {
575
- "list-footer-content": y(() => [
576
- me ? (t(), i(ee, {
577
- key: 0,
578
- intent: "subtle",
579
- class: "w-full",
580
- type: "button",
581
- "icon-prefix": "add",
582
- onClick: pe
583
- }, {
584
- default: y(() => [
585
- L(R(e.textContent.buttonAddLabel), 1)
586
- ]),
587
- _: 1
588
- })) : u("", !0),
589
- r.value ? (t(), v("div", {
590
- key: 1,
591
- class: $(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
592
- }, [
593
- ne.value ? (t(), i(ee, {
594
- key: 0,
595
- type: "button",
596
- intent: "subtle",
597
- size: "sm",
598
- class: "ml-2",
599
- onClick: ae
600
- }, {
601
- default: y(() => [
602
- L(R(e.textContent.buttonClearLabel), 1)
603
- ]),
604
- _: 1
605
- })) : u("", !0),
606
- c("div", null, [
607
- T(l.$slots, "list-footer-content")
608
- ]),
609
- S(ee, {
610
- type: "button",
611
- size: "sm",
612
- class: "mr-2",
613
- "data-testid": x(We),
614
- onClick: P
615
- }, {
616
- default: y(() => [
617
- L(R(e.textContent.buttonDoneLabel), 1)
618
- ]),
619
- _: 1
620
- }, 8, ["data-testid"])
621
- ], 2)) : T(l.$slots, "list-footer-content", {}, void 0, void 0, 2)
622
- ]),
623
- _: 3
624
- }, 8, ["options", "multiple", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown", "input-value"])
625
- ], 4)
626
- ], 44, wl)) : u("", !0)
627
- ], 8, ["to"])) : u("", !0)
628
- ], 64);
629
- };
630
- }
631
- }), kl = '<svg xmlns="http://www.w3.org/2000/svg" width="40" height="15" fill="none" viewBox="0 0 40 15"><path fill="currentColor" d="M.049 2.917h5.845c.646 0 1.17.522 1.17 1.166v5.834H1.217c-.646 0-1.17-.522-1.17-1.167V5.833h2.924v2.334H4.14v-3.5H.049zm32.735 0v7h2.922v-5.25h1.17v5.25h2.922V4.083c0-.644-.523-1.166-1.169-1.166zm-16.367 9.916h5.845c.646 0 1.17-.522 1.17-1.166v-8.75h-2.924v5.25H19.34v-5.25h-2.922V8.75c0 .645.523 1.167 1.169 1.167h2.922v1.166h-4.091zm15.197-2.916H25.77c-.646 0-1.17-.522-1.17-1.167V2.917h5.846c.646 0 1.17.522 1.17 1.166V7h-2.923V4.667h-1.17v3.5h4.092zM15.248 0v9.917H9.402c-.646 0-1.17-.522-1.17-1.167V4.083c0-.644.524-1.166 1.17-1.166h1.754v5.25h1.169V0z"/></svg>', Cl = '<svg xmlns="http://www.w3.org/2000/svg" width="36" height="15" viewBox="0 0 36 15"><path d="M35.996 7.746c0-2.559-1.238-4.578-3.61-4.578-2.378 0-3.816 2.02-3.816 4.559 0 3.011 1.7 4.53 4.137 4.53 1.191 0 2.09-.269 2.77-.648v-2c-.68.34-1.457.547-2.45.547-.968 0-1.828-.34-1.937-1.52h4.887c0-.128.02-.648.02-.89m-4.937-.95c0-1.128.691-1.597 1.32-1.597.61 0 1.258.469 1.258 1.598ZM24.707 3.168c-.977 0-1.61.46-1.957.781l-.133-.62h-2.199v11.66l2.5-.532.012-2.828c.36.258.89.629 1.77.629 1.788 0 3.417-1.442 3.417-4.61-.008-2.898-1.66-4.48-3.41-4.48m-.598 6.89c-.59 0-.941-.21-1.18-.472l-.011-3.707c.262-.29.621-.492 1.191-.492.91 0 1.54 1.02 1.54 2.332 0 1.34-.622 2.34-1.54 2.34M16.98 2.578l2.508-.539V.008L16.98.539ZM16.98 3.34h2.508v8.746H16.98ZM14.29 4.078l-.161-.738h-2.16v8.746h2.5v-5.93c.59-.77 1.59-.629 1.898-.52V3.34c-.316-.121-1.488-.34-2.078.738M9.29 1.168l-2.438.52-.012 8.011c0 1.48 1.11 2.57 2.59 2.57.82 0 1.418-.152 1.75-.332v-2.03c-.32.132-1.899.59-1.899-.887V5.469h1.899v-2.13H9.28ZM2.531 5.879c0-.39.32-.54.848-.54a5.56 5.56 0 0 1 2.48.638V3.629a6.55 6.55 0 0 0-2.48-.461C1.352 3.168 0 4.227 0 6c0 2.758 3.8 2.316 3.8 3.508 0 .46-.402.61-.96.61-.828 0-1.89-.34-2.73-.802V11.7c.93.399 1.87.57 2.73.57 2.078 0 3.512-1.03 3.512-2.82-.012-2.98-3.82-2.453-3.82-3.57m0 0" style="stroke:none;fill-rule:evenodd;fill:currentColor;fill-opacity:1"/></svg>', Sl = { class: "flex justify-around" }, $l = { class: "flex items-center gap-0.5" }, Il = ["aria-label", "innerHTML"], Kl = /* @__PURE__ */ Y({
632
- __name: "SecurePaymentsKPI",
633
- props: {
634
- paymentMethodOptions: { type: Array }
635
- },
636
- setup(e) {
637
- const w = e, { $t: C } = Ke(), o = {
638
- ADYEN: { svg: kl, label: "Adyen" },
639
- STRIPE: { svg: Cl, label: "Stripe" }
640
- }, g = h(() => {
641
- const f = w.paymentMethodOptions.find(
642
- ({ integration: s }) => {
643
- var m;
644
- return ((m = s.payment_gateway) == null ? void 0 : m.variant) != null && s.payment_gateway.variant in o;
645
- }
646
- );
647
- return f ? o[f.integration.payment_gateway.variant] : null;
648
- }), I = h(() => g.value ? C({
649
- defaultMessage: "Secure and encrypted payments by",
650
- description: "Secure encrypted payments KPI for a specific vendor, followed by a vendor logo",
651
- id: "secure_payments_kpi.specific_vendor"
652
- }) : C({
653
- defaultMessage: "Secure and encrypted payments",
654
- description: "Secure encrypted payments KPI",
655
- id: "secure_payments_kpi.generic"
656
- }));
657
- return (f, s) => (t(), v("div", Sl, [
658
- c("div", $l, [
659
- S(x(fe), {
660
- icon: "lock",
661
- size: "xs"
662
- }),
663
- S(x(j), {
664
- tag: "span",
665
- variant: "body-xs",
666
- color: "subtle"
667
- }, {
668
- default: y(() => [
669
- c("span", null, R(I.value), 1),
670
- s[0] || (s[0] = L(R(" ") + " ", -1)),
671
- g.value ? (t(), v("span", {
672
- key: 0,
673
- "aria-label": g.value.label,
674
- role: "img",
675
- class: "inline-block h-[15px] align-middle",
676
- innerHTML: g.value.svg
677
- }, null, 8, Il)) : u("", !0)
678
- ]),
679
- _: 1
680
- })
681
- ])
682
- ]));
683
- }
684
- });
685
- export {
686
- ql as _,
687
- Kl as a
688
- };