@senitix/ui 0.4.1 → 0.4.3

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 (393) hide show
  1. package/dist/accordion-BcwB0wwz.cjs +2 -0
  2. package/dist/accordion-BcwB0wwz.cjs.map +1 -0
  3. package/dist/accordion-BwnJKrKm.js +360 -0
  4. package/dist/accordion-BwnJKrKm.js.map +1 -0
  5. package/dist/appointment-scheduler-BoQQO51F.cjs +2 -0
  6. package/dist/appointment-scheduler-BoQQO51F.cjs.map +1 -0
  7. package/dist/appointment-scheduler-DHAs-mF_.js +192 -0
  8. package/dist/appointment-scheduler-DHAs-mF_.js.map +1 -0
  9. package/dist/arrow-right-CM3nmiZe.js +15 -0
  10. package/dist/arrow-right-CM3nmiZe.js.map +1 -0
  11. package/dist/arrow-right-vDxRZOfm.cjs +7 -0
  12. package/dist/arrow-right-vDxRZOfm.cjs.map +1 -0
  13. package/dist/avatar-BlEcWE7T.js +191 -0
  14. package/dist/avatar-BlEcWE7T.js.map +1 -0
  15. package/dist/avatar-Cl38Ye4J.cjs +2 -0
  16. package/dist/avatar-Cl38Ye4J.cjs.map +1 -0
  17. package/dist/badge-BZcdBG5J.cjs +23 -0
  18. package/dist/badge-BZcdBG5J.cjs.map +1 -0
  19. package/dist/badge-D0C_rP2l.js +157 -0
  20. package/dist/badge-D0C_rP2l.js.map +1 -0
  21. package/dist/button-BP_ug5gP.js +126 -0
  22. package/dist/button-BP_ug5gP.js.map +1 -0
  23. package/dist/button-CPuCii0R.cjs +2 -0
  24. package/dist/button-CPuCii0R.cjs.map +1 -0
  25. package/dist/{calendar-DgnhzEfp.js → calendar-86qoSnO7.js} +368 -433
  26. package/dist/calendar-86qoSnO7.js.map +1 -0
  27. package/dist/{calendar-D3RWU0_G.cjs → calendar-BH-AuyiB.cjs} +2 -2
  28. package/dist/{calendar-D3RWU0_G.cjs.map → calendar-BH-AuyiB.cjs.map} +1 -1
  29. package/dist/calendar-CSJ060ym.cjs +2 -0
  30. package/dist/calendar-CSJ060ym.cjs.map +1 -0
  31. package/dist/{calendar-CUxm1K7J.js → calendar-JUSWONQ0.js} +2 -2
  32. package/dist/{calendar-CUxm1K7J.js.map → calendar-JUSWONQ0.js.map} +1 -1
  33. package/dist/{card-DISL3sPJ.cjs → card-CToWUN1K.cjs} +2 -2
  34. package/dist/{card-DISL3sPJ.cjs.map → card-CToWUN1K.cjs.map} +1 -1
  35. package/dist/{card-fId5vof_.js → card-yxbWFvZ1.js} +2 -2
  36. package/dist/{card-fId5vof_.js.map → card-yxbWFvZ1.js.map} +1 -1
  37. package/dist/checkbox-BmugT50K.cjs +2 -0
  38. package/dist/checkbox-BmugT50K.cjs.map +1 -0
  39. package/dist/{checkbox-BY2zxQVv.js → checkbox-CTa9e4SG.js} +95 -97
  40. package/dist/checkbox-CTa9e4SG.js.map +1 -0
  41. package/dist/chevron-left-5h87iFo_.cjs +7 -0
  42. package/dist/chevron-left-5h87iFo_.cjs.map +1 -0
  43. package/dist/chevron-left-DD5mQuvf.js +14 -0
  44. package/dist/chevron-left-DD5mQuvf.js.map +1 -0
  45. package/dist/{chevron-right-Bxf8i4gi.cjs → chevron-right-D-TdAZ7l.cjs} +2 -2
  46. package/dist/{chevron-right-Bxf8i4gi.cjs.map → chevron-right-D-TdAZ7l.cjs.map} +1 -1
  47. package/dist/{chevron-right-BLyGmyaF.js → chevron-right-Di90aqSn.js} +2 -2
  48. package/dist/{chevron-right-BLyGmyaF.js.map → chevron-right-Di90aqSn.js.map} +1 -1
  49. package/dist/chevron-up-Bq55Db6X.cjs +7 -0
  50. package/dist/{chevron-up-C3RClqXD.cjs.map → chevron-up-Bq55Db6X.cjs.map} +1 -1
  51. package/dist/{chevron-up-BmYZUtrk.js → chevron-up-Dr7EIn9V.js} +2 -2
  52. package/dist/{chevron-up-BmYZUtrk.js.map → chevron-up-Dr7EIn9V.js.map} +1 -1
  53. package/dist/clock-BjJE8PGr.js +15 -0
  54. package/dist/clock-BjJE8PGr.js.map +1 -0
  55. package/dist/clock-CnxBAA_O.cjs +7 -0
  56. package/dist/clock-CnxBAA_O.cjs.map +1 -0
  57. package/dist/command-BEpaOk-5.cjs +2 -0
  58. package/dist/command-BEpaOk-5.cjs.map +1 -0
  59. package/dist/command-CYhMM7gX.js +404 -0
  60. package/dist/command-CYhMM7gX.js.map +1 -0
  61. package/dist/components/builders/index.cjs.js +2 -0
  62. package/dist/components/builders/index.cjs.js.map +1 -0
  63. package/dist/components/builders/index.es.js +42 -0
  64. package/dist/components/builders/index.es.js.map +1 -0
  65. package/dist/components/charts/index.cjs.js +1 -1
  66. package/dist/components/charts/index.es.js +7 -6
  67. package/dist/components/charts/index.es.js.map +1 -1
  68. package/dist/components/data-display/index.cjs.js +1 -1
  69. package/dist/components/data-display/index.es.js +43 -20
  70. package/dist/components/dnd/index.cjs.js +1 -1
  71. package/dist/components/dnd/index.es.js +1 -1
  72. package/dist/components/feedback/index.cjs.js +1 -1
  73. package/dist/components/feedback/index.es.js +1 -1
  74. package/dist/components/forms/index.cjs.js +1 -1
  75. package/dist/components/forms/index.es.js +24 -23
  76. package/dist/components/forms/index.es.js.map +1 -1
  77. package/dist/components/layouts/index.cjs.js +1 -1
  78. package/dist/components/layouts/index.es.js +45 -21
  79. package/dist/components/messaging/index.cjs.js +2 -0
  80. package/dist/components/messaging/index.cjs.js.map +1 -0
  81. package/dist/components/messaging/index.es.js +15 -0
  82. package/dist/components/messaging/index.es.js.map +1 -0
  83. package/dist/components/navigation/index.cjs.js +1 -1
  84. package/dist/components/navigation/index.es.js +1 -1
  85. package/dist/components/scheduling/index.cjs.js +2 -0
  86. package/dist/components/scheduling/index.cjs.js.map +1 -0
  87. package/dist/components/scheduling/index.es.js +6 -0
  88. package/dist/components/scheduling/index.es.js.map +1 -0
  89. package/dist/components/ui/index.cjs.js +1 -1
  90. package/dist/components/ui/index.es.js +168 -158
  91. package/dist/components/ui/index.es.js.map +1 -1
  92. package/dist/dialog-Cr9SYCaD.cjs +6 -0
  93. package/dist/dialog-Cr9SYCaD.cjs.map +1 -0
  94. package/dist/dialog-MYAx3Qrc.js +387 -0
  95. package/dist/dialog-MYAx3Qrc.js.map +1 -0
  96. package/dist/dropdown-menu-CkCCV_tw.js +969 -0
  97. package/dist/dropdown-menu-CkCCV_tw.js.map +1 -0
  98. package/dist/dropdown-menu-ejikFvg2.cjs +7 -0
  99. package/dist/dropdown-menu-ejikFvg2.cjs.map +1 -0
  100. package/dist/{ellipsis-6eUne95u.js → ellipsis-CKhpjj5H.js} +2 -2
  101. package/dist/{ellipsis-6eUne95u.js.map → ellipsis-CKhpjj5H.js.map} +1 -1
  102. package/dist/{ellipsis-DkM3GBF5.cjs → ellipsis-Dk7Wfc4i.cjs} +3 -3
  103. package/dist/{ellipsis-DkM3GBF5.cjs.map → ellipsis-Dk7Wfc4i.cjs.map} +1 -1
  104. package/dist/external-link-CGBqsrbm.cjs +7 -0
  105. package/dist/external-link-CGBqsrbm.cjs.map +1 -0
  106. package/dist/external-link-UeWW0ty3.js +16 -0
  107. package/dist/external-link-UeWW0ty3.js.map +1 -0
  108. package/dist/eye-Cved4eAo.cjs +7 -0
  109. package/dist/eye-Cved4eAo.cjs.map +1 -0
  110. package/dist/eye-KdCUpmO8.js +21 -0
  111. package/dist/eye-KdCUpmO8.js.map +1 -0
  112. package/dist/{file-Cw_u_aJB.js → file-CHbdXCWO.js} +2 -2
  113. package/dist/{file-Cw_u_aJB.js.map → file-CHbdXCWO.js.map} +1 -1
  114. package/dist/{file-Cp5UoYUZ.cjs → file-CqYRamm8.cjs} +3 -3
  115. package/dist/{file-Cp5UoYUZ.cjs.map → file-CqYRamm8.cjs.map} +1 -1
  116. package/dist/file-spreadsheet-CpySxI0-.cjs +7 -0
  117. package/dist/file-spreadsheet-CpySxI0-.cjs.map +1 -0
  118. package/dist/file-spreadsheet-EqZMR-mM.js +19 -0
  119. package/dist/file-spreadsheet-EqZMR-mM.js.map +1 -0
  120. package/dist/form-preview-Bm5xHtkw.js +12075 -0
  121. package/dist/form-preview-Bm5xHtkw.js.map +1 -0
  122. package/dist/form-preview-IPEZdspX.cjs +111 -0
  123. package/dist/form-preview-IPEZdspX.cjs.map +1 -0
  124. package/dist/full-calendar-4Ut52QNO.cjs +18 -0
  125. package/dist/full-calendar-4Ut52QNO.cjs.map +1 -0
  126. package/dist/full-calendar-DD_tBy69.js +2631 -0
  127. package/dist/full-calendar-DD_tBy69.js.map +1 -0
  128. package/dist/funnel-chart-Dfj1pOyV.cjs +6 -0
  129. package/dist/funnel-chart-Dfj1pOyV.cjs.map +1 -0
  130. package/dist/funnel-chart-o9qcEMgg.js +2952 -0
  131. package/dist/funnel-chart-o9qcEMgg.js.map +1 -0
  132. package/dist/global-search-DcBKVaM4.cjs +22 -0
  133. package/dist/global-search-DcBKVaM4.cjs.map +1 -0
  134. package/dist/global-search-Dul9CD6-.js +1331 -0
  135. package/dist/global-search-Dul9CD6-.js.map +1 -0
  136. package/dist/hooks/index.cjs.js +1 -1
  137. package/dist/hooks/index.es.js +9 -7
  138. package/dist/hooks/index.es.js.map +1 -1
  139. package/dist/{index-DtaLkIY8.js → index-BGUveO6l.js} +84 -79
  140. package/dist/{index-DtaLkIY8.js.map → index-BGUveO6l.js.map} +1 -1
  141. package/dist/{index-gVbM3K4f.cjs → index-Bhee6XHk.cjs} +2 -2
  142. package/dist/{index-gVbM3K4f.cjs.map → index-Bhee6XHk.cjs.map} +1 -1
  143. package/dist/index-CrSlyWAA.js +1090 -0
  144. package/dist/index-CrSlyWAA.js.map +1 -0
  145. package/dist/{index-Dk_Et2WJ.js → index-D8-pHJim.js} +2 -2
  146. package/dist/{index-Dk_Et2WJ.js.map → index-D8-pHJim.js.map} +1 -1
  147. package/dist/index-Dy_9oyP3.cjs +2 -0
  148. package/dist/{index-D2U2F80P.cjs.map → index-Dy_9oyP3.cjs.map} +1 -1
  149. package/dist/index-hnbbvGmb.cjs +21 -0
  150. package/dist/index-hnbbvGmb.cjs.map +1 -0
  151. package/dist/index.cjs.js +1 -1
  152. package/dist/index.es.js +434 -319
  153. package/dist/index.es.js.map +1 -1
  154. package/dist/input-Pfq8fkiV.js +2718 -0
  155. package/dist/input-Pfq8fkiV.js.map +1 -0
  156. package/dist/input-UBp7V7li.cjs +52 -0
  157. package/dist/input-UBp7V7li.cjs.map +1 -0
  158. package/dist/label-CExiitfO.js +50 -0
  159. package/dist/label-CExiitfO.js.map +1 -0
  160. package/dist/label-F0zGAiI2.cjs +2 -0
  161. package/dist/label-F0zGAiI2.cjs.map +1 -0
  162. package/dist/loader-circle-CBVYGIRp.js +14 -0
  163. package/dist/loader-circle-CBVYGIRp.js.map +1 -0
  164. package/dist/loader-circle-IaJKvYsP.cjs +7 -0
  165. package/dist/loader-circle-IaJKvYsP.cjs.map +1 -0
  166. package/dist/locale-provider-BHGNO4j7.js +1786 -0
  167. package/dist/locale-provider-BHGNO4j7.js.map +1 -0
  168. package/dist/locale-provider-BScpm-eC.cjs +2 -0
  169. package/dist/locale-provider-BScpm-eC.cjs.map +1 -0
  170. package/dist/locale-selector-CRC0VBKl.cjs +12 -0
  171. package/dist/locale-selector-CRC0VBKl.cjs.map +1 -0
  172. package/dist/locale-selector-HuzfE0zZ.js +1740 -0
  173. package/dist/locale-selector-HuzfE0zZ.js.map +1 -0
  174. package/dist/map-pin-CHh0xl6i.js +46 -0
  175. package/dist/map-pin-CHh0xl6i.js.map +1 -0
  176. package/dist/map-pin-DGObSZ40.cjs +17 -0
  177. package/dist/map-pin-DGObSZ40.cjs.map +1 -0
  178. package/dist/message-square-B_xLey5D.js +14 -0
  179. package/dist/message-square-B_xLey5D.js.map +1 -0
  180. package/dist/message-square-_69ua8rH.cjs +7 -0
  181. package/dist/message-square-_69ua8rH.cjs.map +1 -0
  182. package/dist/minus-BUFkTM0k.cjs +7 -0
  183. package/dist/{minus-C0uyaz70.cjs.map → minus-BUFkTM0k.cjs.map} +1 -1
  184. package/dist/{minus-CiwV65ZG.js → minus-DJ0tmymW.js} +2 -2
  185. package/dist/{minus-CiwV65ZG.js.map → minus-DJ0tmymW.js.map} +1 -1
  186. package/dist/multi-container-CytCGxsc.cjs +7 -0
  187. package/dist/multi-container-CytCGxsc.cjs.map +1 -0
  188. package/dist/multi-container-DmkgnCJN.js +799 -0
  189. package/dist/multi-container-DmkgnCJN.js.map +1 -0
  190. package/dist/multi-select-Bj_kIDHE.cjs +7 -0
  191. package/dist/multi-select-Bj_kIDHE.cjs.map +1 -0
  192. package/dist/multi-select-CPF7w871.js +224 -0
  193. package/dist/multi-select-CPF7w871.js.map +1 -0
  194. package/dist/pencil-BJULwaDl.cjs +12 -0
  195. package/dist/pencil-BJULwaDl.cjs.map +1 -0
  196. package/dist/pencil-HL0trGIs.js +31 -0
  197. package/dist/pencil-HL0trGIs.js.map +1 -0
  198. package/dist/permission-matrix-BRqw2RPb.js +6128 -0
  199. package/dist/permission-matrix-BRqw2RPb.js.map +1 -0
  200. package/dist/permission-matrix-CqE8q8Hi.cjs +93 -0
  201. package/dist/permission-matrix-CqE8q8Hi.cjs.map +1 -0
  202. package/dist/phone-B0J1dGIE.js +31 -0
  203. package/dist/phone-B0J1dGIE.js.map +1 -0
  204. package/dist/phone-DPA6vucM.cjs +12 -0
  205. package/dist/phone-DPA6vucM.cjs.map +1 -0
  206. package/dist/plus-Bcuujcqd.cjs +7 -0
  207. package/dist/{plus-BsV82JJ5.cjs.map → plus-Bcuujcqd.cjs.map} +1 -1
  208. package/dist/{plus-DxD6rofl.js → plus-D7DMDKb8.js} +2 -2
  209. package/dist/{plus-DxD6rofl.js.map → plus-D7DMDKb8.js.map} +1 -1
  210. package/dist/popover-Bba1ELMX.cjs +2 -0
  211. package/dist/popover-Bba1ELMX.cjs.map +1 -0
  212. package/dist/popover-CZWAuYUL.js +281 -0
  213. package/dist/popover-CZWAuYUL.js.map +1 -0
  214. package/dist/progress-BPpsmZ48.js +218 -0
  215. package/dist/progress-BPpsmZ48.js.map +1 -0
  216. package/dist/progress-BrzjVhWG.cjs +22 -0
  217. package/dist/progress-BrzjVhWG.cjs.map +1 -0
  218. package/dist/providers/index.cjs.js +1 -1
  219. package/dist/providers/index.es.js +1 -1
  220. package/dist/radio-group-B9RM_c7e.js +244 -0
  221. package/dist/radio-group-B9RM_c7e.js.map +1 -0
  222. package/dist/radio-group-_n8TTqNQ.cjs +2 -0
  223. package/dist/radio-group-_n8TTqNQ.cjs.map +1 -0
  224. package/dist/record-dialog-footer-DbH9A6eA.js +2577 -0
  225. package/dist/record-dialog-footer-DbH9A6eA.js.map +1 -0
  226. package/dist/record-dialog-footer-DpDxH5wX.cjs +37 -0
  227. package/dist/record-dialog-footer-DpDxH5wX.cjs.map +1 -0
  228. package/dist/scroll-area-CGNbDUBQ.js +889 -0
  229. package/dist/scroll-area-CGNbDUBQ.js.map +1 -0
  230. package/dist/scroll-area-HsTSI_58.cjs +22 -0
  231. package/dist/scroll-area-HsTSI_58.cjs.map +1 -0
  232. package/dist/select-CEsYpjPi.cjs +2 -0
  233. package/dist/select-CEsYpjPi.cjs.map +1 -0
  234. package/dist/{select-BJpZrtep.js → select-Ce2C2acZ.js} +184 -179
  235. package/dist/select-Ce2C2acZ.js.map +1 -0
  236. package/dist/send-DIkOd-pu.js +21 -0
  237. package/dist/send-DIkOd-pu.js.map +1 -0
  238. package/dist/send-H6HC-rS8.cjs +7 -0
  239. package/dist/send-H6HC-rS8.cjs.map +1 -0
  240. package/dist/shared-inbox-Bv0AgLew.js +702 -0
  241. package/dist/shared-inbox-Bv0AgLew.js.map +1 -0
  242. package/dist/shared-inbox-DWEKfDX3.cjs +22 -0
  243. package/dist/shared-inbox-DWEKfDX3.cjs.map +1 -0
  244. package/dist/sheet-DTimb4SJ.cjs +2 -0
  245. package/dist/sheet-DTimb4SJ.cjs.map +1 -0
  246. package/dist/sheet-DgpAPCAp.js +147 -0
  247. package/dist/sheet-DgpAPCAp.js.map +1 -0
  248. package/dist/{skeleton-Bl6FAxHT.js → skeleton-C_dwS3_6.js} +2 -2
  249. package/dist/{skeleton-Bl6FAxHT.js.map → skeleton-C_dwS3_6.js.map} +1 -1
  250. package/dist/{skeleton-Cb6MWerF.cjs → skeleton-D3YsjVWD.cjs} +2 -2
  251. package/dist/{skeleton-Cb6MWerF.cjs.map → skeleton-D3YsjVWD.cjs.map} +1 -1
  252. package/dist/sparkline-chart-BP4bk24J.js +15881 -0
  253. package/dist/sparkline-chart-BP4bk24J.js.map +1 -0
  254. package/dist/sparkline-chart-D6SLZVjp.cjs +79 -0
  255. package/dist/sparkline-chart-D6SLZVjp.cjs.map +1 -0
  256. package/dist/styles.css +1 -1
  257. package/dist/switch-AEZvZSRV.cjs +2 -0
  258. package/dist/switch-AEZvZSRV.cjs.map +1 -0
  259. package/dist/switch-BF4LLvaU.js +147 -0
  260. package/dist/switch-BF4LLvaU.js.map +1 -0
  261. package/dist/table-2-Bn-YjZ9s.cjs +17 -0
  262. package/dist/table-2-Bn-YjZ9s.cjs.map +1 -0
  263. package/dist/table-2-C7E_N72K.js +52 -0
  264. package/dist/table-2-C7E_N72K.js.map +1 -0
  265. package/dist/textarea-4qZDuQ-C.js +206 -0
  266. package/dist/textarea-4qZDuQ-C.js.map +1 -0
  267. package/dist/textarea-Bq_zyt0L.cjs +2 -0
  268. package/dist/textarea-Bq_zyt0L.cjs.map +1 -0
  269. package/dist/tooltip-Dd7le9EO.cjs +2 -0
  270. package/dist/tooltip-Dd7le9EO.cjs.map +1 -0
  271. package/dist/tooltip-Dee-pNPI.js +338 -0
  272. package/dist/tooltip-Dee-pNPI.js.map +1 -0
  273. package/dist/trash-2-B3EP3JfM.js +18 -0
  274. package/dist/trash-2-B3EP3JfM.js.map +1 -0
  275. package/dist/trash-2-DWEeKlWT.cjs +7 -0
  276. package/dist/trash-2-DWEeKlWT.cjs.map +1 -0
  277. package/dist/{trending-up-BHFXgLWy.js → trending-up-ljWtN4pj.js} +2 -2
  278. package/dist/{trending-up-BHFXgLWy.js.map → trending-up-ljWtN4pj.js.map} +1 -1
  279. package/dist/{trending-up-BBjz_E69.cjs → trending-up-mLgmkp--.cjs} +2 -2
  280. package/dist/{trending-up-BBjz_E69.cjs.map → trending-up-mLgmkp--.cjs.map} +1 -1
  281. package/dist/upload-2tm-XihE.cjs +7 -0
  282. package/dist/upload-2tm-XihE.cjs.map +1 -0
  283. package/dist/upload-C_JDP8O0.js +16 -0
  284. package/dist/upload-C_JDP8O0.js.map +1 -0
  285. package/dist/use-controllable-state-3ATd6Fqd.cjs +2 -0
  286. package/dist/use-controllable-state-3ATd6Fqd.cjs.map +1 -0
  287. package/dist/use-controllable-state-CEa-Zlq6.js +23 -0
  288. package/dist/use-controllable-state-CEa-Zlq6.js.map +1 -0
  289. package/dist/use-formatters-Bb0fX1lW.cjs +2 -0
  290. package/dist/{use-formatters-CObUgipW.cjs.map → use-formatters-Bb0fX1lW.cjs.map} +1 -1
  291. package/dist/{use-formatters-Bgj3JA4i.js → use-formatters-xeMS4gdV.js} +1160 -1165
  292. package/dist/{use-formatters-Bgj3JA4i.js.map → use-formatters-xeMS4gdV.js.map} +1 -1
  293. package/dist/utils/index.cjs.js +1 -1
  294. package/dist/utils/index.es.js +1 -1
  295. package/dist/welcome-card-Ccbl_miQ.js +1007 -0
  296. package/dist/welcome-card-Ccbl_miQ.js.map +1 -0
  297. package/dist/welcome-card-D-ShMkaS.cjs +37 -0
  298. package/dist/welcome-card-D-ShMkaS.cjs.map +1 -0
  299. package/dist/x-BBkgEhUv.js +15 -0
  300. package/dist/x-BBkgEhUv.js.map +1 -0
  301. package/dist/x-D-El5XAY.cjs +7 -0
  302. package/dist/x-D-El5XAY.cjs.map +1 -0
  303. package/package.json +20 -2
  304. package/dist/avatar-BT_SPwFW.cjs +0 -18
  305. package/dist/avatar-BT_SPwFW.cjs.map +0 -1
  306. package/dist/avatar-C5-ZWIqT.js +0 -305
  307. package/dist/avatar-C5-ZWIqT.js.map +0 -1
  308. package/dist/calendar-BF5drX5u.cjs +0 -12
  309. package/dist/calendar-BF5drX5u.cjs.map +0 -1
  310. package/dist/calendar-DgnhzEfp.js.map +0 -1
  311. package/dist/checkbox-BY2zxQVv.js.map +0 -1
  312. package/dist/checkbox-CL6u7vL6.cjs +0 -2
  313. package/dist/checkbox-CL6u7vL6.cjs.map +0 -1
  314. package/dist/chevron-down-BiUlxZA-.js +0 -14
  315. package/dist/chevron-down-BiUlxZA-.js.map +0 -1
  316. package/dist/chevron-down-Ce0kqXiD.cjs +0 -7
  317. package/dist/chevron-down-Ce0kqXiD.cjs.map +0 -1
  318. package/dist/chevron-up-C3RClqXD.cjs +0 -7
  319. package/dist/createLucideIcon-BC8wu-bu.js +0 -80
  320. package/dist/createLucideIcon-BC8wu-bu.js.map +0 -1
  321. package/dist/createLucideIcon-Cv8nC2E9.cjs +0 -22
  322. package/dist/createLucideIcon-Cv8nC2E9.cjs.map +0 -1
  323. package/dist/filter-tags-DoRzXjuY.cjs +0 -48
  324. package/dist/filter-tags-DoRzXjuY.cjs.map +0 -1
  325. package/dist/filter-tags-zEQmRhEU.js +0 -2712
  326. package/dist/filter-tags-zEQmRhEU.js.map +0 -1
  327. package/dist/full-calendar-5Z4JSj8g.js +0 -3551
  328. package/dist/full-calendar-5Z4JSj8g.js.map +0 -1
  329. package/dist/full-calendar-DjAvCfuE.cjs +0 -23
  330. package/dist/full-calendar-DjAvCfuE.cjs.map +0 -1
  331. package/dist/global-search-BbZfc-VL.js +0 -1216
  332. package/dist/global-search-BbZfc-VL.js.map +0 -1
  333. package/dist/global-search-Bd74_wPV.cjs +0 -22
  334. package/dist/global-search-Bd74_wPV.cjs.map +0 -1
  335. package/dist/index-D2U2F80P.cjs +0 -2
  336. package/dist/index-DG0KV-sw.cjs +0 -11
  337. package/dist/index-DG0KV-sw.cjs.map +0 -1
  338. package/dist/index-XnFSmCuh.js +0 -299
  339. package/dist/index-XnFSmCuh.js.map +0 -1
  340. package/dist/input-BgPy-4Qu.js +0 -3658
  341. package/dist/input-BgPy-4Qu.js.map +0 -1
  342. package/dist/input-Cfr2WB-P.cjs +0 -47
  343. package/dist/input-Cfr2WB-P.cjs.map +0 -1
  344. package/dist/locale-provider-BojNdf1Y.cjs +0 -2
  345. package/dist/locale-provider-BojNdf1Y.cjs.map +0 -1
  346. package/dist/locale-provider-DzBeb-X3.js +0 -1013
  347. package/dist/locale-provider-DzBeb-X3.js.map +0 -1
  348. package/dist/locale-selector-BD1IWk6X.cjs +0 -22
  349. package/dist/locale-selector-BD1IWk6X.cjs.map +0 -1
  350. package/dist/locale-selector-DLRSyVye.js +0 -1772
  351. package/dist/locale-selector-DLRSyVye.js.map +0 -1
  352. package/dist/minus-C0uyaz70.cjs +0 -7
  353. package/dist/multi-container-BZia7HCU.js +0 -748
  354. package/dist/multi-container-BZia7HCU.js.map +0 -1
  355. package/dist/multi-container-BdNbgtPZ.cjs +0 -7
  356. package/dist/multi-container-BdNbgtPZ.cjs.map +0 -1
  357. package/dist/pipeline-Dh052Dvj.cjs +0 -27
  358. package/dist/pipeline-Dh052Dvj.cjs.map +0 -1
  359. package/dist/pipeline-DqWvleNy.js +0 -1076
  360. package/dist/pipeline-DqWvleNy.js.map +0 -1
  361. package/dist/plus-BsV82JJ5.cjs +0 -7
  362. package/dist/popover-BgLxmm1z.cjs +0 -7
  363. package/dist/popover-BgLxmm1z.cjs.map +0 -1
  364. package/dist/popover-PI9jbhnS.js +0 -775
  365. package/dist/popover-PI9jbhnS.js.map +0 -1
  366. package/dist/progress-CTTt_CP3.js +0 -260
  367. package/dist/progress-CTTt_CP3.js.map +0 -1
  368. package/dist/progress-CTWb7X1Q.cjs +0 -37
  369. package/dist/progress-CTWb7X1Q.cjs.map +0 -1
  370. package/dist/scroll-area-A3jGu-Ta.js +0 -974
  371. package/dist/scroll-area-A3jGu-Ta.js.map +0 -1
  372. package/dist/scroll-area-DzDnWIYJ.cjs +0 -12
  373. package/dist/scroll-area-DzDnWIYJ.cjs.map +0 -1
  374. package/dist/select-BJpZrtep.js.map +0 -1
  375. package/dist/select-Ii8HRuXa.cjs +0 -2
  376. package/dist/select-Ii8HRuXa.cjs.map +0 -1
  377. package/dist/separator-BzcDE0Ei.cjs +0 -2
  378. package/dist/separator-BzcDE0Ei.cjs.map +0 -1
  379. package/dist/separator-DyarVo1-.js +0 -396
  380. package/dist/separator-DyarVo1-.js.map +0 -1
  381. package/dist/sheet-DPSdOoE6.js +0 -84
  382. package/dist/sheet-DPSdOoE6.js.map +0 -1
  383. package/dist/sheet-XtjvbEMq.cjs +0 -2
  384. package/dist/sheet-XtjvbEMq.cjs.map +0 -1
  385. package/dist/sparkline-chart-CeCDeMNk.cjs +0 -102
  386. package/dist/sparkline-chart-CeCDeMNk.cjs.map +0 -1
  387. package/dist/sparkline-chart-DUS4CoW_.js +0 -19787
  388. package/dist/sparkline-chart-DUS4CoW_.js.map +0 -1
  389. package/dist/use-formatters-CObUgipW.cjs +0 -2
  390. package/dist/welcome-card-CNuEa6Ck.cjs +0 -67
  391. package/dist/welcome-card-CNuEa6Ck.cjs.map +0 -1
  392. package/dist/welcome-card-Cp6t6G3j.js +0 -1041
  393. package/dist/welcome-card-Cp6t6G3j.js.map +0 -1
