@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.8

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 (202) hide show
  1. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  2. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  3. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
  5. package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
  6. package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
  7. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
  8. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
  9. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
  11. package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
  12. package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
  14. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
  15. package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
  16. package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
  17. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
  19. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
  21. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
  22. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
  23. package/dist/adyenLoader-CEH4A2b2.js +1 -0
  24. package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
  25. package/dist/component-C2Gc-wsE.js +1 -0
  26. package/dist/component-CM9g6tbD.mjs +804 -0
  27. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  28. package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
  29. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  30. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
  31. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  32. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
  33. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  34. package/dist/components/Invoice/Invoice.es.js +42 -2659
  35. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  36. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
  37. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  38. package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
  39. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  40. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
  41. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  42. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
  43. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  44. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
  45. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  46. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
  47. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  48. package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
  49. package/dist/core/index.cjs.js +1 -1
  50. package/dist/core/index.es.js +1 -1
  51. package/dist/core/types.d.ts +2 -0
  52. package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
  53. package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
  54. package/dist/en-US-CBoPxQwX.mjs +199 -0
  55. package/dist/en-US-DJq-9dD8.js +1 -0
  56. package/dist/index-CzL1ZcGi.mjs +85 -0
  57. package/dist/index-DRdBmZ2-.js +1 -0
  58. package/dist/index.cjs.js +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.es.js +4 -1
  61. package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
  62. package/dist/invoices-DbvwXAsm.js +1 -0
  63. package/dist/nl-NL-BB7KbK-h.mjs +181 -0
  64. package/dist/nl-NL-CtU1Lg2F.js +1 -0
  65. package/dist/paymentMethods-B4AYGf0K.js +1 -0
  66. package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
  67. package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
  68. package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
  69. package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
  70. package/dist/registry-CMSmkLcy.js +1 -0
  71. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  72. package/dist/screens/Checkout/Checkout.es.js +420 -2388
  73. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  74. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
  75. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  76. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  77. package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
  78. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  79. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
  80. package/dist/solvimon-web.css +1 -1
  81. package/dist/source-DKDKBlUm.mjs +179 -0
  82. package/dist/source-dkMNFWDc.js +1 -0
  83. package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
  84. package/dist/subscriptions-wdMADcQZ.js +1 -0
  85. package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
  86. package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
  87. package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
  88. package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
  89. package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
  90. package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
  91. package/dist/useInvoiceData-CxxHa5R2.js +1 -0
  92. package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
  93. package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
  94. package/dist/useInvoicesList-CtJqmblZ.js +1 -0
  95. package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
  96. package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
  97. package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
  98. package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
  99. package/dist/usePayments-B13S_yai.js +1 -0
  100. package/dist/usePayments-D4uGKBsV.mjs +36 -0
  101. package/dist/usePortal-DJDJNLbo.mjs +12 -0
  102. package/dist/usePortal-DWJEVkTj.js +1 -0
  103. package/dist/useService-9fCKPTmu.js +1 -0
  104. package/dist/useService-BuWWE5ND.mjs +68 -0
  105. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  106. package/dist/useViewport-CKRY1CKR.js +1 -0
  107. package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
  108. package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
  109. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  110. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  111. package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
  112. package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
  113. package/package.json +17 -10
  114. package/dist/Alert.vue.es-DMPvSykx.js +0 -1
  115. package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
  116. package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
  117. package/dist/Amount.vue.es-h8wulbBG.js +0 -1
  118. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
  119. package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
  120. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
  121. package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
  122. package/dist/Button.vue.es-BC4_TItq.js +0 -1
  123. package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
  124. package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
  125. package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
  126. package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
  127. package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
  128. package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
  129. package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
  130. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
  131. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
  132. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
  133. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  134. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  135. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
  136. package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
  137. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
  138. package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
  139. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
  140. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  141. package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
  142. package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
  143. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
  144. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
  145. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
  146. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
  147. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
  148. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
  149. package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
  150. package/dist/Section.vue.es-BuzTXRLP.js +0 -1
  151. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
  152. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
  153. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
  154. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
  155. package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
  156. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  157. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  158. package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
  159. package/dist/_flatRest.es-dFffnTpX.js +0 -1
  160. package/dist/api.es-B4qAAJKr.js +0 -1
  161. package/dist/api.es-UkfpLiLL.mjs +0 -83
  162. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  163. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  164. package/dist/cn.es-C7xoIs3C.js +0 -1
  165. package/dist/cn.es-tfxVlz02.mjs +0 -3191
  166. package/dist/component-ZRZIt3ZW.js +0 -1
  167. package/dist/component-dpA83LIN.mjs +0 -6569
  168. package/dist/countryData.es--zJAd6LA.mjs +0 -252
  169. package/dist/countryData.es-D3MFzU92.js +0 -1
  170. package/dist/customer.es-D42Md24r.js +0 -1
  171. package/dist/customer.es-LIW2YmLL.mjs +0 -30
  172. package/dist/formatting.es-9hM8aHSg.js +0 -1
  173. package/dist/formatting.es-D5H_ySFv.mjs +0 -68
  174. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  175. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  176. package/dist/index-2jo9BSPM.js +0 -1
  177. package/dist/index-BFZ0dPh9.mjs +0 -179
  178. package/dist/index-CI71bVGE.mjs +0 -2521
  179. package/dist/index-CWSXne1Q.js +0 -1
  180. package/dist/index-D3v7hAtc.mjs +0 -253
  181. package/dist/index-WLSPwi90.js +0 -1
  182. package/dist/index.es-BBJF2O2l.js +0 -1
  183. package/dist/index.es-LCAKs4tH.mjs +0 -438
  184. package/dist/invoices-3kVHsAXr.js +0 -1
  185. package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
  186. package/dist/isEmpty.es-Dycf-CD_.js +0 -1
  187. package/dist/paymentMethods-DZRf0WRl.js +0 -1
  188. package/dist/pick.es-BgDAfhAl.js +0 -1
  189. package/dist/pick.es-DdVOyp0Q.mjs +0 -45
  190. package/dist/registry-ClZ43bQn.js +0 -1
  191. package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
  192. package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
  193. package/dist/subscriptions-CS8HTxzC.js +0 -1
  194. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  195. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  196. package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
  197. package/dist/useInvoiceData-DvQO_nKz.js +0 -1
  198. package/dist/useInvoicesList-CHkwSNO9.js +0 -1
  199. package/dist/useService-B67YWAcN.js +0 -1
  200. package/dist/useService-DG_zedHV.mjs +0 -282
  201. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
  202. package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
