cortex-react-components 2.28.4 → 2.29.0-beta.2
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-KY3ELFX5.mjs → chunk-2FHOBKU5.mjs} +1 -1
- package/dist/{chunk-UENQZNU3.mjs → chunk-2ZBHHV3P.mjs} +1 -1
- package/dist/{chunk-R4SE63GR.mjs → chunk-3W5SE2HO.mjs} +1 -1
- package/dist/{chunk-RUZVSK25.mjs → chunk-4AACW32B.mjs} +1 -1
- package/dist/{chunk-2TUBS2HM.mjs → chunk-4DESBE4R.mjs} +1 -1
- package/dist/{chunk-HD6E7KI2.mjs → chunk-4KVVVRGU.mjs} +1 -1
- package/dist/{chunk-COBOHCBL.mjs → chunk-5G7LCLOY.mjs} +1 -1
- package/dist/{chunk-QOZ2O3FG.mjs → chunk-5WTGNFUL.mjs} +1 -1
- package/dist/{chunk-CK2TD4BY.mjs → chunk-6A2O63AU.mjs} +1 -1
- package/dist/{chunk-VGWDYD6Z.mjs → chunk-6LJCQVKZ.mjs} +1 -1
- package/dist/{chunk-TKY52BNP.mjs → chunk-7HIL4GBK.mjs} +1 -1
- package/dist/{chunk-CTAIR3TE.mjs → chunk-7HLSAUWP.mjs} +1 -1
- package/dist/{chunk-DMCFEJ2C.mjs → chunk-7YSJAVXO.mjs} +1 -1
- package/dist/{chunk-MS7YIAWP.mjs → chunk-ABWLO5GA.mjs} +1 -1
- package/dist/{chunk-CNLALZ24.mjs → chunk-AGKZDANI.mjs} +1 -1
- package/dist/{chunk-75XBZHOC.mjs → chunk-AJ7A2ZQ3.mjs} +1 -1
- package/dist/chunk-AKQARBH3.mjs +4 -0
- package/dist/{chunk-LLED3RQS.mjs → chunk-BQJDTDBP.mjs} +1 -1
- package/dist/{chunk-UJW3KUW3.mjs → chunk-BXHRPSV4.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-CGL3R3BQ.mjs} +1 -1
- package/dist/{chunk-2VOOH4YJ.mjs → chunk-CKJEMPZR.mjs} +1 -1
- package/dist/{chunk-SNFBF6KT.mjs → chunk-CLMGLIGH.mjs} +1 -1
- package/dist/{chunk-4IVQWIYV.mjs → chunk-CTQADMXV.mjs} +1 -1
- package/dist/{chunk-SNTLCFXF.mjs → chunk-DDQVEARQ.mjs} +1 -1
- package/dist/chunk-DHYTERFI.mjs +4 -0
- package/dist/{chunk-FJ2HHNPX.mjs → chunk-DLX4NQ3T.mjs} +1 -1
- package/dist/{chunk-Q7KKN6MH.mjs → chunk-DNZWIOML.mjs} +1 -1
- package/dist/{chunk-QWFFSMKK.mjs → chunk-E4QGOITF.mjs} +1 -1
- package/dist/{chunk-LQASBVUG.mjs → chunk-EDTWODQF.mjs} +1 -1
- package/dist/{chunk-SX2LOHXX.mjs → chunk-FNOAYUJ3.mjs} +1 -1
- package/dist/{chunk-46N4YPMB.mjs → chunk-FOO5RONL.mjs} +1 -1
- package/dist/{chunk-CO6AQNZ5.mjs → chunk-G53ROINJ.mjs} +1 -1
- package/dist/{chunk-5EKGFFJD.mjs → chunk-G5UB3YKZ.mjs} +1 -1
- package/dist/{chunk-QKDYTCZC.mjs → chunk-GFYO6B7H.mjs} +1 -1
- package/dist/{chunk-NSMXJCXE.mjs → chunk-GLKM2IVW.mjs} +1 -1
- package/dist/{chunk-4USR4WTH.mjs → chunk-GMLLRSAH.mjs} +1 -1
- package/dist/{chunk-FX6IXEMQ.mjs → chunk-GPXPR7VT.mjs} +1 -1
- package/dist/{chunk-Z22NSJMF.mjs → chunk-HF33ZXKX.mjs} +1 -1
- package/dist/{chunk-EOXVYLPB.mjs → chunk-HFND7WDK.mjs} +1 -1
- package/dist/{chunk-K4MFTVNB.mjs → chunk-HOKWKEDE.mjs} +1 -1
- package/dist/{chunk-57PJ7CHJ.mjs → chunk-I75BFMO7.mjs} +1 -1
- package/dist/{chunk-MXMW65GM.mjs → chunk-IKVDX3WJ.mjs} +1 -1
- package/dist/{chunk-TUACRDU3.mjs → chunk-IXCX7SAL.mjs} +1 -1
- package/dist/{chunk-MCOHKE2T.mjs → chunk-JGKLAY6J.mjs} +1 -1
- package/dist/{chunk-VBSFVJM5.mjs → chunk-JJSIBEFX.mjs} +1 -1
- package/dist/{chunk-6XUIHSKG.mjs → chunk-JKVQOOCZ.mjs} +1 -1
- package/dist/{chunk-NCJAMNMQ.mjs → chunk-K7NFBXL3.mjs} +1 -1
- package/dist/{chunk-GJHJUG72.mjs → chunk-KGFSSFVZ.mjs} +1 -1
- package/dist/{chunk-3M5KHST3.mjs → chunk-KHJKOKJN.mjs} +1 -1
- package/dist/{chunk-6YHCNPFB.mjs → chunk-KOLP657S.mjs} +1 -1
- package/dist/{chunk-JDMIQLAZ.mjs → chunk-KSYES4GX.mjs} +1 -1
- package/dist/{chunk-AOQPH32M.mjs → chunk-LCHPGIER.mjs} +1 -1
- package/dist/{chunk-KX2NCNCS.mjs → chunk-LF55USCD.mjs} +1 -1
- package/dist/{chunk-B2TBKNIJ.mjs → chunk-LFXMB6YE.mjs} +1 -1
- package/dist/{chunk-6ZMZX5TB.mjs → chunk-LL7CRB4U.mjs} +1 -1
- package/dist/{chunk-VRHJOUL3.mjs → chunk-LMDGHBG2.mjs} +1 -1
- package/dist/{chunk-MH4YPGH4.mjs → chunk-LPCO4T25.mjs} +1 -1
- package/dist/{chunk-KPTGYVDM.mjs → chunk-MQG7MKTK.mjs} +1 -1
- package/dist/{chunk-TZKQXT7Y.mjs → chunk-N25B5TQ5.mjs} +1 -1
- package/dist/{chunk-U3PUWUVM.mjs → chunk-NCHC4HCU.mjs} +1 -1
- package/dist/{chunk-M2REXGQW.mjs → chunk-PKI57UXP.mjs} +1 -1
- package/dist/{chunk-LCSO56PM.mjs → chunk-PQYMYQXD.mjs} +1 -1
- package/dist/{chunk-56X4PU43.mjs → chunk-Q35D7SUU.mjs} +1 -1
- package/dist/{chunk-2R3MJSQ7.mjs → chunk-QHIZOLWH.mjs} +1 -1
- package/dist/{chunk-P2B3OITE.mjs → chunk-R422HRMQ.mjs} +1 -1
- package/dist/{chunk-6DQ7FEQQ.mjs → chunk-R7YCUNIS.mjs} +1 -1
- package/dist/{chunk-NPGGDQ6F.mjs → chunk-RKLOWJVN.mjs} +1 -1
- package/dist/{chunk-F6DMXMR4.mjs → chunk-S3OBSLA5.mjs} +1 -1
- package/dist/{chunk-D6PIOACL.mjs → chunk-S3R55V74.mjs} +1 -1
- package/dist/{chunk-NHEG5ZJ6.mjs → chunk-S4CCJK44.mjs} +1 -1
- package/dist/{chunk-6SWKEZN6.mjs → chunk-S7SHOCHM.mjs} +1 -1
- package/dist/{chunk-SPAOEUCG.mjs → chunk-SG5BHIQF.mjs} +1 -1
- package/dist/{chunk-53ERRCTV.mjs → chunk-SKTNOZL2.mjs} +1 -1
- package/dist/{chunk-EZC3YWSQ.mjs → chunk-SRCJSWQF.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-LCEEFZH7.mjs → chunk-SRXU4X35.mjs} +1 -1
- package/dist/{chunk-6PS55VJZ.mjs → chunk-T46EPXCV.mjs} +1 -1
- package/dist/{chunk-LJFBHY4P.mjs → chunk-TBKC2B4Z.mjs} +1 -1
- package/dist/{chunk-TR6RBROH.mjs → chunk-U3OEUDKT.mjs} +1 -1
- package/dist/{chunk-47OE4ZPY.mjs → chunk-UE66RIJN.mjs} +1 -1
- package/dist/{chunk-ZHBYZ4HE.mjs → chunk-UW65QW5M.mjs} +1 -1
- package/dist/{chunk-MUHR5KA5.mjs → chunk-UXSJRXJQ.mjs} +1 -1
- package/dist/{chunk-XGGWZIPM.mjs → chunk-V4OXGW5U.mjs} +1 -1
- package/dist/{chunk-2HWSTGAP.mjs → chunk-VKUF2Y5T.mjs} +1 -1
- package/dist/{chunk-HSQAHQNP.mjs → chunk-W7QAGMX7.mjs} +1 -1
- package/dist/{chunk-2LINLX4S.mjs → chunk-WHOWQZV6.mjs} +1 -1
- package/dist/{chunk-MU5WPW4N.mjs → chunk-WPH2ALD6.mjs} +1 -1
- package/dist/{chunk-2UNIT7NC.mjs → chunk-XSPGO55P.mjs} +1 -1
- package/dist/{chunk-RS4WAAGI.mjs → chunk-XTUH2DJE.mjs} +1 -1
- package/dist/{chunk-FSCDCSVK.mjs → chunk-YCD46AKJ.mjs} +1 -1
- package/dist/{chunk-GS3P2V76.mjs → chunk-YONYS5B2.mjs} +1 -1
- package/dist/{chunk-6NIVIZQB.mjs → chunk-YZDNY3K4.mjs} +1 -1
- package/dist/{chunk-N52FSTLG.mjs → chunk-Z5W2WY26.mjs} +1 -1
- package/dist/{chunk-E6NVWHRS.mjs → chunk-ZERDRART.mjs} +1 -1
- package/dist/{chunk-FRXZ2OKW.mjs → chunk-ZGDSCGLC.mjs} +1 -1
- package/dist/{chunk-S4ES6P3Y.mjs → chunk-ZI77NERP.mjs} +1 -1
- package/dist/{chunk-X3YJJBFJ.mjs → chunk-ZKTIH47I.mjs} +1 -1
- package/dist/{chunk-CLGBBNRB.mjs → chunk-ZW24FGHA.mjs} +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
- package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
- package/dist/components/AdvancedComponents/user-selection.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/CogeBoard.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/capability-menu.mjs +1 -1
- package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
- package/dist/components/DigitalColleagues/team-form.mjs +1 -1
- package/dist/components/Foundary/DashboardHeader.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/LandingMenu.mjs +1 -1
- package/dist/components/Foundary/Login.mjs +1 -1
- package/dist/components/Foundary/MainPage.js +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/SearchableSelect.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/colleague-card.mjs +1 -1
- package/dist/components/Foundary/colleague-form.mjs +1 -1
- package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/file-edit.mjs +1 -1
- package/dist/components/Foundary/foundary-clone.mjs +1 -1
- package/dist/components/Foundary/foundary-layout.mjs +1 -1
- package/dist/components/Foundary/foundary-options.mjs +1 -1
- package/dist/components/Foundary/index.js +4 -4
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/knowledge-search.mjs +1 -1
- package/dist/components/HeaderFooter/Header.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.js +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/enhanced-header.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
- package/dist/components/Heros/DashboardHero/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/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +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/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/EpicsView.mjs +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/TeamSwitcher.mjs +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/Projects/project-card.mjs +1 -1
- package/dist/components/Projects/team-card.mjs +1 -1
- package/dist/components/dc-temp/creative.mjs +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +29 -29
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/carousel.css +1 -0
- package/dist/components/ui/carousel.d.ts +20 -0
- package/dist/components/ui/carousel.js +4 -0
- package/dist/components/ui/carousel.mjs +2 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/decorators/Intranet.css +1 -0
- package/dist/decorators/Intranet.d.ts +7 -0
- package/dist/decorators/Intranet.js +4 -0
- package/dist/decorators/Intranet.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/index.js +37 -37
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.js +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.js +2 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.js +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/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.js +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +3 -1
- package/dist/chunk-WUA65ZZB.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as l}from"./chunk-
|
|
4
|
+
import{f as l}from"./chunk-ZGDSCGLC.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-VRE6VCHX.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{
|
|
4
|
+
import{a as s,b as i,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{b as t}from"./chunk-ZUA4KNIR.mjs";import{User as m,Bot as c,ChevronLeft as v,Users as p}from"lucide-react";import{motion as r,AnimatePresence as g}from"motion/react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({onSelectHuman:n,onSelectDigital:d,onCancel:u}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(g,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:u,className:"gap-2",children:[e(v,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Add Human Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Browse existing users"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Import user details automatically"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Select User"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(s,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:d,children:[a(i,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:e(c,{className:"h-8 w-8 text-purple-600"})}),e(l,{className:"text-xl",children:"Add Digital Colleague"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(c,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Clone existing colleagues"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(p,{className:"h-4 w-4 text-purple-600"}),e("span",{children:"Create from templates"})]})]}),e(t,{className:"mt-6 w-full",onClick:d,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as F}from"./chunk-6QERRKM4.mjs";import{a as H}from"./chunk-VSU7LYXZ.mjs";import{b as E,c as S}from"./chunk-RKS7CWAP.mjs";import{b as _}from"./chunk-BZEGLKRZ.mjs";import{a as U}from"./chunk-IPRG56MW.mjs";import{a as j,b as B,c as J,d as z,e as G}from"./chunk-HFEN3KJC.mjs";import{a as $}from"./chunk-L2UJOICL.mjs";import{a as
|
|
1
|
+
import{a as L}from"./chunk-T3F3RQIC.mjs";import{a as P}from"./chunk-UP67R64J.mjs";import{a as F}from"./chunk-6QERRKM4.mjs";import{a as H}from"./chunk-VSU7LYXZ.mjs";import{b as E,c as S}from"./chunk-RKS7CWAP.mjs";import{b as _}from"./chunk-BZEGLKRZ.mjs";import{a as U}from"./chunk-IPRG56MW.mjs";import{a as j,b as B,c as J,d as z,e as G}from"./chunk-HFEN3KJC.mjs";import{a as $}from"./chunk-L2UJOICL.mjs";import{a as f,b as p,i as u,j as g}from"./chunk-OCPX4QPC.mjs";import{a as I,b as A,c as R,d as O}from"./chunk-KY7WQYN4.mjs";import{a as y}from"./chunk-MDJREBVI.mjs";import{useLexicalComposerContext as he}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{$insertNodeToNearestRoot as Ce,mergeRegister as X}from"@payloadcms/richtext-lexical/lexical/utils";import{$createParagraphNode as ke,$getPreviousSelection as ve,$getRoot as Ne,$getSelection as k,$isParagraphNode as Y,$isRangeSelection as v,CAN_REDO_COMMAND as Te,CAN_UNDO_COMMAND as De,COMMAND_PRIORITY_EDITOR as Me,FORMAT_ELEMENT_COMMAND as m,FORMAT_TEXT_COMMAND as c,SELECTION_CHANGE_COMMAND as xe,UNDO_COMMAND as q}from"@payloadcms/richtext-lexical/lexical";import{$setBlocksType as K}from"@payloadcms/richtext-lexical/lexical/selection";import{INSERT_ORDERED_LIST_COMMAND as we,INSERT_UNORDERED_LIST_COMMAND as ye}from"@payloadcms/richtext-lexical/lexical/list";import{AlignCenter as Ie,AlignJustify as Ae,AlignLeft as Re,AlignRight as Oe,ChevronDown as N,ImageUp as _e,List as Ee,ListOrdered as Se,Plus as Ue,RotateCcw as $e,RotateCw as He}from"lucide-react";import{Fragment as Le,useCallback as Pe,useEffect as Fe,useRef as je,useState as s}from"react";import{$createHeadingNode as Be}from"@payloadcms/richtext-lexical/lexical/rich-text";import{jsx as o,jsxs as a}from"react/jsx-runtime";var T=1;function Je(){return o("span",{className:"border border-[#222222]"})}function ze(){let[t]=he(),Q=je(null),[V,W]=s(!1),[Z,ee]=s(!1),[oe,te]=s(!1),[ie,ne]=s(!1),[ae,se]=s(!1),[re,ce]=s(!1),[le,de]=s(!1),[fe,pe]=s(!1),[D,M]=s(!1),[x,ue]=s("left"),[w,ge]=s("p"),l=e=>{t.update(()=>{let i=k();v(i)&&(e==="p"?K(i,()=>ke()):K(i,()=>Be(e)))})},b=Pe(()=>{let e=k();if(v(e)){te(e.hasFormat("bold")),ne(e.hasFormat("italic")),se(e.hasFormat("underline")),ce(e.hasFormat("strikethrough")),de(e.hasFormat("subscript")),pe(e.hasFormat("superscript"));let i=e.anchor.getNode(),n=i;for(;n&&!Y(n)&&n!==Ne();){let r=n.getParent();r&&(n=r)}if(n){let r=n.getFormatType();ue(r||"left")}let d=i.getTopLevelElement()?.__tag;ge(d||"p")}},[]);Fe(()=>X(t.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),t.registerCommand(xe,(e,i)=>(b(),!1),T),t.registerCommand(De,e=>(W(e),!1),T),t.registerCommand(Te,e=>(ee(e),!1),T),X(t.registerCommand(E,e=>(t.update(()=>{let i=k()||ve();if(v(i)){let n=_({id:e.id,fields:e.fields,relationTo:e.relationTo,value:e.value}),{focus:d}=i,r=d.getNode();Ce(n),Y(r)&&!r.__first&&r.remove()}}),!0),Me))),[t,b]);let me=[[{label:"Undo",icon:o($e,{width:15,height:15}),onClick:()=>{t.dispatchCommand(q,void 0)},disabled:!V},{label:"Redo",icon:o(He,{width:15,height:15}),onClick:()=>{t.dispatchCommand(q,void 0)},disabled:!Z}],[{label:"Bold",icon:o(U,{}),onClick:()=>{t.dispatchCommand(c,"bold")},value:"bold",active:oe},{label:"Italic",icon:o($,{}),onClick:()=>{t.dispatchCommand(c,"italic")},value:"italic",active:ie},{label:"Underline",icon:o(H,{}),onClick:()=>{t.dispatchCommand(c,"underline")},value:"underline",active:ae},{label:"Strikethrough",icon:o(L,{}),onClick:()=>{t.dispatchCommand(c,"strikethrough")},value:"strikethrough",active:re},{label:"Subscript",icon:o(P,{}),onClick:()=>{t.dispatchCommand(c,"subscript")},value:"subscript",active:le},{label:"Superscript",icon:o(F,{}),onClick:()=>{t.dispatchCommand(c,"superscript")},value:"superscript",active:fe}]],h=[{label:"Left Align",direction:"left",icon:o(Re,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"left")}},{label:"Center Align",direction:"center",icon:o(Ie,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"center")}},{label:"Right Align",direction:"right",icon:o(Oe,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"right")}},{label:"Justify Align",direction:"justify",icon:o(Ae,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"justify")}}],C=[{label:"Normal Text",value:"p",icon:o(j,{}),onClick:()=>l("p")},{label:"Heading 1",value:"h1",icon:o(B,{}),onClick:()=>l("h1")},{label:"Heading 2",value:"h2",icon:o(J,{}),onClick:()=>l("h2")},{label:"Heading 3",value:"h3",icon:o(z,{}),onClick:()=>l("h3")},{label:"Heading 4",value:"h4",icon:o(G,{}),onClick:()=>l("h4")},...[{label:"Unordered List",value:"ul",icon:o(Ee,{width:15,height:15}),onClick:()=>{t.dispatchCommand(ye,void 0)}},{label:"Ordered List",value:"ol",icon:o(Se,{width:15,height:15}),onClick:()=>{t.dispatchCommand(we,void 0)}}]],be=[{label:"Insert Image",icon:o(_e,{width:15,height:15}),onClick:()=>{M(!0)},disabled:!1}];return o("div",{className:"flex justify-between border border-[#222222] py-2 px-2 sticky top-0 bg-black z-50",children:a("div",{className:"flex gap-2 ",ref:Q,children:[me.map((e,i)=>a(Le,{children:[o("div",{className:"flex items-center gap-2",children:e.map((n,d)=>o("div",{role:"button","aria-disabled":n.disabled||!1,onClick:n.onClick,className:y("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",n.active&&"bg-[#3c3c3c]"),"aria-label":n.label,children:o(I,{children:a(A,{children:[o(R,{className:"text-[#b5b5b5]",children:n.icon}),o(O,{children:o("p",{children:n.label})})]})})},d))}),o(Je,{})]},`toolbar-option-${e.length}-${i}`)),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[h.find(e=>e.direction===x)?.icon,h.find(e=>e.direction===x)?.label,o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:h.map((e,i)=>a(g,{onClick:e.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},`${e.label}-${i}`))})]}),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[C.find(e=>e.value===w)?.icon,C.find(e=>e.value===w)?.label,o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:C.map((e,i)=>a(g,{onClick:e.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},`heading-option-${e.label}-${i}`))})]}),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[o(Ue,{width:15,height:15}),o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:be.map((e,i)=>a(g,{onClick:e.onClick,disabled:e.disabled,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},i))})]}),D&&o(S,{activeEditor:t,onClose:()=>{M(!1)},isOpen:D})]})})}export{ze as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as q}from"./chunk-KZCIHFTM.mjs";import{a as J}from"./chunk-DLX4NQ3T.mjs";import{a as S}from"./chunk-KG7HG2VO.mjs";import{a as Q}from"./chunk-L3V5YDPH.mjs";import{a as G}from"./chunk-QC2UWZWL.mjs";import{a as V}from"./chunk-HF33ZXKX.mjs";import{a as w}from"./chunk-UVHMI3PU.mjs";import{b as z}from"./chunk-CSBGSBEU.mjs";import Te,{useEffect as c,useState as n,useRef as l}from"react";import{jsx as a,jsxs as v}from"react/jsx-runtime";var Ne=({initialTasks:p=[],initialEpics:T=[],initialSprints:h=[],initialUsers:he=[],initialColleagues:A=[],initialProjects:Ae=[],onAddTask:W,onUpdateTask:D,onDeleteTask:x,onTaskClick:X,onAddEpic:Y,onAddComment:Z,onUploadFile:_,onDeleteFile:ee,onFileUpdate:te})=>{let[se,u]=n([]),[d,y]=n([]),[O,ie]=n([]),[H,N]=n(!1),[P,U]=n(!1),[r,m]=n(null),[C,I]=n(null),[ae,De]=n([]),[M,ne]=n([]),[g,B]=n(0),o=l(null),re=l(null),oe=Te.useMemo(()=>[...d.map(e=>e.id),0],[d]),j=l(""),F=l(""),R=l(""),$=l(""),f=(e,t)=>e.map(s=>`${s.id}-${new Date(s.createdAt).getTime()}-${new Date(s.updatedAt).getTime()}`).join("-")+(t?`-${t}`:"");c(()=>{let e=p.map(s=>s.files?.filter(i=>typeof i=="object").map(i=>new Date(i.updatedAt).getTime())).flat(),t=f(p,e.join("-"));t!==j.current&&(u(p),r&&m(p.find(s=>s.id===r.id)||null),j.current=t)},[p]),c(()=>{let e=f(T);e!==F.current&&(y(T),F.current=e)},[T]),c(()=>{let e=f(h);e!==R.current&&(ie(h),R.current=e)},[h]),c(()=>{let e=f(A.map(t=>({id:t.id,updatedAt:t.updatedAt,createdAt:t.createdAt})));e!==$.current&&(ne(A),$.current=e)},[A]),c(()=>{let e=()=>{if(o.current){let i=o.current.offsetHeight;B(i)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),c(()=>{let e=setTimeout(()=>{o.current&&B(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[H,P]);let de=se.filter(e=>!0),ce=e=>de.filter(t=>t.status===e),le=e=>{let t={};return d.forEach(s=>{t[s.id]=e.filter(i=>w(i.epic)===s.id)}),t["no-epic"]=e.filter(s=>!w(s.epic)),t},K=e=>{I(e)},pe=e=>{C&&(u(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),D?.(C.id.toString(),{status:e}),I(null))},ue=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};u(s=>[...s,t]),W?.(e)},me=async(e,t)=>{u(s=>s.map(i=>i.id===Number(e)?{...i,...t}:i)),D&&await D(e,t),r?.id===Number(e)&&m(s=>({...s,...t}))},ge=async e=>{u(t=>t.filter(s=>s.id!==Number(e))),r?.id===Number(e)&&m(null),x&&await x(e)},fe=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};y(s=>[...s,t]),Y?.(e)},L=e=>{m(e),X?.(e)},ke=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],ve=g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)";return v("div",{ref:re,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[a("div",{ref:o,className:"flex-shrink-0",children:a(V,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>U(!0)}})}),a("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:ke.map(e=>{let t=ce(e.status),s=le(t);return v(q,{title:e.title,status:e.status,taskCount:t.length,onDrop:pe,isCompact:e.status==="done",height:ve,children:[s["no-epic"].map(i=>a(S,{epic:null,task:i,onDragStart:K,onTaskClick:L,isCompact:e.status==="done"},i.id)),oe.map(i=>{let E=d.find(k=>k.id===i),b=s[i]||[];return b.length===0?null:v("div",{className:"mb-6",children:[v("div",{className:"flex items-center gap-2 mb-3",children:[a("div",{className:`w-3 h-3 rounded-full ${E?.color}`}),a("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:E?.name||"No Epic"}),a(z,{variant:"secondary",className:"text-xs",children:b.length})]})," ",a("div",{className:"space-y-3",children:b.map(k=>a(S,{task:k,epic:E,onDragStart:K,onTaskClick:L,isCompact:e.status==="done"},k.id))})]},i)})]},e.id)})})})}),a(G,{isOpen:H,onClose:()=>N(!1),onAddTask:ue,assignees:[...M,...ae],epics:d,sprints:O}),a(Q,{isOpen:P,onClose:()=>U(!1),onAddEpic:fe}),r&&a(J,{isOpen:!!r,onClose:()=>m(null),initialTask:r,epics:d,sprints:O,onUpdateTask:me,onDeleteTask:ge,colleagues:M,onUploadFile:_,onDeleteFile:ee,onFileUpdate:te,onAddComment:Z})]})};export{Ne as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as l,b as u,i as v,j as o}from"./chunk-OCPX4QPC.mjs";import{
|
|
4
|
+
import{a as l,b as u,i as v,j as o}from"./chunk-OCPX4QPC.mjs";import{a as g,b as w,c as h}from"./chunk-SOLZ4VQH.mjs";import{b as x}from"./chunk-CSBGSBEU.mjs";import{a as p,b as c,e as f}from"./chunk-YO3GQYRJ.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{useState as k}from"react";import{MoreHorizontal as I,Mail as A,Settings as B,Trash2 as E,Edit as S,User as T,Bot as P}from"lucide-react";import{Fragment as $,jsx as e,jsxs as a}from"react/jsx-runtime";function Y({colleague:t,onEdit:N,onDelete:C,onViewDetails:M,showActions:D=!0,compact:n=!1,className:b}){let[m,y]=k(!1),z=s=>{switch(s){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},H=s=>{switch(s){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},F=s=>{if(!s)return"Never";let i=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return i<1?"Just now":i<60?`${i}m ago`:i<1440?`${Math.floor(i/60)}h ago`:`${Math.floor(i/1440)}d ago`};return a(p,{className:r("hover:shadow-md transition-shadow",n&&"p-2",b),children:[e(c,{className:r("pb-3",n&&"pb-2"),children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[e("div",{className:"relative",children:a(g,{className:r("h-12 w-12",n&&"h-8 w-8"),children:[e(w,{src:"/placeholder.svg",alt:t.name||"name"}),e(h,{children:t.name?.split(" ").map(s=>s[0]).join("")})]})}),a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2",children:[e("h3",{className:r("font-semibold text-sm truncate",n&&"text-xs"),children:t.name}),t.type==="digital"?e(P,{className:r("h-4 w-4 text-blue-500",n&&"h-3 w-3")}):e(T,{className:r("h-4 w-4 text-green-500",n&&"h-3 w-3")})]}),e("p",{className:r("text-sm text-muted-foreground truncate",n&&"text-xs")}),!n&&e("div",{className:"flex items-center gap-2 mt-1"})]})]}),D&&a(l,{children:[e(u,{asChild:!0,children:e(d,{variant:"ghost",size:"icon",className:r("h-8 w-8",n&&"h-6 w-6"),children:e(I,{className:r("h-4 w-4",n&&"h-3 w-3")})})}),a(v,{align:"end",children:[t.type==="digital"&&a($,{children:[a(o,{onClick:()=>M?.(t),children:[e(B,{className:"h-4 w-4 mr-2"}),"View Details"]}),a(o,{onClick:()=>N?.(t),children:[e(S,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),a(o,{onClick:()=>C?.(t.id.toString()),className:"text-destructive focus:text-destructive",children:[e(E,{className:"h-4 w-4 mr-2"}),t.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!n&&a(f,{className:"pt-0",children:[a("div",{className:"space-y-2 text-sm",children:[t.type==="human"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e(A,{className:"h-3 w-3"}),e("span",{className:"truncate",children:t.email})]}),t.type==="digital"&&e("div",{className:"flex items-center gap-2 text-muted-foreground",children:e("span",{children:t.description})})]}),t.type==="digital"&&e("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[t.capabilities?.slice(0,m?t.capabilities.length:2).map(s=>e(x,{variant:"outline",className:"text-xs",children:typeof s?.value=="number"?s?.value||"":s?.value?.name||""},typeof s?.value=="number"?s?.value||"":s?.value?.name||"")),(t.capabilities?.length||0)>2&&e(d,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>y(!m),children:m?"Show less":`+${(t.capabilities?.length||0)-2} more`})]})})]})]})}export{Y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as R}from"./chunk-NPVUICIF.mjs";import{a as I}from"./chunk-INCYANPB.mjs";import{a as f}from"./chunk-FT3AE7L2.mjs";import{a as B,f as F,g as L,i as U}from"./chunk-3UMMMQEH.mjs";import{
|
|
4
|
+
import{c as R}from"./chunk-NPVUICIF.mjs";import{a as I}from"./chunk-INCYANPB.mjs";import{a as f}from"./chunk-FT3AE7L2.mjs";import{a as B,f as F,g as L,i as U}from"./chunk-3UMMMQEH.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as C}from"./chunk-L5JPAKPM.mjs";import{b as D}from"./chunk-ZUA4KNIR.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{a as A}from"./chunk-FLHDNCNY.mjs";import*as u from"react";import v from"next/link";import{ChevronDown as Y,Search as Z,Settings as _,X as $}from"lucide-react";import{Fragment as ee,jsx as t,jsxs as n}from"react/jsx-runtime";function be({items:x,isOpen:h,isMobile:l=!1,onClose:g,currentBusinessUnit:te=R[0],onBusinessUnitChange:E,onSearch:H,className:b,logo:P="/headerlogo.png",logoLink:j="/teams",appName:T="Nuvia",tagline:z="Collaboration Platform"}){let[N,K]=u.useState({}),[d,Q]=A("sidebar-favorites",{}),[y,S]=u.useState(null),[p,q]=u.useState(""),M=e=>{K(a=>({...a,[e]:!a[e]}))},ae=e=>{E?.(e)},O=()=>{p.trim()&&H?.(p.trim())},V=e=>{e.key==="Enter"&&(e.preventDefault(),O())},W=(e,a)=>{let s=d[e]||[],r=s.includes(a)?s.filter(i=>i!==a):s.concat(a);Q({...d,[e]:r})},c=e=>{if(!e.items||!e.maxItems||e.items.length<=e.maxItems)return e.items||[];let a=d[e.id]||[],s=e.items.filter(i=>a.includes(i.id)),r=e.items.filter(i=>!a.includes(i.id));return[...s,...r].slice(0,e.maxItems)},w=e=>e.maxItems&&e.items&&e.items.length>e.maxItems,X=x,G=e=>{let a=w(e),s=c(e),r=n(ee,{children:[n("div",{className:"flex items-center gap-3",children:[e.icon,t("span",{children:e.title})]}),e.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:e.badge}),e.items&&t(Y,{className:o("ml-2 h-4 w-4 transition-transform",N[e.title]?"rotate-180":"")})]}),i=o("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",e.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return e.url?t(v,{href:e.url,className:i,onClick:l?g:void 0,children:r}):t("button",{className:i,onClick:()=>e.items&&M(e.title),children:r})},J=()=>{let e=x.find(s=>s.id===y);if(!e||!e.items||!e.maxItems)return null;let a=d[e.id]||[];return t(B,{open:!!y,onOpenChange:s=>!s&&S(null),children:n(F,{className:"sm:max-w-md",children:[n(L,{children:[n(U,{children:["Manage ",e.title," Favorites"]}),n("p",{className:"text-sm text-muted-foreground",children:["Select up to ",e.maxItems," items to show in ",e.title.toLowerCase(),"."]})]}),t(f,{className:"max-h-96 pr-4",children:t("div",{className:"space-y-4",children:e.items.map(s=>n("div",{className:"flex items-center space-x-2",children:[t(I,{id:s.id,checked:a.includes(s.id),onCheckedChange:()=>W(e.id,s.id),disabled:!a.includes(s.id)&&a.length>=(e.maxItems||0)}),n("label",{htmlFor:s.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[s.title,s.badge&&t(m,{variant:"outline",className:"text-xs",children:s.badge})]})]},s.id))})})]})})},k=n("div",{className:"flex h-full flex-col bg-background",children:[n("div",{className:"flex items-center justify-between p-4",children:[n(v,{href:j,className:"flex items-center gap-3",children:[t("div",{className:"flex h-14 w-14 items-center justify-center",children:t("img",{src:P,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),n("div",{children:[t("h2",{className:"font-semibold",children:T}),t("p",{className:"text-xs text-muted-foreground",children:z})]})]}),l&&t(D,{variant:"ghost",size:"icon",onClick:g,children:t($,{className:"h-5 w-5"})})]}),t("div",{className:"px-3 py-2",children:n("div",{className:"relative",children:[t(Z,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(C,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:p,onChange:e=>q(e.target.value),onKeyPress:V})]})}),t(f,{className:"flex-1 px-3 py-2",children:t("div",{className:"space-y-1",children:X.map(e=>n("div",{className:"mb-1",children:[G(e),e.items&&N[e.title]&&n("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[c(e).map(a=>n(v,{href:a.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:l?g:void 0,children:[a.title,a.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:a.badge})]},a.id)),w(e)&&e.items&&e.items.length>c(e).length&&n("button",{onClick:()=>S(e.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",e.items.length-c(e).length," more available"]})]})]},e.id))})}),t("div",{className:"p-3",children:t("div",{className:"space-y-1",children:n("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[t(_,{className:"h-5 w-5"}),t("span",{children:"Settings"})]})})}),t(J,{})]});return l?t("div",{className:o("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",h?"translate-x-0":"-translate-x-full",b),children:k}):t("div",{className:o("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",h?"translate-x-0":"-translate-x-full",b),children:k})}export{be as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as s,i,j as t,m as l,n as d}from"./chunk-OCPX4QPC.mjs";import{b as
|
|
1
|
+
import{a as r,b as s,i,j as t,m as l,n as d}from"./chunk-OCPX4QPC.mjs";import{a as m,b as p,c}from"./chunk-SOLZ4VQH.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{Bell as g,Settings as h,User as b,Menu as v}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var k=({isRightSidebarOpen:f,onToggleRightSidebar:w,onToggleLeftSidebar:n,onToggleNotifications:u})=>e("header",{className:"border-b bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 z-50",children:e("div",{className:"container mx-auto px-6 py-4",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[n&&e(o,{variant:"ghost",size:"icon",className:"md:hidden",onClick:n,children:e(v,{className:"h-5 w-5"})}),e("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),a("div",{className:"flex items-center space-x-4",children:[a(o,{variant:"ghost",size:"icon",className:"relative",onClick:u,children:[e(g,{className:"h-5 w-5"}),e("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),a(r,{children:[e(s,{asChild:!0,children:e(o,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:a(m,{className:"h-10 w-10",children:[e(p,{src:"/avatars/01.png",alt:"@user"}),e(c,{children:"JD"})]})})}),a(i,{className:"w-56",align:"end",forceMount:!0,children:[e(l,{className:"font-normal",children:a("div",{className:"flex flex-col space-y-1",children:[e("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),e("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),e(d,{}),a(t,{children:[e(b,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),a(t,{children:[e(h,{className:"mr-2 h-4 w-4"}),e("span",{children:"Settings"})]})]})]})]})]})})});export{k as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as v,b as c,i as h,j as d}from"./chunk-OCPX4QPC.mjs";import{
|
|
4
|
+
import{a as v,b as c,i as h,j as d}from"./chunk-OCPX4QPC.mjs";import{a as N,b as u,c as g}from"./chunk-SOLZ4VQH.mjs";import{b as o}from"./chunk-CSBGSBEU.mjs";import{a as x,b as f,e as w}from"./chunk-YO3GQYRJ.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{useState as S}from"react";import{MoreHorizontal as T,Mail as E,Phone as $,MapPin as z,Clock as P,Settings as C,Trash2 as H,Edit as F,User as L,Bot as U}from"lucide-react";import{Fragment as y,jsx as t,jsxs as a}from"react/jsx-runtime";function X({colleague:e,onEdit:M,onDelete:D,onViewDetails:b,showActions:k=!0,compact:i=!1,className:B}){let[r,p]=S(!1),V=s=>{switch(s){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},A=s=>{switch(s){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},I=s=>{if(!s)return"Never";let m=Math.floor((new Date().getTime()-s.getTime())/(1e3*60));return m<1?"Just now":m<60?`${m}m ago`:m<1440?`${Math.floor(m/60)}h ago`:`${Math.floor(m/1440)}d ago`};return a(x,{className:n("hover:shadow-md transition-shadow",i&&"p-2",B),children:[t(f,{className:n("pb-3",i&&"pb-2"),children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t("div",{className:"relative",children:a(N,{className:n("h-12 w-12",i&&"h-8 w-8"),children:[t(u,{src:"/placeholder.svg",alt:e.name}),t(g,{children:e.name.split(" ").map(s=>s[0]).join("")})]})}),a("div",{className:"flex-1 min-w-0",children:[a("div",{className:"flex items-center gap-2",children:[t("h3",{className:n("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?t(U,{className:n("h-4 w-4 text-blue-500",i&&"h-3 w-3")}):t(L,{className:n("h-4 w-4 text-green-500",i&&"h-3 w-3")})]}),t("p",{className:n("text-sm text-muted-foreground truncate",i&&"text-xs"),children:e.type==="human"?e.role:e.description}),!i&&a("div",{className:"flex items-center gap-2 mt-1",children:[e.type==="human"&&t(o,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&a(o,{variant:"secondary",className:"text-xs",children:["v",e.version]}),t(o,{variant:"outline",className:"text-xs",children:A(e.status)})]})]})]}),k&&a(v,{children:[t(c,{asChild:!0,children:t(l,{variant:"ghost",size:"icon",className:n("h-8 w-8",i&&"h-6 w-6"),children:t(T,{className:n("h-4 w-4",i&&"h-3 w-3")})})}),a(h,{align:"end",children:[e.type==="digital"&&a(y,{children:[a(d,{onClick:()=>b?.(e),children:[t(C,{className:"h-4 w-4 mr-2"}),"View Details"]}),a(d,{onClick:()=>M?.(e),children:[t(F,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),a(d,{onClick:()=>D?.(e.id),className:"text-destructive focus:text-destructive",children:[t(H,{className:"h-4 w-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!i&&a(w,{className:"pt-0",children:[a("div",{className:"space-y-2 text-sm",children:[e.type==="human"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(E,{className:"h-3 w-3"}),t("span",{className:"truncate",children:e.email})]}),e.type==="human"&&a(y,{children:[e.phone&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t($,{className:"h-3 w-3"}),t("span",{children:e.phone})]}),e.location&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(z,{className:"h-3 w-3"}),t("span",{children:e.location})]})]}),e.type==="digital"&&a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(C,{className:"h-3 w-3"}),a("span",{children:["v",e.version]})]}),a("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t(P,{className:"h-3 w-3"}),a("span",{children:["Last active: ",I(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,r?e.skills.length:3).map(s=>t(o,{variant:"outline",className:"text-xs",children:s},s)),e.skills.length>3&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&t("div",{className:"mt-3",children:a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,r?e.capabilities.length:2).map(s=>t(o,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>2&&t(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>p(!r),children:r?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}export{X as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as s}from"./chunk-WISCWNL2.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{FaCircleCheck as m,FaAnglesRight as g}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u({title:n,description:d,features:t,price:l,duration:i,button:a}){return r("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[r("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[e("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:n}),e("p",{children:d})]}),e("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:r("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[t&&t.length>0&&e("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:t.map((p,c)=>r("li",{className:"flex items-start gap-3 lg:gap-4",children:[e("span",{className:"text-accent pt-1",children:e(m,{})}),e("span",{children:p})]},c))}),r("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[l&&l,e("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:i&&i})]}),a&&e("div",{className:"flex-none mr-0 sm:ml-auto",children:e(o,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:r(s,{href:a.href,openNewTab:a.openNewTab,children:[e("span",{className:"relative z-1",children:a.label}),e("span",{className:"relative z-1 pl-2",children:e(g,{})})]})})})]})})]})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-ZGDSCGLC.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as w,c as P}from"./chunk-5Y6FKL5W.mjs";import{a as H,b as k,c as I,d as R,e as B}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-SH5SK6V2.mjs";import{a as h,b as w,c as P}from"./chunk-5Y6FKL5W.mjs";import{a as H,b as k,c as I,d as R,e as B}from"./chunk-4DESBE4R.mjs";import{a as S,b as $,c as A,d as D}from"./chunk-G3BOVXUM.mjs";import{a as b}from"./chunk-EW6KWAHS.mjs";import{a as T}from"./chunk-MTA6RFZ7.mjs";import{a as y}from"./chunk-YPZAYXNQ.mjs";import{a as x}from"./chunk-RL6365DN.mjs";import{b as C}from"./chunk-CSBGSBEU.mjs";import{a as n,b as m,c,e as d}from"./chunk-YO3GQYRJ.mjs";import{b as u}from"./chunk-ZUA4KNIR.mjs";import{FileText as E,Image as L,File as U,Download as W,ExternalLink as F}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var M=i=>i.startsWith("image/")?t(L,{className:"h-4 w-4"}):i.startsWith("text/")?t(E,{className:"h-4 w-4"}):t(U,{className:"h-4 w-4"}),st=({message:i,addToolResult:p,status:v,messages:N})=>i.parts.map((a,s)=>{if(a.type==="text")return t(b,{children:a.text},`${s}`);if(a.type==="file"){let e=a;return t("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:o("div",{className:"flex items-center gap-2",children:[M(e.mediaType||"application/octet-stream"),t("div",{className:"flex-1 min-w-0",children:t("p",{className:"text-sm font-medium truncate",children:e.filename||e.url?.split("/").pop()||"File"})}),e.url&&t(u,{variant:"ghost",size:"sm",onClick:()=>window.open(e.url,"_blank"),className:"h-8 w-8 p-0",children:t(W,{className:"h-4 w-4"})})]})},s)}if(a.type.startsWith("tool-")){let e=a,l=a.type.replace("tool-","");if(a.type.startsWith("tool-dc_a2a"))return o(S,{name:e?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:v==="streaming"&&s===i.parts.length-1&&i.id===N.at(-1)?.id,children:[t($,{}),t(D,{children:e?.input?.query}),t(A,{children:e?.output})]},`${s}`);if(l==="task")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading task..."},s);case"output-available":return t("div",{className:"mb-2",children:t(x,{data:{id:e.output?.id||e.input?.id,fetchLatest:!1,taskData:e.output||e.input}})},s);case"output-error":return o("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}if(a.type==="tool-requestEndpointLogin")return t("div",{className:"mb-2",children:t(g,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-authenticate")return t("div",{className:"mb-2",children:t(g,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",e),t("div",{className:"mb-2",children:t(T,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(l==="artefact")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading artefact..."},s);case"output-available":return t("div",{className:"mb-2",children:t(y,{artefact:e.output?.description||"",taskId:e.output?.id||e.input?.id,taskData:e.output||e.input})},s);case"output-error":return o("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}return t("div",{className:"mb-2",children:o(n,{className:"w-full max-w-md",children:[t(m,{children:t(c,{className:"text-lg",children:l})}),o(d,{children:[e.state==="input-available"&&o("p",{className:"text-sm",children:["Processing ",l,"..."]}),e.state==="output-available"&&t("pre",{className:"text-sm",children:JSON.stringify(e.output,null,2)}),e.state==="output-error"&&o("p",{className:"text-sm text-red-500",children:["Error: ",e.errorText]})]})]})},s)}if(a.type.startsWith("data-")){let e=a,l=a.type.replace("data-","");return l==="reference"?t("div",{className:"mb-2",children:t(n,{className:"w-full",children:t(d,{className:"p-4",children:t("div",{className:"space-y-2",children:e.data?.references?.map((r,f)=>o("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[t(C,{variant:"outline",children:r.type||"link"}),o("div",{className:"flex-1 min-w-0",children:[t("p",{className:"text-sm font-medium truncate",children:r.title}),r.description&&t("p",{className:"text-xs text-muted-foreground truncate",children:r.description})]}),r.url&&t(u,{variant:"ghost",size:"sm",onClick:()=>window.open(r.url,"_blank"),className:"h-8 w-8 p-0",children:t(F,{className:"h-4 w-4"})})]},f))})})})},s):l==="menu"?t("div",{className:"mb-2",children:o(n,{className:"w-full",children:[t(m,{children:t(c,{className:"text-lg",children:e.data?.title})}),t(d,{children:t("div",{className:"space-y-2",children:e.data?.items?.map((r,f)=>t(u,{variant:"outline",className:"w-full justify-start",onClick:r.action,children:o("div",{className:"text-left",children:[t("p",{className:"font-medium",children:r.label}),r.description&&t("p",{className:"text-xs text-muted-foreground",children:r.description})]})},f))})})]})},s):t("div",{className:"mb-2",children:o(n,{className:"w-full max-w-md",children:[t(m,{children:t(c,{className:"text-lg",children:l})}),t(d,{children:t("pre",{className:"text-sm",children:JSON.stringify(e.data,null,2)})})]})},s)}if(a.type==="reasoning")return o(h,{className:"w-full",isStreaming:v==="streaming"&&s===i.parts.length-1&&i.id===N.at(-1)?.id,children:[t(w,{}),t(P,{children:a.text})]},`${s}`);if(a.type==="dynamic-tool")return o(H,{defaultOpen:a.state!=="output-available",children:[t(k,{type:`tool-${a.toolName}`,state:a.state}),o(I,{children:[t(R,{input:a.input}),t(B,{output:a.output,errorText:a.errorText})]})]},`${i.id}-${s}`)});export{st as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d}from"./chunk-
|
|
4
|
+
import{a as d}from"./chunk-TBKC2B4Z.mjs";import{a as D}from"./chunk-DCOFQFVJ.mjs";import{a as T}from"./chunk-HF33ZXKX.mjs";import{a as x}from"./chunk-GLZEHRPY.mjs";import{a as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{a as A}from"./chunk-L5JPAKPM.mjs";import{b as F}from"./chunk-ZUA4KNIR.mjs";import{useEffect as V,useRef as j,useState as o}from"react";import{Plus as z,Search as G,File as W,Filter as q}from"lucide-react";import{motion as J,AnimatePresence as K}from"motion/react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function Q({initialFiles:n=[],onFileAdd:k,onFileEdit:E,onFileDelete:S,onFileClick:H,onFileUpdate:c,compactView:m=!1,className:$}){let[I,h]=o(n),[s,v]=o(""),[y,O]=o("all"),[r,P]=o("all"),[B,C]=o(!1),b=j(""),M=l=>l.map(t=>`${t.id}-${new Date(t.createdAt).getTime()}-${new Date(t.updatedAt).getTime()}`).join("-");V(()=>{let l=M(n.map(t=>({...t,updatedAt:new Date().toISOString()})));l!==b.current&&(h(n),b.current=l)},[n]);let a=I.filter(l=>l.name.toLowerCase().includes(s.toLowerCase())),N=a.slice(0,10),U=a.filter(Boolean),w=()=>{C(!0)},X=l=>{E?.(l)},p=l=>{console.log("deleting file",l),h(t=>t.filter(R=>R.name!==l.name)),S?.(l.id.toString())},f=l=>{H?.(l)},L=()=>{v(""),O("all")};return i("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(K,{mode:"wait",children:e(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:i("div",{className:`space-y-6 ${$||""}`,children:[e(T,{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:w},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(u,{children:e(g,{className:"pt-6",children:i("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:i("div",{className:"relative",children:[e(G,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(A,{placeholder:"Search files...",value:s,onChange:l=>v(l.target.value),className:"pl-9"})]})}),(s||y!=="all")&&i(F,{variant:"outline",onClick:L,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),i("div",{className:"space-y-4",children:[e(x,{activeTab:r,onTabChange:P,tabOptions:[{value:"all",label:`All Files (${a.length})`},{value:"recent",label:`Recent (${N.length})`}],maxWidth:"500px",gridCols:3}),r==="all"&&e(d,{files:a,onFileClick:f,onFileUpdate:c,onFileDelete:p,showHeader:!m}),r==="recent"&&e(d,{files:N,onFileClick:f,onFileUpdate:c,onFileDelete:p,showHeader:!m}),r==="shared"&&e(d,{files:U,onFileClick:f,onFileUpdate:c,onFileDelete:p,showHeader:!m})]}),a.length===0&&e(u,{children:e(g,{className:"pt-6",children:i("div",{className:"text-center py-8",children:[e(W,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:s||y!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),i(F,{onClick:w,className:"gap-2",children:[e(z,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")}),e(D,{isOpen:B,onClose:()=>C(!1),onAddFile:k})]})}export{Q as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as C}from"./chunk-
|
|
4
|
+
import{a as C}from"./chunk-FOO5RONL.mjs";import{a as D}from"./chunk-ZKTIH47I.mjs";import{a as w,c as y,e as k}from"./chunk-3UMMMQEH.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as N}from"./chunk-MDJREBVI.mjs";import{motion as R}from"motion/react";import{File as T,FileText as K,Edit3 as A,Type as G,ChevronDown as L,ChevronRight as Z,Info as P,Loader2 as H}from"lucide-react";import{startTransition as M,useEffect as Q,useMemo as V,useRef as W,useState as c}from"react";import*as E from"@radix-ui/react-dialog";import Y from"react-markdown";import _ from"remark-gfm";import{Fragment as ae,jsx as e,jsxs as o}from"react/jsx-runtime";var S=s=>e(Y,{remarkPlugins:[_],components:{h1:({children:t})=>e("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>e("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>e("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>e("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>e("ol",{className:"list-decimal",children:t}),ul:({children:t})=>e("ul",{className:"list-disc",children:t}),li:({children:t})=>e("li",{className:"ml-4",children:t}),p:({children:t})=>e("p",{className:"mb-4",children:t}),a:({children:t,href:i})=>e("a",{href:i,className:"text-blue-500",children:t}),img:({src:t,alt:i})=>e("img",{src:t,alt:i,className:"mb-4"}),blockquote:({children:t})=>e("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:s}),O=s=>e("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:s}),ee=s=>e("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:s&&e(D,{value:JSON.stringify(s),editable:!1,name:"richTextContent"},JSON.stringify(s))}),te=s=>o("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[e("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:o("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[e("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),S(s)]});function pe({document:s,onDocumentUpdate:t,editable:i=!0,mode:g="view",renderers:j,availableDocuments:I=[],knowledgeContexts:B=[]}){let[$,x]=c(!1),[d,q]=c(!1),[a,m]=c(s),[z,p]=c(!1),u=W(null),b=a.format==="richText"?a.richTextContent:a.content,F=V(()=>`${a.format}:${JSON.stringify(b)}`,[a.format,b]);Q(()=>{m(s)},[s]);let re=r=>{switch(r){case"markdown":case"mdx":return e(K,{className:"h-6 w-6 text-primary"});case"richText":return e(T,{className:"h-6 w-6 text-success"});case"text":return e(G,{className:"h-6 w-6 text-muted-foreground"});default:return e(T,{className:"h-6 w-6 text-muted-foreground"})}},J=r=>{switch(r){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"}},X=(r,n)=>{let l={markdown:S,mdx:te,text:O},h=j?.[n]||l[n];if(n==="richText"&&typeof r=="object")return ee(r);if(h&&typeof r=="string")return h(r);if(typeof r=="string")return O(r)},U=async(r,n="save")=>{n==="save"&&p(!0),u.current=a,M(()=>{m({...r,richTextContent:r.richTextContent?structuredClone(r.richTextContent):void 0})});try{let l=await t?.(r);if(n==="save"&&p(!1),!l)throw new Error("save failed")}catch{u.current&&M(()=>m(u.current))}},v=()=>{x(!1)};return o(ae,{children:[e(w,{open:$||g==="create",onOpenChange:r=>!r&&v(),children:o(y,{children:[e(k,{}),o(E.Content,{className:N("fixed inset-0 z-50 bg-background p-0 m-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:[z&&e("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center",children:e(H,{className:"h-8 w-8 animate-spin text-primary"})}),e(C,{mode:g==="create"?"create":"edit",document:a,onSave:U,onCancel:v,availableDocuments:I,knowledgeContexts:B})]})]})}),o(R.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[o("div",{className:"border-b border-border bg-card p-8 pb-6",children:[o("div",{className:"flex items-start justify-between gap-4",children:[e("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:o("div",{className:"flex-1 min-w-0",children:[o("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[a.title,e("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${J(a.format)}`,children:a.format.toUpperCase()})]}),a.description&&e("p",{className:"text-muted-foreground text-lg leading-relaxed",children:a.description})]})}),o("div",{className:"items-center gap-2 flex-shrink-0 hidden lg:flex",children:[a.metadata&&Object.keys(a.metadata).length>0&&o(f,{variant:"ghost",size:"sm",onClick:()=>q(!d),className:"gap-2",children:[e(P,{className:"h-4 w-4"}),"Metadata",d?e(L,{className:"h-4 w-4"}):e(Z,{className:"h-4 w-4"})]}),i&&o(f,{variant:"outline",size:"sm",onClick:()=>x(!0),className:"gap-2",children:[e(A,{className:"h-4 w-4"}),"Edit"]})]})]}),a.metadata&&Object.keys(a.metadata).length>0&&e(R.div,{initial:!1,animate:{height:d?"auto":0,opacity:d?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:o("div",{className:"pt-4 border-t border-border mt-4",children:[o("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e(P,{className:"h-4 w-4"}),"Document Metadata"]}),e("div",{className:"bg-muted rounded-lg p-4 border border-border",children:e("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:Object.entries(a.metadata).map(([r,n])=>o("div",{className:"flex flex-col gap-1",children:[e("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:r.replace(/([A-Z])/g," $1").trim()}),e("span",{className:"text-foreground font-medium",children:String(n)})]},r))})})]})})]}),e("div",{className:"flex-1 ",children:e("div",{className:"py-4 h-full",children:e("div",{className:"space-y-4",children:a.content||a.richTextContent?e("div",{className:"relative",children:e("div",{className:"bg-background px-8 overflow-hidden h-full flex-1",children:X(a.format==="richText"?a.richTextContent:a.content,a.format)})},F):o("div",{className:"text-center p-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[e("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:e(K,{className:"h-8 w-8 text-muted-foreground"})}),e("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),e("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})]})}export{pe as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as c}from"./chunk-5RTGHMF3.mjs";import{b as
|
|
4
|
+
import{a as c}from"./chunk-5RTGHMF3.mjs";import{b as l}from"./chunk-CSBGSBEU.mjs";import{a as t,b as o,c as i,d as m,e as d,f as n}from"./chunk-YO3GQYRJ.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{motion as v}from"motion/react";import{FileText as C,Share2 as N,Users as x}from"lucide-react";import{jsx as r,jsxs as e}from"react/jsx-runtime";function S({project:a,onOpen:u,onShare:f,className:p}){return r(v.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:p,children:e(t,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[e(o,{children:[e("div",{className:"flex items-center justify-between",children:[r(i,{children:a.name}),e(l,{variant:"outline",className:"rounded-xl",children:["Due ",a.dueDate]})]}),r(m,{children:a.description})]}),e(d,{className:"space-y-4",children:[e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center justify-between text-sm",children:[r("span",{children:"Progress"}),e("span",{children:[a.progress,"%"]})]}),r(c,{value:a.progress,className:"h-2 rounded-xl"})]}),e("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e("div",{className:"flex items-center",children:[r(x,{className:"mr-1 h-4 w-4"}),a.members," members"]}),e("div",{className:"flex items-center",children:[r(C,{className:"mr-1 h-4 w-4"}),a.files," files"]})]})]}),e(n,{className:"flex gap-2",children:[r(s,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>u?.(a),children:"Open Project"}),r(s,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>f?.(a),children:r(N,{className:"h-4 w-4"})})]})]})})}export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as n}from"./chunk-INCYANPB.mjs";import{
|
|
4
|
+
import{a as n}from"./chunk-INCYANPB.mjs";import{a as d,b as p,c as v}from"./chunk-SOLZ4VQH.mjs";import{b as g}from"./chunk-CSBGSBEU.mjs";import{b as r}from"./chunk-ZUA4KNIR.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as K}from"./chunk-TVZOULLL.mjs";import{a as y}from"./chunk-FT3AE7L2.mjs";import{
|
|
4
|
+
import{a as K}from"./chunk-TVZOULLL.mjs";import{a as y}from"./chunk-FT3AE7L2.mjs";import{b as u}from"./chunk-CSBGSBEU.mjs";import{a as d,e as v}from"./chunk-YO3GQYRJ.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{useState as h,useEffect as A}from"react";import{Search as D,X as F,FileText as S,Tag as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function J({selectedDocuments:l,onDocumentsChange:N,availableDocuments:x,label:L,placeholder:B="Search knowledge documents...",maxSelections:i,disabled:c=!1}){let[r,w]=h(""),[f,C]=h([]),[g,o]=h(!1);A(()=>{if(!r.trim()){C([]),o(!1);return}let e=x.filter(a=>{if(l.map(n=>n.id).includes(a.id))return!1;let m=r.toLowerCase();return a.title.toLowerCase().includes(m)||a.description?.toLowerCase().includes(m)||a.tags?.some(n=>n.toLowerCase().includes(m))||Object.values(a.metadata||{}).some(n=>String(n).toLowerCase().includes(m))});C(e),o(!0)},[r,l,x]);let z=e=>{i&&l.length>=i&&l.pop(),N([...l,e]),w(""),o(!1)},T=e=>{N(l.filter(a=>a.id!==e))},b=!i||l.length<i;return s("div",{className:"space-y-2",children:[t(K,{children:L}),s("div",{className:"relative",children:[s("div",{className:"relative",children:[t(D,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{value:r,onChange:e=>w(e.target.value),placeholder:b?B:`Maximum ${i} documents selected`,className:"pl-9",disabled:c||!b,onFocus:()=>r&&o(!0)})]}),g&&f.length>0&&t(d,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60 overflow-y-scroll no-scrollbar",children:t(y,{className:"h-full",children:t(v,{className:"p-2",children:f.map(e=>t(p,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(e),disabled:c,children:s("div",{className:"flex items-start gap-3 w-full",children:[t(S,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"text-left flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm truncate",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.tags&&e.tags.length>0&&s("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(a=>t(u,{variant:"outline",className:"text-xs",children:a},a)),e.tags.length>3&&s(u,{variant:"outline",className:"text-xs",children:["+",e.tags.length-3," more"]})]})]})]})},e.id))})})}),g&&r&&f.length===0&&t(d,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:s(v,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',r,'"']})})]}),l.length>0&&t("div",{className:"space-y-2",children:t("div",{className:"space-y-2",children:l.map(e=>t(d,{className:"p-3",children:s("div",{className:"flex items-start gap-3",children:[t(S,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.tags&&e.tags.length>0&&t("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map(a=>s(u,{variant:"outline",className:"text-xs",children:[t(I,{className:"h-3 w-3 mr-1"}),a]},a))})]}),t(p,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>T(e.id),disabled:c,children:t(F,{className:"h-3 w-3"})})]})},e.id))})}),g&&t("div",{className:"fixed inset-0 z-0",onClick:()=>o(!1)})]})}export{J as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{
|
|
4
|
+
import{a as i,b as s,c as l,e as o}from"./chunk-YO3GQYRJ.mjs";import{b as t}from"./chunk-ZUA4KNIR.mjs";import{Bot as u,ChevronLeft as g,Copy as d,Plus as v,Sparkles as m}from"lucide-react";import{motion as r,AnimatePresence as f}from"motion/react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({onCloneExisting:n,onCreateNew:c,onCancel:p}){return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(f,{mode:"wait",children:a(r.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(t,{variant:"ghost",onClick:p,className:"gap-2",children:[e(g,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),e("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),a("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(i,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:n,children:[a(s,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:e(d,{className:"h-8 w-8 text-blue-600"})}),e(l,{className:"text-xl",children:"Clone Existing"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(u,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Pre-configured capabilities"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(d,{className:"h-4 w-4 text-blue-600"}),e("span",{children:"Inherit knowledge base"})]})]}),e(t,{className:"mt-6 w-full",onClick:n,children:"Browse & Clone"})]})]})}),e(r.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:a(i,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:c,children:[a(s,{className:"text-center pb-4",children:[e("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:e(m,{className:"h-8 w-8 text-green-600"})}),e(l,{className:"text-xl",children:"Create New"})]}),a(o,{className:"text-center",children:[e("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),a("div",{className:"space-y-2 text-sm",children:[a("div",{className:"flex items-center gap-2 justify-center",children:[e(v,{className:"h-4 w-4 text-green-600"}),e("span",{children:"Custom job description"})]}),a("div",{className:"flex items-center gap-2 justify-center",children:[e(m,{className:"h-4 w-4 text-green-600"}),e("span",{children:"Define unique capabilities"})]})]}),e(t,{className:"mt-6 w-full",onClick:c,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}export{w as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-SDMPCZ2S.mjs";import{
|
|
4
|
+
import{a as g}from"./chunk-SDMPCZ2S.mjs";import{a as s,b as l,c as d,d as m,e as c}from"./chunk-YO3GQYRJ.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import{useState as C}from"react";import{motion as a}from"motion/react";import{Lock as y}from"lucide-react";import{Fragment as p,jsx as t,jsxs as e}from"react/jsx-runtime";var P=({onLogin:f,buttonText:h="Login",title:u="Login to Cortex",subtitle:b="Welcome back",logoProps:r={width:80,height:80},redirectUrl:v="/dashboard",className:x})=>{let[n,w]=C(!1),N=async()=>{w(!0),f()};return t("div",{className:i("min-h-screen flex items-center justify-center p-4",x),children:t(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,type:"spring",stiffness:100},className:"w-full max-w-md",children:e(s,{className:"shadow-2xl border-0",children:[e(l,{className:"text-center pb-2",children:[t(a.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,duration:.5,type:"spring",stiffness:200},className:"mx-auto w-20 h-20 bg-white rounded-full flex items-center justify-center mb-4 shadow-lg",children:t(g,{...r,className:i("w-16 h-auto",r?.className),loading:"eager",priority:"high"})}),t(d,{className:"text-3xl font-bold bg-accent bg-clip-text text-transparent",children:u}),t(m,{className:"text-base mt-2",children:b})]}),t(c,{className:"space-y-6 py-6",children:t(o,{onClick:N,className:"w-full h-12 text-white border-0 font-medium text-lg transition-all duration-300 shadow-lg hover:shadow-xl",disabled:n,children:n?e(p,{children:[t(a.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"mr-3",children:t("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full"})}),"Signing In..."]}):e(p,{children:[t(y,{className:"mr-3 h-5 w-5"}),h]})})})]})})})};export{P as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-FT3AE7L2.mjs";import{a as n,b as m,c,d as p}from"./chunk-KY7WQYN4.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as
|
|
4
|
+
import{a as h}from"./chunk-FT3AE7L2.mjs";import{a as v}from"./chunk-YO3GQYRJ.mjs";import{a as n,b as m,c,d as p}from"./chunk-KY7WQYN4.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{Clock as x,Edit3 as C,Plus as S,Trash2 as w}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function M({sessions:o,currentSession:g,teams:y,onNewChat:u,onSessionSelect:N,onSessionEdit:r,onSessionDelete:l,className:f}){return t(n,{children:t("div",{className:`space-y-4 h-full ${f||""}`,children:s(v,{className:"shadow-sm h-full",children:[t("div",{className:"p-4 border-b",children:s("div",{className:"flex items-center justify-between",children:[s("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[t(x,{className:"h-4 w-4"}),"Recent Chats"]}),s(i,{onClick:u,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[t(S,{className:"h-3 w-3"}),"New"]})]})}),t(h,{className:"h-[600px]",children:t("div",{className:"p-2",children:o.length===0?t("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(e=>s(m,{children:[t(c,{asChild:!0,children:t("div",{className:d("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",g?.id===e.id&&"bg-muted border"),onClick:()=>N(e),children:s("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[s("div",{className:"min-w-0 overflow-hidden",children:[t("h4",{className:"font-medium text-sm truncate mb-1",children:e.title}),t("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.lastMessage})]}),s("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),r(e.id)},children:t(C,{className:"h-3 w-3"})}),l&&t(i,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),l(e.id)},children:t(w,{className:"h-3 w-3"})})]})]})})}),t(p,{side:"right",className:"max-w-xs",children:s("div",{className:"space-y-1",children:[t("p",{className:"font-medium text-sm",children:e.title}),t("p",{className:"text-xs",children:e.lastMessage})]})})]},e.id))})})]})})})}export{M as a};
|