cortex-react-components 1.32.0 → 1.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3TIFSACL.mjs → chunk-4BZYZZOG.mjs} +1 -1
- package/dist/{chunk-X7TVNR3Q.mjs → chunk-G474BW6A.mjs} +1 -1
- package/dist/{chunk-W4TZ3J2T.mjs → chunk-SGCPFH7R.mjs} +1 -1
- package/dist/{chunk-BQQUZJRS.mjs → chunk-TMNLJHS2.mjs} +1 -1
- package/dist/{chunk-GOMLTG5W.mjs → chunk-V7YLLLES.mjs} +1 -1
- package/dist/{chunk-OMZBJY76.mjs → chunk-VZKLCHD4.mjs} +1 -1
- package/dist/{chunk-3PC5BLK7.mjs → chunk-Y3ZD3LIO.mjs} +1 -1
- package/dist/chunk-YBNYR2ON.mjs +1 -0
- package/dist/{chunk-Z3ACMQN7.mjs → chunk-ZSC6OQH4.mjs} +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/index.mjs +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/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EVXXDGB5.mjs +0 -1
package/dist/pages/Blog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var jt=Object.create;var ue=Object.defineProperty;var Wt=Object.getOwnPropertyDescriptor;var qt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var tr=(e,t)=>{for(var r in t)ue(e,r,{get:t[r],enumerable:!0})},Ve=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of qt(t))!er.call(e,n)&&n!==r&&ue(e,n,{get:()=>t[n],enumerable:!(a=Wt(t,n))||a.enumerable});return e};var T=(e,t,r)=>(r=e!=null?jt(Zt(e)):{},Ve(t||!e||!e.__esModule?ue(r,"default",{value:e,enumerable:!0}):r,e)),rr=e=>Ve(ue({},"__esModule",{value:!0}),e);var Kr={};tr(Kr,{default:()=>$t});module.exports=rr(Kr);var je=require("react/jsx-runtime"),$e=({type:e="solid",iconName:t="cloud",size:r="lg",className:a})=>{let n=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,i=a!=null?a:"",s=n+o+" fa-"+r+" "+i;return(0,je.jsx)("i",{className:s})};var V=require("@headlessui/react"),it=require("@heroicons/react/20/solid");var nt=require("clsx");var De="-",or=e=>{let t=nr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(De);return s[0]===""&&s.length!==1&&s.shift(),Ze(s,t)||ar(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},Ze=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?Ze(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(De);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},We=/^\[(.+)\]$/,ar=e=>{if(We.test(e)){let t=We.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nr=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return ir(Object.entries(e.classGroups),r).forEach(([o,i])=>{Me(i,a,o,t)}),a},Me=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:qe(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(sr(n)){Me(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{Me(i,qe(t,o),r,a)})})},qe=(e,t)=>{let r=e;return t.split(De).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},sr=e=>e.isThemeGetter,ir=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,lr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},et="!",cr=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let l=[],d=0,g=0,b;for(let k=0;k<s.length;k++){let P=s[k];if(d===0){if(P===n&&(a||s.slice(k,k+o)===t)){l.push(s.slice(g,k)),g=k+o;continue}if(P==="/"){b=k;continue}}P==="["?d++:P==="]"&&d--}let u=l.length===0?s:s.substring(g),h=u.startsWith(et),N=h?u.substring(1):u,v=b&&b>g?b-g:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:N,maybePostfixModifierPosition:v}};return r?s=>r({className:s,parseClassName:i}):i},dr=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},pr=e=>({cache:lr(e.cacheSize),parseClassName:cr(e),...or(e)}),mr=/\s+/,ur=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(mr),s="";for(let l=i.length-1;l>=0;l-=1){let d=i[l],{modifiers:g,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:h}=r(d),N=!!h,v=a(N?u.substring(0,h):u);if(!v){if(!N){s=d+(s.length>0?" "+s:s);continue}if(v=a(u),!v){s=d+(s.length>0?" "+s:s);continue}N=!1}let k=dr(g).join(":"),P=b?k+et:k,I=P+v;if(o.includes(I))continue;o.push(I);let z=n(v,N);for(let G=0;G<z.length;++G){let de=z[G];o.push(P+de)}s=d+(s.length>0?" "+s:s)}return s};function gr(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tt(t))&&(a&&(a+=" "),a+=r);return a}var tt=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=tt(e[a]))&&(r&&(r+=" "),r+=t);return r};function fr(e,...t){let r,a,n,o=i;function i(l){let d=t.reduce((g,b)=>b(g),e());return r=pr(d),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){let d=a(l);if(d)return d;let g=ur(l,r);return n(l,g),g}return function(){return o(gr.apply(null,arguments))}}var w=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,br=/^\d+\/\d+$/,hr=new Set(["px","full","screen"]),yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|je|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D=e=>_(e)||hr.has(e)||br.test(e),E=e=>X(e,"length",Rr),_=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>X(e,"number",_),re=e=>!!e&&Number.isInteger(Number(e)),Ar=e=>e.endsWith("%")&&_(e.slice(0,-1)),c=e=>rt.test(e),F=e=>yr.test(e),kr=new Set(["length","size","percentage"]),Nr=e=>X(e,kr,ot),Pr=e=>X(e,"position",ot),Sr=new Set(["image","url"]),Ir=e=>X(e,Sr,Mr),Tr=e=>X(e,"",Br),oe=()=>!0,X=(e,t,r)=>{let a=rt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Rr=e=>xr.test(e)&&!vr.test(e),ot=()=>!1,Br=e=>wr.test(e),Mr=e=>Cr.test(e);var Dr=()=>{let e=w("colors"),t=w("spacing"),r=w("blur"),a=w("brightness"),n=w("borderColor"),o=w("borderRadius"),i=w("borderSpacing"),s=w("borderWidth"),l=w("contrast"),d=w("grayscale"),g=w("hueRotate"),b=w("invert"),u=w("gap"),h=w("gradientColorStops"),N=w("gradientColorStopPositions"),v=w("inset"),k=w("margin"),P=w("opacity"),I=w("padding"),z=w("saturate"),G=w("scale"),de=w("sepia"),Oe=w("skew"),Je=w("space"),Ye=w("translate"),Se=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],Te=()=>["auto",c,t],A=()=>[c,t],Ke=()=>["",D,E],pe=()=>["auto",_,c],Qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",c],Xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[_,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[D,E],blur:["none","",F,c],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,c],borderSpacing:A(),borderWidth:Ke(),contrast:M(),grayscale:te(),hueRotate:M(),invert:te(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Ar,E],inset:Te(),margin:Te(),opacity:M(),padding:A(),saturate:M(),scale:M(),sepia:te(),skew:M(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Xe()}],"break-before":[{"break-before":Xe()}],"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:[...Qe(),c]}],overflow:[{overflow:Ie()}],"overflow-je":[{"overflow-je":Ie()}],"overflow-je":[{"overflow-je":Ie()}],overscroll:[{overscroll:Se()}],"overscroll-je":[{"overscroll-je":Se()}],"overscroll-je":[{"overscroll-je":Se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-je":[{"inset-je":[v]}],"inset-je":[{"inset-je":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,c]}],basis:[{basis:Te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,c]},c]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,c]},c]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[u]}],"gap-je":[{"gap-je":[u]}],"gap-je":[{"gap-je":[u]}],"justify-content":[{justify:["normal",...Re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],je:[{je:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],je:[{je:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-je":[{"space-je":[Je]}],"space-je-reverse":["space-je-reverse"],"space-je":[{"space-je":[Je]}],"space-je-reverse":["space-je-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"font-family":[{font:[oe]}],"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",c]}],"line-clamp":[{"line-clamp":["none",_,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",D,E]}],"underline-offset":[{"underline-offset":["auto",D,c]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Qe(),Pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","je","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ir]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-je":[{"rounded-je":[o]}],"rounded-je":[{"rounded-je":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-je":[{"border-je":[s]}],"border-w-je":[{"border-je":[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":[P]}],"border-style":[{border:[...me(),"hidden"]}],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:me()}],"border-color":[{border:[n]}],"border-color-je":[{"border-je":[n]}],"border-color-je":[{"border-je":[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:["",...me()]}],"outline-offset":[{"outline-offset":[D,c]}],"outline-w":[{outline:[D,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[D,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Tr]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",F,c]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[b]}],saturate:[{saturate:[z]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-je":[{"border-spacing-je":[i]}],"border-spacing-je":[{"border-spacing-je":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-je":[{"scale-je":[G]}],"scale-je":[{"scale-je":[G]}],rotate:[{rotate:[re,c]}],"translate-je":[{"translate-je":[Ye]}],"translate-je":[{"translate-je":[Ye]}],"skew-je":[{"skew-je":[Oe]}],"skew-je":[{"skew-je":[Oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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","je-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","je","je",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-je":[{"scroll-je":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-je":[{"scroll-je":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","je","je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-je":[{"touch-pan":["je","left","right"]}],"touch-je":[{"touch-pan":["je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,E,Be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-je","overflow-je"],overscroll:["overscroll-je","overscroll-je"],inset:["inset-je","inset-je","start","end","top","right","bottom","left"],"inset-je":["right","left"],"inset-je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-je","gap-je"],p:["px","py","ps","pe","je","pr","pb","pl"],px:["pr","pl"],py:["je","pb"],je:["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-je","rounded-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-je","rounded-je"],"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-je","border-spacing-je"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-je":["border-w-r","border-w-l"],"border-w-je":["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-je":["border-color-r","border-color-l"],"border-color-je":["border-color-t","border-color-b"],"scroll-je":["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-je","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-je","scroll-pb"],touch:["touch-je","touch-je","touch-pz"],"touch-je":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var at=fr(Dr);function p(...e){return at((0,nt.clsx)(e))}var Lr=({name:e,items:t,actions:r=[],href:a})=>!t&&a?(0,je.jsx)("a",{href:a,className:"flex items-center gap-je-1 text-sm font-semibold text-foreground group",children:(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]})}):(0,je.jsxs)(V.Popover,{children:[(0,je.jsxs)(V.PopoverButton,{className:"flex items-center gap-je-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]}),(0,je.jsx)(it.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,je.jsxs)(V.PopoverPanel,{transition:!0,className:"absolute inset-je-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,je.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-je-4 px-6 py-10 lg:px-8 xl:gap-je-8 z-50",children:t&&t.map(n=>(0,je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:n.icon&&(0,je.jsx)(st,{icon:n.icon,size:"4x"})}),(0,je.jsxs)("a",{href:n.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[n.name,(0,je.jsx)("span",{className:"absolute inset-0"})]}),(0,je.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:n.description})]},n.name))}),r.length>0&&(0,je.jsx)("div",{className:"bg-gray-50",children:(0,je.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-je divide-gray-900/5 border-je border-gray-900/5",children:r.map(n=>(0,je.jsxs)("a",{href:n.href,className:"flex items-center max-h-12 justify-center gap-je-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[n.icon&&(0,je.jsx)(st,{icon:n.icon,className:"h-5 w-5 flex-none text-gray-400"}),n.name]},n.name))})})})]})]}),st=({icon:e,className:t,size:r="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)($e,{...e,size:r});if("src"in e)return(0,je.jsx)("div",{className:p(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},lt=Lr;var $=require("react");function ge({children:e,isFluid:t=!1,isNoPadding:r=!1,className:a=""}){let n=p("container",t&&"full-width",r&&"no-padding",a);return(0,je.jsx)("div",{className:n,children:e})}var dt=T(require("next/link"));function fe({children:e,href:t,openNewTab:r,...a}){return(0,je.jsx)(dt.default,{href:t,target:r?"_blank":"_self",...a,children:e})}var Le=T(require("next/image"));function ne({logoLight:e,logoDark:t,mobile:r=!1}){return(0,je.jsxs)(fe,{href:"/",className:p(r?"py-1":"py-2"),children:[(0,je.jsx)(Le.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,je.jsx)(Le.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}})]})}var mt=require("next-themes"),be=require("lucide-react");function gt({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}){let[n,o]=(0,$.useState)(!1),[i,s]=(0,$.useState)(""),l=["light","dark"],{theme:d,setTheme:g}=(0,mt.useTheme)();(0,$.useEffect)(()=>{s(d||"dark")},[d]);let b=()=>{let u=l[(l.indexOf(i)+1)%l.length];s(u),g(u)};return(0,$.useEffect)(()=>{let u=()=>{window.scrollY>100?o(!0):o(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,je.jsx)(je.Fragment,{children:(0,je.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-je-0":"-translate-je-full bg-transparent"}`,children:(0,je.jsx)(ge,{className:"px-0",children:(0,je.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,je.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,je.jsx)(ne,{logoDark:r,logoLight:t}),(0,je.jsx)(V.PopoverGroup,{className:"hidden lg:flex lg:gap-je-12",children:a&&a.map(u=>(0,je.jsx)(lt,{...u},u.name))}),(0,je.jsx)("div",{className:"flex items-center space-je-4",children:(0,je.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:b,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(be.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(be.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var he=require("@heroicons/react/24/outline");var Ee=["light","dark"];function bt({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:a=!0}){let[n,o]=(0,$.useState)(!1),{theme:i,setTheme:s}=(0,mt.useTheme)(),[l,d]=(0,$.useState)(!1),[g,b]=(0,$.useState)("light");(0,$.useEffect)(()=>{let h=()=>{window.scrollY>100?o(!0):o(!1)};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,$.useEffect)(()=>{b(i||"dark")},[i]);let u=()=>{let h=Ee[(Ee.indexOf(g)+1)%Ee.length];b(h),s(h)};return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${n||a?"translate-je-0":"-translate-je-full bg-transparent"}`,children:[(0,je.jsx)("nav",{className:p("backdrop-blur-sm text-white p-0",l&&"hidden"),children:(0,je.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,je.jsx)(ne,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("div",{className:"flex items-center space-je-4",children:[(0,je.jsxs)("button",{type:"button",onClick:()=>d(!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,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(he.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,je.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:u,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(be.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(be.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(V.Dialog,{open:l,onClose:d,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(V.DialogPanel,{className:"fixed inset-je-0 right-0 z-20 w-full overflow-je-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,je.jsx)(ne,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("button",{type:"button",onClick:()=>d(!1),className:"-je-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(he.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,je.jsx)("div",{className:"mt-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 px-2 py-6",children:r&&r.map(h=>(0,je.jsx)(Er,{...h},h.name))})})})]})]})]})})}function Er({name:e,items:t,actions:r,href:a}){return!t&&a?(0,je.jsx)("a",{href:a,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,je.jsxs)(V.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(V.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,je.jsx)(V.DisclosurePanel,{className:"mt-2 space-je-2",children:t&&t.map(n=>(0,je.jsx)(V.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))})]})}var ht=e=>{let r=new Date;e&&(r=new Date(e));let a=r.getMonth(),n=r.getDate(),o=a+1<10?`0${a+1}`:a+1,i=n<10?`0${n}`:n,s=r.getFullYear();return`${i}/${o}/${s}`};function yt({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}){return(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,je.jsx)(gt,{isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}),(0,je.jsx)(bt,{isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a})]})}var O=T(require("react")),xt=T(require("next/image")),vt=({post:e})=>{var i;let{categories:t,meta:r,populatedAuthors:a,publishedAt:n,title:o}=e;return(0,je.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,je.jsx)("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,je.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,je.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((s,l)=>{if(typeof s=="object"&&s!==null){let{title:d}=s,g=d||"Untitled category",b=l===t.length-1;return(0,je.jsxs)(O.default.Fragment,{children:[g,!b&&(0,je.jsx)(O.default.Fragment,{children:", \xA0"})]},l)}return null})}),(0,je.jsx)("div",{className:"",children:(0,je.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:o})}),(0,je.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,je.jsx)("div",{className:"flex flex-col gap-4",children:a&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Author"}),a.map((s,l)=>{let{name:d}=s,g=l===a.length-1,b=l===a.length-2;return(0,je.jsxs)(O.default.Fragment,{children:[d,b&&a.length>2&&(0,je.jsx)(O.default.Fragment,{children:", "}),b&&a.length===2&&(0,je.jsx)(O.default.Fragment,{children:" "}),!g&&a.length>1&&(0,je.jsx)(O.default.Fragment,{children:"and "})]},l)})]})}),n&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,je.jsx)("time",{dateTime:n,children:ht(n)})]})]})]})}),(0,je.jsxs)("div",{className:"min-h-[80vh] select-none",children:[(0,je.jsx)("div",{children:(0,je.jsx)(xt.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:((i=r&&r.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png"})}),(0,je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var wt="../cortex-reply-light-27IMI3G7.png";var Ct="../cortex-reply-dark-XPAJJJYY.png";var At="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//_t";var Qt=T(require("next/image"));var kt=({className:e,content:t,style:r})=>(0,je.jsx)("div",{className:p("mx-auto my-8 w-full",e),children:(0,je.jsx)("div",{className:p("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,je.jsx)(j,{content:t,enableGutter:!1,enableProse:!1})})});var Nt=require("@radix-ui/react-slot"),Pt=require("class-variance-authority"),St=T(require("react")),zr=(0,Pt.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"}}}),J=St.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...n},o)=>(0,je.jsx)(e?Nt.Slot:"button",{className:p(zr({className:t,size:r,variant:a})),ref:o,...n}));J.displayName="Button";var Fe=T(require("next/link")),ve=e=>{let{type:t,appearance:r="inline",children:a,className:n,label:o,newTab:i,reference:s,size:l,url:d}=e,g=t==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:d;if(!g)return null;let b=r==="link"?"clear":l,u=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,je.jsxs)(Fe.default,{className:p(n),href:g||d||"",...u,children:[o&&o,a&&a]}):(0,je.jsx)(J,{asChild:!0,className:n,size:b,variant:r,children:(0,je.jsxs)(Fe.default,{className:p(n),href:g||d||"",...u,children:[o&&o,a&&a]})})};var Tt=({links:e,richText:t})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,je.jsx)(j,{className:"mb-0",content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},a)=>(0,je.jsx)(ve,{size:"lg",...r},a))})]})});var we=require("prism-react-renderer");function Mt({code:e}){let[t,r]=(0,$.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(J,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,je.jsx)("p",{children:t}),(0,je.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,je.jsx)(be.ClipboardCopy,{})})]})})}var Dt=({code:e,language:t=""})=>e?(0,je.jsx)(we.Highlight,{code:e,language:t,theme:we.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:n})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-je-auto",children:[n.map((o,i)=>(0,je.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:o.map((s,l)=>(0,je.jsx)("span",{...a({token:s})},l))})]},i)),(0,je.jsx)(Mt,{code:e})]})}):null;var Lt=({className:e,code:t,language:r})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(Dt,{code:t,language:r})});var Ft=T(require("next/image"));var Et=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ce=()=>{if(Et){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 Gr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Ur="data:image/png;base64,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",Ht=e=>{let{alt:t,fill:r,imgClassName:a,priority:n,resource:o,size:i,src:s,loading:l}=e,d,g,b=t,u=s||"";if(!u&&o&&typeof o=="object"){let{alt:v,filename:k,height:P,url:I,width:z}=o;d=z,g=P,b=v||"",u=`${Ce()}${I}`}let h=l||"lazy",N=i||Object.entries(Gr).map(([,v])=>`(max-width: ${v}px) ${v*2}w`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(Ft.default,{alt:b||"",className:p(a),fill:r,height:r?void 0:g,placeholder:"blur",blurDataURL:Ur,priority:h!=="lazy"&&n,quality:100,loading:h,sizes:N,src:u,width:r?void 0:d})})};var zt=e=>{let{onClick:t,resource:r,videoClassName:a}=e,n=(0,$.useRef)(null);if((0,$.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,je.jsx)("video",{autoPlay:!0,className:p(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:n,children:(0,je.jsx)("source",{src:`${Ce()}/media/${o}`})})}return null};var Ut=e=>{var i;let{className:t,htmlElement:r="div",resource:a}=e,n=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,je.jsx)(r||$.Fragment,{...r!==null?{className:t}:{},children:n?(0,je.jsx)(zt,{...e}):(0,je.jsx)(Ht,{...e})})};var Ot=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=e;return(0,je.jsx)("div",{className:p("",{container:r},t),children:(0,je.jsx)(Ut,{imgClassName:p("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var Pe=T(require("react"));function Ne({nodes:e}){return(0,je.jsx)(Pe.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"){let o=(0,je.jsx)(Pe.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,je.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,je.jsx)("em",{children:o},r)),t.format&4&&(o=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,je.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,je.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,je.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((o,i)=>(0,je.jsx)("tr",{children:o.children.map((s,l)=>(0,je.jsx)("td",{children:Ne({nodes:s.children})},l))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return Ne({nodes:o.children})},n="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,je.jsx)(Tt,{...o},r);case"mediaBlock":return(0,je.jsx)(Ot,{className:"col-start-1 col-span-3",imgClassName:"je-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,je.jsx)(kt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,je.jsx)(Lt,{className:"col-start-2",...o},r);default:return null}}else switch(t.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:n},r);case"heading":{let o=t==null?void 0:t.tag;return(0,je.jsx)(o,{className:"col-start-2",children:n},r)}case"list":{let o=t==null?void 0:t.tag;return(0,je.jsx)(o,{className:"list col-start-2",children:n},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:n},r):(0,je.jsx)("li",{value:t==null?void 0:t.value,children:n},r);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=t.fields;return(0,je.jsx)(ve,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var j=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var n;return t?(0,je.jsx)("div",{className:p({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Ne({nodes:(n=t==null?void 0:t.root)==null?void 0:n.children})}):null};var _t=require("next/navigation");var K=T(require("react"));var W=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));W.displayName="Card";var le=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("flex flex-col space-je-1.5 p-6",e),...t}));le.displayName="CardHeader";var ce=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));ce.displayName="CardTitle";var Or=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));Or.displayName="CardDescription";var q=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("p-6 je-0",e),...t}));q.displayName="CardContent";var Jr=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("flex items-center p-6 je-0",e),...t}));Jr.displayName="CardFooter";var Ra=p("transition-colors duration-400 hover:text-primary ease-in-out");function Kt({title:e,links:t}){let r=(0,_t.useSearchParams)(),a=(0,_t.usePathname)(),{replace:n}=(0,_t.useRouter)();function o(i){console.log(i);let s=new URLSearchParams(r);i?s.set("category",i):s.delete("category"),n(`${a}?${s.toString()}`)}return(0,je.jsxs)(W,{children:[(0,je.jsx)(le,{children:(0,je.jsx)(ce,{children:e&&e})}),(0,je.jsx)(q,{children:t&&t.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,s)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-accent first:je-0 hover:cursor-pointer",onClick:l=>{l.preventDefault(),o(i.href)},children:[i.label,(0,je.jsx)(be.ExternalLink,{className:"ml-1 h-3 w-3"})]},s))})})})]})}var Xt=T(require("next/link"));function Yr({image:e,name:t,about:r,socialLinks:a}){return(0,je.jsx)("div",{className:"mt-1 z-10 px-0 je-0 lg:px-10",children:(0,je.jsx)(W,{children:(0,je.jsxs)(q,{children:[e&&e.src&&(0,je.jsx)(Qt.default,{src:e.src,alt:e.alt||t,width:127,height:127,placeholder:"blur",blurDataURL:At,className:"mx-auto mt-6 rounded-full object-cover"}),(0,je.jsx)("h3",{className:"font-secondary text-center py-2 text-lg font-bold leading-[1.25] text-accent dark:text-white md:text-xl",children:t}),(0,je.jsx)("p",{children:r}),a&&a.length>0&&(0,je.jsx)("nav",{"aria-label":"social links",children:(0,je.jsx)("ul",{className:"inline-flex items-center divide-je divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:a.map((n,o)=>(0,je.jsx)("li",{children:(0,je.jsx)(fe,{href:n.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 hover:text-accents",children:(0,je.jsx)("span",{children:n.icon})})},o))})})]})})})}function Vt({page:e,categoryList:t,edit:r=!1,path:a="/admin/collections/posts/"}){var u;if(!e)return(0,_t.notFound)();let{meta:n,populatedAuthors:o,authors:i,categories:s,content:l,title:d}=e,g={image:{src:n&&n.image&&n.image.url||void 0,alt:n&&n.image&&n.image.alt||void 0},authorName:((u=o==null?void 0:o[0])==null?void 0:u.name)||"",category:s,commentCount:0,title:d,description:(n==null?void 0:n.description)||""},b=i==null?void 0:i.map(h=>{var N,v;return{name:h.name||"",about:"",image:{src:h.profilePicture&&((v=(N=h.profilePicture.sizes)==null?void 0:N.small)==null?void 0:v.url)||"/assets/images/blog/author-1.png",alt:h.name||"blog author"},socialLinks:[]}});return(0,je.jsx)(ge,{children:(0,je.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,je.jsx)("div",{children:(0,je.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,je.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,je.jsx)(j,{content:l,enableGutter:!1})]})}),(0,je.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,je.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 je-0 lg:px-10",children:(0,je.jsxs)(W,{children:[(0,je.jsx)(le,{children:(0,je.jsx)(ce,{children:"CMS Actions"})}),(0,je.jsxs)(q,{children:[(0,je.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,je.jsx)(Xt.default,{href:`${a}${e.id}`,children:(0,je.jsx)(J,{className:"w-full",children:"Edit"})})]})]})}),b&&b.map((h,N)=>(0,je.jsx)(Yr,{...h},N)),t&&t.links&&(0,je.jsx)("div",{className:"mt-4 px-0 je-0 lg:px-10",children:(0,je.jsx)(Kt,{links:t.links,title:t.title})})]})]})})}function $t({...e}){return(0,je.jsxs)("div",{children:[(0,je.jsx)(yt,{isMenuOpen:!0,logoLight:wt,logoDark:Ct}),(0,je.jsx)(vt,{...e.hero}),(0,je.jsx)(Vt,{className:"!pb-0",...e.blog})]})}
|
|
4
|
+
"use strict";var jt=Object.create;var ue=Object.defineProperty;var Wt=Object.getOwnPropertyDescriptor;var qt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var tr=(e,t)=>{for(var r in t)ue(e,r,{get:t[r],enumerable:!0})},Ve=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of qt(t))!er.call(e,n)&&n!==r&&ue(e,n,{get:()=>t[n],enumerable:!(a=Wt(t,n))||a.enumerable});return e};var T=(e,t,r)=>(r=e!=null?jt(Zt(e)):{},Ve(t||!e||!e.__esModule?ue(r,"default",{value:e,enumerable:!0}):r,e)),rr=e=>Ve(ue({},"__esModule",{value:!0}),e);var Kr={};tr(Kr,{default:()=>$t});module.exports=rr(Kr);var je=require("react/jsx-runtime"),$e=({type:e="solid",iconName:t="cloud",size:r="lg",className:a})=>{let n=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,i=a!=null?a:"",s=n+o+" fa-"+r+" "+i;return(0,je.jsx)("i",{className:s})};var V=require("@headlessui/react"),it=require("@heroicons/react/20/solid");var nt=require("clsx");var De="-",or=e=>{let t=nr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(De);return s[0]===""&&s.length!==1&&s.shift(),Ze(s,t)||ar(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},Ze=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?Ze(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(De);return(i=t.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},We=/^\[(.+)\]$/,ar=e=>{if(We.test(e)){let t=We.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nr=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return ir(Object.entries(e.classGroups),r).forEach(([o,i])=>{Me(i,a,o,t)}),a},Me=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:qe(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(sr(n)){Me(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{Me(i,qe(t,o),r,a)})})},qe=(e,t)=>{let r=e;return t.split(De).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},sr=e=>e.isThemeGetter,ir=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,lr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},et="!",cr=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let l=[],d=0,g=0,b;for(let k=0;k<s.length;k++){let P=s[k];if(d===0){if(P===n&&(a||s.slice(k,k+o)===t)){l.push(s.slice(g,k)),g=k+o;continue}if(P==="/"){b=k;continue}}P==="["?d++:P==="]"&&d--}let u=l.length===0?s:s.substring(g),h=u.startsWith(et),N=h?u.substring(1):u,v=b&&b>g?b-g:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:N,maybePostfixModifierPosition:v}};return r?s=>r({className:s,parseClassName:i}):i},dr=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},pr=e=>({cache:lr(e.cacheSize),parseClassName:cr(e),...or(e)}),mr=/\s+/,ur=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(mr),s="";for(let l=i.length-1;l>=0;l-=1){let d=i[l],{modifiers:g,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:h}=r(d),N=!!h,v=a(N?u.substring(0,h):u);if(!v){if(!N){s=d+(s.length>0?" "+s:s);continue}if(v=a(u),!v){s=d+(s.length>0?" "+s:s);continue}N=!1}let k=dr(g).join(":"),P=b?k+et:k,I=P+v;if(o.includes(I))continue;o.push(I);let z=n(v,N);for(let G=0;G<z.length;++G){let de=z[G];o.push(P+de)}s=d+(s.length>0?" "+s:s)}return s};function gr(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tt(t))&&(a&&(a+=" "),a+=r);return a}var tt=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=tt(e[a]))&&(r&&(r+=" "),r+=t);return r};function fr(e,...t){let r,a,n,o=i;function i(l){let d=t.reduce((g,b)=>b(g),e());return r=pr(d),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){let d=a(l);if(d)return d;let g=ur(l,r);return n(l,g),g}return function(){return o(gr.apply(null,arguments))}}var w=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,br=/^\d+\/\d+$/,hr=new Set(["px","full","screen"]),yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|je|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D=e=>_(e)||hr.has(e)||br.test(e),E=e=>X(e,"length",Rr),_=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>X(e,"number",_),re=e=>!!e&&Number.isInteger(Number(e)),Ar=e=>e.endsWith("%")&&_(e.slice(0,-1)),c=e=>rt.test(e),F=e=>yr.test(e),kr=new Set(["length","size","percentage"]),Nr=e=>X(e,kr,ot),Pr=e=>X(e,"position",ot),Sr=new Set(["image","url"]),Ir=e=>X(e,Sr,Mr),Tr=e=>X(e,"",Br),oe=()=>!0,X=(e,t,r)=>{let a=rt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Rr=e=>xr.test(e)&&!vr.test(e),ot=()=>!1,Br=e=>wr.test(e),Mr=e=>Cr.test(e);var Dr=()=>{let e=w("colors"),t=w("spacing"),r=w("blur"),a=w("brightness"),n=w("borderColor"),o=w("borderRadius"),i=w("borderSpacing"),s=w("borderWidth"),l=w("contrast"),d=w("grayscale"),g=w("hueRotate"),b=w("invert"),u=w("gap"),h=w("gradientColorStops"),N=w("gradientColorStopPositions"),v=w("inset"),k=w("margin"),P=w("opacity"),I=w("padding"),z=w("saturate"),G=w("scale"),de=w("sepia"),Oe=w("skew"),Je=w("space"),Ye=w("translate"),Se=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],Te=()=>["auto",c,t],A=()=>[c,t],Ke=()=>["",D,E],pe=()=>["auto",_,c],Qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",c],Xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[_,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[D,E],blur:["none","",F,c],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,c],borderSpacing:A(),borderWidth:Ke(),contrast:M(),grayscale:te(),hueRotate:M(),invert:te(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Ar,E],inset:Te(),margin:Te(),opacity:M(),padding:A(),saturate:M(),scale:M(),sepia:te(),skew:M(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Xe()}],"break-before":[{"break-before":Xe()}],"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:[...Qe(),c]}],overflow:[{overflow:Ie()}],"overflow-je":[{"overflow-je":Ie()}],"overflow-je":[{"overflow-je":Ie()}],overscroll:[{overscroll:Se()}],"overscroll-je":[{"overscroll-je":Se()}],"overscroll-je":[{"overscroll-je":Se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-je":[{"inset-je":[v]}],"inset-je":[{"inset-je":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,c]}],basis:[{basis:Te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,c]},c]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,c]},c]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[u]}],"gap-je":[{"gap-je":[u]}],"gap-je":[{"gap-je":[u]}],"justify-content":[{justify:["normal",...Re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],je:[{je:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],je:[{je:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-je":[{"space-je":[Je]}],"space-je-reverse":["space-je-reverse"],"space-je":[{"space-je":[Je]}],"space-je-reverse":["space-je-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"font-family":[{font:[oe]}],"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",c]}],"line-clamp":[{"line-clamp":["none",_,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",D,E]}],"underline-offset":[{"underline-offset":["auto",D,c]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Qe(),Pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","je","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ir]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-je":[{"rounded-je":[o]}],"rounded-je":[{"rounded-je":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-je":[{"border-je":[s]}],"border-w-je":[{"border-je":[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":[P]}],"border-style":[{border:[...me(),"hidden"]}],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:me()}],"border-color":[{border:[n]}],"border-color-je":[{"border-je":[n]}],"border-color-je":[{"border-je":[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:["",...me()]}],"outline-offset":[{"outline-offset":[D,c]}],"outline-w":[{outline:[D,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[D,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Tr]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",F,c]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[b]}],saturate:[{saturate:[z]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-je":[{"border-spacing-je":[i]}],"border-spacing-je":[{"border-spacing-je":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-je":[{"scale-je":[G]}],"scale-je":[{"scale-je":[G]}],rotate:[{rotate:[re,c]}],"translate-je":[{"translate-je":[Ye]}],"translate-je":[{"translate-je":[Ye]}],"skew-je":[{"skew-je":[Oe]}],"skew-je":[{"skew-je":[Oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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","je-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","je","je",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-je":[{"scroll-je":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-je":[{"scroll-je":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","je","je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-je":[{"touch-pan":["je","left","right"]}],"touch-je":[{"touch-pan":["je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,E,Be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-je","overflow-je"],overscroll:["overscroll-je","overscroll-je"],inset:["inset-je","inset-je","start","end","top","right","bottom","left"],"inset-je":["right","left"],"inset-je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-je","gap-je"],p:["px","py","ps","pe","je","pr","pb","pl"],px:["pr","pl"],py:["je","pb"],je:["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-je","rounded-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-je","rounded-je"],"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-je","border-spacing-je"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-je":["border-w-r","border-w-l"],"border-w-je":["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-je":["border-color-r","border-color-l"],"border-color-je":["border-color-t","border-color-b"],"scroll-je":["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-je","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-je","scroll-pb"],touch:["touch-je","touch-je","touch-pz"],"touch-je":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var at=fr(Dr);function p(...e){return at((0,nt.clsx)(e))}var Lr=({name:e,items:t,actions:r=[],href:a})=>!t&&a?(0,je.jsx)("a",{href:a,className:"flex items-center gap-je-1 text-sm font-semibold text-foreground group",children:(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]})}):(0,je.jsxs)(V.Popover,{children:[(0,je.jsxs)(V.PopoverButton,{className:"flex items-center gap-je-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]}),(0,je.jsx)(it.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,je.jsxs)(V.PopoverPanel,{transition:!0,className:"absolute inset-je-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,je.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-je-4 px-6 py-10 lg:px-8 xl:gap-je-8 z-50",children:t&&t.map(n=>(0,je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:n.icon&&(0,je.jsx)(st,{icon:n.icon,size:"4x"})}),(0,je.jsxs)("a",{href:n.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[n.name,(0,je.jsx)("span",{className:"absolute inset-0"})]}),(0,je.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:n.description})]},n.name))}),r.length>0&&(0,je.jsx)("div",{className:"bg-gray-50",children:(0,je.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-je divide-gray-900/5 border-je border-gray-900/5",children:r.map(n=>(0,je.jsxs)("a",{href:n.href,className:"flex items-center max-h-12 justify-center gap-je-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[n.icon&&(0,je.jsx)(st,{icon:n.icon,className:"h-5 w-5 flex-none text-gray-400"}),n.name]},n.name))})})})]})]}),st=({icon:e,className:t,size:r="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)($e,{...e,size:r});if("src"in e)return(0,je.jsx)("div",{className:p(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},lt=Lr;var $=require("react");function ge({children:e,isFluid:t=!1,isNoPadding:r=!1,className:a=""}){let n=p("container",t&&"full-width",r&&"no-padding",a);return(0,je.jsx)("div",{className:n,children:e})}var dt=T(require("next/link"));function fe({children:e,href:t,openNewTab:r,...a}){return(0,je.jsx)(dt.default,{href:t,target:r?"_blank":"_self",...a,children:e})}var Le=T(require("next/image"));function ne({logoLight:e,logoDark:t,mobile:r=!1}){return(0,je.jsxs)(fe,{href:"/",className:p(r?"py-1":"py-2"),children:[(0,je.jsx)(Le.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,je.jsx)(Le.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}})]})}var mt=require("next-themes"),be=require("lucide-react");function gt({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}){let[n,o]=(0,$.useState)(!1),[i,s]=(0,$.useState)(""),l=["light","dark"],{theme:d,setTheme:g}=(0,mt.useTheme)();(0,$.useEffect)(()=>{s(d||"dark")},[d]);let b=()=>{let u=l[(l.indexOf(i)+1)%l.length];s(u),g(u)};return(0,$.useEffect)(()=>{let u=()=>{window.scrollY>100?o(!0):o(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,je.jsx)(je.Fragment,{children:(0,je.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-je-0":"-translate-je-full bg-transparent"}`,children:(0,je.jsx)(ge,{className:"px-0",children:(0,je.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,je.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,je.jsx)(ne,{logoDark:r,logoLight:t}),(0,je.jsx)(V.PopoverGroup,{className:"hidden lg:flex lg:gap-je-12",children:a&&a.map(u=>(0,je.jsx)(lt,{...u},u.name))}),(0,je.jsx)("div",{className:"flex items-center space-je-4",children:(0,je.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:b,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(be.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(be.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var he=require("@heroicons/react/24/outline");var Ee=["light","dark"];function bt({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:a=!0}){let[n,o]=(0,$.useState)(!1),{theme:i,setTheme:s}=(0,mt.useTheme)(),[l,d]=(0,$.useState)(!1),[g,b]=(0,$.useState)("light");(0,$.useEffect)(()=>{let h=()=>{window.scrollY>100?o(!0):o(!1)};return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),(0,$.useEffect)(()=>{b(i||"dark")},[i]);let u=()=>{let h=Ee[(Ee.indexOf(g)+1)%Ee.length];b(h),s(h)};return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${n||a?"translate-je-0":"-translate-je-full bg-transparent"}`,children:[(0,je.jsx)("nav",{className:p("backdrop-blur-sm text-white p-0",l&&"hidden"),children:(0,je.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,je.jsx)(ne,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("div",{className:"flex items-center space-je-4",children:[(0,je.jsxs)("button",{type:"button",onClick:()=>d(!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,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(he.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,je.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:u,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(be.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(be.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(V.Dialog,{open:l,onClose:d,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(V.DialogPanel,{className:"fixed inset-je-0 right-0 z-20 w-full overflow-je-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,je.jsx)(ne,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("button",{type:"button",onClick:()=>d(!1),className:"-je-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(he.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,je.jsx)("div",{className:"mt-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 px-2 py-6",children:r&&r.map(h=>(0,je.jsx)(Er,{...h},h.name))})})})]})]})]})})}function Er({name:e,items:t,actions:r,href:a}){return!t&&a?(0,je.jsx)("a",{href:a,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,je.jsxs)(V.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(V.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,je.jsx)(V.DisclosurePanel,{className:"mt-2 space-je-2",children:t&&t.map(n=>(0,je.jsx)(V.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))})]})}var ht=e=>{let r=new Date;e&&(r=new Date(e));let a=r.getMonth(),n=r.getDate(),o=a+1<10?`0${a+1}`:a+1,i=n<10?`0${n}`:n,s=r.getFullYear();return`${i}/${o}/${s}`};function yt({isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}){return(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,je.jsx)(gt,{isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a}),(0,je.jsx)(bt,{isMenuOpen:e,logoLight:t,logoDark:r,menuItems:a})]})}var O=T(require("react")),xt=T(require("next/image")),vt=({post:e})=>{var i;let{categories:t,meta:r,populatedAuthors:a,publishedAt:n,title:o}=e;return(0,je.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,je.jsx)("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,je.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,je.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((s,l)=>{if(typeof s=="object"&&s!==null){let{title:d}=s,g=d||"Untitled category",b=l===t.length-1;return(0,je.jsxs)(O.default.Fragment,{children:[g,!b&&(0,je.jsx)(O.default.Fragment,{children:", \xA0"})]},l)}return null})}),(0,je.jsx)("div",{className:"",children:(0,je.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:o})}),(0,je.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,je.jsx)("div",{className:"flex flex-col gap-4",children:a&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Author"}),a.map((s,l)=>{let{name:d}=s,g=l===a.length-1,b=l===a.length-2;return(0,je.jsxs)(O.default.Fragment,{children:[d,b&&a.length>2&&(0,je.jsx)(O.default.Fragment,{children:", "}),b&&a.length===2&&(0,je.jsx)(O.default.Fragment,{children:" "}),!g&&a.length>1&&(0,je.jsx)(O.default.Fragment,{children:"and "})]},l)})]})}),n&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,je.jsx)("time",{dateTime:n,children:ht(n)})]})]})]})}),(0,je.jsxs)("div",{className:"min-h-[80vh] select-none",children:[(0,je.jsx)("div",{children:(0,je.jsx)(xt.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:((i=r&&r.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png"})}),(0,je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var wt="../cortex-reply-light-27IMI3G7.png";var Ct="../cortex-reply-dark-XPAJJJYY.png";var At="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//_t";var Qt=T(require("next/image"));var kt=({className:e,content:t,style:r})=>(0,je.jsx)("div",{className:p("mx-auto my-8 w-full",e),children:(0,je.jsx)("div",{className:p("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,je.jsx)(j,{content:t,enableGutter:!1,enableProse:!1})})});var Nt=require("@radix-ui/react-slot"),Pt=require("class-variance-authority"),St=T(require("react")),zr=(0,Pt.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"}}}),J=St.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...n},o)=>(0,je.jsx)(e?Nt.Slot:"button",{className:p(zr({className:t,size:r,variant:a})),ref:o,...n}));J.displayName="Button";var Fe=T(require("next/link")),ve=e=>{let{type:t,appearance:r="inline",children:a,className:n,label:o,newTab:i,reference:s,size:l,url:d}=e,g=t==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:d;if(!g)return null;let b=r==="link"?"clear":l,u=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,je.jsxs)(Fe.default,{className:p(n),href:g||d||"",...u,children:[o&&o,a&&a]}):(0,je.jsx)(J,{asChild:!0,className:n,size:b,variant:r,children:(0,je.jsxs)(Fe.default,{className:p(n),href:g||d||"",...u,children:[o&&o,a&&a]})})};var Tt=({links:e,richText:t})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,je.jsx)(j,{className:"mb-0",content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},a)=>(0,je.jsx)(ve,{size:"lg",...r},a))})]})});var we=require("prism-react-renderer");function Mt({code:e}){let[t,r]=(0,$.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(J,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,je.jsx)("p",{children:t}),(0,je.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,je.jsx)(be.ClipboardCopy,{})})]})})}var Dt=({code:e,language:t=""})=>e?(0,je.jsx)(we.Highlight,{code:e,language:t,theme:we.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:n})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-je-auto",children:[n.map((o,i)=>(0,je.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:o.map((s,l)=>(0,je.jsx)("span",{...a({token:s})},l))})]},i)),(0,je.jsx)(Mt,{code:e})]})}):null;var Lt=({className:e,code:t,language:r})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(Dt,{code:t,language:r})});var Ft=T(require("next/image"));var Et=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ce=()=>{if(Et){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 Gr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Ur="data:image/png;base64,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",Ht=e=>{let{alt:t,fill:r,imgClassName:a,priority:n,resource:o,size:i,src:s,loading:l}=e,d,g,b=t,u=s||"";if(!u&&o&&typeof o=="object"){let{alt:v,filename:k,height:P,url:I,width:z}=o;d=z,g=P,b=v||"",u=`${Ce()}${I}`}let h=l||"lazy",N=i||Object.entries(Gr).map(([,v])=>`(max-width: ${v}px) ${v*2}w`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(Ft.default,{alt:b||"",className:p(a),fill:r,height:r?void 0:g,placeholder:"blur",blurDataURL:Ur,priority:h!=="lazy"&&n,quality:100,loading:h,sizes:N,src:u,width:r?void 0:d})})};var zt=e=>{let{onClick:t,resource:r,videoClassName:a}=e,n=(0,$.useRef)(null);if((0,$.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,je.jsx)("video",{autoPlay:!0,className:p(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:n,children:(0,je.jsx)("source",{src:`${Ce()}/media/${o}`})})}return null};var Ut=e=>{var i;let{className:t,htmlElement:r="div",resource:a}=e,n=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,je.jsx)(r||$.Fragment,{...r!==null?{className:t}:{},children:n?(0,je.jsx)(zt,{...e}):(0,je.jsx)(Ht,{...e})})};var Ot=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=e;return(0,je.jsx)("div",{className:p("",{container:r},t),children:(0,je.jsx)(Ut,{imgClassName:p("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var Pe=T(require("react"));function Ne({nodes:e}){return(0,je.jsx)(Pe.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"){let o=(0,je.jsx)(Pe.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,je.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,je.jsx)("em",{children:o},r)),t.format&4&&(o=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,je.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,je.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,je.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((o,i)=>(0,je.jsx)("tr",{children:o.children.map((s,l)=>(0,je.jsx)("td",{children:Ne({nodes:s.children})},l))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return Ne({nodes:o.children})},n="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,je.jsx)(Tt,{...o},r);case"mediaBlock":return(0,je.jsx)(Ot,{className:"col-start-1 col-span-3",imgClassName:"je-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,je.jsx)(kt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,je.jsx)(Lt,{className:"col-start-2",...o},r);default:return null}}else switch(t.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:n},r);case"heading":{let o=t==null?void 0:t.tag;return(0,je.jsx)(o,{className:"col-start-2",children:n},r)}case"list":{let o=t==null?void 0:t.tag;return(0,je.jsx)(o,{className:"list col-start-2",children:n},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:n},r):(0,je.jsx)("li",{value:t==null?void 0:t.value,children:n},r);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=t.fields;return(0,je.jsx)(ve,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var j=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var n;return t?(0,je.jsx)("div",{className:p({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Ne({nodes:(n=t==null?void 0:t.root)==null?void 0:n.children})}):null};var _t=require("next/navigation");var K=T(require("react"));var W=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));W.displayName="Card";var le=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("flex flex-col space-je-1.5 p-6",e),...t}));le.displayName="CardHeader";var ce=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));ce.displayName="CardTitle";var Or=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));Or.displayName="CardDescription";var q=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("p-6 je-0",e),...t}));q.displayName="CardContent";var Jr=K.forwardRef(({className:e,...t},r)=>(0,je.jsx)("div",{ref:r,className:p("flex items-center p-6 je-0",e),...t}));Jr.displayName="CardFooter";var Ra=p("transition-colors duration-400 hover:text-primary ease-in-out");function Kt({title:e,links:t}){let r=(0,_t.useSearchParams)(),a=(0,_t.usePathname)(),{replace:n}=(0,_t.useRouter)();function o(i){console.log(i);let s=new URLSearchParams(r);i?s.set("category",i):s.delete("category"),n(`${a}?${s.toString()}`)}return(0,je.jsxs)(W,{children:[(0,je.jsx)(le,{children:(0,je.jsx)(ce,{children:e&&e})}),(0,je.jsx)(q,{children:t&&t.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,s)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-accent first:je-0 hover:cursor-pointer",onClick:l=>{l.preventDefault(),o(i.href)},children:[i.label,(0,je.jsx)(be.ExternalLink,{className:"ml-1 h-3 w-3"})]},s))})})})]})}var Xt=T(require("next/link"));function Yr({image:e,name:t,about:r,socialLinks:a}){return(0,je.jsx)("div",{className:"mt-1 z-10 px-0 je-0 lg:px-10",children:(0,je.jsx)(W,{children:(0,je.jsxs)(q,{children:[e&&e.src&&(0,je.jsx)(Qt.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:At,className:"mx-auto mt-6 rounded-full object-cover"}),(0,je.jsx)("h3",{className:"font-secondary text-center py-2 text-lg font-bold leading-[1.25] text-accent dark:text-white md:text-xl",children:t}),(0,je.jsx)("p",{children:r}),a&&a.length>0&&(0,je.jsx)("nav",{"aria-label":"social links",children:(0,je.jsx)("ul",{className:"inline-flex items-center divide-je divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:a.map((n,o)=>(0,je.jsx)("li",{children:(0,je.jsx)(fe,{href:n.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 hover:text-accents",children:(0,je.jsx)("span",{children:n.icon})})},o))})})]})})})}function Vt({page:e,categoryList:t,edit:r=!1,path:a="/admin/collections/posts/"}){var u;if(!e)return(0,_t.notFound)();let{meta:n,populatedAuthors:o,authors:i,categories:s,content:l,title:d}=e,g={image:{src:n&&n.image&&n.image.url||void 0,alt:n&&n.image&&n.image.alt||void 0},authorName:((u=o==null?void 0:o[0])==null?void 0:u.name)||"",category:s,commentCount:0,title:d,description:(n==null?void 0:n.description)||""},b=i==null?void 0:i.map(h=>{var N,v;return{name:h.name||"",about:"",image:{src:h.profilePicture&&((v=(N=h.profilePicture.sizes)==null?void 0:N.small)==null?void 0:v.url)||"/assets/images/blog/author-1.png",alt:h.name||"blog author"},socialLinks:[]}});return(0,je.jsx)(ge,{children:(0,je.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,je.jsx)("div",{children:(0,je.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,je.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,je.jsx)(j,{content:l,enableGutter:!1})]})}),(0,je.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,je.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 je-0 lg:px-10",children:(0,je.jsxs)(W,{children:[(0,je.jsx)(le,{children:(0,je.jsx)(ce,{children:"CMS Actions"})}),(0,je.jsxs)(q,{children:[(0,je.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,je.jsx)(Xt.default,{href:`${a}${e.id}`,children:(0,je.jsx)(J,{className:"w-full",children:"Edit"})})]})]})}),b&&b.map((h,N)=>(0,je.jsx)(Yr,{...h},N)),t&&t.links&&(0,je.jsx)("div",{className:"mt-4 px-0 je-0 lg:px-10",children:(0,je.jsx)(Kt,{links:t.links,title:t.title})})]})]})})}function $t({...e}){return(0,je.jsxs)("div",{children:[(0,je.jsx)(yt,{isMenuOpen:!0,logoLight:wt,logoDark:Ct}),(0,je.jsx)(vt,{...e.hero}),(0,je.jsx)(Vt,{className:"!pb-0",...e.blog})]})}
|
package/dist/pages/Blog.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-G474BW6A.mjs";import"../chunk-WU3JMLSC.mjs";import"../chunk-BZAYEKYC.mjs";import"../chunk-YBNYR2ON.mjs";import"../chunk-KML6U7IE.mjs";import"../chunk-XVXQHP54.mjs";import"../chunk-FNXBIW3Q.mjs";import"../chunk-4MNYZ3VG.mjs";import"../chunk-O5BAW5XQ.mjs";import"../chunk-YAH6C5YX.mjs";import"../chunk-ODLDYXPZ.mjs";import"../chunk-QRNJ7O2L.mjs";import"../chunk-7WBETZEV.mjs";import"../chunk-TFWGOEV7.mjs";import"../chunk-763KMQIQ.mjs";import"../chunk-J2VQUYES.mjs";import"../chunk-SJWGFZJ6.mjs";import"../chunk-44TDI42O.mjs";import"../chunk-BOPZHZ27.mjs";import"../chunk-GLEWUUGS.mjs";import"../chunk-D76EO57Z.mjs";import"../chunk-ZDPQXVTF.mjs";import"../chunk-O5XLZ254.mjs";import"../chunk-V7YLLLES.mjs";import"../chunk-Z4CK655R.mjs";import"../chunk-VZKLCHD4.mjs";import"../chunk-XDP6BKTK.mjs";import"../chunk-4BZYZZOG.mjs";import"../chunk-HAYRX2WO.mjs";import"../chunk-SV3TTIPR.mjs";import"../chunk-CS77R54Z.mjs";import"../chunk-YNNW2C2U.mjs";import"../chunk-SFLOMJ2U.mjs";import"../chunk-WISCWNL2.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-D2WXBUVJ.mjs";export{a as default};
|