@senitix/ui 0.4.0

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 (206) hide show
  1. package/dist/avatar-C0aVNCG9.cjs +2 -0
  2. package/dist/avatar-C0aVNCG9.cjs.map +1 -0
  3. package/dist/avatar-CN6wcrqY.js +288 -0
  4. package/dist/avatar-CN6wcrqY.js.map +1 -0
  5. package/dist/calendar-BFWc4IB7.js +1182 -0
  6. package/dist/calendar-BFWc4IB7.js.map +1 -0
  7. package/dist/calendar-BUm7YrNf.cjs +2 -0
  8. package/dist/calendar-BUm7YrNf.cjs.map +1 -0
  9. package/dist/calendar-ChJkFXXr.js +11 -0
  10. package/dist/calendar-ChJkFXXr.js.map +1 -0
  11. package/dist/calendar-SwL5isYC.cjs +2 -0
  12. package/dist/calendar-SwL5isYC.cjs.map +1 -0
  13. package/dist/card-K4fxyYwE.js +51 -0
  14. package/dist/card-K4fxyYwE.js.map +1 -0
  15. package/dist/card-tMkUxpmW.cjs +2 -0
  16. package/dist/card-tMkUxpmW.cjs.map +1 -0
  17. package/dist/checkbox-CpOq5hkT.js +289 -0
  18. package/dist/checkbox-CpOq5hkT.js.map +1 -0
  19. package/dist/checkbox-D7-LQyCl.cjs +2 -0
  20. package/dist/checkbox-D7-LQyCl.cjs.map +1 -0
  21. package/dist/chevron-down-DHdXqOqK.cjs +2 -0
  22. package/dist/chevron-down-DHdXqOqK.cjs.map +1 -0
  23. package/dist/chevron-down-DJ1_YIFu.js +8 -0
  24. package/dist/chevron-down-DJ1_YIFu.js.map +1 -0
  25. package/dist/chevron-right-B3bovvh0.js +8 -0
  26. package/dist/chevron-right-B3bovvh0.js.map +1 -0
  27. package/dist/chevron-right-Dvyd11q0.cjs +2 -0
  28. package/dist/chevron-right-Dvyd11q0.cjs.map +1 -0
  29. package/dist/chevron-up-B9fuiZhc.cjs +2 -0
  30. package/dist/chevron-up-B9fuiZhc.cjs.map +1 -0
  31. package/dist/chevron-up-CGtXOr51.js +6 -0
  32. package/dist/chevron-up-CGtXOr51.js.map +1 -0
  33. package/dist/components/charts/index.cjs.js +2 -0
  34. package/dist/components/charts/index.cjs.js.map +1 -0
  35. package/dist/components/charts/index.es.js +12 -0
  36. package/dist/components/charts/index.es.js.map +1 -0
  37. package/dist/components/data-display/index.cjs.js +2 -0
  38. package/dist/components/data-display/index.cjs.js.map +1 -0
  39. package/dist/components/data-display/index.es.js +25 -0
  40. package/dist/components/data-display/index.es.js.map +1 -0
  41. package/dist/components/dnd/index.cjs.js +2 -0
  42. package/dist/components/dnd/index.cjs.js.map +1 -0
  43. package/dist/components/dnd/index.es.js +9 -0
  44. package/dist/components/dnd/index.es.js.map +1 -0
  45. package/dist/components/feedback/index.cjs.js +2 -0
  46. package/dist/components/feedback/index.cjs.js.map +1 -0
  47. package/dist/components/feedback/index.es.js +16 -0
  48. package/dist/components/feedback/index.es.js.map +1 -0
  49. package/dist/components/forms/index.cjs.js +2 -0
  50. package/dist/components/forms/index.cjs.js.map +1 -0
  51. package/dist/components/forms/index.es.js +27 -0
  52. package/dist/components/forms/index.es.js.map +1 -0
  53. package/dist/components/layouts/index.cjs.js +2 -0
  54. package/dist/components/layouts/index.cjs.js.map +1 -0
  55. package/dist/components/layouts/index.es.js +25 -0
  56. package/dist/components/layouts/index.es.js.map +1 -0
  57. package/dist/components/navigation/index.cjs.js +2 -0
  58. package/dist/components/navigation/index.cjs.js.map +1 -0
  59. package/dist/components/navigation/index.es.js +42 -0
  60. package/dist/components/navigation/index.es.js.map +1 -0
  61. package/dist/components/ui/index.cjs.js +2 -0
  62. package/dist/components/ui/index.cjs.js.map +1 -0
  63. package/dist/components/ui/index.es.js +165 -0
  64. package/dist/components/ui/index.es.js.map +1 -0
  65. package/dist/createLucideIcon-BbeNo6vq.js +56 -0
  66. package/dist/createLucideIcon-BbeNo6vq.js.map +1 -0
  67. package/dist/createLucideIcon-i5GEhNMV.cjs +2 -0
  68. package/dist/createLucideIcon-i5GEhNMV.cjs.map +1 -0
  69. package/dist/ellipsis-BW2gWki8.cjs +2 -0
  70. package/dist/ellipsis-BW2gWki8.cjs.map +1 -0
  71. package/dist/ellipsis-CiKEaUNP.js +10 -0
  72. package/dist/ellipsis-CiKEaUNP.js.map +1 -0
  73. package/dist/file-V_hhCUhr.cjs +2 -0
  74. package/dist/file-V_hhCUhr.cjs.map +1 -0
  75. package/dist/file-wzTXnWqz.js +9 -0
  76. package/dist/file-wzTXnWqz.js.map +1 -0
  77. package/dist/filter-tags-DjUaNXHR.cjs +5 -0
  78. package/dist/filter-tags-DjUaNXHR.cjs.map +1 -0
  79. package/dist/filter-tags-i_I8qV1N.js +2658 -0
  80. package/dist/filter-tags-i_I8qV1N.js.map +1 -0
  81. package/dist/full-calendar-7ac2FFU6.js +3518 -0
  82. package/dist/full-calendar-7ac2FFU6.js.map +1 -0
  83. package/dist/full-calendar-Cpeh5xMP.cjs +8 -0
  84. package/dist/full-calendar-Cpeh5xMP.cjs.map +1 -0
  85. package/dist/global-search-UNXjoFlI.cjs +2 -0
  86. package/dist/global-search-UNXjoFlI.cjs.map +1 -0
  87. package/dist/global-search-h1rVbP2q.js +1188 -0
  88. package/dist/global-search-h1rVbP2q.js.map +1 -0
  89. package/dist/hooks/index.cjs.js +2 -0
  90. package/dist/hooks/index.cjs.js.map +1 -0
  91. package/dist/hooks/index.es.js +13 -0
  92. package/dist/hooks/index.es.js.map +1 -0
  93. package/dist/index-Co9o9StL.js +33 -0
  94. package/dist/index-Co9o9StL.js.map +1 -0
  95. package/dist/index-CwJPJKOE.js +2278 -0
  96. package/dist/index-CwJPJKOE.js.map +1 -0
  97. package/dist/index-CzVK9Zyb.cjs +6 -0
  98. package/dist/index-CzVK9Zyb.cjs.map +1 -0
  99. package/dist/index-l828OqQN.js +288 -0
  100. package/dist/index-l828OqQN.js.map +1 -0
  101. package/dist/index-lGzB9daF.cjs +2 -0
  102. package/dist/index-lGzB9daF.cjs.map +1 -0
  103. package/dist/index-lT9bLt9X.cjs +2 -0
  104. package/dist/index-lT9bLt9X.cjs.map +1 -0
  105. package/dist/index.cjs.js +2 -0
  106. package/dist/index.cjs.js.map +1 -0
  107. package/dist/index.es.js +332 -0
  108. package/dist/index.es.js.map +1 -0
  109. package/dist/input-CZrckPLk.cjs +42 -0
  110. package/dist/input-CZrckPLk.cjs.map +1 -0
  111. package/dist/input-D4AoiWxo.js +3629 -0
  112. package/dist/input-D4AoiWxo.js.map +1 -0
  113. package/dist/locale-provider-DHMwuneF.cjs +2 -0
  114. package/dist/locale-provider-DHMwuneF.cjs.map +1 -0
  115. package/dist/locale-provider-DanG6RRG.js +1012 -0
  116. package/dist/locale-provider-DanG6RRG.js.map +1 -0
  117. package/dist/locale-selector-Ppe0KTi-.cjs +2 -0
  118. package/dist/locale-selector-Ppe0KTi-.cjs.map +1 -0
  119. package/dist/locale-selector-xn2GpdP9.js +1745 -0
  120. package/dist/locale-selector-xn2GpdP9.js.map +1 -0
  121. package/dist/minus-BXBFZSZs.cjs +2 -0
  122. package/dist/minus-BXBFZSZs.cjs.map +1 -0
  123. package/dist/minus-DvlYtl96.js +6 -0
  124. package/dist/minus-DvlYtl96.js.map +1 -0
  125. package/dist/multi-container-C2UpSw5f.js +731 -0
  126. package/dist/multi-container-C2UpSw5f.js.map +1 -0
  127. package/dist/multi-container-DMKL8c9B.cjs +2 -0
  128. package/dist/multi-container-DMKL8c9B.cjs.map +1 -0
  129. package/dist/pipeline-By5_8AFg.cjs +2 -0
  130. package/dist/pipeline-By5_8AFg.cjs.map +1 -0
  131. package/dist/pipeline-D-QNSU0U.js +1036 -0
  132. package/dist/pipeline-D-QNSU0U.js.map +1 -0
  133. package/dist/plus-8wKRkVu-.cjs +2 -0
  134. package/dist/plus-8wKRkVu-.cjs.map +1 -0
  135. package/dist/plus-CJD68KQD.js +9 -0
  136. package/dist/plus-CJD68KQD.js.map +1 -0
  137. package/dist/popover-4V4sGe1U.js +765 -0
  138. package/dist/popover-4V4sGe1U.js.map +1 -0
  139. package/dist/popover-ivh-plLc.cjs +2 -0
  140. package/dist/popover-ivh-plLc.cjs.map +1 -0
  141. package/dist/progress-CFnuLqnS.cjs +7 -0
  142. package/dist/progress-CFnuLqnS.cjs.map +1 -0
  143. package/dist/progress-D5AsrWa6.js +222 -0
  144. package/dist/progress-D5AsrWa6.js.map +1 -0
  145. package/dist/providers/index.cjs.js +2 -0
  146. package/dist/providers/index.cjs.js.map +1 -0
  147. package/dist/providers/index.es.js +9 -0
  148. package/dist/providers/index.es.js.map +1 -0
  149. package/dist/scroll-area-DQeqDp3Y.js +952 -0
  150. package/dist/scroll-area-DQeqDp3Y.js.map +1 -0
  151. package/dist/scroll-area-DYOiJMXh.cjs +2 -0
  152. package/dist/scroll-area-DYOiJMXh.cjs.map +1 -0
  153. package/dist/select-C1rNBi6c.js +974 -0
  154. package/dist/select-C1rNBi6c.js.map +1 -0
  155. package/dist/select-m-Mqwxu3.cjs +2 -0
  156. package/dist/select-m-Mqwxu3.cjs.map +1 -0
  157. package/dist/separator-DBUivkHq.cjs +2 -0
  158. package/dist/separator-DBUivkHq.cjs.map +1 -0
  159. package/dist/separator-DsfoJx-2.js +395 -0
  160. package/dist/separator-DsfoJx-2.js.map +1 -0
  161. package/dist/sheet-BVWCpq7E.js +84 -0
  162. package/dist/sheet-BVWCpq7E.js.map +1 -0
  163. package/dist/sheet-mKiFLVnK.cjs +2 -0
  164. package/dist/sheet-mKiFLVnK.cjs.map +1 -0
  165. package/dist/skeleton-BSwwYaQU.cjs +2 -0
  166. package/dist/skeleton-BSwwYaQU.cjs.map +1 -0
  167. package/dist/skeleton-BmGbfJw3.js +9 -0
  168. package/dist/skeleton-BmGbfJw3.js.map +1 -0
  169. package/dist/sortable.esm-Blhf_jh1.js +3391 -0
  170. package/dist/sortable.esm-Blhf_jh1.js.map +1 -0
  171. package/dist/sortable.esm-DcQYlXi3.cjs +6 -0
  172. package/dist/sortable.esm-DcQYlXi3.cjs.map +1 -0
  173. package/dist/sparkline-chart-Da-ehDGv.js +21082 -0
  174. package/dist/sparkline-chart-Da-ehDGv.js.map +1 -0
  175. package/dist/sparkline-chart-ca3uTzVK.cjs +68 -0
  176. package/dist/sparkline-chart-ca3uTzVK.cjs.map +1 -0
  177. package/dist/trending-up-D3Nfrhi3.cjs +2 -0
  178. package/dist/trending-up-D3Nfrhi3.cjs.map +1 -0
  179. package/dist/trending-up-DPwlYzQb.js +9 -0
  180. package/dist/trending-up-DPwlYzQb.js.map +1 -0
  181. package/dist/ui.css +1 -0
  182. package/dist/use-formatters-d97RVcmg.cjs +2 -0
  183. package/dist/use-formatters-d97RVcmg.cjs.map +1 -0
  184. package/dist/use-formatters-l1_2c8z0.js +6682 -0
  185. package/dist/use-formatters-l1_2c8z0.js.map +1 -0
  186. package/dist/use-local-storage-BjlrKzE-.js +42 -0
  187. package/dist/use-local-storage-BjlrKzE-.js.map +1 -0
  188. package/dist/use-local-storage-q-1odzIu.cjs +2 -0
  189. package/dist/use-local-storage-q-1odzIu.cjs.map +1 -0
  190. package/dist/use-mobile-C-LMK4T8.js +15 -0
  191. package/dist/use-mobile-C-LMK4T8.js.map +1 -0
  192. package/dist/use-mobile-DY7TJ5lx.cjs +2 -0
  193. package/dist/use-mobile-DY7TJ5lx.cjs.map +1 -0
  194. package/dist/use-toast-DG2qdYhl.js +97 -0
  195. package/dist/use-toast-DG2qdYhl.js.map +1 -0
  196. package/dist/use-toast-DxZJ8uUm.cjs +2 -0
  197. package/dist/use-toast-DxZJ8uUm.cjs.map +1 -0
  198. package/dist/utils/index.cjs.js +2 -0
  199. package/dist/utils/index.cjs.js.map +1 -0
  200. package/dist/utils/index.es.js +5 -0
  201. package/dist/utils/index.es.js.map +1 -0
  202. package/dist/welcome-card-CPolYl1D.cjs +2 -0
  203. package/dist/welcome-card-CPolYl1D.cjs.map +1 -0
  204. package/dist/welcome-card-CxMJZ8bv.js +963 -0
  205. package/dist/welcome-card-CxMJZ8bv.js.map +1 -0
  206. package/package.json +179 -0
