cortex-react-components 1.62.2 → 1.63.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-GHXEOXV4.mjs → chunk-2BYCSW34.mjs} +1 -1
- package/dist/chunk-2CVUW74E.mjs +1 -0
- package/dist/chunk-2WXIUKCO.mjs +1 -0
- package/dist/{chunk-B7STYVDB.mjs → chunk-3AUZS6TK.mjs} +1 -1
- package/dist/{chunk-A544CNOK.mjs → chunk-3OLVHVK2.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-3PVDUJNF.mjs} +1 -1
- package/dist/{chunk-RG5W7B5K.mjs → chunk-4FVKNM6C.mjs} +1 -1
- package/dist/chunk-4GL57G4E.mjs +4 -0
- package/dist/{chunk-ZJCHVWSF.mjs → chunk-6HVZ5G3G.mjs} +1 -1
- package/dist/chunk-6L2BDKJU.mjs +6 -0
- package/dist/{chunk-JU7C3V5N.mjs → chunk-6XMDC6MI.mjs} +1 -1
- package/dist/chunk-7LF2QW5F.mjs +1 -0
- package/dist/chunk-7SPGDJJI.mjs +1 -0
- package/dist/{chunk-XIVKVQK2.mjs → chunk-7U6VVPQK.mjs} +1 -1
- package/dist/{chunk-JPGNI5UZ.mjs → chunk-A7ZACVB3.mjs} +1 -1
- package/dist/{chunk-WPL2QWNG.mjs → chunk-AU5HS6FK.mjs} +1 -1
- package/dist/{chunk-OMVXDUX7.mjs → chunk-AZHIBMT6.mjs} +1 -1
- package/dist/{chunk-CJF6GVGP.mjs → chunk-BEOBHG7Z.mjs} +1 -1
- package/dist/{chunk-GYDVBUKO.mjs → chunk-BGQKHEB3.mjs} +1 -1
- package/dist/{chunk-JLCWVIEP.mjs → chunk-BRNBNHPP.mjs} +1 -1
- package/dist/{chunk-NP2M5K7O.mjs → chunk-CYEI7ZEM.mjs} +1 -1
- package/dist/{chunk-DVGPU4EL.mjs → chunk-DXOIGG75.mjs} +1 -1
- package/dist/{chunk-COI2LCY2.mjs → chunk-E3HCMSS7.mjs} +1 -1
- package/dist/chunk-E6ZAA4QH.mjs +1 -0
- package/dist/{chunk-5ALQQYYE.mjs → chunk-FQPOVP4A.mjs} +1 -1
- package/dist/chunk-FWBG46K2.mjs +1 -0
- package/dist/{chunk-VGQTRTPZ.mjs → chunk-GZP2BSIJ.mjs} +1 -1
- package/dist/chunk-HOQ3CJDL.mjs +1 -0
- package/dist/chunk-HZXNJWP5.mjs +1 -0
- package/dist/chunk-I3FBQX6H.mjs +11 -0
- package/dist/{chunk-FGHN2OHF.mjs → chunk-I3HJJ3O6.mjs} +1 -1
- package/dist/chunk-IAACGKX2.mjs +1 -0
- package/dist/{chunk-MUBDAI2K.mjs → chunk-JKRLWXXO.mjs} +1 -1
- package/dist/{chunk-R7IAPAL5.mjs → chunk-N363IQBL.mjs} +1 -1
- package/dist/{chunk-FN5C27GW.mjs → chunk-N3ZBFP4A.mjs} +1 -1
- package/dist/{chunk-RZUYAUCR.mjs → chunk-NX6L3JEA.mjs} +1 -1
- package/dist/{chunk-65BHP4TM.mjs → chunk-NXV22G4T.mjs} +1 -1
- package/dist/chunk-OTT43GVL.mjs +1 -0
- package/dist/{chunk-64DD3N4S.mjs → chunk-PADGOK5C.mjs} +1 -1
- package/dist/{chunk-X4EKDFOJ.mjs → chunk-PJ7KGG2L.mjs} +1 -1
- package/dist/{chunk-EVVDCPEA.mjs → chunk-PMXMC5CA.mjs} +1 -1
- package/dist/{chunk-IH37BDR2.mjs → chunk-QEQ5FQDS.mjs} +1 -1
- package/dist/chunk-QUONAVFG.mjs +1 -0
- package/dist/{chunk-X4Q7WZZS.mjs → chunk-R52W36TJ.mjs} +1 -1
- package/dist/chunk-RWM3YI4H.mjs +1 -0
- package/dist/{chunk-XZ4GLJWK.mjs → chunk-SKQYQ4SD.mjs} +1 -1
- package/dist/{chunk-UDQTFQR7.mjs → chunk-SN4DCMUU.mjs} +1 -1
- package/dist/{chunk-U7Q6ZRR3.mjs → chunk-SSV5U7GW.mjs} +1 -1
- package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
- package/dist/{chunk-LF7I56HN.mjs → chunk-VATD3NQA.mjs} +1 -1
- package/dist/{chunk-3BATRS4C.mjs → chunk-VNGK6ACI.mjs} +1 -1
- package/dist/{chunk-FSYU3D5O.mjs → chunk-WI6JBSNW.mjs} +1 -1
- package/dist/chunk-WTQ7QZRC.mjs +1 -0
- package/dist/chunk-XJZCX25R.mjs +1 -0
- package/dist/chunk-XPS3NXF3.mjs +1 -0
- package/dist/{chunk-L5MDFQGH.mjs → chunk-YLBXDW77.mjs} +1 -1
- package/dist/chunk-YUSO4OFY.mjs +1 -0
- package/dist/{chunk-Z3YAIJQT.mjs → chunk-YUZINX2Q.mjs} +1 -1
- package/dist/{chunk-YPK6OLRS.mjs → chunk-YZIXPIYP.mjs} +1 -1
- package/dist/{chunk-6XGUOJCN.mjs → chunk-Z2U42GC3.mjs} +1 -1
- package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
- 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/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/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +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.mjs +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/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 +7 -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/KanbanBoard.css +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.d.ts +30 -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 +20 -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 +11 -0
- package/dist/components/DigitalColleagues/PlanningView.js +1 -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 +218 -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 +221 -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 +221 -0
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.mjs +1 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/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/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.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- 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/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-VEWTPB7K.mjs +0 -4
|
@@ -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 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-BEOBHG7Z.mjs";import{d as r}from"./chunk-NX6L3JEA.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a}from"./chunk-T6FBWMZR.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,c as n,d,g as c,i as s}from"./chunk-OGZERPA4.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as I}from"./chunk-CX4XB5W2.mjs";import{a as S,f as b,g as T,h as k,i as h}from"./chunk-BUCI7BPM.mjs";import{a as g}from"./chunk-JPZJET3B.mjs";import{b as u}from"./chunk-BPSLUO5I.mjs";import{b as v}from"./chunk-J2IHT57D.mjs";import{useState as w}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var f=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800"},{value:"task",label:"Task",color:"bg-green-100 text-green-800"},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800"},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800"}],q=({isOpen:N,onClose:p,onAddTask:C,epics:x,sprints:D})=>{let[i,y]=w({title:"",description:"",status:"todo",priority:"medium",type:"story",epicId:"",sprintId:"none",assignee:""}),A=t=>{t.preventDefault(),i.title.trim()&&i.epicId&&(C({title:i.title.trim(),description:i.description.trim(),status:"todo",priority:i.priority,type:i.type,epicId:i.epicId,sprintId:i.sprintId==="none"?void 0:i.sprintId,assignee:i.assignee.trim()||"Unassigned"}),y({title:"",description:"",status:"todo",priority:"medium",type:"story",epicId:"",sprintId:"none",assignee:""}),p())},o=(t,F)=>{y(L=>({...L,[t]:F}))},m=f.find(t=>t.value===i.type);return e(S,{open:N,onOpenChange:p,children:a(b,{className:"sm:max-w-md",children:[e(T,{children:e(h,{children:"Add New Task"})}),a("form",{onSubmit:A,className:"space-y-4",children:[a("div",{className:"space-y-2",children:[e(l,{htmlFor:"title",children:"Task Title"}),e(g,{id:"title",value:i.title,onChange:t=>o("title",t.target.value),placeholder:"Enter task title",required:!0})]}),a("div",{className:"space-y-2",children:[e(l,{htmlFor:"description",children:"Description"}),e(I,{id:"description",value:i.description,onChange:t=>o("description",t.target.value),placeholder:"Enter task description",rows:3})]}),a("div",{className:"grid grid-cols-2 gap-4",children:[a("div",{className:"space-y-2",children:[e(l,{children:"Type"}),a(r,{value:i.type,onValueChange:t=>o("type",t),children:[e(d,{children:e(n,{})}),e(c,{children:f.map(t=>e(s,{value:t.value,children:e("div",{className:"flex items-center gap-2",children:e(v,{className:`text-xs ${t.color}`,children:t.label})})},t.value))})]}),m&&e(v,{className:`text-xs ${m.color} w-fit`,children:m.label})]}),a("div",{className:"space-y-2",children:[e(l,{children:"Priority"}),a(r,{value:i.priority,onValueChange:t=>o("priority",t),children:[e(d,{children:e(n,{})}),a(c,{children:[e(s,{value:"low",children:"Low"}),e(s,{value:"medium",children:"Medium"}),e(s,{value:"high",children:"High"})]})]})]})]}),a("div",{className:"space-y-2",children:[e(l,{htmlFor:"epic",children:"Epic"}),a(r,{value:i.epicId,onValueChange:t=>o("epicId",t),children:[e(d,{children:e(n,{placeholder:"Select an epic"})}),e(c,{children:x.map(t=>e(s,{value:t.id,children:a("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-3 h-3 rounded-full ${t.color}`}),t.name]})},t.id))})]})]}),a("div",{className:"space-y-2",children:[e(l,{htmlFor:"sprint",children:"Sprint (Optional)"}),a(r,{value:i.sprintId,onValueChange:t=>o("sprintId",t),children:[e(d,{children:e(n,{placeholder:"Select a sprint"})}),a(c,{children:[e(s,{value:"none",children:"No Sprint"}),D.map(t=>e(s,{value:t.id,children:a("div",{className:"flex items-center gap-2",children:[t.name,t.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},t.id))]})]})]}),a("div",{className:"space-y-2",children:[e(l,{htmlFor:"assignee",children:"Assignee"}),e(g,{id:"assignee",value:i.assignee,onChange:t=>o("assignee",t.target.value),placeholder:"Enter assignee name",required:!0})]}),a(k,{children:[e(u,{type:"button",variant:"outline",onClick:p,children:"Cancel"}),e(u,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-FQPOVP4A.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c 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-
|
|
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-ZYYWN6XG.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 i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-3AUZS6TK.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-T6FBWMZR.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
1
|
+
import{a as v}from"./chunk-WI6JBSNW.mjs";import{a as p}from"./chunk-BRNBNHPP.mjs";import{c as b,d as h}from"./chunk-FQPOVP4A.mjs";import{a as k}from"./chunk-IC57R2EU.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-FQPOVP4A.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 a}from"./chunk-J2IHT57D.mjs";import{a as s}from"./chunk-4YFMDLHL.mjs";import{Calendar as u,User as m,AlertCircle as x,Bug as b,Zap as y,BookOpen as f}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var T=({task:r,epic:h,onDragStart:d,onTaskClick:p,isCompact:g=!1})=>{let i=N=>{d(r)},o=()=>{p(r)},n=()=>{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"}},l=()=>{switch(r.type){case"story":return e(f,{className:"h-3 w-3"});case"bug":return e(b,{className:"h-3 w-3"});case"spike":return e(y,{className:"h-3 w-3"});case"task":default:return e(x,{className:"h-3 w-3"})}},c=()=>{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 g?t(s,{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:i,onClick:o,children:[t("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${c()}`,children:l()}),e(a,{className:`text-xs px-2 py-0.5 ${n()}`,children:r.priority})]}),e("h4",{className:"font-medium text-gray-900 text-sm mb-1 line-clamp-2 select-none-important",children:r.title}),t("div",{className:"flex items-center gap-1 text-xs text-gray-500",children:[e(m,{className:"h-3 w-3"}),e("span",{className:"truncate",children:r.assignee})]})]}):t(s,{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:i,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 ${c()}`,children:[l(),e("span",{className:"capitalize",children:r.type})]}),e(a,{className:`text-xs px-2 py-1 ${n()}`,children:r.priority})]}),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}),t("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[t("div",{className:"flex items-center gap-1",children:[e(m,{className:"h-4 w-4"}),e("span",{children:r.assignee})]}),t("div",{className:"flex items-center gap-1",children:[e(u,{className:"h-4 w-4"}),e("span",{children:r.createdAt.toLocaleDateString()})]})]})]})};export{T 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-N363IQBL.mjs";import{a as m}from"./chunk-WGEMXPWB.mjs";import{b as i,f as o}from"./chunk-ZYYWN6XG.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 l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-
|
|
4
|
+
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-NXV22G4T.mjs";import{a}from"./chunk-R52W36TJ.mjs";import{a as d}from"./chunk-QEQ5FQDS.mjs";import{a as n}from"./chunk-2BYCSW34.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.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,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-FQPOVP4A.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,4 +1,4 @@
|
|
|
1
|
-
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-SN4DCMUU.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as p}from"./chunk-KTXQBXXJ.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-HTVHCBXQ.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as D}from"./chunk-YUSO4OFY.mjs";import{a as s}from"./chunk-WTQ7QZRC.mjs";import{a as g}from"./chunk-2CVUW74E.mjs";import{a as l,f as m,g as c,i as p}from"./chunk-BUCI7BPM.mjs";import{useState as T}from"react";import{jsx as t,jsxs as r}from"react/jsx-runtime";var I=({isOpen:f,onClose:o,task:e,epics:v,sprints:C,onUpdateTask:h,onDeleteTask:u})=>{let[S,k]=T(new Date),[d,b]=T([{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)}]),n=(a,i)=>{i!==e[a]&&(h(e.id,{[a]:i}),k(new Date))},w=a=>{let i={id:Date.now().toString(),text:a,author:"Current User",createdAt:new Date};b([...d,i])},A=()=>{u(e.id),o()};return t(l,{open:f,onOpenChange:o,children:r(m,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[t(c,{children:t(p,{className:"sr-only",children:e.title})}),r("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r("div",{className:"lg:col-span-2 space-y-4",children:[t(s,{fieldName:"title",value:e.title,label:"",onSave:n,className:"border-b pb-3"}),t(s,{fieldName:"description",value:e.description,label:"Description",multiline:!0,onSave:n}),t(g,{comments:d,onAddComment:w})]}),t(D,{task:e,epics:v,sprints:C,lastUpdated:S,onUpdateTask:n,onClose:o,onDelete:A})]})]})})};export{I 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-FQPOVP4A.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,b as r,i as l,j as o,m as i,n as d}from"./chunk-K4RVBOIC.mjs";import{b as t}from"./chunk-BPSLUO5I.mjs";import{a as m,b as c,c as p}from"./chunk-4BHOIXJM.mjs";import{Bell as u,Settings as b,User as x,Menu as f}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var M=({isRightSidebarOpen:g,onToggleRightSidebar:h,onToggleLeftSidebar:n})=>e("header",{className:"border-b bg-white/80 backdrop-blur-md dark:bg-slate-900/80 sticky top-0 z-50",children:e("div",{className:"container mx-auto px-6 py-4",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[n&&e(t,{variant:"ghost",size:"icon",className:"md:hidden",onClick:n,children:e(f,{className:"h-5 w-5"})}),e("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Cortex Copilot"})]}),a("div",{className:"flex items-center space-x-4",children:[a(t,{variant:"ghost",size:"icon",className:`relative lg:hidden ${g?"bg-blue-100 dark:bg-blue-900":""}`,onClick:h,children:[e(u,{className:"h-5 w-5"}),e("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),a(t,{variant:"ghost",size:"icon",className:"relative hidden lg:flex",children:[e(u,{className:"h-5 w-5"}),e("span",{className:"absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full text-xs text-white flex items-center justify-center",children:"3"})]}),a(s,{children:[e(r,{asChild:!0,children:e(t,{variant:"ghost",className:"relative h-10 w-10 rounded-full",children:a(m,{className:"h-10 w-10",children:[e(c,{src:"/avatars/01.png",alt:"@user"}),e(p,{children:"JD"})]})})}),a(l,{className:"w-56",align:"end",forceMount:!0,children:[e(i,{className:"font-normal",children:a("div",{className:"flex flex-col space-y-1",children:[e("p",{className:"text-sm font-medium leading-none",children:"John Doe"}),e("p",{className:"text-xs leading-none text-muted-foreground",children:"john.doe@company.com"})]})}),e(d,{}),a(o,{children:[e(x,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),a(o,{children:[e(b,{className:"mr-2 h-4 w-4"}),e("span",{children:"Settings"})]})]})]})]})]})})});export{M as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-
|
|
4
|
+
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-BGQKHEB3.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-N363IQBL.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-T6FBWMZR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-FQPOVP4A.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};
|
|
@@ -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-SN4DCMUU.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
|
|
1
|
+
import{a as m}from"./chunk-H6POT4A7.mjs";import{a as i}from"./chunk-6MWXSKBH.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,c as f,d as N,g as C,i as D}from"./chunk-OGZERPA4.mjs";import{a as x}from"./chunk-6T322YHB.mjs";import{a as
|
|
1
|
+
import{a as b,c as f,d as N,g as C,i as D}from"./chunk-OGZERPA4.mjs";import{a as x}from"./chunk-6T322YHB.mjs";import{a as A}from"./chunk-KJIBE57R.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as F}from"./chunk-CX4XB5W2.mjs";import{a as w,f as P,g as L,i as B}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 u,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 t}from"react/jsx-runtime";function ie({deal:i,users:g,customer:T,categories:E,onClose:U,onSave:H,onAddComment:O}){let[r,h]=u({...i,value:i.value||0,comments:i.comments||[],customer:i.customer||{}}),[p,S]=u(""),[R,y]=u(!1),[n,o]=u(null);M(()=>{y(JSON.stringify(i)!==JSON.stringify(r))},[i,r]);let V=async()=>{try{let e=await H(r);e.success?(y(!1),o(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},c=(e,s)=>{h(v=>({...v,[e]:s}))},J=e=>{let s=(r.categories||[]).includes(e)?(r.categories||[]).filter(v=>v!==e):[...r.categories||[],e];c("categories",s)},W=async()=>{if(p.trim()){let e={text:p,timestamp:new Date().toISOString()};try{let s=await O(e);if(!s.success){console.error("Failed to add comment:",s.errors);return}}catch(s){console.error("Failed to add comment:",s)}h(s=>({...s,comments:[...s.comments||[],e]})),S("")}},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"}},G=e=>g?.find(s=>s.id===Number(e));return a(w,{open:!0,children:t(P,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[t(L,{className:"flex flex-row items-center justify-between",children:[a(B,{className:"text-2xl font-bold",children:T?.name}),t("div",{className:"flex space-x-2",children:[a(m,{variant:"outline",onClick:U,children:"Close"}),t(m,{onClick:V,disabled:!R,children:[a(j,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),t(x,{className:"flex-grow pr-4",children:[t("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2 m-1",children:n==="value"?a(d,{type:"number",value:r.value,onChange:e=>c("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):t("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>o("value"),children:["\xA3",r.value?.toLocaleString()]})}),t("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Assignee"}),n==="assignee"?t(b,{value:r?.assignee?.id?.toString()||"",onValueChange:e=>c("assignee",G(e)),children:[a(N,{children:a(f,{placeholder:"Select assignee"})}),a(C,{children:g&&g.map(e=>a(D,{value:e?.id?.toString()||"",children:e.name},e.id))})]}):t("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>o("assignee"),children:[a(Q,{className:"w-4 h-4 text-gray-400"}),a("span",{children:r.assignee.name})]})]}),t("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Closure Date"}),n==="closureDate"?a(d,{type:"date",value:r.closureDate?.split("T")[0]??"",onChange:e=>c("closureDate",e.target.value),onBlur:()=>o(null),className:"mr-2",autoFocus:!0}):t("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>o("closureDate"),children:[a($,{className:"w-4 h-4 text-gray-400"}),a("span",{children:r.closureDate?new Date(r.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:t("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Description"}),n==="description"?a(F,{value:r.description||"",onChange:e=>c("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>o("description"),children:r.description})]})}),t("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[t("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Status"}),n==="status"?t(b,{value:r.status,onValueChange:e=>{c("status",e),o(null)},children:[a(N,{children:a(f,{placeholder:"Select status"})}),a(C,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(e=>a(D,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>o("status"),children:r.status})]}),t("div",{className:"grid col-span-2 gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Categories"}),n==="categories"?a("div",{className:"grid grid-cols-2 gap-2 m-1",children:E.map(e=>t("div",{className:"flex items-center space-x-2",children:[a(A,{id:e.id?.toString()||"",checked:(r.categories||[]).some(s=>s.id===e.id),onCheckedChange:()=>e.id!==void 0&&J(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:()=>o("categories"),children:r.categories&&r.categories.map(e=>{let s=e;return s?a(I,{variant:"outline",className:k(s.type||"sector"),children:s.name},s.id):null})})]})]}),t("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[t("div",{className:"grid gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Comments"}),a(x,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:r.comments&&r.comments.slice().sort((e,s)=>new Date(s.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>t("div",{className:"p-3 rounded-lg",children:[a("p",{className:"text-sm text-foreground",children:e.text}),t("p",{className:"text-xs text-foreground mt-1",children:[e?.author?.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id))})}),t("div",{className:"flex mt-2",children:[a(d,{value:p,onChange:e=>S(e.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),t(m,{onClick:W,className:"ml-2",children:[a(q,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),t("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt||"").toLocaleString()]})]})]})]})})}export{ie as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-
|
|
4
|
+
import{a as S,b as C,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{ChevronRight as G}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:u,secondaryNav:s,ongoingWork:l,title:t,subTitle:o,pathName:i,menuHeading:O,onNavClick:m,loading:b=!1,LinkComponent:N,...A}){let g=N?a=>e(N,{...a}):m?({href:a,children:p,...I})=>e("button",{onClick:()=>m&&m(a),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:p}):a=>e("a",{...a});return r(k,{...A,variant:"inset",children:[e(v,{children:e(c,{children:e(d,{children:b?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:t}),o&&e("span",{className:"truncate text-sm",children:o})]})})})}),b&&r(f,{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(f,{children:[e("div",{className:"px-4 text-sm",children:"Recent Work"}),l&&!b&&l.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e("div",{className:"border-t border-gray-200 my-4"}),u&&!b&&u.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e(y,{className:"mt-auto",children:e(x,{children:e(c,{children:s&&!b&&s.map(a=>e(d,{children:e(h,{asChild:!0,size:"sm",children:r(g,{href:a.url||"",children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})})},a.label))})})})]}),e(R,{})]})}function F({subNav:u,pathName:s,Link:l}){let t=u,o=!1;return t.links&&t.links.map(i=>{i.url===s&&(o=!0)}),e(S,{defaultOpen:!0,className:"group/collapsible",children:e(y,{className:"py-0",children:e(c,{children:e(S,{asChild:!0,defaultOpen:t.isActive,children:r(d,{children:[e(h,{asChild:!0,tooltip:t.label,className:T(o&&"font-bold text-accent"),children:r(l,{href:t.url,children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})}),t.links?.length?r(H,{children:[e(C,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(G,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(L,{children:t.links?.map(i=>e(P,{children:e(B,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(l,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},t.label)})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as u}from"./chunk-
|
|
1
|
+
import{f as u}from"./chunk-FQPOVP4A.mjs";import{a as m}from"./chunk-C4DU747D.mjs";import{a as d}from"./chunk-HTVHCBXQ.mjs";import{jsx as r,jsxs as h}from"react/jsx-runtime";var B=g=>{let{columns:a,theme:i}=g,y={full:"12",half:"6",oneThird:"4",twoThirds:"8"},b={none:"",line:"border border-primary p-4 rounded-lg"},c=e=>{if(e.type&&e.type==="block"&&e.fields&&(e.fields.blockType==="imageBlock"||e.fields.blockType==="mediaBlock"))return!0;if(e.root&&e.root.children){for(let o of e.root.children)if(c(o))return!0}if(e.children){for(let o of e.children)if(c(o))return!0}return!1},k=(e,o,n)=>{if(o==="none"||n==="full")return{processedRichText:e,heading:null};let l=e,t=null;return e&&e.root&&e.root.children&&e.root.children[0].tag==="h2"&&(l={...e,root:{...e.root,children:e.root.children.slice(1)}},t=e.root.children[0]),{processedRichText:l,heading:t}};return r("div",{className:"my-6",children:r("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",i?.settings?.box?"gap-x-8":"gap-x-16"),children:a&&a.length>0&&a.map((e,o)=>{let{enableLink:n,link:l,richText:t,size:s}=e,{processedRichText:p,heading:f}=k(t,i?.settings?.box||"none",s||"full");return h("div",{className:d(`col-span-4 lg:col-span-${y[s]}`,{"md:col-span-2":s!=="full"},b[s!=="full"&&!c(t)&&i?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${o+1}00`),children:[f&&r("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),p&&r(u,{content:p,enableGutter:!1,className:"rich-text"}),n&&r(m,{...l})]},o)})})})};export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-EECIYMTX.mjs";import{a as p}from"./chunk-CX4XB5W2.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 y}from"./chunk-BPSLUO5I.mjs";import{b as i}from"./chunk-J2IHT57D.mjs";import{a as r}from"./chunk-4YFMDLHL.mjs";import{useState as N}from"react";import{Calendar as R}from"lucide-react";import{jsx as a,jsxs as s}from"react/jsx-runtime";var q=({tasks:d,epics:b,sprints:c,onUpdateTask:k,onTaskClick:D})=>{let[l,w]=N(["2"]),[g,m]=N(null),o=d.filter(e=>!e.sprintId),C=d.filter(e=>e.sprintId&&l.includes(e.sprintId)),p=[...c].filter(e=>e.id!=="backlog"&&e.id!=="all-tasks").sort((e,t)=>e.startDate.getTime()-t.startDate.getTime()),T=e=>b.find(t=>t.id===e),S=e=>c.find(t=>t.id===e),B=e=>{switch(e){case"high":return"bg-red-100 text-red-800";case"medium":return"bg-yellow-100 text-yellow-800";case"low":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},I=e=>e.split(" ").map(t=>t[0]).join("").toUpperCase(),P=e=>{m(e)},v=e=>{e.preventDefault()},f=(e,t)=>{e.preventDefault(),g&&(k(g.id,{sprintId:t==="backlog"?void 0:t}),m(null))},E=e=>{e==="backlog"||e==="all-tasks"||w(t=>t.includes(e)?t.filter(n=>n!==e):[...t,e])},u=({task:e,showSprint:t=!1})=>{let n=T(e.epicId),x=e.sprintId?S(e.sprintId):null;return a(r,{className:"p-2 cursor-grab transition-all duration-200 hover:shadow-md bg-white active:cursor-grabbing",draggable:!0,onDragStart:h=>{P(e)},onClick:h=>{h.defaultPrevented||D(e)},children:s("div",{className:"space-y-2",children:[s("div",{className:"flex items-start justify-between",children:[a("h4",{className:"font-medium text-sm text-gray-900 line-clamp-1 select-none pointer-events-none",children:e.title}),a(i,{className:`text-xs select-none pointer-events-none ${B(e.priority)}`,children:e.priority[0].toUpperCase()})]}),s("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[s("div",{className:"flex items-center gap-1",children:[n&&a("div",{className:`w-2 h-2 rounded-full ${n.color}`}),a("span",{className:"text-gray-600 truncate select-none",children:n?.name})]}),a("span",{className:"text-gray-500 select-none",children:I(e.assignee)})]}),t&&x&&s("div",{className:"flex items-center gap-1 text-xs text-gray-500 pointer-events-none",children:[a(R,{className:"h-3 w-3"}),a("span",{className:"select-none",children:x.name})]})]})})};return s("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[a("div",{className:"lg:col-span-1",children:s(r,{className:"p-4 h-full",onDragOver:v,onDrop:e=>f(e,"backlog"),children:[s("div",{className:"flex items-center justify-between mb-4",children:[a("h3",{className:"font-semibold text-gray-900 select-none",children:"Backlog"}),a(i,{variant:"secondary",children:o.length})]}),s("div",{className:"space-y-2 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[o.map(e=>a(u,{task:e},e.id)),o.length===0&&a("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),a("div",{className:"lg:col-span-3",children:s("div",{className:"space-y-4",children:[s(r,{className:"p-4",children:[a("h3",{className:"font-semibold text-gray-900 mb-3 select-none",children:"Select Sprints to View"}),a("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:p.map(e=>s(y,{variant:l.includes(e.id)?"default":"outline",size:"sm",onClick:()=>E(e.id),className:"text-xs h-8",children:[e.name,e.isActive&&a("span",{className:"ml-1 text-green-400",children:"\u25CF"})]},e.id))})]}),a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(e=>p.find(t=>t.id===e)).filter(Boolean).sort((e,t)=>e.startDate.getTime()-t.startDate.getTime()).map(e=>{let t=C.filter(n=>n.sprintId===e.id);return s(r,{className:"p-4",onDragOver:v,onDrop:n=>f(n,e.id),children:[s("div",{className:"flex items-center justify-between mb-4",children:[s("div",{children:[a("h3",{className:"font-semibold text-gray-900 select-none",children:e.name}),e.isActive&&a("span",{className:"text-xs text-green-600 font-medium select-none",children:"Active Sprint"})]}),a(i,{variant:"secondary",children:t.length})]}),s("div",{className:"space-y-2 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed border-gray-200 rounded p-2",children:[t.map(n=>a(u,{task:n},n.id)),t.length===0&&a("div",{className:"flex items-center justify-center h-32 text-gray-400 text-sm select-none",children:"Drop tasks here"})]})]},e.id)})})]})})]})};export{q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as G}from"./chunk-QUONAVFG.mjs";import{a as K}from"./chunk-OTT43GVL.mjs";import{a as F}from"./chunk-2WXIUKCO.mjs";import{a as H}from"./chunk-7LF2QW5F.mjs";import{a as J}from"./chunk-XJZCX25R.mjs";import{a as j}from"./chunk-I3FBQX6H.mjs";import{a as R}from"./chunk-IAACGKX2.mjs";import{a as z}from"./chunk-RWM3YI4H.mjs";import{a as V}from"./chunk-HOQ3CJDL.mjs";import{a as I,b as O,i as B,j as U}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as P}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ke,Plus as we,MessageSquare as be,MoreHorizontal as De}from"lucide-react";import{useRouter as ve}from"next/navigation";import{Fragment as xe,jsx as s,jsxs as n}from"react/jsx-runtime";var Te=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",isSelected:!0}],Se=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],ye=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Je=()=>{let[v,d]=r(ye),[o,f]=r(Te),[l,h]=r(Se),[W,T]=r(!1),[q,S]=r(!1),[m,k]=r(null),[y,x]=r(null),[c,L]=r("kanban"),[$,Q]=r(!1),X=ve(),A=o.filter(e=>e.isSelected).map(e=>e.id),g=l.find(e=>e.isSelected),Y=v.filter(e=>{let t=A.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),Z=e=>Y.filter(t=>t.status===e),_=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(a=>a.epicId===i.id)}),t},ee=e=>{x(e)},te=e=>{y&&(d(t=>t.map(i=>i.id===y.id?{...i,status:e}:i)),x(null))},ie=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},C=(e,t)=>{d(i=>i.map(a=>a.id===e?{...a,...t}:a))},se=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&k(null)},ae=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};f(i=>[...i,t])},ne=(e,t)=>{f(i=>i.map(a=>a.id===e?{...a,...t}:a))},re=e=>{f(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},oe=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};h(i=>[...i,t])},de=(e,t)=>{h(i=>i.map(a=>a.id===e?t.isSelected?{...a,...t}:{...a,...t}:t.isSelected&&e!==a.id?{...a,isSelected:!1}:a))},le=e=>{e==="backlog"||e==="all-tasks"||(h(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},M=e=>{k(e)},ce=e=>{e==="planning"&&window.innerWidth<768||L(e)},N=()=>{Q(e=>!e)},pe=()=>{X.push("/")},E=e=>{console.log("Switching to team:",e)},Ae=e=>{console.log("Switching to team:",e)},me=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],ge=()=>{switch(c){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";default:return"Project Board"}},w=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],ue=w.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),fe=w.length>3,he=w.slice(3);return n("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[s(z,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:N}),s("div",{className:"border-b bg-white px-6 py-3",children:s("div",{className:"max-w-7xl mx-auto",children:n("div",{className:"flex items-center justify-between",children:[n("div",{className:"flex items-center gap-4",children:[n(p,{variant:"outline",onClick:pe,className:"gap-2 h-9",children:[s(be,{className:"h-4 w-4"}),"Copilot"]}),ue.map(e=>n(p,{variant:"default",onClick:()=>E(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[s("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id)),fe&&n(I,{children:[s(O,{asChild:!0,children:s(p,{variant:"outline",className:"h-9 w-9 p-0",children:s(De,{className:"h-4 w-4"})})}),s(B,{align:"start",children:he.map(e=>n(U,{onClick:()=>E(e.id),className:"flex items-center gap-2 cursor-pointer",children:[s("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id))})]})]}),c!=="documentation"&&n(p,{onClick:()=>T(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[s(we,{className:"h-4 w-4"}),"Add Task"]})]})})}),s(H,{epics:o,sprints:l,currentView:c,onUpdateEpic:ne,onDeleteEpic:re,onAddEpic:()=>S(!0),onAddSprint:oe,onUpdateSprint:de,onDeleteSprint:le,onViewChange:ce,mobileMenuOpen:$,onToggleMobileMenu:N,children:s("div",{className:"flex-1 p-6",children:n("div",{className:"max-w-7xl mx-auto",children:[s("div",{className:"mb-8",children:n("div",{className:"flex items-center gap-3 mb-4",children:[s(ke,{className:"h-8 w-8 text-blue-600"}),s("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:ge()})]})}),c==="kanban"?s("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:me.map(e=>{let t=Z(e.status),i=_(t);return s(F,{title:e.title,status:e.status,taskCount:t.length,onDrop:te,isCompact:e.status==="done",children:A.map(a=>{let b=o.find(u=>u.id===a),D=i[a]||[];return D.length===0?null:n("div",{className:"mb-6",children:[n("div",{className:"flex items-center gap-2 mb-3",children:[s("div",{className:`w-3 h-3 rounded-full ${b?.color}`}),s("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:b?.name}),s(P,{variant:"secondary",className:"text-xs",children:D.length})]}),s("div",{className:"space-y-3",children:D.map(u=>s(K,{task:u,epic:b,onDragStart:ee,onTaskClick:M,isCompact:e.status==="done"},u.id))})]},a)})},e.id)})}):c==="planning"?s("div",{className:"hidden md:block",children:s(J,{tasks:v,epics:o,sprints:l,onUpdateTask:C,onTaskClick:M})}):s(j,{}),n(xe,{children:[s(R,{isOpen:W,onClose:()=>T(!1),onAddTask:ie,epics:o,sprints:l}),s(V,{isOpen:q,onClose:()=>S(!1),onAddEpic:ae}),m&&s(G,{isOpen:!!m,onClose:()=>k(null),task:m,epics:o,sprints:l,onUpdateTask:C,onDeleteTask:se})]})]})})})]})};export{Je as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as
|
|
4
|
+
import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-CYEI7ZEM.mjs";import{a as l}from"./chunk-YZIXPIYP.mjs";import{a as u}from"./chunk-JKRLWXXO.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-T6FBWMZR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-E6ZAA4QH.mjs";import{a as o}from"./chunk-FWBG46K2.mjs";import{a as s}from"./chunk-EECIYMTX.mjs";import{b as r}from"./chunk-BPSLUO5I.mjs";import{Calendar as p,Clock as x,User as g,Trash2 as y}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";var f=[{value:"story",label:"Story",color:"bg-blue-100 text-blue-800"},{value:"task",label:"Task",color:"bg-gray-100 text-gray-800"},{value:"bug",label:"Bug",color:"bg-red-100 text-red-800"},{value:"spike",label:"Spike",color:"bg-purple-100 text-purple-800"}],N=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],T=({task:t,epics:c,sprints:v,lastUpdated:n,onUpdateTask:i,onClose:u,onDelete:d})=>{let h=e=>e.split(" ").map(b=>b[0]).join("").toUpperCase();return l("div",{className:"flex flex-col h-full",children:[l("div",{className:"space-y-2",children:[l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Status"}),a(o,{label:"",value:t.status,onValueChange:e=>i("status",e),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}]})]}),l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Type"}),a(o,{label:"",value:t.type,onValueChange:e=>i("type",e),options:f.map(e=>({value:e.value,label:e.label}))})]}),l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Priority"}),a(o,{label:"",value:t.priority,onValueChange:e=>i("priority",e),options:[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}]})]}),l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Epic"}),a(o,{label:"",value:t.epicId,onValueChange:e=>i("epicId",e),options:c.map(e=>({value:e.id,label:e.name,color:e.color})),showColor:!0})]}),l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Sprint"}),a(o,{label:"",value:t.sprintId||"none",onValueChange:e=>i("sprintId",e==="none"?"":e),options:[{value:"none",label:"No Sprint"},...v.map(e=>({value:e.id,label:`${e.name}${e.isActive?" (Active)":""}`}))]})]}),l("div",{className:"flex items-center justify-between",children:[a(s,{className:"text-xs text-gray-600 w-16",children:"Assignee"}),a(m,{label:"",value:t.assignee,onValueChange:e=>i("assignee",e),options:N,placeholder:"Search team members...",allowCustomValue:!0})]})]}),l("div",{className:"mt-auto pt-4 space-y-4",children:[l("div",{className:"space-y-2",children:[a(r,{onClick:u,variant:"outline",className:"w-full h-8 text-xs",children:"Close"}),l(r,{onClick:d,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[a(y,{className:"h-3 w-3"}),"Delete Task"]})]}),l("div",{className:"pt-4 border-t border-gray-200 space-y-2",children:[a("div",{className:"text-xs text-gray-400 font-medium mb-2",children:"Information"}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Logged By"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(g,{className:"h-3 w-3"}),a("span",{children:"System"})]})]}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Created"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(p,{className:"h-3 w-3"}),a("span",{children:t.createdAt.toLocaleDateString()})]})]}),l("div",{className:"flex items-center justify-between",children:[a("span",{className:"text-xs text-gray-500",children:"Last Updated"}),l("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[a(x,{className:"h-3 w-3"}),l("span",{children:[n.toLocaleDateString()," at ",n.toLocaleTimeString()]})]})]})]})]})]})};export{T as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as y}from"./chunk-I6X4KLR3.mjs";import{a as f}from"./chunk-JTQWVSV5.mjs";import{a as g}from"./chunk-AJWSKECP.mjs";import{a as v}from"./chunk-CZIRJUID.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as k,CheckSquare as A}from"lucide-react";import{useRouter as V}from"next/navigation";import{format as S,parseISO as H}from"date-fns";import{jsx as r,jsxs as t}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:o,currentDate:h,leaveApprovals:w,employees:x,submitLeaveRequest:n,approveLeave:i,rejectLeave:m}){let[a,c]=N("Calendar View"),L=V(),C=!1,d=H(h),l=async e=>{let D=S(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",D),L.push(p.toString()),{success:!0}};if(C)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let u=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:k,current:a==="Request Leave"},{name:"Approve Leave",icon:A,current:a==="Approve Leave"}];return t("div",{className:"container mx-auto p-4 h-full",children:[t("div",{className:"mb-8",children:[t("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>c(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:u.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:u.map(e=>t("a",{onClick:()=>{(e.name!=="Approve Leave"||o.grade==="Manager"||o.grade==="Senior Manager"||o.grade==="Partner")&&c(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&o.grade!=="Manager"&&o.grade!=="Senior Manager"&&o.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:d,setCurrentDate:l,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:d,setCurrentDate:l,holidays:s}),a==="Request Leave"&&r(g,{remainingDays:o.remainingLeaveDays,submitLeaveRequest:e=>n?n(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(v,{leaveRequests:w,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>m?m(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as l}from"./chunk-
|
|
4
|
+
import{f as l}from"./chunk-FQPOVP4A.mjs";import{a as r}from"./chunk-C4DU747D.mjs";import{a as s}from"./chunk-SX5U74MW.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-AEBUMA72.mjs";import{a as
|
|
1
|
+
import{a as s}from"./chunk-AEBUMA72.mjs";import{a as r}from"./chunk-EDLBPAEH.mjs";import{a as e}from"./chunk-WHH4AVZT.mjs";import{a as o}from"./chunk-KTXQBXXJ.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function c({blogs:n,pages:g,categories:p,types:i,base:a}){return t("section",{children:t(o,{children:t("div",{className:"grid",children:m("div",{children:[i&&t(e,{types:i}),t(s,{blogs:n,base:a}),t(r,{pages:g})]})})})})}export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as N}from"./chunk-GRCMMAFX.mjs";import{a as E,f as T}from"./chunk-HJK6BCTE.mjs";import{a as C}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-JPZJET3B.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-NACHOXV5.mjs";import{b as _}from"./chunk-BPSLUO5I.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(T,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:r("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
|
|
4
|
+
import{a as C}from"./chunk-RHFLBRXF.mjs";import{a as N}from"./chunk-GRCMMAFX.mjs";import{a as E,f as T}from"./chunk-HJK6BCTE.mjs";import{a as M}from"./chunk-JPZJET3B.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-NACHOXV5.mjs";import{b as _}from"./chunk-BPSLUO5I.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(T,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:r("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
|