cortex-react-components 2.16.1 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/chunk-5HT2KC5I.mjs +4 -0
- package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
- package/dist/chunk-66MLFLL2.mjs +1 -0
- package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
- package/dist/chunk-6QERRKM4.mjs +1 -0
- package/dist/{chunk-CXOVEABI.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
- package/dist/chunk-B44DI6WT.mjs +4 -0
- package/dist/{chunk-MFCVMJBO.mjs → chunk-BDDEMCAH.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/chunk-D2ARSS5J.mjs +4 -0
- package/dist/{chunk-GHOL5L32.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-FEWOSBUJ.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/chunk-GTHKYSK2.mjs +1 -0
- package/dist/chunk-H3RVI2OI.mjs +4 -0
- package/dist/{chunk-3NRXQBBS.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/chunk-HFEN3KJC.mjs +1 -0
- package/dist/{chunk-C4RWEPVF.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/chunk-HN22CVSV.mjs +1 -0
- package/dist/chunk-IPRG56MW.mjs +1 -0
- package/dist/{chunk-6VRPQKAK.mjs → chunk-JCWFPKF3.mjs} +1 -1
- package/dist/{chunk-LJXTXROJ.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/chunk-L2UJOICL.mjs +1 -0
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-LLP4EFT4.mjs → chunk-L5NPH5RX.mjs} +1 -1
- package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
- package/dist/{chunk-AMVJPDM3.mjs → chunk-M527EJIX.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-4ZWGVKVT.mjs → chunk-NIIQPCQO.mjs} +1 -1
- package/dist/{chunk-TVTTUSWM.mjs → chunk-OQCMTGML.mjs} +1 -1
- package/dist/{chunk-GTZJWMZR.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
- package/dist/{chunk-DDQWJGAN.mjs → chunk-PEMW5ADK.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-PHQMSVOB.mjs → chunk-Q6PN3Y7R.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-QQFIVSBW.mjs} +1 -1
- package/dist/{chunk-EM3T2XYC.mjs → chunk-R6AYIVIR.mjs} +1 -1
- package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
- package/dist/{chunk-XQ3XV5DH.mjs → chunk-RS4VD3ML.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/chunk-T3F3RQIC.mjs +1 -0
- package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
- package/dist/chunk-TH6RC62B.mjs +4 -0
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/chunk-U2OXF7PJ.mjs +1 -0
- package/dist/{chunk-NINFDOV5.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/chunk-U6E6BMAF.mjs +1 -0
- package/dist/chunk-UP67R64J.mjs +1 -0
- package/dist/{chunk-LQX37M4T.mjs → chunk-UPDEVKI7.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/chunk-VSU7LYXZ.mjs +1 -0
- package/dist/chunk-XC3Y62VP.mjs +4 -0
- package/dist/chunk-XXL6LGBB.mjs +4 -0
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/{chunk-O54IXEY5.mjs → chunk-ZG5N4C4S.mjs} +1 -1
- package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +6 -6
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +3 -3
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +3 -3
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +3 -3
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +3 -3
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +6 -6
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +3 -3
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +7 -7
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.css +1 -0
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.d.ts +11 -0
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.js +4 -0
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -0
- package/dist/components/Foundary/Knowledge/add-team-context.css +1 -0
- package/dist/components/Foundary/Knowledge/add-team-context.d.ts +9 -0
- package/dist/components/Foundary/Knowledge/add-team-context.js +4 -0
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -0
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/Icons/Bold.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/Bold.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Bold.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/Headings.d.ts +7 -0
- package/dist/components/Foundary/RichText/Icons/Headings.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Headings.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/Italic.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/Italic.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Italic.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/StrikeThrough.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/StrikeThrough.js +1 -0
- package/dist/components/Foundary/RichText/Icons/StrikeThrough.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/Subscript.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/Subscript.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Subscript.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/Superscript.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/Superscript.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Superscript.mjs +1 -0
- package/dist/components/Foundary/RichText/Icons/Underline.d.ts +2 -0
- package/dist/components/Foundary/RichText/Icons/Underline.js +1 -0
- package/dist/components/Foundary/RichText/Icons/Underline.mjs +1 -0
- package/dist/components/Foundary/RichText/index.css +1 -0
- package/dist/components/Foundary/RichText/index.d.ts +9 -0
- package/dist/components/Foundary/RichText/index.js +4 -0
- package/dist/components/Foundary/RichText/index.mjs +2 -0
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.css +1 -0
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.d.ts +1 -0
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.js +4 -0
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -0
- package/dist/components/Foundary/Views/ColleaguesView.d.ts +3 -2
- package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.d.ts +5 -2
- package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/colleague-form.d.ts +2 -2
- package/dist/components/Foundary/colleague-form.js +1 -1
- package/dist/components/Foundary/colleague-form.mjs +1 -1
- package/dist/components/Foundary/document-edit.d.ts +3 -2
- package/dist/components/Foundary/document-edit.js +1 -2
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.js +6 -7
- package/dist/components/Foundary/document-preview-examples.mjs +3 -3
- package/dist/components/Foundary/document-preview.d.ts +5 -4
- package/dist/components/Foundary/document-preview.js +1 -2
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.d.ts +2 -2
- package/dist/components/Foundary/knowledge-browser.js +1 -2
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/knowledge-search.d.ts +1 -1
- package/dist/components/Foundary/knowledge-search.js +1 -2
- package/dist/components/Foundary/knowledge-search.mjs +1 -1
- package/dist/components/Foundary/types.d.ts +59 -1
- package/dist/components/Foundary/types.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/index.js +16 -16
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +25 -25
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +5 -2
- package/dist/chunk-5ROLUQ45.mjs +0 -4
- package/dist/chunk-DYIBFAK7.mjs +0 -4
- package/dist/chunk-K5MJYNCD.mjs +0 -4
- package/dist/chunk-KO6JUP2L.mjs +0 -4
- package/dist/chunk-MDBYZZXI.mjs +0 -1
- package/dist/chunk-MFE4VZPC.mjs +0 -4
- package/dist/chunk-OGAY4DL2.mjs +0 -1
- package/dist/chunk-R5SXUWYU.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as x}from"../../chunk-2UNIT7NC.mjs";import{a as s}from"../../chunk-Q6PN3Y7R.mjs";import{a as n}from"../../chunk-B44DI6WT.mjs";import{a as r}from"../../chunk-66MLFLL2.mjs";import"../../chunk-HN22CVSV.mjs";import"../../chunk-U2OXF7PJ.mjs";import{a as q}from"../../chunk-XXL6LGBB.mjs";import{a as m}from"../../chunk-CJ6APTVT.mjs";import"../../chunk-I4GYQZGM.mjs";import{a as i}from"../../chunk-H3RVI2OI.mjs";import{a as h}from"../../chunk-5HT2KC5I.mjs";import{a as j}from"../../chunk-FSCDCSVK.mjs";import{a as p}from"../../chunk-XC3Y62VP.mjs";import{a as o}from"../../chunk-TH6RC62B.mjs";import"../../chunk-D2ARSS5J.mjs";import"../../chunk-GTHKYSK2.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import{a as k}from"../../chunk-NDZ26EG6.mjs";import{a as c}from"../../chunk-XHXUT3LD.mjs";import{a as l}from"../../chunk-M2REXGQW.mjs";import{a as b}from"../../chunk-JDMIQLAZ.mjs";import{a as d}from"../../chunk-RS4VD3ML.mjs";import{a}from"../../chunk-5NIEZE7A.mjs";import{a as e}from"../../chunk-J4QINTHR.mjs";import{a as g}from"../../chunk-ATBKMJU6.mjs";import"../../chunk-R4SE63GR.mjs";import{a as v}from"../../chunk-UPDEVKI7.mjs";import"../../chunk-QOZ2O3FG.mjs";import{a as u}from"../../chunk-2R3MJSQ7.mjs";import{a as w}from"../../chunk-TKCFCYEQ.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-6PS55VJZ.mjs";import"../../chunk-L5NPH5RX.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-UM57PWI7.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-QC2UWZWL.mjs";import{a as t}from"../../chunk-NAGBKKTZ.mjs";import"../../chunk-JXQRVEQB.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-VGWDYD6Z.mjs";import"../../chunk-DXRAJQMA.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-Z22NSJMF.mjs";import{a as f}from"../../chunk-EZC3YWSQ.mjs";import"../../chunk-YRMNCHFO.mjs";import"../../chunk-EOR2BAI2.mjs";import"../../chunk-Y7H3EUBR.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-QG4QCB5I.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-UVHMI3PU.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-FT3AE7L2.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.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-ZDPQXVTF.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.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-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.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{a as AppSidebarLeft,g as ColleagueCard,i as ColleagueForm,j as ColleagueTypeSelection,n as ColleaguesView,b as DashboardHeader,s as DashboardPage,k as DigitalColleagueClone,l as DigitalColleagueOptions,o as DocumentEdit,p as DocumentPreview,t as FileView,c as FoundaryLayout,q as KnowledgeBrowser,h as KnowledgeSearch,r as KnowledgeView,d as MainPage,e as ManagementSidebar,u as PlanningView,v as ProjectView,w as ProjectsIndexView,f as SearchableSelect,m as TeamForm,x as TeamsIndexView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KnowledgeDocument, KnowledgeMenuConfig } from
|
|
1
|
+
import type { KnowledgeDocument, KnowledgeMenuConfig } from './types';
|
|
2
2
|
interface KnowledgeBrowserProps {
|
|
3
3
|
documents: KnowledgeDocument[];
|
|
4
4
|
menuConfig: KnowledgeMenuConfig;
|
|
@@ -9,5 +9,5 @@ interface KnowledgeBrowserProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
editable?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare function KnowledgeBrowser({ documents, menuConfig, onDocumentClick, onDocumentShare, onDocumentUpdate, selectedDocumentId, className, editable }: KnowledgeBrowserProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function KnowledgeBrowser({ documents: initialDocuments, menuConfig, onDocumentClick, onDocumentShare, onDocumentUpdate, selectedDocumentId, className, editable, }: KnowledgeBrowserProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
-
'use client'
|
|
4
3
|
|
|
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});
|
|
4
|
+
"use strict";"use client";var po=Object.create;var Te=Object.defineProperty;var fo=Object.getOwnPropertyDescriptor;var go=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var vo=(e,t)=>{for(var o in t)Te(e,o,{get:t[o],enumerable:!0})},rt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of go(t))!ho.call(e,i)&&i!==o&&Te(e,i,{get:()=>t[i],enumerable:!(r=fo(t,i))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?po(bo(e)):{},rt(t||!e||!e.__esModule?Te(o,"default",{value:e,enumerable:!0}):o,e)),xo=e=>rt(Te({},"__esModule",{value:!0}),e);var ur={};vo(ur,{KnowledgeBrowser:()=>mr});module.exports=xo(ur);var pe=require("motion/react"),X=require("lucide-react"),Y=require("react");var pt=j(require("react"));var ut=require("clsx");var Oe="-",wo=e=>{let t=Co(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let a=s.split(Oe);return a[0]===""&&a.length!==1&&a.shift(),it(a,t)||yo(s)},getConflictingClassGroupIds:(s,a)=>{let v=o[s]||[];return a&&r[s]?[...v,...r[s]]:v}}},it=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?it(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(Oe);return t.validators.find(({validator:s})=>s(n))?.classGroupId},nt=/^\[(.+)\]$/,yo=e=>{if(nt.test(e)){let t=nt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Co=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return So(Object.entries(e.classGroups),o).forEach(([n,s])=>{Ke(s,r,n,t)}),r},Ke=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:at(t,i);n.classGroupId=o;return}if(typeof i=="function"){if(No(i)){Ke(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,s])=>{Ke(s,at(t,n),o,r)})})},at=(e,t)=>{let o=e;return t.split(Oe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},No=e=>e.isThemeGetter,So=(e,t)=>t?e.map(([o,r])=>{let i=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,a])=>[t+s,a])):n);return[o,i]}):e,Ro=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return i(n,s),s},set(n,s){o.has(n)?o.set(n,s):i(n,s)}}},st="!",Po=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],n=t.length,s=a=>{let v=[],g=0,k=0,L;for(let p=0;p<a.length;p++){let b=a[p];if(g===0){if(b===i&&(r||a.slice(p,p+n)===t)){v.push(a.slice(k,p)),k=p+n;continue}if(b==="/"){L=p;continue}}b==="["?g++:b==="]"&&g--}let D=v.length===0?a:a.substring(k),w=D.startsWith(st),R=w?D.substring(1):D,T=L&&L>k?L-k:void 0;return{modifiers:v,hasImportantModifier:w,baseClassName:R,maybePostfixModifierPosition:T}};return o?a=>o({className:a,parseClassName:s}):s},Mo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},ko=e=>({cache:Ro(e.cacheSize),parseClassName:Po(e),...wo(e)}),Do=/\s+/,To=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,n=[],s=e.trim().split(Do),a="";for(let v=s.length-1;v>=0;v-=1){let g=s[v],{modifiers:k,hasImportantModifier:L,baseClassName:D,maybePostfixModifierPosition:w}=o(g),R=!!w,T=r(R?D.substring(0,w):D);if(!T){if(!R){a=g+(a.length>0?" "+a:a);continue}if(T=r(D),!T){a=g+(a.length>0?" "+a:a);continue}R=!1}let p=Mo(k).join(":"),b=L?p+st:p,l=b+T;if(n.includes(l))continue;n.push(l);let x=i(T,R);for(let M=0;M<x.length;++M){let I=x[M];n.push(b+I)}a=g+(a.length>0?" "+a:a)}return a};function Io(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=lt(t))&&(r&&(r+=" "),r+=o);return r}var lt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=lt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Ho(e,...t){let o,r,i,n=s;function s(v){let g=t.reduce((k,L)=>L(k),e());return o=ko(g),r=o.cache.get,i=o.cache.set,n=a,a(v)}function a(v){let g=r(v);if(g)return g;let k=To(v,o);return i(v,k),k}return function(){return n(Io.apply(null,arguments))}}var H=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ct=/^\[(?:([a-Y-]+):)?(.+)\]$/i,Ao=/^\ft+\/\ft+$/,Lo=new Set(["px","full","screen"]),Eo=/^(\ft+(\.\ft+)?)?(xs|sm|md|lg|xl)$/,Vo=/\ft+(%|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$/,zo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Bo=/^(inset_)?-?((\ft+)?\.?(\ft+)[a-Y]+|0)_-?((\ft+)?\.?(\ft+)[a-Y]+|0)/,Ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>be(e)||Lo.has(e)||Ao.test(e),ae=e=>he(e,"length",Wo),be=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>he(e,"number",be),Ce=e=>!!e&&Number.isInteger(Number(e)),Oo=e=>e.endsWith("%")&&be(e.slice(0,-1)),h=e=>ct.test(e),ie=e=>Eo.test(e),_o=new Set(["length","size","percentage"]),Go=e=>he(e,_o,dt),$o=e=>he(e,"position",dt),Fo=new Set(["image","url"]),jo=e=>he(e,Fo,qo),Uo=e=>he(e,"",Zo),Ne=()=>!0,he=(e,t,o)=>{let r=ct.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Wo=e=>Vo.test(e)&&!zo.test(e),dt=()=>!1,Zo=e=>Bo.test(e),qo=e=>Ko.test(e);var Xo=()=>{let e=H("colors"),t=H("spacing"),o=H("blur"),r=H("brightness"),i=H("borderColor"),n=H("borderRadius"),s=H("borderSpacing"),a=H("borderWidth"),v=H("contrast"),g=H("grayscale"),k=H("hueRotate"),L=H("invert"),D=H("gap"),w=H("gradientColorStops"),R=H("gradientColorStopPositions"),T=H("inset"),p=H("margin"),b=H("opacity"),l=H("padding"),x=H("saturate"),M=H("scale"),I=H("sepia"),ee=H("skew"),_=H("space"),G=H("translate"),F=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",h,t],P=()=>[h,t],fe=()=>["",oe,ae],ge=()=>["auto",be,h],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",h],ot=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[be,h];return{cacheSize:500,separator:":",theme:{colors:[Ne],spacing:[oe,ae],blur:["none","",ie,h],brightness:te(),borderColor:[e],borderRadius:["none","","full",ie,h],borderSpacing:P(),borderWidth:fe(),contrast:te(),grayscale:J(),hueRotate:te(),invert:J(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Oo,ae],inset:W(),margin:W(),opacity:te(),padding:P(),saturate:te(),scale:te(),sepia:J(),skew:te(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[ie]}],"break-after":[{"break-after":ot()}],"break-before":[{"break-before":ot()}],"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:[...f(),h]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],Y:[{Y:["auto",Ce,h]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",Ce,h]}],"grid-cols":[{"grid-cols":[Ne]}],"col-start-end":[{col:["auto",{span:["full",Ce,h]},h]}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":[Ne]}],"row-start-end":[{row:["auto",{span:[Ce,h]},h]}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[l]}],px:[{px:[l]}],py:[{py:[l]}],ps:[{ps:[l]}],pe:[{pe:[l]}],pt:[{pt:[l]}],pr:[{pr:[l]}],pb:[{pb:[l]}],pl:[{pl:[l]}],ft:[{ft:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,t]}],"min-w":[{"min-w":[h,t,"min","max","fit"]}],"max-w":[{"max-w":[h,t,"none","full","min","max","fit","prose",{screen:[ie]},ie]}],h:[{h:[h,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ie,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"font-family":[{font:[Ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",be,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oe,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oe,ae]}],"underline-offset":[{"underline-offset":["auto",oe,h]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],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",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),$o]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Go]}],"bg-image":[{bg:["none",{"gradient-Y":["t","tr","r","br","b","bl","l","tl"]},jo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-Y-pos":[{Y:[R]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-Y":[{Y:[w]}],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-ft":[{"rounded-ft":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:V()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[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:["",...V()]}],"outline-offset":[{"outline-offset":[oe,h]}],"outline-w":[{outline:[oe,ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[oe,ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ie,Uo]}],"shadow-color":[{shadow:[Ne]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",ie,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[L]}],saturate:[{saturate:[x]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[L]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Ce,h]}],"translate-x":[{"translate-x":[G]}],"translate-y":[{"translate-y":[G]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],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","X-resize","nw-resize","ft-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-ft":[{"scroll-ft":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",h]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oe,ae,Be]}],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"],ft:["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-ft","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ft","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-ft":["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 mt=Ho(Xo);function N(...e){return mt((0,ut.clsx)(e))}var ft=require("react/jsx-runtime"),me=pt.forwardRef(({className:e,type:t,...o},r)=>(0,ft.jsx)("input",{type:t,className:N("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));me.displayName="Input";var _e=j(require("react")),U=j(require("@radix-ui/react-scroll-area"));var Ge=_e.forwardRef(({className:e,children:t,...o},r)=>(0,ft.jsxs)(U.Root,{ref:r,className:N("relative overflow-hidden",e),...o,children:[(0,ft.jsx)(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ft.jsx)(gt,{}),(0,ft.jsx)(U.Corner,{})]}));Ge.displayName=U.Root.displayName;var gt=_e.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,ft.jsx)(U.ScrollAreaScrollbar,{ref:r,orientation:t,className:N("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),...o,children:(0,ft.jsx)(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));gt.displayName=U.ScrollAreaScrollbar.displayName;var bt=require("@radix-ui/react-slot"),ht=require("class-variance-authority"),vt=j(require("react")),Jo=(0,ht.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"}}}),le=vt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},n)=>(0,ft.jsx)(e?bt.Slot:"button",{className:N(Jo({className:t,size:o,variant:r})),ref:n,...i}));le.displayName="Button";var wt=j(require("react")),Ie=wt.forwardRef(({className:e,...t},o)=>(0,ft.jsx)("textarea",{className:N("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ie.displayName="Textarea";var y=j(require("@radix-ui/react-select")),ce=j(require("react")),$e=y.Root;var Fe=y.Value,He=ce.forwardRef(({children:e,className:t,...o},r)=>(0,ft.jsxs)(y.Trigger,{className:N("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,ft.jsx)(y.Icon,{asChild:!0,children:(0,ft.jsx)(X.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));He.displayName=y.Trigger.displayName;var Ct=ce.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(y.ScrollUpButton,{className:N("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ft.jsx)(X.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=y.ScrollUpButton.displayName;var Nt=ce.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(y.ScrollDownButton,{className:N("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ft.jsx)(X.ChevronDown,{className:"h-4 w-4"})}));Nt.displayName=y.ScrollDownButton.displayName;var Ae=ce.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,ft.jsx)(y.Portal,{children:(0,ft.jsxs)(y.Content,{className:N("relative Y-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:i,...r,children:[(0,ft.jsx)(Ct,{}),(0,ft.jsx)(y.Viewport,{className:N("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ft.jsx)(Nt,{})]})}));Ae.displayName=y.Content.displayName;var Qo=ce.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(y.Label,{className:N("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Qo.displayName=y.Label.displayName;var ve=ce.forwardRef(({children:e,className:t,...o},r)=>(0,ft.jsxs)(y.Item,{className:N("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,ft.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ft.jsx)(y.ItemIndicator,{children:(0,ft.jsx)(X.Check,{className:"h-4 w-4"})})}),(0,ft.jsx)(y.ItemText,{children:e})]}));ve.displayName=y.Item.displayName;var Yo=ce.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(y.Separator,{className:N("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Yo.displayName=y.Separator.displayName;var Ut=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Wt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),Zt=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),qt=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Xt=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),Jt=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),Qt=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ve=require("@payloadcms/richtext-lexical/lexical/list"),Yt=require("@payloadcms/richtext-lexical/lexical/rich-text"),eo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var $t=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ft=require("@payloadcms/richtext-lexical/lexical/utils"),S=require("@payloadcms/richtext-lexical/lexical"),et=require("@payloadcms/richtext-lexical/lexical/selection");var er=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})}),St=er;var tr=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})}),Rt=tr;var or=()=>(0,ft.jsxs)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,ft.jsx)("path",{ft:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),(0,ft.jsx)("path",{ft:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),Pt=or;var rr=()=>(0,ft.jsxs)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,ft.jsx)("path",{ft:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),(0,ft.jsx)("path",{ft:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),Mt=rr;var nr=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})}),kt=nr;var ar=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})}),Dt=ar;var Tt=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})}),It=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})}),Ht=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),At=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})}),Lt=()=>(0,ft.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,ft.jsx)("path",{ft:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});var re=j(require("react")),C=j(require("@radix-ui/react-dropdown-menu")),xe=require("@radix-ui/react-icons");var Pe=C.Root,Me=C.Trigger;var Et=re.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,ft.jsxs)(C.SubTrigger,{ref:i,className:N("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,ft.jsx)(xe.ChevronRightIcon,{className:"ml-auto"})]}));Et.displayName=C.SubTrigger.displayName;var Vt=re.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(C.SubContent,{ref:o,className:N("Y-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Vt.displayName=C.SubContent.displayName;var we=re.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,ft.jsx)(C.Portal,{children:(0,ft.jsx)(C.Content,{ref:r,sideOffset:t,className:N("Y-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));we.displayName=C.Content.displayName;var ye=re.forwardRef(({className:e,inset:t,...o},r)=>(0,ft.jsx)(C.Item,{ref:r,className:N("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ye.displayName=C.Item.displayName;var zt=re.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,ft.jsxs)(C.CheckboxItem,{ref:i,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,ft.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ft.jsx)(C.ItemIndicator,{children:(0,ft.jsx)(xe.CheckIcon,{className:"h-4 w-4"})})}),t]}));zt.displayName=C.CheckboxItem.displayName;var Bt=re.forwardRef(({className:e,children:t,...o},r)=>(0,ft.jsxs)(C.RadioItem,{ref:r,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,ft.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ft.jsx)(C.ItemIndicator,{children:(0,ft.jsx)(xe.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Bt.displayName=C.RadioItem.displayName;var Kt=re.forwardRef(({className:e,inset:t,...o},r)=>(0,ft.jsx)(C.Label,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Kt.displayName=C.Label.displayName;var Ot=re.forwardRef(({className:e,...t},o)=>(0,ft.jsx)(C.Separator,{ref:o,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Ot.displayName=C.Separator.displayName;var _t=({className:e,...t})=>(0,ft.jsx)("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t});_t.displayName="DropdownMenuShortcut";var Gt=j(require("react")),q=j(require("@radix-ui/react-tooltip"));var Xe=q.Provider,Je=q.Root,Qe=q.Trigger,Le=Gt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,ft.jsx)(q.Portal,{children:(0,ft.jsx)(q.Content,{ref:r,sideOffset:t,className:N("Y-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Le.displayName=q.Content.displayName;var Ye=1;function ir(){return(0,ft.jsx)("span",{className:"border border-[#222222]"})}function tt(){let[e]=(0,$t.useLexicalComposerContext)(),t=(0,Y.useRef)(null),[o,r]=(0,Y.useState)(!1),[i,n]=(0,Y.useState)(!1),[s,a]=(0,Y.useState)(!1),[v,g]=(0,Y.useState)(!1),[k,L]=(0,Y.useState)(!1),[D,w]=(0,Y.useState)(!1),[R,T]=(0,Y.useState)(!1),[p,b]=(0,Y.useState)(!1),[l,x]=(0,Y.useState)(!1),[M,I]=(0,Y.useState)("left"),[ee,_]=(0,Y.useState)("p"),G=f=>{e.update(()=>{let V=(0,S.$getSelection)();(0,S.$isRangeSelection)(V)&&(f==="p"?(0,et.$setBlocksType)(V,()=>(0,S.$createParagraphNode)()):(0,et.$setBlocksType)(V,()=>(0,Yt.$createHeadingNode)(f)))})},F=(0,Y.useCallback)(()=>{let f=(0,S.$getSelection)();if((0,S.$isRangeSelection)(f)){a(f.hasFormat("bold")),g(f.hasFormat("italic")),L(f.hasFormat("underline")),w(f.hasFormat("strikethrough")),T(f.hasFormat("subscript")),b(f.hasFormat("superscript"));let V=f.anchor.getNode(),K=V;for(;K&&!(0,S.$isParagraphNode)(K)&&K!==(0,S.$getRoot)();){let J=K.getParent();J&&(K=J)}if(K){let J=K.getFormatType();I(J||"left")}let de=V.getTopLevelElement()?.__tag;_(de||"p")}},[]);(0,Y.useEffect)(()=>(0,Ft.mergeRegister)(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{F()})}),e.registerCommand(S.SELECTION_CHANGE_COMMAND,(f,V)=>(F(),!1),Ye),e.registerCommand(S.CAN_UNDO_COMMAND,f=>(r(f),!1),Ye),e.registerCommand(S.CAN_REDO_COMMAND,f=>(n(f),!1),Ye)),[e,F]);let $=[[{label:"Undo",icon:(0,ft.jsx)(X.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,ft.jsx)(X.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.UNDO_COMMAND,void 0)},disabled:!i}],[{label:"Bold",icon:(0,ft.jsx)(St,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:s},{label:"Italic",icon:(0,ft.jsx)(Rt,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:v},{label:"Underline",icon:(0,ft.jsx)(Pt,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:k},{label:"Strikethrough",icon:(0,ft.jsx)(Mt,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:D},{label:"Subscript",icon:(0,ft.jsx)(kt,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:R},{label:"Superscript",icon:(0,ft.jsx)(Dt,{}),onClick:()=>{e.dispatchCommand(S.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:p}]],W=[{label:"Left Align",direction:"left",icon:(0,ft.jsx)(X.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,ft.jsx)(X.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,ft.jsx)(X.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,ft.jsx)(X.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(S.FORMAT_ELEMENT_COMMAND,"justify")}}],fe=[{label:"Normal Text",value:"p",icon:(0,ft.jsx)(Tt,{}),onClick:()=>G("p")},{label:"Heading 1",value:"h1",icon:(0,ft.jsx)(It,{}),onClick:()=>G("h1")},{label:"Heading 2",value:"h2",icon:(0,ft.jsx)(Ht,{}),onClick:()=>G("h2")},{label:"Heading 3",value:"h3",icon:(0,ft.jsx)(At,{}),onClick:()=>G("h3")},{label:"Heading 4",value:"h4",icon:(0,ft.jsx)(Lt,{}),onClick:()=>G("h4")},...[{label:"Unordered List",value:"ul",icon:(0,ft.jsx)(X.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ve.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,ft.jsx)(X.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ve.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],ge=[{label:"Insert Image",icon:(0,ft.jsx)(X.ImageUp,{width:15,height:15}),onClick:()=>{x(!0)},disabled:!1}];return(0,ft.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,ft.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[$.map((f,V)=>(0,ft.jsxs)(Y.Fragment,{children:[(0,ft.jsx)("div",{className:"flex items-center gap-2",children:f.map((K,de)=>(0,ft.jsx)("div",{role:"button","aria-disabled":K.disabled||!1,onClick:K.onClick,className:N("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",K.active&&"bg-[#3c3c3c]"),"aria-label":K.label,children:(0,ft.jsx)(Xe,{children:(0,ft.jsxs)(Je,{children:[(0,ft.jsx)(Qe,{className:"text-[#b5b5b5]",children:K.icon}),(0,ft.jsx)(Le,{children:(0,ft.jsx)("p",{children:K.label})})]})})},de))}),(0,ft.jsx)(ir,{})]},`toolbar-option-${f.length}-${V}`)),(0,ft.jsxs)(Pe,{children:[(0,ft.jsxs)(Me,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[W.find(f=>f.direction===M)?.icon,W.find(f=>f.direction===M)?.label,(0,ft.jsx)(X.ChevronDown,{width:15,height:15})]}),(0,ft.jsx)(we,{className:"bg-black hover:bg-black",children:W.map((f,V)=>(0,ft.jsxs)(ye,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,ft.jsx)("span",{children:f.icon}),(0,ft.jsx)("span",{children:f.label})]},`${f.label}-${V}`))})]}),(0,ft.jsxs)(Pe,{children:[(0,ft.jsxs)(Me,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[fe.find(f=>f.value===ee)?.icon,fe.find(f=>f.value===ee)?.label,(0,ft.jsx)(X.ChevronDown,{width:15,height:15})]}),(0,ft.jsx)(we,{className:"bg-black hover:bg-black",children:fe.map((f,V)=>(0,ft.jsxs)(ye,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,ft.jsx)("span",{children:f.icon}),(0,ft.jsx)("span",{children:f.label})]},`heading-option-${f.label}-${V}`))})]}),(0,ft.jsxs)(Pe,{children:[(0,ft.jsxs)(Me,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[(0,ft.jsx)(X.Plus,{width:15,height:15}),(0,ft.jsx)(X.ChevronDown,{width:15,height:15})]}),(0,ft.jsx)(we,{className:"bg-black hover:bg-black",children:ge.map((f,V)=>(0,ft.jsxs)(ye,{onClick:f.onClick,disabled:f.disabled,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,ft.jsx)("span",{children:f.icon}),(0,ft.jsx)("span",{children:f.label})]},V))})]})]})})}var sr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[i]=(0,$t.useLexicalComposerContext)(),n=s=>{s.read(()=>{let a=s.toJSON();e?.(()=>a)})};return(0,Y.useEffect)(()=>{t&&i.update(()=>{i.setEditorState(i.parseEditorState(t))})},[]),(0,ft.jsx)("div",{className:"w-full px-10",children:(0,ft.jsxs)("div",{className:" ",children:[r&&(0,ft.jsx)(tt,{}),(0,ft.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,ft.jsx)(Jt.RichTextPlugin,{contentEditable:(0,ft.jsx)(Zt.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:qt.LexicalErrorBoundary}),r&&(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Xt.HistoryPlugin,{}),(0,ft.jsx)(Ut.AutoFocusPlugin,{}),(0,ft.jsx)(Qt.ListPlugin,{}),(0,ft.jsx)(eo.OnChangePlugin,{onChange:n})]})]})]})})},lr=({setValue:e,value:t,name:o,editable:r=!0})=>(0,ft.jsx)(Wt.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ve.ListNode,Ve.ListItemNode,Yt.HeadingNode],onError(n){throw console.error("Lexical error:",n),n},theme:{code:"editor-code",heading:{h1:"text-4xl",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,ft.jsx)(sr,{value:t,setValue:e,name:o,editable:r})}),ze=lr;function no({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:i=[],knowledgeContexts:n=[]}){let[s,a]=(0,Y.useState)({...e,updatedAt:new Date}),[v,g]=(0,Y.useState)(s.richTextContent);(0,Y.useEffect)(()=>{a(e)},[e]);let k=()=>{let l=new Set,x=new Set;return n.forEach(M=>{M.menuConfig.groupBy.forEach(I=>l.add(I))}),i.forEach(M=>{M.metadata&&Object.keys(M.metadata).forEach(I=>x.add(I))}),{contextKeys:Array.from(l).sort(),documentKeys:Array.from(x).sort(),allKeys:Array.from(new Set([...l,...x])).sort()}},L=l=>{let x=new Set;return i.forEach(M=>{M.metadata?.[l]&&x.add(String(M.metadata[l]))}),Array.from(x).sort()},D=k(),w=()=>{t({...s,richTextContent:v})},R=(l,x)=>{a(M=>({...M,metadata:{...M.metadata,[l]:x}}))},T=(l,x)=>{x==="__custom__"?R(l,""):R(l,x)},p=()=>{let l=`field_${Date.now()}`;R(l,"")},b=l=>{a(x=>{let M={...x.metadata};return delete M[l],{...x,metadata:M}})};return(0,ft.jsxs)(pe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,ft.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,ft.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,ft.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ft.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,ft.jsx)(X.Edit3,{className:"h-6 w-6 text-primary"})}),(0,ft.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:o==="edit"?"Edit Document":"Create Document"})]}),(0,ft.jsxs)("div",{className:"flex gap-2",children:[(0,ft.jsxs)(le,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,ft.jsx)(X.X,{className:"h-4 w-4"}),"Cancel"]}),(0,ft.jsxs)(le,{size:"sm",onClick:w,className:"gap-2",children:[(0,ft.jsx)(X.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,ft.jsxs)("div",{className:"space-y-4",children:[(0,ft.jsxs)("div",{children:[(0,ft.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,ft.jsx)(me,{value:s.title,onChange:l=>a(x=>({...x,title:l.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,ft.jsxs)("div",{children:[(0,ft.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,ft.jsx)(Ie,{value:s.description||"",onChange:l=>a(x=>({...x,description:l.target.value})),placeholder:"Document description...",rows:2})]}),(0,ft.jsxs)("div",{children:[(0,ft.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ft.jsxs)("div",{children:[(0,ft.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),D.contextKeys.length>0&&(0,ft.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",D.contextKeys.slice(0,4).join(", "),D.contextKeys.length>4&&` +${D.contextKeys.length-4}`]})]}),(0,ft.jsxs)(le,{type:"button",variant:"outline",size:"sm",onClick:p,className:"gap-1 h-8",children:[(0,ft.jsx)(X.Plus,{className:"h-3 w-3"}),"Add"]})]}),s.metadata&&Object.keys(s.metadata).length>0?(0,ft.jsx)("div",{className:"space-y-2",children:Object.entries(s.metadata).map(([l,x])=>{let M=L(l);return(0,ft.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ft.jsx)(me,{value:l,onChange:I=>{let ee=I.target.value,_=s.metadata?.[l];a(G=>{let F={...G.metadata};return delete F[l],ee&&(F[ee]=_||""),{...G,metadata:F}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${l}`}),(0,ft.jsx)("datalist",{id:`metadata-keys-${l}`,children:D.allKeys.map(I=>(0,ft.jsx)("option",{value:I},I))}),(0,ft.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),M.length>0?(0,ft.jsxs)($e,{value:String(x||""),onValueChange:I=>T(l,I),children:[(0,ft.jsx)(He,{className:"flex-1 h-8 text-sm",children:(0,ft.jsx)(Fe,{placeholder:"Value"})}),(0,ft.jsxs)(Ae,{children:[M.map(I=>(0,ft.jsx)(ve,{value:I,children:I},I)),(0,ft.jsx)(ve,{value:"__custom__",children:(0,ft.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,ft.jsx)(me,{value:String(x||""),onChange:I=>R(l,I.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,ft.jsx)(le,{type:"button",variant:"ghost",size:"sm",onClick:()=>b(l),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,ft.jsx)(X.X,{className:"h-3 w-3"})})]},l)})}):(0,ft.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,ft.jsx)("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" Y create fields'})})]}),(0,ft.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ft.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format"}),(0,ft.jsxs)($e,{value:s.format,onValueChange:l=>a(x=>({...x,format:l})),children:[(0,ft.jsx)(He,{className:"flex-1 h-8 text-sm",children:(0,ft.jsx)(Fe,{placeholder:"Format"})}),(0,ft.jsxs)(Ae,{children:[(0,ft.jsx)(ve,{value:"markdown",children:"Markdown"}),(0,ft.jsx)(ve,{value:"richText",children:"Rich Text"})]})]})]})]})]}),(0,ft.jsx)("div",{className:"flex-1 overflow-auto",children:(0,ft.jsxs)("div",{className:"p-8",children:[(0,ft.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),s.format==="richText"?(0,ft.jsx)(ze,{setValue:g,value:v,name:"richTextContent"}):(0,ft.jsx)(Ie,{value:s.content||"",onChange:l=>a(x=>({...x,content:l.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var so=j(require("react-markdown")),lo=j(require("remark-gfm"));var co=e=>(0,ft.jsx)(so.default,{remarkPlugins:[lo.default],components:{h1:({children:t})=>(0,ft.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,ft.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,ft.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,ft.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,ft.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,ft.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,ft.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,ft.jsx)("p",{className:"mb-4",children:t}),a:({children:t,href:o})=>(0,ft.jsx)("a",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,ft.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,ft.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),ao=e=>(0,ft.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),cr=e=>(0,ft.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,ft.jsx)(ze,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),dr=e=>(0,ft.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,ft.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,ft.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,ft.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),co(e)]});function mo({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:i,availableDocuments:n=[],knowledgeContexts:s=[]}){let[a,v]=(0,Y.useState)(!1),[g,k]=(0,Y.useState)(e);(0,Y.useEffect)(()=>{k(e)},[e]);let L=p=>{switch(p){case"markdown":case"mdx":return(0,ft.jsx)(X.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,ft.jsx)(X.File,{className:"h-6 w-6 text-success"});case"text":return(0,ft.jsx)(X.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,ft.jsx)(X.File,{className:"h-6 w-6 text-muted-foreground"})}},D=p=>{switch(p){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=(p,b)=>{let l={markdown:co,mdx:dr,text:ao},x=i?.[b]||l[b];if(b==="richText"&&typeof p=="object")return cr(p);if(x&&typeof p=="string")return x(p);if(typeof p=="string")return ao(p)},R=p=>{v(!1),t?.(p),k(p)},T=()=>{v(!1)};return a||r==="create"?(0,ft.jsx)(no,{mode:r==="create"?"create":"edit",document:g,onSave:R,onCancel:T,availableDocuments:n,knowledgeContexts:s}):(0,ft.jsxs)(pe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,ft.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,ft.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,ft.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,ft.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:L(g.format)}),(0,ft.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ft.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:g.title}),g.description&&(0,ft.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:g.description})]})]}),o&&(0,ft.jsx)("div",{className:"flex-shrink-0",children:(0,ft.jsxs)(le,{variant:"outline",size:"sm",onClick:()=>v(!0),className:"gap-2",children:[(0,ft.jsx)(X.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,ft.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,ft.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${D(g.format)}`,children:g.format.toUpperCase()}),g.tags?.map(p=>(0,ft.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",p]},p))]})]}),(0,ft.jsx)("div",{className:"flex-1 overflow-auto",children:(0,ft.jsxs)("div",{className:"p-8",children:[g.metadata&&Object.keys(g.metadata).length>0&&(0,ft.jsxs)("div",{className:"mb-6",children:[(0,ft.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,ft.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,ft.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(g.metadata).map(([p,b])=>(0,ft.jsxs)("div",{className:"flex gap-1",children:[(0,ft.jsxs)("span",{className:"text-muted-foreground font-medium",children:[p.replace(/([X-ft])/g," $1").trim(),":"]}),(0,ft.jsx)("span",{className:"text-foreground truncate",children:String(b)})]},p))})})]}),(0,ft.jsx)("div",{className:"space-y-4",children:g.content||g.richTextContent?(0,ft.jsx)("div",{className:"relative",children:(0,ft.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:w(g.format==="richText"?g.richTextContent:g.content,g.format)})}):(0,ft.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,ft.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,ft.jsx)(X.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,ft.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,ft.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function uo({label:e,documents:t,children:o,level:r,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s=!0}){let[a,v]=(0,Y.useState)(r===0),g=o&&Object.keys(o).length>0,k=t.length+(o?Object.values(o).reduce((w,R)=>w+R.documents.length,0):0),L=w=>{switch(w){case"markdown":case"mdx":return(0,ft.jsx)(X.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richText":return(0,ft.jsx)(X.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,ft.jsx)(X.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},D=w=>{let R=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return R[w%R.length]};return(0,ft.jsxs)("div",{className:"space-y-1",children:[(g||t.length>0)&&(0,ft.jsxs)(pe.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${a?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>v(!a),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,ft.jsx)("div",{className:`w-1 h-6 rounded-full ${D(r)}`}),(0,ft.jsx)(pe.motion.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,ft.jsx)(X.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,ft.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,ft.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,ft.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&k>0&&(0,ft.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,ft.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:k})})]})]}),(0,ft.jsx)(pe.motion.div,{initial:!1,animate:{height:a?"auto":0,opacity:a?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,ft.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((w,R)=>(0,ft.jsxs)(pe.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:R*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===w.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>i?.(w),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,ft.jsx)("div",{className:"flex-shrink-0",children:L(w.format)}),(0,ft.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ft.jsx)("p",{className:`text-sm truncate transition-colors ${n===w.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:w.title}),w.description&&(0,ft.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:w.description})]}),w.tags&&w.tags.length>0&&(0,ft.jsx)("div",{className:"flex-shrink-0",children:(0,ft.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:w.tags[0]})})]},w.id)),o&&Object.entries(o).map(([w,R])=>(0,ft.jsx)(uo,{label:w,documents:R.documents,children:R.children,level:r+1,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s},w))]})})]})}function mr({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:i,selectedDocumentId:n,className:s,editable:a=!0}){let[v,g]=(0,Y.useState)(""),[k,L]=(0,Y.useState)(null),[D,w]=(0,Y.useState)(e);(0,Y.useEffect)(()=>{w(e)},[e]);let R=(0,Y.useMemo)(()=>v?D.filter(b=>b.title.toLowerCase().includes(v.toLowerCase())||b.description?.toLowerCase().includes(v.toLowerCase())||b.tags?.some(l=>l.toLowerCase().includes(v.toLowerCase()))||Object.values(b.metadata||{}).some(l=>String(l).toLowerCase().includes(v.toLowerCase()))):D,[D,v]),T=(0,Y.useMemo)(()=>{let b=(l,x)=>{if(x.length===0)return{};let[M,...I]=x;return l.reduce((_,G)=>{let F=G.metadata?.[M]||"Uncategorized",$=String(F);if(_[$]||(_[$]={documents:[],children:{}}),I.length===0)_[$].documents.push(G);else{let W=b([G],I),P=Object.keys(W)[0];P&&(_[$].children||(_[$].children={}),_[$].children[P]?_[$].children[P].documents.push(...W[P].documents):_[$].children[P]=W[P])}return _},{})};return b(R,t.groupBy)},[R,t.groupBy]),p=b=>{L(b),o?.(b)};return(0,ft.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,ft.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,ft.jsx)("div",{className:"p-6 border-b border-border",children:(0,ft.jsxs)("div",{className:"relative",children:[(0,ft.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,ft.jsx)(X.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,ft.jsx)(me,{placeholder:"Search knowledge base...",value:v,onChange:b=>g(b.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,ft.jsx)(Ge,{className:"h-[calc(100%-100px)]",children:(0,ft.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(T).map(([b,l])=>(0,ft.jsx)(uo,{label:b,documents:l.documents,children:l.children,level:0,onDocumentClick:p,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},b)),Object.keys(T).length===0&&(0,ft.jsxs)(pe.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,ft.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,ft.jsx)(X.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,ft.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,ft.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,ft.jsx)("div",{className:"flex-1 bg-background",children:k?(0,ft.jsx)(mo,{document:k,onDocumentUpdate:i,editable:a}):(0,ft.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,ft.jsxs)(pe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,ft.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,ft.jsx)(X.FileText,{className:"h-10 w-10 text-primary"})}),(0,ft.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,ft.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base Y view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-XXL6LGBB.mjs";import"../../chunk-XC3Y62VP.mjs";import"../../chunk-TH6RC62B.mjs";import"../../chunk-D2ARSS5J.mjs";import"../../chunk-GTHKYSK2.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-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-FT3AE7L2.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.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-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 KnowledgeBrowser};
|