cortex-react-components 2.17.3 → 2.17.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/{chunk-P7S6XFU4.mjs → chunk-23XORW7A.mjs} +1 -1
  2. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-2GZQYAN3.mjs} +1 -1
  3. package/dist/{chunk-PNUBVBSR.mjs → chunk-4NHQXOKZ.mjs} +1 -1
  4. package/dist/{chunk-KUFXQZI5.mjs → chunk-57HKHEQN.mjs} +1 -1
  5. package/dist/{chunk-GETYSIZV.mjs → chunk-5KS3DITB.mjs} +1 -1
  6. package/dist/{chunk-PTZT4QJW.mjs → chunk-66ODXUVL.mjs} +1 -1
  7. package/dist/{chunk-LAQ3QAUW.mjs → chunk-75WE6ZXB.mjs} +1 -1
  8. package/dist/{chunk-5NIEZE7A.mjs → chunk-AGWQ5S2Z.mjs} +1 -1
  9. package/dist/{chunk-2GM2LPLB.mjs → chunk-BDNY6OKE.mjs} +1 -1
  10. package/dist/{chunk-FYQBRCQM.mjs → chunk-BGADMIWV.mjs} +1 -1
  11. package/dist/{chunk-HKMNAXLM.mjs → chunk-BN747TQM.mjs} +1 -1
  12. package/dist/{chunk-AQQCH7Z2.mjs → chunk-CNCT3JZV.mjs} +1 -1
  13. package/dist/{chunk-3GROWGZ5.mjs → chunk-CQAMS7RZ.mjs} +1 -1
  14. package/dist/{chunk-JCWFPKF3.mjs → chunk-CYWA6TR2.mjs} +1 -1
  15. package/dist/{chunk-UCPJ4KXN.mjs → chunk-DA2BPW6D.mjs} +1 -1
  16. package/dist/{chunk-LHO4WFYP.mjs → chunk-ERHNVIOZ.mjs} +1 -1
  17. package/dist/{chunk-O24GFE6Q.mjs → chunk-GIL2SMPM.mjs} +1 -1
  18. package/dist/{chunk-GQEGZKN6.mjs → chunk-I6OBIS4J.mjs} +1 -1
  19. package/dist/{chunk-GAZHKHGB.mjs → chunk-JLUX7EHB.mjs} +1 -1
  20. package/dist/{chunk-MO4HRQEL.mjs → chunk-JT65KF7C.mjs} +1 -1
  21. package/dist/{chunk-R6AYIVIR.mjs → chunk-JUFFNFV6.mjs} +1 -1
  22. package/dist/{chunk-FEWOSBUJ.mjs → chunk-KRLNPNMZ.mjs} +1 -1
  23. package/dist/{chunk-RQLUMNJE.mjs → chunk-L5NPH5RX.mjs} +1 -1
  24. package/dist/{chunk-HDKHF3EA.mjs → chunk-M74BIPBM.mjs} +1 -1
  25. package/dist/{chunk-4SRUEQTP.mjs → chunk-NXG2Y4N4.mjs} +1 -1
  26. package/dist/chunk-ONNK2NEI.mjs +4 -0
  27. package/dist/{chunk-RS4VD3ML.mjs → chunk-PMYLKWPE.mjs} +1 -1
  28. package/dist/{chunk-7OMPPFGG.mjs → chunk-PRK2XFAZ.mjs} +1 -1
  29. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  30. package/dist/{chunk-P6OSMPUQ.mjs → chunk-PZZTGPEO.mjs} +1 -1
  31. package/dist/chunk-RBJOTC2X.mjs +4 -0
  32. package/dist/chunk-RZELSUQT.mjs +4 -0
  33. package/dist/{chunk-KVLUT4U2.mjs → chunk-S3P6OGB7.mjs} +1 -1
  34. package/dist/chunk-SK2QJG6J.mjs +4 -0
  35. package/dist/{chunk-F64CA5CH.mjs → chunk-T36QUKC6.mjs} +1 -1
  36. package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
  37. package/dist/{chunk-AGDKFAMN.mjs → chunk-UECG3SCG.mjs} +1 -1
  38. package/dist/{chunk-KG3MNGT6.mjs → chunk-UENQZNU3.mjs} +1 -1
  39. package/dist/{chunk-3ANJOET7.mjs → chunk-UX5OJ3WS.mjs} +1 -1
  40. package/dist/{chunk-BQQ4V4PX.mjs → chunk-WDZOGIT2.mjs} +1 -1
  41. package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
  42. package/dist/{chunk-NSWNM3O5.mjs → chunk-X5UJBRSB.mjs} +1 -1
  43. package/dist/{chunk-U3FYDDE2.mjs → chunk-Y62OBV2E.mjs} +1 -1
  44. package/dist/{chunk-RFRNTKO7.mjs → chunk-ZAAHG2J7.mjs} +1 -1
  45. package/dist/chunk-ZCBUDRT7.mjs +4 -0
  46. package/dist/chunk-ZNSW443Y.mjs +4 -0
  47. package/dist/components/Blocks/Banner.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.mjs +1 -1
  49. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  50. package/dist/components/Blocks/Content.mjs +1 -1
  51. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  52. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  53. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  54. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  55. package/dist/components/Blocks/index.mjs +1 -1
  56. package/dist/components/Cards/ContentCard.mjs +1 -1
  57. package/dist/components/Cards/FeatureCard.mjs +1 -1
  58. package/dist/components/Cards/index.mjs +1 -1
  59. package/dist/components/Chat/example-usage.mjs +1 -1
  60. package/dist/components/Chat/index.mjs +1 -1
  61. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  62. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  63. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  64. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  65. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  66. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  67. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  68. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  69. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  70. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  71. package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
  72. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  73. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  74. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  75. package/dist/components/DigitalColleagues/index.js +1 -1
  76. package/dist/components/DigitalColleagues/index.mjs +1 -1
  77. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  78. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  79. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  80. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  81. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  82. package/dist/components/Foundary/MainPage.mjs +1 -1
  83. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  84. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  85. package/dist/components/Foundary/RichText/index.js +1 -1
  86. package/dist/components/Foundary/RichText/index.mjs +1 -1
  87. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  88. package/dist/components/Foundary/Views/KnowledgeView.js +2 -2
  89. package/dist/components/Foundary/Views/KnowledgeView.mjs +2 -1
  90. package/dist/components/Foundary/Views/index.js +1 -1
  91. package/dist/components/Foundary/Views/index.mjs +1 -1
  92. package/dist/components/Foundary/document-edit.js +1 -1
  93. package/dist/components/Foundary/document-edit.mjs +1 -1
  94. package/dist/components/Foundary/document-preview-examples.js +3 -3
  95. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  96. package/dist/components/Foundary/document-preview.js +1 -1
  97. package/dist/components/Foundary/document-preview.mjs +1 -1
  98. package/dist/components/Foundary/index.js +1 -1
  99. package/dist/components/Foundary/index.mjs +1 -1
  100. package/dist/components/Foundary/knowledge-browser.js +1 -1
  101. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  102. package/dist/components/HeaderFooter/Header.mjs +1 -1
  103. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  104. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  105. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  106. package/dist/components/HeaderFooter/index.mjs +1 -1
  107. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  108. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  109. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  110. package/dist/components/Heros/PostHero/index.mjs +1 -1
  111. package/dist/components/Heros/RenderHero.mjs +1 -1
  112. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  113. package/dist/components/Heros/index.mjs +1 -1
  114. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  115. package/dist/components/Layouts/Print.mjs +1 -1
  116. package/dist/components/Layouts/SlideShow.mjs +1 -1
  117. package/dist/components/Layouts/index.mjs +1 -1
  118. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  119. package/dist/components/Menus/SidebarRight.mjs +1 -1
  120. package/dist/components/Menus/index.mjs +1 -1
  121. package/dist/components/Other/index.mjs +1 -1
  122. package/dist/components/Payload/RichText/index.mjs +1 -1
  123. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  124. package/dist/components/Payload/index.mjs +1 -1
  125. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  126. package/dist/components/Projects/ProjectPage.mjs +1 -1
  127. package/dist/components/Projects/ProjectView.mjs +1 -1
  128. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  129. package/dist/components/Projects/index.mjs +1 -1
  130. package/dist/components/dc-temp/index.js +1 -1
  131. package/dist/components/dc-temp/index.mjs +1 -1
  132. package/dist/components/index.js +17 -17
  133. package/dist/components/index.mjs +1 -1
  134. package/dist/components/ui/index.mjs +1 -1
  135. package/dist/components/ui/sidebar.mjs +1 -1
  136. package/dist/globals.css +1 -1
  137. package/dist/index.js +14 -14
  138. package/dist/index.mjs +1 -1
  139. package/dist/metafile-cjs.json +1 -1
  140. package/dist/metafile-esm.json +1 -1
  141. package/dist/pages/Blog.mjs +1 -1
  142. package/dist/pages/Documentation.mjs +1 -1
  143. package/dist/pages/IndexPage.mjs +1 -1
  144. package/dist/pages/Intranet.mjs +1 -1
  145. package/dist/pages/LandingPage.mjs +1 -1
  146. package/dist/pages/Page.mjs +1 -1
  147. package/dist/pages/Publish.mjs +1 -1
  148. package/dist/pages/Website.mjs +1 -1
  149. package/dist/sections/AboutSection.mjs +1 -1
  150. package/dist/sections/BlogDetail.mjs +1 -1
  151. package/dist/sections/BlogList.mjs +1 -1
  152. package/dist/sections/BlogListSection.mjs +1 -1
  153. package/dist/sections/ContactSection.mjs +1 -1
  154. package/dist/sections/PageSections.mjs +1 -1
  155. package/dist/sections/PricingSection.mjs +1 -1
  156. package/dist/sections/ServiceDetail.mjs +1 -1
  157. package/dist/sections/ServiceDetailSection.mjs +1 -1
  158. package/dist/sections/ServiceSection.mjs +1 -1
  159. package/dist/sections/index.mjs +1 -1
  160. package/package.json +1 -1
  161. package/dist/chunk-AREQGH47.mjs +0 -4
  162. package/dist/chunk-RHR3YOLG.mjs +0 -4
  163. package/dist/chunk-SX456QYL.mjs +0 -4
  164. package/dist/chunk-TNQS3NVB.mjs +0 -1
  165. package/dist/chunk-UK7PR73C.mjs +0 -4
  166. package/dist/chunk-ZXPDSSCF.mjs +0 -4
