cortex-react-components 1.8.0 → 1.9.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-3ZEL6VBT.mjs +1 -0
- package/dist/{chunk-KATPPJG6.mjs → chunk-62NTFOV7.mjs} +1 -1
- package/dist/{chunk-ZRH3Z62F.mjs → chunk-6GCNE5AK.mjs} +1 -1
- package/dist/{chunk-I2PU2ABB.mjs → chunk-B65LGTFM.mjs} +1 -1
- package/dist/{chunk-4E3HCEBV.mjs → chunk-CNEP5MIZ.mjs} +1 -1
- package/dist/{chunk-X4NLERYK.mjs → chunk-CQHNH3XJ.mjs} +1 -1
- package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
- package/dist/{chunk-GKPGUJII.mjs → chunk-F4RFH25J.mjs} +1 -1
- package/dist/{chunk-WMZYFRHZ.mjs → chunk-FEBVOLWP.mjs} +1 -1
- package/dist/{chunk-GZ4Q2S2Q.mjs → chunk-H5UHZUPY.mjs} +1 -1
- package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
- package/dist/chunk-K6HG237V.mjs +1 -0
- package/dist/{chunk-HMZ7M6O7.mjs → chunk-MOZE34SM.mjs} +1 -1
- package/dist/{chunk-QSXVIRH2.mjs → chunk-O6V6PM4N.mjs} +1 -1
- package/dist/{chunk-VQOJEIEJ.mjs → chunk-SHU3YEUD.mjs} +1 -1
- package/dist/chunk-TDVKLSBH.mjs +1 -0
- package/dist/{chunk-T63M5EHE.mjs → chunk-UHQCQUD5.mjs} +1 -1
- package/dist/{chunk-4FF5GXQ5.mjs → chunk-UK4C6QCG.mjs} +1 -1
- package/dist/{chunk-EZBQVFIZ.mjs → chunk-UWBQ2MHT.mjs} +1 -1
- package/dist/{chunk-ROBWIJ2Z.mjs → chunk-WBYDQI5A.mjs} +1 -1
- package/dist/chunk-WISCWNL2.mjs +1 -0
- package/dist/chunk-X6TCNLEE.mjs +4 -0
- package/dist/{chunk-64NIISYM.mjs → chunk-XWTX2W5V.mjs} +1 -1
- package/dist/chunk-YG4SM7B5.mjs +1 -0
- package/dist/chunk-ZDCRDIR5.mjs +4 -0
- package/dist/chunk-ZP62R7ER.mjs +4 -0
- package/dist/common-types.d.ts +53 -0
- package/dist/common-types.js +1 -0
- package/dist/common-types.mjs +1 -0
- 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/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/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/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/{Menus → HeaderFooter}/AppLauncher.mjs +1 -1
- package/dist/components/{Menus → HeaderFooter}/AppLauncher.stories.mjs +1 -1
- package/dist/components/HeaderFooter/BrandLogo.d.ts +4 -0
- package/dist/components/HeaderFooter/BrandLogo.js +1 -0
- package/dist/components/HeaderFooter/BrandLogo.mjs +1 -0
- package/dist/components/HeaderFooter/Footer.d.ts +44 -0
- package/dist/components/HeaderFooter/Footer.js +1 -0
- package/dist/components/HeaderFooter/Footer.mjs +1 -0
- package/dist/components/HeaderFooter/Footer.stories.js +1 -0
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -0
- package/dist/components/HeaderFooter/HeaderDesktop.d.ts +6 -0
- package/dist/components/HeaderFooter/HeaderDesktop.js +4 -0
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +2 -0
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -0
- package/dist/components/{Menus → HeaderFooter}/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -0
- package/dist/components/HeaderFooter/SimpleHeader.mjs +2 -0
- package/dist/components/{Menus → HeaderFooter}/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.d.ts +1 -0
- package/dist/components/HeaderFooter/VideoHeader.js +4 -0
- package/dist/components/HeaderFooter/VideoHeader.mjs +2 -0
- package/dist/components/HeaderFooter/index.d.ts +5 -0
- package/dist/components/HeaderFooter/index.js +4 -0
- package/dist/components/HeaderFooter/index.mjs +1 -0
- 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/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Icons/ScrollDownIcon.d.ts +2 -0
- package/dist/components/Icons/ScrollDownIcon.js +4 -0
- package/dist/components/Icons/ScrollDownIcon.mjs +2 -0
- package/dist/components/Icons/ScrollDownIcon.stories.js +4 -0
- package/dist/components/Icons/ScrollDownIcon.stories.mjs +1 -0
- package/dist/components/Images/IconIndex.js +1 -1
- package/dist/components/Images/IconIndex.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.d.ts +0 -4
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.d.ts +19 -0
- package/dist/components/Other/Container.js +1 -0
- package/dist/components/Other/Container.mjs +1 -0
- package/dist/components/Other/CustomLink.d.ts +11 -0
- package/dist/components/Other/CustomLink.js +1 -0
- package/dist/components/Other/CustomLink.mjs +1 -0
- package/dist/components/Other/index.d.ts +2 -0
- package/dist/components/Other/index.js +1 -0
- package/dist/components/Other/index.mjs +1 -0
- package/dist/components/Pages/Documentation.mjs +1 -1
- package/dist/components/Pages/Documentation.stories.mjs +1 -1
- package/dist/components/Pages/IndexPage.mjs +1 -1
- package/dist/components/Pages/IndexPage.stories.mjs +1 -1
- package/dist/components/Pages/Intranet.js +1 -1
- package/dist/components/Pages/Intranet.mjs +1 -1
- package/dist/components/Pages/Intranet.stories.js +1 -1
- package/dist/components/Pages/Intranet.stories.mjs +1 -1
- package/dist/components/Pages/Page.js +1 -1
- package/dist/components/Pages/Page.mjs +1 -1
- package/dist/components/Pages/Page.stories.js +166 -166
- package/dist/components/Pages/Page.stories.mjs +1 -1
- package/dist/components/Payload/RichText/index.d.ts +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/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/cortex-reply-bw-TFX4Q54O.png +0 -0
- package/dist/cortex-reply-light-27IMI3G7.png +0 -0
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +5 -2
- package/dist/components/Menus/HeaderMenu.mjs +0 -1
- package/dist/components/Menus/HeaderMenuItem.mjs +0 -1
- package/dist/components/Menus/SimpleHeader.mjs +0 -2
- /package/dist/{chunk-ZKEY52ZF.mjs → chunk-KIDK6JOG.mjs} +0 -0
- /package/dist/{chunk-BUTUFEFR.mjs → chunk-M62IIIAN.mjs} +0 -0
- /package/dist/{chunk-MUAUXGCS.mjs → chunk-NC75G3JN.mjs} +0 -0
- /package/dist/{chunk-GS2BYKPO.mjs → chunk-ZDPQXVTF.mjs} +0 -0
- /package/dist/components/{Menus → HeaderFooter}/AppLauncher.d.ts +0 -0
- /package/dist/components/{Menus → HeaderFooter}/AppLauncher.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/AppLauncher.stories.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/HeaderMenu.d.ts +0 -0
- /package/dist/components/{Menus → HeaderFooter}/HeaderMenu.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/HeaderMenu.stories.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/HeaderMenuItem.d.ts +0 -0
- /package/dist/components/{Menus → HeaderFooter}/HeaderMenuItem.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/SimpleHeader.d.ts +0 -0
- /package/dist/components/{Menus → HeaderFooter}/SimpleHeader.js +0 -0
- /package/dist/components/{Menus → HeaderFooter}/SimpleHeader.stories.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as t}from"react/jsx-runtime";function d({children:e,isFluid:o=!1,isNoPadding:a=!1}){let i=n("container",o&&"full-width",a&&"no-padding");return t("div",{className:i,children:e})}export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-H5UHZUPY.mjs";import{a as p}from"./chunk-UHQCQUD5.mjs";import{a as m}from"./chunk-MOZE34SM.mjs";import{jsx as a}from"react/jsx-runtime";var n={highImpact:t,lowImpact:p,mediumImpact:m},l=e=>{let{type:o}=e||{};if(!o||o==="none")return null;let r=n[o];return r?a(r,{...e}):null};export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g}from"./chunk-
|
|
1
|
+
import{d as g}from"./chunk-UWBQ2MHT.mjs";import{a as c}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";var d=({title:r,description:l,features:n})=>m("section",{className:c("container w-full rounded-lg","dark:bg-black dark:text-gray-300 bg-white text-gray-800"),children:[r&&e("h2",{className:"mb-12 text-4xl font-bold tracking-tight md:text-5xl",children:r}),l&&e("p",{className:"mb-5 text-xl font-bold tracking-tight md:text-xl",children:l}),e("div",{className:`grid gap-8 md:grid-cols-${n?n.length:1}`,children:n&&n.map((t,o)=>{var i,s;let a=m("div",{className:"flex flex-col gap-4",children:[e("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-200",children:e("i",{className:`${t.icon.type} fa-${t.icon.icon} fa-4x`})}),e("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-200",children:t.title}),typeof t.content!="object"&&e("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:t.content}}),typeof t.content=="object"&&e("div",{className:"text-lg opacity-80",children:e(g,{content:t.content,enableGutter:!1})})]},o);return console.log("link",t.link),t.link?e("a",{href:t.link.url?t.link.url:`/${(i=t.link.reference)==null?void 0:i.relationTo}/${((s=t.link.reference)==null?void 0:s.value).slug}`,className:"no-underline group",children:a},o):a})})]});export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p}from"./chunk-JUV4GZ2N.mjs";import{a as g}from"./chunk-CPKQIUX4.mjs";import s from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var u=({post:v})=>{let{categories:o,meta:{image:i}={},populatedAuthors:a,publishedAt:n,title:f}=v;return t("div",{className:"relative -mt-[10.4rem] flex items-end",children:[e("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-white pb-8",children:t("div",{className:"col-start-1 col-span-1 md:col-start-2 md:col-span-2",children:[e("div",{className:"uppercase text-sm mb-6",children:o==null?void 0:o.map((m,l)=>{if(typeof m=="object"&&m!==null){let{title:c}=m,d=c||"Untitled category",r=l===o.length-1;return t(s.Fragment,{children:[d,!r&&e(s.Fragment,{children:", \xA0"})]},l)}return null})}),e("div",{className:"",children:e("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:f})}),t("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[e("div",{className:"flex flex-col gap-4",children:a&&t("div",{className:"flex flex-col gap-1",children:[e("p",{className:"text-sm",children:"Author"}),a.map((m,l)=>{let{name:c}=m,d=l===a.length-1,r=l===a.length-2;return t(s.Fragment,{children:[c,r&&a.length>2&&e(s.Fragment,{children:", "}),r&&a.length===2&&e(s.Fragment,{children:" "}),!d&&a.length>1&&e(s.Fragment,{children:"and "})]},l)})]})}),n&&t("div",{className:"flex flex-col gap-1",children:[e("p",{className:"text-sm",children:"Date Published"}),e("time",{dateTime:n,children:p(n)})]})]})]})}),t("div",{className:"min-h-[80vh] select-none",children:[i&&typeof i!="string"&&e(g,{fill:!0,imgClassName:"-z-10 object-cover",resource:i}),e("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-black to-transparent"})]})]})};export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-ADPXM7KO.mjs";import{d as a}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-ADPXM7KO.mjs";import{d as a}from"./chunk-UWBQ2MHT.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(a,{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(r,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as m}from"./chunk-3YZN4MJB.mjs";import{a as
|
|
4
|
+
import{a as m}from"./chunk-3YZN4MJB.mjs";import{a as d}from"./chunk-IE2A7UT3.mjs";import{b as i,f as o}from"./chunk-D43ENVPX.mjs";import{a as s}from"./chunk-XWTX2W5V.mjs";import{a as l}from"./chunk-72BBXZKW.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{a as _}from"./chunk-FRWX5YES.mjs";import*as r 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 o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=_(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.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=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(I,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(E,{open:p,onOpenChange:b,...s,children:o(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:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("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]")}),o("div",{className:i("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",n),...s,children:o("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=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(L,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("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=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("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=r.forwardRef(({className:a,...e},t)=>o(M,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(N,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("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=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("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}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("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}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("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=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(H,{children:[o(P,{asChild:!0,children:v}),o(B,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("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),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("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 ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("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}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("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",n),...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,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
|
|
4
|
+
import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{a as _}from"./chunk-FRWX5YES.mjs";import*as r 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 o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=_(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.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=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(I,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(E,{open:p,onOpenChange:b,...s,children:o(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:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("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]")}),o("div",{className:i("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",n),...s,children:o("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=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(L,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("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=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("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=r.forwardRef(({className:a,...e},t)=>o(M,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(N,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("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=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("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}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("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}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("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=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(H,{children:[o(P,{asChild:!0,children:v}),o(B,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("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),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("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 ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("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}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("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",n),...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,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c}from"./chunk-
|
|
1
|
+
import{d as c}from"./chunk-UWBQ2MHT.mjs";import{a as s}from"./chunk-YAH6C5YX.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{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-
|
|
4
|
+
import{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-D43ENVPX.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as d,b as c,c as m}from"./chunk-YNCJATT7.mjs";import{a as h}from"./chunk-5VW5YOZB.mjs";import{PencilLine as z,ChevronDown as x,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as A,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(h,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:N,editorComponent:k,loading:S=!1,editMode:G=!1,onAddDocument:L,onEditDocument:O,onPrintDocument:D,onGithubClick:I,onNavClick:f,LinkComponent:R,...F}){let j=R?t=>e(R,{...t}):f?({item:t,children:r,...l})=>e("button",{onClick:()=>f&&f(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...l,children:r}):t=>e("a",{href:t.href,...t});return a(v,{side:"right",variant:"inset",...F,children:[a(w,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(p,{onClick:L,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),I&&e(n,{children:e(p,{onClick:I,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(p,{onClick:()=>O(),variant:G?"outline":"default",className:$(G&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(p,{onClick:D,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),k&&a(A,{children:[e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Editor Controls",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:k})})]})}),e(P,{className:"mx-0"})]}),a(T,{className:"overflow-auto",children:[S&&a(A,{children:[a(s,{children:[e(b,{children:"Related Content"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(s,{children:[e(b,{children:"Table of Contents"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!S&&Object.keys(i).length>0&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Related Content",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(g,{children:i[t].map(r=>e(y,{children:e(M,{asChild:!0,isActive:!1,size:"sm",children:a(j,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(h,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),N&&!S&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Table of Contents",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:N.map(t=>{var r;return a(n,{children:[e(p,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),(r=t.items)!=null&&r.length?e(g,{children:t.items.map(l=>e(y,{children:e(M,{asChild:!0,isActive:l.isActive,size:"sm",children:e("a",{href:`#${l.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:l.title})})})},l.title))}):null]},t.title)})})})})]})})]}),e(B,{})]})}export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as m}from"./chunk-
|
|
1
|
+
import{d as m}from"./chunk-UWBQ2MHT.mjs";import{a as c}from"./chunk-YAH6C5YX.mjs";import{a as o}from"./chunk-CPKQIUX4.mjs";import p from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var y=({links:r,media:t,children:l,richText:a})=>i("div",{className:"relative -mt-[10.4rem] flex items-center justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mb-8 z-10 relative flex items-center justify-center",children:i("div",{className:"max-w-[36.5rem] text-center",children:[l||a&&e(m,{className:"mb-6",content:a,enableGutter:!1}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:s},n)=>e("li",{children:e(c,{...s})},n))})]})}),i("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&e(o,{fill:!0,imgClassName:"-z-10 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})})]})]});export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
4
|
+
import{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-D43ENVPX.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(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 i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("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"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(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"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!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:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f}from"./chunk-YG4SM7B5.mjs";import{a as r}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import u from"next/image";import{FaChevronRight as k,FaEnvelope as y,FaPaperPlane as w,FaPhone as P,FaCalendarDays as L}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var C=o("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),p=o("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),g=o("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-primary flex-none"),h=o("flex items-center gap-5"),c=o("transition-colors duration-300 hover:text-primary dark:hover:text-white");function R({className:v,footerData:N,logoLight:x,logoDark:b}){let{about:l,columnOne:n,columnTwo:s,columnThree:d,footerBottom:m}=N;return t("footer",{className:o("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",v),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(f,{logoLight:x,logoDark:b}),a("p",{className:"mb-7 mt-3",children:l.description}),l.socialLinks&&l.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-primary text-white",children:l.socialLinks.map((e,i)=>a("li",{children:a(r,{"aria-label":e.href,className:C,href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},i))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:p,children:n.title}),n.links&&n.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid gap-2",children:n.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:a(k,{})}),a(r,{href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:p,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-5",children:[t("li",{className:h,children:[a("span",{className:g,children:a(w,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:h,children:[a("span",{className:g,children:a(y,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,i)=>a("a",{href:`mailto:${e}`,className:c,children:e},i))})]}),t("li",{className:h,children:[a("span",{className:g,children:a(P,{})}),s.phoneNumbers&&s.phoneNumbers.length>0&&a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,i)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:c,children:e},i))})]})]})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[a("h3",{className:p,children:d.title}),d.blogs&&d.blogs.length>0&&a("div",{className:"grid gap-6",children:d.blogs.map((e,i)=>t("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[a("div",{className:"flex-none overflow-hidden rounded-5",children:a(u,{...e.image,alt:e.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),t("div",{children:[t("p",{className:"flex items-center gap-2.5 dark:text-body",children:[a("span",{className:"text-primary",children:a(L,{})}),a("span",{children:e.date})]}),a("h4",{className:"text-md font-bold leading-normal",children:a(r,{href:e.slug,className:"transition-colors duration-300 hover:text-primary",children:e.title})})]})]},i))})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:m.copyrightText}),m.links&&m.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:m.links.map(e=>a("li",{children:a(r,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:c,children:e.label})},e.label))})})]})})})]})}export{R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as t}from"./chunk-
|
|
1
|
+
import{d as t}from"./chunk-UWBQ2MHT.mjs";import{a}from"./chunk-CPKQIUX4.mjs";import l from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var d=({links:n,media:e,children:i,richText:o})=>m("div",{className:"relative bg-brand-one pb-12 pt-10",children:[e&&typeof e=="object"&&r(a,{imgClassName:"mix-blend-overlay opacity-50",fill:!0,priority:!0,resource:e}),e&&typeof e=="string"&&r("div",{children:r(l,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e})}),r("div",{className:"container mx-0 min-w-full relative z-9",children:r("div",{className:"text-brand-one-foreground px-16",children:i||o&&r(t,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});export{d as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as d,b as o,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as b}from"./chunk-3YZN4MJB.mjs";import{a as
|
|
4
|
+
import{a as d,b as o,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as b}from"./chunk-3YZN4MJB.mjs";import{a as p}from"./chunk-IE2A7UT3.mjs";import{a as S}from"./chunk-FEBVOLWP.mjs";import{b as s,d as c,f as u}from"./chunk-D43ENVPX.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-XWTX2W5V.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...a}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(f,{...a.header}),r(s,{className:"top-14 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"}),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(c,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{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"})]}),e(b,{})]})}export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as l}from"./chunk-
|
|
4
|
+
import{a as l}from"./chunk-H5UHZUPY.mjs";import{a as s}from"./chunk-UHQCQUD5.mjs";import{a as c}from"./chunk-MOZE34SM.mjs";import{a as u}from"./chunk-XWTX2W5V.mjs";import{a as t,b as i,c as o,e as m}from"./chunk-D76EO57Z.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function p({...r}){return a("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(u,{...r.header}),a("div",{className:"relative",children:[r.hero&&r.hero.type==="lowImpact"&&e(s,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(c,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),e("div",{className:"container py-8",children:a("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),a("div",{className:"space-y-6",children:[a(t,{children:[e(i,{children:e(o,{children:"Quick Actions"})}),a(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"})]})]}),a(t,{children:[e(i,{children:e(o,{children:"Resources"})}),e(m,{children:a("nav",{className:"flex flex-col space-y-2",children:[a("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"})]}),a("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"})]}),a("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{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I="./cortex-reply-light-27IMI3G7.png";export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r}from"./chunk-
|
|
1
|
+
import{d as r}from"./chunk-UWBQ2MHT.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"container mx-0 min-w-full py-8 bg-muted",children:e("div",{className:"max-w-[48rem] px-16",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-F4RFH25J.mjs";import{a as m}from"./chunk-6GCNE5AK.mjs";import{b as l}from"./chunk-UWBQ2MHT.mjs";import{a as e}from"./chunk-5FLNXLSS.mjs";import{Fragment as p}from"react";import{jsx as r}from"react/jsx-runtime";var s={content:a,cta:l,mediaBlock:e,imageBlock:e,features:m},C=i=>{let{blocks:o}=i;return o&&Array.isArray(o)&&o.length>0?r(p,{children:o.map((c,k)=>{let{blockType:t}=c;if(t&&t in s){let n=s[t];if(n)return r("div",{className:"my-6",children:r(n,{...c})},k)}return null})}):null};export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as N,j as T,k as g,l as C,m as h,n as P,o as v}from"./chunk-O5BAW5XQ.mjs";import{a as p}from"./chunk-YAH6C5YX.mjs";import{a as y}from"./chunk-5FLNXLSS.mjs";import{a as k}from"./chunk-763KMQIQ.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as m,jsxs as S}from"react/jsx-runtime";var b=({links:s,richText:e})=>m("div",{className:"container",children:S("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:[m("div",{className:"max-w-[48rem] flex items-center",children:e&&m(n,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:a},c)=>m(p,{size:"lg",...a},c))})]})});import R,{Fragment as I}from"react";import{jsx as t}from"react/jsx-runtime";function f({nodes:s}){return t(I,{children:s==null?void 0:s.map((e,a)=>{if(e==null)return null;if(e.type==="text"){let r=t(R.Fragment,{children:e.text},a);return e.format&1&&(r=t("strong",{children:r},a)),e.format&2&&(r=t("em",{children:r},a)),e.format&4&&(r=t("span",{style:{textDecoration:"line-through"},children:r},a)),e.format&8&&(r=t("span",{style:{textDecoration:"underline"},children:r},a)),e.format&16&&(r=t("code",{children:e.text},a)),e.format&32&&(r=t("sub",{children:r},a)),e.format&64&&(r=t("sup",{children:r},a)),r}let c=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return f({nodes:r.children})},l="children"in e?c(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return t(b,{...r},a);case"mediaBlock":return t(y,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return t(B,{className:"col-start-2 mb-4",...r},a);case"code":return t(k,{className:"col-start-2",...r},a);default:return null}}else switch(e.type){case"linebreak":return t("br",{className:"col-start-2"},a);case"paragraph":return t("p",{className:"col-start-2",children:l},a);case"heading":{let r=e==null?void 0:e.tag;return t(r,{className:"col-start-2",children:l},a)}case"list":{let r=e==null?void 0:e.tag;return t(r,{className:"list col-start-2",children:l},a)}case"listitem":return(e==null?void 0:e.checked)!=null?t("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},a):t("li",{value:e==null?void 0:e.value,children:l},a);case"quote":return t("blockquote",{className:"col-start-2",children:l},a);case"link":{let r=e.fields;return t(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},a)}default:return null}})})}import{jsx as
|
|
1
|
+
import{i as N,j as T,k as g,l as C,m as h,n as P,o as v}from"./chunk-O5BAW5XQ.mjs";import{a as p}from"./chunk-YAH6C5YX.mjs";import{a as y}from"./chunk-5FLNXLSS.mjs";import{a as k}from"./chunk-763KMQIQ.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as m,jsxs as S}from"react/jsx-runtime";var b=({links:s,richText:e})=>m("div",{className:"container",children:S("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:[m("div",{className:"max-w-[48rem] flex items-center",children:e&&m(n,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:a},c)=>m(p,{size:"lg",...a},c))})]})});import R,{Fragment as I}from"react";import{jsx as t}from"react/jsx-runtime";function f({nodes:s}){return t(I,{children:s==null?void 0:s.map((e,a)=>{if(e==null)return null;if(e.type==="text"){let r=t(R.Fragment,{children:e.text},a);return e.format&1&&(r=t("strong",{children:r},a)),e.format&2&&(r=t("em",{children:r},a)),e.format&4&&(r=t("span",{style:{textDecoration:"line-through"},children:r},a)),e.format&8&&(r=t("span",{style:{textDecoration:"underline"},children:r},a)),e.format&16&&(r=t("code",{children:e.text},a)),e.format&32&&(r=t("sub",{children:r},a)),e.format&64&&(r=t("sup",{children:r},a)),r}let c=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return f({nodes:r.children})},l="children"in e?c(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return t(b,{...r},a);case"mediaBlock":return t(y,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return t(B,{className:"col-start-2 mb-4",...r},a);case"code":return t(k,{className:"col-start-2",...r},a);default:return null}}else switch(e.type){case"linebreak":return t("br",{className:"col-start-2"},a);case"paragraph":return t("p",{className:"col-start-2",children:l},a);case"heading":{let r=e==null?void 0:e.tag;return t(r,{className:"col-start-2",children:l},a)}case"list":{let r=e==null?void 0:e.tag;return t(r,{className:"list col-start-2",children:l},a)}case"listitem":return(e==null?void 0:e.checked)!=null?t("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},a):t("li",{value:e==null?void 0:e.value,children:l},a);case"quote":return t("blockquote",{className:"col-start-2",children:l},a);case"link":{let r=e.fields;return t(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},a)}default:return null}})})}import{jsx as w}from"react/jsx-runtime";var n=({className:s,content:e,enableGutter:a=!0,enableProse:c=!0})=>{var l;return e?w("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":c},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&f({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};import{jsx as u}from"react/jsx-runtime";var B=({className:s,content:e,style:a})=>u("div",{className:i("mx-auto my-8 w-full",s),children:u("div",{className:i("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:u(n,{content:e,enableGutter:!1,enableProse:!1})})});export{B as a,b,f as c,n as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunk-NN3TSSQT.mjs";import{a as x}from"./chunk-XWTX2W5V.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as s}from"./chunk-OD4RCKMK.mjs";import{a}from"./chunk-72BBXZKW.mjs";import{a as d}from"./chunk-IQPZEEYJ.mjs";import{Fragment as n,jsx as e,jsxs as l}from"react/jsx-runtime";function p({...t}){return e(n,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(x,{...t.header}),e(d,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"}),e(m,{})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"next/link";import{jsx as e}from"react/jsx-runtime";function s({children:r,href:o,openNewTab:t,...i}){return e(n,{href:o,target:t?"_blank":"_self",...i,children:r})}export{s as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as i}from"./chunk-3ZEL6VBT.mjs";import{a}from"./chunk-TDVKLSBH.mjs";import{a as c}from"./chunk-YG4SM7B5.mjs";import{useState as m,useEffect as u}from"react";import{Menu as f,X as g}from"lucide-react";import{Fragment as p,jsx as e,jsxs as t}from"react/jsx-runtime";function y({isMenuOpen:r,setIsMenuOpen:o}){let[s,l]=m(!1);return u(()=>{let n=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e(p,{children:e("header",{className:`fixed top-0 left-0 right-0 z-50 mx-auto transition-all duration-300 ${s||r?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e(i,{children:e("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:t("div",{className:"flex items-center justify-between bg-primary px-9 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] rounded-b-xl",children:[e(c,{logoDark:a,logoLight:a}),t("ul",{className:"flex items-center justify-center flex-grow space-x-8 text-md",children:[e("li",{children:t("a",{href:"/services",className:"relative transition-colors group",children:["Services",e("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-white dark:bg-primary transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}),e("li",{children:t("a",{href:"/insights",className:"relative transition-colors group",children:["Insights",e("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-white dark:bg-primary transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}),e("li",{children:t("a",{href:"/about",className:"relative transition-colors group",children:["About Us",e("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-white dark:bg-primary transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}),e("li",{children:t("a",{href:"/contact",className:"relative transition-colors group",children:["Contact",e("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-white dark:bg-primary transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})})]}),!s&&o&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{o&&o(!r)},children:r?e(g,{className:"w-6 h-6 text-white"}):e(f,{className:"w-6 h-6 text-white"})})]})})})})})}export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-
|
|
4
|
+
import{a as h}from"./chunk-M62IIIAN.mjs";import{useState as m,useEffect as v}from"react";import{Dialog as w,DialogPanel as k,Disclosure as D,DisclosureButton as y,DisclosurePanel as P,PopoverGroup as M}from"@headlessui/react";import{Bars3Icon as I,XMarkIcon as $}from"@heroicons/react/24/outline";import{SunIcon as N,MoonIcon as C}from"@heroicons/react/20/solid";import{jsx as e,jsxs as t}from"react/jsx-runtime";var c=["light","dark","green"];function A({title:l,logo:a,menuItems:d}){let[o,n]=m(!1),[S,T]=m(!1),[u,g]=m("light"),r=a==null?void 0:a.split(".")[0],i=a==null?void 0:a.split(".")[1],[b,p]=m(`${r}.${i}`),f=s=>{c.includes(s)?p(s==="light"?`${r}.${i}`:`${r}-${s}.${i}`):p(`${r}.${i}`)};v(()=>{let s=localStorage.getItem("theme")||"light";console.log("storedTheme",s),g(s),document.documentElement.setAttribute("class",s),f(s)},[]);let x=()=>{let s=c[(c.indexOf(u)+1)%c.length];g(s),document.documentElement.setAttribute("class",s),localStorage.setItem("theme",s),f(s)};return t("header",{className:"relative isolate z-10 bg-background h-14",children:[t("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[e("div",{className:"flex lg:flex-1",children:t("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[e("span",{className:"sr-only",children:l}),e("img",{alt:l,src:b,className:"h-9 w-auto"})]})}),e("div",{className:"flex lg:hidden",children:t("button",{type:"button",onClick:()=>n(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[e("span",{className:"sr-only",children:"Open main menu"}),e(I,{"aria-hidden":"true",className:"h-6 w-6"})]})}),e(M,{className:"hidden lg:flex lg:gap-x-12",children:d.map(s=>e(h,{...s},s.name))}),e("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:e("button",{onClick:x,className:"p-2 text-gray-700 outline-none",children:u==="dark"?e(N,{className:"h-6 w-6"}):u==="green"?e(C,{className:"h-6 w-6"}):e(N,{className:"h-6 w-6"})})})]}),t(w,{open:o,onClose:n,className:"lg:hidden",children:[e("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),t(k,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[t("div",{className:"flex items-center justify-between",children:[t("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[e("span",{className:"sr-only",children:"Your Company"}),e("img",{alt:l,src:a,className:"h-8 w-auto"})]}),t("button",{type:"button",onClick:()=>n(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[e("span",{className:"sr-only",children:"Close menu"}),e($,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),e("div",{className:"mt-6 flow-root",children:e("div",{className:"-my-6 divide-y divide-gray-500/10",children:e("div",{className:"space-y-2 py-6",children:d.map(s=>e(H,{...s},s.name))})})})]})]})]})}function H({name:l,items:a,actions:d,href:o}){return!a&&o?e("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:l}):t(D,{as:"div",className:"-mx-3",children:[e(y,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:l}),e(P,{className:"mt-2 space-y-2",children:a&&a.map(n=>e(y,{as:"a",href:n.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:n.name},n.name))})]})}export{A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-WISCWNL2.mjs";import i from"next/image";import{jsx as l,jsxs as o}from"react/jsx-runtime";function s({logoLight:r,logoDark:t}){return o(a,{href:"/",className:"py-2",children:[l(i,{className:"logo-light dark:hidden",src:r.src,width:r.width,height:r.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"200px",height:"auto"}}),l(i,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"200px",height:"auto"}})]})}export{s as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{useEffect as o,useState as a}from"react";import{AnimatePresence as r,motion as i}from"framer-motion";import{jsx as e}from"react/jsx-runtime";var d=()=>{let[n,t]=a(!0);return o(()=>{typeof window!="undefined"&&window.addEventListener("scroll",()=>{window.scrollY>10?t(!1):t(!0)})}),e(r,{children:n&&e(i.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:"w-fit min-h-[75px] min-w-[30px] p-1 border-2 rounded-full border-gray-500 dark:border-white ",children:e(i.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:"w-[25px] h-[25px] rounded-full bg-gray-500 dark:bg-white"})})})},p=d;export{p as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a}from"./chunk-X6TCNLEE.mjs";import{useState as l,useEffect as p}from"react";import{Menu as m,X as d,ChevronDown as w}from"lucide-react";import v from"next/image";var u="./cortex-reply-bw-TFX4Q54O.png";import{Fragment as f,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let[x,i]=l(!1),[F,n]=l(!1),[o,r]=l(!1),c=()=>{let t=document.getElementById("next-section");t&&t.scrollIntoView({behavior:"smooth"})};return p(()=>{let t=()=>{window.scrollY>100?(n(!0),r(!1)):n(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),p(()=>{let t=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),s(f,{children:[s("div",{className:"absolute inset-0 w-full h-full overflow-hidden",children:[s("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"/assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!x&&e("button",{className:"fixed top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{r(!o)},children:o?e(d,{className:"w-6 h-6 text-white"}):e(m,{className:"w-6 h-6 text-white"})}),e(a,{isMenuOpen:o}),e("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${F||o?"opacity-0":"opacity-100"}`}),s("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center text-white text-center px-4",children:[e(v,{src:u,alt:"Cortex Reply Logo",width:720,height:320,className:"h-auto w-auto"}),e("h1",{className:"text-4xl font-bold mb-4",children:"We are Cortex Reply."}),e("p",{className:"text-2xl mb-8 max-w-2xl",children:"Efficiency through technology."}),e("div",{className:"absolute bottom-5 left-1/2 transform -translate-x-1/2 animate-bounce cursor-pointer hover:text-primary",onClick:c,children:e(w,{size:64})})]})]})}export{E as a};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
/** Specifies the path to the image */
|
|
4
|
+
src: string;
|
|
5
|
+
/** Specifies an alternate text for an image */
|
|
6
|
+
alt: string;
|
|
7
|
+
/** Specifies the width of an image */
|
|
8
|
+
width?: number;
|
|
9
|
+
/** Specifies the height of an image */
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface LinkProps {
|
|
13
|
+
/** Link title */
|
|
14
|
+
label: string;
|
|
15
|
+
/** The path or URL to navigate to. */
|
|
16
|
+
href: string;
|
|
17
|
+
/** This control specifies where to open the linked document */
|
|
18
|
+
openNewTab?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface PersonProps {
|
|
21
|
+
image: ImageProps;
|
|
22
|
+
name: string;
|
|
23
|
+
about: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const blurDataUrl: string;
|
|
26
|
+
export interface SocialItemProps {
|
|
27
|
+
icon: React.ReactNode;
|
|
28
|
+
href: string;
|
|
29
|
+
}
|
|
30
|
+
export interface SectionProps {
|
|
31
|
+
className?: ClassValue;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A union type for server action response.
|
|
35
|
+
*
|
|
36
|
+
* This improves the developer experience, we know that if
|
|
37
|
+
* a server action is successfull then we will have a valid data
|
|
38
|
+
* object.
|
|
39
|
+
*
|
|
40
|
+
* We should not have to check for isSuccess and data.
|
|
41
|
+
*/
|
|
42
|
+
interface IServerActionSuccess<T> {
|
|
43
|
+
isSuccess: true;
|
|
44
|
+
data: T;
|
|
45
|
+
message: string;
|
|
46
|
+
}
|
|
47
|
+
interface IServerActionFailure {
|
|
48
|
+
isSuccess: false;
|
|
49
|
+
data: null;
|
|
50
|
+
message: string;
|
|
51
|
+
}
|
|
52
|
+
export type ServerActionResponse<T> = IServerActionSuccess<T> | IServerActionFailure;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var n=(e,A)=>{for(var r in A)t(e,r,{get:A[r],enumerable:!0})},c=(e,A,r,s)=>{if(A&&typeof A=="object"||typeof A=="function")for(let o of g(A))!i.call(e,o)&&o!==r&&t(e,o,{get:()=>A[o],enumerable:!(s=a(A,o))||s.enumerable});return e};var C=e=>c(t({},"__esModule",{value:!0}),e);var I={};n(I,{blurDataUrl:()=>B});module.exports=C(I);var B="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";0&&(module.exports={blurDataUrl});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-D2WXBUVJ.mjs";var A="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";export{A as blurDataUrl};
|