1import{w as W,r as V,j as t}from"./chunk-WWGJGFF6-Kk94zoMq.js";import{c as X}from"./compiler-runtime-RTyagslI.js";import{g as k,u as Z,c as ee,m as te,A as se}from"./use-layout-DnhLu8p8.js";import{A as Y,E as oe}from"./editorial-hero-BBDoj8Om.js";import{m as ae}from"./merge-meta-CtYKW2Wf.js";import{u as ie,a as le,b as re,H as ne,S as ce,c as me,F as de}from"./index-FQ5n_gbK.js";import"./index-CScdRL0T.js";import"./stegaClean-BFLaXKzU.js";import"./use-page-visibility-DnsU0oUb.js";import"./tslib.es6-boky8MQ8.js";const ve=C=>{const i=C.loaderData?.page.res.data,e=i?.seoMetadata,_=e?.title??i?.title,D=e?.image?k(e.image):i?.coverImage?k(i.coverImage):void 0;return ae(C,[{title:_},{property:"robots",content:e?.robots},{name:"description",content:e?.description},{property:"og:title",content:_},{property:"og:image",content:D},{property:"og:description",content:e?.description}])},_e=W(function(i){const e=X.c(59),{loaderData:_}=i,{page:D,pageSections:A}=_,{res:H,query:$,params:B}=D;let I;e[0]!==H?(I={initial:H},e[0]=H,e[1]=I):I=e[1];const{data:L}=Z($,B,I),Q=V.useRef(null),[T,G]=V.useState(!1);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={target:Q,offset:["start start","end end"]},e[2]=N):N=e[2];const{scrollYProgress:a}=ie(N);let w;e[3]===Symbol.for("react.memo_cache_sentinel")?(w={threshold:20},e[3]=w):w=e[3];const{direction:F}=le(w);let E;if(e[4]===Symbol.for("react.memo_cache_sentinel")?(E=v=>{G(v>0&&v<1)},e[4]=E):E=e[4],re(a,"change",E),!L?._id)return null;const{_id:O,_type:U,title:s,publishedAt:l,updatedAt:q,coverImage:o,content:z,seoMetadata:M}=L;let r,n;if(e[5]!==o||e[6]!==l||e[7]!==M||e[8]!==s||e[9]!==q){const v=M?.image?k(M.image):o?k(o):void 0,K={"@context":"https://schema.org","@type":"Article",headline:s??"",datePublished:l,dateModified:q,image:v?[v]:void 0};n="application/ld+json",r=JSON.stringify(K),e[5]=o,e[6]=l,e[7]=M,e[8]=s,e[9]=q,e[10]=r,e[11]=n}else r=e[10],n=e[11];let c;e[12]!==r?(c={__html:r},e[12]=r,e[13]=c):c=e[13];let m;e[14]!==n||e[15]!==c?(m=t.jsx("script",{type:n,dangerouslySetInnerHTML:c}),e[14]=n,e[15]=c,e[16]=m):m=e[16];let d;e[17]!==s?(d=t.jsx(ne,{variant:"dark",pageTitle:s}),e[17]=s,e[18]=d):d=e[18];let p;e[19]!==o||e[20]!==l||e[21]!==s?(p=t.jsx(oe,{tag:"Article",title:s,publishedAt:l,coverImage:o,className:"mb-80"}),e[19]=o,e[20]=l,e[21]=s,e[22]=p):p=e[22];const J=A.length>0&&"border-brand-green border-b-2";let g;e[23]!==J?(g=ee("wrap-center px-16 pb-80 lg:px-0 lg:pb-120",J),e[23]=J,e[24]=g):g=e[24];let f;e[25]!==o||e[26]!==a||e[27]!==s?(f=t.jsx("div",{className:"hidden lg:col-span-4 lg:block xl:col-span-3",children:t.jsx(Y,{progress:a,className:"sticky top-16",title:s,image:o,label:"Article"})}),e[25]=o,e[26]=a,e[27]=s,e[28]=f):f=e[28];let x;e[29]!==o||e[30]!==F||e[31]!==T||e[32]!==a||e[33]!==s?(x=T&&t.jsx(te.div,{className:"fixed inset-x-0 top-0 z-10 block p-8 lg:hidden",initial:{y:"-100%"},animate:{y:F==="down"?0:"-100%"},exit:{y:"-100%"},transition:{duration:.4,ease:"easeInOut"},children:t.jsx(Y,{progress:a,title:s,image:o,label:"Article"})}),e[29]=o,e[30]=F,e[31]=T,e[32]=a,e[33]=s,e[34]=x):x=e[34];let u;e[35]!==x?(u=t.jsx(se,{children:x}),e[35]=x,e[36]=u):u=e[36];let h;e[37]!==z?(h=t.jsx(ce,{value:z,className:"lg:col-span-7 lg:col-start-6"}),e[37]=z,e[38]=h):h=e[38];let y;e[39]!==f||e[40]!==u||e[41]!==h?(y=t.jsxs("div",{className:"relative grid grid-cols-1 gap-16 lg:grid-cols-12",ref:Q,children:[f,u,h]}),e[39]=f,e[40]=u,e[41]=h,e[42]=y):y=e[42];let b;e[43]!==g||e[44]!==y?(b=t.jsx("div",{className:"wrapper",children:t.jsx("div",{className:g,children:y})}),e[43]=g,e[44]=y,e[45]=b):b=e[45];let j;e[46]!==O||e[47]!==U||e[48]!==A?(j=t.jsx(me,{docId:O,docType:U,sections:A}),e[46]=O,e[47]=U,e[48]=A,e[49]=j):j=e[49];let S;e[50]!==p||e[51]!==b||e[52]!==j?(S=t.jsxs("main",{className:"grow",children:[p,b,j]}),e[50]=p,e[51]=b,e[52]=j,e[53]=S):S=e[53];let P;e[54]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(de,{}),e[54]=P):P=e[54];let R;return e[55]!==S||e[56]!==m||e[57]!==d?(R=t.jsxs(t.Fragment,{children:[m,d,S,P]}),e[55]=S,e[56]=m,e[57]=d,e[58]=R):R=e[58],R});export{_e as default,ve as meta};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.