cortex-react-components 2.26.5 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-O24GFE6Q.mjs → chunk-24R7CI5Q.mjs} +1 -1
- package/dist/{chunk-KBLVWXLK.mjs → chunk-27XIU7FW.mjs} +1 -1
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-RR4QSUV2.mjs → chunk-2IMY4VWR.mjs} +1 -1
- package/dist/{chunk-HTS3KCJL.mjs → chunk-2O54GV6Q.mjs} +1 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-2R3ECSWF.mjs} +1 -1
- package/dist/chunk-32G45Z2G.mjs +1 -0
- package/dist/{chunk-GAZHKHGB.mjs → chunk-43YJ2VYN.mjs} +1 -1
- package/dist/{chunk-GULRIPMU.mjs → chunk-4FEVXBNU.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-4ITG3T35.mjs} +1 -1
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-QUMUO63J.mjs → chunk-633ESSXN.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-6L7VJ7IH.mjs} +1 -1
- package/dist/chunk-6UULUGR2.mjs +1 -0
- package/dist/{chunk-JCWFPKF3.mjs → chunk-6VRPQKAK.mjs} +1 -1
- package/dist/{chunk-FMXCT6LU.mjs → chunk-75HU5Q6A.mjs} +1 -1
- package/dist/{chunk-BGQC6IQK.mjs → chunk-AMAB4E2X.mjs} +1 -1
- package/dist/{chunk-4SRUEQTP.mjs → chunk-B63FA7LF.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-F6DMXMR4.mjs → chunk-CXHPLJDO.mjs} +1 -1
- package/dist/{chunk-CDVRH3MC.mjs → chunk-D44OXIPN.mjs} +1 -1
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-D76LTQRD.mjs} +1 -1
- package/dist/chunk-DNMM3Q72.mjs +9 -0
- package/dist/{chunk-F64CA5CH.mjs → chunk-DTKZ3I6Z.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-FRYADWTQ.mjs} +1 -1
- package/dist/chunk-G3BOVXUM.mjs +4 -0
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-GRNOF6LY.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-GXVC6ETI.mjs} +1 -1
- package/dist/{chunk-IQQ7ZWCP.mjs → chunk-I6D5JCNY.mjs} +1 -1
- package/dist/{chunk-JVTCOOUV.mjs → chunk-I75OOO4H.mjs} +1 -1
- package/dist/{chunk-MO4HRQEL.mjs → chunk-IBC5Z55T.mjs} +1 -1
- package/dist/{chunk-KVLUT4U2.mjs → chunk-IFUIQ57U.mjs} +1 -1
- package/dist/chunk-IMRGPVFS.mjs +1 -0
- package/dist/{chunk-NXAQ6ESJ.mjs → chunk-JDIPWJBD.mjs} +1 -1
- package/dist/{chunk-R6AYIVIR.mjs → chunk-KAAHIHZK.mjs} +1 -1
- package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
- package/dist/{chunk-CKU2T3AN.mjs → chunk-LBVWIF2J.mjs} +1 -1
- package/dist/chunk-LEZ6G4X7.mjs +4 -0
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-LKUK55GC.mjs} +1 -1
- package/dist/{chunk-WLI2YTOQ.mjs → chunk-MDIJOHFV.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-MX6GXHJJ.mjs} +1 -1
- package/dist/{chunk-FEWOSBUJ.mjs → chunk-NJ7PW5T7.mjs} +1 -1
- package/dist/{chunk-EFNFK7TR.mjs → chunk-O3BCESMN.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-X2JWNPWT.mjs → chunk-O5QXPC23.mjs} +1 -1
- package/dist/{chunk-5EM6P7SU.mjs → chunk-OQBCIB4L.mjs} +1 -1
- package/dist/{chunk-GETYSIZV.mjs → chunk-ORODSHZN.mjs} +1 -1
- package/dist/{chunk-AN744MXS.mjs → chunk-OWL3KUE3.mjs} +1 -1
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-HD6E7KI2.mjs → chunk-RCI3L3M5.mjs} +1 -1
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/{chunk-5EKGFFJD.mjs → chunk-SADWUWLZ.mjs} +1 -1
- package/dist/{chunk-CMU5JFUC.mjs → chunk-SWE754OC.mjs} +1 -1
- package/dist/{chunk-BDDEMCAH.mjs → chunk-SZXMQMZ6.mjs} +1 -1
- package/dist/{chunk-7TSR2LQB.mjs → chunk-TIAA3ZN3.mjs} +1 -1
- package/dist/{chunk-RS4WAAGI.mjs → chunk-UBZYXZ7B.mjs} +1 -1
- package/dist/{chunk-6PS55VJZ.mjs → chunk-VDFRWGXR.mjs} +1 -1
- package/dist/chunk-VFIMFZX5.mjs +1 -0
- package/dist/{chunk-IO5ZSALG.mjs → chunk-VKCDLKYH.mjs} +1 -1
- package/dist/{chunk-M527EJIX.mjs → chunk-WBDSOPDY.mjs} +1 -1
- package/dist/{chunk-7OMPPFGG.mjs → chunk-WDRL3N5V.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-VTFO5GXK.mjs → chunk-XMYXQR5W.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-XQ3XV5DH.mjs} +1 -1
- package/dist/{chunk-3ANJOET7.mjs → chunk-XSCZQEYP.mjs} +1 -1
- package/dist/{chunk-AQQCH7Z2.mjs → chunk-XX4GSGRP.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-YG7SLO6G.mjs} +1 -1
- package/dist/chunk-YI6EQRWN.mjs +1 -0
- package/dist/{chunk-LLED3RQS.mjs → chunk-YPQUYIGO.mjs} +1 -1
- package/dist/{chunk-WH6JZSIA.mjs → chunk-YVXFRQPA.mjs} +1 -1
- package/dist/{chunk-ZG5N4C4S.mjs → chunk-ZA6MGTGM.mjs} +1 -1
- package/dist/chunk-ZLFZBT3K.mjs +1 -0
- package/dist/{chunk-HSQAHQNP.mjs → chunk-ZZFYIP6H.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.d.ts +1 -0
- package/dist/components/AdvancedComponents/index.js +12 -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/org-chart-component/CompanyNode.d.ts +7 -0
- package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +17 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +12 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.d.ts +3 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +9 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +19 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +12 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.js +233 -0
- package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.mjs +233 -0
- package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +6 -0
- package/dist/components/AdvancedComponents/org-chart-component/index.js +12 -0
- package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +9 -0
- package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/types/index.d.ts +33 -0
- package/dist/components/AdvancedComponents/org-chart-component/types/index.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/types.d.ts +42 -0
- package/dist/components/AdvancedComponents/org-chart-component/types.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/types.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +13 -0
- package/dist/components/AdvancedComponents/org-chart-component/utils.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/utils.mjs +1 -0
- 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/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/OrgChart.mjs +3 -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.d.ts +0 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +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.mjs +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.mjs +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 +10 -10
- 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.js +1 -1
- package/dist/components/Chat/Components/Message.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +6 -6
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
- package/dist/components/Chat/PartTypes/ColleagueHandoff.d.ts +18 -0
- package/dist/components/Chat/PartTypes/ColleagueHandoff.js +5 -0
- package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +2 -0
- package/dist/components/Chat/PartTypes/MessageHandler.js +6 -6
- 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.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.d.ts +1 -0
- package/dist/components/Chat/PartTypes/index.js +8 -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 +14 -14
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +42 -42
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +6 -6
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +7 -7
- 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 +6 -6
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.d.ts +0 -2
- package/dist/components/Chat/index.js +11 -14
- 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/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/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 +31 -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 +34 -26
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/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 +1 -1
- package/dist/chunk-53QLSQCO.mjs +0 -4
- package/dist/chunk-BAB3ATRB.mjs +0 -4
- package/dist/chunk-N7M6FTIO.mjs +0 -4
- package/dist/chunk-UTJZH3X5.mjs +0 -1
- package/dist/chunk-VATGKKXW.mjs +0 -1
- package/dist/components/Chat/ChatInterfaceMessages.d.ts +0 -24
- package/dist/components/Chat/ChatInterfaceMessages.js +0 -7
- package/dist/components/Chat/ChatInterfaceMessages.mjs +0 -2
- package/dist/components/Chat/ChatMessage.css +0 -1
- package/dist/components/Chat/ChatMessage.d.ts +0 -19
- package/dist/components/Chat/ChatMessage.js +0 -7
- package/dist/components/Chat/ChatMessage.mjs +0 -1
- /package/dist/components/Chat/{ChatInterfaceMessages.css → PartTypes/ColleagueHandoff.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as x}from"./chunk-
|
|
4
|
+
import{a as x}from"./chunk-AMAB4E2X.mjs";import{a as N}from"./chunk-LEF6M5ZD.mjs";import{a as f,b as y}from"./chunk-QY3UXH77.mjs";import{a as g}from"./chunk-RCI3L3M5.mjs";import{a as n}from"./chunk-R4SE63GR.mjs";import{a as b}from"./chunk-KPTGYVDM.mjs";import{a as u}from"./chunk-2O54GV6Q.mjs";import{a as r,b as h,d as v}from"./chunk-DXRAJQMA.mjs";import{a}from"./chunk-Z22NSJMF.mjs";import{useState as C}from"react";import{motion as G,AnimatePresence as Y}from"motion/react";import{Bot as z}from"lucide-react";import{jsx as e,jsxs as o}from"react/jsx-runtime";function K({title:k="Digital Colleagues",businessUnits:c,projects:m,fileCount:A,teamMemberCount:w,onCreateProject:P,onOpenProject:j,sidebarItems:W,initialColleagues:F,users:T,onColleagueAdd:S,onColleagueEdit:U,onColleagueDelete:I}){let[i,s]=C("home"),[l,O]=C(c[0]),d=t=>{console.log("Opening app:",t.name)},p=t=>{console.log("Favoriting app:",t.name)},B=t=>{console.log("Opening file:",t.name)},_=t=>{console.log("Sharing file:",t.name)},D=t=>{console.log("Opening project:",t.name),j(t)},R=t=>{console.log("Sharing project:",t.name)},L=t=>{O(t),console.log("Business unit changed to:",t.name)},E=()=>{console.log("Copilot clicked - navigating to chat"),s("chat")},H=t=>{console.log("Notification removed:",t)},M=()=>{console.log("All notifications removed")},V=()=>{switch(i){case"home":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[o("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",l.name," team"]}),e("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),o("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),e("p",{className:"text-3xl font-bold text-primary",children:m.length}),e("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),e("p",{className:"text-3xl font-bold text-primary",children:w}),e("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),e("p",{className:"text-3xl font-bold text-primary",children:A}),e("p",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),e(a,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Go",onClick:()=>s("chat")}})]});case"colleagues":return e(N,{initialColleagues:F,availableUsers:T,onColleagueAdd:S,onColleagueEdit:U,onColleagueDelete:I});case"chat":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[e("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),o("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",l.name," team members and collaborate in real-time."]})]}),e(a,{title:"Launch Full Chat Interface",description:"Access the complete chat experience with AI assistance.",gradient:"bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600",primaryAction:{label:"Open Chat",onClick:()=>console.log("Open full chat interface")}})]});case"apps":return o("div",{className:"space-y-8",children:[e(a,{title:"Creative Apps Collection",description:"Discover our full suite of professional design and creative applications.",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Install Desktop App",onClick:()=>console.log("Install desktop app clicked")}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"New Releases"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:r.filter(t=>t.new).map(t=>e(n,{app:t,showProgress:!0,onOpen:d,onFavorite:p},t.name))})]}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"All Apps"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:r.map(t=>e(n,{app:t,onOpen:d,onFavorite:p},t.name))})]})]});case"knowledge":return e(x,{});case"files":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(a,{title:"Your Creative Files",description:"Access, manage, and share all your design files in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Upload Files",onClick:()=>console.log("Upload files clicked")}}),o("section",{className:"space-y-4",children:[e("div",{className:"flex items-center justify-between",children:e("h2",{className:"text-2xl font-semibold",children:"All Files"})}),e(u,{files:h,onFileClick:B})]})]});case"projects":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(a,{title:"Project Management",description:"Organize your creative work into projects and collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:P}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),e("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:m.map(t=>e(b,{project:t,onOpen:D,onShare:R},t.name))})]})]});case"learn":return o("div",{className:"space-y-8",children:[e(a,{title:"Learn & Grow",description:"Expand your creative skills with tutorials, courses, and resources.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Upgrade to Pro",onClick:()=>console.log("Upgrade to pro clicked")}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),e("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:v.slice(0,3).map(t=>o("div",{className:"rounded-3xl border p-6",children:[e("h3",{className:"font-semibold mb-2",children:t.title}),e("p",{className:"text-sm text-muted-foreground mb-4",children:t.description}),o("div",{className:"flex items-center justify-between text-sm",children:[e("span",{children:t.duration}),e("span",{children:t.level})]})]},t.title))})]})]});default:return null}};return e(g,{sidebarItems:f,title:k,notifications:y,businessUnits:c,currentBusinessUnit:l,onBusinessUnitChange:L,activeTab:i,onTabChange:s,showTabs:!0,onActionClick:E,actionIcon:e(z,{className:"mr-2 h-4 w-4"}),actionText:"Start Chat",onNotificationRemove:H,onRemoveAll:M,children:e(Y,{mode:"wait",children:e(G.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:V()},i)})})}export{K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as
|
|
1
|
+
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-ORODSHZN.mjs";import{a as l}from"./chunk-YG7SLO6G.mjs";import{a as m}from"./chunk-MX6GXHJJ.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-LEZ6G4X7.mjs";import{a}from"./chunk-32G45Z2G.mjs";import{jsx as e,jsxs as c}from"react/jsx-runtime";var m=({users:o,onNodeClick:n,className:t="",expandable:d=!1,initiallyExpanded:l=!0,companyInfo:s,defaultExpandedLevels:p=2})=>{let r=a(o);return o.length===0?e("div",{className:`flex items-center justify-center p-8 ${t}`,children:e("div",{className:"text-center",children:e("p",{className:"text-muted-foreground",children:"No users to display"})})}):r.length===0?e("div",{className:`flex items-center justify-center p-8 ${t}`,children:c("div",{className:"text-center",children:[e("p",{className:"text-muted-foreground",children:"Unable to build organization tree"}),e("p",{className:"text-xs text-muted-foreground mt-1",children:"Check that manager relationships are properly configured"})]})}):e("div",{className:`org-chart w-full overflow-x-auto ${t}`,children:e("div",{className:"inline-block min-w-full p-8",children:e(i,{nodes:r,onNodeClick:n,expandable:d,initiallyExpanded:l,companyInfo:r.length>1?s:void 0,defaultExpandedLevels:p})})})},g=m;export{m as a,g as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d}from"./chunk-KPTGYVDM.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as d}from"./chunk-KPTGYVDM.mjs";import{a as p}from"./chunk-D44OXIPN.mjs";import{a as m}from"./chunk-Z22NSJMF.mjs";import{a as i,f as n,g as s,i as l,j as c}from"./chunk-3UMMMQEH.mjs";import{useState as u}from"react";import{motion as N,AnimatePresence as D}from"motion/react";import{jsx as e,jsxs as o}from"react/jsx-runtime";function C({projects:g=[],onAddProject:j,handleProjectOpen:P,handleProjectShare:y}){let[f,t]=u(!1),[b,r]=u(!1),v=async a=>{r(!0);try{await j(a),t(!1)}catch(w){console.error("Error creating project:",w)}finally{r(!1)}},h=()=>{t(!0)};return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(D,{mode:"wait",children:o(N.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[e(m,{title:"Project Management",description:"Organize your work into projects to collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:h}}),o("section",{className:"space-y-4 mt-8",children:[e("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),e("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:g.map(a=>e(d,{project:a,onOpen:P,onShare:y},a.id))})]})]},"projects-index-view")}),e(i,{open:f,onOpenChange:t,children:o(n,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[o(s,{className:"sr-only",children:[e(l,{children:"Create New Project"}),e(c,{children:"Fill out the form below to create a new project."})]}),e(p,{onSubmit:v,onCancel:()=>t(!1),isLoading:b,className:"border-0 shadow-none"})]})})]})}export{C as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppSidebar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-6SWKEZN6.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6SWKEZN6.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as CommentSection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-DFIXTV2M.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-DFIXTV2M.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as EditableField};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-CXHPLJDO.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-GLZEHRPY.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppHeader};
|
|
@@ -3,4 +3,15 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
'use client';
|
|
5
5
|
|
|
6
|
-
"use strict";var so=Object.create;var Ie=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var po=Object.getPrototypeOf,mo=Object.prototype.hasOwnProperty;var uo=(e,t)=>{for(var o in t)Ie(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of co(t))!mo.call(e,l)&&l!==o&&Ie(e,l,{get:()=>t[l],enumerable:!(i=lo(t,l))||i.enumerable});return e};var R=(e,t,o)=>(o=e!=null?so(po(e)):{},vt(t||!e||!e.__esModule?Ie(o,"default",{value:e,enumerable:!0}):o,e)),go=e=>vt(Ie({},"__esModule",{value:!0}),e);var ui={};uo(ui,{AppHeader:()=>mi,AppSidebar:()=>pi,CommentSection:()=>ri,EditableField:()=>ai,NavigationTabs:()=>rt,NotificationsPanel:()=>ft,Switch:()=>ei});module.exports=go(ui);var it=require("motion/react"),jt=require("lucide-react");var Rt=require("clsx");var et="-",fo=e=>{let t=ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{let a=n.split(et);return a[0]===""&&a.length!==1&&a.shift(),xt(a,t)||bo(n)},getConflictingClassGroupIds:(n,a)=>{let b=o[n]||[];return a&&i[n]?[...b,...i[n]]:b}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),l=i?xt(e.slice(1),i):void 0;if(l)return l;if(t.validators.length===0)return;let r=e.join(et);return t.validators.find(({validator:n})=>n(r))?.classGroupId},yt=/^\[(.+)\]$/,bo=e=>{if(yt.test(e)){let t=yt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ho=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return yo(Object.entries(e.classGroups),o).forEach(([r,n])=>{Ze(n,i,r,t)}),i},Ze=(e,t,o,i)=>{e.forEach(l=>{if(typeof l=="string"){let r=l===""?t:wt(t,l);r.classGroupId=o;return}if(typeof l=="function"){if(vo(l)){Ze(l(i),t,o,i);return}t.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([r,n])=>{Ze(n,wt(t,r),o,i)})})},wt=(e,t)=>{let o=e;return t.split(et).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},vo=e=>e.isThemeGetter,yo=(e,t)=>t?e.map(([o,i])=>{let l=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,a])=>[t+n,a])):r);return[o,l]}):e,wo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,l=(r,n)=>{o.set(r,n),t++,t>e&&(t=0,i=o,o=new Map)};return{get(r){let n=o.get(r);if(n!==void 0)return n;if((n=i.get(r))!==void 0)return l(r,n),n},set(r,n){o.has(r)?o.set(r,n):l(r,n)}}},Pt="!",xo=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,l=t[0],r=t.length,n=a=>{let b=[],m=0,w=0,T;for(let h=0;h<a.length;h++){let S=a[h];if(m===0){if(S===l&&(i||a.slice(h,h+r)===t)){b.push(a.slice(w,h)),w=h+r;continue}if(S==="/"){T=h;continue}}S==="["?m++:S==="]"&&m--}let k=b.length===0?a:a.substring(w),L=k.startsWith(Pt),y=L?k.substring(1):k,D=T&&T>w?T-w:void 0;return{modifiers:b,hasImportantModifier:L,baseClassName:y,maybePostfixModifierPosition:D}};return o?a=>o({className:a,parseClassName:n}):n},Po=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},No=e=>({cache:wo(e.cacheSize),parseClassName:xo(e),...fo(e)}),Co=/\s+/,ko=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:l}=t,r=[],n=e.trim().split(Co),a="";for(let b=n.length-1;b>=0;b-=1){let m=n[b],{modifiers:w,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:L}=o(m),y=!!L,D=i(y?k.substring(0,L):k);if(!D){if(!y){a=m+(a.length>0?" "+a:a);continue}if(D=i(k),!D){a=m+(a.length>0?" "+a:a);continue}y=!1}let h=Po(w).join(":"),S=T?h+Pt:h,E=S+D;if(r.includes(E))continue;r.push(E);let _=l(D,y);for(let V=0;V<_.length;++V){let oe=_[V];r.push(S+oe)}a=m+(a.length>0?" "+a:a)}return a};function Do(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nt(t))&&(i&&(i+=" "),i+=o);return i}var Nt=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=Nt(e[i]))&&(o&&(o+=" "),o+=t);return o};function Ro(e,...t){let o,i,l,r=n;function n(b){let m=t.reduce((w,T)=>T(w),e());return o=No(m),i=o.cache.get,l=o.cache.set,r=a,a(b)}function a(b){let m=i(b);if(m)return m;let w=ko(b,o);return l(b,w),w}return function(){return r(Do.apply(null,arguments))}}var N=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-z-]+):)?(.+)\]$/i,So=/^\Mt+\/\Mt+$/,Ao=new Set(["px","full","screen"]),To=/^(\Mt+(\.\Mt+)?)?(xs|sm|md|lg|xl)$/,Mo=/\Mt+(%|px|r?em|[sdl]?jt([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$/,Io=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zo=/^(inset_)?-?((\Mt+)?\.?(\Mt+)[a-z]+|0)_-?((\Mt+)?\.?(\Mt+)[a-z]+|0)/,Eo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>be(e)||Ao.has(e)||So.test(e),ie=e=>he(e,"length",Wo),be=e=>!!e&&!Number.isNaN(Number(e)),Ye=e=>he(e,"number",be),we=e=>!!e&&Number.isInteger(Number(e)),Lo=e=>e.endsWith("%")&&be(e.slice(0,-1)),u=e=>Ct.test(e),re=e=>To.test(e),Bo=new Set(["length","size","percentage"]),jo=e=>he(e,Bo,kt),Fo=e=>he(e,"position",kt),Uo=new Set(["image","url"]),Go=e=>he(e,Uo,Oo),Vo=e=>he(e,"",Ho),xe=()=>!0,he=(e,t,o)=>{let i=Ct.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Wo=e=>Mo.test(e)&&!Io.test(e),kt=()=>!1,Ho=e=>zo.test(e),Oo=e=>Eo.test(e);var _o=()=>{let e=N("colors"),t=N("spacing"),o=N("blur"),i=N("brightness"),l=N("borderColor"),r=N("borderRadius"),n=N("borderSpacing"),a=N("borderWidth"),b=N("contrast"),m=N("grayscale"),w=N("hueRotate"),T=N("invert"),k=N("gap"),L=N("gradientColorStops"),y=N("gradientColorStopPositions"),D=N("inset"),h=N("margin"),S=N("opacity"),E=N("padding"),_=N("saturate"),V=N("scale"),oe=N("sepia"),X=N("skew"),ge=N("space"),fe=N("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",u,t],x=()=>[u,t],Me=()=>["",Y,ie],me=()=>["auto",be,u],s=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],C=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",u],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[be,u];return{cacheSize:500,separator:":",theme:{colors:[xe],spacing:[Y,ie],blur:["none","",re,u],brightness:Q(),borderColor:[e],borderRadius:["none","","full",re,u],borderSpacing:x(),borderWidth:Me(),contrast:Q(),grayscale:U(),hueRotate:Q(),invert:U(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Lo,ie],inset:pe(),margin:pe(),opacity:Q(),padding:x(),saturate:Q(),scale:Q(),sepia:U(),skew:Q(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"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:[...s(),u]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",we,u]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",we,u]}],"grid-cols":[{"grid-cols":[xe]}],"col-start-end":[{col:["auto",{span:["full",we,u]},u]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[xe]}],"row-start-end":[{row:["auto",{span:[we,u]},u]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Mt:[{Mt:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ye]}],"font-family":[{font:[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",be,Ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,ie]}],"underline-offset":[{"underline-offset":["auto",Y,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...s(),Fo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[L]}],"gradient-via":[{via:[L]}],"gradient-to":[{to:[L]}],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-Mt":[{"rounded-Mt":[r]}],"rounded-ee":[{"rounded-ee":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:P()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[Y,u]}],"outline-w":[{outline:[Y,ie]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[Y,ie]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,Vo]}],"shadow-color":[{shadow:[xe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...C(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":C()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",re,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[_]}],sepia:[{sepia:[oe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[we,u]}],"translate-x":[{"translate-x":[fe]}],"translate-y":[{"translate-y":[fe]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Mt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-Mt":[{"scroll-Mt":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Y,ie,Ye]}],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"],Mt:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Mt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Mt","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Mt":["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 Dt=Ro(_o);function c(...e){return Dt((0,Rt.clsx)(e))}var St=require("@radix-ui/react-slot"),At=require("class-variance-authority"),Tt=R(require("react")),Mt=require("react/jsx-runtime"),Ko=(0,At.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),M=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...l},r)=>(0,Mt.jsx)(e?St.Slot:"button",{className:c(Ko({className:t,size:o,variant:i})),ref:r,...l}));M.displayName="Button";var ue=R(require("@radix-ui/react-tabs"));function It({className:e,...t}){return(0,Mt.jsx)(ue.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function zt({className:e,...t}){return(0,Mt.jsx)(ue.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Mt-[3px]",e),...t})}function Et({className:e,...t}){return(0,Mt.jsx)(ue.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Z=R(require("react")),f=R(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var Lt=f.Root,Bt=f.Trigger;var qo=Z.forwardRef(({className:e,inset:t,children:o,...i},l)=>(0,Mt.jsxs)(f.SubTrigger,{ref:l,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[o,(0,Mt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));qo.displayName=f.SubTrigger.displayName;var Jo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.SubContent,{ref:o,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-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}));Jo.displayName=f.SubContent.displayName;var tt=Z.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(f.Portal,{children:(0,Mt.jsx)(f.Content,{ref:i,sideOffset:t,className:c("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Mt-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})}));tt.displayName=f.Content.displayName;var ot=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Item,{ref:i,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ot.displayName=f.Item.displayName;var $o=Z.forwardRef(({className:e,children:t,checked:o,...i},l)=>(0,Mt.jsxs)(f.CheckboxItem,{ref:l,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...i,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));$o.displayName=f.CheckboxItem.displayName;var Xo=Z.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(f.RadioItem,{ref:i,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(f.ItemIndicator,{children:(0,Mt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=f.RadioItem.displayName;var Qo=Z.forwardRef(({className:e,inset:t,...o},i)=>(0,Mt.jsx)(f.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Qo.displayName=f.Label.displayName;var Yo=Z.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(f.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Yo.displayName=f.Separator.displayName;var Zo=({className:e,...t})=>(0,Mt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Zo.displayName="DropdownMenuShortcut";function rt({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:l="700px",gridCols:r=6}){let n=o.find(a=>a.value===e);return(0,Mt.jsxs)(it.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Mt.jsx)("div",{className:"hidden lg:block",children:(0,Mt.jsx)(It,{value:e,onValueChange:t,children:(0,Mt.jsx)(zt,{className:"grid w-full rounded-2xl Mt-0 h-10",style:{maxWidth:l,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Mt.jsx)(Et,{value:a.value,onClick:()=>t?.(a.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Mt.jsx)("div",{className:"lg:hidden",children:(0,Mt.jsxs)(Lt,{children:[(0,Mt.jsx)(Bt,{asChild:!0,children:(0,Mt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,Mt.jsx)(jt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Mt.jsx)(tt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Mt.jsx)(ot,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Ee=R(require("react")),Le=R(require("@radix-ui/react-switch"));function ei({className:e,onCheckedChange:t,checked:o,defaultChecked:i,...l}){let[r,n]=Ee.useState(!1),[a,b]=Ee.useState(!1),[m,w]=Ee.useState(i||!1),T=o!==void 0?o:m;return(0,Mt.jsx)(Le.Root,{"data-slot":"switch","data-pressed":r,checked:o,defaultChecked:i,onMouseDown:()=>{n(!0),b(!1)},onMouseUp:()=>{n(!1),b(!1)},onMouseLeave:()=>{r&&(n(!1),b(!0))},onCheckedChange:h=>{a||(o===void 0&&w(h),t?.(h))},className:c("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...l,children:(0,Mt.jsx)(Le.Thumb,{"data-slot":"switch-thumb","data-pressed":r,className:c("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Mt.jsx)(ti,{isChecked:T,isPressed:r})})})}var ti=({isChecked:e,isPressed:t})=>(0,Mt.jsxs)("svg",{viewBox:"0 0 20 20",className:c("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Mt.jsx)("rect",{x:"4",y:"8.5",height:"3",className:c("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var _t=require("react");var oi=(0,At.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 ne({className:e,variant:t,...o}){return(0,Mt.jsx)("div",{className:c(oi({variant:t}),e),...o})}var Be=R(require("react")),ee=R(require("@radix-ui/react-avatar"));var Pe=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Pe.displayName=ee.Root.displayName;var at=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));at.displayName=ee.Image.displayName;var Ne=Be.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ee.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=ee.Fallback.displayName;var Gt=R(require("react")),Ce=Gt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ce.displayName="Textarea";var Wt=R(require("react")),nt=R(require("@radix-ui/react-label"));var ii=(0,At.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ke=Wt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(nt.Root,{ref:o,className:c(ii(),e),...t}));ke.displayName=nt.Root.displayName;var ri=({comments:e,onAddComment:t})=>{let[o,i]=(0,_t.useState)(""),l=n=>n.split(" ").map(a=>a[0]).join("").toUpperCase(),r=()=>{o.trim()&&(t(o),i(""))};return(0,Mt.jsxs)("div",{className:"space-y-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.MessageSquare,{className:"h-5 w-5"}),(0,Mt.jsx)(ke,{className:"text-lg font-medium",children:"Comments"}),(0,Mt.jsx)(ne,{variant:"secondary",children:e.length})]}),(0,Mt.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,Mt.jsxs)("div",{className:"flex gap-3 Mt-3 bg-muted/50 rounded-lg",children:[(0,Mt.jsx)(Pe,{className:"h-8 w-8 mt-1",children:(0,Mt.jsx)(Ne,{className:"text-xs bg-muted text-muted-foreground",children:l(n.author)})}),(0,Mt.jsxs)("div",{className:"flex-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,Mt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,Mt.jsxs)("div",{className:"flex gap-2",children:[(0,Mt.jsx)(Ce,{value:o,onChange:n=>i(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Mt.jsx)(M,{onClick:r,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Mt.jsx)(jt.Send,{className:"h-4 w-4"})})]})]})};var Kt=R(require("react"));var De=Kt.forwardRef(({className:e,type:t,...o},i)=>(0,Mt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...o}));De.displayName="Input";var ai=({fieldName:e,value:t,label:o,multiline:i=!1,onSave:l,className:r="",disabled:n=!1})=>{let[a,b]=(0,_t.useState)(!1),[m,w]=(0,_t.useState)(""),T=()=>{n||(b(!0),w(t))},k=async()=>{m!==t&&await l(e,m),b(!1)},L=y=>{y.key==="Enter"&&!i||y.key==="Enter"&&y.ctrlKey&&i?k():y.key==="Escape"&&(b(!1),w(""))};return(0,Mt.jsxs)("div",{className:`space-y-2 ${r}`,children:[(0,Mt.jsx)(ke,{children:o}),a?i?(0,Mt.jsx)(Ce,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyDown:L,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(De,{value:m,onChange:y=>w(y.target.value),onBlur:k,onKeyPress:L,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:T,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Mt-2 rounded border border-transparent hover:border-border transition-colors group ${i?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Mt.jsx)("span",{className:i?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,Mt.jsx)(jt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ke=R(require("react")),qe=R(require("next/link"));var lt=R(require("react")),W=R(require("@radix-ui/react-scroll-area"));var ye=lt.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(W.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,Mt.jsx)(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Mt.jsx)($t,{}),(0,Mt.jsx)(W.Corner,{})]}));ye.displayName=W.Root.displayName;var $t=lt.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,Mt.jsx)(W.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Mt-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Mt-[1px]",e),...o,children:(0,Mt.jsx)(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$t.displayName=W.ScrollAreaScrollbar.displayName;var Re=R(require("react")),z=R(require("@radix-ui/react-dialog"));var Qt=z.Root;var ni=z.Portal;var Yt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Overlay,{ref:o,className:c("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Yt.displayName=z.Overlay.displayName;var ct=Re.forwardRef(({className:e,children:t,...o},i)=>(0,Mt.jsxs)(ni,{children:[(0,Mt.jsx)(Yt,{}),(0,Mt.jsxs)(z.Content,{ref:i,className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Mt-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,Mt.jsxs)(z.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,Mt.jsx)(jt.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ct.displayName=z.Content.displayName;var dt=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dt.displayName="DialogHeader";var si=({className:e,...t})=>(0,Mt.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});si.displayName="DialogFooter";var pt=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));pt.displayName=z.Title.displayName;var li=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(z.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));li.displayName=z.Description.displayName;var Se=R(require("@radix-ui/react-checkbox")),eo=R(require("react")),mt=eo.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(Se.Root,{className:c("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Mt.jsx)(Se.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,Mt.jsx)(jt.Check,{className:"h-4 w-4"})})}));mt.displayName=Se.Root.displayName;var J=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var oo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.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,Mt.jsx)(jt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],We=[{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 ut=[{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}],Ge=[{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}],Oe=[{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")}],ci=[...Oe,{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")}],di=[...We,{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}],Ve={projects:[{id:"1",name:"Empty Project",description:"Mt 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:[]},to={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:Oe.filter(e=>e.epicId==="1")};var cr={empty:{initialProjects:Ve.projects,initialEpics:Ve.epics,initialSprints:Ve.sprints,initialTasks:Ve.tasks},default:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:Oe},highDensity:{initialProjects:We,initialEpics:ut,initialSprints:Ge,initialTasks:ci},singleEpic:{initialProjects:We,initialEpics:to.epics,initialSprints:Ge,initialTasks:to.tasks},multipleProjects:{initialProjects:di,initialEpics:ut,initialSprints:Ge,initialTasks:Oe}},He=[{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(J),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(J),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(J),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(J),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(J),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(J),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(J),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(J),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(J),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(J),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],dr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:He.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:He.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:He.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 pr=He.filter(e=>e.type==="digital");function io(e,t){let[o,i]=(0,_t.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),l=r=>{try{i(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,_t.useEffect)(()=>{l(o)},[]),[o,l]}function pi({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:l=oo[0],onBusinessUnitChange:r,onSearch:n,className:a,logo:b="/headerlogo.png",logoLink:m="/teams",appName:w="Nuvia",tagline:T="Collaboration Platform"}){let[k,L]=Ke.useState({}),[y,D]=io("sidebar-favorites",{}),[h,S]=Ke.useState(null),[E,_]=Ke.useState(""),V=s=>{L(P=>({...P,[s]:!P[s]}))},oe=s=>{r?.(s)},X=()=>{E.trim()&&n?.(E.trim())},ge=s=>{s.key==="Enter"&&(s.preventDefault(),X())},fe=(s,P)=>{let C=y[s]||[],q=C.includes(P)?C.filter(U=>U!==P):C.concat(P);D({...y,[s]:q})},B=s=>{if(!s.items||!s.maxItems||s.items.length<=s.maxItems)return s.items||[];let P=y[s.id]||[],C=s.items.filter(U=>P.includes(U.id)),q=s.items.filter(U=>!P.includes(U.id));return[...C,...q].slice(0,s.maxItems)},K=s=>s.maxItems&&s.items&&s.items.length>s.maxItems,pe=e,x=s=>{let P=K(s),C=B(s),q=(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[s.icon,(0,Mt.jsx)("span",{children:s.title})]}),s.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:s.badge}),s.items&&(0,Mt.jsx)(jt.ChevronDown,{className:c("ml-2 h-4 w-4 transition-transform",k[s.title]?"rotate-180":"")})]}),U=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",s.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return s.url?(0,Mt.jsx)(qe.default,{href:s.url,className:U,onClick:o?i:void 0,children:q}):(0,Mt.jsx)("button",{className:U,onClick:()=>s.items&&V(s.title),children:q})},Me=()=>{let s=e.find(C=>C.id===h);if(!s||!s.items||!s.maxItems)return null;let P=y[s.id]||[];return(0,Mt.jsx)(Qt,{open:!!h,onOpenChange:C=>!C&&S(null),children:(0,Mt.jsxs)(ct,{className:"sm:max-w-md",children:[(0,Mt.jsxs)(dt,{children:[(0,Mt.jsxs)(pt,{children:["Manage ",s.title," Favorites"]}),(0,Mt.jsxs)("Mt",{className:"text-sm text-muted-foreground",children:["Select up to ",s.maxItems," items to show in ",s.title.toLowerCase(),"."]})]}),(0,Mt.jsx)(ye,{className:"max-h-96 pr-4",children:(0,Mt.jsx)("div",{className:"space-y-4",children:s.items.map(C=>(0,Mt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Mt.jsx)(mt,{id:C.id,checked:P.includes(C.id),onCheckedChange:()=>fe(s.id,C.id),disabled:!P.includes(C.id)&&P.length>=(s.maxItems||0)}),(0,Mt.jsxs)("label",{htmlFor:C.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:[C.title,C.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"text-xs",children:C.badge})]})]},C.id))})})]})})},me=(0,Mt.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between Mt-4",children:[(0,Mt.jsxs)(qe.default,{href:m,className:"flex items-center gap-3",children:[(0,Mt.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Mt.jsx)("img",{src:b,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold",children:w}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:T})]})]}),o&&(0,Mt.jsx)(M,{variant:"ghost",size:"icon",onClick:i,children:(0,Mt.jsx)(jt.X,{className:"h-5 w-5"})})]}),(0,Mt.jsx)("div",{className:"px-3 py-2",children:(0,Mt.jsxs)("div",{className:"relative",children:[(0,Mt.jsx)(jt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Mt.jsx)(De,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:E,onChange:s=>_(s.target.value),onKeyPress:ge})]})}),(0,Mt.jsx)(ye,{className:"flex-1 px-3 py-2",children:(0,Mt.jsx)("div",{className:"space-y-1",children:pe.map(s=>(0,Mt.jsxs)("div",{className:"mb-1",children:[x(s),s.items&&k[s.title]&&(0,Mt.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[B(s).map(P=>(0,Mt.jsxs)(qe.default,{href:P.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[P.title,P.badge&&(0,Mt.jsx)(ne,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:P.badge})]},P.id)),K(s)&&s.items&&s.items.length>B(s).length&&(0,Mt.jsxs)("button",{onClick:()=>S(s.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:["...",s.items.length-B(s).length," more available"]})]})]},s.id))})}),(0,Mt.jsx)("div",{className:"Mt-3",children:(0,Mt.jsx)("div",{className:"space-y-1",children:(0,Mt.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,Mt.jsx)(jt.Settings,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{children:"Settings"})]})})}),(0,Mt.jsx)(Me,{})]});return o?(0,Mt.jsx)("div",{className:c("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",a),children:me}):(0,Mt.jsx)("div",{className:c("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",a),children:me})}var ro=R(require("react")),O=R(require("@radix-ui/react-tooltip"));var Je=O.Provider,$e=O.Root,Xe=O.Trigger,Ae=ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,Mt.jsx)(O.Portal,{children:(0,Mt.jsx)(O.Content,{ref:i,sideOffset:t,className:c("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})}));Ae.displayName=O.Content.displayName;var ao=require("next-themes");function no(){let{setTheme:e,theme:t}=(0,ao.useTheme)();return(0,$.jsx)(Je,{children:(0,$.jsxs)($e,{children:[(0,$.jsx)(Xe,{asChild:!0,children:(0,$.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,$.jsx)(jt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,$.jsx)(jt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,$.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,$.jsx)(Ae,{children:"Toggle theme"})]})})}function ft({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:l,className:r}){let n=e.filter(m=>!m.read),a=n.length,b=m=>{switch(m){case"info":return(0,Mt.jsx)(jt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Mt.jsx)(jt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Mt.jsx)(jt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Mt.jsx)(it.AnimatePresence,{children:t&&(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(it.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,Mt.jsx)(it.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("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,Mt.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"}),(0,Mt.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Mt.jsxs)(ne,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Mt.jsx)(jt.X,{className:"h-5 w-5"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b Mt-2",children:[(0,Mt.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",onClick:l,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Mt.jsx)(ye,{className:"flex-1",children:(0,Mt.jsx)("div",{className:"divide-y",children:n.map(m=>(0,Mt.jsxs)("div",{className:c("flex gap-3 Mt-4 transition-colors bg-muted/50"),children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:b(m.type)}),(0,Mt.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("Mt",{className:"font-medium",children:m.title}),(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:m.time}),(0,Mt.jsx)(M,{variant:"ghost",size:"sm",className:"h-6 w-6 Mt-0",onClick:()=>i?.(m.id),title:"Dismiss",children:(0,Mt.jsx)(jt.Check,{className:"h-3 w-3"})})]})]}),(0,Mt.jsx)("Mt",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Mt.jsxs)(M,{variant:"link",size:"sm",className:"h-auto Mt-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Mt.jsx)(jt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Mt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Mt-8 text-center",children:[(0,Mt.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Mt.jsx)(jt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Mt.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Mt.jsx)("Mt",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function mi({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:l=!0,className:r,activeTab:n="assistant",onTabChange:a,showTabs:b=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:T=(0,Mt.jsx)(jt.Bot,{className:"mr-2 h-4 w-4"}),actionText:k="Action",onNotificationRemove:L,onRemoveAll:y,logo:D="/headerlogo.png",appName:h="Nuvia",tagline:S="Collaboration Platform"}){let[E,_]=(0,_t.useState)(!1),[V,oe]=(0,_t.useState)(t),X=V.filter(B=>!B.read).length,ge=B=>{oe(K=>K.filter(pe=>pe.id!==B)),L?.(B)},fe=()=>{oe(B=>B.filter(K=>K.read)),y?.()};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,Mt.jsx)(jt.Menu,{className:"h-5 w-5"})}),(0,Mt.jsx)(M,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Mt.jsx)(jt.PanelLeft,{className:"h-5 w-5"})}),!l&&(0,Mt.jsxs)(it.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Mt.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Mt.jsx)("img",{src:D,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Mt.jsxs)("div",{children:[(0,Mt.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Mt.jsx)("Mt",{className:"text-xs text-muted-foreground",children:S})]})]}),(0,Mt.jsxs)("div",{className:"flex flex-1 items-center",children:[b&&(0,Mt.jsx)(rt,{activeTab:n,onTabChange:a,tabOptions:m}),(0,Mt.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Mt.jsx)(it.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,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,k]})})}),(0,Mt.jsx)(no,{}),(0,Mt.jsx)(Je,{children:(0,Mt.jsxs)($e,{children:[(0,Mt.jsx)(Xe,{asChild:!0,children:(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(M,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>_(!0),children:[(0,Mt.jsx)(it.motion.div,{animate:X>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:X>0?1/0:0,repeatDelay:3},children:(0,Mt.jsx)(jt.Bell,{className:"h-5 w-5"})}),X>0&&(0,Mt.jsx)(it.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:X})]})})}),(0,Mt.jsx)(Ae,{children:"Notifications"})]})}),(0,Mt.jsx)(it.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Mt.jsxs)(Pe,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Mt.jsx)(at,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Mt.jsx)(Ne,{})]})})]})]})]}),(0,Mt.jsx)(ft,{notifications:V,open:E,onClose:()=>_(!1),onNotificationRemove:ge,onRemoveAll:fe})]})}0&&(module.exports={AppHeader,AppSidebar,CommentSection,EditableField,NavigationTabs,NotificationsPanel,Switch});
|
|
6
|
+
"use strict";var Co=Object.create;var Be=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var ko=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var So=(e,t)=>{for(var o in t)Be(e,o,{get:t[o],enumerable:!0})},Mt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ko(t))!Do.call(e,n)&&n!==o&&Be(e,n,{get:()=>t[n],enumerable:!(r=Po(t,n))||r.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Co(Ro(e)):{},Mt(t||!e||!e.__esModule?Be(o,"default",{value:e,enumerable:!0}):o,e)),To=e=>Mt(Be({},"__esModule",{value:!0}),e);var Sr={};So(Sr,{AppHeader:()=>Dr,AppSidebar:()=>Rr,CommentSection:()=>xr,CompanyNode:()=>it,EditableField:()=>yr,NavigationTabs:()=>pt,NotificationsPanel:()=>Ct,OrgChart:()=>No,OrgNode:()=>rt,OrgTree:()=>at,Switch:()=>fr,buildOrgTree:()=>kt,getInitials:()=>Rt,getRoleBadgeColor:()=>Dt,jobRoleLabels:()=>St});module.exports=To(Sr);var mt=require("motion/react"),Xt=require("lucide-react");var Ut=require("clsx");var lt="-",Ao=e=>{let t=Io(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let a=s.split(lt);return a[0]===""&&a.length!==1&&a.shift(),zt(a,t)||Mo(s)},getConflictingClassGroupIds:(s,a)=>{let g=o[s]||[];return a&&r[s]?[...g,...r[s]]:g}}},zt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?zt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(lt);return t.validators.find(({validator:s})=>s(i))?.classGroupId},It=/^\[(.+)\]$/,Mo=e=>{if(It.test(e)){let t=It.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Io=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return zo(Object.entries(e.classGroups),o).forEach(([i,s])=>{st(s,r,i,t)}),r},st=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Et(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Eo(n)){st(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,s])=>{st(s,Et(t,i),o,r)})})},Et=(e,t)=>{let o=e;return t.split(lt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Eo=e=>e.isThemeGetter,zo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[o,n]}):e,Lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return n(i,s),s},set(i,s){o.has(i)?o.set(i,s):n(i,s)}}},Lt="!",jo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,s=a=>{let g=[],m=0,w=0,k;for(let f=0;f<a.length;f++){let C=a[f];if(m===0){if(C===n&&(r||a.slice(f,f+i)===t)){g.push(a.slice(w,f)),w=f+i;continue}if(C==="/"){k=f;continue}}C==="["?m++:C==="]"&&m--}let y=g.length===0?a:a.substring(w),R=y.startsWith(Lt),x=R?y.substring(1):y,v=k&&k>w?k-w:void 0;return{modifiers:g,hasImportantModifier:R,baseClassName:x,maybePostfixModifierPosition:v}};return o?a=>o({className:a,parseClassName:s}):s},Bo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Oo=e=>({cache:Lo(e.cacheSize),parseClassName:jo(e),...Ao(e)}),Fo=/\s+/,Uo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],s=e.trim().split(Fo),a="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:k,baseClassName:y,maybePostfixModifierPosition:R}=o(m),x=!!R,v=r(x?y.substring(0,R):y);if(!v){if(!x){a=m+(a.length>0?" "+a:a);continue}if(v=r(y),!v){a=m+(a.length>0?" "+a:a);continue}x=!1}let f=Bo(w).join(":"),C=k?f+Lt:f,T=C+v;if(i.includes(T))continue;i.push(T);let G=n(v,x);for(let O=0;O<G.length;++O){let V=G[O];i.push(C+V)}a=m+(a.length>0?" "+a:a)}return a};function Wo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jt(t))&&(r&&(r+=" "),r+=o);return r}var jt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Go(e,...t){let o,r,n,i=s;function s(g){let m=t.reduce((w,k)=>k(w),e());return o=Oo(m),r=o.cache.get,n=o.cache.set,i=a,a(g)}function a(g){let m=r(g);if(m)return m;let w=Uo(g,o);return n(g,w),w}return function(){return i(Wo.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Bt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),$o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_o=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Ht|min|max))|\Ht(calc|min|max|clamp)\(.+\)|^0$/,Ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>we(e)||Ho.has(e)||Vo.test(e),se=e=>Ne(e,"length",rr),we=e=>!!e&&!Number.isNaN(Number(e)),nt=e=>Ne(e,"number",we),ke=e=>!!e&&Number.isInteger(Number(e)),Xo=e=>e.endsWith("%")&&we(e.slice(0,-1)),u=e=>Bt.test(e),le=e=>$o.test(e),Qo=new Set(["length","size","percentage"]),Yo=e=>Ne(e,Qo,Ot),Zo=e=>Ne(e,"position",Ot),er=new Set(["image","url"]),tr=e=>Ne(e,er,ar),or=e=>Ne(e,"",ir),Re=()=>!0,Ne=(e,t,o)=>{let r=Bt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},rr=e=>_o.test(e)&&!Ko.test(e),Ot=()=>!1,ir=e=>qo.test(e),ar=e=>Jo.test(e);var nr=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),r=S("brightness"),n=S("borderColor"),i=S("borderRadius"),s=S("borderSpacing"),a=S("borderWidth"),g=S("contrast"),m=S("grayscale"),w=S("hueRotate"),k=S("invert"),y=S("gap"),R=S("gradientColorStops"),x=S("gradientColorStopPositions"),v=S("inset"),f=S("margin"),C=S("opacity"),T=S("padding"),G=S("saturate"),O=S("scale"),V=S("sepia"),te=S("skew"),xe=S("space"),ye=S("translate"),F=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",u,t],P=()=>[u,t],je=()=>["",re,se],he=()=>["auto",we,u],l=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",u],At=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>[we,u];return{cacheSize:500,separator:":",theme:{colors:[Re],spacing:[re,se],blur:["none","",le,u],brightness:oe(),borderColor:[e],borderRadius:["none","","full",le,u],borderSpacing:P(),borderWidth:je(),contrast:oe(),grayscale:H(),hueRotate:oe(),invert:H(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Xo,se],inset:be(),margin:be(),opacity:oe(),padding:P(),saturate:oe(),scale:oe(),sepia:H(),skew:oe(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[le]}],"break-after":[{"break-after":At()}],"break-before":[{"break-before":At()}],"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:[...l(),u]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ke,u]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ke,u]}],"grid-cols":[{"grid-cols":[Re]}],"col-start-end":[{col:["auto",{span:["full",ke,u]},u]}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":[Re]}],"row-start-end":[{row:["auto",{span:[ke,u]},u]}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ht:[{Ht:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],Xt:[{Xt:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],Ht:[{Ht:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[le]},le]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",le,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nt]}],"font-family":[{font:[Re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",we,nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","Ht-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",re,se]}],"underline-offset":[{"underline-offset":["auto",re,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...l(),Zo]}],"bg-repeat":[{bg:["Ht-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ht","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Ht":[{"rounded-Ht":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-Ht":[{"rounded-Ht":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-Ht":[{"border-Ht":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:D()}],"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-Ht":[{"border-Ht":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[re,u]}],"outline-w":[{outline:[re,se]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[re,se]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",le,or]}],"shadow-color":[{shadow:[Re]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",le,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[k]}],saturate:[{saturate:[G]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[ke,u]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","Ht-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Ht-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Ht":[{"scroll-Ht":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-Ht":[{"scroll-Ht":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-Xt":[{"scroll-Xt":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[re,se,nt]}],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"],Ht:["px","py","ps","Xt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Ht","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-Ht","rounded-l","rounded-ss","rounded-se","rounded-Ht","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ht"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ht":["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-Ht","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ht"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ht","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ht"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Ht","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ht":["scroll-px","scroll-py","scroll-ps","scroll-Xt","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 Ft=Go(nr);function d(...e){return Ft((0,Ut.clsx)(e))}var Wt=require("@radix-ui/react-slot"),Gt=require("class-variance-authority"),Vt=I(require("react")),Ht=require("react/jsx-runtime"),sr=(0,Gt.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"}}}),z=Vt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,Ht.jsx)(e?Wt.Slot:"button",{className:d(sr({className:t,size:o,variant:r})),ref:i,...n}));z.displayName="Button";var ve=I(require("@radix-ui/react-tabs"));function $t({className:e,...t}){return(0,Ht.jsx)(ve.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function _t({className:e,...t}){return(0,Ht.jsx)(ve.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Ht-[3px]",e),...t})}function Kt({className:e,...t}){return(0,Ht.jsx)(ve.Trigger,{"data-slot":"tabs-trigger",className:d("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 ie=I(require("react")),h=I(require("@radix-ui/react-dropdown-menu")),Ce=require("@radix-ui/react-icons");var qt=h.Root,Jt=h.Trigger;var lr=ie.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Ht.jsxs)(h.SubTrigger,{ref:n,className:d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Ht.jsx)(Ce.ChevronRightIcon,{className:"ml-auto"})]}));lr.displayName=h.SubTrigger.displayName;var dr=ie.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(h.SubContent,{ref:o,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Ht-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}));dr.displayName=h.SubContent.displayName;var dt=ie.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(h.Portal,{children:(0,Ht.jsx)(h.Content,{ref:r,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Ht-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));dt.displayName=h.Content.displayName;var ct=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(h.Item,{ref:r,className:d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ct.displayName=h.Item.displayName;var cr=ie.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Ht.jsxs)(h.CheckboxItem,{ref:n,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Ht.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ht.jsx)(h.ItemIndicator,{children:(0,Ht.jsx)(Ce.CheckIcon,{className:"h-4 w-4"})})}),t]}));cr.displayName=h.CheckboxItem.displayName;var mr=ie.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(h.RadioItem,{ref:r,className:d("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,Ht.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ht.jsx)(h.ItemIndicator,{children:(0,Ht.jsx)(Ce.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));mr.displayName=h.RadioItem.displayName;var pr=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(h.Label,{ref:r,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));pr.displayName=h.Label.displayName;var ur=ie.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(h.Separator,{ref:o,className:d("-mx-1 my-1 h-px bg-muted",e),...t}));ur.displayName=h.Separator.displayName;var gr=({className:e,...t})=>(0,Ht.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});gr.displayName="DropdownMenuShortcut";function pt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:n="700px",gridCols:i=6}){let s=o.find(a=>a.value===e);return(0,Ht.jsxs)(mt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ht.jsx)("div",{className:"hidden lg:block",children:(0,Ht.jsx)($t,{value:e,onValueChange:t,children:(0,Ht.jsx)(_t,{className:"grid w-full rounded-2xl Ht-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ht.jsx)(Kt,{value:a.value,onClick:()=>t?.(a.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Ht.jsx)("div",{className:"lg:hidden",children:(0,Ht.jsxs)(qt,{children:[(0,Ht.jsx)(Jt,{asChild:!0,children:(0,Ht.jsxs)(z,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Ht.jsx)(Xt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Ht.jsx)(dt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Ht.jsx)(ct,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Fe=I(require("react")),Ue=I(require("@radix-ui/react-switch"));function fr({className:e,onCheckedChange:t,checked:o,defaultChecked:r,...n}){let[i,s]=Fe.useState(!1),[a,g]=Fe.useState(!1),[m,w]=Fe.useState(r||!1),k=o!==void 0?o:m;return(0,Ht.jsx)(Ue.Root,{"data-slot":"switch","data-pressed":i,checked:o,defaultChecked:r,onMouseDown:()=>{s(!0),g(!1)},onMouseUp:()=>{s(!1),g(!1)},onMouseLeave:()=>{i&&(s(!1),g(!0))},onCheckedChange:f=>{a||(o===void 0&&w(f),t?.(f))},className:d("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...n,children:(0,Ht.jsx)(Ue.Thumb,{"data-slot":"switch-thumb","data-pressed":i,className:d("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Ht.jsx)(br,{isChecked:k,isPressed:i})})})}var br=({isChecked:e,isPressed:t})=>(0,Ht.jsxs)("svg",{viewBox:"0 0 20 20",className:d("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Ht.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Ht.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var io=require("react");var hr=(0,Gt.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 ce({className:e,variant:t,...o}){return(0,Ht.jsx)("div",{className:d(hr({variant:t}),e),...o})}var We=I(require("react")),ae=I(require("@radix-ui/react-avatar"));var De=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));De.displayName=ae.Root.displayName;var ut=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));ut.displayName=ae.Image.displayName;var Se=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Se.displayName=ae.Fallback.displayName;var Zt=I(require("react")),Te=Zt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("textarea",{className:d("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Te.displayName="Textarea";var to=I(require("react")),gt=I(require("@radix-ui/react-label"));var vr=(0,Gt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ae=to.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(gt.Root,{ref:o,className:d(vr(),e),...t}));Ae.displayName=gt.Root.displayName;var xr=({comments:e,onAddComment:t})=>{let[o,r]=(0,io.useState)(""),n=s=>s.split(" ").map(a=>a[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Ht.jsxs)("div",{className:"space-y-4",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Xt.MessageSquare,{className:"h-5 w-5"}),(0,Ht.jsx)(Ae,{className:"text-lg font-medium",children:"Comments"}),(0,Ht.jsx)(ce,{variant:"secondary",children:e.length})]}),(0,Ht.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Ht.jsxs)("div",{className:"flex gap-3 Ht-3 bg-muted/50 rounded-lg",children:[(0,Ht.jsx)(De,{className:"h-8 w-8 mt-1",children:(0,Ht.jsx)(Se,{className:"text-xs bg-muted text-muted-foreground",children:n(s.author)})}),(0,Ht.jsxs)("div",{className:"flex-1",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ht.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Ht.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Ht.jsx)("Ht",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Ht.jsxs)("div",{className:"flex gap-2",children:[(0,Ht.jsx)(Te,{value:o,onChange:s=>r(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Ht.jsx)(z,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Ht.jsx)(Xt.Send,{className:"h-4 w-4"})})]})]})};var ao=I(require("react"));var Me=ao.forwardRef(({className:e,type:t,...o},r)=>(0,Ht.jsx)("input",{type:t,className:d("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Me.displayName="Input";var yr=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:i="",disabled:s=!1})=>{let[a,g]=(0,io.useState)(!1),[m,w]=(0,io.useState)(""),k=()=>{s||(g(!0),w(t))},y=async()=>{m!==t&&await n(e,m),g(!1)},R=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?y():x.key==="Escape"&&(g(!1),w(""))};return(0,Ht.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,Ht.jsx)(Ae,{children:o}),a?r?(0,Ht.jsx)(Te,{value:m,onChange:x=>w(x.target.value),onBlur:y,onKeyDown:R,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ht.jsx)(Me,{value:m,onChange:x=>w(x.target.value),onBlur:y,onKeyPress:R,autoFocus:!0,className:"text-lg font-medium"}):(0,Ht.jsxs)("div",{onClick:k,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Ht-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ht.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,Ht.jsx)(Xt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Qe=I(require("react")),Ye=I(require("next/link"));var bt=I(require("react")),_=I(require("@radix-ui/react-scroll-area"));var Pe=bt.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(_.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,Ht.jsx)(_.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ht.jsx)(lo,{}),(0,Ht.jsx)(_.Corner,{})]}));Pe.displayName=_.Root.displayName;var lo=bt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ht.jsx)(_.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ht-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ht-[1px]",e),...o,children:(0,Ht.jsx)(_.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));lo.displayName=_.ScrollAreaScrollbar.displayName;var Ie=I(require("react")),j=I(require("@radix-ui/react-dialog"));var mo=j.Root;var wr=j.Portal;var po=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Overlay,{ref:o,className:d("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}));po.displayName=j.Overlay.displayName;var ht=Ie.forwardRef(({className:e,children:t,...o},r)=>(0,$.jsxs)(wr,{children:[(0,$.jsx)(po,{}),(0,$.jsxs)(j.Content,{ref:r,className:d("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Ht-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,$.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,$.jsx)(Xt.X,{className:"h-4 w-4"}),(0,$.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ht.displayName=j.Content.displayName;var vt=({className:e,...t})=>(0,$.jsx)("div",{className:d("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});vt.displayName="DialogHeader";var Nr=({className:e,...t})=>(0,$.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Nr.displayName="DialogFooter";var xt=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));xt.displayName=j.Title.displayName;var Cr=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));Cr.displayName=j.Description.displayName;var Ee=I(require("@radix-ui/react-checkbox")),go=I(require("react")),yt=go.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(Ee.Root,{className:d("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Ht.jsx)(Ee.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,Ht.jsx)(Xt.Check,{className:"h-4 w-4"})})}));yt.displayName=Ee.Root.displayName;var Y=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var bo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.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,Ht.jsx)(Xt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ke=[{id:"1",name:"Ht-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 wt=[{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}],$e=[{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}],Je=[{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")}],Pr=[...Je,{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")}],kr=[...Ke,{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}],_e={projects:[{id:"1",name:"Empty Project",description:"Ht project with Ht 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:[]},fo={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:Je.filter(e=>e.epicId==="1")};var Pi={empty:{initialProjects:_e.projects,initialEpics:_e.epics,initialSprints:_e.sprints,initialTasks:_e.tasks},default:{initialProjects:Ke,initialEpics:wt,initialSprints:$e,initialTasks:Je},highDensity:{initialProjects:Ke,initialEpics:wt,initialSprints:$e,initialTasks:Pr},singleEpic:{initialProjects:Ke,initialEpics:fo.epics,initialSprints:$e,initialTasks:fo.tasks},multipleProjects:{initialProjects:kr,initialEpics:wt,initialSprints:$e,initialTasks:Je}},qe=[{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(Y),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Y),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(Y),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Y),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(Y),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Y),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(Y),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Y),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(Y),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Y),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],ki=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:qe.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:qe.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:qe.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 Ri=qe.filter(e=>e.type==="digital");function ho(e,t){let[o,r]=(0,io.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),n=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,io.useEffect)(()=>{n(o)},[]),[o,n]}function Rr({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:n=bo[0],onBusinessUnitChange:i,onSearch:s,className:a,logo:g="/headerlogo.png",logoLink:m="/teams",appName:w="Nuvia",tagline:k="Collaboration Platform"}){let[y,R]=Qe.useState({}),[x,v]=ho("sidebar-favorites",{}),[f,C]=Qe.useState(null),[T,G]=Qe.useState(""),O=l=>{R(D=>({...D,[l]:!D[l]}))},V=l=>{i?.(l)},te=()=>{T.trim()&&s?.(T.trim())},xe=l=>{l.key==="Enter"&&(l.preventDefault(),te())},ye=(l,D)=>{let M=x[l]||[],Q=M.includes(D)?M.filter(H=>H!==D):M.concat(D);v({...x,[l]:Q})},F=l=>{if(!l.items||!l.maxItems||l.items.length<=l.maxItems)return l.items||[];let D=x[l.id]||[],M=l.items.filter(H=>D.includes(H.id)),Q=l.items.filter(H=>!D.includes(H.id));return[...M,...Q].slice(0,l.maxItems)},X=l=>l.maxItems&&l.items&&l.items.length>l.maxItems,be=e,P=l=>{let D=X(l),M=F(l),Q=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ht.jsx)("span",{children:l.title})]}),l.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ht.jsx)(Xt.ChevronDown,{className:d("ml-2 h-4 w-4 transition-transform",y[l.title]?"rotate-180":"")})]}),H=d("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",l.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return l.url?(0,Ht.jsx)(Ye.default,{href:l.url,className:H,onClick:o?r:void 0,children:Q}):(0,Ht.jsx)("button",{className:H,onClick:()=>l.items&&O(l.title),children:Q})},je=()=>{let l=e.find(M=>M.id===f);if(!l||!l.items||!l.maxItems)return null;let D=x[l.id]||[];return(0,Ht.jsx)(mo,{open:!!f,onOpenChange:M=>!M&&C(null),children:(0,Ht.jsxs)(ht,{className:"sm:max-w-md",children:[(0,Ht.jsxs)(vt,{children:[(0,Ht.jsxs)(xt,{children:["Manage ",l.title," Favorites"]}),(0,Ht.jsxs)("Ht",{className:"text-sm text-muted-foreground",children:["Select up to ",l.maxItems," items to show in ",l.title.toLowerCase(),"."]})]}),(0,Ht.jsx)(Pe,{className:"max-h-96 pr-4",children:(0,Ht.jsx)("div",{className:"space-y-4",children:l.items.map(M=>(0,Ht.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ht.jsx)(yt,{id:M.id,checked:D.includes(M.id),onCheckedChange:()=>ye(l.id,M.id),disabled:!D.includes(M.id)&&D.length>=(l.maxItems||0)}),(0,Ht.jsxs)("label",{htmlFor:M.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:[M.title,M.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"text-xs",children:M.badge})]})]},M.id))})})]})})},he=(0,Ht.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between Ht-4",children:[(0,Ht.jsxs)(Ye.default,{href:m,className:"flex items-center gap-3",children:[(0,Ht.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Ht.jsx)("img",{src:g,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h2",{className:"font-semibold",children:w}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:k})]})]}),o&&(0,Ht.jsx)(z,{variant:"ghost",size:"icon",onClick:r,children:(0,Ht.jsx)(Xt.X,{className:"h-5 w-5"})})]}),(0,Ht.jsx)("div",{className:"px-3 py-2",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Xt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ht.jsx)(Me,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:T,onChange:l=>G(l.target.value),onKeyPress:xe})]})}),(0,Ht.jsx)(Pe,{className:"flex-1 px-3 py-2",children:(0,Ht.jsx)("div",{className:"space-y-1",children:be.map(l=>(0,Ht.jsxs)("div",{className:"mb-1",children:[P(l),l.items&&y[l.title]&&(0,Ht.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[F(l).map(D=>(0,Ht.jsxs)(Ye.default,{href:D.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[D.title,D.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:D.badge})]},D.id)),X(l)&&l.items&&l.items.length>F(l).length&&(0,Ht.jsxs)("button",{onClick:()=>C(l.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:["...",l.items.length-F(l).length," more available"]})]})]},l.id))})}),(0,Ht.jsx)("div",{className:"Ht-3",children:(0,Ht.jsx)("div",{className:"space-y-1",children:(0,Ht.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,Ht.jsx)(Xt.Settings,{className:"h-5 w-5"}),(0,Ht.jsx)("span",{children:"Settings"})]})})}),(0,Ht.jsx)(je,{})]});return o?(0,Ht.jsx)("div",{className:d("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",a),children:he}):(0,Ht.jsx)("div",{className:d("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",a),children:he})}var vo=I(require("react")),J=I(require("@radix-ui/react-tooltip"));var Ze=J.Provider,et=J.Root,tt=J.Trigger,ze=vo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(J.Portal,{children:(0,Ht.jsx)(J.Content,{ref:r,sideOffset:t,className:d("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})}));ze.displayName=J.Content.displayName;var xo=require("next-themes");function yo(){let{setTheme:e,theme:t}=(0,xo.useTheme)();return(0,Ht.jsx)(Ze,{children:(0,Ht.jsxs)(et,{children:[(0,Ht.jsx)(tt,{asChild:!0,children:(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ht.jsx)(Xt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ht.jsx)(Xt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ht.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ht.jsx)(ze,{children:"Toggle theme"})]})})}function Ct({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:n,className:i}){let s=e.filter(m=>!m.read),a=s.length,g=m=>{switch(m){case"info":return(0,Ht.jsx)(Xt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Ht.jsx)(Xt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Ht.jsx)(Xt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Ht.jsx)(Xt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Ht.jsx)(mt.AnimatePresence,{children:t&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(mt.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,Ht.jsx)(mt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Ht.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-Ht Ht-4",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Xt.Bell,{className:"h-5 w-5"}),(0,Ht.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Ht.jsxs)(ce,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Ht.jsx)(Xt.X,{className:"h-5 w-5"}),(0,Ht.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-Ht Ht-2",children:[(0,Ht.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Ht.jsx)(z,{variant:"ghost",size:"sm",onClick:n,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,Ht.jsx)(Pe,{className:"flex-1",children:(0,Ht.jsx)("div",{className:"divide-y",children:s.map(m=>(0,Ht.jsxs)("div",{className:d("flex gap-3 Ht-4 transition-colors bg-muted/50"),children:[(0,Ht.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,Ht.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ht.jsx)("Ht",{className:"font-medium",children:m.title}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:m.time}),(0,Ht.jsx)(z,{variant:"ghost",size:"sm",className:"h-6 w-6 Ht-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,Ht.jsx)(Xt.Check,{className:"h-3 w-3"})})]})]}),(0,Ht.jsx)("Ht",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Ht.jsxs)(z,{variant:"link",size:"sm",className:"h-auto Ht-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Ht.jsx)(Xt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Ht.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Ht-8 text-center",children:[(0,Ht.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Ht.jsx)(Xt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ht.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Ht.jsx)("Ht",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function Dr({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:n=!0,className:i,activeTab:s="assistant",onTabChange:a,showTabs:g=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:k=(0,Ht.jsx)(Xt.Bot,{className:"mr-2 h-4 w-4"}),actionText:y="Action",onNotificationRemove:R,onRemoveAll:x,logo:v="/headerlogo.png",appName:f="Nuvia",tagline:C="Collaboration Platform"}){let[T,G]=(0,io.useState)(!1),[O,V]=(0,io.useState)(t),te=O.filter(F=>!F.read).length,xe=F=>{V(X=>X.filter(be=>be.id!==F)),R?.(F)},ye=()=>{V(F=>F.filter(X=>X.read)),x?.()};return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Ht.jsx)(z,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,Ht.jsx)(Xt.Menu,{className:"h-5 w-5"})}),(0,Ht.jsx)(z,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Ht.jsx)(Xt.PanelLeft,{className:"h-5 w-5"})}),!n&&(0,Ht.jsxs)(mt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ht.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Ht.jsx)("img",{src:v,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h2",{className:"font-semibold text-sm",children:f}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:C})]})]}),(0,Ht.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,Ht.jsx)(pt,{activeTab:s,onTabChange:a,tabOptions:m}),(0,Ht.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ht.jsx)(mt.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,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(z,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[k,y]})})}),(0,Ht.jsx)(yo,{}),(0,Ht.jsx)(Ze,{children:(0,Ht.jsxs)(et,{children:[(0,Ht.jsx)(tt,{asChild:!0,children:(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>G(!0),children:[(0,Ht.jsx)(mt.motion.div,{animate:te>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:te>0?1/0:0,repeatDelay:3},children:(0,Ht.jsx)(Xt.Bell,{className:"h-5 w-5"})}),te>0&&(0,Ht.jsx)(mt.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:te})]})})}),(0,Ht.jsx)(ze,{children:"Notifications"})]})}),(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(De,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ht.jsx)(ut,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ht.jsx)(Se,{})]})})]})]})]}),(0,Ht.jsx)(Ct,{notifications:O,open:T,onClose:()=>G(!1),onNotificationRemove:xe,onRemoveAll:ye})]})}function kt(e){let t=new Map,o=[];e.forEach(n=>{t.set(n.id,{...n,children:[],level:0})}),e.forEach(n=>{let i=t.get(n.id);if(!i)return;let s=typeof n.manager=="string"?n.manager:n.manager?.id;if(s){let a=t.get(s);a?(a.children.push(i),i.level=a.level+1):o.push(i)}else o.push(i)});let r=(n,i)=>{n.level=i,n.children.forEach(s=>r(s,i+1))};return o.forEach(n=>r(n,0)),o}function Rt(e){if(!e)return"?";let t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function Dt(e){return e&&{P:"bg-primary/20 text-primary border-primary/30",SM:"bg-accent/20 text-accent border-accent/30",M:"bg-accent/15 text-accent border-accent/25",SC2:"bg-card text-card-foreground border-border",SC1:"bg-card text-card-foreground border-border",C3:"bg-muted text-muted-foreground border-border",C2:"bg-muted text-muted-foreground border-border",C1:"bg-muted text-muted-foreground border-border"}[e]||"bg-muted text-muted-foreground"}var St={P:"Partner",SM:"Senior Manager",M:"Manager",SC1:"Senior Consultant 1",SC2:"Senior Consultant 2",C1:"Consultant 1",C2:"Consultant 2",C3:"Consultant 3"};var rt=({node:e,onNodeClick:t,expandable:o=!1,isExpanded:r=!0,onToggleExpand:n})=>{let i=e.children.length>0,s=o&&i;return(0,Ht.jsx)("div",{className:"flex flex-col items-center",children:(0,Ht.jsxs)("div",{className:`
|
|
7
|
+
relative bg-card border border-border rounded-lg shadow-sm
|
|
8
|
+
transition-all duration-200 hover:shadow-md hover:border-primary/50
|
|
9
|
+
${t?"cursor-pointer":""}
|
|
10
|
+
w-64 Ht-4 min-h-[180px] flex flex-col
|
|
11
|
+
`,onClick:()=>t?.(e),children:[(0,Ht.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ht.jsx)("div",{className:"flex-shrink-0",children:e.profilePicture?.url?(0,Ht.jsx)("img",{src:e.profilePicture.url,alt:e.profilePicture.alt||e.name,className:"w-12 h-12 rounded-full object-cover border-2 border-primary/20"}):(0,Ht.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center",children:(0,Ht.jsx)("span",{className:"text-sm font-semibold text-primary",children:Rt(e.name)})})}),(0,Ht.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ht.jsx)("h3",{className:"font-semibold text-card-foreground text-sm truncate",children:e.name}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground truncate",children:e.email}),e.jobRole&&(0,Ht.jsx)("div",{className:"mt-2",children:(0,Ht.jsx)("span",{className:`
|
|
12
|
+
inline-block px-2 py-0.5 rounded text-xs font-medium border
|
|
13
|
+
${Dt(e.jobRole)}
|
|
14
|
+
`,children:St[e.jobRole]})})]})]}),(0,Ht.jsx)("div",{className:"mt-3 pt-3 border-t border-border flex-1 flex flex-col justify-start",children:e.about?(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground line-clamp-2",title:e.about.length>100?e.about:void 0,children:e.about}),e.about.length>100&&(0,Ht.jsx)("div",{className:"mt-1 text-xs text-muted-foreground/70 italic",children:"Hover to see full description"})]}):(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground/50 italic",children:"No description available"})}),s&&(0,Ht.jsx)("button",{onClick:a=>{a.stopPropagation(),n?.()},className:"absolute -bottom-3 left-1/2 -translate-x-1/2 w-6 h-6 rounded-full bg-card border-2 border-border hover:border-primary/50 flex items-center justify-center transition-colors z-30","aria-label":r?"Collapse":"Expand",children:(0,Ht.jsx)("svg",{className:`w-3 h-3 text-muted-foreground transition-transform ${r?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Ht.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})})};var it=({companyInfo:e})=>(0,Ht.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Ht.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center shadow-sm",children:e.logo?.url?(0,Ht.jsx)("img",{src:e.logo.url,alt:e.logo.alt||e.name,className:"w-12 h-12 rounded-full object-cover"}):(0,Ht.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center",children:(0,Ht.jsx)("span",{className:"text-xs font-bold text-primary",children:e.name.split(" ").map(t=>t[0]).join("").slice(0,3).toUpperCase()})})}),(0,Ht.jsx)("div",{className:"mt-2 text-center",children:(0,Ht.jsx)("Ht",{className:"text-sm font-semibold text-card-foreground",children:e.name})}),(0,Ht.jsx)("div",{className:"w-0.5 h-1 bg-border mt-2"})]});var wo=(e,t)=>({...e,level:e.level+t,children:e.children.map(o=>wo(o,t))}),at=({nodes:e,onNodeClick:t,expandable:o=!1,initiallyExpanded:r=!0,companyInfo:n,defaultExpandedLevels:i=2})=>{if(n&&e.length>1){let s=e.map(a=>({...a,level:a.level+1,children:a.children.map(g=>wo(g,1))}));return(0,Ht.jsx)(Tt,{node:{id:"company",name:n.name,email:"",children:s,level:0},onNodeClick:t,expandable:o,initiallyExpanded:r,isCompanyNode:!0,companyInfo:n,defaultExpandedLevels:i})}return(0,Ht.jsx)("div",{className:"flex flex-col items-center gap-0",children:e.map((s,a)=>(0,Ht.jsx)(Tt,{node:s,onNodeClick:t,expandable:o,initiallyExpanded:r,isLast:a===e.length-1,defaultExpandedLevels:i},s.id))})},Tt=({node:e,onNodeClick:t,expandable:o,initiallyExpanded:r=!0,isLast:n=!1,isCompanyNode:i=!1,companyInfo:s,defaultExpandedLevels:a=2})=>{let g=i||e.level<a,[m,w]=(0,io.useState)(g),k=e.children.length>0,y=(0,io.useRef)(null),[R,x]=(0,io.useState)({childPositions:[],containerWidth:0});return(0,io.useEffect)(()=>{if(!k||!m||!y.current){x({childPositions:[],containerWidth:0});return}let v=setTimeout(()=>{let f=y.current;if(!f)return;let C=Array.from(f.children);if(C.length===0)return;let T=f.getBoundingClientRect(),G=C.map(O=>{let V=O.getBoundingClientRect();return V.left+V.width/2-T.left});x({childPositions:G,containerWidth:T.width})},0);return()=>clearTimeout(v)},[k,m,e.children.length]),(0,io.useEffect)(()=>{if(!k||!m)return;let v=new ResizeObserver(()=>{if(!y.current)return;let f=y.current,C=Array.from(f.children);if(C.length===0)return;let T=f.getBoundingClientRect(),G=C.map(O=>{let V=O.getBoundingClientRect();return V.left+V.width/2-T.left});x({childPositions:G,containerWidth:T.width})});return y.current&&v.observe(y.current),()=>v.disconnect()},[k,m]),(0,Ht.jsxs)("div",{className:`flex flex-col items-center ${n?"":"mb-8"}`,children:[i&&s?(0,Ht.jsx)(it,{companyInfo:s}):(0,Ht.jsx)(rt,{node:e,onNodeClick:t,expandable:o,isExpanded:m,onToggleExpand:()=>w(!m)}),k&&m&&(0,Ht.jsxs)("div",{className:"relative",children:[e.children.length>1&&R.childPositions.length>0&&(0,Ht.jsxs)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 pointer-events-none z-10",children:[(0,Ht.jsx)("div",{className:"absolute top-0 left-0 w-0.5 h-8 bg-border -translate-x-1/2"}),(0,Ht.jsx)("div",{className:"absolute top-8 h-0.5 bg-border",style:{left:`${Math.min(...R.childPositions)-R.containerWidth/2}px`,width:`${Math.max(...R.childPositions)-Math.min(...R.childPositions)}px`}}),R.childPositions.map((v,f)=>(0,Ht.jsx)("div",{className:"absolute w-0.5 bg-border -translate-x-1/2",style:{left:`${v-R.containerWidth/2}px`,top:"32px",height:"32px"}},f))]}),e.children.length===1&&(0,Ht.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-0.5 h-16 bg-border pointer-events-none z-10"}),(0,Ht.jsx)("div",{className:"mt-16 w-full overflow-x-auto",children:(0,Ht.jsx)("div",{ref:y,className:`
|
|
15
|
+
flex gap-8 pb-4
|
|
16
|
+
${e.children.length===1?"justify-center":"justify-start min-w-max px-4"}
|
|
17
|
+
`,children:e.children.map(v=>(0,Ht.jsx)("div",{className:"flex-shrink-0",children:(0,Ht.jsx)(Tt,{node:v,onNodeClick:t,expandable:o,initiallyExpanded:r,defaultExpandedLevels:a})},v.id))})})]})]})};var No=({users:e,onNodeClick:t,className:o="",expandable:r=!1,initiallyExpanded:n=!0,companyInfo:i,defaultExpandedLevels:s=2})=>{let a=kt(e);return e.length===0?(0,Ht.jsx)("div",{className:`flex items-center justify-center Ht-8 ${o}`,children:(0,Ht.jsx)("div",{className:"text-center",children:(0,Ht.jsx)("Ht",{className:"text-muted-foreground",children:"No users to display"})})}):a.length===0?(0,Ht.jsx)("div",{className:`flex items-center justify-center Ht-8 ${o}`,children:(0,Ht.jsxs)("div",{className:"text-center",children:[(0,Ht.jsx)("Ht",{className:"text-muted-foreground",children:"Unable to build organization tree"}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground mt-1",children:"Check that manager relationships are properly configured"})]})}):(0,Ht.jsx)("div",{className:`org-chart w-full overflow-x-auto ${o}`,children:(0,Ht.jsx)("div",{className:"inline-block min-w-full Ht-8",children:(0,Ht.jsx)(at,{nodes:a,onNodeClick:t,expandable:r,initiallyExpanded:n,companyInfo:a.length>1?i:void 0,defaultExpandedLevels:s})})})};0&&(module.exports={AppHeader,AppSidebar,CommentSection,CompanyNode,EditableField,NavigationTabs,NotificationsPanel,OrgChart,OrgNode,OrgTree,Switch,buildOrgTree,getInitials,getRoleBadgeColor,jobRoleLabels});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as o}from"../../chunk-ZLFZBT3K.mjs";import{a as n}from"../../chunk-LEZ6G4X7.mjs";import{a as m}from"../../chunk-6UULUGR2.mjs";import{a as l}from"../../chunk-DNMM3Q72.mjs";import{a as k}from"../../chunk-VFIMFZX5.mjs";import{a as h,b as i,c as j}from"../../chunk-32G45Z2G.mjs";import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-CXHPLJDO.mjs";import"../../chunk-AZKOVKSK.mjs";import{a as c}from"../../chunk-GLZEHRPY.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{d as AppHeader,a as AppSidebar,f as CommentSection,m as CompanyNode,g as EditableField,c as NavigationTabs,b as NotificationsPanel,o as OrgChart,l as OrgNode,n as OrgTree,e as Switch,h as buildOrgTree,i as getInitials,j as getRoleBadgeColor,k as jobRoleLabels};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-GLZEHRPY.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-GLZEHRPY.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as NavigationTabs};
|