cortex-react-components 1.64.1 → 1.65.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-VT6DWUPF.mjs → chunk-2ELJOFU3.mjs} +1 -1
- package/dist/{chunk-WLA5QCBE.mjs → chunk-33ZXPMQU.mjs} +1 -1
- package/dist/{chunk-B7VQUUH3.mjs → chunk-3QWSFRVM.mjs} +1 -1
- package/dist/{chunk-X3MBDMXV.mjs → chunk-3UA62APP.mjs} +1 -1
- package/dist/{chunk-XGEMVLT5.mjs → chunk-3XV6OBSL.mjs} +1 -1
- package/dist/{chunk-OT2LLDV2.mjs → chunk-4A43BI3C.mjs} +1 -1
- package/dist/{chunk-5J244QX4.mjs → chunk-4GL57G4E.mjs} +1 -1
- package/dist/{chunk-ZKU7UP6U.mjs → chunk-5DJ7VOAO.mjs} +1 -1
- package/dist/{chunk-VX4NPEMC.mjs → chunk-5OMUHSTO.mjs} +1 -1
- package/dist/{chunk-G72SIYN7.mjs → chunk-6BOIU52Z.mjs} +1 -1
- package/dist/{chunk-ELPMUABW.mjs → chunk-6OS3ZJBB.mjs} +1 -1
- package/dist/{chunk-3HDDBU3J.mjs → chunk-AKH3ER3D.mjs} +1 -1
- package/dist/{chunk-MDEYJGAN.mjs → chunk-AN6TXGAM.mjs} +1 -1
- package/dist/{chunk-5LF662B4.mjs → chunk-APNL5YEF.mjs} +1 -1
- package/dist/{chunk-QUOLG5NC.mjs → chunk-BGQKHEB3.mjs} +1 -1
- package/dist/{chunk-UM3WHBE7.mjs → chunk-BYSEFJFA.mjs} +1 -1
- package/dist/{chunk-YQ2YVQBS.mjs → chunk-DJQUKJMH.mjs} +1 -1
- package/dist/chunk-DVF55CWB.mjs +4 -0
- package/dist/{chunk-L45A6K4C.mjs → chunk-E7W2GFKO.mjs} +1 -1
- package/dist/{chunk-CXZGSPKM.mjs → chunk-EGYV6SU2.mjs} +1 -1
- package/dist/{chunk-UVPODMUO.mjs → chunk-FYEE5UWZ.mjs} +1 -1
- package/dist/{chunk-OIQ6GXBY.mjs → chunk-H3V6RZEI.mjs} +1 -1
- package/dist/{chunk-QZJGH4W6.mjs → chunk-I5DSZMH2.mjs} +1 -1
- package/dist/{chunk-VXGRJCCM.mjs → chunk-IC57R2EU.mjs} +1 -1
- package/dist/{chunk-Y7TUU6BG.mjs → chunk-IDRYG7HP.mjs} +1 -1
- package/dist/{chunk-6BZPTAOQ.mjs → chunk-IISHIQBQ.mjs} +1 -1
- package/dist/{chunk-MUZO74UP.mjs → chunk-ILBKV7ZM.mjs} +1 -1
- package/dist/{chunk-ISYJGX2I.mjs → chunk-L7FUS5TO.mjs} +1 -1
- package/dist/{chunk-ANTK5LAD.mjs → chunk-N363IQBL.mjs} +1 -1
- package/dist/{chunk-666KIWPS.mjs → chunk-NVN7UJT6.mjs} +1 -1
- package/dist/{chunk-37NBXA5G.mjs → chunk-PADGOK5C.mjs} +1 -1
- package/dist/{chunk-DAJNZDN6.mjs → chunk-PBRC3UOA.mjs} +1 -1
- package/dist/{chunk-HQTSD5A3.mjs → chunk-R64KZZJP.mjs} +1 -1
- package/dist/{chunk-737CTHXW.mjs → chunk-SKQYQ4SD.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-STHWCR5K.mjs} +1 -1
- package/dist/{chunk-KETV2XVN.mjs → chunk-SX5U74MW.mjs} +1 -1
- package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
- package/dist/{chunk-TYROOO53.mjs → chunk-U5XA76PE.mjs} +1 -1
- package/dist/{chunk-MRJQKF4Z.mjs → chunk-VNGK6ACI.mjs} +1 -1
- package/dist/{chunk-SVYUY3VF.mjs → chunk-WSKZ2N7J.mjs} +1 -1
- package/dist/{chunk-RVI4KPBJ.mjs → chunk-XDLNQPZY.mjs} +1 -1
- package/dist/{chunk-4XO4HI55.mjs → chunk-Y6RAHEXF.mjs} +1 -1
- package/dist/{chunk-PEL6QUMS.mjs → chunk-YWUPEMYN.mjs} +1 -1
- package/dist/{chunk-RWWF3HBN.mjs → chunk-YZ47PIHK.mjs} +1 -1
- package/dist/{chunk-X7PHWC2I.mjs → chunk-ZJSR6A6I.mjs} +1 -1
- package/dist/{chunk-Z6NED523.mjs → chunk-ZY2PDUUB.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/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.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/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.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- 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/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +9 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +2 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/tabs.css +1 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.js +4 -0
- package/dist/components/ui/tabs.mjs +2 -0
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +14 -13
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +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.js +8 -8
- 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 +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as F}from"./chunk-
|
|
4
|
+
import{a as F}from"./chunk-Y6RAHEXF.mjs";import{a as T}from"./chunk-6OS3ZJBB.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1,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-4A43BI3C.mjs";import{a}from"./chunk-U5XA76PE.mjs";import{a as n}from"./chunk-I5DSZMH2.mjs";import{a as d}from"./chunk-3XV6OBSL.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
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-
|
|
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 $}from"./chunk-L45A6K4C.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as q}from"./chunk-WLA5QCBE.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{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}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{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"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{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")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("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)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("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))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e as a};
|
|
1
|
+
import{a as q}from"./chunk-33ZXPMQU.mjs";import{a as $}from"./chunk-E7W2GFKO.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{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}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{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"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{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")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("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)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("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))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e 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 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-SX5U74MW.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-3UA62APP.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
|
|
@@ -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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as
|
|
4
|
+
import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as C}from"./chunk-L3PFZ7PW.mjs";import{a as p}from"./chunk-56RXRTGZ.mjs";import{b as v}from"./chunk-BPSLUO5I.mjs";import{a as i}from"./chunk-HTVHCBXQ.mjs";import{Formik as h}from"formik";import{FaUser as N}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as a,jsxs as r}from"react/jsx-runtime";var t={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),email:m.string().email(t.email).required(t.required),subject:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),message:m.string().min(2,t.tooShort).max(300,t.tooLong).required(t.required)}),u=i("!pr-[44px] text-foreground"),g=i("!border-red-600 border"),d=i("sr-only");function T(){return a(h,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(e,{resetForm:s})=>{let o=await f(e);o.data===null?b.error(o.message):(b.success(o.message),s())},children:({errors:e,touched:s,values:o,handleChange:n,handleBlur:c,isSubmitting:l,handleSubmit:x})=>r("form",{onSubmit:x,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[r("div",{children:[a(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:n,onBlur:c,disabled:l,icon:a(N,{className:"text-primary"}),className:i(u,e.name&&s.name&&g)}),e.name&&s.name&&a("p",{title:e.name,"aria-live":"polite",role:"error message",className:d,children:e.name})]}),r("div",{children:[a(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:n,onBlur:c,disabled:l,icon:a(y,{}),className:i(u,e.email&&s.email&&g)}),e.email&&s.email&&a("p",{title:e.email,"aria-live":"polite",role:"error message",className:d,children:e.email})]}),r("div",{className:"lg:col-span-2",children:[a(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:n,onBlur:c,disabled:l,className:i(u,e.subject&&s.subject&&g)}),e.subject&&s.subject&&a("p",{title:e.subject,"aria-live":"polite",role:"error message",className:d,children:e.subject})]}),r("div",{className:"lg:col-span-2",children:[a(C,{placeholder:"Message...",name:"message",value:o.message,onChange:n,onBlur:c,disabled:l,icon:a(w,{}),className:i(u,e.message&&s.message&&g)}),e.message&&s.message&&a("p",{title:e.message,"aria-live":"polite",role:"error message",className:d,children:e.message})]}),a("div",{className:"lg:col-span-2 light grid justify-items-center",children:a(v,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:l,children:"Send"})})]})})}function y(){return a("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function w(){return a("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:a("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunk-KHZPOMKL.mjs";import{a as r}from"./chunk-FRTYO74I.mjs";import{Fragment as n}from"react";import{jsx as o}from"react/jsx-runtime";var y=e=>{let{className:a,htmlElement:t="div",resource:i}=e,s=typeof i=="object"&&i?.mimeType?.includes("video");return o(t||n,{...t!==null?{className:a}:{},children:s?o(r,{...e}):o(m,{...e})})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as 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 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-3UA62APP.mjs";import{a as o}from"./chunk-HTVHCBXQ.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
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-
|
|
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,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 l}from"./chunk-
|
|
4
|
+
import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-EGYV6SU2.mjs";import{a as u}from"./chunk-IDRYG7HP.mjs";import{a as p}from"./chunk-R64KZZJP.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-3UA62APP.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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-XDLNQPZY.mjs";import{b as y}from"./chunk-IISHIQBQ.mjs";import{a as P}from"./chunk-HTVHCBXQ.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
|
|
@@ -1 +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-2ELJOFU3.mjs";import{a as o}from"./chunk-E6KVX2UG.mjs";import{a as e}from"./chunk-KTXQBXXJ.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-MCEK7XUK.mjs";import{f as g}from"./chunk-3UA62APP.mjs";import{b as f}from"./chunk-BPSLUO5I.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-4YFMDLHL.mjs";import{a as b}from"./chunk-KTXQBXXJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as t}from"./chunk-
|
|
4
|
+
import{f as t}from"./chunk-3UA62APP.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import n from"react";import*as l from"@radix-ui/react-collapsible";import{ChevronDownIcon as c,ChevronUpIcon as m}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var h=({title:p,richText:r})=>{let[o,i]=n.useState(!1);return e("div",{className:"border rounded-lg overflow-hidden",children:s(l.Root,{className:a("w-full"),open:o,onOpenChange:i,children:[s(l.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[e("h2",{className:"text-lg font-medium",children:p}),o?e(m,{className:"h-6 w-6"}):e(c,{className:"h-6 w-6"})]}),e(l.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:e("div",{className:"px-4 py-3 bg-white",children:e(t,{content:r||{},enableGutter:!1})})})]})})};export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as p}from"./chunk-RYZTCMVC.mjs";import{a as d}from"./chunk-
|
|
4
|
+
import{a as p}from"./chunk-RYZTCMVC.mjs";import{a as d}from"./chunk-SX5U74MW.mjs";import{a as m}from"./chunk-HTVHCBXQ.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=p({}),{className:u,doc:N,relationTo:y,showCategories:i,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:s,image:r}=F||{},a=t&&Array.isArray(t)&&t.length>0,c=b||k,w=s?.replace(/\s/g," "),T=`/${y}/${C}`;return o("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[o("div",{className:"relative w-full ",children:[!r&&e("div",{className:"",children:"No image"}),r&&typeof r!="string"&&e(d,{resource:r,size:"33vw"})]}),o("div",{className:"p-4",children:[i&&a&&e("div",{className:"uppercase text-sm mb-4",children:i&&a&&e("div",{children:t?.map((l,n)=>{if(typeof l=="object"){let{title:L}=l,P=L||"Untitled category",z=n===t.length-1;return o(g,{children:[P,!z&&e(g,{children:", \xA0"})]},n)}return null})})}),c&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:c})})}),s&&e("div",{className:"mt-2",children:s&&e("p",{children:w})})]})]})};export{j 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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as BannerBlock};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{b as a,c as b}from"../../chunk-
|
|
2
|
+
"use strict";import{b as a,c as b}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{b as CallToActionBlock,a as CallToActionBlockOld};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"../../chunk-
|
|
1
|
+
import{c as t}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var r={title:"Reusable Blocks/CallToAction",component:t},s=r,o=l=>i(t,{...l}),e=o.bind({});e.args={richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}},links:[{link:{type:"custom",label:"Learn More",url:"#"}},{link:{type:"custom",label:"Get Started",url:"#"}}]};var a=o.bind({});a.args={...e.args,links:[{link:{type:"custom",label:"Learn More",url:"#"}}]};var n=o.bind({});n.args={...e.args,links:[{link:{type:"custom",label:"Contact us",url:"/contact"}}]};export{n as ContactUs,e as Default,a as SingleLink,s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-ZJSR6A6I.mjs";import"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as CollapsibleBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../../chunk-
|
|
1
|
+
import{a as t}from"../../chunk-ZJSR6A6I.mjs";import"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var o={title:"Reusable Blocks/CollapsibleArea",component:t},n=o,r=e=>i(t,{...e}),a=r.bind({});a.args={title:"Collapsible Area",richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}}};var m={args:{title:"This is a long title that will wrap to the next line providing that the text is really long and does not fit in the available space. More text will be added to make sure that the title wraps to the next line.",richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}}}},d={args:{title:"Long text area",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Ways of Working",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"We want to build a company culture where effort is recognised and rewarded, therefore we would like to set out some guidelines.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Effort Matters:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Every team member\u2019s contributions, big or small, are valued and noticed.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Commitment to Excellence:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Deliver work with attention to quality and impact.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proactive Collaboration:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Support teammates and contribute to shared goals.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Working Hours",type:"text",style:"",detail:0,format:1,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Core Hours:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" All employees should be available from ",type:"text",style:"",detail:0,format:0,version:1},{mode:"normal",text:"08:30 to 17:30",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" to maintain collaboration and responsiveness during key business hours. Total working week 40 hours",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Flexible Working:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" We support flexibility outside core hours, allowing you to adjust your start and finish times as long as work priorities are met and team coordination remains unaffected.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"In-Office Day:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" To promote team culture, all employees are required to work ",type:"text",style:"",detail:0,format:0,version:1},{mode:"normal",text:"one day a week in their local office",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:". This day will be agreed upon within teams to ensure maximum participation and collaboration.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Holiday Process",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - TBC (confirmed once we have an App)",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Team Collaboration",type:"text",style:"",detail:0,format:1,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Bi-Weekly - ",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:"All employees must attend the Bi-Weekly team meeting at their local office or remotely via teams (optionally can travel to the remote office for the meeting if they wish)",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Bench Call",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Any employees on the bench must attend the daily bench call and provide updates on their progress.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"POD's",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Everyone should be actively involved with at least POD",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Cameras",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Camera should always be on during Teams calls",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0}],direction:"ltr"}}}};export{a as Default,n as default,d as longTextArea,m as longTitle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-APNL5YEF.mjs";import"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as ContentBlock};
|