@@ -0,0 +1,8 @@
1
+ "use strict";const e=require("react/jsx-runtime"),B=require("react"),p=require("./scroll-area-DYOiJMXh.cjs"),R=require("./input-CZrckPLk.cjs"),w=require("./index-lGzB9daF.cjs"),Ee=require("./chevron-down-DHdXqOqK.cjs"),I=require("./separator-DBUivkHq.cjs"),Ae=require("./checkbox-D7-LQyCl.cjs"),no=require("./use-toast-DxZJ8uUm.cjs"),ao=require("react-dom"),dt=require("./index-lT9bLt9X.cjs"),G=require("./index-CzVK9Zyb.cjs"),D=require("./calendar-BUm7YrNf.cjs"),X=require("./progress-CFnuLqnS.cjs"),Q=require("./avatar-C0aVNCG9.cjs"),ut=require("./chevron-right-Dvyd11q0.cjs"),T=require("./use-formatters-d97RVcmg.cjs"),se=require("./card-tMkUxpmW.cjs"),re=require("./popover-ivh-plLc.cjs"),De=require("./createLucideIcon-i5GEhNMV.cjs"),S=require("./skeleton-BSwwYaQU.cjs"),Y=require("./select-m-Mqwxu3.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(B),io=ft(ao);var le="Collapsible",[co,mt]=p.createContextScope(le),[lo,ke]=co(le),pt=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,open:o,defaultOpen:n,disabled:i,onOpenChange:a,...d}=t,[u,m]=R.useControllableState({prop:o,defaultProp:n??!1,onChange:a,caller:le});return e.jsx(lo,{scope:s,disabled:i,contentId:R.useId(),open:u,onOpenToggle:c.useCallback(()=>m(f=>!f),[m]),children:e.jsx(p.Primitive.div,{"data-state":Ie(u),"data-disabled":i?"":void 0,...d,ref:r})})});pt.displayName=le;var xt="CollapsibleTrigger",Pe=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,...o}=t,n=ke(xt,s);return e.jsx(p.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ie(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:r,onClick:p.composeEventHandlers(t.onClick,n.onOpenToggle)})});Pe.displayName=xt;var _e="CollapsibleContent",Me=c.forwardRef((t,r)=>{const{forceMount:s,...o}=t,n=ke(_e,t.__scopeCollapsible);return e.jsx(p.Presence,{present:s||n.open,children:({present:i})=>e.jsx(uo,{...o,ref:r,present:i})})});Me.displayName=_e;var uo=c.forwardRef((t,r)=>{const{__scopeCollapsible:s,present:o,children:n,...i}=t,a=ke(_e,s),[d,u]=c.useState(o),m=c.useRef(null),f=p.useComposedRefs(r,m),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 y=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(y)},[]),p.useLayoutEffect2(()=>{const y=m.current;if(y){j.current=j.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const N=y.getBoundingClientRect();l.current=N.height,x.current=N.width,b.current||(y.style.transitionDuration=j.current.transitionDuration,y.style.animationName=j.current.animationName),u(o)}},[a.open,o]),e.jsx(p.Primitive.div,{"data-state":Ie(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:f,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 Ie(t){return t?"open":"closed"}var ht=pt,fo=Pe,mo=Me,q="Accordion",po=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Oe,xo,ho]=R.createCollection(q),[de]=p.createContextScope(q,[ho,mt]),Fe=mt(),gt=B.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(wo,{...i,ref:r}):e.jsx(bo,{...n,ref:r})})});gt.displayName=q;var[vt,go]=de(q),[bt,vo]=de(q,{collapsible:!1}),bo=B.forwardRef((t,r)=>{const{value:s,defaultValue:o,onValueChange:n=()=>{},collapsible:i=!1,...a}=t,[d,u]=R.useControllableState({prop:s,defaultProp:o??"",onChange:n,caller:q});return e.jsx(vt,{scope:t.__scopeAccordion,value:B.useMemo(()=>d?[d]:[],[d]),onItemOpen:u,onItemClose:B.useCallback(()=>i&&u(""),[i,u]),children:e.jsx(bt,{scope:t.__scopeAccordion,collapsible:i,children:e.jsx(wt,{...a,ref:r})})})}),wo=B.forwardRef((t,r)=>{const{value:s,defaultValue:o,onValueChange:n=()=>{},...i}=t,[a,d]=R.useControllableState({prop:s,defaultProp:o??[],onChange:n,caller:q}),u=B.useCallback(f=>d((l=[])=>[...l,f]),[d]),m=B.useCallback(f=>d((l=[])=>l.filter(h=>h!==f)),[d]);return e.jsx(vt,{scope:t.__scopeAccordion,value:a,onItemOpen:u,onItemClose:m,children:e.jsx(bt,{scope:t.__scopeAccordion,collapsible:!0,children:e.jsx(wt,{...i,ref:r})})})}),[yo,ue]=de(q),wt=B.forwardRef((t,r)=>{const{__scopeAccordion:s,disabled:o,dir:n,orientation:i="vertical",...a}=t,d=B.useRef(null),u=p.useComposedRefs(d,r),m=xo(s),l=p.useDirection(n)==="ltr",h=p.composeEventHandlers(t.onKeyDown,x=>{if(!po.includes(x.key))return;const v=x.target,g=m().filter(F=>!F.ref.current?.disabled),b=g.findIndex(F=>F.ref.current===v),j=g.length;if(b===-1)return;x.preventDefault();let y=b;const N=0,C=j-1,E=()=>{y=b+1,y>C&&(y=N)},_=()=>{y=b-1,y<N&&(y=C)};switch(x.key){case"Home":y=N;break;case"End":y=C;break;case"ArrowRight":i==="horizontal"&&(l?E():_());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(l?_():E());break;case"ArrowUp":i==="vertical"&&_();break}const k=y%j;g[k].ref.current?.focus()});return e.jsx(yo,{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,Ve]=de(ie),yt=B.forwardRef((t,r)=>{const{__scopeAccordion:s,value:o,...n}=t,i=ue(ie,s),a=go(ie,s),d=Fe(s),u=R.useId(),m=o&&a.value.includes(o)||!1,f=i.disabled||t.disabled;return e.jsx(jo,{scope:s,open:m,disabled:f,triggerId:u,children:e.jsx(ht,{"data-orientation":i.orientation,"data-state":Rt(m),...d,...n,ref:r,disabled:f,open:m,onOpenChange:l=>{l?a.onItemOpen(o):a.onItemClose(o)}})})});yt.displayName=ie;var jt="AccordionHeader",Nt=B.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(q,s),i=Ve(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 ye="AccordionTrigger",Ct=B.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(q,s),i=Ve(ye,s),a=vo(ye,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})})});Ct.displayName=ye;var St="AccordionContent",Tt=B.forwardRef((t,r)=>{const{__scopeAccordion:s,...o}=t,n=ue(q,s),i=Ve(St,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=St;function Rt(t){return t?"open":"closed"}var No=gt,Co=yt,So=Nt,Et=Ct,At=Tt;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"}]]);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"}]]);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(Co,{ref:s,className:w.cn("border-b",t),...r}));Dt.displayName="AccordionItem";const kt=c.forwardRef(({className:t,children:r,...s},o)=>e.jsx(So,{className:"flex",children:e.jsxs(Et,{ref:o,className:w.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"})]})}));kt.displayName=Et.displayName;const Pt=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:w.cn("pb-4 pt-0",t),children:r})}));Pt.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:w.cn(Ao({variant:r}),t),...s}));_t.displayName="Alert";const Mt=c.forwardRef(({className:t,...r},s)=>e.jsx("h5",{ref:s,className:w.cn("mb-1 font-medium leading-none tracking-tight",t),...r}));Mt.displayName="AlertTitle";const It=c.forwardRef(({className:t,...r},s)=>e.jsx("div",{ref:s,className:w.cn("text-sm [&_p]:leading-relaxed",t),...r}));It.displayName="AlertDescription";var Do=Symbol("radix.slottable");function ko(t){const r=({children:s})=>e.jsx(e.Fragment,{children:s});return r.displayName=`${t}.Slottable`,r.__radixId=Do,r}var Ot="AlertDialog",[Po]=p.createContextScope(Ot,[G.createDialogScope]),U=G.createDialogScope(),Ft=t=>{const{__scopeAlertDialog:r,...s}=t,o=U(r);return e.jsx(G.Root,{...o,...s,modal:!0})};Ft.displayName=Ot;var _o="AlertDialogTrigger",Vt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(G.Trigger,{...n,...o,ref:r})});Vt.displayName=_o;var Mo="AlertDialogPortal",$t=t=>{const{__scopeAlertDialog:r,...s}=t,o=U(r);return e.jsx(G.Portal,{...o,...s})};$t.displayName=Mo;var Io="AlertDialogOverlay",Lt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(G.Overlay,{...n,...o,ref:r})});Lt.displayName=Io;var ee="AlertDialogContent",[Oo,Fo]=Po(ee),Vo=ko("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(G.WarningProvider,{contentName:ee,titleName:Ht,docsSlug:"alert-dialog",children:e.jsx(Oo,{scope:s,cancelRef:u,children:e.jsxs(G.Content,{role:"alertdialog",...i,...n,ref:d,onOpenAutoFocus:p.composeEventHandlers(n.onOpenAutoFocus,m=>{m.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[e.jsx(Vo,{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(G.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(G.Description,{...n,...o,ref:r})});Gt.displayName=zt;var $o="AlertDialogAction",qt=c.forwardRef((t,r)=>{const{__scopeAlertDialog:s,...o}=t,n=U(s);return e.jsx(G.Close,{...n,...o,ref:r})});qt.displayName=$o;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(G.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.
2
+
3
+ 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.
4
+
5
+ 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.
6
+
7
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},Bo=Ft,Ho=Vt,Ko=$t,Yt=Lt,Xt=Bt,Jt=qt,Zt=Ut,Qt=Kt,es=Gt;const ts=Bo,zo=Ho,ss=Ko,$e=c.forwardRef(({className:t,...r},s)=>e.jsx(Yt,{className:w.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}));$e.displayName=Yt.displayName;const Le=c.forwardRef(({className:t,...r},s)=>e.jsxs(ss,{children:[e.jsx($e,{}),e.jsx(Xt,{ref:s,className:w.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:w.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:w.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:w.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:w.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:w.cn(p.buttonVariants(),t),...r}));Ge.displayName=Jt.displayName;const qe=c.forwardRef(({className:t,...r},s)=>e.jsx(Zt,{ref:s,className:w.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},m)=>e.jsxs("div",{className:"flex",children:[e.jsx(p.Button,{ref:m,variant:r,size:s,className:w.cn("rounded-r-none border-r-0",t),onClick:i,disabled:d,...u,children:o}),e.jsxs(R.DropdownMenu,{children:[e.jsx(R.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(R.DropdownMenuContent,{align:a,children:n.map((f,l)=>e.jsxs(R.DropdownMenuItem,{onClick:f.onClick,disabled:f.disabled,className:"flex items-center gap-2",children:[f.icon&&e.jsx("span",{className:"h-4 w-4",children:f.icon}),f.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},m)=>{const f=e.jsx("button",{ref:m,className:w.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(I.TooltipProvider,{children:e.jsxs(I.Tooltip,{children:[e.jsx(I.TooltipTrigger,{asChild:!0,children:f}),e.jsx(I.TooltipContent,{side:i,children:e.jsx("p",{children:n})})]})}):f});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:w.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 m={"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:w.cn("absolute flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs",m[n]),children:typeof s=="number"&&s>99?"99+":s})]})});as.displayName="ButtonWithBadge";const Go=ht,qo=Pe,Wo=Me;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:m,...f}=t,[l,h]=c.useState(null),x=p.useComposedRefs(r,b=>h(b)),v=c.useRef(!1),g=l?m||!!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,...f,ref:x,onClick:p.composeEventHandlers(t.onClick,b=>{n||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:m,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),m=R.useSize(r);return c.useEffect(()=>{const f=a.current;if(!f)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(f,s),f.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,...m,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,[R.createRovingFocusGroupScope,is]),ms=R.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:m,loop:f=!0,onValueChange:l,...h}=t,x=ms(s),v=p.useDirection(m),[g,b]=R.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(R.Root,{asChild:!0,...x,orientation:u,dir:v,loop:f,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),m=c.useRef(null),f=p.useComposedRefs(r,m),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(R.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:f,onCheck:()=>i.onValueChange(n.value),onKeyDown:p.composeEventHandlers(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:p.composeEventHandlers(n.onFocus,()=>{h.current&&m.current?.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,ws=gs,rn=vs;const ys=c.forwardRef(({className:t,...r},s)=>e.jsx(bs,{className:w.cn("grid gap-2",t),...r,ref:s}));ys.displayName=bs.displayName;const js=c.forwardRef(({className:t,...r},s)=>e.jsx(ws,{ref:s,className:w.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(R.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));js.displayName=ws.displayName;var Ns=["PageUp","PageDown"],Cs=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ss={"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]=R.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:m=[o],value:f,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,[C=[],E]=R.useControllableState({prop:f,defaultProp:m,onChange:P=>{[...b.current][j.current]?.focus(),l(P)}}),_=c.useRef(C);function k(P){const $=pn(C,P);M(P,$)}function F(P){M(P,j.current)}function O(){const P=_.current[j.current];C[j.current]!==P&&h(C)}function M(P,$,{commit:W}={commit:!1}){const A=vn(i),H=bn(Math.round((P-o)/i)*i+o,A),L=p.clamp(H,[o,n]);E((z=[])=>{const K=fn(z,L,$);if(gn(K,u*i)){j.current=K.indexOf(L);const J=String(K)!==String(z);return J&&W&&h(K),J?K:z}else return z})}return e.jsx(an,{scope:t.__scopeSlider,name:s,disabled:d,min:o,max:n,valueIndexToChangeRef:j,thumbs:b.current,values:C,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=C)}),min:o,max:n,inverted:x,onSlideStart:d?void 0:k,onSlideMove:d?void 0:F,onSlideEnd:d?void 0:O,onHomeKeyDown:()=>!d&&M(o,0,{commit:!0}),onEndKeyDown:()=>!d&&M(n,C.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:$})=>{if(!d){const H=Ns.includes(P.key)||P.shiftKey&&Cs.includes(P.key)?10:1,L=j.current,z=C[L],K=i*H*$;M(z+K,L,{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:m,...f}=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 y(N){const C=v.current||l.getBoundingClientRect(),E=[0,C.width],k=Ue(E,j?[s,o]:[o,s]);return v.current=C,k(N-C.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",...f,ref:x,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:N=>{const C=y(N.clientX);a?.(C)},onSlideMove:N=>{const C=y(N.clientX);d?.(C)},onSlideEnd:()=>{v.current=void 0,u?.()},onStepKeyDown:N=>{const E=Ss[j?"from-left":"from-right"].includes(N.key);m?.({event:N,direction:E?-1:1})}})})}),ln=c.forwardRef((t,r)=>{const{min:s,max:o,inverted:n,onSlideStart:i,onSlideMove:a,onSlideEnd:d,onStepKeyDown:u,...m}=t,f=c.useRef(null),l=p.useComposedRefs(r,f),h=c.useRef(void 0),x=!n;function v(g){const b=h.current||f.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",...m,ref:l,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=v(g.clientY);i?.(b)},onSlideMove:g=>{const b=v(g.clientY);a?.(b)},onSlideEnd:()=>{h.current=void 0,d?.()},onStepKeyDown:g=>{const j=Ss[x?"from-bottom":"from-top"].includes(g.key);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,...m}=t,f=me(te,s);return e.jsx(p.Primitive.span,{...m,ref:r,onKeyDown:p.composeEventHandlers(t.onKeyDown,l=>{l.key==="Home"?(a(l),l.preventDefault()):l.key==="End"?(d(l),l.preventDefault()):Ns.concat(Cs).includes(l.key)&&(u(l),l.preventDefault())}),onPointerDown:p.composeEventHandlers(t.onPointerDown,l=>{const h=l.target;h.setPointerCapture(l.pointerId),l.preventDefault(),f.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))})})}),ks="SliderTrack",Ps=c.forwardRef((t,r)=>{const{__scopeSlider:s,...o}=t,n=me(ks,s);return e.jsx(p.Primitive.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...o,ref:r})});Ps.displayName=ks;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,m=n.values.map(h=>Os(h,n.min,n.max)),f=u>1?Math.min(...m):0,l=100-Math.max(...m);return e.jsx(p.Primitive.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...o,ref:d,style:{...t.style,[i.startEdge]:f+"%",[i.endEdge]:l+"%"}})});_s.displayName=Ne;var Ce="SliderThumb",Ms=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(Ce,s),d=As(Ce,s),[u,m]=c.useState(null),f=p.useComposedRefs(r,y=>m(y)),l=u?a.form||!!u.closest("form"):!0,h=R.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?.[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:f,style:x===void 0?{display:"none"}:t.style,onFocus:p.composeEventHandlers(t.onFocus,()=>{a.valueIndexToChangeRef.current=o})})}),l&&e.jsx(Is,{name:n??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:x},o)]})});Ms.displayName=Ce;var un="RadioBubbleInput",Is=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,f=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==r&&f){const l=new Event("input",{bubbles:!0});f.call(d,r),d.dispatchEvent(l)}},[a,r]),e.jsx(p.Primitive.input,{style:{display:"none"},...s,ref:i,defaultValue:r})});Is.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,wn=Ps,yn=_s,jn=Ms;const Vs=c.forwardRef(({className:t,...r},s)=>e.jsxs(Fs,{ref:s,className:w.cn("relative flex w-full touch-none select-none items-center",t),...r,children:[e.jsx(wn,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(yn,{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"})]}));Vs.displayName=Fs.displayName;var pe="Switch",[Nn]=p.createContextScope(pe),[Cn,Sn]=Nn(pe),$s=c.forwardRef((t,r)=>{const{__scopeSwitch:s,name:o,checked:n,defaultChecked:i,required:a,disabled:d,value:u="on",onCheckedChange:m,form:f,...l}=t,[h,x]=c.useState(null),v=p.useComposedRefs(r,N=>x(N)),g=c.useRef(!1),b=h?f||!!h.closest("form"):!0,[j,y]=R.useControllableState({prop:n,defaultProp:i??!1,onChange:m,caller:pe});return e.jsxs(Cn,{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=>{y(C=>!C),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:f,style:{transform:"translateX(-100%)"}})]})});$s.displayName=pe;var Ls="SwitchThumb",Bs=c.forwardRef((t,r)=>{const{__scopeSwitch:s,...o}=t,n=Sn(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),m=R.useSize(r);return c.useEffect(()=>{const f=a.current;if(!f)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(f,s),f.dispatchEvent(v)}},[u,s,o]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...n,tabIndex:-1,ref:d,style:{...n.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Hs.displayName=Tn;function Ks(t){return t?"checked":"unchecked"}var zs=$s,Rn=Bs;const Gs=c.forwardRef(({className:t,...r},s)=>e.jsx(zs,{className:w.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:w.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,[R.createRovingFocusGroupScope]),qs=R.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",...m}=t,f=p.useDirection(d),[l,h]=R.useControllableState({prop:o,onChange:n,defaultProp:i??"",caller:xe});return e.jsx(An,{scope:s,baseId:R.useId(),value:l,onValueChange:h,orientation:a,dir:f,activationMode:u,children:e.jsx(p.Primitive.div,{dir:f,"data-orientation":a,...m,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(R.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),m=tr(a.baseId,o),f=o===a.value;return e.jsx(R.Item,{asChild:!0,...d,focusable:!n,active:f,children:e.jsx(p.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":m,"data-state":f?"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";!f&&!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),m=tr(d.baseId,o),f=o===d.value,l=c.useRef(f);return c.useEffect(()=>{const h=requestAnimationFrame(()=>l.current=!1);return()=>cancelAnimationFrame(h)},[]),e.jsx(p.Presence,{present:n||f,children:({present:h})=>e.jsx(p.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:m,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 kn=Dn,nr=c.forwardRef(({className:t,...r},s)=>e.jsx(sr,{ref:s,className:w.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:w.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:w.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:w.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,Pn,_n]=R.createCollection("Toast"),[lr]=p.createContextScope("Toast",[_n]),[Mn,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),[m,f]=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(Mn,{scope:r,label:s,duration:o,swipeDirection:n,swipeThreshold:i,toastCount:m,viewport:d,onViewportChange:u,onToastAdd:c.useCallback(()=>f(x=>x+1),[]),onToastRemove:c.useCallback(()=>f(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:l,isClosePausedRef:h,children:a})})};dr.displayName=Xe;var ur="ToastViewport",In=["F8"],Se="toast.viewportPause",Te="toast.viewportResume",fr=c.forwardRef((t,r)=>{const{__scopeToast:s,hotkey:o=In,label:n="Notifications ({hotkey})",...i}=t,a=he(ur,s),d=Pn(s),u=c.useRef(null),m=c.useRef(null),f=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=>{o.length!==0&&o.every(N=>j[N]||j.code===N)&&l.current?.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 y=()=>{if(!a.isClosePausedRef.current){const _=new CustomEvent(Se);j.dispatchEvent(_),a.isClosePausedRef.current=!0}},N=()=>{if(a.isClosePausedRef.current){const _=new CustomEvent(Te);j.dispatchEvent(_),a.isClosePausedRef.current=!1}},C=_=>{!b.contains(_.relatedTarget)&&N()},E=()=>{b.contains(document.activeElement)||N()};return b.addEventListener("focusin",y),b.addEventListener("focusout",C),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",E),window.addEventListener("blur",y),window.addEventListener("focus",N),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",C),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",E),window.removeEventListener("blur",y),window.removeEventListener("focus",N)}}},[v,a.isClosePausedRef]);const g=c.useCallback(({tabbingDirection:b})=>{const y=d().map(N=>{const C=N.ref.current,E=[C,...Un(C)];return b==="forwards"?E:E.reverse()});return(b==="forwards"?y.reverse():y).flat()},[d]);return c.useEffect(()=>{const b=l.current;if(b){const j=y=>{const N=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!N){const E=document.activeElement,_=y.shiftKey;if(y.target===b&&_){m.current?.focus();return}const O=g({tabbingDirection:_?"backwards":"forwards"}),M=O.findIndex(P=>P===E);be(O.slice(M+1))?y.preventDefault():_?m.current?.focus():f.current?.focus()}};return b.addEventListener("keydown",j),()=>b.removeEventListener("keydown",j)}},[d,g]),e.jsxs(R.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:m,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:f,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=>{const d=a.relatedTarget;!i.viewport?.contains(d)&&o()}})});Re.displayName=mr;var oe="Toast",On="toast.swipeStart",Fn="toast.swipeMove",Vn="toast.swipeCancel",$n="toast.swipeEnd",pr=c.forwardRef((t,r)=>{const{forceMount:s,open:o,defaultOpen:n,onOpenChange:i,...a}=t,[d,u]=R.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,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:p.composeEventHandlers(t.onSwipeMove,m=>{const{x:f,y:l}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${l}px`)}),onSwipeCancel:p.composeEventHandlers(t.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:p.composeEventHandlers(t.onSwipeEnd,m=>{const{x:f,y:l}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),m.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:m,onSwipeStart:f,onSwipeMove:l,onSwipeCancel:h,onSwipeEnd:x,...v}=t,g=he(oe,s),[b,j]=c.useState(null),y=p.useComposedRefs(r,A=>j(A)),N=c.useRef(null),C=c.useRef(null),E=n||g.duration,_=c.useRef(0),k=c.useRef(E),F=c.useRef(0),{onToastAdd:O,onToastRemove:M}=g,P=p.useCallbackRef(()=>{b?.contains(document.activeElement)&&g.viewport?.focus(),a()}),$=c.useCallback(A=>{!A||A===1/0||(window.clearTimeout(F.current),_.current=new Date().getTime(),F.current=window.setTimeout(P,A))},[P]);c.useEffect(()=>{const A=g.viewport;if(A){const H=()=>{$(k.current),m?.()},L=()=>{const z=new Date().getTime()-_.current;k.current=k.current-z,window.clearTimeout(F.current),u?.()};return A.addEventListener(Se,L),A.addEventListener(Te,H),()=>{A.removeEventListener(Se,L),A.removeEventListener(Te,H)}}},[g.viewport,E,u,m,$]),c.useEffect(()=>{i&&!g.isClosePausedRef.current&&$(E)},[i,E,g.isClosePausedRef,$]),c.useEffect(()=>(O(),()=>M()),[O,M]);const W=c.useMemo(()=>b?yr(b):null,[b]);return g.viewport?e.jsxs(e.Fragment,{children:[W&&e.jsx(Kn,{__scopeToast:s,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:W}),e.jsx(Ln,{scope:s,onClose:P,children:io.createPortal(e.jsx(Je.ItemSlot,{scope:s,children:e.jsx(R.Root$1,{asChild:!0,onEscapeKeyDown:p.composeEventHandlers(d,()=>{g.isFocusedToastEscapeKeyDownRef.current||P(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:e.jsx(p.Primitive.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...v,ref:y,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:p.composeEventHandlers(t.onKeyDown,A=>{A.key==="Escape"&&(d?.(A.nativeEvent),A.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,P()))}),onPointerDown:p.composeEventHandlers(t.onPointerDown,A=>{A.button===0&&(N.current={x:A.clientX,y:A.clientY})}),onPointerMove:p.composeEventHandlers(t.onPointerMove,A=>{if(!N.current)return;const H=A.clientX-N.current.x,L=A.clientY-N.current.y,z=!!C.current,K=["left","right"].includes(g.swipeDirection),J=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,ro=K?J(0,H):0,oo=K?0:J(0,L),ve=A.pointerType==="touch"?10:2,ne={x:ro,y:oo},at={originalEvent:A,delta:ne};z?(C.current=ne,ae(Fn,l,at,{discrete:!1})):ct(ne,g.swipeDirection,ve)?(C.current=ne,ae(On,f,at,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(H)>ve||Math.abs(L)>ve)&&(N.current=null)}),onPointerUp:p.composeEventHandlers(t.onPointerUp,A=>{const H=C.current,L=A.target;if(L.hasPointerCapture(A.pointerId)&&L.releasePointerCapture(A.pointerId),C.current=null,N.current=null,H){const z=A.currentTarget,K={originalEvent:A,delta:H};ct(H,g.swipeDirection,g.swipeThreshold)?ae($n,x,K,{discrete:!0}):ae(Vn,h,K,{discrete:!0}),z.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 m=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(m)},[]),d?null:e.jsx(R.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(wr,{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(wr,{asChild:!0,children:e.jsx(p.Primitive.button,{type:"button",...o,ref:r,onClick:p.composeEventHandlers(t.onClick,n.onClose)})})});Ze.displayName=br;var wr=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 yr(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(...yr(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,Cr=xr,Sr=hr,Tr=vr,Rr=Ze;const Er=Yn,Qe=c.forwardRef(({className:t,...r},s)=>e.jsx(jr,{ref:s,className:w.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:w.cn(Xn({variant:r}),t),...s}));et.displayName=Nr.displayName;const Ar=c.forwardRef(({className:t,...r},s)=>e.jsx(Tr,{ref:s,className:w.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:w.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(Cr,{ref:s,className:w.cn("text-sm font-semibold",t),...r}));st.displayName=Cr.displayName;const rt=c.forwardRef(({className:t,...r},s)=>e.jsx(Sr,{ref:s,className:w.cn("text-sm opacity-90",t),...r}));rt.displayName=Sr.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 kr(t){return T.toDate(t).getHours()}function Pr(t){return T.toDate(t).getMinutes()}function ge(t){return D.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 Mr(t,r){return D.addMonths(t,-1)}function ta(t,r){return D.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"}},Ir=c.forwardRef(({open:t,onOpenChange:r,title:s,description:o,confirmLabel:n="Confirm",cancelLabel:i="Cancel",onConfirm:a,onCancel:d,variant:u="default",loading:m=!1,confirmationText:f,confirmationPlaceholder:l="Type to confirm"},h)=>{const[x,v]=c.useState(""),g=sa[u],b=g.icon,j=f&&x!==f||m,y=()=>{a(),v("")},N=()=>{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:w.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:w.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})]})]})}),f&&e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsxs(D.Label,{htmlFor:"confirmation-input",className:"text-sm",children:["Type ",e.jsx("span",{className:"font-mono font-bold",children:f})," to confirm"]}),e.jsx(R.Input,{id:"confirmation-input",value:x,onChange:C=>v(C.target.value),placeholder:l,autoComplete:"off"})]}),e.jsxs(He,{className:"mt-4",children:[e.jsx(qe,{onClick:N,disabled:m,children:i}),e.jsx(Ge,{onClick:y,disabled:j,className:w.cn(u==="destructive"&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),children:m?"Loading...":n})]})]})})});Ir.displayName="ConfirmationDialog";const we={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),m=r.length-s,f=m>0,l=x=>x.split(" ").map(v=>v[0]).join("").toUpperCase().slice(0,2),h=(x,v)=>{const g=e.jsxs(Q.Avatar,{className:w.cn(we[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:w.cn(we[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(I.Tooltip,{children:[e.jsx(I.TooltipTrigger,{asChild:!0,children:g}),e.jsx(I.TooltipContent,{children:e.jsx("p",{children:x.name})})]}):g},v):n?e.jsxs(I.Tooltip,{children:[e.jsx(I.TooltipTrigger,{asChild:!0,children:g}),e.jsx(I.TooltipContent,{children:e.jsx("p",{children:x.name})})]},v):g};return e.jsx(I.TooltipProvider,{children:e.jsxs("div",{ref:d,className:w.cn("flex items-center",t),...a,children:[u.map((x,v)=>h(x,v)),f&&e.jsxs(I.Tooltip,{children:[e.jsx(I.TooltipTrigger,{asChild:!0,children:e.jsxs("button",{onClick:i,className:w.cn(we[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:["+",m]})}),e.jsx(I.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 m=f=>f.split(" ").map(l=>l[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{ref:u,className:w.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:m(r)})]}),n&&e.jsx("span",{className:w.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 Vr=c.forwardRef(({className:t,steps:r,currentStep:s,orientation:o="horizontal",onStepClick:n,allowClickPast:i=!1,showStepNumber:a=!0,...d},u)=>{const m=f=>{n&&(i||f<=s)&&n(f)};return e.jsx("div",{ref:u,className:w.cn("flex",o==="horizontal"?"flex-row items-center":"flex-col",t),...d,children:r.map((f,l)=>{const h=l<s,x=l===s,v=n&&(i||l<=s);return e.jsxs(c.Fragment,{children:[e.jsxs("div",{className:w.cn("flex",o==="horizontal"?"flex-col items-center":"flex-row items-start gap-4",v&&"cursor-pointer"),onClick:()=>m(l),children:[e.jsx("div",{className:w.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"}):f.icon?f.icon:a?l+1:null}),e.jsxs("div",{className:w.cn("text-center",o==="horizontal"?"mt-2":"flex-1",o==="vertical"&&"text-left"),children:[e.jsxs("p",{className:w.cn("text-sm font-medium",x&&"text-primary",!h&&!x&&"text-muted-foreground"),children:[f.title,f.optional&&e.jsx("span",{className:"ml-1 text-xs font-normal text-muted-foreground",children:"(Optional)"})]}),f.description&&e.jsx("p",{className:"text-xs text-muted-foreground",children:f.description})]})]}),l<r.length-1&&e.jsx("div",{className:w.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")})]},f.id)})})});Vr.displayName="Stepper";const $r=c.forwardRef(({className:t,value:r,onChange:s,minDate:o,maxDate:n,disabledDates:i=[],highlightedDates:a=[],...d},u)=>{const[m,f]=c.useState(r||new Date),l=D.startOfMonth(m),h=D.endOfMonth(l),x=T.startOfWeek(l),v=D.endOfWeek(h),g=[];let b=x;for(;b<=v;)g.push(b),b=D.addDays(b,1);const j=k=>o&&k<o||n&&k>n?!0:i.some(F=>D.isSameDay(F,k)),y=k=>a.some(F=>D.isSameDay(F,k)),N=()=>f(Mr(m)),C=()=>f(D.addMonths(m,1)),E=k=>{j(k)||s?.(k)},_=["Su","Mo","Tu","We","Th","Fr","Sa"];return e.jsxs("div",{ref:u,className:w.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(D.ChevronLeft,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-sm font-medium",children:T.format(m,"MMMM yyyy")}),e.jsx(p.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:C,children:e.jsx(ut.ChevronRight,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"mb-1 grid grid-cols-7 gap-0",children:_.map(k=>e.jsx("div",{className:"flex h-8 items-center justify-center text-xs font-medium text-muted-foreground",children:k},k))}),e.jsx("div",{className:"grid grid-cols-7 gap-0",children:g.map((k,F)=>{const O=D.isSameMonth(k,m),M=r&&D.isSameDay(k,r),P=ge(k),$=j(k),W=y(k);return e.jsxs("button",{onClick:()=>E(k),disabled:$,className:w.cn("relative flex h-8 w-8 items-center justify-center rounded-md text-sm transition-colors",!O&&"text-muted-foreground/40",O&&"hover:bg-accent",P&&"font-bold",P&&!M&&"text-primary",M&&"bg-primary text-primary-foreground hover:bg-primary",$&&"cursor-not-allowed opacity-50",W&&!M&&"bg-accent"),children:[T.format(k,"d"),W&&!M&&e.jsx("span",{className:"absolute bottom-1 h-1 w-1 rounded-full bg-primary"})]},F)})})]})});$r.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(I.Separator,{}),e.jsx("div",{className:"flex items-center justify-end gap-2 p-4",children:n})]})]}):e.jsxs("div",{ref:d,className:w.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(I.Separator,{}),e.jsx("div",{className:"space-y-4",children:o}),n&&e.jsxs(e.Fragment,{children:[e.jsx(I.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:w.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,...m},f)=>{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:f,variant:a,size:d,className:w.cn("gap-2",t),onClick:()=>x(s[0]?.format||n),disabled:v,...m,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(R.DropdownMenu,{children:[e.jsx(R.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(p.Button,{ref:f,variant:a,size:d,className:w.cn("gap-2",t),disabled:v,...m,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(R.DropdownMenuContent,{align:"end",children:s.map(g=>e.jsxs(R.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:w.cn("space-y-3 rounded-lg border p-4",t),...r,children:[e.jsx(S.Skeleton,{className:"h-4 w-1/2"}),e.jsx(S.Skeleton,{className:"h-8 w-3/4"}),e.jsx(S.Skeleton,{className:"h-3 w-full"}),e.jsx(S.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(S.Skeleton,{className:"h-4 w-1/2"}),e.jsx(S.Skeleton,{className:"h-8 w-3/4"}),e.jsx(S.Skeleton,{className:"h-3 w-full"}),e.jsx(S.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:w.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(S.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(S.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(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.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(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.Skeleton,{className:"h-4 w-1/4"}),e.jsx(S.Skeleton,{className:"h-4 w-1/4"})]},s))]}),Gr=c.forwardRef(({className:t,items:r=3,...s},o)=>e.jsx("div",{ref:o,className:w.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(S.Skeleton,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(S.Skeleton,{className:"h-4 w-1/3"}),e.jsx(S.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(S.Skeleton,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(S.Skeleton,{className:"h-4 w-1/3"}),e.jsx(S.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(S.Skeleton,{className:"h-4 w-20"}),e.jsx(S.Skeleton,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S.Skeleton,{className:"h-4 w-24"}),e.jsx(S.Skeleton,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S.Skeleton,{className:"h-4 w-16"}),e.jsx(S.Skeleton,{className:"h-24 w-full"})]}),e.jsx(S.Skeleton,{className:"h-10 w-24"})]}),qr=c.forwardRef(({className:t,...r},s)=>e.jsxs("div",{ref:s,className:w.cn("flex items-start gap-4",t),...r,children:[e.jsx(S.Skeleton,{className:"h-20 w-20 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(S.Skeleton,{className:"h-6 w-48"}),e.jsx(S.Skeleton,{className:"h-4 w-32"}),e.jsx(S.Skeleton,{className:"h-3 w-64"})]})]}));qr.displayName="SkeletonProfile";const ua=()=>e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(S.Skeleton,{className:"h-20 w-20 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(S.Skeleton,{className:"h-6 w-48"}),e.jsx(S.Skeleton,{className:"h-4 w-32"}),e.jsx(S.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(S.Skeleton,{className:"h-3 w-20"}),e.jsx(S.Skeleton,{className:"h-8 w-24"}),e.jsx(S.Skeleton,{className:"h-3 w-16"})]},s))}),Wr=c.forwardRef(({className:t,lines:r=3,...s},o)=>e.jsx("div",{ref:o,className:w.cn("space-y-2",t),...s,children:Array.from({length:r}).map((n,i)=>e.jsx(S.Skeleton,{className:w.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:w.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,m=e.jsx("span",{ref:a,children:e.jsx(p.Badge,{className:w.cn("text-xs font-medium border",d.className,t),...i,children:n||d.label})});return o?e.jsx(I.TooltipProvider,{children:e.jsxs(I.Tooltip,{children:[e.jsx(I.TooltipTrigger,{asChild:!0,children:m}),e.jsx(I.TooltipContent,{children:e.jsx("p",{children:u})})]})}):m});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(),m=()=>{switch(r){case"month":return u(t,"MMMM yyyy");case"week":const f=T.startOfWeek(t),l=D.endOfWeek(t);return f.getMonth()===l.getMonth()?`${u(f,"MMM d")} - ${u(l,"d, yyyy")}`:`${u(f,"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(D.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:m()})]}),n&&e.jsxs(Y.Select,{value:r,onValueChange:f=>s(f),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?.(t),className:w.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:w.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:w.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(D.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?.(t),children:o("calendar.viewDetails")})})]})})]})},Zr=({date:t,events:r,onEventClick:s,onDateClick:o})=>{const{t:n,formatDate:i}=T.useFormatters(),a=D.startOfMonth(t),d=D.endOfMonth(a),u=T.startOfWeek(a),m=D.endOfWeek(d),f=[];let l=u;for(;l<=m;)f.push(l),l=D.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})||D.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:f.map((v,g)=>{const b=D.isSameMonth(v,t),j=ge(v),y=h(v);return e.jsxs("div",{className:w.cn("min-h-[100px] border-r border-b last:border-r-0 p-1",!b&&"bg-muted/30"),onClick:()=>o?.(v),children:[e.jsx("div",{className:"flex items-center justify-between mb-1",children:e.jsx("span",{className:w.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:[y.slice(0,3).map(N=>e.jsx(Z,{event:N,compact:!0,onClick:s},N.id)),y.length>3&&e.jsx("div",{className:"text-xs text-muted-foreground px-1",children:n("calendar.more",{count:y.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)=>D.addDays(a,h)),m=(l,h)=>r.filter(x=>{if(x.allDay)return!1;const v=V(x.start);return D.isSameDay(v,l)&&kr(v)===h}),f=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})||D.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:w.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=f(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=m(h,l);return e.jsx("div",{className:"flex-1 border-l relative",onClick:()=>o?.(ce(_r(h,0),l)),children:x.map(v=>{const g=V(v.start),b=V(v.end),j=Dr(b,g),y=Pr(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:`${y}%`,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,m)=>m),a=u=>r.filter(m=>{if(m.allDay)return!1;const f=V(m.start);return D.isSameDay(f,t)&&kr(f)===u}),d=r.filter(u=>{if(!u.allDay)return!1;const m=T.startOfDay(V(u.start)),f=ot(V(u.end));return nt(t,{start:m,end:f})||D.isSameDay(m,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 m=a(u);return e.jsxs("div",{className:"flex h-16 border-b hover:bg-muted/50 transition-colors",onClick:()=>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:m.map(f=>{const l=V(f.start),h=V(f.end),x=Dr(h,l),v=Math.max(x/60*64,32);return e.jsx("div",{className:"absolute left-2 right-2",style:{top:`${Pr(l)/60*100}%`,height:`${v}px`},children:e.jsx(Z,{event:f,onClick:s})},f.id)})})]},u)})})]})},to=({date:t,events:r,onEventClick:s})=>{const{t:o,formatDate:n}=T.useFormatters(),i=D.startOfMonth(t),a=D.endOfMonth(t),u=r.filter(f=>{const l=V(f.start);return l>=i&&l<=a}).sort((f,l)=>V(f.start).getTime()-V(l.start).getTime()).reduce((f,l)=>{const h=T.format(V(l.start),"yyyy-MM-dd");return f[h]||(f[h]=[]),f[h].push(l),f},{}),m=Object.keys(u).sort();return m.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:m.map(f=>{const l=T.parseISO(f),h=u[f];return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsxs("div",{className:w.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))})]},f)})})})},so=c.forwardRef(({className:t,events:r=[],view:s,defaultView:o="month",onViewChange:n,date:i,defaultDate:a,onDateChange:d,onEventClick:u,onDateClick:m,onEventCreate:f,showViewSelector:l=!0,showNavigation:h=!0,showToday:x=!0,...v},g)=>{const[b,j]=c.useState(o),[y,N]=c.useState(a||new Date),C=s??b,E=i??y,_=O=>{s===void 0&&j(O),n?.(O)},k=O=>{i===void 0&&N(O),d?.(O)},F=O=>{let M;if(O==="today")M=new Date;else{const P=O==="prev"?-1:1;switch(C){case"month":case"agenda":M=P>0?D.addMonths(E,1):Mr(E);break;case"week":M=P>0?D.addWeeks(E,1):ta(E);break;case"day":M=P>0?D.addDays(E,1):D.subDays(E,1);break;default:M=E}}k(M)};return e.jsxs("div",{ref:g,className:w.cn("flex flex-col h-full border rounded-lg bg-background",t),...v,children:[e.jsx(Jr,{date:E,view:C,onViewChange:_,onNavigate:F,showViewSelector:l,showNavigation:h,showToday:x}),C==="month"&&e.jsx(Zr,{date:E,events:r,onEventClick:u,onDateClick:m}),C==="week"&&e.jsx(Qr,{date:E,events:r,onEventClick:u,onDateClick:m}),C==="day"&&e.jsx(eo,{date:E,events:r,onEventClick:u,onDateClick:m}),C==="agenda"&&e.jsx(to,{date:E,events:r,onEventClick:u})]})});so.displayName="FullCalendar";exports.Accordion=Eo;exports.AccordionContent=Pt;exports.AccordionItem=Dt;exports.AccordionTrigger=kt;exports.AgendaView=to;exports.Alert=_t;exports.AlertDescription=It;exports.AlertDialog=ts;exports.AlertDialogAction=Ge;exports.AlertDialogCancel=qe;exports.AlertDialogContent=Le;exports.AlertDialogDescription=ze;exports.AlertDialogFooter=He;exports.AlertDialogHeader=Be;exports.AlertDialogOverlay=$e;exports.AlertDialogPortal=ss;exports.AlertDialogTitle=Ke;exports.AlertDialogTrigger=zo;exports.AlertTitle=Mt;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=Ir;exports.DayView=eo;exports.EventItem=Z;exports.ExportButton=Hr;exports.FullCalendar=so;exports.IconButton=ns;exports.MiniCalendar=$r;exports.MonthView=Zr;exports.RadioGroup=ys;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=Vs;exports.SplitButton=rs;exports.Stepper=Vr;exports.Switch=Gs;exports.Tabs=kn;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;
8
+ //# sourceMappingURL=full-calendar-Cpeh5xMP.cjs.map