cortex-react-components 1.16.2 → 1.17.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-WASENCYA.mjs → chunk-343CWVUF.mjs} +1 -1
- package/dist/chunk-52UEE46P.mjs +1 -0
- package/dist/{chunk-E7J5XS32.mjs → chunk-5M4ELXL3.mjs} +1 -1
- package/dist/{chunk-QETNP6ST.mjs → chunk-6MWJ4LJP.mjs} +1 -1
- package/dist/{chunk-TM4ETY55.mjs → chunk-ERWTLUYM.mjs} +1 -1
- package/dist/{chunk-HKHLTISI.mjs → chunk-G3JKNT32.mjs} +1 -1
- package/dist/chunk-H2JWQHUC.mjs +4 -0
- package/dist/chunk-HGT54DGN.mjs +1 -0
- package/dist/chunk-J3CPOHE6.mjs +1 -0
- package/dist/chunk-KML6U7IE.mjs +1 -0
- package/dist/chunk-MMBUMBDU.mjs +1 -0
- package/dist/chunk-NV7LUI3U.mjs +4 -0
- package/dist/{chunk-RFWJV4YU.mjs → chunk-PMSQWXAT.mjs} +1 -1
- package/dist/{chunk-4LYK6VPP.mjs → chunk-QCZZL6MD.mjs} +1 -1
- package/dist/{chunk-SXONQUDJ.mjs → chunk-QRV2F2XT.mjs} +1 -1
- package/dist/{chunk-ID2MGE2G.mjs → chunk-WASMU2IJ.mjs} +1 -1
- package/dist/{chunk-WZMQHIAK.mjs → chunk-XS2GYYRB.mjs} +1 -1
- package/dist/chunk-Y7INXZZZ.mjs +1 -0
- package/dist/chunk-YLVDYTR5.mjs +1 -0
- package/dist/common-types.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.js +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Pages/Documentation.js +1 -1
- package/dist/components/Pages/Documentation.mjs +1 -1
- package/dist/components/Pages/Documentation.stories.js +9 -9
- package/dist/components/Pages/Documentation.stories.mjs +1 -1
- package/dist/components/Pages/IndexPage.js +1 -1
- package/dist/components/Pages/IndexPage.mjs +1 -1
- package/dist/components/Pages/IndexPage.stories.js +9 -9
- 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/LandingPage.js +1 -1
- package/dist/components/Pages/LandingPage.mjs +1 -1
- package/dist/components/Pages/LandingPage.stories.js +9 -9
- package/dist/components/Pages/LandingPage.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 +9 -9
- package/dist/components/Pages/Page.stories.mjs +1 -1
- package/dist/components/Pages/Website.js +1 -1
- package/dist/components/Pages/Website.mjs +1 -1
- package/dist/components/Pages/Website.stories.js +9 -9
- package/dist/components/Pages/Website.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.d.ts +3 -0
- package/dist/components/ui/inputs/common/styles/index.js +1 -0
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -0
- package/dist/components/ui/inputs/text-input/index.d.ts +6 -0
- package/dist/components/ui/inputs/text-input/index.js +1 -0
- package/dist/components/ui/inputs/text-input/index.mjs +1 -0
- package/dist/components/ui/inputs/textarea-input/index.d.ts +6 -0
- package/dist/components/ui/inputs/textarea-input/index.js +1 -0
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sections/ContactSection.d.ts +20 -0
- package/dist/sections/ContactSection.js +5 -0
- package/dist/sections/ContactSection.mjs +1 -0
- package/dist/sections/ContactSection.stories.js +5 -0
- package/dist/sections/ContactSection.stories.mjs +1 -0
- 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/form/index.d.ts +15 -0
- package/dist/sections/form/index.js +5 -0
- package/dist/sections/form/index.mjs +2 -0
- package/dist/sections/form/server/contact-us-form-submit.d.ts +3 -0
- package/dist/sections/form/server/contact-us-form-submit.js +4 -0
- package/dist/sections/form/server/contact-us-form-submit.mjs +2 -0
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +7 -3
- package/dist/chunk-7ZPEE4NV.mjs +0 -1
- package/dist/chunk-LZII3MF4.mjs +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var wt=Object.create;var ie=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var Nt=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Rt=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ct(t))!Pt.call(e,a)&&a!==r&&ie(e,a,{get:()=>t[a],enumerable:!(o=At(t,a))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?wt(Nt(e)):{},Ge(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),kt=e=>Ge(ie({},"__esModule",{value:!0}),e);var wr={};Rt(wr,{Primary:()=>yr,default:()=>vr});module.exports=kt(wr);var Ue=require("react/jsx-runtime"),q=({type:e="solid",iconName:t="cloud",size:r="lg",className:o})=>{let a=e.includes("fa-")?e+" ":"fa-"+e+" ",n="fa-"+t,i=o!=null?o:"",s=a+n+" fa-"+r+" "+i;return(0,Ue.jsx)("i",{className:s})};var O=require("react"),M=require("@headlessui/react"),ce=require("@heroicons/react/24/outline"),X=require("@heroicons/react/20/solid");var It=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,Ue.jsxs)("a",{href:o,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,Ue.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ue-1/2 scale-Ue-0 transition-transform duration-300 ease-in-out group-hover:scale-Ue-100"})]}):(0,Ue.jsxs)(M.Popover,{children:[(0,Ue.jsxs)(M.PopoverButton,{className:"flex items-center gap-Ue-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Ue.jsxs)("span",{className:"relative",children:[e,(0,Ue.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ue-1/2 scale-Ue-0 transition-transform duration-300 ease-in-out group-hover:scale-Ue-100"})]}),(0,Ue.jsx)(X.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ue.jsxs)(M.PopoverPanel,{transition:!0,className:"absolute inset-Ue-0 top-0 -mt-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ue.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Ue-4 px-6 py-10 lg:px-8 xl:gap-Ue-8 mt-50",children:t&&t.map(a=>(0,Ue.jsxs)("div",{className:"group relative rounded-lg Ue-6 text-sm/6 box-border",children:[(0,Ue.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,Ue.jsx)(a.icon,{"aria-hidden":"true",size:"6x"})}),(0,Ue.jsxs)("a",{href:a.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[a.name,(0,Ue.jsx)("span",{className:"absolute inset-0"})]}),(0,Ue.jsx)("Ue",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:a.description})]},a.name))}),r.length>0&&(0,Ue.jsx)("div",{className:"bg-gray-50",children:(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ue.jsx)("div",{className:"grid grid-cols-3 divide-Ue divide-gray-900/5 border-Ue border-gray-900/5",children:r.map(a=>(0,Ue.jsxs)("a",{href:a.href,className:"flex items-center justify-center gap-Ue-2.5 Ue-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,Ue.jsx)(a.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),a.name]},a.name))})})})]})]}),Ve=It;var le=["light","dark","green"];function je({title:e,logo:t,menuItems:r}){let[o,a]=(0,O.useState)(!1),[n,i]=(0,O.useState)(!1),[s,g]=(0,O.useState)("light"),l=t==null?void 0:t.split(".")[0],u=t==null?void 0:t.split(".")[1],[w,v]=(0,O.useState)(`${l}.${u}`),C=c=>{le.includes(c)?v(c==="light"?`${l}.${u}`:`${l}-${c}.${u}`):v(`${l}.${u}`)};(0,O.useEffect)(()=>{let c=localStorage.getItem("theme")||"light";console.log("storedTheme",c),g(c),document.documentElement.setAttribute("class",c),C(c)},[]);let k=()=>{let c=le[(le.indexOf(s)+1)%le.length];g(c),document.documentElement.setAttribute("class",c),localStorage.setItem("theme",c),C(c)};return(0,Ue.jsxs)("header",{className:"relative isolate mt-10 bg-background h-14",children:[(0,Ue.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between Ue-3 lg:px-8",children:[(0,Ue.jsx)("div",{className:"flex lg:flex-1",children:(0,Ue.jsxs)("a",{href:"#",className:"-Ue-1.5 Ue-1.5 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:e}),(0,Ue.jsx)("img",{alt:e,src:w,className:"h-9 w-auto"})]})}),(0,Ue.jsx)("div",{className:"flex lg:hidden",children:(0,Ue.jsxs)("button",{type:"button",onClick:()=>a(!0),className:"-Ue-2.5 inline-flex items-center justify-center rounded-md Ue-2.5 text-gray-700 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ue.jsx)(ce.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ue.jsx)(M.PopoverGroup,{className:"hidden lg:flex lg:gap-Ue-12",children:r.map(c=>(0,Ue.jsx)(Ve,{...c},c.name))}),(0,Ue.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ue.jsx)("button",{onClick:k,className:"Ue-2 text-gray-700 outline-none",children:s==="dark"?(0,Ue.jsx)(X.SunIcon,{className:"h-6 w-6"}):s==="green"?(0,Ue.jsx)(X.MoonIcon,{className:"h-6 w-6"}):(0,Ue.jsx)(X.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ue.jsxs)(M.Dialog,{open:o,onClose:a,className:"lg:hidden",children:[(0,Ue.jsx)("div",{className:"fixed inset-0 mt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ue.jsxs)(M.DialogPanel,{className:"fixed inset-y-0 right-0 mt-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:[(0,Ue.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ue.jsxs)("a",{href:"#",className:"-Ue-1.5 Ue-1.5 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ue.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ue.jsxs)("button",{type:"button",onClick:()=>a(!1),className:"-Ue-2.5 rounded-md Ue-2.5 text-gray-700 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ue.jsx)(ce.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ue.jsx)("div",{className:"mt-6 flow-root",children:(0,Ue.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Ue.jsx)("div",{className:"space-y-2 py-6",children:r.map(c=>(0,Ue.jsx)(Mt,{...c},c.name))})})})]})]})]})}function Mt({name:e,items:t,actions:r,href:o}){return!t&&o?(0,Ue.jsx)("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:e}):(0,Ue.jsxs)(M.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ue.jsx)(M.DisclosureButton,{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:e}),(0,Ue.jsx)(M.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(a=>(0,Ue.jsx)(M.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:a.name},a.name))})]})}var Xe=require("clsx");var Ce="-",Et=e=>{let t=St(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(Ce);return s[0]===""&&s.length!==1&&s.shift(),Je(s,t)||Tt(i)},getConflictingClassGroupIds:(i,s)=>{let g=r[i]||[];return s&&o[i]?[...g,...o[i]]:g}}},Je=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Je(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Ce);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},Qe=/^\[(.+)\]$/,Tt=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},St=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Dt(Object.entries(e.classGroups),r).forEach(([n,i])=>{Ae(i,o,n,t)}),o},Ae=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:$e(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Bt(a)){Ae(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{Ae(i,$e(t,n),r,o)})})},$e=(e,t)=>{let r=e;return t.split(Ce).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Bt=e=>e.isThemeGetter,Dt=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},We="!",Lt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let g=[],l=0,u=0,w;for(let h=0;h<s.length;h++){let N=s[h];if(l===0){if(N===a&&(o||s.slice(h,h+n)===t)){g.push(s.slice(u,h)),u=h+n;continue}if(N==="/"){w=h;continue}}N==="["?l++:N==="]"&&l--}let v=g.length===0?s:s.substring(u),C=v.startsWith(We),k=C?v.substring(1):v,c=w&&w>u?w-u:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:c}};return r?s=>r({className:s,parseClassName:i}):i},Ht=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Ft=e=>({cache:zt(e.cacheSize),parseClassName:Lt(e),...Et(e)}),Gt=/\s+/,Ut=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Gt),s="";for(let g=i.length-1;g>=0;g-=1){let l=i[g],{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:C}=r(l),k=!!C,c=o(k?v.substring(0,C):v);if(!c){if(!k){s=l+(s.length>0?" "+s:s);continue}if(c=o(v),!c){s=l+(s.length>0?" "+s:s);continue}k=!1}let h=Ht(u).join(":"),N=w?h+We:h,I=N+c;if(n.includes(I))continue;n.push(I);let G=a(c,k);for(let U=0;U<G.length;++U){let ae=G[U];n.push(N+ae)}s=l+(s.length>0?" "+s:s)}return s};function Ot(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ye(t))&&(o&&(o+=" "),o+=r);return o}var Ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function Vt(e,...t){let r,o,a,n=i;function i(g){let l=t.reduce((u,w)=>w(u),e());return r=Ft(l),o=r.cache.get,a=r.cache.set,n=s,s(g)}function s(g){let l=o(g);if(l)return l;let u=Ut(g,r);return a(g,u),u}return function(){return n(Ot.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ke=/^\[(?:([a-mt-]+):)?(.+)\]$/i,jt=/^\d+\/\d+$/,Qt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yt=/^(inset_)?-?((\d+)?\.?(\d+)[a-mt]+|0)_-?((\d+)?\.?(\d+)[a-mt]+|0)/,Kt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>W(e)||Qt.has(e)||jt.test(e),H=e=>Y(e,"length",or),W=e=>!!e&&!Number.isNaN(Number(e)),we=e=>Y(e,"number",W),Z=e=>!!e&&Number.isInteger(Number(e)),_t=e=>e.endsWith("%")&&W(e.slice(0,-1)),d=e=>Ke.test(e),F=e=>$t.test(e),qt=new Set(["length","size","percentage"]),Xt=e=>Y(e,qt,_e),Zt=e=>Y(e,"position",_e),er=new Set(["image","url"]),tr=e=>Y(e,er,nr),rr=e=>Y(e,"",ar),ee=()=>!0,Y=(e,t,r)=>{let o=Ke.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},or=e=>Jt.test(e)&&!Wt.test(e),_e=()=>!1,ar=e=>Yt.test(e),nr=e=>Kt.test(e);var sr=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),g=f("contrast"),l=f("grayscale"),u=f("hueRotate"),w=f("invert"),v=f("gap"),C=f("gradientColorStops"),k=f("gradientColorStopPositions"),c=f("inset"),h=f("margin"),N=f("opacity"),I=f("padding"),G=f("saturate"),U=f("scale"),ae=f("sepia"),Se=f("skew"),Be=f("space"),De=f("translate"),he=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto",d,t],b=()=>[d,t],ze=()=>["",S,H],ne=()=>["auto",W,d],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",d],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[W,d];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[S,H],blur:["none","",F,d],brightness:E(),borderColor:[e],borderRadius:["none","","full",F,d],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:_(),hueRotate:E(),invert:_(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[_t,H],inset:ve(),margin:ve(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:_(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Le(),d]}],overflow:[{overflow:xe()}],"overflow-Ue":[{"overflow-Ue":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:he()}],"overscroll-Ue":[{"overscroll-Ue":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-Ue":[{"inset-Ue":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],mt:[{mt:["auto",Z,d]}],basis:[{basis:ve()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[v]}],"gap-Ue":[{"gap-Ue":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ue:[{Ue:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],O:[{O:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],Ue:[{Ue:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Ue":[{"space-Ue":[Be]}],"space-Ue-reverse":["space-Ue-reverse"],"space-y":[{"space-y":[Be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",W,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,H]}],"underline-offset":[{"underline-offset":["auto",S,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),Zt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ue","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-Ue":[{"border-Ue":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...se(),"hidden"]}],"divide-Ue":[{"divide-Ue":[s]}],"divide-Ue-reverse":["divide-Ue-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:se()}],"border-color":[{border:[a]}],"border-color-Ue":[{"border-Ue":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[S,d]}],"outline-w":[{outline:[S,H]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[S,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,rr]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...He(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":He()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",F,d]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[w]}],saturate:[{saturate:[G]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Ue":[{"border-spacing-Ue":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-Ue":[{"scale-Ue":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[Z,d]}],"translate-Ue":[{"translate-Ue":[De]}],"translate-y":[{"translate-y":[De]}],"skew-Ue":[{"skew-Ue":[Se]}],"skew-y":[{"skew-y":[Se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Ue",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ue":[{"scroll-Ue":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-Ue":[{"scroll-Ue":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-O":[{"scroll-O":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ue","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ue":[{"touch-pan":["Ue","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,H,we]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ue","overflow-y"],overscroll:["overscroll-Ue","overscroll-y"],inset:["inset-Ue","inset-y","start","end","top","right","bottom","left"],"inset-Ue":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ue","gap-y"],Ue:["px","py","ps","O","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ue:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ue","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Ue":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ue":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-Ue":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ue":["scroll-px","scroll-py","scroll-ps","scroll-O","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ue","touch-y","touch-pz"],"touch-Ue":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qe=Vt(sr);function y(...e){return qe((0,Xe.clsx)(e))}var Ze=T(require("next/image"));function de(e){let{url:t,mainImage:r,excerpt:o,title:a}=e;return(0,Ue.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white Ue-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[r&&(0,Ue.jsx)(Ze.default,{alt:a||"",src:r,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover"}),(0,Ue.jsxs)("div",{className:"flex flex-1 flex-col Ue-4",children:[(0,Ue.jsx)("div",{className:"mt-2 text-base/7 font-medium text-center group-hover:scale-105 transition-transform duration-200 ease-in-out group-hover:text-primary",children:(0,Ue.jsxs)("a",{href:t,children:[(0,Ue.jsx)("span",{className:"absolute inset-0"}),a]})}),o&&(0,Ue.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var ir=(e,t)=>`from-brand-${e} to-brand-${t}`;function et({...e}){let t=ir(e.brandFrom||"one",e.brandTo||"two");return(0,Ue.jsxs)("div",{className:`relative isolate flex items-center gap-Ue-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,Ue.jsx)("Ue",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Ue.jsxs)("a",{href:e.url,children:[(0,Ue.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ue.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ue.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ue.jsx)("span",{children:e.message&&e.message})]}):(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ue.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ue.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ue.jsx)("div",{className:"flex flex-1 justify-end"})]})}var mt=require("lucide-react"),pt=T(require("next/link"));var tt=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),ot=T(require("react")),lr=(0,rt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),te=ot.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,Ue.jsx)(e?tt.Slot:"button",{className:y(lr({className:t,size:r,variant:o})),ref:n,...a}));te.displayName="Button";var st=T(require("next/image"));var nt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var me=()=>{if(nt){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var cr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",it=e=>{let{alt:t,fill:r,imgClassName:o,priority:a,resource:n,size:i,src:s,loading:g}=e,l,u,w=t,v=s||"";if(!v&&n&&typeof n=="object"){let{alt:c,filename:h,height:N,url:I,width:G}=n;l=G,u=N,w=c||"",v=`${me()}${I}`}let C=g||"lazy",k=i||Object.entries(cr).map(([,c])=>`(max-width: ${c}px) ${c*2}w`).join(", ");return(0,Ue.jsx)("picture",{children:(0,Ue.jsx)(st.default,{alt:w||"",className:y(o),fill:r,height:r?void 0:u,placeholder:"blur",blurDataURL:dr,priority:C!=="lazy"&&a,quality:100,loading:C,sizes:k,src:v,width:r?void 0:l})})};var lt=e=>{let{onClick:t,resource:r,videoClassName:o}=e,a=(0,O.useRef)(null);if((0,O.useEffect)(()=>{let{current:n}=a;n&&n.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:n}=r;return(0,Ue.jsx)("video",{autoPlay:!0,className:y(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:a,children:(0,Ue.jsx)("source",{src:`${me()}/media/${n}`})})}return null};var dt=e=>{var i;let{className:t,htmlElement:r="div",resource:o}=e,a=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Ue.jsx)(r||O.Fragment,{...r!==null?{className:t}:{},children:a?(0,Ue.jsx)(lt,{...e}):(0,Ue.jsx)(it,{...e})})};function ut(){let[e,t]=(0,O.useState)("All News"),[r,o]=(0,O.useState)([]),[a,n]=(0,O.useState)(1),[i,s]=(0,O.useState)(1),g=["All News","Announcements","Blogs","Articles","Case Studies"];return(0,O.useEffect)(()=>{async function l(){if(e==="All News"){let C=await(await fetch(`/api/posts?page=${a}`)).json();o(C.docs),s(C.totalPages);return}let w=await(await fetch(`/api/posts?where[categories][title][equals]=${e}&page=${a}`)).json();o(w.docs),s(w.totalPages)}l()},[e,a]),(0,Ue.jsxs)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:[(0,Ue.jsxs)("div",{className:"flex gap-2 overflow-Ue-auto pb-4 mb-6",children:[g.map(l=>(0,Ue.jsx)(te,{variant:l===e?"default":"ghost",className:"rounded-full whitespace-nowrap",onClick:()=>t(l),children:l},l)),(0,Ue.jsxs)(te,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,Ue.jsx)(mt.ChevronRight,{className:"h-4 w-4"}),(0,Ue.jsx)("span",{className:"sr-only",children:"More"})]})]}),(0,Ue.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:r&&r.map(l=>(0,Ue.jsxs)(pt.default,{href:`/posts/${l.slug}`,className:"group rounded-lg overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:[l.meta&&l.meta.image&&typeof l.meta.image!="string"&&(0,Ue.jsx)(dt,{resource:l.meta.image,size:"33vw"}),(0,Ue.jsxs)("div",{className:"Ue-4",children:[(0,Ue.jsxs)("div",{className:"text-sm text-muted-foreground mb-2",children:[l.populatedAuthors&&l.populatedAuthors.map(u=>u.name)," ","\xB7"," ",l.publishedAt&&new Date(l.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Ue.jsx)("h2",{className:"text-xl font-bold mb-4 text-primary group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:l.title})]})]},l.id))}),(0,Ue.jsx)("div",{className:"flex justify-center gap-1 mt-8",children:Array.from({length:i},(l,u)=>u+1).map(l=>(0,Ue.jsx)(te,{variant:l===a?"default":"ghost",size:"icon",className:"w-10 h-10 rounded-full",onClick:()=>n(l),children:l},l))})]})}var j=T(require("react"));var re=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));re.displayName="Card";var Re=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("flex flex-col space-y-1.5 Ue-6",e),...t}));Re.displayName="CardHeader";var ke=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("font-semibold leading-none tracking-tight",e),...t}));ke.displayName="CardTitle";var mr=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("text-sm text-muted-foreground",e),...t}));mr.displayName="CardDescription";var oe=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("Ue-6 pt-0",e),...t}));oe.displayName="CardContent";var pr=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("flex items-center Ue-6 pt-0",e),...t}));pr.displayName="CardFooter";var ge=T(require("react")),D=T(require("@radix-ui/react-avatar"));var Ie=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Root,{ref:r,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=D.Root.displayName;var Me=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Image,{ref:r,className:y("aspect-square h-full w-full",e),...t}));Me.displayName=D.Image.displayName;var Ee=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Fallback,{ref:r,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ee.displayName=D.Fallback.displayName;var ur=(0,rt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ft({className:e,variant:t,...r}){return(0,Ue.jsx)("div",{className:y(ur({variant:t}),e),...r})}function ht({eventType:e="birthday",date:t="",title:r="",description:o="",avatarSrc:a}){let n=s=>{switch(s){case"birthday":return(0,Ue.jsx)(mt.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Ue.jsx)(mt.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Ue.jsx)(mt.PartyPopper,{className:"h-4 w-4"});default:return(0,Ue.jsx)(mt.CalendarDays,{className:"h-4 w-4"})}},i=s=>{switch(s){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,Ue.jsxs)(re,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,Ue.jsxs)(Re,{className:"flex flex-row items-center gap-3 text-white",children:[a&&(0,Ue.jsxs)(Ie,{className:"h-14 w-14 border-2 border-white",children:[(0,Ue.jsx)(Me,{src:a,alt:r||"Event"}),(0,Ue.jsx)(Ee,{className:"bg-white text-gray-900",children:r?r.charAt(0).toUpperCase():"?"})]}),(0,Ue.jsxs)("div",{className:"flex flex-col",children:[(0,Ue.jsx)(ke,{className:"text-xl",children:r||"Untitled Event"}),(0,Ue.jsxs)("Ue",{className:"text-sm text-white/80",children:[(0,Ue.jsx)(mt.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString():"Date not specified"]})]})]}),(0,Ue.jsxs)(oe,{className:"bg-white bg-opacity-80 Ue-4",children:[o&&(0,Ue.jsx)("Ue",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Ue.jsxs)(ft,{variant:"secondary",className:`${i(e)} text-white/80`,children:[n(e),(0,Ue.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-mt])([Ue-Z])/g,"$1 $2").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" "):"Event"})]})]})]})}var xt=T(require("next/image")),vt=T(require("next/link"));function yt({name:e,logo:t,href:r}){return(0,Ue.jsx)(re,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ue.jsxs)(vt.default,{href:r,className:"block",children:[(0,Ue.jsx)("div",{className:"bg-white Ue-2 flex items-center justify-center h-24",children:(0,Ue.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Ue.jsx)(xt.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ue.jsx)(oe,{className:"Ue-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,Ue.jsx)("Ue",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Te({...e}){return(0,Ue.jsx)(Ue.Fragment,{children:(0,Ue.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,Ue.jsx)("div",{className:"relative isolate"}),(0,Ue.jsx)(je,{...e.header}),(0,Ue.jsx)(et,{...e.motd}),(0,Ue.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[(0,Ue.jsxs)("div",{className:"flex-1 xl:flex",children:[(0,Ue.jsx)("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:e.customers.map((t,r)=>(0,Ue.jsx)("div",{className:"py-2 w-full flex justify-center",children:(0,Ue.jsx)(yt,{...t})},r))}),(0,Ue.jsxs)("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[(0,Ue.jsxs)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[(0,Ue.jsx)(de,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),(0,Ue.jsx)(de,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),(0,Ue.jsx)(de,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),(0,Ue.jsx)("h1",{className:"text-balance text-3xl Ue-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"}),(0,Ue.jsx)(ut,{})]})]}),(0,Ue.jsxs)("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:[(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,Ue.jsxs)("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:[(0,Ue.jsx)("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),(0,Ue.jsx)("Ue",{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."}),(0,Ue.jsx)("div",{className:"mt-4 flex items-center justify-center gap-Ue-6",children:(0,Ue.jsx)("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"})})]})}),(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:e.events.map((t,r)=>(0,Ue.jsx)("div",{className:"py-2 w-full flex justify-center",children:(0,Ue.jsx)(ht,{...t})},r))})]})]})]})})}var gr=()=>(0,$.jsx)(q,{iconName:"cloud-network-sharing",size:"4x",type:"kit"}),fr=()=>(0,$.jsx)(q,{iconName:"development",size:"4x",type:"kit"}),br=()=>(0,$.jsx)(q,{iconName:"github",size:"4x",type:"brands"});var hr=()=>(0,$.jsx)(q,{iconName:"people-sharing",size:"4x",type:"kit"}),xr={title:"Pages/Intranet",component:Te,tags:["autodocs"],argTypes:{},decorators:[e=>(0,$.jsx)("div",{className:"h-screen",children:(0,$.jsx)(e,{})})]},vr=xr,yr={args:{motd:{title:"Welcome to the Intranet",message:"This is a message of the day. It can ce used to communicate important information to all employees.",brandFrom:"one",brandTo:"two"},header:{title:"Your Company",logo:"cortex-reply.png",menuItems:[{name:"Documentation",items:[{name:"Platforms & Services",description:"Cloud services",href:"#",icon:gr},{name:"Solutions & Propositions",description:"Solutions that we have built",href:"#",icon:hr},{name:"Products",description:"Products that we sell",href:"#",icon:fr}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:ce.ChartPieIcon},{name:"API Reference",href:"#",icon:ce.CursorArrowRaysIcon},{name:"Github",href:"#",icon:br}],actions:[{name:"Watch demo",href:"#",icon:X.PlayCircleIcon},{name:"Contact sales",href:"#",icon:X.PhoneIcon},{name:"View all products",href:"#",icon:X.RectangleGroupIcon}]},{name:"Intranet",href:"#"}]},events:[{type:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"},{type:"company_event",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun Ue the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"},{type:"company_event",date:"2023-10-31",title:"Halloween Party"}],customers:[{name:"Acme Corp",logo:"/cortex-reply.png",href:"#",gradientStart:"#3B82F6",gradientEnd:"#2563EB"},{name:"Globex",logo:"/logos/dropbox.png",href:"#",gradientStart:"#10B981",gradientEnd:"#059669"},{name:"Initech",logo:"/logos/customer1.png",href:"#",gradientStart:"#EC4899",gradientEnd:"#DB2777"},{name:"Umbrella",logo:"/logos/customer2.png",href:"#",gradientStart:"#F59E0B",gradientEnd:"#D97706"}]}};0&&(module.exports={Primary});
|
|
5
|
+
"use strict";"use client";var wt=Object.create;var ie=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var Nt=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Rt=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ct(t))!Pt.call(e,a)&&a!==r&&ie(e,a,{get:()=>t[a],enumerable:!(o=At(t,a))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?wt(Nt(e)):{},Ge(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),kt=e=>Ge(ie({},"__esModule",{value:!0}),e);var wr={};Rt(wr,{Primary:()=>yr,default:()=>vr});module.exports=kt(wr);var Ue=require("react/jsx-runtime"),q=({type:e="solid",iconName:t="cloud",size:r="lg",className:o})=>{let a=e.includes("fa-")?e+" ":"fa-"+e+" ",n="fa-"+t,i=o!=null?o:"",s=a+n+" fa-"+r+" "+i;return(0,Ue.jsx)("i",{className:s})};var O=require("react"),M=require("@headlessui/react"),ce=require("@heroicons/react/24/outline"),X=require("@heroicons/react/20/solid");var It=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,Ue.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,Ue.jsxs)("span",{className:"relative",children:[e,(0,Ue.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 Ue-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,Ue.jsxs)(M.Popover,{children:[(0,Ue.jsxs)(M.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Ue.jsxs)("span",{className:"relative",children:[e,(0,Ue.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 Ue-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,Ue.jsx)(X.ChevronDownIcon,{"aria-hidden":"true",className:"Ue-5 w-5 flex-none text-accent"})]}),(0,Ue.jsxs)(M.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -pt-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ue.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 pt-50",children:t&&t.map(a=>(0,Ue.jsxs)("div",{className:"group relative rounded-lg Ue-6 text-sm/6 box-border",children:[(0,Ue.jsx)("div",{className:"flex Ue-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,Ue.jsx)(a.icon,{"aria-hidden":"true",size:"6x"})}),(0,Ue.jsxs)("a",{href:a.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[a.name,(0,Ue.jsx)("span",{className:"absolute inset-0"})]}),(0,Ue.jsx)("Ue",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:a.description})]},a.name))}),r.length>0&&(0,Ue.jsx)("div",{className:"bg-gray-50",children:(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ue.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(a=>(0,Ue.jsxs)("a",{href:a.href,className:"flex items-center justify-center gap-x-2.5 Ue-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,Ue.jsx)(a.icon,{"aria-hidden":"true",className:"Ue-5 w-5 flex-none text-gray-400"}),a.name]},a.name))})})})]})]}),Ve=It;var le=["light","dark","green"];function je({title:e,logo:t,menuItems:r}){let[o,a]=(0,O.useState)(!1),[n,i]=(0,O.useState)(!1),[s,g]=(0,O.useState)("light"),l=t==null?void 0:t.split(".")[0],u=t==null?void 0:t.split(".")[1],[w,v]=(0,O.useState)(`${l}.${u}`),C=c=>{le.includes(c)?v(c==="light"?`${l}.${u}`:`${l}-${c}.${u}`):v(`${l}.${u}`)};(0,O.useEffect)(()=>{let c=localStorage.getItem("theme")||"light";console.log("storedTheme",c),g(c),document.documentElement.setAttribute("class",c),C(c)},[]);let k=()=>{let c=le[(le.indexOf(s)+1)%le.length];g(c),document.documentElement.setAttribute("class",c),localStorage.setItem("theme",c),C(c)};return(0,Ue.jsxs)("header",{className:"relative isolate pt-10 bg-background Ue-14",children:[(0,Ue.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between Ue-3 lg:px-8",children:[(0,Ue.jsx)("div",{className:"flex lg:flex-1",children:(0,Ue.jsxs)("a",{href:"#",className:"-Ue-1.5 Ue-1.5 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:e}),(0,Ue.jsx)("img",{alt:e,src:w,className:"Ue-9 w-auto"})]})}),(0,Ue.jsx)("div",{className:"flex lg:hidden",children:(0,Ue.jsxs)("button",{type:"button",onClick:()=>a(!0),className:"-Ue-2.5 inline-flex items-center justify-center rounded-md Ue-2.5 text-gray-700 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ue.jsx)(ce.Bars3Icon,{"aria-hidden":"true",className:"Ue-6 w-6"})]})}),(0,Ue.jsx)(M.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r.map(c=>(0,Ue.jsx)(Ve,{...c},c.name))}),(0,Ue.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ue.jsx)("button",{onClick:k,className:"Ue-2 text-gray-700 outline-none",children:s==="dark"?(0,Ue.jsx)(X.SunIcon,{className:"Ue-6 w-6"}):s==="green"?(0,Ue.jsx)(X.MoonIcon,{className:"Ue-6 w-6"}):(0,Ue.jsx)(X.SunIcon,{className:"Ue-6 w-6"})})})]}),(0,Ue.jsxs)(M.Dialog,{open:o,onClose:a,className:"lg:hidden",children:[(0,Ue.jsx)("div",{className:"fixed inset-0 pt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ue.jsxs)(M.DialogPanel,{className:"fixed inset-y-0 right-0 pt-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:[(0,Ue.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ue.jsxs)("a",{href:"#",className:"-Ue-1.5 Ue-1.5 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ue.jsx)("img",{alt:e,src:t,className:"Ue-8 w-auto"})]}),(0,Ue.jsxs)("button",{type:"button",onClick:()=>a(!1),className:"-Ue-2.5 rounded-md Ue-2.5 text-gray-700 outline-none",children:[(0,Ue.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ue.jsx)(ce.XMarkIcon,{"aria-hidden":"true",className:"Ue-6 w-6"})]})]}),(0,Ue.jsx)("div",{className:"mt-6 flow-root",children:(0,Ue.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Ue.jsx)("div",{className:"space-y-2 py-6",children:r.map(c=>(0,Ue.jsx)(Mt,{...c},c.name))})})})]})]})]})}function Mt({name:e,items:t,actions:r,href:o}){return!t&&o?(0,Ue.jsx)("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:e}):(0,Ue.jsxs)(M.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ue.jsx)(M.DisclosureButton,{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:e}),(0,Ue.jsx)(M.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(a=>(0,Ue.jsx)(M.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:a.name},a.name))})]})}var Xe=require("clsx");var Ce="-",Et=e=>{let t=St(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(Ce);return s[0]===""&&s.length!==1&&s.shift(),Je(s,t)||Tt(i)},getConflictingClassGroupIds:(i,s)=>{let g=r[i]||[];return s&&o[i]?[...g,...o[i]]:g}}},Je=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Je(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Ce);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},Qe=/^\[(.+)\]$/,Tt=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},St=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Dt(Object.entries(e.classGroups),r).forEach(([n,i])=>{Ae(i,o,n,t)}),o},Ae=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:$e(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Bt(a)){Ae(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{Ae(i,$e(t,n),r,o)})})},$e=(e,t)=>{let r=e;return t.split(Ce).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Bt=e=>e.isThemeGetter,Dt=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},We="!",Lt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let g=[],l=0,u=0,w;for(let x=0;x<s.length;x++){let N=s[x];if(l===0){if(N===a&&(o||s.slice(x,x+n)===t)){g.push(s.slice(u,x)),u=x+n;continue}if(N==="/"){w=x;continue}}N==="["?l++:N==="]"&&l--}let v=g.length===0?s:s.substring(u),C=v.startsWith(We),k=C?v.substring(1):v,c=w&&w>u?w-u:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:c}};return r?s=>r({className:s,parseClassName:i}):i},Ht=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Ft=e=>({cache:zt(e.cacheSize),parseClassName:Lt(e),...Et(e)}),Gt=/\s+/,Ut=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Gt),s="";for(let g=i.length-1;g>=0;g-=1){let l=i[g],{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:C}=r(l),k=!!C,c=o(k?v.substring(0,C):v);if(!c){if(!k){s=l+(s.length>0?" "+s:s);continue}if(c=o(v),!c){s=l+(s.length>0?" "+s:s);continue}k=!1}let x=Ht(u).join(":"),N=w?x+We:x,I=N+c;if(n.includes(I))continue;n.push(I);let G=a(c,k);for(let U=0;U<G.length;++U){let ae=G[U];n.push(N+ae)}s=l+(s.length>0?" "+s:s)}return s};function Ot(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ye(t))&&(o&&(o+=" "),o+=r);return o}var Ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function Vt(e,...t){let r,o,a,n=i;function i(g){let l=t.reduce((u,w)=>w(u),e());return r=Ft(l),o=r.cache.get,a=r.cache.set,n=s,s(g)}function s(g){let l=o(g);if(l)return l;let u=Ut(g,r);return a(g,u),u}return function(){return n(Ot.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ke=/^\[(?:([a-pt-]+):)?(.+)\]$/i,jt=/^\d+\/\d+$/,Qt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Ue|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yt=/^(inset_)?-?((\d+)?\.?(\d+)[a-pt]+|0)_-?((\d+)?\.?(\d+)[a-pt]+|0)/,Kt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>W(e)||Qt.has(e)||jt.test(e),H=e=>Y(e,"length",or),W=e=>!!e&&!Number.isNaN(Number(e)),we=e=>Y(e,"number",W),Z=e=>!!e&&Number.isInteger(Number(e)),_t=e=>e.endsWith("%")&&W(e.slice(0,-1)),d=e=>Ke.test(e),F=e=>$t.test(e),qt=new Set(["length","size","percentage"]),Xt=e=>Y(e,qt,_e),Zt=e=>Y(e,"position",_e),er=new Set(["image","url"]),tr=e=>Y(e,er,nr),rr=e=>Y(e,"",ar),ee=()=>!0,Y=(e,t,r)=>{let o=Ke.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},or=e=>Jt.test(e)&&!Wt.test(e),_e=()=>!1,ar=e=>Yt.test(e),nr=e=>Kt.test(e);var sr=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),g=f("contrast"),l=f("grayscale"),u=f("hueRotate"),w=f("invert"),v=f("gap"),C=f("gradientColorStops"),k=f("gradientColorStopPositions"),c=f("inset"),x=f("margin"),N=f("opacity"),I=f("padding"),G=f("saturate"),U=f("scale"),ae=f("sepia"),Se=f("skew"),Be=f("space"),De=f("translate"),he=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto",d,t],b=()=>[d,t],ze=()=>["",S,H],ne=()=>["auto",W,d],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",d],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[W,d];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[S,H],blur:["none","",F,d],brightness:E(),borderColor:[e],borderRadius:["none","","full",F,d],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:_(),hueRotate:E(),invert:_(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[_t,H],inset:ve(),margin:ve(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:_(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Le(),d]}],overflow:[{overflow:xe()}],"overflow-x":[{"overflow-x":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],pt:[{pt:["auto",Z,d]}],basis:[{basis:ve()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ue:[{Ue:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],Ue:[{Ue:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],O:[{O:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],Ue:[{Ue:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ue":[{"min-Ue":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ue":[{"max-Ue":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",W,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,H]}],"underline-offset":[{"underline-offset":["auto",S,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),Zt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:se()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[S,d]}],"outline-w":[{outline:[S,H]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[S,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,rr]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...He(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":He()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",F,d]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[w]}],saturate:[{saturate:[G]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-y":[{"scale-y":[U]}],rotate:[{rotate:[Z,d]}],"translate-x":[{"translate-x":[De]}],"translate-y":[{"translate-y":[De]}],"skew-x":[{"skew-x":[Se]}],"skew-y":[{"skew-y":[Se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ue":[{"scroll-Ue":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-O":[{"scroll-O":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-Ue":[{"scroll-Ue":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,H,we]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Ue:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ue:["mx","my","ms","O","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","Ue"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-Ue":["scroll-mx","scroll-my","scroll-ms","scroll-O","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ue":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qe=Vt(sr);function y(...e){return qe((0,Xe.clsx)(e))}var Ze=T(require("next/image"));function de(e){let{url:t,mainImage:r,excerpt:o,title:a}=e;return(0,Ue.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white Ue-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[r&&(0,Ue.jsx)(Ze.default,{alt:a||"",src:r,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover"}),(0,Ue.jsxs)("div",{className:"flex flex-1 flex-col Ue-4",children:[(0,Ue.jsx)("div",{className:"mt-2 text-base/7 font-medium text-center group-hover:scale-105 transition-transform duration-200 ease-in-out group-hover:text-primary",children:(0,Ue.jsxs)("a",{href:t,children:[(0,Ue.jsx)("span",{className:"absolute inset-0"}),a]})}),o&&(0,Ue.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var ir=(e,t)=>`from-brand-${e} to-brand-${t}`;function et({...e}){let t=ir(e.brandFrom||"one",e.brandTo||"two");return(0,Ue.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,Ue.jsx)("Ue",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Ue.jsxs)("a",{href:e.url,children:[(0,Ue.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ue.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ue.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ue.jsx)("span",{children:e.message&&e.message})]}):(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ue.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ue.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ue.jsx)("div",{className:"flex flex-1 justify-end"})]})}var pt=require("lucide-react"),mt=T(require("next/link"));var tt=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),ot=T(require("react")),lr=(0,rt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"Ue-10 px-4 py-2",icon:"Ue-10 w-10",lg:"Ue-11 rounded px-8",sm:"Ue-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),te=ot.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,Ue.jsx)(e?tt.Slot:"button",{className:y(lr({className:t,size:r,variant:o})),ref:n,...a}));te.displayName="Button";var st=T(require("next/image"));var nt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var pe=()=>{if(nt){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var cr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",it=e=>{let{alt:t,fill:r,imgClassName:o,priority:a,resource:n,size:i,src:s,loading:g}=e,l,u,w=t,v=s||"";if(!v&&n&&typeof n=="object"){let{alt:c,filename:x,height:N,url:I,width:G}=n;l=G,u=N,w=c||"",v=`${pe()}${I}`}let C=g||"lazy",k=i||Object.entries(cr).map(([,c])=>`(max-width: ${c}px) ${c*2}w`).join(", ");return(0,Ue.jsx)("picture",{children:(0,Ue.jsx)(st.default,{alt:w||"",className:y(o),fill:r,height:r?void 0:u,placeholder:"blur",blurDataURL:dr,priority:C!=="lazy"&&a,quality:100,loading:C,sizes:k,src:v,width:r?void 0:l})})};var lt=e=>{let{onClick:t,resource:r,videoClassName:o}=e,a=(0,O.useRef)(null);if((0,O.useEffect)(()=>{let{current:n}=a;n&&n.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:n}=r;return(0,Ue.jsx)("video",{autoPlay:!0,className:y(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:a,children:(0,Ue.jsx)("source",{src:`${pe()}/media/${n}`})})}return null};var dt=e=>{var i;let{className:t,htmlElement:r="div",resource:o}=e,a=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Ue.jsx)(r||O.Fragment,{...r!==null?{className:t}:{},children:a?(0,Ue.jsx)(lt,{...e}):(0,Ue.jsx)(it,{...e})})};function ut(){let[e,t]=(0,O.useState)("All News"),[r,o]=(0,O.useState)([]),[a,n]=(0,O.useState)(1),[i,s]=(0,O.useState)(1),g=["All News","Announcements","Blogs","Articles","Case Studies"];return(0,O.useEffect)(()=>{async function l(){if(e==="All News"){let C=await(await fetch(`/api/posts?page=${a}`)).json();o(C.docs),s(C.totalPages);return}let w=await(await fetch(`/api/posts?where[categories][title][equals]=${e}&page=${a}`)).json();o(w.docs),s(w.totalPages)}l()},[e,a]),(0,Ue.jsxs)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:[(0,Ue.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-4 mb-6",children:[g.map(l=>(0,Ue.jsx)(te,{variant:l===e?"default":"ghost",className:"rounded-full whitespace-nowrap",onClick:()=>t(l),children:l},l)),(0,Ue.jsxs)(te,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,Ue.jsx)(pt.ChevronRight,{className:"Ue-4 w-4"}),(0,Ue.jsx)("span",{className:"sr-only",children:"More"})]})]}),(0,Ue.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:r&&r.map(l=>(0,Ue.jsxs)(mt.default,{href:`/posts/${l.slug}`,className:"group rounded-lg overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:[l.meta&&l.meta.image&&typeof l.meta.image!="string"&&(0,Ue.jsx)(dt,{resource:l.meta.image,size:"33vw"}),(0,Ue.jsxs)("div",{className:"Ue-4",children:[(0,Ue.jsxs)("div",{className:"text-sm text-muted-foreground mb-2",children:[l.populatedAuthors&&l.populatedAuthors.map(u=>u.name)," ","\xB7"," ",l.publishedAt&&new Date(l.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Ue.jsx)("h2",{className:"text-xl font-bold mb-4 text-primary group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:l.title})]})]},l.id))}),(0,Ue.jsx)("div",{className:"flex justify-center gap-1 mt-8",children:Array.from({length:i},(l,u)=>u+1).map(l=>(0,Ue.jsx)(te,{variant:l===a?"default":"ghost",size:"icon",className:"w-10 Ue-10 rounded-full",onClick:()=>n(l),children:l},l))})]})}var j=T(require("react"));var re=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));re.displayName="Card";var Re=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("flex flex-col space-y-1.5 Ue-6",e),...t}));Re.displayName="CardHeader";var ke=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("font-semibold leading-none tracking-tight",e),...t}));ke.displayName="CardTitle";var pr=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("text-sm text-muted-foreground",e),...t}));pr.displayName="CardDescription";var oe=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("Ue-6 pt-0",e),...t}));oe.displayName="CardContent";var mr=j.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("div",{ref:r,className:y("flex items-center Ue-6 pt-0",e),...t}));mr.displayName="CardFooter";var ge=T(require("react")),D=T(require("@radix-ui/react-avatar"));var Ie=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Root,{ref:r,className:y("relative flex Ue-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=D.Root.displayName;var Me=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Image,{ref:r,className:y("aspect-square Ue-full w-full",e),...t}));Me.displayName=D.Image.displayName;var Ee=ge.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(D.Fallback,{ref:r,className:y("flex Ue-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ee.displayName=D.Fallback.displayName;var ur=(0,rt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ft({className:e,variant:t,...r}){return(0,Ue.jsx)("div",{className:y(ur({variant:t}),e),...r})}function ht({eventType:e="birthday",date:t="",title:r="",description:o="",avatarSrc:a}){let n=s=>{switch(s){case"birthday":return(0,Ue.jsx)(pt.Cake,{className:"Ue-4 w-4"});case"workAnniversary":return(0,Ue.jsx)(pt.Award,{className:"Ue-4 w-4"});case"companyEvent":return(0,Ue.jsx)(pt.PartyPopper,{className:"Ue-4 w-4"});default:return(0,Ue.jsx)(pt.CalendarDays,{className:"Ue-4 w-4"})}},i=s=>{switch(s){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,Ue.jsxs)(re,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,Ue.jsxs)(Re,{className:"flex flex-row items-center gap-3 text-white",children:[a&&(0,Ue.jsxs)(Ie,{className:"Ue-14 w-14 border-2 border-white",children:[(0,Ue.jsx)(Me,{src:a,alt:r||"Event"}),(0,Ue.jsx)(Ee,{className:"bg-white text-gray-900",children:r?r.charAt(0).toUpperCase():"?"})]}),(0,Ue.jsxs)("div",{className:"flex flex-col",children:[(0,Ue.jsx)(ke,{className:"text-xl",children:r||"Untitled Event"}),(0,Ue.jsxs)("Ue",{className:"text-sm text-white/80",children:[(0,Ue.jsx)(pt.CalendarDays,{className:"mr-1 inline-block Ue-4 w-4"}),t?new Date(t).toLocaleDateString():"Date not specified"]})]})]}),(0,Ue.jsxs)(oe,{className:"bg-white bg-opacity-80 Ue-4",children:[o&&(0,Ue.jsx)("Ue",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Ue.jsxs)(ft,{variant:"secondary",className:`${i(e)} text-white/80`,children:[n(e),(0,Ue.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-pt])([Ue-Z])/g,"$1 $2").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" "):"Event"})]})]})]})}var xt=T(require("next/image")),vt=T(require("next/link"));function yt({name:e,logo:t,href:r}){return(0,Ue.jsx)(re,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ue.jsxs)(vt.default,{href:r,className:"block",children:[(0,Ue.jsx)("div",{className:"bg-white Ue-2 flex items-center justify-center Ue-24",children:(0,Ue.jsx)("div",{className:"relative w-full Ue-full",children:t&&(0,Ue.jsx)(xt.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ue.jsx)(oe,{className:"Ue-3 flex items-center justify-center Ue-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,Ue.jsx)("Ue",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Te({...e}){return(0,Ue.jsx)(Ue.Fragment,{children:(0,Ue.jsxs)("div",{className:"flex min-Ue-full flex-col",children:[(0,Ue.jsx)("div",{className:"relative isolate"}),(0,Ue.jsx)(je,{...e.header}),(0,Ue.jsx)(et,{...e.motd}),(0,Ue.jsxs)("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[(0,Ue.jsxs)("div",{className:"flex-1 xl:flex",children:[(0,Ue.jsx)("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:e.customers.map((t,r)=>(0,Ue.jsx)("div",{className:"py-2 w-full flex justify-center",children:(0,Ue.jsx)(yt,{...t})},r))}),(0,Ue.jsxs)("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[(0,Ue.jsxs)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[(0,Ue.jsx)(de,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),(0,Ue.jsx)(de,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),(0,Ue.jsx)(de,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),(0,Ue.jsx)("h1",{className:"text-balance text-3xl Ue-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"}),(0,Ue.jsx)(ut,{})]})]}),(0,Ue.jsxs)("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:[(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,Ue.jsxs)("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:[(0,Ue.jsx)("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),(0,Ue.jsx)("Ue",{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."}),(0,Ue.jsx)("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:(0,Ue.jsx)("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"})})]})}),(0,Ue.jsx)("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:e.events.map((t,r)=>(0,Ue.jsx)("div",{className:"py-2 w-full flex justify-center",children:(0,Ue.jsx)(ht,{...t})},r))})]})]})]})})}var gr=()=>(0,$.jsx)(q,{iconName:"cloud-network-sharing",size:"4x",type:"kit"}),fr=()=>(0,$.jsx)(q,{iconName:"development",size:"4x",type:"kit"}),br=()=>(0,$.jsx)(q,{iconName:"github",size:"4x",type:"brands"});var hr=()=>(0,$.jsx)(q,{iconName:"people-sharing",size:"4x",type:"kit"}),xr={title:"Pages/Intranet",component:Te,tags:["autodocs"],argTypes:{},decorators:[e=>(0,$.jsx)("div",{className:"Ue-screen",children:(0,$.jsx)(e,{})})]},vr=xr,yr={args:{motd:{title:"Welcome to the Intranet",message:"This is a message of the day. It can ce used to communicate important information to all employees.",brandFrom:"one",brandTo:"two"},header:{title:"Your Company",logo:"cortex-reply.png",menuItems:[{name:"Documentation",items:[{name:"Platforms & Services",description:"Cloud services",href:"#",icon:gr},{name:"Solutions & Propositions",description:"Solutions that we have built",href:"#",icon:hr},{name:"Products",description:"Products that we sell",href:"#",icon:fr}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:ce.ChartPieIcon},{name:"API Reference",href:"#",icon:ce.CursorArrowRaysIcon},{name:"Github",href:"#",icon:br}],actions:[{name:"Watch demo",href:"#",icon:X.PlayCircleIcon},{name:"Contact sales",href:"#",icon:X.PhoneIcon},{name:"View all products",href:"#",icon:X.RectangleGroupIcon}]},{name:"Intranet",href:"#"}]},events:[{type:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"},{type:"company_event",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun Ue the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"},{type:"company_event",date:"2023-10-31",title:"Halloween Party"}],customers:[{name:"Acme Corp",logo:"/cortex-reply.png",href:"#",gradientStart:"#3B82F6",gradientEnd:"#2563EB"},{name:"Globex",logo:"/logos/dropbox.png",href:"#",gradientStart:"#10B981",gradientEnd:"#059669"},{name:"Initech",logo:"/logos/customer1.png",href:"#",gradientStart:"#EC4899",gradientEnd:"#DB2777"},{name:"Umbrella",logo:"/logos/customer2.png",href:"#",gradientStart:"#F59E0B",gradientEnd:"#D97706"}]}};0&&(module.exports={Primary});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use client";import{a as o}from"../../chunk-
|
|
4
|
+
"use client";import{a as o}from"../../chunk-QCZZL6MD.mjs";import"../../chunk-RQKTHY3B.mjs";import"../../chunk-WASMU2IJ.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-I2GY5WTT.mjs";import"../../chunk-343CWVUF.mjs";import"../../chunk-VQWGXZ5A.mjs";import"../../chunk-5DHGE4OD.mjs";import"../../chunk-G3JKNT32.mjs";import"../../chunk-HGT54DGN.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-LQZTCLMG.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-72BBXZKW.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-QRNJ7O2L.mjs";import"../../chunk-7WBETZEV.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import{a as t}from"../../chunk-SABHLBUI.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";import{PhoneIcon as r,PlayCircleIcon as a,RectangleGroupIcon as i}from"@heroicons/react/20/solid";import{ChartPieIcon as c,CursorArrowRaysIcon as m}from"@heroicons/react/24/outline";import{jsx as e}from"react/jsx-runtime";var s=()=>e(t,{iconName:"cloud-network-sharing",size:"4x",type:"kit"}),p=()=>e(t,{iconName:"development",size:"4x",type:"kit"}),l=()=>e(t,{iconName:"github",size:"4x",type:"brands"});var d=()=>e(t,{iconName:"people-sharing",size:"4x",type:"kit"}),h={title:"Pages/Intranet",component:o,tags:["autodocs"],argTypes:{},decorators:[n=>e("div",{className:"h-screen",children:e(n,{})})]},S=h,C={args:{motd:{title:"Welcome to the Intranet",message:"This is a message of the day. It can be used to communicate important information to all employees.",brandFrom:"one",brandTo:"two"},header:{title:"Your Company",logo:"cortex-reply.png",menuItems:[{name:"Documentation",items:[{name:"Platforms & Services",description:"Cloud services",href:"#",icon:s},{name:"Solutions & Propositions",description:"Solutions that we have built",href:"#",icon:d},{name:"Products",description:"Products that we sell",href:"#",icon:p}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:c},{name:"API Reference",href:"#",icon:m},{name:"Github",href:"#",icon:l}],actions:[{name:"Watch demo",href:"#",icon:a},{name:"Contact sales",href:"#",icon:r},{name:"View all products",href:"#",icon:i}]},{name:"Intranet",href:"#"}]},events:[{type:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"},{type:"company_event",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun at the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"},{type:"company_event",date:"2023-10-31",title:"Halloween Party"}],customers:[{name:"Acme Corp",logo:"/cortex-reply.png",href:"#",gradientStart:"#3B82F6",gradientEnd:"#2563EB"},{name:"Globex",logo:"/logos/dropbox.png",href:"#",gradientStart:"#10B981",gradientEnd:"#059669"},{name:"Initech",logo:"/logos/customer1.png",href:"#",gradientStart:"#EC4899",gradientEnd:"#DB2777"},{name:"Umbrella",logo:"/logos/customer2.png",href:"#",gradientStart:"#F59E0B",gradientEnd:"#D97706"}]}};export{C as Primary,S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var tt=Object.create;var K=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var nt=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty;var st=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Se=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ot(t))!at.call(e,n)&&n!==r&&K(e,n,{get:()=>t[n],enumerable:!(o=rt(t,n))||o.enumerable});return e};var j=(e,t,r)=>(r=e!=null?tt(nt(e)):{},Se(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),it=e=>Se(K({},"__esModule",{value:!0}),e);var Zt={};st(Zt,{default:()=>et});module.exports=it(Zt);var D=j(require("react"));var Le=require("clsx");var ge="-",lt=e=>{let t=dt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(ge);return s[0]===""&&s.length!==1&&s.shift(),Ie(s,t)||ct(i)},getConflictingClassGroupIds:(i,s)=>{let p=r[i]||[];return s&&o[i]?[...p,...o[i]]:p}}},Ie=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?Ie(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(ge);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},ze=/^\[(.+)\]$/,ct=e=>{if(ze.test(e)){let t=ze.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},dt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return ut(Object.entries(e.classGroups),r).forEach(([a,i])=>{me(i,o,a,t)}),o},me=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Me(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(pt(n)){me(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{me(i,Me(t,a),r,o)})})},Me=(e,t)=>{let r=e;return t.split(ge).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},pt=e=>e.isThemeGetter,ut=(e,t)=>t?e.map(([r,o])=>{let n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,n]}):e,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Te="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,i=s=>{let p=[],f=0,d=0,k;for(let y=0;y<s.length;y++){let C=s[y];if(f===0){if(C===n&&(o||s.slice(y,y+a)===t)){p.push(s.slice(d,y)),d=y+a;continue}if(C==="/"){k=y;continue}}C==="["?f++:C==="]"&&f--}let h=p.length===0?s:s.substring(d),b=h.startsWith(Te),M=b?h.substring(1):h,w=k&&k>d?k-d:void 0;return{modifiers:p,hasImportantModifier:b,baseClassName:M,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},ft=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},bt=e=>({cache:mt(e.cacheSize),parseClassName:gt(e),...lt(e)}),ht=/\s+/,xt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(ht),s="";for(let p=i.length-1;p>=0;p-=1){let f=i[p],{modifiers:d,hasImportantModifier:k,baseClassName:h,maybePostfixModifierPosition:b}=r(f),M=!!b,w=o(M?h.substring(0,b):h);if(!w){if(!M){s=f+(s.length>0?" "+s:s);continue}if(w=o(h),!w){s=f+(s.length>0?" "+s:s);continue}M=!1}let y=ft(d).join(":"),C=k?y+Te:y,z=C+w;if(a.includes(z))continue;a.push(z);let U=n(w,M);for(let L=0;L<U.length;++L){let $=U[L];a.push(C+$)}s=f+(s.length>0?" "+s:s)}return s};function vt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=He(t))&&(o&&(o+=" "),o+=r);return o}var He=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=He(e[o]))&&(r&&(r+=" "),r+=t);return r};function yt(e,...t){let r,o,n,a=i;function i(p){let f=t.reduce((d,k)=>k(d),e());return r=bt(f),o=r.cache.get,n=r.cache.set,a=s,s(p)}function s(p){let f=o(p);if(f)return f;let d=xt(p,r);return n(p,d),d}return function(){return a(vt.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Re=/^\[(?:([a-z-]+):)?(.+)\]$/i,wt=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?G([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)E-?((\d+)?\.?(\d+)[a-z]+|0)/,Mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>B(e)||Nt.has(e)||wt.test(e),R=e=>A(e,"length",Dt),B=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>A(e,"number",B),Y=e=>!!e&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&B(e.slice(0,-1)),l=e=>Re.test(e),F=e=>kt.test(e),Tt=new Set(["length","size","percentage"]),Ht=e=>A(e,Tt,Fe),Rt=e=>A(e,"position",Fe),Ft=new Set(["image","url"]),Pt=e=>A(e,Ft,Et),Lt=e=>A(e,"",Gt),Z=()=>!0,A=(e,t,r)=>{let o=Re.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Dt=e=>Ct.test(e)&&!St.test(e),Fe=()=>!1,Gt=e=>zt.test(e),Et=e=>Mt.test(e);var Bt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),n=m("borderColor"),a=m("borderRadius"),i=m("borderSpacing"),s=m("borderWidth"),p=m("contrast"),f=m("grayscale"),d=m("hueRotate"),k=m("invert"),h=m("gap"),b=m("gradientColorStops"),M=m("gradientColorStopPositions"),w=m("inset"),y=m("margin"),C=m("opacity"),z=m("padding"),U=m("saturate"),L=m("scale"),$=m("sepia"),xe=m("skew"),ve=m("space"),ye=m("translate"),le=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",l,t],g=()=>[l,t],we=()=>["",H,R],W=()=>["auto",B,l],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",l],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[B,l];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[H,R],blur:["none","",F,l],brightness:T(),borderColor:[e],borderRadius:["none","","full",F,l],borderSpacing:g(),borderWidth:we(),contrast:T(),grayscale:V(),hueRotate:T(),invert:V(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[It,R],inset:de(),margin:de(),opacity:T(),padding:g(),saturate:T(),scale:T(),sepia:V(),skew:T(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ne(),l]}],overflow:[{overflow:ce()}],"overflow-G":[{"overflow-G":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:le()}],"overscroll-G":[{"overscroll-G":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-G":[{"inset-G":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Y,l]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",Y,l]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",Y,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[Y,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[h]}],"gap-G":[{"gap-G":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-G":[{"space-G":[ve]}],"space-G-reverse":["space-G-reverse"],"space-y":[{"space-y":[ve]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",B,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",H,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",H,R]}],"underline-offset":[{"underline-offset":["auto",H,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Rt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","G","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-ie":[{"rounded-ie":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-G":[{"border-G":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...q(),"hidden"]}],"divide-G":[{"divide-G":[s]}],"divide-G-reverse":["divide-G-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-G":[{"border-G":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[H,l]}],"outline-w":[{outline:[H,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[H,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Lt]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",F,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[k]}],saturate:[{saturate:[U]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-G":[{"border-spacing-G":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-G":[{"scale-G":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Y,l]}],"translate-G":[{"translate-G":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-G":[{"skew-G":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ie-resize","nw-resize","ie-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","G",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","G","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-G":[{"touch-pan":["G","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[H,R,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-G","overflow-y"],overscroll:["overscroll-G","overscroll-y"],inset:["inset-G","inset-y","start","end","top","right","bottom","left"],"inset-G":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-G","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-ie","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ie","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-G","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-G":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-G":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-G","touch-y","touch-pz"],"touch-G":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pe=yt(Bt);function S(...e){return Pe((0,Le.clsx)(e))}var G=require("react/jsx-runtime"),ee=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ee.displayName="Card";var te=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("flex flex-col space-y-1.5 p-6",e),...t}));te.displayName="CardHeader";var re=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("font-semibold leading-none tracking-tight",e),...t}));re.displayName="CardTitle";var At=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("text-sm text-muted-foreground",e),...t}));At.displayName="CardDescription";var oe=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("p-6 pt-0",e),...t}));oe.displayName="CardContent";var Ot=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("flex items-center p-6 pt-0",e),...t}));Ot.displayName="CardFooter";var De=require("@radix-ui/react-slot"),Ge=require("class-variance-authority"),Ee=j(require("react")),_t=(0,Ge.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),fe=Ee.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},a)=>(0,G.jsx)(e?De.Slot:"button",{className:S(_t({className:t,size:r,variant:o})),ref:a,...n}));fe.displayName="Button";var ie=require("lucide-react");var O=require("@headlessui/react"),Ae=require("@heroicons/react/20/solid"),Jt=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,G.jsxs)("a",{href:o,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,G.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-G-1/2 scale-G-0 transition-transform duration-300 ease-in-out group-hover:scale-G-100"})]}):(0,G.jsxs)(O.Popover,{children:[(0,G.jsxs)(O.PopoverButton,{className:"flex items-center gap-G-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,G.jsxs)("span",{className:"relative",children:[e,(0,G.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-G-1/2 scale-G-0 transition-transform duration-300 ease-in-out group-hover:scale-G-100"})]}),(0,G.jsx)(Ae.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,G.jsxs)(O.PopoverPanel,{transition:!0,className:"absolute inset-G-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,G.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-G-4 px-6 py-10 lg:px-8 xl:gap-G-8 z-50",children:t&&t.map(n=>(0,G.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,G.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,G.jsx)(n.icon,{"aria-hidden":"true",size:"6x"})}),(0,G.jsxs)("a",{href:n.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[n.name,(0,G.jsx)("span",{className:"absolute inset-0"})]}),(0,G.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:n.description})]},n.name))}),r.length>0&&(0,G.jsx)("div",{className:"bg-gray-50",children:(0,G.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,G.jsx)("div",{className:"grid grid-cols-3 divide-G divide-gray-900/5 border-G border-gray-900/5",children:r.map(n=>(0,G.jsxs)("a",{href:n.href,className:"flex items-center justify-center gap-G-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,G.jsx)(n.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),n.name]},n.name))})})})]})]}),Oe=Jt;var E=require("react"),Xe=j(require("next/image"));function _e({children:e,isFluid:t=!1,isNoPadding:r=!1,className:o=""}){let n=S("container",t&&"full-width",r&&"no-padding",o);return(0,G.jsx)("div",{className:n,children:e})}var Ue=j(require("next/link"));function Ve({children:e,href:t,openNewTab:r,...o}){return(0,G.jsx)(Ue.default,{href:t,target:r?"_blank":"_self",...o,children:e})}var be=j(require("next/image"));function X({logoLight:e,logoDark:t,mobile:r=!1}){return(0,G.jsxs)(Ve,{href:"/",className:S(r?"py-1":"py-2"),children:[(0,G.jsx)(be.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,G.jsx)(be.default,{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:"auto",height:r?35:50}})]})}function Ze({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:o}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)("light"),p=["light","dark"];(0,E.useEffect)(()=>{let d=localStorage.getItem("theme")||"light";console.log("storedTheme",d),s(d),document.documentElement.setAttribute("class",d)},[]);let f=()=>{let d=p[(p.indexOf(i)+1)%p.length];s(d),document.documentElement.setAttribute("class",d),localStorage.setItem("theme",d)};return(0,E.useEffect)(()=>{let d=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),(0,G.jsx)(G.Fragment,{children:(0,G.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,G.jsx)(_e,{className:"px-0",children:(0,G.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,G.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,G.jsx)(X,{logoDark:r,logoLight:t}),(0,G.jsx)(O.PopoverGroup,{className:"hidden lg:flex lg:gap-G-12",children:o&&o.map(d=>(0,G.jsx)(Oe,{...d},d.name))}),(0,G.jsx)("div",{className:"flex items-center space-G-4",children:(0,G.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full bg-accent/30 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)(ie.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,G.jsx)(ie.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var ae=require("@heroicons/react/24/outline");var he=["light","dark"];function Qe({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:o=!0}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)(!1),[p,f]=(0,E.useState)(!1),[d,k]=(0,E.useState)("light");(0,E.useEffect)(()=>{let b=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,E.useEffect)(()=>{let b=localStorage.getItem("theme")||"light";k(b),document.documentElement.setAttribute("class",b)},[]);let h=()=>{let b=he[(he.indexOf(d)+1)%he.length];k(b),document.documentElement.setAttribute("class",b),localStorage.setItem("theme",b)};return(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${n||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,G.jsx)("nav",{className:S("backdrop-blur-sm text-white p-0",i&&"hidden"),children:(0,G.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&E.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,G.jsx)(X,{logoDark:t,logoLight:e,mobile:!0}),(0,G.jsxs)("div",{className:"flex items-center space-G-4",children:[(0,G.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,G.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,G.jsx)(ae.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,G.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:h,children:(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)(ie.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,G.jsx)(ie.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,G.jsxs)(O.Dialog,{open:i,onClose:s,className:"lg:hidden",children:[(0,G.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,G.jsxs)(O.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,G.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,G.jsx)(X,{logoDark:t,logoLight:e,mobile:!0}),(0,G.jsxs)("button",{type:"button",onClick:()=>s(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,G.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,G.jsx)(ae.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,G.jsx)("div",{className:"mt-6 flow-root",children:(0,G.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,G.jsx)("div",{className:"space-y-2 px-2 py-6",children:r&&r.map(b=>(0,G.jsx)(Ut,{...b},b.name))})})})]})]})]})})}function Ut({name:e,items:t,actions:r,href:o}){return!t&&o?(0,G.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,G.jsxs)(O.Disclosure,{as:"div",className:"-mx-3",children:[(0,G.jsx)(O.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,G.jsx)(O.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(n=>(0,G.jsx)(O.DisclosureButton,{as:"a",href:n.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:n.name},n.name))})]})}function $e({logoVideo:e,logoLight:t,logoDark:r,menuItems:o}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)(!1),[p,f]=(0,E.useState)(!1),d=()=>{let h=document.getElementById("next-section");h&&h.scrollIntoView({behavior:"smooth"})};return(0,E.useEffect)(()=>{let h=()=>{window.scrollY>100?(s(!0),f(!1)):(s(!1),f(!0))};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,E.useEffect)(()=>{let h=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,G.jsxs)("div",{className:"relative h-screen",children:[(0,G.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,G.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,G.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,G.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&(0,G.jsx)("button",{className:"fixed hidden lg:block 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:()=>{f(!p)},children:p?(0,G.jsx)(ie.X,{className:"w-6 h-6 text-white"}):(0,G.jsx)(ie.Menu,{className:"w-6 h-6 text-white"})}),(0,G.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,G.jsx)(Ze,{isMenuOpen:n,logoLight:t,logoDark:r,menuItems:o}),(0,G.jsx)(Qe,{isMenuOpen:!0,logoLight:t,logoDark:r,menuItems:o})]}),(0,G.jsx)("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${i||p?"opacity-0":"opacity-100"}`}),(0,G.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,G.jsx)(Xe.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:"h-auto w-auto mt-8 hidden lg:block"}),(0,G.jsxs)("div",{className:"h-full flex flex-col items-center justify-center",children:[(0,G.jsx)("h1",{className:"text-4xl font-bold pt-auto mb-4",children:"We are Cortex Reply."}),(0,G.jsx)("p",{className:"text-2xl mb-8 max-w-2xl",children:"Efficiency through technology."})]}),(0,G.jsx)("div",{className:"flex justify-center items-center w-full mb-8",children:(0,G.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,G.jsx)(ie.ChevronDown,{size:64})})})]})]})}var We="../../cortex-reply-bw-TFX4Q54O.png";var qe="../../cortex-reply-light-27IMI3G7.png";var Ke="../../cortex-reply-dark-XPAJJJYY.png";function et({...e}){return(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)("div",{className:"h-screen relative overflow-hidden",children:(0,G.jsx)($e,{...e.header,logoVideo:We,logoLight:qe,logoDark:Ke})}),(0,G.jsxs)("div",{id:"next-section",className:"mt-16 pt-16 min-h-screen",children:[" ",(0,G.jsx)("div",{className:"container py-8",children:(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[(0,G.jsx)("div",{className:"lg:col-span-2",children:e.children}),(0,G.jsxs)("div",{className:"space-y-6",children:[(0,G.jsxs)(ee,{children:[(0,G.jsx)(te,{children:(0,G.jsx)(re,{children:"Quick Actions"})}),(0,G.jsxs)(oe,{children:[(0,G.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),(0,G.jsx)(fe,{className:"w-full",children:"Create New"})]})]}),(0,G.jsxs)(ee,{children:[(0,G.jsx)(te,{children:(0,G.jsx)(re,{children:"Resources"})}),(0,G.jsx)(oe,{children:(0,G.jsxs)("nav",{className:"flex flex-col space-y-2",children:[(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 h-3 w-3"})]}),(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})]})}
|
|
4
|
+
"use strict";"use client";var tt=Object.create;var K=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var nt=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty;var st=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Se=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ot(t))!at.call(e,n)&&n!==r&&K(e,n,{get:()=>t[n],enumerable:!(o=rt(t,n))||o.enumerable});return e};var j=(e,t,r)=>(r=e!=null?tt(nt(e)):{},Se(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),it=e=>Se(K({},"__esModule",{value:!0}),e);var Zt={};st(Zt,{default:()=>et});module.exports=it(Zt);var D=j(require("react"));var Le=require("clsx");var ge="-",lt=e=>{let t=dt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(ge);return s[0]===""&&s.length!==1&&s.shift(),Ie(s,t)||ct(i)},getConflictingClassGroupIds:(i,s)=>{let p=r[i]||[];return s&&o[i]?[...p,...o[i]]:p}}},Ie=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?Ie(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(ge);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},ze=/^\[(.+)\]$/,ct=e=>{if(ze.test(e)){let t=ze.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},dt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return ut(Object.entries(e.classGroups),r).forEach(([a,i])=>{me(i,o,a,t)}),o},me=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Me(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(pt(n)){me(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{me(i,Me(t,a),r,o)})})},Me=(e,t)=>{let r=e;return t.split(ge).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},pt=e=>e.isThemeGetter,ut=(e,t)=>t?e.map(([r,o])=>{let n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,n]}):e,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Te="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,i=s=>{let p=[],f=0,d=0,k;for(let y=0;y<s.length;y++){let C=s[y];if(f===0){if(C===n&&(o||s.slice(y,y+a)===t)){p.push(s.slice(d,y)),d=y+a;continue}if(C==="/"){k=y;continue}}C==="["?f++:C==="]"&&f--}let x=p.length===0?s:s.substring(d),b=x.startsWith(Te),M=b?x.substring(1):x,w=k&&k>d?k-d:void 0;return{modifiers:p,hasImportantModifier:b,baseClassName:M,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},ft=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},bt=e=>({cache:mt(e.cacheSize),parseClassName:gt(e),...lt(e)}),ht=/\s+/,xt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(ht),s="";for(let p=i.length-1;p>=0;p-=1){let f=i[p],{modifiers:d,hasImportantModifier:k,baseClassName:x,maybePostfixModifierPosition:b}=r(f),M=!!b,w=o(M?x.substring(0,b):x);if(!w){if(!M){s=f+(s.length>0?" "+s:s);continue}if(w=o(x),!w){s=f+(s.length>0?" "+s:s);continue}M=!1}let y=ft(d).join(":"),C=k?y+Te:y,z=C+w;if(a.includes(z))continue;a.push(z);let U=n(w,M);for(let L=0;L<U.length;++L){let $=U[L];a.push(C+$)}s=f+(s.length>0?" "+s:s)}return s};function vt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=He(t))&&(o&&(o+=" "),o+=r);return o}var He=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=He(e[o]))&&(r&&(r+=" "),r+=t);return r};function yt(e,...t){let r,o,n,a=i;function i(p){let f=t.reduce((d,k)=>k(d),e());return r=bt(f),o=r.cache.get,n=r.cache.set,a=s,s(p)}function s(p){let f=o(p);if(f)return f;let d=xt(p,r);return n(p,d),d}return function(){return a(vt.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Re=/^\[(?:([a-z-]+):)?(.+)\]$/i,wt=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?G([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|G|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)E-?((\d+)?\.?(\d+)[a-z]+|0)/,Mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>B(e)||Nt.has(e)||wt.test(e),R=e=>A(e,"length",Dt),B=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>A(e,"number",B),Y=e=>!!e&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&B(e.slice(0,-1)),l=e=>Re.test(e),F=e=>kt.test(e),Tt=new Set(["length","size","percentage"]),Ht=e=>A(e,Tt,Fe),Rt=e=>A(e,"position",Fe),Ft=new Set(["image","url"]),Pt=e=>A(e,Ft,Et),Lt=e=>A(e,"",Gt),Z=()=>!0,A=(e,t,r)=>{let o=Re.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Dt=e=>Ct.test(e)&&!St.test(e),Fe=()=>!1,Gt=e=>zt.test(e),Et=e=>Mt.test(e);var Bt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),n=m("borderColor"),a=m("borderRadius"),i=m("borderSpacing"),s=m("borderWidth"),p=m("contrast"),f=m("grayscale"),d=m("hueRotate"),k=m("invert"),x=m("gap"),b=m("gradientColorStops"),M=m("gradientColorStopPositions"),w=m("inset"),y=m("margin"),C=m("opacity"),z=m("padding"),U=m("saturate"),L=m("scale"),$=m("sepia"),xe=m("skew"),ve=m("space"),ye=m("translate"),le=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",l,t],g=()=>[l,t],we=()=>["",H,R],W=()=>["auto",B,l],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",l],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[B,l];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[H,R],blur:["none","",F,l],brightness:T(),borderColor:[e],borderRadius:["none","","full",F,l],borderSpacing:g(),borderWidth:we(),contrast:T(),grayscale:V(),hueRotate:T(),invert:V(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[It,R],inset:de(),margin:de(),opacity:T(),padding:g(),saturate:T(),scale:T(),sepia:V(),skew:T(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ne(),l]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Y,l]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",Y,l]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",Y,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[Y,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[ve]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ve]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],G:[{G:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-G":[{"min-G":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-G":[{"max-G":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",B,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",H,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",H,R]}],"underline-offset":[{"underline-offset":["auto",H,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Rt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-ie":[{"rounded-ie":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[H,l]}],"outline-w":[{outline:[H,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[H,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Lt]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",F,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[k]}],saturate:[{saturate:[U]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Y,l]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ie-resize","nw-resize","ie-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[H,R,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","G"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-ie","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ie","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pe=yt(Bt);function S(...e){return Pe((0,Le.clsx)(e))}var G=require("react/jsx-runtime"),ee=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ee.displayName="Card";var te=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("flex flex-col space-y-1.5 p-6",e),...t}));te.displayName="CardHeader";var re=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("font-semibold leading-none tracking-tight",e),...t}));re.displayName="CardTitle";var At=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("text-sm text-muted-foreground",e),...t}));At.displayName="CardDescription";var oe=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("p-6 pt-0",e),...t}));oe.displayName="CardContent";var Ot=D.forwardRef(({className:e,...t},r)=>(0,G.jsx)("div",{ref:r,className:S("flex items-center p-6 pt-0",e),...t}));Ot.displayName="CardFooter";var De=require("@radix-ui/react-slot"),Ge=require("class-variance-authority"),Ee=j(require("react")),_t=(0,Ge.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"G-10 px-4 py-2",icon:"G-10 w-10",lg:"G-11 rounded px-8",sm:"G-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),fe=Ee.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},a)=>(0,G.jsx)(e?De.Slot:"button",{className:S(_t({className:t,size:r,variant:o})),ref:a,...n}));fe.displayName="Button";var ie=require("lucide-react");var O=require("@headlessui/react"),Ae=require("@heroicons/react/20/solid"),Jt=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,G.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,G.jsxs)("span",{className:"relative",children:[e,(0,G.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 G-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,G.jsxs)(O.Popover,{children:[(0,G.jsxs)(O.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,G.jsxs)("span",{className:"relative",children:[e,(0,G.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 G-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,G.jsx)(Ae.ChevronDownIcon,{"aria-hidden":"true",className:"G-5 w-5 flex-none text-accent"})]}),(0,G.jsxs)(O.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,G.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(n=>(0,G.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,G.jsx)("div",{className:"flex G-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,G.jsx)(n.icon,{"aria-hidden":"true",size:"6x"})}),(0,G.jsxs)("a",{href:n.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[n.name,(0,G.jsx)("span",{className:"absolute inset-0"})]}),(0,G.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:n.description})]},n.name))}),r.length>0&&(0,G.jsx)("div",{className:"bg-gray-50",children:(0,G.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,G.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(n=>(0,G.jsxs)("a",{href:n.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,G.jsx)(n.icon,{"aria-hidden":"true",className:"G-5 w-5 flex-none text-gray-400"}),n.name]},n.name))})})})]})]}),Oe=Jt;var E=require("react"),Xe=j(require("next/image"));function _e({children:e,isFluid:t=!1,isNoPadding:r=!1,className:o=""}){let n=S("container",t&&"full-width",r&&"no-padding",o);return(0,G.jsx)("div",{className:n,children:e})}var Ue=j(require("next/link"));function Ve({children:e,href:t,openNewTab:r,...o}){return(0,G.jsx)(Ue.default,{href:t,target:r?"_blank":"_self",...o,children:e})}var be=j(require("next/image"));function X({logoLight:e,logoDark:t,mobile:r=!1}){return(0,G.jsxs)(Ve,{href:"/",className:S(r?"py-1":"py-2"),children:[(0,G.jsx)(be.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,G.jsx)(be.default,{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:"auto",height:r?35:50}})]})}function Ze({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:o}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)("light"),p=["light","dark"];(0,E.useEffect)(()=>{let d=localStorage.getItem("theme")||"light";console.log("storedTheme",d),s(d),document.documentElement.setAttribute("class",d)},[]);let f=()=>{let d=p[(p.indexOf(i)+1)%p.length];s(d),document.documentElement.setAttribute("class",d),localStorage.setItem("theme",d)};return(0,E.useEffect)(()=>{let d=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),(0,G.jsx)(G.Fragment,{children:(0,G.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,G.jsx)(_e,{className:"px-0",children:(0,G.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,G.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,G.jsx)(X,{logoDark:r,logoLight:t}),(0,G.jsx)(O.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(d=>(0,G.jsx)(Oe,{...d},d.name))}),(0,G.jsx)("div",{className:"flex items-center space-x-4",children:(0,G.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full bg-accent/30 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)(ie.Sun,{className:"absolute G-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,G.jsx)(ie.Moon,{className:"absoulte G-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var ae=require("@heroicons/react/24/outline");var he=["light","dark"];function Qe({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:o=!0}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)(!1),[p,f]=(0,E.useState)(!1),[d,k]=(0,E.useState)("light");(0,E.useEffect)(()=>{let b=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,E.useEffect)(()=>{let b=localStorage.getItem("theme")||"light";k(b),document.documentElement.setAttribute("class",b)},[]);let x=()=>{let b=he[(he.indexOf(d)+1)%he.length];k(b),document.documentElement.setAttribute("class",b),localStorage.setItem("theme",b)};return(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${n||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,G.jsx)("nav",{className:S("backdrop-blur-sm text-white p-0",i&&"hidden"),children:(0,G.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&E.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,G.jsx)(X,{logoDark:t,logoLight:e,mobile:!0}),(0,G.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,G.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,G.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,G.jsx)(ae.Bars3Icon,{"aria-hidden":"true",className:"G-4 w-4"})]}),(0,G.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:x,children:(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)(ie.Sun,{className:"absolute G-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,G.jsx)(ie.Moon,{className:"absoulte G-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,G.jsxs)(O.Dialog,{open:i,onClose:s,className:"lg:hidden",children:[(0,G.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,G.jsxs)(O.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,G.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,G.jsx)(X,{logoDark:t,logoLight:e,mobile:!0}),(0,G.jsxs)("button",{type:"button",onClick:()=>s(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,G.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,G.jsx)(ae.XMarkIcon,{"aria-hidden":"true",className:"G-6 w-6"})]})]}),(0,G.jsx)("div",{className:"mt-6 flow-root",children:(0,G.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,G.jsx)("div",{className:"space-y-2 px-2 py-6",children:r&&r.map(b=>(0,G.jsx)(Ut,{...b},b.name))})})})]})]})]})})}function Ut({name:e,items:t,actions:r,href:o}){return!t&&o?(0,G.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,G.jsxs)(O.Disclosure,{as:"div",className:"-mx-3",children:[(0,G.jsx)(O.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,G.jsx)(O.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(n=>(0,G.jsx)(O.DisclosureButton,{as:"a",href:n.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:n.name},n.name))})]})}function $e({logoVideo:e,logoLight:t,logoDark:r,menuItems:o}){let[n,a]=(0,E.useState)(!1),[i,s]=(0,E.useState)(!1),[p,f]=(0,E.useState)(!1),d=()=>{let x=document.getElementById("next-section");x&&x.scrollIntoView({behavior:"smooth"})};return(0,E.useEffect)(()=>{let x=()=>{window.scrollY>100?(s(!0),f(!1)):(s(!1),f(!0))};return window.addEventListener("scroll",x,{passive:!0}),()=>window.removeEventListener("scroll",x)},[]),(0,E.useEffect)(()=>{let x=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",x,{passive:!0}),()=>window.removeEventListener("scroll",x)},[]),(0,G.jsxs)("div",{className:"relative G-screen",children:[(0,G.jsxs)("div",{className:"absolute inset-0 w-full G-screen overflow-hidden",children:[(0,G.jsxs)("video",{className:"object-cover w-full G-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,G.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,G.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&(0,G.jsx)("button",{className:"fixed hidden lg:block 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:()=>{f(!p)},children:p?(0,G.jsx)(ie.X,{className:"w-6 G-6 text-white"}):(0,G.jsx)(ie.Menu,{className:"w-6 G-6 text-white"})}),(0,G.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,G.jsx)(Ze,{isMenuOpen:n,logoLight:t,logoDark:r,menuItems:o}),(0,G.jsx)(Qe,{isMenuOpen:!0,logoLight:t,logoDark:r,menuItems:o})]}),(0,G.jsx)("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${i||p?"opacity-0":"opacity-100"}`}),(0,G.jsxs)("div",{className:"absolute inset-0 G-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,G.jsx)(Xe.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:"G-auto w-auto mt-8 hidden lg:block"}),(0,G.jsxs)("div",{className:"G-full flex flex-col items-center justify-center",children:[(0,G.jsx)("h1",{className:"text-4xl font-bold pt-auto mb-4",children:"We are Cortex Reply."}),(0,G.jsx)("p",{className:"text-2xl mb-8 max-w-2xl",children:"Efficiency through technology."})]}),(0,G.jsx)("div",{className:"flex justify-center items-center w-full mb-8",children:(0,G.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,G.jsx)(ie.ChevronDown,{size:64})})})]})]})}var We="../../cortex-reply-bw-TFX4Q54O.png";var qe="../../cortex-reply-light-27IMI3G7.png";var Ke="../../cortex-reply-dark-XPAJJJYY.png";function et({...e}){return(0,G.jsxs)("div",{className:"relative",children:[(0,G.jsx)("div",{className:"G-screen relative overflow-hidden",children:(0,G.jsx)($e,{...e.header,logoVideo:We,logoLight:qe,logoDark:Ke})}),(0,G.jsxs)("div",{id:"next-section",className:"mt-16 pt-16 min-G-screen",children:[" ",(0,G.jsx)("div",{className:"container py-8",children:(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[(0,G.jsx)("div",{className:"lg:col-span-2",children:e.children}),(0,G.jsxs)("div",{className:"space-y-6",children:[(0,G.jsxs)(ee,{children:[(0,G.jsx)(te,{children:(0,G.jsx)(re,{children:"Quick Actions"})}),(0,G.jsxs)(oe,{children:[(0,G.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),(0,G.jsx)(fe,{className:"w-full",children:"Create New"})]})]}),(0,G.jsxs)(ee,{children:[(0,G.jsx)(te,{children:(0,G.jsx)(re,{children:"Resources"})}),(0,G.jsx)(oe,{children:(0,G.jsxs)("nav",{className:"flex flex-col space-y-2",children:[(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 G-3 w-3"})]}),(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 G-3 w-3"})]}),(0,G.jsxs)("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",(0,G.jsx)(ie.ExternalLink,{className:"ml-1 G-3 w-3"})]})]})})]})]})]})})]})]})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-ERWTLUYM.mjs";import"../../chunk-4DJ6HKHR.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-WASMU2IJ.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-I2GY5WTT.mjs";import"../../chunk-343CWVUF.mjs";import"../../chunk-VQWGXZ5A.mjs";import"../../chunk-5DHGE4OD.mjs";import"../../chunk-G3JKNT32.mjs";import"../../chunk-HGT54DGN.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SABHLBUI.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as default};
|