cortex-react-components 1.50.0 → 1.50.1
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-BNGBWJF4.mjs → chunk-36KUV6P4.mjs} +1 -1
- package/dist/{chunk-QJO6A3FA.mjs → chunk-3PLJMCNU.mjs} +1 -1
- package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
- package/dist/{chunk-7QQXXEMN.mjs → chunk-4RWD4HBJ.mjs} +1 -1
- package/dist/{chunk-5YSSPX44.mjs → chunk-5QGEYQCY.mjs} +1 -1
- package/dist/{chunk-TC5GBRWK.mjs → chunk-6PVDZJ4G.mjs} +2 -3
- package/dist/{chunk-URJQTWEM.mjs → chunk-6TTZ5CZJ.mjs} +1 -1
- package/dist/{chunk-XUDFSAFT.mjs → chunk-AVSI33QH.mjs} +1 -1
- package/dist/{chunk-ITZ5HFK6.mjs → chunk-B776KN7L.mjs} +1 -1
- package/dist/{chunk-I3JB7SE2.mjs → chunk-BRFSZTQJ.mjs} +1 -1
- package/dist/{chunk-MNDA6BQL.mjs → chunk-E3BQTJOB.mjs} +1 -1
- package/dist/{chunk-U76FODRW.mjs → chunk-EOJQ2KKP.mjs} +1 -1
- package/dist/{chunk-EGGXS5AV.mjs → chunk-FBAB23G3.mjs} +1 -1
- package/dist/{chunk-HRSTJFKY.mjs → chunk-FLFKXKOI.mjs} +1 -1
- package/dist/{chunk-HLY2SYEJ.mjs → chunk-FS2FTCIF.mjs} +1 -1
- package/dist/{chunk-X33SPVUZ.mjs → chunk-G776UILH.mjs} +1 -1
- package/dist/chunk-GBQKJ3RF.mjs +1 -0
- package/dist/{chunk-RKQODLZ2.mjs → chunk-HBZMFHEU.mjs} +1 -1
- package/dist/{chunk-RHPFEIP4.mjs → chunk-IBV34MLI.mjs} +1 -1
- package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
- package/dist/{chunk-XGULWGJJ.mjs → chunk-JF4JGWIR.mjs} +1 -1
- package/dist/{chunk-KJBMLPHS.mjs → chunk-KCYSP7UY.mjs} +1 -1
- package/dist/{chunk-WOP42HLD.mjs → chunk-KI7MGWFJ.mjs} +1 -1
- package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
- package/dist/{chunk-NPWMWI4N.mjs → chunk-MQ3XW7PJ.mjs} +1 -1
- package/dist/{chunk-WMB54ZLD.mjs → chunk-NLNLNGM6.mjs} +1 -1
- package/dist/{chunk-PCBEISJY.mjs → chunk-QWLQXVXH.mjs} +1 -1
- package/dist/{chunk-ZMX4L6QJ.mjs → chunk-RJFBQZFX.mjs} +1 -1
- package/dist/{chunk-XW2H2SU5.mjs → chunk-RMJJ4QSC.mjs} +1 -1
- package/dist/{chunk-JFOTBO5D.mjs → chunk-RWM5ZZUL.mjs} +1 -1
- package/dist/{chunk-D2PO4DRT.mjs → chunk-USNWEWYQ.mjs} +1 -1
- package/dist/{chunk-K7EO4GAJ.mjs → chunk-V6QXJ5VQ.mjs} +1 -1
- package/dist/{chunk-Q7CZFQQI.mjs → chunk-VJBYCOTX.mjs} +1 -1
- package/dist/{chunk-5EFOKBKA.mjs → chunk-VXYMTOPX.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.js +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +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.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.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/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +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.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.js +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +2 -3
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +1 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +3 -4
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +3 -4
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +2 -3
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/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.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +3 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +3 -4
- 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.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +2 -3
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +2 -3
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +2 -3
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.js +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-QMIFCJIC.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o}from"./chunk-
|
|
1
|
+
import{e as o}from"./chunk-GBQKJ3RF.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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as I,c as D}from"./chunk-
|
|
4
|
+
import{b as I,c as D}from"./chunk-6PVDZJ4G.mjs";import{a as B}from"./chunk-FLFKXKOI.mjs";import{b as T}from"./chunk-BDX257W2.mjs";import{a as E}from"./chunk-C5XNOZXC.mjs";import{a as G}from"./chunk-NIQ4466A.mjs";import{a as O}from"./chunk-WU3JMLSC.mjs";import{useEffect as _,useRef as F,useState as tt}from"react";import{Previewer as U}from"pagedjs";import et from"html2canvas";import{jsPDF as q}from"jspdf";import{Fragment as J,jsx as t,jsxs as h}from"react/jsx-runtime";var bt=({page:i,layout:m="portrait"})=>m==="flow"?t(ot,{page:i,layout:m}):t(nt,{page:i,layout:m}),ot=({page:i,layout:m="portrait"})=>{let{contentWithIds:C}=E(i),u={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},y=async()=>{L("printable-content")},L=async r=>{let a=document.getElementById(r);if(!a)throw new Error(`Element with id ${r} not found`);let l=document.createElement("canvas"),H=window.devicePixelRatio;l.width=Math.max(a.clientWidth||0)*H,l.height=Math.max(a.clientHeight||0)*H+100;let n=l.getContext("2d");if(!n)throw new Error("Failed to get 2D context");let d=n.drawImage,p=Array.from(a.getElementsByTagName("img")).reduce((P,c)=>(P[c.src]=c,P),{});n.drawImage=function(...P){let[c,$,A,f,g,X,Y,w,v]=P;if(c instanceof HTMLImageElement){let V=p[c.src].style.objectFit||"fill",Z=p[c.src].style.objectPosition||"center center";g=c.height,f=c.width;let N=f/g,x=w/v,[k,b]=Z.split(" ");switch(b||(b=k),V){case"cover":if(N>x){let e=g*x,o=(f-e)/2;k==="left"&&(o=0),k==="right"&&(o=f-e),$+=o,f=e}else{let e=f/x,o=(g-e)/2;b==="top"&&(o=0),b==="bottom"&&(o=g-e),A+=o,g=e}break;case"contain":if(N>x){let e=w/N,o=(v-e)/2;b==="top"&&(o=0),b==="bottom"&&(o=v-e),Y+=o,v=e}else{let e=v*N,o=(w-e)/2;k==="left"&&(o=0),k==="right"&&(o=w-e),X+=o,w=e}break;case"fill":break}}return d.call(n,c,$,A,f,g,X,Y,w,v)};let s=document.getElementById(r);if(!s)throw new Error(`Element with id ${r} not found`);var K=l.width,Q=l.height;let S=(await et(s,{canvas:l,windowHeight:Q,windowWidth:K,scale:window.devicePixelRatio})).toDataURL("image/png"),W=new q({}).getImageProperties(S),R=297,j=R*(W.height/W.width),z=new q({unit:"mm",format:[R,j]});z.addImage(S,"PNG",0,0,R,j),z.save("print.pdf")},M=[u,...C];return h("div",{className:"w-[297mm]",children:[t("div",{className:"fixed top-20 right-4 z-[1000] print:hidden",children:t(T,{onClick:y,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),h("div",{id:"printable-content",children:[M.map((r,a)=>t(J,{children:a===0?t("section",{className:"title-page w-full h-full",children:t(D,{hero:i.hero,title:i.title})},a):h("section",{className:"normal-page",children:[r.blockName&&t(I,{title:r.blockName}),t(B,{blocks:[r],fill:!0})]},a)})),t("section",{className:"normal-page",children:h("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[h("div",{className:"flex px-6 items-center space-x-2",children:[t("img",{src:O.src,alt:"Cortex Reply Logo",className:"h-8"}),t("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),t("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},nt=({page:i,layout:m="portrait"})=>{let{contentWithIds:C}=E(i),u=F(null),y=F(null),L=F(new U),[M,r]=tt(0),l=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...C];return _(()=>{let n=setTimeout(()=>{let d=new U;if(!y.current)return;let p=`${y.current.innerHTML}`;u.current&&(u.current.innerHTML=""),d.preview(p,["./print.css",m==="landscape"?"./landscape.css":"./portrait.css"],u.current).then(s=>r(s.pageCount)).catch(s=>console.error("Paged.js error:",s))},50);return()=>clearTimeout(n)},[i,m]),h("div",{children:[t("div",{className:"fixed top-20 right-4 z-[1000] print:hidden",children:t(T,{onClick:async()=>{await new Promise(n=>setTimeout(n,300)),window.print()},variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),t("div",{id:"printable-content",ref:y,style:{display:"none"},children:l.map((n,d)=>{var p,s;return t(J,{children:d===0?t("section",{className:"title-page w-full h-full",children:t(D,{hero:i.hero,title:i.title})},d):h("section",{className:G("normal-page h-full",((s=(p=n.theme)==null?void 0:p.settings)==null?void 0:s.theme)==="dark"?"dark bg-background":"light"),children:[n.blockName&&t(I,{title:n.blockName}),t(B,{blocks:[n]})]},d)})})}),t("div",{ref:u,className:"preview-container"})]})};export{bt as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as p}from"./chunk-6P7CY367.mjs";import{a as d}from"./chunk-
|
|
4
|
+
import{a as p}from"./chunk-6P7CY367.mjs";import{a as d}from"./chunk-ICTOXY7D.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=p({}),{className:u,doc:N,relationTo:y,showCategories:a,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:r,image:o}=F||{},i=t&&Array.isArray(t)&&t.length>0,l=b||k,w=r==null?void 0:r.replace(/\s/g," "),T=`/${y}/${C}`;return s("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[s("div",{className:"relative w-full ",children:[!o&&e("div",{className:"",children:"No image"}),o&&typeof o!="string"&&e(d,{resource:o,size:"33vw"})]}),s("div",{className:"p-4",children:[a&&i&&e("div",{className:"uppercase text-sm mb-4",children:a&&i&&e("div",{children:t==null?void 0:t.map((n,c)=>{if(typeof n=="object"){let{title:L}=n,P=L||"Untitled category",z=c===t.length-1;return s(g,{children:[P,!z&&e(g,{children:", \xA0"})]},c)}return null})})}),l&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:l})})}),r&&e("div",{className:"mt-2",children:r&&e("p",{children:w})})]})]})};export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var d=r=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",m),resource:i,src:n})})};export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-MQ3XW7PJ.mjs";import{a as t}from"./chunk-KSCHUMVE.mjs";import{a as i}from"./chunk-DESYC5BB.mjs";import{a as o}from"./chunk-WU3JMLSC.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(i,{isMenuOpen:!0,logoLight:m,logoDark:o}),r(t,{...e.hero}),r(a,{className:"!pb-0",...e.blog})]})}export{d as a};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-X6QN5C6U.mjs";import{e as
|
|
2
|
-
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[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"})]}),
|
|
3
|
-
text-white dark:text-gray-100`,children:t.richText&&e(r,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})})]})]})};export{f as a,g as b,u as c};
|
|
1
|
+
import{a as c}from"./chunk-X6QN5C6U.mjs";import{e as l}from"./chunk-GBQKJ3RF.mjs";import{a}from"./chunk-WU3JMLSC.mjs";import m from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var h=()=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
2
|
+
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[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"})]}),u=({title:s})=>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:s})})}),g=s=>{var o,r;let{title:d,hero:t}=s;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(m,{src:t.media?t.media.url:c,alt:"Background",width:t.media&&t.media.width&&(o=t.media.width)!=null?o:1920,height:t.media&&t.media.height&&(r=t.media.height)!=null?r: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:a&&e("div",{className:"h-24",children:e(m,{src:a,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 text-accent mb-2",children:d}),t.richText&&e(l,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{h as a,u as b,g as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-JF4JGWIR.mjs";import{b as u,c as y}from"./chunk-GBQKJ3RF.mjs";import{a as c}from"./chunk-4RWD4HBJ.mjs";import{a as p}from"./chunk-NIQ4466A.mjs";import{Fragment as g,jsx as t}from"react/jsx-runtime";var F=s=>{let{customId:o,reusableContent:r}=s;return typeof r=="object"&&r!==null?t(C,{blocks:r.layout}):t(g,{})},k={content:f,cta:u,mediaBlock:c,imageBlock:c,features:y},C=s=>{let{blocks:o}=s;return o&&Array.isArray(o)&&o.length>0?t("section",{id:"render-blocks",children:o.map((n,d)=>{var l,i;let{blockType:a}=n,e=n==null?void 0:n.theme;if(a&&a in k){let m=k[a];if(m)return t("div",{className:"py-6 relative",children:t("div",{className:p(((l=e==null?void 0:e.settings)==null?void 0:l.theme)==="dark"?"dark":((i=e==null?void 0:e.settings)==null?void 0:i.theme)==="green"?"green":""),children:t(m,{...n})})},d)}return null})}):null};export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-BZAYEKYC.mjs";import{a as s}from"./chunk-WKD2UQGO.mjs";import{b as i}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-BZAYEKYC.mjs";import{a as s}from"./chunk-WKD2UQGO.mjs";import{b as i}from"./chunk-NLNLNGM6.mjs";import{a as n}from"./chunk-FLFKXKOI.mjs";import{a}from"./chunk-DESYC5BB.mjs";import{a as o}from"./chunk-C5XNOZXC.mjs";import{a as r}from"./chunk-WU3JMLSC.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:c,tableOfContents:p}=o(f);return m("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(a,{isMenuOpen:!0,logoLight:l,logoDark:r}),t(i,{...e.hero}),t(s,{edit:e.edit,pageId:e.page.id,tableOfContents:p,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as i}from"./chunk-BDX257W2.mjs";import{a as p,b as v,c as h}from"./chunk-SBM5HULF.mjs";import{ChevronLeft as w,ChevronRight as k}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u(...t){return t.filter(Boolean).join(" ")}function $({currentDate:t,setCurrentDate:l,holidays:f,employees:n}){let m=new Date(t.getFullYear(),t.getMonth()+1,0).getDate(),y=()=>{l(new Date(t.getFullYear(),t.getMonth()-1,1))},x=()=>{l(new Date(t.getFullYear(),t.getMonth()+1,1))},N=()=>{l(new Date)};return r("div",{className:"px-4 sm:px-6 lg:px-8",children:[r("div",{className:"sm:flex sm:items-center",children:[r("div",{className:"sm:flex-auto",children:[e("h1",{className:"text-2xl font-semibold text-accent",children:t.toLocaleString("default",{month:"long",year:"numeric"})}),e("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),r("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[r(i,{onClick:y,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Previous month"}),e(w,{className:"h-5 w-5","aria-hidden":"true"})]}),e(i,{variant:"outline",onClick:N,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),r(i,{onClick:x,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Next month"}),e(k,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),e("div",{className:"mt-8 flow-root",children:e("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:e("div",{className:"max-h-[60vh] overflow-y-auto",children:r("table",{className:"min-w-full border-separate border-spacing-0",children:[e("thead",{className:"sticky top-0 z-20 bg-white",children:r("tr",{children:[e("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(m)].map((o,s)=>e("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:s+1},s))]})}),e("tbody",{children:n.map((o,s)=>r("tr",{children:[e("td",{className:u(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:r("div",{className:"flex items-center",children:[r(p,{className:"h-11 w-11",children:[e(v,{src:o.image,alt:o.name}),e(h,{children:o.name.split(" ").map(c=>c[0]).join("")})]}),e("div",{className:"ml-4",children:e("div",{className:"font-medium text-accent",children:o.name})})]})}),[...Array(m)].map((c,g)=>{let b=new Date(t.getFullYear(),t.getMonth(),g+1),a=f.find(d=>d.userId===o.id&&new Date(d.startDate)<=b&&new Date(d.endDate)>=b);return e("td",{className:u(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:e("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${a?a.status==="approved"?"bg-green-500":a.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:a?`${o.name}: ${a.status} (${a.startDate} - ${a.endDate}) - ${a.leaveType}`:"",children:a&&a.leaveType!=="Full Day"&&e("div",{className:`h-3 w-6 ${a.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${o.id}-${g}`)})]},o.id))})]})})})})]})}export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N}from"./chunk-4NKKWJ2X.mjs";import{a as f,c as C,d as y,g as h,i as D}from"./chunk-4JC2TJML.mjs";import{a as R}from"./chunk-A5EYIB3V.mjs";import{a as r}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as T,g as E,i as U}from"./chunk-JWDVKGZL.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as
|
|
1
|
+
import{a as N}from"./chunk-4NKKWJ2X.mjs";import{a as f,c as C,d as y,g as h,i as D}from"./chunk-4JC2TJML.mjs";import{a as R}from"./chunk-A5EYIB3V.mjs";import{a as r}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as T,g as E,i as U}from"./chunk-JWDVKGZL.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as u}from"./chunk-BDX257W2.mjs";import{b as H}from"./chunk-Q6SEVCRG.mjs";import{useState as p,useEffect as K}from"react";import{UserIcon as X,CalendarIcon as Y,SaveIcon as Z,PlusIcon as _}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function ue({deal:i,users:m,customer:v,categories:V,onClose:J,onSave:G,onAddComment:M}){var P,L,B,I,A;let[s,b]=p({...i,value:i.value||0,comments:i.comments||[],customer:i.customer||{}}),[x,S]=p(""),[Q,w]=p(!1),[n,o]=p(null);K(()=>{w(JSON.stringify(i)!==JSON.stringify(s))},[i,s]);let W=async()=>{try{let e=await G(s);e.success?(w(!1),o(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},c=(e,t)=>{b(d=>({...d,[e]:t}))},$=e=>{let t=(s.categories||[]).includes(e)?(s.categories||[]).filter(d=>d!==e):[...s.categories||[],e];c("categories",t)},j=async()=>{if(x.trim()){let e={text:x,timestamp:new Date().toISOString()};try{let t=await M(e);if(!t.success){console.error("Failed to add comment:",t.errors);return}}catch(t){console.error("Failed to add comment:",t)}b(t=>({...t,comments:[...t.comments||[],e]})),S("")}},k=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},q=e=>m==null?void 0:m.find(t=>t.id===Number(e));return a(F,{open:!0,children:l(T,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[l(E,{className:"flex flex-row items-center justify-between",children:[a(U,{className:"text-2xl font-bold",children:v==null?void 0:v.name}),l("div",{className:"flex space-x-2",children:[a(u,{variant:"outline",onClick:J,children:"Close"}),l(u,{onClick:W,disabled:!Q,children:[a(Z,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),l(N,{className:"flex-grow pr-4",children:[l("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2",children:n==="value"?a(g,{type:"number",value:s.value,onChange:e=>c("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):l("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("value"),children:["\xA3",(P=s.value)==null?void 0:P.toLocaleString()]})}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),n==="assignee"?l(f,{value:((B=(L=s==null?void 0:s.assignee)==null?void 0:L.id)==null?void 0:B.toString())||"",onValueChange:e=>c("assignee",q(e)),children:[a(y,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:m&&m.map(e=>{var t;return a(D,{value:((t=e==null?void 0:e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("assignee"),children:[a(X,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.assignee.name})]})]}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),n==="closureDate"?a(g,{type:"date",value:(A=(I=s.closureDate)==null?void 0:I.split("T")[0])!=null?A:"",onChange:e=>c("closureDate",e.target.value),onBlur:()=>o(null),autoFocus:!0}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("closureDate"),children:[a(Y,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.closureDate?new Date(s.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Description"}),n==="description"?a(R,{value:s.description||"",onChange:e=>c("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>o("description"),children:s.description})]})}),l("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Status"}),n==="status"?l(f,{value:s.status,onValueChange:e=>{c("status",e),o(null)},children:[a(y,{children:a(C,{placeholder:"Select status"})}),a(h,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(e=>a(D,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("status"),children:s.status})]}),l("div",{className:"grid col-span-2 gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Categories"}),n==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:V.map(e=>{var t,d;return l("div",{className:"flex items-center space-x-2",children:[a(O,{id:((t=e.id)==null?void 0:t.toString())||"",checked:(s.categories||[]).some(z=>z.id===e.id),onCheckedChange:()=>e.id!==void 0&&$(e)}),a("label",{htmlFor:((d=e.id)!=null?d:"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id)})}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("categories"),children:s.categories&&s.categories.map(e=>{console.log("cat",e);let t=e;return t?a(H,{variant:"secondary",className:k(t.type||"sector"),children:t.name},t.id):null})})]})]}),l("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Comments"}),a(N,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:s.comments&&s.comments.slice().sort((e,t)=>new Date(t.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>{var t;return l("div",{className:"bg-gray-50 p-3 rounded-lg",children:[a("p",{className:"text-sm text-gray-700",children:e.text}),l("p",{className:"text-xs text-gray-500 mt-1",children:[(t=e==null?void 0:e.author)==null?void 0:t.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id)})})}),l("div",{className:"flex mt-2",children:[a(g,{value:x,onChange:e=>S(e.target.value),placeholder:"Add a comment...",className:"flex-grow"}),l(u,{onClick:j,className:"ml-2",children:[a(_,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),l("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt||"").toLocaleString()]})]})]})]})})}export{ue as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{
|
|
4
|
+
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as C}from"./chunk-
|
|
4
|
+
import{a as C}from"./chunk-BRFSZTQJ.mjs";import{a as D}from"./chunk-IQ7LAP7P.mjs";import{useState as x,useCallback as w}from"react";import{DragDropContext as W}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as h}from"react/jsx-runtime";var y=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:b,addNewCustomer:f}){var i;let[r,c]=x(null),S=e=>{var o;return((o=s.deals)!=null?o:[]).filter(t=>t.status===e)},R=e=>e.reduce((o,t)=>o+(t.value||0),0),P=(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((a,d)=>a+(d.value||0)*t[o],0)},M=w(e=>{var m,p;let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let a=o.droppableId,d=t.droppableId,u=(m=s.deals)==null?void 0:m.filter(v=>v.id===o.index)[0],B=[...(p=s.deals)!=null?p:[]];u&&(u.status=d,n(u))},[n]);return l(W,{onDragEnd:M,children:h("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:y.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{var t,a;let o=S(e);return l(D,{status:e,deals:o,customers:(t=s.customers)!=null?t:[],users:s.users,categories:(a=s.categories)!=null?a:[],onDealClick:c,calculateColumnValue:R,calculateWeightedValue:P,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:f},e)})}),r&&l(C,{deal:r,users:s.users,customer:r.customer,categories:(i=s.categories)!=null?i:[],onClose:()=>c(null),onSave:n,onAddComment:e=>b(r.id.toString(),e)})]})})}export{V as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./chunk-
|
|
1
|
+
import{e as r}from"./chunk-GBQKJ3RF.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-6TTZ5CZJ.mjs";import{a as k}from"./chunk-JF4JGWIR.mjs";import{b as u,c as f}from"./chunk-GBQKJ3RF.mjs";import{a as l}from"./chunk-4RWD4HBJ.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import p from"next/image";import{jsx as n,jsxs as h}from"react/jsx-runtime";var y={content:k,cta:u,mediaBlock:l,imageBlock:l,features:f,reusableContentBlock:b},w=a=>{let{blocks:e}=a;return e&&Array.isArray(e)&&e.length>0?n("section",{id:"render-blocks",className:o(a.fill?"h-full w-full":""),children:e.map((t,c)=>{var g,m;let{blockType:i}=t,r=t==null?void 0:t.theme;if(i&&i in y){let d=y[i];if(d)return h("div",{className:o("py-6 relative",a.fill&&"flex h-full items-center justify-center"),children:[n(v,{block:t,index:c}),n("div",{className:o("container",((g=r==null?void 0:r.settings)==null?void 0:g.theme)==="dark"?"dark":((m=r==null?void 0:r.settings)==null?void 0:m.theme)==="green"?"green":""),children:n(d,{...t})})]},c)}return null})}):null},v=a=>{var s;if(!("theme"in a.block))return null;let e=(s=a.block)==null?void 0:s.theme;if(e.settings.background==="image"){let t={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return h("div",{className:o("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[n(p,{src:e.settings.image.url||"/placeholder.svg",alt:e.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&n("div",{className:"absolute inset-0",style:{background:t.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return n("div",{className:o("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};export{w as a,v as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-USNWEWYQ.mjs";import{a as o}from"./chunk-M6M43TLT.mjs";import{a as n}from"./chunk-UESKYRNK.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(n,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(e,{...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":r([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./chunk-QO2Z7WXW.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-QO2Z7WXW.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-USNWEWYQ.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as D,j as z,k as H,l as L,m as E,n as M,o as _}from"./chunk-O5BAW5XQ.mjs";import{a as f}from"./chunk-44VMK4FL.mjs";import{a as C}from"./chunk-4RWD4HBJ.mjs";import{a as T}from"./chunk-IBV34MLI.mjs";import{a as B}from"./chunk-2NFKSNJW.mjs";import{b as h}from"./chunk-BDX257W2.mjs";import{a as k}from"./chunk-SFLOMJ2U.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as y,jsxs as G}from"react/jsx-runtime";var P=({links:r,richText:e})=>y("div",{className:"container",children:G("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[y("div",{className:"max-w-[48rem] flex items-center",children:e&&y(p,{className:"mb-0",content:e,enableGutter:!1})}),y("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:a},m)=>y(f,{size:"lg",...a},m))})]})});import{jsx as s,jsxs as x}from"react/jsx-runtime";function w(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function R({variant:r="outline",className:e,icon:a,heading:m,subheading:o,content:t,statistic:i,buttonText:u,buttonHref:d}){return x("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56",{solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[r],r==="outline"?"text-gray-900":"text-white",e),children:[s("div",{className:"flex items-center gap-4 mb-6",children:s(J,{icon:a,heading:m,variant:r})}),r==="solid"&&i&&s("div",{className:"mb-6",children:s("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:i})}),o&&s("div",{className:"mb-4 text-xl md:text-2xl font-light",children:o}),t&&typeof t=="object"&&s("div",{className:n("space-y-6","text-gray-300"),children:s(p,{enableGutter:!1,content:t,enableProse:!1,className:n("prose prose-headings:text-white prose-p:text-gray-300")})}),t&&typeof t=="string"&&s("div",{className:n("space-y-6","text-gray-300"),children:t}),u&&s("div",{className:"mt-8",children:s(h,{size:"lg",className:"text-white text-lg rounded-xl w-full",asChild:!0,children:s("a",{href:d,children:u})})}),r==="radial"&&s("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var J=({icon:r,heading:e,variant:a})=>r&&e.length<30?x("div",{className:"flex items-center gap-4 mb-6",children:[w(r)&&s("div",{className:n("rounded-full p-0",a==="outline"?"text-accent":"text-foreground"),children:s(k,{type:r.type,iconName:r.iconName,size:"2x"})}),s("div",{className:n("font-semibold",a==="outline"?"text-2xl text-primary":"text-3xl"),children:e})]}):r?x("div",{className:"flex flex-col gap-4",children:[w(r)&&s("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:s(k,{type:r.type,iconName:r.iconName,size:"4x"})}),s("h3",{className:n("font-semibold group-hover:text-accent transition-colors duration-400",a==="outline"?"text-2xl text-primary":"text-3xl"),children:e})]}):s("div",{className:"flex items-center gap-4 mb-6",children:s("div",{className:n("font-semibold",a==="outline"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as c,jsxs as S}from"react/jsx-runtime";var I=({title:r,description:e,features:a,id:m})=>S("section",{className:n("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[r&&c("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:m||"",children:r}),e&&typeof e=="string"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:c(p,{content:e,enableGutter:!1})}),c("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,t)=>{var i,u,d,b,v;if(((i=o.settings)==null?void 0:i.card)==="default"||!((u=o.settings)!=null&&u.card))return c(U,{section:o,index:t},t);{let A=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,iconName:o.icon.icon}};return c(R,{variant:((d=o.settings)==null?void 0:d.card)||"outline",icon:A()||void 0,heading:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,buttonText:(b=o.link)!=null&&b.url?"Find out more":void 0,buttonHref:((v=o.link)==null?void 0:v.url)||void 0},t)}})})]}),U=({section:r,index:e})=>{if(!r)return null;let a=S("div",{className:"flex flex-col gap-4",children:[r.icon&&c("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:c("i",{className:`${r.icon.type} fa-${r.icon.icon} fa-4x`})}),c("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:r.title}),r.statistic&&c("div",{className:"mb-6",children:c("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden text-foreground",children:r.statistic})}),r.content&&typeof r.content!="object"&&c("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:r.content}}),r.content&&typeof r.content=="object"&&c("div",{className:"text-lg opacity-80",children:c(p,{content:r.content,enableGutter:!1})})]},e);return r.link?c("a",{href:r.link.url?r.link.url:"#",className:"no-underline group",children:a},e):a};import X,{Fragment as $}from"react";import{jsx as l}from"react/jsx-runtime";function g({nodes:r}){return l($,{children:r==null?void 0:r.map((e,a)=>{if(e==null)return null;if(e.type==="text"&&e.text){let t=l(X.Fragment,{children:e.text},a);return e.format&1&&(t=l("strong",{children:t},a)),e.format&2&&(t=l("em",{children:t},a)),e.format&4&&(t=l("span",{style:{textDecoration:"line-through"},children:t},a)),e.format&8&&(t=l("span",{style:{textDecoration:"underline"},children:t},a)),e.format&16&&(t=l("code",{children:e.text},a)),e.format&32&&(t=l("sub",{children:t},a)),e.format&64&&(t=l("sup",{children:t},a)),t}if(e.type==="table")return l("table",{children:l("tbody",{children:e.children.map((t,i)=>l("tr",{children:t.children.map((u,d)=>l("td",{children:g({nodes:u.children})},d))},i))})},a);let m=t=>{if(t.children==null)return null;if((t==null?void 0:t.type)==="list"&&(t==null?void 0:t.listType)==="check")for(let i of t.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return g({nodes:t.children})},o="children"in e?m(e):"";if(e.type==="block"){let t=e.fields,i=t==null?void 0:t.blockType;if(!t||!i)return null;switch(i){case"cta":return l(P,{...t},a);case"mediaBlock":return l(C,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return l(T,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return l(F,{className:"col-start-2 mb-4",...t},a);case"code":return l(B,{className:"col-start-2",...t},a);case"features":return l(I,{...t},a);case"reusableContentBlock":g({nodes:t.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return l("br",{className:"col-start-2"},a);case"paragraph":return l("p",{className:"col-start-2",children:o},a);case"heading":{let t=e==null?void 0:e.tag;return l(t,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:o},a)}case"list":{let t=e==null?void 0:e.tag;return l(t,{className:"list col-start-2",children:o},a)}case"listitem":return(e==null?void 0:e.checked)!=null?l("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:o},a):l("li",{value:e==null?void 0:e.value,children:o},a);case"quote":return l("blockquote",{className:"col-start-2",children:o},a);case"link":{let t=e.fields;return l(f,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:o},a)}case"autolink":{let t=e.fields;return l(f,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:o},a)}default:return null}})})}import{jsx as j}from"react/jsx-runtime";var p=({className:r,content:e,enableGutter:a=!0,enableProse:m=!0})=>{var o;return e?j("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":m},r),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&g({nodes:(o=e==null?void 0:e.root)==null?void 0:o.children})}):null};import{jsx as N}from"react/jsx-runtime";var F=({className:r,content:e,style:a})=>N("div",{className:n("mx-auto my-8 w-full",r),children:N("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:N(p,{content:e,enableGutter:!1,enableProse:!1})})});export{F as a,P as b,I as c,g as d,p as e,R as f};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as y,b as h,c as b}from"./chunk-
|
|
4
|
+
import{a as y,b as h,c as b}from"./chunk-6PVDZJ4G.mjs";import{a as f}from"./chunk-FLFKXKOI.mjs";import{a as A}from"./chunk-22FHCZJD.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import{d as C}from"./chunk-S7OK7D5I.mjs";import{useState as D,useEffect as E,useCallback as P}from"react";import{AnimatePresence as w,motion as v}from"framer-motion";var k=C(A());import"pagedjs";import{Fragment as W,jsx as t,jsxs as g}from"react/jsx-runtime";var Y=c=>{let[s,r]=D(0),{blocks:i,hero:x}=c,N=i&&Array.isArray(i)&&i.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],S=e=>{r(e)},a=()=>{r(e=>(e+1)%n.length)},m=()=>{r(e=>(e-1+n.length)%n.length)},d=P(((e,o)=>{let p;return(...T)=>{clearTimeout(p),p=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?a():m()},300),[]),u=e=>{e.key==="ArrowDown"?a():e.key==="ArrowUp"&&m()};return E(()=>(k.default.init({duration:1e3}),window.addEventListener("wheel",d),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",d),window.removeEventListener("keydown",u)}),[]),g("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(w,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
5
5
|
${o===s?"opacity-100":"opacity-0"}
|
|
6
6
|
w-full h-full bg-cover bg-center`,children:o===0?t(b,{hero:x,title:c.title}):g(W,{children:[e.blockName&&t(h,{title:e.blockName}),t(f,{blocks:[e],fill:!0}),t(y,{})]})})},o))}),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:a,children:t(R,{})})]})},R=()=>t(w,{children:t(v.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:t(v.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});export{Y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"./chunk-YNDKGRL6.mjs";import{a as n}from"./chunk-TFWGOEV7.mjs";import{Fragment as c}from"react";import{jsx as o}from"react/jsx-runtime";var T=t=>{var m;let{className:s,htmlElement:i="div",resource:e}=t,r=typeof e=="object"&&((m=e==null?void 0:e.mimeType)==null?void 0:m.includes("video"));return o(i||c,{...i!==null?{className:s}:{},children:r?o(n,{...t}):o(a,{...t})})};export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-GBQKJ3RF.mjs";import{a as s}from"./chunk-44VMK4FL.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as o,jsxs as f}from"react/jsx-runtime";var h=a=>{let{columns:t}=a,r={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return o("div",{className:"container my-6",children:o("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((i,p)=>{let{enableLink:m,link:d,richText:n,size:l}=i;return f("div",{className:e(`col-span-4 lg:col-span-${r[l]}`,{"md:col-span-2":l!=="full"}),children:[n&&o(c,{content:n,enableGutter:!1}),m&&o(s,{...d})]},p)})})})};export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as v}from"./chunk-NLFCSX3M.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as v}from"./chunk-NLFCSX3M.mjs";import{a as p}from"./chunk-E3BQTJOB.mjs";import{a as y}from"./chunk-2MC5DSC7.mjs";import{a as f}from"./chunk-B776KN7L.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:i,approveLeave:o,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),g=new URL(window.location.href);return g.searchParams.set("date",C),w.push(g.toString()),{success:!0}};if(L)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>i?i(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(p,{leaveRequests:h,onApprove:e=>o?o(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-423OEU3K.mjs";import{e as r}from"./chunk-GBQKJ3RF.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-423OEU3K.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-GBQKJ3RF.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-RWM5ZZUL.mjs";import{a as l}from"./chunk-FBAB23G3.mjs";import{a as c}from"./chunk-36KUV6P4.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as i}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function f({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:i("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:i("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:i("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as d}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return d("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(n,{children:d("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(f,{breadcrumbItems:r})]})})]})}export{m as a,k as b,f as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-3PLJMCNU.mjs";import{a as i}from"./chunk-HBZMFHEU.mjs";import{a as r}from"./chunk-C5XNOZXC.mjs";import{jsx as o}from"react/jsx-runtime";function f({type:t="slideshow",orientation:a="landscape",...e}){let l=e.page;console.log("args",e);let{contentWithIds:s,tableOfContents:p}=r(l);if(t==="slideshow")return o("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:o(i,{blocks:s,hero:e.hero,title:e.page.title})});if(t==="print")return o(n,{page:e.page,layout:a})}export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as f}from"./chunk-SBAFXZVU.mjs";import{a as
|
|
4
|
+
import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as f}from"./chunk-SBAFXZVU.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as S}from"./chunk-PY53YVFX.mjs";import{a as c}from"./chunk-3YZN4MJB.mjs";import{b as s,d as b,f as u}from"./chunk-KB6PO4K4.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as g}from"./chunk-DESYC5BB.mjs";import{a as p}from"./chunk-WU3JMLSC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(g,{isMenuOpen:!0,logoLight:h,logoDark:p,...a.header,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(S,{...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(f,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-USNWEWYQ.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{e as c}from"./chunk-
|
|
4
|
+
import{e as c}from"./chunk-GBQKJ3RF.mjs";import{a as o}from"./chunk-44VMK4FL.mjs";import{a as s}from"./chunk-ICTOXY7D.mjs";import p from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var y=({links:r,media:t,children:m,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:a("div",{className:"text-center container",children:[m||i&&e(c,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:i,enableGutter:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:n},l)=>e("li",{children:e(o,{...n})},l))})]})}),a("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&e("div",{children:e(p,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),e("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s}from"./chunk-
|
|
1
|
+
import{e as s}from"./chunk-GBQKJ3RF.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function f({subtitle:o,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:l,invert:c=!1}){let m=a(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},l);return p("div",{className:m,children:[o&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:o}),e("h2",{className:a("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",c&&"text-gray-900"),children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(s,{content:t,enableGutter:!1})]})}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-USNWEWYQ.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import t from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u(o){let{images:a,sectionHeading:c,keyPoints:d,description:s}=o;return e("section",{id:"about-section",className:m("section-padding-primary",o.className||""),children:e(n,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(l,{...c}),d&&d.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:d.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-RWM5ZZUL.mjs";import{a as c}from"./chunk-FBAB23G3.mjs";import{a as u}from"./chunk-36KUV6P4.mjs";import{a as s}from"./chunk-KSCHUMVE.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as h}from"./chunk-DESYC5BB.mjs";import{a as l}from"./chunk-WU3JMLSC.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(h,{isMenuOpen:!0,logoLight:f,logoDark:l,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(c,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(s,{...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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d}from"./chunk-PY53YVFX.mjs";import{a as
|
|
4
|
+
import{a as d}from"./chunk-PY53YVFX.mjs";import{a as m}from"./chunk-3YZN4MJB.mjs";import{b as i,f as o}from"./chunk-KB6PO4K4.mjs";import{a as l}from"./chunk-H7D3PZKE.mjs";import{a as s}from"./chunk-DRJBYVJB.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};
|