cortex-react-components 2.3.0 → 2.4.1
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-N3B3XNV3.mjs → chunk-2BRDNDUB.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-3HNU2NYP.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-3NRXQBBS.mjs} +1 -1
- package/dist/chunk-553B5H2H.mjs +4 -0
- package/dist/{chunk-PK3OBSCB.mjs → chunk-5MWZTJYP.mjs} +1 -1
- package/dist/{chunk-B7AXSCTN.mjs → chunk-6MSM3CZ6.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-75F3LJMX.mjs} +1 -1
- package/dist/{chunk-7BCUACIY.mjs → chunk-7HR6FNWF.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-7R47MHQE.mjs} +1 -1
- package/dist/{chunk-RAGDUV7M.mjs → chunk-7VDNUJZC.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-AJQHGVZ5.mjs} +1 -1
- package/dist/{chunk-LHEZJYVN.mjs → chunk-AQZEZ3UR.mjs} +1 -1
- package/dist/{chunk-QUXHULLX.mjs → chunk-ATIEKI6M.mjs} +1 -1
- package/dist/{chunk-QTILVWJA.mjs → chunk-B2EJGXDG.mjs} +1 -1
- package/dist/{chunk-GS2VFNHY.mjs → chunk-B3F6F2S4.mjs} +1 -1
- package/dist/{chunk-U3F45KVI.mjs → chunk-BKR3FRMQ.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-C4RWEPVF.mjs} +1 -1
- package/dist/{chunk-7GMAMIHM.mjs → chunk-CXOVEABI.mjs} +1 -1
- package/dist/{chunk-YNTAZCKJ.mjs → chunk-DKVCSRUJ.mjs} +1 -1
- package/dist/{chunk-ABGNIQRP.mjs → chunk-ECXVQZBN.mjs} +1 -1
- package/dist/{chunk-IF3425JX.mjs → chunk-FE7ZGUPU.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-GHOL5L32.mjs} +1 -1
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-GTZJWMZR.mjs} +1 -1
- package/dist/{chunk-TK4JC5PG.mjs → chunk-INPV5MBU.mjs} +1 -1
- package/dist/{chunk-RNMPX2AU.mjs → chunk-IPIDKLAW.mjs} +1 -1
- package/dist/{chunk-LJOWXPWW.mjs → chunk-KWYJ3XZI.mjs} +1 -1
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/chunk-LW4QFIFR.mjs +4 -0
- package/dist/chunk-LYPWYO4W.mjs +1 -0
- package/dist/{chunk-FTZRG54P.mjs → chunk-M4UVNIK2.mjs} +1 -1
- package/dist/{chunk-7EXAS7HK.mjs → chunk-MAAKU7PN.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.mjs → chunk-NINFDOV5.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-SW7RYGO6.mjs → chunk-OQYER4E7.mjs} +1 -1
- package/dist/chunk-PC6TVU7J.mjs +1 -0
- package/dist/{chunk-N7BHIWS5.mjs → chunk-R75OR5VS.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-RGOKBIQ5.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-RJGYVDOU.mjs} +1 -1
- package/dist/{chunk-CAKJOTEE.mjs → chunk-RVHCTANZ.mjs} +1 -1
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/{chunk-P2MTGU2L.mjs → chunk-UJSXVIXW.mjs} +1 -1
- package/dist/{chunk-67VXPDWA.mjs → chunk-VR5WOPRD.mjs} +1 -1
- package/dist/{chunk-S4A4VHOI.mjs → chunk-VWLPVN4M.mjs} +1 -1
- package/dist/{chunk-ERJXTG6X.mjs → chunk-WIRQ5IRT.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/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/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/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/README-document-edit.js +238 -0
- package/dist/components/DigitalColleagues/README-document-edit.mjs +238 -0
- package/dist/components/DigitalColleagues/README-document-preview.js +210 -0
- package/dist/components/DigitalColleagues/README-document-preview.mjs +210 -0
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.d.ts +4 -2
- package/dist/components/DigitalColleagues/document-edit.js +2 -1
- package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.css +1 -0
- package/dist/components/DigitalColleagues/document-preview-examples.d.ts +12 -0
- package/dist/components/DigitalColleagues/document-preview-examples.js +35 -0
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +31 -0
- package/dist/components/DigitalColleagues/document-preview.d.ts +12 -2
- package/dist/components/DigitalColleagues/document-preview.js +2 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
- package/dist/components/DigitalColleagues/types.d.ts +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/VideoHeader.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/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/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/Other/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/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +11 -11
- 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 +15 -15
- 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/dist/utils/BankHolidays.d.ts +1 -4
- package/dist/utils/BankHolidays.js +1 -1
- package/dist/utils/BankHolidays.mjs +1 -1
- package/dist/utils/DaysUtil.js +1 -1
- package/dist/utils/DaysUtil.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-A24EPYUY.mjs +0 -1
- package/dist/chunk-BDFHWLTS.mjs +0 -4
- package/dist/chunk-GILMVRED.mjs +0 -4
- package/dist/chunk-QKGEV7LG.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as g}from"../../chunk-OM5ZUHCN.mjs";import{a as e}from"../../chunk-FMH5CZ7X.mjs";import{a as c}from"../../chunk-SOIRB5TV.mjs";import{a as d}from"../../chunk-BMA4266L.mjs";import{a as f}from"../../chunk-KGEIN56Y.mjs";import{a as b}from"../../chunk-B2EJGXDG.mjs";import{a}from"../../chunk-INPV5MBU.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-O5P35LEY.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{f as Categories,g as Filter,e as Pagination,c as ProjectTeam,d as RelatedContent,a as SidebarLeft,b as SidebarRight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as e}from"../../chunk-7WIO2CIC.mjs";import{a as c}from"../../chunk-X5KZKO2V.mjs";import{a
|
|
1
|
+
import{a as d,b as e}from"../../chunk-7WIO2CIC.mjs";import{a as c}from"../../chunk-X5KZKO2V.mjs";import{a}from"../../chunk-WISCWNL2.mjs";import{a as b}from"../../chunk-FMJBJ3HN.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as Container,a as CustomLink,e as Mask,d as PageShape,c as ThemeProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as a}from"../../../chunk-
|
|
1
|
+
import{f as a}from"../../../chunk-2BRDNDUB.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-2QZUKVBA.mjs";import"../../../chunk-TXVA6XJT.mjs";import"../../../chunk-JYL3XIJX.mjs";import"../../../chunk-4CU7D3X2.mjs";import"../../../chunk-LVK4QE5D.mjs";import"../../../chunk-LKGCU7H6.mjs";import"../../../chunk-5WV5ZFEP.mjs";import"../../../chunk-KX2NCNCS.mjs";import"../../../chunk-LEC6GEWS.mjs";import"../../../chunk-NSMXJCXE.mjs";import"../../../chunk-XGIYNUGC.mjs";import"../../../chunk-X3JZSN3W.mjs";import"../../../chunk-2BR55L74.mjs";import"../../../chunk-TEB67NCD.mjs";import"../../../chunk-KFCSVEI6.mjs";import"../../../chunk-LXZAOORS.mjs";import"../../../chunk-MGYV46AJ.mjs";import"../../../chunk-CGDLOY7W.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-AZ4VR5JX.mjs";import"../../../chunk-BG7QXNV5.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.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-YEKQJ4YC.mjs";export{a as RichText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"../../../chunk-
|
|
1
|
+
import{e as a}from"../../../chunk-2BRDNDUB.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-2QZUKVBA.mjs";import"../../../chunk-TXVA6XJT.mjs";import"../../../chunk-JYL3XIJX.mjs";import"../../../chunk-4CU7D3X2.mjs";import"../../../chunk-LVK4QE5D.mjs";import"../../../chunk-LKGCU7H6.mjs";import"../../../chunk-5WV5ZFEP.mjs";import"../../../chunk-KX2NCNCS.mjs";import"../../../chunk-LEC6GEWS.mjs";import"../../../chunk-NSMXJCXE.mjs";import"../../../chunk-XGIYNUGC.mjs";import"../../../chunk-X3JZSN3W.mjs";import"../../../chunk-2BR55L74.mjs";import"../../../chunk-TEB67NCD.mjs";import"../../../chunk-KFCSVEI6.mjs";import"../../../chunk-LXZAOORS.mjs";import"../../../chunk-MGYV46AJ.mjs";import"../../../chunk-CGDLOY7W.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-AZ4VR5JX.mjs";import"../../../chunk-BG7QXNV5.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.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-YEKQJ4YC.mjs";export{a as serializeLexical};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"../../chunk-3SZR5DC2.mjs";import{a as h}from"../../chunk-VMAPGGGW.mjs";import{a as e}from"../../chunk-XBCYPOFD.mjs";import{a as f}from"../../chunk-AUBKJ4XO.mjs";import"../../chunk-5BT4EWU5.mjs";import{a as d}from"../../chunk-ISBVFNWD.mjs";import"../../chunk-RYZTCMVC.mjs";import{f as c}from"../../chunk-
|
|
1
|
+
import{a as g}from"../../chunk-3SZR5DC2.mjs";import{a as h}from"../../chunk-VMAPGGGW.mjs";import{a as e}from"../../chunk-XBCYPOFD.mjs";import{a as f}from"../../chunk-AUBKJ4XO.mjs";import"../../chunk-5BT4EWU5.mjs";import{a as d}from"../../chunk-ISBVFNWD.mjs";import"../../chunk-RYZTCMVC.mjs";import{f as c}from"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import{a}from"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import{a as b}from"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-AZ4VR5JX.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.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-YEKQJ4YC.mjs";export{a as CMSLink,d as Card,e as CollectionArchive,f as Logo,b as Media,g as PageRange,h as PayloadPagination,c as RichText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-AQZEZ3UR.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-2VZWOBGP.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KanbanBoardView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use client";import{a as r}from"../../chunk-
|
|
4
|
+
"use client";import{a as r}from"../../chunk-DKVCSRUJ.mjs";import"../../chunk-PXPSM7OQ.mjs";import"../../chunk-KOXC4RIH.mjs";import"../../chunk-AQZEZ3UR.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-2VZWOBGP.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-NZS3XKXU.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-FV3W3WL7.mjs";import"../../chunk-3U3PZBHQ.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-ECXVQZBN.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-2NMVE5M4.mjs";import{a as s}from"../../chunk-2GNX22CR.mjs";import"../../chunk-BE5B22X7.mjs";import{a as o,b as a}from"../../chunk-PA4ZBJDO.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-CBLP4MXP.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-3KITWLRN.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-O5P35LEY.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";import{useState as l}from"react";import{motion as M,AnimatePresence as R}from"framer-motion";import{jsx as i,jsxs as ie}from"react/jsx-runtime";function H({title:d="",projects:c,businessUnits:t,epics:p,sprints:m,tasks:u,currentView:L,onAddTask:g,onUpdateTask:k,onDeleteTask:v,onTaskClick:T,onAddEpic:h,onUpdateEpic:P,onDeleteEpic:b,onAddTaskToEpic:j,onAddSprint:f,onUpdateSprint:C,onDeleteSprint:A,onAddProject:S,onUpdateProject:w,onDeleteProject:U,onViewChange:I,mobileMenuOpen:x,onToggleMobileMenu:y,onTeamClick:E,onTeamChange:D,onCopilotClick:O}){let[n,B]=l("projects"),[N,Y]=l(t[0]),_=e=>{console.log("Opening app:",e.name)},q=e=>{console.log("Favoriting app:",e.name)},z=e=>{console.log("Opening file:",e.name)},G=e=>{console.log("Sharing file:",e.name)},J=e=>{console.log("Opening project:",e.name)},K=e=>{console.log("Sharing project:",e.name)},F=e=>{console.log("Business unit changed to:",e.name)},V=()=>{switch(n){case"projects":return i(r,{initialProjects:c,initialEpics:p,initialSprints:m,initialTasks:u,onAddTask:g,onUpdateTask:k,onDeleteTask:v,onTaskClick:T,onAddEpic:h,onUpdateEpic:P,onDeleteEpic:b,onAddTaskToEpic:j,onAddSprint:f,onUpdateSprint:C,onDeleteSprint:A,onAddProject:S,onUpdateProject:w,onDeleteProject:U,onViewChange:I,onToggleMobileMenu:y,onTeamClick:E,onTeamChange:D,onCopilotClick:O});default:return null}};return i(s,{sidebarItems:o,title:d,notifications:a,businessUnits:t,currentBusinessUnit:N,onBusinessUnitChange:F,activeTab:n,onTabChange:B,showTabs:!0,children:i(R,{mode:"wait",children:i(M.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:V()},n)})})}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-DKVCSRUJ.mjs";import"../../chunk-PXPSM7OQ.mjs";import"../../chunk-KOXC4RIH.mjs";import"../../chunk-AQZEZ3UR.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-2VZWOBGP.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-NZS3XKXU.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-FV3W3WL7.mjs";import"../../chunk-3U3PZBHQ.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-ECXVQZBN.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-O5P35LEY.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var lo=Object.create;var Ae=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var mo=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,uo=Object.prototype.hasOwnProperty;var fo=(e,t)=>{for(var o in t)Ae(e,o,{get:t[o],enumerable:!0})},ft=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mo(t))!uo.call(e,i)&&i!==o&&Ae(e,i,{get:()=>t[i],enumerable:!(r=co(t,i))||r.enumerable});return e};var G=(e,t,o)=>(o=e!=null?lo(po(e)):{},ft(t||!e||!e.__esModule?Ae(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>ft(Ae({},"__esModule",{value:!0}),e);var nr={};fo(nr,{FileList:()=>Pe,FileView:()=>dt,KnowledgeBrowser:()=>He,KnowledgeView:()=>Xe,TeamCard:()=>Be,TeamsIndexView:()=>rt});module.exports=go(nr);var Ot=require("react");var It=require("framer-motion");var Pt=require("class-variance-authority");var Ct=require("clsx");var _e="-",bo=e=>{let t=xo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let a=s.split(_e);return a[0]===""&&a.length!==1&&a.shift(),vt(a,t)||vo(s)},getConflictingClassGroupIds:(s,a)=>{let d=o[s]||[];return a&&r[s]?[...d,...r[s]]:d}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?vt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(_e);return t.validators.find(({validator:s})=>s(n))?.classGroupId},gt=/^\[(.+)\]$/,vo=e=>{if(gt.test(e)){let t=gt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wo(Object.entries(e.classGroups),o).forEach(([n,s])=>{Ue(s,r,n,t)}),r},Ue=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:bt(t,i);n.classGroupId=o;return}if(typeof i=="function"){if(ho(i)){Ue(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,s])=>{Ue(s,bt(t,n),o,r)})})},bt=(e,t)=>{let o=e;return t.split(_e).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},ho=e=>e.isThemeGetter,wo=(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,yo=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)}}},xt="!",No=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],n=t.length,s=a=>{let d=[],p=0,N=0,k;for(let b=0;b<a.length;b++){let T=a[b];if(p===0){if(T===i&&(r||a.slice(b,b+n)===t)){d.push(a.slice(N,b)),N=b+n;continue}if(T==="/"){k=b;continue}}T==="["?p++:T==="]"&&p--}let z=d.length===0?a:a.substring(N),g=z.startsWith(xt),R=g?z.substring(1):z,h=k&&k>N?k-N:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:R,maybePostfixModifierPosition:h}};return o?a=>o({className:a,parseClassName:s}):s},Co=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},Po=e=>({cache:yo(e.cacheSize),parseClassName:No(e),...bo(e)}),Ro=/\s+/,Do=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,n=[],s=e.trim().split(Ro),a="";for(let d=s.length-1;d>=0;d-=1){let p=s[d],{modifiers:N,hasImportantModifier:k,baseClassName:z,maybePostfixModifierPosition:g}=o(p),R=!!g,h=r(R?z.substring(0,g):z);if(!h){if(!R){a=p+(a.length>0?" "+a:a);continue}if(h=r(z),!h){a=p+(a.length>0?" "+a:a);continue}R=!1}let b=Co(N).join(":"),T=k?b+xt:b,K=T+h;if(n.includes(K))continue;n.push(K);let U=i(h,R);for(let O=0;O<U.length;++O){let B=U[O];n.push(T+B)}a=p+(a.length>0?" "+a:a)}return a};function So(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ht(t))&&(r&&(r+=" "),r+=o);return r}var ht=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ht(e[r]))&&(o&&(o+=" "),o+=t);return o};function To(e,...t){let o,r,i,n=s;function s(d){let p=t.reduce((N,k)=>k(N),e());return o=Po(p),r=o.cache.get,i=o.cache.set,n=a,a(d)}function a(d){let p=r(d);if(p)return p;let N=Do(d,o);return i(d,N),N}return function(){return n(So.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-z-]+):)?(.+)\]$/i,ko=/^\d+\/\d+$/,Mo=new Set(["px","full","screen"]),Io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ao=/\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$/,zo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>xe(e)||Mo.has(e)||ko.test(e),oe=e=>he(e,"length",Wo),xe=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>he(e,"number",xe),De=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&xe(e.slice(0,-1)),u=e=>wt.test(e),re=e=>Io.test(e),Ho=new Set(["length","size","percentage"]),Bo=e=>he(e,Ho,yt),Ko=e=>he(e,"position",yt),Vo=new Set(["image","url"]),jo=e=>he(e,Vo,$o),Go=e=>he(e,"",Oo),Se=()=>!0,he=(e,t,o)=>{let r=wt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Wo=e=>Ao.test(e)&&!zo.test(e),yt=()=>!1,Oo=e=>Lo.test(e),$o=e=>Eo.test(e);var Uo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),r=P("brightness"),i=P("borderColor"),n=P("borderRadius"),s=P("borderSpacing"),a=P("borderWidth"),d=P("contrast"),p=P("grayscale"),N=P("hueRotate"),k=P("invert"),z=P("gap"),g=P("gradientColorStops"),R=P("gradientColorStopPositions"),h=P("inset"),b=P("margin"),T=P("opacity"),K=P("padding"),U=P("saturate"),O=P("scale"),B=P("sepia"),X=P("skew"),ve=P("space"),w=P("translate"),_=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],We=()=>["auto",u,t],D=()=>[u,t],ct=()=>["",Z,oe],Me=()=>["auto",xe,u],mt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ie=()=>["solid","dashed","dotted","double","none"],pt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",u],ut=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[xe,u];return{cacheSize:500,separator:":",theme:{colors:[Se],spacing:[Z,oe],blur:["none","",re,u],brightness:Q(),borderColor:[e],borderRadius:["none","","full",re,u],borderSpacing:D(),borderWidth:ct(),contrast:Q(),grayscale:Re(),hueRotate:Q(),invert:Re(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Fo,oe],inset:We(),margin:We(),opacity:Q(),padding:D(),saturate:Q(),scale:Q(),sepia:Re(),skew:Q(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":ut()}],"break-before":[{"break-before":ut()}],"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:[...mt(),u]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-Rt":[{"overflow-Rt":j()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-Rt":[{"overscroll-Rt":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-Rt":[{"inset-Rt":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",De,u]}],basis:[{basis:We()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",De,u]}],"grid-cols":[{"grid-cols":[Se]}],"col-start-end":[{col:["auto",{span:["full",De,u]},u]}],"col-start":[{"col-start":Me()}],"col-end":[{"col-end":Me()}],"grid-rows":[{"grid-rows":[Se]}],"row-start-end":[{row:["auto",{span:[De,u]},u]}],"row-start":[{"row-start":Me()}],"row-end":[{"row-end":Me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[z]}],"gap-x":[{"gap-x":[z]}],"gap-Rt":[{"gap-Rt":[z]}],"justify-content":[{justify:["normal",...Oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[K]}],px:[{px:[K]}],py:[{py:[K]}],ps:[{ps:[K]}],pe:[{pe:[K]}],pt:[{pt:[K]}],pr:[{pr:[K]}],pb:[{pb:[K]}],pl:[{pl:[K]}],Rt:[{Rt:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ve]}],"space-x-reverse":["space-x-reverse"],"space-Rt":[{"space-Rt":[ve]}],"space-Rt-reverse":["space-Rt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",xe,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Z,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Z,oe]}],"underline-offset":[{"underline-offset":["auto",Z,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...mt(),Ko]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Rt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Rt","tl"]},jo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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-Rt":[{"rounded-Rt":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-Rt":[{"border-Rt":[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-Rt":[{"border-Rt":[a]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...Ie(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-Rt":[{"divide-Rt":[a]}],"divide-Rt-reverse":["divide-Rt-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:Ie()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Rt":[{"border-Rt":[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-Rt":[{"border-Rt":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Ie()]}],"outline-offset":[{"outline-offset":[Z,u]}],"outline-w":[{outline:[Z,oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ct()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Z,oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,Go]}],"shadow-color":[{shadow:[Se]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...pt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",re,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[k]}],saturate:[{saturate:[U]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-Rt":[{"border-spacing-Rt":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-Rt":[{"scale-Rt":[O]}],rotate:[{rotate:[De,u]}],"translate-x":[{"translate-x":[w]}],"translate-Rt":[{"translate-Rt":[w]}],"skew-x":[{"skew-x":[X]}],"skew-Rt":[{"skew-Rt":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","q-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Rt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Rt":[{"scroll-Rt":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Rt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Rt":[{"touch-pan":["Rt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Z,oe,$e]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Rt"],overscroll:["overscroll-x","overscroll-Rt"],inset:["inset-x","inset-Rt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Rt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Rt"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Rt:["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-Rt","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-Rt":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Rt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-Rt"],"border-w-x":["border-w-r","border-w-Rt"],"border-w-Rt":["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-Rt"],"border-color-x":["border-color-r","border-color-Rt"],"border-color-Rt":["border-color-t","border-color-b"],"scroll-Rt":["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-Rt","touch-pz"],"touch-x":["touch"],"touch-Rt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Nt=To(Uo);function c(...e){return Nt((0,Ct.clsx)(e))}var Rt=require("react/jsx-runtime"),_o=(0,Pt.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 ze({className:e,variant:t,...o}){return(0,Rt.jsx)("div",{className:c(_o({variant:t}),e),...o})}var Dt=require("@radix-ui/react-slot"),Tt=G(require("react")),qo=(0,Pt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},n)=>(0,Rt.jsx)(e?Dt.Slot:"button",{className:c(qo({className:t,size:o,variant:r})),ref:n,...i}));M.displayName="Button";function Mt(e,t){let[o,r]=(0,Ot.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),i=n=>{try{r(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,Ot.useEffect)(()=>{i(o)},[]),[o,i]}var Ee=require("react-icons/fa");function le({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:n,children:s,className:a}){let[d,p]=Mt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||d;return(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${a||""}`,children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Rt.jsx)(ze,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Rt.jsx)("h2",{className:"text-3xl font-bold Rt-0",children:e})]}),(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,Rt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Rt.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!d),style:{lineHeight:0},children:d?(0,Rt.jsx)(Ee.FaChevronDown,{size:22}):(0,Rt.jsx)(Ee.FaChevronUp,{size:22})})]})]}),!N&&(0,Rt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Rt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Rt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Rt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),s&&(0,Rt.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var q=require("lucide-react");var At=G(require("react"));var ae=At.forwardRef(({className:e,type:t,...o},r)=>(0,Rt.jsx)("input",{type:t,className:c("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}));ae.displayName="Input";var qe=G(require("react")),$=G(require("@radix-ui/react-scroll-area"));var Je=qe.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)($.Root,{ref:r,className:c("relative overflow-hidden",e),...o,children:[(0,Rt.jsx)($.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Rt.jsx)(Lt,{}),(0,Rt.jsx)($.Corner,{})]}));Je.displayName=$.Root.displayName;var Lt=qe.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Rt.jsx)($.ScrollAreaScrollbar,{ref:r,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Rt border-Rt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Rt.jsx)($.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Lt.displayName=$.ScrollAreaScrollbar.displayName;var Et=G(require("react")),Fe=Et.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("textarea",{className:c("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}));Fe.displayName="Textarea";function Kt({document:e,onSave:t,onCancel:o}){let[r,i]=(0,Ot.useState)({...e,updatedAt:new Date}),n=()=>{t(r)},s=a=>{let d=a.split(",").map(p=>p.trim()).filter(p=>p.length>0);i(p=>({...p,tags:d}))};return(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Rt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Rt.jsx)(q.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Rt.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Rt.jsxs)("div",{className:"flex gap-2",children:[(0,Rt.jsxs)(M,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,Rt.jsx)(q.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Rt.jsxs)(M,{size:"sm",onClick:n,className:"gap-2",children:[(0,Rt.jsx)(q.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Rt.jsx)(ae,{value:r.title,onChange:a=>i(d=>({...d,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Rt.jsx)(Fe,{value:r.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),(0,Rt.jsx)(ae,{value:r.tags?.join(", ")||"",onChange:a=>s(a.target.value),placeholder:"tag1, tag2, tag3..."})]}),(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Rt.jsx)(ze,{variant:"secondary",className:"font-mono",children:r.format.toUpperCase()})]})]})]}),(0,Rt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Rt.jsxs)("div",{className:"p-8",children:[(0,Rt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Rt.jsx)(Fe,{value:r.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}function Gt({document:e,onDocumentUpdate:t,editable:o=!0}){let[r,i]=(0,Ot.useState)(!1),n=p=>{switch(p){case"markdown":case"mdx":return(0,Rt.jsx)(q.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Rt.jsx)(q.File,{className:"h-6 w-6 text-success"});default:return(0,Rt.jsx)(q.File,{className:"h-6 w-6 text-muted-foreground"})}},s=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";default:return"bg-muted text-muted-foreground border-border"}},a=p=>{i(!1),t?.(p)},d=()=>{i(!1)};return r?(0,Rt.jsx)(Kt,{document:e,onSave:a,onCancel:d}):(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Rt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Rt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:n(e.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.jsxs)(M,{variant:"outline",size:"sm",onClick:()=>i(!0),className:"gap-2",children:[(0,Rt.jsx)(q.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Rt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Rt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${s(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(p=>(0,Rt.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,Rt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Rt.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Rt.jsxs)("div",{className:"mb-6",children:[(0,Rt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Rt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-Rt-1 text-xs",children:Object.entries(e.metadata).map(([p,N])=>(0,Rt.jsxs)("div",{className:"flex gap-1",children:[(0,Rt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[p.replace(/([Rt-Z])/g," $1").trim(),":"]}),(0,Rt.jsx)("span",{className:"text-foreground truncate",children:String(N)})]},p))})})]}),(0,Rt.jsx)("div",{className:"space-Rt-4",children:e.content?(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Rt.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Rt.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Rt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Rt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Wt({label:e,documents:t,children:o,level:r,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s=!0}){let[a,d]=(0,Ot.useState)(r===0),p=o&&Object.keys(o).length>0,N=t.length+(o?Object.values(o).reduce((g,R)=>g+R.documents.length,0):0),k=g=>{switch(g){case"markdown":case"mdx":return(0,Rt.jsx)(q.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Rt.jsx)(q.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Rt.jsx)(q.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},z=g=>{let R=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return R[g%R.length]};return(0,Rt.jsxs)("div",{className:"space-Rt-1",children:[(p||t.length>0)&&(0,Rt.jsxs)(It.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:()=>d(!a),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:`w-1 h-6 rounded-full ${z(r)}`}),(0,Rt.jsx)(It.motion.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Rt.jsx)(q.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Rt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&N>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:N})})]})]}),(0,Rt.jsx)(It.motion.div,{initial:!1,animate:{height:a?"auto":0,opacity:a?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"pt-2 space-Rt-1",children:[t.map((g,R)=>(0,Rt.jsxs)(It.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===g.id?"bg-primary/10 border-Rt-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>i?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:"flex-shrink-0",children:k(g.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("p",{className:`text-sm truncate transition-colors ${n===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.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:g.tags[0]})})]},g.id)),o&&Object.entries(o).map(([g,R])=>(0,Rt.jsx)(Wt,{label:g,documents:R.documents,children:R.children,level:r+1,onDocumentClick:i,selectedDocumentId:n,showDocumentCount:s},g))]})})]})}function He({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:i,selectedDocumentId:n,className:s,editable:a=!0}){let[d,p]=(0,Ot.useState)(""),[N,k]=(0,Ot.useState)(null),z=(0,Ot.useMemo)(()=>d?e.filter(h=>h.title.toLowerCase().includes(d.toLowerCase())||h.description?.toLowerCase().includes(d.toLowerCase())||h.tags?.some(b=>b.toLowerCase().includes(d.toLowerCase()))||Object.values(h.metadata||{}).some(b=>String(b).toLowerCase().includes(d.toLowerCase()))):e,[e,d]),g=(0,Ot.useMemo)(()=>{let h=(b,T)=>{if(T.length===0)return{};let[K,...U]=T;return b.reduce((B,X)=>{let ve=X.metadata?.[K]||"Uncategorized",w=String(ve);if(B[w]||(B[w]={documents:[],children:{}}),U.length===0)B[w].documents.push(X);else{let _=h([X],U),j=Object.keys(_)[0];j&&(B[w].children||(B[w].children={}),B[w].children[j]?B[w].children[j].documents.push(..._[j].documents):B[w].children[j]=_[j])}return B},{})};return h(z,t.groupBy)},[z,t.groupBy]),R=h=>{k(h),o?.(h)};return(0,Rt.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,Rt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Rt.jsx)("div",{className:"p-6 border-b border-border",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"absolute inset-Rt-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Rt.jsx)(q.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsx)(ae,{placeholder:"Search knowledge base...",value:d,onChange:h=>p(h.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,Rt.jsx)(Je,{className:"h-[calc(100%-100px)]",children:(0,Rt.jsxs)("div",{className:"p-4 space-Rt-3",children:[Object.entries(g).map(([h,b])=>(0,Rt.jsx)(Wt,{label:h,documents:b.documents,children:b.children,level:0,onDocumentClick:R,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},h)),Object.keys(g).length===0&&(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Rt.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 bg-background",children:N?(0,Rt.jsx)(Gt,{document:N,onDocumentUpdate:i,editable:a}):(0,Rt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:20},animate:{opacity:1,Rt:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Rt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Rt.jsx)(q.FileText,{className:"h-10 w-10 text-primary"})}),(0,Rt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Rt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Xe({documents:e=[],contexts:t=[],onDocumentClick:o=s=>console.log("Document clicked:",s),onDocumentShare:r=s=>console.log("Share document:",s),onLoadDocumentContent:i,selectedDocumentId:n}){let[s,a]=(0,Ot.useState)(t[0]);return!t||t.length===0?(0,Rt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Rt.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Rt.jsx)(le,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Rt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Rt.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Rt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Rt.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Rt.jsx)(le,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Rt.jsxs)("div",{className:"mt-6",children:[(0,Rt.jsx)("div",{className:"border-b border-border",children:(0,Rt.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(d=>(0,Rt.jsxs)("button",{onClick:()=>a(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))})}),s.description&&(0,Rt.jsx)("div",{className:"mt-3 px-1",children:(0,Rt.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,Rt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Rt.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Rt.jsx)(He,{documents:e,menuConfig:s.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:n})})})]})}var me=G(require("react"));var Y=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Y.displayName="Card";var pe=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("flex flex-col space-Rt-1.5 p-6",e),...t}));pe.displayName="CardHeader";var ue=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";var Qe=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Qe.displayName="CardDescription";var ee=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("p-6 pt-0",e),...t}));ee.displayName="CardContent";var Ze=me.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:c("flex items-center p-6 pt-0",e),...t}));Ze.displayName="CardFooter";function Be({team:e,onOpen:t,className:o}){return(0,Rt.jsx)($t.motion.div,{whileHover:{scale:1.02,Rt:-5},whileTap:{scale:.98},className:o,children:(0,Rt.jsxs)(Y,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Rt.jsxs)(pe,{children:[(0,Rt.jsx)(ue,{className:"text-lg",children:e.name}),(0,Rt.jsx)(Qe,{className:"mt-1 text-sm",children:e.description})]}),(0,Rt.jsxs)(ee,{className:"space-Rt-4",children:[(0,Rt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.Users,{className:"h-4 w-4 text-blue-500"}),(0,Rt.jsx)("span",{children:"Human"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.Bot,{className:"h-4 w-4 text-purple-500"}),(0,Rt.jsx)("span",{children:"Digital"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Rt.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Rt.jsx)(q.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,Rt.jsx)("span",{children:"Projects"})]}),(0,Rt.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Rt.jsx)(Ze,{className:"flex gap-2",children:(0,Rt.jsx)(M,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var Te=G(require("react")),F=G(require("@radix-ui/react-dialog"));var _t=F.Root;var Jo=F.Portal;var qt=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Overlay,{ref:o,className:c("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));qt.displayName=F.Overlay.displayName;var Ye=Te.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(Jo,{children:[(0,Rt.jsx)(qt,{}),(0,Rt.jsxs)(F.Content,{ref:r,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-Rt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Rt.jsxs)(F.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Rt.jsx)(q.X,{className:"h-4 w-4"}),(0,Rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=F.Content.displayName;var et=({className:e,...t})=>(0,Rt.jsx)("div",{className:c("flex flex-col space-Rt-1.5 text-center sm:text-left",e),...t});et.displayName="DialogHeader";var Xo=({className:e,...t})=>(0,Rt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xo.displayName="DialogFooter";var tt=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));tt.displayName=F.Title.displayName;var ot=Te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));ot.displayName=F.Description.displayName;function rt({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,i]=(0,Ot.useState)(!1),n=()=>{i(!0),t?.()},s=a=>{o?.(a)};return(0,Rt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Rt-8",children:[(0,Rt.jsx)(It.AnimatePresence,{mode:"wait",children:(0,Rt.jsxs)(It.motion.div,{initial:{opacity:0,Rt:10},animate:{opacity:1,Rt:0},exit:{opacity:0,Rt:-10},transition:{duration:.2},children:[(0,Rt.jsx)(le,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:n}}),(0,Rt.jsxs)("section",{className:"space-Rt-4 mt-8",children:[(0,Rt.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Rt.jsxs)("div",{className:"text-center py-12",children:[(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to be added to an existing one."})]}):(0,Rt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(a=>(0,Rt.jsx)(Be,{team:a,onOpen:s},a.id))})]})]},"teams-index-view")}),(0,Rt.jsx)(_t,{open:r,onOpenChange:i,children:(0,Rt.jsxs)(Ye,{className:"max-w-3xl max-h-[90vh] overflow-Rt-auto",children:[(0,Rt.jsxs)(et,{children:[(0,Rt.jsx)(tt,{children:"Create New Team"}),(0,Rt.jsx)(ot,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,Rt.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,Rt.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}var v=G(require("@radix-ui/react-select")),se=G(require("react")),Xt=v.Root;var Qt=v.Value,at=se.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(v.Trigger,{className:c("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,Rt.jsx)(v.Icon,{asChild:!0,children:(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));at.displayName=v.Trigger.displayName;var Zt=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(q.ChevronUp,{className:"h-4 w-4"})}));Zt.displayName=v.ScrollUpButton.displayName;var Yt=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4"})}));Yt.displayName=v.ScrollDownButton.displayName;var it=se.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Rt.jsx)(v.Portal,{children:(0,Rt.jsxs)(v.Content,{className:c("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",o==="popper"&&"data-[side=bottom]:translate-Rt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Rt-1",t),position:o,ref:i,...r,children:[(0,Rt.jsx)(Zt,{}),(0,Rt.jsx)(v.Viewport,{className:c("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Rt.jsx)(Yt,{})]})}));it.displayName=v.Content.displayName;var Qo=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Qo.displayName=v.Label.displayName;var Ve=se.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(v.Item,{className:c("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,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(v.ItemIndicator,{children:(0,Rt.jsx)(q.Check,{className:"h-4 w-4"})})}),(0,Rt.jsx)(v.ItemText,{children:e})]}));Ve.displayName=v.Item.displayName;var Zo=se.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(v.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Zo.displayName=v.Separator.displayName;var be=G(require("@radix-ui/react-tabs"));function eo({className:e,...t}){return(0,Rt.jsx)(be.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function to({className:e,...t}){return(0,Rt.jsx)(be.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function oo({className:e,...t}){return(0,Rt.jsx)(be.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var te=G(require("react")),x=G(require("@radix-ui/react-dropdown-menu")),Ne=require("@radix-ui/react-icons");var ro=x.Root,ao=x.Trigger;var Yo=te.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Rt.jsxs)(x.SubTrigger,{ref:i,className:c("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,Rt.jsx)(Ne.ChevronRightIcon,{className:"ml-auto"})]}));Yo.displayName=x.SubTrigger.displayName;var er=te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(x.SubContent,{ref:o,className:c("z-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}));er.displayName=x.SubContent.displayName;var nt=te.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(x.Portal,{children:(0,Rt.jsx)(x.Content,{ref:r,sideOffset:t,className:c("z-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})}));nt.displayName=x.Content.displayName;var st=te.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(x.Item,{ref:r,className:c("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}));st.displayName=x.Item.displayName;var tr=te.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Rt.jsxs)(x.CheckboxItem,{ref:i,className:c("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,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(x.ItemIndicator,{children:(0,Rt.jsx)(Ne.CheckIcon,{className:"h-4 w-4"})})}),t]}));tr.displayName=x.CheckboxItem.displayName;var or=te.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(x.RadioItem,{ref:r,className:c("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,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(x.ItemIndicator,{children:(0,Rt.jsx)(Ne.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));or.displayName=x.RadioItem.displayName;var rr=te.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(x.Label,{ref:r,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));rr.displayName=x.Label.displayName;var ar=te.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(x.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));ar.displayName=x.Separator.displayName;var ir=({className:e,...t})=>(0,Rt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});ir.displayName="DropdownMenuShortcut";function no({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:n=6}){let s=o.find(a=>a.value===e);return(0,Rt.jsxs)(It.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Rt:-20},animate:{opacity:1,Rt:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Rt.jsx)("div",{className:"hidden md:block",children:(0,Rt.jsx)(eo,{value:e,onValueChange:t,children:(0,Rt.jsx)(to,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(n,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Rt.jsx)(It.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Rt.jsx)(oo,{value:a.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Rt.jsx)("div",{className:"md:hidden",children:(0,Rt.jsxs)(ro,{children:[(0,Rt.jsx)(ao,{asChild:!0,children:(0,Rt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Rt.jsx)(q.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Rt.jsx)(nt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Rt.jsx)(st,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}function Pe({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:i=!0,className:n}){return(0,Rt.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${n||""}`,children:[i&&(0,Rt.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Rt.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Rt.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Rt.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Rt.jsx)("div",{className:"divide-Rt",children:e.map(s=>(0,Rt.jsxs)(It.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(s),children:[(0,Rt.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,Rt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:s.icon}),(0,Rt.jsx)("div",{children:(0,Rt.jsx)("p",{className:"font-medium",children:s.name})})]}),(0,Rt.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:s.size}),(0,Rt.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,Rt.jsx)("span",{className:"text-sm md:text-base",children:s.modified}),(0,Rt.jsxs)("div",{className:"flex gap-1",children:[(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:a=>{a.stopPropagation(),o?.(s)},children:(0,Rt.jsx)(q.Edit,{className:"h-4 w-4"})}),(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:a=>{a.stopPropagation(),r?.(s)},children:(0,Rt.jsx)(q.Trash2,{className:"h-4 w-4"})}),(0,Rt.jsx)(M,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,Rt.jsx)(q.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},s.name))})]})}function dt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:i,compactView:n=!1,className:s}){let[a,d]=(0,Ot.useState)(e),[p,N]=(0,Ot.useState)(""),[k,z]=(0,Ot.useState)("all"),[g,R]=(0,Ot.useState)("all"),h=Array.from(new Set(a.map(w=>w.app))),b=a.filter(w=>{let _=w.name.toLowerCase().includes(p.toLowerCase()),j=k==="all"||w.app===k;return _&&j}),T=b.slice(0,10),K=b.filter(w=>w.shared),U=()=>{console.log("Add file clicked")},O=w=>{console.log("Edit file:",w.name),o?.(w)},B=w=>{d(_=>_.filter(j=>j.name!==w.name)),r?.(w.name)},X=w=>{console.log("File clicked:",w.name),i?.(w)},ve=()=>{N(""),z("all")};return(0,Rt.jsx)("div",{className:"px-2 md:px-4 py-4 space-Rt-8",children:(0,Rt.jsx)(It.AnimatePresence,{mode:"wait",children:(0,Rt.jsx)(It.motion.div,{initial:{opacity:0,Rt:10},animate:{opacity:1,Rt:0},exit:{opacity:0,Rt:-10},transition:{duration:.2},children:(0,Rt.jsxs)("div",{className:`space-Rt-6 ${s||""}`,children:[(0,Rt.jsx)(le,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:U},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,Rt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Total Files"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:a.length}),(0,Rt.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.filter(w=>w.shared).length," shared"]})]})]}),(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Storage Used"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,Rt.jsxs)(Y,{children:[(0,Rt.jsxs)(pe,{className:"flex flex-row items-center justify-between space-Rt-0 pb-2",children:[(0,Rt.jsx)(ue,{className:"text-sm font-medium",children:"Recent Activity"}),(0,Rt.jsx)(q.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Rt.jsxs)(ee,{children:[(0,Rt.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,Rt.jsx)(Y,{children:(0,Rt.jsx)(ee,{className:"pt-6",children:(0,Rt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Rt.jsx)("div",{className:"flex-1",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)(q.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Rt.jsx)(ae,{placeholder:"Search files...",value:p,onChange:w=>N(w.target.value),className:"pl-9"})]})}),(0,Rt.jsxs)(Xt,{value:k,onValueChange:z,children:[(0,Rt.jsx)(at,{className:"w-full md:w-[180px]",children:(0,Rt.jsx)(Qt,{placeholder:"Filter by app"})}),(0,Rt.jsxs)(it,{children:[(0,Rt.jsx)(Ve,{value:"all",children:"All Apps"}),h.map(w=>(0,Rt.jsx)(Ve,{value:w,children:w},w))]})]}),(p||k!=="all")&&(0,Rt.jsxs)(M,{variant:"outline",onClick:ve,className:"gap-2",children:[(0,Rt.jsx)(q.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,Rt.jsxs)("div",{className:"space-Rt-4",children:[(0,Rt.jsx)(no,{activeTab:g,onTabChange:R,tabOptions:[{value:"all",label:`All Files (${b.length})`},{value:"recent",label:`Recent (${T.length})`},{value:"shared",label:`Shared (${K.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&(0,Rt.jsx)(Pe,{files:b,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n}),g==="recent"&&(0,Rt.jsx)(Pe,{files:T,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n}),g==="shared"&&(0,Rt.jsx)(Pe,{files:K,onFileClick:X,onFileEdit:O,onFileDelete:B,showHeader:!n})]}),b.length===0&&(0,Rt.jsx)(Y,{children:(0,Rt.jsx)(ee,{className:"pt-6",children:(0,Rt.jsxs)("div",{className:"text-center py-8",children:[(0,Rt.jsx)(q.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Rt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,Rt.jsx)("p",{className:"text-muted-foreground mb-4",children:p||k!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,Rt.jsxs)(M,{onClick:U,className:"gap-2",children:[(0,Rt.jsx)(q.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
|
|
5
|
+
"use strict";var mo=Object.create;var Fe=Object.defineProperty;var po=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var bo=(e,t)=>{for(var o in t)Fe(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of uo(t))!go.call(e,s)&&s!==o&&Fe(e,s,{get:()=>t[s],enumerable:!(r=po(t,s))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?mo(fo(e)):{},vt(t||!e||!e.__esModule?Fe(o,"default",{value:e,enumerable:!0}):o,e)),vo=e=>vt(Fe({},"__esModule",{value:!0}),e);var cr={};bo(cr,{FileList:()=>Pe,FileView:()=>pt,KnowledgeBrowser:()=>$e,KnowledgeView:()=>tt,TeamCard:()=>Oe,TeamsIndexView:()=>lt});module.exports=vo(cr);var Jt=require("react");var zt=require("framer-motion");var St=require("class-variance-authority");var Dt=require("clsx");var Qe="-",xo=e=>{let t=wo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let n=i.split(Qe);return n[0]===""&&n.length!==1&&n.shift(),wt(n,t)||ho(i)},getConflictingClassGroupIds:(i,n)=>{let f=o[i]||[];return n&&r[i]?[...f,...r[i]]:f}}},wt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?wt(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Qe);return t.validators.find(({validator:i})=>i(a))?.classGroupId},xt=/^\[(.+)\]$/,ho=e=>{if(xt.test(e)){let t=xt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},wo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return No(Object.entries(e.classGroups),o).forEach(([a,i])=>{Je(i,r,a,t)}),r},Je=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:ht(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(yo(s)){Je(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,i])=>{Je(i,ht(t,a),o,r)})})},ht=(e,t)=>{let o=e;return t.split(Qe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},yo=e=>e.isThemeGetter,No=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,n])=>[t+i,n])):a);return[o,s]}):e,Co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return s(a,i),i},set(a,i){o.has(a)?o.set(a,i):s(a,i)}}},yt="!",Ro=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,i=n=>{let f=[],P=0,C=0,T;for(let v=0;v<n.length;v++){let I=n[v];if(P===0){if(I===s&&(r||n.slice(v,v+a)===t)){f.push(n.slice(C,v)),C=v+a;continue}if(I==="/"){T=v;continue}}I==="["?P++:I==="]"&&P--}let z=f.length===0?n:n.substring(C),d=z.startsWith(yt),D=d?z.substring(1):z,b=T&&T>C?T-C:void 0;return{modifiers:f,hasImportantModifier:d,baseClassName:D,maybePostfixModifierPosition:b}};return o?n=>o({className:n,parseClassName:i}):i},Po=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},Do=e=>({cache:Co(e.cacheSize),parseClassName:Ro(e),...xo(e)}),So=/\s+/,ko=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(So),n="";for(let f=i.length-1;f>=0;f-=1){let P=i[f],{modifiers:C,hasImportantModifier:T,baseClassName:z,maybePostfixModifierPosition:d}=o(P),D=!!d,b=r(D?z.substring(0,d):z);if(!b){if(!D){n=P+(n.length>0?" "+n:n);continue}if(b=r(z),!b){n=P+(n.length>0?" "+n:n);continue}D=!1}let v=Po(C).join(":"),I=T?v+yt:v,H=I+b;if(a.includes(H))continue;a.push(H);let m=s(b,D);for(let h=0;h<m.length;++h){let R=m[h];a.push(I+R)}n=P+(n.length>0?" "+n:n)}return n};function To(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nt(t))&&(r&&(r+=" "),r+=o);return r}var Nt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Nt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Mo(e,...t){let o,r,s,a=i;function i(f){let P=t.reduce((C,T)=>T(C),e());return o=Do(P),r=o.cache.get,s=o.cache.set,a=n,n(f)}function n(f){let P=r(f);if(P)return P;let C=ko(f,o);return s(f,C),C}return function(){return a(To.apply(null,arguments))}}var M=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-z-]+):)?(.+)\]$/i,Io=/^\d+\/\d+$/,Ao=new Set(["px","full","screen"]),Eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zo=/\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$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)J-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>we(e)||Ao.has(e)||Io.test(e),ie=e=>ye(e,"length",Wo),we=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>ye(e,"number",we),Se=e=>!!e&&Number.isInteger(Number(e)),Ho=e=>e.endsWith("%")&&we(e.slice(0,-1)),x=e=>Ct.test(e),se=e=>Eo.test(e),Ko=new Set(["length","size","percentage"]),jo=e=>ye(e,Ko,Rt),Vo=e=>ye(e,"position",Rt),$o=new Set(["image","url"]),Oo=e=>ye(e,$o,Uo),Go=e=>ye(e,"",_o),ke=()=>!0,ye=(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=>zo.test(e)&&!Fo.test(e),Rt=()=>!1,_o=e=>Lo.test(e),Uo=e=>Bo.test(e);var Xo=()=>{let e=M("colors"),t=M("spacing"),o=M("blur"),r=M("brightness"),s=M("borderColor"),a=M("borderRadius"),i=M("borderSpacing"),n=M("borderWidth"),f=M("contrast"),P=M("grayscale"),C=M("hueRotate"),T=M("invert"),z=M("gap"),d=M("gradientColorStops"),D=M("gradientColorStopPositions"),b=M("inset"),v=M("margin"),I=M("opacity"),H=M("padding"),m=M("saturate"),h=M("scale"),R=M("sepia"),S=M("skew"),ee=M("space"),w=M("translate"),W=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Ue=()=>["auto",x,t],A=()=>[x,t],ut=()=>["",oe,ie],Ee=()=>["auto",we,x],ft=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],gt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Xe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",x],bt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[we,x];return{cacheSize:500,separator:":",theme:{colors:[ke],spacing:[oe,ie],blur:["none","",se,x],brightness:te(),borderColor:[e],borderRadius:["none","","full",se,x],borderSpacing:A(),borderWidth:ut(),contrast:te(),grayscale:De(),hueRotate:te(),invert:De(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Ho,ie],inset:Ue(),margin:Ue(),opacity:te(),padding:A(),saturate:te(),scale:te(),sepia:De(),skew:te(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[se]}],"break-after":[{"break-after":bt()}],"break-before":[{"break-before":bt()}],"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:[...ft(),x]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Se,x]}],basis:[{basis:Ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",Se,x]}],"grid-cols":[{"grid-cols":[ke]}],"col-start-end":[{col:["auto",{span:["full",Se,x]},x]}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":[ke]}],"row-start-end":[{row:["auto",{span:[Se,x]},x]}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[z]}],"gap-x":[{"gap-x":[z]}],"gap-y":[{"gap-y":[z]}],"justify-content":[{justify:["normal",...Xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],J:[{J:[v]}],zt:[{zt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,t]}],"min-w":[{"min-w":[x,t,"min","max","fit"]}],"max-w":[{"max-w":[x,t,"none","full","min","max","fit","prose",{screen:[se]},se]}],h:[{h:[x,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,t,"auto","min","max","fit"]}],"font-size":[{text:["base",se,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qe]}],"font-family":[{font:[ke]}],"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",x]}],"line-clamp":[{"line-clamp":["none",we,qe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oe,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oe,ie]}],"underline-offset":[{"underline-offset":["auto",oe,x]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],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",x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ft(),Vo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-Jt":["t","tr","r","br","b","bl","kt","tl"]},Oo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-Jt-pos":[{Jt:[D]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-Jt":[{Jt:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-kt":[{"rounded-kt":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-kt":[{"border-kt":[n]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...ze(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:ze()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-kt":[{"border-kt":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ze()]}],"outline-offset":[{"outline-offset":[oe,x]}],"outline-w":[{outline:[oe,ie]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ut()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[oe,ie]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",se,Go]}],"shadow-color":[{shadow:[ke]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...gt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":gt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",se,x]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[T]}],saturate:[{saturate:[m]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[h]}],"scale-x":[{"scale-x":[h]}],"scale-y":[{"scale-y":[h]}],rotate:[{rotate:[Se,x]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],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",x]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-J":[{"scroll-J":A()}],"scroll-zt":[{"scroll-zt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",x]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oe,ie,qe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","J","zt","mr","mb","ml"],mx:["mr","ml"],my:["zt","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-kt","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-kt":["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-kt"],"border-w-x":["border-w-r","border-w-kt"],"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-kt"],"border-color-x":["border-color-r","border-color-kt"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-J","scroll-zt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-zt","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 Pt=Mo(Xo);function p(...e){return Pt((0,Dt.clsx)(e))}var kt=require("react/jsx-runtime"),qo=(0,St.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Le({className:e,variant:t,...o}){return(0,kt.jsx)("div",{className:p(qo({variant:t}),e),...o})}var Tt=require("@radix-ui/react-slot"),It=U(require("react")),Jo=(0,St.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),E=It.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,kt.jsx)(e?Tt.Slot:"button",{className:p(Jo({className:t,size:o,variant:r})),ref:a,...s}));E.displayName="Button";function Et(e,t){let[o,r]=(0,Jt.useState)(()=>{if(typeof window>"kt")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{r(a),typeof window<"kt"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Jt.useEffect)(()=>{s(o)},[]),[o,s]}var He=require("react-icons/fa");function ce({title:e,description:t,badge:o,primaryAction:r,secondaryAction:s,gradient:a,children:i,className:n}){let[f,P]=Et(`hero-section-minimized-${e.replace(/\s+/kt,"-").toLowerCase()}`,!s&&!t),C=!s&&!t||f;return(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${n||""}`,children:[(0,kt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,kt.jsx)(Le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,kt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[C&&r&&(0,kt.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(s||t)&&(0,kt.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>P(!f),style:{lineHeight:0},children:f?(0,kt.jsx)(He.FaChevronDown,{size:22}):(0,kt.jsx)(He.FaChevronUp,{size:22})})]})]}),!C&&(0,kt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,kt.jsxs)("div",{className:"space-y-4",children:[(0,kt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,kt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,kt.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),s&&(0,kt.jsx)(E,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,kt.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var J=require("lucide-react");var Ft=U(require("react"));var Z=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,kt.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:r,...o}));Z.displayName="Input";var Ze=U(require("react")),q=U(require("@radix-ui/react-scroll-area"));var Ye=Ze.forwardRef(({className:e,children:t,...o},r)=>(0,kt.jsxs)(q.Root,{ref:r,className:p("relative overflow-hidden",e),...o,children:[(0,kt.jsx)(q.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,kt.jsx)(Bt,{}),(0,kt.jsx)(q.Corner,{})]}));Ye.displayName=q.Root.displayName;var Bt=Ze.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,kt.jsx)(q.ScrollAreaScrollbar,{ref:r,orientation:t,className:p("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-kt border-kt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,kt.jsx)(q.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Bt.displayName=q.ScrollAreaScrollbar.displayName;var Ht=U(require("react")),et=Ht.forwardRef(({className:e,...t},o)=>(0,kt.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:o,...t}));et.displayName="Textarea";var y=U(require("@radix-ui/react-select")),de=U(require("react")),Ke=y.Root;var je=y.Value,Te=de.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(y.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:r,...o,children:[e,(0,kt.jsx)(y.Icon,{asChild:!0,children:(0,kt.jsx)(J.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Te.displayName=y.Trigger.displayName;var jt=de.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(y.ScrollUpButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(J.ChevronUp,{className:"h-4 w-4"})}));jt.displayName=y.ScrollUpButton.displayName;var Vt=de.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(y.ScrollDownButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(J.ChevronDown,{className:"h-4 w-4"})}));Vt.displayName=y.ScrollDownButton.displayName;var Me=de.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,kt.jsx)(y.Portal,{children:(0,kt.jsxs)(y.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",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:s,...r,children:[(0,kt.jsx)(jt,{}),(0,kt.jsx)(y.Viewport,{className:p("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,kt.jsx)(Vt,{})]})}));Me.displayName=y.Content.displayName;var Qo=de.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(y.Label,{className:p("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Qo.displayName=y.Label.displayName;var pe=de.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(y.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:r,...o,children:[(0,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(y.ItemIndicator,{children:(0,kt.jsx)(J.Check,{className:"h-4 w-4"})})}),(0,kt.jsx)(y.ItemText,{children:e})]}));pe.displayName=y.Item.displayName;var Zo=de.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(y.Separator,{className:p("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Zo.displayName=y.Separator.displayName;function Ot({document:e,onSave:t,onCancel:o,availableDocuments:r=[],knowledgeContexts:s=[]}){let[a,i]=(0,Jt.useState)({...e,updatedAt:new Date}),[n,f]=(0,Jt.useState)(!1),[P,C]=(0,Jt.useState)(!1),T=()=>{let m=new Set,h=new Set;return s.forEach(R=>{R.menuConfig.groupBy.forEach(S=>m.add(S))}),r.forEach(R=>{R.metadata&&Object.keys(R.metadata).forEach(S=>h.add(S))}),{contextKeys:Array.from(m).sort(),documentKeys:Array.from(h).sort(),allKeys:Array.from(new Set([...m,...h])).sort()}},z=m=>{let h=new Set;return r.forEach(R=>{R.metadata?.[m]&&h.add(String(R.metadata[m]))}),Array.from(h).sort()},d=T(),D=()=>{t(a)},b=(m,h)=>{i(R=>({...R,metadata:{...R.metadata,[m]:h}}))},v=(m,h)=>{h==="__custom__"?b(m,""):b(m,h)},I=()=>{let m=`field_${Date.now()}`;b(m,"")},H=m=>{i(h=>{let R={...h.metadata};return delete R[m],{...h,metadata:R}})};return(0,kt.jsxs)($t.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,kt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,kt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,kt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,kt.jsx)(J.Edit3,{className:"h-6 w-6 text-primary"})}),(0,kt.jsx)("div",{className:"flex-1 min-w-0",children:P?(0,kt.jsx)(Z,{value:a.title,onChange:m=>i(h=>({...h,title:m.target.value})),onBlur:()=>C(!1),onKeyDown:m=>{m.key==="Enter"&&C(!1),m.key==="Escape"&&(i(h=>({...h,title:e.title})),C(!1))},autoFocus:!0,className:"text-xl font-bold border-none p-0 h-auto bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0",placeholder:"Document title..."}):(0,kt.jsxs)("div",{className:"flex items-center gap-2 group",children:[(0,kt.jsx)("h1",{className:"text-xl font-bold text-foreground cursor-pointer hover:text-primary transition-colors py-1",onClick:()=>C(!0),title:"Click Jt edit title",children:a.title||"Untitled Document"}),(0,kt.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>C(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity h-6 w-6 p-0",children:(0,kt.jsx)(J.Edit3,{className:"h-3 w-3"})})]})})]}),(0,kt.jsxs)("div",{className:"flex gap-2",children:[(0,kt.jsxs)(E,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,kt.jsx)(J.kt,{className:"h-4 w-4"}),"Cancel"]}),(0,kt.jsxs)(E,{size:"sm",onClick:D,className:"gap-2",children:[(0,kt.jsx)(J.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,kt.jsxs)("div",{className:"space-y-4",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Description"}),(0,kt.jsx)(Z,{value:a.description||"",onChange:m=>i(h=>({...h,description:m.target.value})),placeholder:"Brief description...",className:"text-sm"})]}),(0,kt.jsxs)("div",{children:[(0,kt.jsxs)("button",{type:"button",onClick:()=>f(!n),className:"flex items-center justify-between w-full p-3 bg-muted/20 hover:bg-muted/30 rounded-lg border border-border transition-colors",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[n?(0,kt.jsx)(J.ChevronDown,{className:"h-4 w-4 text-muted-foreground"}):(0,kt.jsx)(J.ChevronRight,{className:"h-4 w-4 text-muted-foreground"}),(0,kt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Metadata"}),a.metadata&&Object.keys(a.metadata).length>0&&(0,kt.jsxs)("span",{className:"text-xs bg-primary/10 text-primary px-2 py-1 rounded-full",children:[Object.keys(a.metadata).length," field",Object.keys(a.metadata).length!==1?"s":""]})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[d.contextKeys.length>0&&!n&&(0,kt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[d.contextKeys.slice(0,2).join(", "),d.contextKeys.length>2&&"..."]}),(0,kt.jsxs)(E,{type:"button",variant:"ghost",size:"sm",onClick:m=>{m.stopPropagation(),I(),f(!0)},className:"gap-1 h-6 px-2",children:[(0,kt.jsx)(J.Plus,{className:"h-3 w-3"}),"Add"]})]})]}),n&&(0,kt.jsx)("div",{className:"zt-3 space-y-2 pl-6",children:a.metadata&&Object.keys(a.metadata).length>0?Object.entries(a.metadata).map(([m,h])=>{let R=z(m);return(0,kt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,kt.jsx)(Z,{value:m,onChange:S=>{let ee=S.target.value,w=a.metadata?.[m];i(W=>{let O={...W.metadata};return delete O[m],ee&&(O[ee]=w||""),{...W,metadata:O}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${m}`}),(0,kt.jsx)("datalist",{id:`metadata-keys-${m}`,children:d.allKeys.map(S=>(0,kt.jsx)("option",{value:S},S))}),(0,kt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),R.length>0?(0,kt.jsxs)(Ke,{value:String(h||""),onValueChange:S=>v(m,S),children:[(0,kt.jsx)(Te,{className:"flex-1 h-8 text-sm",children:(0,kt.jsx)(je,{placeholder:"Value"})}),(0,kt.jsxs)(Me,{children:[R.map(S=>(0,kt.jsx)(pe,{value:S,children:S},S)),(0,kt.jsx)(pe,{value:"__custom__",children:(0,kt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,kt.jsx)(Z,{value:String(h||""),onChange:S=>b(m,S.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,kt.jsx)(E,{type:"button",variant:"ghost",size:"sm",onClick:()=>H(m),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,kt.jsx)(J.kt,{className:"h-3 w-3"})})]},m)}):(0,kt.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/10",children:(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"No metadata fields yet"})})})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,kt.jsx)(Le,{variant:"secondary",className:"font-mono",children:a.format.toUpperCase()})]})]})]}),(0,kt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,kt.jsxs)("div",{className:"p-8",children:[(0,kt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,kt.jsx)(et,{value:a.content||"",onChange:m=>i(h=>({...h,content:m.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Ut=e=>(0,kt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/kt,"<br>").replace(/\*\*(.*?)\*\*/kt,"<strong>$1</strong>").replace(/\*(.*?)\*/kt,"<em>$1</em>").replace(/`(.*?)`/kt,'<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>')}}),Gt=e=>(0,kt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Yo=e=>(0,kt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,kt.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,kt.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,kt.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,kt.jsx)("pre",{className:"text-sm",children:e})]}),er=e=>(0,kt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,kt.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,kt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,kt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Ut(e)]});function Xt({document:e,onDocumentUpdate:t,editable:o=!0,renderers:r,availableDocuments:s=[],knowledgeContexts:a=[]}){let[i,n]=(0,Jt.useState)(!1),f=d=>{switch(d){case"markdown":case"mdx":return(0,kt.jsx)(J.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,kt.jsx)(J.File,{className:"h-6 w-6 text-success"});case"text":return(0,kt.jsx)(J.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,kt.jsx)(J.File,{className:"h-6 w-6 text-muted-foreground"})}},P=d=>{switch(d){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},C=(d,D)=>{let b={markdown:Ut,mdx:er,richtext:Yo,text:Gt},v=r?.[D]||b[D];return v?v(d):Gt(d)},T=d=>{n(!1),t?.(d)},z=()=>{n(!1)};return i?(0,kt.jsx)(Ot,{document:e,onSave:T,onCancel:z,availableDocuments:s,knowledgeContexts:a}):(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,kt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,kt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,kt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,kt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,kt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,kt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,kt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,kt.jsx)("div",{className:"flex-shrink-0",children:(0,kt.jsxs)(E,{variant:"outline",size:"sm",onClick:()=>n(!0),className:"gap-2",children:[(0,kt.jsx)(J.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,kt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,kt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${P(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(d=>(0,kt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",d]},d))]})]}),(0,kt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,kt.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,kt.jsxs)("div",{className:"mb-6",children:[(0,kt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,kt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,kt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([d,D])=>(0,kt.jsxs)("div",{className:"flex gap-1",children:[(0,kt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[d.replace(/([A-Z])/kt," $1").trim(),":"]}),(0,kt.jsx)("span",{className:"text-foreground truncate",children:String(D)})]},d))})})]}),(0,kt.jsx)("div",{className:"space-y-4",children:e.content?(0,kt.jsx)("div",{className:"relative",children:(0,kt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:C(e.content,e.format)})}):(0,kt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,kt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,kt.jsx)(J.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,kt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,kt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function qt({label:e,documents:t,children:o,level:r,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:i=!0}){let[n,f]=(0,Jt.useState)(r===0),P=o&&Object.keys(o).length>0,C=t.length+(o?Object.values(o).reduce((d,D)=>d+D.documents.length,0):0),T=d=>{switch(d){case"markdown":case"mdx":return(0,kt.jsx)(J.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,kt.jsx)(J.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,kt.jsx)(J.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},z=d=>{let D=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return D[d%D.length]};return(0,kt.jsxs)("div",{className:"space-y-1",children:[(P||t.length>0)&&(0,kt.jsxs)(zt.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${n?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>f(!n),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,kt.jsx)("div",{className:`w-1 h-6 rounded-full ${z(r)}`}),(0,kt.jsx)(zt.motion.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,kt.jsx)(J.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,kt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,kt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,kt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&C>0&&(0,kt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,kt.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:C})})]})]}),(0,kt.jsx)(zt.motion.div,{initial:!1,animate:{height:n?"auto":0,opacity:n?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,kt.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((d,D)=>(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:D*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===d.id?"bg-primary/10 border-kt-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>s?.(d),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,kt.jsx)("div",{className:"flex-shrink-0",children:T(d.format)}),(0,kt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,kt.jsx)("p",{className:`text-sm truncate transition-colors ${a===d.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:d.title}),d.description&&(0,kt.jsx)("p",{className:"text-xs text-muted-foreground truncate zt-0.5",children:d.description})]}),d.tags&&d.tags.length>0&&(0,kt.jsx)("div",{className:"flex-shrink-0",children:(0,kt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:d.tags[0]})})]},d.id)),o&&Object.entries(o).map(([d,D])=>(0,kt.jsx)(qt,{label:d,documents:D.documents,children:D.children,level:r+1,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:i},d))]})})]})}function $e({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:s,selectedDocumentId:a,className:i,editable:n=!0}){let[f,P]=(0,Jt.useState)(""),[C,T]=(0,Jt.useState)(null),z=(0,Jt.useMemo)(()=>f?e.filter(b=>b.title.toLowerCase().includes(f.toLowerCase())||b.description?.toLowerCase().includes(f.toLowerCase())||b.tags?.some(v=>v.toLowerCase().includes(f.toLowerCase()))||Object.values(b.metadata||{}).some(v=>String(v).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),d=(0,Jt.useMemo)(()=>{let b=(v,I)=>{if(I.length===0)return{};let[H,...m]=I;return v.reduce((R,S)=>{let ee=S.metadata?.[H]||"Uncategorized",w=String(ee);if(R[w]||(R[w]={documents:[],children:{}}),m.length===0)R[w].documents.push(S);else{let W=b([S],m),O=Object.keys(W)[0];O&&(R[w].children||(R[w].children={}),R[w].children[O]?R[w].children[O].documents.push(...W[O].documents):R[w].children[O]=W[O])}return R},{})};return b(z,t.groupBy)},[z,t.groupBy]),D=b=>{T(b),o?.(b)};return(0,kt.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,kt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,kt.jsx)("div",{className:"p-6 border-b border-border",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,kt.jsx)(J.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,kt.jsx)(Z,{placeholder:"Search knowledge base...",value:f,onChange:b=>P(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,kt.jsx)(Ye,{className:"h-[calc(100%-100px)]",children:(0,kt.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(d).map(([b,v])=>(0,kt.jsx)(qt,{label:b,documents:v.documents,children:v.children,level:0,onDocumentClick:D,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},b)),Object.keys(d).length===0&&(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,kt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,kt.jsx)(J.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,kt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,kt.jsx)("p",{className:"text-xs zt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,kt.jsx)("div",{className:"flex-1 bg-background",children:C?(0,kt.jsx)(Xt,{document:C,onDocumentUpdate:s,editable:n}):(0,kt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,kt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,kt.jsx)(J.FileText,{className:"h-10 w-10 text-primary"})}),(0,kt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,kt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base Jt view its content and details"})]})})})]})}function tt({documents:e=[],contexts:t=[],onDocumentClick:o=i=>console.log("Document clicked:",i),onDocumentShare:r=i=>console.log("Share document:",i),onLoadDocumentContent:s,selectedDocumentId:a}){let[i,n]=(0,Jt.useState)(t[0]);return!t||t.length===0?(0,kt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,kt.jsx)(ce,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-Jt-r from-teal-600 via-cyan-600 Jt-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,kt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,kt.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,kt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,kt.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,kt.jsx)(ce,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-Jt-r from-teal-600 via-cyan-600 Jt-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,kt.jsxs)("div",{className:"zt-6",children:[(0,kt.jsx)("div",{className:"border-b border-border",children:(0,kt.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,kt.jsxs)("button",{onClick:()=>n(f),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),i.description&&(0,kt.jsx)("div",{className:"zt-3 px-1",children:(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,kt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,kt.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,kt.jsx)($e,{documents:e,menuConfig:i.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:a})})})]})}var ge=U(require("react"));var re=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));re.displayName="Card";var be=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("flex flex-col space-y-1.5 p-6",e),...t}));be.displayName="CardHeader";var ve=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("font-semibold leading-none tracking-tight",e),...t}));ve.displayName="CardTitle";var ot=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("text-sm text-muted-foreground",e),...t}));ot.displayName="CardDescription";var ae=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("p-6 pt-0",e),...t}));ae.displayName="CardContent";var rt=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:p("flex items-center p-6 pt-0",e),...t}));rt.displayName="CardFooter";function Oe({team:e,onOpen:t,className:o}){return(0,kt.jsx)(zt.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,kt.jsxs)(re,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,kt.jsxs)(be,{children:[(0,kt.jsx)(ve,{className:"text-lg",children:e.name}),(0,kt.jsx)(ot,{className:"zt-1 text-sm",children:e.description})]}),(0,kt.jsxs)(ae,{className:"space-y-4",children:[(0,kt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,kt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)(J.Users,{className:"h-4 w-4 text-blue-500"}),(0,kt.jsx)("span",{children:"Human"})]}),(0,kt.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,kt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)(J.Bot,{className:"h-4 w-4 text-purple-500"}),(0,kt.jsx)("span",{children:"Digital"})]}),(0,kt.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,kt.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)(J.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,kt.jsx)("span",{children:"Projects"})]}),(0,kt.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,kt.jsx)(rt,{className:"flex gap-2",children:(0,kt.jsx)(E,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var Ie=U(require("react")),V=U(require("@radix-ui/react-dialog"));var Yt=V.Root;var tr=V.Portal;var eo=Ie.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(V.Overlay,{ref:o,className:p("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));eo.displayName=V.Overlay.displayName;var at=Ie.forwardRef(({className:e,children:t,...o},r)=>(0,kt.jsxs)(tr,{children:[(0,kt.jsx)(eo,{}),(0,kt.jsxs)(V.Content,{ref:r,className:p("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-Jt-left-1/2 data-[state=closed]:slide-out-Jt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,kt.jsxs)(V.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,kt.jsx)(J.kt,{className:"h-4 w-4"}),(0,kt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));at.displayName=V.Content.displayName;var nt=({className:e,...t})=>(0,kt.jsx)("div",{className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});nt.displayName="DialogHeader";var or=({className:e,...t})=>(0,kt.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});or.displayName="DialogFooter";var it=Ie.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(V.Title,{ref:o,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));it.displayName=V.Title.displayName;var st=Ie.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(V.Description,{ref:o,className:p("text-sm text-muted-foreground",e),...t}));st.displayName=V.Description.displayName;function lt({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,s]=(0,Jt.useState)(!1),a=()=>{s(!0),t?.()},i=n=>{o?.(n)};return(0,kt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,kt.jsx)(zt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(zt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,kt.jsx)(ce,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-Jt-r from-blue-600 via-cyan-600 Jt-teal-600",primaryAction:{label:"Create Team",onClick:a}}),(0,kt.jsxs)("section",{className:"space-y-4 zt-8",children:[(0,kt.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,kt.jsxs)("div",{className:"text-center py-12",children:[(0,kt.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,kt.jsx)("p",{className:"text-muted-foreground text-sm zt-2",children:"Create a new team or ask Jt be added Jt an existing one."})]}):(0,kt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(n=>(0,kt.jsx)(Oe,{team:n,onOpen:i},n.id))})]})]},"teams-index-view")}),(0,kt.jsx)(Yt,{open:r,onOpenChange:s,children:(0,kt.jsxs)(at,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,kt.jsxs)(nt,{children:[(0,kt.jsx)(it,{children:"Create New Team"}),(0,kt.jsx)(st,{children:"Set up a new team Jt collaborate with colleagues on projects."})]}),(0,kt.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,kt.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}var he=U(require("@radix-ui/react-tabs"));function oo({className:e,...t}){return(0,kt.jsx)(he.Root,{"data-slot":"tabs",className:p("flex flex-col gap-2",e),...t})}function ro({className:e,...t}){return(0,kt.jsx)(he.List,{"data-slot":"tabs-list",className:p("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ao({className:e,...t}){return(0,kt.jsx)(he.Trigger,{"data-slot":"tabs-trigger",className:p("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var ne=U(require("react")),N=U(require("@radix-ui/react-dropdown-menu")),Ce=require("@radix-ui/react-icons");var no=N.Root,io=N.Trigger;var rr=ne.forwardRef(({className:e,inset:t,children:o,...r},s)=>(0,$.jsxs)(N.SubTrigger,{ref:s,className:p("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,$.jsx)(Ce.ChevronRightIcon,{className:"ml-auto"})]}));rr.displayName=N.SubTrigger.displayName;var ar=ne.forwardRef(({className:e,...t},o)=>(0,$.jsx)(N.SubContent,{ref:o,className:p("z-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}));ar.displayName=N.SubContent.displayName;var dt=ne.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,$.jsx)(N.Portal,{children:(0,$.jsx)(N.Content,{ref:r,sideOffset:t,className:p("z-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})}));dt.displayName=N.Content.displayName;var ct=ne.forwardRef(({className:e,inset:t,...o},r)=>(0,$.jsx)(N.Item,{ref:r,className:p("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}));ct.displayName=N.Item.displayName;var nr=ne.forwardRef(({className:e,children:t,checked:o,...r},s)=>(0,$.jsxs)(N.CheckboxItem,{ref:s,className:p("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,$.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$.jsx)(N.ItemIndicator,{children:(0,$.jsx)(Ce.CheckIcon,{className:"h-4 w-4"})})}),t]}));nr.displayName=N.CheckboxItem.displayName;var ir=ne.forwardRef(({className:e,children:t,...o},r)=>(0,$.jsxs)(N.RadioItem,{ref:r,className:p("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,$.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$.jsx)(N.ItemIndicator,{children:(0,$.jsx)(Ce.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ir.displayName=N.RadioItem.displayName;var sr=ne.forwardRef(({className:e,inset:t,...o},r)=>(0,$.jsx)(N.Label,{ref:r,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));sr.displayName=N.Label.displayName;var lr=ne.forwardRef(({className:e,...t},o)=>(0,$.jsx)(N.Separator,{ref:o,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));lr.displayName=N.Separator.displayName;var dr=({className:e,...t})=>(0,$.jsx)("span",{className:p("ml-auto text-xs tracking-widest opacity-60",e),...t});dr.displayName="DropdownMenuShortcut";function lo({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:s="700px",gridCols:a=6}){let i=o.find(n=>n.value===e);return(0,kt.jsxs)(zt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,kt.jsx)("div",{className:"hidden md:block",children:(0,kt.jsx)(oo,{value:e,onValueChange:t,children:(0,kt.jsx)(ro,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,kt.jsx)(zt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,kt.jsx)(ao,{value:n.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,kt.jsx)("div",{className:"md:hidden",children:(0,kt.jsxs)(no,{children:[(0,kt.jsx)(io,{asChild:!0,children:(0,kt.jsxs)(E,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[i?.label||"Select",(0,kt.jsx)(J.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,kt.jsx)(dt,{align:"center",className:"w-[180px]",children:o.map(n=>(0,kt.jsx)(ct,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function Pe({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:s=!0,className:a}){return(0,kt.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${a||""}`,children:[s&&(0,kt.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,kt.jsx)("div",{className:"col-span-6",children:"Name"}),(0,kt.jsx)("div",{className:"col-span-2",children:"Size"}),(0,kt.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,kt.jsx)("div",{className:"divide-y",children:e.map(i=>(0,kt.jsxs)(zt.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(i),children:[(0,kt.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,kt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:i.icon}),(0,kt.jsx)("div",{children:(0,kt.jsx)("p",{className:"font-medium",children:i.name})})]}),(0,kt.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:i.size}),(0,kt.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,kt.jsx)("span",{className:"text-sm md:text-base",children:i.modified}),(0,kt.jsxs)("div",{className:"flex gap-1",children:[(0,kt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:n=>{n.stopPropagation(),o?.(i)},children:(0,kt.jsx)(J.Edit,{className:"h-4 w-4"})}),(0,kt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:n=>{n.stopPropagation(),r?.(i)},children:(0,kt.jsx)(J.Trash2,{className:"h-4 w-4"})}),(0,kt.jsx)(E,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,kt.jsx)(J.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},i.name))})]})}function pt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:s,compactView:a=!1,className:i}){let[n,f]=(0,Jt.useState)(e),[P,C]=(0,Jt.useState)(""),[T,z]=(0,Jt.useState)("all"),[d,D]=(0,Jt.useState)("all"),b=Array.from(new Set(n.map(w=>w.app))),v=n.filter(w=>{let W=w.name.toLowerCase().includes(P.toLowerCase()),O=T==="all"||w.app===T;return W&&O}),I=v.slice(0,10),H=v.filter(w=>w.shared),m=()=>{console.log("Add file clicked")},h=w=>{console.log("Edit file:",w.name),o?.(w)},R=w=>{f(W=>W.filter(O=>O.name!==w.name)),r?.(w.name)},S=w=>{console.log("File clicked:",w.name),s?.(w)},ee=()=>{C(""),z("all")};return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,kt.jsx)(zt.AnimatePresence,{mode:"wait",children:(0,kt.jsx)(zt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,kt.jsxs)("div",{className:`space-y-6 ${i||""}`,children:[(0,kt.jsx)(ce,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-Jt-r from-blue-600 via-indigo-600 Jt-purple-600",primaryAction:{label:"Upload file",onClick:m},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,kt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,kt.jsxs)(re,{children:[(0,kt.jsxs)(be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,kt.jsx)(ve,{className:"text-sm font-medium",children:"Total Files"}),(0,kt.jsx)(J.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(ae,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:n.length}),(0,kt.jsxs)("p",{className:"text-xs text-muted-foreground",children:[n.filter(w=>w.shared).length," shared"]})]})]}),(0,kt.jsxs)(re,{children:[(0,kt.jsxs)(be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,kt.jsx)(ve,{className:"text-sm font-medium",children:"Storage Used"}),(0,kt.jsx)(J.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(ae,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,kt.jsxs)(re,{children:[(0,kt.jsxs)(be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,kt.jsx)(ve,{className:"text-sm font-medium",children:"Recent Activity"}),(0,kt.jsx)(J.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(ae,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,kt.jsx)(re,{children:(0,kt.jsx)(ae,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(J.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(Z,{placeholder:"Search files...",value:P,onChange:w=>C(w.target.value),className:"pl-9"})]})}),(0,kt.jsxs)(Ke,{value:T,onValueChange:z,children:[(0,kt.jsx)(Te,{className:"w-full md:w-[180px]",children:(0,kt.jsx)(je,{placeholder:"Filter by app"})}),(0,kt.jsxs)(Me,{children:[(0,kt.jsx)(pe,{value:"all",children:"All Apps"}),b.map(w=>(0,kt.jsx)(pe,{value:w,children:w},w))]})]}),(P||T!=="all")&&(0,kt.jsxs)(E,{variant:"outline",onClick:ee,className:"gap-2",children:[(0,kt.jsx)(J.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,kt.jsxs)("div",{className:"space-y-4",children:[(0,kt.jsx)(lo,{activeTab:d,onTabChange:D,tabOptions:[{value:"all",label:`All Files (${v.length})`},{value:"recent",label:`Recent (${I.length})`},{value:"shared",label:`Shared (${H.length})`}],maxWidth:"500px",gridCols:3}),d==="all"&&(0,kt.jsx)(Pe,{files:v,onFileClick:S,onFileEdit:h,onFileDelete:R,showHeader:!a}),d==="recent"&&(0,kt.jsx)(Pe,{files:I,onFileClick:S,onFileEdit:h,onFileDelete:R,showHeader:!a}),d==="shared"&&(0,kt.jsx)(Pe,{files:H,onFileClick:S,onFileEdit:h,onFileDelete:R,showHeader:!a})]}),v.length===0&&(0,kt.jsx)(re,{children:(0,kt.jsx)(ae,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(J.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:P||T!=="all"?"Try adjusting your filters Jt see more results.":"Get started by uploading your first file."}),(0,kt.jsxs)(E,{onClick:m,className:"gap-2",children:[(0,kt.jsx)(J.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../chunk-
|
|
1
|
+
import{a as r}from"../../chunk-VR5WOPRD.mjs";import{a as t}from"../../chunk-FV3W3WL7.mjs";import{a as e}from"../../chunk-3U3PZBHQ.mjs";import{a as f}from"../../chunk-FRKGQKEM.mjs";import{a}from"../../chunk-MNI6AM7Q.mjs";import{a as o}from"../../chunk-ATIEKI6M.mjs";import"../../chunk-LW4QFIFR.mjs";import"../../chunk-553B5H2H.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{e as FileList,t as FileView,o as KnowledgeBrowser,r as KnowledgeView,a as TeamCard,f as TeamsIndexView};
|