1import{_ as Y}from"./C_gYJ2nh.js";import{p as k,f as P,g as U,h as I,i as D,o as r,c as d,a as t,n as J,j as l,r as K,k as h,l as C,b as e,w as i,m as Q,F as y,q as w,s as A,v as Z,x as tt,y as E,t as N,d as G,z as B,e as et}from"./DyEYwRQf.js";import{_ as lt}from"./CFoYIEqG.js";import{_ as st}from"./BuXAB0fN.js";import{_ as at}from"./BEmgMNj7.js";import{_ as ot}from"./V_-2Qkew.js";import{_ as nt}from"./_dKqIEBU.js";import{_ as it}from"./DKjFZWX1.js";import{_ as rt}from"./BAS46mpm.js";import{_ as ct}from"./B49q1JpO.js";import"./4oS9sQHy.js";const dt=k("/images/hero/background.png"),ut=k("/images/hero/planet.png"),_t=k("/images/hero/courier.png"),mt=k("/images/hero/sparkle.png"),pt=k("/images/hero/glow.png"),ft=k("/images/hero/lens-flare-static.png"),xt={"data-parallax":"trigger","data-parallax-start":"0","data-parallax-end":"50","data-parallax-scroll-start":"top top","data-parallax-disable":"mobile",class:"absolute inset-0"},gt={"data-parallax":"trigger","data-parallax-start":"0","data-parallax-end":"50","data-parallax-scroll-start":"top top","data-parallax-disable":"mobile",class:"absolute inset-0 mix-blend-screen"},bt={class:"relative z-10","data-parallax":"trigger","data-parallax-start":"0","data-parallax-end":"30","data-parallax-scroll-start":"top top","data-parallax-disable":"mobile"},M=2e3,X=944,vt=P({__name:"HomePageHero",setup(R){const s=h(null),x=h(null),p=h(null),u=h(null),g=M/X,L=M*.867,j=X*.54,O=h("0px"),S=h("0px");function m(){if(!s.value)return;const n=s.value.clientWidth,o=s.value.clientHeight,_=n/o;let c,b,f,z;_>g?(c=n,b=c/g,f=0,z=(o-b)/2):(b=o,c=b*g,f=n-c,z=0);const $=c/M,W=b/X,T=f+L*$,H=z+j*W;O.value=`${T}px`,S.value=`${H}px`,u.value&&I.set(u.value,{transformOrigin:`${T}px ${H}px`})}return U(()=>{if(!s.value||!x.value||!p.value||!u.value)return;m(),window.addEventListener("resize",m),I.set(x.value,{opacity:0}),I.set(p.value,{opacity:0}),I.set(u.value,{opacity:.5,rotation:0});const n=I.timeline({scrollTrigger:{trigger:s.value,start:"top top",end:"bottom top",scrub:!0}});n.to(u.value,{rotation:-20,ease:"none",duration:1},0),n.to(u.value,{keyframes:[{opacity:1,ease:"linear",duration:.2},{opacity:1,ease:"none",duration:.2},{opacity:.5,ease:"linear",duration:.6}],duration:1},0),n.to(p.value,{keyframes:[{opacity:1,ease:"linear",duration:.2},{opacity:1,ease:"none",duration:.2},{opacity:0,ease:"linear",duration:.6}],duration:1},0),n.to(x.value,{keyframes:[{opacity:1,ease:"linear",duration:.2},{opacity:1,ease:"none",duration:.2},{opacity:0,ease:"linear",duration:.6}],duration:1},0)}),D(()=>{window.removeEventListener("resize",m)}),(n,o)=>(r(),d("div",{ref_key:"container",ref:s,class:"relative overflow-hidden py-12 md:py-24"},[o[4]||(o[4]=t("div",{"data-parallax":"trigger","data-parallax-start":"0","data-parallax-end":"80","data-parallax-scroll-start":"top top","data-parallax-disable":"mobile",class:"absolute inset-0"},[t("img",{src:dt,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"})],-1)),o[5]||(o[5]=t("div",{"data-parallax":"trigger","data-parallax-start":"0","data-parallax-end":"60","data-
1parallax-scroll-start":"top top","data-parallax-disable":"mobile",class:"absolute inset-0"},[t("img",{src:ut,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"})],-1)),t("div",xt,[o[2]||(o[2]=t("div",{class:"absolute inset-0"},[t("img",{src:_t,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"})],-1)),t("div",{ref_key:"sparkle",ref:x,class:"absolute inset-0"},[...o[0]||(o[0]=[t("img",{src:mt,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"},null,-1)])],512),t("div",{ref_key:"glow",ref:p,class:"absolute inset-0"},[...o[1]||(o[1]=[t("img",{src:pt,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"},null,-1)])],512)]),t("div",gt,[t("div",{class:"invisible absolute size-3 rounded-full bg-red-500 z-50 pointer-events-none -translate-x-1/2 -translate-y-1/2",style:J({left:l(O),top:l(S)})},null,4),t("div",{ref_key:"lensFlare",ref:u,class:"absolute inset-0 mix-blend-screen"},[...o[3]||(o[3]=[t("img",{src:ft,"data-nosnippet":"",role:"presentation",alt:"",class:"object-right object-cover size-full"},null,-1)])],512)]),t("div",bt,[K(n.$slots,"default")])],512))}}),ht=Object.assign(vt,{__name:"UiHomePageHero"}),yt={class:"max-w-3xl pb-12"},wt={class:"text-white mb-3"},kt={class:"max-w-2xl"},jt={class:"sm:flex sm:justify-start my-6"},zt={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},$t={key:0,class:"flex text-accent mb-6"},Ht={key:0},It={class:"text-xl font-serif mb-3"},Nt={class:"text-white"},Ot={class:"text-accent"},Tt={class:"flex justify-center mt-6"},Ct={class:"lg:flex lg:justify-center lg:items-center gap-4 lg:gap-8 max-w-4xl mx-auto"},Et={class:"lg:order-2 lg:shrink-0"},Lt={class:"max-w-48 sm:max-w-72 mx-auto mb-6 lg:mb-0"},St={class:"lg:order-1"},Wt={class:"max-w-4xl text-center lg:text-start"},Gt={class:"text-white mb-3"},Mt={class:"sm:flex sm:justify-center lg:justify-start"},Xt={class:"flex justify-center mt-6"},At={class:"md:flex md:justify-center md:items-center md:gap-8"},Bt={class:"md:order-2 md:shrink-0"},Pt={class:"overflow-hidden sci-fi-clipping-large"},Rt={class:"max-w-xs mx-auto mb-6 md:mb-0","data-parallax":"trigger","data-parallax-start":"-10","data-parallax-end":"0","data-parallax-cover":""},qt={class:"md:order-1"},Ft={class:"text-center md:text-start"},Vt={class:"mb-3"},Yt={class:"sm:flex sm:justify-center md:justify-start"},Ut={class:"flex justify-center mt-6"},Dt={class:"bg-primary lg:bg-transparent relative overflow-hidden lg:aspect-2/1 lg:max-h-dvh"},Jt={"data-parallax":"trigger","data-parallax-start":"-10","data-parallax-end":"0","data-parallax-scroll-start":"top bottom","data-parallax-scroll-end":"bottom bottom",class:"lg:absolute lg:inset-0"},Kt={class:"lg:absolute lg:inset-0 z-20 flex justify-start items-center max-w-2xl mx-auto lg:ml-0 lg:mr-auto"},ce=P({__name:"index",setup(R){const s=C("home"),x=C("reviews"),p=C("character_posts"),u=C("blog_posts").slice(0,8),g=s.title.split(" "),L=[g[0],g.slice(1,3).join(" "),g.slice(3).join(" ")],j=s.book_title.split(" "),O=[j[0],j.slice(1,3).join(" "),j.slice(3).join(" ")];return(S,m)=>{const n=Y,o=Z,_=tt,c=Q,b=ht,f=lt,z=st,$=at,W=ot,T=et,H=nt,q=it,F=rt,V=ct;return r(),d("div",null,[e(b,null,{default:i(()=>[e(c,{first:""},{default:i(()=>[t("div",yt,[t("h1",wt,[(r(),d(y,null,w(L,(a,v)=>e(n,{key:v,as:"span",class:A(["block",v>0?"text-accent":""]),text:a},null,8,["class","text"])),64))]),t("div",kt,[e(o,{white:"",large:"",content:l(s).quote1},null,8,["content"]),t("div",jt,[e(_,{field:l(s).button1,secondary:"",class:"w-full sm:w-auto mb-2 sm:mb-0 sm:mr-2"},null,8,["field"]),e(_,{field:l(s).button2,class:"w-full sm:w-auto sm:ml-2 mt-2 sm:mt-0"},null,8,["field"])]),e(o,{white:"",large:"",content:l(s).quote2,class:"prose-p:mb-3!"},null,8,["content"])])])]),_:1})]),_:1}),e(c,{"outer-class":"bg-white overflow-x-hidden"},{default:i(()=>[e(n,{as:"h2",text:l(s).reviews_title,class:"text-center mb-3"},null,8,["text"]),t("div",zt,[(r(!0),d(y,null,w(l(x).slice(0,6),a=>(r(),d("section",{key:a.id},[e(f,{class:"relative h-full flex flex-col justify-between"},{default:i(()=>[t("div",null,[a.fields.rating?(r(),d("div",$t,[(r(!0),d(y,null,w(Number(a.fields.rating),v=>(r(),d("svg",{key:v,class:"inline size-6 flex-none",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[...m[0]||(m[0]=[t("path",{"fill-rule":"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z","clip-rule":"evenodd"},null,-1)])]))),128))])):E("",!0),t("div",null,[e(o,{white:"",content:a.fields.review,class:"line-clamp-3"},null,8,["content"])])]),a.fields.name?(r(),d("div",Ht,[t("p",It,[t("span",Nt,N(a.fields.name.split(" ").slice(0,-1).join(" ")),1),m[1]||(m[1]=G(" "+N(" ")+" ",-1)),t("span",Ot,N(a.fields.name.split(" ").slice(-1)[0]),1)])])):E("",!0)]),_:2},1024)]))),128))]),t("div",Tt,[e(_,{field:{label:l(s).reviews_button.label.replace("{count}",String(l(x).length)),href:l(s).reviews_button.href,open_in_new_tab:l(s).reviews_button.open_in_new_tab,is_external:l(s).reviews_button.is_external}},null,8,["field"])])]),_:1}),e(c,{"outer-class":"bg-primary"},{default:i(()=>[e(z)]),_:1}),e(c,null,{default:i(()=>[e(f,{class:"max-w-7xl"},{default:i(()=>[t("div",Ct,[t("div",Et,[t("div",Lt,[e($,{field:l(s).book_cover,class:"mx-auto"},null,8,["field"])])]),t("div",St,[t("div",Wt,[t("h2",Gt,[(r(),d(y,null,w(O,(a,v)=>e(n,{key:v,as:"span",class:A(["block",v>0?"text-accent":""]),text:a},null,8,["class","text"])),64))]),e(o,{large:"",white:"",content:l(s).book_quote},null,8,["content"])]),t("div",Mt,[e(_,{field:l(s).book_button1,secondary:"",class:"w-full sm:w-auto mb-2 sm:mb-0 sm:mr-2"},null,8,["field"]),e(_,{field:l(s).book_button2,class:"w-full sm:w-auto mb-2 sm:mb-0 sm:mr-2"},null,8,["field"])])])])]),_:1})]),_:1}),l(p)&&l(p)?.length?(r(),B(c,{key:0,"outer-class":"bg-primary overflow-x-hidden"},{default:i(()=>[e(n,{as:"h3",text:l(s).characters_title,class:"text-white text-center mb-3"},null,8,["text"]),e(H,{"slider-name":"characters","controls-top-percent":50},{default:i(()=>[(r(!0),d(y,null,w(l(p),a=>(r(),d("article",{key:a.id,class:"h-full mb-3"},[e(T,{to:`/advances-in-the-art-of-being/characters/${a.fields.slug}`,class:""},{default:i(()=>[e(W,{"background-image":a.fields.background_image,"background-title":a.fields.background_title,"background-title-colour":a.fields.background_title_colour,"background-text":a.fields.background_text,"background-text-colour":a.fields.background_text_colour,"foreground-image":a.fields.foreground_image,name:a.fields.name},null,8,["background-image","background-title","background-title-colour","background-text","background-text-colour","foreground-image","name"])]),_:2},1032,["to"])]))),128))]),_:1}),t("div",Xt,[e(_,{field:l(s).characters_button},null,8,["field"])])]),_:1})):E("",!0),e(c,{"outer-class":"bg-fixed bg-radial from-white to-secondary"},{default:i(()=>[e(F,null,{default:i(()=>[e(f,null,{default:i(()=>[t("div",At,[t("div",Bt,[t("div",Pt,[t("div",Rt,[e($,{field:l(s).about_image,class:"object-cover size-full"},null,8,["field"])])])]),t("div",qt,[t("div",Ft,[e(q,null,{default:i(()=>[G(N(l(s).about_eyebrow),1)]),_:1}),t("div",Vt,[t("h3",null,[e(n,{as:"span",text:l(s).about_title.split(" ").slice(0,-1).join(" "),class:"text-white"},null,8,["text"]),m[2]||(m[2]=G(" "+N(" ")+" ",-1)),e(n,{as:"span",text:l(s).about_title.split(" ").slice(-1)[0],class:"text-accent"},null,8,["text"])])])]),e(o,{white:"",content:l(s).about_bio},null,8,["content"]),t("div",Yt,[e(_,{field:l(s).about_button,class:"w-full sm:w-auto mb-2 sm:mb-0 sm:mr-2"},null,8,["field"])])])])]),_:1})]),_:1})]),_:1}),l(u)&&l(u)?.length?(r(),B(c,{key:1,"outer-class":"bg-primary overflow-x-hidden"},{default:i(()=>[e(n,{as:"h3",text:l(s).blog_title,class:"text-white text-center mb-3"},null,8,["text"]),e(H,{"slider-name":"blog","controls-top-percent":50},{default:i(()=>[(r(!0),d(y,null,w(l(u),a=>(r(),d("article",{key:a.id,class:"h-full"},[e(V,{post:a},null,8,["post"])]))),128))]),_:1}),t("div",Ut,[e(_,{field:l(s).blog_button},null,8,["field"])])]),_:1})):E("",!0),t("div",Dt,[t("div",Jt,[e($,{field:l(s).cta_image,class:"object-cover object-left size-full"},null,8,["field"])]),t("div",Kt,[e(c,null,{default:i(()=>[e(f,null,{default:i(()=>[e(n,{as:"h3",text:l(s).cta_title,class:"text-white mb-3"},null,8,["text"]),t("div",null,[e(o,{white:"",content:l(s).cta_body},null,8,["content"])]),t("div",null,[e(_,{field:l(s).cta_button},null,8,["field"])])]),_:1})]),_:1})])])])}}});
1export{ce 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.