@@ -1,23 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),K=require("react"),p=require("./scroll-area-DzDnWIYJ.cjs"),A=require("./input-Cfr2WB-P.cjs"),y=require("./index-D2U2F80P.cjs"),Ee=require("./chevron-down-Ce0kqXiD.cjs"),O=require("./separator-BzcDE0Ei.cjs"),Ae=require("./checkbox-CL6u7vL6.cjs"),no=require("./use-toast-DxZJ8uUm.cjs"),ao=require("react-dom"),dt=require("./index-gVbM3K4f.cjs"),q=require("./index-DG0KV-sw.cjs"),P=require("./calendar-BF5drX5u.cjs"),X=require("./progress-CTWb7X1Q.cjs"),Q=require("./avatar-BT_SPwFW.cjs"),ut=require("./chevron-right-Bxf8i4gi.cjs"),T=require("./use-formatters-CObUgipW.cjs"),se=require("./card-DISL3sPJ.cjs"),re=require("./popover-BgLxmm1z.cjs"),De=require("./createLucideIcon-Cv8nC2E9.cjs"),C=require("./skeleton-Cb6MWerF.cjs"),Y=require("./select-Ii8HRuXa.cjs");function ft(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return r.default=t,Object.freeze(r)}const c=ft(K),io=ft(ao);var le="Collapsible",[co,mt]=p.createContextScope(le),[lo,Pe]=co(le),pt=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,open:o,defaultOpen:n,disabled:i,onOpenChange:a,...d}=t,[u,f]=A.useControllableState({prop:o,defaultProp:n??!1,onChange:a,caller:le});return e.jsx(lo,{scope:s,disabled:i,contentId:A.useId(),open:u,onOpenToggle:c.useCallback(()=>f(m=>!m),[f]),children:e.jsx(p.Primitive.div,{"data-state":Me(u),"data-disabled":i?"":void 0,...d,ref:r})})});pt.displayName=le;var xt="CollapsibleTrigger",ke=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,...o}=t,n=Pe(xt,s);return e.jsx(p.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Me(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:r,onClick:p.composeEventHandlers(t.onClick,n.onOpenToggle)})});ke.displayName=xt;var _e="CollapsibleContent",Ie=c.forwardRef((t,r)=>{const{forceMount:s,...o}=t,n=Pe(_e,t.__scopeCollapsible);return e.jsx(p.Presence,{present:s||n.open,children:({present:i})=>e.jsx(uo,{...o,ref:r,present:i})})});Ie.displayName=_e;var uo=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,present:o,children:n,...i}=t,a=Pe(_e,s),[d,u]=c.useState(o),f=c.useRef(null),m=p.useComposedRefs(r,f),l=c.useRef(0),h=l.current,x=c.useRef(0),v=x.current,g=a.open||d,b=c.useRef(g),j=c.useRef(void 0);return c.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),p.useLayoutEffect2(()=>{const w=f.current;if(w){j.current=j.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const N=w.getBoundingClientRect();l.current=N.height,x.current=N.width,b.current||(w.style.transitionDuration=j.current.transitionDuration,w.style.animationName=j.current.animationName),u(o)}},[a.open,o]),e.jsx(p.Primitive.div,{"data-state":Me(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:m,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:g&&n})});function Me(t){return t?"open":"closed"}var ht=pt,fo=ke,mo=Ie,W="Accordion",po=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Oe,xo,ho]=A.createCollection(W),[de]=p.createContextScope(W,[ho,mt]),Fe=mt(),gt=K.forwardRef((t,r)=>{const{type:s,...o}=t,n=o,i=o;return e.jsx(Oe.Provider,{scope:t.__scopeAccordion,children:s==="multiple"?e.jsx(yo,{...i,ref:r}):e.jsx(bo,{...n,ref:r})})});gt.displayName=W;var[vt,go]=de(W),[bt,vo]=de(W,{collapsible:!1}),bo=K.forwardRef((t,r)=>{const{value:s,defaultValue:o,onValueChange:n=()=>{},collapsible:i=!1,...a}=t,[d,u]=A.useControllableState({prop:s,defaultProp:o??"",onChange:n,caller:W});return e.jsx(vt,{scope:t.__scopeAccordion,value:K.useMemo(()=>d?[d]:[],[d]),onItemOpen:u,onItemClose:K.useCallback(()=>i&&u(""),[i,u]),children:e.jsx(bt,{scope:t.__scopeAccordion,collapsible:i,children:e.jsx(yt,{...a,ref:r})})})}),yo=K.forwardRef((t,r)=>{const{value:s,defaultValue:o,onValueChange:n=()=>{},...i}=t,[a,d]=A.useControllableState({prop:s,defaultProp:o??[],onChange:n,caller:W}),u=K.useCallback(m=>d((l=[])=>[...l,m]),[d]),f=K.useCallback(m=>d((l=[])=>l.filter(h=>h!==m)),[d]);return e.jsx(vt,{scope:t.__scopeAccordion,value:a,onItemOpen:u,onItemClose:f,children:e.jsx(bt,{scope:t.__scopeAccordion,collapsible:!0,children:e.jsx(yt,{...i,ref:r})})})}),[wo,ue]=de(W),yt=K.forwardRef((t,r)=>{const{__scopeAccordion:s,disabled:o,dir:n,orientation:i="vertical",...a}=t,d=K.useRef(null),u=p.useComposedRefs(d,r),f=xo(s),l=p.useDirection(n)==="ltr",h=p.composeEventHandlers(t.onKeyDown,x=>{var F;if(!po.includes(x.key))return;const v=x.target,g=f().filter(I=>{var M;return!((M=I.ref.current)!=null&&M.disabled)}),b=g.findIndex(I=>I.ref.current===v),j=g.length;if(b===-1)return;x.preventDefault();let w=b;const N=0,S=j-1,R=()=>{w=b+1,w>S&&(w=N)},_=()=>{w=b-1,w<N&&(w=S)};switch(x.key){case"Home":w=N;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(l?R():_());break;case"ArrowDown":i==="vertical"&&R();break;case"ArrowLeft":i==="horizontal"&&(l?_():R());break;case"ArrowUp":i==="vertical"&&_();break}const D=w%j;(F=g[D].ref.current)==null||F.focus()});return e.jsx(wo,{scope:s,disabled:o,direction:n,orientation:i,children:e.jsx(Oe.Slot,{scope:s,children:e.jsx(p.Primitive.div,{...a,"data-orientation":i,ref:u,onKeyDown:o?void 0:h})})})}),ie="AccordionItem",[jo,$e]=de(ie),wt=K.forwardRef((t,r)=>{const{__scopeAccordion:s,value:o,...n}=t,i=ue(ie,s),a=go(ie,s),d=Fe(s),u=A.useId(),f=o&&a.value.includes(o)||!1,m=i.disabled||t.disabled;return e.jsx(jo,{scope:s,open:f,disabled:m,triggerId:u,children:e.jsx(ht,{"data-orientation":i.orientation,"data-state":Rt(f),...d,...n,ref:r,disabled:m,open:f,onOpenChange:l=>{l?a.onItemOpen(o):a.onItemClose(o)}})})});wt.displayName=ie;var jt="AccordionHeader",Nt=K.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(W,s),i=$e(jt,s);return e.jsx(p.Primitive.h3,{"data-orientation":n.orientation,"data-state":Rt(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:r})});Nt.displayName=jt;var we="AccordionTrigger",St=K.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(W,s),i=$e(we,s),a=vo(we,s),d=Fe(s);return e.jsx(Oe.ItemSlot,{scope:s,children:e.jsx(fo,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":n.orientation,id:i.triggerId,...d,...o,ref:r})})});St.displayName=we;var Ct="AccordionContent",Tt=K.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(W,s),i=$e(Ct,s),a=Fe(s);return e.jsx(mo,{role:"region","aria-labelledby":i.triggerId,"data-orientation":n.orientation,...a,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});Tt.displayName=Ct;function Rt(t){return t?"open":"closed"}var No=gt,So=wt,Co=Nt,Et=St,At=Tt;/**
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 it=De.createLucideIcon("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
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 To=De.createLucideIcon("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
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 Ro=De.createLucideIcon("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]),Eo=No,Dt=c.forwardRef(({className:t,...r},s)=>e.jsx(So,{ref:s,className:y.cn("border-b",t),...r}));Dt.displayName="AccordionItem";const Pt=c.forwardRef(({className:t,children:r,...s},o)=>e.jsx(Co,{className:"flex",children:e.jsxs(Et,{ref:o,className:y.cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...s,children:[r,e.jsx(Ee.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Pt.displayName=Et.displayName;const kt=c.forwardRef(({className:t,children:r,...s},o)=>e.jsx(At,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:y.cn("pb-4 pt-0",t),children:r})}));kt.displayName=At.displayName;const Ao=p.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",success:"border-success/50 text-success dark:border-success [&>svg]:text-success bg-success/10",warning:"border-warning/50 text-warning dark:border-warning [&>svg]:text-warning bg-warning/10",info:"border-info/50 text-info dark:border-info [&>svg]:text-info bg-info/10"}},defaultVariants:{variant:"default"}}),_t=c.forwardRef(({className:t,variant:r,...s},o)=>e.jsx("div",{ref:o,role:"alert",className:y.cn(Ao({variant:r}),t),...s}));_t.displayName="Alert";const It=c.forwardRef(({className:t,...r},s)=>e.jsx("h5",{ref:s,className:y.cn("mb-1 font-medium leading-none tracking-tight",t),...r}));It.displayName="AlertTitle";const Mt=c.forwardRef(({className:t,...r},s)=>e.jsx("div",{ref:s,className:y.cn("text-sm [&_p]:leading-relaxed",t),...r}));Mt.displayName="AlertDescription";var Do=Symbol("radix.slottable");function Po(t){const r=({children:s})=>e.jsx(e.Fragment,{children:s});return r.displayName=`${t}.Slottable`,r.__radixId=Do,r}var Ot="AlertDialog",[ko]=p.createContextScope(Ot,[q.createDialogScope]),U=q.createDialogScope(),Ft=t=>{const{__scopeAlertDialog:r,...s}=t,o=U(r);return e.jsx(q.Root,{...o,...s,modal:!0})};Ft.displayName=Ot;var _o="AlertDialogTrigger",$t=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(q.Trigger,{...n,...o,ref:r})});$t.displayName=_o;var Io="AlertDialogPortal",Vt=t=>{const{__scopeAlertDialog:r,...s}=t,o=U(r);return e.jsx(q.Portal,{...o,...s})};Vt.displayName=Io;var Mo="AlertDialogOverlay",Lt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(q.Overlay,{...n,...o,ref:r})});Lt.displayName=Mo;var ee="AlertDialogContent",[Oo,Fo]=ko(ee),$o=Po("AlertDialogContent"),Bt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,children:o,...n}=t,i=U(s),a=c.useRef(null),d=p.useComposedRefs(r,a),u=c.useRef(null);return e.jsx(q.WarningProvider,{contentName:ee,titleName:Ht,docsSlug:"alert-dialog",children:e.jsx(Oo,{scope:s,cancelRef:u,children:e.jsxs(q.Content,{role:"alertdialog",...i,...n,ref:d,onOpenAutoFocus:p.composeEventHandlers(n.onOpenAutoFocus,f=>{var m;f.preventDefault(),(m=u.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[e.jsx($o,{children:o}),e.jsx(Lo,{contentRef:a})]})})})});Bt.displayName=ee;var Ht="AlertDialogTitle",Kt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(q.Title,{...n,...o,ref:r})});Kt.displayName=Ht;var zt="AlertDialogDescription",Gt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(q.Description,{...n,...o,ref:r})});Gt.displayName=zt;var Vo="AlertDialogAction",qt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(q.Close,{...n,...o,ref:r})});qt.displayName=Vo;var Wt="AlertDialogCancel",Ut=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,{cancelRef:n}=Fo(Wt,s),i=U(s),a=p.useComposedRefs(r,n);return e.jsx(q.Close,{...i,...o,ref:a})});Ut.displayName=Wt;var Lo=({contentRef:t})=>{const r=`\`${ee}\` requires a description for the component to be accessible for screen reader users.
17
-
18
- You can add a description to the \`${ee}\` by passing a \`${zt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
19
-
20
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ee}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
21
-
22
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var o;document.getElementById((o=t.current)==null?void 0:o.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},Bo=Ft,Ho=$t,Ko=Vt,Yt=Lt,Xt=Bt,Jt=qt,Zt=Ut,Qt=Kt,es=Gt;const ts=Bo,zo=Ho,ss=Ko,Ve=c.forwardRef(({className:t,...r},s)=>e.jsx(Yt,{className:y.cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:s}));Ve.displayName=Yt.displayName;const Le=c.forwardRef(({className:t,...r},s)=>e.jsxs(ss,{children:[e.jsx(Ve,{}),e.jsx(Xt,{ref:s,className:y.cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})]}));Le.displayName=Xt.displayName;const Be=({className:t,...r})=>e.jsx("div",{className:y.cn("flex flex-col space-y-2 text-center sm:text-left",t),...r});Be.displayName="AlertDialogHeader";const He=({className:t,...r})=>e.jsx("div",{className:y.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});He.displayName="AlertDialogFooter";const Ke=c.forwardRef(({className:t,...r},s)=>e.jsx(Qt,{ref:s,className:y.cn("text-lg font-semibold",t),...r}));Ke.displayName=Qt.displayName;const ze=c.forwardRef(({className:t,...r},s)=>e.jsx(es,{ref:s,className:y.cn("text-sm text-muted-foreground",t),...r}));ze.displayName=es.displayName;const Ge=c.forwardRef(({className:t,...r},s)=>e.jsx(Jt,{ref:s,className:y.cn(p.buttonVariants(),t),...r}));Ge.displayName=Jt.displayName;const qe=c.forwardRef(({className:t,...r},s)=>e.jsx(Zt,{ref:s,className:y.cn(p.buttonVariants({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));qe.displayName=Zt.displayName;const rs=c.forwardRef(({className:t,variant:r="default",size:s="default",children:o,options:n,onClick:i,dropdownAlign:a="end",disabled:d,...u},f)=>e.jsxs("div",{className:"flex",children:[e.jsx(p.Button,{ref:f,variant:r,size:s,className:y.cn("rounded-r-none border-r-0",t),onClick:i,disabled:d,...u,children:o}),e.jsxs(A.DropdownMenu,{children:[e.jsx(A.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(p.Button,{variant:r,size:s,className:"rounded-l-none px-2",disabled:d,children:[e.jsx(Ee.ChevronDown,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More options"})]})}),e.jsx(A.DropdownMenuContent,{align:a,children:n.map((m,l)=>e.jsxs(A.DropdownMenuItem,{onClick:m.onClick,disabled:m.disabled,className:"flex items-center gap-2",children:[m.icon&&e.jsx("span",{className:"h-4 w-4",children:m.icon}),m.label]},l))})]})]}));rs.displayName="SplitButton";const os=p.cva("inline-flex items-center justify-center rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 w-10",sm:"h-8 w-8",lg:"h-12 w-12",xl:"h-14 w-14"}},defaultVariants:{variant:"default",size:"default"}}),ns=c.forwardRef(({className:t,variant:r,size:s,icon:o,tooltip:n,tooltipSide:i="top",loading:a=!1,disabled:d,...u},f)=>{const m=e.jsx("button",{ref:f,className:y.cn(os({variant:r,size:s}),t),disabled:d||a,...u,children:a?e.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):o});return n?e.jsx(O.TooltipProvider,{children:e.jsxs(O.Tooltip,{children:[e.jsx(O.TooltipTrigger,{asChild:!0,children:m}),e.jsx(O.TooltipContent,{side:i,children:e.jsx("p",{children:n})})]})}):m});ns.displayName="IconButton";const as=c.forwardRef(({className:t,children:r,badge:s,badgeVariant:o="destructive",badgePosition:n="top-right",showBadge:i=!0,...a},d)=>{const u=i&&s!==void 0&&s!==null&&s!=="";if(n==="inline")return e.jsxs(p.Button,{ref:d,className:y.cn("gap-2",t),...a,children:[r,u&&e.jsx(p.Badge,{variant:o,className:"ml-1 h-5 min-w-5 rounded-full px-1.5",children:s})]});const f={"top-right":"-right-1 -top-1","top-left":"-left-1 -top-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"};return e.jsxs("div",{className:"relative inline-flex",children:[e.jsx(p.Button,{ref:d,className:t,...a,children:r}),u&&e.jsx(p.Badge,{variant:o,className:y.cn("absolute flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs",f[n]),children:typeof s=="number"&&s>99?"99+":s})]})});as.displayName="ButtonWithBadge";const Go=ht,qo=ke,Wo=Ie;var We="Radio",[Uo,is]=p.createContextScope(We),[Yo,Xo]=Uo(We),cs=c.forwardRef((t,r)=>{const{__scopeRadio:s,name:o,checked:n=!1,required:i,disabled:a,value:d="on",onCheck:u,form:f,...m}=t,[l,h]=c.useState(null),x=p.useComposedRefs(r,b=>h(b)),v=c.useRef(!1),g=l?f||!!l.closest("form"):!0;return e.jsxs(Yo,{scope:s,checked:n,disabled:a,children:[e.jsx(p.Primitive.button,{type:"button",role:"radio","aria-checked":n,"data-state":fs(n),"data-disabled":a?"":void 0,disabled:a,value:d,...m,ref:x,onClick:p.composeEventHandlers(t.onClick,b=>{n||u==null||u(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&e.jsx(us,{control:l,bubbles:!v.current,name:o,value:d,checked:n,required:i,disabled:a,form:f,style:{transform:"translateX(-100%)"}})]})});cs.displayName=We;var ls="RadioIndicator",ds=c.forwardRef((t,r)=>{const{__scopeRadio:s,forceMount:o,...n}=t,i=Xo(ls,s);return e.jsx(p.Presence,{present:o||i.checked,children:e.jsx(p.Primitive.span,{"data-state":fs(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:r})})});ds.displayName=ls;var Jo="RadioBubbleInput",us=c.forwardRef(({__scopeRadio:t,control:r,checked:s,bubbles:o=!0,...n},i)=>{const a=c.useRef(null),d=p.useComposedRefs(a,i),u=Ae.usePrevious(s),f=A.useSize(r);return c.useEffect(()=>{const m=a.current;if(!m)return;const l=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(l,"checked").set;if(u!==s&&x){const v=new Event("click",{bubbles:o});x.call(m,s),m.dispatchEvent(v)}},[u,s,o]),e.jsx(p.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:s,...n,tabIndex:-1,ref:d,style:{...n.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});us.displayName=Jo;function fs(t){return t?"checked":"unchecked"}var Zo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fe="RadioGroup",[Qo]=p.createContextScope(fe,[A.createRovingFocusGroupScope,is]),ms=A.createRovingFocusGroupScope(),ps=is(),[en,tn]=Qo(fe),xs=c.forwardRef((t,r)=>{const{__scopeRadioGroup:s,name:o,defaultValue:n,value:i,required:a=!1,disabled:d=!1,orientation:u,dir:f,loop:m=!0,onValueChange:l,...h}=t,x=ms(s),v=p.useDirection(f),[g,b]=A.useControllableState({prop:i,defaultProp:n??null,onChange:l,caller:fe});return e.jsx(en,{scope:s,name:o,required:a,disabled:d,value:g,onValueChange:b,children:e.jsx(A.Root,{asChild:!0,...x,orientation:u,dir:v,loop:m,children:e.jsx(p.Primitive.div,{role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":d?"":void 0,dir:v,...h,ref:r})})})});xs.displayName=fe;var hs="RadioGroupItem",gs=c.forwardRef((t,r)=>{const{__scopeRadioGroup:s,disabled:o,...n}=t,i=tn(hs,s),a=i.disabled||o,d=ms(s),u=ps(s),f=c.useRef(null),m=p.useComposedRefs(r,f),l=i.value===n.value,h=c.useRef(!1);return c.useEffect(()=>{const x=g=>{Zo.includes(g.key)&&(h.current=!0)},v=()=>h.current=!1;return document.addEventListener("keydown",x),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",v)}},[]),e.jsx(A.Item,{asChild:!0,...d,focusable:!a,active:l,children:e.jsx(cs,{disabled:a,required:i.required,checked:l,...u,...n,name:i.name,ref:m,onCheck:()=>i.onValueChange(n.value),onKeyDown:p.composeEventHandlers(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:p.composeEventHandlers(n.onFocus,()=>{var x;h.current&&((x=f.current)==null||x.click())})})})});gs.displayName=hs;var sn="RadioGroupIndicator",vs=c.forwardRef((t,r)=>{const{__scopeRadioGroup:s,...o}=t,n=ps(s);return e.jsx(ds,{...n,...o,ref:r})});vs.displayName=sn;var bs=xs,ys=gs,rn=vs;const ws=c.forwardRef(({className:t,...r},s)=>e.jsx(bs,{className:y.cn("grid gap-2",t),...r,ref:s}));ws.displayName=bs.displayName;const js=c.forwardRef(({className:t,...r},s)=>e.jsx(ys,{ref:s,className:y.cn("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:e.jsx(rn,{className:"flex items-center justify-center",children:e.jsx(A.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));js.displayName=ys.displayName;var Ns=["PageUp","PageDown"],Ss=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Cs={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},te="Slider",[je,on,nn]=A.createCollection(te),[Ts]=p.createContextScope(te,[nn]),[an,me]=Ts(te),Rs=c.forwardRef((t,r)=>{const{name:s,min:o=0,max:n=100,step:i=1,orientation:a="horizontal",disabled:d=!1,minStepsBetweenThumbs:u=0,defaultValue:f=[o],value:m,onValueChange:l=()=>{},onValueCommit:h=()=>{},inverted:x=!1,form:v,...g}=t,b=c.useRef(new Set),j=c.useRef(0),N=a==="horizontal"?cn:ln,[S=[],R]=A.useControllableState({prop:m,defaultProp:f,onChange:k=>{var B;(B=[...b.current][j.current])==null||B.focus(),l(k)}}),_=c.useRef(S);function D(k){const $=pn(S,k);M(k,$)}function F(k){M(k,j.current)}function I(){const k=_.current[j.current];S[j.current]!==k&&h(S)}function M(k,$,{commit:B}={commit:!1}){const E=vn(i),L=bn(Math.round((k-o)/i)*i+o,E),H=p.clamp(L,[o,n]);R((G=[])=>{const z=fn(G,H,$);if(gn(z,u*i)){j.current=z.indexOf(H);const J=String(z)!==String(G);return J&&B&&h(z),J?z:G}else return G})}return e.jsx(an,{scope:t.__scopeSlider,name:s,disabled:d,min:o,max:n,valueIndexToChangeRef:j,thumbs:b.current,values:S,orientation:a,form:v,children:e.jsx(je.Provider,{scope:t.__scopeSlider,children:e.jsx(je.Slot,{scope:t.__scopeSlider,children:e.jsx(N,{"aria-disabled":d,"data-disabled":d?"":void 0,...g,ref:r,onPointerDown:p.composeEventHandlers(g.onPointerDown,()=>{d||(_.current=S)}),min:o,max:n,inverted:x,onSlideStart:d?void 0:D,onSlideMove:d?void 0:F,onSlideEnd:d?void 0:I,onHomeKeyDown:()=>!d&&M(o,0,{commit:!0}),onEndKeyDown:()=>!d&&M(n,S.length-1,{commit:!0}),onStepKeyDown:({event:k,direction:$})=>{if(!d){const L=Ns.includes(k.key)||k.shiftKey&&Ss.includes(k.key)?10:1,H=j.current,G=S[H],z=i*L*$;M(G+z,H,{commit:!0})}}})})})})});Rs.displayName=te;var[Es,As]=Ts(te,{startEdge:"left",endEdge:"right",size:"width",direction:1}),cn=c.forwardRef((t,r)=>{const{min:s,max:o,dir:n,inverted:i,onSlideStart:a,onSlideMove:d,onSlideEnd:u,onStepKeyDown:f,...m}=t,[l,h]=c.useState(null),x=p.useComposedRefs(r,N=>h(N)),v=c.useRef(void 0),g=p.useDirection(n),b=g==="ltr",j=b&&!i||!b&&i;function w(N){const S=v.current||l.getBoundingClientRect(),R=[0,S.width],D=Ue(R,j?[s,o]:[o,s]);return v.current=S,D(N-S.left)}return e.jsx(Es,{scope:t.__scopeSlider,startEdge:j?"left":"right",endEdge:j?"right":"left",direction:j?1:-1,size:"width",children:e.jsx(Ds,{dir:g,"data-orientation":"horizontal",...m,ref:x,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:N=>{const S=w(N.clientX);a==null||a(S)},onSlideMove:N=>{const S=w(N.clientX);d==null||d(S)},onSlideEnd:()=>{v.current=void 0,u==null||u()},onStepKeyDown:N=>{const R=Cs[j?"from-left":"from-right"].includes(N.key);f==null||f({event:N,direction:R?-1:1})}})})}),ln=c.forwardRef((t,r)=>{const{min:s,max:o,inverted:n,onSlideStart:i,onSlideMove:a,onSlideEnd:d,onStepKeyDown:u,...f}=t,m=c.useRef(null),l=p.useComposedRefs(r,m),h=c.useRef(void 0),x=!n;function v(g){const b=h.current||m.current.getBoundingClientRect(),j=[0,b.height],N=Ue(j,x?[o,s]:[s,o]);return h.current=b,N(g-b.top)}return e.jsx(Es,{scope:t.__scopeSlider,startEdge:x?"bottom":"top",endEdge:x?"top":"bottom",size:"height",direction:x?1:-1,children:e.jsx(Ds,{"data-orientation":"vertical",...f,ref:l,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=v(g.clientY);i==null||i(b)},onSlideMove:g=>{const b=v(g.clientY);a==null||a(b)},onSlideEnd:()=>{h.current=void 0,d==null||d()},onStepKeyDown:g=>{const j=Cs[x?"from-bottom":"from-top"].includes(g.key);u==null||u({event:g,direction:j?-1:1})}})})}),Ds=c.forwardRef((t,r)=>{const{__scopeSlider:s,onSlideStart:o,onSlideMove:n,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:d,onStepKeyDown:u,...f}=t,m=me(te,s);return e.jsx(p.Primitive.span,{...f,ref:r,onKeyDown:p.composeEventHandlers(t.onKeyDown,l=>{l.key==="Home"?(a(l),l.preventDefault()):l.key==="End"?(d(l),l.preventDefault()):Ns.concat(Ss).includes(l.key)&&(u(l),l.preventDefault())}),onPointerDown:p.composeEventHandlers(t.onPointerDown,l=>{const h=l.target;h.setPointerCapture(l.pointerId),l.preventDefault(),m.thumbs.has(h)?h.focus():o(l)}),onPointerMove:p.composeEventHandlers(t.onPointerMove,l=>{l.target.hasPointerCapture(l.pointerId)&&n(l)}),onPointerUp:p.composeEventHandlers(t.onPointerUp,l=>{const h=l.target;h.hasPointerCapture(l.pointerId)&&(h.releasePointerCapture(l.pointerId),i(l))})})}),Ps="SliderTrack",ks=c.forwardRef((t,r)=>{const{__scopeSlider:s,...o}=t,n=me(Ps,s);return e.jsx(p.Primitive.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...o,ref:r})});ks.displayName=Ps;var Ne="SliderRange",_s=c.forwardRef((t,r)=>{const{__scopeSlider:s,...o}=t,n=me(Ne,s),i=As(Ne,s),a=c.useRef(null),d=p.useComposedRefs(r,a),u=n.values.length,f=n.values.map(h=>Os(h,n.min,n.max)),m=u>1?Math.min(...f):0,l=100-Math.max(...f);return e.jsx(p.Primitive.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...o,ref:d,style:{...t.style,[i.startEdge]:m+"%",[i.endEdge]:l+"%"}})});_s.displayName=Ne;var Se="SliderThumb",Is=c.forwardRef((t,r)=>{const s=on(t.__scopeSlider),[o,n]=c.useState(null),i=p.useComposedRefs(r,d=>n(d)),a=c.useMemo(()=>o?s().findIndex(d=>d.ref.current===o):-1,[s,o]);return e.jsx(dn,{...t,ref:i,index:a})}),dn=c.forwardRef((t,r)=>{const{__scopeSlider:s,index:o,name:n,...i}=t,a=me(Se,s),d=As(Se,s),[u,f]=c.useState(null),m=p.useComposedRefs(r,w=>f(w)),l=u?a.form||!!u.closest("form"):!0,h=A.useSize(u),x=a.values[o],v=x===void 0?0:Os(x,a.min,a.max),g=mn(o,a.values.length),b=h==null?void 0:h[d.size],j=b?xn(b,v,d.direction):0;return c.useEffect(()=>{if(u)return a.thumbs.add(u),()=>{a.thumbs.delete(u)}},[u,a.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${v}% + ${j}px)`},children:[e.jsx(je.ItemSlot,{scope:t.__scopeSlider,children:e.jsx(p.Primitive.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":x,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:m,style:x===void 0?{display:"none"}:t.style,onFocus:p.composeEventHandlers(t.onFocus,()=>{a.valueIndexToChangeRef.current=o})})}),l&&e.jsx(Ms,{name:n??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:x},o)]})});Is.displayName=Se;var un="RadioBubbleInput",Ms=c.forwardRef(({__scopeSlider:t,value:r,...s},o)=>{const n=c.useRef(null),i=p.useComposedRefs(n,o),a=Ae.usePrevious(r);return c.useEffect(()=>{const d=n.current;if(!d)return;const u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==r&&m){const l=new Event("input",{bubbles:!0});m.call(d,r),d.dispatchEvent(l)}},[a,r]),e.jsx(p.Primitive.input,{style:{display:"none"},...s,ref:i,defaultValue:r})});Ms.displayName=un;function fn(t=[],r,s){const o=[...t];return o[s]=r,o.sort((n,i)=>n-i)}function Os(t,r,s){const i=100/(s-r)*(t-r);return p.clamp(i,[0,100])}function mn(t,r){return r>2?`Value ${t+1} of ${r}`:r===2?["Minimum","Maximum"][t]:void 0}function pn(t,r){if(t.length===1)return 0;const s=t.map(n=>Math.abs(n-r)),o=Math.min(...s);return s.indexOf(o)}function xn(t,r,s){const o=t/2,i=Ue([0,50],[0,o]);return(o-i(r)*s)*s}function hn(t){return t.slice(0,-1).map((r,s)=>t[s+1]-r)}function gn(t,r){if(r>0){const s=hn(t);return Math.min(...s)>=r}return!0}function Ue(t,r){return s=>{if(t[0]===t[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(t[1]-t[0]);return r[0]+o*(s-t[0])}}function vn(t){return(String(t).split(".")[1]||"").length}function bn(t,r){const s=Math.pow(10,r);return Math.round(t*s)/s}var Fs=Rs,yn=ks,wn=_s,jn=Is;const $s=c.forwardRef(({className:t,...r},s)=>e.jsxs(Fs,{ref:s,className:y.cn("relative flex w-full touch-none select-none items-center",t),...r,children:[e.jsx(yn,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(wn,{className:"absolute h-full bg-primary"})}),e.jsx(jn,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));$s.displayName=Fs.displayName;var pe="Switch",[Nn]=p.createContextScope(pe),[Sn,Cn]=Nn(pe),Vs=c.forwardRef((t,r)=>{const{__scopeSwitch:s,name:o,checked:n,defaultChecked:i,required:a,disabled:d,value:u="on",onCheckedChange:f,form:m,...l}=t,[h,x]=c.useState(null),v=p.useComposedRefs(r,N=>x(N)),g=c.useRef(!1),b=h?m||!!h.closest("form"):!0,[j,w]=A.useControllableState({prop:n,defaultProp:i??!1,onChange:f,caller:pe});return e.jsxs(Sn,{scope:s,checked:j,disabled:d,children:[e.jsx(p.Primitive.button,{type:"button",role:"switch","aria-checked":j,"aria-required":a,"data-state":Ks(j),"data-disabled":d?"":void 0,disabled:d,value:u,...l,ref:v,onClick:p.composeEventHandlers(t.onClick,N=>{w(S=>!S),b&&(g.current=N.isPropagationStopped(),g.current||N.stopPropagation())})}),b&&e.jsx(Hs,{control:h,bubbles:!g.current,name:o,value:u,checked:j,required:a,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});Vs.displayName=pe;var Ls="SwitchThumb",Bs=c.forwardRef((t,r)=>{const{__scopeSwitch:s,...o}=t,n=Cn(Ls,s);return e.jsx(p.Primitive.span,{"data-state":Ks(n.checked),"data-disabled":n.disabled?"":void 0,...o,ref:r})});Bs.displayName=Ls;var Tn="SwitchBubbleInput",Hs=c.forwardRef(({__scopeSwitch:t,control:r,checked:s,bubbles:o=!0,...n},i)=>{const a=c.useRef(null),d=p.useComposedRefs(a,i),u=Ae.usePrevious(s),f=A.useSize(r);return c.useEffect(()=>{const m=a.current;if(!m)return;const l=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(l,"checked").set;if(u!==s&&x){const v=new Event("click",{bubbles:o});x.call(m,s),m.dispatchEvent(v)}},[u,s,o]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...n,tabIndex:-1,ref:d,style:{...n.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Hs.displayName=Tn;function Ks(t){return t?"checked":"unchecked"}var zs=Vs,Rn=Bs;const Gs=c.forwardRef(({className:t,...r},s)=>e.jsx(zs,{className:y.cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...r,ref:s,children:e.jsx(Rn,{className:y.cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Gs.displayName=zs.displayName;var xe="Tabs",[En]=p.createContextScope(xe,[A.createRovingFocusGroupScope]),qs=A.createRovingFocusGroupScope(),[An,Ye]=En(xe),Ws=c.forwardRef((t,r)=>{const{__scopeTabs:s,value:o,onValueChange:n,defaultValue:i,orientation:a="horizontal",dir:d,activationMode:u="automatic",...f}=t,m=p.useDirection(d),[l,h]=A.useControllableState({prop:o,onChange:n,defaultProp:i??"",caller:xe});return e.jsx(An,{scope:s,baseId:A.useId(),value:l,onValueChange:h,orientation:a,dir:m,activationMode:u,children:e.jsx(p.Primitive.div,{dir:m,"data-orientation":a,...f,ref:r})})});Ws.displayName=xe;var Us="TabsList",Ys=c.forwardRef((t,r)=>{const{__scopeTabs:s,loop:o=!0,...n}=t,i=Ye(Us,s),a=qs(s);return e.jsx(A.Root,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:o,children:e.jsx(p.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:r})})});Ys.displayName=Us;var Xs="TabsTrigger",Js=c.forwardRef((t,r)=>{const{__scopeTabs:s,value:o,disabled:n=!1,...i}=t,a=Ye(Xs,s),d=qs(s),u=er(a.baseId,o),f=tr(a.baseId,o),m=o===a.value;return e.jsx(A.Item,{asChild:!0,...d,focusable:!n,active:m,children:e.jsx(p.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...i,ref:r,onMouseDown:p.composeEventHandlers(t.onMouseDown,l=>{!n&&l.button===0&&l.ctrlKey===!1?a.onValueChange(o):l.preventDefault()}),onKeyDown:p.composeEventHandlers(t.onKeyDown,l=>{[" ","Enter"].includes(l.key)&&a.onValueChange(o)}),onFocus:p.composeEventHandlers(t.onFocus,()=>{const l=a.activationMode!=="manual";!m&&!n&&l&&a.onValueChange(o)})})})});Js.displayName=Xs;var Zs="TabsContent",Qs=c.forwardRef((t,r)=>{const{__scopeTabs:s,value:o,forceMount:n,children:i,...a}=t,d=Ye(Zs,s),u=er(d.baseId,o),f=tr(d.baseId,o),m=o===d.value,l=c.useRef(m);return c.useEffect(()=>{const h=requestAnimationFrame(()=>l.current=!1);return()=>cancelAnimationFrame(h)},[]),e.jsx(p.Presence,{present:n||m,children:({present:h})=>e.jsx(p.Primitive.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:f,tabIndex:0,...a,ref:r,style:{...t.style,animationDuration:l.current?"0s":void 0},children:h&&i})})});Qs.displayName=Zs;function er(t,r){return`${t}-trigger-${r}`}function tr(t,r){return`${t}-content-${r}`}var Dn=Ws,sr=Ys,rr=Js,or=Qs;const Pn=Dn,nr=c.forwardRef(({className:t,...r},s)=>e.jsx(sr,{ref:s,className:y.cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...r}));nr.displayName=sr.displayName;const ar=c.forwardRef(({className:t,...r},s)=>e.jsx(rr,{ref:s,className:y.cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...r}));ar.displayName=rr.displayName;const ir=c.forwardRef(({className:t,...r},s)=>e.jsx(or,{ref:s,className:y.cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...r}));ir.displayName=or.displayName;const cr=c.forwardRef(({className:t,...r},s)=>e.jsx("textarea",{className:y.cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...r}));cr.displayName="Textarea";var Xe="ToastProvider",[Je,kn,_n]=A.createCollection("Toast"),[lr]=p.createContextScope("Toast",[_n]),[In,he]=lr(Xe),dr=t=>{const{__scopeToast:r,label:s="Notification",duration:o=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:a}=t,[d,u]=c.useState(null),[f,m]=c.useState(0),l=c.useRef(!1),h=c.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xe}\`. Expected non-empty \`string\`.`),e.jsx(Je.Provider,{scope:r,children:e.jsx(In,{scope:r,label:s,duration:o,swipeDirection:n,swipeThreshold:i,toastCount:f,viewport:d,onViewportChange:u,onToastAdd:c.useCallback(()=>m(x=>x+1),[]),onToastRemove:c.useCallback(()=>m(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:h,children:a})})};dr.displayName=Xe;var ur="ToastViewport",Mn=["F8"],Ce="toast.viewportPause",Te="toast.viewportResume",fr=c.forwardRef((t,r)=>{const{__scopeToast:s,hotkey:o=Mn,label:n="Notifications ({hotkey})",...i}=t,a=he(ur,s),d=kn(s),u=c.useRef(null),f=c.useRef(null),m=c.useRef(null),l=c.useRef(null),h=p.useComposedRefs(r,l,a.onViewportChange),x=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;c.useEffect(()=>{const b=j=>{var N;o.length!==0&&o.every(S=>j[S]||j.code===S)&&((N=l.current)==null||N.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[o]),c.useEffect(()=>{const b=u.current,j=l.current;if(v&&b&&j){const w=()=>{if(!a.isClosePausedRef.current){const _=new CustomEvent(Ce);j.dispatchEvent(_),a.isClosePausedRef.current=!0}},N=()=>{if(a.isClosePausedRef.current){const _=new CustomEvent(Te);j.dispatchEvent(_),a.isClosePausedRef.current=!1}},S=_=>{!b.contains(_.relatedTarget)&&N()},R=()=>{b.contains(document.activeElement)||N()};return b.addEventListener("focusin",w),b.addEventListener("focusout",S),b.addEventListener("pointermove",w),b.addEventListener("pointerleave",R),window.addEventListener("blur",w),window.addEventListener("focus",N),()=>{b.removeEventListener("focusin",w),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",w),b.removeEventListener("pointerleave",R),window.removeEventListener("blur",w),window.removeEventListener("focus",N)}}},[v,a.isClosePausedRef]);const g=c.useCallback(({tabbingDirection:b})=>{const w=d().map(N=>{const S=N.ref.current,R=[S,...Un(S)];return b==="forwards"?R:R.reverse()});return(b==="forwards"?w.reverse():w).flat()},[d]);return c.useEffect(()=>{const b=l.current;if(b){const j=w=>{var R,_,D;const N=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!N){const F=document.activeElement,I=w.shiftKey;if(w.target===b&&I){(R=f.current)==null||R.focus();return}const $=g({tabbingDirection:I?"backwards":"forwards"}),B=$.findIndex(E=>E===F);be($.slice(B+1))?w.preventDefault():I?(_=f.current)==null||_.focus():(D=m.current)==null||D.focus()}};return b.addEventListener("keydown",j),()=>b.removeEventListener("keydown",j)}},[d,g]),e.jsxs(A.Branch,{ref:u,role:"region","aria-label":n.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&e.jsx(Re,{ref:f,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});be(b)}}),e.jsx(Je.Slot,{scope:s,children:e.jsx(p.Primitive.ol,{tabIndex:-1,...i,ref:h})}),v&&e.jsx(Re,{ref:m,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});be(b)}})]})});fr.displayName=ur;var mr="ToastFocusProxy",Re=c.forwardRef((t,r)=>{const{__scopeToast:s,onFocusFromOutsideViewport:o,...n}=t,i=he(mr,s);return e.jsx(dt.VisuallyHidden,{tabIndex:0,...n,ref:r,style:{position:"fixed"},onFocus:a=>{var f;const d=a.relatedTarget;!((f=i.viewport)!=null&&f.contains(d))&&o()}})});Re.displayName=mr;var oe="Toast",On="toast.swipeStart",Fn="toast.swipeMove",$n="toast.swipeCancel",Vn="toast.swipeEnd",pr=c.forwardRef((t,r)=>{const{forceMount:s,open:o,defaultOpen:n,onOpenChange:i,...a}=t,[d,u]=A.useControllableState({prop:o,defaultProp:n??!0,onChange:i,caller:oe});return e.jsx(p.Presence,{present:s||d,children:e.jsx(Hn,{open:d,...a,ref:r,onClose:()=>u(!1),onPause:p.useCallbackRef(t.onPause),onResume:p.useCallbackRef(t.onResume),onSwipeStart:p.composeEventHandlers(t.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:p.composeEventHandlers(t.onSwipeMove,f=>{const{x:m,y:l}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${l}px`)}),onSwipeCancel:p.composeEventHandlers(t.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:p.composeEventHandlers(t.onSwipeEnd,f=>{const{x:m,y:l}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${l}px`),u(!1)})})})});pr.displayName=oe;var[Ln,Bn]=lr(oe,{onClose(){}}),Hn=c.forwardRef((t,r)=>{const{__scopeToast:s,type:o="foreground",duration:n,open:i,onClose:a,onEscapeKeyDown:d,onPause:u,onResume:f,onSwipeStart:m,onSwipeMove:l,onSwipeCancel:h,onSwipeEnd:x,...v}=t,g=he(oe,s),[b,j]=c.useState(null),w=p.useComposedRefs(r,E=>j(E)),N=c.useRef(null),S=c.useRef(null),R=n||g.duration,_=c.useRef(0),D=c.useRef(R),F=c.useRef(0),{onToastAdd:I,onToastRemove:M}=g,k=p.useCallbackRef(()=>{var L;(b==null?void 0:b.contains(document.activeElement))&&((L=g.viewport)==null||L.focus()),a()}),$=c.useCallback(E=>{!E||E===1/0||(window.clearTimeout(F.current),_.current=new Date().getTime(),F.current=window.setTimeout(k,E))},[k]);c.useEffect(()=>{const E=g.viewport;if(E){const L=()=>{$(D.current),f==null||f()},H=()=>{const G=new Date().getTime()-_.current;D.current=D.current-G,window.clearTimeout(F.current),u==null||u()};return E.addEventListener(Ce,H),E.addEventListener(Te,L),()=>{E.removeEventListener(Ce,H),E.removeEventListener(Te,L)}}},[g.viewport,R,u,f,$]),c.useEffect(()=>{i&&!g.isClosePausedRef.current&&$(R)},[i,R,g.isClosePausedRef,$]),c.useEffect(()=>(I(),()=>M()),[I,M]);const B=c.useMemo(()=>b?wr(b):null,[b]);return g.viewport?e.jsxs(e.Fragment,{children:[B&&e.jsx(Kn,{__scopeToast:s,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:B}),e.jsx(Ln,{scope:s,onClose:k,children:io.createPortal(e.jsx(Je.ItemSlot,{scope:s,children:e.jsx(A.Root$1,{asChild:!0,onEscapeKeyDown:p.composeEventHandlers(d,()=>{g.isFocusedToastEscapeKeyDownRef.current||k(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:e.jsx(p.Primitive.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:p.composeEventHandlers(t.onKeyDown,E=>{E.key==="Escape"&&(d==null||d(E.nativeEvent),E.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,k()))}),onPointerDown:p.composeEventHandlers(t.onPointerDown,E=>{E.button===0&&(N.current={x:E.clientX,y:E.clientY})}),onPointerMove:p.composeEventHandlers(t.onPointerMove,E=>{if(!N.current)return;const L=E.clientX-N.current.x,H=E.clientY-N.current.y,G=!!S.current,z=["left","right"].includes(g.swipeDirection),J=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,ro=z?J(0,L):0,oo=z?0:J(0,H),ve=E.pointerType==="touch"?10:2,ne={x:ro,y:oo},at={originalEvent:E,delta:ne};G?(S.current=ne,ae(Fn,l,at,{discrete:!1})):ct(ne,g.swipeDirection,ve)?(S.current=ne,ae(On,m,at,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(L)>ve||Math.abs(H)>ve)&&(N.current=null)}),onPointerUp:p.composeEventHandlers(t.onPointerUp,E=>{const L=S.current,H=E.target;if(H.hasPointerCapture(E.pointerId)&&H.releasePointerCapture(E.pointerId),S.current=null,N.current=null,L){const G=E.currentTarget,z={originalEvent:E,delta:L};ct(L,g.swipeDirection,g.swipeThreshold)?ae(Vn,x,z,{discrete:!0}):ae($n,h,z,{discrete:!0}),G.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Kn=t=>{const{__scopeToast:r,children:s,...o}=t,n=he(oe,r),[i,a]=c.useState(!1),[d,u]=c.useState(!1);return qn(()=>a(!0)),c.useEffect(()=>{const f=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(f)},[]),d?null:e.jsx(A.Portal,{asChild:!0,children:e.jsx(dt.VisuallyHidden,{...o,children:i&&e.jsxs(e.Fragment,{children:[n.label," ",s]})})})},zn="ToastTitle",xr=c.forwardRef((t,r)=>{const{__scopeToast:s,...o}=t;return e.jsx(p.Primitive.div,{...o,ref:r})});xr.displayName=zn;var Gn="ToastDescription",hr=c.forwardRef((t,r)=>{const{__scopeToast:s,...o}=t;return e.jsx(p.Primitive.div,{...o,ref:r})});hr.displayName=Gn;var gr="ToastAction",vr=c.forwardRef((t,r)=>{const{altText:s,...o}=t;return s.trim()?e.jsx(yr,{altText:s,asChild:!0,children:e.jsx(Ze,{...o,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${gr}\`. Expected non-empty \`string\`.`),null)});vr.displayName=gr;var br="ToastClose",Ze=c.forwardRef((t,r)=>{const{__scopeToast:s,...o}=t,n=Bn(br,s);return e.jsx(yr,{asChild:!0,children:e.jsx(p.Primitive.button,{type:"button",...o,ref:r,onClick:p.composeEventHandlers(t.onClick,n.onClose)})})});Ze.displayName=br;var yr=c.forwardRef((t,r)=>{const{__scopeToast:s,altText:o,...n}=t;return e.jsx(p.Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...n,ref:r})});function wr(t){const r=[];return Array.from(t.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&r.push(o.textContent),Wn(o)){const n=o.ariaHidden||o.hidden||o.style.display==="none",i=o.dataset.radixToastAnnounceExclude==="";if(!n)if(i){const a=o.dataset.radixToastAnnounceAlt;a&&r.push(a)}else r.push(...wr(o))}}),r}function ae(t,r,s,{discrete:o}){const n=s.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:s});r&&n.addEventListener(t,r,{once:!0}),o?p.dispatchDiscreteCustomEvent(n,i):n.dispatchEvent(i)}var ct=(t,r,s=0)=>{const o=Math.abs(t.x),n=Math.abs(t.y),i=o>n;return r==="left"||r==="right"?i&&o>s:!i&&n>s};function qn(t=()=>{}){const r=p.useCallbackRef(t);p.useLayoutEffect2(()=>{let s=0,o=0;return s=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(o)}},[r])}function Wn(t){return t.nodeType===t.ELEMENT_NODE}function Un(t){const r=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)r.push(s.currentNode);return r}function be(t){const r=document.activeElement;return t.some(s=>s===r?!0:(s.focus(),document.activeElement!==r))}var Yn=dr,jr=fr,Nr=pr,Sr=xr,Cr=hr,Tr=vr,Rr=Ze;const Er=Yn,Qe=c.forwardRef(({className:t,...r},s)=>e.jsx(jr,{ref:s,className:y.cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...r}));Qe.displayName=jr.displayName;const Xn=p.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-success bg-success text-success-foreground",warning:"border-warning bg-warning text-warning-foreground"}},defaultVariants:{variant:"default"}}),et=c.forwardRef(({className:t,variant:r,...s},o)=>e.jsx(Nr,{ref:o,className:y.cn(Xn({variant:r}),t),...s}));et.displayName=Nr.displayName;const Ar=c.forwardRef(({className:t,...r},s)=>e.jsx(Tr,{ref:s,className:y.cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...r}));Ar.displayName=Tr.displayName;const tt=c.forwardRef(({className:t,...r},s)=>e.jsx(Rr,{ref:s,className:y.cn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...r,children:e.jsx(p.X,{className:"h-4 w-4"})}));tt.displayName=Rr.displayName;const st=c.forwardRef(({className:t,...r},s)=>e.jsx(Sr,{ref:s,className:y.cn("text-sm font-semibold",t),...r}));st.displayName=Sr.displayName;const rt=c.forwardRef(({className:t,...r},s)=>e.jsx(Cr,{ref:s,className:y.cn("text-sm opacity-90",t),...r}));rt.displayName=Cr.displayName;function Jn(){const{toasts:t}=no.useToast();return e.jsxs(Er,{children:[t.map(function({id:r,title:s,description:o,action:n,...i}){return e.jsxs(et,{...i,children:[e.jsxs("div",{className:"grid gap-1",children:[s&&e.jsx(st,{children:s}),o&&e.jsx(rt,{children:o})]}),n,e.jsx(tt,{})]},r)}),e.jsx(Qe,{})]})}function Zn(t){return T.constructFrom(t,Date.now())}function Qn(t){return r=>{const s=Math.trunc,o=s(r);return o===0?0:o}}function ea(t,r){return+T.toDate(t)-+T.toDate(r)}function Dr(t,r,s){const o=ea(t,r)/T.millisecondsInMinute;return Qn()(o)}function ot(t){const r=T.toDate(t);return r.setHours(23,59,59,999),r}function Pr(t){return T.toDate(t).getHours()}function kr(t){return T.toDate(t).getMinutes()}function ge(t){return P.isSameDay(t,Zn(t))}function nt(t,r){const s=+T.toDate(t),[o,n]=[+T.toDate(r.start),+T.toDate(r.end)].sort((i,a)=>i-a);return s>=o&&s<=n}function ce(t,r){const s=T.toDate(t);return s.setHours(r),s}function _r(t,r){const s=T.toDate(t);return s.setMinutes(r),s}function Ir(t,r){return P.addMonths(t,-1)}function ta(t,r){return P.addWeeks(t,-1)}const sa={default:{icon:X.Info,iconColor:"text-foreground",buttonVariant:"default"},destructive:{icon:X.TriangleAlert,iconColor:"text-destructive",buttonVariant:"destructive"},warning:{icon:X.CircleAlert,iconColor:"text-warning",buttonVariant:"default"},info:{icon:X.Info,iconColor:"text-info",buttonVariant:"default"},success:{icon:X.CircleCheckBig,iconColor:"text-success",buttonVariant:"default"}},Mr=c.forwardRef(({open:t,onOpenChange:r,title:s,description:o,confirmLabel:n="Confirm",cancelLabel:i="Cancel",onConfirm:a,onCancel:d,variant:u="default",loading:f=!1,confirmationText:m,confirmationPlaceholder:l="Type to confirm"},h)=>{const[x,v]=c.useState(""),g=sa[u],b=g.icon,j=m&&x!==m||f,w=()=>{a(),v("")},N=()=>{d==null||d(),v(""),r(!1)};return e.jsx(ts,{open:t,onOpenChange:r,children:e.jsxs(Le,{ref:h,children:[e.jsx(Be,{children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:y.cn("flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full",u==="destructive"&&"bg-destructive/10",u==="warning"&&"bg-warning/10",u==="info"&&"bg-info/10",u==="success"&&"bg-success/10",u==="default"&&"bg-muted"),children:e.jsx(b,{className:y.cn("h-5 w-5",g.iconColor)})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(Ke,{children:s}),e.jsx(ze,{className:"mt-2",children:o})]})]})}),m&&e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsxs(P.Label,{htmlFor:"confirmation-input",className:"text-sm",children:["Type ",e.jsx("span",{className:"font-mono font-bold",children:m})," to confirm"]}),e.jsx(A.Input,{id:"confirmation-input",value:x,onChange:S=>v(S.target.value),placeholder:l,autoComplete:"off"})]}),e.jsxs(He,{className:"mt-4",children:[e.jsx(qe,{onClick:N,disabled:f,children:i}),e.jsx(Ge,{onClick:w,disabled:j,className:y.cn(u==="destructive"&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),children:f?"Loading...":n})]})]})})});Mr.displayName="ConfirmationDialog";const ye={sm:"h-6 w-6 text-[10px]",md:"h-8 w-8 text-xs",lg:"h-10 w-10 text-sm"},Or=c.forwardRef(({className:t,avatars:r,max:s=4,size:o="md",showTooltip:n=!0,onMoreClick:i,...a},d)=>{const u=r.slice(0,s),f=r.length-s,m=f>0,l=x=>x.split(" ").map(v=>v[0]).join("").toUpperCase().slice(0,2),h=(x,v)=>{const g=e.jsxs(Q.Avatar,{className:y.cn(ye[o],"border-2 border-background",v>0&&"-ml-2"),children:[x.image&&e.jsx(Q.AvatarImage,{src:x.image,alt:x.name}),e.jsx(Q.AvatarFallback,{className:y.cn(ye[o],"font-medium"),children:l(x.name)})]},v);return x.href?e.jsx("a",{href:x.href,className:"focus:outline-none focus:ring-2 focus:ring-ring rounded-full",children:n?e.jsxs(O.Tooltip,{children:[e.jsx(O.TooltipTrigger,{asChild:!0,children:g}),e.jsx(O.TooltipContent,{children:e.jsx("p",{children:x.name})})]}):g},v):n?e.jsxs(O.Tooltip,{children:[e.jsx(O.TooltipTrigger,{asChild:!0,children:g}),e.jsx(O.TooltipContent,{children:e.jsx("p",{children:x.name})})]},v):g};return e.jsx(O.TooltipProvider,{children:e.jsxs("div",{ref:d,className:y.cn("flex items-center",t),...a,children:[u.map((x,v)=>h(x,v)),m&&e.jsxs(O.Tooltip,{children:[e.jsx(O.TooltipTrigger,{asChild:!0,children:e.jsxs("button",{onClick:i,className:y.cn(ye[o],"relative -ml-2 flex items-center justify-center rounded-full border-2 border-background bg-muted font-medium text-muted-foreground hover:bg-muted/80",i&&"cursor-pointer"),children:["+",f]})}),e.jsx(O.TooltipContent,{children:e.jsx("div",{className:"space-y-1",children:r.slice(s).map((x,v)=>e.jsx("p",{children:x.name},v))})})]})]})})});Or.displayName="AvatarGroup";const ra={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16"},oa={sm:"h-2.5 w-2.5",md:"h-3 w-3",lg:"h-3.5 w-3.5",xl:"h-4 w-4"},na={online:"bg-success",offline:"bg-muted-foreground",away:"bg-warning",busy:"bg-destructive",dnd:"bg-destructive"},aa={"bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0","top-right":"top-0 right-0","top-left":"top-0 left-0"},Fr=c.forwardRef(({className:t,name:r,image:s,status:o="offline",showStatus:n=!0,size:i="md",statusPosition:a="bottom-right",...d},u)=>{const f=m=>m.split(" ").map(l=>l[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{ref:u,className:y.cn("relative inline-block",t),...d,children:[e.jsxs(Q.Avatar,{className:ra[i],children:[s&&e.jsx(Q.AvatarImage,{src:s,alt:r}),e.jsx(Q.AvatarFallback,{children:f(r)})]}),n&&e.jsx("span",{className:y.cn("absolute block rounded-full border-2 border-background",oa[i],na[o],aa[a]),title:o.charAt(0).toUpperCase()+o.slice(1)})]})});Fr.displayName="AvatarWithStatus";const $r=c.forwardRef(({className:t,steps:r,currentStep:s,orientation:o="horizontal",onStepClick:n,allowClickPast:i=!1,showStepNumber:a=!0,...d},u)=>{const f=m=>{n&&(i||m<=s)&&n(m)};return e.jsx("div",{ref:u,className:y.cn("flex",o==="horizontal"?"flex-row items-center":"flex-col",t),...d,children:r.map((m,l)=>{const h=l<s,x=l===s,v=n&&(i||l<=s);return e.jsxs(c.Fragment,{children:[e.jsxs("div",{className:y.cn("flex",o==="horizontal"?"flex-col items-center":"flex-row items-start gap-4",v&&"cursor-pointer"),onClick:()=>f(l),children:[e.jsx("div",{className:y.cn("flex h-10 w-10 items-center justify-center rounded-full border-2 text-sm font-medium transition-colors",h&&"border-primary bg-primary text-primary-foreground",x&&"border-primary text-primary",!h&&!x&&"border-muted-foreground/30 text-muted-foreground"),children:h?e.jsx(p.Check,{className:"h-5 w-5"}):m.icon?m.icon:a?l+1:null}),e.jsxs("div",{className:y.cn("text-center",o==="horizontal"?"mt-2":"flex-1",o==="vertical"&&"text-left"),children:[e.jsxs("p",{className:y.cn("text-sm font-medium",x&&"text-primary",!h&&!x&&"text-muted-foreground"),children:[m.title,m.optional&&e.jsx("span",{className:"ml-1 text-xs font-normal text-muted-foreground",children:"(Optional)"})]}),m.description&&e.jsx("p",{className:"text-xs text-muted-foreground",children:m.description})]})]}),l<r.length-1&&e.jsx("div",{className:y.cn("bg-muted-foreground/30",o==="horizontal"?"mx-4 h-0.5 flex-1":"ml-5 mt-2 mb-2 w-0.5 min-h-8",l<s&&"bg-primary")})]},m.id)})})});$r.displayName="Stepper";const Vr=c.forwardRef(({className:t,value:r,onChange:s,minDate:o,maxDate:n,disabledDates:i=[],highlightedDates:a=[],...d},u)=>{const[f,m]=c.useState(r||new Date),l=P.startOfMonth(f),h=P.endOfMonth(l),x=T.startOfWeek(l),v=P.endOfWeek(h),g=[];let b=x;for(;b<=v;)g.push(b),b=P.addDays(b,1);const j=D=>o&&D<o||n&&D>n?!0:i.some(F=>P.isSameDay(F,D)),w=D=>a.some(F=>P.isSameDay(F,D)),N=()=>m(Ir(f)),S=()=>m(P.addMonths(f,1)),R=D=>{j(D)||s==null||s(D)},_=["Su","Mo","Tu","We","Th","Fr","Sa"];return e.jsxs("div",{ref:u,className:y.cn("w-64 rounded-lg border bg-card p-3",t),...d,children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx(p.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:N,children:e.jsx(P.ChevronLeft,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-sm font-medium",children:T.format(f,"MMMM yyyy")}),e.jsx(p.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:S,children:e.jsx(ut.ChevronRight,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"mb-1 grid grid-cols-7 gap-0",children:_.map(D=>e.jsx("div",{className:"flex h-8 items-center justify-center text-xs font-medium text-muted-foreground",children:D},D))}),e.jsx("div",{className:"grid grid-cols-7 gap-0",children:g.map((D,F)=>{const I=P.isSameMonth(D,f),M=r&&P.isSameDay(D,r),k=ge(D),$=j(D),B=w(D);return e.jsxs("button",{onClick:()=>R(D),disabled:$,className:y.cn("relative flex h-8 w-8 items-center justify-center rounded-md text-sm transition-colors",!I&&"text-muted-foreground/40",I&&"hover:bg-accent",k&&"font-bold",k&&!M&&"text-primary",M&&"bg-primary text-primary-foreground hover:bg-primary",$&&"cursor-not-allowed opacity-50",B&&!M&&"bg-accent"),children:[T.format(D,"d"),B&&!M&&e.jsx("span",{className:"absolute bottom-1 h-1 w-1 rounded-full bg-primary"})]},F)})})]})});Vr.displayName="MiniCalendar";const Lr=c.forwardRef(({className:t,title:r,description:s,children:o,footer:n,variant:i="default",...a},d)=>i==="card"?e.jsxs(se.Card,{ref:d,className:t,...a,children:[e.jsxs(se.CardHeader,{children:[e.jsx(se.CardTitle,{className:"text-lg",children:r}),s&&e.jsx(se.CardDescription,{children:s})]}),e.jsx(se.CardContent,{className:"space-y-4",children:o}),n&&e.jsxs(e.Fragment,{children:[e.jsx(O.Separator,{}),e.jsx("div",{className:"flex items-center justify-end gap-2 p-4",children:n})]})]}):e.jsxs("div",{ref:d,className:y.cn("space-y-4",t),...a,children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:r}),s&&e.jsx("p",{className:"text-sm text-muted-foreground",children:s})]}),e.jsx(O.Separator,{}),e.jsx("div",{className:"space-y-4",children:o}),n&&e.jsxs(e.Fragment,{children:[e.jsx(O.Separator,{}),e.jsx("div",{className:"flex items-center justify-end gap-2",children:n})]})]}));Lr.displayName="SettingsSection";const Br=c.forwardRef(({className:t,label:r,description:s,children:o,htmlFor:n,...i},a)=>e.jsxs("div",{ref:a,className:y.cn("flex items-start justify-between gap-4",t),...i,children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:n,className:"text-sm font-medium",children:r}),s&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s})]}),e.jsx("div",{className:"flex-shrink-0",children:o})]}));Br.displayName="SettingsRow";const ia=[{format:"csv",label:"Export as CSV",icon:e.jsx(X.FileText,{className:"h-4 w-4"})},{format:"excel",label:"Export as Excel",icon:e.jsx(Ro,{className:"h-4 w-4"})},{format:"pdf",label:"Export as PDF",icon:e.jsx(X.FileText,{className:"h-4 w-4"})},{format:"json",label:"Export as JSON",icon:e.jsx(To,{className:"h-4 w-4"})}],Hr=c.forwardRef(({className:t,onExport:r,options:s=ia,loading:o=!1,defaultFormat:n="csv",showDropdown:i=!0,variant:a="outline",size:d="sm",children:u,...f},m)=>{const[l,h]=c.useState(!1),x=async g=>{h(!0);try{await r(g)}finally{h(!1)}},v=o||l;return!i||s.length===1?e.jsxs(p.Button,{ref:m,variant:a,size:d,className:y.cn("gap-2",t),onClick:()=>{var g;return x(((g=s[0])==null?void 0:g.format)||n)},disabled:v,...f,children:[v?e.jsx(re.LoaderCircle,{className:"h-4 w-4 animate-spin"}):e.jsx(it,{className:"h-4 w-4"}),u||"Export"]}):e.jsxs(A.DropdownMenu,{children:[e.jsx(A.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(p.Button,{ref:m,variant:a,size:d,className:y.cn("gap-2",t),disabled:v,...f,children:[v?e.jsx(re.LoaderCircle,{className:"h-4 w-4 animate-spin"}):e.jsx(it,{className:"h-4 w-4"}),u||"Export",e.jsx(Ee.ChevronDown,{className:"h-3 w-3 opacity-50"})]})}),e.jsx(A.DropdownMenuContent,{align:"end",children:s.map(g=>e.jsxs(A.DropdownMenuItem,{onClick:()=>x(g.format),disabled:g.disabled,className:"gap-2",children:[g.icon,g.label]},g.format))})]})});Hr.displayName="ExportButton";const Kr=c.forwardRef(({className:t,...r},s)=>e.jsxs("div",{ref:s,className:y.cn("space-y-3 rounded-lg border p-4",t),...r,children:[e.jsx(C.Skeleton,{className:"h-4 w-1/2"}),e.jsx(C.Skeleton,{className:"h-8 w-3/4"}),e.jsx(C.Skeleton,{className:"h-3 w-full"}),e.jsx(C.Skeleton,{className:"h-3 w-2/3"})]}));Kr.displayName="SkeletonCard";const lt=()=>e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[e.jsx(C.Skeleton,{className:"h-4 w-1/2"}),e.jsx(C.Skeleton,{className:"h-8 w-3/4"}),e.jsx(C.Skeleton,{className:"h-3 w-full"}),e.jsx(C.Skeleton,{className:"h-3 w-2/3"})]}),zr=c.forwardRef(({className:t,rows:r=5,columns:s=4,...o},n)=>e.jsxs("div",{ref:n,className:y.cn("space-y-2",t),...o,children:[e.jsx("div",{className:"flex gap-4 border-b pb-2",children:Array.from({length:s}).map((i,a)=>e.jsx(C.Skeleton,{className:"h-4 flex-1"},a))}),Array.from({length:r}).map((i,a)=>e.jsx("div",{className:"flex gap-4 py-2",children:Array.from({length:s}).map((d,u)=>e.jsx(C.Skeleton,{className:"h-4 flex-1"},u))},a))]}));zr.displayName="SkeletonTable";const ca=({rows:t=5})=>e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-4 border-b pb-2",children:[e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"})]}),Array.from({length:t}).map((r,s)=>e.jsxs("div",{className:"flex gap-4 py-2",children:[e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"}),e.jsx(C.Skeleton,{className:"h-4 w-1/4"})]},s))]}),Gr=c.forwardRef(({className:t,items:r=3,...s},o)=>e.jsx("div",{ref:o,className:y.cn("space-y-3",t),...s,children:Array.from({length:r}).map((n,i)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C.Skeleton,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(C.Skeleton,{className:"h-4 w-1/3"}),e.jsx(C.Skeleton,{className:"h-3 w-2/3"})]})]},i))}));Gr.displayName="SkeletonList";const la=({items:t=3})=>e.jsx("div",{className:"space-y-3",children:Array.from({length:t}).map((r,s)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(C.Skeleton,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(C.Skeleton,{className:"h-4 w-1/3"}),e.jsx(C.Skeleton,{className:"h-3 w-2/3"})]})]},s))}),da=()=>e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(C.Skeleton,{className:"h-4 w-20"}),e.jsx(C.Skeleton,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(C.Skeleton,{className:"h-4 w-24"}),e.jsx(C.Skeleton,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(C.Skeleton,{className:"h-4 w-16"}),e.jsx(C.Skeleton,{className:"h-24 w-full"})]}),e.jsx(C.Skeleton,{className:"h-10 w-24"})]}),qr=c.forwardRef(({className:t,...r},s)=>e.jsxs("div",{ref:s,className:y.cn("flex items-start gap-4",t),...r,children:[e.jsx(C.Skeleton,{className:"h-20 w-20 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(C.Skeleton,{className:"h-6 w-48"}),e.jsx(C.Skeleton,{className:"h-4 w-32"}),e.jsx(C.Skeleton,{className:"h-3 w-64"})]})]}));qr.displayName="SkeletonProfile";const ua=()=>e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(C.Skeleton,{className:"h-20 w-20 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(C.Skeleton,{className:"h-6 w-48"}),e.jsx(C.Skeleton,{className:"h-4 w-32"}),e.jsx(C.Skeleton,{className:"h-3 w-64"})]})]}),fa=({count:t=4})=>e.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:Array.from({length:t}).map((r,s)=>e.jsxs("div",{className:"space-y-2 rounded-lg border p-4",children:[e.jsx(C.Skeleton,{className:"h-3 w-20"}),e.jsx(C.Skeleton,{className:"h-8 w-24"}),e.jsx(C.Skeleton,{className:"h-3 w-16"})]},s))}),Wr=c.forwardRef(({className:t,lines:r=3,...s},o)=>e.jsx("div",{ref:o,className:y.cn("space-y-2",t),...s,children:Array.from({length:r}).map((n,i)=>e.jsx(C.Skeleton,{className:y.cn("h-4",i===r-1?"w-3/4":"w-full")},i))}));Wr.displayName="SkeletonText";const Ur=c.forwardRef(({className:t,variant:r="card",count:s=1,...o},n)=>{const i=()=>{switch(r){case"card":return Array.from({length:s}).map((a,d)=>e.jsx(lt,{},d));case"table":return e.jsx(ca,{rows:s});case"list":return e.jsx(la,{items:s});case"form":return e.jsx(da,{});case"profile":return e.jsx(ua,{});case"stats":return e.jsx(fa,{count:s});default:return e.jsx(lt,{})}};return e.jsx("div",{ref:n,className:y.cn(r==="card"&&s>1&&"grid gap-4 md:grid-cols-2 lg:grid-cols-3",t),...o,children:i()})});Ur.displayName="SkeletonLoader";const ma={beta:{label:"Beta",className:"bg-info/20 text-info hover:bg-info/30 border-info/30",defaultTooltip:"This feature is in beta and may change"},new:{label:"New",className:"bg-success/20 text-success hover:bg-success/30 border-success/30",defaultTooltip:"This feature was recently added"},experimental:{label:"Experimental",className:"bg-warning/20 text-warning hover:bg-warning/30 border-warning/30",defaultTooltip:"This feature is experimental and may not work as expected"},"coming-soon":{label:"Coming Soon",className:"bg-muted text-muted-foreground hover:bg-muted/80 border-muted",defaultTooltip:"This feature is coming soon"},deprecated:{label:"Deprecated",className:"bg-destructive/20 text-destructive hover:bg-destructive/30 border-destructive/30",defaultTooltip:"This feature is deprecated and will be removed"}},Yr=c.forwardRef(({className:t,variant:r="beta",tooltip:s,showTooltip:o=!0,children:n,...i},a)=>{const d=ma[r],u=s||d.defaultTooltip,f=e.jsx("span",{ref:a,children:e.jsx(p.Badge,{className:y.cn("text-xs font-medium border",d.className,t),...i,children:n||d.label})});return o?e.jsx(O.TooltipProvider,{children:e.jsxs(O.Tooltip,{children:[e.jsx(O.TooltipTrigger,{asChild:!0,children:f}),e.jsx(O.TooltipContent,{children:e.jsx("p",{children:u})})]})}):f});Yr.displayName="BetaBadge";const Xr={default:{bg:"bg-primary/10",text:"text-primary",border:"border-primary"},work:{bg:"bg-blue-100",text:"text-blue-700",border:"border-blue-500"},personal:{bg:"bg-green-100",text:"text-green-700",border:"border-green-500"},meeting:{bg:"bg-purple-100",text:"text-purple-700",border:"border-purple-500"},reminder:{bg:"bg-yellow-100",text:"text-yellow-700",border:"border-yellow-500"},holiday:{bg:"bg-red-100",text:"text-red-700",border:"border-red-500"}},V=t=>typeof t=="string"?T.parseISO(t):t,Jr=({date:t,view:r,onViewChange:s,onNavigate:o,showViewSelector:n=!0,showNavigation:i=!0,showToday:a=!0})=>{const{t:d,formatDate:u}=T.useFormatters(),f=()=>{switch(r){case"month":return u(t,"MMMM yyyy");case"week":const m=T.startOfWeek(t),l=P.endOfWeek(t);return m.getMonth()===l.getMonth()?`${u(m,"MMM d")} - ${u(l,"d, yyyy")}`:`${u(m,"MMM d")} - ${u(l,"MMM d, yyyy")}`;case"day":return u(t,"EEEE, MMMM d, yyyy");case"agenda":return u(t,"MMMM yyyy");default:return u(t,"MMMM yyyy")}};return e.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[i&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p.Button,{variant:"outline",size:"icon",onClick:()=>o("prev"),className:"h-8 w-8",children:e.jsx(P.ChevronLeft,{className:"h-4 w-4"})}),e.jsx(p.Button,{variant:"outline",size:"icon",onClick:()=>o("next"),className:"h-8 w-8",children:e.jsx(ut.ChevronRight,{className:"h-4 w-4"})})]}),a&&e.jsx(p.Button,{variant:"outline",size:"sm",onClick:()=>o("today"),children:d("calendar.today")}),e.jsx("h2",{className:"text-lg font-semibold",children:f()})]}),n&&e.jsxs(Y.Select,{value:r,onValueChange:m=>s(m),children:[e.jsx(Y.SelectTrigger,{className:"w-32",children:e.jsx(Y.SelectValue,{})}),e.jsxs(Y.SelectContent,{children:[e.jsx(Y.SelectItem,{value:"month",children:d("calendar.month")}),e.jsx(Y.SelectItem,{value:"week",children:d("calendar.week")}),e.jsx(Y.SelectItem,{value:"day",children:d("calendar.day")}),e.jsx(Y.SelectItem,{value:"agenda",children:d("calendar.agenda")})]})]})]})},Z=({event:t,compact:r=!1,onClick:s})=>{const{t:o,formatDate:n}=T.useFormatters(),i=t.category||"default",a=Xr[i],d=V(t.start),u=V(t.end);return r?e.jsxs("button",{onClick:()=>s==null?void 0:s(t),className:y.cn("w-full truncate rounded px-1 py-0.5 text-left text-xs",a.bg,a.text,"hover:opacity-80 transition-opacity"),children:[!t.allDay&&e.jsxs("span",{className:"font-medium",children:[T.format(d,"h:mm")," "]}),t.title]}):e.jsxs(re.Popover,{children:[e.jsx(re.PopoverTrigger,{asChild:!0,children:e.jsxs("button",{className:y.cn("w-full truncate rounded-md px-2 py-1 text-left text-sm border-l-2",a.bg,a.text,a.border,"hover:opacity-80 transition-opacity"),children:[e.jsx("div",{className:"font-medium truncate",children:t.title}),!t.allDay&&e.jsxs("div",{className:"text-xs opacity-75",children:[T.format(d,"h:mm a")," - ",T.format(u,"h:mm a")]})]})}),e.jsx(re.PopoverContent,{className:"w-80",align:"start",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("h3",{className:"font-semibold text-lg",children:t.title}),e.jsx(p.Badge,{variant:"secondary",className:y.cn("capitalize",a.bg,a.text),children:i})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(P.Clock,{className:"h-4 w-4"}),t.allDay?e.jsx("span",{children:o("calendar.allDay")}):e.jsxs("span",{children:[n(d,"MMM d, h:mm a")," - ",T.format(u,"h:mm a")]})]}),t.location&&e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(X.MapPin,{className:"h-4 w-4"}),e.jsx("span",{children:t.location})]}),t.description&&e.jsx("p",{className:"text-muted-foreground pt-2",children:t.description})]}),e.jsx("div",{className:"flex gap-2 pt-2",children:e.jsx(p.Button,{size:"sm",className:"flex-1",onClick:()=>s==null?void 0:s(t),children:o("calendar.viewDetails")})})]})})]})},Zr=({date:t,events:r,onEventClick:s,onDateClick:o})=>{const{t:n,formatDate:i}=T.useFormatters(),a=P.startOfMonth(t),d=P.endOfMonth(a),u=T.startOfWeek(a),f=P.endOfWeek(d),m=[];let l=u;for(;l<=f;)m.push(l),l=P.addDays(l,1);const h=v=>r.filter(g=>{const b=T.startOfDay(V(g.start)),j=ot(V(g.end));return nt(v,{start:b,end:j})||P.isSameDay(b,v)}),x=c.useMemo(()=>[0,1,2,3,4,5,6].map(v=>{const g=new Date(2024,0,v);return i(g,"EEE")}),[i]);return e.jsxs("div",{className:"flex-1 overflow-auto",children:[e.jsx("div",{className:"grid grid-cols-7 border-b",children:x.map((v,g)=>e.jsx("div",{className:"border-r last:border-r-0 px-2 py-2 text-center text-sm font-medium text-muted-foreground",children:v},g))}),e.jsx("div",{className:"grid grid-cols-7 flex-1",children:m.map((v,g)=>{const b=P.isSameMonth(v,t),j=ge(v),w=h(v);return e.jsxs("div",{className:y.cn("min-h-[100px] border-r border-b last:border-r-0 p-1",!b&&"bg-muted/30"),onClick:()=>o==null?void 0:o(v),children:[e.jsx("div",{className:"flex items-center justify-between mb-1",children:e.jsx("span",{className:y.cn("flex h-6 w-6 items-center justify-center rounded-full text-sm",j&&"bg-primary text-primary-foreground font-bold",!b&&"text-muted-foreground"),children:T.format(v,"d")})}),e.jsxs("div",{className:"space-y-0.5",children:[w.slice(0,3).map(N=>e.jsx(Z,{event:N,compact:!0,onClick:s},N.id)),w.length>3&&e.jsx("div",{className:"text-xs text-muted-foreground px-1",children:n("calendar.more",{count:w.length-3})})]})]},g)})})]})},Qr=({date:t,events:r,onEventClick:s,onDateClick:o})=>{const{t:n,formatDate:i}=T.useFormatters(),a=T.startOfWeek(t),d=Array.from({length:24},(l,h)=>h),u=Array.from({length:7},(l,h)=>P.addDays(a,h)),f=(l,h)=>r.filter(x=>{if(x.allDay)return!1;const v=V(x.start);return P.isSameDay(v,l)&&Pr(v)===h}),m=l=>r.filter(h=>{if(!h.allDay)return!1;const x=T.startOfDay(V(h.start)),v=ot(V(h.end));return nt(l,{start:x,end:v})||P.isSameDay(x,l)});return e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex border-b",children:[e.jsx("div",{className:"w-16 flex-shrink-0"}),u.map(l=>e.jsxs("div",{className:"flex-1 border-l px-2 py-2 text-center",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:i(l,"EEE")}),e.jsx("div",{className:y.cn("text-lg font-semibold",ge(l)&&"text-primary"),children:T.format(l,"d")})]},l.toISOString()))]}),e.jsxs("div",{className:"flex border-b",children:[e.jsx("div",{className:"w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground",children:n("calendar.allDay")}),u.map(l=>{const h=m(l);return e.jsx("div",{className:"flex-1 border-l px-1 py-1 min-h-[40px]",children:h.map(x=>e.jsx(Z,{event:x,compact:!0,onClick:s},x.id))},l.toISOString())})]}),e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsx("div",{className:"relative",children:d.map(l=>e.jsxs("div",{className:"flex h-12 border-b",children:[e.jsx("div",{className:"w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground text-right",children:T.format(ce(new Date,l),"h a")}),u.map(h=>{const x=f(h,l);return e.jsx("div",{className:"flex-1 border-l relative",onClick:()=>o==null?void 0:o(ce(_r(h,0),l)),children:x.map(v=>{const g=V(v.start),b=V(v.end),j=Dr(b,g),w=kr(g)/60*100,N=Math.max(j/60*100,25);return e.jsx("div",{className:"absolute left-0 right-0 mx-0.5 overflow-hidden",style:{top:`${w}%`,height:`${N}%`,minHeight:"20px"},children:e.jsx(Z,{event:v,compact:!0,onClick:s})},v.id)})},h.toISOString())})]},l))})})]})},eo=({date:t,events:r,onEventClick:s,onDateClick:o})=>{const{t:n}=T.useFormatters(),i=Array.from({length:24},(u,f)=>f),a=u=>r.filter(f=>{if(f.allDay)return!1;const m=V(f.start);return P.isSameDay(m,t)&&Pr(m)===u}),d=r.filter(u=>{if(!u.allDay)return!1;const f=T.startOfDay(V(u.start)),m=ot(V(u.end));return nt(t,{start:f,end:m})||P.isSameDay(f,t)});return e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[d.length>0&&e.jsxs("div",{className:"border-b p-2 space-y-1",children:[e.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:n("calendar.allDay")}),d.map(u=>e.jsx(Z,{event:u,onClick:s},u.id))]}),e.jsx("div",{className:"flex-1 overflow-auto",children:i.map(u=>{const f=a(u);return e.jsxs("div",{className:"flex h-16 border-b hover:bg-muted/50 transition-colors",onClick:()=>o==null?void 0:o(ce(_r(t,0),u)),children:[e.jsx("div",{className:"w-20 flex-shrink-0 px-3 py-1 text-sm text-muted-foreground text-right border-r",children:T.format(ce(new Date,u),"h:mm a")}),e.jsx("div",{className:"flex-1 px-2 py-1 relative",children:f.map(m=>{const l=V(m.start),h=V(m.end),x=Dr(h,l),v=Math.max(x/60*64,32);return e.jsx("div",{className:"absolute left-2 right-2",style:{top:`${kr(l)/60*100}%`,height:`${v}px`},children:e.jsx(Z,{event:m,onClick:s})},m.id)})})]},u)})})]})},to=({date:t,events:r,onEventClick:s})=>{const{t:o,formatDate:n}=T.useFormatters(),i=P.startOfMonth(t),a=P.endOfMonth(t),u=r.filter(m=>{const l=V(m.start);return l>=i&&l<=a}).sort((m,l)=>V(m.start).getTime()-V(l.start).getTime()).reduce((m,l)=>{const h=T.format(V(l.start),"yyyy-MM-dd");return m[h]||(m[h]=[]),m[h].push(l),m},{}),f=Object.keys(u).sort();return f.length===0?e.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:o("calendar.noEvents")}):e.jsx("div",{className:"flex-1 overflow-auto p-4",children:e.jsx("div",{className:"space-y-6",children:f.map(m=>{const l=T.parseISO(m),h=u[m];return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsxs("div",{className:y.cn("flex h-12 w-12 flex-col items-center justify-center rounded-lg",ge(l)?"bg-primary text-primary-foreground":"bg-muted"),children:[e.jsx("span",{className:"text-xs font-medium uppercase",children:n(l,"EEE")}),e.jsx("span",{className:"text-lg font-bold",children:T.format(l,"d")})]}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:n(l,"EEEE")}),e.jsx("div",{className:"text-sm text-muted-foreground",children:n(l,"MMMM d, yyyy")})]})]}),e.jsx("div",{className:"space-y-2 pl-15",children:h.map(x=>e.jsx(Z,{event:x,onClick:s},x.id))})]},m)})})})},so=c.forwardRef(({className:t,events:r=[],view:s,defaultView:o="month",onViewChange:n,date:i,defaultDate:a,onDateChange:d,onEventClick:u,onDateClick:f,onEventCreate:m,showViewSelector:l=!0,showNavigation:h=!0,showToday:x=!0,...v},g)=>{const[b,j]=c.useState(o),[w,N]=c.useState(a||new Date),S=s??b,R=i??w,_=I=>{s===void 0&&j(I),n==null||n(I)},D=I=>{i===void 0&&N(I),d==null||d(I)},F=I=>{let M;if(I==="today")M=new Date;else{const k=I==="prev"?-1:1;switch(S){case"month":case"agenda":M=k>0?P.addMonths(R,1):Ir(R);break;case"week":M=k>0?P.addWeeks(R,1):ta(R);break;case"day":M=k>0?P.addDays(R,1):P.subDays(R,1);break;default:M=R}}D(M)};return e.jsxs("div",{ref:g,className:y.cn("flex flex-col h-full border rounded-lg bg-background",t),...v,children:[e.jsx(Jr,{date:R,view:S,onViewChange:_,onNavigate:F,showViewSelector:l,showNavigation:h,showToday:x}),S==="month"&&e.jsx(Zr,{date:R,events:r,onEventClick:u,onDateClick:f}),S==="week"&&e.jsx(Qr,{date:R,events:r,onEventClick:u,onDateClick:f}),S==="day"&&e.jsx(eo,{date:R,events:r,onEventClick:u,onDateClick:f}),S==="agenda"&&e.jsx(to,{date:R,events:r,onEventClick:u})]})});so.displayName="FullCalendar";exports.Accordion=Eo;exports.AccordionContent=kt;exports.AccordionItem=Dt;exports.AccordionTrigger=Pt;exports.AgendaView=to;exports.Alert=_t;exports.AlertDescription=Mt;exports.AlertDialog=ts;exports.AlertDialogAction=Ge;exports.AlertDialogCancel=qe;exports.AlertDialogContent=Le;exports.AlertDialogDescription=ze;exports.AlertDialogFooter=He;exports.AlertDialogHeader=Be;exports.AlertDialogOverlay=Ve;exports.AlertDialogPortal=ss;exports.AlertDialogTitle=Ke;exports.AlertDialogTrigger=zo;exports.AlertTitle=It;exports.AvatarGroup=Or;exports.AvatarWithStatus=Fr;exports.BetaBadge=Yr;exports.ButtonWithBadge=as;exports.CalendarHeader=Jr;exports.Collapsible=Go;exports.CollapsibleContent=Wo;exports.CollapsibleTrigger=qo;exports.ConfirmationDialog=Mr;exports.DayView=eo;exports.EventItem=Z;exports.ExportButton=Hr;exports.FullCalendar=so;exports.IconButton=ns;exports.MiniCalendar=Vr;exports.MonthView=Zr;exports.RadioGroup=ws;exports.RadioGroupItem=js;exports.SettingsRow=Br;exports.SettingsSection=Lr;exports.SkeletonCard=Kr;exports.SkeletonList=Gr;exports.SkeletonLoader=Ur;exports.SkeletonProfile=qr;exports.SkeletonTable=zr;exports.SkeletonText=Wr;exports.Slider=$s;exports.SplitButton=rs;exports.Stepper=$r;exports.Switch=Gs;exports.Tabs=Pn;exports.TabsContent=ir;exports.TabsList=nr;exports.TabsTrigger=ar;exports.Textarea=cr;exports.Toast=et;exports.ToastAction=Ar;exports.ToastClose=tt;exports.ToastDescription=rt;exports.ToastProvider=Er;exports.ToastTitle=st;exports.ToastViewport=Qe;exports.Toaster=Jn;exports.WeekView=Qr;exports.categoryColors=Xr;exports.iconButtonVariants=os;
23
- //# sourceMappingURL=full-calendar-DjAvCfuE.cjs.map