@senitix/ui 0.4.0 → 0.4.1

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 (223) hide show
  1. package/dist/avatar-BT_SPwFW.cjs +18 -0
  2. package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
  3. package/dist/avatar-C5-ZWIqT.js +305 -0
  4. package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
  5. package/dist/calendar-BF5drX5u.cjs +12 -0
  6. package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
  7. package/dist/calendar-CUxm1K7J.js +17 -0
  8. package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
  9. package/dist/calendar-D3RWU0_G.cjs +7 -0
  10. package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
  11. package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
  12. package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
  13. package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
  14. package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
  15. package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
  16. package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
  17. package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
  18. package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
  19. package/dist/checkbox-CL6u7vL6.cjs +2 -0
  20. package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
  21. package/dist/chevron-down-BiUlxZA-.js +14 -0
  22. package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
  23. package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
  24. package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
  25. package/dist/chevron-right-BLyGmyaF.js +14 -0
  26. package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
  27. package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
  28. package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
  29. package/dist/chevron-up-BmYZUtrk.js +12 -0
  30. package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
  31. package/dist/chevron-up-C3RClqXD.cjs +7 -0
  32. package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
  33. package/dist/components/charts/index.cjs.js +1 -1
  34. package/dist/components/charts/index.es.js +1 -1
  35. package/dist/components/data-display/index.cjs.js +1 -1
  36. package/dist/components/data-display/index.es.js +1 -1
  37. package/dist/components/dnd/index.cjs.js +1 -1
  38. package/dist/components/dnd/index.es.js +1 -1
  39. package/dist/components/feedback/index.cjs.js +1 -1
  40. package/dist/components/feedback/index.es.js +1 -1
  41. package/dist/components/forms/index.cjs.js +1 -1
  42. package/dist/components/forms/index.es.js +1 -1
  43. package/dist/components/layouts/index.cjs.js +1 -1
  44. package/dist/components/layouts/index.es.js +1 -1
  45. package/dist/components/navigation/index.cjs.js +1 -1
  46. package/dist/components/navigation/index.es.js +1 -1
  47. package/dist/components/ui/index.cjs.js +1 -1
  48. package/dist/components/ui/index.es.js +13 -13
  49. package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
  50. package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
  51. package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
  52. package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
  53. package/dist/ellipsis-6eUne95u.js +16 -0
  54. package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
  55. package/dist/ellipsis-DkM3GBF5.cjs +7 -0
  56. package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
  57. package/dist/file-Cp5UoYUZ.cjs +7 -0
  58. package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
  59. package/dist/file-Cw_u_aJB.js +15 -0
  60. package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
  61. package/dist/filter-tags-DoRzXjuY.cjs +48 -0
  62. package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
  63. package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
  64. package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
  65. package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
  66. package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
  67. package/dist/full-calendar-DjAvCfuE.cjs +23 -0
  68. package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
  69. package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
  70. package/dist/global-search-BbZfc-VL.js.map +1 -0
  71. package/dist/global-search-Bd74_wPV.cjs +22 -0
  72. package/dist/global-search-Bd74_wPV.cjs.map +1 -0
  73. package/dist/hooks/index.cjs.js +1 -1
  74. package/dist/hooks/index.es.js +1 -1
  75. package/dist/index-D2U2F80P.cjs +2 -0
  76. package/dist/index-D2U2F80P.cjs.map +1 -0
  77. package/dist/index-DG0KV-sw.cjs +11 -0
  78. package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
  79. package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
  80. package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
  81. package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
  82. package/dist/index-DtaLkIY8.js.map +1 -0
  83. package/dist/index-XnFSmCuh.js +299 -0
  84. package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
  85. package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
  86. package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
  87. package/dist/index.cjs.js +1 -1
  88. package/dist/index.es.js +23 -23
  89. package/dist/input-BgPy-4Qu.js +3658 -0
  90. package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
  91. package/dist/input-Cfr2WB-P.cjs +47 -0
  92. package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
  93. package/dist/locale-provider-BojNdf1Y.cjs +2 -0
  94. package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
  95. package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
  96. package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
  97. package/dist/locale-selector-BD1IWk6X.cjs +22 -0
  98. package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
  99. package/dist/locale-selector-DLRSyVye.js +1772 -0
  100. package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
  101. package/dist/minus-C0uyaz70.cjs +7 -0
  102. package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
  103. package/dist/minus-CiwV65ZG.js +12 -0
  104. package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
  105. package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
  106. package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
  107. package/dist/multi-container-BdNbgtPZ.cjs +7 -0
  108. package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
  109. package/dist/pipeline-Dh052Dvj.cjs +27 -0
  110. package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
  111. package/dist/pipeline-DqWvleNy.js +1076 -0
  112. package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
  113. package/dist/plus-BsV82JJ5.cjs +7 -0
  114. package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
  115. package/dist/plus-DxD6rofl.js +15 -0
  116. package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
  117. package/dist/popover-BgLxmm1z.cjs +7 -0
  118. package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
  119. package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
  120. package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
  121. package/dist/progress-CTTt_CP3.js +260 -0
  122. package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
  123. package/dist/progress-CTWb7X1Q.cjs +37 -0
  124. package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
  125. package/dist/providers/index.cjs.js +1 -1
  126. package/dist/providers/index.es.js +1 -1
  127. package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
  128. package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
  129. package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
  130. package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
  131. package/dist/select-BJpZrtep.js +989 -0
  132. package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
  133. package/dist/select-Ii8HRuXa.cjs +2 -0
  134. package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
  135. package/dist/separator-BzcDE0Ei.cjs +2 -0
  136. package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
  137. package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
  138. package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
  139. package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
  140. package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
  141. package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
  142. package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
  143. package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
  144. package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
  145. package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
  146. package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
  147. package/dist/sortable.esm-5DsiICDg.cjs +6 -0
  148. package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
  149. package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
  150. package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
  151. package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
  152. package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
  153. package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
  154. package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
  155. package/dist/styles.css +1 -0
  156. package/dist/trending-up-BBjz_E69.cjs +7 -0
  157. package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
  158. package/dist/trending-up-BHFXgLWy.js +15 -0
  159. package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
  160. package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
  161. package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
  162. package/dist/use-formatters-CObUgipW.cjs +2 -0
  163. package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
  164. package/dist/utils/index.cjs.js +1 -1
  165. package/dist/utils/index.es.js +1 -1
  166. package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
  167. package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
  168. package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
  169. package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
  170. package/package.json +14 -12
  171. package/dist/avatar-C0aVNCG9.cjs +0 -2
  172. package/dist/avatar-CN6wcrqY.js +0 -288
  173. package/dist/calendar-BUm7YrNf.cjs +0 -2
  174. package/dist/calendar-ChJkFXXr.js +0 -11
  175. package/dist/calendar-SwL5isYC.cjs +0 -2
  176. package/dist/checkbox-D7-LQyCl.cjs +0 -2
  177. package/dist/chevron-down-DHdXqOqK.cjs +0 -2
  178. package/dist/chevron-down-DJ1_YIFu.js +0 -8
  179. package/dist/chevron-right-B3bovvh0.js +0 -8
  180. package/dist/chevron-right-Dvyd11q0.cjs +0 -2
  181. package/dist/chevron-up-B9fuiZhc.cjs +0 -2
  182. package/dist/chevron-up-CGtXOr51.js +0 -6
  183. package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
  184. package/dist/ellipsis-BW2gWki8.cjs +0 -2
  185. package/dist/ellipsis-CiKEaUNP.js +0 -10
  186. package/dist/file-V_hhCUhr.cjs +0 -2
  187. package/dist/file-wzTXnWqz.js +0 -9
  188. package/dist/filter-tags-DjUaNXHR.cjs +0 -5
  189. package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
  190. package/dist/global-search-UNXjoFlI.cjs +0 -2
  191. package/dist/global-search-UNXjoFlI.cjs.map +0 -1
  192. package/dist/global-search-h1rVbP2q.js.map +0 -1
  193. package/dist/index-CwJPJKOE.js.map +0 -1
  194. package/dist/index-CzVK9Zyb.cjs +0 -6
  195. package/dist/index-l828OqQN.js +0 -288
  196. package/dist/index-lGzB9daF.cjs +0 -2
  197. package/dist/index-lGzB9daF.cjs.map +0 -1
  198. package/dist/input-CZrckPLk.cjs +0 -42
  199. package/dist/input-D4AoiWxo.js +0 -3629
  200. package/dist/locale-provider-DHMwuneF.cjs +0 -2
  201. package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
  202. package/dist/locale-selector-xn2GpdP9.js +0 -1745
  203. package/dist/minus-BXBFZSZs.cjs +0 -2
  204. package/dist/minus-DvlYtl96.js +0 -6
  205. package/dist/multi-container-DMKL8c9B.cjs +0 -2
  206. package/dist/pipeline-By5_8AFg.cjs +0 -2
  207. package/dist/pipeline-D-QNSU0U.js +0 -1036
  208. package/dist/plus-8wKRkVu-.cjs +0 -2
  209. package/dist/plus-CJD68KQD.js +0 -9
  210. package/dist/popover-ivh-plLc.cjs +0 -2
  211. package/dist/progress-CFnuLqnS.cjs +0 -7
  212. package/dist/progress-D5AsrWa6.js +0 -222
  213. package/dist/scroll-area-DYOiJMXh.cjs +0 -2
  214. package/dist/select-C1rNBi6c.js +0 -974
  215. package/dist/select-m-Mqwxu3.cjs +0 -2
  216. package/dist/separator-DBUivkHq.cjs +0 -2
  217. package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
  218. package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
  219. package/dist/trending-up-D3Nfrhi3.cjs +0 -2
  220. package/dist/trending-up-DPwlYzQb.js +0 -9
  221. package/dist/ui.css +0 -1
  222. package/dist/use-formatters-d97RVcmg.cjs +0 -2
  223. package/dist/welcome-card-CPolYl1D.cjs +0 -2
