cortex-react-components 2.26.3 → 2.26.5

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 (200) hide show
  1. package/dist/{chunk-BDNY6OKE.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-2GZQYAN3.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-UX5OJ3WS.mjs → chunk-3ANJOET7.mjs} +1 -1
  4. package/dist/{chunk-HB57GPGK.mjs → chunk-3M5KHST3.mjs} +1 -1
  5. package/dist/{chunk-NXG2Y4N4.mjs → chunk-4SRUEQTP.mjs} +1 -1
  6. package/dist/{chunk-AGWQ5S2Z.mjs → chunk-5NIEZE7A.mjs} +1 -1
  7. package/dist/chunk-6YHCNPFB.mjs +4 -0
  8. package/dist/{chunk-PRK2XFAZ.mjs → chunk-7OMPPFGG.mjs} +1 -1
  9. package/dist/{chunk-CNCT3JZV.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  10. package/dist/{chunk-WDZOGIT2.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  11. package/dist/{chunk-R3SDBXF2.mjs → chunk-CKU2T3AN.mjs} +1 -1
  12. package/dist/{chunk-RIFUOB7A.mjs → chunk-EFNFK7TR.mjs} +1 -1
  13. package/dist/{chunk-T36QUKC6.mjs → chunk-F64CA5CH.mjs} +1 -1
  14. package/dist/{chunk-VDN4LQSS.mjs → chunk-F6DMXMR4.mjs} +1 -1
  15. package/dist/{chunk-KRLNPNMZ.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  16. package/dist/{chunk-CJ2ZX7QN.mjs → chunk-FMXCT6LU.mjs} +1 -1
  17. package/dist/{chunk-BGADMIWV.mjs → chunk-FYQBRCQM.mjs} +1 -1
  18. package/dist/{chunk-JLUX7EHB.mjs → chunk-GAZHKHGB.mjs} +1 -1
  19. package/dist/{chunk-5KS3DITB.mjs → chunk-GETYSIZV.mjs} +1 -1
  20. package/dist/chunk-GLZEHRPY.mjs +4 -0
  21. package/dist/chunk-HD6E7KI2.mjs +4 -0
  22. package/dist/{chunk-M74BIPBM.mjs → chunk-HDKHF3EA.mjs} +1 -1
  23. package/dist/{chunk-BN747TQM.mjs → chunk-HKMNAXLM.mjs} +1 -1
  24. package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
  25. package/dist/{chunk-6LY5CH7J.mjs → chunk-JCWFPKF3.mjs} +1 -1
  26. package/dist/{chunk-OP6ZWZIM.mjs → chunk-JVTCOOUV.mjs} +1 -1
  27. package/dist/{chunk-DJ2KA3MS.mjs → chunk-KBLVWXLK.mjs} +1 -1
  28. package/dist/{chunk-S3P6OGB7.mjs → chunk-KVLUT4U2.mjs} +1 -1
  29. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  30. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  31. package/dist/chunk-LCEEFZH7.mjs +4 -0
  32. package/dist/chunk-LEF6M5ZD.mjs +4 -0
  33. package/dist/{chunk-ERHNVIOZ.mjs → chunk-LHO4WFYP.mjs} +1 -1
  34. package/dist/{chunk-JT65KF7C.mjs → chunk-MO4HRQEL.mjs} +1 -1
  35. package/dist/{chunk-DKRRVTCV.mjs → chunk-MS7YIAWP.mjs} +1 -1
  36. package/dist/chunk-MXMW65GM.mjs +4 -0
  37. package/dist/{chunk-GIL2SMPM.mjs → chunk-O24GFE6Q.mjs} +1 -1
  38. package/dist/chunk-P2B3OITE.mjs +4 -0
  39. package/dist/{chunk-PZZTGPEO.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  40. package/dist/{chunk-23XORW7A.mjs → chunk-P7S6XFU4.mjs} +1 -1
  41. package/dist/{chunk-4NHQXOKZ.mjs → chunk-PNUBVBSR.mjs} +1 -1
  42. package/dist/{chunk-66ODXUVL.mjs → chunk-PTZT4QJW.mjs} +1 -1
  43. package/dist/{chunk-YJ7XPZWV.mjs → chunk-QUMUO63J.mjs} +1 -1
  44. package/dist/{chunk-JUFFNFV6.mjs → chunk-R6AYIVIR.mjs} +1 -1
  45. package/dist/{chunk-67PJ7D4O.mjs → chunk-RS4VD3ML.mjs} +1 -1
  46. package/dist/{chunk-CTTBF7F4.mjs → chunk-RS4WAAGI.mjs} +1 -1
  47. package/dist/{chunk-Y62OBV2E.mjs → chunk-U3FYDDE2.mjs} +1 -1
  48. package/dist/chunk-U3PUWUVM.mjs +4 -0
  49. package/dist/{chunk-DVE2KPLR.mjs → chunk-WH6JZSIA.mjs} +1 -1
  50. package/dist/{chunk-PXLSH6S2.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  51. package/dist/{chunk-I6OBIS4J.mjs → chunk-ZG5N4C4S.mjs} +1 -1
  52. package/dist/components/AdvancedComponents/AppSidebar.d.ts +3 -2
  53. package/dist/components/AdvancedComponents/AppSidebar.js +1 -2
  54. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  55. package/dist/components/AdvancedComponents/app-header.js +1 -1
  56. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  57. package/dist/components/AdvancedComponents/index.js +1 -1
  58. package/dist/components/AdvancedComponents/index.mjs +1 -1
  59. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  60. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  61. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  62. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  63. package/dist/components/Blocks/Banner.mjs +1 -1
  64. package/dist/components/Blocks/CallToAction.mjs +1 -1
  65. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  66. package/dist/components/Blocks/Content.mjs +1 -1
  67. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  68. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  69. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  70. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  71. package/dist/components/Blocks/index.mjs +1 -1
  72. package/dist/components/Cards/ContentCard.mjs +1 -1
  73. package/dist/components/Cards/FeatureCard.mjs +1 -1
  74. package/dist/components/Cards/index.mjs +1 -1
  75. package/dist/components/Chat/CopilotInterface.js +3 -3
  76. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  77. package/dist/components/Chat/demo-long-messages.js +5 -5
  78. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  79. package/dist/components/Chat/demo-tests.js +5 -5
  80. package/dist/components/Chat/demo-tests.mjs +1 -1
  81. package/dist/components/Chat/demo.js +3 -3
  82. package/dist/components/Chat/demo.mjs +1 -1
  83. package/dist/components/Chat/example-usage.js +3 -3
  84. package/dist/components/Chat/example-usage.mjs +1 -1
  85. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  86. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  87. package/dist/components/Chat/index.js +3 -3
  88. package/dist/components/Chat/index.mjs +1 -1
  89. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  90. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  91. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  92. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  93. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -5
  94. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  95. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  96. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  97. package/dist/components/DigitalColleagues/Views/index.js +5 -5
  98. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  99. package/dist/components/DigitalColleagues/index.js +5 -5
  100. package/dist/components/DigitalColleagues/index.mjs +1 -1
  101. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  102. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  103. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  104. package/dist/components/Foundary/MainPage.mjs +1 -1
  105. package/dist/components/Foundary/Pages/dashboardpage.js +6 -6
  106. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  107. package/dist/components/Foundary/Views/ColleaguesView.d.ts +12 -1
  108. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  109. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  110. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  111. package/dist/components/Foundary/Views/index.js +5 -5
  112. package/dist/components/Foundary/Views/index.mjs +1 -1
  113. package/dist/components/Foundary/colleague-card.js +1 -1
  114. package/dist/components/Foundary/colleague-card.mjs +1 -1
  115. package/dist/components/Foundary/colleague-form.d.ts +12 -1
  116. package/dist/components/Foundary/colleague-form.js +1 -1
  117. package/dist/components/Foundary/colleague-form.mjs +1 -1
  118. package/dist/components/Foundary/file-edit.mjs +1 -1
  119. package/dist/components/Foundary/foundary-clone.js +1 -1
  120. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  121. package/dist/components/Foundary/foundary-layout.d.ts +2 -1
  122. package/dist/components/Foundary/foundary-layout.js +1 -1
  123. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  124. package/dist/components/Foundary/index.js +5 -5
  125. package/dist/components/Foundary/index.mjs +1 -1
  126. package/dist/components/Foundary/knowledge-search.js +1 -1
  127. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  128. package/dist/components/Foundary/types.d.ts +32 -9
  129. package/dist/components/HeaderFooter/Header.mjs +1 -1
  130. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  131. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  132. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  133. package/dist/components/HeaderFooter/index.mjs +1 -1
  134. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  135. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  136. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  137. package/dist/components/Heros/PostHero/index.mjs +1 -1
  138. package/dist/components/Heros/RenderHero.mjs +1 -1
  139. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  140. package/dist/components/Heros/index.mjs +1 -1
  141. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  142. package/dist/components/Layouts/Print.mjs +1 -1
  143. package/dist/components/Layouts/SlideShow.mjs +1 -1
  144. package/dist/components/Layouts/index.mjs +1 -1
  145. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  146. package/dist/components/Menus/SidebarRight.mjs +1 -1
  147. package/dist/components/Menus/index.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/RichText/index.mjs +1 -1
  150. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  151. package/dist/components/Payload/index.mjs +1 -1
  152. package/dist/components/Projects/FileView.js +1 -1
  153. package/dist/components/Projects/FileView.mjs +1 -1
  154. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  155. package/dist/components/Projects/ProjectPage.js +5 -5
  156. package/dist/components/Projects/ProjectPage.mjs +1 -1
  157. package/dist/components/Projects/ProjectView.js +1 -1
  158. package/dist/components/Projects/ProjectView.mjs +1 -1
  159. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  160. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  161. package/dist/components/Projects/file-list.mjs +1 -1
  162. package/dist/components/Projects/index.mjs +1 -1
  163. package/dist/components/dc-temp/index.js +1 -1
  164. package/dist/components/dc-temp/index.mjs +1 -1
  165. package/dist/components/index.js +20 -20
  166. package/dist/components/index.mjs +1 -1
  167. package/dist/components/ui/index.mjs +1 -1
  168. package/dist/components/ui/sidebar.mjs +1 -1
  169. package/dist/index.js +27 -27
  170. package/dist/index.mjs +1 -1
  171. package/dist/metafile-cjs.json +1 -1
  172. package/dist/metafile-esm.json +1 -1
  173. package/dist/pages/Blog.mjs +1 -1
  174. package/dist/pages/Documentation.mjs +1 -1
  175. package/dist/pages/IndexPage.mjs +1 -1
  176. package/dist/pages/Intranet.mjs +1 -1
  177. package/dist/pages/LandingPage.mjs +1 -1
  178. package/dist/pages/Page.mjs +1 -1
  179. package/dist/pages/Publish.mjs +1 -1
  180. package/dist/pages/Website.mjs +1 -1
  181. package/dist/sections/AboutSection.mjs +1 -1
  182. package/dist/sections/BlogDetail.mjs +1 -1
  183. package/dist/sections/BlogList.mjs +1 -1
  184. package/dist/sections/BlogListSection.mjs +1 -1
  185. package/dist/sections/ContactSection.mjs +1 -1
  186. package/dist/sections/PageSections.mjs +1 -1
  187. package/dist/sections/PricingSection.mjs +1 -1
  188. package/dist/sections/ServiceDetail.mjs +1 -1
  189. package/dist/sections/ServiceDetailSection.mjs +1 -1
  190. package/dist/sections/ServiceSection.mjs +1 -1
  191. package/dist/sections/index.mjs +1 -1
  192. package/package.json +1 -1
  193. package/dist/chunk-4WA47ZQA.mjs +0 -4
  194. package/dist/chunk-5HT2KC5I.mjs +0 -4
  195. package/dist/chunk-CRAFZGCI.mjs +0 -4
  196. package/dist/chunk-FGEFYI5E.mjs +0 -4
  197. package/dist/chunk-GPFPTU7U.mjs +0 -4
  198. package/dist/chunk-KKW3FINI.mjs +0 -4
  199. package/dist/chunk-NDZ26EG6.mjs +0 -4
  200. package/dist/chunk-Y7H3EUBR.mjs +0 -4
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-DJ2KA3MS.mjs";import"../../../chunk-UENQZNU3.mjs";import"../../../chunk-ZNSW443Y.mjs";import"../../../chunk-RZELSUQT.mjs";import"../../../chunk-ONNK2NEI.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-HTS3KCJL.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-AN744MXS.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-CTTBF7F4.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-VDN4LQSS.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-PXLSH6S2.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-YNCJATT7.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-QTW33JYG.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-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-KBLVWXLK.mjs";import"../../../chunk-UENQZNU3.mjs";import"../../../chunk-ZNSW443Y.mjs";import"../../../chunk-RZELSUQT.mjs";import"../../../chunk-ONNK2NEI.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-HTS3KCJL.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-AN744MXS.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-RS4WAAGI.mjs";import"../../../chunk-6YHCNPFB.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-F6DMXMR4.mjs";import"../../../chunk-GLZEHRPY.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.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-QTW33JYG.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-CV7PH2KH.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 Bt=Object.create;var De=Object.defineProperty;var Ht=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Vt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Gt=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ut(t))!jt.call(e,a)&&a!==o&&De(e,a,{get:()=>t[a],enumerable:!(r=Ht(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Bt(Vt(e)):{},Ze(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),Wt=e=>Ze(De({},"__esModule",{value:!0}),e);var Eo={};Gt(Eo,{default:()=>It});module.exports=Wt(Eo);var _=require("react"),F=require("lucide-react");var nt=require("clsx");var Fe="-",Ft=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let s=c.split(Fe);return s[0]===""&&s.length!==1&&s.shift(),et(s,t)||$t(c)},getConflictingClassGroupIds:(c,s)=>{let u=o[c]||[];return s&&r[c]?[...u,...r[c]]:u}}},et=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?et(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(Fe);return t.validators.find(({validator:c})=>c(i))?.classGroupId},Qe=/^\[(.+)\]$/,$t=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Kt(Object.entries(e.classGroups),o).forEach(([i,c])=>{We(c,r,i,t)}),r},We=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ye(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(_t(a)){We(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,c])=>{We(c,Ye(t,i),o,r)})})},Ye=(e,t)=>{let o=e;return t.split(Fe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},_t=e=>e.isThemeGetter,Kt=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,s])=>[t+c,s])):i);return[o,a]}):e,qt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=r.get(i))!==void 0)return a(i,c),c},set(i,c){o.has(i)?o.set(i,c):a(i,c)}}},tt="!",Jt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,c=s=>{let u=[],h=0,x=0,I;for(let C=0;C<s.length;C++){let P=s[C];if(h===0){if(P===a&&(r||s.slice(C,C+i)===t)){u.push(s.slice(x,C)),x=C+i;continue}if(P==="/"){I=C;continue}}P==="["?h++:P==="]"&&h--}let E=u.length===0?s:s.substring(x),U=E.startsWith(tt),V=U?E.substring(1):E,S=I&&I>x?I-x:void 0;return{modifiers:u,hasImportantModifier:U,baseClassName:V,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:c}):c},Xt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Zt=e=>({cache:qt(e.cacheSize),parseClassName:Jt(e),...Ft(e)}),Qt=/\s+/,Yt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],c=e.trim().split(Qt),s="";for(let u=c.length-1;u>=0;u-=1){let h=c[u],{modifiers:x,hasImportantModifier:I,baseClassName:E,maybePostfixModifierPosition:U}=o(h),V=!!U,S=r(V?E.substring(0,U):E);if(!S){if(!V){s=h+(s.length>0?" "+s:s);continue}if(S=r(E),!S){s=h+(s.length>0?" "+s:s);continue}V=!1}let C=Xt(x).join(":"),P=I?C+tt:C,B=P+S;if(i.includes(B))continue;i.push(B);let re=a(S,V);for(let j=0;j<re.length;++j){let ae=re[j];i.push(P+ae)}s=h+(s.length>0?" "+s:s)}return s};function eo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(r&&(r+=" "),r+=o);return r}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ot(e[r]))&&(o&&(o+=" "),o+=t);return o};function to(e,...t){let o,r,a,i=c;function c(u){let h=t.reduce((x,I)=>I(x),e());return o=Zt(h),r=o.cache.get,a=o.cache.set,i=s,s(u)}function s(u){let h=r(u);if(h)return h;let x=Yt(u,o);return a(u,x),x}return function(){return i(eo.apply(null,arguments))}}var w=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-dt-]+):)?(.+)\]$/i,oo=/^\dt+\/\dt+$/,ro=new Set(["px","full","screen"]),ao=/^(\dt+(\.\dt+)?)?(xs|sm|md|lg|xl)$/,io=/\dt+(%|px|r?em|[sdl]?v([hwib]|min|max)|dt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,no=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,so=/^(inset_)?-?((\dt+)?\.?(\dt+)[a-dt]+|0)_-?((\dt+)?\.?(\dt+)[a-dt]+|0)/,lo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>fe(e)||ro.has(e)||oo.test(e),ee=e=>ge(e,"length",bo),fe=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ge(e,"number",fe),xe=e=>!!e&&Number.isInteger(Number(e)),co=e=>e.endsWith("%")&&fe(e.slice(0,-1)),f=e=>rt.test(e),te=e=>ao.test(e),mo=new Set(["length","size","percentage"]),po=e=>ge(e,mo,at),uo=e=>ge(e,"position",at),fo=new Set(["image","url"]),go=e=>ge(e,fo,yo),vo=e=>ge(e,"",ho),we=()=>!0,ge=(e,t,o)=>{let r=rt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},bo=e=>io.test(e)&&!no.test(e),at=()=>!1,ho=e=>so.test(e),yo=e=>lo.test(e);var xo=()=>{let e=w("colors"),t=w("spacing"),o=w("blur"),r=w("brightness"),a=w("borderColor"),i=w("borderRadius"),c=w("borderSpacing"),s=w("borderWidth"),u=w("contrast"),h=w("grayscale"),x=w("hueRotate"),I=w("invert"),E=w("gap"),U=w("gradientColorStops"),V=w("gradientColorStopPositions"),S=w("inset"),C=w("margin"),P=w("opacity"),B=w("padding"),re=w("saturate"),j=w("scale"),ae=w("sepia"),ie=w("skew"),Se=w("space"),Pe=w("translate"),ne=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",f,t],y=()=>[f,t],Re=()=>["",J,ee],se=()=>["auto",fe,f],Ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[fe,f];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[J,ee],blur:["none","",te,f],brightness:K(),borderColor:[e],borderRadius:["none","","full",te,f],borderSpacing:y(),borderWidth:Re(),contrast:K(),grayscale:le(),hueRotate:K(),invert:le(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[co,ee],inset:Y(),margin:Y(),opacity:K(),padding:y(),saturate:K(),scale:K(),sepia:le(),skew:K(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[te]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"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:[...Ve(),f]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],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"],dt:[{dt:["auto",xe,f]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",xe,f]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,f]},f]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,f]},f]}],"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",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],dt:[{dt:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],pe:[{pe:[B]}],dt:[{dt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],dt:[{dt:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],F:[{F:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[te]},te]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",te,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[we]}],"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",f]}],"line-clamp":[{"line-clamp":["none",fe,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",J,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",J,ee]}],"underline-offset":[{"underline-offset":["auto",J,f]}],"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:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ve(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",po]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[U]}],"gradient-via":[{via:[U]}],"gradient-to":[{to:[U]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[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-ee":[{"rounded-ee":[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:[s]}],"border-w-x":[{"border-x":[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-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:ye()}],"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-t":[{"border-t":[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:["",...ye()]}],"outline-offset":[{"outline-offset":[J,f]}],"outline-w":[{outline:[J,ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[J,ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",te,vo]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Te()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",te,f]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[I]}],saturate:[{saturate:[re]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[re]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[xe,f]}],"translate-x":[{"translate-x":[Pe]}],"translate-y":[{"translate-y":[Pe]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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","dt-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",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-dt":[{"scroll-dt":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-F":[{"scroll-F":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-dt":[{"scroll-dt":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-dt":[{"scroll-dt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[J,ee,Ge]}],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"],dt:["px","py","ps","pe","dt","pr","pb","pl"],px:["pr","pl"],py:["dt","pb"],dt:["mx","my","ms","F","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-b","rounded-l","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-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-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-dt":["scroll-mx","scroll-my","scroll-ms","scroll-F","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-dt":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-dt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-dt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var it=to(xo);function g(...e){return it((0,nt.clsx)(e))}var st=require("@radix-ui/react-slot"),lt=require("class-variance-authority"),ct=q(require("react")),dt=require("react/jsx-runtime"),wo=(0,lt.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=ct.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,dt.jsx)(e?st.Slot:"button",{className:g(wo({className:t,size:o,variant:r})),ref:i,...a}));M.displayName="Button";var ce=q(require("react"));var A=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));A.displayName="Card";var G=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 dt-6",e),...t}));G.displayName="CardHeader";var W=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));W.displayName="CardTitle";var Co=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Co.displayName="CardDescription";var L=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("dt-6 dt-0",e),...t}));L.displayName="CardContent";var No=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex items-center dt-6 dt-0",e),...t}));No.displayName="CardFooter";var mt=q(require("react"));var Ce=mt.forwardRef(({className:e,type:t,...o},r)=>(0,dt.jsx)("input",{type:t,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:r,...o}));Ce.displayName="Input";var v=q(require("@radix-ui/react-select")),oe=q(require("react")),$e=v.Root;var Oe=v.Value,ke=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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",t),ref:r,...o,children:[e,(0,dt.jsx)(v.Icon,{asChild:!0,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ke.displayName=v.Trigger.displayName;var ut=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=v.ScrollUpButton.displayName;var ft=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4"})}));ft.displayName=v.ScrollDownButton.displayName;var Ie=oe.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,dt.jsx)(v.Portal,{children:(0,dt.jsxs)(v.Content,{className:g("relative dt-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",t),position:o,ref:a,...r,children:[(0,dt.jsx)(ut,{}),(0,dt.jsx)(v.Viewport,{className:g("dt-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,dt.jsx)(ft,{})]})}));Ie.displayName=v.Content.displayName;var So=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=v.Label.displayName;var pe=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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",t),ref:r,...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(v.ItemIndicator,{children:(0,dt.jsx)(F.Check,{className:"h-4 w-4"})})}),(0,dt.jsx)(v.ItemText,{children:e})]}));pe.displayName=v.Item.displayName;var Po=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Po.displayName=v.Separator.displayName;var qe=require("motion/react");var ue=q(require("@radix-ui/react-tabs"));function gt({className:e,...t}){return(0,dt.jsx)(ue.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function vt({className:e,...t}){return(0,dt.jsx)(ue.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg dt-[3px]",e),...t})}function bt({className:e,...t}){return(0,dt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var X=q(require("react")),b=q(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var ht=b.Root,yt=b.Trigger;var Ro=X.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,dt.jsxs)(b.SubTrigger,{ref:a,className:g("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,dt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));Ro.displayName=b.SubTrigger.displayName;var To=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.SubContent,{ref:o,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-1 text-popover-foreground shadow-lg 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",e),...t}));To.displayName=b.SubContent.displayName;var _e=X.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,dt.jsx)(b.Portal,{children:(0,dt.jsx)(b.Content,{ref:r,sideOffset:t,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-1 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",e),...o})}));_e.displayName=b.Content.displayName;var Ke=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ke.displayName=b.Item.displayName;var Mo=X.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,dt.jsxs)(b.CheckboxItem,{ref:a,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));Mo.displayName=b.CheckboxItem.displayName;var Do=X.forwardRef(({className:e,children:t,...o},r)=>(0,dt.jsxs)(b.RadioItem,{ref:r,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Do.displayName=b.RadioItem.displayName;var ko=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));ko.displayName=b.Label.displayName;var Io=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));Io.displayName=b.Separator.displayName;var Ao=({className:e,...t})=>(0,dt.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});Ao.displayName="DropdownMenuShortcut";function wt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let c=o.find(s=>s.value===e);return(0,dt.jsxs)(qe.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,dt.jsx)("div",{className:"hidden lg:block",children:(0,dt.jsx)(gt,{value:e,onValueChange:t,children:(0,dt.jsx)(vt,{className:"grid w-full rounded-2xl dt-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,dt.jsx)(bt,{value:s.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,dt.jsx)("div",{className:"lg:hidden",children:(0,dt.jsxs)(ht,{children:[(0,dt.jsx)(yt,{asChild:!0,children:(0,dt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[c?.label||"Select",(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,dt.jsx)(_e,{align:"center",className:"w-[180px]",children:o.map(s=>(0,dt.jsx)(Ke,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Le=q(require("react")),Z=q(require("@radix-ui/react-avatar"));var Je=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Root,{ref:o,className:g("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Je.displayName=Z.Root.displayName;var Lo=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Image,{ref:o,className:g("aspect-square h-full w-full",e),...t}));Lo.displayName=Z.Image.displayName;var Xe=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Fallback,{ref:o,className:g("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xe.displayName=Z.Fallback.displayName;function Ct({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[a,i]=(0,_.useState)(""),c=(0,_.useMemo)(()=>e.filter(u=>u.name?.toLowerCase().includes(a.toLowerCase())||u.email.toLowerCase().includes(a.toLowerCase())),[e,a]),s=u=>{t(u)};return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,dt.jsx)(A,{className:"container",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search users by name, email, role, or skills...",value:a,onChange:u=>i(u.target.value),className:"pl-9"})]})})})})}),(0,dt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(u=>(0,dt.jsx)(qe.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,dt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>s(u),children:[(0,dt.jsx)(G,{className:"pb-3",children:(0,dt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,dt.jsx)(Je,{children:(0,dt.jsx)(Xe,{children:(0,dt.jsx)(F.User,{className:"h-4 w-4"})})}),(0,dt.jsx)("div",{children:(0,dt.jsx)(W,{className:"text-lg",children:u.name})})]}),r===u.id&&(0,dt.jsx)(F.Check,{className:"h-5 w-5 text-primary"})]})}),(0,dt.jsx)(L,{className:"dt-0",children:(0,dt.jsxs)("div",{className:"space-y-3",children:[(0,dt.jsxs)("div",{children:[(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Email"}),(0,dt.jsx)("dt",{className:"text-sm font-medium",children:u.email})]}),(0,dt.jsx)("div",{children:(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},u.id))}),c.length===0&&(0,dt.jsx)(A,{className:"container mt-4",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function Nt({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.User,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Human Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Browse existing users"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.User,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Create from templates"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function St({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)($.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Clone Existing"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Bot,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Copy,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Create New"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Plus,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Custom job description"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}var zo=(0,lt.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 Rt({className:e,variant:t,...o}){return(0,dt.jsx)("div",{className:g(zo({variant:t}),e),...o})}function Mt(e,t){let[o,r]=(0,_.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,_.useEffect)(()=>{a(o)},[]),[o,a]}var He=require("react-icons/fa");function kt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:i,children:c,className:s}){let[u,h]=Mt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),x=!a&&!t||u;return(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} dt-8 text-white ${s||""}`,children:[(0,dt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,dt.jsx)(Rt,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,dt.jsx)("h2",{className:"text-3xl font-bold dt-0",children:e})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,dt.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 dt-1 text-white transition-colors",onClick:()=>h(!u),style:{lineHeight:0},children:u?(0,dt.jsx)(He.FaChevronDown,{size:22}):(0,dt.jsx)(He.FaChevronUp,{size:22})})]})]}),!x&&(0,dt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)("dt",{className:"max-w-[600px] text-white/80",children:t}),(0,dt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,dt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),c&&(0,dt.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function It({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:a=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:s=[],existingDigitalColleagues:u=[]}){let[h,x]=(0,_.useState)(e||[]),[I,E]=(0,_.useState)(""),[U,V]=(0,_.useState)("all"),[S,C]=(0,_.useState)("all"),[P,B]=(0,_.useState)("all"),[re,j]=(0,_.useState)(null),[ae,ie]=(0,_.useState)(null);(0,_.useEffect)(()=>{x(e||[])},[e]);let Se=Array.isArray(s)?s:[],Pe=Array.isArray(u)?u:[],[ne,T]=(0,_.useState)("main"),Y=h.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(I.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(I.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(I.toLowerCase())),y=Y.filter(l=>l.type==="human"),Re=Y.filter(l=>l.type==="digital"),se=()=>{T("typeSelection")},Ve=l=>{l.type==="digital"&&(j(l),T("form")),console.log("Editing colleague:",l),o?.(l)},ye=l=>{l.type==="digital"&&(ie(l),T("view"))},Te=l=>{let H={id:`human-${Date.now()}`,type:"human",name:l.name||"",email:l.email,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};x(N=>[...N,H]),t?.(H),T("main")},Me=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}x(H=>[...H,l]),t?.(l),T("main")},le=()=>{j(null),T("form")},je=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}re?(x(H=>H.map(N=>N.id===l.id?l:N)),o?.(l)):(x(H=>[...H,l]),t?.(l)),T("main"),j(null)},K=()=>{T("main"),j(null),ie(null)},Bo=()=>{T("main"),ie(null)},Ho=()=>{ae&&(j(ae),ie(null),T("form"))},Uo=l=>{r?.(l,h.find(H=>H.id===l).type),x(H=>H.filter(N=>N.id!==l))},At=()=>{E(""),V("all"),C("all")},Vo=()=>{let l=[];return Pe.forEach(N=>{N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge)}),h.forEach(N=>{N.type==="digital"&&(N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge))}),l.filter((N,Lt,zt)=>Lt===zt.findIndex(Et=>Et.id===N.id))};return ne==="typeSelection"?(0,dt.jsx)(Nt,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):ne==="userSelection"?(0,dt.jsx)(Ct,{users:Se,onUserSelect:Te,onCancel:()=>T("typeSelection")}):ne==="digitalOptions"?(0,dt.jsx)(St,{onCloneExisting:()=>T("digitalClone"),onCreateNew:le,onCancel:()=>T("typeSelection")}):(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsx)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,dt.jsxs)("div",{className:`space-y-6 ${c||""}`,children:[(0,dt.jsx)(kt,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:se}}),(0,dt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground"})]})]}),(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Human Members"}),(0,dt.jsx)(F.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.filter(l=>l.type==="human").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.filter(l=>l.type==="digital").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]})]}),(0,dt.jsx)(A,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search colleagues...",value:I,onChange:l=>E(l.target.value),className:"pl-9"})]})}),(0,dt.jsxs)($e,{value:U,onValueChange:V,children:[(0,dt.jsx)(ke,{className:"w-full md:w-[180px]",children:(0,dt.jsx)(Oe,{placeholder:"Department"})}),(0,dt.jsxs)(Ie,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Departments"}),i.map(l=>(0,dt.jsx)(pe,{value:l,children:l},l))]})]}),(0,dt.jsxs)($e,{value:S,onValueChange:C,children:[(0,dt.jsx)(ke,{className:"w-full md:w-[140px]",children:(0,dt.jsx)(Oe,{placeholder:"Status"})}),(0,dt.jsxs)(Ie,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Status"}),(0,dt.jsx)(pe,{value:"active",children:"Active"}),(0,dt.jsx)(pe,{value:"inactive",children:"Inactive"})]})]}),(I||U!=="all"||S!=="all")&&(0,dt.jsxs)(M,{variant:"outline",onClick:At,className:"gap-2",children:[(0,dt.jsx)(F.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)(wt,{activeTab:P,onTabChange:B,tabOptions:[{value:"all",label:`All (${Y.length})`},{value:"human",label:`Human (${y.length})`},{value:"digital",label:`Digital (${Re.length})`}],maxWidth:"400px",gridCols:3}),P==="all"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="human"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="digital"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`})]}),Y.length===0&&(0,dt.jsx)(A,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:I||U!=="all"||S!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,dt.jsxs)(M,{onClick:se,className:"gap-2",children:[(0,dt.jsx)(F.Plus,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
5
+ "use strict";"use client";var Bt=Object.create;var ke=Object.defineProperty;var Ht=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Vt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Gt=(e,t)=>{for(var o in t)ke(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ut(t))!jt.call(e,a)&&a!==o&&ke(e,a,{get:()=>t[a],enumerable:!(r=Ht(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Bt(Vt(e)):{},Ze(t||!e||!e.__esModule?ke(o,"default",{value:e,enumerable:!0}):o,e)),Wt=e=>Ze(ke({},"__esModule",{value:!0}),e);var Eo={};Gt(Eo,{default:()=>At});module.exports=Wt(Eo);var _=require("react"),F=require("lucide-react");var nt=require("clsx");var Fe="-",Ft=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let s=c.split(Fe);return s[0]===""&&s.length!==1&&s.shift(),et(s,t)||$t(c)},getConflictingClassGroupIds:(c,s)=>{let h=o[c]||[];return s&&r[c]?[...h,...r[c]]:h}}},et=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?et(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(Fe);return t.validators.find(({validator:c})=>c(i))?.classGroupId},Qe=/^\[(.+)\]$/,$t=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Kt(Object.entries(e.classGroups),o).forEach(([i,c])=>{We(c,r,i,t)}),r},We=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ye(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(_t(a)){We(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,c])=>{We(c,Ye(t,i),o,r)})})},Ye=(e,t)=>{let o=e;return t.split(Fe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},_t=e=>e.isThemeGetter,Kt=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,s])=>[t+c,s])):i);return[o,a]}):e,qt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=r.get(i))!==void 0)return a(i,c),c},set(i,c){o.has(i)?o.set(i,c):a(i,c)}}},tt="!",Jt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,c=s=>{let h=[],d=0,y=0,A;for(let C=0;C<s.length;C++){let P=s[C];if(d===0){if(P===a&&(r||s.slice(C,C+i)===t)){h.push(s.slice(y,C)),y=C+i;continue}if(P==="/"){A=C;continue}}P==="["?d++:P==="]"&&d--}let E=h.length===0?s:s.substring(y),U=E.startsWith(tt),V=U?E.substring(1):E,S=A&&A>y?A-y:void 0;return{modifiers:h,hasImportantModifier:U,baseClassName:V,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:c}):c},Xt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Zt=e=>({cache:qt(e.cacheSize),parseClassName:Jt(e),...Ft(e)}),Qt=/\s+/,Yt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],c=e.trim().split(Qt),s="";for(let h=c.length-1;h>=0;h-=1){let d=c[h],{modifiers:y,hasImportantModifier:A,baseClassName:E,maybePostfixModifierPosition:U}=o(d),V=!!U,S=r(V?E.substring(0,U):E);if(!S){if(!V){s=d+(s.length>0?" "+s:s);continue}if(S=r(E),!S){s=d+(s.length>0?" "+s:s);continue}V=!1}let C=Xt(y).join(":"),P=A?C+tt:C,B=P+S;if(i.includes(B))continue;i.push(B);let re=a(S,V);for(let j=0;j<re.length;++j){let ae=re[j];i.push(P+ae)}s=d+(s.length>0?" "+s:s)}return s};function eo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(r&&(r+=" "),r+=o);return r}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ot(e[r]))&&(o&&(o+=" "),o+=t);return o};function to(e,...t){let o,r,a,i=c;function c(h){let d=t.reduce((y,A)=>A(y),e());return o=Zt(d),r=o.cache.get,a=o.cache.set,i=s,s(h)}function s(h){let d=r(h);if(d)return d;let y=Yt(h,o);return a(h,y),y}return function(){return i(eo.apply(null,arguments))}}var w=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-dt-]+):)?(.+)\]$/i,oo=/^\d+\/\d+$/,ro=new Set(["px","full","screen"]),ao=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,io=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|dt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,no=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,so=/^(inset_)?-?((\d+)?\.?(\d+)[a-dt]+|0)_-?((\d+)?\.?(\d+)[a-dt]+|0)/,lo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>fe(e)||ro.has(e)||oo.test(e),ee=e=>ge(e,"length",bo),fe=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ge(e,"number",fe),xe=e=>!!e&&Number.isInteger(Number(e)),co=e=>e.endsWith("%")&&fe(e.slice(0,-1)),f=e=>rt.test(e),te=e=>ao.test(e),mo=new Set(["length","size","percentage"]),po=e=>ge(e,mo,at),uo=e=>ge(e,"position",at),fo=new Set(["image","url"]),go=e=>ge(e,fo,yo),vo=e=>ge(e,"",ho),we=()=>!0,ge=(e,t,o)=>{let r=rt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},bo=e=>io.test(e)&&!no.test(e),at=()=>!1,ho=e=>so.test(e),yo=e=>lo.test(e);var xo=()=>{let e=w("colors"),t=w("spacing"),o=w("blur"),r=w("brightness"),a=w("borderColor"),i=w("borderRadius"),c=w("borderSpacing"),s=w("borderWidth"),h=w("contrast"),d=w("grayscale"),y=w("hueRotate"),A=w("invert"),E=w("gap"),U=w("gradientColorStops"),V=w("gradientColorStopPositions"),S=w("inset"),C=w("margin"),P=w("opacity"),B=w("padding"),re=w("saturate"),j=w("scale"),ae=w("sepia"),ie=w("skew"),Se=w("space"),Pe=w("translate"),ne=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",f,t],x=()=>[f,t],Re=()=>["",J,ee],se=()=>["auto",fe,f],Ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[fe,f];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[J,ee],blur:["none","",te,f],brightness:K(),borderColor:[e],borderRadius:["none","","full",te,f],borderSpacing:x(),borderWidth:Re(),contrast:K(),grayscale:le(),hueRotate:K(),invert:le(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[co,ee],inset:Y(),margin:Y(),opacity:K(),padding:x(),saturate:K(),scale:K(),sepia:le(),skew:K(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[te]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"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:[...Ve(),f]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],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"],dt:[{dt:["auto",xe,f]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",xe,f]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,f]},f]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,f]},f]}],"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",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],dt:[{dt:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],pe:[{pe:[B]}],dt:[{dt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],dt:[{dt:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],F:[{F:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[te]},te]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",te,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[we]}],"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",f]}],"line-clamp":[{"line-clamp":["none",fe,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",J,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",J,ee]}],"underline-offset":[{"underline-offset":["auto",J,f]}],"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:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ve(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",po]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[U]}],"gradient-via":[{via:[U]}],"gradient-to":[{to:[U]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[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-ee":[{"rounded-ee":[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:[s]}],"border-w-x":[{"border-x":[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-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:ye()}],"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-t":[{"border-t":[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:["",...ye()]}],"outline-offset":[{"outline-offset":[J,f]}],"outline-w":[{outline:[J,ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[J,ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",te,vo]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Te()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",te,f]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[A]}],saturate:[{saturate:[re]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[re]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[xe,f]}],"translate-x":[{"translate-x":[Pe]}],"translate-y":[{"translate-y":[Pe]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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","dt-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",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-dt":[{"scroll-dt":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-F":[{"scroll-F":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-dt":[{"scroll-dt":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-dt":[{"scroll-dt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[J,ee,Ge]}],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"],dt:["px","py","ps","pe","dt","pr","pb","pl"],px:["pr","pl"],py:["dt","pb"],dt:["mx","my","ms","F","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-b","rounded-l","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-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-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-dt":["scroll-mx","scroll-my","scroll-ms","scroll-F","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-dt":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-dt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-dt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var it=to(xo);function g(...e){return it((0,nt.clsx)(e))}var st=require("@radix-ui/react-slot"),lt=require("class-variance-authority"),ct=q(require("react")),dt=require("react/jsx-runtime"),wo=(0,lt.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=ct.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,dt.jsx)(e?st.Slot:"button",{className:g(wo({className:t,size:o,variant:r})),ref:i,...a}));M.displayName="Button";var ce=q(require("react"));var I=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var G=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 dt-6",e),...t}));G.displayName="CardHeader";var W=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));W.displayName="CardTitle";var Co=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Co.displayName="CardDescription";var L=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("dt-6 dt-0",e),...t}));L.displayName="CardContent";var No=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex items-center dt-6 dt-0",e),...t}));No.displayName="CardFooter";var mt=q(require("react"));var Ce=mt.forwardRef(({className:e,type:t,...o},r)=>(0,dt.jsx)("input",{type:t,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:r,...o}));Ce.displayName="Input";var v=q(require("@radix-ui/react-select")),oe=q(require("react")),$e=v.Root;var Oe=v.Value,De=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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",t),ref:r,...o,children:[e,(0,dt.jsx)(v.Icon,{asChild:!0,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));De.displayName=v.Trigger.displayName;var ut=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=v.ScrollUpButton.displayName;var ft=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4"})}));ft.displayName=v.ScrollDownButton.displayName;var Ae=oe.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,dt.jsx)(v.Portal,{children:(0,dt.jsxs)(v.Content,{className:g("relative dt-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",t),position:o,ref:a,...r,children:[(0,dt.jsx)(ut,{}),(0,dt.jsx)(v.Viewport,{className:g("dt-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,dt.jsx)(ft,{})]})}));Ae.displayName=v.Content.displayName;var So=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=v.Label.displayName;var pe=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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",t),ref:r,...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(v.ItemIndicator,{children:(0,dt.jsx)(F.Check,{className:"h-4 w-4"})})}),(0,dt.jsx)(v.ItemText,{children:e})]}));pe.displayName=v.Item.displayName;var Po=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Po.displayName=v.Separator.displayName;var qe=require("motion/react");var ue=q(require("@radix-ui/react-tabs"));function gt({className:e,...t}){return(0,dt.jsx)(ue.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function vt({className:e,...t}){return(0,dt.jsx)(ue.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg dt-[3px]",e),...t})}function bt({className:e,...t}){return(0,dt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var X=q(require("react")),b=q(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var ht=b.Root,yt=b.Trigger;var Ro=X.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,dt.jsxs)(b.SubTrigger,{ref:a,className:g("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,dt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));Ro.displayName=b.SubTrigger.displayName;var To=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.SubContent,{ref:o,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-1 text-popover-foreground shadow-lg 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",e),...t}));To.displayName=b.SubContent.displayName;var _e=X.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,dt.jsx)(b.Portal,{children:(0,dt.jsx)(b.Content,{ref:r,sideOffset:t,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-1 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",e),...o})}));_e.displayName=b.Content.displayName;var Ke=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ke.displayName=b.Item.displayName;var Mo=X.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,dt.jsxs)(b.CheckboxItem,{ref:a,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));Mo.displayName=b.CheckboxItem.displayName;var ko=X.forwardRef(({className:e,children:t,...o},r)=>(0,dt.jsxs)(b.RadioItem,{ref:r,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ko.displayName=b.RadioItem.displayName;var Do=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Do.displayName=b.Label.displayName;var Ao=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));Ao.displayName=b.Separator.displayName;var Io=({className:e,...t})=>(0,dt.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});Io.displayName="DropdownMenuShortcut";function wt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let c=o.find(s=>s.value===e);return(0,dt.jsxs)(qe.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,dt.jsx)("div",{className:"hidden lg:block",children:(0,dt.jsx)(gt,{value:e,onValueChange:t,children:(0,dt.jsx)(vt,{className:"grid w-full rounded-2xl dt-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,dt.jsx)(bt,{value:s.value,onClick:()=>t?.(s.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,dt.jsx)("div",{className:"lg:hidden",children:(0,dt.jsxs)(ht,{children:[(0,dt.jsx)(yt,{asChild:!0,children:(0,dt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[c?.label||"Select",(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,dt.jsx)(_e,{align:"center",className:"w-[180px]",children:o.map(s=>(0,dt.jsx)(Ke,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Le=q(require("react")),Z=q(require("@radix-ui/react-avatar"));var Je=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Root,{ref:o,className:g("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Je.displayName=Z.Root.displayName;var Lo=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Image,{ref:o,className:g("aspect-square h-full w-full",e),...t}));Lo.displayName=Z.Image.displayName;var Xe=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Fallback,{ref:o,className:g("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xe.displayName=Z.Fallback.displayName;function Ct({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[a,i]=(0,_.useState)(""),c=Array.isArray(e)?e:[],s=(0,_.useMemo)(()=>c.filter(d=>d!=null&&d!==void 0).filter(d=>d?.name?.toLowerCase().includes(a.toLowerCase())||d?.email?.toLowerCase().includes(a.toLowerCase())),[c,a]),h=d=>{t(d)};return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,dt.jsx)(I,{className:"container",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search users by name, email, role, or skills...",value:a,onChange:d=>i(d.target.value),className:"pl-9"})]})})})})}),(0,dt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:s.map(d=>!d||!d.id?null:(0,dt.jsx)(qe.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,dt.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r===d.id?"ring-2 ring-primary":""}`,onClick:()=>h(d),children:[(0,dt.jsx)(G,{className:"pb-3",children:(0,dt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,dt.jsx)(Je,{children:(0,dt.jsx)(Xe,{children:(0,dt.jsx)(F.User,{className:"h-4 w-4"})})}),(0,dt.jsx)("div",{children:(0,dt.jsx)(W,{className:"text-lg",children:d?.name||"Unknown User"})})]}),r===d.id&&(0,dt.jsx)(F.Check,{className:"h-5 w-5 text-primary"})]})}),(0,dt.jsx)(L,{className:"dt-0",children:(0,dt.jsxs)("div",{className:"space-y-3",children:[(0,dt.jsxs)("div",{children:[(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Email"}),(0,dt.jsx)("dt",{className:"text-sm font-medium",children:d?.email||"No email"})]}),(0,dt.jsx)("div",{children:(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},d.id))}),s.length===0&&(0,dt.jsx)(I,{className:"container mt-4",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function Nt({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.User,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Human Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Browse existing users"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.User,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Create from templates"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function St({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)($.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Clone Existing"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Bot,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Copy,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Create New"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Plus,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Custom job description"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}var zo=(0,lt.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 Rt({className:e,variant:t,...o}){return(0,dt.jsx)("div",{className:g(zo({variant:t}),e),...o})}function Mt(e,t){let[o,r]=(0,_.useState)(()=>{if(typeof window>"dt")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"dt"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,_.useEffect)(()=>{a(o)},[]),[o,a]}var He=require("react-icons/fa");function Dt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:i,children:c,className:s}){let[h,d]=Mt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),y=!a&&!t||h;return(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} dt-8 text-white ${s||""}`,children:[(0,dt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,dt.jsx)(Rt,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,dt.jsx)("h2",{className:"text-3xl font-bold dt-0",children:e})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[y&&r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,dt.jsx)("button",{"aria-label":h?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 dt-1 text-white transition-colors",onClick:()=>d(!h),style:{lineHeight:0},children:h?(0,dt.jsx)(He.FaChevronDown,{size:22}):(0,dt.jsx)(He.FaChevronUp,{size:22})})]})]}),!y&&(0,dt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)("dt",{className:"max-w-[600px] text-white/80",children:t}),(0,dt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,dt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),c&&(0,dt.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function At({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:a=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:s=[],existingDigitalColleagues:h=[]}){let[d,y]=(0,_.useState)(e||[]),[A,E]=(0,_.useState)(""),[U,V]=(0,_.useState)("all"),[S,C]=(0,_.useState)("all"),[P,B]=(0,_.useState)("all"),[re,j]=(0,_.useState)(null),[ae,ie]=(0,_.useState)(null);(0,_.useEffect)(()=>{y(e||[])},[e]);let Se=Array.isArray(s)?s:[],Pe=Array.isArray(h)?h:[],[ne,T]=(0,_.useState)("main"),Y=d.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(A.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(A.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(A.toLowerCase())),x=Y.filter(l=>l.type==="human"),Re=Y.filter(l=>l.type==="digital"),se=()=>{T("typeSelection")},Ve=l=>{l.type==="digital"&&(j(l),T("form")),console.log("Editing colleague:",l),o?.(l)},ye=l=>{l.type==="digital"&&(ie(l),T("view"))},Te=l=>{let H={id:`human-${Date.now()}`,type:"human",name:l.name||"",email:l.email,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};y(N=>[...N,H]),t?.(H),T("main")},Me=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}y(H=>[...H,l]),t?.(l),T("main")},le=()=>{j(null),T("form")},je=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}re?(y(H=>H.map(N=>N.id===l.id?l:N)),o?.(l)):(y(H=>[...H,l]),t?.(l)),T("main"),j(null)},K=()=>{T("main"),j(null),ie(null)},Bo=()=>{T("main"),ie(null)},Ho=()=>{ae&&(j(ae),ie(null),T("form"))},Uo=l=>{r?.(l,d.find(H=>H.id===l).type),y(H=>H.filter(N=>N.id!==l))},It=()=>{E(""),V("all"),C("all")},Vo=()=>{let l=[];return Pe.forEach(N=>{N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge)}),d.forEach(N=>{N.type==="digital"&&(N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge))}),l.filter((N,Lt,zt)=>Lt===zt.findIndex(Et=>Et.id===N.id))};return ne==="typeSelection"?(0,dt.jsx)(Nt,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):ne==="userSelection"?(0,dt.jsx)(Ct,{users:Se,onUserSelect:Te,onCancel:()=>T("typeSelection")}):ne==="digitalOptions"?(0,dt.jsx)(St,{onCloneExisting:()=>T("digitalClone"),onCreateNew:le,onCancel:()=>T("typeSelection")}):(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsx)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,dt.jsxs)("div",{className:`space-y-6 ${c||""}`,children:[(0,dt.jsx)(Dt,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:se}}),(0,dt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,dt.jsxs)(I,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:d.length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground"})]})]}),(0,dt.jsxs)(I,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Human Members"}),(0,dt.jsx)(F.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:d.filter(l=>l.type==="human").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,dt.jsxs)(I,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:d.filter(l=>l.type==="digital").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]})]}),(0,dt.jsx)(I,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search colleagues...",value:A,onChange:l=>E(l.target.value),className:"pl-9"})]})}),(0,dt.jsxs)($e,{value:U,onValueChange:V,children:[(0,dt.jsx)(De,{className:"w-full md:w-[180px]",children:(0,dt.jsx)(Oe,{placeholder:"Department"})}),(0,dt.jsxs)(Ae,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Departments"}),i.map(l=>(0,dt.jsx)(pe,{value:l,children:l},l))]})]}),(0,dt.jsxs)($e,{value:S,onValueChange:C,children:[(0,dt.jsx)(De,{className:"w-full md:w-[140px]",children:(0,dt.jsx)(Oe,{placeholder:"Status"})}),(0,dt.jsxs)(Ae,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Status"}),(0,dt.jsx)(pe,{value:"active",children:"Active"}),(0,dt.jsx)(pe,{value:"inactive",children:"Inactive"})]})]}),(A||U!=="all"||S!=="all")&&(0,dt.jsxs)(M,{variant:"outline",onClick:It,className:"gap-2",children:[(0,dt.jsx)(F.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)(wt,{activeTab:P,onTabChange:B,tabOptions:[{value:"all",label:`All (${Y.length})`},{value:"human",label:`Human (${x.length})`},{value:"digital",label:`Digital (${Re.length})`}],maxWidth:"400px",gridCols:3}),P==="all"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="human"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="digital"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`})]}),Y.length===0&&(0,dt.jsx)(I,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:A||U!=="all"||S!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,dt.jsxs)(M,{onClick:se,className:"gap-2",children:[(0,dt.jsx)(F.Plus,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-DKRRVTCV.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.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-MS7YIAWP.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-P2B3OITE.mjs";import"../../../chunk-GLZEHRPY.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.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};