cortex-react-components 1.62.2 → 1.64.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-2IJK3AE7.mjs → chunk-22SIVBWN.mjs} +1 -1
- package/dist/{chunk-65BHP4TM.mjs → chunk-2ELCHEGN.mjs} +1 -1
- package/dist/chunk-2WXIUKCO.mjs +1 -0
- package/dist/chunk-33ZXPMQU.mjs +1 -0
- package/dist/{chunk-64DD3N4S.mjs → chunk-37NBXA5G.mjs} +1 -1
- package/dist/{chunk-JU7C3V5N.mjs → chunk-4HUH5XA2.mjs} +1 -1
- package/dist/{chunk-UDQTFQR7.mjs → chunk-4ZRLE77J.mjs} +1 -1
- package/dist/chunk-6L2BDKJU.mjs +6 -0
- package/dist/chunk-6NZJ2VXQ.mjs +1 -0
- package/dist/chunk-6U663VXT.mjs +1 -0
- package/dist/chunk-7SPGDJJI.mjs +1 -0
- package/dist/{chunk-R7IAPAL5.mjs → chunk-ANTK5LAD.mjs} +1 -1
- package/dist/{chunk-X4Q7WZZS.mjs → chunk-AVBIHINB.mjs} +1 -1
- package/dist/{chunk-U7Q6ZRR3.mjs → chunk-C7TTHOHB.mjs} +1 -1
- package/dist/{chunk-B7STYVDB.mjs → chunk-CGBMXBIY.mjs} +1 -1
- package/dist/{chunk-RG5W7B5K.mjs → chunk-CLYDQSRN.mjs} +1 -1
- package/dist/{chunk-X4EKDFOJ.mjs → chunk-CVJOGMQM.mjs} +1 -1
- package/dist/{chunk-PBRC3UOA.mjs → chunk-DAJNZDN6.mjs} +1 -1
- package/dist/{chunk-RZUYAUCR.mjs → chunk-DINASYAM.mjs} +1 -1
- package/dist/chunk-E6ZAA4QH.mjs +1 -0
- package/dist/{chunk-ZJCHVWSF.mjs → chunk-EDY4LLVN.mjs} +1 -1
- package/dist/{chunk-VGQTRTPZ.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/chunk-F2D7YJEV.mjs +1 -0
- package/dist/chunk-FFESN4FM.mjs +1 -0
- package/dist/{chunk-NP2M5K7O.mjs → chunk-FLGGV2UV.mjs} +1 -1
- package/dist/chunk-FWBG46K2.mjs +1 -0
- package/dist/chunk-G72SIYN7.mjs +4 -0
- package/dist/chunk-HZXNJWP5.mjs +1 -0
- package/dist/chunk-I3FBQX6H.mjs +11 -0
- package/dist/{chunk-EVVDCPEA.mjs → chunk-I4GEIHT2.mjs} +1 -1
- package/dist/{chunk-CJF6GVGP.mjs → chunk-IE5CASFG.mjs} +1 -1
- package/dist/chunk-K44ECXTN.mjs +1 -0
- package/dist/{chunk-SX5U74MW.mjs → chunk-KETV2XVN.mjs} +1 -1
- package/dist/chunk-L45A6K4C.mjs +1 -0
- package/dist/chunk-MEWCJ4MA.mjs +1 -0
- package/dist/{chunk-FN5C27GW.mjs → chunk-MFDZCI2F.mjs} +1 -1
- package/dist/{chunk-3BATRS4C.mjs → chunk-MRJQKF4Z.mjs} +1 -1
- package/dist/{chunk-L5MDFQGH.mjs → chunk-NAGM6QT5.mjs} +1 -1
- package/dist/{chunk-YPK6OLRS.mjs → chunk-NWEA3O2Q.mjs} +1 -1
- package/dist/chunk-OIQ6GXBY.mjs +4 -0
- package/dist/chunk-P3PIMDIR.mjs +1 -0
- package/dist/chunk-PFWODHNV.mjs +1 -0
- package/dist/chunk-PPUE5IPA.mjs +1 -0
- package/dist/{chunk-FSYU3D5O.mjs → chunk-PY7TFY5K.mjs} +1 -1
- package/dist/{chunk-FGHN2OHF.mjs → chunk-Q2MJWHFZ.mjs} +1 -1
- package/dist/chunk-Q5LSCSF7.mjs +1 -0
- package/dist/{chunk-5ALQQYYE.mjs → chunk-QNIE2MLB.mjs} +1 -1
- package/dist/{chunk-GYDVBUKO.mjs → chunk-QUOLG5NC.mjs} +1 -1
- package/dist/{chunk-JLCWVIEP.mjs → chunk-RHB4QMWH.mjs} +1 -1
- package/dist/chunk-ROEJPYRW.mjs +1 -0
- package/dist/{chunk-DIAK5C43.mjs → chunk-STHWCR5K.mjs} +1 -1
- package/dist/{chunk-XIVKVQK2.mjs → chunk-STQACD6R.mjs} +1 -1
- package/dist/chunk-T2ZS5P67.mjs +4 -0
- package/dist/{chunk-COI2LCY2.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-OMVXDUX7.mjs → chunk-TFIAEOF6.mjs} +1 -1
- package/dist/chunk-TWPRI2XQ.mjs +1 -0
- package/dist/{chunk-IH37BDR2.mjs → chunk-UQASICDL.mjs} +1 -1
- package/dist/{chunk-FYEE5UWZ.mjs → chunk-UVPODMUO.mjs} +1 -1
- package/dist/{chunk-GHXEOXV4.mjs → chunk-VCZPEEMH.mjs} +1 -1
- package/dist/chunk-VFTAB4PN.mjs +1 -0
- package/dist/{chunk-IC57R2EU.mjs → chunk-VXGRJCCM.mjs} +1 -1
- package/dist/{chunk-MUBDAI2K.mjs → chunk-VZVXDVOI.mjs} +1 -1
- package/dist/{chunk-DVGPU4EL.mjs → chunk-WLU4QF2Z.mjs} +1 -1
- package/dist/{chunk-WPL2QWNG.mjs → chunk-XFEBBW2G.mjs} +1 -1
- package/dist/{chunk-XZ4GLJWK.mjs → chunk-YVADLIYB.mjs} +1 -1
- package/dist/{chunk-ZY2PDUUB.mjs → chunk-Z6NED523.mjs} +1 -1
- package/dist/chunk-ZEOV7BEN.mjs +1 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.css +1 -0
- package/dist/components/CRM/CogeBoard.d.ts +14 -0
- package/dist/components/CRM/CogeBoard.js +4 -0
- package/dist/components/CRM/CogeBoard.mjs +2 -0
- package/dist/components/CRM/CogeBoard.stories.css +1 -0
- package/dist/components/CRM/CogeBoard.stories.js +4 -0
- package/dist/components/CRM/CogeBoard.stories.mjs +1 -0
- package/dist/components/CRM/DealCard.d.ts +2 -1
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.js +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +6 -5
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/types.d.ts +1 -0
- package/dist/components/CRM/types.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.css +1 -0
- package/dist/components/DigitalColleagues/AddEpicModal.d.ts +9 -0
- package/dist/components/DigitalColleagues/AddEpicModal.js +4 -0
- package/dist/components/DigitalColleagues/AddEpicModal.mjs +1 -0
- package/dist/components/DigitalColleagues/AddEpicModal.stories.css +1 -0
- package/dist/components/DigitalColleagues/AddEpicModal.stories.js +221 -0
- package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/AddSprintModal.css +1 -0
- package/dist/components/DigitalColleagues/AddSprintModal.d.ts +9 -0
- package/dist/components/DigitalColleagues/AddSprintModal.js +4 -0
- package/dist/components/DigitalColleagues/AddSprintModal.mjs +1 -0
- package/dist/components/DigitalColleagues/AddTaskModal.css +1 -0
- package/dist/components/DigitalColleagues/AddTaskModal.d.ts +11 -0
- package/dist/components/DigitalColleagues/AddTaskModal.js +4 -0
- package/dist/components/DigitalColleagues/AddTaskModal.mjs +1 -0
- package/dist/components/DigitalColleagues/AddTaskModal.stories.css +1 -0
- package/dist/components/DigitalColleagues/AddTaskModal.stories.js +221 -0
- package/dist/components/DigitalColleagues/AddTaskModal.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.css +1 -0
- package/dist/components/DigitalColleagues/ChatInterface.d.ts +6 -0
- package/dist/components/DigitalColleagues/ChatInterface.js +9 -0
- package/dist/components/DigitalColleagues/ChatInterface.mjs +1 -0
- package/dist/components/DigitalColleagues/ChatInterface.stories.css +1 -0
- package/dist/components/DigitalColleagues/ChatInterface.stories.js +226 -0
- package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/CommentSection.css +1 -0
- package/dist/components/DigitalColleagues/CommentSection.d.ts +13 -0
- package/dist/components/DigitalColleagues/CommentSection.js +4 -0
- package/dist/components/DigitalColleagues/CommentSection.mjs +1 -0
- package/dist/components/DigitalColleagues/CommentSection.stories.css +1 -0
- package/dist/components/DigitalColleagues/CommentSection.stories.js +221 -0
- package/dist/components/DigitalColleagues/CommentSection.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/DashboardHeader.css +1 -0
- package/dist/components/DigitalColleagues/DashboardHeader.d.ts +8 -0
- package/dist/components/DigitalColleagues/DashboardHeader.js +4 -0
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -0
- package/dist/components/DigitalColleagues/DashboardHeader.stories.css +1 -0
- package/dist/components/DigitalColleagues/DashboardHeader.stories.js +221 -0
- package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/DocumentationView.css +1 -0
- package/dist/components/DigitalColleagues/DocumentationView.d.ts +2 -0
- package/dist/components/DigitalColleagues/DocumentationView.js +11 -0
- package/dist/components/DigitalColleagues/DocumentationView.mjs +1 -0
- package/dist/components/DigitalColleagues/DocumentationView.stories.css +1 -0
- package/dist/components/DigitalColleagues/DocumentationView.stories.js +11 -0
- package/dist/components/DigitalColleagues/DocumentationView.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/EditableField.css +1 -0
- package/dist/components/DigitalColleagues/EditableField.d.ts +11 -0
- package/dist/components/DigitalColleagues/EditableField.js +4 -0
- package/dist/components/DigitalColleagues/EditableField.mjs +1 -0
- package/dist/components/DigitalColleagues/EditableField.stories.css +1 -0
- package/dist/components/DigitalColleagues/EditableField.stories.js +221 -0
- package/dist/components/DigitalColleagues/EditableField.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/EpicFilter.css +1 -0
- package/dist/components/DigitalColleagues/EpicFilter.d.ts +9 -0
- package/dist/components/DigitalColleagues/EpicFilter.js +4 -0
- package/dist/components/DigitalColleagues/EpicFilter.mjs +1 -0
- package/dist/components/DigitalColleagues/EpicFilter.stories.css +1 -0
- package/dist/components/DigitalColleagues/EpicFilter.stories.js +221 -0
- package/dist/components/DigitalColleagues/EpicFilter.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/EpicsView.css +1 -0
- package/dist/components/DigitalColleagues/EpicsView.d.ts +13 -0
- package/dist/components/DigitalColleagues/EpicsView.js +1 -0
- package/dist/components/DigitalColleagues/EpicsView.mjs +1 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.css +1 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.js +218 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.css +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.d.ts +42 -0
- package/dist/components/DigitalColleagues/KanbanBoard.js +14 -0
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.stories.css +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.stories.js +14 -0
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.css +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.d.ts +12 -0
- package/dist/components/DigitalColleagues/KanbanColumn.js +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.mjs +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.stories.css +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.stories.js +1 -0
- package/dist/components/DigitalColleagues/KanbanColumn.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.css +1 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +24 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.js +4 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.css +1 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.js +221 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/PlanningView.css +1 -0
- package/dist/components/DigitalColleagues/PlanningView.d.ts +12 -0
- package/dist/components/DigitalColleagues/PlanningView.js +4 -0
- package/dist/components/DigitalColleagues/PlanningView.mjs +1 -0
- package/dist/components/DigitalColleagues/PlanningView.stories.css +1 -0
- package/dist/components/DigitalColleagues/PlanningView.stories.js +4 -0
- package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/SearchableSelect.css +1 -0
- package/dist/components/DigitalColleagues/SearchableSelect.d.ts +15 -0
- package/dist/components/DigitalColleagues/SearchableSelect.js +4 -0
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskCard.css +1 -0
- package/dist/components/DigitalColleagues/TaskCard.d.ts +11 -0
- package/dist/components/DigitalColleagues/TaskCard.js +1 -0
- package/dist/components/DigitalColleagues/TaskCard.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskCard.stories.css +1 -0
- package/dist/components/DigitalColleagues/TaskCard.stories.js +218 -0
- package/dist/components/DigitalColleagues/TaskCard.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.css +1 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.d.ts +13 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.js +4 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.css +1 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.js +4 -0
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskSelect.css +1 -0
- package/dist/components/DigitalColleagues/TaskSelect.d.ts +15 -0
- package/dist/components/DigitalColleagues/TaskSelect.js +4 -0
- package/dist/components/DigitalColleagues/TaskSelect.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskSelect.stories.css +1 -0
- package/dist/components/DigitalColleagues/TaskSelect.stories.js +221 -0
- package/dist/components/DigitalColleagues/TaskSelect.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskSidebar.css +1 -0
- package/dist/components/DigitalColleagues/TaskSidebar.d.ts +13 -0
- package/dist/components/DigitalColleagues/TaskSidebar.js +4 -0
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -0
- package/dist/components/DigitalColleagues/TaskSidebar.stories.css +1 -0
- package/dist/components/DigitalColleagues/TaskSidebar.stories.js +4 -0
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.css +1 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.d.ts +13 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.js +4 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.mjs +1 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.css +1 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.js +4 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.mjs +1 -0
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/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/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +10 -10
- 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/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/payload-types.d.ts +118 -110
- package/dist/payload-types.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-A544CNOK.mjs +0 -1
- package/dist/chunk-JPGNI5UZ.mjs +0 -4
- package/dist/chunk-LF7I56HN.mjs +0 -1
- package/dist/chunk-QVIJOCZ5.mjs +0 -1
- package/dist/chunk-VEWTPB7K.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-H7D3PZKE.mjs";import{a as o}from"./chunk-FHJDQP4I.mjs";import{a as s}from"./chunk-BLD454AX.mjs";import{a as d}from"./chunk-VFXHLJ45.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-QNIE2MLB.mjs";import{a as t}from"./chunk-HTVHCBXQ.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
|
+
import{b as o}from"./chunk-J2IHT57D.mjs";import{a as n}from"./chunk-4YFMDLHL.mjs";import{jsx as r,jsxs as s}from"react/jsx-runtime";var v=({title:l,status:a,taskCount:d,children:m,onDrop:c,isCompact:t=!1})=>{let i=e=>{e.preventDefault()},g=e=>{e.preventDefault(),c(a)};return s(n,{className:`p-4 bg-white border-l-4 ${(()=>{switch(a){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${t?"lg:max-w-xs":""}`,onDragOver:i,onDrop:g,children:[s("div",{className:"flex items-center justify-between mb-4",children:[r("h3",{className:`font-semibold text-gray-900 select-none-important ${t?"text-base":"text-lg"}`,children:l}),r(o,{variant:"secondary",className:"bg-gray-100 text-gray-600",children:d})]}),r("div",{className:"space-y-4 min-h-[200px]",children:m})]})};export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f}from"./chunk-ROEJPYRW.mjs";import{a as T}from"./chunk-Q5LSCSF7.mjs";import{a as n}from"./chunk-F2D7YJEV.mjs";import{a as c,f as p,g,i as D}from"./chunk-BUCI7BPM.mjs";import{useState as h}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";var M=({isOpen:C,onClose:o,task:e,epics:v,sprints:S,onUpdateTask:r,onDeleteTask:b})=>{let[u,d]=h(new Date),[l,w]=h([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:e.createdAt},{id:"2",text:"Started working on the implementation.",author:e.assignee,createdAt:new Date(e.createdAt.getTime()+864e5)}]),m=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},k=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},A=t=>{let a={id:Date.now().toString(),text:t,author:"Current User",createdAt:new Date};w([...l,a])},U=()=>{b(e.id),o()};return i(c,{open:C,onOpenChange:o,children:s(p,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(g,{children:i(D,{className:"sr-only",children:e.title})}),s("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s("div",{className:"lg:col-span-2 space-y-4",children:[i(n,{fieldName:"title",value:e.title,label:"",onSave:m,className:"border-b pb-3"}),i(n,{fieldName:"description",value:e.description,label:"Description",multiline:!0,onSave:m}),i(T,{comments:l,onAddComment:A})]}),i(f,{task:e,epics:v,sprints:S,lastUpdated:u,onUpdateTask:k,onClose:o,onDelete:U})]})]})})};export{M as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d}from"./chunk-
|
|
4
|
+
import{a as d}from"./chunk-ANTK5LAD.mjs";import{a as m}from"./chunk-WGEMXPWB.mjs";import{b as i,f as o}from"./chunk-SUO6GOJS.mjs";import{a as l}from"./chunk-H7D3PZKE.mjs";import{a as s}from"./chunk-VFXHLJ45.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as F}from"./chunk-
|
|
4
|
+
import{a as F}from"./chunk-CLYDQSRN.mjs";import{a as T}from"./chunk-EDY4LLVN.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-QNIE2MLB.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as N}from"./chunk-6T322YHB.mjs";import{a as k}from"./chunk-JPZJET3B.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{b as S}from"./chunk-J2IHT57D.mjs";import{a as I,b as B,e as A}from"./chunk-4YFMDLHL.mjs";import{a as m}from"./chunk-HTVHCBXQ.mjs";import{useState as u}from"react";import{Send as j,Bot as L,Users as O,Plus as E,X as M,Menu as q}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";var $=[{id:"it",name:"IT",color:"bg-blue-600"},{id:"hr",name:"HR",color:"bg-green-600"},{id:"marketing",name:"Marketing",color:"bg-purple-600"},{id:"finance",name:"Finance",color:"bg-orange-600"},{id:"operations",name:"Operations",color:"bg-red-600"},{id:"sales",name:"Sales",color:"bg-indigo-600"}],Q=({mode:s,onModeChange:T})=>{let[h,w]=u(""),[c,z]=u("it"),[x,b]=u(!1),[i,g]=u([{id:"1",name:"General Chat",mode:"copilot",messages:[{id:"1",content:"Hello! I'm your AI assistant. How can I help you today?",sender:"assistant",timestamp:new Date}]}]),[p,v]=u("1"),l=i.find(e=>e.id===p),r=$.find(e=>e.id===c),D=()=>{let e=Date.now().toString(),n={id:e,name:`${s==="copilot"?"AI Chat":r?.name+" Chat"} ${i.length+1}`,mode:s,selectedTeam:s==="teams"?c:void 0,messages:[{id:"1",content:s==="copilot"?"Hello! I'm your AI assistant. How can I help you today?":`Welcome to ${r?.name} team chat!`,sender:s==="copilot"?"assistant":"team",timestamp:new Date,senderName:s==="teams"?`${r?.name} Bot`:void 0}]};g([...i,n]),v(e)},H=e=>{if(i.length===1)return;let n=i.filter(d=>d.id!==e);g(n),p===e&&v(n[0].id)},C=()=>{if(!h.trim()||!l)return;let e={id:Date.now().toString(),content:h,sender:"user",timestamp:new Date},n=[...l.messages,e];g(i.map(d=>d.id===p?{...d,messages:n}:d)),w(""),setTimeout(()=>{let d={id:(Date.now()+1).toString(),content:l.mode==="copilot"?"I understand your request. Let me help you with that.":`Message sent to ${r?.name} team channel.`,sender:l.mode==="copilot"?"assistant":"team",timestamp:new Date,senderName:l.mode==="teams"?`${r?.name} Bot`:void 0};g(P=>P.map(f=>f.id===p?{...f,messages:[...f.messages,d]}:f))},1e3)},y=e=>{T(e),l&&g(i.map(n=>n.id===p?{...n,mode:e,selectedTeam:e==="teams"?c:void 0}:n))};return a(I,{className:"h-full flex shadow-lg border-0 bg-white/50 backdrop-blur-sm relative overflow-hidden",children:[a("div",{className:`
|
|
2
|
+
w-64 border-r bg-gradient-to-b from-blue-50 to-purple-50 dark:from-blue-950 dark:to-purple-950 flex flex-col
|
|
3
|
+
transition-transform duration-300 ease-in-out
|
|
4
|
+
lg:translate-x-0 lg:static lg:flex
|
|
5
|
+
${x?"translate-x-0 absolute left-0 top-0 bottom-0 z-40 shadow-xl":"-translate-x-full absolute left-0 top-0 bottom-0 lg:translate-x-0 lg:static lg:flex"}
|
|
6
|
+
`,children:[t("div",{className:"lg:hidden flex justify-end p-2",children:t(o,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-8 w-8 p-0",children:t(M,{className:"h-4 w-4"})})}),a("div",{className:"p-4 border-b",children:[t("div",{className:"flex items-center justify-between mb-4",children:a("div",{className:"flex rounded-lg bg-white dark:bg-slate-800 p-1",children:[a(o,{variant:s==="copilot"?"default":"ghost",size:"sm",onClick:()=>y("copilot"),className:m("flex items-center space-x-2 text-xs",s==="copilot"&&"bg-blue-600 text-white"),children:[t(L,{className:"h-3 w-3"}),t("span",{children:"Copilot"})]}),a(o,{variant:s==="teams"?"default":"ghost",size:"sm",onClick:()=>y("teams"),className:m("flex items-center space-x-2 text-xs",s==="teams"&&"bg-purple-600 text-white"),children:[t(O,{className:"h-3 w-3"}),t("span",{children:"Teams"})]})]})}),a(o,{variant:"outline",size:"sm",onClick:D,className:"w-full flex items-center space-x-2",children:[t(E,{className:"h-4 w-4"}),t("span",{children:"New Chat"})]})]}),t(N,{className:"flex-1 p-2",children:t("div",{className:"space-y-1",children:i.map(e=>a("div",{onClick:()=>v(e.id),className:m("group relative p-3 rounded-lg cursor-pointer transition-colors text-sm",p===e.id?"bg-white dark:bg-slate-800 text-gray-900 dark:text-gray-100 shadow-sm":"hover:bg-white/60 dark:hover:bg-slate-800/60 text-gray-700 dark:text-gray-300"),children:[t("div",{className:"truncate pr-6",children:e.name}),i.length>1&&t(o,{variant:"ghost",size:"sm",onClick:n=>{n.stopPropagation(),H(e.id)},className:"absolute right-1 top-1/2 -translate-y-1/2 h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:t(M,{className:"h-3 w-3"})})]},e.id))})})]}),x&&t("div",{className:"lg:hidden absolute inset-0 bg-black/50 z-30",onClick:()=>b(!1)}),a("div",{className:"flex-1 flex flex-col min-w-0",children:[a(B,{className:"border-b bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-950 dark:to-purple-950",children:[a("div",{className:"flex items-center justify-between",children:[t(o,{variant:"outline",size:"sm",onClick:()=>b(!x),className:"lg:hidden mr-2",children:t(q,{className:"h-4 w-4"})}),t(S,{variant:"outline",className:"bg-white/80",children:s==="copilot"?"AI Assistant":`${r?.name} Chat`})]}),s==="teams"&&t("div",{className:"flex gap-2 pt-3 flex-wrap",children:$.map(e=>a(o,{variant:c===e.id?"default":"outline",size:"sm",onClick:()=>z(e.id),className:m("flex items-center space-x-2 text-xs",c===e.id&&`${e.color} text-white hover:${e.color}/90`),children:[t("div",{className:`w-2 h-2 rounded-full ${c===e.id?"bg-white":e.color}`}),t("span",{children:e.name})]},e.id))})]}),a(A,{className:"flex-1 flex flex-col p-0",children:[t(N,{className:"flex-1 p-6",children:t("div",{className:"space-y-4",children:l?.messages.map(e=>t("div",{className:m("flex",e.sender==="user"?"justify-end":"justify-start"),children:a("div",{className:m("max-w-xs lg:max-w-md px-4 py-2 rounded-lg",e.sender==="user"?"bg-blue-600 text-white":"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100"),children:[e.senderName&&t("p",{className:"text-xs font-medium mb-1 opacity-70",children:e.senderName}),t("p",{className:"text-sm",children:e.content}),t("p",{className:"text-xs mt-1 opacity-70",children:e.timestamp.toLocaleTimeString()})]})},e.id))})}),t("div",{className:"p-6 border-t bg-gray-50/50 dark:bg-gray-900/50",children:a("div",{className:"flex space-x-2",children:[t(k,{value:h,onChange:e=>w(e.target.value),placeholder:`Message ${s==="copilot"?"AI Assistant":r?.name}...`,onKeyPress:e=>e.key==="Enter"&&C(),className:"flex-1"}),t(o,{onClick:C,size:"icon",children:t(j,{className:"h-4 w-4"})})]})})]})]})]})};export{Q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-4YFMDLHL.mjs";import{User as p,AlertCircle as g,Bug as u,Zap as b,BookOpen as x}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var w=({task:r,epic:f,onDragStart:l,onTaskClick:c,isCompact:d=!1})=>{let s=y=>{l(r)},o=()=>{c(r)},m=()=>{switch(r.priority){case"high":return"bg-red-100 text-red-800 border-red-200";case"medium":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"low":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},i=()=>{switch(r.type){case"story":return e(x,{className:"h-3 w-3"});case"bug":return e(u,{className:"h-3 w-3"});case"spike":return e(b,{className:"h-3 w-3"});case"task":default:return e(g,{className:"h-3 w-3"})}},n=()=>{switch(r.type){case"story":return"bg-blue-100 text-blue-800";case"bug":return"bg-red-100 text-red-800";case"spike":return"bg-purple-100 text-purple-800";case"task":default:return"bg-gray-100 text-gray-800"}};return d?e(a,{className:"p-3 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:s,onClick:o,children:t("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${n()}`,children:i()}),e("h4",{className:"font-medium text-gray-900 text-sm mb-1 line-clamp-2 select-none-important",children:r.title})]})}):t(a,{className:"p-4 bg-white border border-gray-200 hover:border-gray-300 cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:s,onClick:o,children:[t("div",{className:"flex items-center justify-between mb-3",children:[t("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${n()}`,children:[i(),e("span",{className:"capitalize",children:r.type})]}),t("div",{className:"flex gap-1",children:[e("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${m()}`,children:r.priority}),e("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:r.points})]})]}),e("h4",{className:"font-semibold text-gray-900 mb-2 select-none-important",children:r.title}),e("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2 select-none-important",children:r.description}),e("div",{className:"flex items-center justify-between text-sm text-gray-500",children:t("div",{className:"flex items-center gap-1",children:[e(p,{className:"h-4 w-4"}),e("span",{children:r.assignee})]})})]})};export{w as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c,b as m}from"./chunk-63W64WWD.mjs";import{a as g,c as u,d as v,g as y,i as s}from"./chunk-OGZERPA4.mjs";import{a as I}from"./chunk-CX4XB5W2.mjs";import{a as o}from"./chunk-EECIYMTX.mjs";import{a as h,f as T,g as k,h as S,i as f}from"./chunk-BUCI7BPM.mjs";import{a as r}from"./chunk-JPZJET3B.mjs";import{b as d}from"./chunk-BPSLUO5I.mjs";import{useState as L}from"react";import{BookOpen as w,Bug as E,Zap as B,AlertCircle as G}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var O=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800",icon:w},{value:"task",label:"Task",color:"bg-green-100 text-green-800",icon:G},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800",icon:E},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800",icon:B}],V=[{value:"low",label:"Low",color:"bg-green-100 text-green-800"},{value:"medium",label:"Medium",color:"bg-yellow-100 text-yellow-800"},{value:"high",label:"High",color:"bg-red-100 text-red-800"}],K=({isOpen:N,onClose:n,onAddTask:x,epics:C,sprints:D})=>{let[a,b]=L({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),A=e=>{e.preventDefault(),a.title.trim()&&a.epicId&&(x({title:a.title.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,points:a.points,epicId:a.epicId,sprintId:a.sprintId==="none"?void 0:a.sprintId,assignee:a.assignee.trim()||"Unassigned"}),b({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),n())},l=(e,p)=>{b(F=>({...F,[e]:p}))};return t(h,{open:N,onOpenChange:n,children:i(T,{className:"sm:max-w-md",children:[t(k,{children:t(f,{children:"Add New Task"})}),i("form",{onSubmit:A,className:"space-y-4",children:[i("div",{className:"space-y-2",children:[t(o,{htmlFor:"title",children:"Task Title"}),t(r,{id:"title",value:a.title,onChange:e=>l("title",e.target.value),placeholder:"Enter task title",required:!0})]}),i("div",{className:"space-y-2",children:[t(o,{htmlFor:"description",children:"Description"}),t(I,{id:"description",value:a.description,onChange:e=>l("description",e.target.value),placeholder:"Enter task description",rows:3})]}),i("div",{className:"space-y-2",children:[t(o,{children:"Type"}),t(c,{type:"single",value:a.type,onValueChange:e=>e&&l("type",e),children:O.map(e=>{let p=e.icon;return i(m,{value:e.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[t(p,{className:"h-4 w-4"}),e.label]},e.value)})})]}),i("div",{className:"space-y-2",children:[t(o,{children:"Priority"}),t(c,{type:"single",value:a.priority,onValueChange:e=>e&&l("priority",e),children:V.map(e=>t(m,{value:e.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:e.label},e.value))})]}),i("div",{className:"space-y-2",children:[t(o,{htmlFor:"points",children:"Story Points"}),t(r,{id:"points",type:"number",min:"1",max:"100",value:a.points,onChange:e=>l("points",parseInt(e.target.value)||1),placeholder:"Enter story points",required:!0})]}),i("div",{className:"space-y-2",children:[t(o,{htmlFor:"epic",children:"Epic"}),i(g,{value:a.epicId,onValueChange:e=>l("epicId",e),children:[t(v,{children:t(u,{placeholder:"Select an epic"})}),t(y,{children:C.map(e=>t(s,{value:e.id,children:i("div",{className:"flex items-center gap-2",children:[t("div",{className:`w-3 h-3 rounded-full ${e.color}`}),e.name]})},e.id))})]})]}),i("div",{className:"space-y-2",children:[t(o,{htmlFor:"sprint",children:"Sprint (Optional)"}),i(g,{value:a.sprintId,onValueChange:e=>l("sprintId",e),children:[t(v,{children:t(u,{placeholder:"Select a sprint"})}),i(y,{children:[t(s,{value:"none",children:"No Sprint"}),D.map(e=>t(s,{value:e.id,children:i("div",{className:"flex items-center gap-2",children:[e.name,e.isActive&&t("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},e.id))]})]})]}),i("div",{className:"space-y-2",children:[t(o,{htmlFor:"assignee",children:"Assignee"}),t(r,{id:"assignee",value:a.assignee,onChange:e=>l("assignee",e.target.value),placeholder:"Enter assignee name",required:!0})]}),i(S,{children:[t(d,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),t(d,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};export{K as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as w,b as f,i as g,j as n,m as s,n as r}from"./chunk-K4RVBOIC.mjs";import{b as x}from"./chunk-BPSLUO5I.mjs";import{b as i}from"./chunk-J2IHT57D.mjs";import{useState as D}from"react";import{ChevronDown as h,Users as N,Plus as M}from"lucide-react";import{Fragment as v,jsx as e,jsxs as a}from"react/jsx-runtime";var d=[{id:"1",name:"Product Development",avatar:"PD",isRecent:!0},{id:"2",name:"Engineering",avatar:"ENG",isRecent:!0},{id:"3",name:"Marketing Team",avatar:"MT",isRecent:!0},{id:"4",name:"Design System",avatar:"DS",isRecent:!1},{id:"5",name:"Sales Operations",avatar:"SO",isRecent:!1},{id:"6",name:"Customer Success",avatar:"CS",isRecent:!1}],I=({currentTeam:o=d[0],onTeamChange:c})=>{let[m,l]=D(!1),u=d.filter(t=>t.isRecent),p=d,T=m?p:u;return a(w,{children:[e(f,{asChild:!0,children:a(x,{variant:"outline",className:"gap-2 h-9",children:[a("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:o.avatar}),e("span",{className:"font-medium",children:o.name})]}),e(h,{className:"h-4 w-4 opacity-50"})]})}),a(g,{className:"w-64",align:"start",children:[a(s,{className:"flex items-center gap-2",children:[e(N,{className:"h-4 w-4"}),"Switch Team"]}),e(r,{}),!m&&a(v,{children:[e(s,{className:"text-xs text-muted-foreground px-2 py-1",children:"Recent Teams"}),u.map(t=>a(n,{onClick:()=>c(t),className:"flex items-center gap-2 cursor-pointer",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:t.avatar}),e("span",{children:t.name}),t.id===o.id&&e(i,{variant:"secondary",className:"ml-auto text-xs",children:"Current"})]},t.id)),e(r,{}),e(n,{onClick:()=>l(!0),className:"text-muted-foreground cursor-pointer",children:"Show all teams"})]}),m&&a(v,{children:[e(s,{className:"text-xs text-muted-foreground px-2 py-1",children:"All Teams"}),p.map(t=>a(n,{onClick:()=>c(t),className:"flex items-center gap-2 cursor-pointer",children:[e("div",{className:"w-6 h-6 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:t.avatar}),e("span",{children:t.name}),t.id===o.id&&e(i,{variant:"secondary",className:"ml-auto text-xs",children:"Current"})]},t.id)),e(r,{}),e(n,{onClick:()=>l(!1),className:"text-muted-foreground cursor-pointer",children:"Show recent teams only"})]}),e(r,{}),a(n,{className:"text-muted-foreground cursor-pointer",children:[e(M,{className:"h-4 w-4 mr-2"}),"Create new team"]})]})]})};export{I as a};
|
|
@@ -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-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{
|
|
4
|
+
import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";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-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.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 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-QNIE2MLB.mjs";import{a as o}from"./chunk-HTVHCBXQ.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -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-4ZRLE77J.mjs";import{a as o}from"./chunk-E6KVX2UG.mjs";import{a as e}from"./chunk-KTXQBXXJ.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{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-QNIE2MLB.mjs";import{b as f}from"./chunk-BPSLUO5I.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-4YFMDLHL.mjs";import{a as b}from"./chunk-KTXQBXXJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-I4GEIHT2.mjs";import{b as y}from"./chunk-DINASYAM.mjs";import{a as P}from"./chunk-HTVHCBXQ.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a
|
|
4
|
+
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a}from"./chunk-AVBIHINB.mjs";import{a as m}from"./chunk-2ELCHEGN.mjs";import{a as d}from"./chunk-UQASICDL.mjs";import{a as n}from"./chunk-VCZPEEMH.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-KETV2XVN.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p}from"./chunk-RHB4QMWH.mjs";import{a as v}from"./chunk-PY7TFY5K.mjs";import{c as b,d as h}from"./chunk-QNIE2MLB.mjs";import{a as k}from"./chunk-VXGRJCCM.mjs";import{a}from"./chunk-HTVHCBXQ.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 @@
|
|
|
1
|
+
import{a as v,d as b,g as f,i}from"./chunk-OGZERPA4.mjs";import{a as p}from"./chunk-EECIYMTX.mjs";import{a as g}from"./chunk-JPZJET3B.mjs";import{b as u}from"./chunk-J2IHT57D.mjs";import{useState as h}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var R=({label:C,value:n,onValueChange:m,options:c,placeholder:y="Search...",allowCustomValue:s=!1})=>{let[S,l]=h(!1),[t,o]=h(""),O=c.find(e=>e.value===n),d=c.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),N=e=>{m(e),l(!1),o("")},I=()=>{s&&t.trim()&&!c.find(e=>e.value===t.trim())&&(m(t.trim()),l(!1),o(""))};return r("div",{className:"space-y-1",children:[a(p,{className:"text-xs text-gray-600",children:C}),r(v,{value:n,onValueChange:N,open:S,onOpenChange:l,children:[a(b,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:a(u,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>l(!S),children:O?.label||n||"Select..."})}),r(f,{children:[a("div",{className:"p-2",children:a(g,{placeholder:y,value:t,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key==="Enter"&&s&&I()},className:"mb-2"})}),d.map(e=>a(i,{value:e.value,children:e.label},e.value)),s&&t.trim()&&!d.find(e=>e.value===t.trim())&&r(i,{value:t.trim(),children:['Add "',t.trim(),'"']})]})]})]})};export{R as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g,b as h,c as b}from"./chunk-
|
|
4
|
+
import{a as g,b as h,c as b}from"./chunk-I4GEIHT2.mjs";import{b as y}from"./chunk-DINASYAM.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
5
5
|
${o===s?"opacity-100":"opacity-0"}
|
|
6
6
|
w-full h-full bg-cover bg-center`,children:o===0?t(b,{hero:x,title:c.title,logoImage:m}):w(I,{children:[e.blockName&&t(h,{title:e.blockName}),t(y,{blocks:[e],fill:!0}),t(g,{logoImage:m})]})})},o))}),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:r,children:t(E,{})})]})},E=()=>t(k,{children:t(v.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:t(v.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});export{K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as n}from"./chunk-KJIBE57R.mjs";import{a as u}from"./chunk-CX4XB5W2.mjs";import{a as m}from"./chunk-EECIYMTX.mjs";import{a as i}from"./chunk-JPZJET3B.mjs";import{b as s}from"./chunk-BPSLUO5I.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-CX4XB5W2.mjs";import{a as d}from"./chunk-EECIYMTX.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{useState as m}from"react";import{Edit as x}from"lucide-react";import{jsx as a,jsxs as g}from"react/jsx-runtime";var P=({fieldName:f,value:i,label:u,multiline:t=!1,onSave:y,className:v=""})=>{let[b,n]=m(!1),[r,o]=m(""),h=()=>{n(!0),o(i)},s=()=>{r!==i&&y(f,r),n(!1)},l=e=>{e.key==="Enter"&&!t||e.key==="Enter"&&e.ctrlKey&&t?s():e.key==="Escape"&&(n(!1),o(""))};return g("div",{className:`space-y-2 ${v}`,children:[a(d,{children:u}),b?t?a(p,{value:r,onChange:e=>o(e.target.value),onBlur:s,onKeyDown:l,autoFocus:!0,rows:4,className:"resize-none"}):a(c,{value:r,onChange:e=>o(e.target.value),onBlur:s,onKeyPress:l,autoFocus:!0,className:"text-lg font-medium"}):g("div",{onClick:h,className:`cursor-pointer hover:bg-gray-50 p-2 rounded border border-transparent hover:border-gray-200 transition-colors group ${t?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[a("span",{className:t?"text-sm text-gray-700":"text-lg font-medium text-gray-900",children:i||"Click to edit..."}),a(x,{className:"h-4 w-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as c}from"./chunk-J2IHT57D.mjs";import{a as s,b as r,c as o,e as n}from"./chunk-4YFMDLHL.mjs";import{CalendarIcon as f,UserIcon as C}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function N({deal:a,customer:i,categories:p,onClick:m,compact:x=!1}){let d=p.find(l=>l.type==="proposition"&&(a.categories??[]).includes(l.id));return x?t(s,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:m,children:[t(r,{className:"pb-1 pt-2",children:[e(o,{className:"text-sm font-semibold text-foreground",children:i?.name}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),e(n,{className:"text-xs text-gray-500 pb-2",children:e("div",{className:"flex justify-between items-center mb-1",children:e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})})})]}):t(s,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:m,children:[t(r,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(o,{className:"text-lg font-semibold text-foreground",children:i?.name})}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),t(n,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-accent",children:[e(C,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee.name})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-500",children:[e(f,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.updatedAt).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:d&&e(c,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:d.name})})]})]})}export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-QNIE2MLB.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g,d as m,g as v,i as u}from"./chunk-OGZERPA4.mjs";import{a as i}from"./chunk-EECIYMTX.mjs";import{b as d}from"./chunk-J2IHT57D.mjs";import{useState as b}from"react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var y=({label:S,value:r,onValueChange:p,options:s,showColor:o=!1})=>{let[c,n]=b(!1),t=s.find(e=>e.value===r);return l("div",{className:"space-y-1",children:[a(i,{className:"text-xs text-gray-600",children:S}),l(g,{value:r,onValueChange:p,open:c,onOpenChange:n,children:[a(m,{className:"h-auto p-0 border-none bg-transparent hover:bg-gray-50 rounded-md",children:l(d,{variant:"secondary",className:"cursor-pointer hover:bg-gray-200 transition-colors",onClick:()=>n(!c),children:[o&&t?.color&&a("div",{className:`w-2 h-2 rounded-full ${t.color} mr-1`}),t?.label||"Select..."]})}),a(v,{children:s.map(e=>a(u,{value:e.value,children:o&&e.color?l("div",{className:"flex items-center gap-2",children:[a("div",{className:`w-3 h-3 rounded-full ${e.color}`}),e.label]}):e.label},e.value))})]})]})};export{y as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as m}from"./chunk-PFWODHNV.mjs";import{a as i}from"./chunk-MEWCJ4MA.mjs";import{useState as P,useCallback as M}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as x}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:o,addNewDeal:p,updateDeal:l,addComment:C,addNewCustomer:g}){let[a,u]=P(null),D=e=>(o.deals??[]).filter(t=>t.status===e),b=e=>e.reduce((t,s)=>t+(s.value||0),0),S=(e,t)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*s[t],0)},f=M(e=>{let{source:t,destination:s}=e;if(!s||t.droppableId===s.droppableId&&t.index===s.index)return;let c=t.droppableId,d=s.droppableId,n=o.deals?.filter(R=>R.id===t.index)[0],W=[...o.deals??[]];n&&(n.status=d,l(n))},[l]);return r(v,{onDragEnd:f,children:x("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=D(e);return r(m,{status:e,deals:t,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:u,calculateColumnValue:b,calculateWeightedValue:S,addNewDeal:e==="Cold"?p:void 0,onAddCustomer:g},e)})}),a&&r(i,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>C(a.id.toString(),e)})]})})}export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-KJIBE57R.mjs";import{b as s}from"./chunk-J2IHT57D.mjs";import{a as d}from"./chunk-4YFMDLHL.mjs";import{jsx as l,jsxs as r}from"react/jsx-runtime";var v=({epics:a,selectedEpics:t,onSelectionChange:i})=>{let o=e=>{t.includes(e)?i(t.filter(n=>n!==e)):i([...t,e])};return l(d,{className:"p-4 bg-white shadow-sm",children:r("div",{className:"space-y-3",children:[r("div",{className:"flex items-center justify-between",children:[l("h3",{className:"font-medium text-gray-900",children:"Filter by Epic"}),l("button",{onClick:()=>{t.length===a.length?i([]):i(a.map(e=>e.id))},className:"text-sm text-blue-600 hover:text-blue-800 font-medium",children:t.length===a.length?"Deselect All":"Select All"})]}),l("div",{className:"space-y-2",children:a.map(e=>r("div",{className:"flex items-center space-x-3",children:[l(m,{id:e.id,checked:t.includes(e.id),onCheckedChange:()=>o(e.id)}),r("div",{className:"flex items-center gap-2 flex-1",children:[l("div",{className:`w-3 h-3 rounded-full ${e.color}`}),l("label",{htmlFor:e.id,className:"text-sm font-medium text-gray-700 cursor-pointer flex-1",children:e.name})]})]},e.id))}),t.length>0&&l("div",{className:"pt-2 border-t border-gray-100",children:r(s,{variant:"secondary",className:"text-xs",children:[t.length," of ",a.length," epics selected"]})})]})})};export{v as a};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{b as o}from"./chunk-BPSLUO5I.mjs";import{useState as r}from"react";import{ChevronRight as A,ChevronDown as E,FileText as x,Folder as I,Plus as P,Edit2 as k,Trash2 as B}from"lucide-react";import{Fragment as v,jsx as e,jsxs as n}from"react/jsx-runtime";var w=[{id:"1",title:"Project Overview",content:`# Project Overview
|
|
2
|
+
|
|
3
|
+
This is the main project documentation...`,isFolder:!1},{id:"2",title:"User Guides",content:"",isFolder:!0,children:[{id:"2-1",title:"Getting Started",content:`# Getting Started
|
|
4
|
+
|
|
5
|
+
Welcome to our application...`,parentId:"2",isFolder:!1},{id:"2-2",title:"Advanced Features",content:`# Advanced Features
|
|
6
|
+
|
|
7
|
+
Learn about advanced functionality...`,parentId:"2",isFolder:!1}]},{id:"3",title:"API Documentation",content:"",isFolder:!0,children:[{id:"3-1",title:"Authentication",content:`# Authentication API
|
|
8
|
+
|
|
9
|
+
API endpoints for user authentication...`,parentId:"3",isFolder:!1},{id:"3-2",title:"Data Management",content:`# Data Management API
|
|
10
|
+
|
|
11
|
+
CRUD operations and data handling...`,parentId:"3",isFolder:!1}]}],G=()=>{let[p,D]=r(w),[s,h]=r(w[0]),[d,b]=r(new Set(["2","3"])),[c,m]=r(null),[u,g]=r(""),F=t=>{let i=new Set(d);i.has(t)?i.delete(t):i.add(t),b(i)},y=t=>{t.isFolder||h(t)},C=t=>{m(t.id),g(t.content)},S=()=>{if(c&&s){let t=f(p,c,{content:u});D(t),h({...s,content:u}),m(null)}},f=(t,i,a)=>t.map(l=>l.id===i?{...l,...a}:l.children?{...l,children:f(l.children,i,a)}:l),N=(t,i=0)=>t.map(a=>n("div",{className:`ml-${i*4}`,children:[n("div",{className:`flex items-center gap-2 p-2 rounded cursor-pointer hover:bg-gray-100 ${s?.id===a.id?"bg-blue-50 border-l-4 border-blue-500":""}`,onClick:()=>a.isFolder?F(a.id):y(a),children:[a.isFolder?n(v,{children:[d.has(a.id)?e(E,{className:"h-4 w-4 text-gray-500"}):e(A,{className:"h-4 w-4 text-gray-500"}),e(I,{className:"h-4 w-4 text-blue-500"})]}):n(v,{children:[e("div",{className:"w-4"}),e(x,{className:"h-4 w-4 text-gray-500"})]}),e("span",{className:"text-sm font-medium text-gray-700",children:a.title})]}),a.isFolder&&a.children&&d.has(a.id)&&e("div",{className:"ml-4",children:N(a.children,i+1)})]},a.id));return n("div",{className:"flex h-full",children:[n("div",{className:"w-80 border-r bg-gray-50",children:[e("div",{className:"p-4 border-b",children:n("div",{className:"flex items-center justify-between",children:[e("h2",{className:"text-lg font-semibold text-gray-900",children:"Documentation"}),n(o,{size:"sm",className:"gap-1",children:[e(P,{className:"h-3 w-3"}),"New"]})]})}),e("div",{className:"p-2 overflow-y-auto h-full",children:N(p)})]}),e("div",{className:"flex-1 flex flex-col",children:s?n(v,{children:[e("div",{className:"p-4 border-b bg-white",children:n("div",{className:"flex items-center justify-between",children:[e("h1",{className:"text-2xl font-bold text-gray-900",children:s.title}),n("div",{className:"flex gap-2",children:[n(o,{variant:"outline",size:"sm",onClick:()=>C(s),className:"gap-1",children:[e(k,{className:"h-3 w-3"}),"Edit"]}),n(o,{variant:"outline",size:"sm",className:"gap-1",children:[e(B,{className:"h-3 w-3"}),"Delete"]})]})]})}),e("div",{className:"flex-1 p-6 bg-white overflow-y-auto",children:c===s.id?n("div",{className:"space-y-4",children:[e("textarea",{value:u,onChange:t=>g(t.target.value),className:"w-full h-96 p-4 border rounded-lg font-mono text-sm",placeholder:"Write your documentation in Markdown..."}),n("div",{className:"flex gap-2",children:[e(o,{onClick:S,children:"Save"}),e(o,{variant:"outline",onClick:()=>m(null),children:"Cancel"})]})]}):e("div",{className:"prose max-w-none",children:e("pre",{className:"whitespace-pre-wrap font-sans",children:s.content})})})]}):e("div",{className:"flex-1 flex items-center justify-center text-gray-500",children:n("div",{className:"text-center",children:[e(x,{className:"h-12 w-12 mx-auto mb-4 text-gray-300"}),e("p",{children:"Select a document to view its content"})]})})})]})};export{G as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-QNIE2MLB.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
2
2
|
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),p=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),h=a=>{let{title:r,hero:t,logoImage:s}=a;return i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(l,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width?t.media.width??1920:1920,height:t.media&&t.media.height?t.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(l,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:r}),t.richText&&e(o,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{n as a,p as b,h as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-LHL2AONM.mjs";import{a as i}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-LHL2AONM.mjs";import{a as i}from"./chunk-NWEA3O2Q.mjs";import{a as l}from"./chunk-VZVXDVOI.mjs";import{a as m}from"./chunk-FLGGV2UV.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l,b as m,d as c}from"./chunk-MU4ETGDT.mjs";import{a as p}from"./chunk-BMN3FVZS.mjs";import{a as N}from"./chunk-CX4XB5W2.mjs";import{a as r}from"./chunk-EECIYMTX.mjs";import{a as D,f as g,g as P,i as h}from"./chunk-BUCI7BPM.mjs";import{a as v}from"./chunk-JPZJET3B.mjs";import{b as s}from"./chunk-BPSLUO5I.mjs";import{a as d}from"./chunk-HTVHCBXQ.mjs";import{useState as x}from"react";import{CalendarIcon as S}from"lucide-react";import{format as C}from"date-fns";import{jsx as t,jsxs as i}from"react/jsx-runtime";var I=({isOpen:b,onClose:f,onAddSprint:A})=>{let[e,o]=x({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),y=a=>{a.preventDefault(),!(!e.name||!e.startDate||!e.endDate)&&(A({name:e.name,description:e.description,startDate:e.startDate,endDate:e.endDate,isActive:e.isActive,isSelected:!1}),o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f())},u=()=>{o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f()};return t(D,{open:b,onOpenChange:u,children:i(g,{className:"sm:max-w-md",children:[t(P,{children:t(h,{children:"Add New Sprint"})}),i("form",{onSubmit:y,className:"space-y-4",children:[i("div",{className:"space-y-2",children:[t(r,{htmlFor:"name",children:"Sprint Name *"}),t(v,{id:"name",value:e.name,onChange:a=>o(n=>({...n,name:a.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),i("div",{className:"space-y-2",children:[t(r,{htmlFor:"description",children:"Description"}),t(N,{id:"description",value:e.description,onChange:a=>o(n=>({...n,description:a.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),i("div",{className:"grid grid-cols-2 gap-4",children:[i("div",{className:"space-y-2",children:[t(r,{children:"Start Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.startDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.startDate?C(e.startDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.startDate,onSelect:a=>o(n=>({...n,startDate:a})),initialFocus:!0})})]})]}),i("div",{className:"space-y-2",children:[t(r,{children:"End Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.endDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.endDate?C(e.endDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.endDate,onSelect:a=>o(n=>({...n,endDate:a})),initialFocus:!0,disabled:a=>e.startDate?a<e.startDate:!1})})]})]})]}),i("div",{className:"flex items-center space-x-2",children:[t("input",{type:"checkbox",id:"isActive",checked:e.isActive,onChange:a=>o(n=>({...n,isActive:a.target.checked})),className:"rounded border-gray-300"}),t(r,{htmlFor:"isActive",children:"Set as active sprint"})]}),i("div",{className:"flex justify-end gap-3 pt-4",children:[t(s,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),t(s,{type:"submit",disabled:!e.name||!e.startDate||!e.endDate,children:"Add Sprint"})]})]})]})})};export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as r}from"./chunk-FRTYO74I.mjs";import{a as m}from"./chunk-KHZPOMKL.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-SUO6GOJS.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,c as g,d as p,g as v,i as b}from"./chunk-OGZERPA4.mjs";import{a as S}from"./chunk-6T322YHB.mjs";import{a as B}from"./chunk-KJIBE57R.mjs";import{a as F}from"./chunk-CX4XB5W2.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as w,f as P,g as L,i as A}from"./chunk-BUCI7BPM.mjs";import{a as d}from"./chunk-JPZJET3B.mjs";import{b as m}from"./chunk-BPSLUO5I.mjs";import{b as I}from"./chunk-J2IHT57D.mjs";import{useState as x,useEffect as M}from"react";import{UserIcon as Q,CalendarIcon as $,SaveIcon as j,PlusIcon as q}from"lucide-react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function ie({deal:c,users:f,customer:T,categories:U,onClose:E,onSave:O,onAddComment:V}){let[t,h]=x({...c,value:c.value||0,comments:c.comments||[],customer:c.customer||{}}),[C,D]=x(""),[H,y]=x(!1),[i,s]=x(null);M(()=>{y(JSON.stringify(c)!==JSON.stringify(t))},[c,t]);let R=async()=>{try{let e=await O(t);e.success?(y(!1),s(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},n=(e,o)=>{h(N=>({...N,[e]:o}))},G=e=>{let o=(t.categories||[]).includes(e)?(t.categories||[]).filter(N=>N!==e):[...t.categories||[],e];n("categories",o)},J=async()=>{if(C.trim()){let e={text:C,timestamp:new Date().toISOString()};try{let o=await V(e);if(!o.success){console.error("Failed to add comment:",o.errors);return}}catch(o){console.error("Failed to add comment:",o)}h(o=>({...o,comments:[...o.comments||[],e]})),D("")}},k=e=>{switch(e){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},W=e=>f?.find(o=>o.id===Number(e));return a(w,{open:!0,children:r(P,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[r(L,{className:"flex flex-row items-center justify-between",children:[a(A,{className:"text-2xl font-bold",children:T?.name}),r("div",{className:"flex space-x-2",children:[a(m,{variant:"outline",onClick:E,children:"Close"}),r(m,{onClick:R,disabled:!H,children:[a(j,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),r(S,{className:"flex-grow pr-4",children:[r("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2 m-1",children:i==="value"?a(d,{type:"number",value:t.value,onChange:e=>n("value",Number(e.target.value)),onBlur:()=>s(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):r("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("value"),children:["\xA3",t.value?.toLocaleString()]})}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Assignee"}),i==="assignee"?r(u,{value:t?.assignee?.id?.toString()||"",onValueChange:e=>n("assignee",W(e)),children:[a(p,{children:a(g,{placeholder:"Select assignee"})}),a(v,{children:f&&f.map(e=>a(b,{value:e?.id?.toString()||"",children:e.name},e.id))})]}):r("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("assignee"),children:[a(Q,{className:"w-4 h-4 text-gray-400"}),a("span",{children:t.assignee.name})]})]}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Closure Date"}),i==="closureDate"?a(d,{type:"date",value:t.closureDate?.split("T")[0]??"",onChange:e=>n("closureDate",e.target.value),onBlur:()=>s(null),className:"mr-2",autoFocus:!0}):r("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("closureDate"),children:[a($,{className:"w-4 h-4 text-gray-400"}),a("span",{children:t.closureDate?new Date(t.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Description"}),i==="description"?a(F,{value:t.description||"",onChange:e=>n("description",e.target.value),onBlur:()=>s(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>s("description"),children:t.description})]})}),r("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Status"}),i==="status"?r(u,{value:t.status,onValueChange:e=>{n("status",e),s(null)},children:[a(p,{children:a(g,{placeholder:"Select status"})}),a(v,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(e=>a(b,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("status"),children:t.status})]}),r("div",{className:"grid col-span-2 gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Categories"}),i==="categories"?a("div",{className:"grid grid-cols-2 gap-2 m-1",children:U.map(e=>r("div",{className:"flex items-center space-x-2",children:[a(B,{id:e.id?.toString()||"",checked:(t.categories||[]).some(o=>o.id===e.id),onCheckedChange:()=>e.id!==void 0&&G(e)}),a("label",{htmlFor:(e.id??"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id))}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("categories"),children:t.categories&&t.categories.map(e=>{let o=e;return o?a(I,{variant:"outline",className:k(o.type||"sector"),children:o.name},o.id):null})})]}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"COGE Status"}),i==="gecoStatus"?r(u,{value:t.gecoStatus??void 0,onValueChange:e=>{n("gecoStatus",e),s(null)},children:[a(p,{children:a(g,{placeholder:"Select status"})}),a(v,{children:["firm","forecast","other"].map(e=>a(b,{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("gecoStatus"),children:t.gecoStatus?t.gecoStatus.charAt(0).toUpperCase()+t.gecoStatus.slice(1):"N/A"})]})]}),r("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[r("div",{className:"grid gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Comments"}),a(S,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:t.comments&&t.comments.slice().sort((e,o)=>new Date(o.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>r("div",{className:"p-3 rounded-lg",children:[a("p",{className:"text-sm text-foreground",children:e.text}),r("p",{className:"text-xs text-foreground mt-1",children:[e?.author?.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id))})}),r("div",{className:"flex mt-2",children:[a(d,{value:C,onChange:e=>D(e.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),r(m,{onClick:J,className:"ml-2",children:[a(q,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),r("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(t.updatedAt||"").toLocaleString()]})]})]})]})})}export{ie as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-CGBMXBIY.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-WKFNZUIR.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:a,logoDark:m}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
|