@@ -0,0 +1,22 @@
1
+ "use strict";const e=require("react/jsx-runtime"),C=require("react"),k=require("./scroll-area-DzDnWIYJ.cjs"),P=require("./index-D2U2F80P.cjs"),T=require("./calendar-BF5drX5u.cjs"),x=require("./popover-BgLxmm1z.cjs"),z=require("./use-formatters-CObUgipW.cjs"),ue=require("./calendar-D3RWU0_G.cjs"),O=require("./input-Cfr2WB-P.cjs"),me=require("./index-DG0KV-sw.cjs"),W=require("./createLucideIcon-Cv8nC2E9.cjs"),Oe=require("./file-Cp5UoYUZ.cjs"),ae=require("./chevron-up-C3RClqXD.cjs"),X=require("./chevron-down-Ce0kqXiD.cjs"),Be=require("./minus-C0uyaz70.cjs"),Ee=require("./plus-BsV82JJ5.cjs"),J=require("./avatar-BT_SPwFW.cjs"),Te=require("./chevron-right-Bxf8i4gi.cjs"),U=require("./locale-provider-BojNdf1Y.cjs");function Ue(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return r.default=t,Object.freeze(r)}const N=Ue(C);/**
2
+ * @license lucide-react v0.441.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Z=W.createLucideIcon("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
7
+ * @license lucide-react v0.441.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const He=W.createLucideIcon("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
12
+ * @license lucide-react v0.441.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const $e=W.createLucideIcon("Pipette",[["path",{d:"m2 22 1-1h3l9-9",key:"1sre89"}],["path",{d:"M3 21v-3l9-9",key:"hpe2y6"}],["path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",key:"196du1"}]]);/**
17
+ * @license lucide-react v0.441.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ze=W.createLucideIcon("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var qe=t=>t.type==="checkbox",$=t=>t instanceof Date,ee=t=>t==null;const fe=t=>typeof t=="object";var H=t=>!ee(t)&&!Array.isArray(t)&&fe(t)&&!$(t),Ge=t=>H(t)&&t.target?qe(t.target)?t.target.checked:t.target.value:t,Ke=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Xe=(t,r)=>t.has(Ke(r)),We=t=>{const r=t.constructor&&t.constructor.prototype;return H(r)&&r.hasOwnProperty("isPrototypeOf")},Je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pe(t){if(t instanceof Date)return new Date(t);const r=typeof FileList<"u"&&t instanceof FileList;if(Je&&(t instanceof Blob||r))return t;const s=Array.isArray(t);if(!s&&!(H(t)&&We(t)))return t;const a=s?[]:Object.create(Object.getPrototypeOf(t));for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=pe(t[n]));return a}var xe=t=>/^\w*$/.test(t),Q=t=>t===void 0,Ye=t=>Array.isArray(t)?t.filter(Boolean):[],he=t=>Ye(t.replace(/["|']|\]/g,"").split(/\.|\[/)),_=(t,r,s)=>{if(!r||!H(t))return s;const a=(xe(r)?[r]:he(r)).reduce((n,c)=>ee(n)?n:n[c],t);return Q(a)||a===t?Q(t[r])?s:t[r]:a},Y=t=>typeof t=="boolean",G=t=>typeof t=="function",ne=(t,r,s)=>{let a=-1;const n=xe(r)?[r]:he(r),c=n.length,u=c-1;for(;++a<c;){const m=n[a];let y=s;if(a!==u){const g=t[m];y=H(g)||Array.isArray(g)?g:isNaN(+n[a+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;t[m]=y,t=t[m]}};const oe={BLUR:"blur",CHANGE:"change"},le={all:"all"},te=C.createContext(null);te.displayName="HookFormControlContext";const se=()=>C.useContext(te);var Qe=(t,r,s,a=!0)=>{const n={defaultValues:r._defaultValues};for(const c in t)Object.defineProperty(n,c,{get:()=>{const u=c;return r._proxyFormState[u]!==le.all&&(r._proxyFormState[u]=!a||le.all),s&&(s[u]=!0),t[u]}});return n};const ge=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Ze(t){const r=se(),{control:s=r,disabled:a,name:n,exact:c}=t||{},[u,m]=C.useState(s._formState),y=C.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ge(()=>s._subscribe({name:n,formState:y.current,exact:c,callback:g=>{!a&&m({...s._formState,...g})}}),[n,a,c]),C.useEffect(()=>{y.current.isValid&&s._setValid(!0)},[s]),C.useMemo(()=>Qe(u,s,y.current,!1),[u,s])}var et=t=>typeof t=="string",ce=(t,r,s,a,n)=>et(t)?_(s,t,n):Array.isArray(t)?t.map(c=>_(s,c)):s,ie=t=>ee(t)||!fe(t);function K(t,r,s=new WeakSet){if(ie(t)||ie(r))return Object.is(t,r);if($(t)&&$(r))return Object.is(t.getTime(),r.getTime());const a=Object.keys(t),n=Object.keys(r);if(a.length!==n.length)return!1;if(s.has(t)||s.has(r))return!0;s.add(t),s.add(r);for(const c of a){const u=t[c];if(!n.includes(c))return!1;if(c!=="ref"){const m=r[c];if($(u)&&$(m)||H(u)&&H(m)||Array.isArray(u)&&Array.isArray(m)?!K(u,m,s):!Object.is(u,m))return!1}}return!0}function tt(t){const r=se(),{control:s=r,name:a,defaultValue:n,disabled:c,exact:u,compute:m}=t||{},y=C.useRef(n),g=C.useRef(m),v=C.useRef(void 0),p=C.useRef(s),i=C.useRef(a);g.current=m;const[h,d]=C.useState(()=>{const o=s._getWatch(a,y.current);return g.current?g.current(o):o}),f=C.useCallback(o=>{const S=ce(a,s._names,o||s._formValues,!1,y.current);return g.current?g.current(S):S},[s._formValues,s._names,a]),j=C.useCallback(o=>{if(!c){const S=ce(a,s._names,o||s._formValues,!1,y.current);if(g.current){const M=g.current(S);K(M,v.current)||(d(M),v.current=M)}else d(S)}},[s._formValues,s._names,c,a]);ge(()=>((p.current!==s||!K(i.current,a))&&(p.current=s,i.current=a,j()),s._subscribe({name:a,formState:{values:!0},exact:u,callback:o=>{j(o.values)}})),[s,u,a,j]),C.useEffect(()=>s._removeUnmounted());const b=p.current!==s,l=i.current,F=C.useMemo(()=>{if(c)return null;const o=!b&&!K(l,a);return b||o?f():null},[c,b,a,l,f]);return F!==null?F:h}function st(t){const r=se(),{name:s,disabled:a,control:n=r,shouldUnregister:c,defaultValue:u,exact:m=!0}=t,y=Xe(n._names.array,s),g=C.useMemo(()=>_(n._formValues,s,_(n._defaultValues,s,u)),[n,s,u]),v=tt({control:n,name:s,defaultValue:g,exact:m}),p=Ze({control:n,name:s,exact:m}),i=C.useRef(t),h=C.useRef(void 0),d=C.useRef(n.register(s,{...t.rules,value:v,...Y(t.disabled)?{disabled:t.disabled}:{}}));i.current=t;const f=C.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_(p.errors,s)},isDirty:{enumerable:!0,get:()=>!!_(p.dirtyFields,s)},isTouched:{enumerable:!0,get:()=>!!_(p.touchedFields,s)},isValidating:{enumerable:!0,get:()=>!!_(p.validatingFields,s)},error:{enumerable:!0,get:()=>_(p.errors,s)}}),[p,s]),j=C.useCallback(o=>d.current.onChange({target:{value:Ge(o),name:s},type:oe.CHANGE}),[s]),b=C.useCallback(()=>d.current.onBlur({target:{value:_(n._formValues,s),name:s},type:oe.BLUR}),[s,n._formValues]),l=C.useCallback(o=>{const S=_(n._fields,s);S&&S._f&&o&&(S._f.ref={focus:()=>G(o.focus)&&o.focus(),select:()=>G(o.select)&&o.select(),setCustomValidity:M=>G(o.setCustomValidity)&&o.setCustomValidity(M),reportValidity:()=>G(o.reportValidity)&&o.reportValidity()})},[n._fields,s]),F=C.useMemo(()=>({name:s,value:v,...Y(a)||p.disabled?{disabled:p.disabled||a}:{},onChange:j,onBlur:b,ref:l}),[s,a,p.disabled,j,b,l,v]);return C.useEffect(()=>{const o=n._options.shouldUnregister||c,S=h.current;S&&S!==s&&!y&&n.unregister(S),n.register(s,{...i.current.rules,...Y(i.current.disabled)?{disabled:i.current.disabled}:{}});const M=(L,A)=>{const D=_(n._fields,L);D&&D._f&&(D._f.mount=A)};if(M(s,!0),o){const L=pe(_(n._options.defaultValues,s,i.current.defaultValue));ne(n._defaultValues,s,L),Q(_(n._formValues,s))&&ne(n._formValues,s,L)}return!y&&n.register(s),h.current=s,()=>{(y?o&&!n._state.action:o)?n.unregister(s):M(s,!1)}},[s,n,y,c]),C.useEffect(()=>{n._setDisabledField({disabled:a,name:s})},[a,s,n]),C.useMemo(()=>({field:F,formState:p,fieldState:f}),[F,p,f])}const rt=t=>t.render(st(t)),re=C.createContext(null);re.displayName="HookFormContext";const at=()=>C.useContext(re),nt=t=>{const{children:r,watch:s,getValues:a,getFieldState:n,setError:c,clearErrors:u,setValue:m,trigger:y,formState:g,resetField:v,reset:p,handleSubmit:i,unregister:h,control:d,register:f,setFocus:j,subscribe:b}=t;return C.createElement(re.Provider,{value:C.useMemo(()=>({watch:s,getValues:a,getFieldState:n,setError:c,clearErrors:u,setValue:m,trigger:y,formState:g,resetField:v,reset:p,handleSubmit:i,unregister:h,control:d,register:f,setFocus:j,subscribe:b}),[u,d,g,n,a,i,f,p,v,c,j,m,b,y,h,s])},C.createElement(te.Provider,{value:d},r))},ot=nt,je=N.createContext({}),lt=({...t})=>e.jsx(je.Provider,{value:{name:t.name},children:e.jsx(rt,{...t})}),q=()=>{const t=N.useContext(je),r=N.useContext(Ne),{getFieldState:s,formState:a}=at(),n=s(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:c}=r;return{id:c,name:t.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...n}},Ne=N.createContext({}),ye=N.forwardRef(({className:t,...r},s)=>{const a=N.useId();return e.jsx(Ne.Provider,{value:{id:a},children:e.jsx("div",{ref:s,className:P.cn("space-y-2",t),...r})})});ye.displayName="FormItem";const be=N.forwardRef(({className:t,...r},s)=>{const{error:a,formItemId:n}=q();return e.jsx(T.Label,{ref:s,className:P.cn(a&&"text-destructive",t),htmlFor:n,...r})});be.displayName="FormLabel";const we=N.forwardRef(({...t},r)=>{const{error:s,formItemId:a,formDescriptionId:n,formMessageId:c}=q();return e.jsx(k.Slot,{ref:r,id:a,"aria-describedby":s?`${n} ${c}`:`${n}`,"aria-invalid":!!s,...t})});we.displayName="FormControl";const ve=N.forwardRef(({className:t,...r},s)=>{const{formDescriptionId:a}=q();return e.jsx("p",{ref:s,id:a,className:P.cn("text-sm text-muted-foreground",t),...r})});ve.displayName="FormDescription";const Se=N.forwardRef(({className:t,children:r,...s},a)=>{const{error:n,formMessageId:c}=q(),u=n?String(n==null?void 0:n.message):r;return u?e.jsx("p",{ref:a,id:c,className:P.cn("text-sm font-medium text-destructive",t),...s,children:u}):null});Se.displayName="FormMessage";function ct({value:t,onChange:r,placeholder:s,disabled:a=!1,className:n,dateFormat:c="PPP"}){const{t:u,formatDate:m}=z.useFormatters(),y=s||u("date.selectDate");return e.jsxs(x.Popover,{children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{variant:"outline",disabled:a,className:P.cn("w-full justify-start text-left font-normal",!t&&"text-muted-foreground",n),children:[e.jsx(ue.Calendar,{className:"mr-2 h-4 w-4"}),t?m(t,c):e.jsx("span",{children:y})]})}),e.jsx(x.PopoverContent,{className:"w-auto p-0",align:"start",children:e.jsx(T.Calendar,{mode:"single",selected:t,onSelect:r,initialFocus:!0})})]})}const ke=N.forwardRef(({value:t,onChange:r,placeholder:s="Pick a date range",disabled:a=!1,className:n,dateFormat:c="LLL dd, y",numberOfMonths:u=2},m)=>e.jsx("div",{className:P.cn("grid gap-2",n),children:e.jsxs(x.Popover,{children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{ref:m,id:"date",variant:"outline",disabled:a,className:P.cn("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e.jsx(ue.Calendar,{className:"mr-2 h-4 w-4"}),t!=null&&t.from?t.to?e.jsxs(e.Fragment,{children:[z.format(t.from,c)," - ",z.format(t.to,c)]}):z.format(t.from,c):e.jsx("span",{children:s})]})}),e.jsx(x.PopoverContent,{className:"w-auto p-0",align:"start",children:e.jsx(T.Calendar,{initialFocus:!0,mode:"range",defaultMonth:t==null?void 0:t.from,selected:t,onSelect:r,numberOfMonths:u})})]})}));ke.displayName="DateRangePicker";const Pe=N.forwardRef(({className:t,value:r,onChange:s,onSearch:a,onClear:n,showClearButton:c=!0,loading:u=!1,placeholder:m="Search...",...y},g)=>{const v=h=>{s==null||s(h.target.value)},p=()=>{s==null||s(""),n==null||n()},i=h=>{h.key==="Enter"&&(a==null||a(r||""))};return e.jsxs("div",{className:P.cn("relative",t),children:[e.jsx(me.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(O.Input,{ref:g,type:"text",value:r,onChange:v,onKeyDown:i,placeholder:m,className:P.cn("pl-9",c&&r&&"pr-9"),...y}),c&&r&&!u&&e.jsxs(k.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 h-7 w-7 -translate-y-1/2",onClick:p,children:[e.jsx(k.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Clear"})]}),u&&e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:e.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent"})})]})});Pe.displayName="SearchInput";const Ce=N.forwardRef(({value:t=[],onChange:r,accept:s,multiple:a=!1,maxFiles:n=10,maxSize:c=10*1024*1024,disabled:u=!1,className:m},y)=>{const g=N.useRef(null),[v,p]=N.useState(!1),i=l=>{if(!l)return;const o=Array.from(l).filter(M=>!(M.size>c)),S=a?[...t,...o].slice(0,n):o.slice(0,1);r==null||r(S)},h=l=>{l.preventDefault(),l.stopPropagation(),l.type==="dragenter"||l.type==="dragover"?p(!0):l.type==="dragleave"&&p(!1)},d=l=>{l.preventDefault(),l.stopPropagation(),p(!1),u||i(l.dataTransfer.files)},f=l=>{i(l.target.files)},j=l=>{const F=t.filter((o,S)=>S!==l);r==null||r(F)},b=l=>{if(l===0)return"0 Bytes";const F=1024,o=["Bytes","KB","MB","GB"],S=Math.floor(Math.log(l)/Math.log(F));return parseFloat((l/Math.pow(F,S)).toFixed(2))+" "+o[S]};return e.jsxs("div",{ref:y,className:P.cn("space-y-4",m),children:[e.jsxs("div",{className:P.cn("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed p-6 transition-colors",v?"border-primary bg-primary/5":"border-muted-foreground/25",u&&"cursor-not-allowed opacity-50"),onDragEnter:h,onDragLeave:h,onDragOver:h,onDrop:d,children:[e.jsx("input",{ref:g,type:"file",accept:s,multiple:a,disabled:u,onChange:f,className:"absolute inset-0 cursor-pointer opacity-0"}),e.jsx(ze,{className:"mb-2 h-10 w-10 text-muted-foreground"}),e.jsx("p",{className:"mb-1 text-sm font-medium",children:"Drag & drop files here, or click to select"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[a?`Up to ${n} files`:"Single file"," (max"," ",b(c)," each)"]})]}),t.length>0&&e.jsx("div",{className:"space-y-2",children:t.map((l,F)=>e.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Oe.File,{className:"h-8 w-8 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:l.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:b(l.size)})]})]}),e.jsx(k.Button,{type:"button",variant:"ghost",size:"icon",onClick:()=>j(F),disabled:u,children:e.jsx(k.X,{className:"h-4 w-4"})})]},`${l.name}-${F}`))})]})});Ce.displayName="FileUpload";const Fe=N.forwardRef(({options:t,value:r,onChange:s,placeholder:a="Select option...",searchPlaceholder:n="Search...",emptyMessage:c="No results found.",disabled:u=!1,className:m},y)=>{const[g,v]=N.useState(!1),p=t.find(i=>i.value===r);return e.jsxs(x.Popover,{open:g,onOpenChange:v,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{ref:y,variant:"outline",role:"combobox","aria-expanded":g,disabled:u,className:P.cn("w-full justify-between",!r&&"text-muted-foreground",m),children:[p?p.label:a,e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(x.PopoverContent,{className:"w-full p-0",align:"start",children:e.jsxs(x.Command,{children:[e.jsx(x.CommandInput,{placeholder:n}),e.jsxs(x.CommandList,{children:[e.jsx(x.CommandEmpty,{children:c}),e.jsx(x.CommandGroup,{children:t.map(i=>e.jsxs(x.CommandItem,{value:i.value,disabled:i.disabled,onSelect:h=>{s==null||s(h===r?"":h),v(!1)},children:[e.jsx(k.Check,{className:P.cn("mr-2 h-4 w-4",r===i.value?"opacity-100":"opacity-0")}),i.label]},i.value))})]})]})})]})});Fe.displayName="Combobox";const Ie=N.forwardRef(({value:t=[],onChange:r,placeholder:s="Add tag...",maxTags:a=10,allowDuplicates:n=!1,disabled:c=!1,className:u},m)=>{const[y,g]=N.useState(""),v=N.useRef(null),p=d=>{const f=d.trim();f&&(t.length>=a||!n&&t.includes(f)||(r==null||r([...t,f]),g("")))},i=d=>{const f=t.filter((j,b)=>b!==d);r==null||r(f)},h=d=>{d.key==="Enter"?(d.preventDefault(),p(y)):d.key==="Backspace"&&!y&&t.length>0?i(t.length-1):d.key===","&&(d.preventDefault(),p(y))};return e.jsxs("div",{ref:m,className:P.cn("flex min-h-10 w-full flex-wrap items-center gap-2 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",c&&"cursor-not-allowed opacity-50",u),onClick:()=>{var d;return(d=v.current)==null?void 0:d.focus()},children:[t.map((d,f)=>e.jsxs(k.Badge,{variant:"secondary",className:"gap-1",children:[d,!c&&e.jsx("button",{type:"button",onClick:j=>{j.stopPropagation(),i(f)},className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",children:e.jsx(k.X,{className:"h-3 w-3"})})]},`${d}-${f}`)),e.jsx(O.Input,{ref:v,type:"text",value:y,onChange:d=>g(d.target.value),onKeyDown:h,placeholder:t.length===0?s:"",disabled:c||t.length>=a,className:"flex-1 border-0 bg-transparent p-0 placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0"})]})});Ie.displayName="TagInput";const De=N.forwardRef(({value:t,onChange:r,format:s="24h",minuteStep:a=1,placeholder:n,disabled:c=!1,className:u,error:m},y)=>{const{t:g}=z.useFormatters(),[v,p]=N.useState(!1),[i,h]=N.useState(0),[d,f]=N.useState(0),[j,b]=N.useState("AM");N.useEffect(()=>{if(t){const[R,w]=t.split(":").map(Number);s==="12h"?(h(R>12?R-12:R===0?12:R),b(R>=12?"PM":"AM")):h(R),f(w)}},[t,s]);const l=(R,w,I)=>{let V=R;if(s==="12h"){const E=I??j;E==="PM"&&V!==12&&(V+=12),E==="AM"&&V===12&&(V=0)}const B=`${V.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`;r==null||r(B)},F=()=>{const R=s==="12h"?12:23,w=s==="12h"?1:0,I=i>=R?w:i+1;h(I),l(I,d)},o=()=>{const R=s==="12h"?12:23,I=i<=(s==="12h"?1:0)?R:i-1;h(I),l(I,d)},S=()=>{const R=d>=60-a,w=R?0:d+a;let I=i,V=j;if(R){const B=s==="12h"?12:23,E=s==="12h"?1:0;I=i>=B?E:i+1,s==="12h"&&i===11&&(V=j==="AM"?"PM":"AM",b(V)),h(I)}f(w),l(I,w,s==="12h"?V:void 0)},M=()=>{const R=d<a,w=R?60-a:d-a;let I=i,V=j;if(R){const B=s==="12h"?12:23;I=i<=(s==="12h"?1:0)?B:i-1,s==="12h"&&i===12&&(V=j==="AM"?"PM":"AM",b(V)),h(I)}f(w),l(I,w,s==="12h"?V:void 0)},L=()=>{const R=j==="AM"?"PM":"AM";b(R),l(i,d,R)},A=N.useMemo(()=>t?s==="12h"?`${i.toString().padStart(2,"0")}:${d.toString().padStart(2,"0")} ${j}`:`${i.toString().padStart(2,"0")}:${d.toString().padStart(2,"0")}`:"",[t,s,i,d,j]),D=n||g("time.selectTime");return e.jsxs(x.Popover,{open:v,onOpenChange:p,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:P.cn("relative",u),children:[e.jsx(O.Input,{ref:y,readOnly:!0,value:A,placeholder:D,disabled:c,className:P.cn("pr-10 cursor-pointer",m&&"border-destructive"),onClick:()=>!c&&p(!0)}),e.jsx(T.Clock,{className:"absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"})]})}),e.jsx(x.PopoverContent,{className:"w-auto p-4",align:"start",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.hours")}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(k.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:F,children:e.jsx(ae.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-2xl font-bold tabular-nums",children:i.toString().padStart(2,"0")}),e.jsx(k.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:o,children:e.jsx(X.ChevronDown,{className:"h-4 w-4"})})]})]}),e.jsx("span",{className:"text-2xl font-bold",children:":"}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.minutes")}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(k.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:S,children:e.jsx(ae.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-2xl font-bold tabular-nums",children:d.toString().padStart(2,"0")}),e.jsx(k.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:M,children:e.jsx(X.ChevronDown,{className:"h-4 w-4"})})]})]}),s==="12h"&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.period")}),e.jsx(k.Button,{variant:"outline",className:"h-auto px-3 py-2 text-lg font-bold",onClick:L,children:j})]})]})})]})});De.displayName="TimePicker";const it=["#000000","#ffffff","#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#10b981","#14b8a6","#06b6d4","#0ea5e9","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e","#78716c","#737373","#71717a","#6b7280","#64748b"],Re=N.forwardRef(({value:t="#000000",onChange:r,presetColors:s=it,showInput:a=!0,showEyeDropper:n=!0,placeholder:c="Select color",disabled:u=!1,className:m},y)=>{const[g,v]=N.useState(!1),[p,i]=N.useState(t),h=typeof window<"u"&&"EyeDropper"in window;N.useEffect(()=>{i(t)},[t]);const d=b=>{i(b),r==null||r(b)},f=b=>{const l=b.target.value;i(l),/^#[0-9A-Fa-f]{6}$/.test(l)&&(r==null||r(l))},j=async()=>{if(h)try{const l=await new window.EyeDropper().open();d(l.sRGBHex)}catch{}};return e.jsxs(x.Popover,{open:g,onOpenChange:v,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{ref:y,variant:"outline",disabled:u,className:P.cn("w-full justify-start gap-2",m),children:[e.jsx("div",{className:"h-5 w-5 rounded border",style:{backgroundColor:p}}),e.jsx("span",{className:"flex-1 text-left font-mono text-sm",children:p||c})]})}),e.jsx(x.PopoverContent,{className:"w-64 p-3",align:"start",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg border",style:{backgroundColor:p}}),e.jsxs("div",{className:"flex-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:"Current Color"}),e.jsx("p",{className:"font-mono text-sm font-medium",children:p})]}),n&&h&&e.jsx(k.Button,{variant:"outline",size:"icon",onClick:j,title:"Pick color from screen",children:e.jsx($e,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"grid grid-cols-6 gap-1",children:s.map(b=>e.jsx("button",{className:P.cn("h-7 w-7 rounded-md border-2 transition-transform hover:scale-110",p.toLowerCase()===b.toLowerCase()?"border-primary":"border-transparent"),style:{backgroundColor:b},onClick:()=>d(b),title:b},b))}),a&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(O.Input,{type:"text",value:p,onChange:f,placeholder:"#000000",className:"font-mono",maxLength:7}),e.jsx("input",{type:"color",value:p,onChange:b=>d(b.target.value),className:"h-10 w-10 cursor-pointer rounded border bg-transparent p-1"})]})]})})]})});Re.displayName="ColorPicker";const Me=N.forwardRef(({options:t,value:r=[],onChange:s,placeholder:a="Select items...",searchPlaceholder:n="Search...",emptyMessage:c="No items found.",maxDisplayedItems:u=3,maxSelections:m,disabled:y=!1,className:g},v)=>{const[p,i]=N.useState(!1),h=t.filter(l=>r.includes(l.value)),d=m!==void 0&&r.length>=m,f=l=>{r.includes(l)?s==null||s(r.filter(F=>F!==l)):d||s==null||s([...r,l])},j=(l,F)=>{F.stopPropagation(),s==null||s(r.filter(o=>o!==l))},b=l=>{l.stopPropagation(),s==null||s([])};return e.jsxs(x.Popover,{open:p,onOpenChange:i,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{ref:v,variant:"outline",role:"combobox","aria-expanded":p,disabled:y,className:P.cn("w-full justify-between font-normal",h.length===0&&"text-muted-foreground",g),children:[e.jsx("div",{className:"flex flex-1 flex-wrap items-center gap-1",children:h.length===0?a:h.length<=u?h.map(l=>e.jsxs(k.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[l.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:F=>j(l.value,F),children:e.jsx(k.X,{className:"h-3 w-3"})})]},l.value)):e.jsxs(e.Fragment,{children:[h.slice(0,u).map(l=>e.jsxs(k.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[l.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:F=>j(l.value,F),children:e.jsx(k.X,{className:"h-3 w-3"})})]},l.value)),e.jsxs(k.Badge,{variant:"secondary",children:["+",h.length-u]})]})}),e.jsxs("div",{className:"flex items-center gap-1",children:[h.length>0&&e.jsx("button",{className:"rounded p-0.5 hover:bg-muted",onClick:b,children:e.jsx(k.X,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(X.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})]})}),e.jsx(x.PopoverContent,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:e.jsxs(x.Command,{children:[e.jsx(x.CommandInput,{placeholder:n}),e.jsxs(x.CommandList,{children:[e.jsx(x.CommandEmpty,{children:c}),e.jsx(x.CommandGroup,{children:t.map(l=>{const F=r.includes(l.value),o=l.disabled||d&&!F;return e.jsxs(x.CommandItem,{value:l.value,disabled:o,onSelect:()=>f(l.value),className:"flex items-center gap-2",children:[e.jsx("div",{className:P.cn("flex h-4 w-4 items-center justify-center rounded border",r.includes(l.value)?"border-primary bg-primary text-primary-foreground":"border-muted-foreground/30"),children:r.includes(l.value)&&e.jsx(k.Check,{className:"h-3 w-3"})}),l.icon&&e.jsx("span",{className:"h-4 w-4",children:l.icon}),e.jsx("span",{children:l.label})]},l.value)})})]})]})})]})});Me.displayName="MultiSelect";const dt=k.cva("relative flex",{variants:{size:{sm:"w-24",md:"w-32",lg:"w-40"}},defaultVariants:{size:"md"}}),de={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},ut={sm:"h-8 text-sm",md:"h-10 text-base",lg:"h-12 text-lg"},Ve=N.forwardRef(({className:t,value:r,onChange:s,min:a,max:n,step:c=1,precision:u=0,showStepper:m=!0,prefix:y,suffix:g,disabled:v,size:p="md",...i},h)=>{const[d,f]=N.useState((r==null?void 0:r.toString())??"");N.useEffect(()=>{f((r==null?void 0:r.toString())??"")},[r]);const j=A=>{let D=A;return a!==void 0&&(D=Math.max(a,D)),n!==void 0&&(D=Math.min(n,D)),Number(D.toFixed(u))},b=A=>{const D=A.target.value;if(f(D),D===""||D==="-"){s==null||s(void 0);return}const R=parseFloat(D);isNaN(R)||s==null||s(j(R))},l=()=>{if(d===""||d==="-"){f(""),s==null||s(void 0);return}const A=parseFloat(d);if(!isNaN(A)){const D=j(A);f(D.toString()),s==null||s(D)}},F=()=>{const D=j((r??0)+c);f(D.toString()),s==null||s(D)},o=()=>{const D=j((r??0)-c);f(D.toString()),s==null||s(D)},S=n===void 0||(r??0)<n,M=a===void 0||(r??0)>a,L=p||"md";return e.jsxs("div",{className:P.cn(dt({size:p}),t),children:[m&&e.jsx(k.Button,{type:"button",variant:"outline",size:"icon",className:P.cn("rounded-r-none",de[L]),onClick:o,disabled:v||!M,children:e.jsx(Be.Minus,{className:P.cn(L==="sm"?"h-3 w-3":"h-4 w-4")})}),e.jsxs("div",{className:"relative flex-1",children:[y&&e.jsx("span",{className:P.cn("absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",L==="sm"&&"text-sm",L==="lg"&&"text-lg"),children:y}),e.jsx(O.Input,{ref:h,type:"text",inputMode:"decimal",value:d,onChange:b,onBlur:l,disabled:v,className:P.cn("text-center",ut[L],m&&"rounded-none border-x-0",y&&"pl-8",g&&"pr-8"),...i}),g&&e.jsx("span",{className:P.cn("absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",L==="sm"&&"text-sm",L==="lg"&&"text-lg"),children:g})]}),m&&e.jsx(k.Button,{type:"button",variant:"outline",size:"icon",className:P.cn("rounded-l-none",de[L]),onClick:F,disabled:v||!S,children:e.jsx(Ee.Plus,{className:P.cn(L==="sm"?"h-3 w-3":"h-4 w-4")})})]})});Ve.displayName="NumberInput";const Le=[{code:"US",dialCode:"+1",name:"United States",flag:"🇺🇸"},{code:"GB",dialCode:"+44",name:"United Kingdom",flag:"🇬🇧"},{code:"DE",dialCode:"+49",name:"Germany",flag:"🇩🇪"},{code:"FR",dialCode:"+33",name:"France",flag:"🇫🇷"},{code:"IT",dialCode:"+39",name:"Italy",flag:"🇮🇹"},{code:"ES",dialCode:"+34",name:"Spain",flag:"🇪🇸"},{code:"TR",dialCode:"+90",name:"Turkey",flag:"🇹🇷"},{code:"NL",dialCode:"+31",name:"Netherlands",flag:"🇳🇱"},{code:"BE",dialCode:"+32",name:"Belgium",flag:"🇧🇪"},{code:"AT",dialCode:"+43",name:"Austria",flag:"🇦🇹"},{code:"CH",dialCode:"+41",name:"Switzerland",flag:"🇨🇭"},{code:"PL",dialCode:"+48",name:"Poland",flag:"🇵🇱"},{code:"SE",dialCode:"+46",name:"Sweden",flag:"🇸🇪"},{code:"NO",dialCode:"+47",name:"Norway",flag:"🇳🇴"},{code:"DK",dialCode:"+45",name:"Denmark",flag:"🇩🇰"},{code:"FI",dialCode:"+358",name:"Finland",flag:"🇫🇮"},{code:"PT",dialCode:"+351",name:"Portugal",flag:"🇵🇹"},{code:"GR",dialCode:"+30",name:"Greece",flag:"🇬🇷"},{code:"CZ",dialCode:"+420",name:"Czech Republic",flag:"🇨🇿"},{code:"RO",dialCode:"+40",name:"Romania",flag:"🇷🇴"},{code:"HU",dialCode:"+36",name:"Hungary",flag:"🇭🇺"},{code:"IE",dialCode:"+353",name:"Ireland",flag:"🇮🇪"},{code:"AU",dialCode:"+61",name:"Australia",flag:"🇦🇺"},{code:"CA",dialCode:"+1",name:"Canada",flag:"🇨🇦"},{code:"BR",dialCode:"+55",name:"Brazil",flag:"🇧🇷"},{code:"MX",dialCode:"+52",name:"Mexico",flag:"🇲🇽"},{code:"JP",dialCode:"+81",name:"Japan",flag:"🇯🇵"},{code:"CN",dialCode:"+86",name:"China",flag:"🇨🇳"},{code:"IN",dialCode:"+91",name:"India",flag:"🇮🇳"},{code:"RU",dialCode:"+7",name:"Russia",flag:"🇷🇺"}],Ae=N.forwardRef(({value:t,onChange:r,defaultCountry:s="US",countries:a=Le,placeholder:n="Phone number",disabled:c=!1,className:u,error:m},y)=>{const[g,v]=N.useState(a.find(f=>f.code===s)||a[0]),[p,i]=N.useState("");N.useEffect(()=>{if(t){const f=a.find(j=>t.startsWith(j.dialCode));f?(v(f),i(t.slice(f.dialCode.length).trim())):i(t)}},[t,a]);const h=f=>{v(f);const j=`${f.dialCode} ${p}`.trim();r==null||r(j,f)},d=f=>{const j=f.target.value.replace(/[^\d\s\-()]/g,"");i(j);const b=`${g.dialCode} ${j}`.trim();r==null||r(b,g)};return e.jsxs("div",{className:P.cn("flex",u),children:[e.jsxs(O.DropdownMenu,{children:[e.jsx(O.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(k.Button,{variant:"outline",disabled:c,className:P.cn("flex shrink-0 items-center gap-1 rounded-r-none border-r-0 px-3",m&&"border-destructive"),children:[e.jsx("span",{className:"text-base",children:g.flag}),e.jsx("span",{className:"text-sm text-muted-foreground",children:g.dialCode}),e.jsx(X.ChevronDown,{className:"h-4 w-4 opacity-50"})]})}),e.jsx(O.DropdownMenuContent,{className:"max-h-64 overflow-y-auto",children:a.map(f=>e.jsxs(O.DropdownMenuItem,{onClick:()=>h(f),className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-base",children:f.flag}),e.jsx("span",{className:"flex-1",children:f.name}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f.dialCode})]},f.code))})]}),e.jsx(O.Input,{ref:y,type:"tel",value:p,onChange:d,placeholder:n,disabled:c,className:P.cn("rounded-l-none",m&&"border-destructive")})]})});Ae.displayName="PhoneInput";const _e=N.forwardRef(({value:t,onChange:r,onSearch:s,placeholder:a="Select...",dialogTitle:n="Search",searchPlaceholder:c="Type to search...",emptyMessage:u="No results found",multiple:m=!1,disabled:y=!1,className:g,renderItem:v},p)=>{const[i,h]=N.useState(!1),[d,f]=N.useState(""),[j,b]=N.useState([]),[l,F]=N.useState(!1),o=N.useRef(null),S=N.useMemo(()=>t?Array.isArray(t)?t:[t]:[],[t]),M=N.useCallback(async w=>{if(f(w),o.current&&clearTimeout(o.current),!w.trim()){b([]);return}o.current=setTimeout(async()=>{F(!0);try{const I=await s(w);b(I)}catch{b([])}finally{F(!1)}},300)},[s]),L=w=>{if(m){const I=S,B=I.some(E=>E.id===w.id)?I.filter(E=>E.id!==w.id):[...I,w];r==null||r(B.length>0?B:void 0)}else r==null||r(w),h(!1)},A=(w,I)=>{if(I.stopPropagation(),m){const V=S.filter(B=>B.id!==w);r==null||r(V.length>0?V:void 0)}else r==null||r(void 0)},D=w=>{w.stopPropagation(),r==null||r(void 0)},R=w=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(J.Avatar,{className:"h-8 w-8",children:[w.avatar&&e.jsx(J.AvatarImage,{src:w.avatar}),e.jsx(J.AvatarFallback,{className:"text-xs",children:w.label.split(" ").map(I=>I[0]).join("").toUpperCase().slice(0,2)})]}),e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsx("span",{className:"font-medium",children:w.label}),w.description&&e.jsx("span",{className:"text-xs text-muted-foreground",children:w.description})]}),w.badges&&w.badges.length>0&&e.jsx("div",{className:"flex gap-1",children:w.badges.map((I,V)=>e.jsx(k.Badge,{variant:"secondary",className:"text-xs",children:I},V))})]});return e.jsxs(x.Dialog,{open:i,onOpenChange:h,children:[e.jsx(x.DialogTrigger,{asChild:!0,children:e.jsxs(k.Button,{ref:p,variant:"outline",role:"combobox",disabled:y,className:P.cn("w-full justify-between font-normal",S.length===0&&"text-muted-foreground",g),children:[e.jsx("div",{className:"flex flex-1 flex-wrap items-center gap-1 overflow-hidden",children:S.length===0?e.jsx("span",{children:a}):m?S.map(w=>e.jsxs(k.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[w.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:I=>A(w.id,I),children:e.jsx(k.X,{className:"h-3 w-3"})})]},w.id)):e.jsx("span",{className:"truncate",children:S[0].label})}),e.jsxs("div",{className:"flex items-center gap-1",children:[S.length>0&&!m&&e.jsx("button",{className:"rounded p-0.5 hover:bg-muted",onClick:D,children:e.jsx(k.X,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(Te.ChevronRight,{className:"h-4 w-4 shrink-0 opacity-50"})]})]})}),e.jsxs(x.DialogContent,{className:"max-w-lg",children:[e.jsx(x.DialogHeader,{children:e.jsx(x.DialogTitle,{children:n})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(me.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(O.Input,{placeholder:c,value:d,onChange:w=>M(w.target.value),className:"pl-10",autoFocus:!0})]}),e.jsx(k.ScrollArea,{className:"h-64",children:l?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(x.LoaderCircle,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):j.length===0?e.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:d?u:"Start typing to search..."}):e.jsx("div",{className:"space-y-1",children:j.map(w=>{const I=S.some(V=>V.id===w.id);return e.jsx("button",{onClick:()=>L(w),className:P.cn("w-full rounded-md p-2 text-left transition-colors hover:bg-accent",I&&"bg-accent"),children:v?v(w):R(w)},w.id)})})})]})]})]})});_e.displayName="LookupField";const mt=["USD","EUR","GBP","TRY","JPY","CNY"];function ft({value:t,onChange:r,placeholder:s,searchPlaceholder:a,emptyMessage:n,disabled:c=!1,className:u,showSymbol:m=!0,showCode:y=!0,showName:g=!0,popularCurrencies:v=mt}){const[p,i]=N.useState(!1),{t:h}=U.useLocale(),d=U.getAllCurrencies(),f=t?U.currencies[t]:void 0,j=v.map(o=>U.currencies[o]).filter(Boolean),b=d.filter(o=>!v.includes(o.code)),F=f?(o=>{const S=[];return m&&S.push(o.symbol),y&&S.push(o.code),g&&S.push(`- ${o.name}`),S.join(" ")})(f):s||h("locale.selectCurrency");return e.jsxs(x.Popover,{open:p,onOpenChange:i,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{variant:"outline",role:"combobox","aria-expanded":p,disabled:c,className:P.cn("w-full justify-between",!t&&"text-muted-foreground",u),children:[e.jsx("span",{className:"truncate",children:F}),e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(x.PopoverContent,{className:"w-[300px] p-0",align:"start",children:e.jsxs(x.Command,{children:[e.jsx(x.CommandInput,{placeholder:a||h("common.search"),className:"h-9"}),e.jsxs(x.CommandList,{children:[e.jsx(x.CommandEmpty,{children:n||h("common.noData")}),j.length>0&&e.jsx(x.CommandGroup,{heading:"Popular",children:j.map(o=>e.jsxs(x.CommandItem,{value:`${o.code} ${o.name}`,onSelect:()=>{r==null||r(o.code),i(!1)},children:[e.jsx(k.Check,{className:P.cn("mr-2 h-4 w-4",t===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"w-8 font-medium",children:o.symbol}),e.jsx("span",{className:"w-12 text-muted-foreground",children:o.code}),e.jsx("span",{className:"truncate",children:o.name})]},o.code))}),e.jsx(x.CommandGroup,{heading:"All Currencies",children:b.map(o=>e.jsxs(x.CommandItem,{value:`${o.code} ${o.name}`,onSelect:()=>{r==null||r(o.code),i(!1)},children:[e.jsx(k.Check,{className:P.cn("mr-2 h-4 w-4",t===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"w-8 font-medium",children:o.symbol}),e.jsx("span",{className:"w-12 text-muted-foreground",children:o.code}),e.jsx("span",{className:"truncate",children:o.name})]},o.code))})]})]})})]})}function pt({value:t,onChange:r,placeholder:s,searchPlaceholder:a,emptyMessage:n,disabled:c=!1,className:u,showFlag:m=!0,showNativeName:y=!0,showCode:g=!1,variant:v="default"}){const[p,i]=N.useState(!1),{t:h,config:d}=U.useLocale(),f=U.getAllLocales(),j=t?U.getLocaleInfo(t):void 0,b=t||d.locale,F=j?((o,S=!1)=>{if(v==="icon-only"&&S)return m?o.flag:e.jsx(He,{className:"h-4 w-4"});if(v==="compact"&&S)return e.jsxs("span",{className:"flex items-center gap-1.5",children:[m&&e.jsx("span",{children:o.flag}),e.jsx("span",{children:o.code.split("-")[0].toUpperCase()})]});const M=[];return m&&M.push(e.jsx("span",{className:"mr-1.5",children:o.flag},"flag")),y&&M.push(e.jsx("span",{children:o.nativeName},"native")),g&&M.push(e.jsxs("span",{className:"text-muted-foreground ml-1",children:["(",o.code,")"]},"code")),e.jsx("span",{className:"flex items-center",children:M})})(j,!0):s||h("locale.selectLanguage");return e.jsxs(x.Popover,{open:p,onOpenChange:i,children:[e.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxs(k.Button,{variant:"outline",role:"combobox","aria-expanded":p,disabled:c,className:P.cn("justify-between",v==="icon-only"?"w-10 px-0":v==="compact"?"w-auto":"w-full",!t&&"text-muted-foreground",u),children:[e.jsx("span",{className:P.cn("truncate",v==="icon-only"&&"text-lg"),children:F}),v!=="icon-only"&&e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(x.PopoverContent,{className:"w-[280px] p-0",align:"start",children:e.jsxs(x.Command,{children:[e.jsx(x.CommandInput,{placeholder:a||h("common.search"),className:"h-9"}),e.jsxs(x.CommandList,{children:[e.jsx(x.CommandEmpty,{children:n||h("common.noData")}),e.jsx(x.CommandGroup,{children:f.map(o=>e.jsxs(x.CommandItem,{value:`${o.code} ${o.name} ${o.nativeName}`,onSelect:()=>{r==null||r(o.code),i(!1)},children:[e.jsx(k.Check,{className:P.cn("mr-2 h-4 w-4",b===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"mr-2 text-lg",children:o.flag}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:o.nativeName}),e.jsx("span",{className:"text-xs text-muted-foreground",children:o.name})]})]},o.code))})]})]})})]})}exports.ColorPicker=Re;exports.Combobox=Fe;exports.CurrencySelector=ft;exports.DEFAULT_COUNTRIES=Le;exports.DatePicker=ct;exports.DateRangePicker=ke;exports.FileUpload=Ce;exports.Form=ot;exports.FormControl=we;exports.FormDescription=ve;exports.FormField=lt;exports.FormItem=ye;exports.FormLabel=be;exports.FormMessage=Se;exports.LocaleSelector=pt;exports.LookupField=_e;exports.MultiSelect=Me;exports.NumberInput=Ve;exports.PhoneInput=Ae;exports.SearchInput=Pe;exports.TagInput=Ie;exports.TimePicker=De;exports.useFormField=q;
22
+ //# sourceMappingURL=locale-selector-BD1IWk6X.cjs.map