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
|
-
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-GRNOF6LY.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-FMJBJ3HN.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as N}from"./chunk-UENQZNU3.mjs";import{a as n}from"./chunk-R4SE63GR.mjs";import{a as
|
|
4
|
+
import{a as N}from"./chunk-UENQZNU3.mjs";import{a as n}from"./chunk-R4SE63GR.mjs";import{a as v}from"./chunk-KPTGYVDM.mjs";import{a as h}from"./chunk-2O54GV6Q.mjs";import{a as r,b as f,d as y}from"./chunk-DXRAJQMA.mjs";import{a}from"./chunk-Z22NSJMF.mjs";import{a as b}from"./chunk-UBZYXZ7B.mjs";import{a as g,b as u}from"./chunk-NPVUICIF.mjs";import{useState as x}from"react";import{motion as R,AnimatePresence as L}from"motion/react";import{Bot as E}from"lucide-react";import{jsx as e,jsxs as o}from"react/jsx-runtime";function H({title:C="Digital Colleagues",businessUnits:c,projects:m,fileCount:k,teamMemberCount:A,onCreateProject:w,onOpenProject:P,sidebarItems:M,initialColleagues:V,users:G,onColleagueAdd:Y,onColleagueEdit:z,onColleagueDelete:K}){let[i,s]=x("home"),[l,j]=x(c[0]),d=t=>{console.log("Opening app:",t.name)},p=t=>{console.log("Favoriting app:",t.name)},F=t=>{console.log("Opening file:",t.name)},W=t=>{console.log("Sharing file:",t.name)},S=t=>{console.log("Opening project:",t.name),P(t)},T=t=>{console.log("Sharing project:",t.name)},I=t=>{j(t),console.log("Business unit changed to:",t.name)},U=()=>{console.log("Copilot clicked - navigating to chat"),s("chat")},O=t=>{console.log("Notification removed:",t)},B=()=>{console.log("All notifications removed")},D=()=>{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:A}),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:k}),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("div",{children:e("h1",{children:"Colleagues"})});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(N,{});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(h,{files:f,onFileClick:F})]})]});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:w}}),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(v,{project:t,onOpen:S,onShare:T},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:y.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(b,{sidebarItems:g,title:C,notifications:u,businessUnits:c,currentBusinessUnit:l,onBusinessUnitChange:I,activeTab:i,onTabChange:s,showTabs:!0,onActionClick:U,actionIcon:e(E,{className:"mr-2 h-4 w-4"}),actionText:"Start Chat",onNotificationRemove:O,onRemoveAll:B,children:e(L,{mode:"wait",children:e(R.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:D()},i)})})}export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunk-TEB67NCD.mjs";import{a as r}from"./chunk-KFCSVEI6.mjs";import{Fragment as n}from"react";import{jsx as o}from"react/jsx-runtime";var y=e=>{let{className:a,htmlElement:t="div",resource:i}=e,s=typeof i=="object"&&i?.mimeType?.includes("video");return o(t||n,{...t!==null?{className:a}:{},children:s?o(r,{...e}):o(m,{...e})})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as u}from"./chunk-B4H6T2GP.mjs";import{a as m}from"./chunk-TVZOULLL.mjs";import{a as n}from"./chunk-INCYANPB.mjs";import{a as i}from"./chunk-L5JPAKPM.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{useState as l}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";function N({onSubmit:c}){let[e,r]=l({name:"",intro:"",active:!1});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(c({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerName",children:"Customer Name"}),o(i,{id:"customerName",value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerIntro",children:"Intro"}),o(u,{id:"customerIntro",value:e.intro??"",onChange:t=>r({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[o(n,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>r({...e,active:t})}),o(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),o(s,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{N as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as y}from"./chunk-
|
|
4
|
+
import{a as y}from"./chunk-OWL3KUE3.mjs";import{a as x,c as N,e as w,i as h}from"./chunk-3UMMMQEH.mjs";import{b as n}from"./chunk-ZUA4KNIR.mjs";import{a as p}from"./chunk-MDJREBVI.mjs";import{motion as b}from"motion/react";import{Trash2 as F,Edit as D}from"lucide-react";import*as C from"@radix-ui/react-dialog";import{Loader2 as L}from"lucide-react";import{useState as v}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var k=s=>{if(!s||s<=0)return"0 KB";let o=s/1024;return o<1024?`${o.toFixed(2)} KB`:`${(o/1024).toFixed(2)} MB`};function q({files:s,onFileClick:o,onFileDelete:m,onFileUpdate:z,showHeader:T=!0,className:P,viewMode:l="list"}){let[S,r]=v(!1),[B,g]=v(!1),[d,c]=v(null),u=()=>{r(!1),c(null)},E=()=>{g(!0),setTimeout(()=>{g(!1),r(!1),c(null)},500)},f=t=>{c(t),r(!0)};return a("div",{className:p("rounded-3xl border overflow-hidden",P),children:[a("div",{className:"bg-muted/50 p-3 flex items-center justify-between",children:[T&&l==="list"&&a("div",{className:"hidden md:grid md:grid-cols-10 text-sm font-medium flex-1",children:[e("div",{className:"col-span-6",children:"Name"}),e("div",{className:"col-span-2",children:"Size"}),e("div",{className:"col-span-2",children:"Modified"})]}),l==="card"&&e("div",{className:"text-sm font-medium",children:"Files"})]}),l==="list"&&e("div",{className:"divide-y",children:s.map(t=>a(b.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>o?.(t),children:[a("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[e("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),e("div",{children:e("p",{className:"font-medium",children:t.name})})]}),e("div",{className:"col-span-2 text-sm md:text-base",children:k(t.filesize)}),a("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[e("span",{className:"text-sm md:text-base",children:new Date(t.createdAt).toLocaleDateString()}),a("div",{className:"flex gap-1",children:[t.mimeType==="text/markdown"&&e(n,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),f(t)},children:e(D,{className:"h-4 w-4"})}),e(n,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),m?.(t)},children:e(F,{className:"h-4 w-4"})})]})]})]},t.name))}),l==="card"&&e("div",{className:"p-4 grid grid-cols-1 gap-4",children:s.map(t=>e(b.div,{whileHover:{scale:1.02},className:"border rounded-lg p-4 bg-card hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>o?.(t),children:a("div",{className:"flex items-start justify-between gap-4",children:[a("div",{className:"flex-1 min-w-0 space-y-2",children:[a("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted flex-shrink-0"}),e("div",{className:"min-w-0 flex-1",children:e("p",{className:"font-medium truncate",children:t.name})})]}),a("div",{className:"space-y-1 text-sm text-muted-foreground pl-[52px]",children:[a("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-medium",children:"Size:"}),e("span",{children:k(t.filesize)})]}),a("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-medium",children:"Modified:"}),e("span",{children:new Date(t.createdAt).toLocaleDateString()})]})]})]}),a("div",{className:"flex flex-col gap-2 flex-shrink-0",children:[t.mimeType==="text/markdown"&&e(n,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),f(t)},title:"Edit",children:e(D,{className:"h-4 w-4"})}),e(n,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),m?.(t)},title:"Delete",children:e(F,{className:"h-4 w-4"})})]})]})},t.name))}),e(x,{open:S,onOpenChange:t=>!t&&u(),children:a(N,{children:[e(w,{}),a(C.Content,{className:p("fixed inset-0 z-50 bg-background p-0 m-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:[e(h,{className:"sr-only",children:d?`Edit ${d.name}`:"Edit File"}),B&&e("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center z-50",children:e(L,{className:"h-8 w-8 animate-spin text-primary"})}),d&&e(y,{document:d,onSave:E,onFileUpdate:z,onCancel:u})]})]})})]})}export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-4ITG3T35.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function c(t){let e=new Map,n=[];t.forEach(r=>{e.set(r.id,{...r,children:[],level:0})}),t.forEach(r=>{let o=e.get(r.id);if(!o)return;let d=typeof r.manager=="string"?r.manager:r.manager?.id;if(d){let g=e.get(d);g?(g.children.push(o),o.level=g.level+1):n.push(o)}else n.push(o)});let a=(r,o)=>{r.level=o,r.children.forEach(d=>a(d,o+1))};return n.forEach(r=>a(r,0)),n}function i(t){if(!t)return"?";let e=t.trim().split(/\s+/);return e.length===1?e[0].substring(0,2).toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase()}function s(t){return t&&{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"}[t]||"bg-muted text-muted-foreground"}export{c as a,i as b,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-GRNOF6LY.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as E,c as S}from"./chunk-RKS7CWAP.mjs";import{a as U}from"./chunk-IPRG56MW.mjs";import{a as j,b as B,c as J,d as z,e as G}from"./chunk-HFEN3KJC.mjs";import{a as $}from"./chunk-L2UJOICL.mjs";import{a as L}from"./chunk-T3F3RQIC.mjs";import{a as P}from"./chunk-UP67R64J.mjs";import{a as F}from"./chunk-6QERRKM4.mjs";import{a as H}from"./chunk-VSU7LYXZ.mjs";import{
|
|
1
|
+
import{b as E,c as S}from"./chunk-RKS7CWAP.mjs";import{b as _}from"./chunk-BZEGLKRZ.mjs";import{a as U}from"./chunk-IPRG56MW.mjs";import{a as j,b as B,c as J,d as z,e as G}from"./chunk-HFEN3KJC.mjs";import{a as $}from"./chunk-L2UJOICL.mjs";import{a as L}from"./chunk-T3F3RQIC.mjs";import{a as P}from"./chunk-UP67R64J.mjs";import{a as F}from"./chunk-6QERRKM4.mjs";import{a as H}from"./chunk-VSU7LYXZ.mjs";import{a as f,b as p,i as u,j as g}from"./chunk-OCPX4QPC.mjs";import{a as I,b as A,c as R,d as O}from"./chunk-KY7WQYN4.mjs";import{a as y}from"./chunk-MDJREBVI.mjs";import{useLexicalComposerContext as he}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{$insertNodeToNearestRoot as Ce,mergeRegister as X}from"@payloadcms/richtext-lexical/lexical/utils";import{$createParagraphNode as ke,$getPreviousSelection as ve,$getRoot as Ne,$getSelection as k,$isParagraphNode as Y,$isRangeSelection as v,CAN_REDO_COMMAND as Te,CAN_UNDO_COMMAND as De,COMMAND_PRIORITY_EDITOR as Me,FORMAT_ELEMENT_COMMAND as m,FORMAT_TEXT_COMMAND as c,SELECTION_CHANGE_COMMAND as xe,UNDO_COMMAND as q}from"@payloadcms/richtext-lexical/lexical";import{$setBlocksType as K}from"@payloadcms/richtext-lexical/lexical/selection";import{INSERT_ORDERED_LIST_COMMAND as we,INSERT_UNORDERED_LIST_COMMAND as ye}from"@payloadcms/richtext-lexical/lexical/list";import{AlignCenter as Ie,AlignJustify as Ae,AlignLeft as Re,AlignRight as Oe,ChevronDown as N,ImageUp as _e,List as Ee,ListOrdered as Se,Plus as Ue,RotateCcw as $e,RotateCw as He}from"lucide-react";import{Fragment as Le,useCallback as Pe,useEffect as Fe,useRef as je,useState as s}from"react";import{$createHeadingNode as Be}from"@payloadcms/richtext-lexical/lexical/rich-text";import{jsx as o,jsxs as a}from"react/jsx-runtime";var T=1;function Je(){return o("span",{className:"border border-[#222222]"})}function ze(){let[t]=he(),Q=je(null),[V,W]=s(!1),[Z,ee]=s(!1),[oe,te]=s(!1),[ie,ne]=s(!1),[ae,se]=s(!1),[re,ce]=s(!1),[le,de]=s(!1),[fe,pe]=s(!1),[D,M]=s(!1),[x,ue]=s("left"),[w,ge]=s("p"),l=e=>{t.update(()=>{let i=k();v(i)&&(e==="p"?K(i,()=>ke()):K(i,()=>Be(e)))})},b=Pe(()=>{let e=k();if(v(e)){te(e.hasFormat("bold")),ne(e.hasFormat("italic")),se(e.hasFormat("underline")),ce(e.hasFormat("strikethrough")),de(e.hasFormat("subscript")),pe(e.hasFormat("superscript"));let i=e.anchor.getNode(),n=i;for(;n&&!Y(n)&&n!==Ne();){let r=n.getParent();r&&(n=r)}if(n){let r=n.getFormatType();ue(r||"left")}let d=i.getTopLevelElement()?.__tag;ge(d||"p")}},[]);Fe(()=>X(t.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),t.registerCommand(xe,(e,i)=>(b(),!1),T),t.registerCommand(De,e=>(W(e),!1),T),t.registerCommand(Te,e=>(ee(e),!1),T),X(t.registerCommand(E,e=>(t.update(()=>{let i=k()||ve();if(v(i)){let n=_({id:e.id,fields:e.fields,relationTo:e.relationTo,value:e.value}),{focus:d}=i,r=d.getNode();Ce(n),Y(r)&&!r.__first&&r.remove()}}),!0),Me))),[t,b]);let me=[[{label:"Undo",icon:o($e,{width:15,height:15}),onClick:()=>{t.dispatchCommand(q,void 0)},disabled:!V},{label:"Redo",icon:o(He,{width:15,height:15}),onClick:()=>{t.dispatchCommand(q,void 0)},disabled:!Z}],[{label:"Bold",icon:o(U,{}),onClick:()=>{t.dispatchCommand(c,"bold")},value:"bold",active:oe},{label:"Italic",icon:o($,{}),onClick:()=>{t.dispatchCommand(c,"italic")},value:"italic",active:ie},{label:"Underline",icon:o(H,{}),onClick:()=>{t.dispatchCommand(c,"underline")},value:"underline",active:ae},{label:"Strikethrough",icon:o(L,{}),onClick:()=>{t.dispatchCommand(c,"strikethrough")},value:"strikethrough",active:re},{label:"Subscript",icon:o(P,{}),onClick:()=>{t.dispatchCommand(c,"subscript")},value:"subscript",active:le},{label:"Superscript",icon:o(F,{}),onClick:()=>{t.dispatchCommand(c,"superscript")},value:"superscript",active:fe}]],h=[{label:"Left Align",direction:"left",icon:o(Re,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"left")}},{label:"Center Align",direction:"center",icon:o(Ie,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"center")}},{label:"Right Align",direction:"right",icon:o(Oe,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"right")}},{label:"Justify Align",direction:"justify",icon:o(Ae,{width:15,height:15}),onClick:()=>{t.dispatchCommand(m,"justify")}}],C=[{label:"Normal Text",value:"p",icon:o(j,{}),onClick:()=>l("p")},{label:"Heading 1",value:"h1",icon:o(B,{}),onClick:()=>l("h1")},{label:"Heading 2",value:"h2",icon:o(J,{}),onClick:()=>l("h2")},{label:"Heading 3",value:"h3",icon:o(z,{}),onClick:()=>l("h3")},{label:"Heading 4",value:"h4",icon:o(G,{}),onClick:()=>l("h4")},...[{label:"Unordered List",value:"ul",icon:o(Ee,{width:15,height:15}),onClick:()=>{t.dispatchCommand(ye,void 0)}},{label:"Ordered List",value:"ol",icon:o(Se,{width:15,height:15}),onClick:()=>{t.dispatchCommand(we,void 0)}}]],be=[{label:"Insert Image",icon:o(_e,{width:15,height:15}),onClick:()=>{M(!0)},disabled:!1}];return o("div",{className:"flex justify-between border border-[#222222] py-2 px-2 sticky top-0 bg-black z-50",children:a("div",{className:"flex gap-2 ",ref:Q,children:[me.map((e,i)=>a(Le,{children:[o("div",{className:"flex items-center gap-2",children:e.map((n,d)=>o("div",{role:"button","aria-disabled":n.disabled||!1,onClick:n.onClick,className:y("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",n.active&&"bg-[#3c3c3c]"),"aria-label":n.label,children:o(I,{children:a(A,{children:[o(R,{className:"text-[#b5b5b5]",children:n.icon}),o(O,{children:o("p",{children:n.label})})]})})},d))}),o(Je,{})]},`toolbar-option-${e.length}-${i}`)),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[h.find(e=>e.direction===x)?.icon,h.find(e=>e.direction===x)?.label,o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:h.map((e,i)=>a(g,{onClick:e.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},`${e.label}-${i}`))})]}),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[C.find(e=>e.value===w)?.icon,C.find(e=>e.value===w)?.label,o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:C.map((e,i)=>a(g,{onClick:e.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},`heading-option-${e.label}-${i}`))})]}),a(f,{children:[a(p,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[o(Ue,{width:15,height:15}),o(N,{width:15,height:15})]}),o(u,{className:"bg-black hover:bg-black",children:be.map((e,i)=>a(g,{onClick:e.onClick,disabled:e.disabled,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[o("span",{children:e.icon}),o("span",{children:e.label})]},i))})]}),D&&o(S,{activeEditor:t,onClose:()=>{M(!1)},isOpen:D})]})})}export{ze as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-2QZUKVBA.mjs";import{a as T}from"./chunk-SRUG246N.mjs";import{a as R}from"./chunk-VNYUNZ3M.mjs";import{a as S}from"./chunk-UZSBX5GO.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
4
|
+
import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-2QZUKVBA.mjs";import{a as S}from"./chunk-X3JZSN3W.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{a as R}from"./chunk-XGIYNUGC.mjs";import{a as T}from"./chunk-SRUG246N.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
4
|
+
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-O5P35LEY.mjs";import{a as n}from"./chunk-7GSXNSLD.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:l,secondaryNav:s,title:o,subTitle:a,pathName:b,menuHeading:i,onNavClick:d,loading:p=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):d?({href:t,children:m,...I})=>e("button",{onClick:()=>d&&d(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return r(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:p?r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:o}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),p&&r(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),r(S,{children:[l&&!p&&l.map((t,m)=>e(G,{subNav:t,pathName:b,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:s&&!p&&s.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:r(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:l,pathName:s,Link:o}){let a=l,b=!1;return a.links&&a.links.map(i=>{i.url===s&&(b=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:r(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(b&&"font-bold text-accent"),children:r(o,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),a.links?.length?r(H,{children:[e(N,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:a.links?.map(i=>e(B,{children:e(L,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(o,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},a.label)})})})}export{J as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as b}from"./chunk-
|
|
4
|
+
import{a as b}from"./chunk-UBZYXZ7B.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-IMRGPVFS.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as l}from"react";import{motion as fe,AnimatePresence as he}from"motion/react";import{Users as ye}from"lucide-react";import{jsx as n,jsxs as Ce}from"react/jsx-runtime";function Le({aiConfig:w,useCustomChat:F,enableAI:T=!0,messages:D=[],businessUnits:R=[],capabilities:B=[],sidebarItems:x=[],notifications:N=[],sessions:M=[],onNewChat:A,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=p=>console.log("Search query:",p),initialTeam:z="design",currentSession:m=null,showCapabilities:ve=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=n(ye,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let p={...w,onError:e=>{i?.setMessages(t=>[...t,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:e.message}]}]),console.error("Error in CopilotInterface:",e)}},Y=me(p||{}),i=T?F||Y:null,[Z,u]=l(""),[_,C]=l(!1),j=i?.messages||D,r=Z,ee=i?.status==="submitted"||_,se=i?.addToolResult?(e,t,s)=>{i.addToolResult({tool:t,toolCallId:e,output:s}),console.log("Tool result added:",{toolCallId:e,tool:t,output:s}),i.sendMessage()}:()=>{console.log("addToolResult not available")},o=R||[],te={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ie,ne]=l(()=>o.length===0?te:o.find(e=>e.id===z)||o[0]),[a,c]=l([]),[oe,ae]=l(!1),le=e=>{if(!e||!f)return;let t=[];Array.from(e).forEach(s=>{if(s.size>h*1024*1024){alert(`File ${s.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(d=>s.type.match(d))){alert(`File type ${s.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:s,status:"pending",progress:0};if(s.type.startsWith("image/")){let d=new FileReader;d.onload=ue=>{c(ge=>ge.map(g=>g.id===U.id?{...g,preview:ue.target?.result}:g))},d.readAsDataURL(s)}t.push(U)}),c(s=>[...s,...t])},re=e=>{c(t=>t.filter(s=>s.id!==e))},v=()=>{if(!(!r.trim()&&a.length===0)){if(i){let e=a.length>0?ce(a.map(t=>t.file)):void 0;i.sendMessage({text:r,files:e},{body:{timestamp:Date.now()}}),u("")}else console.log("Message to send:",r),console.log("Files to upload:",a),u(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},ce=e=>{let t=new DataTransfer;return e.forEach(s=>t.items.add(s)),t.files},de=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),v())},pe=e=>{u(e)};return n(b,{sidebarItems:x||[],title:W,notifications:N||[],businessUnits:o,currentBusinessUnit:ie,onBusinessUnitChange:e=>{e&&(ne(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:n(he,{mode:"wait",children:n(fe.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:Ce("div",{className:"h-full flex",children:[n("div",{className:"w-80 flex-shrink-0 h-full p-2",children:n(I,{sessions:M||[],currentSession:m,teams:o,onNewChat:A,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),n("div",{className:"flex-1 h-full p-2",children:n(S,{messages:j||[],input:r,isTyping:ee,currentSessionTitle:m?.title,capabilities:B||[],onInputChange:pe,addToolResult:se,onSendMessage:v,onKeyPress:de,fileUploads:a,isDragOver:oe,enableFileUpload:f,onFileUpload:le,onRemoveFile:re,onDragOver:ae})})]})},"chat-interface")})})}export{Le as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-GRNOF6LY.mjs";import{a as l}from"./chunk-FMJBJ3HN.mjs";import{a as m}from"./chunk-MDJREBVI.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";var o=({companyInfo:r})=>a("div",{className:"flex flex-col items-center",children:[e("div",{className:"w-16 h-16 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center shadow-sm",children:r.logo?.url?e("img",{src:r.logo.url,alt:r.logo.alt||r.name,className:"w-12 h-12 rounded-full object-cover"}):e("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center",children:e("span",{className:"text-xs font-bold text-primary",children:r.name.split(" ").map(t=>t[0]).join("").slice(0,3).toUpperCase()})})}),e("div",{className:"mt-2 text-center",children:e("p",{className:"text-sm font-semibold text-card-foreground",children:r.name})}),e("div",{className:"w-0.5 h-1 bg-border mt-2"})]});export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-
|
|
4
|
+
import{a as g}from"./chunk-XX4GSGRP.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-O5P35LEY.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-CLGBBNRB.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:S,logoDark:f,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as k}from"./chunk-LKUK55GC.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as C}from"./chunk-24R7CI5Q.mjs";import{a as S,b as w}from"./chunk-B63FA7LF.mjs";import{a as u}from"./chunk-ORODSHZN.mjs";import{a as v}from"./chunk-YG7SLO6G.mjs";import{a as f}from"./chunk-MX6GXHJJ.mjs";import{c as m,f as p}from"./chunk-4ITG3T35.mjs";import{a as d}from"./chunk-2BR55L74.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-CLGBBNRB.mjs";import{a as h}from"./chunk-FMJBJ3HN.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-WU3JMLSC.mjs";import{a as y}from"./chunk-BZAYEKYC.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:y,logoDark:b,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(k,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(S,{...t.contact})}),e(c,{theme:"light",style:i,children:e(w,{...t.contact})}),e(c,{theme:"last",style:i,children:e(C,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as w}from"./chunk-I6XKBCH4.mjs";import{a as x}from"./chunk-
|
|
4
|
+
import{a as w}from"./chunk-I6XKBCH4.mjs";import{a as x}from"./chunk-MDIJOHFV.mjs";import{a as f}from"./chunk-OQBCIB4L.mjs";import{a as c,b as p,i as u,j as m}from"./chunk-OCPX4QPC.mjs";import{b as g}from"./chunk-ZUA4KNIR.mjs";import{useEffect as S,useState as l}from"react";import{ChevronDown as j,Loader2 as P}from"lucide-react";import{Fragment as B,jsx as e,jsxs as t}from"react/jsx-runtime";function U({documents:v=[],contexts:o=[],onDocumentClick:C=n=>console.log("Document clicked:",n),onDocumentShare:D=n=>console.log("Share document:",n),onLoadDocumentContent:L,selectedDocumentId:K,onAddKnowledge:s,onDocumentUpdate:b,onAddTeamContext:h,onUpdateTeamContext:N,onDeleteTeamContext:y}){let[n,i]=l(o[0]),[M,r]=l(!1),[A,a]=l(!1),[k,I]=l(!1);S(()=>{if(!n&&o&&o.length>0)i(o[0]);else{let d=o.find(O=>O.id===n?.id);i(d||o[0])}},[o]);let T=d=>{s&&(I(!0),s(d)),r(!1)};return t("div",{className:"flex flex-col h-full",children:[t("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[k&&t("div",{className:"absolute inset-0 bg-background/90 z-[9999] flex flex-col items-center justify-center gap-4",children:[e(P,{className:"h-8 w-8 animate-spin text-primary"}),e("p",{className:"font-semibold text-lg",children:"Initializing document..."})]}),o&&o.length>0&&t("div",{className:"",children:[e("div",{className:"",children:t("nav",{className:"-mb-px flex justify-between items-center",children:[e("div",{className:"flex space-x-8 overflow-x-auto",children:o.map(d=>t("button",{onClick:()=>i(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${n?.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))}),t(c,{children:[e(p,{children:t("div",{className:"inline-flex border border-primary rounded-xl items-center justify-center gap-2 py-2 px-3 text-sm font-medium text-primary hover:text-primary/80 transition-colors whitespace-nowrap",children:["Actions ",e(j,{className:"h-4 w-4"})]})}),t(u,{children:[e(m,{onClick:()=>r(!0),children:"Add Knowledge"}),e(m,{onClick:()=>a(!0),children:"Manage Contexts"})]})]})]})}),n?.description&&e("div",{className:"mt-3 px-1",children:e("p",{className:"text-sm text-primary",children:n?.description})})]})]}),n?e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:e("div",{className:"h-full rounded-xl border overflow-hidden",children:e(f,{documents:v,menuConfig:n?.menuConfig,onDocumentClick:C,onDocumentShare:D,selectedDocumentId:K,onDocumentUpdate:b})})}):t("div",{children:[e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e("p",{className:"text-muted-foreground",children:"No contexts available"})}),e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e(g,{onClick:()=>a(!0),children:"Add Context"})})]}),t(B,{children:[e(x,{isOpen:A,onClose:()=>a(!1),knowledgeSources:o,onCreate:h,onUpdate:N,onDelete:y}),e(w,{isOpen:M,onClose:()=>r(!1),onAddKnowledge:T,knowledgeContexts:o})]})]})}export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-GRNOF6LY.mjs";import{a as o}from"./chunk-SRUG246N.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import p from"next/image";import{FaEnvelope as c,FaPhoneFlip as d}from"react-icons/fa6";import{jsx as e,jsxs as t}from"react/jsx-runtime";function f(s){let{sectionHeading:i,image:a}=s;return e("div",{className:"relative w-full light py-[60px]",children:t("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[e("div",{className:"relative h-full w-full",children:e(p,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:r})}),e("div",{className:"w-full h-full",children:t("div",{className:"bg-white p-10",children:[e("div",{className:"mb-30px",children:e(l,{...i,invert:!0})}),e(o,{})]})})]})})}function y(s){return e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,a)=>t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 text-primary",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[i.location.split(",")?.map((m,n)=>e("p",{children:m},n))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(c,{className:"pr-2 text-primary size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(d,{className:"pr-2 text-primary size-auto"}),i.phoneNumbers[0]]})]})]},a))})]})})})})}export{f as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as i}from"./chunk-WUA65ZZB.mjs";import{a as m}from"./chunk-PDY7JYY3.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as u}from"./chunk-AZKOVKSK.mjs";import{a as b}from"./chunk-GLZEHRPY.mjs";import{a as N}from"./chunk-MU5WPW4N.mjs";import{a as m,b as d,c as p,d as f}from"./chunk-KY7WQYN4.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as g,c as h}from"./chunk-SOLZ4VQH.mjs";import{useState as T}from"react";import{motion as e}from"motion/react";import{Bell as $,Menu as q,PanelLeft as E,Bot as G}from"lucide-react";import{Fragment as J,jsx as t,jsxs as i}from"react/jsx-runtime";function at({title:Q,notifications:x=[],onToggleSidebar:w,onToggleMobileMenu:y,sidebarOpen:C=!0,className:A,activeTab:k="assistant",onTabChange:P,showTabs:O=!0,tabOptions:R=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:B,actionIcon:H=t(G,{className:"mr-2 h-4 w-4"}),actionText:j="Action",onNotificationRemove:z,onRemoveAll:D,logo:I="/headerlogo.png",appName:L="Nuvia",tagline:M="Collaboration Platform"}){let[F,l]=T(!1),[r,c]=T(x),n=r.filter(o=>!o.read).length,S=o=>{c(s=>s.filter(U=>U.id!==o)),z?.(o)},K=()=>{c(o=>o.filter(s=>s.read)),D?.()};return i(J,{children:[i("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${A||""}`,children:[t(a,{variant:"ghost",size:"icon",className:"md:hidden",onClick:y,children:t(q,{className:"h-5 w-5"})}),t(a,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:w,children:t(E,{className:"h-5 w-5"})}),!C&&i(e.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[t("div",{className:"flex h-10 w-10 items-center justify-center",children:t("img",{src:I,alt:"Logo",className:"h-10 w-10 object-contain"})}),i("div",{children:[t("h2",{className:"font-semibold text-sm",children:L}),t("p",{className:"text-xs text-muted-foreground",children:M})]})]}),i("div",{className:"flex flex-1 items-center",children:[O&&t(b,{activeTab:k,onTabChange:P,tabOptions:R}),i("div",{className:"flex items-center gap-3 ml-auto",children:[t(e.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:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:B,children:[H,j]})})}),t(u,{}),t(m,{children:i(d,{children:[t(p,{asChild:!0,children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>l(!0),children:[t(e.div,{animate:n>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:n>0?1/0:0,repeatDelay:3},children:t($,{className:"h-5 w-5"})}),n>0&&t(e.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:n})]})})}),t(f,{children:"Notifications"})]})}),t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(v,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[t(g,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),t(h,{})]})})]})]})]}),t(N,{notifications:r,open:F,onClose:()=>l(!1),onNotificationRemove:S,onRemoveAll:K})]})}export{at as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as u}from"./chunk-B4H6T2GP.mjs";import{a as n}from"./chunk-TVZOULLL.mjs";import{a as f}from"./chunk-INCYANPB.mjs";import{a as d}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{useState as h}from"react";import{Loader2 as y,Plus as j,X as C}from"lucide-react";import{Fragment as x,jsx as t,jsxs as a}from"react/jsx-runtime";var I=({onSubmit:N,onCancel:v,isLoading:o=!1,initialData:i,className:g=""})=>{let[r,w]=h({name:i?.name||"",description:i?.description||"",objectives:i?.objectives||"",workInstructions:i?.workInstructions||"",plan:i?.plan||!1}),[s,b]=h({}),k=()=>{let e={};return r.name.trim()?r.name.trim().length<3&&(e.name="Project name must be at least 3 characters"):e.name="Project name is required",r.objectives.trim()?r.objectives.trim().length<10&&(e.objectives="Please provide more detailed objectives (at least 10 characters)"):e.objectives="Project objectives are required",r.workInstructions.trim()?r.workInstructions.trim().length<20&&(e.workInstructions="Please provide more detailed work instructions (at least 20 characters)"):e.workInstructions="Work instructions are required",b(e),Object.keys(e).length===0},P=async e=>{if(e.preventDefault(),!!k())try{await N(r)}catch(m){console.error("Error submitting project form:",m)}},c=(e,m)=>{w(l=>({...l,[e]:m})),s[e]&&b(l=>({...l,[e]:void 0}))};return a("div",{className:`w-full max-w-2xl ${g}`,children:[a("div",{className:"mb-4",children:[a("div",{className:"flex items-center gap-2",children:[t(j,{className:"h-5 w-5"}),"Create New Project"]}),t("p",{className:"text-sm text-gray-500",children:"Set up a new project with clear objectives and work instructions to help your team collaborate effectively."})]}),a("form",{onSubmit:P,children:[a("div",{className:"space-y-6",children:[a("div",{className:"space-y-2",children:[t(n,{htmlFor:"name",className:"text-sm font-medium",children:"Project Name *"}),t(d,{id:"name",type:"text",placeholder:"Enter project name",value:r.name,onChange:e=>c("name",e.target.value),className:s.name?"border-red-500 focus:border-red-500":"",disabled:o,maxLength:100}),s.name&&t("p",{className:"text-sm text-red-600",children:s.name})]}),a("div",{className:"space-y-2",children:[t(n,{htmlFor:"name",className:"text-sm font-medium",children:"Project Description *"}),t(d,{id:"description",type:"text",placeholder:"Enter project description",value:r.description,onChange:e=>c("description",e.target.value),className:s.description?"border-red-500 focus:border-red-500":"",disabled:o,maxLength:100}),s.description&&t("p",{className:"text-sm text-red-600",children:s.description})]}),a("div",{className:"space-y-2",children:[t(n,{htmlFor:"objectives",className:"text-sm font-medium",children:"Project Objectives *"}),t(u,{id:"objectives",placeholder:"Describe the main goals and objectives of this project...",value:r.objectives,onChange:e=>c("objectives",e.target.value),className:`min-h-[100px] resize-y ${s.objectives?"border-red-500 focus:border-red-500":""}`,disabled:o,maxLength:1e3}),a("div",{className:"flex justify-between text-xs text-gray-500",children:[t("span",{children:s.objectives&&t("span",{className:"text-red-600",children:s.objectives})}),a("span",{children:[r.objectives.length,"/1000"]})]})]}),a("div",{className:"space-y-2",children:[t(n,{htmlFor:"workInstructions",className:"text-sm font-medium",children:"Work Instructions *"}),t(u,{id:"workInstructions",placeholder:"Provide detailed instructions on how the work should be carried out, including processes, standards, and expectations...",value:r.workInstructions,onChange:e=>c("workInstructions",e.target.value),className:`min-h-[120px] resize-y ${s.workInstructions?"border-red-500 focus:border-red-500":""}`,disabled:o,maxLength:2e3}),a("div",{className:"flex justify-between text-xs text-gray-500",children:[t("span",{children:s.workInstructions&&t("span",{className:"text-red-600",children:s.workInstructions})}),a("span",{children:[r.workInstructions.length,"/2000"]})]})]}),a("div",{className:"space-y-3",children:[t(n,{className:"text-sm font-medium",children:"Project Management"}),a("div",{className:"flex items-center space-x-2",children:[t(f,{id:"plan",checked:r.plan,onCheckedChange:e=>c("plan",e===!0),disabled:o}),t(n,{htmlFor:"plan",className:"text-sm text-gray-700 cursor-pointer",children:"Enable project planning and management features"})]}),t("p",{className:"text-xs text-gray-500 ml-6",children:"This will allow project managers to create sprints, assign tasks, and track progress."})]})]}),a("div",{className:"flex justify-end gap-3",children:[v&&a(p,{type:"button",variant:"outline",onClick:v,disabled:o,className:"flex items-center gap-2",children:[t(C,{className:"h-4 w-4"}),"Cancel"]}),t(p,{type:"submit",disabled:o,className:"flex items-center gap-2",children:o?a(x,{children:[t(y,{className:"h-4 w-4 animate-spin"}),"Creating..."]}):a(x,{children:[t(j,{className:"h-4 w-4"}),"Create Project"]})})]})]})]})},$=I;export{I as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-IBC5Z55T.mjs";import{a as v}from"./chunk-GXVC6ETI.mjs";import{c as b,d as h}from"./chunk-4ITG3T35.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a as i}from"./chunk-VFIMFZX5.mjs";import{b as l,c as s}from"./chunk-32G45Z2G.mjs";import{Fragment as f,jsx as r,jsxs as t}from"react/jsx-runtime";var x=({node:e,onNodeClick:o,expandable:d=!1,isExpanded:a=!0,onToggleExpand:m})=>{let n=e.children.length>0,c=d&&n;return r("div",{className:"flex flex-col items-center",children:t("div",{className:`
|
|
2
|
+
relative bg-card border border-border rounded-lg shadow-sm
|
|
3
|
+
transition-all duration-200 hover:shadow-md hover:border-primary/50
|
|
4
|
+
${o?"cursor-pointer":""}
|
|
5
|
+
w-64 p-4 min-h-[180px] flex flex-col
|
|
6
|
+
`,onClick:()=>o?.(e),children:[t("div",{className:"flex items-start gap-3",children:[r("div",{className:"flex-shrink-0",children:e.profilePicture?.url?r("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"}):r("div",{className:"w-12 h-12 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center",children:r("span",{className:"text-sm font-semibold text-primary",children:l(e.name)})})}),t("div",{className:"flex-1 min-w-0",children:[r("h3",{className:"font-semibold text-card-foreground text-sm truncate",children:e.name}),r("p",{className:"text-xs text-muted-foreground truncate",children:e.email}),e.jobRole&&r("div",{className:"mt-2",children:r("span",{className:`
|
|
7
|
+
inline-block px-2 py-0.5 rounded text-xs font-medium border
|
|
8
|
+
${s(e.jobRole)}
|
|
9
|
+
`,children:i[e.jobRole]})})]})]}),r("div",{className:"mt-3 pt-3 border-t border-border flex-1 flex flex-col justify-start",children:e.about?t(f,{children:[r("p",{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&&r("div",{className:"mt-1 text-xs text-muted-foreground/70 italic",children:"Hover to see full description"})]}):r("div",{className:"text-xs text-muted-foreground/50 italic",children:"No description available"})}),c&&r("button",{onClick:u=>{u.stopPropagation(),m?.()},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":a?"Collapse":"Expand",children:r("svg",{className:`w-3 h-3 text-muted-foreground transition-transform ${a?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})})};export{x as a};
|