1import{d as G,a as I,_ as O,b as Q}from"./Bv30zAOh.js";import{_ as U,a as J}from"./Cw166iBr.js";import{u as N,h as g,i as r,c as i,e,t as Z,d as s,n as B,bM as T,bN as V,v as $,bO as z,b as x,g as j,F as k,f as M,j as A,T as P,r as q,bL as F,bP as H,q as K,w as W,bQ as X,m as Y}from"#entry";import"./BC8HSPre.js";import"./DsUCT4Br.js";import"./BCRqorqm.js";const ee=["aria-expanded","onKeydown"],te={key:0,class:"absolute top-full left-0 w-full flex flex-col mt-[-1px]"},se=["disabled","onClick"],oe={__name:"Dropdown",props:{modelValue:{type:[String,Number],default:null},options:{type:Array,required:!0}},emits:["update:modelValue"],setup(o,{emit:p}){const m=o,l=p,{$resize:a}=N(),u=q(!1),v=g(()=>a?.mouse?{mouseenter:n,mouseleave:h}:{}),w=g(()=>a?.mouse?{}:{click:b}),f=g(()=>m.options.find(t=>t.value===m.modelValue)?.label||m.options[0]?.label),b=()=>u.value=!u.value,h=()=>u.value=!1,n=()=>u.value=!0,L=t=>{t.relatedTarget&&!t.currentTarget.contains(t.relatedTarget)&&h()},d=t=>{l("update:modelValue",t),h()};return(t,C)=>(r(),i("div",T({class:"dropdown relative w-full max-w-[31rem] z-10"},z(s(v),!0),{onKeydown:V(h,["esc"]),onFocusout:L}),[e("button",T({type:"button","aria-haspopup":"listbox","aria-expanded":s(u)},z(s(w),!0),{onKeydown:[V($(b,["prevent"]),["enter"]),V($(b,["prevent"]),["space"])],class:"relative flex items-center justify-between w-full gap-x-20 bg-brown-darker border border-brown-dark rounded-5 px-25 py-14 type-body-md text-white"}),[e("span",null,Z(s(f)),1),(r(),i("svg",{class:B(["w-auto h-16 text-gold transition-transform duration-500 ease-out-expo",{"scale-y-[-1]":s(u)}]),viewBox:"0 0 12 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...C[0]||(C[0]=[e("path",{class:"fill-current",d:"M4.99262 24.2803C5.28551 24.5732 5.76039 24.5732 6.05328 24.2803L10.8262 19.5074C11.1191 19.2145 11.1191 18.7396 10.8262 18.4467C10.5334 18.1538 10.0585 18.1538 9.76559 18.4467L5.52295 22.6893L1.28031 18.4467C0.987415 18.1538 0.512541 18.1538 0.219648 18.4467C-0.0732459 18.7396 -0.0732459 19.2145 0.219648 19.5074L4.99262 24.2803ZM5.52295 0L4.77295 -3.27835e-08L4.77295 23.75L5.52295 23.75L6.27295 23.75L6.27295 3.27835e-08L5.52295 0Z"},null,-1)])],2))],16,ee),x(P,{name:"fade-fast"},{default:j(()=>[s(u)?(r(),i("ul",te,[(r(!0),i(k,null,M(o.options,c=>(r(),i("li",{key:c.value},[e("button",{type:"button",disabled:c.value===o.modelValue,onClick:$(y=>d(c.value),["stop"]),class:"mt-[-1px] block w-full text-left bg-brown-darker border border-brown-dark rounded-5 px-25 py-14 type-body-md text-gold transition-colors duration-300 ease-out disabled:text-gold/40 disabled:pointer-events-none has-hover:hover:text-gold/70"},Z(c.label),9,se)]))),128))])):A("",!0)]),_:1})],16))}},ae={key:0,class:"flex items-center justify-center gap-30 mt-60 s:mt-80"},ne=["disabled"],re={class:"flex items-center gap-25"},le={key:0,class:"type-caption"},ie=["href","aria-current","onClick"],ue=["disabled"],de={__name:"Pagination",props:{current:Number,total:Number,range:Array},emits:["go"],setup(o){const p=F();return(m,l)=>o.total>1?(r(),i("div",ae,[e("button",{disabled:o.current===1,onClick:l[0]||(l[0]=a=>m.$emit("go",o.current-1)),class:"group relative flex items-center justify-center min-w-45 max-w-45 h-35 rounded-[4.5rem] bg-brown-dark border border-brown text-gold type-caption disabled:opacity-30"},[...l[2]||(l[2]=[e("svg",{class:"w-auto h-15 rotate-90",viewBox:"0 0 12 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{class:"fill-current transition-transform duration-700 ease-out-expo delay-0 translate-y-[-125%] has-hover:group-hover:delay-200 has-hover:group-hover:translate-y-0",d:"M4.99262 24.2803C5.28551 24.5732 5.76039 24.5732 6.05328 24.2803L10.8262 19.5074C11.1191 19.2145 11.1191 18.7396 10.8262 18.4467C10.5334 18.1538 10.0585 18.1538 9.76559 18.4467L5.52295 22.6893L1.28031 18.4467C0.987415 18.1538 0.512541 18.1538 0.219648 18.4467C-0.0732459 18.7396 -0.0732459 19.2145 0.219648 19.5074L4.99262 24.2803ZM5.52295 0L4.77295 -3.27835e-08L4.77295 23.75L5.52295 23.75L6.27295 23.75L6.27295 3.27835e-08L5.52295 0Z"}),e("path",{class:"fill-current transition-transform duration-700 ease-out-expo delay-200 translate-y-0 has-hover:group-hover:delay-0 has-hover:group-hover:translate-y-[125%]",d:"M4.99262 24.2803C5.28551 24.5732 5.76039 24.5732 6.05328 24.2803L10.8262 19.5074C11.1191 19.2145 11.1191 18.7396 10.8262 18.4467C10.5334 18.1538 10.0585 18.1538 9.76559 18.4467L5.52295 22.6893L1.28031 18.4467C0.987415 18.1538 0.512541 18.1538 0.219648 18.4467C-0.0732459 18.7396 -0.0732459 19.2145 0.219648 19.5074L4.99262 24.2803ZM5.52295 0L4.77295 -3.27835e-08L4.77295 23.75L5.52295 23.75L6.27295 23.75L6.27295 3.27835e-08L5.52295 0Z"})],-1)])],8,ne),e("div",re,[(r(!0),i(k,null,M(o.range,a=>
1(r(),i(k,{key:a},[a==="..."?(r(),i("span",le,"...")):(r(),i("a",{key:1,href:`${s(p).path}?page=${a}`,"aria-current":a===o.current?"page":void 0,onClick:$(u=>m.$emit("go",a),["prevent"]),class:B(["type-caption transition-all duration-300 ease-out no-underline",a===o.current?"text-gold -translate-y-1/2":"text-white"])},Z(a),11,ie))],64))),128))]),e("button",{disabled:o.current===o.total,onClick:l[1]||(l[1]=a=>m.$emit("go",o.current+1)),class:"group relative flex items-center justify-center min-w-45 max-w-45 h-35 rounded-[4.5rem] bg-brown-dark border border-brown text-gold type-caption disabled:opacity-30"},[...l[3]||(l[3]=[e("svg",{class:"w-auto h-15 -rotate-90",viewBox:"0 0 12 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{class:"fill-current transition-transform duration-700 ease-out-expo delay-0 translate-y-[-125%] has-hover:group-hover:delay-200 has-hover:group-hover:translate-y-0",d:"M4.99262 24.2803C5.28551 24.5732 5.76039 24.5732 6.05328 24.2803L10.8262 19.5074C11.1191 19.2145 11.1191 18.7396 10.8262 18.4467C10.5334 18.1538 10.0585 18.1538 9.76559 18.4467L5.52295 22.6893L1.28031 18.4467C0.987415 18.1538 0.512541 18.1538 0.219648 18.4467C-0.0732459 18.7396 -0.0732459 19.2145 0.219648 19.5074L4.99262 24.2803ZM5.52295 0L4.77295 -3.27835e-08L4.77295 23.75L5.52295 23.75L6.27295 23.75L6.27295 3.27835e-08L5.52295 0Z"}),e("path",{class:"fill-current transition-transform duration-700 ease-out-expo delay-200 translate-y-0 has-hover:group-hover:delay-0 has-hover:group-hover:translate-y-[125%]",d:"M4.99262 24.2803C5.28551 24.5732 5.76039 24.5732 6.05328 24.2803L10.8262 19.5074C11.1191 19.2145 11.1191 18.7396 10.8262 18.4467C10.5334 18.1538 10.0585 18.1538 9.76559 18.4467L5.52295 22.6893L1.28031 18.4467C0.987415 18.1538 0.512541 18.1538 0.219648 18.4467C-0.0732459 18.7396 -0.0732459 19.2145 0.219648 19.5074L4.99262 24.2803ZM5.52295 0L4.77295 -3.27835e-08L4.77295 23.75L5.52295 23.75L6.27295 23.75L6.27295 3.27835e-08L5.52295 0Z"})],-1)])],8,ue)])):A("",!0)}},ce=(o,{perPage:p=6,scrollTarget:m="#posts"}={})=>{const{$scroll:l}=N(),a=F(),u=H(),v=g(()=>Number(a.query.page)||1),w=g(()=>Math.ceil(o.value.length/p)),f=g(()=>{const n=(v.value-1)*p;return o.value.slice(n,n+p)}),b=g(()=>{const n=w.value,L=v.value,d=[];if(n<=5){for(let t=1;t<=n;t++)d.push(t);return d}for(let t=1;t<=Math.min(3,L+1);t++)d.push(t);return d[d.length-1]<n-1&&d.push("..."),d.includes(n)||d.push(n),d}),h=n=>u.push({query:{page:n}});return K(v,()=>{l?.to(m)},{immediate:!1}),{current:v,total:w,items:f,range:b,go:h}},pe={id:"main"},me={class:"relative bg-brown-darker pt-125 s:pt-175 pb-60 s:pb-95 border-b border-brown-dark"},fe={class:"absolute inset-0 z-1 pointer-events-none flex divide-x divide-brown-dark"},ve={class:"relative site-max flex flex-col items-center text-center z-2"},ge={class:"relative aspect-[1113/1443] overflow-hidden w-full max-w-[17.5rem] s:max-w-[22.1rem]"},be=["innerHTML"],he=["innerHTML"],ye={class:"relative z-20 bg-brown-darker pt-50"},xe={class:"site-max flex justify-center"},we={class:"relative bg-brown-darker pb-85 pt-50"},Le={class:"site-max"},_e={class:"relative stack"},Ne={__name:"index",async setup(o){let p,m;const{$dato:l}=N(),a=H(),{data:u}=([p,m]=W(()=>I("media-index",()=>l.page({slug:"media-index",variables:{first:100,skip:0}}))),p=await p,m(),p),v=g(()=>u.value?.page||null),w=[{label:"All",value:"all"},{label:"Insights",value:"insights"},{label:"Podcasts",value:"podcasts"}],f=q("all"),b=c=>!!c.podcast?.file?.url,h=g(()=>{const c=u.value?.posts||[];return f.value==="podcasts"?c.filter(b):f.value==="insights"?c.filter(y=>!b(y)):c});K(f,()=>a.replace({query:{}}));const{current:n,total:L,items:d,range:t,go:C}=ce(h,{perPage:9});return G(),(c,y)=>{const S=O,D=U,R=Q;return r(),i("main",pe,[x(S,{seo:s(v)?.seo},null,8,["seo"]),e("section",me,[e("div",fe,[(r(),i(k,null,M(4,(_,E)=>e("div",{key:E,class:"flex-1 max-s:hidden max-s:first:block max-s:last:block"})),64))]),e("div",ve,[e("div",ge,[x(D,{src:"/images/seal-saffron-media.png",aspect:!1,fit:""})]),e("h1",{class:"type-display-xl mt-30",innerHTML:c.$sanitize(s(v)?.hero.title)},null,8,be),e("p",{class:"type-body-lg text-white mt-25 s:max-w-[65rem]",innerHTML:c.$sanitize(s(v)?.hero.subtitle)},null,8,he)])]),e("section",ye,[e("div",xe,[x(oe,{modelValue:s(f),"onUpdate:modelValue":y[0]||(y[0]=_=>X(f)?f.value=_:null),options:w}
1,null,8,["modelValue"])])]),e("section",we,[y[1]||(y[1]=e("div",{id:"posts",class:"absolute -top-80"},null,-1)),e("div",Le,[e("div",_e,[x(P,{name:"fade",mode:"out-in"},{default:j(()=>[(r(),i("div",{key:`${s(f)}-${s(n)}`,class:"grid grid-cols-1 s:grid-cols-3 gap-40 s:gap-x-20 sm:gap-85"},[(r(!0),i(k,null,M(s(d),_=>(r(),Y(J,{key:_.id,post:_},null,8,["post"]))),128))]))]),_:1})]),x(de,{current:s(n),total:s(L),range:s(t),onGo:s(C)},null,8,["current","total","range","onGo"])])]),x(R)])}}};export{Ne as default};
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.