cortex-react-components 2.8.0 → 2.9.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 (194) hide show
  1. package/dist/chunk-2B5LH5XN.mjs +4 -0
  2. package/dist/chunk-2LINLX4S.mjs +4 -0
  3. package/dist/chunk-2RGAV55J.mjs +4 -0
  4. package/dist/chunk-3IVM6KAB.mjs +4 -0
  5. package/dist/chunk-3R75NUYA.mjs +4 -0
  6. package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
  7. package/dist/{chunk-URYIYEGY.mjs → chunk-5BV4MHV6.mjs} +1 -1
  8. package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
  9. package/dist/chunk-6WQXZ6IE.mjs +4 -0
  10. package/dist/chunk-6XUIHSKG.mjs +4 -0
  11. package/dist/chunk-AREQGH47.mjs +4 -0
  12. package/dist/chunk-BHWGOTCJ.mjs +4 -0
  13. package/dist/chunk-CO6AQNZ5.mjs +4 -0
  14. package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
  15. package/dist/{chunk-X57JQVKC.mjs → chunk-ED7T3BDO.mjs} +1 -1
  16. package/dist/chunk-GHZ6CUY3.mjs +4 -0
  17. package/dist/{chunk-6OZUHBYJ.mjs → chunk-GN25OSET.mjs} +1 -1
  18. package/dist/{chunk-KOXC4RIH.mjs → chunk-I5NNEOCF.mjs} +1 -1
  19. package/dist/{chunk-A3YDFYEB.mjs → chunk-LUM6KEWN.mjs} +1 -1
  20. package/dist/{chunk-GLBQHEMQ.mjs → chunk-MO2B5CDW.mjs} +1 -1
  21. package/dist/chunk-MU5WPW4N.mjs +4 -0
  22. package/dist/chunk-NVHQBM66.mjs +4 -0
  23. package/dist/chunk-O46BOA4T.mjs +1 -0
  24. package/dist/{chunk-NZCHFTHJ.mjs → chunk-OYZX5BM4.mjs} +1 -1
  25. package/dist/chunk-PH67DP3M.mjs +4 -0
  26. package/dist/chunk-PWXCBW2H.mjs +4 -0
  27. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  28. package/dist/{chunk-PIOFHZSJ.mjs → chunk-QQFIVSBW.mjs} +1 -1
  29. package/dist/chunk-R6AYIVIR.mjs +6 -0
  30. package/dist/chunk-RHR3YOLG.mjs +4 -0
  31. package/dist/{chunk-DPZHVBGG.mjs → chunk-RRME4EHD.mjs} +1 -1
  32. package/dist/chunk-U67OTPTT.mjs +4 -0
  33. package/dist/chunk-UML2QHEN.mjs +5 -0
  34. package/dist/chunk-VGWDYD6Z.mjs +4 -0
  35. package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
  36. package/dist/{chunk-2GNX22CR.mjs → chunk-XOH2L4XW.mjs} +1 -1
  37. package/dist/{chunk-S4A4VHOI.mjs → chunk-XW52WZ2B.mjs} +1 -1
  38. package/dist/chunk-Z22NSJMF.mjs +4 -0
  39. package/dist/chunk-ZXPDSSCF.mjs +4 -0
  40. package/dist/components/AdvancedComponents/app-header.js +1 -1
  41. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  42. package/dist/components/AdvancedComponents/index.js +1 -1
  43. package/dist/components/AdvancedComponents/index.mjs +1 -1
  44. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  45. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  46. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  47. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  48. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  49. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  50. package/dist/components/Chat/ChatInterface.js +1 -1
  51. package/dist/components/Chat/ChatInterface.mjs +1 -1
  52. package/dist/components/Chat/CopilotInterface.js +1 -1
  53. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  54. package/dist/components/Chat/capability-menu.js +1 -1
  55. package/dist/components/Chat/capability-menu.mjs +1 -1
  56. package/dist/components/Chat/demo-long-messages.js +1 -1
  57. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  58. package/dist/components/Chat/demo-tests.js +1 -1
  59. package/dist/components/Chat/demo-tests.mjs +1 -1
  60. package/dist/components/Chat/demo.js +1 -1
  61. package/dist/components/Chat/demo.mjs +1 -1
  62. package/dist/components/Chat/example-usage.js +1 -1
  63. package/dist/components/Chat/example-usage.mjs +1 -1
  64. package/dist/components/Chat/example-with-vercel-ai.js +1 -1
  65. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  66. package/dist/components/Chat/index.js +1 -1
  67. package/dist/components/Chat/index.mjs +1 -1
  68. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  69. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  70. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  71. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  72. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  73. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  74. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  75. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  76. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  77. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  78. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  79. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  80. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  81. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  82. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  83. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  84. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  85. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  86. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  87. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  88. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  89. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  90. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  91. package/dist/components/DigitalColleagues/document-preview-examples.js +1 -1
  92. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  93. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  94. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  95. package/dist/components/DigitalColleagues/index.js +1 -1
  96. package/dist/components/DigitalColleagues/index.mjs +1 -1
  97. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  98. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  99. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  100. package/dist/components/HeaderFooter/index.mjs +1 -1
  101. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  102. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  103. package/dist/components/Heros/DashboardHero/index.js +1 -1
  104. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  105. package/dist/components/Heros/PostHero/index.mjs +1 -1
  106. package/dist/components/Heros/RenderHero.mjs +1 -1
  107. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  108. package/dist/components/Heros/index.js +1 -1
  109. package/dist/components/Heros/index.mjs +1 -1
  110. package/dist/components/Icons/ScrollDownIcon.js +1 -1
  111. package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
  112. package/dist/components/Layouts/SlideShow.js +1 -1
  113. package/dist/components/Layouts/SlideShow.mjs +1 -1
  114. package/dist/components/Layouts/index.js +1 -1
  115. package/dist/components/Layouts/index.mjs +1 -1
  116. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  117. package/dist/components/Menus/SidebarRight.mjs +1 -1
  118. package/dist/components/Menus/index.mjs +1 -1
  119. package/dist/components/Other/AnimatedBorder.js +1 -1
  120. package/dist/components/Other/AnimatedBorder.mjs +1 -1
  121. package/dist/components/Other/index.mjs +1 -1
  122. package/dist/components/Projects/EpicsView.js +1 -1
  123. package/dist/components/Projects/EpicsView.mjs +1 -1
  124. package/dist/components/Projects/FileView.js +1 -1
  125. package/dist/components/Projects/FileView.mjs +1 -1
  126. package/dist/components/Projects/KanbanBoardView.js +1 -1
  127. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  128. package/dist/components/Projects/PlanningView.js +1 -1
  129. package/dist/components/Projects/PlanningView.mjs +1 -1
  130. package/dist/components/Projects/ProjectPage.js +1 -1
  131. package/dist/components/Projects/ProjectPage.mjs +1 -1
  132. package/dist/components/Projects/ProjectView.js +1 -1
  133. package/dist/components/Projects/ProjectView.mjs +1 -1
  134. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  135. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  136. package/dist/components/Projects/TasksView.js +1 -1
  137. package/dist/components/Projects/TasksView.mjs +1 -1
  138. package/dist/components/Projects/file-list.js +1 -1
  139. package/dist/components/Projects/file-list.mjs +1 -1
  140. package/dist/components/Projects/project-card.js +1 -1
  141. package/dist/components/Projects/project-card.mjs +1 -1
  142. package/dist/components/Projects/team-card.js +1 -1
  143. package/dist/components/Projects/team-card.mjs +1 -1
  144. package/dist/components/dc-temp/creative.js +1 -1
  145. package/dist/components/dc-temp/creative.mjs +1 -1
  146. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  147. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  148. package/dist/components/dc-temp/index.js +1 -1
  149. package/dist/components/dc-temp/index.mjs +1 -1
  150. package/dist/components/index.js +2 -2
  151. package/dist/components/index.mjs +1 -1
  152. package/dist/components/ui/index.mjs +1 -1
  153. package/dist/components/ui/sidebar.mjs +1 -1
  154. package/dist/index.js +2 -2
  155. package/dist/index.mjs +1 -1
  156. package/dist/metafile-cjs.json +1 -1
  157. package/dist/metafile-esm.json +1 -1
  158. package/dist/pages/Blog.mjs +1 -1
  159. package/dist/pages/Documentation.mjs +1 -1
  160. package/dist/pages/IndexPage.mjs +1 -1
  161. package/dist/pages/Intranet.mjs +1 -1
  162. package/dist/pages/LandingPage.mjs +1 -1
  163. package/dist/pages/Page.mjs +1 -1
  164. package/dist/pages/Publish.js +1 -1
  165. package/dist/pages/Publish.mjs +1 -1
  166. package/dist/pages/Website.mjs +1 -1
  167. package/dist/sections/BlogListSection.mjs +1 -1
  168. package/dist/sections/PageSections.mjs +1 -1
  169. package/dist/sections/ServiceSection.mjs +1 -1
  170. package/dist/sections/index.mjs +1 -1
  171. package/package.json +2 -3
  172. package/dist/chunk-2NMVE5M4.mjs +0 -4
  173. package/dist/chunk-2SAKLSZ4.mjs +0 -4
  174. package/dist/chunk-2THNVSE5.mjs +0 -4
  175. package/dist/chunk-3KITWLRN.mjs +0 -4
  176. package/dist/chunk-3PHJWI4Q.mjs +0 -4
  177. package/dist/chunk-A2AEX4YB.mjs +0 -4
  178. package/dist/chunk-AVHFRD6D.mjs +0 -4
  179. package/dist/chunk-BADFWNRL.mjs +0 -4
  180. package/dist/chunk-CBLP4MXP.mjs +0 -4
  181. package/dist/chunk-FRKGQKEM.mjs +0 -4
  182. package/dist/chunk-G3WMXDFV.mjs +0 -5
  183. package/dist/chunk-HME6CJ6L.mjs +0 -1
  184. package/dist/chunk-JHYWAL24.mjs +0 -6
  185. package/dist/chunk-JVUSZPSP.mjs +0 -4
  186. package/dist/chunk-M245YHYF.mjs +0 -4
  187. package/dist/chunk-MNI6AM7Q.mjs +0 -4
  188. package/dist/chunk-O4GULNQE.mjs +0 -4
  189. package/dist/chunk-PEQOQ7BK.mjs +0 -4
  190. package/dist/chunk-RUOYGMOR.mjs +0 -4
  191. package/dist/chunk-UPQQQYZZ.mjs +0 -4
  192. package/dist/chunk-VGARU7ZT.mjs +0 -4
  193. package/dist/chunk-WN2LPOQP.mjs +0 -4
  194. package/dist/chunk-XKM35QQD.mjs +0 -4
