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,25 +2,26 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
'use client';
|
|
5
|
+
"use client";
|
|
5
6
|
|
|
6
|
-
"use strict";var fi=Object.create;var It=Object.defineProperty;var vi=Object.getOwnPropertyDescriptor;var bi=Object.getOwnPropertyNames;var hi=Object.getPrototypeOf,yi=Object.prototype.hasOwnProperty;var xi=(e,t)=>{for(var a in t)It(e,a,{get:t[a],enumerable:!0})},La=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bi(t))!yi.call(e,r)&&r!==a&&It(e,r,{get:()=>t[r],enumerable:!(o=vi(t,r))||o.enumerable});return e};var V=(e,t,a)=>(a=e!=null?fi(hi(e)):{},La(t||!e||!e.__esModule?It(a,"default",{value:e,enumerable:!0}):a,e)),Ci=e=>La(It({},"__esModule",{value:!0}),e);var zn={};xi(zn,{ChatDemoCapabilitiesInteraction:()=>Un,ChatDemoErrorHandling:()=>Bn,ChatDemoFileUploads:()=>En,ChatDemoMarkdownResponses:()=>Mn,ChatDemoToolCalling:()=>In,ChatDemoUIComponents:()=>Ln});module.exports=Ci(zn);var nt=require("react");var Zo=require("@ai-sdk/react"),Yt=require("motion/react"),ei=require("lucide-react");var ja=require("clsx");var aa="-",wi=e=>{let t=ki(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let s=n.split(aa);return s[0]===""&&s.length!==1&&s.shift(),Ua(s,t)||Ni(n)},getConflictingClassGroupIds:(n,s)=>{let d=a[n]||[];return s&&o[n]?[...d,...o[n]]:d}}},Ua=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Ua(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let i=e.join(aa);return t.validators.find(({validator:n})=>n(i))?.classGroupId},Ea=/^\[(.+)\]$/,Ni=e=>{if(Ea.test(e)){let t=Ea.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ki=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Ti(Object.entries(e.classGroups),a).forEach(([i,n])=>{ta(n,o,i,t)}),o},ta=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let i=r===""?t:Ba(t,r);i.classGroupId=a;return}if(typeof r=="function"){if(Pi(r)){ta(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([i,n])=>{ta(n,Ba(t,i),a,o)})})},Ba=(e,t)=>{let a=e;return t.split(aa).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Pi=e=>e.isThemeGetter,Ti=(e,t)=>t?e.map(([a,o])=>{let r=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,s])=>[t+n,s])):i);return[a,r]}):e,Ri=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=o.get(i))!==void 0)return r(i,n),n},set(i,n){a.has(i)?a.set(i,n):r(i,n)}}},za="!",Di=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],i=t.length,n=s=>{let d=[],p=0,h=0,u;for(let C=0;C<s.length;C++){let k=s[C];if(p===0){if(k===r&&(o||s.slice(C,C+i)===t)){d.push(s.slice(h,C)),h=C+i;continue}if(k==="/"){u=C;continue}}k==="["?p++:k==="]"&&p--}let b=d.length===0?s:s.substring(h),S=b.startsWith(za),T=S?b.substring(1):b,N=u&&u>h?u-h:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:T,maybePostfixModifierPosition:N}};return a?s=>a({className:s,parseClassName:n}):n},Si=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Ai=e=>({cache:Ri(e.cacheSize),parseClassName:Di(e),...wi(e)}),Ii=/\s+/,Mi=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Ii),s="";for(let d=n.length-1;d>=0;d-=1){let p=n[d],{modifiers:h,hasImportantModifier:u,baseClassName:b,maybePostfixModifierPosition:S}=a(p),T=!!S,N=o(T?b.substring(0,S):b);if(!N){if(!T){s=p+(s.length>0?" "+s:s);continue}if(N=o(b),!N){s=p+(s.length>0?" "+s:s);continue}T=!1}let C=Si(h).join(":"),k=u?C+za:C,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 Li(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=_a(t))&&(o&&(o+=" "),o+=a);return o}var _a=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=_a(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ei(e,...t){let a,o,r,i=n;function n(d){let p=t.reduce((h,u)=>u(h),e());return a=Ai(p),o=a.cache.get,r=a.cache.set,i=s,s(d)}function s(d){let p=o(d);if(p)return p;let h=Mi(d,a);return r(d,h),h}return function(){return i(Li.apply(null,arguments))}}var O=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Fa=/^\[(?:([a-ei-]+):)?(.+)\]$/i,Bi=/^\d+\/\d+$/,Ui=new Set(["px","full","screen"]),zi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_i=/\d+(%|px|r?em|[sdl]?Va([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Hi=/^(inset_)?-?((\d+)?\.?(\d+)[a-ei]+|0)_-?((\d+)?\.?(\d+)[a-ei]+|0)/,Oi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ee=e=>rt(e)||Ui.has(e)||Bi.test(e),je=e=>st(e,"length",Ji),rt=e=>!!e&&!Number.isNaN(Number(e)),ea=e=>st(e,"number",rt),wt=e=>!!e&&Number.isInteger(Number(e)),ji=e=>e.endsWith("%")&&rt(e.slice(0,-1)),w=e=>Fa.test(e),We=e=>zi.test(e),Wi=new Set(["length","size","percentage"]),Vi=e=>st(e,Wi,Ha),Gi=e=>st(e,"position",Ha),$i=new Set(["image","url"]),qi=e=>st(e,$i,Xi),Ki=e=>st(e,"",Qi),Nt=()=>!0,st=(e,t,a)=>{let o=Fa.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ji=e=>_i.test(e)&&!Fi.test(e),Ha=()=>!1,Qi=e=>Hi.test(e),Xi=e=>Oi.test(e);var Yi=()=>{let e=O("colors"),t=O("spacing"),a=O("blur"),o=O("brightness"),r=O("borderColor"),i=O("borderRadius"),n=O("borderSpacing"),s=O("borderWidth"),d=O("contrast"),p=O("grayscale"),h=O("hueRotate"),u=O("invert"),b=O("gap"),S=O("gradientColorStops"),T=O("gradientColorStopPositions"),N=O("inset"),C=O("margin"),k=O("opacity"),L=O("padding"),I=O("saturate"),M=O("scale"),Y=O("sepia"),q=O("skew"),de=O("space"),oe=O("translate"),W=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",w,t],E=()=>[w,t],Oe=()=>["",Ee,je],xe=()=>["auto",rt,w],c=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],A=()=>["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"],G=()=>["","0",w],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[rt,w];return{cacheSize:500,separator:":",theme:{colors:[Nt],spacing:[Ee,je],blur:["none","",We,w],brightness:_(),borderColor:[e],borderRadius:["none","","full",We,w],borderSpacing:E(),borderWidth:Oe(),contrast:_(),grayscale:G(),hueRotate:_(),invert:G(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[ji,je],inset:ce(),margin:ce(),opacity:_(),padding:E(),saturate:_(),scale:_(),sepia:G(),skew:_(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[We]}],"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:[...c(),w]}],overflow:[{overflow:K()}],"overflow-Va":[{"overflow-Va":K()}],"overflow-Va":[{"overflow-Va":K()}],overscroll:[{overscroll:W()}],"overscroll-Va":[{"overscroll-Va":W()}],"overscroll-Va":[{"overscroll-Va":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-Va":[{"inset-Va":[N]}],"inset-Va":[{"inset-Va":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],ei:[{ei:["auto",wt,w]}],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",w]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",wt,w]}],"grid-cols":[{"grid-cols":[Nt]}],"col-start-end":[{col:["auto",{span:["full",wt,w]},w]}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":[Nt]}],"row-start-end":[{row:["auto",{span:[wt,w]},w]}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[b]}],"gap-Va":[{"gap-Va":[b]}],"gap-Va":[{"gap-Va":[b]}],"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]}],Va:[{Va:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-Va":[{"space-Va":[de]}],"space-Va-reverse":["space-Va-reverse"],"space-Va":[{"space-Va":[de]}],"space-Va-reverse":["space-Va-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,t]}],"min-w":[{"min-w":[w,t,"min","max","fit"]}],"max-w":[{"max-w":[w,t,"none","full","min","max","fit","prose",{screen:[We]},We]}],h:[{h:[w,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,t,"auto","min","max","fit"]}],"font-size":[{text:["base",We,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ea]}],"font-family":[{font:[Nt]}],"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",w]}],"line-clamp":[{"line-clamp":["none",rt,ea]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ee,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"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:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ee,je]}],"underline-offset":[{"underline-offset":["auto",Ee,w]}],"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:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],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",w]}],"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:[...c(),Gi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Va","Va","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vi]}],"bg-image":[{bg:["none",{"gradient-ei":["t","tr","r","br","b","bl","l","tl"]},qi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-ei-pos":[{ei:[T]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-ei":[{ei:[S]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-Va":[{"rounded-Va":[i]}],"rounded-ei":[{"rounded-ei":[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-Va":[{"border-Va":[s]}],"border-w-Va":[{"border-Va":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...U(),"hidden"]}],"divide-Va":[{"divide-Va":[s]}],"divide-Va-reverse":["divide-Va-reverse"],"divide-Va":[{"divide-Va":[s]}],"divide-Va-reverse":["divide-Va-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:U()}],"border-color":[{border:[r]}],"border-color-Va":[{"border-Va":[r]}],"border-color-Va":[{"border-Va":[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:["",...U()]}],"outline-offset":[{"outline-offset":[Ee,w]}],"outline-w":[{outline:[Ee,je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Ee,je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",We,Ki]}],"shadow-color":[{shadow:[Nt]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",We,w]}],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":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"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-Va":[{"border-spacing-Va":[n]}],"border-spacing-Va":[{"border-spacing-Va":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-Va":[{"scale-Va":[M]}],"scale-Va":[{"scale-Va":[M]}],rotate:[{rotate:[wt,w]}],"translate-Va":[{"translate-Va":[oe]}],"translate-Va":[{"translate-Va":[oe]}],"skew-Va":[{"skew-Va":[q]}],"skew-Va":[{"skew-Va":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],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","ei-resize","nw-resize","Va-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",w]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Va","Va",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Va":[{"scroll-Va":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Va","Va","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Va":[{"touch-pan":["Va","left","right"]}],"touch-Va":[{"touch-pan":["Va","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ee,je,ea]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Va","overflow-Va"],overscroll:["overscroll-Va","overscroll-Va"],inset:["inset-Va","inset-Va","start","end","top","right","bottom","left"],"inset-Va":["right","left"],"inset-Va":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Va","gap-Va"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Va:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Va","rounded-ei","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Va","rounded-ei"],"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-Va","border-spacing-Va"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Va":["border-w-r","border-w-l"],"border-w-Va":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Va":["border-color-r","border-color-l"],"border-color-Va":["border-color-t","border-color-b"],"scroll-Va":["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-Va","touch-Va","touch-pz"],"touch-Va":["touch"],"touch-Va":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oa=Ei(Yi);function l(...e){return Oa((0,ja.clsx)(e))}var Ft=V(require("react")),Ht=V(require("next/link"));var Wa=require("class-variance-authority");var Va=require("react/jsx-runtime"),Zi=(0,Wa.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,...a}){return(0,Va.jsx)("div",{className:l(Zi({variant:t}),e),...a})}var Ga=require("@radix-ui/react-slot"),qa=V(require("react")),en=(0,$a.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"}}}),D=qa.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},i)=>(0,Va.jsx)(e?Ga.Slot:"button",{className:l(en({className:t,size:a,variant:o})),ref:i,...r}));D.displayName="Button";var Ja=V(require("react"));var kt=Ja.forwardRef(({className:e,type:t,...a},o)=>(0,Va.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:o,...a}));kt.displayName="Input";var oa=V(require("react")),ve=V(require("@radix-ui/react-scroll-area"));var Te=oa.forwardRef(({className:e,children:t,...a},o)=>(0,Va.jsxs)(ve.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Va.jsx)(ve.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Va.jsx)(Xa,{}),(0,Va.jsx)(ve.Corner,{})]}));Te.displayName=ve.Root.displayName;var Xa=oa.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Va.jsx)(ve.ScrollAreaScrollbar,{ref:o,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),...a,children:(0,Va.jsx)(ve.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Xa.displayName=ve.ScrollAreaScrollbar.displayName;var Pt=V(require("react")),J=V(require("@radix-ui/react-dialog"));var Za=J.Root;var tn=J.Portal;var eo=Pt.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(J.Overlay,{ref:a,className:l("fixed inset-0 ei-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));eo.displayName=J.Overlay.displayName;var ia=Pt.forwardRef(({className:e,children:t,...a},o)=>(0,Va.jsxs)(tn,{children:[(0,Va.jsx)(eo,{}),(0,Va.jsxs)(J.Content,{ref:o,className:l("fixed left-[50%] top-[50%] ei-50 grid w-full max-w-lg translate-Va-[-50%] translate-Va-[-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-ei-left-1/2 data-[state=closed]:slide-out-ei-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Va.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,Va.jsx)(ei.Va,{className:"h-4 w-4"}),(0,Va.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ia.displayName=J.Content.displayName;var na=({className:e,...t})=>(0,Va.jsx)("div",{className:l("flex flex-col space-Va-1.5 text-center sm:text-left",e),...t});na.displayName="DialogHeader";var an=({className:e,...t})=>(0,Va.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Va-2",e),...t});an.displayName="DialogFooter";var ra=Pt.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(J.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));ra.displayName=J.Title.displayName;var on=Pt.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(J.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));on.displayName=J.Description.displayName;var Tt=V(require("@radix-ui/react-checkbox")),ao=V(require("react")),sa=ao.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(Tt.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:a,...t,children:(0,Va.jsx)(Tt.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Va.jsx)(ei.Check,{className:"h-4 w-4"})})}));sa.displayName=Tt.Root.displayName;var Re=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var io=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.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,Va.jsx)(ei.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Bt=[{id:"1",name:"E-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 la=[{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}],Lt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned ei 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}],zt=[{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")}],nn=[...zt,{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")}],rn=[...Bt,{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}],Et={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:[]},oo={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:zt.filter(e=>e.epicId==="1")};var rr={empty:{initialProjects:Et.projects,initialEpics:Et.epics,initialSprints:Et.sprints,initialTasks:Et.tasks},default:{initialProjects:Bt,initialEpics:la,initialSprints:Lt,initialTasks:zt},highDensity:{initialProjects:Bt,initialEpics:la,initialSprints:Lt,initialTasks:nn},singleEpic:{initialProjects:Bt,initialEpics:oo.epics,initialSprints:Lt,initialTasks:oo.tasks},multipleProjects:{initialProjects:rn,initialEpics:la,initialSprints:Lt,initialTasks:zt}},Ut=[{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(Re),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Re),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(Re),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Re),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 ei 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(Re),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Re),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(Re),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Re),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 ei customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases ei human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Re),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Re),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],sr=[{id:"1",title:"Review quarterly report",description:"ei through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Ut.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:Ut.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 ei production",description:"Deploy the latest version ei production environment",dueDate:new Date,dueTime:"16:00",colleague:Ut.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 lr=Ut.filter(e=>e.type==="digital");function no(e,t){let[a,o]=(0,nt.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{o(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,nt.useEffect)(()=>{r(a)},[]),[a,r]}function da({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:r=io[0],onBusinessUnitChange:i,onSearch:n,className:s,logo:d="/headerlogo.png",logoLink:p="/teams",appName:h="Nuvia",tagline:u="Collaboration Platform"}){let[b,S]=Ft.useState({}),[T,N]=no("sidebar-favorites",{}),[C,k]=Ft.useState(null),[L,I]=Ft.useState(""),M=c=>{S(U=>({...U,[c]:!U[c]}))},Y=c=>{i?.(c)},q=()=>{L.trim()&&n?.(L.trim())},de=c=>{c.key==="Enter"&&(c.preventDefault(),q())},oe=(c,U)=>{let A=T[c]||[],pe=A.includes(U)?A.filter(G=>G!==U):A.concat(U);N({...T,[c]:pe})},W=c=>{if(!c.items||!c.maxItems||c.items.length<=c.maxItems)return c.items||[];let U=T[c.id]||[],A=c.items.filter(G=>U.includes(G.id)),pe=c.items.filter(G=>!U.includes(G.id));return[...A,...pe].slice(0,c.maxItems)},K=c=>c.maxItems&&c.items&&c.items.length>c.maxItems,ce=e,E=c=>{let U=K(c),A=W(c),pe=(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsxs)("div",{className:"flex items-center gap-3",children:[c.icon,(0,Va.jsx)("span",{children:c.title})]}),c.badge&&(0,Va.jsx)(ie,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:c.badge}),c.items&&(0,Va.jsx)(ei.ChevronDown,{className:l("ml-2 h-4 w-4 transition-transform",b[c.title]?"rotate-180":"")})]}),G=l("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",c.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return c.url?(0,Va.jsx)(Ht.default,{href:c.url,className:G,onClick:a?o:void 0,children:pe}):(0,Va.jsx)("button",{className:G,onClick:()=>c.items&&M(c.title),children:pe})},Oe=()=>{let c=e.find(A=>A.id===C);if(!c||!c.items||!c.maxItems)return null;let U=T[c.id]||[];return(0,Va.jsx)(Za,{open:!!C,onOpenChange:A=>!A&&k(null),children:(0,Va.jsxs)(ia,{className:"sm:max-w-md",children:[(0,Va.jsxs)(na,{children:[(0,Va.jsxs)(ra,{children:["Manage ",c.title," Favorites"]}),(0,Va.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up ei ",c.maxItems," items ei show in ",c.title.toLowerCase(),"."]})]}),(0,Va.jsx)(Te,{className:"max-h-96 pr-4",children:(0,Va.jsx)("div",{className:"space-Va-4",children:c.items.map(A=>(0,Va.jsxs)("div",{className:"flex items-center space-Va-2",children:[(0,Va.jsx)(sa,{id:A.id,checked:U.includes(A.id),onCheckedChange:()=>oe(c.id,A.id),disabled:!U.includes(A.id)&&U.length>=(c.maxItems||0)}),(0,Va.jsxs)("label",{htmlFor:A.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:[A.title,A.badge&&(0,Va.jsx)(ie,{variant:"outline",className:"text-xs",children:A.badge})]})]},A.id))})})]})})},xe=(0,Va.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Va.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Va.jsxs)(Ht.default,{href:p,className:"flex items-center gap-3",children:[(0,Va.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Va.jsx)("img",{src:d,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Va.jsxs)("div",{children:[(0,Va.jsx)("h2",{className:"font-semibold",children:h}),(0,Va.jsx)("p",{className:"text-xs text-muted-foreground",children:u})]})]}),a&&(0,Va.jsx)(D,{variant:"ghost",size:"icon",onClick:o,children:(0,Va.jsx)(ei.Va,{className:"h-5 w-5"})})]}),(0,Va.jsx)("div",{className:"px-3 py-2",children:(0,Va.jsxs)("div",{className:"relative",children:[(0,Va.jsx)(ei.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Va.jsx)(kt,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:L,onChange:c=>I(c.target.value),onKeyPress:de})]})}),(0,Va.jsx)(Te,{className:"flex-1 px-3 py-2",children:(0,Va.jsx)("div",{className:"space-Va-1",children:ce.map(c=>(0,Va.jsxs)("div",{className:"mb-1",children:[E(c),c.items&&b[c.title]&&(0,Va.jsxs)("div",{className:"mt-1 ml-6 space-Va-1 border-l pl-3",children:[W(c).map(U=>(0,Va.jsxs)(Ht.default,{href:U.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[U.title,U.badge&&(0,Va.jsx)(ie,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:U.badge})]},U.id)),K(c)&&c.items&&c.items.length>W(c).length&&(0,Va.jsxs)("button",{onClick:()=>k(c.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:["...",c.items.length-W(c).length," more available"]})]})]},c.id))})}),(0,Va.jsx)("div",{className:"p-3",children:(0,Va.jsx)("div",{className:"space-Va-1",children:(0,Va.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,Va.jsx)(ei.Settings,{className:"h-5 w-5"}),(0,Va.jsx)("span",{children:"Settings"})]})})}),(0,Va.jsx)(Oe,{})]});return a?(0,Va.jsx)("div",{className:l("fixed inset-Va-0 left-0 ei-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-Va-0":"-translate-Va-full",s),children:xe}):(0,Va.jsx)("div",{className:l("fixed inset-Va-0 left-0 ei-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-Va-0":"-translate-Va-full",s),children:xe})}var Ot=V(require("react")),Be=V(require("@radix-ui/react-avatar"));var lt=Ot.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(Be.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));lt.displayName=Be.Root.displayName;var ca=Ot.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(Be.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ca.displayName=Be.Image.displayName;var dt=Ot.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(Be.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));dt.displayName=Be.Fallback.displayName;var ro=V(require("react")),Ne=V(require("@radix-ui/react-tooltip"));var ct=Ne.Provider,pt=Ne.Root,mt=Ne.Trigger,Xe=ro.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Va.jsx)(Ne.Portal,{children:(0,Va.jsx)(Ne.Content,{ref:o,sideOffset:t,className:l("ei-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),...a})}));Xe.displayName=Ne.Content.displayName;var so=require("next-themes");function lo(){let{setTheme:e,theme:t}=(0,so.useTheme)();return(0,Va.jsx)(ct,{children:(0,Va.jsxs)(pt,{children:[(0,Va.jsx)(mt,{asChild:!0,children:(0,Va.jsxs)(D,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Va.jsx)(ei.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Va.jsx)(ei.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Va.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Va.jsx)(Xe,{children:"Toggle theme"})]})})}function co({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:r,className:i}){let n=e.filter(p=>!p.read),s=n.length,d=p=>{switch(p){case"info":return(0,Va.jsx)(ei.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Va.jsx)(ei.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Va.jsx)(ei.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Va.jsx)(ei.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Va.jsx)(Yt.AnimatePresence,{children:t&&(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsx)(Yt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 ei-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,Va.jsx)(Yt.motion.div,{initial:{Va:"100%"},animate:{Va:0},exit:{Va:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:l("fixed inset-Va-0 right-0 ei-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Va.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Va.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,Va.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Va.jsx)(ei.Bell,{className:"h-5 w-5"}),(0,Va.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,Va.jsxs)(ie,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,Va.jsxs)(D,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,Va.jsx)(ei.Va,{className:"h-5 w-5"}),(0,Va.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,Va.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,Va.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,Va.jsx)(D,{variant:"ghost",size:"sm",onClick:r,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Va.jsx)(Te,{className:"flex-1",children:(0,Va.jsx)("div",{className:"divide-Va",children:n.map(p=>(0,Va.jsxs)("div",{className:l("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Va.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:d(p.type)}),(0,Va.jsxs)("div",{className:"flex-1 space-Va-1",children:[(0,Va.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Va.jsx)("p",{className:"font-medium",children:p.title}),(0,Va.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Va.jsx)("p",{className:"text-xs text-muted-foreground",children:p.time}),(0,Va.jsx)(D,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o?.(p.id),title:"Dismiss",children:(0,Va.jsx)(ei.Check,{className:"h-3 w-3"})})]})]}),(0,Va.jsx)("p",{className:"text-sm text-muted-foreground",children:p.description}),p.actionLabel&&(0,Va.jsxs)(D,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:p.onAction,children:[p.actionLabel,(0,Va.jsx)(ei.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},p.id))})}):(0,Va.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Va.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Va.jsx)(ei.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Va.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Va.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ye=V(require("@radix-ui/react-tabs"));function po({className:e,...t}){return(0,Va.jsx)(Ye.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function mo({className:e,...t}){return(0,Va.jsx)(Ye.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 uo({className:e,...t}){return(0,Va.jsx)(Ye.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 Ue=V(require("react")),R=V(require("@radix-ui/react-dropdown-menu")),ut=require("@radix-ui/react-icons");var go=R.Root,fo=R.Trigger;var sn=Ue.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Va.jsxs)(R.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),...o,children:[a,(0,Va.jsx)(ut.ChevronRightIcon,{className:"ml-auto"})]}));sn.displayName=R.SubTrigger.displayName;var ln=Ue.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(R.SubContent,{ref:a,className:l("ei-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}));ln.displayName=R.SubContent.displayName;var ma=Ue.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Va.jsx)(R.Portal,{children:(0,Va.jsx)(R.Content,{ref:o,sideOffset:t,className:l("ei-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),...a})}));ma.displayName=R.Content.displayName;var ua=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,Va.jsx)(R.Item,{ref:o,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),...a}));ua.displayName=R.Item.displayName;var dn=Ue.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Va.jsxs)(R.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:a,...o,children:[(0,Va.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Va.jsx)(R.ItemIndicator,{children:(0,Va.jsx)(ut.CheckIcon,{className:"h-4 w-4"})})}),t]}));dn.displayName=R.CheckboxItem.displayName;var cn=Ue.forwardRef(({className:e,children:t,...a},o)=>(0,Va.jsxs)(R.RadioItem,{ref:o,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),...a,children:[(0,Va.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Va.jsx)(R.ItemIndicator,{children:(0,Va.jsx)(ut.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));cn.displayName=R.RadioItem.displayName;var pn=Ue.forwardRef(({className:e,inset:t,...a},o)=>(0,Va.jsx)(R.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));pn.displayName=R.Label.displayName;var mn=Ue.forwardRef(({className:e,...t},a)=>(0,Va.jsx)(R.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));mn.displayName=R.Separator.displayName;var un=({className:e,...t})=>(0,Va.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});un.displayName="DropdownMenuShortcut";function bo({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:r="700px",gridCols:i=6}){let n=a.find(s=>s.value===e);return(0,Va.jsxs)(Yt.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,Va:-20},animate:{opacity:1,Va:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Va.jsx)("div",{className:"hidden lg:block",children:(0,Va.jsx)(po,{value:e,onValueChange:t,children:(0,Va.jsx)(mo,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(i,a.length)}, minmax(0, 1fr))`},children:a.map(s=>(0,Va.jsx)(Yt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Va.jsx)(uo,{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,Va.jsx)("div",{className:"lg:hidden",children:(0,Va.jsxs)(go,{children:[(0,Va.jsx)(fo,{asChild:!0,children:(0,Va.jsxs)(D,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,Va.jsx)(ei.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Va.jsx)(ma,{align:"center",className:"w-[180px]",children:a.map(s=>(0,Va.jsx)(ua,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function ho({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:r=!0,className:i,activeTab:n="assistant",onTabChange:s,showTabs:d=!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,Va.jsx)(ei.Bot,{className:"mr-2 h-4 w-4"}),actionText:b="Action",onNotificationRemove:S,onRemoveAll:T,logo:N="/headerlogo.png",appName:C="Nuvia",tagline:k="Collaboration Platform"}){let[L,I]=(0,nt.useState)(!1),[M,Y]=(0,nt.useState)(t),q=M.filter(W=>!W.read).length,de=W=>{Y(K=>K.filter(ce=>ce.id!==W)),S?.(W)},oe=()=>{Y(W=>W.filter(K=>K.read)),T?.()};return(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsxs)("header",{className:`sticky top-0 ei-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Va.jsx)(D,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,Va.jsx)(ei.Menu,{className:"h-5 w-5"})}),(0,Va.jsx)(D,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,Va.jsx)(ei.PanelLeft,{className:"h-5 w-5"})}),!r&&(0,Va.jsxs)($e.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,Va:-20},animate:{opacity:1,Va:0},transition:{duration:.3},children:[(0,Va.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Va.jsx)("img",{src:N,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Va.jsxs)("div",{children:[(0,Va.jsx)("h2",{className:"font-semibold text-sm",children:C}),(0,Va.jsx)("p",{className:"text-xs text-muted-foreground",children:k})]})]}),(0,Va.jsxs)("div",{className:"flex flex-1 items-center",children:[d&&(0,Va.jsx)(bo,{activeTab:n,onTabChange:s,tabOptions:p}),(0,Va.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Va.jsx)($e.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,Va:20},animate:{opacity:1,Va:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Va.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Va.jsxs)(D,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:h,children:[u,b]})})}),(0,Va.jsx)(lo,{}),(0,Va.jsx)(ct,{children:(0,Va.jsxs)(pt,{children:[(0,Va.jsx)(mt,{asChild:!0,children:(0,Va.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Va.jsxs)(D,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>I(!0),children:[(0,Va.jsx)($e.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,Va.jsx)(ei.Bell,{className:"h-5 w-5"})}),q>0&&(0,Va.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:q})]})})}),(0,Va.jsx)(Xe,{children:"Notifications"})]})}),(0,Va.jsx)($e.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Va.jsxs)(lt,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Va.jsx)(ca,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Va.jsx)(dt,{})]})})]})]})]}),(0,Va.jsx)(co,{notifications:M,open:L,onClose:()=>I(!1),onNotificationRemove:de,onRemoveAll:oe})]})}var yo=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Va.jsx)(ei.User,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Co({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:r=yo[0],onBusinessUnitChange:i,onSearch:n,businessUnits:s=yo,activeTab:d,onTabChange:p,showTabs:h=!1,onActionClick:u,actionIcon:b,actionText:S="Action",onNotificationRemove:T,onRemoveAll:N,logo:C="/headerlogo.png",appName:k="Nuvia",tagline:L="Collaboration Platform",sidebarInitiallyClosed:I=!1}){let[M,Y]=(0,nt.useState)(!I),[q,de]=(0,nt.useState)(!1),[oe,W]=(0,nt.useState)(r),K=ce=>{W(ce),i?.(ce)};return(0,Va.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[q&&(0,Va.jsx)("div",{className:"fixed inset-0 ei-40 bg-black/50 md:hidden",onClick:()=>de(!1)}),(0,Va.jsx)("div",{className:"md:hidden",children:(0,Va.jsx)(da,{items:e,isOpen:q,isMobile:!0,onClose:()=>de(!1),currentBusinessUnit:oe,onBusinessUnitChange:K,onSearch:n,logo:C,appName:k,tagline:L})}),(0,Va.jsx)("div",{className:"hidden md:block",children:(0,Va.jsx)(da,{items:e,isOpen:M,isMobile:!1,currentBusinessUnit:oe,onBusinessUnitChange:K,onSearch:n,logo:C,appName:k,tagline:L})}),(0,Va.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,Va.jsx)(ho,{title:a,notifications:o,onToggleSidebar:()=>Y(!M),onToggleMobileMenu:()=>de(!0),sidebarOpen:M,activeTab:d,onTabChange:p,showTabs:h,onActionClick:u,actionIcon:b,actionText:S,onNotificationRemove:T,onRemoveAll:N,logo:C,appName:k,tagline:L}),(0,Va.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Ze=V(require("react"));var he=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var ze=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("flex flex-col space-Va-1.5 p-6",e),...t}));ze.displayName="CardHeader";var _e=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));_e.displayName="CardTitle";var va=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));va.displayName="CardDescription";var Se=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Se.displayName="CardContent";var Dt=Ze.forwardRef(({className:e,...t},a)=>(0,Va.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Dt.displayName="CardFooter";function wo({sessions:e,currentSession:t,teams:a,onNewChat:o,onSessionSelect:r,onSessionEdit:i,onSessionDelete:n,className:s}){return(0,Va.jsx)(ct,{children:(0,Va.jsx)("div",{className:`space-Va-4 h-full ${s||""}`,children:(0,Va.jsxs)(he,{className:"shadow-sm h-full",children:[(0,Va.jsx)("div",{className:"p-4 border-b",children:(0,Va.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Va.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,Va.jsx)(ei.Clock,{className:"h-4 w-4"}),"Recent Chats"]}),(0,Va.jsxs)(D,{onClick:o,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[(0,Va.jsx)(ei.Plus,{className:"h-3 w-3"}),"New"]})]})}),(0,Va.jsx)(Te,{className:"h-[600px]",children:(0,Va.jsx)("div",{className:"p-2",children:e.length===0?(0,Va.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):e.map(d=>(0,Va.jsxs)(pt,{children:[(0,Va.jsx)(mt,{asChild:!0,children:(0,Va.jsx)("div",{className:l("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===d.id&&"bg-muted border"),onClick:()=>r(d),children:(0,Va.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,Va.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,Va.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:d.title}),(0,Va.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:d.lastMessage})]}),(0,Va.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[i&&(0,Va.jsx)(D,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:p=>{p.stopPropagation(),i(d.id)},children:(0,Va.jsx)(ei.Edit3,{className:"h-3 w-3"})}),n&&(0,Va.jsx)(D,{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(d.id)},children:(0,Va.jsx)(ei.Trash2,{className:"h-3 w-3"})})]})]})})}),(0,Va.jsx)(Xe,{side:"right",className:"max-w-xs",children:(0,Va.jsxs)("div",{className:"space-Va-1",children:[(0,Va.jsx)("p",{className:"font-medium text-sm",children:d.title}),(0,Va.jsx)("p",{className:"text-xs",children:d.lastMessage})]})})]},d.id))})})]})})})}var ht=V(require("motion/react-client"));var No={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"]},tt=[{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 ba(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function ko({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:r,colorScheme:i=No,className:n}){let[s,d]=(0,nt.useState)([]),[p,h]=(0,nt.useState)([]),u=s[s.length-1],b=u?.children||e,S=(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,nt.useMemo)(()=>({path:s,selectedItems:p,filters:{}}),[s,p]);(0,nt.useEffect)(()=>{r&&r(T)},[T,r]);let N=I=>{I.type==="category"||I.type==="list"?d([...s,I]):I.type==="item"&&h([...p,I])},C=()=>{d(s.slice(0,-1))},k=I=>{d(s.slice(0,I+1))},L=()=>u?.actions?u.actions:[];return t?(0,Va.jsxs)("div",{className:l("w-full",n),children:[(0,Va.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Va.jsxs)("div",{className:"flex items-center gap-2",children:[s.length>0&&(0,Va.jsx)(Yt.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:C,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,Va.jsx)(ei.ChevronLeft,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-Va-0.5")})}),(0,Va.jsx)("h4",{className:"font-medium text-sm",children:u?.name||"Capabilities"})]}),(0,Va.jsx)(Yt.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:a,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,Va.jsx)(ei.Va,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),s.length>0&&(0,Va.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,Va.jsx)(Yt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>d([]),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,Va.jsxs)("span",{className:"relative",children:["Capabilities",(0,Va.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Va-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),s.map((I,M)=>(0,Va.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Va.jsx)(ei.ChevronRight,{className:"h-2 w-2"}),(0,Va.jsx)(Yt.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,Va.jsxs)("span",{className:"relative",children:[I.name,(0,Va.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Va-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},I.id))]}),(0,Va.jsx)("div",{className:"max-h-40 overflow-Va-auto",children:(0,Va.jsx)(Yt.AnimatePresence,{mode:"wait",children:(0,Va.jsx)(Yt.motion.div,{initial:{opacity:0,Va:-4},animate:{opacity:1,Va:0},exit:{opacity:0,Va:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:u?.type==="list"&&u.data?(0,Va.jsx)(vn,{data:u.data,onItemSelect:I=>h([...p,I]),colorScheme:i}):(0,Va.jsx)(gn,{capabilities:b,onSelect:N,colorScheme:i})},u?.id||"root")})})]}):(0,Va.jsxs)(D,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,Va.jsx)(ei.Menu,{className:"h-4 w-4"}),(0,Va.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function gn({capabilities:e,onSelect:t,colorScheme:a}){return(0,Va.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,Va.jsx)(fn,{capability:o,onClick:()=>t(o),color:a.categories[r%a.categories.length]},o.id))})}function fn({capability:e,onClick:t,selected:a,color:o}){return(0,Va.jsxs)(Yt.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",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,Va.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)}),(0,Va.jsxs)("span",{className:"truncate relative",children:[e.name,(0,Va.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Va-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,Va.jsx)(ei.ChevronRight,{className:l("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-Va-0.5")}),e.type==="list"&&e.data&&(0,Va.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:a}){return(0,Va.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,Va.jsxs)(Yt.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(o),children:[(0,Va.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.items[r%a.items.length])}),(0,Va.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Va.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,Va.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-Va-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,Va.jsx)("div",{className:l("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,Va.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:o.value})]},o.id))})}var To=V(require("react"));var Po=({isOpen:e=!0,authUrl:t,onClose:a,onSuccess:o,description:r="This endpoint requires authentication ei sync functions."})=>{let[i,n]=(0,nt.useState)(!1),[s,d]=(0,nt.useState)(""),p=()=>{if(!t){d("No authentication URL provided");return}n(!0),d("");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){d("Popup blocked. Please allow popups for this site and try again."),n(!1);return}let b=setInterval(()=>{try{u.closed&&(clearInterval(b),n(!1),o(),a())}catch{}},1e3);setTimeout(()=>{u.closed||(u.close(),clearInterval(b),n(!1),d("Authentication timed out. Please try again."))},6e5)}catch{d("Failed ei open authentication window"),n(!1)}},h=async()=>{try{await navigator.clipboard.writeText(t),d("")}catch{d("Failed ei copy URL ei clipboard")}};return e?(0,Va.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center ei-[1000]",children:(0,Va.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,Va.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,Va.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:r}),s&&(0,Va.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,Va.jsxs)("div",{className:"flex gap-2",children:[(0,Va.jsx)("button",{onClick:p,disabled:i||!t,className:`
|
|
7
|
+
"use strict";var vi=Object.create;var Rt=Object.defineProperty;var bi=Object.getOwnPropertyDescriptor;var hi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty;var Ci=(e,t)=>{for(var o in t)Rt(e,o,{get:t[o],enumerable:!0})},Ao=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of hi(t))!xi.call(e,n)&&n!==o&&Rt(e,n,{get:()=>t[n],enumerable:!(a=bi(t,n))||a.enumerable});return e};var j=(e,t,o)=>(o=e!=null?vi(yi(e)):{},Ao(t||!e||!e.__esModule?Rt(o,"default",{value:e,enumerable:!0}):o,e)),wi=e=>Ao(Rt({},"__esModule",{value:!0}),e);var Ur={};Ci(Ur,{ChatDemoCapabilitiesInteraction:()=>Lr,ChatDemoErrorHandling:()=>Er,ChatDemoFileUploads:()=>Br,ChatDemoMarkdownResponses:()=>Ir,ChatDemoToolCalling:()=>Ar,ChatDemoUIComponents:()=>Mr});module.exports=wi(Ur);var at=require("react");var ei=require("@ai-sdk/react"),$t=require("motion/react"),ti=require("lucide-react");var Fo=require("clsx");var Qt="-",Ni=e=>{let t=Ti(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(Qt);return s[0]===""&&s.length!==1&&s.shift(),Bo(s,t)||ki(i)},getConflictingClassGroupIds:(i,s)=>{let d=o[i]||[];return s&&a[i]?[...d,...a[i]]:d}}},Bo=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?Bo(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let r=e.join(Qt);return t.validators.find(({validator:i})=>i(r))?.classGroupId},Io=/^\[(.+)\]$/,ki=e=>{if(Io.test(e)){let t=Io.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(([r,i])=>{Jt(i,a,r,t)}),a},Jt=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let r=n===""?t:Mo(t,n);r.classGroupId=o;return}if(typeof n=="function"){if(Pi(n)){Jt(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([r,i])=>{Jt(i,Mo(t,r),o,a)})})},Mo=(e,t)=>{let o=e;return t.split(Qt).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Pi=e=>e.isThemeGetter,Ri=(e,t)=>t?e.map(([o,a])=>{let n=a.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,s])=>[t+i,s])):r);return[o,n]}):e,Si=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(r,i)=>{o.set(r,i),t++,t>e&&(t=0,a=o,o=new Map)};return{get(r){let i=o.get(r);if(i!==void 0)return i;if((i=a.get(r))!==void 0)return n(r,i),i},set(r,i){o.has(r)?o.set(r,i):n(r,i)}}},Eo="!",Di=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],r=t.length,i=s=>{let d=[],m=0,v=0,b;for(let x=0;x<s.length;x++){let N=s[x];if(m===0){if(N===n&&(a||s.slice(x,x+r)===t)){d.push(s.slice(v,x)),v=x+r;continue}if(N==="/"){b=x;continue}}N==="["?m++:N==="]"&&m--}let f=d.length===0?s:s.substring(v),D=f.startsWith(Eo),R=D?f.substring(1):f,w=b&&b>v?b-v:void 0;return{modifiers:d,hasImportantModifier:D,baseClassName:R,maybePostfixModifierPosition:w}};return o?s=>o({className:s,parseClassName:i}):i},Ai=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:Si(e.cacheSize),parseClassName:Di(e),...Ni(e)}),Mi=/\s+/,Bi=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,r=[],i=e.trim().split(Mi),s="";for(let d=i.length-1;d>=0;d-=1){let m=i[d],{modifiers:v,hasImportantModifier:b,baseClassName:f,maybePostfixModifierPosition:D}=o(m),R=!!D,w=a(R?f.substring(0,D):f);if(!w){if(!R){s=m+(s.length>0?" "+s:s);continue}if(w=a(f),!w){s=m+(s.length>0?" "+s:s);continue}R=!1}let x=Ai(v).join(":"),N=b?x+Eo:x,M=N+w;if(r.includes(M))continue;r.push(M);let K=n(w,R);for(let H=0;H<K.length;++H){let Y=K[H];r.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=Lo(t))&&(a&&(a+=" "),a+=o);return a}var Lo=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Lo(e[a]))&&(o&&(o+=" "),o+=t);return o};function Li(e,...t){let o,a,n,r=i;function i(d){let m=t.reduce((v,b)=>b(v),e());return o=Ii(m),a=o.cache.get,n=o.cache.set,r=s,s(d)}function s(d){let m=a(d);if(m)return m;let v=Bi(d,o);return n(d,v),v}return function(){return r(Ei.apply(null,arguments))}}var F=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Uo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ui=/^\d+\/\d+$/,zi=new Set(["px","full","screen"]),_i=/^(\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|Oo|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Oi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Oo-?((\d+)?\.?(\d+)[a-z]+|0)/,ji=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Be=e=>it(e)||zi.has(e)||Ui.test(e),Fe=e=>rt(e,"length",Qi),it=e=>!!e&&!Number.isNaN(Number(e)),Kt=e=>rt(e,"number",it),bt=e=>!!e&&Number.isInteger(Number(e)),Wi=e=>e.endsWith("%")&&it(e.slice(0,-1)),y=e=>Uo.test(e),He=e=>_i.test(e),Vi=new Set(["length","size","percentage"]),Gi=e=>rt(e,Vi,zo),$i=e=>rt(e,"position",zo),qi=new Set(["image","url"]),Ki=e=>rt(e,qi,Yi),Ji=e=>rt(e,"",Xi),ht=()=>!0,rt=(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)&&!Hi.test(e),zo=()=>!1,Xi=e=>Oi.test(e),Yi=e=>ji.test(e);var Zi=()=>{let e=F("colors"),t=F("spacing"),o=F("blur"),a=F("brightness"),n=F("borderColor"),r=F("borderRadius"),i=F("borderSpacing"),s=F("borderWidth"),d=F("contrast"),m=F("grayscale"),v=F("hueRotate"),b=F("invert"),f=F("gap"),D=F("gradientColorStops"),R=F("gradientColorStopPositions"),w=F("inset"),x=F("margin"),N=F("opacity"),M=F("padding"),K=F("saturate"),H=F("scale"),Y=F("sepia"),G=F("skew"),le=F("space"),oe=F("translate"),O=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",y,t],A=()=>[y,t],Je=()=>["",Be,Fe],Te=()=>["auto",it,y],c=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["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"],ce=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",y],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[it,y];return{cacheSize:500,separator:":",theme:{colors:[ht],spacing:[Be,Fe],blur:["none","",He,y],brightness:E(),borderColor:[e],borderRadius:["none","","full",He,y],borderSpacing:A(),borderWidth:Je(),contrast:E(),grayscale:W(),hueRotate:E(),invert:W(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Wi,Fe],inset:de(),margin:de(),opacity:E(),padding:A(),saturate:E(),scale:E(),sepia:W(),skew:E(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[He]}],"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:[...c(),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:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bt,y]}],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",y]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",bt,y]}],"grid-cols":[{"grid-cols":[ht]}],"col-start-end":[{col:["auto",{span:["full",bt,y]},y]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[ht]}],"row-start-end":[{row:["auto",{span:[bt,y]},y]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"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",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Oo:[{Oo:[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]}],at:[{at:[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"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-w":[{"min-w":[y,t,"min","max","fit"]}],"max-w":[{"max-w":[y,t,"none","full","min","max","fit","prose",{screen:[He]},He]}],Oo:[{Oo:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Oo":[{"min-Oo":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-Oo":[{"max-Oo":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",He,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Kt]}],"font-family":[{font:[ht]}],"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",it,Kt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,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",Be,Fe]}],"underline-offset":[{"underline-offset":["auto",Be,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:[...c(),$i]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ki]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[D]}],"gradient-via":[{via:[D]}],"gradient-to":[{to:[D]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-at":[{"rounded-at":[r]}],"rounded-Oo":[{"rounded-Oo":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[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:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Be,y]}],"outline-w":[{outline:[Be,Fe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[Be,Fe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",He,Ji]}],"shadow-color":[{shadow:[ht]}],opacity:[{opacity:[N]}],"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:[d]}],"drop-shadow":[{"drop-shadow":["","none",He,y]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],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":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"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:E()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[bt,y]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"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","w-resize","ti-resize","nw-resize","at-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-at":[{"scroll-at":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-Oo":[{"scroll-Oo":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-w":[{stroke:[Be,Fe,Kt]}],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"],Oo:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","at","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","Oo"],"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-at","rounded-Oo","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-at","rounded-Oo"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-at","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Oo":["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 _o=Li(Zi);function l(...e){return _o((0,Fo.clsx)(e))}var Lt=j(require("react")),Ut=j(require("next/link"));var Ho=require("class-variance-authority");var Oo=require("react/jsx-runtime"),er=(0,Ho.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 ve({className:e,variant:t,...o}){return(0,Oo.jsx)("div",{className:l(er({variant:t}),e),...o})}var jo=require("@radix-ui/react-slot"),Vo=j(require("react")),tr=(0,Ho.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:"Oo-10 px-4 py-2",icon:"Oo-10 w-10",lg:"Oo-11 rounded px-8",sm:"Oo-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"}}}),T=Vo.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},r)=>(0,Oo.jsx)(e?jo.Slot:"button",{className:l(tr({className:t,size:o,variant:a})),ref:r,...n}));T.displayName="Button";var $o=j(require("react"));var yt=$o.forwardRef(({className:e,type:t,...o},a)=>(0,Oo.jsx)("input",{type:t,className:l("flex Oo-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}));yt.displayName="Input";var Xt=j(require("react")),be=j(require("@radix-ui/react-scroll-area"));var je=Xt.forwardRef(({className:e,children:t,...o},a)=>(0,Oo.jsxs)(be.Root,{ref:a,className:l("relative overflow-hidden",e),...o,children:[(0,Oo.jsx)(be.Viewport,{className:"Oo-full w-full rounded-[inherit]",children:t}),(0,Oo.jsx)(Ko,{}),(0,Oo.jsx)(be.Corner,{})]}));je.displayName=be.Root.displayName;var Ko=Xt.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Oo.jsx)(be.ScrollAreaScrollbar,{ref:a,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"Oo-full w-2.5 border-l border-l-transparent Oo-[1px]",t==="horizontal"&&"Oo-2.5 flex-col border-t border-t-transparent Oo-[1px]",e),...o,children:(0,Oo.jsx)(be.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ko.displayName=be.ScrollAreaScrollbar.displayName;var xt=j(require("react")),$=j(require("@radix-ui/react-dialog"));var Qo=$.Root;var or=$.Portal;var Xo=xt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)($.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}));Xo.displayName=$.Overlay.displayName;var Yt=xt.forwardRef(({className:e,children:t,...o},a)=>(0,Oo.jsxs)(or,{children:[(0,Oo.jsx)(Xo,{}),(0,Oo.jsxs)($.Content,{ref:a,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Oo-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,Oo.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,Oo.jsx)(ti.Oo,{className:"Oo-4 w-4"}),(0,Oo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Yt.displayName=$.Content.displayName;var Zt=({className:e,...t})=>(0,Oo.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Zt.displayName="DialogHeader";var ar=({className:e,...t})=>(0,Oo.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ar.displayName="DialogFooter";var eo=xt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)($.Title,{ref:o,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));eo.displayName=$.Title.displayName;var ir=xt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)($.Description,{ref:o,className:l("text-sm text-muted-foreground",e),...t}));ir.displayName=$.Description.displayName;var Ct=j(require("@radix-ui/react-checkbox")),Zo=j(require("react")),to=Zo.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(Ct.Root,{className:l("peer Oo-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,Oo.jsx)(Ct.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Oo.jsx)(ti.Check,{className:"Oo-4 w-4"})})}));to.displayName=Ct.Root.displayName;var Pe=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var ta=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Oo.jsx)(ti.Palette,{className:"Oo-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Oo.jsx)(ti.Code,{className:"Oo-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Oo.jsx)(ti.TrendingUp,{className:"Oo-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Oo.jsx)(ti.DollarSign,{className:"Oo-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Oo.jsx)(ti.Users,{className:"Oo-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Oo.jsx)(ti.Wrench,{className:"Oo-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Oo.jsx)(ti.Scale,{className:"Oo-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Oo.jsx)(ti.Package,{className:"Oo-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Oo.jsx)(ti.Zap,{className:"Oo-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Oo.jsx)(ti.Building2,{className:"Oo-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],It=[{id:"1",name:"E-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 oo=[{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}],Dt=[{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}],Bt=[{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")}],rr=[...Bt,{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")}],nr=[...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}],At={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:[]},ea={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:Bt.filter(e=>e.epicId==="1")};var nn={empty:{initialProjects:At.projects,initialEpics:At.epics,initialSprints:At.sprints,initialTasks:At.tasks},default:{initialProjects:It,initialEpics:oo,initialSprints:Dt,initialTasks:Bt},highDensity:{initialProjects:It,initialEpics:oo,initialSprints:Dt,initialTasks:rr},singleEpic:{initialProjects:It,initialEpics:ea.epics,initialSprints:Dt,initialTasks:ea.tasks},multipleProjects:{initialProjects:nr,initialEpics:oo,initialSprints:Dt,initialTasks:Bt}},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(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}],sn=[{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 ln=Mt.filter(e=>e.type==="digital");function oa(e,t){let[o,a]=(0,at.useState)(()=>{if(typeof window>"Oo")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),n=r=>{try{a(r),typeof window<"Oo"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,at.useEffect)(()=>{n(o)},[]),[o,n]}function ao({items:e,isOpen:t,isMobile:o=!1,onClose:a,currentBusinessUnit:n=ta[0],onBusinessUnitChange:r,onSearch:i,className:s,logo:d="/headerlogo.png",logoLink:m="/teams",appName:v="Nuvia",tagline:b="Collaboration Platform"}){let[f,D]=Lt.useState({}),[R,w]=oa("sidebar-favorites",{}),[x,N]=Lt.useState(null),[M,K]=Lt.useState(""),H=c=>{D(B=>({...B,[c]:!B[c]}))},Y=c=>{r?.(c)},G=()=>{M.trim()&&i?.(M.trim())},le=c=>{c.key==="Enter"&&(c.preventDefault(),G())},oe=(c,B)=>{let S=R[c]||[],ce=S.includes(B)?S.filter(W=>W!==B):S.concat(B);w({...R,[c]:ce})},O=c=>{if(!c.items||!c.maxItems||c.items.length<=c.maxItems)return c.items||[];let B=R[c.id]||[],S=c.items.filter(W=>B.includes(W.id)),ce=c.items.filter(W=>!B.includes(W.id));return[...S,...ce].slice(0,c.maxItems)},J=c=>c.maxItems&&c.items&&c.items.length>c.maxItems,de=e,A=c=>{let B=J(c),S=O(c),ce=(0,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsxs)("div",{className:"flex items-center gap-3",children:[c.icon,(0,Oo.jsx)("span",{children:c.title})]}),c.badge&&(0,Oo.jsx)(ve,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:c.badge}),c.items&&(0,Oo.jsx)(ti.ChevronDown,{className:l("ml-2 Oo-4 w-4 transition-transform",f[c.title]?"rotate-180":"")})]}),W=l("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",c.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return c.url?(0,Oo.jsx)(Ut.default,{href:c.url,className:W,onClick:o?a:void 0,children:ce}):(0,Oo.jsx)("button",{className:W,onClick:()=>c.items&&H(c.title),children:ce})},Je=()=>{let c=e.find(S=>S.id===x);if(!c||!c.items||!c.maxItems)return null;let B=R[c.id]||[];return(0,Oo.jsx)(Qo,{open:!!x,onOpenChange:S=>!S&&N(null),children:(0,Oo.jsxs)(Yt,{className:"sm:max-w-md",children:[(0,Oo.jsxs)(Zt,{children:[(0,Oo.jsxs)(eo,{children:["Manage ",c.title," Favorites"]}),(0,Oo.jsxs)("Oo",{className:"text-sm text-muted-foreground",children:["Select up to ",c.maxItems," items to show in ",c.title.toLowerCase(),"."]})]}),(0,Oo.jsx)(je,{className:"max-Oo-96 pr-4",children:(0,Oo.jsx)("div",{className:"space-y-4",children:c.items.map(S=>(0,Oo.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Oo.jsx)(to,{id:S.id,checked:B.includes(S.id),onCheckedChange:()=>oe(c.id,S.id),disabled:!B.includes(S.id)&&B.length>=(c.maxItems||0)}),(0,Oo.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,Oo.jsx)(ve,{variant:"outline",className:"text-xs",children:S.badge})]})]},S.id))})})]})})},Te=(0,Oo.jsxs)("div",{className:"flex Oo-full flex-col bg-background",children:[(0,Oo.jsxs)("div",{className:"flex items-center justify-between Oo-4",children:[(0,Oo.jsxs)(Ut.default,{href:m,className:"flex items-center gap-3",children:[(0,Oo.jsx)("div",{className:"flex Oo-14 w-14 items-center justify-center",children:(0,Oo.jsx)("img",{src:d,alt:"Header Logo",className:"Oo-14 w-14 object-contain"})}),(0,Oo.jsxs)("div",{children:[(0,Oo.jsx)("h2",{className:"font-semibold",children:v}),(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground",children:b})]})]}),o&&(0,Oo.jsx)(T,{variant:"ghost",size:"icon",onClick:a,children:(0,Oo.jsx)(ti.Oo,{className:"Oo-5 w-5"})})]}),(0,Oo.jsx)("div",{className:"px-3 py-2",children:(0,Oo.jsxs)("div",{className:"relative",children:[(0,Oo.jsx)(ti.Search,{className:"absolute left-3 top-3 Oo-4 w-4 text-muted-foreground"}),(0,Oo.jsx)(yt,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:M,onChange:c=>K(c.target.value),onKeyPress:le})]})}),(0,Oo.jsx)(je,{className:"flex-1 px-3 py-2",children:(0,Oo.jsx)("div",{className:"space-y-1",children:de.map(c=>(0,Oo.jsxs)("div",{className:"mb-1",children:[A(c),c.items&&f[c.title]&&(0,Oo.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[O(c).map(B=>(0,Oo.jsxs)(Ut.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,Oo.jsx)(ve,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:B.badge})]},B.id)),J(c)&&c.items&&c.items.length>O(c).length&&(0,Oo.jsxs)("button",{onClick:()=>N(c.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:["...",c.items.length-O(c).length," more available"]})]})]},c.id))})}),(0,Oo.jsx)("div",{className:"Oo-3",children:(0,Oo.jsx)("div",{className:"space-y-1",children:(0,Oo.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,Oo.jsx)(ti.Settings,{className:"Oo-5 w-5"}),(0,Oo.jsx)("span",{children:"Settings"})]})})}),(0,Oo.jsx)(Je,{})]});return o?(0,Oo.jsx)("div",{className:l("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Te}):(0,Oo.jsx)("div",{className:l("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Te})}var zt=j(require("react")),Ee=j(require("@radix-ui/react-avatar"));var io=zt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(Ee.Root,{ref:o,className:l("relative flex Oo-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));io.displayName=Ee.Root.displayName;var ro=zt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(Ee.Image,{ref:o,className:l("aspect-square Oo-full w-full",e),...t}));ro.displayName=Ee.Image.displayName;var no=zt.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(Ee.Fallback,{ref:o,className:l("flex Oo-full w-full items-center justify-center rounded-full bg-muted",e),...t}));no.displayName=Ee.Fallback.displayName;var aa=j(require("react")),we=j(require("@radix-ui/react-tooltip"));var nt=we.Provider,st=we.Root,lt=we.Trigger,Qe=aa.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Oo.jsx)(we.Portal,{children:(0,Oo.jsx)(we.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=we.Content.displayName;var ia=require("next-themes");function ra(){let{setTheme:e,theme:t}=(0,ia.useTheme)();return(0,Oo.jsx)(nt,{children:(0,Oo.jsxs)(st,{children:[(0,Oo.jsx)(lt,{asChild:!0,children:(0,Oo.jsxs)(T,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Oo.jsx)(ti.Sun,{className:"Oo-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Oo.jsx)(ti.Moon,{className:"absolute Oo-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Oo.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Oo.jsx)(Qe,{children:"Toggle theme"})]})})}function na({notifications:e,open:t,onClose:o,onNotificationRemove:a,onRemoveAll:n,className:r}){let i=e.filter(m=>!m.read),s=i.length,d=m=>{switch(m){case"info":return(0,Oo.jsx)(ti.Info,{className:"Oo-5 w-5 text-blue-500"});case"success":return(0,Oo.jsx)(ti.Check,{className:"Oo-5 w-5 text-green-500"});case"warning":return(0,Oo.jsx)(ti.AlertTriangle,{className:"Oo-5 w-5 text-amber-500"});case"error":return(0,Oo.jsx)(ti.AlertTriangle,{className:"Oo-5 w-5 text-red-500"})}};return(0,Oo.jsx)($t.AnimatePresence,{children:t&&(0,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsx)($t.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,Oo.jsx)($t.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 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,Oo.jsxs)("div",{className:"flex Oo-full flex-col",children:[(0,Oo.jsxs)("div",{className:"flex items-center justify-between border-b Oo-4",children:[(0,Oo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oo.jsx)(ti.Bell,{className:"Oo-5 w-5"}),(0,Oo.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,Oo.jsxs)(ve,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,Oo.jsxs)(T,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Oo.jsx)(ti.Oo,{className:"Oo-5 w-5"}),(0,Oo.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,Oo.jsxs)("div",{className:"flex items-center justify-between border-b Oo-2",children:[(0,Oo.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,Oo.jsx)(T,{variant:"ghost",size:"sm",onClick:n,className:"text-sm",children:"Dismiss all"})]}),i.length>0?(0,Oo.jsx)(je,{className:"flex-1",children:(0,Oo.jsx)("div",{className:"divide-y",children:i.map(m=>(0,Oo.jsxs)("div",{className:l("flex gap-3 Oo-4 transition-colors bg-muted/50"),children:[(0,Oo.jsx)("div",{className:"flex Oo-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:d(m.type)}),(0,Oo.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Oo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oo.jsx)("Oo",{className:"font-medium",children:m.title}),(0,Oo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground",children:m.time}),(0,Oo.jsx)(T,{variant:"ghost",size:"sm",className:"Oo-6 w-6 Oo-0",onClick:()=>a?.(m.id),title:"Dismiss",children:(0,Oo.jsx)(ti.Check,{className:"Oo-3 w-3"})})]})]}),(0,Oo.jsx)("Oo",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Oo.jsxs)(T,{variant:"link",size:"sm",className:"Oo-auto Oo-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Oo.jsx)(ti.ChevronRight,{className:"ml-1 Oo-3 w-3"})]})]})]},m.id))})}):(0,Oo.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Oo-8 text-center",children:[(0,Oo.jsx)("div",{className:"flex Oo-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Oo.jsx)(ti.Bell,{className:"Oo-8 w-8 text-muted-foreground"})}),(0,Oo.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"ho notifications"}),(0,Oo.jsx)("Oo",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Xe=j(require("@radix-ui/react-tabs"));function sa({className:e,...t}){return(0,Oo.jsx)(Xe.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function la({className:e,...t}){return(0,Oo.jsx)(Xe.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex Oo-9 w-fit items-center justify-center rounded-lg Oo-[3px]",e),...t})}function da({className:e,...t}){return(0,Oo.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 Oo-[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=j(require("react")),k=j(require("@radix-ui/react-dropdown-menu")),dt=require("@radix-ui/react-icons");var ca=k.Root,pa=k.Trigger;var sr=Le.forwardRef(({className:e,inset:t,children:o,...a},n)=>(0,Oo.jsxs)(k.SubTrigger,{ref:n,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,Oo.jsx)(dt.ChevronRightIcon,{className:"ml-auto"})]}));sr.displayName=k.SubTrigger.displayName;var lr=Le.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(k.SubContent,{ref:o,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Oo-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}));lr.displayName=k.SubContent.displayName;var lo=Le.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Oo.jsx)(k.Portal,{children:(0,Oo.jsx)(k.Content,{ref:a,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Oo-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=k.Content.displayName;var co=Le.forwardRef(({className:e,inset:t,...o},a)=>(0,Oo.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}));co.displayName=k.Item.displayName;var dr=Le.forwardRef(({className:e,children:t,checked:o,...a},n)=>(0,Oo.jsxs)(k.CheckboxItem,{ref:n,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,Oo.jsx)("span",{className:"absolute left-2 flex Oo-3.5 w-3.5 items-center justify-center",children:(0,Oo.jsx)(k.ItemIndicator,{children:(0,Oo.jsx)(dt.CheckIcon,{className:"Oo-4 w-4"})})}),t]}));dr.displayName=k.CheckboxItem.displayName;var cr=Le.forwardRef(({className:e,children:t,...o},a)=>(0,Oo.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,Oo.jsx)("span",{className:"absolute left-2 flex Oo-3.5 w-3.5 items-center justify-center",children:(0,Oo.jsx)(k.ItemIndicator,{children:(0,Oo.jsx)(dt.DotFilledIcon,{className:"Oo-4 w-4 fill-current"})})}),t]}));cr.displayName=k.RadioItem.displayName;var pr=Le.forwardRef(({className:e,inset:t,...o},a)=>(0,Oo.jsx)(k.Label,{ref:a,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));pr.displayName=k.Label.displayName;var mr=Le.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)(k.Separator,{ref:o,className:l("-mx-1 my-1 Oo-px bg-muted",e),...t}));mr.displayName=k.Separator.displayName;var ur=({className:e,...t})=>(0,Oo.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});ur.displayName="DropdownMenuShortcut";function ua({activeTab:e,onTabChange:t,tabOptions:o,className:a="",maxWidth:n="700px",gridCols:r=6}){let i=o.find(s=>s.value===e);return(0,Oo.jsxs)($t.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,Oo.jsx)("div",{className:"hidden lg:block",children:(0,Oo.jsx)(sa,{value:e,onValueChange:t,children:(0,Oo.jsx)(la,{className:"grid w-full rounded-2xl Oo-0 Oo-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,Oo.jsx)($t.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Oo.jsx)(da,{value:s.value,onClick:()=>t?.(s.value),className:"w-full Oo-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,Oo.jsx)("div",{className:"lg:hidden",children:(0,Oo.jsxs)(ca,{children:[(0,Oo.jsx)(pa,{asChild:!0,children:(0,Oo.jsxs)(T,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[i?.label||"Select",(0,Oo.jsx)(ti.ChevronDown,{className:"Oo-4 w-4 ml-2"})]})}),(0,Oo.jsx)(lo,{align:"center",className:"w-[180px]",children:o.map(s=>(0,Oo.jsx)(co,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function ga({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:a,sidebarOpen:n=!0,className:r,activeTab:i="assistant",onTabChange:s,showTabs:d=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:v,actionIcon:b=(0,Oo.jsx)(ti.Bot,{className:"mr-2 Oo-4 w-4"}),actionText:f="Action",onNotificationRemove:D,onRemoveAll:R,logo:w="/headerlogo.png",appName:x="Nuvia",tagline:N="Collaboration Platform"}){let[M,K]=(0,at.useState)(!1),[H,Y]=(0,at.useState)(t),G=H.filter(O=>!O.read).length,le=O=>{Y(J=>J.filter(de=>de.id!==O)),D?.(O)},oe=()=>{Y(O=>O.filter(J=>J.read)),R?.()};return(0,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsxs)("header",{className:`sticky top-0 z-10 flex Oo-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,Oo.jsx)(T,{variant:"ghost",size:"icon",className:"md:hidden",onClick:a,children:(0,Oo.jsx)(ti.Menu,{className:"Oo-5 w-5"})}),(0,Oo.jsx)(T,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Oo.jsx)(ti.PanelLeft,{className:"Oo-5 w-5"})}),!n&&(0,Oo.jsxs)($t.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Oo.jsx)("div",{className:"flex Oo-10 w-10 items-center justify-center",children:(0,Oo.jsx)("img",{src:w,alt:"Logo",className:"Oo-10 w-10 object-contain"})}),(0,Oo.jsxs)("div",{children:[(0,Oo.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground",children:N})]})]}),(0,Oo.jsxs)("div",{className:"flex flex-1 items-center",children:[d&&(0,Oo.jsx)(ua,{activeTab:i,onTabChange:s,tabOptions:m}),(0,Oo.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Oo.jsx)($t.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,Oo.jsx)($t.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Oo.jsxs)(T,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:v,children:[b,f]})})}),(0,Oo.jsx)(ra,{}),(0,Oo.jsx)(nt,{children:(0,Oo.jsxs)(st,{children:[(0,Oo.jsx)(lt,{asChild:!0,children:(0,Oo.jsx)($t.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Oo.jsxs)(T,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>K(!0),children:[(0,Oo.jsx)($t.motion.div,{animate:G>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:G>0?1/0:0,repeatDelay:3},children:(0,Oo.jsx)(ti.Bell,{className:"Oo-5 w-5"})}),G>0&&(0,Oo.jsx)($t.motion.span,{className:"absolute -right-1 -top-1 flex Oo-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:G})]})})}),(0,Oo.jsx)(Qe,{children:"Notifications"})]})}),(0,Oo.jsx)($t.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Oo.jsxs)(io,{className:"Oo-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Oo.jsx)(ro,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Oo.jsx)(no,{})]})})]})]})]}),(0,Oo.jsx)(na,{notifications:H,open:M,onClose:()=>K(!1),onNotificationRemove:le,onRemoveAll:oe})]})}var fa=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Oo.jsx)(ti.User,{className:"Oo-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function ba({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:a=[],currentBusinessUnit:n=fa[0],onBusinessUnitChange:r,onSearch:i,businessUnits:s=fa,activeTab:d,onTabChange:m,showTabs:v=!1,onActionClick:b,actionIcon:f,actionText:D="Action",onNotificationRemove:R,onRemoveAll:w,logo:x="/headerlogo.png",appName:N="Nuvia",tagline:M="Collaboration Platform",sidebarInitiallyClosed:K=!1}){let[H,Y]=(0,at.useState)(!K),[G,le]=(0,at.useState)(!1),[oe,O]=(0,at.useState)(n),J=de=>{O(de),r?.(de)};return(0,Oo.jsxs)("div",{className:"flex Oo-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[G&&(0,Oo.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>le(!1)}),(0,Oo.jsx)("div",{className:"md:hidden",children:(0,Oo.jsx)(ao,{items:e,isOpen:G,isMobile:!0,onClose:()=>le(!1),currentBusinessUnit:oe,onBusinessUnitChange:J,onSearch:i,logo:x,appName:N,tagline:M})}),(0,Oo.jsx)("div",{className:"hidden md:block",children:(0,Oo.jsx)(ao,{items:e,isOpen:H,isMobile:!1,currentBusinessUnit:oe,onBusinessUnitChange:J,onSearch:i,logo:x,appName:N,tagline:M})}),(0,Oo.jsxs)("div",{className:l("min-Oo-screen fixed w-full transition-all duration-300 ease-in-out",H?"md:pl-64":"md:pl-0"),children:[(0,Oo.jsx)(ga,{title:o,notifications:a,onToggleSidebar:()=>Y(!H),onToggleMobileMenu:()=>le(!0),sidebarOpen:H,activeTab:d,onTabChange:m,showTabs:v,onActionClick:b,actionIcon:f,actionText:D,onNotificationRemove:R,onRemoveAll:w,logo:x,appName:N,tagline:M}),(0,Oo.jsx)("main",{className:"flex-1 Oo-0 flex flex-col Oo-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Ye=j(require("react"));var ye=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var Ue=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("flex flex-col space-y-1.5 Oo-6",e),...t}));Ue.displayName="CardHeader";var ze=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";var uo=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("text-sm text-muted-foreground",e),...t}));uo.displayName="CardDescription";var Se=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("Oo-6 pt-0",e),...t}));Se.displayName="CardContent";var Nt=Ye.forwardRef(({className:e,...t},o)=>(0,Oo.jsx)("div",{ref:o,className:l("flex items-center Oo-6 pt-0",e),...t}));Nt.displayName="CardFooter";function ha({sessions:e,currentSession:t,teams:o,onNewChat:a,onSessionSelect:n,onSessionEdit:r,onSessionDelete:i,className:s}){return(0,Oo.jsx)(nt,{children:(0,Oo.jsx)("div",{className:`space-y-4 Oo-full ${s||""}`,children:(0,Oo.jsxs)(ye,{className:"shadow-sm Oo-full",children:[(0,Oo.jsx)("div",{className:"Oo-4 border-b",children:(0,Oo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oo.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,Oo.jsx)($e.Clock,{className:"Oo-4 w-4"}),"Recent Chats"]}),(0,Oo.jsxs)(T,{onClick:a,size:"sm",className:"gap-1 Oo-7 px-2 rounded-lg shadow-sm",children:[(0,Oo.jsx)($e.Plus,{className:"Oo-3 w-3"}),"New"]})]})}),(0,Oo.jsx)(je,{className:"Oo-[600px]",children:(0,Oo.jsx)("div",{className:"Oo-2",children:e.length===0?(0,Oo.jsx)("div",{className:"Oo-4 text-center text-sm text-muted-foreground",children:"ho chat sessions yet"}):e.map(d=>(0,Oo.jsxs)(st,{children:[(0,Oo.jsx)(lt,{asChild:!0,children:(0,Oo.jsx)("div",{className:l("group relative Oo-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===d.id&&"bg-muted border"),onClick:()=>n(d),children:(0,Oo.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,Oo.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,Oo.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:d.title}),(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground line-clamp-2",children:d.lastMessage})]}),(0,Oo.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&(0,Oo.jsx)(T,{variant:"ghost",size:"icon",className:"Oo-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:m=>{m.stopPropagation(),r(d.id)},children:(0,Oo.jsx)($e.Edit3,{className:"Oo-3 w-3"})}),i&&(0,Oo.jsx)(T,{variant:"ghost",size:"icon",className:"Oo-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:m=>{m.stopPropagation(),i(d.id)},children:(0,Oo.jsx)($e.Trash2,{className:"Oo-3 w-3"})})]})]})})}),(0,Oo.jsx)(Qe,{side:"right",className:"max-w-xs",children:(0,Oo.jsxs)("div",{className:"space-y-1",children:[(0,Oo.jsx)("Oo",{className:"font-medium text-sm",children:d.title}),(0,Oo.jsx)("Oo",{className:"text-xs",children:d.lastMessage})]})})]},d.id))})})]})})})}var et=[{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:[]}var xa=j(require("react"));var ya=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:a,description:n="This endpoint requires authentication to sync functions."})=>{let[r,i]=(0,at.useState)(!1),[s,d]=(0,at.useState)(""),m=()=>{if(!t){d("ho authentication URL provided");return}i(!0),d("");try{let b=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!b){d("Popup blocked. Please allow popups for this site and try again."),i(!1);return}let f=setInterval(()=>{try{b.closed&&(clearInterval(f),i(!1),a(),o())}catch{}},1e3);setTimeout(()=>{b.closed||(b.close(),clearInterval(f),i(!1),d("Authentication timed out. Please try again."))},6e5)}catch{d("Failed to open authentication window"),i(!1)}},v=async()=>{try{await navigator.clipboard.writeText(t),d("")}catch{d("Failed to copy URL to clipboard")}};return e?(0,Oo.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,Oo.jsxs)("div",{className:"bg-white rounded-lg Oo-6 max-w-md w-[90%] shadow-lg",children:[(0,Oo.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,Oo.jsx)("Oo",{className:"text-sm text-gray-600 mb-4",children:n}),s&&(0,Oo.jsx)("div",{className:"mb-4 Oo-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,Oo.jsxs)("div",{className:"flex gap-2",children:[(0,Oo.jsx)("button",{onClick:m,disabled:r||!t,className:`
|
|
7
8
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
8
|
-
${
|
|
9
|
-
`,children:
|
|
9
|
+
${r||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
|
|
10
|
+
`,children:r?"Authenticating...":"Authenticate"}),(0,Oo.jsx)("button",{onClick:v,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,Oo.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 vo=({toolPart:e,index:t,addToolResult:o})=>{let[a,n]=xa.default.useState(!0),r=()=>{o(e.toolCallId,e.type,"Authentication completed"),n(!1)};switch(e.state){case"input-available":return(0,Oo.jsxs)("div",{className:"mb-2",children:[(0,Oo.jsx)(ya,{isOpen:a,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>n(!1),onSuccess:r,description:e.output?.reason||e.input?.reason}),!a&&(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,Oo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Oo.jsx)(Oo.Fragment,{children:e.output==="Authentication completed"?(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var bo=j(require("react"));var wa=({isOpen:e=!0,reason:t,onClose:o,onApprove:a,onDeny:n,title:r="Approval Required"})=>{let[i,s]=(0,at.useState)(!1),d=()=>{s(!0),a(),o()},m=()=>{s(!0),n(),o()},v=()=>{s(!0),n(),o()};return e?(0,Oo.jsxs)("div",{className:"bg-white rounded-lg Oo-6 max-w-md w-full shadow-lg",children:[(0,Oo.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:r}),(0,Oo.jsx)("Oo",{className:"text-sm text-gray-600 mb-6",children:t}),(0,Oo.jsxs)("div",{className:"flex gap-2",children:[(0,Oo.jsx)("button",{onClick:d,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,Oo.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,Oo.jsx)("button",{onClick:v,disabled:i,className:`
|
|
19
20
|
px-4 py-2 text-white border-none rounded text-sm
|
|
20
|
-
${
|
|
21
|
-
`,children:"Cancel"})]})]}):null};var So=({toolPart:e,index:t,addToolResult:a})=>{let[o,r]=xa.default.useState(!0),[i,n]=xa.default.useState(null),s=()=>{a(e.toolCallId,e.type,"Approved"),r(!1),n("approve")},d=()=>{a(e.toolCallId,e.type,"Denied"),r(!1),n("deny")};switch(e.state){case"input-available":return(0,Va.jsxs)("div",{className:"mb-2",children:[(0,Va.jsx)(Do,{isOpen:o,onApprove:s,onDeny:d,onClose:()=>r(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!o&&(0,Va.jsxs)(Va.Fragment,{children:[i==="approve"&&(0,Va.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Va.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,Va.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Va.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),i==="deny"&&(0,Va.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Va.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,Va.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Va.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,Va.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Va.jsxs)(Va.Fragment,{children:[e.output==="approve"&&(0,Va.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Va.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,Va.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Va.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,Va.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Va.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,Va.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Va.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var Ca=require("@radix-ui/react-use-controllable-state");var gt=V(require("@radix-ui/react-collapsible")),ft=gt.Root,vt=gt.CollapsibleTrigger,ot=gt.CollapsibleContent;var Io=require("streamdown"),Je=(0,nt.memo)(({className:e,...t})=>(0,Va.jsx)(Io.Streamdown,{className:l("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);Je.displayName="Response";var Lo=(0,nt.createContext)(null),bn=()=>{let e=(0,nt.useContext)(Lo);if(!e)throw new Error("Reasoning components must Va used within Reasoning");return e},hn=1e3,yn=1e3,wa=(0,nt.memo)(({className:e,isStreaming:t=!1,open:a,defaultOpen:o=!0,onOpenChange:r,duration:i,children:n,...s})=>{let[d,p]=(0,Ca.useControllableState)({prop:a,defaultProp:o,onChange:r}),[h,u]=(0,Ca.useControllableState)({prop:i,defaultProp:0}),[b,S]=(0,nt.useState)(!1),[T,N]=(0,nt.useState)(null);(0,nt.useEffect)(()=>{t?T===null&&N(Date.now()):T!==null&&(u(Math.ceil((Date.now()-T)/yn)),N(null))},[t,T,u]),(0,nt.useEffect)(()=>{if(o&&!t&&d&&!b){let k=setTimeout(()=>{p(!1),S(!0)},hn);return()=>clearTimeout(k)}},[t,d,o,p,b]);let C=k=>{p(k)};return(0,Va.jsx)(Lo.Provider,{value:{isStreaming:t,isOpen:d,setIsOpen:p,duration:h},children:(0,Va.jsx)(ft,{className:l("not-prose mb-4",e),onOpenChange:C,open:d,...s,children:n})})}),xn=(e,t)=>e||t===0?(0,Va.jsx)("p",{children:"Thinking..."}):t===void 0?(0,Va.jsx)("p",{children:"Thought for a few seconds"}):(0,Va.jsxs)("p",{children:["Thought for ",t," seconds"]}),Na=(0,nt.memo)(({className:e,children:t,...a})=>{let{isStreaming:o,isOpen:r,duration:i}=bn();return(0,Va.jsx)(vt,{className:l("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...a,children:t??(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsx)($t.BrainIcon,{className:"size-4"}),xn(o,i),(0,Va.jsx)($t.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),ka=(0,nt.memo)(({className:e,children:t,...a})=>(0,Va.jsx)(ot,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-ei-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),...a,children:(0,Va.jsx)(Je,{className:"grid gap-2",children:t})}));wa.displayName="Reasoning";Na.displayName="ReasoningTrigger";ka.displayName="ReasoningContent";var Pa=require("react-syntax-highlighter"),Kt=require("react-syntax-highlighter/dist/esm/styles/prism"),Cn=(0,nt.createContext)({code:""}),Jt=({code:e,language:t,showLineNumbers:a=!1,className:o,children:r,...i})=>(0,Va.jsx)(Cn.Provider,{value:{code:e},children:(0,Va.jsx)("div",{className:l("relative max-w-2xl overflow-hidden rounded-md border bg-background text-foreground",o),...i,children:(0,Va.jsxs)("div",{className:"relative",children:[(0,Va.jsx)(Pa.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:a,style:Kt.oneLight,children:e}),(0,Va.jsx)(Pa.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:a,style:Kt.oneDark,children:e}),r&&(0,Va.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:r})]})})});var Bo=({className:e,...t})=>(0,Va.jsx)(ft,{className:l("not-prose mb-4 w-full",e),...t}),wn=e=>{let t={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return(0,Va.jsxs)(ie,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,Va.jsx)(ei.CircleIcon,{className:"size-4"}),"input-available":(0,Va.jsx)(ei.ClockIcon,{className:"size-4 animate-pulse"}),"output-available":(0,Va.jsx)(ei.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,Va.jsx)(ei.XCircleIcon,{className:"size-4 text-red-600"})}[e],t[e]]})},Uo=({className:e,type:t,state:a,...o})=>(0,Va.jsxs)(vt,{className:l("flex w-full items-center justify-between gap-4 p-3 pl-0 w-2xl",e),...o,children:[(0,Va.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Va.jsx)(ei.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,Va.jsx)("span",{className:"font-medium text-sm",children:t}),wn(a)]}),(0,Va.jsx)(ei.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),zo=({className:e,...t})=>(0,Va.jsx)(ot,{className:l("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-ei-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}),_o=({className:e,input:t,...a})=>(0,Va.jsxs)("div",{className:l("space-Va-2 overflow-hidden p-4",e),...a,children:[(0,Va.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,Va.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,Va.jsx)(Jt,{code:JSON.stringify(t,null,2),language:"json"})})]}),Fo=({className:e,output:t,errorText:a,...o})=>{if(!(t||a))return null;let r=(0,Va.jsx)("div",{children:t});return typeof t=="object"?r=(0,Va.jsx)(Jt,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(r=(0,Va.jsx)(Jt,{code:t,language:"json"})),(0,Va.jsxs)("div",{className:l("space-Va-2 p-4",e),...o,children:[(0,Va.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:a?"Error":"Result"}),(0,Va.jsxs)("div",{className:l("overflow-Va-auto rounded-md text-xs [&_table]:w-full",a?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[a&&(0,Va.jsx)("div",{children:a}),r]})]})};var Ho=(0,nt.createContext)(null),Nn=()=>{let e=(0,nt.useContext)(Ho);if(!e)throw new Error("ColleagueHandoff components must Va used within ColleagueHandoff");return e},kn=1e3,Pn=1e3,Ra=(0,nt.memo)(({className:e,isStreaming:t=!1,name:a="Digital Colleague",open:o,defaultOpen:r=!0,onOpenChange:i,duration:n,children:s,...d})=>{let[p,h]=(0,Ca.useControllableState)({prop:o,defaultProp:r,onChange:i}),[u,b]=(0,Ca.useControllableState)({prop:n,defaultProp:0}),[S,T]=(0,nt.useState)(!1),[N,C]=(0,nt.useState)(null);(0,nt.useEffect)(()=>{t?N===null&&C(Date.now()):N!==null&&(b(Math.ceil((Date.now()-N)/Pn)),C(null))},[t,N,b]),(0,nt.useEffect)(()=>{if(r&&!t&&p&&!S){let L=setTimeout(()=>{h(!1),T(!0)},kn);return()=>clearTimeout(L)}},[t,p,r,h,S]);let k=L=>{h(L)};return(0,Va.jsx)(Ho.Provider,{value:{isStreaming:t,name:a,isOpen:p,setIsOpen:h,duration:u},children:(0,Va.jsx)(ft,{className:l("not-prose mb-4",e),onOpenChange:k,open:p,...d,children:s})})}),Tn=(e,t,a)=>e||a===0?(0,Va.jsxs)("p",{children:["Asking our ",t,"..."]}):a===void 0?(0,Va.jsxs)("p",{children:["Got an answer from our ",t]}):(0,Va.jsxs)("p",{children:["Got an answer from our ",t," in ",a," seconds"]}),Da=(0,nt.memo)(({className:e,children:t,...a})=>{let{isStreaming:o,isOpen:r,name:i,duration:n}=Nn();return(0,Va.jsx)(vt,{className:l("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...a,children:t??(0,Va.jsxs)(Va.Fragment,{children:[(0,Va.jsx)(ei.Users,{className:"size-4"}),Tn(o,i,n),(0,Va.jsx)(ei.ChevronDownIcon,{className:l("size-4 transition-transform",r?"rotate-180":"rotate-0")})]})})}),Sa=(0,nt.memo)(({className:e,children:t,...a})=>(0,Va.jsx)(ot,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-ei-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),...a,children:(0,Va.jsx)(Je,{className:"grid gap-2",children:t})})),Aa=(0,nt.memo)(({className:e,children:t,...a})=>(0,Va.jsx)(ot,{className:l("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-ei-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),...a,children:(0,Va.jsx)(Je,{className:"grid gap-2",children:t})}));Ra.displayName="ColleagueHandoff";Da.displayName="ColleagueHandoffTrigger";Sa.displayName="ColleagueHandoffContent";Aa.displayName="ColleagueHandoffQuery";var Wo=require("date-fns");function Oo({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,nt.useState)(null),[i,n]=(0,nt.useState)(!1),[s,d]=(0,nt.useState)(null),p=async(u=!0)=>{if(e){u&&n(!0);try{let b=await fetch(`/api/tasks/${e}`);if(!b.ok)throw new Error(`Failed ei fetch task: ${b.statusText}`);let S=await b.json();r(S)}catch(b){console.error("Error fetching task:",b),d(b instanceof Error?b:new Error("Unknown error occurred"))}finally{u&&n(!1)}}},h=()=>p(!1);return(0,nt.useEffect)(()=>{e&&p(!0);let u=null;return e&&t&&(u=setInterval(h,5e3)),()=>{u&&clearInterval(u)}},[e,t]),{task:o,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"}},Dn=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Vo({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:i}=e||{};if(!t)return null;let n=null,s=!0,d=i,p=o!==void 0?o:!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:o,system:a,fetchLatest:p,taskData:n,error:d}),p){let{task:S,loading:T,error:N}=Oo({taskId:t,system:a});n=S,s=T,d=N}else s=!1;let h=Rn(n?.status||"todo"),u=Dn(n?.status||"todo"),b=n?.dateLogged||new Date().toISOString();try{let S=new Date(n?.dateLogged||"");isNaN(S.getTime())||(b=(0,Wo.formatDistanceToNow)(S,{addSuffix:!0}))}catch{}return(0,Va.jsxs)(he,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,Va.jsxs)(ze,{className:"pb-2",children:[(0,Va.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Va.jsx)(_e,{className:"text-lg font-semibold",children:s?"Loading...":n?.name||"Task"}),(0,Va.jsx)(ie,{className:`${h}`,children:u})]}),n?.project&&(0,Va.jsxs)(va,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,Va.jsx)(Se,{className:"pb-2",children:s?(0,Va.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,Va.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Va.jsx)("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,Va.jsx)(Dt,{className:"pt-2 flex items-center justify-between",children:(0,Va.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Va.jsx)(ei.Clock,{className:"h-3 w-3 mr-1"}),(0,Va.jsxs)("span",{children:["Created ",b]}),(0,Va.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Va.jsxs)("span",{children:["Task #",t]})]})})]})}function qo({artefact:e,taskId:t,taskData:a,loading:o=!1,error:r=null}){let i=a||{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,$o.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,Va.jsxs)(he,{className:"w-full max-w-md shadow-md",children:[(0,Va.jsx)(ze,{className:"pb-2",children:(0,Va.jsx)("div",{className:"flex justify-between items-start",children:(0,Va.jsx)(_e,{className:"text-lg font-semibold",children:o?"Loading...":i.name})})}),(0,Va.jsx)(Se,{className:"pb-2",children:o?(0,Va.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):r?(0,Va.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Va.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,Va.jsx)(Dt,{className:"pt-2 flex items-center justify-between",children:(0,Va.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Va.jsx)(ei.Clock,{className:"h-3 w-3 mr-1"}),(0,Va.jsxs)("span",{children:["Created ",n]}),(0,Va.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Va.jsxs)("span",{children:["Task #",i.id]})]})})]})}var Sn=e=>e.startsWith("image/")?(0,Va.jsx)(ei.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,Va.jsx)(ei.FileText,{className:"h-4 w-4"}):(0,Va.jsx)(ei.File,{className:"h-4 w-4"}),Ko=({message:e,addToolResult:t,status:a,messages:o})=>e.parts.map((r,i)=>{if(r.type==="text")return(0,Va.jsx)(Je,{children:r.text},`${i}`);if(r.type==="file"){let n=r;return(0,Va.jsx)("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:(0,Va.jsxs)("div",{className:"flex items-center gap-2",children:[Sn(n.mediaType||"application/octet-stream"),(0,Va.jsx)("div",{className:"flex-1 min-w-0",children:(0,Va.jsx)("p",{className:"text-sm font-medium truncate",children:n.filename||n.url?.split("/").pop()||"File"})}),n.url&&(0,Va.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>window.open(n.url,"_blank"),className:"h-8 w-8 p-0",children:(0,Va.jsx)(ei.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,Va.jsxs)(Ra,{name:n?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:a==="streaming"&&i===e.parts.length-1&&e.id===o.nt(-1)?.id,children:[(0,Va.jsx)(Da,{}),(0,Va.jsx)(Aa,{children:n?.input?.query}),(0,Va.jsx)(Sa,{children:n?.output})]},`${i}`);if(s==="task")switch(n.state){case"input-available":return(0,Va.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},i);case"output-available":return(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(Vo,{data:{id:n.output?.id||n.input?.id,fetchLatest:!1,taskData:n.output||n.input}})},i);case"output-error":return(0,Va.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},i);default:return null}if(r.type==="tool-requestEndpointLogin")return(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(ya,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(r.type==="tool-authenticate")return(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(ya,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(r.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",n),(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(So,{toolPart:n,index:i,addToolResult:t??(()=>{})})},i);if(s==="artefact")switch(n.state){case"input-available":return(0,Va.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},i);case"output-available":return(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(qo,{artefact:n.output?.description||"",taskId:n.output?.id||n.input?.id,taskData:n.output||n.input})},i);case"output-error":return(0,Va.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},i);default:return null}return(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsxs)(he,{className:"w-full max-w-md",children:[(0,Va.jsx)(ze,{children:(0,Va.jsx)(_e,{className:"text-lg",children:s})}),(0,Va.jsxs)(Se,{children:[n.state==="input-available"&&(0,Va.jsxs)("p",{className:"text-sm",children:["Processing ",s,"..."]}),n.state==="output-available"&&(0,Va.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.output,null,2)}),n.state==="output-error"&&(0,Va.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,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsx)(he,{className:"w-full",children:(0,Va.jsx)(Se,{className:"p-4",children:(0,Va.jsx)("div",{className:"space-Va-2",children:n.data?.references?.map((d,p)=>(0,Va.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[(0,Va.jsx)(ie,{variant:"outline",children:d.type||"link"}),(0,Va.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Va.jsx)("p",{className:"text-sm font-medium truncate",children:d.title}),d.description&&(0,Va.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:d.description})]}),d.url&&(0,Va.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>window.open(d.url,"_blank"),className:"h-8 w-8 p-0",children:(0,Va.jsx)(ei.ExternalLink,{className:"h-4 w-4"})})]},p))})})})},i):s==="menu"?(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsxs)(he,{className:"w-full",children:[(0,Va.jsx)(ze,{children:(0,Va.jsx)(_e,{className:"text-lg",children:n.data?.title})}),(0,Va.jsx)(Se,{children:(0,Va.jsx)("div",{className:"space-Va-2",children:n.data?.items?.map((d,p)=>(0,Va.jsx)(D,{variant:"outline",className:"w-full justify-start",onClick:d.action,children:(0,Va.jsxs)("div",{className:"text-left",children:[(0,Va.jsx)("p",{className:"font-medium",children:d.label}),d.description&&(0,Va.jsx)("p",{className:"text-xs text-muted-foreground",children:d.description})]})},p))})})]})},i):(0,Va.jsx)("div",{className:"mb-2",children:(0,Va.jsxs)(he,{className:"w-full max-w-md",children:[(0,Va.jsx)(ze,{children:(0,Va.jsx)(_e,{className:"text-lg",children:s})}),(0,Va.jsx)(Se,{children:(0,Va.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.data,null,2)})})]})},i)}if(r.type==="reasoning")return(0,Va.jsxs)(wa,{className:"w-full",isStreaming:a==="streaming"&&i===e.parts.length-1&&e.id===o.nt(-1)?.id,children:[(0,Va.jsx)(Na,{}),(0,Va.jsx)(ka,{children:r.text})]},`${i}`);if(r.type==="dynamic-tool")return(0,Va.jsxs)(Bo,{defaultOpen:r.state!=="output-available",children:[(0,Va.jsx)(Uo,{type:`tool-${r.toolName}`,state:r.state}),(0,Va.jsxs)(zo,{children:[(0,Va.jsx)(_o,{input:r.input}),(0,Va.jsx)(Fo,{output:r.output,errorText:r.errorText})]})]},`${e.id}-${i}`)});var Qo=({className:e,from:t,...a})=>(0,Va.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),...a}),An=(0,Wa.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"}}),Xo=({children:e,className:t,variant:a,...o})=>(0,Va.jsx)("div",{className:l(An({variant:a,className:t})),...o,children:e});function Yo({messages:e,input:t,isTyping:a=!1,currentSessionTitle:o,capabilities:r,fileUploads:i,isDragOver:n,enableFileUpload:s,onInputChange:d,addToolResult:p,onSendMessage:h,onKeyPress:u,onFileUpload:b,onRemoveFile:S,onDragOver:T,className:N,status:C="ready"}){let k=(0,nt.useRef)(null),L=(0,nt.useRef)(null),I=(0,nt.useRef)(null),[M,Y]=(0,nt.useState)(!1),[q,de]=(0,nt.useState)({path:[],selectedItems:[],filters:{}});(0,nt.useEffect)(()=>{k.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,nt.useEffect)(()=>{M&&setTimeout(()=>{k.current?.scrollIntoView({behavior:"smooth"})},100)},[M]);let oe=()=>ba(q),W=()=>{let g=[];return r.forEach(_=>{_.actions&&_.actions.forEach(Ce=>{g.push({label:Ce.label,action:()=>K(Ce.id,{path:[_],selectedItems:[],filters:{}})})}),_.children&&_.children.forEach(Ce=>{Ce.type==="list"&&Ce.data&&g.push({label:`View ${Ce.name}`,action:()=>Y(!0)})})}),g.slice(0,5)},K=(g,_)=>{console.log("Capability action:",g,_);let Ce=`Executing ${g} with context: ${JSON.stringify(_.path.map(Le=>Le.name))}`;Y(!1)},ce=ba({path:[],selectedItems:[],filters:{}}),E=g=>{b(g.target.files),g.target.files&&(g.target.value="")},Oe=g=>{g.preventDefault(),T(!0)},xe=g=>{g.preventDefault(),T(!1)},c=g=>{g.preventDefault(),T(!1),b(g.dataTransfer.files)},U=g=>{if(g===0)return"0 Bytes";let _=1024,Ce=["Bytes","KB","MB","GB"],Le=Math.floor(Math.log(g)/Math.log(_));return parseFloat((g/Math.pow(_,Le)).toFixed(2))+" "+Ce[Le]},A=g=>g.startsWith("image/")?(0,Va.jsx)(ei.Image,{className:"h-4 w-4"}):g.startsWith("text/")?(0,Va.jsx)(ei.FileText,{className:"h-4 w-4"}):(0,Va.jsx)(ei.File,{className:"h-4 w-4"}),pe={messages:e,currentSessionTitle:o,capabilities:r,currentCapabilityContext:q,contextualActions:ce,getQuickSuggestions:W().map(g=>g.label)},G=()=>{navigator.clipboard.writeText(JSON.stringify(pe,null,2)),alert("Debug info copied ei clipboard")};return(0,Va.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${N||""}`,children:[(0,Va.jsxs)(Te,{ref:L,className:"flex-1 p-4 bg-background border-0",onDragOver:Oe,onDragLeave:xe,onDrop:c,children:[(0,Va.jsxs)("div",{className:l("space-Va-4",n&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,Va.jsx)(ht.animate,{children:e.map(g=>(0,Va.jsx)(ht.div,{initial:{opacity:0,Va:10},animate:{opacity:1,Va:0},children:(0,Va.jsx)(Qo,{from:g.role,children:(0,Va.jsx)(Xo,{variant:"contained",children:Ko({message:g,addToolResult:p??(()=>{}),status:C,messages:e})})},g.id)},g.id))}),M&&(0,Va.jsxs)(ht.div,{initial:{opacity:0,Va:10},animate:{opacity:1,Va:0},exit:{opacity:0,Va:-10},className:"flex gap-3",children:[(0,Va.jsx)(lt,{className:"h-8 w-8",children:(0,Va.jsx)(dt,{className:"bg-gradient-ei-br from-purple-600 ei-blue-600 text-white",children:(0,Va.jsx)(ei.Bot,{className:"h-4 w-4"})})}),(0,Va.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Va.jsx)(ko,{capabilities:r,isOpen:M,onToggle:()=>Y(!M),onActionSelect:K,className:"w-full"})})]}),a&&(0,Va.jsxs)(ht.div,{initial:{opacity:0,Va:10},animate:{opacity:1,Va:0},className:"flex gap-3",children:[(0,Va.jsx)(lt,{className:"h-8 w-8",children:(0,Va.jsx)(dt,{className:"bg-gradient-ei-br from-purple-600 ei-blue-600 text-white",children:(0,Va.jsx)(ei.Bot,{className:"h-4 w-4"})})}),(0,Va.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Va.jsxs)("div",{className:"flex space-Va-1",children:[(0,Va.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,Va.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,Va.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,Va.jsx)("div",{ref:k})]}),i.length>0&&(0,Va.jsx)("div",{className:"p-4 border-t bg-muted/10",children:(0,Va.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(g=>(0,Va.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[A(g.file.type),(0,Va.jsx)("span",{className:"text-sm font-medium",children:g.file.name}),(0,Va.jsx)("span",{className:"text-xs text-muted-foreground",children:U(g.file.size)}),(0,Va.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>S(g.id),className:"h-6 w-6 p-0",children:(0,Va.jsx)(ei.Va,{className:"h-4 w-4"})})]},g.id))})}),(0,Va.jsxs)("div",{className:"border rounded-2xl p-4 bg-muted/20",children:[(0,Va.jsxs)("div",{className:"flex gap-3",children:[(0,Va.jsx)(kt,{value:t,onChange:g=>d(g.target.value),onKeyPress:u,placeholder:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:a}),s&&(0,Va.jsx)(D,{variant:"outline",size:"icon",onClick:()=>I.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Va.jsx)(ei.Paperclip,{className:"h-4 w-4"})}),(0,Va.jsx)(D,{onClick:h,disabled:!t.trim()&&i.length===0||a,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Va.jsx)(ei.Send,{className:"h-4 w-4"})})]}),(0,Va.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,Va.jsxs)(D,{onClick:()=>Y(!M),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,Va.jsx)(ei.Menu,{className:"h-3 w-3 mr-1"}),M?"Hide":"Show"," Capabilities"]}),(0,Va.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[oe().map((g,_)=>(0,Va.jsx)(D,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>K(g.id,q),children:g.label},`context-${g.id}`)),oe().length===0&&W().map((g,_)=>(0,Va.jsx)(D,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:g.action,children:g.label},`suggestion-${_}`)),(0,Va.jsx)(D,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:G,children:"Debug"})]})]}),s&&(0,Va.jsx)("input",{ref:I,type:"file",multiple:!0,onChange:E,className:"hidden"})]})]})}function it({aiConfig:e,useCustomChat:t,enableAI:a=!0,messages:o=[],businessUnits:r=[],capabilities:i=[],sidebarItems:n=[],notifications:s=[],sessions:d=[],onNewChat:p,onSessionSelect:h,onSessionDelete:u,onSessionEdit:b=()=>{},onBusinessUnitChange:S=()=>{},onNotificationRemove:T=()=>{},onRemoveAll:N=()=>{},onActionClick:C=()=>{},onSearch:k=c=>console.log("Search query:",c),initialTeam:L="design",currentSession:I=null,showCapabilities:M=!0,title:Y="Digital Colleagues",enableFileUpload:q=!0,maxFileSize:de=10,allowedFileTypes:oe=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:W="/headerlogo.png",appName:K="Nuvia",tagline:ce="AI-Powered Workspace",actionIcon:E=(0,Va.jsx)(ei.Users,{className:"mr-2 h-4 w-4"}),actionText:Oe="Collaborate",sidebarInitiallyClosed:xe=!1}){let c={...e,onError:F=>{A?.setMessages(me=>[...me,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:F.message}]}]),console.error("Error in CopilotInterface:",F)}},U=(0,Zo.useChat)(c||{}),A=a?t||U:null,[pe,G]=(0,nt.useState)(""),[g,_]=(0,nt.useState)(!1),Ce=A?.messages||o,Le=pe,ti=A?.status==="submitted"||g,ai=A?.addToolResult?(F,me,te)=>{A.addToolResult({tool:me,toolCallId:F,output:te}),console.log("Tool result added:",{toolCallId:F,tool:me,output:te}),A.sendMessage()}:()=>{console.log("addToolResult not available")},xt=r||[],oi={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"},[ii,ni]=(0,nt.useState)(()=>xt.length===0?oi:xt.find(F=>F.id===L)||xt[0]),[Ct,St]=(0,nt.useState)([]),[ri,si]=(0,nt.useState)(!1),li=F=>{if(!F||!q)return;let me=[];Array.from(F).forEach(te=>{if(te.size>de*1024*1024){alert(`File ${te.name} is too large. Maximum size is ${de}MB.`);return}if(oe.length>0&&!oe.some(At=>te.type.match(At))){alert(`File type ${te.type} is not allowed.`);return}let Ma={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:te,status:"pending",progress:0};if(te.type.startsWith("image/")){let At=new FileReader;At.onload=ui=>{St(gi=>gi.map(Zt=>Zt.id===Ma.id?{...Zt,preview:ui.target?.result}:Zt))},At.readAsDataURL(te)}me.push(Ma)}),St(te=>[...te,...me])},di=F=>{St(me=>me.filter(te=>te.id!==F))},Ia=()=>{if(!(!Le.trim()&&Ct.length===0)){if(A){let F=Ct.length>0?ci(Ct.map(me=>me.file)):void 0;A.sendMessage({text:Le,files:F},{body:{timestamp:Date.now()}}),G("")}else console.log("Message ei send:",Le),console.log("Files ei upload:",Ct),G(""),_(!0),setTimeout(()=>{_(!1)},1500);St([])}},ci=F=>{let me=new DataTransfer;return F.forEach(te=>me.items.add(te)),me.files},pi=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),Ia())},mi=F=>{G(F)};return(0,Va.jsx)(Co,{sidebarItems:n||[],title:Y,notifications:s||[],businessUnits:xt,currentBusinessUnit:ii,onBusinessUnitChange:F=>{F&&(ni(F),S?.(F))},onSearch:k,showTabs:!1,onActionClick:C,actionIcon:E,actionText:Oe,onNotificationRemove:T,onRemoveAll:N,logo:W,appName:K,tagline:ce,sidebarInitiallyClosed:xe,children:(0,Va.jsx)(Yt.AnimatePresence,{mode:"wait",children:(0,Va.jsx)(Yt.motion.div,{className:"flex-1 h-full",initial:{opacity:0,Va:10},animate:{opacity:1,Va:0},exit:{opacity:0,Va:-10},transition:{duration:.2},children:(0,Va.jsxs)("div",{className:"h-full flex",children:[(0,Va.jsx)("div",{className:"w-80 flex-shrink-0 h-full p-2",children:(0,Va.jsx)(wo,{sessions:d||[],currentSession:I,teams:xt,onNewChat:p,onSessionSelect:h,onSessionEdit:b,onSessionDelete:u})}),(0,Va.jsx)("div",{className:"flex-1 h-full p-2",children:(0,Va.jsx)(Yo,{messages:Ce||[],input:Le,isTyping:ti,currentSessionTitle:I?.title,capabilities:i||[],onInputChange:mi,addToolResult:ai,onSendMessage:Ia,onKeyPress:pi,fileUploads:Ct,isDragOver:ri,enableFileUpload:q,onFileUpload:li,onRemoveFile:di,onDragOver:si})})]})},"chat-interface")})})}function In(){let[e,t]=(0,nt.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you help me analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll help you analyze your sales data. Let me fetch the latest information.
|
|
21
|
+
${i?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
|
|
22
|
+
`,children:"Cancel"})]})]}):null};var Na=({toolPart:e,index:t,addToolResult:o})=>{let[a,n]=bo.default.useState(!0),[r,i]=bo.default.useState(null),s=()=>{o(e.toolCallId,e.type,"Approved"),n(!1),i("approve")},d=()=>{o(e.toolCallId,e.type,"Denied"),n(!1),i("deny")};switch(e.state){case"input-available":return(0,Oo.jsxs)("div",{className:"mb-2",children:[(0,Oo.jsx)(wa,{isOpen:a,onApprove:s,onDeny:d,onClose:()=>n(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!a&&(0,Oo.jsxs)(Oo.Fragment,{children:[r==="approve"&&(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),r==="deny"&&(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,Oo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Oo.jsxs)(Oo.Fragment,{children:[e.output==="approve"&&(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,Oo.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Oo.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,Oo.jsx)("svg",{className:"Oo-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Oo.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 ct=j(require("@radix-ui/react-collapsible")),pt=ct.Root,mt=ct.CollapsibleTrigger,tt=ct.CollapsibleContent;var Ta=require("streamdown"),qe=(0,at.memo)(({className:e,...t})=>(0,Oo.jsx)(Ta.Streamdown,{className:l("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);qe.displayName="Response";var Ra=(0,at.createContext)(null),gr=()=>{let e=(0,at.useContext)(Ra);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},fr=1e3,vr=1e3,yo=(0,at.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:a=!0,onOpenChange:n,duration:r,children:i,...s})=>{let[d,m]=(0,ho.useControllableState)({prop:o,defaultProp:a,onChange:n}),[v,b]=(0,ho.useControllableState)({prop:r,defaultProp:0}),[f,D]=(0,at.useState)(!1),[R,w]=(0,at.useState)(null);(0,at.useEffect)(()=>{t?R===null&&w(Date.now()):R!==null&&(b(Math.ceil((Date.now()-R)/vr)),w(null))},[t,R,b]),(0,at.useEffect)(()=>{if(a&&!t&&d&&!f){let N=setTimeout(()=>{m(!1),D(!0)},fr);return()=>clearTimeout(N)}},[t,d,a,m,f]);let x=N=>{m(N)};return(0,Oo.jsx)(Ra.Provider,{value:{isStreaming:t,isOpen:d,setIsOpen:m,duration:v},children:(0,Oo.jsx)(pt,{className:l("not-prose mb-4",e),onOpenChange:x,open:d,...s,children:i})})}),br=(e,t)=>e||t===0?(0,Oo.jsx)("Oo",{children:"Thinking..."}):t===void 0?(0,Oo.jsx)("Oo",{children:"Thought for a few seconds"}):(0,Oo.jsxs)("Oo",{children:["Thought for ",t," seconds"]}),xo=(0,at.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:n,duration:r}=gr();return(0,Oo.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,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsx)(ti.BrainIcon,{className:"size-4"}),br(a,r),(0,Oo.jsx)(ti.ChevronDownIcon,{className:l("size-4 transition-transform",n?"rotate-180":"rotate-0")})]})})}),Co=(0,at.memo)(({className:e,children:t,...o})=>(0,Oo.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,Oo.jsx)(qe,{className:"grid gap-2",children:t})}));yo.displayName="Reasoning";xo.displayName="ReasoningTrigger";Co.displayName="ReasoningContent";var wo=require("shiki"),hr=(0,at.createContext)({code:""}),yr={name:"line-numbers",line(e,t){e.children.unshift({type:"element",tagName:"span",properties:{className:["inline-block","min-w-10","mr-4","text-right","select-none","text-muted-foreground"]},children:[{type:"text",value:String(t)}]})}};async function xr(e,t,o=!1){let a=o?[yr]:[];return await Promise.all([(0,wo.codeToHtml)(e,{lang:t,theme:"one-light",transformers:a}),(0,wo.codeToHtml)(e,{lang:t,theme:"one-dark-pro",transformers:a})])}var Wt=({code:e,language:t,showLineNumbers:o=!1,className:a,children:n,...r})=>{let[i,s]=(0,at.useState)(""),[d,m]=(0,at.useState)(""),v=(0,at.useRef)(!1);return(0,at.useEffect)(()=>(xr(e,t,o).then(([b,f])=>{v.current||(s(b),m(f),v.current=!0)}),()=>{v.current=!1}),[e,t,o]),(0,Oo.jsx)(hr.Provider,{value:{code:e},children:(0,Oo.jsx)("div",{className:l("group relative w-full overflow-hidden rounded-md border bg-background text-foreground",a),...r,children:(0,Oo.jsxs)("div",{className:"relative",children:[(0,Oo.jsx)("div",{className:"overflow-hidden dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:Oo-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:i}}),(0,Oo.jsx)("div",{className:"hidden overflow-hidden dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:Oo-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:d}}),n&&(0,Oo.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:n})]})})})};var Aa=({className:e,...t})=>(0,Oo.jsx)(pt,{className:l("not-prose mb-4 w-full rounded-md border",e),...t}),Cr=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,Oo.jsxs)(ve,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,Oo.jsx)(ti.CircleIcon,{className:"size-4"}),"input-available":(0,Oo.jsx)(ti.ClockIcon,{className:"size-4 animate-pulse"}),"approval-requested":(0,Oo.jsx)(ti.ClockIcon,{className:"size-4 text-yellow-600"}),"approval-responded":(0,Oo.jsx)(ti.CheckCircleIcon,{className:"size-4 text-blue-600"}),"output-available":(0,Oo.jsx)(ti.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,Oo.jsx)(ti.XCircleIcon,{className:"size-4 text-red-600"}),"output-denied":(0,Oo.jsx)(ti.XCircleIcon,{className:"size-4 text-orange-600"})}[e],t[e]]})},Ia=({className:e,title:t,type:o,state:a,...n})=>(0,Oo.jsxs)(mt,{className:l("flex w-full items-center justify-between gap-4 Oo-3",e),...n,children:[(0,Oo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oo.jsx)(ti.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,Oo.jsx)("span",{className:"font-medium text-sm",children:t??o.split("-").slice(1).join("-")}),Cr(a)]}),(0,Oo.jsx)(ti.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),Ma=({className:e,...t})=>(0,Oo.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}),Ba=({className:e,input:t,...o})=>(0,Oo.jsxs)("div",{className:l("space-y-2 overflow-hidden Oo-4",e),...o,children:[(0,Oo.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,Oo.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,Oo.jsx)(Wt,{code:JSON.stringify(t,null,2),language:"json"})})]}),Ea=({className:e,output:t,errorText:o,...a})=>{if(!(t||o))return null;let n=(0,Oo.jsx)("div",{children:t});return typeof t=="object"&&!(0,at.isValidElement)(t)?n=(0,Oo.jsx)(Wt,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(n=(0,Oo.jsx)(Wt,{code:t,language:"json"})),(0,Oo.jsxs)("div",{className:l("space-y-2 Oo-4",e),...a,children:[(0,Oo.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,Oo.jsxs)("div",{className:l("overflow-x-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,Oo.jsx)("div",{children:o}),n]})]})};var La=(0,at.createContext)(null),wr=()=>{let e=(0,at.useContext)(La);if(!e)throw new Error("ColleagueHandoff components must be used within ColleagueHandoff");return e},Nr=1e3,kr=1e3,ko=(0,at.memo)(({className:e,isStreaming:t=!1,name:o="Digital Colleague",open:a,defaultOpen:n=!0,onOpenChange:r,duration:i,children:s,...d})=>{let[m,v]=(0,ho.useControllableState)({prop:a,defaultProp:n,onChange:r}),[b,f]=(0,ho.useControllableState)({prop:i,defaultProp:0}),[D,R]=(0,at.useState)(!1),[w,x]=(0,at.useState)(null);(0,at.useEffect)(()=>{t?w===null&&x(Date.now()):w!==null&&(f(Math.ceil((Date.now()-w)/kr)),x(null))},[t,w,f]),(0,at.useEffect)(()=>{if(n&&!t&&m&&!D){let M=setTimeout(()=>{v(!1),R(!0)},Nr);return()=>clearTimeout(M)}},[t,m,n,v,D]);let N=M=>{v(M)};return(0,Oo.jsx)(La.Provider,{value:{isStreaming:t,name:o,isOpen:m,setIsOpen:v,duration:b},children:(0,Oo.jsx)(pt,{className:l("not-prose mb-4",e),onOpenChange:N,open:m,...d,children:s})})}),Tr=(e,t,o)=>e||o===0?(0,Oo.jsxs)("Oo",{children:["Asking our ",t,"..."]}):o===void 0?(0,Oo.jsxs)("Oo",{children:["Got an answer from our ",t]}):(0,Oo.jsxs)("Oo",{children:["Got an answer from our ",t," in ",o," seconds"]}),To=(0,at.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:n,name:r,duration:i}=wr();return(0,Oo.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,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsx)(ti.Users,{className:"size-4"}),Tr(a,r,i),(0,Oo.jsx)(ti.ChevronDownIcon,{className:l("size-4 transition-transform",n?"rotate-180":"rotate-0")})]})})}),Po=(0,at.memo)(({className:e,children:t,...o})=>(0,Oo.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,Oo.jsx)(qe,{className:"grid gap-2",children:t})})),Ro=(0,at.memo)(({className:e,children:t,...o})=>(0,Oo.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,Oo.jsx)(qe,{className:"grid gap-2",children:t})}));ko.displayName="ColleagueHandoff";To.displayName="ColleagueHandoffTrigger";Po.displayName="ColleagueHandoffContent";Ro.displayName="ColleagueHandoffQuery";var kt=require("use-stick-to-bottom"),_a=({className:e,...t})=>(0,Oo.jsx)(kt.StickToBottom,{className:l("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),Fa=({className:e,...t})=>(0,Oo.jsx)(kt.StickToBottom.Content,{className:l("flex flex-col gap-8 Oo-4",e),...t}),Ha=({className:e,title:t="ho messages yet",description:o="Start a conversation to see messages here",icon:a,children:n,...r})=>(0,Oo.jsx)("div",{className:l("flex size-full flex-col items-center justify-center gap-3 Oo-8 text-center",e),...r,children:n??(0,Oo.jsxs)(Oo.Fragment,{children:[a&&(0,Oo.jsx)("div",{className:"text-muted-foreground",children:a}),(0,Oo.jsxs)("div",{className:"space-y-1",children:[(0,Oo.jsx)("h3",{className:"font-medium text-sm",children:t}),o&&(0,Oo.jsx)("Oo",{className:"text-muted-foreground text-sm",children:o})]})]})}),Oa=({className:e,...t})=>{let{isAtBottom:o,scrollToBottom:a}=(0,kt.useStickToBottomContext)(),n=(0,at.useCallback)(()=>{a()},[a]);return!o&&(0,Oo.jsx)(T,{className:l("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:n,size:"icon",type:"button",variant:"outline",...t,children:(0,Oo.jsx)(ti.ArrowDownIcon,{className:"size-4"})})};var Va=require("date-fns");function ja({taskId:e,polling:t=!0,system:o="payload"}){let[a,n]=(0,at.useState)(null),[r,i]=(0,at.useState)(!1),[s,d]=(0,at.useState)(null),m=async(b=!0)=>{if(e){b&&i(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed to fetch task: ${f.statusText}`);let D=await f.json();n(D)}catch(f){console.error("Error fetching task:",f),d(f instanceof Error?f:new Error("Unknown error occurred"))}finally{b&&i(!1)}}},v=()=>m(!1);return(0,at.useEffect)(()=>{e&&m(!0);let b=null;return e&&t&&(b=setInterval(v,5e3)),()=>{b&&clearInterval(b)}},[e,t]),{task:a,loading:r,error:s}}var Pr=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"}},Rr=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Ga({data:e}){let{id:t,system:o,fetchLatest:a,taskData:n,error:r}=e||{};if(!t)return null;let i=null,s=!0,d=r,m=a!==void 0?a:!0;if(i=n||{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:d}),m){let{task:D,loading:R,error:w}=ja({taskId:t,system:o});i=D,s=R,d=w}else s=!1;let v=Pr(i?.status||"todo"),b=Rr(i?.status||"todo"),f=i?.dateLogged||new Date().toISOString();try{let D=new Date(i?.dateLogged||"");isNaN(D.getTime())||(f=(0,Va.formatDistanceToNow)(D,{addSuffix:!0}))}catch{}return(0,Oo.jsxs)(ye,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,Oo.jsxs)(Ue,{className:"pb-2",children:[(0,Oo.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Oo.jsx)(ze,{className:"text-lg font-semibold",children:s?"Loading...":i?.name||"Task"}),(0,Oo.jsx)(ve,{className:`${v}`,children:b})]}),i?.project&&(0,Oo.jsxs)(uo,{className:"text-sm text-gray-500",children:["Project: ",i.project.name]})]}),(0,Oo.jsx)(Se,{className:"pb-2",children:s?(0,Oo.jsx)("div",{className:"animate-pulse Oo-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,Oo.jsx)("Oo",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Oo.jsx)("Oo",{className:"text-sm text-foreground",children:i?.description||"......."})}),(0,Oo.jsx)(Nt,{className:"pt-2 flex items-center justify-between",children:(0,Oo.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Oo.jsx)(ti.Clock,{className:"Oo-3 w-3 mr-1"}),(0,Oo.jsxs)("span",{children:["Created ",f]}),(0,Oo.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Oo.jsxs)("span",{children:["Task #",t]})]})})]})}function Ka({artefact:e,taskId:t,taskData:o,loading:a=!1,error:n=null}){let r=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},i=r.dateLogged;try{let s=new Date(r.dateLogged);isNaN(s.getTime())||(i=(0,Va.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,Oo.jsxs)(ye,{className:"w-full max-w-md shadow-md",children:[(0,Oo.jsx)(Ue,{className:"pb-2",children:(0,Oo.jsx)("div",{className:"flex justify-between items-start",children:(0,Oo.jsx)(ze,{className:"text-lg font-semibold",children:a?"Loading...":r.name})})}),(0,Oo.jsx)(Se,{className:"pb-2",children:a?(0,Oo.jsx)("div",{className:"animate-pulse Oo-4 bg-gray-200 rounded w-3/4 mb-2"}):n?(0,Oo.jsx)("Oo",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Oo.jsx)("Oo",{className:"text-sm text-foreground",children:e})}),(0,Oo.jsx)(Nt,{className:"pt-2 flex items-center justify-between",children:(0,Oo.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Oo.jsx)($a.Clock,{className:"Oo-3 w-3 mr-1"}),(0,Oo.jsxs)("span",{children:["Created ",i]}),(0,Oo.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Oo.jsxs)("span",{children:["Task #",r.id]})]})})]})}var Sr=e=>e.startsWith("image/")?(0,Oo.jsx)(ti.Image,{className:"Oo-4 w-4"}):e.startsWith("text/")?(0,Oo.jsx)(ti.FileText,{className:"Oo-4 w-4"}):(0,Oo.jsx)(ti.File,{className:"Oo-4 w-4"}),Ja=({message:e,addToolResult:t,status:o,messages:a})=>e.parts.map((n,r)=>{if(n.type==="text")return(0,Oo.jsx)(qe,{children:n.text},`${r}`);if(n.type==="file"){let i=n;return(0,Oo.jsx)("div",{className:"mb-2 Oo-2 bg-background/50 rounded-lg",children:(0,Oo.jsxs)("div",{className:"flex items-center gap-2",children:[Sr(i.mediaType||"application/octet-stream"),(0,Oo.jsx)("div",{className:"flex-1 min-w-0",children:(0,Oo.jsx)("Oo",{className:"text-sm font-medium truncate",children:i.filename||i.url?.split("/").pop()||"File"})}),i.url&&(0,Oo.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>window.open(i.url,"_blank"),className:"Oo-8 w-8 Oo-0",children:(0,Oo.jsx)(ti.Download,{className:"Oo-4 w-4"})})]})},r)}if(n.type.startsWith("tool-")){let i=n,s=n.type.replace("tool-","");if(n.type.startsWith("tool-dc_a2a"))return(0,Oo.jsxs)(ko,{name:i?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:o==="streaming"&&r===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Oo.jsx)(To,{}),(0,Oo.jsx)(Ro,{children:i?.input?.query}),(0,Oo.jsx)(Po,{children:i?.output})]},`${r}`);if(s==="task")switch(i.state){case"input-available":return(0,Oo.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},r);case"output-available":return(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(Ga,{data:{id:i.output?.id||i.input?.id,fetchLatest:!1,taskData:i.output||i.input}})},r);case"output-error":return(0,Oo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",i.errorText]},r);default:return null}if(n.type==="tool-requestEndpointLogin")return(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(vo,{toolPart:i,index:r,addToolResult:t??(()=>{})})},r);if(n.type==="tool-authenticate")return(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(vo,{toolPart:i,index:r,addToolResult:t??(()=>{})})},r);if(n.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",i),(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(Na,{toolPart:i,index:r,addToolResult:t??(()=>{})})},r);if(s==="artefact")switch(i.state){case"input-available":return(0,Oo.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},r);case"output-available":return(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(Ka,{artefact:i.output?.description||"",taskId:i.output?.id||i.input?.id,taskData:i.output||i.input})},r);case"output-error":return(0,Oo.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",i.errorText]},r);default:return null}return(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsxs)(ye,{className:"w-full max-w-md",children:[(0,Oo.jsx)(Ue,{children:(0,Oo.jsx)(ze,{className:"text-lg",children:s})}),(0,Oo.jsxs)(Se,{children:[i.state==="input-available"&&(0,Oo.jsxs)("Oo",{className:"text-sm",children:["Processing ",s,"..."]}),i.state==="output-available"&&(0,Oo.jsx)("pre",{className:"text-sm",children:JSON.stringify(i.output,null,2)}),i.state==="output-error"&&(0,Oo.jsxs)("Oo",{className:"text-sm text-red-500",children:["Error: ",i.errorText]})]})]})},r)}if(n.type.startsWith("data-")){let i=n,s=n.type.replace("data-","");return s==="reference"?(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsx)(ye,{className:"w-full",children:(0,Oo.jsx)(Se,{className:"Oo-4",children:(0,Oo.jsx)("div",{className:"space-y-2",children:i.data?.references?.map((d,m)=>(0,Oo.jsxs)("div",{className:"flex items-center gap-2 Oo-2 rounded-md bg-muted/50",children:[(0,Oo.jsx)(ve,{variant:"outline",children:d.type||"link"}),(0,Oo.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Oo.jsx)("Oo",{className:"text-sm font-medium truncate",children:d.title}),d.description&&(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground truncate",children:d.description})]}),d.url&&(0,Oo.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>window.open(d.url,"_blank"),className:"Oo-8 w-8 Oo-0",children:(0,Oo.jsx)(ti.ExternalLink,{className:"Oo-4 w-4"})})]},m))})})})},r):s==="menu"?(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsxs)(ye,{className:"w-full",children:[(0,Oo.jsx)(Ue,{children:(0,Oo.jsx)(ze,{className:"text-lg",children:i.data?.title})}),(0,Oo.jsx)(Se,{children:(0,Oo.jsx)("div",{className:"space-y-2",children:i.data?.items?.map((d,m)=>(0,Oo.jsx)(T,{variant:"outline",className:"w-full justify-start",onClick:d.action,children:(0,Oo.jsxs)("div",{className:"text-left",children:[(0,Oo.jsx)("Oo",{className:"font-medium",children:d.label}),d.description&&(0,Oo.jsx)("Oo",{className:"text-xs text-muted-foreground",children:d.description})]})},m))})})]})},r):(0,Oo.jsx)("div",{className:"mb-2",children:(0,Oo.jsxs)(ye,{className:"w-full max-w-md",children:[(0,Oo.jsx)(Ue,{children:(0,Oo.jsx)(ze,{className:"text-lg",children:s})}),(0,Oo.jsx)(Se,{children:(0,Oo.jsx)("pre",{className:"text-sm",children:JSON.stringify(i.data,null,2)})})]})},r)}if(n.type==="reasoning")return(0,Oo.jsxs)(yo,{className:"w-full",isStreaming:o==="streaming"&&r===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Oo.jsx)(xo,{}),(0,Oo.jsx)(Co,{children:n.text})]},`${r}`);if(n.type==="dynamic-tool")return(0,Oo.jsxs)(Aa,{defaultOpen:n.state!=="output-available",children:[(0,Oo.jsx)(Ia,{type:`tool-${n.toolName}`,state:n.state}),(0,Oo.jsxs)(Ma,{children:[(0,Oo.jsx)(Ba,{input:n.input}),(0,Oo.jsx)(Ea,{output:n.output,errorText:n.errorText})]})]},`${e.id}-${r}`)});var Xa=({className:e,from:t,...o})=>(0,Oo.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}),Dr=(0,Ho.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"}}),Ya=({children:e,className:t,variant:o,...a})=>(0,Oo.jsx)("div",{className:l(Dr({variant:o,className:t})),...a,children:e});function Za({messages:e,input:t,isTyping:o=!1,currentSessionTitle:a,capabilities:n,fileUploads:r,isDragOver:i,enableFileUpload:s,onInputChange:d,addToolResult:m,onSendMessage:v,onKeyPress:b,onFileUpload:f,onRemoveFile:D,onDragOver:R,className:w,status:x="ready"}){let N=(0,at.useRef)(null),M=(0,at.useRef)(null),K=(0,at.useRef)(null),[H,Y]=(0,at.useState)(!1),[G,le]=(0,at.useState)({path:[],selectedItems:[],filters:{}});(0,at.useEffect)(()=>{N.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,at.useEffect)(()=>{H&&setTimeout(()=>{N.current?.scrollIntoView({behavior:"smooth"})},100)},[H]);let oe=()=>go(G),O=()=>{let g=[];return n.forEach(E=>{E.actions&&E.actions.forEach(xe=>{g.push({label:xe.label,action:()=>J(xe.id,{path:[E],selectedItems:[],filters:{}})})}),E.children&&E.children.forEach(xe=>{xe.type==="list"&&xe.data&&g.push({label:`View ${xe.name}`,action:()=>Y(!0)})})}),g.slice(0,5)},J=(g,E)=>{console.log("Capability action:",g,E);let xe=`Executing ${g} with context: ${JSON.stringify(E.path.map(Me=>Me.name))}`;Y(!1)},de=go({path:[],selectedItems:[],filters:{}}),A=g=>{f(g.target.files),g.target.files&&(g.target.value="")},Je=g=>{g.preventDefault(),R(!0)},Te=g=>{g.preventDefault(),R(!1)},c=g=>{g.preventDefault(),R(!1),f(g.dataTransfer.files)},B=g=>{if(g===0)return"0 Bytes";let E=1024,xe=["Bytes","KB","MB","GB"],Me=Math.floor(Math.log(g)/Math.log(E));return parseFloat((g/Math.pow(E,Me)).toFixed(2))+" "+xe[Me]},S=g=>g.startsWith("image/")?(0,Oo.jsx)(ti.Image,{className:"Oo-4 w-4"}):g.startsWith("text/")?(0,Oo.jsx)(ti.FileText,{className:"Oo-4 w-4"}):(0,Oo.jsx)(ti.File,{className:"Oo-4 w-4"}),ce={messages:e,currentSessionTitle:a,capabilities:n,currentCapabilityContext:G,contextualActions:de,getQuickSuggestions:O().map(g=>g.label)},W=()=>{navigator.clipboard.writeText(JSON.stringify(ce,null,2)),alert("Debug info copied to clipboard")};return(0,Oo.jsxs)("div",{className:`Oo-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${w||""}`,children:[(0,Oo.jsxs)(_a,{className:"relative flex-1 Oo-full size-full",children:[(0,Oo.jsx)(Fa,{children:e.length===0?(0,Oo.jsx)(Ha,{description:"Messages will appear here as the conversation progresses.",icon:(0,Oo.jsx)(ti.MessageSquareIcon,{className:"size-6"}),title:"Start a conversation"}):e.map((g,E)=>(0,Oo.jsx)(Xa,{from:g.role,children:(0,Oo.jsx)(Ya,{children:Ja({message:g,addToolResult:m??(()=>{}),status:x,messages:e})})},E))}),(0,Oo.jsx)(Oa,{})]}),r.length>0&&(0,Oo.jsx)("div",{className:"Oo-4 border-t bg-muted/10",children:(0,Oo.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(g=>(0,Oo.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg Oo-2 border",children:[S(g.file.type),(0,Oo.jsx)("span",{className:"text-sm font-medium",children:g.file.name}),(0,Oo.jsx)("span",{className:"text-xs text-muted-foreground",children:B(g.file.size)}),(0,Oo.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>D(g.id),className:"Oo-6 w-6 Oo-0",children:(0,Oo.jsx)(ti.Oo,{className:"Oo-4 w-4"})})]},g.id))})}),(0,Oo.jsxs)("div",{className:"border rounded-2xl Oo-4 bg-muted/20",children:[(0,Oo.jsxs)("div",{className:"flex gap-3",children:[(0,Oo.jsx)(yt,{value:t,onChange:g=>d(g.target.value),onKeyPress:b,placeholder:"How can Oo help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),s&&(0,Oo.jsx)(T,{variant:"outline",size:"icon",onClick:()=>K.current?.click(),className:"rounded-2xl Oo-10 w-10 shadow-sm",children:(0,Oo.jsx)(ti.Paperclip,{className:"Oo-4 w-4"})}),(0,Oo.jsx)(T,{onClick:v,disabled:!t.trim()&&r.length===0||o,size:"icon",className:"rounded-2xl Oo-10 w-10 shadow-sm",children:(0,Oo.jsx)(ti.Send,{className:"Oo-4 w-4"})})]}),(0,Oo.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,Oo.jsxs)(T,{onClick:()=>Y(!H),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,Oo.jsx)(ti.Menu,{className:"Oo-3 w-3 mr-1"}),H?"Hide":"Show"," Capabilities"]}),(0,Oo.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[oe().map((g,E)=>(0,Oo.jsx)(T,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>J(g.id,G),children:g.label},`context-${g.id}`)),oe().length===0&&O().map((g,E)=>(0,Oo.jsx)(T,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:g.action,children:g.label},`suggestion-${E}`)),(0,Oo.jsx)(T,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:W,children:"Debug"})]})]}),s&&(0,Oo.jsx)("input",{ref:K,type:"file",multiple:!0,onChange:A,className:"hidden"})]})]})}function ot({aiConfig:e,useCustomChat:t,enableAI:o=!0,messages:a=[],businessUnits:n=[],capabilities:r=[],sidebarItems:i=[],notifications:s=[],sessions:d=[],onNewChat:m,onSessionSelect:v,onSessionDelete:b,onSessionEdit:f=()=>{},onBusinessUnitChange:D=()=>{},onNotificationRemove:R=()=>{},onRemoveAll:w=()=>{},onActionClick:x=()=>{},onSearch:N=c=>console.log("Search query:",c),initialTeam:M="design",currentSession:K=null,showCapabilities:H=!0,title:Y="Digital Colleagues",enableFileUpload:G=!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:de="AI-Powered Workspace",actionIcon:A=(0,Oo.jsx)(ti.Users,{className:"mr-2 Oo-4 w-4"}),actionText:Je="Collaborate",sidebarInitiallyClosed:Te=!1}){let c={...e,onError:z=>{S?.setMessages(pe=>[...pe,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:z.message}]}]),console.error("Error in CopilotInterface:",z)}},B=(0,ei.useChat)(c||{}),S=o?t||B:null,[ce,W]=(0,at.useState)(""),[g,E]=(0,at.useState)(!1),xe=S?.messages||a,Me=ce,oi=S?.status==="submitted"||g,ai=S?.addToolResult?(z,pe,Z)=>{S.addToolResult({tool:pe,toolCallId:z,output:Z}),console.log("Tool result added:",{toolCallId:z,tool:pe,output:Z}),S.sendMessage()}:()=>{console.log("addToolResult not available")},ft=n||[],ii={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\Oo{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ri,ni]=(0,at.useState)(()=>ft.length===0?ii:ft.find(z=>z.id===M)||ft[0]),[vt,Tt]=(0,at.useState)([]),[si,li]=(0,at.useState)(!1),di=z=>{if(!z||!G)return;let pe=[];Array.from(z).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(Pt=>Z.type.match(Pt))){alert(`File type ${Z.type} is not allowed.`);return}let Do={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:Z,status:"pending",progress:0};if(Z.type.startsWith("image/")){let Pt=new FileReader;Pt.onload=gi=>{Tt(fi=>fi.map(qt=>qt.id===Do.id?{...qt,preview:gi.target?.result}:qt))},Pt.readAsDataURL(Z)}pe.push(Do)}),Tt(Z=>[...Z,...pe])},ci=z=>{Tt(pe=>pe.filter(Z=>Z.id!==z))},So=()=>{if(!(!Me.trim()&&vt.length===0)){if(S){let z=vt.length>0?pi(vt.map(pe=>pe.file)):void 0;S.sendMessage({text:Me,files:z},{body:{timestamp:Date.now()}}),W("")}else console.log("Message to send:",Me),console.log("Files to upload:",vt),W(""),E(!0),setTimeout(()=>{E(!1)},1500);Tt([])}},pi=z=>{let pe=new DataTransfer;return z.forEach(Z=>pe.items.add(Z)),pe.files},mi=z=>{z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),So())},ui=z=>{W(z)};return(0,Oo.jsx)(ba,{sidebarItems:i||[],title:Y,notifications:s||[],businessUnits:ft,currentBusinessUnit:ri,onBusinessUnitChange:z=>{z&&(ni(z),D?.(z))},onSearch:N,showTabs:!1,onActionClick:x,actionIcon:A,actionText:Je,onNotificationRemove:R,onRemoveAll:w,logo:O,appName:J,tagline:de,sidebarInitiallyClosed:Te,children:(0,Oo.jsx)($t.AnimatePresence,{mode:"wait",children:(0,Oo.jsx)($t.motion.div,{className:"flex-1 Oo-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,Oo.jsxs)("div",{className:"Oo-full flex",children:[(0,Oo.jsx)("div",{className:"w-80 flex-shrink-0 Oo-full Oo-2",children:(0,Oo.jsx)(ha,{sessions:d||[],currentSession:K,teams:ft,onNewChat:m,onSessionSelect:v,onSessionEdit:f,onSessionDelete:b})}),(0,Oo.jsx)("div",{className:"flex-1 Oo-full Oo-2",children:(0,Oo.jsx)(Za,{messages:xe||[],input:Me,isTyping:oi,currentSessionTitle:K?.title,capabilities:r||[],onInputChange:ui,addToolResult:ai,onSendMessage:So,onKeyPress:mi,fileUploads:vt,isDragOver:si,enableFileUpload:G,onFileUpload:di,onRemoveFile:ci,onDragOver:li})})]})},"chat-interface")})})}function Ar(){let[e,t]=(0,at.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you help at analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Oo'll help you analyze your sales data. Let at fetch the latest information.
|
|
22
23
|
|
|
23
|
-
*\
|
|
24
|
+
*\Oo{1F527} Calling function: fetch_sales_data(period="30d", region="all")*`}]},{id:"3",role:"assistant",parts:[{type:"text",text:`Great! Oo've retrieved your sales data for the last 30 days. Here's what Oo found:
|
|
24
25
|
|
|
25
26
|
**Sales Summary:**
|
|
26
27
|
- **Total Revenue:** $125,000
|
|
@@ -32,18 +33,18 @@
|
|
|
32
33
|
2. Bob Smith
|
|
33
34
|
3. Carol Davis
|
|
34
35
|
|
|
35
|
-
*\
|
|
36
|
+
*\Oo{1F4CA} Tool Result: Successfully retrieved 1,247 records from sales database*
|
|
36
37
|
|
|
37
|
-
Would you like
|
|
38
|
+
Would you like at to create a detailed report or analyze any specific metrics?`}]},{id:"4",role:"user",parts:[{type:"text",text:"Can you create a chart showing the revenue trend?"}]},{id:"5",role:"assistant",parts:[{type:"text",text:`Oo'll create a revenue trend chart for you.
|
|
38
39
|
|
|
39
|
-
*\
|
|
40
|
+
*\Oo{1F527} Calling function: create_chart(type="line", data_source="sales_revenue", period="30d")*
|
|
40
41
|
|
|
41
|
-
*\
|
|
42
|
+
*\Oo{1F4C8} Tool Result: Chart generated successfully - ID: revenue-trend-123*
|
|
42
43
|
|
|
43
|
-
Perfect!
|
|
44
|
+
Perfect! Oo've created a revenue trend chart for the last 30 days. The chart shows your daily revenue performance with clear trend indicators:
|
|
44
45
|
|
|
45
46
|
\`\`\`
|
|
46
|
-
\
|
|
47
|
+
\Oo{1F4CA} Revenue Trend - Last 30 Days
|
|
47
48
|
$6K \u2524 \u25CF
|
|
48
49
|
$5K \u2524 \u25CF \u2502 \u25CF \u25CF
|
|
49
50
|
$4K \u2524 \u25CF \u2502 \u2502 \u2502 \u25CF \u2502 \u25CF
|
|
@@ -58,9 +59,9 @@ Perfect! I've created a revenue trend chart for the last 30 days. The chart show
|
|
|
58
59
|
- Peak revenue on Day 5: $5,500
|
|
59
60
|
- Lowest revenue on Day 6: $3,200
|
|
60
61
|
- Average daily revenue: $4,443
|
|
61
|
-
- Overall trend: **Positive growth** (+12% from start
|
|
62
|
+
- Overall trend: **Positive growth** (+12% from start to end)`}]},{id:"6",role:"user",parts:[{type:"text",text:"What about error handling? Try calling a function that doesn't exist."}]},{id:"7",role:"assistant",parts:[{type:"text",text:`Oo'll demonstrate error handling by calling a non-existent function.
|
|
62
63
|
|
|
63
|
-
*\
|
|
64
|
+
*\Oo{1F527} Calling function: non_existent_function(param="test")*
|
|
64
65
|
|
|
65
66
|
\u274C **Function Call Error**
|
|
66
67
|
\`\`\`
|
|
@@ -81,7 +82,7 @@ Timestamp: 2024-01-20T10:30:45Z
|
|
|
81
82
|
- \`analyze_data\` - Perform data analysis
|
|
82
83
|
- \`generate_report\` - Create reports
|
|
83
84
|
|
|
84
|
-
Would you like
|
|
85
|
+
Would you like at to try a valid function instead?`}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Ir(){let[e,t]=(0,at.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you show at some examples of markdown formatting?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`# Markdown Formatting Examples
|
|
85
86
|
|
|
86
87
|
Here are various markdown elements that should render properly in the chat:
|
|
87
88
|
|
|
@@ -136,7 +137,7 @@ console.log('Total Revenue:', calculateRevenue(deals));
|
|
|
136
137
|
| Users | 5 | 50 | Unlimited |
|
|
137
138
|
| Storage | 1GB | 100GB | 1TB |
|
|
138
139
|
| Support | Email | Priority | 24/7 |
|
|
139
|
-
| Price | $0 | $29/
|
|
140
|
+
| Price | $0 | $29/at | $99/at |
|
|
140
141
|
|
|
141
142
|
## Links and Images
|
|
142
143
|
|
|
@@ -144,7 +145,7 @@ Visit our [documentation](https://docs.example.com) for more details.
|
|
|
144
145
|
|
|
145
146
|
## Blockquotes
|
|
146
147
|
|
|
147
|
-
> "The best way
|
|
148
|
+
> "The best way to predict the future is to create it."
|
|
148
149
|
>
|
|
149
150
|
> \u2014 Peter Drucker
|
|
150
151
|
|
|
@@ -152,7 +153,7 @@ Visit our [documentation](https://docs.example.com) for more details.
|
|
|
152
153
|
|
|
153
154
|
---
|
|
154
155
|
|
|
155
|
-
That covers the main markdown elements! They should all render properly in the chat interface.`}]},{id:"3",role:"user",parts:[{type:"text",text:"Can you show
|
|
156
|
+
That covers the main markdown elements! They should all render properly in the chat interface.`}]},{id:"3",role:"user",parts:[{type:"text",text:"Can you show at a complex code example with syntax highlighting?"}]},{id:"4",role:"assistant",parts:[{type:"text",text:`# Complex Code Examples
|
|
156
157
|
|
|
157
158
|
Here are some advanced code examples with different languages:
|
|
158
159
|
|
|
@@ -300,7 +301,7 @@ class SalesAnalyzer:
|
|
|
300
301
|
monthly = self.monthly_trends()
|
|
301
302
|
axes[0, 0].plot(monthly.index.astype(str), monthly['total_revenue'])
|
|
302
303
|
axes[0, 0].set_title('Monthly Revenue Trend')
|
|
303
|
-
axes[0, 0].tick_params(axis='
|
|
304
|
+
axes[0, 0].tick_params(axis='x', rotation=45)
|
|
304
305
|
|
|
305
306
|
# Revenue distribution
|
|
306
307
|
axes[0, 1].hist(self.data['revenue'], bins=30, alpha=0.7)
|
|
@@ -340,19 +341,19 @@ if __name__ == "__main__":
|
|
|
340
341
|
analyzer.visualize_trends('sales_analysis.png')
|
|
341
342
|
\`\`\`
|
|
342
343
|
|
|
343
|
-
This demonstrates complex syntax highlighting with multiple languages and should render properly with appropriate color coding!`}]}]);return(0,
|
|
344
|
+
This demonstrates complex syntax highlighting with multiple languages and should render properly with appropriate color coding!`}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Mr(){let[e,t]=(0,at.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you show at some interactive dashboard components?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:"Oo'll create some interactive dashboard components for you. Here are various UI elements:"},{type:"data-dashboard",data:{title:"Sales Dashboard",widgets:[{type:"metric",title:"Total Revenue",value:"$125,000",change:"+12.5%",trend:"up"},{type:"metric",title:"New Customers",value:"47",change:"+8.3%",trend:"up"},{type:"metric",title:"Conversion Rate",value:"3.2%",change:"-2.1%",trend:"down"}]}}]},{id:"3",role:"user",parts:[{type:"text",text:"Can you show at a data table with customer information?"}]},{id:"4",role:"assistant",parts:[{type:"text",text:"Here's a customer data table with sorting and filtering capabilities:"},{type:"data-table",data:{title:"Customer Information",columns:[{key:"name",label:"Customer Name",sortable:!0},{key:"company",label:"Company",sortable:!0},{key:"revenue",label:"Revenue",sortable:!0,type:"currency"},{key:"status",label:"Status",type:"badge"},{key:"lastContact",label:"Last Contact",type:"date"}],rows:[{id:"1",name:"Alice Johnson",company:"Acme Corp",revenue:85e3,status:"active",lastContact:"2024-01-15"},{id:"2",name:"Bob Smith",company:"Beta Inc",revenue:45e3,status:"pending",lastContact:"2024-01-12"},{id:"3",name:"Carol Davis",company:"Gamma LLC",revenue:15e3,status:"inactive",lastContact:"2024-01-08"},{id:"4",name:"David Wilson",company:"Delta Systems",revenue:125e3,status:"active",lastContact:"2024-01-18"}]}}]},{id:"5",role:"user",parts:[{type:"text",text:"Show at a progress tracker for a project"}]},{id:"6",role:"assistant",parts:[{type:"text",text:"Here's a project progress tracker with timeline and milestones:"},{type:"data-progress",data:{title:"Website Redesign Project",overall_progress:65,phases:[{name:"Discovery & Planning",status:"completed",progress:100,start_date:"2024-01-01",end_date:"2024-01-15",tasks:[{name:"Stakeholder interviews",completed:!0},{name:"Requirements gathering",completed:!0},{name:"Project timeline",completed:!0}]},{name:"Design & Prototyping",status:"completed",progress:100,start_date:"2024-01-16",end_date:"2024-02-15",tasks:[{name:"Wireframes",completed:!0},{name:"Visual design",completed:!0},{name:"Interactive prototype",completed:!0}]},{name:"Development",status:"in_progress",progress:75,start_date:"2024-02-16",end_date:"2024-03-30",tasks:[{name:"Frontend development",completed:!0},{name:"Backend integration",completed:!1},{name:"Testing & QA",completed:!1}]},{name:"Launch & Deployment",status:"pending",progress:0,start_date:"2024-03-31",end_date:"2024-04-15",tasks:[{name:"Production deployment",completed:!1},{name:"User training",completed:!1},{name:"Oo-live support",completed:!1}]}]}}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Br(){let[e,t]=(0,at.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Oo want to upload some files for analysis. Oo have a sales_data.csv file and a quarterly_report.pdf that Oo need to analyze."}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Perfect! Oo can help you analyze various file types. You can upload:
|
|
344
345
|
|
|
345
|
-
\
|
|
346
|
+
\Oo{1F4CA} **Data Files:**
|
|
346
347
|
- CSV/Excel spreadsheets
|
|
347
348
|
- JSON data files
|
|
348
349
|
- Database exports
|
|
349
350
|
|
|
350
|
-
\
|
|
351
|
+
\Oo{1F4C4} **Documents:**
|
|
351
352
|
- PDF reports
|
|
352
353
|
- Word documents
|
|
353
354
|
- Text files
|
|
354
355
|
|
|
355
|
-
\
|
|
356
|
+
\Oo{1F5BC}\uFE0F **Media Files:**
|
|
356
357
|
- Images (PNG, JPG, GIF)
|
|
357
358
|
- Charts and diagrams
|
|
358
359
|
|
|
@@ -363,25 +364,25 @@ This demonstrates complex syntax highlighting with multiple languages and should
|
|
|
363
364
|
- \u2705 File type validation
|
|
364
365
|
- \u2705 Size limit checking (max 10MB)
|
|
365
366
|
|
|
366
|
-
Try uploading your files using the attachment button below!
|
|
367
|
+
Try uploading your files using the attachment button below! Oo'll analyze them once uploaded.`}]},{id:"3",role:"user",parts:[{type:"text",text:"Oo just uploaded sales_data.csv (15.4 KB) and quarterly_report.pdf (2.6 MB)"}]},{id:"4",role:"assistant",parts:[{type:"text",text:`Great! Oo can see you've uploaded two files:
|
|
367
368
|
|
|
368
|
-
## \
|
|
369
|
+
## \Oo{1F4C1} Uploaded Files
|
|
369
370
|
|
|
370
|
-
### 1. \
|
|
371
|
+
### 1. \Oo{1F4CA} sales_data.csv (15.4 KB)
|
|
371
372
|
- **Type:** CSV Spreadsheet
|
|
372
373
|
- **Status:** \u2705 Successfully uploaded
|
|
373
374
|
- **Preview:** Contains sales transaction data
|
|
374
375
|
- **Columns:** Date, Customer, Product, Revenue, Region
|
|
375
376
|
|
|
376
|
-
### 2. \
|
|
377
|
+
### 2. \Oo{1F4C4} quarterly_report.pdf (2.6 MB)
|
|
377
378
|
- **Type:** PDF Document
|
|
378
379
|
- **Status:** \u2705 Successfully uploaded
|
|
379
380
|
- **Pages:** 24 pages
|
|
380
381
|
- **Content:** Q4 2023 Business Report
|
|
381
382
|
|
|
382
|
-
*\
|
|
383
|
+
*\Oo{1F527} Analyzing CSV file: sales_data.csv*
|
|
383
384
|
|
|
384
|
-
## \
|
|
385
|
+
## \Oo{1F50D} Analysis Results
|
|
385
386
|
|
|
386
387
|
**CSV Data Summary:**
|
|
387
388
|
- **Total Records:** 1,247 sales transactions
|
|
@@ -389,7 +390,7 @@ Try uploading your files using the attachment button below! I'll analyze them on
|
|
|
389
390
|
- **Total Revenue:** $1,250,000
|
|
390
391
|
- **Average Deal Size:** $1,002.40
|
|
391
392
|
|
|
392
|
-
*\
|
|
393
|
+
*\Oo{1F527} Extracting PDF content: quarterly_report.pdf*
|
|
393
394
|
|
|
394
395
|
**PDF Report Highlights:**
|
|
395
396
|
- **Q4 Revenue:** $485,000 (from report)
|
|
@@ -397,17 +398,17 @@ Try uploading your files using the attachment button below! I'll analyze them on
|
|
|
397
398
|
- **Top Region:** North America
|
|
398
399
|
- **Key Sections:** Executive Summary, Financial Performance, Sales Analysis
|
|
399
400
|
|
|
400
|
-
## \
|
|
401
|
+
## \Oo{1F50D} Data Comparison
|
|
401
402
|
- **Variance Found:** $70,000 difference between CSV total ($1,250,000) and PDF annual total ($1,180,000)
|
|
402
403
|
- **Recommendation:** Investigate timing differences or adjustments
|
|
403
404
|
|
|
404
|
-
Would you like
|
|
405
|
-
- \
|
|
406
|
-
- \
|
|
407
|
-
- \
|
|
408
|
-
- \
|
|
405
|
+
Would you like at to:
|
|
406
|
+
- \Oo{1F4CA} Create detailed visualizations
|
|
407
|
+
- \Oo{1F50D} Investigate the revenue variance
|
|
408
|
+
- \Oo{1F4C8} Generate trend analysis
|
|
409
|
+
- \Oo{1F4CB} Create a unified report?`}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Er(){let[e,t]=(0,at.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you fetch my latest sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Oo'll fetch your latest sales data right away.
|
|
409
410
|
|
|
410
|
-
*\
|
|
411
|
+
*\Oo{1F527} Calling function: fetch_sales_data(period="latest")*
|
|
411
412
|
|
|
412
413
|
\u26A0\uFE0F **Database Connection Timeout**
|
|
413
414
|
|
|
@@ -418,17 +419,17 @@ Retry after: 30 seconds
|
|
|
418
419
|
Timestamp: 2024-01-20T10:15:23Z
|
|
419
420
|
\`\`\`
|
|
420
421
|
|
|
421
|
-
This is usually a temporary issue.
|
|
422
|
+
This is usually a temporary issue. Oo'll retry the request in 30 seconds. In the meantime, you can:
|
|
422
423
|
|
|
423
424
|
1. Check if there are any ongoing system maintenance notifications
|
|
424
425
|
2. Try refreshing the page
|
|
425
426
|
3. Contact support if the issue persists
|
|
426
427
|
|
|
427
|
-
Would you like
|
|
428
|
+
Would you like at to try again now or wait for the suggested retry time?`}]},{id:"3",role:"user",parts:[{type:"text",text:"Please try again now"}]},{id:"4",role:"assistant",parts:[{type:"text",text:`Retrying the sales data fetch...
|
|
428
429
|
|
|
429
|
-
*\
|
|
430
|
+
*\Oo{1F527} Calling function: fetch_sales_data(period="latest", retry=true)*
|
|
430
431
|
|
|
431
|
-
\
|
|
432
|
+
\Oo{1F6AB} **Access Denied**
|
|
432
433
|
|
|
433
434
|
\`\`\`
|
|
434
435
|
Error: Insufficient permissions
|
|
@@ -437,25 +438,25 @@ Required permissions: ['sales:read', 'data:access']
|
|
|
437
438
|
Contact admin: true
|
|
438
439
|
\`\`\`
|
|
439
440
|
|
|
440
|
-
|
|
441
|
+
Oo'm unable to fetch the sales data due to insufficient permissions.
|
|
441
442
|
|
|
442
443
|
**Required Permissions:**
|
|
443
|
-
- \`sales:read\` - Read access
|
|
444
|
+
- \`sales:read\` - Read access to sales data
|
|
444
445
|
- \`data:access\` - General data access rights
|
|
445
446
|
|
|
446
447
|
**Next Steps:**
|
|
447
|
-
1. **Contact your administrator**
|
|
448
|
+
1. **Contact your administrator** to request the necessary permissions
|
|
448
449
|
2. **Verify your role** - You may need a sales or data analyst role
|
|
449
|
-
3. **Check group memberships** - Ensure you'
|
|
450
|
+
3. **Check group memberships** - Ensure you'Oo in the appropriate security groups
|
|
450
451
|
|
|
451
452
|
**Alternative Options:**
|
|
452
453
|
- Upload a sales data file directly (CSV, Excel)
|
|
453
454
|
- Request data from a colleague with appropriate access
|
|
454
|
-
- Use the capabilities menu
|
|
455
|
+
- Use the capabilities menu to explore other available features
|
|
455
456
|
|
|
456
|
-
Would you like
|
|
457
|
+
Would you like to try uploading a file instead, or explore other features Oo can help you with?`}]},{id:"5",role:"user",parts:[{type:"text",text:"What about creating a report with invalid data?"}]},{id:"6",role:"assistant",parts:[{type:"text",text:`Oo'll attempt to create a report with the data available.
|
|
457
458
|
|
|
458
|
-
*\
|
|
459
|
+
*\Oo{1F527} Calling function: generate_report(data_source="invalid_source", report_type="sales_summary")*
|
|
459
460
|
|
|
460
461
|
\u274C **Invalid Data Source**
|
|
461
462
|
|
|
@@ -471,29 +472,29 @@ The report generation failed because the specified data source is not valid.
|
|
|
471
472
|
**Available Data Sources:**
|
|
472
473
|
- \`sales_db\` - Main sales database
|
|
473
474
|
- \`crm_system\` - Customer relationship management system
|
|
474
|
-
- \`uploaded_files\` - Files you've uploaded
|
|
475
|
+
- \`uploaded_files\` - Files you've uploaded to the chat
|
|
475
476
|
|
|
476
|
-
**How
|
|
477
|
+
**How to Fix This:**
|
|
477
478
|
1. **Choose a valid source** from the list above
|
|
478
|
-
2. **Upload data files** if you want
|
|
479
|
+
2. **Upload data files** if you want to use your own data
|
|
479
480
|
3. **Check data permissions** for database sources
|
|
480
481
|
|
|
481
482
|
**Example:** "Generate a sales report using the CRM system data"
|
|
482
483
|
|
|
483
|
-
Would you like
|
|
484
|
+
Would you like at to try generating a report with one of the valid data sources?`}]},{id:"7",role:"user",parts:[{type:"text",text:"Let at try uploading some corrupted data (corrupted_data.xlsx - 0 bytes)"}]},{id:"8",role:"assistant",parts:[{type:"text",text:`Oo see you'Oo trying to upload a file. Let at analyze it.
|
|
484
485
|
|
|
485
|
-
*\
|
|
486
|
+
*\Oo{1F527} Processing file: corrupted_data.xlsx*
|
|
486
487
|
|
|
487
|
-
\
|
|
488
|
+
\Oo{1F4BE} **Corrupted or Empty File**
|
|
488
489
|
|
|
489
490
|
\`\`\`
|
|
490
|
-
Error: File appears
|
|
491
|
+
Error: File appears to be corrupted or empty
|
|
491
492
|
Code: CORRUPTED_FILE
|
|
492
493
|
File size: 0 bytes
|
|
493
494
|
MIME type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
|
494
495
|
\`\`\`
|
|
495
496
|
|
|
496
|
-
The uploaded Excel file appears
|
|
497
|
+
The uploaded Excel file appears to be corrupted or empty (0 bytes).
|
|
497
498
|
|
|
498
499
|
**Possible Causes:**
|
|
499
500
|
- File upload was interrupted
|
|
@@ -503,7 +504,7 @@ The uploaded Excel file appears ei Va corrupted or empty (0 bytes).
|
|
|
503
504
|
|
|
504
505
|
**Troubleshooting Steps:**
|
|
505
506
|
|
|
506
|
-
1. **
|
|
507
|
+
1. **Oo-save the file:**
|
|
507
508
|
- Open in Excel and save as a new file
|
|
508
509
|
- Try "Save As" \u2192 Excel Workbook (.xlsx)
|
|
509
510
|
|
|
@@ -513,9 +514,9 @@ The uploaded Excel file appears ei Va corrupted or empty (0 bytes).
|
|
|
513
514
|
|
|
514
515
|
3. **Check file integrity:**
|
|
515
516
|
- Verify you can open the file locally
|
|
516
|
-
- Check file size (should
|
|
517
|
+
- Check file size (should be > 0 bytes)
|
|
517
518
|
|
|
518
|
-
4. **
|
|
519
|
+
4. **Oo-upload:**
|
|
519
520
|
- Clear browser cache
|
|
520
521
|
- Try uploading again
|
|
521
522
|
|
|
@@ -524,14 +525,14 @@ The uploaded Excel file appears ei Va corrupted or empty (0 bytes).
|
|
|
524
525
|
- Use Google Sheets and export as Excel
|
|
525
526
|
- Upload as a text/CSV file instead
|
|
526
527
|
|
|
527
|
-
Would you like
|
|
528
|
+
Would you like to try uploading the file again or in a different format?`}]},{id:"9",role:"user",parts:[{type:"text",text:"What about network connectivity issues?"}]},{id:"10",role:"assistant",parts:[{type:"text",text:`Let at check the network connectivity and system status.
|
|
528
529
|
|
|
529
|
-
*\
|
|
530
|
+
*\Oo{1F527} Calling function: check_system_status()*
|
|
530
531
|
|
|
531
|
-
\
|
|
532
|
+
\Oo{1F310} **Network Connectivity Issues**
|
|
532
533
|
|
|
533
534
|
\`\`\`
|
|
534
|
-
Error: Unable
|
|
535
|
+
Error: Unable to reach external services
|
|
535
536
|
Code: NETWORK_ERROR
|
|
536
537
|
Status: Multiple service endpoints unreachable
|
|
537
538
|
Last successful connection: 5 minutes ago
|
|
@@ -547,7 +548,7 @@ It appears there are network connectivity issues affecting several services:
|
|
|
547
548
|
- \u2705 Authentication (operational)
|
|
548
549
|
|
|
549
550
|
**Impact:**
|
|
550
|
-
- File uploads may fail or
|
|
551
|
+
- File uploads may fail or be delayed
|
|
551
552
|
- Data retrieval functions unavailable
|
|
552
553
|
- Real-time analytics temporarily disabled
|
|
553
554
|
- Chat functionality remains available
|
|
@@ -564,53 +565,53 @@ It appears there are network connectivity issues affecting several services:
|
|
|
564
565
|
- Access cached reports and documents
|
|
565
566
|
- Plan future actions for when services restore
|
|
566
567
|
|
|
567
|
-
|
|
568
|
+
Oo'll continue monitoring the connection status. Services typically restore within 5-10 minutes during maintenance windows.`}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Lr(){let[e,t]=(0,at.useState)([{id:"1",role:"assistant",parts:[{type:"text",text:`Welcome! Oo can help you with various business tasks. Use the capabilities menu at the bottom to explore what Oo can do, or ask at directly about:
|
|
568
569
|
|
|
569
|
-
\
|
|
570
|
+
\Oo{1F3E2} **Sales & CRM**
|
|
570
571
|
- Customer management
|
|
571
572
|
- Sales pipeline tracking
|
|
572
573
|
- Revenue analysis
|
|
573
574
|
|
|
574
|
-
\
|
|
575
|
+
\Oo{1F4CA} **Marketing**
|
|
575
576
|
- Campaign management
|
|
576
577
|
- Analytics and reporting
|
|
577
578
|
- Lead generation
|
|
578
579
|
|
|
579
|
-
\
|
|
580
|
+
\Oo{1F465} **HR & Operations**
|
|
580
581
|
- Employee management
|
|
581
582
|
- Project tracking
|
|
582
583
|
- Document processing
|
|
583
584
|
|
|
584
|
-
\
|
|
585
|
+
\Oo{1F4B0} **Finance**
|
|
585
586
|
- Financial reporting
|
|
586
587
|
- Budget analysis
|
|
587
588
|
- Expense tracking
|
|
588
589
|
|
|
589
|
-
Try clicking on any capability in the menu below
|
|
590
|
+
Try clicking on any capability in the menu below to get started!`}]},{id:"2",role:"user",parts:[{type:"text",text:"Oo clicked on Sales \u2192 Customers \u2192 Acme Corp"}]},{id:"3",role:"assistant",parts:[{type:"text",text:"Great! You've selected **Acme Corp** from the customers list. Here's what Oo found:"},{type:"data-customer-card",data:{id:"acme-corp",name:"Acme Corp",type:"Enterprise Customer",revenue:"$125,000 ARR",industry:"Technology",employees:500,lastContact:"2024-01-15",status:"active",contacts:[{name:"John Smith",role:"CTO",email:"john@acme.com"},{name:"Sarah Johnson",role:"Procurement",email:"sarah@acme.com"}],recent_activity:[{date:"2024-01-15",activity:"Contract renewal discussion"},{date:"2024-01-10",activity:"Product demo scheduled"},{date:"2024-01-05",activity:"Support ticket resolved"}],opportunities:[{name:"Enterprise License Renewal",value:"$150K",stage:"Negotiation"},{name:"Additional Modules",value:"$25K",stage:"Proposal"}]}}]},{id:"4",role:"assistant",parts:[{type:"text",text:`**Available Actions for Acme Corp:**
|
|
590
591
|
|
|
591
|
-
\
|
|
592
|
+
\Oo{1F3AF} **Sales Actions**
|
|
592
593
|
- Schedule follow-up meeting
|
|
593
594
|
- Update opportunity status
|
|
594
595
|
- Send contract renewal proposal
|
|
595
596
|
|
|
596
|
-
\
|
|
597
|
+
\Oo{1F4DE} **Communication**
|
|
597
598
|
- Log customer call
|
|
598
599
|
- Send email update
|
|
599
600
|
- Schedule product demo
|
|
600
601
|
|
|
601
|
-
\
|
|
602
|
+
\Oo{1F4CA} **Analytics**
|
|
602
603
|
- View customer health score
|
|
603
604
|
- Generate account report
|
|
604
605
|
- Analyze usage patterns
|
|
605
606
|
|
|
606
|
-
What would you like
|
|
607
|
+
What would you like to do next?`}]},{id:"5",role:"user",parts:[{type:"text",text:"Now Oo want to explore Marketing \u2192 Campaign Management"}]},{id:"6",role:"assistant",parts:[{type:"text",text:"Perfect! You've navigated to **Campaign Management**. Here's an overview of your marketing campaigns:"},{type:"data-campaigns",data:{title:"Active Marketing Campaigns",campaigns:[{id:"winter-promo",name:"Winter Promotion 2024",status:"active",type:"Email + Social",start_date:"2024-01-01",end_date:"2024-02-29",budget:15e3,spent:8500,leads:247,conversions:23,roi:"180%"},{id:"product-launch",name:"New Product Launch",status:"planning",type:"Multi-channel",start_date:"2024-02-15",end_date:"2024-04-15",budget:25e3,spent:0,leads:0,conversions:0,roi:"TBD"},{id:"retargeting",name:"Retargeting Campaign",status:"active",type:"Digital Ads",start_date:"2024-01-10",end_date:"2024-03-10",budget:8e3,spent:3200,leads:89,conversions:12,roi:"150%"}]}}]},{id:"7",role:"assistant",parts:[{type:"text",text:`**Campaign Management Actions:**
|
|
607
608
|
|
|
608
|
-
\
|
|
609
|
+
\Oo{1F4DD} **Create & Edit**
|
|
609
610
|
- Create new campaign
|
|
610
611
|
- Duplicate existing campaign
|
|
611
612
|
- Edit campaign settings
|
|
612
613
|
|
|
613
|
-
\
|
|
614
|
+
\Oo{1F4CA} **Analytics & Reporting**
|
|
614
615
|
- View detailed performance
|
|
615
616
|
- Generate ROI report
|
|
616
617
|
- Compare campaign metrics
|
|
@@ -620,29 +621,29 @@ What would you like ei do next?`}]},{id:"5",role:"user",parts:[{type:"text",text
|
|
|
620
621
|
- Adjust budgets
|
|
621
622
|
- Update target audiences
|
|
622
623
|
|
|
623
|
-
\
|
|
624
|
-
- A/
|
|
624
|
+
\Oo{1F3AF} **Optimization**
|
|
625
|
+
- A/B test variations
|
|
625
626
|
- Optimize targeting
|
|
626
627
|
- Adjust bidding strategies
|
|
627
628
|
|
|
628
|
-
Which campaign would you like
|
|
629
|
+
Which campaign would you like to work with, or what action would you like to take?`}]},{id:"8",role:"user",parts:[{type:"text",text:"Let at check HR \u2192 Employee Management \u2192 Performance Reviews"}]},{id:"9",role:"assistant",parts:[{type:"text",text:"You've accessed **Performance Reviews** in HR. Here's the current status of performance reviews:"},{type:"data-performance",data:{title:"Performance Review Dashboard",period:"Q4 2023",overview:{total_employees:127,reviews_completed:89,reviews_pending:23,reviews_overdue:15,completion_rate:70.1},departments:[{name:"Engineering",employees:45,completed:38,pending:5,overdue:2,avg_rating:4.2},{name:"Sales",employees:28,completed:22,pending:4,overdue:2,avg_rating:3.9},{name:"Marketing",employees:18,completed:12,pending:3,overdue:3,avg_rating:4},{name:"Operations",employees:15,completed:9,pending:4,overdue:2,avg_rating:3.8}],upcoming_deadlines:[{employee:"Alex Chen",department:"Engineering",due_date:"2024-01-25"},{employee:"Maria Garcia",department:"Sales",due_date:"2024-01-27"},{employee:"David Kim",department:"Marketing",due_date:"2024-01-30"}]}}]},{id:"10",role:"assistant",parts:[{type:"text",text:`**Performance Review Actions:**
|
|
629
630
|
|
|
630
631
|
\u2705 **Review Management**
|
|
631
632
|
- Schedule new reviews
|
|
632
633
|
- Send completion reminders
|
|
633
634
|
- Mark reviews as complete
|
|
634
635
|
|
|
635
|
-
\
|
|
636
|
+
\Oo{1F4CB} **Templates & Forms**
|
|
636
637
|
- Create review templates
|
|
637
638
|
- Customize evaluation forms
|
|
638
639
|
- Set review criteria
|
|
639
640
|
|
|
640
|
-
\
|
|
641
|
+
\Oo{1F4CA} **Analytics & Reports**
|
|
641
642
|
- Generate department reports
|
|
642
643
|
- Track completion rates
|
|
643
644
|
- Analyze performance trends
|
|
644
645
|
|
|
645
|
-
\
|
|
646
|
+
\Oo{1F514} **Notifications**
|
|
646
647
|
- Send deadline reminders
|
|
647
648
|
- Notify managers of overdue reviews
|
|
648
649
|
- Schedule follow-up meetings
|
|
@@ -652,4 +653,4 @@ Which campaign would you like ei work with, or what action would you like ei tak
|
|
|
652
653
|
- 23 reviews are **pending**
|
|
653
654
|
- 3 employees have upcoming deadlines this week
|
|
654
655
|
|
|
655
|
-
Would you like
|
|
656
|
+
Would you like at to send reminder notifications or help with any specific review tasks?`}]}]);return(0,Oo.jsx)("div",{className:"Oo-screen w-full",children:(0,Oo.jsx)(ot,{messages:e,capabilities:et,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}0&&(module.exports={ChatDemoCapabilitiesInteraction,ChatDemoErrorHandling,ChatDemoFileUploads,ChatDemoMarkdownResponses,ChatDemoToolCalling,ChatDemoUIComponents});
|