@@ -1,408 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, useSlots, computed, ref, toRefs, unref, createBlock, resolveDynamicComponent, withCtx, createVNode, createCommentVNode, renderSlot, mergeDefaults } from "vue";
2
- import { _ as _sfc_main$3 } from "./component-dpA83LIN.mjs";
3
- const _hoisted_1$1 = {
4
- class: "w-full h-full",
5
- xmlns: "http://www.w3.org/2000/svg",
6
- viewbox: "0 0 48 48"
7
- };
8
- const _hoisted_2$1 = ["xlink:href"];
9
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10
- __name: "Icon",
11
- props: {
12
- icon: {},
13
- size: { default: "sm" },
14
- variant: { default: "default" }
15
- },
16
- setup(__props) {
17
- const sizeClasses = {
18
- "2xs": "w-[14px] h-[14px]",
19
- xs: "w-[16px] h-[16px]",
20
- sm: "w-[20px] h-[20px]",
21
- base: "w-[22px] h-[22px]",
22
- md: "w-[24px] h-[24px]",
23
- lg: "w-[32px] h-[32px]",
24
- xl: "w-[48px] h-[48px]"
25
- };
26
- return (_ctx, _cache) => {
27
- return openBlock(), createElementBlock("span", {
28
- class: normalizeClass(["inline-flex items-center justify-center leading-none align-middle icon", [
29
- sizeClasses[__props.size],
30
- {
31
- "rounded selection:drop-shadow-sm border bg-gray-50": __props.variant === "contained"
32
- }
33
- ]])
34
- }, [
35
- (openBlock(), createElementBlock("svg", _hoisted_1$1, [
36
- createElementVNode("use", {
37
- "xlink:href": `#${__props.icon}`
38
- }, null, 8, _hoisted_2$1)
39
- ]))
40
- ], 2);
41
- };
42
- }
43
- });
44
- const buttonPropsDefault = {
45
- color: "primary",
46
- variant: "primary",
47
- size: "md",
48
- pill: false,
49
- square: false,
50
- loading: false,
51
- disabled: false,
52
- iconPrefix: void 0,
53
- iconSuffix: void 0,
54
- tag: "button"
55
- };
56
- const defaultClasses = "transition-colors transition-opacity";
57
- const buttonPrimaryVariantClasses = {
58
- default: {
59
- blue: "text-white bg-blue-600 focus:ring-4 focus:ring-blue-300 font-medium rounded focus:outline-none",
60
- red: "text-white bg-red-700 focus:ring-4 focus:ring-red-300 font-medium rounded focus:outline-none",
61
- green: "text-white bg-green-700 focus:ring-4 focus:ring-green-300 font-medium rounded focus:outline-none",
62
- gray: "text-white bg-gray-800 focus:ring-4 focus:ring-gray-300 font-medium rounded focus:outline-none",
63
- primary: "text-white bg-primary-600 focus:ring-4 focus:ring-primary-300 font-medium rounded focus:outline-non",
64
- yellow: "text-white bg-yellow-800 focus:ring-4 focus:ring-yellow-300 font-medium rounded focus:outline-none",
65
- white: "text-gray-900 bg-white focus:ring-4 focus:ring-gray-200 font-medium rounded focus:outline-none"
66
- },
67
- hover: {
68
- blue: "hover:bg-blue-700",
69
- red: "hover:bg-red-800",
70
- green: "hover:bg-green-800",
71
- gray: "hover:bg-gray-50",
72
- primary: "hover:bg-primary-700",
73
- yellow: "hover:bg-yellow-700",
74
- white: "hover:bg-gray-500"
75
- }
76
- };
77
- const buttonOutlineVariantClasses = {
78
- default: {
79
- blue: "text-blue-600 bg-white border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
80
- red: "text-red-700 bg-white border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
81
- green: "text-green-700 bg-white border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
82
- gray: "text-gray-800 bg-white border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
83
- primary: "text-primary-600 bg-white border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
84
- yellow: "text-yellow-600 bg-white border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
85
- white: "text-white bg-transparent border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"
86
- },
87
- hover: {
88
- blue: "text-blue-600 hover:bg-gray-50 border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
89
- red: "text-red-700 hover:bg-gray-50 border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
90
- green: "text-green-700 hover:bg-gray-50 border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
91
- gray: "text-gray-800 hover:bg-gray-50 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
92
- primary: "text-primary-600 hover:bg-gray-50 border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
93
- yellow: "text-yellow-600 hover:bg-gray-50 border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
94
- white: "text-white hover:bg-gray-500 border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"
95
- }
96
- };
97
- const buttonGhostVariantClasses = {
98
- default: {
99
- blue: "text-blue-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
100
- red: "text-red-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
101
- green: "text-green-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
102
- gray: "text-gray-800 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
103
- primary: "text-primary-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
104
- yellow: "text-yellow-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
105
- white: "text-white bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center"
106
- },
107
- hover: {
108
- blue: "hover:text-white hover:bg-blue-700",
109
- red: "hover:text-white hover:bg-red-800",
110
- green: "hover:text-white hover:bg-green-800",
111
- gray: "hover:bg-gray-50",
112
- primary: "hover:text-white hover:bg-primary-700",
113
- yellow: "hover:text-white hover:bg-yellow-700",
114
- white: "hover:bg-gray-500"
115
- }
116
- };
117
- const buttonSpacingClasses = {
118
- xs: "p-0.5",
119
- sm: "p-1.5",
120
- md: "p-2",
121
- lg: "p-3"
122
- };
123
- const buttonSquareSizeClasses = {
124
- xs: "w-5 h-5",
125
- sm: "w-8 h-8",
126
- md: "w-10 h-10",
127
- lg: "w-12 h-12"
128
- };
129
- function useButtonClasses(props) {
130
- const slots = useSlots();
131
- const sizeClasses = computed(() => {
132
- var _a;
133
- if ((_a = props.square) == null ? void 0 : _a.value) return buttonSquareSizeClasses[props.size.value];
134
- return buttonSpacingClasses[props.size.value];
135
- });
136
- const bindClasses = computed(() => {
137
- const color = props.color.value || buttonPropsDefault.color;
138
- const variant = props.variant.value || buttonPropsDefault.variant;
139
- const isLoading = props.loading.value;
140
- const isDisabled = props.disabled.value;
141
- let hoverClasses = {};
142
- let backgroundClasses = {};
143
- switch (variant) {
144
- case "ghost":
145
- backgroundClasses = buttonGhostVariantClasses.default;
146
- hoverClasses = buttonGhostVariantClasses.hover;
147
- break;
148
- case "transparent":
149
- backgroundClasses = buttonGhostVariantClasses.default;
150
- break;
151
- case "outline":
152
- backgroundClasses = buttonOutlineVariantClasses.default;
153
- hoverClasses = buttonOutlineVariantClasses.hover;
154
- break;
155
- default:
156
- backgroundClasses = buttonPrimaryVariantClasses.default;
157
- hoverClasses = buttonPrimaryVariantClasses.hover;
158
- }
159
- const backgroundClass = backgroundClasses[color];
160
- const hoverClass = !isLoading && !isDisabled ? hoverClasses[color] : "";
161
- return [
162
- defaultClasses,
163
- backgroundClass,
164
- hoverClass,
165
- sizeClasses.value,
166
- props.pill.value ? "!rounded-full" : "",
167
- props.disabled.value || props.loading.value ? "cursor-not-allowed opacity-50" : "",
168
- slots.prefix || props.iconPrefix || slots.suffix || props.loading.value ? "inline-flex items-center" : ""
169
- ].filter((value) => !!value).join(" ");
170
- });
171
- const spanClasses = computed(() => props.loading.value ? "opacity-0" : "");
172
- const contentClasses = computed(() => {
173
- switch (props.size.value) {
174
- case "xs":
175
- case "sm":
176
- return "mx-1";
177
- case "md":
178
- return "mx-1.5";
179
- case "lg":
180
- return "mx-2";
181
- default:
182
- return "";
183
- }
184
- });
185
- return {
186
- contentClasses,
187
- wrapperClasses: bindClasses,
188
- spanClasses
189
- };
190
- }
191
- function useButtonSpinner(props) {
192
- const btnSizeSpinnerSizeMap = {
193
- lg: "5",
194
- md: "4",
195
- sm: "3",
196
- xs: "2"
197
- };
198
- const size = computed(() => {
199
- return btnSizeSpinnerSizeMap[props.size.value];
200
- });
201
- const color = computed(() => {
202
- if (props.variant.value === "primary") return "white";
203
- return props.color.value;
204
- });
205
- return {
206
- size,
207
- color
208
- };
209
- }
210
- function usePreventDoubleClick(delay = 500) {
211
- const isClicked = ref(false);
212
- function handleClick(callback) {
213
- if (isClicked.value) return;
214
- isClicked.value = true;
215
- try {
216
- callback();
217
- } finally {
218
- setTimeout(() => {
219
- isClicked.value = false;
220
- }, delay);
221
- }
222
- }
223
- return {
224
- isClicked,
225
- handleClick
226
- };
227
- }
228
- const sizes = {
229
- "0": "w-0 h-0",
230
- "0.5": "w-0.5 h-0.5",
231
- "1": "w-1 h-1",
232
- "1.5": "w-1.5 h-1.5",
233
- "10": "w-10 h-10",
234
- "11": "w-11 h-11",
235
- "12": "w-12 h-12",
236
- "2": "w-2 h-2",
237
- "2.5": "w-2.5 h-2.5",
238
- "3": "w-3 h-3",
239
- "4": "w-4 h-4",
240
- "5": "w-5 h-5",
241
- "6": "w-6 h-6",
242
- "7": "w-7 h-7",
243
- "8": "w-8 h-8",
244
- "9": "w-9 h-9",
245
- px: "w-px h-px"
246
- };
247
- const colors = {
248
- primary: "fill-primary-600",
249
- blue: "fill-blue-600",
250
- gray: "fill-gray-600",
251
- green: "fill-green-500",
252
- pink: "fill-pink-600",
253
- purple: "fill-purple-600",
254
- red: "fill-red-600",
255
- yellow: "fill-yellow-400",
256
- white: "fill-white"
257
- };
258
- function useSpinnerClasses(props) {
259
- const sizeClasses = computed(() => sizes[props.size.value]);
260
- const colorClasses = computed(() => colors[props.color.value]);
261
- const bgColorClasses = "text-gray-200";
262
- const animateClasses = "animate-spin";
263
- const spinnerClasses = computed(
264
- () => [sizeClasses.value, bgColorClasses, colorClasses.value, animateClasses].join(" ")
265
- );
266
- return {
267
- spinnerClasses
268
- };
269
- }
270
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
271
- __name: "Spinner",
272
- props: {
273
- size: { default: "4" },
274
- color: { default: "primary" }
275
- },
276
- setup(__props) {
277
- const props = __props;
278
- const { spinnerClasses } = useSpinnerClasses(toRefs(props));
279
- return (_ctx, _cache) => {
280
- return openBlock(), createElementBlock("svg", {
281
- role: "status",
282
- class: normalizeClass(unref(spinnerClasses)),
283
- viewBox: "0 0 100 101",
284
- fill: "none",
285
- xmlns: "http://www.w3.org/2000/svg"
286
- }, [..._cache[0] || (_cache[0] = [
287
- createElementVNode("path", {
288
- d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
289
- fill: "currentColor"
290
- }, null, -1),
291
- createElementVNode("path", {
292
- d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
293
- fill: "currentFill"
294
- }, null, -1)
295
- ])], 2);
296
- };
297
- }
298
- });
299
- const _hoisted_1 = {
300
- key: 0,
301
- class: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-inherit"
302
- };
303
- const _hoisted_2 = {
304
- key: 0,
305
- class: "flex items-center justify-center"
306
- };
307
- const _hoisted_3 = {
308
- key: 2,
309
- class: "flex items-center justify-center"
310
- };
311
- const _sfc_main = /* @__PURE__ */ defineComponent({
312
- __name: "Button",
313
- props: /* @__PURE__ */ mergeDefaults({
314
- type: {},
315
- variant: {},
316
- color: {},
317
- size: {},
318
- pill: { type: Boolean },
319
- square: { type: Boolean },
320
- loading: { type: Boolean },
321
- disabled: { type: Boolean },
322
- iconPrefix: {},
323
- iconSuffix: {},
324
- tag: {}
325
- }, buttonPropsDefault),
326
- emits: ["click"],
327
- setup(__props, { emit: __emit }) {
328
- const props = __props;
329
- const emit = __emit;
330
- const iconSize = computed(() => {
331
- switch (props.size) {
332
- case "xs":
333
- return "2xs";
334
- case "sm":
335
- return "xs";
336
- default:
337
- return "sm";
338
- }
339
- });
340
- const spinnerSize = computed(() => iconSize.value === "xs" ? "4" : "5");
341
- const fontVariant = computed(() => ["xs", "sm"].includes(props.size) ? "body-xs" : "body-sm");
342
- const { wrapperClasses, spanClasses, contentClasses } = useButtonClasses(toRefs(props));
343
- const { color: spinnerColor } = useButtonSpinner(toRefs(props));
344
- const { handleClick } = usePreventDoubleClick();
345
- const isDisabled = computed(() => props.tag === "button" && (props.disabled || props.loading));
346
- const onClick = (event) => {
347
- handleClick(() => {
348
- emit("click", event);
349
- });
350
- };
351
- return (_ctx, _cache) => {
352
- return openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
353
- class: normalizeClass([unref(wrapperClasses), "relative shrink-0 items-center justify-center overflow-clip whitespace-nowrap"]),
354
- type: __props.tag === "button" ? __props.type : void 0,
355
- disabled: isDisabled.value,
356
- onClick
357
- }, {
358
- default: withCtx(() => [
359
- __props.loading ? (openBlock(), createElementBlock("span", _hoisted_1, [
360
- createVNode(unref(_sfc_main$1), {
361
- size: spinnerSize.value,
362
- color: unref(spinnerColor)
363
- }, null, 8, ["size", "color"])
364
- ])) : createCommentVNode("", true),
365
- createElementVNode("span", {
366
- class: normalizeClass([unref(spanClasses), "flex items-center justify-center"])
367
- }, [
368
- __props.iconPrefix || _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_2, [
369
- renderSlot(_ctx.$slots, "prefix", {}, () => [
370
- createVNode(unref(_sfc_main$2), {
371
- icon: __props.iconPrefix,
372
- size: iconSize.value,
373
- class: "overflow-clip"
374
- }, null, 8, ["icon", "size"])
375
- ])
376
- ])) : createCommentVNode("", true),
377
- _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$3), {
378
- key: 1,
379
- tag: "span",
380
- variant: fontVariant.value,
381
- class: normalizeClass(unref(contentClasses))
382
- }, {
383
- default: withCtx(() => [
384
- renderSlot(_ctx.$slots, "default")
385
- ]),
386
- _: 3
387
- }, 8, ["variant", "class"])) : createCommentVNode("", true),
388
- __props.iconSuffix || _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_3, [
389
- renderSlot(_ctx.$slots, "suffix", {}, () => [
390
- createVNode(unref(_sfc_main$2), {
391
- icon: __props.iconSuffix,
392
- size: iconSize.value
393
- }, null, 8, ["icon", "size"])
394
- ])
395
- ])) : createCommentVNode("", true)
396
- ], 2)
397
- ]),
398
- _: 3
399
- }, 8, ["class", "type", "disabled"]);
400
- };
401
- }
402
- });
403
- export {
404
- _sfc_main as _,
405
- _sfc_main$2 as a,
406
- buttonPropsDefault as b,
407
- useButtonClasses as u
408
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),o=require("./component-ZRZIt3ZW.js"),r={class:"w-full h-full",xmlns:"http://www.w3.org/2000/svg",viewbox:"0 0 48 48"},t=["xlink:href"],n=e.defineComponent({__name:"Icon",props:{icon:{},size:{default:"sm"},variant:{default:"default"}},setup(o){const n={"2xs":"w-[14px] h-[14px]",xs:"w-[16px] h-[16px]",sm:"w-[20px] h-[20px]",base:"w-[22px] h-[22px]",md:"w-[24px] h-[24px]",lg:"w-[32px] h-[32px]",xl:"w-[48px] h-[48px]"};return(i,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-flex items-center justify-center leading-none align-middle icon",[n[o.size],{"rounded selection:drop-shadow-sm border bg-gray-50":"contained"===o.variant}]])},[(e.openBlock(),e.createElementBlock("svg",r,[e.createElementVNode("use",{"xlink:href":`#${o.icon}`},null,8,t)]))],2))}}),i={color:"primary",variant:"primary",size:"md",pill:!1,square:!1,loading:!1,disabled:!1,iconPrefix:void 0,iconSuffix:void 0,tag:"button"},s="transition-colors transition-opacity",u={blue:"text-white bg-blue-600 focus:ring-4 focus:ring-blue-300 font-medium rounded focus:outline-none",red:"text-white bg-red-700 focus:ring-4 focus:ring-red-300 font-medium rounded focus:outline-none",green:"text-white bg-green-700 focus:ring-4 focus:ring-green-300 font-medium rounded focus:outline-none",gray:"text-white bg-gray-800 focus:ring-4 focus:ring-gray-300 font-medium rounded focus:outline-none",primary:"text-white bg-primary-600 focus:ring-4 focus:ring-primary-300 font-medium rounded focus:outline-non",yellow:"text-white bg-yellow-800 focus:ring-4 focus:ring-yellow-300 font-medium rounded focus:outline-none",white:"text-gray-900 bg-white focus:ring-4 focus:ring-gray-200 font-medium rounded focus:outline-none"},l={blue:"hover:bg-blue-700",red:"hover:bg-red-800",green:"hover:bg-green-800",gray:"hover:bg-gray-50",primary:"hover:bg-primary-700",yellow:"hover:bg-yellow-700",white:"hover:bg-gray-500"},a={blue:"text-blue-600 bg-white border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",red:"text-red-700 bg-white border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",green:"text-green-700 bg-white border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",gray:"text-gray-800 bg-white border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",primary:"text-primary-600 bg-white border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",yellow:"text-yellow-600 bg-white border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",white:"text-white bg-transparent border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"},c={blue:"text-blue-600 hover:bg-gray-50 border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",red:"text-red-700 hover:bg-gray-50 border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",green:"text-green-700 hover:bg-gray-50 border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",gray:"text-gray-800 hover:bg-gray-50 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",primary:"text-primary-600 hover:bg-gray-50 border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",yellow:"text-yellow-600 hover:bg-gray-50 border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",white:"text-white hover:bg-gray-500 border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"},d={blue:"text-blue-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",red:"text-red-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",green:"text-green-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",gray:"text-gray-800 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",primary:"text-primary-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",yellow:"text-yellow-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",white:"text-white bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center"},f={blue:"hover:text-white hover:bg-blue-700",red:"hover:text-white hover:bg-red-800",green:"hover:text-white hover:bg-green-800",gray:"hover:bg-gray-50",primary:"hover:text-white hover:bg-primary-700",yellow:"hover:text-white hover:bg-yellow-700",white:"hover:bg-gray-500"},g={xs:"p-0.5",sm:"p-1.5",md:"p-2",lg:"p-3"},m={xs:"w-5 h-5",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"};function x(o){const r=e.useSlots(),t=e.computed(()=>{var e;return(null==(e=o.square)?void 0:e.value)?m[o.size.value]:g[o.size.value]}),n=e.computed(()=>{const e=o.color.value||i.color,n=o.variant.value||i.variant,g=o.loading.value,m=o.disabled.value;let x={},p={};switch(n){case"ghost":p=d,x=f;break;case"transparent":p=d;break;case"outline":p=a,x=c;break;default:p=u,x=l}const b=p[e],y=g||m?"":x[e];return[s,b,y,t.value,o.pill.value?"!rounded-full":"",o.disabled.value||o.loading.value?"cursor-not-allowed opacity-50":"",r.prefix||o.iconPrefix||r.suffix||o.loading.value?"inline-flex items-center":""].filter(e=>!!e).join(" ")}),x=e.computed(()=>o.loading.value?"opacity-0":"");return{contentClasses:e.computed(()=>{switch(o.size.value){case"xs":case"sm":return"mx-1";case"md":return"mx-1.5";case"lg":return"mx-2";default:return""}}),wrapperClasses:n,spanClasses:x}}const p={0:"w-0 h-0",.5:"w-0.5 h-0.5",1:"w-1 h-1",1.5:"w-1.5 h-1.5",10:"w-10 h-10",11:"w-11 h-11",12:"w-12 h-12",2:"w-2 h-2",2.5:"w-2.5 h-2.5",3:"w-3 h-3",4:"w-4 h-4",5:"w-5 h-5",6:"w-6 h-6",7:"w-7 h-7",8:"w-8 h-8",9:"w-9 h-9",px:"w-px h-px"},b={primary:"fill-primary-600",blue:"fill-blue-600",gray:"fill-gray-600",green:"fill-green-500",pink:"fill-pink-600",purple:"fill-purple-600",red:"fill-red-600",yellow:"fill-yellow-400",white:"fill-white"};const y=e.defineComponent({__name:"Spinner",props:{size:{default:"4"},color:{default:"primary"}},setup(o){const r=o,{spinnerClasses:t}=function(o){const r=e.computed(()=>p[o.size.value]),t=e.computed(()=>b[o.color.value]),n="text-gray-200",i="animate-spin";return{spinnerClasses:e.computed(()=>[r.value,n,t.value,i].join(" "))}}(e.toRefs(r));return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{role:"status",class:e.normalizeClass(e.unref(t)),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])],2))}}),h={key:0,class:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-inherit"},w={key:0,class:"flex items-center justify-center"},v={key:2,class:"flex items-center justify-center"},C=e.defineComponent({__name:"Button",props:e.mergeDefaults({type:{},variant:{},color:{},size:{},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{}},i),emits:["click"],setup(r,{emit:t}){const i=r,s=t,u=e.computed(()=>{switch(i.size){case"xs":return"2xs";case"sm":return"xs";default:return"sm"}}),l=e.computed(()=>"xs"===u.value?"4":"5"),a=e.computed(()=>["xs","sm"].includes(i.size)?"body-xs":"body-sm"),{wrapperClasses:c,spanClasses:d,contentClasses:f}=x(e.toRefs(i)),{color:g}=function(o){const r={lg:"5",md:"4",sm:"3",xs:"2"};return{size:e.computed(()=>r[o.size.value]),color:e.computed(()=>"primary"===o.variant.value?"white":o.color.value)}}(e.toRefs(i)),{handleClick:m}=function(o=500){const r=e.ref(!1);return{isClicked:r,handleClick:function(e){if(!r.value){r.value=!0;try{e()}finally{setTimeout(()=>{r.value=!1},o)}}}}}(),p=e.computed(()=>"button"===i.tag&&(i.disabled||i.loading)),b=e=>{m(()=>{s("click",e)})};return(t,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tag),{class:e.normalizeClass([e.unref(c),"relative shrink-0 items-center justify-center overflow-clip whitespace-nowrap"]),type:"button"===r.tag?r.type:void 0,disabled:p.value,onClick:b},{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock("span",h,[e.createVNode(e.unref(y),{size:l.value,color:e.unref(g)},null,8,["size","color"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([e.unref(d),"flex items-center justify-center"])},[r.iconPrefix||t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",w,[e.renderSlot(t.$slots,"prefix",{},()=>[e.createVNode(e.unref(n),{icon:r.iconPrefix,size:u.value,class:"overflow-clip"},null,8,["icon","size"])])])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:1,tag:"span",variant:a.value,class:e.normalizeClass(e.unref(f))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["variant","class"])):e.createCommentVNode("",!0),r.iconSuffix||t.$slots.suffix?(e.openBlock(),e.createElementBlock("span",v,[e.renderSlot(t.$slots,"suffix",{},()=>[e.createVNode(e.unref(n),{icon:r.iconSuffix,size:u.value},null,8,["icon","size"])])])):e.createCommentVNode("",!0)],2)]),_:3},8,["class","type","disabled"]))}});exports._sfc_main=C,exports._sfc_main$1=n,exports.buttonPropsDefault=i,exports.useButtonClasses=x;
@@ -1,115 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
- import { c as cn } from "./cn.es-tfxVlz02.mjs";
3
- import { _ as _sfc_main$2 } from "./component-dpA83LIN.mjs";
4
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5
- __name: "Card",
6
- props: {
7
- borderStyle: { default: "solid" },
8
- spacing: { default: "md" },
9
- cappedWidth: { type: Boolean, default: false },
10
- variant: { default: "default" },
11
- shadowSize: { default: "sm" },
12
- borderRadius: { default: "base" },
13
- title: {},
14
- rootClass: {},
15
- wrapperClass: {}
16
- },
17
- setup(__props) {
18
- return (_ctx, _cache) => {
19
- return openBlock(), createElementBlock("div", {
20
- class: normalizeClass([
21
- "flex flex-col",
22
- unref(cn)(
23
- __props.variant === "grouped" ? "border border-dashed border-opacity-50" : "gap-1",
24
- __props.borderRadius === "md" ? "rounded-md" : "",
25
- __props.borderRadius === "lg" ? "rounded-lg" : "",
26
- __props.borderRadius === "base" ? "rounded" : "",
27
- __props.variant === "grouped" ? __props.rootClass : "",
28
- __props.wrapperClass
29
- )
30
- ])
31
- }, [
32
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
33
- key: 0,
34
- class: normalizeClass(
35
- unref(cn)(
36
- "flex items-center justify-between",
37
- __props.spacing === "sm" ? "p-1.5" : "",
38
- __props.spacing === "md" ? "p-3" : "",
39
- __props.spacing === "lg" ? "p-6" : ""
40
- )
41
- )
42
- }, [
43
- renderSlot(_ctx.$slots, "title", {}, () => [
44
- createVNode(unref(_sfc_main$2), {
45
- tag: "span",
46
- variant: __props.variant === "grouped" ? "caps-heading" : "body-sm",
47
- weight: "semibold",
48
- "no-spacing": ""
49
- }, {
50
- default: withCtx(() => [
51
- createTextVNode(toDisplayString(__props.title), 1)
52
- ]),
53
- _: 1
54
- }, 8, ["variant"])
55
- ]),
56
- renderSlot(_ctx.$slots, "right")
57
- ], 2)) : createCommentVNode("", true),
58
- createElementVNode("div", {
59
- class: normalizeClass([
60
- unref(cn)(
61
- __props.spacing === "sm" ? "p-1.5" : "",
62
- __props.spacing === "md" ? "p-3" : "",
63
- __props.spacing === "lg" ? "p-6" : "",
64
- __props.borderStyle === "solid" && __props.shadowSize === "sm" ? "shadow-sm" : "",
65
- __props.borderStyle === "solid" && __props.shadowSize === "md" ? "shadow-md" : "",
66
- __props.borderStyle === "solid" && __props.shadowSize === "lg" ? "shadow-lg" : "",
67
- __props.borderStyle === "dashed" ? "border-dashed border-opacity-50" : "",
68
- __props.shadowSize === "none" && __props.variant === "default" ? "border-gray-100" : "",
69
- __props.variant === "error" ? "border-red-600" : "",
70
- __props.variant === "warning" ? "border-yellow-400" : "",
71
- __props.variant === "primary" ? "border-primary-400" : "",
72
- __props.cappedWidth ? "max-w-220" : "",
73
- __props.borderRadius === "base" ? "rounded" : "",
74
- __props.borderRadius === "md" ? "rounded-md" : "",
75
- __props.borderRadius === "lg" ? "rounded-lg" : "",
76
- __props.variant === "grouped" ? "border-b-0 border-l-0 border-r-0" : "",
77
- __props.variant === "grouped" ? "rounded-t-none" : "",
78
- __props.variant === "primary" ? "bg-blue-50/50" : "",
79
- __props.variant === "default" ? "bg-white" : "",
80
- !!__props.rootClass ? `${__props.rootClass}` : ""
81
- ),
82
- "border"
83
- ]),
84
- "data-testid": "card"
85
- }, [
86
- renderSlot(_ctx.$slots, "default")
87
- ], 2)
88
- ], 2);
89
- };
90
- }
91
- });
92
- const _sfc_main = /* @__PURE__ */ defineComponent({
93
- __name: "CardContent",
94
- props: {
95
- spacing: { default: "md" }
96
- },
97
- setup(__props) {
98
- return (_ctx, _cache) => {
99
- return openBlock(), createElementBlock("div", {
100
- class: normalizeClass({
101
- "p-2": __props.spacing === "xs",
102
- "px-4 py-3": __props.spacing === "sm",
103
- "p-4": __props.spacing === "md",
104
- "px-8 py-6": __props.spacing === "lg"
105
- })
106
- }, [
107
- renderSlot(_ctx.$slots, "default")
108
- ], 2);
109
- };
110
- }
111
- });
112
- export {
113
- _sfc_main$1 as _,
114
- _sfc_main as a
115
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),r=require("./cn.es-C7xoIs3C.js"),a=require("./component-ZRZIt3ZW.js"),d=e.defineComponent({__name:"Card",props:{borderStyle:{default:"solid"},spacing:{default:"md"},cappedWidth:{type:Boolean,default:!1},variant:{default:"default"},shadowSize:{default:"sm"},borderRadius:{default:"base"},title:{},rootClass:{},wrapperClass:{}},setup:d=>(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-col",e.unref(r.cn)("grouped"===d.variant?"border border-dashed border-opacity-50":"gap-1","md"===d.borderRadius?"rounded-md":"","lg"===d.borderRadius?"rounded-lg":"","base"===d.borderRadius?"rounded":"","grouped"===d.variant?d.rootClass:"",d.wrapperClass)])},[d.title||o.$slots.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r.cn)("flex items-center justify-between","sm"===d.spacing?"p-1.5":"","md"===d.spacing?"p-3":"","lg"===d.spacing?"p-6":""))},[e.renderSlot(o.$slots,"title",{},()=>[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"grouped"===d.variant?"caps-heading":"body-sm",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:1},8,["variant"])]),e.renderSlot(o.$slots,"right")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r.cn)("sm"===d.spacing?"p-1.5":"","md"===d.spacing?"p-3":"","lg"===d.spacing?"p-6":"","solid"===d.borderStyle&&"sm"===d.shadowSize?"shadow-sm":"","solid"===d.borderStyle&&"md"===d.shadowSize?"shadow-md":"","solid"===d.borderStyle&&"lg"===d.shadowSize?"shadow-lg":"","dashed"===d.borderStyle?"border-dashed border-opacity-50":"","none"===d.shadowSize&&"default"===d.variant?"border-gray-100":"","error"===d.variant?"border-red-600":"","warning"===d.variant?"border-yellow-400":"","primary"===d.variant?"border-primary-400":"",d.cappedWidth?"max-w-220":"","base"===d.borderRadius?"rounded":"","md"===d.borderRadius?"rounded-md":"","lg"===d.borderRadius?"rounded-lg":"","grouped"===d.variant?"border-b-0 border-l-0 border-r-0":"","grouped"===d.variant?"rounded-t-none":"","primary"===d.variant?"bg-blue-50/50":"","default"===d.variant?"bg-white":"",d.rootClass?`${d.rootClass}`:""),"border"]),"data-testid":"card"},[e.renderSlot(o.$slots,"default")],2)],2))}),o=e.defineComponent({__name:"CardContent",props:{spacing:{default:"md"}},setup:r=>(a,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"p-2":"xs"===r.spacing,"px-4 py-3":"sm"===r.spacing,"p-4":"md"===r.spacing,"px-8 py-6":"lg"===r.spacing})},[e.renderSlot(a.$slots,"default")],2))});exports._sfc_main=d,exports._sfc_main$1=o;
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./Button.vue.es-BC4_TItq.js"),n=Math.min,o=Math.max,r=Math.round,i=Math.floor,l=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function u(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function d(e){return"y"===e?"height":"width"}const p=new Set(["top","bottom"]);function m(e){return p.has(u(e))?"y":"x"}function g(e){return"x"===m(e)?"y":"x"}function h(e){return e.replace(/start|end/g,e=>s[e])}const y=["left","right"],b=["right","left"],x=["top","bottom"],v=["bottom","top"];function w(e,t,n,o){const r=f(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?b:y:t?y:b;case"left":case"right":return t?x:v;default:return[]}}(u(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(h)))),i}function R(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function k(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function D(e,t,n){let{reference:o,floating:r}=e;const i=m(t),l=g(t),a=d(l),s=u(t),c="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,y=o[a]/2-r[a]/2;let b;switch(s){case"top":b={x:p,y:o.y-r.height};break;case"bottom":b={x:p,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-r.width,y:h};break;default:b={x:o.x,y:o.y}}switch(f(t)){case"start":b[l]-=y*(n&&c?-1:1);break;case"end":b[l]+=y*(n&&c?-1:1)}return b}async function C(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=c(t,e),g=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(m),h=a[p?"floating"===d?"reference":"floating":d],y=k(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:s})),b="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},w=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:s}):b);return{top:(y.top-w.top+g.top)/v.y,bottom:(w.bottom-y.bottom+g.bottom)/v.y,left:(y.left-w.left+g.left)/v.x,right:(w.right-y.right+g.right)/v.x}}const T=new Set(["left","top"]);function L(){return"undefined"!=typeof window}function S(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function E(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function A(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!L()&&(e instanceof Node||e instanceof E(e).Node)}function O(e){return!!L()&&(e instanceof Element||e instanceof E(e).Element)}function z(e){return!!L()&&(e instanceof HTMLElement||e instanceof E(e).HTMLElement)}function F(e){return!(!L()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof E(e).ShadowRoot)}const P=new Set(["inline","contents"]);function V(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!P.has(r)}const _=new Set(["table","td","th"]);function M(e){return _.has(S(e))}const W=[":popover-open",":modal"];function H(e){return W.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const N=["transform","translate","scale","rotate","perspective"],$=["transform","translate","scale","rotate","perspective","filter"],j=["paint","layout","strict","content"];function q(e){const t=I(),n=O(e)?U(e):e;return N.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||$.some(e=>(n.willChange||"").includes(e))||j.some(e=>(n.contain||"").includes(e))}function I(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const X=new Set(["html","body","#document"]);function Y(e){return X.has(S(e))}function U(e){return E(e).getComputedStyle(e)}function G(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===S(e))return e;const t=e.assignedSlot||e.parentNode||F(e)&&e.host||A(e);return F(t)?t.host:t}function K(e){const t=J(e);return Y(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&V(t)?t:K(t)}function Q(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=K(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),l=E(r);if(i){const e=Z(l);return t.concat(l,l.visualViewport||[],V(r)?r:[],e&&n?Q(e):[])}return t.concat(r,Q(r,[],n))}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){const t=U(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=z(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=r(n)!==l||r(o)!==a;return s&&(n=l,o=a),{width:n,height:o,$:s}}function te(e){return O(e)?e:e.contextElement}function ne(e){const t=te(e);if(!z(t))return l(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:a}=ee(t);let s=(a?r(n.width):n.width)/o,c=(a?r(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}const oe=l(0);function re(e){const t=E(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:oe}function ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=te(e);let a=l(1);t&&(o?O(o)&&(a=ne(o)):a=ne(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==E(e))&&t}(i,n,o)?re(i):l(0);let c=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(i){const e=E(i),t=o&&O(o)?E(o):o;let n=e,r=Z(n);for(;r&&o&&t!==n;){const e=ne(r),t=r.getBoundingClientRect(),o=U(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=l,n=E(r),r=Z(n)}}return k({width:f,height:d,x:c,y:u})}function le(e,t){const n=G(e).scrollLeft;return t?t.left+n:ie(A(e)).left+n}function ae(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-le(e,n),y:n.top+t.scrollTop}}const se=new Set(["absolute","fixed"]);function ce(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=E(e),o=A(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const e=I();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}const c=le(o);if(c<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-t.clientWidth-r);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=A(e),n=G(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+le(e);const s=-n.scrollTop;return"rtl"===U(r).direction&&(a+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:s}}(A(e));else if(O(t))r=function(e,t){const n=ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=z(e)?ne(e):l(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=re(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function ue(e,t){const n=J(e);return!(n===t||!O(n)||Y(n))&&("fixed"===U(n).position||ue(n,t))}function fe(e,t,n){const o=z(t),r=A(t),i="fixed"===n,a=ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=l(0);function u(){c.x=le(r)}if(o||!o&&!i)if(("body"!==S(t)||V(r))&&(s=G(t)),o){const e=ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&u();i&&!o&&r&&u();const f=!r||o||i?l(0):ae(r,s);return{x:a.left+s.scrollLeft-c.x-f.x,y:a.top+s.scrollTop-c.y-f.y,width:a.width,height:a.height}}function de(e){return"static"===U(e).position}function pe(e,t){if(!z(e)||"fixed"===U(e).position)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function me(e,t){const n=E(e);if(H(e))return n;if(!z(e)){let t=J(e);for(;t&&!Y(t);){if(O(t)&&!de(t))return t;t=J(t)}return n}let o=pe(e,t);for(;o&&M(o)&&de(o);)o=pe(o,t);return o&&Y(o)&&de(o)&&!q(o)?n:o||function(e){let t=J(e);for(;z(t)&&!Y(t);){if(q(t))return t;if(H(t))return null;t=J(t)}return null}(e)||n}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=A(o),s=!!t&&H(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=l(1);const f=l(0),d=z(o);if((d||!d&&!i)&&(("body"!==S(o)||V(a))&&(c=G(o)),z(o))){const e=ie(o);u=ne(o),f.x=e.x+o.clientLeft,f.y=e.y+o.clientTop}const p=!a||d||i?l(0):ae(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-c.scrollTop*u.y+f.y+p.y}},getDocumentElement:A,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:l}=e;const a=[..."clippingAncestors"===r?H(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Q(e,[],!1).filter(e=>O(e)&&"body"!==S(e)),r=null;const i="fixed"===U(e).position;let l=i?J(e):e;for(;O(l)&&!Y(l);){const t=U(l),n=q(l);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&se.has(r.position)||V(l)&&!n&&ue(e,l))?o=o.filter(e=>e!==l):r=t,l=J(l)}return t.set(e,o),o}(t,this._c):[].concat(r),i],s=a[0],c=a.reduce((e,r)=>{const i=ce(t,r,l);return e.top=o(i.top,e.top),e.right=n(i.right,e.right),e.bottom=n(i.bottom,e.bottom),e.left=o(i.left,e.left),e},ce(t,s,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:me,getElementRects:async function(e){const t=this.getOffsetParent||me,n=this.getDimensions,o=await n(e.floating);return{reference:fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:ne,isElement:O,isRTL:function(e){return"rtl"===U(e).direction}};function he(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const ye=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=u(n),a=f(n),s="y"===m(n),d=T.has(l)?-1:1,p=i&&s?-1:1,g=c(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:b}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&"number"==typeof b&&(y="end"===a?-1*b:b),s?{x:y*p,y:h*d}:{x:h*d,y:y*p}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:l}}}}},be=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:p}=t,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:D=!0,...C}=c(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const T=u(r),L=m(a),S=u(a)===a,E=await(null==s.isRTL?void 0:s.isRTL(p.floating)),A=x||(S||!D?[R(a)]:function(e){const t=R(e);return[h(e),t,h(t)]}(a)),B="none"!==k;!x&&B&&A.push(...w(a,D,k,E));const O=[a,...A],z=await s.detectOverflow(t,C),F=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(y&&F.push(z[T]),b){const e=function(e,t,n){void 0===n&&(n=!1);const o=f(e),r=g(e),i=d(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}(r,l,E);F.push(z[e[0]],z[e[1]])}if(P=[...P,{placement:r,overflows:F}],!F.every(e=>e<=0)){var V,_;const e=((null==(V=i.flip)?void 0:V.index)||0)+1,t=O[e];if(t){if(!("alignment"===b&&L!==m(t))||P.every(e=>m(e.placement)!==L||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let n=null==(_=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(v){case"bestFit":{var M;const e=null==(M=P.filter(e=>{if(B){const t=m(e.placement);return t===L||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},xe=(e,t,n)=>{const o=new Map,r={platform:ge,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=D(c,o,s),d=o,p={},m=0;for(let h=0;h<a.length;h++){var g;const{name:n,fn:i}=a[h],{x:y,y:b,data:x,reset:v}=await i({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:c,platform:{...l,detectOverflow:null!=(g=l.detectOverflow)?g:C},elements:{reference:e,floating:t}});u=null!=y?y:u,f=null!=b?b:f,p={...p,[n]:{...p[n],...x}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):v.rects),({x:u,y:f}=D(c,d,s))),h=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})};function ve(e){if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el;return B(t)&&"#comment"===S(t)?null:t}return e}function we(t){return"function"==typeof t?t():e.unref(t)}function Re(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ke(e,t){const n=Re(e);return Math.round(t*n)/n}const De={"primary-light":{base:"bg-primary-50",baseDark:"bg-primary-100",text:"text-primary-800",border:"border-primary-800/70"},primary:{base:"bg-primary-100",baseDark:"bg-primary-200",text:"text-primary-800",border:"border-primary-800/70"},secondary:{base:"bg-secondary-100",baseDark:"bg-secondary-200",text:"text-secondary-800",border:"border-secondary-800/70"},dark:{base:"bg-gray-100",baseDark:"bg-gray-200",text:"text-gray-800",border:"border-gray-800/70"},red:{base:"bg-red-100",baseDark:"bg-red-200",text:"text-red-800",border:"border-red-800/70"},green:{base:"bg-green-100",baseDark:"bg-green-200",text:"text-green-800",border:"border-green-800/70"},blue:{base:"bg-blue-100",baseDark:"bg-blue-200",text:"text-blue-800",border:"border-blue-800/70"},teal:{base:"bg-teal-100",baseDark:"bg-teal-200",text:"text-teal-800",border:"border-teal-800/70"},"teal-light":{base:"bg-teal-50",baseDark:"bg-teal-200",text:"text-teal-800",border:"border-teal-800/70"},yellow:{base:"bg-yellow-100",baseDark:"bg-yellow-200",text:"text-yellow-800",border:"border-yellow-800/70"},indigo:{base:"bg-indigo-100",baseDark:"bg-indigo-200",text:"text-indigo-800",border:"border-indigo-800/70"},purple:{base:"bg-purple-100",baseDark:"bg-purple-200",text:"text-purple-800",border:"border-purple-800/70"},pink:{base:"bg-pink-100",baseDark:"bg-pink-200",text:"text-pink-800",border:"border-pink-800/70"},orange:{base:"bg-orange-100",baseDark:"bg-orange-200",text:"text-orange-800",border:"border-orange-800/70"},black:{base:"bg-black",baseDark:"bg-gray-900",text:"text-white",border:"bg-gray-900/70"}},Ce=e.defineComponent({__name:"Chip",props:{color:{default:"primary"},content:{},dark:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},size:{default:"md"},variant:{default:"default"},textClass:{},tag:{default:"span"},hasChipBefore:{type:Boolean},hasChipAfter:{type:Boolean}},emits:["removed"],setup(n){const o=n,r=e.computed(()=>De[o.color][o.dark?"baseDark":"base"]),i=e.computed(()=>De[o.color].text),l=e.computed(()=>De[o.color].border);return(o,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tag),e.mergeProps(o.$attrs,{class:["inline-flex items-center gap-1 whitespace-nowrap rounded pl-2",{"pr-2":!n.removable,"h-4 px-2":"xs"===n.size,"h-4":"sm"===n.size,"h-5":"md"===n.size,"h-6":"lg"===n.size,"rounded-r-none":n.hasChipAfter,"rounded-l-none":n.hasChipBefore,[r.value]:!!r.value&&"outline"!==n.variant,"border bg-transparent":"outline"===n.variant,[l.value]:"outline"===n.variant&&!!l.value}]}),{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass([[i.value,n.textClass,"xs"===n.size?"text-[11px]":"text-xs"],"flex-grow text-center"])},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)])],2),n.removable?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass([{"h-5 w-4":"sm"===n.size,"h-5 w-5":"md"===n.size,"h-5 w-6":"lg"===n.size,[r.value]:!!r.value},"flex aspect-square h-full items-center justify-center rounded"]),type:"button",title:"Remove",onClick:a[0]||(a[0]=e=>o.$emit("removed"))},[e.createVNode(e.unref(t._sfc_main$1),{class:e.normalizeClass(i.value),icon:"close",size:"xs"},null,8,["class"])],2)):e.createCommentVNode("",!0)]),_:3},16,["class"]))}});exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports._sfc_main=Ce,exports.autoUpdate=function(e,t,r,l){void 0===l&&(l={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=l,d=te(e),p=a||s?[...d?Q(d):[],...Q(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});const m=d&&u?function(e,t){let r,l=null;const a=A(e);function s(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}return function c(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=d;if(u||t(),!g||!h)return;const y={rootMargin:-i(m)+"px "+-i(a.clientWidth-(p+g))+"px "+-i(a.clientHeight-(m+h))+"px "+-i(p)+"px",threshold:o(0,n(1,f))||1};let b=!0;function x(t){const n=t[0].intersectionRatio;if(n!==f){if(!b)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==n||he(d,e.getBoundingClientRect())||c(),b=!1}try{l=new IntersectionObserver(x,{...y,root:a.ownerDocument})}catch(v){l=new IntersectionObserver(x,y)}l.observe(e)}(!0),s}(d,r):null;let g,h=-1,y=null;c&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),d&&!f&&y.observe(d),y.observe(t));let b=f?ie(e):null;return f&&function t(){const n=ie(e);b&&!he(b,n)&&r();b=n,g=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(g)}},exports.flip=be,exports.offset=ye,exports.useFloating=function(t,n,o){void 0===o&&(o={});const r=o.whileElementsMounted,i=e.computed(()=>{var e;return null==(e=we(o.open))||e}),l=e.computed(()=>we(o.middleware)),a=e.computed(()=>{var e;return null!=(e=we(o.placement))?e:"bottom"}),s=e.computed(()=>{var e;return null!=(e=we(o.strategy))?e:"absolute"}),c=e.computed(()=>{var e;return null==(e=we(o.transform))||e}),u=e.computed(()=>ve(t.value)),f=e.computed(()=>ve(n.value)),d=e.ref(0),p=e.ref(0),m=e.ref(s.value),g=e.ref(a.value),h=e.shallowRef({}),y=e.ref(!1),b=e.computed(()=>{const e={position:m.value,left:"0",top:"0"};if(!f.value)return e;const t=ke(f.value,d.value),n=ke(f.value,p.value);return c.value?{...e,transform:"translate("+t+"px, "+n+"px)",...Re(f.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:t+"px",top:n+"px"}});let x;function v(){if(null==u.value||null==f.value)return;const e=i.value;xe(u.value,f.value,{middleware:l.value,placement:a.value,strategy:s.value}).then(t=>{d.value=t.x,p.value=t.y,m.value=t.strategy,g.value=t.placement,h.value=t.middlewareData,y.value=!1!==e})}function w(){"function"==typeof x&&(x(),x=void 0)}return e.watch([l,a,s,i],v,{flush:"sync"}),e.watch([u,f],function(){w(),void 0!==r?null==u.value||null==f.value||(x=r(u.value,f.value,v)):v()},{flush:"sync"}),e.watch(i,function(){i.value||(y.value=!1)},{flush:"sync"}),e.getCurrentScope()&&e.onScopeDispose(w),{x:e.shallowReadonly(d),y:e.shallowReadonly(p),strategy:e.shallowReadonly(m),placement:e.shallowReadonly(g),middlewareData:e.shallowReadonly(h),isPositioned:e.shallowReadonly(y),floatingStyles:b,update:v}};