@@ -1 +1 @@
1
- import{a}from"../../chunk-X57JQVKC.mjs";import"../../chunk-NZCHFTHJ.mjs";import"../../chunk-A3YDFYEB.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-KOXC4RIH.mjs";import"../../chunk-6OZUHBYJ.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-EBTFLN5U.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-VGARU7ZT.mjs";import"../../chunk-JVUSZPSP.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-ABGNIQRP.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
1
+ import{a}from"../../chunk-ED7T3BDO.mjs";import"../../chunk-OYZX5BM4.mjs";import"../../chunk-GN25OSET.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-LUM6KEWN.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-EBTFLN5U.mjs";import"../../chunk-I5NNEOCF.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-PH67DP3M.mjs";import"../../chunk-GHZ6CUY3.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-5RDLHKTK.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-BHWGOTCJ.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-PXLSH6S2.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var xt=Object.create;var se=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty;var Nt=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wt(t))!Ct.call(e,n)&&n!==r&&se(e,n,{get:()=>t[n],enumerable:!(o=yt(t,n))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?xt(Pt(e)):{},Ae(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),Rt=e=>Ae(se({},"__esModule",{value:!0}),e);var lr={};Nt(lr,{default:()=>vt});module.exports=Rt(lr);var Te=require("react"),me=require("framer-motion");var qe=require("class-variance-authority");var Ue=require("clsx");var ve="-",kt=e=>{let t=jt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(ve);return s[0]===""&&s.length!==1&&s.shift(),Ge(s,t)||Dt(i)},getConflictingClassGroupIds:(i,s)=>{let m=r[i]||[];return s&&o[i]?[...m,...o[i]]:m}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?Ge(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(ve);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Fe=/^\[(.+)\]$/,Dt=e=>{if(Fe.test(e)){let t=Fe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},jt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Mt(Object.entries(e.classGroups),r).forEach(([a,i])=>{he(i,o,a,t)}),o},he=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Be(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Tt(n)){he(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{he(i,Be(t,a),r,o)})})},Be=(e,t)=>{let r=e;return t.split(ve).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Tt=e=>e.isThemeGetter,Mt=(e,t)=>t?e.map(([r,o])=>{let n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,n]}):e,St=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ve="!",zt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,i=s=>{let m=[],h=0,u=0,w;for(let v=0;v<s.length;v++){let C=s[v];if(h===0){if(C===n&&(o||s.slice(v,v+a)===t)){m.push(s.slice(u,v)),u=v+a;continue}if(C==="/"){w=v;continue}}C==="["?h++:C==="]"&&h--}let d=m.length===0?s:s.substring(u),k=d.startsWith(Ve),R=k?d.substring(1):d,P=w&&w>u?w-u:void 0;return{modifiers:m,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:P}};return r?s=>r({className:s,parseClassName:i}):i},Lt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},It=e=>({cache:St(e.cacheSize),parseClassName:zt(e),...kt(e)}),Et=/\s+/,Ht=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Et),s="";for(let m=i.length-1;m>=0;m-=1){let h=i[m],{modifiers:u,hasImportantModifier:w,baseClassName:d,maybePostfixModifierPosition:k}=r(h),R=!!k,P=o(R?d.substring(0,k):d);if(!P){if(!R){s=h+(s.length>0?" "+s:s);continue}if(P=o(d),!P){s=h+(s.length>0?" "+s:s);continue}R=!1}let v=Lt(u).join(":"),C=w?v+Ve:v,j=C+P;if(a.includes(j))continue;a.push(j);let W=n(P,R);for(let E=0;E<W.length;++E){let re=W[E];a.push(C+re)}s=h+(s.length>0?" "+s:s)}return s};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Oe(t))&&(o&&(o+=" "),o+=r);return o}var Oe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Oe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,o,n,a=i;function i(m){let h=t.reduce((u,w)=>w(u),e());return r=It(h),o=r.cache.get,n=r.cache.set,a=s,s(m)}function s(m){let h=o(m);if(h)return h;let u=Ht(m,r);return n(m,u),u}return function(){return a(At.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},We=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bt=/^\d+\/\d+$/,Gt=new Set(["px","full","screen"]),Vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ot=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|qe|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Xe|min|max))|\Xe(calc|min|max|clamp)\(.+\)|^0$/,Wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$t=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>G(e)||Gt.has(e)||Bt.test(e),L=e=>V(e,"length",Qt),G=e=>!!e&&!Number.isNaN(Number(e)),be=e=>V(e,"number",G),_=e=>!!e&&Number.isInteger(Number(e)),Ut=e=>e.endsWith("%")&&G(e.slice(0,-1)),c=e=>We.test(e),I=e=>Vt.test(e),qt=new Set(["length","size","percentage"]),Xt=e=>V(e,qt,$e),Jt=e=>V(e,"position",$e),Kt=new Set(["image","url"]),Yt=e=>V(e,Kt,tr),Zt=e=>V(e,"",er),U=()=>!0,V=(e,t,r)=>{let o=We.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Qt=e=>Ot.test(e)&&!Wt.test(e),$e=()=>!1,er=e=>$t.test(e),tr=e=>_t.test(e);var rr=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),n=f("borderColor"),a=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),m=f("contrast"),h=f("grayscale"),u=f("hueRotate"),w=f("invert"),d=f("gap"),k=f("gradientColorStops"),R=f("gradientColorStopPositions"),P=f("inset"),v=f("margin"),C=f("opacity"),j=f("padding"),W=f("saturate"),E=f("scale"),re=f("sepia"),Me=f("skew"),Se=f("space"),ze=f("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",c,t],g=()=>[c,t],Le=()=>["",z,L],oe=()=>["auto",G,c],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",c],He=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[G,c];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[z,L],blur:["none","",I,c],brightness:S(),borderColor:[e],borderRadius:["none","","full",I,c],borderSpacing:g(),borderWidth:Le(),contrast:S(),grayscale:$(),hueRotate:S(),invert:$(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[Ut,L],inset:fe(),margin:fe(),opacity:S(),padding:g(),saturate:S(),scale:S(),sepia:$(),skew:S(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":He()}],"break-before":[{"break-before":He()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ie(),c]}],overflow:[{overflow:ue()}],"overflow-Xe":[{"overflow-Xe":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-Xe":[{"overscroll-Xe":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-Xe":[{"inset-Xe":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,c]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",_,c]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",_,c]},c]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[_,c]},c]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[d]}],"gap-Xe":[{"gap-Xe":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],qe:[{qe:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Xe":[{"space-Xe":[Se]}],"space-Xe-reverse":["space-Xe-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",I,L]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",G,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,L]}],"underline-offset":[{"underline-offset":["auto",z,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Xe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Xe","bl","Xe","tl"]},Yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-Xe":[{"rounded-Xe":[a]}],"rounded-Xe":[{"rounded-Xe":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-Xe":[{"divide-Xe":[s]}],"divide-Xe-reverse":["divide-Xe-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ae()}],"border-color":[{border:[n]}],"border-color-Xe":[{"border-Xe":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-Xe":[{"border-Xe":[n]}],"border-color-Xe":[{"border-Xe":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[z,c]}],"outline-w":[{outline:[z,L]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[z,L]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,Zt]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",I,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[w]}],saturate:[{saturate:[W]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Xe":[{"border-spacing-Xe":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-Xe":[{"scale-Xe":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[_,c]}],"translate-Xe":[{"translate-Xe":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-Xe":[{"skew-Xe":[Me]}],"skew-y":[{"skew-y":[Me]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Xe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-qe":[{"scroll-qe":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Xe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Xe":[{"touch-pan":["Xe","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,L,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Xe","overflow-y"],overscroll:["overscroll-Xe","overscroll-y"],inset:["inset-Xe","inset-y","start","end","top","right","bottom","left"],"inset-Xe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Xe","gap-y"],p:["px","py","ps","pe","qe","pr","pb","pl"],px:["pr","pl"],py:["qe","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Xe","rounded-Xe","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Xe":["rounded-br","rounded-bl"],"rounded-Xe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Xe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Xe","border-w-Xe"],"border-w-Xe":["border-w-r","border-w-Xe"],"border-w-y":["border-w-t","border-w-Xe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Xe","border-color-Xe"],"border-color-Xe":["border-color-r","border-color-Xe"],"border-color-y":["border-color-t","border-color-Xe"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-qe","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-qe","scroll-pb"],touch:["touch-Xe","touch-y","touch-pz"],"touch-Xe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var _e=Ft(rr);function p(...e){return _e((0,Ue.clsx)(e))}var Xe=require("react/jsx-runtime"),or=(0,qe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ne({className:e,variant:t,...r}){return(0,Xe.jsx)("div",{className:p(or({variant:t}),e),...r})}var Je=require("@radix-ui/react-slot"),Ye=T(require("react")),ar=(0,qe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Ye.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},a)=>(0,Xe.jsx)(e?Je.Slot:"button",{className:p(ar({className:t,size:r,variant:o})),ref:a,...n}));M.displayName="Button";function Qe(e,t){let[r,o]=(0,Te.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{o(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Te.useEffect)(()=>{n(r)},[]),[r,n]}var le=require("react-icons/fa");function tt({title:e,description:t,badge:r,primaryAction:o,secondaryAction:n,gradient:a,children:i,className:s}){let[m,h]=Qe(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),u=!n&&!t||m;return(0,Xe.jsxs)(me.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${s||""}`,children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Xe.jsx)(ne,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Xe.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Xe.jsxs)("div",{className:"flex items-center gap-3",children:[u&&o&&(0,Xe.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,Xe.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>h(!m),style:{lineHeight:0},children:m?(0,Xe.jsx)(le.FaChevronDown,{size:22}):(0,Xe.jsx)(le.FaChevronUp,{size:22})})]})]}),!u&&(0,Xe.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Xe.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Xe.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,Xe.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),i&&(0,Xe.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var O=require("lucide-react");var H=T(require("react"));var q=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));q.displayName="Card";var X=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("flex flex-col space-y-1.5 p-6",e),...t}));X.displayName="CardHeader";var J=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));J.displayName="CardTitle";var K=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));K.displayName="CardDescription";var Y=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("p-6 qe-0",e),...t}));Y.displayName="CardContent";var Z=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("flex items-center p-6 qe-0",e),...t}));Z.displayName="CardFooter";var rt=T(require("react")),Q=T(require("@radix-ui/react-progress"));var ye=rt.forwardRef(({className:e,value:t,...r},o)=>(0,Xe.jsx)(Q.Root,{ref:o,className:p("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,Xe.jsx)(Q.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));ye.displayName=Q.Root.displayName;function at({project:e,onOpen:t,onShare:r,className:o}){return(0,Xe.jsx)(me.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Xe.jsxs)(q,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Xe.jsxs)(X,{children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsx)(J,{children:e.name}),(0,Xe.jsxs)(ne,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Xe.jsx)(K,{children:e.description})]}),(0,Xe.jsxs)(Y,{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Xe.jsx)("span",{children:"Progress"}),(0,Xe.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Xe.jsx)(ye,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Xe.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(O.Users,{className:"mr-1 h-4 w-4"}),e.members," members"]}),(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(O.FileText,{className:"mr-1 h-4 w-4"}),e.files," files"]})]})]}),(0,Xe.jsxs)(Z,{className:"flex gap-2",children:[(0,Xe.jsx)(M,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Xe.jsx)(M,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>r?.(e),children:(0,Xe.jsx)(O.Share2,{className:"h-4 w-4"})})]})]})})}var st=T(require("react"));var we=st.forwardRef(({className:e,type:t,...r},o)=>(0,Xe.jsx)("input",{type:t,className:p("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));we.displayName="Input";var it=T(require("react")),ce=it.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("textarea",{className:p("flex min-h-[80px] w-full rounded border border-border 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",e),ref:r,...t}));ce.displayName="Textarea";var ee=T(require("@radix-ui/react-checkbox")),dt=T(require("react")),Pe=dt.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(ee.Root,{className:p("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Xe.jsx)(ee.Indicator,{className:p("flex items-center justify-center text-current"),children:(0,Xe.jsx)(O.Check,{className:"h-4 w-4"})})}));Pe.displayName=ee.Root.displayName;var mt=T(require("react")),Ce=T(require("@radix-ui/react-label"));var sr=(0,qe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),F=mt.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(Ce.Root,{ref:r,className:p(sr(),e),...t}));F.displayName=Ce.Root.displayName;var ft=({onSubmit:e,onCancel:t,isLoading:r=!1,initialData:o,className:n=""})=>{let[a,i]=(0,Te.useState)({name:o?.name||"",objectives:o?.objectives||"",workInstructions:o?.workInstructions||"",plan:o?.plan||!1}),[s,m]=(0,Te.useState)({}),h=()=>{let d={};return a.name.trim()?a.name.trim().length<3&&(d.name="Project name must be at least 3 characters"):d.name="Project name is required",a.objectives.trim()?a.objectives.trim().length<10&&(d.objectives="Please provide more detailed objectives (at least 10 characters)"):d.objectives="Project objectives are required",a.workInstructions.trim()?a.workInstructions.trim().length<20&&(d.workInstructions="Please provide more detailed work instructions (at least 20 characters)"):d.workInstructions="Work instructions are required",m(d),Object.keys(d).length===0},u=async d=>{if(d.preventDefault(),!!h())try{await e(a)}catch(k){console.error("Error submitting project form:",k)}},w=(d,k)=>{i(R=>({...R,[d]:k})),s[d]&&m(R=>({...R,[d]:void 0}))};return(0,Xe.jsxs)(q,{className:`w-full max-w-2xl ${n}`,children:[(0,Xe.jsxs)(X,{children:[(0,Xe.jsxs)(J,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(O.Plus,{className:"h-5 w-5"}),"Create New Project"]}),(0,Xe.jsx)(K,{children:"Set up a new project with clear objectives and work instructions to help your team collaborate effectively."})]}),(0,Xe.jsxs)("form",{onSubmit:u,children:[(0,Xe.jsxs)(Y,{className:"space-y-6",children:[(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"name",className:"text-sm font-medium",children:"Project Name *"}),(0,Xe.jsx)(we,{id:"name",type:"text",placeholder:"Enter project name",value:a.name,onChange:d=>w("name",d.target.value),className:s.name?"border-red-500 focus:border-red-500":"",disabled:r,maxLength:100}),s.name&&(0,Xe.jsx)("p",{className:"text-sm text-red-600",children:s.name})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"objectives",className:"text-sm font-medium",children:"Project Objectives *"}),(0,Xe.jsx)(ce,{id:"objectives",placeholder:"Describe the main goals and objectives of this project...",value:a.objectives,onChange:d=>w("objectives",d.target.value),className:`min-h-[100px] resize-y ${s.objectives?"border-red-500 focus:border-red-500":""}`,disabled:r,maxLength:1e3}),(0,Xe.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Xe.jsx)("span",{children:s.objectives&&(0,Xe.jsx)("span",{className:"text-red-600",children:s.objectives})}),(0,Xe.jsxs)("span",{children:[a.objectives.length,"/1000"]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"workInstructions",className:"text-sm font-medium",children:"Work Instructions *"}),(0,Xe.jsx)(ce,{id:"workInstructions",placeholder:"Provide detailed instructions on how the work should be carried out, including processes, standards, and expectations...",value:a.workInstructions,onChange:d=>w("workInstructions",d.target.value),className:`min-h-[120px] resize-y ${s.workInstructions?"border-red-500 focus:border-red-500":""}`,disabled:r,maxLength:2e3}),(0,Xe.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Xe.jsx)("span",{children:s.workInstructions&&(0,Xe.jsx)("span",{className:"text-red-600",children:s.workInstructions})}),(0,Xe.jsxs)("span",{children:[a.workInstructions.length,"/2000"]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-3",children:[(0,Xe.jsx)(F,{className:"text-sm font-medium",children:"Project Management"}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsx)(Pe,{id:"plan",checked:a.plan,onCheckedChange:d=>w("plan",d===!0),disabled:r}),(0,Xe.jsx)(F,{htmlFor:"plan",className:"text-sm text-gray-700 cursor-pointer",children:"Enable project planning and management features"})]}),(0,Xe.jsx)("p",{className:"text-xs text-gray-500 ml-6",children:"This will allow project managers to create sprints, assign tasks, and track progress."})]})]}),(0,Xe.jsxs)(Z,{className:"flex justify-end gap-3",children:[t&&(0,Xe.jsxs)(M,{type:"button",variant:"outline",onClick:t,disabled:r,className:"flex items-center gap-2",children:[(0,Xe.jsx)(O.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Xe.jsx)(M,{type:"submit",disabled:r,className:"flex items-center gap-2",children:r?(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(O.Loader2,{className:"h-4 w-4 animate-spin"}),"Creating..."]}):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(O.Plus,{className:"h-4 w-4"}),"Create Project"]})})]})]})]})};var te=T(require("react")),y=T(require("@radix-ui/react-dialog"));var bt=y.Root;var nr=y.Portal;var ht=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Overlay,{ref:r,className:p("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",e),...t}));ht.displayName=y.Overlay.displayName;var Re=te.forwardRef(({className:e,children:t,...r},o)=>(0,Xe.jsxs)(nr,{children:[(0,Xe.jsx)(ht,{}),(0,Xe.jsxs)(y.Content,{ref:o,className:p("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Xe-[-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",e),...r,children:[t,(0,Xe.jsxs)(y.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Xe.jsx)(O.X,{className:"h-4 w-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Re.displayName=y.Content.displayName;var ke=({className:e,...t})=>(0,Xe.jsx)("div",{className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ke.displayName="DialogHeader";var ir=({className:e,...t})=>(0,Xe.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Xe-2",e),...t});ir.displayName="DialogFooter";var De=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Title,{ref:r,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));De.displayName=y.Title.displayName;var je=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Description,{ref:r,className:p("text-sm text-muted-foreground",e),...t}));je.displayName=y.Description.displayName;function vt({projects:e=[],onAddProject:t,handleProjectOpen:r,handleProjectShare:o}){let[n,a]=(0,Te.useState)(!1),[i,s]=(0,Te.useState)(!1),m=async u=>{s(!0);try{await t(u),a(!1)}catch(w){console.error("Error creating project:",w)}finally{s(!1)}},h=()=>{a(!0)};return(0,Xe.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Xe.jsx)(me.AnimatePresence,{mode:"wait",children:(0,Xe.jsxs)(me.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Xe.jsx)(tt,{title:"Project Management",description:"Organise your work into projects to collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:h}}),(0,Xe.jsxs)("section",{className:"space-y-4 mt-8",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,Xe.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:e.map(u=>(0,Xe.jsx)(at,{project:u,onOpen:r,onShare:o},u.name))})]})]},"projects-index-view")}),(0,Xe.jsx)(bt,{open:n,onOpenChange:a,children:(0,Xe.jsxs)(Re,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Xe.jsxs)(ke,{className:"sr-only",children:[(0,Xe.jsx)(De,{children:"Create New Project"}),(0,Xe.jsx)(je,{children:"Fill out the form below to create a new project."})]}),(0,Xe.jsx)(ft,{onSubmit:m,onCancel:()=>a(!1),isLoading:i,className:"border-0 shadow-none"})]})})]})}
5
+ "use strict";"use client";var xt=Object.create;var se=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty;var Nt=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wt(t))!Ct.call(e,n)&&n!==r&&se(e,n,{get:()=>t[n],enumerable:!(o=yt(t,n))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?xt(Pt(e)):{},Ae(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),Rt=e=>Ae(se({},"__esModule",{value:!0}),e);var lr={};Nt(lr,{default:()=>vt});module.exports=Rt(lr);var Te=require("react"),me=require("motion/react");var qe=require("class-variance-authority");var Ue=require("clsx");var ve="-",kt=e=>{let t=jt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(ve);return s[0]===""&&s.length!==1&&s.shift(),Ge(s,t)||Dt(i)},getConflictingClassGroupIds:(i,s)=>{let m=r[i]||[];return s&&o[i]?[...m,...o[i]]:m}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?Ge(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(ve);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Fe=/^\[(.+)\]$/,Dt=e=>{if(Fe.test(e)){let t=Fe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},jt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Mt(Object.entries(e.classGroups),r).forEach(([a,i])=>{he(i,o,a,t)}),o},he=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Be(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Tt(n)){he(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{he(i,Be(t,a),r,o)})})},Be=(e,t)=>{let r=e;return t.split(ve).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Tt=e=>e.isThemeGetter,Mt=(e,t)=>t?e.map(([r,o])=>{let n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,n]}):e,St=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ve="!",zt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,i=s=>{let m=[],h=0,u=0,w;for(let v=0;v<s.length;v++){let C=s[v];if(h===0){if(C===n&&(o||s.slice(v,v+a)===t)){m.push(s.slice(u,v)),u=v+a;continue}if(C==="/"){w=v;continue}}C==="["?h++:C==="]"&&h--}let d=m.length===0?s:s.substring(u),k=d.startsWith(Ve),R=k?d.substring(1):d,P=w&&w>u?w-u:void 0;return{modifiers:m,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:P}};return r?s=>r({className:s,parseClassName:i}):i},Lt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},It=e=>({cache:St(e.cacheSize),parseClassName:zt(e),...kt(e)}),Et=/\s+/,Ht=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Et),s="";for(let m=i.length-1;m>=0;m-=1){let h=i[m],{modifiers:u,hasImportantModifier:w,baseClassName:d,maybePostfixModifierPosition:k}=r(h),R=!!k,P=o(R?d.substring(0,k):d);if(!P){if(!R){s=h+(s.length>0?" "+s:s);continue}if(P=o(d),!P){s=h+(s.length>0?" "+s:s);continue}R=!1}let v=Lt(u).join(":"),C=w?v+Ve:v,j=C+P;if(a.includes(j))continue;a.push(j);let W=n(P,R);for(let E=0;E<W.length;++E){let re=W[E];a.push(C+re)}s=h+(s.length>0?" "+s:s)}return s};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Oe(t))&&(o&&(o+=" "),o+=r);return o}var Oe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Oe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,o,n,a=i;function i(m){let h=t.reduce((u,w)=>w(u),e());return r=It(h),o=r.cache.get,n=r.cache.set,a=s,s(m)}function s(m){let h=o(m);if(h)return h;let u=Ht(m,r);return n(m,u),u}return function(){return a(At.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},We=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bt=/^\d+\/\d+$/,Gt=new Set(["px","full","screen"]),Vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ot=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|qe|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Xe|min|max))|\Xe(calc|min|max|clamp)\(.+\)|^0$/,Wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$t=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>G(e)||Gt.has(e)||Bt.test(e),L=e=>V(e,"length",Qt),G=e=>!!e&&!Number.isNaN(Number(e)),be=e=>V(e,"number",G),_=e=>!!e&&Number.isInteger(Number(e)),Ut=e=>e.endsWith("%")&&G(e.slice(0,-1)),c=e=>We.test(e),I=e=>Vt.test(e),qt=new Set(["length","size","percentage"]),Xt=e=>V(e,qt,$e),Jt=e=>V(e,"position",$e),Kt=new Set(["image","url"]),Yt=e=>V(e,Kt,tr),Zt=e=>V(e,"",er),U=()=>!0,V=(e,t,r)=>{let o=We.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Qt=e=>Ot.test(e)&&!Wt.test(e),$e=()=>!1,er=e=>$t.test(e),tr=e=>_t.test(e);var rr=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),n=f("borderColor"),a=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),m=f("contrast"),h=f("grayscale"),u=f("hueRotate"),w=f("invert"),d=f("gap"),k=f("gradientColorStops"),R=f("gradientColorStopPositions"),P=f("inset"),v=f("margin"),C=f("opacity"),j=f("padding"),W=f("saturate"),E=f("scale"),re=f("sepia"),Me=f("skew"),Se=f("space"),ze=f("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",c,t],g=()=>[c,t],Le=()=>["",z,L],oe=()=>["auto",G,c],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",c],He=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[G,c];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[z,L],blur:["none","",I,c],brightness:S(),borderColor:[e],borderRadius:["none","","full",I,c],borderSpacing:g(),borderWidth:Le(),contrast:S(),grayscale:$(),hueRotate:S(),invert:$(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[Ut,L],inset:fe(),margin:fe(),opacity:S(),padding:g(),saturate:S(),scale:S(),sepia:$(),skew:S(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":He()}],"break-before":[{"break-before":He()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ie(),c]}],overflow:[{overflow:ue()}],"overflow-Xe":[{"overflow-Xe":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-Xe":[{"overscroll-Xe":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-Xe":[{"inset-Xe":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,c]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",_,c]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",_,c]},c]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[_,c]},c]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[d]}],"gap-Xe":[{"gap-Xe":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],qe:[{qe:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Xe":[{"space-Xe":[Se]}],"space-Xe-reverse":["space-Xe-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",I,L]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",G,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,L]}],"underline-offset":[{"underline-offset":["auto",z,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Xe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Xe","bl","Xe","tl"]},Yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-Xe":[{"rounded-Xe":[a]}],"rounded-Xe":[{"rounded-Xe":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-w-Xe":[{"border-Xe":[s]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-Xe":[{"divide-Xe":[s]}],"divide-Xe-reverse":["divide-Xe-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ae()}],"border-color":[{border:[n]}],"border-color-Xe":[{"border-Xe":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-Xe":[{"border-Xe":[n]}],"border-color-Xe":[{"border-Xe":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[z,c]}],"outline-w":[{outline:[z,L]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[z,L]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,Zt]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",I,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[w]}],saturate:[{saturate:[W]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Xe":[{"border-spacing-Xe":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-Xe":[{"scale-Xe":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[_,c]}],"translate-Xe":[{"translate-Xe":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-Xe":[{"skew-Xe":[Me]}],"skew-y":[{"skew-y":[Me]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Xe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-qe":[{"scroll-qe":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Xe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Xe":[{"touch-pan":["Xe","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,L,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Xe","overflow-y"],overscroll:["overscroll-Xe","overscroll-y"],inset:["inset-Xe","inset-y","start","end","top","right","bottom","left"],"inset-Xe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Xe","gap-y"],p:["px","py","ps","pe","qe","pr","pb","pl"],px:["pr","pl"],py:["qe","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Xe","rounded-Xe","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Xe":["rounded-br","rounded-bl"],"rounded-Xe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Xe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Xe","border-w-Xe"],"border-w-Xe":["border-w-r","border-w-Xe"],"border-w-y":["border-w-t","border-w-Xe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Xe","border-color-Xe"],"border-color-Xe":["border-color-r","border-color-Xe"],"border-color-y":["border-color-t","border-color-Xe"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-qe","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-qe","scroll-pb"],touch:["touch-Xe","touch-y","touch-pz"],"touch-Xe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var _e=Ft(rr);function p(...e){return _e((0,Ue.clsx)(e))}var Xe=require("react/jsx-runtime"),or=(0,qe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ne({className:e,variant:t,...r}){return(0,Xe.jsx)("div",{className:p(or({variant:t}),e),...r})}var Je=require("@radix-ui/react-slot"),Ye=T(require("react")),ar=(0,qe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Ye.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},a)=>(0,Xe.jsx)(e?Je.Slot:"button",{className:p(ar({className:t,size:r,variant:o})),ref:a,...n}));M.displayName="Button";function Qe(e,t){let[r,o]=(0,Te.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{o(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Te.useEffect)(()=>{n(r)},[]),[r,n]}var le=require("react-icons/fa");function tt({title:e,description:t,badge:r,primaryAction:o,secondaryAction:n,gradient:a,children:i,className:s}){let[m,h]=Qe(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),u=!n&&!t||m;return(0,Xe.jsxs)(me.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${s||""}`,children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Xe.jsx)(ne,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Xe.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Xe.jsxs)("div",{className:"flex items-center gap-3",children:[u&&o&&(0,Xe.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,Xe.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>h(!m),style:{lineHeight:0},children:m?(0,Xe.jsx)(le.FaChevronDown,{size:22}):(0,Xe.jsx)(le.FaChevronUp,{size:22})})]})]}),!u&&(0,Xe.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Xe.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Xe.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,Xe.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),i&&(0,Xe.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var O=require("lucide-react");var H=T(require("react"));var q=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));q.displayName="Card";var X=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("flex flex-col space-y-1.5 p-6",e),...t}));X.displayName="CardHeader";var J=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));J.displayName="CardTitle";var K=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));K.displayName="CardDescription";var Y=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("p-6 qe-0",e),...t}));Y.displayName="CardContent";var Z=H.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("div",{ref:r,className:p("flex items-center p-6 qe-0",e),...t}));Z.displayName="CardFooter";var rt=T(require("react")),Q=T(require("@radix-ui/react-progress"));var ye=rt.forwardRef(({className:e,value:t,...r},o)=>(0,Xe.jsx)(Q.Root,{ref:o,className:p("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,Xe.jsx)(Q.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));ye.displayName=Q.Root.displayName;function at({project:e,onOpen:t,onShare:r,className:o}){return(0,Xe.jsx)(me.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Xe.jsxs)(q,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Xe.jsxs)(X,{children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsx)(J,{children:e.name}),(0,Xe.jsxs)(ne,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Xe.jsx)(K,{children:e.description})]}),(0,Xe.jsxs)(Y,{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Xe.jsx)("span",{children:"Progress"}),(0,Xe.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Xe.jsx)(ye,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Xe.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(O.Users,{className:"mr-1 h-4 w-4"}),e.members," members"]}),(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(O.FileText,{className:"mr-1 h-4 w-4"}),e.files," files"]})]})]}),(0,Xe.jsxs)(Z,{className:"flex gap-2",children:[(0,Xe.jsx)(M,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Xe.jsx)(M,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>r?.(e),children:(0,Xe.jsx)(O.Share2,{className:"h-4 w-4"})})]})]})})}var st=T(require("react"));var we=st.forwardRef(({className:e,type:t,...r},o)=>(0,Xe.jsx)("input",{type:t,className:p("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));we.displayName="Input";var it=T(require("react")),ce=it.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)("textarea",{className:p("flex min-h-[80px] w-full rounded border border-border 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",e),ref:r,...t}));ce.displayName="Textarea";var ee=T(require("@radix-ui/react-checkbox")),dt=T(require("react")),Pe=dt.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(ee.Root,{className:p("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Xe.jsx)(ee.Indicator,{className:p("flex items-center justify-center text-current"),children:(0,Xe.jsx)(O.Check,{className:"h-4 w-4"})})}));Pe.displayName=ee.Root.displayName;var mt=T(require("react")),Ce=T(require("@radix-ui/react-label"));var sr=(0,qe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),F=mt.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(Ce.Root,{ref:r,className:p(sr(),e),...t}));F.displayName=Ce.Root.displayName;var ft=({onSubmit:e,onCancel:t,isLoading:r=!1,initialData:o,className:n=""})=>{let[a,i]=(0,Te.useState)({name:o?.name||"",objectives:o?.objectives||"",workInstructions:o?.workInstructions||"",plan:o?.plan||!1}),[s,m]=(0,Te.useState)({}),h=()=>{let d={};return a.name.trim()?a.name.trim().length<3&&(d.name="Project name must be at least 3 characters"):d.name="Project name is required",a.objectives.trim()?a.objectives.trim().length<10&&(d.objectives="Please provide more detailed objectives (at least 10 characters)"):d.objectives="Project objectives are required",a.workInstructions.trim()?a.workInstructions.trim().length<20&&(d.workInstructions="Please provide more detailed work instructions (at least 20 characters)"):d.workInstructions="Work instructions are required",m(d),Object.keys(d).length===0},u=async d=>{if(d.preventDefault(),!!h())try{await e(a)}catch(k){console.error("Error submitting project form:",k)}},w=(d,k)=>{i(R=>({...R,[d]:k})),s[d]&&m(R=>({...R,[d]:void 0}))};return(0,Xe.jsxs)(q,{className:`w-full max-w-2xl ${n}`,children:[(0,Xe.jsxs)(X,{children:[(0,Xe.jsxs)(J,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(O.Plus,{className:"h-5 w-5"}),"Create New Project"]}),(0,Xe.jsx)(K,{children:"Set up a new project with clear objectives and work instructions to help your team collaborate effectively."})]}),(0,Xe.jsxs)("form",{onSubmit:u,children:[(0,Xe.jsxs)(Y,{className:"space-y-6",children:[(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"name",className:"text-sm font-medium",children:"Project Name *"}),(0,Xe.jsx)(we,{id:"name",type:"text",placeholder:"Enter project name",value:a.name,onChange:d=>w("name",d.target.value),className:s.name?"border-red-500 focus:border-red-500":"",disabled:r,maxLength:100}),s.name&&(0,Xe.jsx)("p",{className:"text-sm text-red-600",children:s.name})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"objectives",className:"text-sm font-medium",children:"Project Objectives *"}),(0,Xe.jsx)(ce,{id:"objectives",placeholder:"Describe the main goals and objectives of this project...",value:a.objectives,onChange:d=>w("objectives",d.target.value),className:`min-h-[100px] resize-y ${s.objectives?"border-red-500 focus:border-red-500":""}`,disabled:r,maxLength:1e3}),(0,Xe.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Xe.jsx)("span",{children:s.objectives&&(0,Xe.jsx)("span",{className:"text-red-600",children:s.objectives})}),(0,Xe.jsxs)("span",{children:[a.objectives.length,"/1000"]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(F,{htmlFor:"workInstructions",className:"text-sm font-medium",children:"Work Instructions *"}),(0,Xe.jsx)(ce,{id:"workInstructions",placeholder:"Provide detailed instructions on how the work should be carried out, including processes, standards, and expectations...",value:a.workInstructions,onChange:d=>w("workInstructions",d.target.value),className:`min-h-[120px] resize-y ${s.workInstructions?"border-red-500 focus:border-red-500":""}`,disabled:r,maxLength:2e3}),(0,Xe.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Xe.jsx)("span",{children:s.workInstructions&&(0,Xe.jsx)("span",{className:"text-red-600",children:s.workInstructions})}),(0,Xe.jsxs)("span",{children:[a.workInstructions.length,"/2000"]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-3",children:[(0,Xe.jsx)(F,{className:"text-sm font-medium",children:"Project Management"}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsx)(Pe,{id:"plan",checked:a.plan,onCheckedChange:d=>w("plan",d===!0),disabled:r}),(0,Xe.jsx)(F,{htmlFor:"plan",className:"text-sm text-gray-700 cursor-pointer",children:"Enable project planning and management features"})]}),(0,Xe.jsx)("p",{className:"text-xs text-gray-500 ml-6",children:"This will allow project managers to create sprints, assign tasks, and track progress."})]})]}),(0,Xe.jsxs)(Z,{className:"flex justify-end gap-3",children:[t&&(0,Xe.jsxs)(M,{type:"button",variant:"outline",onClick:t,disabled:r,className:"flex items-center gap-2",children:[(0,Xe.jsx)(O.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Xe.jsx)(M,{type:"submit",disabled:r,className:"flex items-center gap-2",children:r?(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(O.Loader2,{className:"h-4 w-4 animate-spin"}),"Creating..."]}):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(O.Plus,{className:"h-4 w-4"}),"Create Project"]})})]})]})]})};var te=T(require("react")),y=T(require("@radix-ui/react-dialog"));var bt=y.Root;var nr=y.Portal;var ht=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Overlay,{ref:r,className:p("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",e),...t}));ht.displayName=y.Overlay.displayName;var Re=te.forwardRef(({className:e,children:t,...r},o)=>(0,Xe.jsxs)(nr,{children:[(0,Xe.jsx)(ht,{}),(0,Xe.jsxs)(y.Content,{ref:o,className:p("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Xe-[-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",e),...r,children:[t,(0,Xe.jsxs)(y.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Xe.jsx)(O.X,{className:"h-4 w-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Re.displayName=y.Content.displayName;var ke=({className:e,...t})=>(0,Xe.jsx)("div",{className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ke.displayName="DialogHeader";var ir=({className:e,...t})=>(0,Xe.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Xe-2",e),...t});ir.displayName="DialogFooter";var De=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Title,{ref:r,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));De.displayName=y.Title.displayName;var je=te.forwardRef(({className:e,...t},r)=>(0,Xe.jsx)(y.Description,{ref:r,className:p("text-sm text-muted-foreground",e),...t}));je.displayName=y.Description.displayName;function vt({projects:e=[],onAddProject:t,handleProjectOpen:r,handleProjectShare:o}){let[n,a]=(0,Te.useState)(!1),[i,s]=(0,Te.useState)(!1),m=async u=>{s(!0);try{await t(u),a(!1)}catch(w){console.error("Error creating project:",w)}finally{s(!1)}},h=()=>{a(!0)};return(0,Xe.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Xe.jsx)(me.AnimatePresence,{mode:"wait",children:(0,Xe.jsxs)(me.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Xe.jsx)(tt,{title:"Project Management",description:"Organise your work into projects to collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:h}}),(0,Xe.jsxs)("section",{className:"space-y-4 mt-8",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,Xe.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:e.map(u=>(0,Xe.jsx)(at,{project:u,onOpen:r,onShare:o},u.name))})]})]},"projects-index-view")}),(0,Xe.jsx)(bt,{open:n,onOpenChange:a,children:(0,Xe.jsxs)(Re,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Xe.jsxs)(ke,{className:"sr-only",children:[(0,Xe.jsx)(De,{children:"Create New Project"}),(0,Xe.jsx)(je,{children:"Fill out the form below to create a new project."})]}),(0,Xe.jsx)(ft,{onSubmit:m,onCancel:()=>a(!1),isLoading:i,className:"border-0 shadow-none"})]})})]})}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-2SAKLSZ4.mjs";import"../../chunk-PEQOQ7BK.mjs";import"../../chunk-D3B2YO7G.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../chunk-U67OTPTT.mjs";import"../../chunk-D3B2YO7G.mjs";import"../../chunk-2RGAV55J.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";var ct=Object.create;var de=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var pt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var ft=(e,r)=>{for(var o in r)de(e,o,{get:r[o],enumerable:!0})},Ee=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ut(r))!gt.call(e,a)&&a!==o&&de(e,a,{get:()=>r[a],enumerable:!(n=mt(r,a))||n.enumerable});return e};var V=(e,r,o)=>(o=e!=null?ct(pt(e)):{},Ee(r||!e||!e.__esModule?de(o,"default",{value:e,enumerable:!0}):o,e)),vt=e=>Ee(de({},"__esModule",{value:!0}),e);var gr={};ft(gr,{TasksView:()=>dt,default:()=>pr});module.exports=vt(gr);var $=require("react");var We=require("clsx");var Re="-",bt=e=>{let r=yt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{let l=s.split(Re);return l[0]===""&&l.length!==1&&l.shift(),Be(l,r)||ht(s)},getConflictingClassGroupIds:(s,l)=>{let c=o[s]||[];return l&&n[s]?[...c,...n[s]]:c}}},Be=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],n=r.nextPart.get(o),a=n?Be(e.slice(1),n):void 0;if(a)return a;if(r.validators.length===0)return;let i=e.join(Re);return r.validators.find(({validator:s})=>s(i))?.classGroupId},ze=/^\[(.+)\]$/,ht=e=>{if(ze.test(e)){let r=ze.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},yt=e=>{let{theme:r,prefix:o}=e,n={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{Ce(s,n,i,r)}),n},Ce=(e,r,o,n)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?r:Ae(r,a);i.classGroupId=o;return}if(typeof a=="function"){if(xt(a)){Ce(a(n),r,o,n);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{Ce(s,Ae(r,i),o,n)})})},Ae=(e,r)=>{let o=e;return r.split(Re).forEach(n=>{o.nextPart.has(n)||o.nextPart.set(n,{nextPart:new Map,validators:[]}),o=o.nextPart.get(n)}),o},xt=e=>e.isThemeGetter,wt=(e,r)=>r?e.map(([o,n])=>{let a=n.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[r+s,l])):i);return[o,a]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,n=new Map,a=(i,s)=>{o.set(i,s),r++,r>e&&(r=0,n=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},He="!",Rt=e=>{let{separator:r,experimentalParseClassName:o}=e,n=r.length===1,a=r[0],i=r.length,s=l=>{let c=[],m=0,f=0,y;for(let x=0;x<l.length;x++){let T=l[x];if(m===0){if(T===a&&(n||l.slice(x,x+i)===r)){c.push(l.slice(f,x)),f=x+i;continue}if(T==="/"){y=x;continue}}T==="["?m++:T==="]"&&m--}let I=c.length===0?l:l.substring(f),M=I.startsWith(He),A=M?I.substring(1):I,S=y&&y>f?y-f:void 0;return{modifiers:c,hasImportantModifier:M,baseClassName:A,maybePostfixModifierPosition:S}};return o?l=>o({className:l,parseClassName:s}):s},Nt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(n=>{n[0]==="["?(r.push(...o.sort(),n),o=[]):o.push(n)}),r.push(...o.sort()),r},St=e=>({cache:Ct(e.cacheSize),parseClassName:Rt(e),...bt(e)}),Dt=/\s+/,Pt=(e,r)=>{let{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:a}=r,i=[],s=e.trim().split(Dt),l="";for(let c=s.length-1;c>=0;c-=1){let m=s[c],{modifiers:f,hasImportantModifier:y,baseClassName:I,maybePostfixModifierPosition:M}=o(m),A=!!M,S=n(A?I.substring(0,M):I);if(!S){if(!A){l=m+(l.length>0?" "+l:l);continue}if(S=n(I),!S){l=m+(l.length>0?" "+l:l);continue}A=!1}let x=Nt(f).join(":"),T=y?x+He:x,L=T+S;if(i.includes(L))continue;i.push(L);let k=a(S,A);for(let _=0;_<k.length;++_){let d=k[_];i.push(T+d)}l=m+(l.length>0?" "+l:l)}return l};function Tt(){let e=0,r,o,n="";for(;e<arguments.length;)(r=arguments[e++])&&(o=Fe(r))&&(n&&(n+=" "),n+=o);return n}var Fe=e=>{if(typeof e=="string")return e;let r,o="";for(let n=0;n<e.length;n++)e[n]&&(r=Fe(e[n]))&&(o&&(o+=" "),o+=r);return o};function kt(e,...r){let o,n,a,i=s;function s(c){let m=r.reduce((f,y)=>y(f),e());return o=St(m),n=o.cache.get,a=o.cache.set,i=l,l(c)}function l(c){let m=n(c);if(m)return m;let f=Pt(c,o);return a(c,f),f}return function(){return i(Tt.apply(null,arguments))}}var v=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},Ve=/^\[(?:([a-_e-]+):)?(.+)\]$/i,It=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,At=/^(inset_)?-?((\d+)?\.?(\d+)[a-_e]+|0)_-?((\d+)?\.?(\d+)[a-_e]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>te(e)||Lt.has(e)||It.test(e),q=e=>re(e,"length",jt),te=e=>!!e&&!Number.isNaN(Number(e)),we=e=>re(e,"number",te),ie=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&te(e.slice(0,-1)),u=e=>Ve.test(e),J=e=>Mt.test(e),Ft=new Set(["length","size","percentage"]),Vt=e=>re(e,Ft,Ge),Gt=e=>re(e,"position",Ge),Ot=new Set(["image","url"]),Wt=e=>re(e,Ot,_t),Ut=e=>re(e,"",$_e),ae=()=>!0,re=(e,r,o)=>{let n=Ve.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):o(n[2]):!1},jt=e=>Et.test(e)&&!zt.test(e),Ge=()=>!1,$_e=e=>At.test(e),_t=e=>Bt.test(e);var qt=()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),n=v("brightness"),a=v("borderColor"),i=v("borderRadius"),s=v("borderSpacing"),l=v("borderWidth"),c=v("contrast"),m=v("grayscale"),f=v("hueRotate"),y=v("invert"),I=v("gap"),M=v("gradientColorStops"),A=v("gradientColorStopPositions"),S=v("inset"),x=v("margin"),T=v("opacity"),L=v("padding"),k=v("saturate"),_=v("scale"),d=v("sepia"),R=v("skew"),B=v("space"),F=v("translate"),be=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",u,r],h=()=>[u,r],ke=()=>["",O,q],se=()=>["auto",te,u],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",u],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[te,u];return{cacheSize:500,separator:":",theme:{colors:[ae],spacing:[O,q],blur:["none","",J,u],brightness:G(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:h(),borderWidth:ke(),contrast:G(),grayscale:oe(),hueRotate:G(),invert:oe(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Ht,q],inset:ye(),margin:ye(),opacity:G(),padding:h(),saturate:G(),scale:G(),sepia:oe(),skew:G(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ie(),u]}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],_e:[{_e:["auto",ie,u]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",ie,u]}],"grid-cols":[{"grid-cols":[ae]}],"col-start-end":[{col:["auto",{span:["full",ie,u]},u]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[ae]}],"row-start-end":[{row:["auto",{span:[ie,u]},u]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[I]}],"gap-x":[{"gap-x":[I]}],"gap-y":[{"gap-y":[I]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,r]}],"min-w":[{"min-w":[u,r,"min","max","fit"]}],"max-w":[{"max-w":[u,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,r,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[ae]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",te,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,q]}],"underline-offset":[{"underline-offset":["auto",O,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Gt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["_e","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-_e":[{"rounded-_e":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-_e":[{"rounded-_e":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-_e":[{"border-_e":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-_e":[{"border-_e":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[O,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,Ut]}],"shadow-color":[{shadow:[ae]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[y]}],saturate:[{saturate:[k]}],sepia:[{sepia:[d]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ie,u]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,q,we]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-_e","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-_e","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-_e"],"rounded-_e":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-_e","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-_e","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-_e","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-_e","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=kt(qt);function g(...e){return Oe((0,We.clsx)(e))}var Ue=require("@radix-ui/react-slot"),je=require("class-variance-authority"),$e=V(require("react")),_e=require("react/jsx-runtime"),Jt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),E=$e.forwardRef(({asChild:e=!1,className:r,size:o,variant:n,...a},i)=>(0,_e.jsx)(e?Ue.Slot:"button",{className:g(Jt({className:r,size:o,variant:n})),ref:i,...a}));E.displayName="Button";var qe=V(require("react"));var H=qe.forwardRef(({className:e,type:r,...o},n)=>(0,_e.jsx)("input",{type:r,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...o}));H.displayName="Input";var Ke=V(require("react")),ce=Ke.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("textarea",{className:g("flex min-h-[80px] w-full rounded border border-border 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",e),ref:o,...r}));ce.displayName="Textarea";var p=V(require("@radix-ui/react-select")),Z=require("lucide-react"),K=V(require("react")),X=p.Root;var Y=p.Value,W=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),ref:n,...o,children:[e,(0,_e.jsx)(p.Icon,{asChild:!0,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=p.Trigger.displayName;var Ye=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var Ze=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));Ze.displayName=p.ScrollDownButton.displayName;var U=K.forwardRef(({children:e,className:r,position:o="popper",...n},a)=>(0,_e.jsx)(p.Portal,{children:(0,_e.jsxs)(p.Content,{className:g("relative _e-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,ref:a,...n,children:[(0,_e.jsx)(Ye,{}),(0,_e.jsx)(p.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,_e.jsx)(Ze,{})]})}));U.displayName=p.Content.displayName;var Kt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...r}));Kt.displayName=p.Label.displayName;var b=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),ref:n,...o,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(p.ItemIndicator,{children:(0,_e.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,_e.jsx)(p.ItemText,{children:e})]}));b.displayName=p.Item.displayName;var Xt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...r}));Xt.displayName=p.Separator.displayName;var Q=V(require("react"));var j=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...r}));j.displayName="Card";var Yt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...r}));Yt.displayName="CardHeader";var Zt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...r}));Zt.displayName="CardTitle";var Qt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...r}));Qt.displayName="CardDescription";var Ne=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...r}));Ne.displayName="CardContent";var er=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...r}));er.displayName="CardFooter";var tr=(0,je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function me({className:e,variant:r,...o}){return(0,_e.jsx)("div",{className:g(tr({variant:r}),e),...o})}var ne=V(require("react")),D=V(require("@radix-ui/react-dialog"));var Se=D.Root;var rr=D.Portal;var rt=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Overlay,{ref:o,className:g("fixed inset-0 _e-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",e),...r}));rt.displayName=D.Overlay.displayName;var ue=ne.forwardRef(({className:e,children:r,...o},n)=>(0,_e.jsxs)(rr,{children:[(0,_e.jsx)(rt,{}),(0,_e.jsxs)(D.Content,{ref:n,className:g("fixed left-[50%] top-[50%] _e-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",e),...o,children:[r,(0,_e.jsxs)(D.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_e.jsx)(Z.X,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=D.Content.displayName;var pe=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});pe.displayName="DialogHeader";var or=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});or.displayName="DialogFooter";var ge=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...r}));ge.displayName=D.Title.displayName;var ir=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...r}));ir.displayName=D.Description.displayName;var ot=V(require("react")),De=V(require("@radix-ui/react-label"));var ar=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),w=ot.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(De.Root,{ref:o,className:g(ar(),e),...r}));w.displayName=De.Root.displayName;var st=require("framer-motion");function nt(e,r){let[o,n]=(0,$.useState)(()=>{if(typeof window>"u")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),a=i=>{try{n(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,$.useEffect)(()=>{a(o)},[]),[o,a]}var ve=require("react-icons/fa");function lt({title:e,description:r,badge:o,primaryAction:n,secondaryAction:a,gradient:i,children:s,className:l}){let[c,m]=nt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!r),f=!a&&!r||c;return(0,_e.jsxs)(st.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,_e.jsx)(me,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,_e.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[f&&n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),(a||r)&&(0,_e.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!c),style:{lineHeight:0},children:c?(0,_e.jsx)(ve.FaChevronDown,{size:22}):(0,_e.jsx)(ve.FaChevronUp,{size:22})})]})]}),!f&&(0,_e.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,_e.jsxs)("div",{className:"space-y-4",children:[(0,_e.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,_e.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),a&&(0,_e.jsx)(E,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),s&&(0,_e.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var nr=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},sr=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),lr=e=>{let[r,o]=e.split(":"),n=new Date;return n.setHours(parseInt(r),parseInt(o)),n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},Pe=(e,r)=>{let o=new Date,n=new Date(e);if(r){let[a,i]=r.split(":");n.setHours(parseInt(a),parseInt(i))}return n<o},Te=e=>{let r=new Date;return e.toDateString()===r.toDateString()},dr=e=>{let r=new Date;return r.setDate(r.getDate()+1),e.toDateString()===r.toDateString()},cr=({colleagues:e,onAddReminder:r,open:o,setOpen:n})=>{let[a,i]=(0,$.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),s=c=>{c.preventDefault();let m=e.find(y=>y?.id===a.colleagueId);if(!m){console.error("No valid colleague selected");return}let f={title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:m,isCompleted:!1,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,priority:a.priority,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0};r(f),n(!1),i({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},l=e.filter(Boolean);return(0,_e.jsx)(Se,{open:o,onOpenChange:n,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Add New Reminder"})}),(0,_e.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[(0,_e.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"title",children:"Title"}),(0,_e.jsx)(H,{id:"title",value:a.title,onChange:c=>i({...a,title:c.target.value}),placeholder:"Enter reminder title",required:!0})]})}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"description",children:"Description"}),(0,_e.jsx)(ce,{id:"description",value:a.description,onChange:c=>i({...a,description:c.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"dueDate",type:"date",value:a.dueDate,onChange:c=>i({...a,dueDate:c.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"dueTime",type:"time",value:a.dueTime,onChange:c=>i({...a,dueTime:c.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:a.colleagueId,onValueChange:c=>i({...a,colleagueId:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:l.map(c=>(0,_e.jsx)(b,{value:c.id,children:c.name},c.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"isRecurring",checked:a.isRecurring,onChange:c=>i({...a,isRecurring:c.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:a.recurrencePattern,onValueChange:c=>i({...a,recurrencePattern:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:c=>i({...a,recurrenceInterval:parseInt(c.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:()=>n(!1),children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Add Reminder"})]})]})]})})},mr=({reminder:e,colleagues:r,onUpdateReminder:o,open:n,onClose:a})=>{let[i,s]=(0,$.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague?.id||"",priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""}),l=m=>{m.preventDefault();let f=r.find(y=>y?.id===i.colleagueId);if(!f){console.error("No valid colleague selected");return}o(e.id,{title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:f,priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(y=>y.trim()):void 0}),a()},c=r.filter(Boolean);return(0,_e.jsx)(Se,{open:n,onOpenChange:a,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Edit Reminder"})}),(0,_e.jsxs)("form",{onSubmit:l,className:"space-y-4",children:[(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-title",children:"Title"}),(0,_e.jsx)(H,{id:"edit-title",value:i.title,onChange:m=>s({...i,title:m.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-priority",children:"Priority"}),(0,_e.jsxs)(X,{value:i.priority,onValueChange:m=>s({...i,priority:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"low",children:"\u{1F7E2} Low"}),(0,_e.jsx)(b,{value:"medium",children:"\u{1F7E1} Medium"}),(0,_e.jsx)(b,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-description",children:"Description"}),(0,_e.jsx)(ce,{id:"edit-description",value:i.description,onChange:m=>s({...i,description:m.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"edit-dueDate",type:"date",value:i.dueDate,onChange:m=>s({...i,dueDate:m.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"edit-dueTime",type:"time",value:i.dueTime,onChange:m=>s({...i,dueTime:m.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:i.colleagueId,onValueChange:m=>s({...i,colleagueId:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:c.map(m=>(0,_e.jsx)(b,{value:m.id,children:m.name},m.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:i.isRecurring,onChange:m=>s({...i,isRecurring:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:i.recurrencePattern,onValueChange:m=>s({...i,recurrencePattern:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"edit-recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:m=>s({...i,recurrenceInterval:parseInt(m.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:i.reminderEnabled,onChange:m=>s({...i,reminderEnabled:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,_e.jsxs)("div",{className:"pl-6",children:[(0,_e.jsx)(w,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,_e.jsxs)(X,{value:i.reminderMinutes.toString(),onValueChange:m=>s({...i,reminderMinutes:parseInt(m)}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"5",children:"5 minutes before"}),(0,_e.jsx)(b,{value:"15",children:"15 minutes before"}),(0,_e.jsx)(b,{value:"30",children:"30 minutes before"}),(0,_e.jsx)(b,{value:"60",children:"1 hour before"}),(0,_e.jsx)(b,{value:"1440",children:"1 day before"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,_e.jsx)(H,{id:"edit-tags",value:i.tags,onChange:m=>s({...i,tags:m.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:a,children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Save Changes"})]})]})]})})},ur=({reminder:e,colleagues:r,onUpdateReminder:o,onDeleteReminder:n})=>{let[a,i]=(0,$.useState)(!1);if(!e||!e.id)return null;let s=Pe(e.dueDate,e.dueTime),l=Te(e.dueDate),c=dr(e.dueDate),m=()=>{o(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},f=()=>l?"Today":c?"Tomorrow":s&&!e.isCompleted?"Overdue":sr(e.dueDate);return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(mr,{reminder:e,colleagues:r,onUpdateReminder:o,open:a,onClose:()=>i(!1)}),(0,_e.jsx)(j,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${s&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,_e.jsx)(Ne,{className:"p-4",children:(0,_e.jsxs)("div",{className:"flex items-start justify-between",children:[(0,_e.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,_e.jsx)("button",{onClick:m,className:"mt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,_e.jsx)(Z.CheckCircle,{className:"h-5 w-5"}):(0,_e.jsx)(Z.Circle,{className:"h-5 w-5"})}),(0,_e.jsxs)("div",{className:"flex-1",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,_e.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,_e.jsx)("span",{className:"text-sm",children:nr(e.priority)}),e.isRecurring&&(0,_e.jsx)(Z.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,_e.jsx)(Z.Bell,{className:"h-4 w-4 text-success"})]}),(0,_e.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Calendar,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:s&&!e.isCompleted?"text-destructive font-medium":"",children:f()})]}),e.dueTime&&(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Clock,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:lr(e.dueTime)})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.User,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:e.colleague?.name||"Unknown Colleague"})]})]}),e.tags&&e.tags.length>0&&(0,_e.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map((y,I)=>(0,_e.jsx)(me,{variant:"secondary",className:"text-xs",children:y},I))})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>i(!0),className:"h-8 w-8 p-0",children:(0,_e.jsx)(Z.Edit2,{className:"h-4 w-4"})}),(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>n(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,_e.jsx)(Z.Trash2,{className:"h-4 w-4"})})]})]})})})]})},dt=({initialReminders:e=[],initialColleagues:r=[],onAddReminder:o,onUpdateReminder:n,onDeleteReminder:a})=>{let[i,s]=(0,$.useState)(e.filter(Boolean)),[l]=(0,$.useState)(r.filter(Boolean)),[c,m]=(0,$.useState)("all"),[f,y]=(0,$.useState)(""),[I,M]=(0,$.useState)(!1),A=d=>{if(!d.title||!d.colleague?.id){console.error("Invalid reminder data:",d);return}let R={...d,id:Date.now().toString(),createdAt:new Date};s(B=>[...B,R]),o?.(d)},S=(d,R)=>{if(!d){console.error("No reminder ID provided for update");return}s(B=>B.map(F=>F?.id===d?{...F,...R}:F)),n?.(d,R)},x=d=>{if(!d){console.error("No reminder ID provided for deletion");return}s(R=>R.filter(B=>B?.id!==d)),a?.(d)},L=i.filter(d=>{if(!d)return!1;if(f){let R=f.toLowerCase();if(!(d.title.toLowerCase().includes(R)||d.description.toLowerCase().includes(R)||d.colleague?.name?.toLowerCase().includes(R)||d.tags?.some(F=>F.toLowerCase().includes(R))))return!1}switch(c){case"pending":return!d.isCompleted;case"completed":return d.isCompleted;case"overdue":return!d.isCompleted&&Pe(d.dueDate,d.dueTime);case"today":return Te(new Date(d.dueDate));default:return!0}}).sort((d,R)=>{if(!d||!R)return 0;if(d.isCompleted&&!R.isCompleted)return 1;if(!d.isCompleted&&R.isCompleted)return-1;let B={high:3,medium:2,low:1},F=B[R.priority]-B[d.priority];return F!==0?F:d.dueDate.getTime()-R.dueDate.getTime()}),k={total:i.filter(Boolean).length,pending:i.filter(d=>d&&!d.isCompleted).length,completed:i.filter(d=>d&&d.isCompleted).length,overdue:i.filter(d=>d&&!d.isCompleted&&Pe(d.dueDate,d.dueTime)).length,today:i.filter(d=>d&&Te(new Date(d.dueDate))).length},_=l.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return(0,_e.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,_e.jsx)(lt,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{M(!0)}}}),(0,_e.jsxs)("div",{className:"h-full bg-background",children:[(0,_e.jsx)(cr,{colleagues:l,onAddReminder:A,open:I,setOpen:M}),(0,_e.jsxs)("div",{className:"p-6",children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,_e.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,_e.jsxs)(E,{className:"flex items-center space-x-2",onClick:()=>M(!0),children:[(0,_e.jsx)(Z.Plus,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:"Add Reminder"})]})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-foreground",children:k.total}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-primary",children:k.pending}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-success",children:k.completed}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-destructive",children:k.overdue}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-warning",children:k.today}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,_e.jsx)("div",{className:"flex-1",children:(0,_e.jsx)(H,{placeholder:"Search reminders...",value:f,onChange:d=>y(d.target.value),className:"max-w-md"})}),(0,_e.jsxs)(X,{value:c,onValueChange:d=>m(d),children:[(0,_e.jsx)(W,{className:"w-40",children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsxs)(b,{value:"all",children:["All (",k.total,")"]}),(0,_e.jsxs)(b,{value:"pending",children:["Pending (",k.pending,")"]}),(0,_e.jsxs)(b,{value:"completed",children:["Completed (",k.completed,")"]}),(0,_e.jsxs)(b,{value:"overdue",children:["Overdue (",k.overdue,")"]}),(0,_e.jsxs)(b,{value:"today",children:["Today (",k.today,")"]})]})]})]}),(0,_e.jsx)("div",{className:"space-y-4",children:L.length===0?(0,_e.jsxs)(j,{className:"p-8 text-center",children:[(0,_e.jsx)("div",{className:"text-muted-foreground",children:f||c!=="all"?"No reminders match your filters":"No reminders yet"}),!f&&c==="all"&&(0,_e.jsx)("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):L.map(d=>d&&(0,_e.jsx)(ur,{reminder:d,colleagues:l,onUpdateReminder:S,onDeleteReminder:x},d.id))})]})]})]})},pr=dt;0&&(module.exports={TasksView});
5
+ "use strict";var ct=Object.create;var de=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var pt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var ft=(e,r)=>{for(var o in r)de(e,o,{get:r[o],enumerable:!0})},Ee=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ut(r))!gt.call(e,a)&&a!==o&&de(e,a,{get:()=>r[a],enumerable:!(n=mt(r,a))||n.enumerable});return e};var V=(e,r,o)=>(o=e!=null?ct(pt(e)):{},Ee(r||!e||!e.__esModule?de(o,"default",{value:e,enumerable:!0}):o,e)),vt=e=>Ee(de({},"__esModule",{value:!0}),e);var gr={};ft(gr,{TasksView:()=>dt,default:()=>pr});module.exports=vt(gr);var $=require("react");var We=require("clsx");var Re="-",bt=e=>{let r=yt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{let l=s.split(Re);return l[0]===""&&l.length!==1&&l.shift(),Be(l,r)||ht(s)},getConflictingClassGroupIds:(s,l)=>{let c=o[s]||[];return l&&n[s]?[...c,...n[s]]:c}}},Be=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],n=r.nextPart.get(o),a=n?Be(e.slice(1),n):void 0;if(a)return a;if(r.validators.length===0)return;let i=e.join(Re);return r.validators.find(({validator:s})=>s(i))?.classGroupId},ze=/^\[(.+)\]$/,ht=e=>{if(ze.test(e)){let r=ze.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},yt=e=>{let{theme:r,prefix:o}=e,n={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{Ce(s,n,i,r)}),n},Ce=(e,r,o,n)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?r:Ae(r,a);i.classGroupId=o;return}if(typeof a=="function"){if(xt(a)){Ce(a(n),r,o,n);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{Ce(s,Ae(r,i),o,n)})})},Ae=(e,r)=>{let o=e;return r.split(Re).forEach(n=>{o.nextPart.has(n)||o.nextPart.set(n,{nextPart:new Map,validators:[]}),o=o.nextPart.get(n)}),o},xt=e=>e.isThemeGetter,wt=(e,r)=>r?e.map(([o,n])=>{let a=n.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[r+s,l])):i);return[o,a]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,n=new Map,a=(i,s)=>{o.set(i,s),r++,r>e&&(r=0,n=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},He="!",Rt=e=>{let{separator:r,experimentalParseClassName:o}=e,n=r.length===1,a=r[0],i=r.length,s=l=>{let c=[],m=0,f=0,y;for(let x=0;x<l.length;x++){let T=l[x];if(m===0){if(T===a&&(n||l.slice(x,x+i)===r)){c.push(l.slice(f,x)),f=x+i;continue}if(T==="/"){y=x;continue}}T==="["?m++:T==="]"&&m--}let I=c.length===0?l:l.substring(f),M=I.startsWith(He),A=M?I.substring(1):I,S=y&&y>f?y-f:void 0;return{modifiers:c,hasImportantModifier:M,baseClassName:A,maybePostfixModifierPosition:S}};return o?l=>o({className:l,parseClassName:s}):s},Nt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(n=>{n[0]==="["?(r.push(...o.sort(),n),o=[]):o.push(n)}),r.push(...o.sort()),r},St=e=>({cache:Ct(e.cacheSize),parseClassName:Rt(e),...bt(e)}),Dt=/\s+/,Pt=(e,r)=>{let{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:a}=r,i=[],s=e.trim().split(Dt),l="";for(let c=s.length-1;c>=0;c-=1){let m=s[c],{modifiers:f,hasImportantModifier:y,baseClassName:I,maybePostfixModifierPosition:M}=o(m),A=!!M,S=n(A?I.substring(0,M):I);if(!S){if(!A){l=m+(l.length>0?" "+l:l);continue}if(S=n(I),!S){l=m+(l.length>0?" "+l:l);continue}A=!1}let x=Nt(f).join(":"),T=y?x+He:x,L=T+S;if(i.includes(L))continue;i.push(L);let k=a(S,A);for(let _=0;_<k.length;++_){let d=k[_];i.push(T+d)}l=m+(l.length>0?" "+l:l)}return l};function Tt(){let e=0,r,o,n="";for(;e<arguments.length;)(r=arguments[e++])&&(o=Fe(r))&&(n&&(n+=" "),n+=o);return n}var Fe=e=>{if(typeof e=="string")return e;let r,o="";for(let n=0;n<e.length;n++)e[n]&&(r=Fe(e[n]))&&(o&&(o+=" "),o+=r);return o};function kt(e,...r){let o,n,a,i=s;function s(c){let m=r.reduce((f,y)=>y(f),e());return o=St(m),n=o.cache.get,a=o.cache.set,i=l,l(c)}function l(c){let m=n(c);if(m)return m;let f=Pt(c,o);return a(c,f),f}return function(){return i(Tt.apply(null,arguments))}}var v=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},Ve=/^\[(?:([a-_e-]+):)?(.+)\]$/i,It=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,At=/^(inset_)?-?((\d+)?\.?(\d+)[a-_e]+|0)_-?((\d+)?\.?(\d+)[a-_e]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>te(e)||Lt.has(e)||It.test(e),q=e=>re(e,"length",jt),te=e=>!!e&&!Number.isNaN(Number(e)),we=e=>re(e,"number",te),ie=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&te(e.slice(0,-1)),u=e=>Ve.test(e),J=e=>Mt.test(e),Ft=new Set(["length","size","percentage"]),Vt=e=>re(e,Ft,Ge),Gt=e=>re(e,"position",Ge),Ot=new Set(["image","url"]),Wt=e=>re(e,Ot,_t),Ut=e=>re(e,"",$_e),ae=()=>!0,re=(e,r,o)=>{let n=Ve.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):o(n[2]):!1},jt=e=>Et.test(e)&&!zt.test(e),Ge=()=>!1,$_e=e=>At.test(e),_t=e=>Bt.test(e);var qt=()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),n=v("brightness"),a=v("borderColor"),i=v("borderRadius"),s=v("borderSpacing"),l=v("borderWidth"),c=v("contrast"),m=v("grayscale"),f=v("hueRotate"),y=v("invert"),I=v("gap"),M=v("gradientColorStops"),A=v("gradientColorStopPositions"),S=v("inset"),x=v("margin"),T=v("opacity"),L=v("padding"),k=v("saturate"),_=v("scale"),d=v("sepia"),R=v("skew"),B=v("space"),F=v("translate"),be=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",u,r],h=()=>[u,r],ke=()=>["",O,q],se=()=>["auto",te,u],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",u],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[te,u];return{cacheSize:500,separator:":",theme:{colors:[ae],spacing:[O,q],blur:["none","",J,u],brightness:G(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:h(),borderWidth:ke(),contrast:G(),grayscale:oe(),hueRotate:G(),invert:oe(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Ht,q],inset:ye(),margin:ye(),opacity:G(),padding:h(),saturate:G(),scale:G(),sepia:oe(),skew:G(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ie(),u]}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],_e:[{_e:["auto",ie,u]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",ie,u]}],"grid-cols":[{"grid-cols":[ae]}],"col-start-end":[{col:["auto",{span:["full",ie,u]},u]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[ae]}],"row-start-end":[{row:["auto",{span:[ie,u]},u]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[I]}],"gap-x":[{"gap-x":[I]}],"gap-y":[{"gap-y":[I]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,r]}],"min-w":[{"min-w":[u,r,"min","max","fit"]}],"max-w":[{"max-w":[u,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,r,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[ae]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",te,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,q]}],"underline-offset":[{"underline-offset":["auto",O,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Gt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["_e","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-_e":[{"rounded-_e":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-_e":[{"rounded-_e":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-_e":[{"border-_e":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-_e":[{"border-_e":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[O,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,Ut]}],"shadow-color":[{shadow:[ae]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[y]}],saturate:[{saturate:[k]}],sepia:[{sepia:[d]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ie,u]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,q,we]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-_e","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-_e","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-_e"],"rounded-_e":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-_e","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-_e","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-_e","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-_e","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=kt(qt);function g(...e){return Oe((0,We.clsx)(e))}var Ue=require("@radix-ui/react-slot"),je=require("class-variance-authority"),$e=V(require("react")),_e=require("react/jsx-runtime"),Jt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),E=$e.forwardRef(({asChild:e=!1,className:r,size:o,variant:n,...a},i)=>(0,_e.jsx)(e?Ue.Slot:"button",{className:g(Jt({className:r,size:o,variant:n})),ref:i,...a}));E.displayName="Button";var qe=V(require("react"));var H=qe.forwardRef(({className:e,type:r,...o},n)=>(0,_e.jsx)("input",{type:r,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...o}));H.displayName="Input";var Ke=V(require("react")),ce=Ke.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("textarea",{className:g("flex min-h-[80px] w-full rounded border border-border 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",e),ref:o,...r}));ce.displayName="Textarea";var p=V(require("@radix-ui/react-select")),Z=require("lucide-react"),K=V(require("react")),X=p.Root;var Y=p.Value,W=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),ref:n,...o,children:[e,(0,_e.jsx)(p.Icon,{asChild:!0,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=p.Trigger.displayName;var Ye=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var Ze=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));Ze.displayName=p.ScrollDownButton.displayName;var U=K.forwardRef(({children:e,className:r,position:o="popper",...n},a)=>(0,_e.jsx)(p.Portal,{children:(0,_e.jsxs)(p.Content,{className:g("relative _e-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,ref:a,...n,children:[(0,_e.jsx)(Ye,{}),(0,_e.jsx)(p.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,_e.jsx)(Ze,{})]})}));U.displayName=p.Content.displayName;var Kt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...r}));Kt.displayName=p.Label.displayName;var b=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),ref:n,...o,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(p.ItemIndicator,{children:(0,_e.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,_e.jsx)(p.ItemText,{children:e})]}));b.displayName=p.Item.displayName;var Xt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...r}));Xt.displayName=p.Separator.displayName;var Q=V(require("react"));var j=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...r}));j.displayName="Card";var Yt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...r}));Yt.displayName="CardHeader";var Zt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...r}));Zt.displayName="CardTitle";var Qt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...r}));Qt.displayName="CardDescription";var Ne=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...r}));Ne.displayName="CardContent";var er=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...r}));er.displayName="CardFooter";var tr=(0,je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function me({className:e,variant:r,...o}){return(0,_e.jsx)("div",{className:g(tr({variant:r}),e),...o})}var ne=V(require("react")),D=V(require("@radix-ui/react-dialog"));var Se=D.Root;var rr=D.Portal;var rt=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Overlay,{ref:o,className:g("fixed inset-0 _e-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",e),...r}));rt.displayName=D.Overlay.displayName;var ue=ne.forwardRef(({className:e,children:r,...o},n)=>(0,_e.jsxs)(rr,{children:[(0,_e.jsx)(rt,{}),(0,_e.jsxs)(D.Content,{ref:n,className:g("fixed left-[50%] top-[50%] _e-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",e),...o,children:[r,(0,_e.jsxs)(D.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_e.jsx)(Z.X,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=D.Content.displayName;var pe=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});pe.displayName="DialogHeader";var or=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});or.displayName="DialogFooter";var ge=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...r}));ge.displayName=D.Title.displayName;var ir=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(D.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...r}));ir.displayName=D.Description.displayName;var ot=V(require("react")),De=V(require("@radix-ui/react-label"));var ar=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),w=ot.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(De.Root,{ref:o,className:g(ar(),e),...r}));w.displayName=De.Root.displayName;var st=require("motion/react");function nt(e,r){let[o,n]=(0,$.useState)(()=>{if(typeof window>"u")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),a=i=>{try{n(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,$.useEffect)(()=>{a(o)},[]),[o,a]}var ve=require("react-icons/fa");function lt({title:e,description:r,badge:o,primaryAction:n,secondaryAction:a,gradient:i,children:s,className:l}){let[c,m]=nt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!r),f=!a&&!r||c;return(0,_e.jsxs)(st.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,_e.jsx)(me,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,_e.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[f&&n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),(a||r)&&(0,_e.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!c),style:{lineHeight:0},children:c?(0,_e.jsx)(ve.FaChevronDown,{size:22}):(0,_e.jsx)(ve.FaChevronUp,{size:22})})]})]}),!f&&(0,_e.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,_e.jsxs)("div",{className:"space-y-4",children:[(0,_e.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,_e.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),a&&(0,_e.jsx)(E,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),s&&(0,_e.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var nr=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},sr=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),lr=e=>{let[r,o]=e.split(":"),n=new Date;return n.setHours(parseInt(r),parseInt(o)),n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},Pe=(e,r)=>{let o=new Date,n=new Date(e);if(r){let[a,i]=r.split(":");n.setHours(parseInt(a),parseInt(i))}return n<o},Te=e=>{let r=new Date;return e.toDateString()===r.toDateString()},dr=e=>{let r=new Date;return r.setDate(r.getDate()+1),e.toDateString()===r.toDateString()},cr=({colleagues:e,onAddReminder:r,open:o,setOpen:n})=>{let[a,i]=(0,$.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),s=c=>{c.preventDefault();let m=e.find(y=>y?.id===a.colleagueId);if(!m){console.error("No valid colleague selected");return}let f={title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:m,isCompleted:!1,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,priority:a.priority,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0};r(f),n(!1),i({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},l=e.filter(Boolean);return(0,_e.jsx)(Se,{open:o,onOpenChange:n,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Add New Reminder"})}),(0,_e.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[(0,_e.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"title",children:"Title"}),(0,_e.jsx)(H,{id:"title",value:a.title,onChange:c=>i({...a,title:c.target.value}),placeholder:"Enter reminder title",required:!0})]})}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"description",children:"Description"}),(0,_e.jsx)(ce,{id:"description",value:a.description,onChange:c=>i({...a,description:c.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"dueDate",type:"date",value:a.dueDate,onChange:c=>i({...a,dueDate:c.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"dueTime",type:"time",value:a.dueTime,onChange:c=>i({...a,dueTime:c.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:a.colleagueId,onValueChange:c=>i({...a,colleagueId:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:l.map(c=>(0,_e.jsx)(b,{value:c.id,children:c.name},c.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"isRecurring",checked:a.isRecurring,onChange:c=>i({...a,isRecurring:c.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:a.recurrencePattern,onValueChange:c=>i({...a,recurrencePattern:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:c=>i({...a,recurrenceInterval:parseInt(c.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:()=>n(!1),children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Add Reminder"})]})]})]})})},mr=({reminder:e,colleagues:r,onUpdateReminder:o,open:n,onClose:a})=>{let[i,s]=(0,$.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague?.id||"",priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""}),l=m=>{m.preventDefault();let f=r.find(y=>y?.id===i.colleagueId);if(!f){console.error("No valid colleague selected");return}o(e.id,{title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:f,priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(y=>y.trim()):void 0}),a()},c=r.filter(Boolean);return(0,_e.jsx)(Se,{open:n,onOpenChange:a,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Edit Reminder"})}),(0,_e.jsxs)("form",{onSubmit:l,className:"space-y-4",children:[(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-title",children:"Title"}),(0,_e.jsx)(H,{id:"edit-title",value:i.title,onChange:m=>s({...i,title:m.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-priority",children:"Priority"}),(0,_e.jsxs)(X,{value:i.priority,onValueChange:m=>s({...i,priority:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"low",children:"\u{1F7E2} Low"}),(0,_e.jsx)(b,{value:"medium",children:"\u{1F7E1} Medium"}),(0,_e.jsx)(b,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-description",children:"Description"}),(0,_e.jsx)(ce,{id:"edit-description",value:i.description,onChange:m=>s({...i,description:m.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"edit-dueDate",type:"date",value:i.dueDate,onChange:m=>s({...i,dueDate:m.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"edit-dueTime",type:"time",value:i.dueTime,onChange:m=>s({...i,dueTime:m.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:i.colleagueId,onValueChange:m=>s({...i,colleagueId:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:c.map(m=>(0,_e.jsx)(b,{value:m.id,children:m.name},m.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:i.isRecurring,onChange:m=>s({...i,isRecurring:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:i.recurrencePattern,onValueChange:m=>s({...i,recurrencePattern:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"edit-recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:m=>s({...i,recurrenceInterval:parseInt(m.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:i.reminderEnabled,onChange:m=>s({...i,reminderEnabled:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,_e.jsxs)("div",{className:"pl-6",children:[(0,_e.jsx)(w,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,_e.jsxs)(X,{value:i.reminderMinutes.toString(),onValueChange:m=>s({...i,reminderMinutes:parseInt(m)}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"5",children:"5 minutes before"}),(0,_e.jsx)(b,{value:"15",children:"15 minutes before"}),(0,_e.jsx)(b,{value:"30",children:"30 minutes before"}),(0,_e.jsx)(b,{value:"60",children:"1 hour before"}),(0,_e.jsx)(b,{value:"1440",children:"1 day before"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,_e.jsx)(H,{id:"edit-tags",value:i.tags,onChange:m=>s({...i,tags:m.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:a,children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Save Changes"})]})]})]})})},ur=({reminder:e,colleagues:r,onUpdateReminder:o,onDeleteReminder:n})=>{let[a,i]=(0,$.useState)(!1);if(!e||!e.id)return null;let s=Pe(e.dueDate,e.dueTime),l=Te(e.dueDate),c=dr(e.dueDate),m=()=>{o(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},f=()=>l?"Today":c?"Tomorrow":s&&!e.isCompleted?"Overdue":sr(e.dueDate);return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(mr,{reminder:e,colleagues:r,onUpdateReminder:o,open:a,onClose:()=>i(!1)}),(0,_e.jsx)(j,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${s&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,_e.jsx)(Ne,{className:"p-4",children:(0,_e.jsxs)("div",{className:"flex items-start justify-between",children:[(0,_e.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,_e.jsx)("button",{onClick:m,className:"mt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,_e.jsx)(Z.CheckCircle,{className:"h-5 w-5"}):(0,_e.jsx)(Z.Circle,{className:"h-5 w-5"})}),(0,_e.jsxs)("div",{className:"flex-1",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,_e.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,_e.jsx)("span",{className:"text-sm",children:nr(e.priority)}),e.isRecurring&&(0,_e.jsx)(Z.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,_e.jsx)(Z.Bell,{className:"h-4 w-4 text-success"})]}),(0,_e.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Calendar,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:s&&!e.isCompleted?"text-destructive font-medium":"",children:f()})]}),e.dueTime&&(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Clock,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:lr(e.dueTime)})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.User,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:e.colleague?.name||"Unknown Colleague"})]})]}),e.tags&&e.tags.length>0&&(0,_e.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map((y,I)=>(0,_e.jsx)(me,{variant:"secondary",className:"text-xs",children:y},I))})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>i(!0),className:"h-8 w-8 p-0",children:(0,_e.jsx)(Z.Edit2,{className:"h-4 w-4"})}),(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>n(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,_e.jsx)(Z.Trash2,{className:"h-4 w-4"})})]})]})})})]})},dt=({initialReminders:e=[],initialColleagues:r=[],onAddReminder:o,onUpdateReminder:n,onDeleteReminder:a})=>{let[i,s]=(0,$.useState)(e.filter(Boolean)),[l]=(0,$.useState)(r.filter(Boolean)),[c,m]=(0,$.useState)("all"),[f,y]=(0,$.useState)(""),[I,M]=(0,$.useState)(!1),A=d=>{if(!d.title||!d.colleague?.id){console.error("Invalid reminder data:",d);return}let R={...d,id:Date.now().toString(),createdAt:new Date};s(B=>[...B,R]),o?.(d)},S=(d,R)=>{if(!d){console.error("No reminder ID provided for update");return}s(B=>B.map(F=>F?.id===d?{...F,...R}:F)),n?.(d,R)},x=d=>{if(!d){console.error("No reminder ID provided for deletion");return}s(R=>R.filter(B=>B?.id!==d)),a?.(d)},L=i.filter(d=>{if(!d)return!1;if(f){let R=f.toLowerCase();if(!(d.title.toLowerCase().includes(R)||d.description.toLowerCase().includes(R)||d.colleague?.name?.toLowerCase().includes(R)||d.tags?.some(F=>F.toLowerCase().includes(R))))return!1}switch(c){case"pending":return!d.isCompleted;case"completed":return d.isCompleted;case"overdue":return!d.isCompleted&&Pe(d.dueDate,d.dueTime);case"today":return Te(new Date(d.dueDate));default:return!0}}).sort((d,R)=>{if(!d||!R)return 0;if(d.isCompleted&&!R.isCompleted)return 1;if(!d.isCompleted&&R.isCompleted)return-1;let B={high:3,medium:2,low:1},F=B[R.priority]-B[d.priority];return F!==0?F:d.dueDate.getTime()-R.dueDate.getTime()}),k={total:i.filter(Boolean).length,pending:i.filter(d=>d&&!d.isCompleted).length,completed:i.filter(d=>d&&d.isCompleted).length,overdue:i.filter(d=>d&&!d.isCompleted&&Pe(d.dueDate,d.dueTime)).length,today:i.filter(d=>d&&Te(new Date(d.dueDate))).length},_=l.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return(0,_e.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,_e.jsx)(lt,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{M(!0)}}}),(0,_e.jsxs)("div",{className:"h-full bg-background",children:[(0,_e.jsx)(cr,{colleagues:l,onAddReminder:A,open:I,setOpen:M}),(0,_e.jsxs)("div",{className:"p-6",children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,_e.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,_e.jsxs)(E,{className:"flex items-center space-x-2",onClick:()=>M(!0),children:[(0,_e.jsx)(Z.Plus,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:"Add Reminder"})]})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-foreground",children:k.total}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-primary",children:k.pending}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-success",children:k.completed}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-destructive",children:k.overdue}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-warning",children:k.today}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,_e.jsx)("div",{className:"flex-1",children:(0,_e.jsx)(H,{placeholder:"Search reminders...",value:f,onChange:d=>y(d.target.value),className:"max-w-md"})}),(0,_e.jsxs)(X,{value:c,onValueChange:d=>m(d),children:[(0,_e.jsx)(W,{className:"w-40",children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsxs)(b,{value:"all",children:["All (",k.total,")"]}),(0,_e.jsxs)(b,{value:"pending",children:["Pending (",k.pending,")"]}),(0,_e.jsxs)(b,{value:"completed",children:["Completed (",k.completed,")"]}),(0,_e.jsxs)(b,{value:"overdue",children:["Overdue (",k.overdue,")"]}),(0,_e.jsxs)(b,{value:"today",children:["Today (",k.today,")"]})]})]})]}),(0,_e.jsx)("div",{className:"space-y-4",children:L.length===0?(0,_e.jsxs)(j,{className:"p-8 text-center",children:[(0,_e.jsx)("div",{className:"text-muted-foreground",children:f||c!=="all"?"No reminders match your filters":"No reminders yet"}),!f&&c==="all"&&(0,_e.jsx)("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):L.map(d=>d&&(0,_e.jsx)(ur,{reminder:d,colleagues:l,onUpdateReminder:S,onDeleteReminder:x},d.id))})]})]})]})},pr=dt;0&&(module.exports={TasksView});
@@ -1 +1 @@
1
- import{a,b}from"../../chunk-NZCHFTHJ.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TasksView,b as default};
1
+ import{a,b}from"../../chunk-OYZX5BM4.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TasksView,b as default};