cortex-react-components 2.28.0 → 2.28.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-ORODSHZN.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-D76LTQRD.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/chunk-2TUBS2HM.mjs +4 -0
- package/dist/{chunk-JDIPWJBD.mjs → chunk-46N4YPMB.mjs} +1 -1
- package/dist/{chunk-27XIU7FW.mjs → chunk-4LUF5GZ6.mjs} +1 -1
- package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
- package/dist/{chunk-LKUK55GC.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-KAAHIHZK.mjs → chunk-5WVFEIMC.mjs} +1 -1
- package/dist/{chunk-XSCZQEYP.mjs → chunk-62A35O55.mjs} +1 -1
- package/dist/{chunk-43YJ2VYN.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
- package/dist/{chunk-YI6EQRWN.mjs → chunk-6ZMZX5TB.mjs} +1 -1
- package/dist/{chunk-WDRL3N5V.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-75HU5Q6A.mjs → chunk-AHMDJQZI.mjs} +1 -1
- package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
- package/dist/{chunk-YVXFRQPA.mjs → chunk-ATPB5HSG.mjs} +1 -1
- package/dist/{chunk-ZA6MGTGM.mjs → chunk-B7AXSCTN.mjs} +1 -1
- package/dist/{chunk-D44OXIPN.mjs → chunk-CDVRH3MC.mjs} +1 -1
- package/dist/{chunk-OQBCIB4L.mjs → chunk-CK2TD4BY.mjs} +1 -1
- package/dist/{chunk-633ESSXN.mjs → chunk-COBOHCBL.mjs} +1 -1
- package/dist/{chunk-KEOMDWUC.mjs → chunk-EHSOO47V.mjs} +1 -1
- package/dist/{chunk-2R3ECSWF.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-CXHPLJDO.mjs → chunk-F6DMXMR4.mjs} +1 -1
- package/dist/{chunk-VKCDLKYH.mjs → chunk-FJ2HHNPX.mjs} +1 -1
- package/dist/{chunk-6L7VJ7IH.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/chunk-GED5VYLZ.mjs +4 -0
- package/dist/{chunk-DTKZ3I6Z.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-RCI3L3M5.mjs → chunk-HD6E7KI2.mjs} +1 -1
- package/dist/{chunk-YG7SLO6G.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-24R7CI5Q.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/{chunk-FRYADWTQ.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-I6D5JCNY.mjs → chunk-IQQ7ZWCP.mjs} +1 -1
- package/dist/chunk-IUVPH5LV.mjs +4 -0
- package/dist/{chunk-6VRPQKAK.mjs → chunk-JCWFPKF3.mjs} +1 -1
- package/dist/chunk-JQL4XGAF.mjs +4 -0
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
- package/dist/{chunk-2O54GV6Q.mjs → chunk-LJFBHY4P.mjs} +1 -1
- package/dist/{chunk-GXVC6ETI.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-YPQUYIGO.mjs → chunk-LLED3RQS.mjs} +1 -1
- package/dist/{chunk-GRNOF6LY.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/chunk-MCOHKE2T.mjs +1 -0
- package/dist/{chunk-SWE754OC.mjs → chunk-MH4YPGH4.mjs} +1 -1
- package/dist/{chunk-B63FA7LF.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-4ITG3T35.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/{chunk-4FEVXBNU.mjs → chunk-NCJAMNMQ.mjs} +1 -1
- package/dist/{chunk-NJ7PW5T7.mjs → chunk-NWISIJFD.mjs} +1 -1
- package/dist/{chunk-O3BCESMN.mjs → chunk-NXAXOI33.mjs} +1 -1
- package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
- package/dist/{chunk-IBC5Z55T.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-SADWUWLZ.mjs → chunk-PTSAG7IY.mjs} +1 -1
- package/dist/{chunk-AMAB4E2X.mjs → chunk-QKDYTCZC.mjs} +1 -1
- package/dist/{chunk-2IMY4VWR.mjs → chunk-RR4QSUV2.mjs} +1 -1
- package/dist/{chunk-XQ3XV5DH.mjs → chunk-RS4VD3ML.mjs} +1 -1
- package/dist/{chunk-UBZYXZ7B.mjs → chunk-RS4WAAGI.mjs} +1 -1
- package/dist/chunk-SMKYMYUV.mjs +1 -0
- package/dist/{chunk-LEF6M5ZD.mjs → chunk-SNFBF6KT.mjs} +1 -1
- package/dist/{chunk-ZZFYIP6H.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-OWL3KUE3.mjs → chunk-TKY52BNP.mjs} +1 -1
- package/dist/{chunk-I75OOO4H.mjs → chunk-VRHJOUL3.mjs} +1 -1
- package/dist/{chunk-MDIJOHFV.mjs → chunk-WLI2YTOQ.mjs} +1 -1
- package/dist/{chunk-O5QXPC23.mjs → chunk-X2JWNPWT.mjs} +1 -1
- package/dist/{chunk-XMYXQR5W.mjs → chunk-X3YJJBFJ.mjs} +1 -1
- package/dist/{chunk-LBVWIF2J.mjs → chunk-XJKNH5LL.mjs} +1 -1
- package/dist/{chunk-IFUIQ57U.mjs → chunk-XKGBG5FX.mjs} +1 -1
- package/dist/{chunk-MX6GXHJJ.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/chunk-YRDJBAYA.mjs +4 -0
- package/dist/chunk-Z4ZRNNSX.mjs +4 -0
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
- package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
- package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
- package/dist/components/AdvancedComponents/switch.mjs +1 -1
- package/dist/components/AdvancedComponents/theme-toggle.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/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.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.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/types.d.ts +1 -1
- package/dist/components/CRM/types.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/Image.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.js +7 -7
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/Components/ChatCardArtefact.mjs +1 -1
- package/dist/components/Chat/Components/ChatCardTask.mjs +1 -1
- package/dist/components/Chat/Components/Conversation.mjs +1 -1
- package/dist/components/Chat/Components/Message.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +11 -10
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.d.ts +7 -5
- package/dist/components/Chat/PartTypes/CodeBlock.js +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
- package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +1 -1
- package/dist/components/Chat/PartTypes/Confirmation.css +1 -0
- package/dist/components/Chat/PartTypes/Confirmation.d.ts +49 -0
- package/dist/components/Chat/PartTypes/Confirmation.js +4 -0
- package/dist/components/Chat/PartTypes/Confirmation.mjs +2 -0
- package/dist/components/Chat/PartTypes/Conversation.css +1 -0
- package/dist/components/Chat/PartTypes/Conversation.d.ts +15 -0
- package/dist/components/Chat/PartTypes/Conversation.js +4 -0
- package/dist/components/Chat/PartTypes/Conversation.mjs +2 -0
- package/dist/components/Chat/PartTypes/MessageHandler.js +8 -7
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
- package/dist/components/Chat/PartTypes/Response.mjs +1 -1
- package/dist/components/Chat/PartTypes/Tool.d.ts +12 -11
- package/dist/components/Chat/PartTypes/Tool.js +1 -1
- package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.d.ts +2 -0
- package/dist/components/Chat/PartTypes/index.js +9 -8
- 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.js +18 -17
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +89 -88
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +11 -10
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +11 -10
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +11 -10
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +11 -10
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +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/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.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/AppSidebarLeft.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/Knowledge/manage-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.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/components/RawUploadComponent/index.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/nodes/image-node.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/image-plugin.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.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/knowledge-search.mjs +1 -1
- package/dist/components/Foundary/team-form.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.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.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/CalendarView.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.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/Categories.mjs +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/RelatedContent.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/Container.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Pagination/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/AddEpicModal.mjs +1 -1
- package/dist/components/Projects/AddFileModal.mjs +1 -1
- package/dist/components/Projects/AddSprintModal.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicFilter.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/KanbanColumn.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/TaskCard.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSelect.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/business-unit-switcher.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/project-form.mjs +1 -1
- package/dist/components/Projects/team-card.mjs +1 -1
- package/dist/components/Projects/team-switcher-bar.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/dc-temp/markdown-renderer.mjs +1 -1
- package/dist/components/index.js +24 -23
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/progress.mjs +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/switch.mjs +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +28 -27
- 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/payload-types.d.ts +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/ImageSection.mjs +1 -1
- package/dist/sections/MainPageSection.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/styles/Colors.mjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +3 -2
- package/dist/chunk-7JDMW5R3.mjs +0 -4
- package/dist/chunk-IMRGPVFS.mjs +0 -1
- package/dist/chunk-SZXMQMZ6.mjs +0 -4
- package/dist/chunk-UA2E23AS.mjs +0 -4
- package/dist/chunk-V6GC3UGV.mjs +0 -1
- package/dist/chunk-WBDSOPDY.mjs +0 -4
|
@@ -2,31 +2,32 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
'use client';
|
|
5
|
+
"use client";
|
|
5
6
|
|
|
6
|
-
"use strict";var bi=Object.create;var Dt=Object.defineProperty;var vi=Object.getOwnPropertyDescriptor;var hi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty;var wi=(e,t)=>{for(var o in t)Dt(e,o,{get:t[o],enumerable:!0})},Io=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hi(t))!xi.call(e,r)&&r!==o&&Dt(e,r,{get:()=>t[r],enumerable:!(a=vi(t,r))||a.enumerable});return e};var G=(e,t,o)=>(o=e!=null?bi(yi(e)):{},Io(t||!e||!e.__esModule?Dt(o,"default",{value:e,enumerable:!0}):o,e)),Ci=e=>Io(Dt({},"__esModule",{value:!0}),e);var Ln={};wi(Ln,{ChatDemoLongMessages:()=>Mn});module.exports=Ci(Ln);var ti=require("react");var Xa=require("@ai-sdk/react"),Kt=require("motion/react"),Ya=require("lucide-react");var jo=require("clsx");var Yt="-",Ni=e=>{let t=Pi(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:n=>{let s=n.split(Yt);return s[0]===""&&s.length!==1&&s.shift(),Bo(s,t)||ki(n)},getConflictingClassGroupIds:(n,s)=>{let c=o[n]||[];return s&&a[n]?[...c,...a[n]]:c}}},Bo=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?Bo(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let i=e.join(Yt);return t.validators.find(({validator:n})=>n(i))?.classGroupId},Mo=/^\[(.+)\]$/,ki=e=>{if(Mo.test(e)){let t=Mo.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Pi=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return Di(Object.entries(e.classGroups),o).forEach(([i,n])=>{Xt(n,a,i,t)}),a},Xt=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let i=r===""?t:Lo(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Ti(r)){Xt(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Xt(n,Lo(t,i),o,a)})})},Lo=(e,t)=>{let o=e;return t.split(Yt).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ti=e=>e.isThemeGetter,Di=(e,t)=>t?e.map(([o,a])=>{let r=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,s])=>[t+n,s])):i);return[o,r]}):e,Ri=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=a.get(i))!==void 0)return r(i,n),n},set(i,n){o.has(i)?o.set(i,n):r(i,n)}}},Eo="!",Ai=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,r=t[0],i=t.length,n=s=>{let c=[],p=0,h=0,u;for(let w=0;w<s.length;w++){let k=s[w];if(p===0){if(k===r&&(a||s.slice(w,w+i)===t)){c.push(s.slice(h,w)),h=w+i;continue}if(k==="/"){u=w;continue}}k==="["?p++:k==="]"&&p--}let v=c.length===0?s:s.substring(h),A=v.startsWith(Eo),T=A?v.substring(1):v,N=u&&u>h?u-h:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:T,maybePostfixModifierPosition:N}};return o?s=>o({className:s,parseClassName:n}):n},Si=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},Ii=e=>({cache:Ri(e.cacheSize),parseClassName:Ai(e),...Ni(e)}),Mi=/\s+/,Li=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Mi),s="";for(let c=n.length-1;c>=0;c-=1){let p=n[c],{modifiers:h,hasImportantModifier:u,baseClassName:v,maybePostfixModifierPosition:A}=o(p),T=!!A,N=a(T?v.substring(0,A):v);if(!N){if(!T){s=p+(s.length>0?" "+s:s);continue}if(N=a(v),!N){s=p+(s.length>0?" "+s:s);continue}T=!1}let w=Si(h).join(":"),k=u?w+Eo:w,L=k+N;if(i.includes(L))continue;i.push(L);let I=r(N,T);for(let M=0;M<I.length;++M){let Y=I[M];i.push(k+Y)}s=p+(s.length>0?" "+s:s)}return s};function Bi(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=zo(t))&&(a&&(a+=" "),a+=o);return a}var zo=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=zo(e[a]))&&(o&&(o+=" "),o+=t);return o};function Ei(e,...t){let o,a,r,i=n;function n(c){let p=t.reduce((h,u)=>u(h),e());return o=Ii(p),a=o.cache.get,r=o.cache.set,i=s,s(c)}function s(c){let p=a(c);if(p)return p;let h=Li(c,o);return r(c,h),h}return function(){return i(Bi.apply(null,arguments))}}var O=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Uo=/^\[(?:([a-z-]+):)?(.+)\]$/i,zi=/^\d+\/\d+$/,Ui=new Set(["px","full","screen"]),Hi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Vo|min|max))|\Vo(calc|min|max|clamp)\(.+\)|^0$/,ji=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Oi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ot(e)||Ui.has(e)||zi.test(e),Oe=e=>at(e,"length",Qi),ot=e=>!!e&&!Number.isNaN(Number(e)),Qt=e=>at(e,"number",ot),ht=e=>!!e&&Number.isInteger(Number(e)),Wi=e=>e.endsWith("%")&&ot(e.slice(0,-1)),C=e=>Uo.test(e),Ve=e=>Hi.test(e),Gi=new Set(["length","size","percentage"]),$i=e=>at(e,Gi,Ho),qi=e=>at(e,"position",Ho),_i=new Set(["image","url"]),Ki=e=>at(e,_i,Yi),Ji=e=>at(e,"",Xi),yt=()=>!0,at=(e,t,o)=>{let a=Uo.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},Qi=e=>Fi.test(e)&&!ji.test(e),Ho=()=>!1,Xi=e=>Oi.test(e),Yi=e=>Vi.test(e);var Zi=()=>{let e=O("colors"),t=O("spacing"),o=O("blur"),a=O("brightness"),r=O("borderColor"),i=O("borderRadius"),n=O("borderSpacing"),s=O("borderWidth"),c=O("contrast"),p=O("grayscale"),h=O("hueRotate"),u=O("invert"),v=O("gap"),A=O("gradientColorStops"),T=O("gradientColorStopPositions"),N=O("inset"),w=O("margin"),k=O("opacity"),L=O("padding"),I=O("saturate"),M=O("scale"),Y=O("sepia"),_=O("skew"),ce=O("space"),ae=O("translate"),W=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",C,t],B=()=>[C,t],je=()=>["",Le,Oe],ye=()=>["auto",ot,C],d=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],S=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",C],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[ot,C];return{cacheSize:500,separator:":",theme:{colors:[yt],spacing:[Le,Oe],blur:["none","",Ve,C],brightness:H(),borderColor:[e],borderRadius:["none","","full",Ve,C],borderSpacing:B(),borderWidth:je(),contrast:H(),grayscale:$(),hueRotate:H(),invert:$(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[Wi,Oe],inset:de(),margin:de(),opacity:H(),padding:B(),saturate:H(),scale:H(),sepia:$(),skew:H(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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:[...d(),C]}],overflow:[{overflow:K()}],"overflow-Vo":[{"overflow-Vo":K()}],"overflow-Vo":[{"overflow-Vo":K()}],overscroll:[{overscroll:W()}],"overscroll-Vo":[{"overscroll-Vo":W()}],"overscroll-Vo":[{"overscroll-Vo":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-Vo":[{"inset-Vo":[N]}],"inset-Vo":[{"inset-Vo":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,C]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",ht,C]}],"grid-cols":[{"grid-cols":[yt]}],"col-start-end":[{col:["auto",{span:["full",ht,C]},C]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[yt]}],"row-start-end":[{row:["auto",{span:[ht,C]},C]}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[v]}],"gap-Vo":[{"gap-Vo":[v]}],"gap-Vo":[{"gap-Vo":[v]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],Vo:[{Vo:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-Vo":[{"space-Vo":[ce]}],"space-Vo-reverse":["space-Vo-reverse"],"space-Vo":[{"space-Vo":[ce]}],"space-Vo-reverse":["space-Vo-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-w":[{"min-w":[C,t,"min","max","fit"]}],"max-w":[{"max-w":[C,t,"none","full","min","max","fit","prose",{screen:[Ve]},Ve]}],h:[{h:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ve,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qt]}],"font-family":[{font:[yt]}],"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",C]}],"line-clamp":[{"line-clamp":["none",ot,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Oe]}],"underline-offset":[{"underline-offset":["auto",Le,C]}],"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:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],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",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...d(),qi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Vo","Vo","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$i]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Vo","bl","l","tl"]},Ki]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Vo":[{"rounded-Vo":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-Vo":[{"rounded-Vo":[i]}],"rounded-Ya":[{"rounded-Ya":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-Vo":[{"border-Vo":[s]}],"border-w-Vo":[{"border-Vo":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-Vo":[{"border-Vo":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...z(),"hidden"]}],"divide-Vo":[{"divide-Vo":[s]}],"divide-Vo-reverse":["divide-Vo-reverse"],"divide-Vo":[{"divide-Vo":[s]}],"divide-Vo-reverse":["divide-Vo-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:z()}],"border-color":[{border:[r]}],"border-color-Vo":[{"border-Vo":[r]}],"border-color-Vo":[{"border-Vo":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-Vo":[{"border-Vo":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Le,C]}],"outline-w":[{outline:[Le,Oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Le,Oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,Ji]}],"shadow-color":[{shadow:[yt]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...S(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":S()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ve,C]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[u]}],saturate:[{saturate:[I]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-Vo":[{"border-spacing-Vo":[n]}],"border-spacing-Vo":[{"border-spacing-Vo":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-Vo":[{"scale-Vo":[M]}],"scale-Vo":[{"scale-Vo":[M]}],rotate:[{rotate:[ht,C]}],"translate-Vo":[{"translate-Vo":[ae]}],"translate-Vo":[{"translate-Vo":[ae]}],"skew-Vo":[{"skew-Vo":[_]}],"skew-Vo":[{"skew-Vo":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],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","Ya-resize","nw-resize","Vo-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Vo","Vo",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Vo":[{"scroll-Vo":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Vo","Vo","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Vo":[{"touch-pan":["Vo","left","right"]}],"touch-Vo":[{"touch-pan":["Vo","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Oe,Qt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Vo","overflow-Vo"],overscroll:["overscroll-Vo","overscroll-Vo"],inset:["inset-Vo","inset-Vo","start","end","top","right","bottom","left"],"inset-Vo":["right","left"],"inset-Vo":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Vo","gap-Vo"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Vo:["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-Vo","rounded-l","rounded-ss","rounded-Vo","rounded-Ya","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Vo","rounded-Ya"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Vo":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Vo","border-spacing-Vo"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Vo","border-w-l"],"border-w-Vo":["border-w-r","border-w-l"],"border-w-Vo":["border-w-t","border-w-Vo"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Vo","border-color-l"],"border-color-Vo":["border-color-r","border-color-l"],"border-color-Vo":["border-color-t","border-color-Vo"],"scroll-Vo":["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-Vo","touch-Vo","touch-pz"],"touch-Vo":["touch"],"touch-Vo":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Fo=Ei(Zi);function l(...e){return Fo((0,jo.clsx)(e))}var Et=G(require("react")),zt=G(require("next/link"));var Oo=require("class-variance-authority");var Vo=require("react/jsx-runtime"),en=(0,Oo.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 ie({className:e,variant:t,...o}){return(0,Vo.jsx)("div",{className:l(en({variant:t}),e),...o})}var Wo=require("@radix-ui/react-slot"),$o=G(require("react")),tn=(0,Oo.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"}}}),R=$o.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...r},i)=>(0,Vo.jsx)(e?Wo.Slot:"button",{className:l(tn({className:t,size:o,variant:a})),ref:i,...r}));R.displayName="Button";var _o=G(require("react"));var xt=_o.forwardRef(({className:e,type:t,...o},a)=>(0,Vo.jsx)("input",{type:t,className:l("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:a,...o}));xt.displayName="Input";var Zt=G(require("react")),fe=G(require("@radix-ui/react-scroll-area"));var Pe=Zt.forwardRef(({className:e,children:t,...o},a)=>(0,Vo.jsxs)(fe.Root,{ref:a,className:l("relative overflow-hidden",e),...o,children:[(0,Vo.jsx)(fe.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Vo.jsx)(Jo,{}),(0,Vo.jsx)(fe.Corner,{})]}));Pe.displayName=fe.Root.displayName;var Jo=Zt.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Vo.jsx)(fe.ScrollAreaScrollbar,{ref:a,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Vo.jsx)(fe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Jo.displayName=fe.ScrollAreaScrollbar.displayName;var wt=G(require("react")),J=G(require("@radix-ui/react-dialog"));var Xo=J.Root;var on=J.Portal;var Yo=wt.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(J.Overlay,{ref:o,className:l("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}));Yo.displayName=J.Overlay.displayName;var eo=wt.forwardRef(({className:e,children:t,...o},a)=>(0,Vo.jsxs)(on,{children:[(0,Vo.jsx)(Yo,{}),(0,Vo.jsxs)(J.Content,{ref:a,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Vo-[-50%] translate-Vo-[-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,Vo.jsxs)(J.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,Vo.jsx)(Ya.Vo,{className:"h-4 w-4"}),(0,Vo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));eo.displayName=J.Content.displayName;var to=({className:e,...t})=>(0,Vo.jsx)("div",{className:l("flex flex-col space-Vo-1.5 text-center sm:text-left",e),...t});to.displayName="DialogHeader";var an=({className:e,...t})=>(0,Vo.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Vo-2",e),...t});an.displayName="DialogFooter";var oo=wt.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(J.Title,{ref:o,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));oo.displayName=J.Title.displayName;var nn=wt.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(J.Description,{ref:o,className:l("text-sm text-muted-foreground",e),...t}));nn.displayName=J.Description.displayName;var Ct=G(require("@radix-ui/react-checkbox")),ea=G(require("react")),ao=ea.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(Ct.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Vo.jsx)(Ct.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Vo.jsx)(Ya.Check,{className:"h-4 w-4"})})}));ao.displayName=Ct.Root.displayName;var Te=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var oa=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Vo.jsx)(Ya.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Vo.jsx)(Ya.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Vo.jsx)(Ya.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Vo.jsx)(Ya.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Vo.jsx)(Ya.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Vo.jsx)(Ya.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Vo.jsx)(Ya.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Vo.jsx)(Ya.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Vo.jsx)(Ya.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Vo.jsx)(Ya.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],It=[{id:"1",name:"Vo-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var io=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],At=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Lt=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],rn=[...Lt,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],sn=[...It,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],St={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},ta={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Lt.filter(e=>e.epicId==="1")};var or={empty:{initialProjects:St.projects,initialEpics:St.epics,initialSprints:St.sprints,initialTasks:St.tasks},default:{initialProjects:It,initialEpics:io,initialSprints:At,initialTasks:Lt},highDensity:{initialProjects:It,initialEpics:io,initialSprints:At,initialTasks:rn},singleEpic:{initialProjects:It,initialEpics:ta.epics,initialSprints:At,initialTasks:ta.tasks},multipleProjects:{initialProjects:sn,initialEpics:io,initialSprints:At,initialTasks:Lt}},Mt=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Te),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Te),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Te),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Te),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Te),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Te),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Te),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Te),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Te),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Te),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],ar=[{id:"1",title:"Review quarterly report",description:"Oo through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Mt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Mt.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:Mt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var ir=Mt.filter(e=>e.type==="digital");function aa(e,t){let[o,a]=(0,ti.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),r=i=>{try{a(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,ti.useEffect)(()=>{r(o)},[]),[o,r]}function no({items:e,isOpen:t,isMobile:o=!1,onClose:a,currentBusinessUnit:r=oa[0],onBusinessUnitChange:i,onSearch:n,className:s,logo:c="/headerlogo.png",logoLink:p="/teams",appName:h="Nuvia",tagline:u="Collaboration Platform"}){let[v,A]=Et.useState({}),[T,N]=aa("sidebar-favorites",{}),[w,k]=Et.useState(null),[L,I]=Et.useState(""),M=d=>{A(z=>({...z,[d]:!z[d]}))},Y=d=>{i?.(d)},_=()=>{L.trim()&&n?.(L.trim())},ce=d=>{d.key==="Enter"&&(d.preventDefault(),_())},ae=(d,z)=>{let S=T[d]||[],pe=S.includes(z)?S.filter($=>$!==z):S.concat(z);N({...T,[d]:pe})},W=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let z=T[d.id]||[],S=d.items.filter($=>z.includes($.id)),pe=d.items.filter($=>!z.includes($.id));return[...S,...pe].slice(0,d.maxItems)},K=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,de=e,B=d=>{let z=K(d),S=W(d),pe=(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,Vo.jsx)("span",{children:d.title})]}),d.badge&&(0,Vo.jsx)(ie,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,Vo.jsx)(Ya.ChevronDown,{className:l("ml-2 h-4 w-4 transition-transform",v[d.title]?"rotate-180":"")})]}),$=l("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,Vo.jsx)(zt.default,{href:d.url,className:$,onClick:o?a:void 0,children:pe}):(0,Vo.jsx)("button",{className:$,onClick:()=>d.items&&M(d.title),children:pe})},je=()=>{let d=e.find(S=>S.id===w);if(!d||!d.items||!d.maxItems)return null;let z=T[d.id]||[];return(0,Vo.jsx)(Xo,{open:!!w,onOpenChange:S=>!S&&k(null),children:(0,Vo.jsxs)(eo,{className:"sm:max-w-md",children:[(0,Vo.jsxs)(to,{children:[(0,Vo.jsxs)(oo,{children:["Manage ",d.title," Favorites"]}),(0,Vo.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,Vo.jsx)(Pe,{className:"max-h-96 pr-4",children:(0,Vo.jsx)("div",{className:"space-Vo-4",children:d.items.map(S=>(0,Vo.jsxs)("div",{className:"flex items-center space-Vo-2",children:[(0,Vo.jsx)(ao,{id:S.id,checked:z.includes(S.id),onCheckedChange:()=>ae(d.id,S.id),disabled:!z.includes(S.id)&&z.length>=(d.maxItems||0)}),(0,Vo.jsxs)("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&&(0,Vo.jsx)(ie,{variant:"outline",className:"text-xs",children:S.badge})]})]},S.id))})})]})})},ye=(0,Vo.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Vo.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Vo.jsxs)(zt.default,{href:p,className:"flex items-center gap-3",children:[(0,Vo.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Vo.jsx)("img",{src:c,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Vo.jsxs)("div",{children:[(0,Vo.jsx)("h2",{className:"font-semibold",children:h}),(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground",children:u})]})]}),o&&(0,Vo.jsx)(R,{variant:"ghost",size:"icon",onClick:a,children:(0,Vo.jsx)(Ya.Vo,{className:"h-5 w-5"})})]}),(0,Vo.jsx)("div",{className:"px-3 py-2",children:(0,Vo.jsxs)("div",{className:"relative",children:[(0,Vo.jsx)(Ya.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Vo.jsx)(xt,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:L,onChange:d=>I(d.target.value),onKeyPress:ce})]})}),(0,Vo.jsx)(Pe,{className:"flex-1 px-3 py-2",children:(0,Vo.jsx)("div",{className:"space-Vo-1",children:de.map(d=>(0,Vo.jsxs)("div",{className:"mb-1",children:[B(d),d.items&&v[d.title]&&(0,Vo.jsxs)("div",{className:"mt-1 ml-6 space-Vo-1 border-l pl-3",children:[W(d).map(z=>(0,Vo.jsxs)(zt.default,{href:z.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?a:void 0,children:[z.title,z.badge&&(0,Vo.jsx)(ie,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:z.badge})]},z.id)),K(d)&&d.items&&d.items.length>W(d).length&&(0,Vo.jsxs)("button",{onClick:()=>k(d.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:["...",d.items.length-W(d).length," more available"]})]})]},d.id))})}),(0,Vo.jsx)("div",{className:"p-3",children:(0,Vo.jsx)("div",{className:"space-Vo-1",children:(0,Vo.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Vo.jsx)(Ya.Settings,{className:"h-5 w-5"}),(0,Vo.jsx)("span",{children:"Settings"})]})})}),(0,Vo.jsx)(je,{})]});return o?(0,Vo.jsx)("div",{className:l("fixed inset-Vo-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-Vo-0":"-translate-Vo-full",s),children:ye}):(0,Vo.jsx)("div",{className:l("fixed inset-Vo-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-Vo-0":"-translate-Vo-full",s),children:ye})}var Ut=G(require("react")),Be=G(require("@radix-ui/react-avatar"));var it=Ut.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(Be.Root,{ref:o,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));it.displayName=Be.Root.displayName;var ro=Ut.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(Be.Image,{ref:o,className:l("aspect-square h-full w-full",e),...t}));ro.displayName=Be.Image.displayName;var nt=Ut.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(Be.Fallback,{ref:o,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));nt.displayName=Be.Fallback.displayName;var ia=G(require("react")),Ce=G(require("@radix-ui/react-tooltip"));var rt=Ce.Provider,st=Ce.Root,lt=Ce.Trigger,Qe=ia.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Vo.jsx)(Ce.Portal,{children:(0,Vo.jsx)(Ce.Content,{ref:a,sideOffset:t,className:l("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Qe.displayName=Ce.Content.displayName;var na=require("next-themes");function ra(){let{setTheme:e,theme:t}=(0,na.useTheme)();return(0,Vo.jsx)(rt,{children:(0,Vo.jsxs)(st,{children:[(0,Vo.jsx)(lt,{asChild:!0,children:(0,Vo.jsxs)(R,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Vo.jsx)(Ya.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Vo.jsx)(Ya.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Vo.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Vo.jsx)(Qe,{children:"Toggle theme"})]})})}function sa({notifications:e,open:t,onClose:o,onNotificationRemove:a,onRemoveAll:r,className:i}){let n=e.filter(p=>!p.read),s=n.length,c=p=>{switch(p){case"info":return(0,Vo.jsx)(Ya.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Vo.jsx)(Ya.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Vo.jsx)(Ya.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Vo.jsx)(Ya.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Vo.jsx)(Kt.AnimatePresence,{children:t&&(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsx)(Kt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Vo.jsx)(Kt.motion.div,{initial:{Vo:"100%"},animate:{Vo:0},exit:{Vo:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:l("fixed inset-Vo-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Vo.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Vo.jsxs)("div",{className:"flex items-center justify-between border-Vo p-4",children:[(0,Vo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Vo.jsx)(Ya.Bell,{className:"h-5 w-5"}),(0,Vo.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,Vo.jsxs)(ie,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,Vo.jsxs)(R,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Vo.jsx)(Ya.Vo,{className:"h-5 w-5"}),(0,Vo.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,Vo.jsxs)("div",{className:"flex items-center justify-between border-Vo p-2",children:[(0,Vo.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,Vo.jsx)(R,{variant:"ghost",size:"sm",onClick:r,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Vo.jsx)(Pe,{className:"flex-1",children:(0,Vo.jsx)("div",{className:"divide-Vo",children:n.map(p=>(0,Vo.jsxs)("div",{className:l("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Vo.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:c(p.type)}),(0,Vo.jsxs)("div",{className:"flex-1 space-Vo-1",children:[(0,Vo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Vo.jsx)("p",{className:"font-medium",children:p.title}),(0,Vo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground",children:p.time}),(0,Vo.jsx)(R,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>a?.(p.id),title:"Dismiss",children:(0,Vo.jsx)(Ya.Check,{className:"h-3 w-3"})})]})]}),(0,Vo.jsx)("p",{className:"text-sm text-muted-foreground",children:p.description}),p.actionLabel&&(0,Vo.jsxs)(R,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:p.onAction,children:[p.actionLabel,(0,Vo.jsx)(Ya.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},p.id))})}):(0,Vo.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Vo.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Vo.jsx)(Ya.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Vo.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"ho notifications"}),(0,Vo.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Xe=G(require("@radix-ui/react-tabs"));function la({className:e,...t}){return(0,Vo.jsx)(Xe.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function ca({className:e,...t}){return(0,Vo.jsx)(Xe.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function da({className:e,...t}){return(0,Vo.jsx)(Xe.Trigger,{"data-slot":"tabs-trigger",className:l("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 Ee=G(require("react")),D=G(require("@radix-ui/react-dropdown-menu")),ct=require("@radix-ui/react-icons");var pa=D.Root,ma=D.Trigger;var ln=Ee.forwardRef(({className:e,inset:t,children:o,...a},r)=>(0,Vo.jsxs)(D.SubTrigger,{ref:r,className:l("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),...a,children:[o,(0,Vo.jsx)(ct.ChevronRightIcon,{className:"ml-auto"})]}));ln.displayName=D.SubTrigger.displayName;var cn=Ee.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(D.SubContent,{ref:o,className:l("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}));cn.displayName=D.SubContent.displayName;var lo=Ee.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Vo.jsx)(D.Portal,{children:(0,Vo.jsx)(D.Content,{ref:a,sideOffset:t,className:l("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})}));lo.displayName=D.Content.displayName;var co=Ee.forwardRef(({className:e,inset:t,...o},a)=>(0,Vo.jsx)(D.Item,{ref:a,className:l("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}));co.displayName=D.Item.displayName;var dn=Ee.forwardRef(({className:e,children:t,checked:o,...a},r)=>(0,Vo.jsxs)(D.CheckboxItem,{ref:r,className:l("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,...a,children:[(0,Vo.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Vo.jsx)(D.ItemIndicator,{children:(0,Vo.jsx)(ct.CheckIcon,{className:"h-4 w-4"})})}),t]}));dn.displayName=D.CheckboxItem.displayName;var pn=Ee.forwardRef(({className:e,children:t,...o},a)=>(0,Vo.jsxs)(D.RadioItem,{ref:a,className:l("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,Vo.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Vo.jsx)(D.ItemIndicator,{children:(0,Vo.jsx)(ct.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));pn.displayName=D.RadioItem.displayName;var mn=Ee.forwardRef(({className:e,inset:t,...o},a)=>(0,Vo.jsx)(D.Label,{ref:a,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));mn.displayName=D.Label.displayName;var un=Ee.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)(D.Separator,{ref:o,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));un.displayName=D.Separator.displayName;var gn=({className:e,...t})=>(0,Vo.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});gn.displayName="DropdownMenuShortcut";function ga({activeTab:e,onTabChange:t,tabOptions:o,className:a="",maxWidth:r="700px",gridCols:i=6}){let n=o.find(s=>s.value===e);return(0,Vo.jsxs)(Kt.motion.div,{className:`flex-1 flex justify-center ${a}`,initial:{opacity:0,Vo:-20},animate:{opacity:1,Vo:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Vo.jsx)("div",{className:"hidden lg:block",children:(0,Vo.jsx)(la,{value:e,onValueChange:t,children:(0,Vo.jsx)(ca,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,Vo.jsx)(Kt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Vo.jsx)(da,{value:s.value,onClick:()=>t?.(s.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:s.label})},s.value))})})}),(0,Vo.jsx)("div",{className:"lg:hidden",children:(0,Vo.jsxs)(pa,{children:[(0,Vo.jsx)(ma,{asChild:!0,children:(0,Vo.jsxs)(R,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,Vo.jsx)(Ya.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Vo.jsx)(lo,{align:"center",className:"w-[180px]",children:o.map(s=>(0,Vo.jsx)(co,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function fa({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:a,sidebarOpen:r=!0,className:i,activeTab:n="assistant",onTabChange:s,showTabs:c=!0,tabOptions:p=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:h,actionIcon:u=(0,Vo.jsx)(Ya.Bot,{className:"mr-2 h-4 w-4"}),actionText:v="Action",onNotificationRemove:A,onRemoveAll:T,logo:N="/headerlogo.png",appName:w="Nuvia",tagline:k="Collaboration Platform"}){let[L,I]=(0,ti.useState)(!1),[M,Y]=(0,ti.useState)(t),_=M.filter(W=>!W.read).length,ce=W=>{Y(K=>K.filter(de=>de.id!==W)),A?.(W)},ae=()=>{Y(W=>W.filter(K=>K.read)),T?.()};return(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Vo.jsx)(R,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:(0,Vo.jsx)(Ya.Menu,{className:"h-5 w-5"})}),(0,Vo.jsx)(R,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Vo.jsx)(Ya.PanelLeft,{className:"h-5 w-5"})}),!r&&(0,Vo.jsxs)($e.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,Vo:-20},animate:{opacity:1,Vo:0},transition:{duration:.3},children:[(0,Vo.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Vo.jsx)("img",{src:N,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Vo.jsxs)("div",{children:[(0,Vo.jsx)("h2",{className:"font-semibold text-sm",children:w}),(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground",children:k})]})]}),(0,Vo.jsxs)("div",{className:"flex flex-1 items-center",children:[c&&(0,Vo.jsx)(ga,{activeTab:n,onTabChange:s,tabOptions:p}),(0,Vo.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Vo.jsx)($e.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,Vo:20},animate:{opacity:1,Vo:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Vo.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Vo.jsxs)(R,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:h,children:[u,v]})})}),(0,Vo.jsx)(ra,{}),(0,Vo.jsx)(rt,{children:(0,Vo.jsxs)(st,{children:[(0,Vo.jsx)(lt,{asChild:!0,children:(0,Vo.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Vo.jsxs)(R,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>I(!0),children:[(0,Vo.jsx)($e.motion.div,{animate:_>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:_>0?1/0:0,repeatDelay:3},children:(0,Vo.jsx)(Ya.Bell,{className:"h-5 w-5"})}),_>0&&(0,Vo.jsx)($e.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:_})]})})}),(0,Vo.jsx)(Qe,{children:"Notifications"})]})}),(0,Vo.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Vo.jsxs)(it,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Vo.jsx)(ro,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Vo.jsx)(nt,{})]})})]})]})]}),(0,Vo.jsx)(sa,{notifications:M,open:L,onClose:()=>I(!1),onNotificationRemove:ce,onRemoveAll:ae})]})}var ba=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Vo.jsx)(Ya.User,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function ha({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:a=[],currentBusinessUnit:r=ba[0],onBusinessUnitChange:i,onSearch:n,businessUnits:s=ba,activeTab:c,onTabChange:p,showTabs:h=!1,onActionClick:u,actionIcon:v,actionText:A="Action",onNotificationRemove:T,onRemoveAll:N,logo:w="/headerlogo.png",appName:k="Nuvia",tagline:L="Collaboration Platform",sidebarInitiallyClosed:I=!1}){let[M,Y]=(0,ti.useState)(!I),[_,ce]=(0,ti.useState)(!1),[ae,W]=(0,ti.useState)(r),K=de=>{W(de),i?.(de)};return(0,Vo.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[_&&(0,Vo.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>ce(!1)}),(0,Vo.jsx)("div",{className:"md:hidden",children:(0,Vo.jsx)(no,{items:e,isOpen:_,isMobile:!0,onClose:()=>ce(!1),currentBusinessUnit:ae,onBusinessUnitChange:K,onSearch:n,logo:w,appName:k,tagline:L})}),(0,Vo.jsx)("div",{className:"hidden md:block",children:(0,Vo.jsx)(no,{items:e,isOpen:M,isMobile:!1,currentBusinessUnit:ae,onBusinessUnitChange:K,onSearch:n,logo:w,appName:k,tagline:L})}),(0,Vo.jsxs)("div",{className:l("min-h-screen fixed w-full transition-all duration-300 ease-in-out",M?"md:pl-64":"md:pl-0"),children:[(0,Vo.jsx)(fa,{title:o,notifications:a,onToggleSidebar:()=>Y(!M),onToggleMobileMenu:()=>ce(!0),sidebarOpen:M,activeTab:c,onTabChange:p,showTabs:h,onActionClick:u,actionIcon:v,actionText:A,onNotificationRemove:T,onRemoveAll:N,logo:w,appName:k,tagline:L}),(0,Vo.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Ye=G(require("react"));var ve=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ve.displayName="Card";var ze=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("flex flex-col space-Vo-1.5 p-6",e),...t}));ze.displayName="CardHeader";var Ue=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("font-semibold leading-none tracking-tight",e),...t}));Ue.displayName="CardTitle";var uo=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("text-sm text-muted-foreground",e),...t}));uo.displayName="CardDescription";var Re=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("p-6 pt-0",e),...t}));Re.displayName="CardContent";var kt=Ye.forwardRef(({className:e,...t},o)=>(0,Vo.jsx)("div",{ref:o,className:l("flex items-center p-6 pt-0",e),...t}));kt.displayName="CardFooter";function ya({sessions:e,currentSession:t,teams:o,onNewChat:a,onSessionSelect:r,onSessionEdit:i,onSessionDelete:n,className:s}){return(0,Vo.jsx)(rt,{children:(0,Vo.jsx)("div",{className:`space-Vo-4 h-full ${s||""}`,children:(0,Vo.jsxs)(ve,{className:"shadow-sm h-full",children:[(0,Vo.jsx)("div",{className:"p-4 border-Vo",children:(0,Vo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Vo.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,Vo.jsx)(Ya.Clock,{className:"h-4 w-4"}),"Recent Chats"]}),(0,Vo.jsxs)(R,{onClick:a,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[(0,Vo.jsx)(Ya.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,Vo.jsx)(Pe,{className:"h-[600px]",children:(0,Vo.jsx)("div",{className:"p-2",children:e.length===0?(0,Vo.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"ho chat sessions yet"}):e.map(c=>(0,Vo.jsxs)(st,{children:[(0,Vo.jsx)(lt,{asChild:!0,children:(0,Vo.jsx)("div",{className:l("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===c.id&&"bg-muted border"),onClick:()=>r(c),children:(0,Vo.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,Vo.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,Vo.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:c.title}),(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:c.lastMessage})]}),(0,Vo.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[i&&(0,Vo.jsx)(R,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:p=>{p.stopPropagation(),i(c.id)},children:(0,Vo.jsx)(Ya.Edit3,{className:"h-3 w-3"})}),n&&(0,Vo.jsx)(R,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:p=>{p.stopPropagation(),n(c.id)},children:(0,Vo.jsx)(Ya.Trash2,{className:"h-3 w-3"})})]})]})})}),(0,Vo.jsx)(Qe,{side:"right",className:"max-w-xs",children:(0,Vo.jsxs)("div",{className:"space-Vo-1",children:[(0,Vo.jsx)("p",{className:"font-medium text-sm",children:c.title}),(0,Vo.jsx)("p",{className:"text-xs",children:c.lastMessage})]})})]},c.id))})})]})})})}var gt=G(require("motion/react-client"));var xa={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},wa=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function go(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function Ca({capabilities:e,isOpen:t,onToggle:o,onActionSelect:a,onContextChange:r,colorScheme:i=xa,className:n}){let[s,c]=(0,ti.useState)([]),[p,h]=(0,ti.useState)([]),u=s[s.length-1],v=u?.children||e,A=(I,M)=>{switch(I.type){case"category":return i.categories[M%i.categories.length];case"list":return i.lists[M%i.lists.length];case"item":return i.items[M%i.items.length];default:return i.primary}},T=(0,ti.useMemo)(()=>({path:s,selectedItems:p,filters:{}}),[s,p]);(0,ti.useEffect)(()=>{r&&r(T)},[T,r]);let N=I=>{I.type==="category"||I.type==="list"?c([...s,I]):I.type==="item"&&h([...p,I])},w=()=>{c(s.slice(0,-1))},k=I=>{c(s.slice(0,I+1))},L=()=>u?.actions?u.actions:[];return t?(0,Vo.jsxs)("div",{className:l("w-full",n),children:[(0,Vo.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Vo.jsxs)("div",{className:"flex items-center gap-2",children:[s.length>0&&(0,Vo.jsx)(Kt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:w,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,Vo.jsx)(Ya.ChevronLeft,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-Vo-0.5")})}),(0,Vo.jsx)("h4",{className:"font-medium text-sm",children:u?.name||"Capabilities"})]}),(0,Vo.jsx)(Kt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:o,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,Vo.jsx)(Ya.Vo,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),s.length>0&&(0,Vo.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,Vo.jsx)(Kt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>c([]),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,Vo.jsxs)("span",{className:"relative",children:["Capabilities",(0,Vo.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Vo-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),s.map((I,M)=>(0,Vo.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Vo.jsx)(Ya.ChevronRight,{className:"h-2 w-2"}),(0,Vo.jsx)(Kt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>k(M),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,Vo.jsxs)("span",{className:"relative",children:[I.name,(0,Vo.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Vo-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},I.id))]}),(0,Vo.jsx)("div",{className:"max-h-40 overflow-Vo-auto",children:(0,Vo.jsx)(Kt.AnimatePresence,{mode:"wait",children:(0,Vo.jsx)(Kt.motion.div,{initial:{opacity:0,Vo:-4},animate:{opacity:1,Vo:0},exit:{opacity:0,Vo:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:u?.type==="list"&&u.data?(0,Vo.jsx)(vn,{data:u.data,onItemSelect:I=>h([...p,I]),colorScheme:i}):(0,Vo.jsx)(fn,{capabilities:v,onSelect:N,colorScheme:i})},u?.id||"root")})})]}):(0,Vo.jsxs)(R,{onClick:o,size:"sm",variant:"outline",className:"rounded-full",children:[(0,Vo.jsx)(Ya.Menu,{className:"h-4 w-4"}),(0,Vo.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function fn({capabilities:e,onSelect:t,colorScheme:o}){return(0,Vo.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((a,r)=>(0,Vo.jsx)(bn,{capability:a,onClick:()=>t(a),color:o.categories[r%o.categories.length]},a.id))})}function bn({capability:e,onClick:t,selected:o,color:a}){return(0,Vo.jsxs)(Kt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",o&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,Vo.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a)}),(0,Vo.jsxs)("span",{className:"truncate relative",children:[e.name,(0,Vo.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Vo-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,Vo.jsx)(Ya.ChevronRight,{className:l("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-Vo-0.5")}),e.type==="list"&&e.data&&(0,Vo.jsx)(ie,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function vn({data:e,onItemSelect:t,colorScheme:o}){return(0,Vo.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((a,r)=>(0,Vo.jsxs)(Kt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(a),children:[(0,Vo.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o.items[r%o.items.length])}),(0,Vo.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Vo.jsxs)("span",{className:"truncate relative font-medium",children:[a.title,(0,Vo.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Vo-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),a.subtitle&&(0,Vo.jsx)("div",{className:l("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:a.subtitle})]}),a.value&&(0,Vo.jsx)(ie,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:a.value})]},a.id))})}var ka=G(require("react"));var Na=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:a,description:r="This endpoint requires authentication to sync functions."})=>{let[i,n]=(0,ti.useState)(!1),[s,c]=(0,ti.useState)(""),p=()=>{if(!t){c("ho authentication URL provided");return}n(!0),c("");try{let u=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!u){c("Popup blocked. Please allow popups for this site and try again."),n(!1);return}let v=setInterval(()=>{try{u.closed&&(clearInterval(v),n(!1),a(),o())}catch{}},1e3);setTimeout(()=>{u.closed||(u.close(),clearInterval(v),n(!1),c("Authentication timed out. Please try again."))},6e5)}catch{c("Failed to open authentication window"),n(!1)}},h=async()=>{try{await navigator.clipboard.writeText(t),c("")}catch{c("Failed to copy URL to clipboard")}};return e?(0,Vo.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,Vo.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,Vo.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,Vo.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:r}),s&&(0,Vo.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,Vo.jsxs)("div",{className:"flex gap-2",children:[(0,Vo.jsx)("button",{onClick:p,disabled:i||!t,className:`
|
|
7
|
+
"use strict";var vi=Object.create;var Nt=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var yi=Object.getOwnPropertyNames;var xi=Object.getPrototypeOf,wi=Object.prototype.hasOwnProperty;var Ci=(e,t)=>{for(var o in t)Nt(e,o,{get:t[o],enumerable:!0})},Do=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yi(t))!wi.call(e,r)&&r!==o&&Nt(e,r,{get:()=>t[r],enumerable:!(a=hi(t,r))||a.enumerable});return e};var V=(e,t,o)=>(o=e!=null?vi(xi(e)):{},Do(t||!e||!e.__esModule?Nt(o,"default",{value:e,enumerable:!0}):o,e)),Ni=e=>Do(Nt({},"__esModule",{value:!0}),e);var Bn={};Ci(Bn,{ChatDemoLongMessages:()=>Mn});module.exports=Ni(Bn);var oi=require("react");var Ya=require("@ai-sdk/react"),Vt=require("motion/react"),Za=require("lucide-react");var zo=require("clsx");var _t="-",ki=e=>{let t=Ti(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(_t);return s[0]===""&&s.length!==1&&s.shift(),Ao(s,t)||Pi(i)},getConflictingClassGroupIds:(i,s)=>{let c=o[i]||[];return s&&a[i]?[...c,...a[i]]:c}}},Ao=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?Ao(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(_t);return t.validators.find(({validator:i})=>i(n))?.classGroupId},Ro=/^\[(.+)\]$/,Pi=e=>{if(Ro.test(e)){let t=Ro.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ti=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return Ri(Object.entries(e.classGroups),o).forEach(([n,i])=>{$t(i,a,n,t)}),a},$t=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:So(t,r);n.classGroupId=o;return}if(typeof r=="function"){if(Di(r)){$t(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([n,i])=>{$t(i,So(t,n),o,a)})})},So=(e,t)=>{let o=e;return t.split(_t).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Di=e=>e.isThemeGetter,Ri=(e,t)=>t?e.map(([o,a])=>{let r=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,r]}):e,Si=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,a=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=a.get(n))!==void 0)return r(n,i),i},set(n,i){o.has(n)?o.set(n,i):r(n,i)}}},Io="!",Ai=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,r=t[0],n=t.length,i=s=>{let c=[],m=0,b=0,v;for(let x=0;x<s.length;x++){let N=s[x];if(m===0){if(N===r&&(a||s.slice(x,x+n)===t)){c.push(s.slice(b,x)),b=x+n;continue}if(N==="/"){v=x;continue}}N==="["?m++:N==="]"&&m--}let f=c.length===0?s:s.substring(b),S=f.startsWith(Io),D=S?f.substring(1):f,C=v&&v>b?v-b:void 0;return{modifiers:c,hasImportantModifier:S,baseClassName:D,maybePostfixModifierPosition:C}};return o?s=>o({className:s,parseClassName:i}):i},Ii=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},Mi=e=>({cache:Si(e.cacheSize),parseClassName:Ai(e),...ki(e)}),Bi=/\s+/,Li=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r}=t,n=[],i=e.trim().split(Bi),s="";for(let c=i.length-1;c>=0;c-=1){let m=i[c],{modifiers:b,hasImportantModifier:v,baseClassName:f,maybePostfixModifierPosition:S}=o(m),D=!!S,C=a(D?f.substring(0,S):f);if(!C){if(!D){s=m+(s.length>0?" "+s:s);continue}if(C=a(f),!C){s=m+(s.length>0?" "+s:s);continue}D=!1}let x=Ii(b).join(":"),N=v?x+Io:x,M=N+C;if(n.includes(M))continue;n.push(M);let K=r(C,D);for(let j=0;j<K.length;++j){let Y=K[j];n.push(N+Y)}s=m+(s.length>0?" "+s:s)}return s};function Ei(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mo(t))&&(a&&(a+=" "),a+=o);return a}var Mo=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Mo(e[a]))&&(o&&(o+=" "),o+=t);return o};function zi(e,...t){let o,a,r,n=i;function i(c){let m=t.reduce((b,v)=>v(b),e());return o=Mi(m),a=o.cache.get,r=o.cache.set,n=s,s(c)}function s(c){let m=a(c);if(m)return m;let b=Li(c,o);return r(c,b),b}return function(){return n(Ei.apply(null,arguments))}}var F=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Bo=/^\[(?:([a-Ho-]+):)?(.+)\]$/i,Ui=/^\d+\/\d+$/,Hi=new Set(["px","full","screen"]),Fi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ji=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ho|Ho|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vi=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ho]+|0)_-?((\d+)?\.?(\d+)[a-Ho]+|0)/,Wi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Me=e=>et(e)||Hi.has(e)||Ui.test(e),He=e=>tt(e,"length",Xi),et=e=>!!e&&!Number.isNaN(Number(e)),Gt=e=>tt(e,"number",et),ut=e=>!!e&&Number.isInteger(Number(e)),Gi=e=>e.endsWith("%")&&et(e.slice(0,-1)),y=e=>Bo.test(e),Fe=e=>Fi.test(e),$i=new Set(["length","size","percentage"]),_i=e=>tt(e,$i,Lo),qi=e=>tt(e,"position",Lo),Ki=new Set(["image","url"]),Ji=e=>tt(e,Ki,Zi),Qi=e=>tt(e,"",Yi),gt=()=>!0,tt=(e,t,o)=>{let a=Bo.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},Xi=e=>ji.test(e)&&!Oi.test(e),Lo=()=>!1,Yi=e=>Vi.test(e),Zi=e=>Wi.test(e);var en=()=>{let e=F("colors"),t=F("spacing"),o=F("blur"),a=F("brightness"),r=F("borderColor"),n=F("borderRadius"),i=F("borderSpacing"),s=F("borderWidth"),c=F("contrast"),m=F("grayscale"),b=F("hueRotate"),v=F("invert"),f=F("gap"),S=F("gradientColorStops"),D=F("gradientColorStopPositions"),C=F("inset"),x=F("margin"),N=F("opacity"),M=F("padding"),K=F("saturate"),j=F("scale"),Y=F("sepia"),$=F("skew"),le=F("space"),oe=F("translate"),O=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",y,t],A=()=>[y,t],Ke=()=>["",Me,He],ke=()=>["auto",et,y],d=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",y],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[et,y];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[Me,He],blur:["none","",Fe,y],brightness:L(),borderColor:[e],borderRadius:["none","","full",Fe,y],borderSpacing:A(),borderWidth:Ke(),contrast:L(),grayscale:W(),hueRotate:L(),invert:W(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Gi,He],inset:ce(),margin:ce(),opacity:L(),padding:A(),saturate:L(),scale:L(),sepia:W(),skew:L(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[Fe]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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:[...d(),y]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],Ho:[{Ho:["auto",ut,y]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",ut,y]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",ut,y]},y]}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[ut,y]},y]}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ho:[{Ho:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],oi:[{oi:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],Ho:[{Ho:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-Ho":[{"min-Ho":[y,t,"min","max","fit"]}],"max-Ho":[{"max-Ho":[y,t,"none","full","min","max","fit","prose",{screen:[Fe]},Fe]}],Ho:[{Ho:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ho":[{"min-Ho":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ho":[{"max-Ho":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Fe,He]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gt]}],"font-family":[{font:[gt]}],"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",y]}],"line-clamp":[{"line-clamp":["none",et,Gt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Me,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Me,He]}],"underline-offset":[{"underline-offset":["auto",Me,y]}],"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",y]}],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",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...d(),qi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_i]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ji]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-oi":[{"rounded-oi":[n]}],"rounded-Ho":[{"rounded-Ho":[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-Ho":[{border:[s]}],"border-Ho-x":[{"border-x":[s]}],"border-Ho-y":[{"border-y":[s]}],"border-Ho-s":[{"border-s":[s]}],"border-Ho-e":[{"border-e":[s]}],"border-Ho-t":[{"border-t":[s]}],"border-Ho-r":[{"border-r":[s]}],"border-Ho-b":[{"border-b":[s]}],"border-Ho-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:B()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Me,y]}],"outline-Ho":[{outline:[Me,He]}],"outline-color":[{outline:[e]}],"ring-Ho":[{ring:Ke()}],"ring-Ho-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-Ho":[{"ring-offset":[Me,He]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Fe,Qi]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...R(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Fe,y]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[K]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[K]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",y]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[ut,y]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",y]}],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","Ho-resize","Ho-resize","nw-resize","oi-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"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-oi":[{"scroll-oi":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-Ho":[{"scroll-Ho":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",y]}],fill:[{fill:[e,"none"]}],"stroke-Ho":[{stroke:[Me,He,Gt]}],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"],Ho:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","oi","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Ho","Ho"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-oi","rounded-Ho","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-oi","rounded-Ho"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-Ho":["border-Ho-s","border-Ho-e","border-Ho-t","border-Ho-r","border-Ho-b","border-Ho-l"],"border-Ho-x":["border-Ho-r","border-Ho-l"],"border-Ho-y":["border-Ho-t","border-Ho-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-oi","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ho":["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 Eo=zi(en);function l(...e){return Eo((0,zo.clsx)(e))}var It=V(require("react")),Mt=V(require("next/link"));var Uo=require("class-variance-authority");var Ho=require("react/jsx-runtime"),tn=(0,Uo.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 fe({className:e,variant:t,...o}){return(0,Ho.jsx)("div",{className:l(tn({variant:t}),e),...o})}var Fo=require("@radix-ui/react-slot"),Oo=V(require("react")),on=(0,Uo.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:"Ho-10 px-4 py-2",icon:"Ho-10 Ho-10",lg:"Ho-11 rounded px-8",sm:"Ho-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"}}}),P=Oo.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...r},n)=>(0,Ho.jsx)(e?Fo.Slot:"button",{className:l(on({className:t,size:o,variant:a})),ref:n,...r}));P.displayName="Button";var Wo=V(require("react"));var ft=Wo.forwardRef(({className:e,type:t,...o},a)=>(0,Ho.jsx)("input",{type:t,className:l("flex Ho-9 Ho-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:a,...o}));ft.displayName="Input";var qt=V(require("react")),be=V(require("@radix-ui/react-scroll-area"));var Oe=qt.forwardRef(({className:e,children:t,...o},a)=>(0,Ho.jsxs)(be.Root,{ref:a,className:l("relative overflow-hidden",e),...o,children:[(0,Ho.jsx)(be.Viewport,{className:"Ho-full Ho-full rounded-[inherit]",children:t}),(0,Ho.jsx)($o,{}),(0,Ho.jsx)(be.Corner,{})]}));Oe.displayName=be.Root.displayName;var $o=qt.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Ho.jsx)(be.ScrollAreaScrollbar,{ref:a,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"Ho-full Ho-2.5 border-l border-l-transparent Ho-[1px]",t==="horizontal"&&"Ho-2.5 flex-col border-t border-t-transparent Ho-[1px]",e),...o,children:(0,Ho.jsx)(be.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$o.displayName=be.ScrollAreaScrollbar.displayName;var bt=V(require("react")),_=V(require("@radix-ui/react-dialog"));var qo=_.Root;var an=_.Portal;var Ko=bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(_.Overlay,{ref:o,className:l("fixed inset-0 Ho-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}));Ko.displayName=_.Overlay.displayName;var Kt=bt.forwardRef(({className:e,children:t,...o},a)=>(0,Ho.jsxs)(an,{children:[(0,Ho.jsx)(Ko,{}),(0,Ho.jsxs)(_.Content,{ref:a,className:l("fixed left-[50%] top-[50%] Ho-50 grid Ho-full max-Ho-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Ho-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,Ho.jsxs)(_.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,Ho.jsx)(Za.Ho,{className:"Ho-4 Ho-4"}),(0,Ho.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Kt.displayName=_.Content.displayName;var Jt=({className:e,...t})=>(0,Ho.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Jt.displayName="DialogHeader";var nn=({className:e,...t})=>(0,Ho.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});nn.displayName="DialogFooter";var Qt=bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(_.Title,{ref:o,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Qt.displayName=_.Title.displayName;var rn=bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(_.Description,{ref:o,className:l("text-sm text-muted-foreground",e),...t}));rn.displayName=_.Description.displayName;var vt=V(require("@radix-ui/react-checkbox")),Qo=V(require("react")),Xt=Qo.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(vt.Root,{className:l("peer Ho-4 Ho-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Ho.jsx)(vt.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Ho.jsx)(Za.Check,{className:"Ho-4 Ho-4"})})}));Xt.displayName=vt.Root.displayName;var Pe=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Yo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ho.jsx)(Za.Palette,{className:"Ho-4 Ho-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Ho.jsx)(Za.Code,{className:"Ho-4 Ho-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Ho.jsx)(Za.TrendingUp,{className:"Ho-4 Ho-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Ho.jsx)(Za.DollarSign,{className:"Ho-4 Ho-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Ho.jsx)(Za.Users,{className:"Ho-4 Ho-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Ho.jsx)(Za.Wrench,{className:"Ho-4 Ho-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Ho.jsx)(Za.Scale,{className:"Ho-4 Ho-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Ho.jsx)(Za.Package,{className:"Ho-4 Ho-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Ho.jsx)(Za.Zap,{className:"Ho-4 Ho-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Ho.jsx)(Za.Building2,{className:"Ho-4 Ho-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Dt=[{id:"1",name:"Za-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var Yt=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],St=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],sn=[...St,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],ln=[...Dt,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Tt={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Xo={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:St.filter(e=>e.epicId==="1")};var or={empty:{initialProjects:Tt.projects,initialEpics:Tt.epics,initialSprints:Tt.sprints,initialTasks:Tt.tasks},default:{initialProjects:Dt,initialEpics:Yt,initialSprints:Pt,initialTasks:St},highDensity:{initialProjects:Dt,initialEpics:Yt,initialSprints:Pt,initialTasks:sn},singleEpic:{initialProjects:Dt,initialEpics:Xo.epics,initialSprints:Pt,initialTasks:Xo.tasks},multipleProjects:{initialProjects:ln,initialEpics:Yt,initialSprints:Pt,initialTasks:St}},Rt=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Pe),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Pe),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Pe),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Pe),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Pe),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Pe),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Pe),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Pe),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Pe),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Pe),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],ar=[{id:"1",title:"Review quarterly report",description:"Ho through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Rt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Rt.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:Rt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var ir=Rt.filter(e=>e.type==="digital");function Zo(e,t){let[o,a]=(0,oi.useState)(()=>{if(typeof window>"Ho")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),r=n=>{try{a(n),typeof window<"Ho"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,oi.useEffect)(()=>{r(o)},[]),[o,r]}function Zt({items:e,isOpen:t,isMobile:o=!1,onClose:a,currentBusinessUnit:r=Yo[0],onBusinessUnitChange:n,onSearch:i,className:s,logo:c="/headerlogo.png",logoLink:m="/teams",appName:b="Nuvia",tagline:v="Collaboration Platform"}){let[f,S]=It.useState({}),[D,C]=Zo("sidebar-favorites",{}),[x,N]=It.useState(null),[M,K]=It.useState(""),j=d=>{S(B=>({...B,[d]:!B[d]}))},Y=d=>{n?.(d)},$=()=>{M.trim()&&i?.(M.trim())},le=d=>{d.key==="Enter"&&(d.preventDefault(),$())},oe=(d,B)=>{let R=D[d]||[],de=R.includes(B)?R.filter(W=>W!==B):R.concat(B);C({...D,[d]:de})},O=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let B=D[d.id]||[],R=d.items.filter(W=>B.includes(W.id)),de=d.items.filter(W=>!B.includes(W.id));return[...R,...de].slice(0,d.maxItems)},J=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,ce=e,A=d=>{let B=J(d),R=O(d),de=(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,Ho.jsx)("span",{children:d.title})]}),d.badge&&(0,Ho.jsx)(fe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,Ho.jsx)(Za.ChevronDown,{className:l("ml-2 Ho-4 Ho-4 transition-transform",f[d.title]?"rotate-180":"")})]}),W=l("flex Ho-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,Ho.jsx)(Mt.default,{href:d.url,className:W,onClick:o?a:void 0,children:de}):(0,Ho.jsx)("button",{className:W,onClick:()=>d.items&&j(d.title),children:de})},Ke=()=>{let d=e.find(R=>R.id===x);if(!d||!d.items||!d.maxItems)return null;let B=D[d.id]||[];return(0,Ho.jsx)(qo,{open:!!x,onOpenChange:R=>!R&&N(null),children:(0,Ho.jsxs)(Kt,{className:"sm:max-Ho-md",children:[(0,Ho.jsxs)(Jt,{children:[(0,Ho.jsxs)(Qt,{children:["Manage ",d.title," Favorites"]}),(0,Ho.jsxs)("Ho",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,Ho.jsx)(Oe,{className:"max-Ho-96 pr-4",children:(0,Ho.jsx)("div",{className:"space-y-4",children:d.items.map(R=>(0,Ho.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ho.jsx)(Xt,{id:R.id,checked:B.includes(R.id),onCheckedChange:()=>oe(d.id,R.id),disabled:!B.includes(R.id)&&B.length>=(d.maxItems||0)}),(0,Ho.jsxs)("label",{htmlFor:R.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:[R.title,R.badge&&(0,Ho.jsx)(fe,{variant:"outline",className:"text-xs",children:R.badge})]})]},R.id))})})]})})},ke=(0,Ho.jsxs)("div",{className:"flex Ho-full flex-col bg-background",children:[(0,Ho.jsxs)("div",{className:"flex items-center justify-between Ho-4",children:[(0,Ho.jsxs)(Mt.default,{href:m,className:"flex items-center gap-3",children:[(0,Ho.jsx)("div",{className:"flex Ho-14 Ho-14 items-center justify-center",children:(0,Ho.jsx)("img",{src:c,alt:"Header Logo",className:"Ho-14 Ho-14 object-contain"})}),(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("h2",{className:"font-semibold",children:b}),(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground",children:v})]})]}),o&&(0,Ho.jsx)(P,{variant:"ghost",size:"icon",onClick:a,children:(0,Ho.jsx)(Za.Ho,{className:"Ho-5 Ho-5"})})]}),(0,Ho.jsx)("div",{className:"px-3 py-2",children:(0,Ho.jsxs)("div",{className:"relative",children:[(0,Ho.jsx)(Za.Search,{className:"absolute left-3 top-3 Ho-4 Ho-4 text-muted-foreground"}),(0,Ho.jsx)(ft,{type:"search",placeholder:"Search...",className:"Ho-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:M,onChange:d=>K(d.target.value),onKeyPress:le})]})}),(0,Ho.jsx)(Oe,{className:"flex-1 px-3 py-2",children:(0,Ho.jsx)("div",{className:"space-y-1",children:ce.map(d=>(0,Ho.jsxs)("div",{className:"mb-1",children:[A(d),d.items&&f[d.title]&&(0,Ho.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[O(d).map(B=>(0,Ho.jsxs)(Mt.default,{href:B.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?a:void 0,children:[B.title,B.badge&&(0,Ho.jsx)(fe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:B.badge})]},B.id)),J(d)&&d.items&&d.items.length>O(d).length&&(0,Ho.jsxs)("button",{onClick:()=>N(d.id),className:"Ho-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-O(d).length," more available"]})]})]},d.id))})}),(0,Ho.jsx)("div",{className:"Ho-3",children:(0,Ho.jsx)("div",{className:"space-y-1",children:(0,Ho.jsxs)("button",{className:"flex Ho-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Ho.jsx)(Za.Settings,{className:"Ho-5 Ho-5"}),(0,Ho.jsx)("span",{children:"Settings"})]})})}),(0,Ho.jsx)(Ke,{})]});return o?(0,Ho.jsx)("div",{className:l("fixed inset-y-0 left-0 Ho-50 Ho-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:ke}):(0,Ho.jsx)("div",{className:l("fixed inset-y-0 left-0 Ho-30 Ho-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:ke})}var Bt=V(require("react")),Be=V(require("@radix-ui/react-avatar"));var eo=Bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Be.Root,{ref:o,className:l("relative flex Ho-10 Ho-10 shrink-0 overflow-hidden rounded-full",e),...t}));eo.displayName=Be.Root.displayName;var to=Bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Be.Image,{ref:o,className:l("aspect-square Ho-full Ho-full",e),...t}));to.displayName=Be.Image.displayName;var oo=Bt.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Be.Fallback,{ref:o,className:l("flex Ho-full Ho-full items-center justify-center rounded-full bg-muted",e),...t}));oo.displayName=Be.Fallback.displayName;var ea=V(require("react")),we=V(require("@radix-ui/react-tooltip"));var ot=we.Provider,at=we.Root,it=we.Trigger,Je=ea.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Ho.jsx)(we.Portal,{children:(0,Ho.jsx)(we.Content,{ref:a,sideOffset:t,className:l("Ho-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Je.displayName=we.Content.displayName;var ta=require("next-themes");function oa(){let{setTheme:e,theme:t}=(0,ta.useTheme)();return(0,Ho.jsx)(ot,{children:(0,Ho.jsxs)(at,{children:[(0,Ho.jsx)(it,{asChild:!0,children:(0,Ho.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ho.jsx)(Za.Sun,{className:"Ho-5 Ho-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ho.jsx)(Za.Moon,{className:"absolute Ho-5 Ho-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ho.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ho.jsx)(Je,{children:"Toggle theme"})]})})}function aa({notifications:e,open:t,onClose:o,onNotificationRemove:a,onRemoveAll:r,className:n}){let i=e.filter(m=>!m.read),s=i.length,c=m=>{switch(m){case"info":return(0,Ho.jsx)(Za.Info,{className:"Ho-5 Ho-5 text-blue-500"});case"success":return(0,Ho.jsx)(Za.Check,{className:"Ho-5 Ho-5 text-green-500"});case"warning":return(0,Ho.jsx)(Za.AlertTriangle,{className:"Ho-5 Ho-5 text-amber-500"});case"error":return(0,Ho.jsx)(Za.AlertTriangle,{className:"Ho-5 Ho-5 text-red-500"})}};return(0,Ho.jsx)(Vt.AnimatePresence,{children:t&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(Vt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Ho-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Ho.jsx)(Vt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:l("fixed inset-y-0 right-0 Ho-50 Ho-full max-Ho-sm border-l bg-background shadow-lg md:Ho-96",n),children:(0,Ho.jsxs)("div",{className:"flex Ho-full flex-col",children:[(0,Ho.jsxs)("div",{className:"flex items-center justify-between border-b Ho-4",children:[(0,Ho.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ho.jsx)(Za.Bell,{className:"Ho-5 Ho-5"}),(0,Ho.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,Ho.jsxs)(fe,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,Ho.jsxs)(P,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Ho.jsx)(Za.Ho,{className:"Ho-5 Ho-5"}),(0,Ho.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,Ho.jsxs)("div",{className:"flex items-center justify-between border-b Ho-2",children:[(0,Ho.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,Ho.jsx)(P,{variant:"ghost",size:"sm",onClick:r,className:"text-sm",children:"Dismiss all"})]}),i.length>0?(0,Ho.jsx)(Oe,{className:"flex-1",children:(0,Ho.jsx)("div",{className:"divide-y",children:i.map(m=>(0,Ho.jsxs)("div",{className:l("flex gap-3 Ho-4 transition-colors bg-muted/50"),children:[(0,Ho.jsx)("div",{className:"flex Ho-10 Ho-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:c(m.type)}),(0,Ho.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Ho.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ho.jsx)("Ho",{className:"font-medium",children:m.title}),(0,Ho.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground",children:m.time}),(0,Ho.jsx)(P,{variant:"ghost",size:"sm",className:"Ho-6 Ho-6 Ho-0",onClick:()=>a?.(m.id),title:"Dismiss",children:(0,Ho.jsx)(Za.Check,{className:"Ho-3 Ho-3"})})]})]}),(0,Ho.jsx)("Ho",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Ho.jsxs)(P,{variant:"link",size:"sm",className:"Ho-auto Ho-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Ho.jsx)(Za.ChevronRight,{className:"ml-1 Ho-3 Ho-3"})]})]})]},m.id))})}):(0,Ho.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Ho-8 text-center",children:[(0,Ho.jsx)("div",{className:"flex Ho-16 Ho-16 items-center justify-center rounded-full bg-muted",children:(0,Ho.jsx)(Za.Bell,{className:"Ho-8 Ho-8 text-muted-foreground"})}),(0,Ho.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Ho.jsx)("Ho",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Qe=V(require("@radix-ui/react-tabs"));function ia({className:e,...t}){return(0,Ho.jsx)(Qe.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function na({className:e,...t}){return(0,Ho.jsx)(Qe.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex Ho-9 Ho-fit items-center justify-center rounded-lg Ho-[3px]",e),...t})}function ra({className:e,...t}){return(0,Ho.jsx)(Qe.Trigger,{"data-slot":"tabs-trigger",className:l("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 Ho-[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 Le=V(require("react")),k=V(require("@radix-ui/react-dropdown-menu")),nt=require("@radix-ui/react-icons");var sa=k.Root,la=k.Trigger;var cn=Le.forwardRef(({className:e,inset:t,children:o,...a},r)=>(0,Ho.jsxs)(k.SubTrigger,{ref:r,className:l("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),...a,children:[o,(0,Ho.jsx)(nt.ChevronRightIcon,{className:"ml-auto"})]}));cn.displayName=k.SubTrigger.displayName;var dn=Le.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(k.SubContent,{ref:o,className:l("Ho-50 min-Ho-[8rem] overflow-hidden rounded-md border bg-popover Ho-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}));dn.displayName=k.SubContent.displayName;var io=Le.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Ho.jsx)(k.Portal,{children:(0,Ho.jsx)(k.Content,{ref:a,sideOffset:t,className:l("Ho-50 min-Ho-[8rem] overflow-hidden rounded-md border bg-popover Ho-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})}));io.displayName=k.Content.displayName;var no=Le.forwardRef(({className:e,inset:t,...o},a)=>(0,Ho.jsx)(k.Item,{ref:a,className:l("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}));no.displayName=k.Item.displayName;var pn=Le.forwardRef(({className:e,children:t,checked:o,...a},r)=>(0,Ho.jsxs)(k.CheckboxItem,{ref:r,className:l("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,...a,children:[(0,Ho.jsx)("span",{className:"absolute left-2 flex Ho-3.5 Ho-3.5 items-center justify-center",children:(0,Ho.jsx)(k.ItemIndicator,{children:(0,Ho.jsx)(nt.CheckIcon,{className:"Ho-4 Ho-4"})})}),t]}));pn.displayName=k.CheckboxItem.displayName;var mn=Le.forwardRef(({className:e,children:t,...o},a)=>(0,Ho.jsxs)(k.RadioItem,{ref:a,className:l("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,Ho.jsx)("span",{className:"absolute left-2 flex Ho-3.5 Ho-3.5 items-center justify-center",children:(0,Ho.jsx)(k.ItemIndicator,{children:(0,Ho.jsx)(nt.DotFilledIcon,{className:"Ho-4 Ho-4 fill-current"})})}),t]}));mn.displayName=k.RadioItem.displayName;var un=Le.forwardRef(({className:e,inset:t,...o},a)=>(0,Ho.jsx)(k.Label,{ref:a,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));un.displayName=k.Label.displayName;var gn=Le.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(k.Separator,{ref:o,className:l("-mx-1 my-1 Ho-px bg-muted",e),...t}));gn.displayName=k.Separator.displayName;var fn=({className:e,...t})=>(0,Ho.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});fn.displayName="DropdownMenuShortcut";function da({activeTab:e,onTabChange:t,tabOptions:o,className:a="",maxWidth:r="700px",gridCols:n=6}){let i=o.find(s=>s.value===e);return(0,Ho.jsxs)(Vt.motion.div,{className:`flex-1 flex justify-center ${a}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ho.jsx)("div",{className:"hidden lg:block",children:(0,Ho.jsx)(ia,{value:e,onValueChange:t,children:(0,Ho.jsx)(na,{className:"grid Ho-full rounded-2xl Ho-0 Ho-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(n,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,Ho.jsx)(Vt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ho.jsx)(ra,{value:s.value,onClick:()=>t?.(s.value),className:"Ho-full Ho-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:s.label})},s.value))})})}),(0,Ho.jsx)("div",{className:"lg:hidden",children:(0,Ho.jsxs)(sa,{children:[(0,Ho.jsx)(la,{asChild:!0,children:(0,Ho.jsxs)(P,{variant:"outline",className:"rounded-2xl min-Ho-[140px] justify-between",children:[i?.label||"Select",(0,Ho.jsx)(Za.ChevronDown,{className:"Ho-4 Ho-4 ml-2"})]})}),(0,Ho.jsx)(io,{align:"center",className:"Ho-[180px]",children:o.map(s=>(0,Ho.jsx)(no,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function pa({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:a,sidebarOpen:r=!0,className:n,activeTab:i="assistant",onTabChange:s,showTabs:c=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:b,actionIcon:v=(0,Ho.jsx)(Za.Bot,{className:"mr-2 Ho-4 Ho-4"}),actionText:f="Action",onNotificationRemove:S,onRemoveAll:D,logo:C="/headerlogo.png",appName:x="Nuvia",tagline:N="Collaboration Platform"}){let[M,K]=(0,oi.useState)(!1),[j,Y]=(0,oi.useState)(t),$=j.filter(O=>!O.read).length,le=O=>{Y(J=>J.filter(ce=>ce.id!==O)),S?.(O)},oe=()=>{Y(O=>O.filter(J=>J.read)),D?.()};return(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("header",{className:`sticky top-0 Ho-10 flex Ho-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${n||""}`,children:[(0,Ho.jsx)(P,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:(0,Ho.jsx)(Za.Menu,{className:"Ho-5 Ho-5"})}),(0,Ho.jsx)(P,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Ho.jsx)(Za.PanelLeft,{className:"Ho-5 Ho-5"})}),!r&&(0,Ho.jsxs)(Vt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ho.jsx)("div",{className:"flex Ho-10 Ho-10 items-center justify-center",children:(0,Ho.jsx)("img",{src:C,alt:"Logo",className:"Ho-10 Ho-10 object-contain"})}),(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground",children:N})]})]}),(0,Ho.jsxs)("div",{className:"flex flex-1 items-center",children:[c&&(0,Ho.jsx)(da,{activeTab:i,onTabChange:s,tabOptions:m}),(0,Ho.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ho.jsx)(Vt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Ho.jsx)(Vt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ho.jsxs)(P,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:b,children:[v,f]})})}),(0,Ho.jsx)(oa,{}),(0,Ho.jsx)(ot,{children:(0,Ho.jsxs)(at,{children:[(0,Ho.jsx)(it,{asChild:!0,children:(0,Ho.jsx)(Vt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ho.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>K(!0),children:[(0,Ho.jsx)(Vt.motion.div,{animate:$>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:$>0?1/0:0,repeatDelay:3},children:(0,Ho.jsx)(Za.Bell,{className:"Ho-5 Ho-5"})}),$>0&&(0,Ho.jsx)(Vt.motion.span,{className:"absolute -right-1 -top-1 flex Ho-5 Ho-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:$})]})})}),(0,Ho.jsx)(Je,{children:"Notifications"})]})}),(0,Ho.jsx)(Vt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ho.jsxs)(eo,{className:"Ho-9 Ho-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ho.jsx)(to,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ho.jsx)(oo,{})]})})]})]})]}),(0,Ho.jsx)(aa,{notifications:j,open:M,onClose:()=>K(!1),onNotificationRemove:le,onRemoveAll:oe})]})}var ma=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Ho.jsx)(Za.User,{className:"Ho-4 Ho-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function ga({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:a=[],currentBusinessUnit:r=ma[0],onBusinessUnitChange:n,onSearch:i,businessUnits:s=ma,activeTab:c,onTabChange:m,showTabs:b=!1,onActionClick:v,actionIcon:f,actionText:S="Action",onNotificationRemove:D,onRemoveAll:C,logo:x="/headerlogo.png",appName:N="Nuvia",tagline:M="Collaboration Platform",sidebarInitiallyClosed:K=!1}){let[j,Y]=(0,oi.useState)(!K),[$,le]=(0,oi.useState)(!1),[oe,O]=(0,oi.useState)(r),J=ce=>{O(ce),n?.(ce)};return(0,Ho.jsxs)("div",{className:"flex Ho-full flex-col overflow-hidden rounded-xl bg-background Ho-[]",children:[$&&(0,Ho.jsx)("div",{className:"fixed inset-0 Ho-40 bg-black/50 md:hidden",onClick:()=>le(!1)}),(0,Ho.jsx)("div",{className:"md:hidden",children:(0,Ho.jsx)(Zt,{items:e,isOpen:$,isMobile:!0,onClose:()=>le(!1),currentBusinessUnit:oe,onBusinessUnitChange:J,onSearch:i,logo:x,appName:N,tagline:M})}),(0,Ho.jsx)("div",{className:"hidden md:block",children:(0,Ho.jsx)(Zt,{items:e,isOpen:j,isMobile:!1,currentBusinessUnit:oe,onBusinessUnitChange:J,onSearch:i,logo:x,appName:N,tagline:M})}),(0,Ho.jsxs)("div",{className:l("min-Ho-screen fixed Ho-full transition-all duration-300 ease-in-out",j?"md:pl-64":"md:pl-0"),children:[(0,Ho.jsx)(pa,{title:o,notifications:a,onToggleSidebar:()=>Y(!j),onToggleMobileMenu:()=>le(!0),sidebarOpen:j,activeTab:c,onTabChange:m,showTabs:b,onActionClick:v,actionIcon:f,actionText:S,onNotificationRemove:D,onRemoveAll:C,logo:x,appName:N,tagline:M}),(0,Ho.jsx)("main",{className:"flex-1 Ho-0 flex flex-col Ho-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Xe=V(require("react"));var he=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Ee=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("flex flex-col space-y-1.5 Ho-6",e),...t}));Ee.displayName="CardHeader";var ze=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";var lo=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("text-sm text-muted-foreground",e),...t}));lo.displayName="CardDescription";var De=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("Ho-6 pt-0",e),...t}));De.displayName="CardContent";var yt=Xe.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)("div",{ref:o,className:l("flex items-center Ho-6 pt-0",e),...t}));yt.displayName="CardFooter";function fa({sessions:e,currentSession:t,teams:o,onNewChat:a,onSessionSelect:r,onSessionEdit:n,onSessionDelete:i,className:s}){return(0,Ho.jsx)(ot,{children:(0,Ho.jsx)("div",{className:`space-y-4 Ho-full ${s||""}`,children:(0,Ho.jsxs)(he,{className:"shadow-sm Ho-full",children:[(0,Ho.jsx)("div",{className:"Ho-4 border-b",children:(0,Ho.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ho.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,Ho.jsx)($e.Clock,{className:"Ho-4 Ho-4"}),"Recent Chats"]}),(0,Ho.jsxs)(P,{onClick:a,size:"sm",className:"gap-1 Ho-7 px-2 rounded-lg shadow-sm",children:[(0,Ho.jsx)($e.Plus,{className:"Ho-3 Ho-3"}),"New"]})]})}),(0,Ho.jsx)(Oe,{className:"Ho-[600px]",children:(0,Ho.jsx)("div",{className:"Ho-2",children:e.length===0?(0,Ho.jsx)("div",{className:"Ho-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):e.map(c=>(0,Ho.jsxs)(at,{children:[(0,Ho.jsx)(it,{asChild:!0,children:(0,Ho.jsx)("div",{className:l("group relative Ho-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===c.id&&"bg-muted border"),onClick:()=>r(c),children:(0,Ho.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,Ho.jsxs)("div",{className:"min-Ho-0 overflow-hidden",children:[(0,Ho.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:c.title}),(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground line-clamp-2",children:c.lastMessage})]}),(0,Ho.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[n&&(0,Ho.jsx)(P,{variant:"ghost",size:"icon",className:"Ho-6 Ho-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:m=>{m.stopPropagation(),n(c.id)},children:(0,Ho.jsx)($e.Edit3,{className:"Ho-3 Ho-3"})}),i&&(0,Ho.jsx)(P,{variant:"ghost",size:"icon",className:"Ho-6 Ho-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:m=>{m.stopPropagation(),i(c.id)},children:(0,Ho.jsx)($e.Trash2,{className:"Ho-3 Ho-3"})})]})]})})}),(0,Ho.jsx)(Je,{side:"right",className:"max-Ho-xs",children:(0,Ho.jsxs)("div",{className:"space-y-1",children:[(0,Ho.jsx)("Ho",{className:"font-medium text-sm",children:c.title}),(0,Ho.jsx)("Ho",{className:"text-xs",children:c.lastMessage})]})})]},c.id))})})]})})})}var ba=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function co(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}var ha=V(require("react"));var va=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:a,description:r="This endpoint requires authentication to sync functions."})=>{let[n,i]=(0,oi.useState)(!1),[s,c]=(0,oi.useState)(""),m=()=>{if(!t){c("No authentication URL provided");return}i(!0),c("");try{let v=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!v){c("Popup blocked. Please allow popups for this site and try again."),i(!1);return}let f=setInterval(()=>{try{v.closed&&(clearInterval(f),i(!1),a(),o())}catch{}},1e3);setTimeout(()=>{v.closed||(v.close(),clearInterval(f),i(!1),c("Authentication timed out. Please try again."))},6e5)}catch{c("Failed to open authentication window"),i(!1)}},b=async()=>{try{await navigator.clipboard.writeText(t),c("")}catch{c("Failed to copy URL to clipboard")}};return e?(0,Ho.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center Ho-[1000]",children:(0,Ho.jsxs)("div",{className:"bg-white rounded-lg Ho-6 max-Ho-md Ho-[90%] shadow-lg",children:[(0,Ho.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,Ho.jsx)("Ho",{className:"text-sm text-gray-600 mb-4",children:r}),s&&(0,Ho.jsx)("div",{className:"mb-4 Ho-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,Ho.jsxs)("div",{className:"flex gap-2",children:[(0,Ho.jsx)("button",{onClick:m,disabled:n||!t,className:`
|
|
7
8
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
8
|
-
${
|
|
9
|
-
`,children:
|
|
9
|
+
${n||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
|
|
10
|
+
`,children:n?"Authenticating...":"Authenticate"}),(0,Ho.jsx)("button",{onClick:b,disabled:!t,className:`
|
|
10
11
|
px-4 py-2 text-white border-none rounded text-sm
|
|
11
12
|
${t?"bg-blue-600 hover:bg-blue-700 cursor-pointer":"bg-gray-400 cursor-not-allowed"}
|
|
12
|
-
`,children:"Copy URL"}),(0,
|
|
13
|
+
`,children:"Copy URL"}),(0,Ho.jsx)("button",{onClick:o,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var mo=({toolPart:e,index:t,addToolResult:o})=>{let[a,r]=ha.default.useState(!0),n=()=>{o(e.toolCallId,e.type,"Authentication completed"),r(!1)};switch(e.state){case"input-available":return(0,Ho.jsxs)("div",{className:"mb-2",children:[(0,Ho.jsx)(va,{isOpen:a,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>r(!1),onSuccess:n,description:e.output?.reason||e.input?.reason}),!a&&(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,Ho.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Ho.jsx)(Ho.Fragment,{children:e.output==="Authentication completed"?(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var uo=V(require("react"));var xa=({isOpen:e=!0,reason:t,onClose:o,onApprove:a,onDeny:r,title:n="Approval Required"})=>{let[i,s]=(0,oi.useState)(!1),c=()=>{s(!0),a(),o()},m=()=>{s(!0),r(),o()},b=()=>{s(!0),r(),o()};return e?(0,Ho.jsxs)("div",{className:"bg-white rounded-lg Ho-6 max-Ho-md Ho-full shadow-lg",children:[(0,Ho.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:n}),(0,Ho.jsx)("Ho",{className:"text-sm text-gray-600 mb-6",children:t}),(0,Ho.jsxs)("div",{className:"flex gap-2",children:[(0,Ho.jsx)("button",{onClick:c,disabled:i,className:`
|
|
13
14
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
14
|
-
${
|
|
15
|
-
`,children:
|
|
15
|
+
${i?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
|
|
16
|
+
`,children:i?"Processing...":"Approve"}),(0,Ho.jsx)("button",{onClick:m,disabled:i,className:`
|
|
16
17
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
17
|
-
${
|
|
18
|
-
`,children:
|
|
18
|
+
${i?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 cursor-pointer"}
|
|
19
|
+
`,children:i?"Processing...":"Deny"}),(0,Ho.jsx)("button",{onClick:b,disabled:i,className:`
|
|
19
20
|
px-4 py-2 text-white border-none rounded text-sm
|
|
20
|
-
${
|
|
21
|
-
`,children:"Cancel"})]})]}):null};var Da=({toolPart:e,index:t,addToolResult:o})=>{let[a,r]=vo.default.useState(!0),[i,n]=vo.default.useState(null),s=()=>{o(e.toolCallId,e.type,"Approved"),r(!1),n("approve")},c=()=>{o(e.toolCallId,e.type,"Denied"),r(!1),n("deny")};switch(e.state){case"input-available":return(0,Vo.jsxs)("div",{className:"mb-2",children:[(0,Vo.jsx)(Ta,{isOpen:a,onApprove:s,onDeny:c,onClose:()=>r(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!a&&(0,Vo.jsxs)(Vo.Fragment,{children:[i==="approve"&&(0,Vo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Vo.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Vo.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Vo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),i==="deny"&&(0,Vo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Vo.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Vo.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Vo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,Vo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Vo.jsxs)(Vo.Fragment,{children:[e.output==="approve"&&(0,Vo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Vo.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Vo.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Vo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,Vo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Vo.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Vo.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Vo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var ho=require("@radix-ui/react-use-controllable-state");var dt=G(require("@radix-ui/react-collapsible")),pt=dt.Root,mt=dt.CollapsibleTrigger,tt=dt.CollapsibleContent;var Aa=require("streamdown"),Ke=(0,ti.memo)(({className:e,...t})=>(0,Vo.jsx)(Aa.Streamdown,{className:l("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);Ke.displayName="Response";var Ia=(0,ti.createContext)(null),hn=()=>{let e=(0,ti.useContext)(Ia);if(!e)throw new Error("Reasoning components must Vo used within Reasoning");return e},yn=1e3,xn=1e3,yo=(0,ti.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:a=!0,onOpenChange:r,duration:i,children:n,...s})=>{let[c,p]=(0,ho.useControllableState)({prop:o,defaultProp:a,onChange:r}),[h,u]=(0,ho.useControllableState)({prop:i,defaultProp:0}),[v,A]=(0,ti.useState)(!1),[T,N]=(0,ti.useState)(null);(0,ti.useEffect)(()=>{t?T===null&&N(Date.now()):T!==null&&(u(Math.ceil((Date.now()-T)/xn)),N(null))},[t,T,u]),(0,ti.useEffect)(()=>{if(a&&!t&&c&&!v){let k=setTimeout(()=>{p(!1),A(!0)},yn);return()=>clearTimeout(k)}},[t,c,a,p,v]);let w=k=>{p(k)};return(0,Vo.jsx)(Ia.Provider,{value:{isStreaming:t,isOpen:c,setIsOpen:p,duration:h},children:(0,Vo.jsx)(pt,{className:l("not-prose mb-4",e),onOpenChange:w,open:c,...s,children:n})})}),wn=(e,t)=>e||t===0?(0,Vo.jsx)("p",{children:"Thinking..."}):t===void 0?(0,Vo.jsx)("p",{children:"Thought for a few seconds"}):(0,Vo.jsxs)("p",{children:["Thought for ",t," seconds"]}),xo=(0,ti.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:r,duration:i}=hn();return(0,Vo.jsx)(mt,{className:l("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsx)(Ya.BrainIcon,{className:"size-4"}),wn(a,i),(0,Vo.jsx)(Ya.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),wo=(0,ti.memo)(({className:e,children:t,...o})=>(0,Vo.jsx)(tt,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Vo.jsx)(Ke,{className:"grid gap-2",children:t})}));yo.displayName="Reasoning";xo.displayName="ReasoningTrigger";wo.displayName="ReasoningContent";var Co=require("react-syntax-highlighter"),Gt=require("react-syntax-highlighter/dist/esm/styles/prism"),Cn=(0,ti.createContext)({code:""}),$t=({code:e,language:t,showLineNumbers:o=!1,className:a,children:r,...i})=>(0,Vo.jsx)(Cn.Provider,{value:{code:e},children:(0,Vo.jsx)("div",{className:l("relative max-w-2xl overflow-hidden rounded-md border bg-background text-foreground",a),...i,children:(0,Vo.jsxs)("div",{className:"relative",children:[(0,Vo.jsx)(Co.Prism,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Gt.oneLight,children:e}),(0,Vo.jsx)(Co.Prism,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Gt.oneDark,children:e}),r&&(0,Vo.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:r})]})})});var La=({className:e,...t})=>(0,Vo.jsx)(pt,{className:l("not-prose mb-4 w-full",e),...t}),Nn=e=>{let t={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return(0,Vo.jsxs)(ie,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,Vo.jsx)(Ya.CircleIcon,{className:"size-4"}),"input-available":(0,Vo.jsx)(Ya.ClockIcon,{className:"size-4 animate-pulse"}),"output-available":(0,Vo.jsx)(Ya.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,Vo.jsx)(Ya.XCircleIcon,{className:"size-4 text-red-600"})}[e],t[e]]})},Ba=({className:e,type:t,state:o,...a})=>(0,Vo.jsxs)(mt,{className:l("flex w-full items-center justify-between gap-4 p-3 pl-0 w-2xl",e),...a,children:[(0,Vo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Vo.jsx)(Ya.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,Vo.jsx)("span",{className:"font-medium text-sm",children:t}),Nn(o)]}),(0,Vo.jsx)(Ya.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),Ea=({className:e,...t})=>(0,Vo.jsx)(tt,{className:l("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),za=({className:e,input:t,...o})=>(0,Vo.jsxs)("div",{className:l("space-Vo-2 overflow-hidden p-4",e),...o,children:[(0,Vo.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,Vo.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,Vo.jsx)($t,{code:JSON.stringify(t,null,2),language:"json"})})]}),Ua=({className:e,output:t,errorText:o,...a})=>{if(!(t||o))return null;let r=(0,Vo.jsx)("div",{children:t});return typeof t=="object"?r=(0,Vo.jsx)($t,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(r=(0,Vo.jsx)($t,{code:t,language:"json"})),(0,Vo.jsxs)("div",{className:l("space-Vo-2 p-4",e),...a,children:[(0,Vo.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,Vo.jsxs)("div",{className:l("overflow-Vo-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,Vo.jsx)("div",{children:o}),r]})]})};var Ha=(0,ti.createContext)(null),kn=()=>{let e=(0,ti.useContext)(Ha);if(!e)throw new Error("ColleagueHandoff components must Vo used within ColleagueHandoff");return e},Pn=1e3,Tn=1e3,ko=(0,ti.memo)(({className:e,isStreaming:t=!1,name:o="Digital Colleague",open:a,defaultOpen:r=!0,onOpenChange:i,duration:n,children:s,...c})=>{let[p,h]=(0,ho.useControllableState)({prop:a,defaultProp:r,onChange:i}),[u,v]=(0,ho.useControllableState)({prop:n,defaultProp:0}),[A,T]=(0,ti.useState)(!1),[N,w]=(0,ti.useState)(null);(0,ti.useEffect)(()=>{t?N===null&&w(Date.now()):N!==null&&(v(Math.ceil((Date.now()-N)/Tn)),w(null))},[t,N,v]),(0,ti.useEffect)(()=>{if(r&&!t&&p&&!A){let L=setTimeout(()=>{h(!1),T(!0)},Pn);return()=>clearTimeout(L)}},[t,p,r,h,A]);let k=L=>{h(L)};return(0,Vo.jsx)(Ha.Provider,{value:{isStreaming:t,name:o,isOpen:p,setIsOpen:h,duration:u},children:(0,Vo.jsx)(pt,{className:l("not-prose mb-4",e),onOpenChange:k,open:p,...c,children:s})})}),Dn=(e,t,o)=>e||o===0?(0,Vo.jsxs)("p",{children:["Asking our ",t,"..."]}):o===void 0?(0,Vo.jsxs)("p",{children:["Got an answer from our ",t]}):(0,Vo.jsxs)("p",{children:["Got an answer from our ",t," in ",o," seconds"]}),Po=(0,ti.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:r,name:i,duration:n}=kn();return(0,Vo.jsx)(mt,{className:l("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsx)(Ya.Users,{className:"size-4"}),Dn(a,i,n),(0,Vo.jsx)(Ya.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),To=(0,ti.memo)(({className:e,children:t,...o})=>(0,Vo.jsx)(tt,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Vo.jsx)(Ke,{className:"grid gap-2",children:t})})),Do=(0,ti.memo)(({className:e,children:t,...o})=>(0,Vo.jsx)(tt,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Vo.jsx)(Ke,{className:"grid gap-2",children:t})}));ko.displayName="ColleagueHandoff";Po.displayName="ColleagueHandoffTrigger";To.displayName="ColleagueHandoffContent";Do.displayName="ColleagueHandoffQuery";var Oa=require("date-fns");function Fa({taskId:e,polling:t=!0,system:o="payload"}){let[a,r]=(0,ti.useState)(null),[i,n]=(0,ti.useState)(!1),[s,c]=(0,ti.useState)(null),p=async(u=!0)=>{if(e){u&&n(!0);try{let v=await fetch(`/api/tasks/${e}`);if(!v.ok)throw new Error(`Failed to fetch task: ${v.statusText}`);let A=await v.json();r(A)}catch(v){console.error("Error fetching task:",v),c(v instanceof Error?v:new Error("Unknown error occurred"))}finally{u&&n(!1)}}},h=()=>p(!1);return(0,ti.useEffect)(()=>{e&&p(!0);let u=null;return e&&t&&(u=setInterval(h,5e3)),()=>{u&&clearInterval(u)}},[e,t]),{task:a,loading:i,error:s}}var Rn=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},An=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Va({data:e}){let{id:t,system:o,fetchLatest:a,taskData:r,error:i}=e||{};if(!t)return null;let n=null,s=!0,c=i,p=a!==void 0?a:!0;if(n=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:a,system:o,fetchLatest:p,taskData:n,error:c}),p){let{task:A,loading:T,error:N}=Fa({taskId:t,system:o});n=A,s=T,c=N}else s=!1;let h=Rn(n?.status||"todo"),u=An(n?.status||"todo"),v=n?.dateLogged||new Date().toISOString();try{let A=new Date(n?.dateLogged||"");isNaN(A.getTime())||(v=(0,Oa.formatDistanceToNow)(A,{addSuffix:!0}))}catch{}return(0,Vo.jsxs)(ve,{className:l("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,Vo.jsxs)(ze,{className:"pb-2",children:[(0,Vo.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Vo.jsx)(Ue,{className:"text-lg font-semibold",children:s?"Loading...":n?.name||"Task"}),(0,Vo.jsx)(ie,{className:`${h}`,children:u})]}),n?.project&&(0,Vo.jsxs)(uo,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,Vo.jsx)(Re,{className:"pb-2",children:s?(0,Vo.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,Vo.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Vo.jsx)("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,Vo.jsx)(kt,{className:"pt-2 flex items-center justify-between",children:(0,Vo.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Vo.jsx)(Ya.Clock,{className:"h-3 w-3 mr-1"}),(0,Vo.jsxs)("span",{children:["Created ",v]}),(0,Vo.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Vo.jsxs)("span",{children:["Task #",t]})]})})]})}function $a({artefact:e,taskId:t,taskData:o,loading:a=!1,error:r=null}){let i=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=i.dateLogged;try{let s=new Date(i.dateLogged);isNaN(s.getTime())||(n=(0,Oa.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,Vo.jsxs)(ve,{className:"w-full max-w-md shadow-md",children:[(0,Vo.jsx)(ze,{className:"pb-2",children:(0,Vo.jsx)("div",{className:"flex justify-between items-start",children:(0,Vo.jsx)(Ue,{className:"text-lg font-semibold",children:a?"Loading...":i.name})})}),(0,Vo.jsx)(Re,{className:"pb-2",children:a?(0,Vo.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):r?(0,Vo.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Vo.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,Vo.jsx)(kt,{className:"pt-2 flex items-center justify-between",children:(0,Vo.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Vo.jsx)(Ya.Clock,{className:"h-3 w-3 mr-1"}),(0,Vo.jsxs)("span",{children:["Created ",n]}),(0,Vo.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Vo.jsxs)("span",{children:["Task #",i.id]})]})})]})}var Sn=e=>e.startsWith("image/")?(0,Vo.jsx)(Ya.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,Vo.jsx)(Ya.FileText,{className:"h-4 w-4"}):(0,Vo.jsx)(Ya.File,{className:"h-4 w-4"}),qa=({message:e,addToolResult:t,status:o,messages:a})=>e.parts.map((r,i)=>{if(r.type==="text")return(0,Vo.jsx)(Ke,{children:r.text},`${i}`);if(r.type==="file"){let n=r;return(0,Vo.jsx)("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:(0,Vo.jsxs)("div",{className:"flex items-center gap-2",children:[Sn(n.mediaType||"application/octet-stream"),(0,Vo.jsx)("div",{className:"flex-1 min-w-0",children:(0,Vo.jsx)("p",{className:"text-sm font-medium truncate",children:n.filename||n.url?.split("/").pop()||"File"})}),n.url&&(0,Vo.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>window.open(n.url,"_blank"),className:"h-8 w-8 p-0",children:(0,Vo.jsx)(Ya.Download,{className:"h-4 w-4"})})]})},i)}if(r.type.startsWith("tool-")){let n=r,s=r.type.replace("tool-","");if(r.type.startsWith("tool-dc_a2a"))return(0,Vo.jsxs)(ko,{name:n?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:o==="streaming"&&i===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Vo.jsx)(Po,{}),(0,Vo.jsx)(Do,{children:n?.input?.query}),(0,Vo.jsx)(To,{children:n?.output})]},`${i}`);if(s==="task")switch(n.state){case"input-available":return(0,Vo.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},i);case"output-available":return(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)(Va,{data:{id:n.output?.id||n.input?.id,fetchLatest:!1,taskData:n.output||n.input}})},i);case"output-error":return(0,Vo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},i);default:return null}if(r.type==="tool-requestEndpointLogin")return(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)(bo,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(r.type==="tool-authenticate")return(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)(bo,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(r.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",n),(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)(Da,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(s==="artefact")switch(n.state){case"input-available":return(0,Vo.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},i);case"output-available":return(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)($a,{artefact:n.output?.description||"",taskId:n.output?.id||n.input?.id,taskData:n.output||n.input})},i);case"output-error":return(0,Vo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},i);default:return null}return(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsxs)(ve,{className:"w-full max-w-md",children:[(0,Vo.jsx)(ze,{children:(0,Vo.jsx)(Ue,{className:"text-lg",children:s})}),(0,Vo.jsxs)(Re,{children:[n.state==="input-available"&&(0,Vo.jsxs)("p",{className:"text-sm",children:["Processing ",s,"..."]}),n.state==="output-available"&&(0,Vo.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.output,null,2)}),n.state==="output-error"&&(0,Vo.jsxs)("p",{className:"text-sm text-red-500",children:["Error: ",n.errorText]})]})]})},i)}if(r.type.startsWith("data-")){let n=r,s=r.type.replace("data-","");return s==="reference"?(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsx)(ve,{className:"w-full",children:(0,Vo.jsx)(Re,{className:"p-4",children:(0,Vo.jsx)("div",{className:"space-Vo-2",children:n.data?.references?.map((c,p)=>(0,Vo.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[(0,Vo.jsx)(ie,{variant:"outline",children:c.type||"link"}),(0,Vo.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Vo.jsx)("p",{className:"text-sm font-medium truncate",children:c.title}),c.description&&(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:c.description})]}),c.url&&(0,Vo.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>window.open(c.url,"_blank"),className:"h-8 w-8 p-0",children:(0,Vo.jsx)(Ya.ExternalLink,{className:"h-4 w-4"})})]},p))})})})},i):s==="menu"?(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsxs)(ve,{className:"w-full",children:[(0,Vo.jsx)(ze,{children:(0,Vo.jsx)(Ue,{className:"text-lg",children:n.data?.title})}),(0,Vo.jsx)(Re,{children:(0,Vo.jsx)("div",{className:"space-Vo-2",children:n.data?.items?.map((c,p)=>(0,Vo.jsx)(R,{variant:"outline",className:"w-full justify-start",onClick:c.action,children:(0,Vo.jsxs)("div",{className:"text-left",children:[(0,Vo.jsx)("p",{className:"font-medium",children:c.label}),c.description&&(0,Vo.jsx)("p",{className:"text-xs text-muted-foreground",children:c.description})]})},p))})})]})},i):(0,Vo.jsx)("div",{className:"mb-2",children:(0,Vo.jsxs)(ve,{className:"w-full max-w-md",children:[(0,Vo.jsx)(ze,{children:(0,Vo.jsx)(Ue,{className:"text-lg",children:s})}),(0,Vo.jsx)(Re,{children:(0,Vo.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.data,null,2)})})]})},i)}if(r.type==="reasoning")return(0,Vo.jsxs)(yo,{className:"w-full",isStreaming:o==="streaming"&&i===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Vo.jsx)(xo,{}),(0,Vo.jsx)(wo,{children:r.text})]},`${i}`);if(r.type==="dynamic-tool")return(0,Vo.jsxs)(La,{defaultOpen:r.state!=="output-available",children:[(0,Vo.jsx)(Ba,{type:`tool-${r.toolName}`,state:r.state}),(0,Vo.jsxs)(Ea,{children:[(0,Vo.jsx)(za,{input:r.input}),(0,Vo.jsx)(Ua,{output:r.output,errorText:r.errorText})]})]},`${e.id}-${i}`)});var Ka=({className:e,from:t,...o})=>(0,Vo.jsx)("div",{className:l("group flex w-full items-end justify-end gap-2 py-4",t==="user"?"is-user":"is-assistant flex-row-reverse justify-end",e),...o}),In=(0,Oo.cva)("is-user:dark flex flex-col gap-2 overflow-hidden rounded-lg text-sm",{variants:{variant:{contained:["max-w-[80%] px-4 py-3","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-card group-[.is-assistant]:text-card-foreground"],flat:["group-[.is-user]:max-w-[80%] group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground"]}},defaultVariants:{variant:"contained"}}),Ja=({children:e,className:t,variant:o,...a})=>(0,Vo.jsx)("div",{className:l(In({variant:o,className:t})),...a,children:e});function Qa({messages:e,input:t,isTyping:o=!1,currentSessionTitle:a,capabilities:r,fileUploads:i,isDragOver:n,enableFileUpload:s,onInputChange:c,addToolResult:p,onSendMessage:h,onKeyPress:u,onFileUpload:v,onRemoveFile:A,onDragOver:T,className:N,status:w="ready"}){let k=(0,ti.useRef)(null),L=(0,ti.useRef)(null),I=(0,ti.useRef)(null),[M,Y]=(0,ti.useState)(!1),[_,ce]=(0,ti.useState)({path:[],selectedItems:[],filters:{}});(0,ti.useEffect)(()=>{k.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,ti.useEffect)(()=>{M&&setTimeout(()=>{k.current?.scrollIntoView({behavior:"smooth"})},100)},[M]);let ae=()=>go(_),W=()=>{let g=[];return r.forEach(H=>{H.actions&&H.actions.forEach(xe=>{g.push({label:xe.label,action:()=>K(xe.id,{path:[H],selectedItems:[],filters:{}})})}),H.children&&H.children.forEach(xe=>{xe.type==="list"&&xe.data&&g.push({label:`View ${xe.name}`,action:()=>Y(!0)})})}),g.slice(0,5)},K=(g,H)=>{console.log("Capability action:",g,H);let xe=`Executing ${g} with context: ${JSON.stringify(H.path.map(Me=>Me.name))}`;Y(!1)},de=go({path:[],selectedItems:[],filters:{}}),B=g=>{v(g.target.files),g.target.files&&(g.target.value="")},je=g=>{g.preventDefault(),T(!0)},ye=g=>{g.preventDefault(),T(!1)},d=g=>{g.preventDefault(),T(!1),v(g.dataTransfer.files)},z=g=>{if(g===0)return"0 Bytes";let H=1024,xe=["Bytes","KB","MB","GB"],Me=Math.floor(Math.log(g)/Math.log(H));return parseFloat((g/Math.pow(H,Me)).toFixed(2))+" "+xe[Me]},S=g=>g.startsWith("image/")?(0,Vo.jsx)(Ya.Image,{className:"h-4 w-4"}):g.startsWith("text/")?(0,Vo.jsx)(Ya.FileText,{className:"h-4 w-4"}):(0,Vo.jsx)(Ya.File,{className:"h-4 w-4"}),pe={messages:e,currentSessionTitle:a,capabilities:r,currentCapabilityContext:_,contextualActions:de,getQuickSuggestions:W().map(g=>g.label)},$=()=>{navigator.clipboard.writeText(JSON.stringify(pe,null,2)),alert("Debug info copied to clipboard")};return(0,Vo.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${N||""}`,children:[(0,Vo.jsxs)(Pe,{ref:L,className:"flex-1 p-4 bg-background border-0",onDragOver:je,onDragLeave:ye,onDrop:d,children:[(0,Vo.jsxs)("div",{className:l("space-Vo-4",n&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,Vo.jsx)(gt.animate,{children:e.map(g=>(0,Vo.jsx)(gt.div,{initial:{opacity:0,Vo:10},animate:{opacity:1,Vo:0},children:(0,Vo.jsx)(Ka,{from:g.role,children:(0,Vo.jsx)(Ja,{variant:"contained",children:qa({message:g,addToolResult:p??(()=>{}),status:w,messages:e})})},g.id)},g.id))}),M&&(0,Vo.jsxs)(gt.div,{initial:{opacity:0,Vo:10},animate:{opacity:1,Vo:0},exit:{opacity:0,Vo:-10},className:"flex gap-3",children:[(0,Vo.jsx)(it,{className:"h-8 w-8",children:(0,Vo.jsx)(nt,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,Vo.jsx)(Ya.Bot,{className:"h-4 w-4"})})}),(0,Vo.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Vo.jsx)(Ca,{capabilities:r,isOpen:M,onToggle:()=>Y(!M),onActionSelect:K,className:"w-full"})})]}),o&&(0,Vo.jsxs)(gt.div,{initial:{opacity:0,Vo:10},animate:{opacity:1,Vo:0},className:"flex gap-3",children:[(0,Vo.jsx)(it,{className:"h-8 w-8",children:(0,Vo.jsx)(nt,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,Vo.jsx)(Ya.Bot,{className:"h-4 w-4"})})}),(0,Vo.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Vo.jsxs)("div",{className:"flex space-Vo-1",children:[(0,Vo.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,Vo.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,Vo.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,Vo.jsx)("div",{ref:k})]}),i.length>0&&(0,Vo.jsx)("div",{className:"p-4 border-t bg-muted/10",children:(0,Vo.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(g=>(0,Vo.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[S(g.file.type),(0,Vo.jsx)("span",{className:"text-sm font-medium",children:g.file.name}),(0,Vo.jsx)("span",{className:"text-xs text-muted-foreground",children:z(g.file.size)}),(0,Vo.jsx)(R,{variant:"ghost",size:"sm",onClick:()=>A(g.id),className:"h-6 w-6 p-0",children:(0,Vo.jsx)(Ya.Vo,{className:"h-4 w-4"})})]},g.id))})}),(0,Vo.jsxs)("div",{className:"border rounded-2xl p-4 bg-muted/20",children:[(0,Vo.jsxs)("div",{className:"flex gap-3",children:[(0,Vo.jsx)(xt,{value:t,onChange:g=>c(g.target.value),onKeyPress:u,placeholder:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),s&&(0,Vo.jsx)(R,{variant:"outline",size:"icon",onClick:()=>I.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Vo.jsx)(Ya.Paperclip,{className:"h-4 w-4"})}),(0,Vo.jsx)(R,{onClick:h,disabled:!t.trim()&&i.length===0||o,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Vo.jsx)(Ya.Send,{className:"h-4 w-4"})})]}),(0,Vo.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,Vo.jsxs)(R,{onClick:()=>Y(!M),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,Vo.jsx)(Ya.Menu,{className:"h-3 w-3 mr-1"}),M?"Hide":"Show"," Capabilities"]}),(0,Vo.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[ae().map((g,H)=>(0,Vo.jsx)(R,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>K(g.id,_),children:g.label},`context-${g.id}`)),ae().length===0&&W().map((g,H)=>(0,Vo.jsx)(R,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:g.action,children:g.label},`suggestion-${H}`)),(0,Vo.jsx)(R,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:$,children:"Debug"})]})]}),s&&(0,Vo.jsx)("input",{ref:I,type:"file",multiple:!0,onChange:B,className:"hidden"})]})]})}function Za({aiConfig:e,useCustomChat:t,enableAI:o=!0,messages:a=[],businessUnits:r=[],capabilities:i=[],sidebarItems:n=[],notifications:s=[],sessions:c=[],onNewChat:p,onSessionSelect:h,onSessionDelete:u,onSessionEdit:v=()=>{},onBusinessUnitChange:A=()=>{},onNotificationRemove:T=()=>{},onRemoveAll:N=()=>{},onActionClick:w=()=>{},onSearch:k=d=>console.log("Search query:",d),initialTeam:L="design",currentSession:I=null,showCapabilities:M=!0,title:Y="Digital Colleagues",enableFileUpload:_=!0,maxFileSize:ce=10,allowedFileTypes:ae=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:W="/headerlogo.png",appName:K="Nuvia",tagline:de="AI-Powered Workspace",actionIcon:B=(0,Vo.jsx)(Ya.Users,{className:"mr-2 h-4 w-4"}),actionText:je="Collaborate",sidebarInitiallyClosed:ye=!1}){let d={...e,onError:F=>{S?.setMessages(me=>[...me,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:F.message}]}]),console.error("Error in CopilotInterface:",F)}},z=(0,Xa.useChat)(d||{}),S=o?t||z:null,[pe,$]=(0,ti.useState)(""),[g,H]=(0,ti.useState)(!1),xe=S?.messages||a,Me=pe,oi=S?.status==="submitted"||g,ai=S?.addToolResult?(F,me,te)=>{S.addToolResult({tool:me,toolCallId:F,output:te}),console.log("Tool result added:",{toolCallId:F,tool:me,output:te}),S.sendMessage()}:()=>{console.log("addToolResult not available")},bt=r||[],ii={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ni,ri]=(0,ti.useState)(()=>bt.length===0?ii:bt.find(F=>F.id===L)||bt[0]),[vt,Pt]=(0,ti.useState)([]),[si,li]=(0,ti.useState)(!1),ci=F=>{if(!F||!_)return;let me=[];Array.from(F).forEach(te=>{if(te.size>ce*1024*1024){alert(`File ${te.name} is too large. Maximum size is ${ce}MB.`);return}if(ae.length>0&&!ae.some(Tt=>te.type.match(Tt))){alert(`File type ${te.type} is not allowed.`);return}let So={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:te,status:"pending",progress:0};if(te.type.startsWith("image/")){let Tt=new FileReader;Tt.onload=gi=>{Pt(fi=>fi.map(Jt=>Jt.id===So.id?{...Jt,preview:gi.target?.result}:Jt))},Tt.readAsDataURL(te)}me.push(So)}),Pt(te=>[...te,...me])},di=F=>{Pt(me=>me.filter(te=>te.id!==F))},Ao=()=>{if(!(!Me.trim()&&vt.length===0)){if(S){let F=vt.length>0?pi(vt.map(me=>me.file)):void 0;S.sendMessage({text:Me,files:F},{body:{timestamp:Date.now()}}),$("")}else console.log("Message to send:",Me),console.log("Files to upload:",vt),$(""),H(!0),setTimeout(()=>{H(!1)},1500);Pt([])}},pi=F=>{let me=new DataTransfer;return F.forEach(te=>me.items.add(te)),me.files},mi=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),Ao())},ui=F=>{$(F)};return(0,Vo.jsx)(ha,{sidebarItems:n||[],title:Y,notifications:s||[],businessUnits:bt,currentBusinessUnit:ni,onBusinessUnitChange:F=>{F&&(ri(F),A?.(F))},onSearch:k,showTabs:!1,onActionClick:w,actionIcon:B,actionText:je,onNotificationRemove:T,onRemoveAll:N,logo:W,appName:K,tagline:de,sidebarInitiallyClosed:ye,children:(0,Vo.jsx)(Kt.AnimatePresence,{mode:"wait",children:(0,Vo.jsx)(Kt.motion.div,{className:"flex-1 h-full",initial:{opacity:0,Vo:10},animate:{opacity:1,Vo:0},exit:{opacity:0,Vo:-10},transition:{duration:.2},children:(0,Vo.jsxs)("div",{className:"h-full flex",children:[(0,Vo.jsx)("div",{className:"w-80 flex-shrink-0 h-full p-2",children:(0,Vo.jsx)(ya,{sessions:c||[],currentSession:I,teams:bt,onNewChat:p,onSessionSelect:h,onSessionEdit:v,onSessionDelete:u})}),(0,Vo.jsx)("div",{className:"flex-1 h-full p-2",children:(0,Vo.jsx)(Qa,{messages:xe||[],input:Me,isTyping:oi,currentSessionTitle:I?.title,capabilities:i||[],onInputChange:ui,addToolResult:ai,onSendMessage:Ao,onKeyPress:mi,fileUploads:vt,isDragOver:si,enableFileUpload:_,onFileUpload:ci,onRemoveFile:di,onDragOver:li})})]})},"chat-interface")})})}var ei=[{id:"1",role:"user",parts:[{type:"text",text:"Can you write me a comprehensive analysis of the current state of artificial intelligence and machine learning technologies, including their applications, limitations, and future prospects?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Here's a comprehensive analysis of the current state of AI and ML technologies:
|
|
21
|
+
${i?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
|
|
22
|
+
`,children:"Cancel"})]})]}):null};var wa=({toolPart:e,index:t,addToolResult:o})=>{let[a,r]=uo.default.useState(!0),[n,i]=uo.default.useState(null),s=()=>{o(e.toolCallId,e.type,"Approved"),r(!1),i("approve")},c=()=>{o(e.toolCallId,e.type,"Denied"),r(!1),i("deny")};switch(e.state){case"input-available":return(0,Ho.jsxs)("div",{className:"mb-2",children:[(0,Ho.jsx)(xa,{isOpen:a,onApprove:s,onDeny:c,onClose:()=>r(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!a&&(0,Ho.jsxs)(Ho.Fragment,{children:[n==="approve"&&(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),n==="deny"&&(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,Ho.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Ho.jsxs)(Ho.Fragment,{children:[e.output==="approve"&&(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,Ho.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ho.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ho.jsx)("svg",{className:"Ho-4 Ho-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ho.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var go=require("@radix-ui/react-use-controllable-state");var rt=V(require("@radix-ui/react-collapsible")),st=rt.Root,lt=rt.CollapsibleTrigger,Ze=rt.CollapsibleContent;var Na=require("streamdown"),_e=(0,oi.memo)(({className:e,...t})=>(0,Ho.jsx)(Na.Streamdown,{className:l("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);_e.displayName="Response";var Pa=(0,oi.createContext)(null),bn=()=>{let e=(0,oi.useContext)(Pa);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},vn=1e3,hn=1e3,fo=(0,oi.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:a=!0,onOpenChange:r,duration:n,children:i,...s})=>{let[c,m]=(0,go.useControllableState)({prop:o,defaultProp:a,onChange:r}),[b,v]=(0,go.useControllableState)({prop:n,defaultProp:0}),[f,S]=(0,oi.useState)(!1),[D,C]=(0,oi.useState)(null);(0,oi.useEffect)(()=>{t?D===null&&C(Date.now()):D!==null&&(v(Math.ceil((Date.now()-D)/hn)),C(null))},[t,D,v]),(0,oi.useEffect)(()=>{if(a&&!t&&c&&!f){let N=setTimeout(()=>{m(!1),S(!0)},vn);return()=>clearTimeout(N)}},[t,c,a,m,f]);let x=N=>{m(N)};return(0,Ho.jsx)(Pa.Provider,{value:{isStreaming:t,isOpen:c,setIsOpen:m,duration:b},children:(0,Ho.jsx)(st,{className:l("not-prose mb-4",e),onOpenChange:x,open:c,...s,children:i})})}),yn=(e,t)=>e||t===0?(0,Ho.jsx)("Ho",{children:"Thinking..."}):t===void 0?(0,Ho.jsx)("Ho",{children:"Thought for a few seconds"}):(0,Ho.jsxs)("Ho",{children:["Thought for ",t," seconds"]}),bo=(0,oi.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:r,duration:n}=bn();return(0,Ho.jsx)(lt,{className:l("flex Ho-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(Za.BrainIcon,{className:"size-4"}),yn(a,n),(0,Ho.jsx)(Za.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),vo=(0,oi.memo)(({className:e,children:t,...o})=>(0,Ho.jsx)(Ze,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ho.jsx)(_e,{className:"grid gap-2",children:t})}));fo.displayName="Reasoning";bo.displayName="ReasoningTrigger";vo.displayName="ReasoningContent";var ho=require("shiki"),xn=(0,oi.createContext)({code:""}),wn={name:"line-numbers",line(e,t){e.children.unshift({type:"element",tagName:"span",properties:{className:["inline-block","min-Ho-10","mr-4","text-right","select-none","text-muted-foreground"]},children:[{type:"text",value:String(t)}]})}};async function Cn(e,t,o=!1){let a=o?[wn]:[];return await Promise.all([(0,ho.codeToHtml)(e,{lang:t,theme:"one-light",transformers:a}),(0,ho.codeToHtml)(e,{lang:t,theme:"one-dark-pro",transformers:a})])}var Ft=({code:e,language:t,showLineNumbers:o=!1,className:a,children:r,...n})=>{let[i,s]=(0,oi.useState)(""),[c,m]=(0,oi.useState)(""),b=(0,oi.useRef)(!1);return(0,oi.useEffect)(()=>(Cn(e,t,o).then(([v,f])=>{b.current||(s(v),m(f),b.current=!0)}),()=>{b.current=!1}),[e,t,o]),(0,Ho.jsx)(xn.Provider,{value:{code:e},children:(0,Ho.jsx)("div",{className:l("group relative Ho-full overflow-hidden rounded-md border bg-background text-foreground",a),...n,children:(0,Ho.jsxs)("div",{className:"relative",children:[(0,Ho.jsx)("div",{className:"overflow-hidden dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:Ho-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:i}}),(0,Ho.jsx)("div",{className:"hidden overflow-hidden dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:Ho-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:c}}),r&&(0,Ho.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:r})]})})})};var Ra=({className:e,...t})=>(0,Ho.jsx)(st,{className:l("not-prose mb-4 Ho-full rounded-md border",e),...t}),Nn=e=>{let t={"input-streaming":"Pending","input-available":"Running","approval-requested":"Awaiting Approval","approval-responded":"Responded","output-available":"Completed","output-error":"Error","output-denied":"Denied"};return(0,Ho.jsxs)(fe,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,Ho.jsx)(Za.CircleIcon,{className:"size-4"}),"input-available":(0,Ho.jsx)(Za.ClockIcon,{className:"size-4 animate-pulse"}),"approval-requested":(0,Ho.jsx)(Za.ClockIcon,{className:"size-4 text-yellow-600"}),"approval-responded":(0,Ho.jsx)(Za.CheckCircleIcon,{className:"size-4 text-blue-600"}),"output-available":(0,Ho.jsx)(Za.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,Ho.jsx)(Za.XCircleIcon,{className:"size-4 text-red-600"}),"output-denied":(0,Ho.jsx)(Za.XCircleIcon,{className:"size-4 text-orange-600"})}[e],t[e]]})},Sa=({className:e,title:t,type:o,state:a,...r})=>(0,Ho.jsxs)(lt,{className:l("flex Ho-full items-center justify-between gap-4 Ho-3",e),...r,children:[(0,Ho.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ho.jsx)(Za.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,Ho.jsx)("span",{className:"font-medium text-sm",children:t??o.split("-").slice(1).join("-")}),Nn(a)]}),(0,Ho.jsx)(Za.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),Aa=({className:e,...t})=>(0,Ho.jsx)(Ze,{className:l("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),Ia=({className:e,input:t,...o})=>(0,Ho.jsxs)("div",{className:l("space-y-2 overflow-hidden Ho-4",e),...o,children:[(0,Ho.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,Ho.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,Ho.jsx)(Ft,{code:JSON.stringify(t,null,2),language:"json"})})]}),Ma=({className:e,output:t,errorText:o,...a})=>{if(!(t||o))return null;let r=(0,Ho.jsx)("div",{children:t});return typeof t=="object"&&!(0,oi.isValidElement)(t)?r=(0,Ho.jsx)(Ft,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(r=(0,Ho.jsx)(Ft,{code:t,language:"json"})),(0,Ho.jsxs)("div",{className:l("space-y-2 Ho-4",e),...a,children:[(0,Ho.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,Ho.jsxs)("div",{className:l("overflow-x-auto rounded-md text-xs [&_table]:Ho-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,Ho.jsx)("div",{children:o}),r]})]})};var Ba=(0,oi.createContext)(null),kn=()=>{let e=(0,oi.useContext)(Ba);if(!e)throw new Error("ColleagueHandoff components must be used within ColleagueHandoff");return e},Pn=1e3,Tn=1e3,xo=(0,oi.memo)(({className:e,isStreaming:t=!1,name:o="Digital Colleague",open:a,defaultOpen:r=!0,onOpenChange:n,duration:i,children:s,...c})=>{let[m,b]=(0,go.useControllableState)({prop:a,defaultProp:r,onChange:n}),[v,f]=(0,go.useControllableState)({prop:i,defaultProp:0}),[S,D]=(0,oi.useState)(!1),[C,x]=(0,oi.useState)(null);(0,oi.useEffect)(()=>{t?C===null&&x(Date.now()):C!==null&&(f(Math.ceil((Date.now()-C)/Tn)),x(null))},[t,C,f]),(0,oi.useEffect)(()=>{if(r&&!t&&m&&!S){let M=setTimeout(()=>{b(!1),D(!0)},Pn);return()=>clearTimeout(M)}},[t,m,r,b,S]);let N=M=>{b(M)};return(0,Ho.jsx)(Ba.Provider,{value:{isStreaming:t,name:o,isOpen:m,setIsOpen:b,duration:v},children:(0,Ho.jsx)(st,{className:l("not-prose mb-4",e),onOpenChange:N,open:m,...c,children:s})})}),Dn=(e,t,o)=>e||o===0?(0,Ho.jsxs)("Ho",{children:["Asking our ",t,"..."]}):o===void 0?(0,Ho.jsxs)("Ho",{children:["Got an answer from our ",t]}):(0,Ho.jsxs)("Ho",{children:["Got an answer from our ",t," in ",o," seconds"]}),wo=(0,oi.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:r,name:n,duration:i}=kn();return(0,Ho.jsx)(lt,{className:l("flex Ho-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(Za.Users,{className:"size-4"}),Dn(a,n,i),(0,Ho.jsx)(Za.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),Co=(0,oi.memo)(({className:e,children:t,...o})=>(0,Ho.jsx)(Ze,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ho.jsx)(_e,{className:"grid gap-2",children:t})})),No=(0,oi.memo)(({className:e,children:t,...o})=>(0,Ho.jsx)(Ze,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ho.jsx)(_e,{className:"grid gap-2",children:t})}));xo.displayName="ColleagueHandoff";wo.displayName="ColleagueHandoffTrigger";Co.displayName="ColleagueHandoffContent";No.displayName="ColleagueHandoffQuery";var xt=require("use-stick-to-bottom"),za=({className:e,...t})=>(0,Ho.jsx)(xt.StickToBottom,{className:l("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),Ua=({className:e,...t})=>(0,Ho.jsx)(xt.StickToBottom.Content,{className:l("flex flex-col gap-8 Ho-4",e),...t}),Ha=({className:e,title:t="No messages yet",description:o="Start a conversation to see messages here",icon:a,children:r,...n})=>(0,Ho.jsx)("div",{className:l("flex size-full flex-col items-center justify-center gap-3 Ho-8 text-center",e),...n,children:r??(0,Ho.jsxs)(Ho.Fragment,{children:[a&&(0,Ho.jsx)("div",{className:"text-muted-foreground",children:a}),(0,Ho.jsxs)("div",{className:"space-y-1",children:[(0,Ho.jsx)("h3",{className:"font-medium text-sm",children:t}),o&&(0,Ho.jsx)("Ho",{className:"text-muted-foreground text-sm",children:o})]})]})}),Fa=({className:e,...t})=>{let{isAtBottom:o,scrollToBottom:a}=(0,xt.useStickToBottomContext)(),r=(0,oi.useCallback)(()=>{a()},[a]);return!o&&(0,Ho.jsx)(P,{className:l("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:r,size:"icon",type:"button",variant:"outline",...t,children:(0,Ho.jsx)(Za.ArrowDownIcon,{className:"size-4"})})};var Va=require("date-fns");function ja({taskId:e,polling:t=!0,system:o="payload"}){let[a,r]=(0,oi.useState)(null),[n,i]=(0,oi.useState)(!1),[s,c]=(0,oi.useState)(null),m=async(v=!0)=>{if(e){v&&i(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed to fetch task: ${f.statusText}`);let S=await f.json();r(S)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{v&&i(!1)}}},b=()=>m(!1);return(0,oi.useEffect)(()=>{e&&m(!0);let v=null;return e&&t&&(v=setInterval(b,5e3)),()=>{v&&clearInterval(v)}},[e,t]),{task:a,loading:n,error:s}}var Rn=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Sn=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Wa({data:e}){let{id:t,system:o,fetchLatest:a,taskData:r,error:n}=e||{};if(!t)return null;let i=null,s=!0,c=n,m=a!==void 0?a:!0;if(i=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:a,system:o,fetchLatest:m,taskData:i,error:c}),m){let{task:S,loading:D,error:C}=ja({taskId:t,system:o});i=S,s=D,c=C}else s=!1;let b=Rn(i?.status||"todo"),v=Sn(i?.status||"todo"),f=i?.dateLogged||new Date().toISOString();try{let S=new Date(i?.dateLogged||"");isNaN(S.getTime())||(f=(0,Va.formatDistanceToNow)(S,{addSuffix:!0}))}catch{}return(0,Ho.jsxs)(he,{className:l("Ho-full max-Ho-md shadow-md",c&&"border border-destructive"),children:[(0,Ho.jsxs)(Ee,{className:"pb-2",children:[(0,Ho.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Ho.jsx)(ze,{className:"text-lg font-semibold",children:s?"Loading...":i?.name||"Task"}),(0,Ho.jsx)(fe,{className:`${b}`,children:v})]}),i?.project&&(0,Ho.jsxs)(lo,{className:"text-sm text-gray-500",children:["Project: ",i.project.name]})]}),(0,Ho.jsx)(De,{className:"pb-2",children:s?(0,Ho.jsx)("div",{className:"animate-pulse Ho-4 bg-gray-200 rounded Ho-3/4 mb-2"}):c?(0,Ho.jsx)("Ho",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Ho.jsx)("Ho",{className:"text-sm text-foreground",children:i?.description||"......."})}),(0,Ho.jsx)(yt,{className:"pt-2 flex items-center justify-between",children:(0,Ho.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ho.jsx)(Za.Clock,{className:"Ho-3 Ho-3 mr-1"}),(0,Ho.jsxs)("span",{children:["Created ",f]}),(0,Ho.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Ho.jsxs)("span",{children:["Task #",t]})]})})]})}function _a({artefact:e,taskId:t,taskData:o,loading:a=!1,error:r=null}){let n=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},i=n.dateLogged;try{let s=new Date(n.dateLogged);isNaN(s.getTime())||(i=(0,$a.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,Ho.jsxs)(he,{className:"Ho-full max-Ho-md shadow-md",children:[(0,Ho.jsx)(Ee,{className:"pb-2",children:(0,Ho.jsx)("div",{className:"flex justify-between items-start",children:(0,Ho.jsx)(ze,{className:"text-lg font-semibold",children:a?"Loading...":n.name})})}),(0,Ho.jsx)(De,{className:"pb-2",children:a?(0,Ho.jsx)("div",{className:"animate-pulse Ho-4 bg-gray-200 rounded Ho-3/4 mb-2"}):r?(0,Ho.jsx)("Ho",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Ho.jsx)("Ho",{className:"text-sm text-foreground",children:e})}),(0,Ho.jsx)(yt,{className:"pt-2 flex items-center justify-between",children:(0,Ho.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ho.jsx)(Za.Clock,{className:"Ho-3 Ho-3 mr-1"}),(0,Ho.jsxs)("span",{children:["Created ",i]}),(0,Ho.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Ho.jsxs)("span",{children:["Task #",n.id]})]})})]})}var An=e=>e.startsWith("image/")?(0,Ho.jsx)(Za.Image,{className:"Ho-4 Ho-4"}):e.startsWith("text/")?(0,Ho.jsx)(Za.FileText,{className:"Ho-4 Ho-4"}):(0,Ho.jsx)(Za.File,{className:"Ho-4 Ho-4"}),qa=({message:e,addToolResult:t,status:o,messages:a})=>e.parts.map((r,n)=>{if(r.type==="text")return(0,Ho.jsx)(_e,{children:r.text},`${n}`);if(r.type==="file"){let i=r;return(0,Ho.jsx)("div",{className:"mb-2 Ho-2 bg-background/50 rounded-lg",children:(0,Ho.jsxs)("div",{className:"flex items-center gap-2",children:[An(i.mediaType||"application/octet-stream"),(0,Ho.jsx)("div",{className:"flex-1 min-Ho-0",children:(0,Ho.jsx)("Ho",{className:"text-sm font-medium truncate",children:i.filename||i.url?.split("/").pop()||"File"})}),i.url&&(0,Ho.jsx)(P,{variant:"ghost",size:"sm",onClick:()=>window.open(i.url,"_blank"),className:"Ho-8 Ho-8 Ho-0",children:(0,Ho.jsx)(Za.Download,{className:"Ho-4 Ho-4"})})]})},n)}if(r.type.startsWith("tool-")){let i=r,s=r.type.replace("tool-","");if(r.type.startsWith("tool-dc_a2a"))return(0,Ho.jsxs)(xo,{name:i?.input?.dcName||"Digital Colleague",className:"Ho-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Ho.jsx)(wo,{}),(0,Ho.jsx)(No,{children:i?.input?.query}),(0,Ho.jsx)(Co,{children:i?.output})]},`${n}`);if(s==="task")switch(i.state){case"input-available":return(0,Ho.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},n);case"output-available":return(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(Wa,{data:{id:i.output?.id||i.input?.id,fetchLatest:!1,taskData:i.output||i.input}})},n);case"output-error":return(0,Ho.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",i.errorText]},n);default:return null}if(r.type==="tool-requestEndpointLogin")return(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(mo,{toolPart:i,index:n,addToolResult:t??(()=>{})})},n);if(r.type==="tool-authenticate")return(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(mo,{toolPart:i,index:n,addToolResult:t??(()=>{})})},n);if(r.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",i),(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(wa,{toolPart:i,index:n,addToolResult:t??(()=>{})})},n);if(s==="artefact")switch(i.state){case"input-available":return(0,Ho.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},n);case"output-available":return(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(_a,{artefact:i.output?.description||"",taskId:i.output?.id||i.input?.id,taskData:i.output||i.input})},n);case"output-error":return(0,Ho.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",i.errorText]},n);default:return null}return(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsxs)(he,{className:"Ho-full max-Ho-md",children:[(0,Ho.jsx)(Ee,{children:(0,Ho.jsx)(ze,{className:"text-lg",children:s})}),(0,Ho.jsxs)(De,{children:[i.state==="input-available"&&(0,Ho.jsxs)("Ho",{className:"text-sm",children:["Processing ",s,"..."]}),i.state==="output-available"&&(0,Ho.jsx)("pre",{className:"text-sm",children:JSON.stringify(i.output,null,2)}),i.state==="output-error"&&(0,Ho.jsxs)("Ho",{className:"text-sm text-red-500",children:["Error: ",i.errorText]})]})]})},n)}if(r.type.startsWith("data-")){let i=r,s=r.type.replace("data-","");return s==="reference"?(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsx)(he,{className:"Ho-full",children:(0,Ho.jsx)(De,{className:"Ho-4",children:(0,Ho.jsx)("div",{className:"space-y-2",children:i.data?.references?.map((c,m)=>(0,Ho.jsxs)("div",{className:"flex items-center gap-2 Ho-2 rounded-md bg-muted/50",children:[(0,Ho.jsx)(fe,{variant:"outline",children:c.type||"link"}),(0,Ho.jsxs)("div",{className:"flex-1 min-Ho-0",children:[(0,Ho.jsx)("Ho",{className:"text-sm font-medium truncate",children:c.title}),c.description&&(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground truncate",children:c.description})]}),c.url&&(0,Ho.jsx)(P,{variant:"ghost",size:"sm",onClick:()=>window.open(c.url,"_blank"),className:"Ho-8 Ho-8 Ho-0",children:(0,Ho.jsx)(Za.ExternalLink,{className:"Ho-4 Ho-4"})})]},m))})})})},n):s==="menu"?(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsxs)(he,{className:"Ho-full",children:[(0,Ho.jsx)(Ee,{children:(0,Ho.jsx)(ze,{className:"text-lg",children:i.data?.title})}),(0,Ho.jsx)(De,{children:(0,Ho.jsx)("div",{className:"space-y-2",children:i.data?.items?.map((c,m)=>(0,Ho.jsx)(P,{variant:"outline",className:"Ho-full justify-start",onClick:c.action,children:(0,Ho.jsxs)("div",{className:"text-left",children:[(0,Ho.jsx)("Ho",{className:"font-medium",children:c.label}),c.description&&(0,Ho.jsx)("Ho",{className:"text-xs text-muted-foreground",children:c.description})]})},m))})})]})},n):(0,Ho.jsx)("div",{className:"mb-2",children:(0,Ho.jsxs)(he,{className:"Ho-full max-Ho-md",children:[(0,Ho.jsx)(Ee,{children:(0,Ho.jsx)(ze,{className:"text-lg",children:s})}),(0,Ho.jsx)(De,{children:(0,Ho.jsx)("pre",{className:"text-sm",children:JSON.stringify(i.data,null,2)})})]})},n)}if(r.type==="reasoning")return(0,Ho.jsxs)(fo,{className:"Ho-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Ho.jsx)(bo,{}),(0,Ho.jsx)(vo,{children:r.text})]},`${n}`);if(r.type==="dynamic-tool")return(0,Ho.jsxs)(Ra,{defaultOpen:r.state!=="output-available",children:[(0,Ho.jsx)(Sa,{type:`tool-${r.toolName}`,state:r.state}),(0,Ho.jsxs)(Aa,{children:[(0,Ho.jsx)(Ia,{input:r.input}),(0,Ho.jsx)(Ma,{output:r.output,errorText:r.errorText})]})]},`${e.id}-${n}`)});var Ja=({className:e,from:t,...o})=>(0,Ho.jsx)("div",{className:l("group flex Ho-full items-end justify-end gap-2 py-4",t==="user"?"is-user":"is-assistant flex-row-reverse justify-end",e),...o}),In=(0,Uo.cva)("is-user:dark flex flex-col gap-2 overflow-hidden rounded-lg text-sm",{variants:{variant:{contained:["max-Ho-[80%] px-4 py-3","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-card group-[.is-assistant]:text-card-foreground"],flat:["group-[.is-user]:max-Ho-[80%] group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground"]}},defaultVariants:{variant:"contained"}}),Qa=({children:e,className:t,variant:o,...a})=>(0,Ho.jsx)("div",{className:l(In({variant:o,className:t})),...a,children:e});function Xa({messages:e,input:t,isTyping:o=!1,currentSessionTitle:a,capabilities:r,fileUploads:n,isDragOver:i,enableFileUpload:s,onInputChange:c,addToolResult:m,onSendMessage:b,onKeyPress:v,onFileUpload:f,onRemoveFile:S,onDragOver:D,className:C,status:x="ready"}){let N=(0,oi.useRef)(null),M=(0,oi.useRef)(null),K=(0,oi.useRef)(null),[j,Y]=(0,oi.useState)(!1),[$,le]=(0,oi.useState)({path:[],selectedItems:[],filters:{}});(0,oi.useEffect)(()=>{N.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,oi.useEffect)(()=>{j&&setTimeout(()=>{N.current?.scrollIntoView({behavior:"smooth"})},100)},[j]);let oe=()=>co($),O=()=>{let g=[];return r.forEach(L=>{L.actions&&L.actions.forEach(ye=>{g.push({label:ye.label,action:()=>J(ye.id,{path:[L],selectedItems:[],filters:{}})})}),L.children&&L.children.forEach(ye=>{ye.type==="list"&&ye.data&&g.push({label:`View ${ye.name}`,action:()=>Y(!0)})})}),g.slice(0,5)},J=(g,L)=>{console.log("Capability action:",g,L);let ye=`Executing ${g} with context: ${JSON.stringify(L.path.map(Ie=>Ie.name))}`;Y(!1)},ce=co({path:[],selectedItems:[],filters:{}}),A=g=>{f(g.target.files),g.target.files&&(g.target.value="")},Ke=g=>{g.preventDefault(),D(!0)},ke=g=>{g.preventDefault(),D(!1)},d=g=>{g.preventDefault(),D(!1),f(g.dataTransfer.files)},B=g=>{if(g===0)return"0 Bytes";let L=1024,ye=["Bytes","KB","MB","GB"],Ie=Math.floor(Math.log(g)/Math.log(L));return parseFloat((g/Math.pow(L,Ie)).toFixed(2))+" "+ye[Ie]},R=g=>g.startsWith("image/")?(0,Ho.jsx)(Za.Image,{className:"Ho-4 Ho-4"}):g.startsWith("text/")?(0,Ho.jsx)(Za.FileText,{className:"Ho-4 Ho-4"}):(0,Ho.jsx)(Za.File,{className:"Ho-4 Ho-4"}),de={messages:e,currentSessionTitle:a,capabilities:r,currentCapabilityContext:$,contextualActions:ce,getQuickSuggestions:O().map(g=>g.label)},W=()=>{navigator.clipboard.writeText(JSON.stringify(de,null,2)),alert("Debug info copied to clipboard")};return(0,Ho.jsxs)("div",{className:`Ho-full flex flex-col relative size-full shadow-sm max-Ho-4xl mx-auto ${C||""}`,children:[(0,Ho.jsxs)(za,{className:"relative flex-1 Ho-full size-full",children:[(0,Ho.jsx)(Ua,{children:e.length===0?(0,Ho.jsx)(Ha,{description:"Messages will appear here as the conversation progresses.",icon:(0,Ho.jsx)(Za.MessageSquareIcon,{className:"size-6"}),title:"Start a conversation"}):e.map((g,L)=>(0,Ho.jsx)(Ja,{from:g.role,children:(0,Ho.jsx)(Qa,{children:qa({message:g,addToolResult:m??(()=>{}),status:x,messages:e})})},L))}),(0,Ho.jsx)(Fa,{})]}),n.length>0&&(0,Ho.jsx)("div",{className:"Ho-4 border-t bg-muted/10",children:(0,Ho.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(g=>(0,Ho.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg Ho-2 border",children:[R(g.file.type),(0,Ho.jsx)("span",{className:"text-sm font-medium",children:g.file.name}),(0,Ho.jsx)("span",{className:"text-xs text-muted-foreground",children:B(g.file.size)}),(0,Ho.jsx)(P,{variant:"ghost",size:"sm",onClick:()=>S(g.id),className:"Ho-6 Ho-6 Ho-0",children:(0,Ho.jsx)(Za.Ho,{className:"Ho-4 Ho-4"})})]},g.id))})}),(0,Ho.jsxs)("div",{className:"border rounded-2xl Ho-4 bg-muted/20",children:[(0,Ho.jsxs)("div",{className:"flex gap-3",children:[(0,Ho.jsx)(ft,{value:t,onChange:g=>c(g.target.value),onKeyPress:v,placeholder:"How can Ho help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),s&&(0,Ho.jsx)(P,{variant:"outline",size:"icon",onClick:()=>K.current?.click(),className:"rounded-2xl Ho-10 Ho-10 shadow-sm",children:(0,Ho.jsx)(Za.Paperclip,{className:"Ho-4 Ho-4"})}),(0,Ho.jsx)(P,{onClick:b,disabled:!t.trim()&&n.length===0||o,size:"icon",className:"rounded-2xl Ho-10 Ho-10 shadow-sm",children:(0,Ho.jsx)(Za.Send,{className:"Ho-4 Ho-4"})})]}),(0,Ho.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,Ho.jsxs)(P,{onClick:()=>Y(!j),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,Ho.jsx)(Za.Menu,{className:"Ho-3 Ho-3 mr-1"}),j?"Hide":"Show"," Capabilities"]}),(0,Ho.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[oe().map((g,L)=>(0,Ho.jsx)(P,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>J(g.id,$),children:g.label},`context-${g.id}`)),oe().length===0&&O().map((g,L)=>(0,Ho.jsx)(P,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:g.action,children:g.label},`suggestion-${L}`)),(0,Ho.jsx)(P,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:W,children:"Debug"})]})]}),s&&(0,Ho.jsx)("input",{ref:K,type:"file",multiple:!0,onChange:A,className:"hidden"})]})]})}function ei({aiConfig:e,useCustomChat:t,enableAI:o=!0,messages:a=[],businessUnits:r=[],capabilities:n=[],sidebarItems:i=[],notifications:s=[],sessions:c=[],onNewChat:m,onSessionSelect:b,onSessionDelete:v,onSessionEdit:f=()=>{},onBusinessUnitChange:S=()=>{},onNotificationRemove:D=()=>{},onRemoveAll:C=()=>{},onActionClick:x=()=>{},onSearch:N=d=>console.log("Search query:",d),initialTeam:M="design",currentSession:K=null,showCapabilities:j=!0,title:Y="Digital Colleagues",enableFileUpload:$=!0,maxFileSize:le=10,allowedFileTypes:oe=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:O="/headerlogo.png",appName:J="Nuvia",tagline:ce="AI-Powered Workspace",actionIcon:A=(0,Ho.jsx)(Za.Users,{className:"mr-2 Ho-4 Ho-4"}),actionText:Ke="Collaborate",sidebarInitiallyClosed:ke=!1}){let d={...e,onError:U=>{R?.setMessages(pe=>[...pe,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:U.message}]}]),console.error("Error in CopilotInterface:",U)}},B=(0,Ya.useChat)(d||{}),R=o?t||B:null,[de,W]=(0,oi.useState)(""),[g,L]=(0,oi.useState)(!1),ye=R?.messages||a,Ie=de,ai=R?.status==="submitted"||g,ii=R?.addToolResult?(U,pe,Z)=>{R.addToolResult({tool:pe,toolCallId:U,output:Z}),console.log("Tool result added:",{toolCallId:U,tool:pe,output:Z}),R.sendMessage()}:()=>{console.log("addToolResult not available")},pt=r||[],ni={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\Ho{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ri,si]=(0,oi.useState)(()=>pt.length===0?ni:pt.find(U=>U.id===M)||pt[0]),[mt,wt]=(0,oi.useState)([]),[li,ci]=(0,oi.useState)(!1),di=U=>{if(!U||!$)return;let pe=[];Array.from(U).forEach(Z=>{if(Z.size>le*1024*1024){alert(`File ${Z.name} is too large. Maximum size is ${le}MB.`);return}if(oe.length>0&&!oe.some(Ct=>Z.type.match(Ct))){alert(`File type ${Z.type} is not allowed.`);return}let To={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:Z,status:"pending",progress:0};if(Z.type.startsWith("image/")){let Ct=new FileReader;Ct.onload=fi=>{wt(bi=>bi.map(Wt=>Wt.id===To.id?{...Wt,preview:fi.target?.result}:Wt))},Ct.readAsDataURL(Z)}pe.push(To)}),wt(Z=>[...Z,...pe])},pi=U=>{wt(pe=>pe.filter(Z=>Z.id!==U))},Po=()=>{if(!(!Ie.trim()&&mt.length===0)){if(R){let U=mt.length>0?mi(mt.map(pe=>pe.file)):void 0;R.sendMessage({text:Ie,files:U},{body:{timestamp:Date.now()}}),W("")}else console.log("Message to send:",Ie),console.log("Files to upload:",mt),W(""),L(!0),setTimeout(()=>{L(!1)},1500);wt([])}},mi=U=>{let pe=new DataTransfer;return U.forEach(Z=>pe.items.add(Z)),pe.files},ui=U=>{U.key==="Enter"&&!U.shiftKey&&(U.preventDefault(),Po())},gi=U=>{W(U)};return(0,Ho.jsx)(ga,{sidebarItems:i||[],title:Y,notifications:s||[],businessUnits:pt,currentBusinessUnit:ri,onBusinessUnitChange:U=>{U&&(si(U),S?.(U))},onSearch:N,showTabs:!1,onActionClick:x,actionIcon:A,actionText:Ke,onNotificationRemove:D,onRemoveAll:C,logo:O,appName:J,tagline:ce,sidebarInitiallyClosed:ke,children:(0,Ho.jsx)(Vt.AnimatePresence,{mode:"wait",children:(0,Ho.jsx)(Vt.motion.div,{className:"flex-1 Ho-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,Ho.jsxs)("div",{className:"Ho-full flex",children:[(0,Ho.jsx)("div",{className:"Ho-80 flex-shrink-0 Ho-full Ho-2",children:(0,Ho.jsx)(fa,{sessions:c||[],currentSession:K,teams:pt,onNewChat:m,onSessionSelect:b,onSessionEdit:f,onSessionDelete:v})}),(0,Ho.jsx)("div",{className:"flex-1 Ho-full Ho-2",children:(0,Ho.jsx)(Xa,{messages:ye||[],input:Ie,isTyping:ai,currentSessionTitle:K?.title,capabilities:n||[],onInputChange:gi,addToolResult:ii,onSendMessage:Po,onKeyPress:ui,fileUploads:mt,isDragOver:li,enableFileUpload:$,onFileUpload:di,onRemoveFile:pi,onDragOver:ci})})]})},"chat-interface")})})}var ti=[{id:"1",role:"user",parts:[{type:"text",text:"Can you write oi a comprehensive analysis of the current state of artificial intelligence and machine learning technologies, including their applications, limitations, and future prospects?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Here's a comprehensive analysis of the current state of AI and ML technologies:
|
|
22
23
|
|
|
23
24
|
**Current State of Artificial Intelligence and Machine Learning**
|
|
24
25
|
|
|
25
|
-
Artificial Intelligence (AI) and Machine Learning (ML) have experienced unprecedented growth and adoption across virtually every industry in recent years.
|
|
26
|
+
Artificial Intelligence (AI) and Machine Learning (ML) have experienced unprecedented growth and adoption across virtually every industry in recent years. Vt'Za currently in what many experts consider the "golden age" of AI, characterized by breakthrough achievements in natural language processing, computer vision, and autonomous systems.
|
|
26
27
|
|
|
27
28
|
**Key Applications:**
|
|
28
29
|
|
|
29
|
-
1. **Natural Language Processing**: Large Language Models like GPT-4, Claude, and others have revolutionized how
|
|
30
|
+
1. **Natural Language Processing**: Large Language Models like GPT-4, Claude, and others have revolutionized how we interact with computers, enabling conversational AI, content generation, code assistance, and translation services that approach human-level quality.
|
|
30
31
|
|
|
31
32
|
2. **Computer Vision**: AI systems can now accurately identify objects, faces, and scenes in images and videos, powering applications from medical imaging diagnosis to autonomous vehicle navigation and augmented reality experiences.
|
|
32
33
|
|
|
@@ -40,7 +41,7 @@ Artificial Intelligence (AI) and Machine Learning (ML) have experienced unpreced
|
|
|
40
41
|
|
|
41
42
|
Despite remarkable progress, several significant limitations remain:
|
|
42
43
|
|
|
43
|
-
1. **Data Quality and Bias**: AI systems are only as good as the data they'
|
|
44
|
+
1. **Data Quality and Bias**: AI systems are only as good as the data they'Za trained on, and biased or incomplete datasets can lead to unfair or inaccurate outcomes.
|
|
44
45
|
|
|
45
46
|
2. **Interpretability**: Many advanced AI models, particularly deep neural networks, operate as "black boxes," making it difficult to understand how they arrive at specific decisions.
|
|
46
47
|
|
|
@@ -64,12 +65,12 @@ The future of AI holds immense promise across multiple dimensions:
|
|
|
64
65
|
|
|
65
66
|
5. **Sustainable AI**: Development of more efficient algorithms and hardware will reduce the environmental impact of AI systems.
|
|
66
67
|
|
|
67
|
-
The next decade will likely see AI becoming even more integrated into our daily lives, while addressing current limitations through improved techniques, better governance frameworks, and more sustainable practices. The key will
|
|
68
|
+
The next decade will likely see AI becoming even more integrated into our daily lives, while addressing current limitations through improved techniques, better governance frameworks, and more sustainable practices. The key will be balancing innovation with responsible development to ensure AI benefits humanity as a whole.`}]},{id:"3",role:"user",parts:[{type:"text",text:"This is an extremely long message to test the width constraints of the chat interface and ensure that even when Ho write a very long message that goes on and on and on, it still maintains proper formatting and doesn't cause the chat interface to become too wide or break the layout. The message should wrap properly and maintain readability while staying within the maximum width constraints that have been set for the chat bubbles. This is important for user experience and ensuring that the interface remains functional and visually appealing even with extensive text content."}]},{id:"4",role:"assistant",parts:[{type:"text",text:`Perfect! Your long message demonstrates exactly what we needed to test. As you can see, the chat interface now properly handles long text messages by:
|
|
68
69
|
|
|
69
|
-
\u2022 Constraining the overall chat width with max-
|
|
70
|
+
\u2022 Constraining the overall chat width with max-Ho-4xl
|
|
70
71
|
\u2022 Using break-words to prevent text overflow
|
|
71
|
-
\u2022 Maintaining the max-
|
|
72
|
+
\u2022 Maintaining the max-Ho-[80%] constraint on individual message bubbles
|
|
72
73
|
\u2022 Preserving whitespace and line breaks with whitespace-pre-wrap
|
|
73
74
|
\u2022 Ensuring proper text wrapping for readability
|
|
74
75
|
|
|
75
|
-
The interface remains visually appealing and functional regardless of message length, which is crucial for a good user experience.`}]}];function Mn(){let[e,t]=(0,
|
|
76
|
+
The interface remains visually appealing and functional regardless of message length, which is crucial for a good user experience.`}]}];function Mn(){let[e,t]=(0,oi.useState)(ti);return(0,Ho.jsx)("div",{className:"Ho-screen Ho-full",children:(0,Ho.jsx)(ei,{messages:e,capabilities:ba,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t(ti),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}0&&(module.exports={ChatDemoLongMessages});
|