cortex-react-components 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/{chunk-GETYSIZV.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  3. package/dist/{chunk-P6OSMPUQ.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  4. package/dist/{chunk-LW4QFIFR.mjs → chunk-3PHJWI4Q.mjs} +1 -1
  5. package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
  6. package/dist/{chunk-WB2Y7HTT.mjs → chunk-55MVSCX4.mjs} +1 -1
  7. package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
  8. package/dist/{chunk-BQQ4V4PX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  9. package/dist/{chunk-GAZHKHGB.mjs → chunk-67QPOSVV.mjs} +1 -1
  10. package/dist/{chunk-CLGBBNRB.mjs → chunk-75WE6ZXB.mjs} +1 -1
  11. package/dist/{chunk-7OMPPFGG.mjs → chunk-7GMAMIHM.mjs} +1 -1
  12. package/dist/chunk-CSDKRMII.mjs +4 -0
  13. package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
  14. package/dist/{chunk-2GM2LPLB.mjs → chunk-ERJXTG6X.mjs} +1 -1
  15. package/dist/{chunk-HDKHF3EA.mjs → chunk-FKU4VQR6.mjs} +1 -1
  16. package/dist/{chunk-MO2B5CDW.mjs → chunk-FQMEHUDP.mjs} +1 -1
  17. package/dist/{chunk-77PCUNUC.mjs → chunk-FTZRG54P.mjs} +1 -1
  18. package/dist/chunk-FUEUJPNZ.mjs +1 -0
  19. package/dist/{chunk-F64CA5CH.mjs → chunk-H3CJOE6S.mjs} +1 -1
  20. package/dist/{chunk-U3FYDDE2.mjs → chunk-HKGW6JI2.mjs} +1 -1
  21. package/dist/{chunk-PNUBVBSR.mjs → chunk-IF3425JX.mjs} +1 -1
  22. package/dist/{chunk-IDG2O4B7.mjs → chunk-ISBVFNWD.mjs} +1 -1
  23. package/dist/{chunk-KZAYLEFB.mjs → chunk-LJOWXPWW.mjs} +1 -1
  24. package/dist/{chunk-PTZT4QJW.mjs → chunk-LJQPLE4S.mjs} +1 -1
  25. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-M7NV6EFH.mjs} +1 -1
  26. package/dist/{chunk-S4A4VHOI.mjs → chunk-MQA37YMO.mjs} +1 -1
  27. package/dist/{chunk-4SRUEQTP.mjs → chunk-MXCW6SOT.mjs} +1 -1
  28. package/dist/{chunk-FYQBRCQM.mjs → chunk-N3B3XNV3.mjs} +1 -1
  29. package/dist/{chunk-MPTT6GRI.mjs → chunk-NTS4U2OE.mjs} +1 -1
  30. package/dist/{chunk-ATIEKI6M.mjs → chunk-O4GULNQE.mjs} +1 -1
  31. package/dist/{chunk-MO4HRQEL.mjs → chunk-PK3OBSCB.mjs} +1 -1
  32. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  33. package/dist/chunk-QM5FOQHG.mjs +10 -0
  34. package/dist/{chunk-W7MEHF4G.mjs → chunk-RNMPX2AU.mjs} +1 -1
  35. package/dist/{chunk-6VHK4OL7.mjs → chunk-RRLXKDET.mjs} +1 -1
  36. package/dist/{chunk-VR5WOPRD.mjs → chunk-SEXSYCWD.mjs} +1 -1
  37. package/dist/chunk-SIL7AP7H.mjs +1 -0
  38. package/dist/{chunk-JHYWAL24.mjs → chunk-SW7RYGO6.mjs} +1 -1
  39. package/dist/{chunk-5N32XPU2.mjs → chunk-U3F45KVI.mjs} +1 -1
  40. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  41. package/dist/{chunk-GTK2SGS5.mjs → chunk-XBCYPOFD.mjs} +1 -1
  42. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  43. package/dist/{chunk-DYCG7KUN.mjs → chunk-XHR2HXMP.mjs} +1 -1
  44. package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
  45. package/dist/chunk-XKM35QQD.mjs +4 -0
  46. package/dist/{chunk-HKMNAXLM.mjs → chunk-YKG4FNS4.mjs} +1 -1
  47. package/dist/{chunk-RRME4EHD.mjs → chunk-ZEPEWKBV.mjs} +1 -1
  48. package/dist/components/Blocks/Banner.mjs +1 -1
  49. package/dist/components/Blocks/CallToAction.mjs +1 -1
  50. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  51. package/dist/components/Blocks/Content.mjs +1 -1
  52. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  53. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  54. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  55. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  56. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  57. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  58. package/dist/components/Blocks/index.mjs +1 -1
  59. package/dist/components/Cards/ContentCard.mjs +1 -1
  60. package/dist/components/Cards/FeatureCard.mjs +1 -1
  61. package/dist/components/Cards/index.mjs +1 -1
  62. package/dist/components/Chat/ChatInterface.d.ts +2 -1
  63. package/dist/components/Chat/ChatInterface.js +7 -1
  64. package/dist/components/Chat/ChatInterface.mjs +1 -1
  65. package/dist/components/Chat/Components/Oauth.d.ts +11 -0
  66. package/dist/components/Chat/Components/Oauth.js +10 -0
  67. package/dist/components/Chat/Components/Oauth.mjs +2 -0
  68. package/dist/components/Chat/CopilotInterface.js +7 -1
  69. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  70. package/dist/components/Chat/PartTypes/PartAuthenticateTool.d.ts +15 -0
  71. package/dist/components/Chat/PartTypes/PartAuthenticateTool.js +10 -0
  72. package/dist/components/Chat/PartTypes/PartAuthenticateTool.mjs +1 -0
  73. package/dist/components/Chat/PartTypes/index.d.ts +1 -0
  74. package/dist/components/Chat/PartTypes/index.js +10 -0
  75. package/dist/components/Chat/PartTypes/index.mjs +1 -0
  76. package/dist/components/Chat/demo-long-messages.js +12 -6
  77. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  78. package/dist/components/Chat/demo-tests.css +1 -0
  79. package/dist/components/Chat/demo-tests.d.ts +10 -0
  80. package/dist/components/Chat/demo-tests.js +645 -0
  81. package/dist/components/Chat/demo-tests.mjs +635 -0
  82. package/dist/components/Chat/demo.js +7 -1
  83. package/dist/components/Chat/demo.mjs +1 -1
  84. package/dist/components/Chat/example-usage.js +7 -1
  85. package/dist/components/Chat/example-usage.mjs +1 -1
  86. package/dist/components/Chat/example-with-vercel-ai.js +7 -1
  87. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  88. package/dist/components/Chat/index.js +8 -2
  89. package/dist/components/Chat/index.mjs +1 -1
  90. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  91. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  92. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  93. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  94. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  95. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  96. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  97. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  98. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  99. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  100. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  101. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  102. package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
  103. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  104. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  105. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  106. package/dist/components/DigitalColleagues/index.js +1 -1
  107. package/dist/components/DigitalColleagues/index.mjs +1 -1
  108. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  109. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  110. package/dist/components/HeaderFooter/Header.mjs +1 -1
  111. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  112. package/dist/components/HeaderFooter/index.mjs +1 -1
  113. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  114. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  115. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  116. package/dist/components/Heros/PostHero/index.mjs +1 -1
  117. package/dist/components/Heros/RenderHero.mjs +1 -1
  118. package/dist/components/Heros/index.mjs +1 -1
  119. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  120. package/dist/components/Layouts/Print.mjs +1 -1
  121. package/dist/components/Layouts/SlideShow.mjs +1 -1
  122. package/dist/components/Layouts/index.mjs +1 -1
  123. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  124. package/dist/components/Menus/SidebarRight.mjs +1 -1
  125. package/dist/components/Menus/index.mjs +1 -1
  126. package/dist/components/Payload/Card/index.mjs +1 -1
  127. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  128. package/dist/components/Payload/Media/index.mjs +1 -1
  129. package/dist/components/Payload/RichText/index.mjs +1 -1
  130. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  131. package/dist/components/Payload/index.mjs +1 -1
  132. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  133. package/dist/components/Projects/ProjectPage.mjs +1 -1
  134. package/dist/components/Projects/ProjectView.mjs +1 -1
  135. package/dist/components/dc-temp/index.js +1 -1
  136. package/dist/components/dc-temp/index.mjs +1 -1
  137. package/dist/components/index.js +17 -11
  138. package/dist/components/index.mjs +1 -1
  139. package/dist/components/ui/index.mjs +1 -1
  140. package/dist/components/ui/sidebar.mjs +1 -1
  141. package/dist/globals.css +1 -1
  142. package/dist/index.js +21 -15
  143. package/dist/index.mjs +1 -1
  144. package/dist/metafile-cjs.json +1 -1
  145. package/dist/metafile-esm.json +1 -1
  146. package/dist/pages/Blog.mjs +1 -1
  147. package/dist/pages/Documentation.mjs +1 -1
  148. package/dist/pages/IndexPage.mjs +1 -1
  149. package/dist/pages/Intranet.mjs +1 -1
  150. package/dist/pages/LandingPage.mjs +1 -1
  151. package/dist/pages/Page.mjs +1 -1
  152. package/dist/pages/Publish.mjs +1 -1
  153. package/dist/pages/Website.mjs +1 -1
  154. package/dist/sections/AboutSection.mjs +1 -1
  155. package/dist/sections/BlogDetail.mjs +1 -1
  156. package/dist/sections/BlogList.mjs +1 -1
  157. package/dist/sections/BlogListSection.mjs +1 -1
  158. package/dist/sections/ContactSection.mjs +1 -1
  159. package/dist/sections/PageSections.mjs +1 -1
  160. package/dist/sections/PricingSection.mjs +1 -1
  161. package/dist/sections/ServiceDetail.mjs +1 -1
  162. package/dist/sections/ServiceDetailSection.mjs +1 -1
  163. package/dist/sections/ServiceSection.mjs +1 -1
  164. package/dist/sections/index.mjs +1 -1
  165. package/package.json +5 -5
  166. package/dist/chunk-553B5H2H.mjs +0 -4
  167. package/dist/chunk-FI57DC3P.mjs +0 -1
  168. package/dist/chunk-H7PR7Q2X.mjs +0 -4
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-6VHK4OL7.mjs";import"../../../chunk-5N32XPU2.mjs";import"../../../chunk-PEQOQ7BK.mjs";import"../../../chunk-VR5WOPRD.mjs";import"../../../chunk-2CS6P44F.mjs";import"../../../chunk-5OQF3MNO.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-ATIEKI6M.mjs";import"../../../chunk-LW4QFIFR.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-553B5H2H.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-2GNX22CR.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-BE5B22X7.mjs";import"../../../chunk-PA4ZBJDO.mjs";import"../../../chunk-CBLP4MXP.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-M245YHYF.mjs";import"../../../chunk-3KITWLRN.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-3UMMMQEH.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-RRLXKDET.mjs";import"../../../chunk-U3F45KVI.mjs";import"../../../chunk-PEQOQ7BK.mjs";import"../../../chunk-SEXSYCWD.mjs";import"../../../chunk-2CS6P44F.mjs";import"../../../chunk-5OQF3MNO.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-O4GULNQE.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-3PHJWI4Q.mjs";import"../../../chunk-XKM35QQD.mjs";import"../../../chunk-2GNX22CR.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-BE5B22X7.mjs";import"../../../chunk-PA4ZBJDO.mjs";import"../../../chunk-CBLP4MXP.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-M245YHYF.mjs";import"../../../chunk-3KITWLRN.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-3UMMMQEH.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-5N32XPU2.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-M245YHYF.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-U3F45KVI.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-M245YHYF.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";var ut=Object.create;var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},De=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ft(t))!bt.call(e,a)&&a!==r&&ie(e,a,{get:()=>t[a],enumerable:!(o=pt(t,a))||o.enumerable});return e};var q=(e,t,r)=>(r=e!=null?ut(gt(e)):{},De(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>De(ie({},"__esModule",{value:!0}),e);var rr={};ht(rr,{default:()=>mt});module.exports=xt(rr);var ct=require("react");var Ue=require("framer-motion");var je=require("class-variance-authority");var Le=require("clsx");var he="-",vt=e=>{let t=wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(he);return s[0]===""&&s.length!==1&&s.shift(),ze(s,t)||yt(i)},getConflictingClassGroupIds:(i,s)=>{let u=r[i]||[];return s&&o[i]?[...u,...o[i]]:u}}},ze=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ze(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(he);return t.validators.find(({validator:i})=>i(n))?.classGroupId},Te=/^\[(.+)\]$/,yt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return St(Object.entries(e.classGroups),r).forEach(([n,i])=>{be(i,o,n,t)}),o},be=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Me(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Nt(a)){be(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{be(i,Me(t,n),r,o)})})},Me=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Nt=e=>e.isThemeGetter,St=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},Ie="!",kt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let u=[],N=0,v=0,M;for(let h=0;h<s.length;h++){let P=s[h];if(N===0){if(P===a&&(o||s.slice(h,h+n)===t)){u.push(s.slice(v,h)),v=h+n;continue}if(P==="/"){M=h;continue}}P==="["?N++:P==="]"&&N--}let T=u.length===0?s:s.substring(v),d=T.startsWith(Ie),w=d?T.substring(1):T,g=M&&M>v?M-v:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:w,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:i}):i},Pt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Rt=e=>({cache:Ct(e.cacheSize),parseClassName:kt(e),...vt(e)}),Dt=/\s+/,Tt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Dt),s="";for(let u=i.length-1;u>=0;u-=1){let N=i[u],{modifiers:v,hasImportantModifier:M,baseClassName:T,maybePostfixModifierPosition:d}=r(N),w=!!d,g=o(w?T.substring(0,d):T);if(!g){if(!w){s=N+(s.length>0?" "+s:s);continue}if(g=o(T),!g){s=N+(s.length>0?" "+s:s);continue}w=!1}let h=Pt(v).join(":"),P=M?h+Ie:h,A=P+g;if(n.includes(A))continue;n.push(A);let p=a(g,w);for(let x=0;x<p.length;++x){let y=p[x];n.push(P+y)}s=N+(s.length>0?" "+s:s)}return s};function Mt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ae(t))&&(o&&(o+=" "),o+=r);return o}var Ae=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ae(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,a,n=i;function i(u){let N=t.reduce((v,M)=>M(v),e());return r=Rt(N),o=r.cache.get,a=r.cache.set,n=s,s(u)}function s(u){let N=o(u);if(N)return N;let v=Tt(u,r);return a(u,v),v}return function(){return n(Mt.apply(null,arguments))}}var S=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ke=/^\[(?:([a-Ve-]+):)?(.+)\]$/i,It=/^\d+\/\d+$/,At=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ve]+|0)_-?((\d+)?\.?(\d+)[a-Ve]+|0)/,jt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>ee(e)||At.has(e)||It.test(e),O=e=>te(e,"length",Wt),ee=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>te(e,"number",ee),oe=e=>!!e&&Number.isInteger(Number(e)),Vt=e=>e.endsWith("%")&&ee(e.slice(0,-1)),f=e=>Ke.test(e),U=e=>Kt.test(e),$t=new Set(["length","size","percentage"]),Gt=e=>te(e,$t,Be),Ht=e=>te(e,"position",Be),_t=new Set(["image","url"]),Ot=e=>te(e,_t,Xt),Ut=e=>te(e,"",Ft),ne=()=>!0,te=(e,t,r)=>{let o=Ke.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Wt=e=>Bt.test(e)&&!Et.test(e),Be=()=>!1,Ft=e=>Lt.test(e),Xt=e=>jt.test(e);var Jt=()=>{let e=S("colors"),t=S("spacing"),r=S("blur"),o=S("brightness"),a=S("borderColor"),n=S("borderRadius"),i=S("borderSpacing"),s=S("borderWidth"),u=S("contrast"),N=S("grayscale"),v=S("hueRotate"),M=S("invert"),T=S("gap"),d=S("gradientColorStops"),w=S("gradientColorStopPositions"),g=S("inset"),h=S("margin"),P=S("opacity"),A=S("padding"),p=S("saturate"),x=S("scale"),y=S("sepia"),k=S("skew"),J=S("space"),E=S("translate"),$=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",f,t],C=()=>[f,t],Ce=()=>["",_,O],ae=()=>["auto",ee,f],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",f],Re=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[ee,f];return{cacheSize:500,separator:":",theme:{colors:[ne],spacing:[_,O],blur:["none","",U,f],brightness:H(),borderColor:[e],borderRadius:["none","","full",U,f],borderSpacing:C(),borderWidth:Ce(),contrast:H(),grayscale:re(),hueRotate:H(),invert:re(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Vt,O],inset:pe(),margin:pe(),opacity:H(),padding:C(),saturate:H(),scale:H(),sepia:re(),skew:H(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Re()}],"break-before":[{"break-before":Re()}],"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:[...ke(),f]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],Ve:[{Ve:["auto",oe,f]}],basis:[{basis:pe()}],"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:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",oe,f]}],"grid-cols":[{"grid-cols":[ne]}],"col-start-end":[{col:["auto",{span:["full",oe,f]},f]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[ne]}],"row-start-end":[{row:["auto",{span:[oe,f]},f]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"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:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],Ve:[{Ve:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[J]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[J]}],"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:[U]},U]}],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",U,O]}],"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:[ne]}],"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",ee,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_,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:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_,O]}],"underline-offset":[{"underline-offset":["auto",_,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:C()}],"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:[...ke(),Ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Ve","tl"]},Ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-Ve":[{"rounded-Ve":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"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-Ve":[{"border-Ve":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...se(),"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:se()}],"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-Ve":[{"border-Ve":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[_,f]}],"outline-w":[{outline:[_,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[_,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Ut]}],"shadow-color":[{shadow:[ne]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Pe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",U,f]}],grayscale:[{grayscale:[N]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[M]}],saturate:[{saturate:[p]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[oe,f]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"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","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ve":[{"scroll-Ve":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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:[_,O,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"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ve:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-Ve","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-Ve":["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-Ve"],"border-w-x":["border-w-r","border-w-Ve"],"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-Ve"],"border-color-x":["border-color-r","border-color-Ve"],"border-color-y":["border-color-t","border-color-b"],"scroll-Ve":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ee=zt(Jt);function R(...e){return Ee((0,Le.clsx)(e))}var Ve=require("react/jsx-runtime"),qt=(0,je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function le({className:e,variant:t,...r}){return(0,Ve.jsx)("div",{className:R(qt({variant:t}),e),...r})}var $e=require("@radix-ui/react-slot"),He=q(require("react")),Qt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),L=He.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,Ve.jsx)(e?$e.Slot:"button",{className:R(Qt({className:t,size:r,variant:o})),ref:n,...a}));L.displayName="Button";function Oe(e,t){let[r,o]=(0,ct.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),a=n=>{try{o(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,ct.useEffect)(()=>{a(r)},[]),[r,a]}var ce=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:a,gradient:n,children:i,className:s}){let[u,N]=Oe(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),v=!a&&!t||u;return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${s||""}`,children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ve.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ve.jsx)("h2",{className:"text-3xl font-bold Ve-0",children:e})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[v&&o&&(0,Ve.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(a||t)&&(0,Ve.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>N(!u),style:{lineHeight:0},children:u?(0,Ve.jsx)(ce.FaChevronDown,{size:22}):(0,Ve.jsx)(ce.FaChevronUp,{size:22})})]})]}),!v&&(0,Ve.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ve.jsx)(L,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),a&&(0,Ve.jsx)(L,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),i&&(0,Ve.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var V=require("lucide-react");var We=q(require("react"));var W=We.forwardRef(({className:e,type:t,...r},o)=>(0,Ve.jsx)("input",{type:t,className:R("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));W.displayName="Input";var ve=q(require("react")),j=q(require("@radix-ui/react-scroll-area"));var ye=ve.forwardRef(({className:e,children:t,...r},o)=>(0,Ve.jsxs)(j.Root,{ref:o,className:R("relative overflow-hidden",e),...r,children:[(0,Ve.jsx)(j.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ve.jsx)(Xe,{}),(0,Ve.jsx)(j.Corner,{})]}));ye.displayName=j.Root.displayName;var Xe=ve.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ve.jsx)(j.ScrollAreaScrollbar,{ref:o,orientation:t,className:R("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Ve border-Ve-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Ve.jsx)(j.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Xe.displayName=j.ScrollAreaScrollbar.displayName;var Je=q(require("react")),we=Je.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("textarea",{className:R("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));we.displayName="Textarea";var b=q(require("@radix-ui/react-select")),X=q(require("react")),Qe=b.Root;var Ze=b.Value,Ne=X.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(b.Trigger,{className:R("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:o,...r,children:[e,(0,Ve.jsx)(b.Icon,{asChild:!0,children:(0,Ve.jsx)(V.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ne.displayName=b.Trigger.displayName;var Ye=X.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(b.ScrollUpButton,{className:R("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(V.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=b.ScrollUpButton.displayName;var et=X.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(b.ScrollDownButton,{className:R("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(V.ChevronDown,{className:"h-4 w-4"})}));et.displayName=b.ScrollDownButton.displayName;var Se=X.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,Ve.jsx)(b.Portal,{children:(0,Ve.jsxs)(b.Content,{className:R("relative Ve-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",r==="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:r,ref:a,...o,children:[(0,Ve.jsx)(Ye,{}),(0,Ve.jsx)(b.Viewport,{className:R("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ve.jsx)(et,{})]})}));Se.displayName=b.Content.displayName;var Zt=X.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(b.Label,{className:R("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zt.displayName=b.Label.displayName;var me=X.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(b.Item,{className:R("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:o,...r,children:[(0,Ve.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ve.jsx)(b.ItemIndicator,{children:(0,Ve.jsx)(V.Check,{className:"h-4 w-4"})})}),(0,Ve.jsx)(b.ItemText,{children:e})]}));me.displayName=b.Item.displayName;var Yt=X.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(b.Separator,{className:R("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yt.displayName=b.Separator.displayName;function rt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:a=[]}){let[n,i]=(0,ct.useState)({...e,updatedAt:new Date}),[s,u]=(0,ct.useState)(!1),[N,v]=(0,ct.useState)(!1),M=()=>{let p=new Set,x=new Set;return a.forEach(y=>{y.menuConfig.groupBy.forEach(k=>p.add(k))}),o.forEach(y=>{y.metadata&&Object.keys(y.metadata).forEach(k=>x.add(k))}),{contextKeys:Array.from(p).sort(),documentKeys:Array.from(x).sort(),allKeys:Array.from(new Set([...p,...x])).sort()}},T=p=>{let x=new Set;return o.forEach(y=>{y.metadata?.[p]&&x.add(String(y.metadata[p]))}),Array.from(x).sort()},d=M(),w=()=>{t(n)},g=(p,x)=>{i(y=>({...y,metadata:{...y.metadata,[p]:x}}))},h=(p,x)=>{x==="__custom__"?g(p,""):g(p,x)},P=()=>{let p=`field_${Date.now()}`;g(p,"")},A=p=>{i(x=>{let y={...x.metadata};return delete y[p],{...x,metadata:y}})};return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ve.jsx)(V.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ve.jsx)("div",{className:"flex-1 min-w-0",children:N?(0,Ve.jsx)(W,{value:n.title,onChange:p=>i(x=>({...x,title:p.target.value})),onBlur:()=>v(!1),onKeyDown:p=>{p.key==="Enter"&&v(!1),p.key==="Escape"&&(i(x=>({...x,title:e.title})),v(!1))},autoFocus:!0,className:"text-xl font-bold border-none p-0 h-auto bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0",placeholder:"Document title..."}):(0,Ve.jsxs)("div",{className:"flex items-center gap-2 group",children:[(0,Ve.jsx)("h1",{className:"text-xl font-bold text-foreground cursor-pointer hover:text-primary transition-colors py-1",onClick:()=>v(!0),title:"Click to edit title",children:n.title||"Untitled Document"}),(0,Ve.jsx)(L,{variant:"ghost",size:"sm",onClick:()=>v(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity h-6 w-6 p-0",children:(0,Ve.jsx)(V.Edit3,{className:"h-3 w-3"})})]})})]}),(0,Ve.jsxs)("div",{className:"flex gap-2",children:[(0,Ve.jsxs)(L,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ve.jsx)(V.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ve.jsxs)(L,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ve.jsx)(V.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Description"}),(0,Ve.jsx)(W,{value:n.description||"",onChange:p=>i(x=>({...x,description:p.target.value})),placeholder:"Brief description...",className:"text-sm"})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("button",{type:"button",onClick:()=>u(!s),className:"flex items-center justify-between w-full p-3 bg-muted/20 hover:bg-muted/30 rounded-lg border border-border transition-colors",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[s?(0,Ve.jsx)(V.ChevronDown,{className:"h-4 w-4 text-muted-foreground"}):(0,Ve.jsx)(V.ChevronRight,{className:"h-4 w-4 text-muted-foreground"}),(0,Ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Metadata"}),n.metadata&&Object.keys(n.metadata).length>0&&(0,Ve.jsxs)("span",{className:"text-xs bg-primary/10 text-primary px-2 py-1 rounded-full",children:[Object.keys(n.metadata).length," field",Object.keys(n.metadata).length!==1?"s":""]})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[d.contextKeys.length>0&&!s&&(0,Ve.jsxs)("span",{className:"text-xs text-muted-foreground",children:[d.contextKeys.slice(0,2).join(", "),d.contextKeys.length>2&&"..."]}),(0,Ve.jsxs)(L,{type:"button",variant:"ghost",size:"sm",onClick:p=>{p.stopPropagation(),P(),u(!0)},className:"gap-1 h-6 px-2",children:[(0,Ve.jsx)(V.Plus,{className:"h-3 w-3"}),"Add"]})]})]}),s&&(0,Ve.jsx)("div",{className:"mt-3 space-y-2 pl-6",children:n.metadata&&Object.keys(n.metadata).length>0?Object.entries(n.metadata).map(([p,x])=>{let y=T(p);return(0,Ve.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ve.jsx)(W,{value:p,onChange:k=>{let J=k.target.value,E=n.metadata?.[p];i($=>{let K={...$.metadata};return delete K[p],J&&(K[J]=E||""),{...$,metadata:K}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${p}`}),(0,Ve.jsx)("datalist",{id:`metadata-keys-${p}`,children:d.allKeys.map(k=>(0,Ve.jsx)("option",{value:k},k))}),(0,Ve.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),y.length>0?(0,Ve.jsxs)(Qe,{value:String(x||""),onValueChange:k=>h(p,k),children:[(0,Ve.jsx)(Ne,{className:"flex-1 h-8 text-sm",children:(0,Ve.jsx)(Ze,{placeholder:"Value"})}),(0,Ve.jsxs)(Se,{children:[y.map(k=>(0,Ve.jsx)(me,{value:k,children:k},k)),(0,Ve.jsx)(me,{value:"__custom__",children:(0,Ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ve.jsx)(W,{value:String(x||""),onChange:k=>g(p,k.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ve.jsx)(L,{type:"button",variant:"ghost",size:"sm",onClick:()=>A(p),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Ve.jsx)(V.X,{className:"h-3 w-3"})})]},p)}):(0,Ve.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/10",children:(0,Ve.jsx)("p",{className:"text-xs text-muted-foreground",children:"No metadata fields yet"})})})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ve.jsx)(le,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"p-8",children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ve.jsx)(we,{value:n.content||"",onChange:p=>i(x=>({...x,content:p.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var st=e=>(0,Ve.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ot=e=>(0,Ve.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),er=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,Ve.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ve.jsx)("pre",{className:"text-sm",children:e})]}),tr=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,Ve.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),st(e)]});function it({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:a=[],knowledgeContexts:n=[]}){let[i,s]=(0,ct.useState)(!1),u=d=>{switch(d){case"markdown":case"mdx":return(0,Ve.jsx)(V.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ve.jsx)(V.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ve.jsx)(V.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ve.jsx)(V.File,{className:"h-6 w-6 text-muted-foreground"})}},N=d=>{switch(d){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},v=(d,w)=>{let g={markdown:st,mdx:tr,richtext:er,text:ot},h=o?.[w]||g[w];return h?h(d):ot(d)},M=d=>{s(!1),t?.(d)},T=()=>{s(!1)};return i?(0,Ve.jsx)(rt,{document:e,onSave:M,onCancel:T,availableDocuments:a,knowledgeContexts:n}):(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ve.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:u(e.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ve.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsxs)(L,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,Ve.jsx)(V.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ve.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${N(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(d=>(0,Ve.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",d]},d))]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ve.jsxs)("div",{className:"mb-6",children:[(0,Ve.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ve.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Ve.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([d,w])=>(0,Ve.jsxs)("div",{className:"flex gap-1",children:[(0,Ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[d.replace(/([A-Ue])/g," $1").trim(),":"]}),(0,Ve.jsx)("span",{className:"text-foreground truncate",children:String(w)})]},d))})})]}),(0,Ve.jsx)("div",{className:"space-y-4",children:e.content?(0,Ve.jsx)("div",{className:"relative",children:(0,Ve.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:v(e.content,e.format)})}):(0,Ve.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ve.jsx)(V.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ve.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function lt({label:e,documents:t,children:r,level:o,onDocumentClick:a,selectedDocumentId:n,showDocumentCount:i=!0}){let[s,u]=(0,ct.useState)(o===0),N=r&&Object.keys(r).length>0,v=t.length+(r?Object.values(r).reduce((d,w)=>d+w.documents.length,0):0),M=d=>{switch(d){case"markdown":case"mdx":return(0,Ve.jsx)(V.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ve.jsx)(V.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ve.jsx)(V.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},T=d=>{let w=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return w[d%w.length]};return(0,Ve.jsxs)("div",{className:"space-y-1",children:[(N||t.length>0)&&(0,Ve.jsxs)(Ue.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>u(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:`w-1 h-6 rounded-full ${T(o)}`}),(0,Ve.jsx)(Ue.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ve.jsx)(V.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ve.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ve.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&v>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ve.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:v})})]})]}),(0,Ve.jsx)(Ue.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ve.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((d,w)=>(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:w*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===d.id?"bg-primary/10 border-Ve-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>a?.(d),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:"flex-shrink-0",children:M(d.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("p",{className:`text-sm truncate transition-colors ${n===d.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:d.title}),d.description&&(0,Ve.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:d.description})]}),d.tags&&d.tags.length>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:d.tags[0]})})]},d.id)),r&&Object.entries(r).map(([d,w])=>(0,Ve.jsx)(lt,{label:d,documents:w.documents,children:w.children,level:o+1,onDocumentClick:a,selectedDocumentId:n,showDocumentCount:i},d))]})})]})}function dt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:a,selectedDocumentId:n,className:i,editable:s=!0}){let[u,N]=(0,ct.useState)(""),[v,M]=(0,ct.useState)(null),T=(0,ct.useMemo)(()=>u?e.filter(g=>g.title.toLowerCase().includes(u.toLowerCase())||g.description?.toLowerCase().includes(u.toLowerCase())||g.tags?.some(h=>h.toLowerCase().includes(u.toLowerCase()))||Object.values(g.metadata||{}).some(h=>String(h).toLowerCase().includes(u.toLowerCase()))):e,[e,u]),d=(0,ct.useMemo)(()=>{let g=(h,P)=>{if(P.length===0)return{};let[A,...p]=P;return h.reduce((y,k)=>{let J=k.metadata?.[A]||"Uncategorized",E=String(J);if(y[E]||(y[E]={documents:[],children:{}}),p.length===0)y[E].documents.push(k);else{let $=g([k],p),K=Object.keys($)[0];K&&(y[E].children||(y[E].children={}),y[E].children[K]?y[E].children[K].documents.push(...$[K].documents):y[E].children[K]=$[K])}return y},{})};return g(T,t.groupBy)},[T,t.groupBy]),w=g=>{M(g),r?.(g)};return(0,Ve.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ve.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ve.jsx)("div",{className:"p-6 border-b border-border",children:(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ve.jsx)(V.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsx)(W,{placeholder:"Search knowledge base...",value:u,onChange:g=>N(g.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ve.jsx)(ye,{className:"h-[calc(100%-100px)]",children:(0,Ve.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(d).map(([g,h])=>(0,Ve.jsx)(lt,{label:g,documents:h.documents,children:h.children,level:0,onDocumentClick:w,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},g)),Object.keys(d).length===0&&(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ve.jsx)(V.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Ve.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ve.jsx)("div",{className:"flex-1 bg-background",children:v?(0,Ve.jsx)(it,{document:v,onDocumentUpdate:a,editable:s}):(0,Ve.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ve.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ve.jsx)(V.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ve.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ve.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function mt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:a,selectedDocumentId:n}){let[i,s]=(0,ct.useState)(t[0]);return!t||t.length===0?(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ve.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Ve.jsxs)("div",{className:"mt-6",children:[(0,Ve.jsx)("div",{className:"border-b border-border",children:(0,Ve.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(u=>(0,Ve.jsxs)("button",{onClick:()=>s(u),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===u.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[u.icon,u.label]},u.id))})}),i.description&&(0,Ve.jsx)("div",{className:"mt-3 px-1",children:(0,Ve.jsx)("p",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ve.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ve.jsx)(dt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
5
+ "use strict";var ut=Object.create;var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ft(t))!bt.call(e,s)&&s!==r&&ie(e,s,{get:()=>t[s],enumerable:!(o=pt(t,s))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?ut(gt(e)):{},Re(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>Re(ie({},"__esModule",{value:!0}),e);var rr={};ht(rr,{default:()=>mt});module.exports=xt(rr);var ct=require("react");var Ue=require("framer-motion");var Le=require("class-variance-authority");var Ee=require("clsx");var he="-",vt=e=>{let t=wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(he);return l[0]===""&&l.length!==1&&l.shift(),Ae(l,t)||yt(i)},getConflictingClassGroupIds:(i,l)=>{let f=r[i]||[];return l&&o[i]?[...f,...o[i]]:f}}},Ae=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ae(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return t.validators.find(({validator:i})=>i(n))?.classGroupId},De=/^\[(.+)\]$/,yt=e=>{if(De.test(e)){let t=De.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return St(Object.entries(e.classGroups),r).forEach(([n,i])=>{be(i,o,n,t)}),o},be=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Te(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Nt(s)){be(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{be(i,Te(t,n),r,o)})})},Te=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Nt=e=>e.isThemeGetter,St=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,l])=>[t+i,l])):n);return[r,s]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){r.has(n)?r.set(n,i):s(n,i)}}},ze="!",kt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=l=>{let f=[],v=0,w=0,C;for(let d=0;d<l.length;d++){let b=l[d];if(v===0){if(b===s&&(o||l.slice(d,d+n)===t)){f.push(l.slice(w,d)),w=d+n;continue}if(b==="/"){C=d;continue}}b==="["?v++:b==="]"&&v--}let R=f.length===0?l:l.substring(w),m=R.startsWith(ze),y=m?R.substring(1):R,a=C&&C>w?C-w:void 0;return{modifiers:f,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:a}};return r?l=>r({className:l,parseClassName:i}):i},Pt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Rt=e=>({cache:Ct(e.cacheSize),parseClassName:kt(e),...vt(e)}),Dt=/\s+/,Tt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(Dt),l="";for(let f=i.length-1;f>=0;f-=1){let v=i[f],{modifiers:w,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:m}=r(v),y=!!m,a=o(y?R.substring(0,m):R);if(!a){if(!y){l=v+(l.length>0?" "+l:l);continue}if(a=o(R),!a){l=v+(l.length>0?" "+l:l);continue}y=!1}let d=Pt(w).join(":"),b=C?d+ze:d,x=b+a;if(n.includes(x))continue;n.push(x);let I=s(a,y);for(let E=0;E<I.length;++E){let A=I[E];n.push(b+A)}l=v+(l.length>0?" "+l:l)}return l};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,s,n=i;function i(f){let v=t.reduce((w,C)=>C(w),e());return r=Rt(v),o=r.cache.get,s=r.cache.set,n=l,l(f)}function l(f){let v=o(f);if(v)return v;let w=Tt(f,r);return s(f,w),w}return function(){return n(At.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mt=/^\d+\/\d+$/,It=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Y(e)||It.has(e)||Mt.test(e),_=e=>ee(e,"length",Ot),Y=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ee(e,"number",Y),re=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&Y(e.slice(0,-1)),g=e=>Ie.test(e),U=e=>Kt.test(e),$t=new Set(["length","size","percentage"]),Gt=e=>ee(e,$t,Ke),Ht=e=>ee(e,"position",Ke),_t=new Set(["image","url"]),Ut=e=>ee(e,_t,Xt),Wt=e=>ee(e,"",Ft),oe=()=>!0,ee=(e,t,r)=>{let o=Ie.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ot=e=>Bt.test(e)&&!Et.test(e),Ke=()=>!1,Ft=e=>Lt.test(e),Xt=e=>Vt.test(e);var Jt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),i=N("borderSpacing"),l=N("borderWidth"),f=N("contrast"),v=N("grayscale"),w=N("hueRotate"),C=N("invert"),R=N("gap"),m=N("gradientColorStops"),y=N("gradientColorStopPositions"),a=N("inset"),d=N("margin"),b=N("opacity"),x=N("padding"),I=N("saturate"),E=N("scale"),A=N("sepia"),L=N("skew"),ne=N("space"),K=N("translate"),F=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",g,t],S=()=>[g,t],Se=()=>["",G,_],ae=()=>["auto",Y,g],Ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",g],Pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Y,g];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",U,g],brightness:$(),borderColor:[e],borderRadius:["none","","full",U,g],borderSpacing:S(),borderWidth:Se(),contrast:$(),grayscale:te(),hueRotate:$(),invert:te(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[jt,_],inset:pe(),margin:pe(),opacity:$(),padding:S(),saturate:$(),scale:$(),sepia:te(),skew:$(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Pe()}],"break-before":[{"break-before":Pe()}],"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:[...Ce(),g]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,g]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,g]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,g]},g]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,g]},g]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ve:[{Ve:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,_]}],"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:[oe]}],"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",g]}],"line-clamp":[{"line-clamp":["none",Y,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,g]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ce(),Ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:se()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[G,g]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Wt]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",U,g]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[re,g]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-Ve":[{"scroll-Ve":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,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"],Ve:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-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-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ve":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Be=zt(Jt);function k(...e){return Be((0,Ee.clsx)(e))}var Ve=require("react/jsx-runtime"),qt=(0,Le.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 le({className:e,variant:t,...r}){return(0,Ve.jsx)("div",{className:k(qt({variant:t}),e),...r})}var je=require("@radix-ui/react-slot"),Ge=X(require("react")),Qt=(0,$e.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"}}}),z=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Ve.jsx)(e?je.Slot:"button",{className:k(Qt({className:t,size:r,variant:o})),ref:n,...s}));z.displayName="Button";function _e(e,t){let[r,o]=(0,ct.useState)(()=>{if(typeof window>"Ve")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{o(n),typeof window<"Ve"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,ct.useEffect)(()=>{s(r)},[]),[r,s]}var ce=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:i,className:l}){let[f,v]=_e(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),w=!s&&!t||f;return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} Ve-8 text-white ${l||""}`,children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ve.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ve.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[w&&o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Ve.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Ve-1 text-white transition-colors",onClick:()=>v(!f),style:{lineHeight:0},children:f?(0,Ve.jsx)(ce.FaChevronDown,{size:22}):(0,Ve.jsx)(ce.FaChevronUp,{size:22})})]})]}),!w&&(0,Ve.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsx)("Ve",{className:"max-w-[600px] text-white/80",children:t}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Ve.jsx)(z,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,Ve.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var We=X(require("react"));var J=We.forwardRef(({className:e,type:t,...r},o)=>(0,Ve.jsx)("input",{type:t,className:k("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));J.displayName="Input";var ve=X(require("react")),M=X(require("@radix-ui/react-scroll-area"));var ye=ve.forwardRef(({className:e,children:t,...r},o)=>(0,Ve.jsxs)(M.Root,{ref:o,className:k("relative overflow-hidden",e),...r,children:[(0,Ve.jsx)(M.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ve.jsx)(Fe,{}),(0,Ve.jsx)(M.Corner,{})]}));ye.displayName=M.Root.displayName;var Fe=ve.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ve.jsx)(M.ScrollAreaScrollbar,{ref:o,orientation:t,className:k("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ve-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ve-[1px]",e),...r,children:(0,Ve.jsx)(M.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fe.displayName=M.ScrollAreaScrollbar.displayName;var Xe=X(require("react")),me=Xe.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("textarea",{className:k("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));me.displayName="Textarea";var h=X(require("@radix-ui/react-select")),O=X(require("react")),qe=h.Root;var Qe=h.Value,we=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Trigger,{className:k("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:o,...r,children:[e,(0,Ve.jsx)(h.Icon,{asChild:!0,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));we.displayName=h.Trigger.displayName;var Ze=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollUpButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=h.ScrollUpButton.displayName;var Ye=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollDownButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4"})}));Ye.displayName=h.ScrollDownButton.displayName;var Ne=O.forwardRef(({children:e,className:t,position:r="popper",...o},s)=>(0,Ve.jsx)(h.Portal,{children:(0,Ve.jsxs)(h.Content,{className:k("relative z-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",r==="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:r,ref:s,...o,children:[(0,Ve.jsx)(Ze,{}),(0,Ve.jsx)(h.Viewport,{className:k("Ve-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ve.jsx)(Ye,{})]})}));Ne.displayName=h.Content.displayName;var Zt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Label,{className:k("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zt.displayName=h.Label.displayName;var ue=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Item,{className:k("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:o,...r,children:[(0,Ve.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ve.jsx)(h.ItemIndicator,{children:(0,Ve.jsx)(B.Check,{className:"h-4 w-4"})})}),(0,Ve.jsx)(h.ItemText,{children:e})]}));ue.displayName=h.Item.displayName;var Yt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Separator,{className:k("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yt.displayName=h.Separator.displayName;function rt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:s=[]}){let[n,i]=(0,ct.useState)({...e,updatedAt:new Date}),l=()=>{let a=new Set,d=new Set;return s.forEach(b=>{b.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(b=>{b.metadata&&Object.keys(b.metadata).forEach(x=>d.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(d).sort(),allKeys:Array.from(new Set([...a,...d])).sort()}},f=a=>{let d=new Set;return o.forEach(b=>{b.metadata?.[a]&&d.add(String(b.metadata[a]))}),Array.from(d).sort()},v=l(),w=()=>{t(n)},C=(a,d)=>{i(b=>({...b,metadata:{...b.metadata,[a]:d}}))},R=(a,d)=>{d==="__custom__"?C(a,""):C(a,d)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},y=a=>{i(d=>{let b={...d.metadata};return delete b[a],{...d,metadata:b}})};return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ve.jsx)(B.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Ve.jsxs)("div",{className:"flex gap-2",children:[(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ve.jsx)(B.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ve.jsxs)(z,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ve.jsx)(B.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Ve.jsx)(J,{value:n.title,onChange:a=>i(d=>({...d,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Ve.jsx)(me,{value:n.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),v.contextKeys.length>0&&(0,Ve.jsxs)("Ve",{className:"text-xs text-muted-foreground",children:["Suggested: ",v.contextKeys.slice(0,4).join(", "),v.contextKeys.length>4&&` +${v.contextKeys.length-4}`]})]}),(0,Ve.jsxs)(z,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ve.jsx)(B.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ve.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,d])=>{let b=f(a);return(0,Ve.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ve.jsx)(J,{value:a,onChange:x=>{let I=x.target.value,E=n.metadata?.[a];i(A=>{let L={...A.metadata};return delete L[a],I&&(L[I]=E||""),{...A,metadata:L}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ve.jsx)("datalist",{id:`metadata-keys-${a}`,children:v.allKeys.map(x=>(0,Ve.jsx)("option",{value:x},x))}),(0,Ve.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),b.length>0?(0,Ve.jsxs)(qe,{value:String(d||""),onValueChange:x=>R(a,x),children:[(0,Ve.jsx)(we,{className:"flex-1 h-8 text-sm",children:(0,Ve.jsx)(Qe,{placeholder:"Value"})}),(0,Ve.jsxs)(Ne,{children:[b.map(x=>(0,Ve.jsx)(ue,{value:x,children:x},x)),(0,Ve.jsx)(ue,{value:"__custom__",children:(0,Ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ve.jsx)(J,{value:String(d||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ve.jsx)(z,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(a),className:"h-8 w-8 Ve-0 text-muted-foreground hover:text-destructive",children:(0,Ve.jsx)(B.X,{className:"h-3 w-3"})})]},a)})}):(0,Ve.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ve.jsx)(le,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ve.jsx)(me,{value:n.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var st=e=>(0,Ve.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ot=e=>(0,Ve.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),er=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ve.jsx)("pre",{className:"text-sm",children:e})]}),tr=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),st(e)]});function it({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:s=[],knowledgeContexts:n=[]}){let[i,l]=(0,ct.useState)(!1),f=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ve.jsx)(B.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-muted-foreground"})}},v=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,y)=>{let a={markdown:st,mdx:tr,richtext:er,text:ot},d=o?.[y]||a[y];return d?d(m):ot(m)},C=m=>{l(!1),t?.(m)},R=()=>{l(!1)};return i?(0,Ve.jsx)(rt,{document:e,onSave:C,onCancel:R,availableDocuments:s,knowledgeContexts:n}):(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ve.jsxs)("div",{className:"border-b border-border bg-card Ve-8",children:[(0,Ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ve.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ve.jsx)("div",{className:"flex-shrink-0 Ve-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsxs)(z,{variant:"outline",size:"sm",onClick:()=>l(!0),className:"gap-2",children:[(0,Ve.jsx)(B.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ve.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${v(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Ve.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,Ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ve.jsxs)("div",{className:"Ve-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ve.jsxs)("div",{className:"mb-6",children:[(0,Ve.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ve.jsx)("div",{className:"bg-muted rounded-lg Ve-3 border border-border",children:(0,Ve.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,y])=>(0,Ve.jsxs)("div",{className:"flex gap-1",children:[(0,Ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-ct])/g," $1").trim(),":"]}),(0,Ve.jsx)("span",{className:"text-foreground truncate",children:String(y)})]},m))})})]}),(0,Ve.jsx)("div",{className:"space-y-4",children:e.content?(0,Ve.jsx)("div",{className:"relative",children:(0,Ve.jsx)("div",{className:"bg-card border border-border rounded-xl Ve-6 overflow-hidden",children:w(e.content,e.format)})}):(0,Ve.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function lt({label:e,documents:t,children:r,level:o,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i=!0}){let[l,f]=(0,ct.useState)(o===0),v=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,y)=>m+y.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},R=m=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[m%y.length]};return(0,Ve.jsxs)("div",{className:"space-y-1",children:[(v||t.length>0)&&(0,Ve.jsxs)(Ue.motion.div,{className:`group flex items-center gap-3 Ve-3 rounded-xl cursor-pointer transition-all duration-200 ${l?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>f(!l),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:`w-1 h-6 rounded-full ${R(o)}`}),(0,Ve.jsx)(Ue.motion.div,{animate:{rotate:l?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ve.jsx)(B.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ve.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ve.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&w>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ve.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:w})})]})]}),(0,Ve.jsx)(Ue.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ve.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,y)=>(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05,duration:.2},className:`group flex items-center gap-3 Ve-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>s?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("Ve",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,y])=>(0,Ve.jsx)(lt,{label:m,documents:y.documents,children:y.children,level:o+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i},m))]})})]})}function dt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:s,selectedDocumentId:n,className:i,editable:l=!0}){let[f,v]=(0,ct.useState)(""),[w,C]=(0,ct.useState)(null),R=(0,ct.useMemo)(()=>f?e.filter(a=>a.title.toLowerCase().includes(f.toLowerCase())||a.description?.toLowerCase().includes(f.toLowerCase())||a.tags?.some(d=>d.toLowerCase().includes(f.toLowerCase()))||Object.values(a.metadata||{}).some(d=>String(d).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),m=(0,ct.useMemo)(()=>{let a=(d,b)=>{if(b.length===0)return{};let[x,...I]=b;return d.reduce((A,L)=>{let ne=L.metadata?.[x]||"Uncategorized",K=String(ne);if(A[K]||(A[K]={documents:[],children:{}}),I.length===0)A[K].documents.push(L);else{let F=a([L],I),V=Object.keys(F)[0];V&&(A[K].children||(A[K].children={}),A[K].children[V]?A[K].children[V].documents.push(...F[V].documents):A[K].children[V]=F[V])}return A},{})};return a(R,t.groupBy)},[R,t.groupBy]),y=a=>{C(a),r?.(a)};return(0,Ve.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ve.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ve.jsx)("div",{className:"Ve-6 border-b border-border",children:(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ve.jsx)(B.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsx)(J,{placeholder:"Search knowledge base...",value:f,onChange:a=>v(a.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ve.jsx)(ye,{className:"h-[calc(100%-100px)]",children:(0,Ve.jsxs)("div",{className:"Ve-4 space-y-3",children:[Object.entries(m).map(([a,d])=>(0,Ve.jsx)(lt,{label:a,documents:d.documents,children:d.children,level:0,onDocumentClick:y,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("Ve",{className:"text-sm font-medium",children:"No documents found"}),(0,Ve.jsx)("Ve",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ve.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ve.jsx)(it,{document:w,onDocumentUpdate:s,editable:l}):(0,Ve.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ve.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ve.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function mt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:s,selectedDocumentId:n}){let[i,l]=(0,ct.useState)(t[0]);return!t||t.length===0?(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ve.jsx)("Ve",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Ve.jsxs)("div",{className:"mt-6",children:[(0,Ve.jsx)("div",{className:"border-b border-border",children:(0,Ve.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,Ve.jsxs)("button",{onClick:()=>l(f),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),i.description&&(0,Ve.jsx)("div",{className:"mt-3 px-1",children:(0,Ve.jsx)("Ve",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ve.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ve.jsx)(dt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
@@ -1 +1 @@
1
- import{a}from"../../../chunk-VR5WOPRD.mjs";import"../../../chunk-ATIEKI6M.mjs";import"../../../chunk-LW4QFIFR.mjs";import"../../../chunk-553B5H2H.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-CSBGSBEU.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};
1
+ import{a}from"../../../chunk-SEXSYCWD.mjs";import"../../../chunk-O4GULNQE.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-3PHJWI4Q.mjs";import"../../../chunk-XKM35QQD.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-CSBGSBEU.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};