@@ -1 +1 @@
1
- import{a as s}from"../../chunk-3GROWGZ5.mjs";import{a as w}from"../../chunk-CJDUN6R4.mjs";import{a as h}from"../../chunk-KG3MNGT6.mjs";import{a as P}from"../../chunk-SNTLCFXF.mjs";import{a as n}from"../../chunk-CTAIR3TE.mjs";import{a as g}from"../../chunk-GS3P2V76.mjs";import{a as i}from"../../chunk-CO6AQNZ5.mjs";import{a as C}from"../../chunk-ZXPDSSCF.mjs";import{a as u}from"../../chunk-RHR3YOLG.mjs";import{a as d}from"../../chunk-AREQGH47.mjs";import{a}from"../../chunk-JCWFPKF3.mjs";import{a as m}from"../../chunk-EOXVYLPB.mjs";import{a as l}from"../../chunk-AOQPH32M.mjs";import{a as f}from"../../chunk-47OE4ZPY.mjs";import{a as p}from"../../chunk-4USR4WTH.mjs";import{a as x}from"../../chunk-6XUIHSKG.mjs";import{a as r}from"../../chunk-AQQCH7Z2.mjs";import{a as t}from"../../chunk-TR6RBROH.mjs";import"../../chunk-R4SE63GR.mjs";import"../../chunk-DXRAJQMA.mjs";import"../../chunk-VGWDYD6Z.mjs";import{a as S}from"../../chunk-AGDKFAMN.mjs";import"../../chunk-QOZ2O3FG.mjs";import"../../chunk-6PS55VJZ.mjs";import{a as D}from"../../chunk-NAGBKKTZ.mjs";import"../../chunk-JXQRVEQB.mjs";import"../../chunk-RQLUMNJE.mjs";import"../../chunk-UM57PWI7.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-KZCIHFTM.mjs";import{a as c}from"../../chunk-2R3MJSQ7.mjs";import{a as b}from"../../chunk-HSQAHQNP.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-YRMNCHFO.mjs";import{a as o}from"../../chunk-EOR2BAI2.mjs";import{a as e}from"../../chunk-CTTBF7F4.mjs";import"../../chunk-Y7H3EUBR.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-LAQ3QAUW.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-L3BLBPSR.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{r as AppSidebarLeft,l as ColleagueCard,f as ColleagueForm,x as ColleagueTypeSelection,w as ColleaguesView,t as DashboardHeader,s as DashboardPage,e as DigitalColleageusLayout,g as DigitalColleagueClone,i as DigitalColleagueOptions,d as DocumentEdit,u as DocumentPreview,D as FileView,C as KnowledgeBrowser,p as KnowledgeSearch,h as KnowledgeView,a as MainPage,o as ManagementSidebar,c as PlanningView,S as ProjectView,b as ProjectsIndexView,m as SearchableSelect,n as TeamForm,P as TeamsIndexView};
1
+ import{a as s}from"../../chunk-CQAMS7RZ.mjs";import{a as w}from"../../chunk-CJDUN6R4.mjs";import{a as h}from"../../chunk-UENQZNU3.mjs";import{a as P}from"../../chunk-SNTLCFXF.mjs";import{a as n}from"../../chunk-CTAIR3TE.mjs";import{a as g}from"../../chunk-GS3P2V76.mjs";import{a as i}from"../../chunk-CO6AQNZ5.mjs";import{a as C}from"../../chunk-ZNSW443Y.mjs";import{a as u}from"../../chunk-RZELSUQT.mjs";import{a as d}from"../../chunk-ONNK2NEI.mjs";import{a}from"../../chunk-CYWA6TR2.mjs";import{a as m}from"../../chunk-EOXVYLPB.mjs";import{a as l}from"../../chunk-AOQPH32M.mjs";import{a as f}from"../../chunk-47OE4ZPY.mjs";import{a as p}from"../../chunk-4USR4WTH.mjs";import{a as x}from"../../chunk-6XUIHSKG.mjs";import{a as r}from"../../chunk-CNCT3JZV.mjs";import{a as t}from"../../chunk-TR6RBROH.mjs";import"../../chunk-R4SE63GR.mjs";import{a as S}from"../../chunk-UECG3SCG.mjs";import"../../chunk-QOZ2O3FG.mjs";import"../../chunk-L5NPH5RX.mjs";import"../../chunk-KZCIHFTM.mjs";import{a as c}from"../../chunk-2R3MJSQ7.mjs";import{a as b}from"../../chunk-TKCFCYEQ.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-UM57PWI7.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-6PS55VJZ.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-5RTGHMF3.mjs";import{a as D}from"../../chunk-NAGBKKTZ.mjs";import"../../chunk-JXQRVEQB.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-VGWDYD6Z.mjs";import"../../chunk-DXRAJQMA.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-YRMNCHFO.mjs";import{a as o}from"../../chunk-EOR2BAI2.mjs";import{a as e}from"../../chunk-CTTBF7F4.mjs";import"../../chunk-Y7H3EUBR.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-PXLSH6S2.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-75WE6ZXB.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-WUA65ZZB.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{r as AppSidebarLeft,l as ColleagueCard,f as ColleagueForm,x as ColleagueTypeSelection,w as ColleaguesView,t as DashboardHeader,s as DashboardPage,e as DigitalColleageusLayout,g as DigitalColleagueClone,i as DigitalColleagueOptions,d as DocumentEdit,u as DocumentPreview,D as FileView,C as KnowledgeBrowser,p as KnowledgeSearch,h as KnowledgeView,a as MainPage,o as ManagementSidebar,c as PlanningView,S as ProjectView,b as ProjectsIndexView,m as SearchableSelect,n as TeamForm,P as TeamsIndexView};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var rt=Object.create;var ae=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty;var it=(e,t)=>{for(var r in t)ae(e,r,{get:t[r],enumerable:!0})},we=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of nt(t))!st.call(e,l)&&l!==r&&ae(e,l,{get:()=>t[l],enumerable:!(o=ot(t,l))||o.enumerable});return e};var O=(e,t,r)=>(r=e!=null?rt(at(e)):{},we(t||!e||!e.__esModule?ae(r,"default",{value:e,enumerable:!0}):r,e)),lt=e=>we(ae({},"__esModule",{value:!0}),e);var Ft={};it(Ft,{KnowledgeBrowser:()=>Ot});module.exports=lt(Ft);var q=require("motion/react"),I=require("lucide-react"),Q=require("react");var Te=O(require("react"));var Me=require("clsx");var ue="-",ct=e=>{let t=mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let s=d.split(ue);return s[0]===""&&s.length!==1&&s.shift(),Ce(s,t)||dt(d)},getConflictingClassGroupIds:(d,s)=>{let h=r[d]||[];return s&&o[d]?[...h,...o[d]]:h}}},Ce=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?Ce(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let n=e.join(ue);return t.validators.find(({validator:d})=>d(n))?.classGroupId},Ne=/^\[(.+)\]$/,dt=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return pt(Object.entries(e.classGroups),r).forEach(([n,d])=>{me(d,o,n,t)}),o},me=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?t:Se(t,l);n.classGroupId=r;return}if(typeof l=="function"){if(ut(l)){me(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,d])=>{me(d,Se(t,n),r,o)})})},Se=(e,t)=>{let r=e;return t.split(ue).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},ut=e=>e.isThemeGetter,pt=(e,t)=>t?e.map(([r,o])=>{let l=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([d,s])=>[t+d,s])):n);return[r,l]}):e,ft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(n,d)=>{r.set(n,d),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let d=r.get(n);if(d!==void 0)return d;if((d=o.get(n))!==void 0)return l(n,d),d},set(n,d){r.has(n)?r.set(n,d):l(n,d)}}},Pe="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],n=t.length,d=s=>{let h=[],y=0,w=0,C;for(let i=0;i<s.length;i++){let g=s[i];if(y===0){if(g===l&&(o||s.slice(i,i+n)===t)){h.push(s.slice(w,i)),w=i+n;continue}if(g==="/"){C=i;continue}}g==="["?y++:g==="]"&&y--}let k=h.length===0?s:s.substring(w),m=k.startsWith(Pe),v=m?k.substring(1):k,a=C&&C>w?C-w:void 0;return{modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:a}};return r?s=>r({className:s,parseClassName:d}):d},bt=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},ht=e=>({cache:ft(e.cacheSize),parseClassName:gt(e),...ct(e)}),xt=/\s+/,vt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,n=[],d=e.trim().split(xt),s="";for(let h=d.length-1;h>=0;h-=1){let y=d[h],{modifiers:w,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:m}=r(y),v=!!m,a=o(v?k.substring(0,m):k);if(!a){if(!v){s=y+(s.length>0?" "+s:s);continue}if(a=o(k),!a){s=y+(s.length>0?" "+s:s);continue}v=!1}let i=bt(w).join(":"),g=C?i+Pe:i,x=g+a;if(n.includes(x))continue;n.push(x);let M=l(a,v);for(let z=0;z<M.length;++z){let A=M[z];n.push(g+A)}s=y+(s.length>0?" "+s:s)}return s};function yt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Re(t))&&(o&&(o+=" "),o+=r);return o}var Re=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Re(e[o]))&&(r&&(r+=" "),r+=t);return r};function wt(e,...t){let r,o,l,n=d;function d(h){let y=t.reduce((w,C)=>C(w),e());return r=ht(y),o=r.cache.get,l=r.cache.set,n=s,s(h)}function s(h){let y=o(h);if(y)return y;let w=vt(h,r);return l(h,w),w}return function(){return n(yt.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ke=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nt=/^\d+\/\d+$/,St=new Set(["px","full","screen"]),Ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pt=/\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$/,Rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Ie-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Z(e)||St.has(e)||Nt.test(e),$=e=>J(e,"length",Bt),Z=e=>!!e&&!Number.isNaN(Number(e)),de=e=>J(e,"number",Z),ee=e=>!!e&&Number.isInteger(Number(e)),Dt=e=>e.endsWith("%")&&Z(e.slice(0,-1)),f=e=>ke.test(e),G=e=>Ct.test(e),Mt=new Set(["length","size","percentage"]),Tt=e=>J(e,Mt,Ae),It=e=>J(e,"position",Ae),zt=new Set(["image","url"]),Et=e=>J(e,zt,jt),Kt=e=>J(e,"",Lt),te=()=>!0,J=(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},Bt=e=>Pt.test(e)&&!Rt.test(e),Ae=()=>!1,Lt=e=>kt.test(e),jt=e=>At.test(e);var Vt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),l=N("borderColor"),n=N("borderRadius"),d=N("borderSpacing"),s=N("borderWidth"),h=N("contrast"),y=N("grayscale"),w=N("hueRotate"),C=N("invert"),k=N("gap"),m=N("gradientColorStops"),v=N("gradientColorStopPositions"),a=N("inset"),i=N("margin"),g=N("opacity"),x=N("padding"),M=N("saturate"),z=N("scale"),A=N("sepia"),E=N("skew"),re=N("space"),T=N("translate"),U=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",f,t],S=()=>[f,t],he=()=>["",j,$],oe=()=>["auto",Z,f],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",f],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Z,f];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[j,$],blur:["none","",G,f],brightness:L(),borderColor:[e],borderRadius:["none","","full",G,f],borderSpacing:S(),borderWidth:he(),contrast:L(),grayscale:Y(),hueRotate:L(),invert:Y(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Dt,$],inset:le(),margin:le(),opacity:L(),padding:S(),saturate:L(),scale:L(),sepia:Y(),skew:L(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...xe(),f]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],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",ee,f]}],basis:[{basis:le()}],"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:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ee,f]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,f]},f]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,f]},f]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ie:[{Ie:[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:[i]}],mx:[{mx:[i]}],my:[{my:[i]}],ms:[{ms:[i]}],me:[{me:[i]}],mt:[{mt:[i]}],mr:[{mr:[i]}],mb:[{mb:[i]}],ml:[{ml:[i]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"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:[G]},G]}],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",G,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",de]}],"font-family":[{font:[te]}],"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",Z,de]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,$]}],"underline-offset":[{"underline-offset":["auto",j,f]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"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":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),It]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...ne(),"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":[g]}],"divide-style":[{divide:ne()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[j,f]}],"outline-w":[{outline:[j,$]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[j,$]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Kt]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",G,f]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[M]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ee,f]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"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-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-Ie":[{"scroll-Ie":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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,$,de]}],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"],Ie:["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-Ie":["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 De=wt(Vt);function P(...e){return De((0,Me.clsx)(e))}var Ie=require("react/jsx-runtime"),F=Te.forwardRef(({className:e,type:t,...r},o)=>(0,Ie.jsx)("input",{type:t,className:P("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));F.displayName="Input";var pe=O(require("react")),D=O(require("@radix-ui/react-scroll-area"));var fe=pe.forwardRef(({className:e,children:t,...r},o)=>(0,Ie.jsxs)(D.Root,{ref:o,className:P("relative overflow-hidden",e),...r,children:[(0,Ie.jsx)(D.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ie.jsx)(ze,{}),(0,Ie.jsx)(D.Corner,{})]}));fe.displayName=D.Root.displayName;var ze=pe.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ie.jsx)(D.ScrollAreaScrollbar,{ref:o,orientation:t,className:P("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ie-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ie-[1px]",e),...r,children:(0,Ie.jsx)(D.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ze.displayName=D.ScrollAreaScrollbar.displayName;var Ee=require("@radix-ui/react-slot"),Ke=require("class-variance-authority"),Be=O(require("react")),$t=(0,Ke.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"}}}),H=Be.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},n)=>(0,Ie.jsx)(e?Ee.Slot:"button",{className:P($t({className:t,size:r,variant:o})),ref:n,...l}));H.displayName="Button";var je=O(require("react")),se=je.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)("textarea",{className:P("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));se.displayName="Textarea";var Gt=(0,$e.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 Ge({className:e,variant:t,...r}){return(0,Ie.jsx)("div",{className:P(Gt({variant:t}),e),...r})}var b=O(require("@radix-ui/react-select")),W=O(require("react")),He=b.Root;var We=b.Value,ge=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ie.jsxs)(b.Trigger,{className:P("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,Ie.jsx)(b.Icon,{asChild:!0,children:(0,Ie.jsx)(I.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ge.displayName=b.Trigger.displayName;var Ue=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.ScrollUpButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ie.jsx)(I.ChevronUp,{className:"h-4 w-4"})}));Ue.displayName=b.ScrollUpButton.displayName;var Oe=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.ScrollDownButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ie.jsx)(I.ChevronDown,{className:"h-4 w-4"})}));Oe.displayName=b.ScrollDownButton.displayName;var be=W.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,Ie.jsx)(b.Portal,{children:(0,Ie.jsxs)(b.Content,{className:P("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:l,...o,children:[(0,Ie.jsx)(Ue,{}),(0,Ie.jsx)(b.Viewport,{className:P("Ie-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ie.jsx)(Oe,{})]})}));be.displayName=b.Content.displayName;var _t=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.Label,{className:P("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));_t.displayName=b.Label.displayName;var ie=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ie.jsxs)(b.Item,{className:P("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,Ie.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ie.jsx)(b.ItemIndicator,{children:(0,Ie.jsx)(I.Check,{className:"h-4 w-4"})})}),(0,Ie.jsx)(b.ItemText,{children:e})]}));ie.displayName=b.Item.displayName;var Ht=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.Separator,{className:P("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Ht.displayName=b.Separator.displayName;function qe({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:l=[]}){let[n,d]=(0,Q.useState)({...e,updatedAt:new Date}),s=()=>{let a=new Set,i=new Set;return l.forEach(g=>{g.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(g=>{g.metadata&&Object.keys(g.metadata).forEach(x=>i.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(i).sort(),allKeys:Array.from(new Set([...a,...i])).sort()}},h=a=>{let i=new Set;return o.forEach(g=>{g.metadata?.[a]&&i.add(String(g.metadata[a]))}),Array.from(i).sort()},y=s(),w=()=>{t(n)},C=(a,i)=>{d(g=>({...g,metadata:{...g.metadata,[a]:i}}))},k=(a,i)=>{i==="__custom__"?C(a,""):C(a,i)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},v=a=>{d(i=>{let g={...i.metadata};return delete g[a],{...i,metadata:g}})};return(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ie.jsxs)("div",{className:"border-b border-border bg-card Ie-8",children:[(0,Ie.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ie.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ie.jsx)("div",{className:"flex-shrink-0 Ie-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ie.jsx)(I.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ie.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Ie.jsxs)("div",{className:"flex gap-2",children:[(0,Ie.jsxs)(H,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ie.jsx)(I.I,{className:"h-4 w-4"}),"Cancel"]}),(0,Ie.jsxs)(H,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ie.jsx)(I.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ie.jsxs)("div",{className:"space-y-4",children:[(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Ie.jsx)(F,{value:n.title,onChange:a=>d(i=>({...i,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Ie.jsx)(se,{value:n.description||"",onChange:a=>d(i=>({...i,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),y.contextKeys.length>0&&(0,Ie.jsxs)("Ie",{className:"text-xs text-muted-foreground",children:["Suggested: ",y.contextKeys.slice(0,4).join(", "),y.contextKeys.length>4&&` +${y.contextKeys.length-4}`]})]}),(0,Ie.jsxs)(H,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ie.jsx)(I.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ie.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,i])=>{let g=h(a);return(0,Ie.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ie.jsx)(F,{value:a,onChange:x=>{let M=x.target.value,z=n.metadata?.[a];d(A=>{let E={...A.metadata};return delete E[a],M&&(E[M]=z||""),{...A,metadata:E}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ie.jsx)("datalist",{id:`metadata-keys-${a}`,children:y.allKeys.map(x=>(0,Ie.jsx)("option",{value:x},x))}),(0,Ie.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),g.length>0?(0,Ie.jsxs)(He,{value:String(i||""),onValueChange:x=>k(a,x),children:[(0,Ie.jsx)(ge,{className:"flex-1 h-8 text-sm",children:(0,Ie.jsx)(We,{placeholder:"Value"})}),(0,Ie.jsxs)(be,{children:[g.map(x=>(0,Ie.jsx)(ie,{value:x,children:x},x)),(0,Ie.jsx)(ie,{value:"__custom__",children:(0,Ie.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ie.jsx)(F,{value:String(i||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ie.jsx)(H,{type:"button",variant:"ghost",size:"sm",onClick:()=>v(a),className:"h-8 w-8 Ie-0 text-muted-foreground hover:text-destructive",children:(0,Ie.jsx)(I.I,{className:"h-3 w-3"})})]},a)})}):(0,Ie.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ie.jsx)("Ie",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,Ie.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ie.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ie.jsx)(Ge,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ie.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ie.jsxs)("div",{className:"Ie-8",children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ie.jsx)(se,{value:n.content||"",onChange:a=>d(i=>({...i,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Ye=e=>(0,Ie.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>')}}),Qe=e=>(0,Ie.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Wt=e=>(0,Ie.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ie.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ie-4 mb-4",children:(0,Ie.jsxs)("Ie",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ie.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ie.jsx)("pre",{className:"text-sm",children:e})]}),Ut=e=>(0,Ie.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ie.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ie-4 mb-4",children:(0,Ie.jsxs)("Ie",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ie.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Ye(e)]});function et({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:l=[],knowledgeContexts:n=[]}){let[d,s]=(0,Q.useState)(!1),h=m=>{switch(m){case"markdown":case"mdx":return(0,Ie.jsx)(I.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ie.jsx)(I.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ie.jsx)(I.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ie.jsx)(I.File,{className:"h-6 w-6 text-muted-foreground"})}},y=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,v)=>{let a={markdown:Ye,mdx:Ut,richtext:Wt,text:Qe},i=o?.[v]||a[v];return i?i(m):Qe(m)},C=m=>{s(!1),t?.(m)},k=()=>{s(!1)};return d?(0,Ie.jsx)(qe,{document:e,onSave:C,onCancel:k,availableDocuments:l,knowledgeContexts:n}):(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ie.jsxs)("div",{className:"border-b border-border bg-card Ie-8",children:[(0,Ie.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ie.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ie.jsx)("div",{className:"flex-shrink-0 Ie-3 rounded-xl bg-muted border border-border",children:h(e.format)}),(0,Ie.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ie.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ie.jsx)("Ie",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ie.jsx)("div",{className:"flex-shrink-0",children:(0,Ie.jsxs)(H,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,Ie.jsx)(I.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ie.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ie.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${y(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Ie.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,Ie.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ie.jsxs)("div",{className:"Ie-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ie.jsxs)("div",{className:"mb-6",children:[(0,Ie.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ie.jsx)("div",{className:"bg-muted rounded-lg Ie-3 border border-border",children:(0,Ie.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,v])=>(0,Ie.jsxs)("div",{className:"flex gap-1",children:[(0,Ie.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-Z])/g," $1").trim(),":"]}),(0,Ie.jsx)("span",{className:"text-foreground truncate",children:String(v)})]},m))})})]}),(0,Ie.jsx)("div",{className:"space-y-4",children:e.content?(0,Ie.jsx)("div",{className:"relative",children:(0,Ie.jsx)("div",{className:"bg-card border border-border rounded-xl Ie-6 overflow-hidden",children:w(e.content,e.format)})}):(0,Ie.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ie.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ie.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ie.jsx)("Ie",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function tt({label:e,documents:t,children:r,level:o,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d=!0}){let[s,h]=(0,Q.useState)(o===0),y=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,v)=>m+v.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ie.jsx)(I.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ie.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ie.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},k=m=>{let v=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return v[m%v.length]};return(0,Ie.jsxs)("div",{className:"space-y-1",children:[(y||t.length>0)&&(0,Ie.jsxs)(q.motion.div,{className:`group flex items-center gap-3 Ie-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:()=>h(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ie.jsx)("div",{className:`w-1 h-6 rounded-full ${k(o)}`}),(0,Ie.jsx)(q.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ie.jsx)(I.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ie.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ie.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ie.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),d&&w>0&&(0,Ie.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ie.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,Ie.jsx)(q.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ie.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,v)=>(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:v*.05,duration:.2},className:`group flex items-center gap-3 Ie-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:()=>l?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ie.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ie.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ie.jsx)("Ie",{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,Ie.jsx)("Ie",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ie.jsx)("div",{className:"flex-shrink-0",children:(0,Ie.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,v])=>(0,Ie.jsx)(tt,{label:m,documents:v.documents,children:v.children,level:o+1,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d},m))]})})]})}function Ot({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:l,selectedDocumentId:n,className:d,editable:s=!0}){let[h,y]=(0,Q.useState)(""),[w,C]=(0,Q.useState)(null),k=(0,Q.useMemo)(()=>h?e.filter(a=>a.title.toLowerCase().includes(h.toLowerCase())||a.description?.toLowerCase().includes(h.toLowerCase())||a.tags?.some(i=>i.toLowerCase().includes(h.toLowerCase()))||Object.values(a.metadata||{}).some(i=>String(i).toLowerCase().includes(h.toLowerCase()))):e,[e,h]),m=(0,Q.useMemo)(()=>{let a=(i,g)=>{if(g.length===0)return{};let[x,...M]=g;return i.reduce((A,E)=>{let re=E.metadata?.[x]||"Uncategorized",T=String(re);if(A[T]||(A[T]={documents:[],children:{}}),M.length===0)A[T].documents.push(E);else{let U=a([E],M),K=Object.keys(U)[0];K&&(A[T].children||(A[T].children={}),A[T].children[K]?A[T].children[K].documents.push(...U[K].documents):A[T].children[K]=U[K])}return A},{})};return a(k,t.groupBy)},[k,t.groupBy]),v=a=>{C(a),r?.(a)};return(0,Ie.jsxs)("div",{className:`flex h-full ${d||""}`,children:[(0,Ie.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ie.jsx)("div",{className:"Ie-6 border-b border-border",children:(0,Ie.jsxs)("div",{className:"relative",children:[(0,Ie.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ie.jsx)(I.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ie.jsx)(F,{placeholder:"Search knowledge base...",value:h,onChange:a=>y(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,Ie.jsx)(fe,{className:"h-[calc(100%-100px)]",children:(0,Ie.jsxs)("div",{className:"Ie-4 space-y-3",children:[Object.entries(m).map(([a,i])=>(0,Ie.jsx)(tt,{label:a,documents:i.documents,children:i.children,level:0,onDocumentClick:v,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ie.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ie.jsx)("Ie",{className:"text-sm font-medium",children:"No documents found"}),(0,Ie.jsx)("Ie",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ie.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ie.jsx)(et,{document:w,onDocumentUpdate:l,editable:s}):(0,Ie.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ie.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ie.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ie.jsx)("Ie",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
5
+ "use strict";"use client";var lt=Object.create;var le=Object.defineProperty;var dt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var mt=Object.getPrototypeOf,ut=Object.prototype.hasOwnProperty;var pt=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Me=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ct(t))!ut.call(e,i)&&i!==r&&le(e,i,{get:()=>t[i],enumerable:!(o=dt(t,i))||o.enumerable});return e};var F=(e,t,r)=>(r=e!=null?lt(mt(e)):{},Me(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),ft=e=>Me(le({},"__esModule",{value:!0}),e);var Yt={};pt(Yt,{KnowledgeBrowser:()=>Jt});module.exports=ft(Yt);var Z=require("motion/react"),L=require("lucide-react"),J=require("react");var Ve=F(require("react"));var je=require("clsx");var fe="-",gt=e=>{let t=ht(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let n=d.split(fe);return n[0]===""&&n.length!==1&&n.shift(),ze(n,t)||bt(d)},getConflictingClassGroupIds:(d,n)=>{let f=r[d]||[];return n&&o[d]?[...f,...o[d]]:f}}},ze=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),i=o?ze(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(fe);return t.validators.find(({validator:d})=>d(a))?.classGroupId},De=/^\[(.+)\]$/,bt=e=>{if(De.test(e)){let t=De.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ht=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return xt(Object.entries(e.classGroups),r).forEach(([a,d])=>{pe(d,o,a,t)}),o},pe=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:Ee(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(vt(i)){pe(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,d])=>{pe(d,Ee(t,a),r,o)})})},Ee=(e,t)=>{let r=e;return t.split(fe).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},vt=e=>e.isThemeGetter,xt=(e,t)=>t?e.map(([r,o])=>{let i=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([d,n])=>[t+d,n])):a);return[r,i]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,i=(a,d)=>{r.set(a,d),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let d=r.get(a);if(d!==void 0)return d;if((d=o.get(a))!==void 0)return i(a,d),d},set(a,d){r.has(a)?r.set(a,d):i(a,d)}}},Te="!",wt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,i=t[0],a=t.length,d=n=>{let f=[],w=0,N=0,A;for(let v=0;v<n.length;v++){let P=n[v];if(w===0){if(P===i&&(o||n.slice(v,v+a)===t)){f.push(n.slice(N,v)),N=v+a;continue}if(P==="/"){A=v;continue}}P==="["?w++:P==="]"&&w--}let S=f.length===0?n:n.substring(N),b=S.startsWith(Te),y=b?S.substring(1):S,m=A&&A>N?A-N:void 0;return{modifiers:f,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:m}};return r?n=>r({className:n,parseClassName:d}):d},Nt=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},St=e=>({cache:yt(e.cacheSize),parseClassName:wt(e),...gt(e)}),Ct=/\Ge+/,kt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i}=t,a=[],d=e.trim().split(Ct),n="";for(let f=d.length-1;f>=0;f-=1){let w=d[f],{modifiers:N,hasImportantModifier:A,baseClassName:S,maybePostfixModifierPosition:b}=r(w),y=!!b,m=o(y?S.substring(0,b):S);if(!m){if(!y){n=w+(n.length>0?" "+n:n);continue}if(m=o(S),!m){n=w+(n.length>0?" "+n:n);continue}y=!1}let v=Nt(N).join(":"),P=A?v+Te:v,I=P+m;if(a.includes(I))continue;a.push(I);let $=i(m,y);for(let j=0;j<$.length;++j){let T=$[j];a.push(P+T)}n=w+(n.length>0?" "+n:n)}return n};function Rt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ke(t))&&(o&&(o+=" "),o+=r);return o}var Ke=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ke(e[o]))&&(r&&(r+=" "),r+=t);return r};function Pt(e,...t){let r,o,i,a=d;function d(f){let w=t.reduce((N,A)=>A(N),e());return r=St(w),o=r.cache.get,i=r.cache.set,a=n,n(f)}function n(f){let w=o(f);if(w)return w;let N=kt(f,r);return i(f,N),N}return function(){return a(Rt.apply(null,arguments))}}var C=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Be=/^\[(?:([a-L-]+):)?(.+)\]$/i,At=/^\d+\/\d+$/,It=new Set(["px","full","screen"]),Mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dt=/\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))\(.+\)$/,zt=/^(inset_)?-?((\d+)?\.?(\d+)[a-L]+|0)_-?((\d+)?\.?(\d+)[a-L]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>Y(e)||It.has(e)||At.test(e),O=e=>ee(e,"length",Ft),Y=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>ee(e,"number",Y),oe=e=>!!e&&Number.isInteger(Number(e)),Kt=e=>e.endsWith("%")&&Y(e.slice(0,-1)),g=e=>Be.test(e),H=e=>Mt.test(e),Bt=new Set(["length","size","percentage"]),Lt=e=>ee(e,Bt,Le),$t=e=>ee(e,"position",Le),jt=new Set(["image","url"]),Vt=e=>ee(e,jt,Wt),Gt=e=>ee(e,"",_t),ae=()=>!0,ee=(e,t,r)=>{let o=Be.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ft=e=>Dt.test(e)&&!Et.test(e),Le=()=>!1,_t=e=>zt.test(e),Wt=e=>Tt.test(e);var Ot=()=>{let e=C("colors"),t=C("spacing"),r=C("blur"),o=C("brightness"),i=C("borderColor"),a=C("borderRadius"),d=C("borderSpacing"),n=C("borderWidth"),f=C("contrast"),w=C("grayscale"),N=C("hueRotate"),A=C("invert"),S=C("gap"),b=C("gradientColorStops"),y=C("gradientColorStopPositions"),m=C("inset"),v=C("margin"),P=C("opacity"),I=C("padding"),$=C("saturate"),j=C("scale"),T=C("sepia"),l=C("skew"),h=C("space"),p=C("translate"),k=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",g,t],R=()=>[g,t],Re=()=>["",_,O],se=()=>["auto",Y,g],Pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",g],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Y,g];return{cacheSize:500,separator:":",theme:{colors:[ae],spacing:[_,O],blur:["none","",H,g],brightness:G(),borderColor:[e],borderRadius:["none","","full",H,g],borderSpacing:R(),borderWidth:Re(),contrast:G(),grayscale:re(),hueRotate:G(),invert:re(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Kt,O],inset:ce(),margin:ce(),opacity:G(),padding:R(),saturate:G(),scale:G(),sepia:re(),skew:G(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Pe(),g]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],L:[{L:["auto",oe,g]}],basis:[{basis:ce()}],"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:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",oe,g]}],"grid-cols":[{"grid-cols":[ae]}],"col-start-end":[{col:["auto",{span:["full",oe,g]},g]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[ae]}],"row-start-end":[{row:["auto",{span:[oe,g]},g]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[h]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[h]}],"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:[H]},H]}],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",H,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[ae]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",g]}],"line-clamp":[{"line-clamp":["none",Y,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_,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":[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:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_,O]}],"underline-offset":[{"underline-offset":["auto",_,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:R()}],"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":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Pe(),$t]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-Ge":[{"rounded-Ge":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-Ge":[{"border-Ge":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:ie()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-Ge":[{"border-Ge":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[_,g]}],"outline-w":[{outline:[_,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[_,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Gt]}],"shadow-color":[{shadow:[ae]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ae()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",H,g]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[A]}],saturate:[{saturate:[$]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[oe,g]}],"translate-x":[{"translate-x":[p]}],"translate-y":[{"translate-y":[p]}],"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","Ge-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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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:[_,O,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-Ge","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-Ge":["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-Ge","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-Ge","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-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 $e=Pt(Ot);function M(...e){return $e((0,je.clsx)(e))}var Ge=require("react/jsx-runtime"),U=Ve.forwardRef(({className:e,type:t,...r},o)=>(0,Ge.jsx)("input",{type:t,className:M("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}));U.displayName="Input";var ge=F(require("react")),B=F(require("@radix-ui/react-scroll-area"));var be=ge.forwardRef(({className:e,children:t,...r},o)=>(0,Ge.jsxs)(B.Root,{ref:o,className:M("relative overflow-hidden",e),...r,children:[(0,Ge.jsx)(B.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ge.jsx)(Fe,{}),(0,Ge.jsx)(B.Corner,{})]}));be.displayName=B.Root.displayName;var Fe=ge.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ge.jsx)(B.ScrollAreaScrollbar,{ref:o,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Ge.jsx)(B.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fe.displayName=B.ScrollAreaScrollbar.displayName;var _e=require("@radix-ui/react-slot"),We=require("class-variance-authority"),Oe=F(require("react")),Ht=(0,We.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"}}}),V=Oe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...i},a)=>(0,Ge.jsx)(e?_e.Slot:"button",{className:M(Ht({className:t,size:r,variant:o})),ref:a,...i}));V.displayName="Button";var Ue=F(require("react")),ne=Ue.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)("textarea",{className:M("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}));ne.displayName="Textarea";var x=F(require("@radix-ui/react-select")),q=F(require("react")),qe=x.Root;var Qe=x.Value,he=q.forwardRef(({children:e,className:t,...r},o)=>(0,Ge.jsxs)(x.Trigger,{className:M("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,Ge.jsx)(x.Icon,{asChild:!0,children:(0,Ge.jsx)(L.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));he.displayName=x.Trigger.displayName;var Ze=q.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)(x.ScrollUpButton,{className:M("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ge.jsx)(L.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=x.ScrollUpButton.displayName;var Je=q.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)(x.ScrollDownButton,{className:M("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ge.jsx)(L.ChevronDown,{className:"h-4 w-4"})}));Je.displayName=x.ScrollDownButton.displayName;var ve=q.forwardRef(({children:e,className:t,position:r="popper",...o},i)=>(0,Ge.jsx)(x.Portal,{children:(0,Ge.jsxs)(x.Content,{className:M("relative L-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:i,...o,children:[(0,Ge.jsx)(Ze,{}),(0,Ge.jsx)(x.Viewport,{className:M("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ge.jsx)(Je,{})]})}));ve.displayName=x.Content.displayName;var Ut=q.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)(x.Label,{className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Ut.displayName=x.Label.displayName;var de=q.forwardRef(({children:e,className:t,...r},o)=>(0,Ge.jsxs)(x.Item,{className:M("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,Ge.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ge.jsx)(x.ItemIndicator,{children:(0,Ge.jsx)(L.Check,{className:"h-4 w-4"})})}),(0,Ge.jsx)(x.ItemText,{children:e})]}));de.displayName=x.Item.displayName;var Xt=q.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)(x.Separator,{className:M("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Xt.displayName=x.Separator.displayName;var Ye=F(require("react")),xe=F(require("@radix-ui/react-label"));var qt=(0,We.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ye=Ye.forwardRef(({className:e,...t},r)=>(0,Ge.jsx)(xe.Root,{ref:r,className:M(qt(),e),...t}));ye.displayName=xe.Root.displayName;var Ne=({fieldName:e,value:t,label:r,multiline:o=!1,onSave:i,className:a="",disabled:d=!1})=>{let[n,f]=(0,J.useState)(!1),[w,N]=(0,J.useState)(""),A=()=>{d||(f(!0),N(t))},S=async()=>{w!==t&&await i(e,w),f(!1)},b=y=>{y.key==="Enter"&&!o||y.key==="Enter"&&y.ctrlKey&&o?S():y.key==="Escape"&&(f(!1),N(""))};return(0,Ge.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,Ge.jsx)(ye,{children:r}),n?o?(0,Ge.jsx)(ne,{value:w,onChange:y=>N(y.target.value),onBlur:S,onKeyDown:b,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ge.jsx)(U,{value:w,onChange:y=>N(y.target.value),onBlur:S,onKeyPress:b,autoFocus:!0,className:"text-lg font-medium"}):(0,Ge.jsxs)("div",{onClick:A,className:`${d?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ge.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!d&&(0,Ge.jsx)(L.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};function ot({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:i=[]}){let[a,d]=(0,J.useState)({...e,updatedAt:new Date}),[n,f]=(0,J.useState)(!1),[w,N]=(0,J.useState)(()=>{let l=[],h=0,p=new Set;return i.forEach(k=>{k.menuConfig.groupBy.forEach(K=>p.add(K))}),p.forEach(k=>{l.push({id:`context_field_${h++}`,key:k,value:e.metadata?.[k]?String(e.metadata[k]):"",isContextKey:!0})}),e.metadata&&Object.entries(e.metadata).forEach(([k,K])=>{p.has(k)||l.push({id:`existing_field_${h++}`,key:k,value:String(K),isContextKey:!1})}),l}),A=l=>{switch(l){case"markdown":case"mdx":return(0,Ge.jsx)(L.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ge.jsx)(L.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ge.jsx)(L.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ge.jsx)(L.File,{className:"h-6 w-6 text-muted-foreground"})}},S=l=>{switch(l){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"}},b=()=>{let l=new Set;return o.forEach(h=>{h.metadata&&Object.keys(h.metadata).forEach(p=>l.add(p))}),{documentKeys:Array.from(l).sort()}},y=l=>{let h=new Set;return o.forEach(p=>{p.metadata?.[l]&&h.add(String(p.metadata[l]))}),Array.from(h).sort()},m=b(),v=()=>{t(a)};(0,J.useEffect)(()=>{let l=w.filter(h=>h.key.trim()!==""&&h.value.trim()!=="").reduce((h,p)=>({...h,[p.key]:p.value}),{});d(h=>({...h,metadata:Object.keys(l).length>0?l:void 0}))},[w]);let P=(l,h)=>{N(p=>p.map(k=>k.id===l?{...k,key:h}:k))},I=(l,h)=>{N(p=>p.map(k=>k.id===l?{...k,value:h}:k))},$=(l,h)=>{h==="__custom__"?I(l,""):I(l,h)},j=()=>{let l={id:`field_${Date.now()}`,key:"",value:"",isContextKey:!1};N(h=>[...h,l])},T=l=>{N(h=>h.filter(p=>p.id!==l))};return(0,Ge.jsxs)(Z.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ge.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Ge.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ge.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ge.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:A(a.format)}),(0,Ge.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ge.jsxs)("div",{className:"flex items-start gap-4 mb-2 leading-tight",children:[(0,Ge.jsx)("div",{className:"flex-1 min-w-0",children:(0,Ge.jsx)(Ne,{fieldName:"title",value:a.title,label:"",onSave:(l,h)=>d(p=>({...p,title:h})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,Ge.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${S(a.format)} flex-shrink-0 mt-1`,children:a.format.toUpperCase()})]}),(0,Ge.jsx)("div",{className:"mt-2",children:(0,Ge.jsx)(Ne,{fieldName:"description",value:a.description||"Click to add description...",label:"",multiline:!0,onSave:(l,h)=>d(p=>({...p,description:h})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})]}),(0,Ge.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,Ge.jsxs)(V,{variant:"ghost",size:"sm",onClick:()=>f(!n),className:"gap-2",children:[(0,Ge.jsx)(L.Info,{className:"h-4 w-4"}),"Metadata",w.filter(l=>l.key.trim()!==""&&l.value.trim()!=="").length>0&&(0,Ge.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:w.filter(l=>l.key.trim()!==""&&l.value.trim()!=="").length}),n?(0,Ge.jsx)(L.ChevronDown,{className:"h-4 w-4"}):(0,Ge.jsx)(L.ChevronRight,{className:"h-4 w-4"})]}),(0,Ge.jsxs)(V,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ge.jsx)(L.Ge,{className:"h-4 w-4"}),"Cancel"]}),(0,Ge.jsxs)(V,{size:"sm",onClick:v,className:"gap-2",children:[(0,Ge.jsx)(L.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ge.jsx)(Z.motion.div,{initial:!1,animate:{height:n?"auto":0,opacity:n?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ge.jsxs)("div",{className:"pt-4 border-t border-border mt-4",children:[(0,Ge.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ge.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,Ge.jsx)(L.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Ge.jsxs)(V,{type:"button",variant:"outline",size:"sm",onClick:j,className:"gap-1 h-8",children:[(0,Ge.jsx)(L.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),m.documentKeys.length>0&&(0,Ge.jsxs)("p",{className:"text-xs text-muted-foreground mb-3",children:["Additional from documents: ",m.documentKeys.slice(0,4).join(", "),m.documentKeys.length>4&&` +${m.documentKeys.length-4} more`]}),(0,Ge.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:w.length>0?(0,Ge.jsx)("div",{className:"space-y-2",children:w.map(l=>{let h=y(l.key);return(0,Ge.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ge.jsx)(U,{value:l.key,onChange:p=>P(l.id,p.target.value),placeholder:"Key",className:`w-32 h-8 text-sm ${l.isContextKey?"bg-primary/5 border-primary/30":""}`,list:`metadata-keys-${l.id}`,disabled:l.isContextKey}),(0,Ge.jsx)("datalist",{id:`metadata-keys-${l.id}`,children:m.documentKeys.map(p=>(0,Ge.jsx)("option",{value:p},p))}),(0,Ge.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),h.length>0?(0,Ge.jsxs)(qe,{value:l.value||"",onValueChange:p=>$(l.id,p),children:[(0,Ge.jsx)(he,{className:"flex-1 h-8 text-sm",children:(0,Ge.jsx)(Qe,{placeholder:"Value"})}),(0,Ge.jsxs)(ve,{children:[h.map(p=>(0,Ge.jsx)(de,{value:p,children:p},p)),(0,Ge.jsx)(de,{value:"__custom__",children:(0,Ge.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ge.jsx)(U,{value:l.value||"",onChange:p=>I(l.id,p.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ge.jsx)(V,{type:"button",variant:"ghost",size:"sm",onClick:()=>T(l.id),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Ge.jsx)(L.Ge,{className:"h-3 w-3"})})]},l.id)})}):(0,Ge.jsxs)("div",{className:"text-center py-4",children:[(0,Ge.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,Ge.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,Ge.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ge.jsxs)("div",{className:"p-8",children:[(0,Ge.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ge.jsx)(ne,{value:a.content||"",onChange:l=>d(h=>({...h,content:l.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var nt=e=>(0,Ge.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>')}}),at=e=>(0,Ge.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Qt=e=>(0,Ge.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ge.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,Ge.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ge.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ge.jsx)("pre",{className:"text-sm",children:e})]}),Zt=e=>(0,Ge.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ge.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,Ge.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ge.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),nt(e)]});function st({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:i=[],knowledgeContexts:a=[]}){let[d,n]=(0,J.useState)(!1),[f,w]=(0,J.useState)(!1),N=m=>{switch(m){case"markdown":case"mdx":return(0,Ge.jsx)(L.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ge.jsx)(L.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ge.jsx)(L.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ge.jsx)(L.File,{className:"h-6 w-6 text-muted-foreground"})}},A=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"}},S=(m,v)=>{let P={markdown:nt,mdx:Zt,richtext:Qt,text:at},I=o?.[v]||P[v];return I?I(m):at(m)},b=m=>{n(!1),t?.(m)},y=()=>{n(!1)};return d?(0,Ge.jsx)(ot,{document:e,onSave:b,onCancel:y,availableDocuments:i,knowledgeContexts:a}):(0,Ge.jsxs)(Z.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ge.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Ge.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ge.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ge.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:N(e.format)}),(0,Ge.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ge.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[e.title,(0,Ge.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${A(e.format)}`,children:e.format.toUpperCase()})]}),e.description&&(0,Ge.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:e.description})]})]}),(0,Ge.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ge.jsxs)(V,{variant:"ghost",size:"sm",onClick:()=>w(!f),className:"gap-2",children:[(0,Ge.jsx)(L.Info,{className:"h-4 w-4"}),"Metadata",f?(0,Ge.jsx)(L.ChevronDown,{className:"h-4 w-4"}):(0,Ge.jsx)(L.ChevronRight,{className:"h-4 w-4"})]}),r&&(0,Ge.jsxs)(V,{variant:"outline",size:"sm",onClick:()=>n(!0),className:"gap-2",children:[(0,Ge.jsx)(L.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),e.metadata&&Object.keys(e.metadata).length>0&&(0,Ge.jsx)(Z.motion.div,{initial:!1,animate:{height:f?"auto":0,opacity:f?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ge.jsxs)("div",{className:"pt-4 border-t border-border mt-4",children:[(0,Ge.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,Ge.jsx)(L.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Ge.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,Ge.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:Object.entries(e.metadata).map(([m,v])=>(0,Ge.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ge.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:m.replace(/([A-Z])/g," $1").trim()}),(0,Ge.jsx)("span",{className:"text-foreground font-medium",children:String(v)})]},m))})})]})})]}),(0,Ge.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ge.jsx)("div",{className:"p-8",children:(0,Ge.jsx)("div",{className:"space-y-4",children:e.content?(0,Ge.jsx)("div",{className:"relative",children:(0,Ge.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:S(e.content,e.format)})}):(0,Ge.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ge.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ge.jsx)(L.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ge.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ge.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})}function it({label:e,documents:t,children:r,level:o,onDocumentClick:i,selectedDocumentId:a,showDocumentCount:d=!0}){let[n,f]=(0,J.useState)(o===0),w=r&&Object.keys(r).length>0,N=t.length+(r?Object.values(r).reduce((b,y)=>b+y.documents.length,0):0),A=b=>{switch(b){case"markdown":case"mdx":return(0,Ge.jsx)(L.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ge.jsx)(L.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ge.jsx)(L.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},S=b=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[b%y.length]};return(0,Ge.jsxs)("div",{className:"space-y-1",children:[(w||t.length>0)&&(0,Ge.jsxs)(Z.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${n?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>f(!n),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ge.jsx)("div",{className:`w-1 h-6 rounded-full ${S(o)}`}),(0,Ge.jsx)(Z.motion.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ge.jsx)(L.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ge.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ge.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ge.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),d&&N>0&&(0,Ge.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ge.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:N})})]})]}),(0,Ge.jsx)(Z.motion.div,{initial:!1,animate:{height:n?"auto":0,opacity:n?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ge.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((b,y)=>(0,Ge.jsxs)(Z.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 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===b.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:()=>i?.(b),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ge.jsx)("div",{className:"flex-shrink-0",children:A(b.format)}),(0,Ge.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ge.jsx)("p",{className:`text-sm truncate transition-colors ${a===b.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:b.title}),b.description&&(0,Ge.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:b.description})]}),b.tags&&b.tags.length>0&&(0,Ge.jsx)("div",{className:"flex-shrink-0",children:(0,Ge.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:b.tags[0]})})]},b.id)),r&&Object.entries(r).map(([b,y])=>(0,Ge.jsx)(it,{label:b,documents:y.documents,children:y.children,level:o+1,onDocumentClick:i,selectedDocumentId:a,showDocumentCount:d},b))]})})]})}function Jt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:i,selectedDocumentId:a,className:d,editable:n=!0}){let[f,w]=(0,J.useState)(""),[N,A]=(0,J.useState)(null),S=(0,J.useMemo)(()=>f?e.filter(m=>m.title.toLowerCase().includes(f.toLowerCase())||m.description?.toLowerCase().includes(f.toLowerCase())||m.tags?.some(v=>v.toLowerCase().includes(f.toLowerCase()))||Object.values(m.metadata||{}).some(v=>String(v).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),b=(0,J.useMemo)(()=>{let m=(v,P)=>{if(P.length===0)return{};let[I,...$]=P;return v.reduce((T,l)=>{let h=l.metadata?.[I]||"Uncategorized",p=String(h);if(T[p]||(T[p]={documents:[],children:{}}),$.length===0)T[p].documents.push(l);else{let k=m([l],$),K=Object.keys(k)[0];K&&(T[p].children||(T[p].children={}),T[p].children[K]?T[p].children[K].documents.push(...k[K].documents):T[p].children[K]=k[K])}return T},{})};return!t.groupBy||t.groupBy.length===0?{"All Documents":{documents:S,children:{}}}:m(S,t.groupBy)},[S,t.groupBy]),y=m=>{A(m),r?.(m)};return(0,Ge.jsxs)("div",{className:`flex h-full ${d||""}`,children:[(0,Ge.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ge.jsx)("div",{className:"p-6 border-b border-border",children:(0,Ge.jsxs)("div",{className:"relative",children:[(0,Ge.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ge.jsx)(L.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ge.jsx)(U,{placeholder:"Search knowledge base...",value:f,onChange:m=>w(m.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,Ge.jsx)(be,{className:"h-[calc(100%-100px)]",children:(0,Ge.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(b).map(([m,v])=>(0,Ge.jsx)(it,{label:m,documents:v.documents,children:v.children,level:0,onDocumentClick:y,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},m)),Object.keys(b).length===0&&(0,Ge.jsxs)(Z.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ge.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ge.jsx)(L.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ge.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Ge.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ge.jsx)("div",{className:"flex-1 bg-background",children:N?(0,Ge.jsx)(st,{document:N,onDocumentUpdate:i,editable:n}):(0,Ge.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ge.jsxs)(Z.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ge.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ge.jsx)(L.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ge.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ge.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-ZXPDSSCF.mjs";import"../../chunk-RHR3YOLG.mjs";import"../../chunk-AREQGH47.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-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeBrowser};
2
+ "use strict";import{a}from"../../chunk-ZNSW443Y.mjs";import"../../chunk-RZELSUQT.mjs";import"../../chunk-ONNK2NEI.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeBrowser};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-5NIEZE7A.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppSidebarLeft};
2
+ "use strict";import{a}from"../../chunk-AGWQ5S2Z.mjs";import"../../chunk-PXLSH6S2.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppSidebarLeft};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-3F6AUCZF.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as AddKnowledgeModal};
1
+ import{a}from"../../../chunk-3F6AUCZF.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-PXLSH6S2.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as AddKnowledgeModal};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-U2OXF7PJ.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as AddTeamContext};
1
+ import{a}from"../../../chunk-U2OXF7PJ.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-PXLSH6S2.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as AddTeamContext};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-RS4VD3ML.mjs";import"../../chunk-5NIEZE7A.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-LAQ3QAUW.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-L3BLBPSR.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../chunk-PMYLKWPE.mjs";import"../../chunk-AGWQ5S2Z.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-PXLSH6S2.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-75WE6ZXB.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-WUA65ZZB.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};