import{_ as V,a as D}from"./Layouts.vue.d17mTwCx.js";import{g as P,r as a,q as O,v as Y,x as I,y as R,o as r,c as _,a as l,z as b,m as s,b as u,w as E,F as A,A as L,j as F,B as M,C as U,h as G,i as J,s as X,D as Z,n as C,k as ee,E as te}from"./entry.Ddy3dMw-.js";import{_ as se}from"./Contact.vue.CEV6ESl6.js";import{_ as ne}from"./FullWidth.vue.BnnvC3aM.js";import{_ as ae}from"./Page.CmHHJXlr.js";import{k as oe}from"./image.Ca_qe83Z.js";const le=P({__name:"Circle",props:{wrapperSize:{},size:{},borderSize:{},translate:{}},setup(h){const t=h,i=a(!1),o=O({translate:t.wrapperSize*2}),p=Y(o,{stiffness:270,damping:20,mass:1});return I(()=>t.translate,()=>{o.translate=t.translate}),R(async()=>{await new Promise(n=>setTimeout(n,100)),o.translate=t.translate,i.value=!0}),(n,e)=>(r(),_("div",{class:"absolute flex items-center justify-center ease-in-out",style:b({width:`${n.wrapperSize}px`,height:`${n.wrapperSize}px`,transform:`translateY(${s(i)?s(p).translate:n.wrapperSize*2}px)`})},[l("div",{class:"flex items-center justify-center rounded-full",style:b({width:`${n.size}px`,height:`${n.size}px`,border:`${n.borderSize}px solid black`})},null,4)],4))}}),ie=P({__name:"Circles",props:{currentIndex:{},size:{},width:{},height:{},padding:{}},setup(h){const t=h,i=a(3),o=a(t.size-t.padding),p=a(o.value/i.value);I(()=>t.size,()=>{o.value=t.size-t.padding,p.value=o.value/i.value});const n=e=>e<=t.currentIndex?0:t.size*2;return(e,g)=>{const z=le,c=M;return r(),_("div",{class:"relative flex items-center justify-center h-full rounded-xl verflow-hidden",style:b({width:`${e.width}px`,height:`${e.height}px`})},[u(c,null,{default:E(()=>[(r(!0),_(A,null,L(s(i),d=>(r(),F(z,{key:d,"wrapper-size":s(o),size:s(o)-(d-1)*s(p),"border-size":s(p)/4,translate:n(d-1)},null,8,["wrapper-size","size","border-size","translate"]))),128))]),_:1})],4)}}}),re={...U,onlineBlocks:"page.onlineBlocks.toBlocks",offlineBlocks:"page.offlineBlocks.toBlocks",onSiteBlocks:"page.onSiteBlocks.toBlocks",images:{query:"page.images",select:oe},layouts:"page.layout.toLayouts",topLayouts:"page.topLayout.toLayouts",contact:{query:'page("about")',select:{address:"page.address.kt",email:"page.email",phone:"page.phone",emails:"page.emails.toStructure"}}};function ce(h){return{query:`page("${h}")`,select:re}}const ue={key:0,class:"pb-gap pt-gap md:hidden"},pe={key:1,class:"z-10 md:grid w-full grid-cols-2 gap-gap pb-[25vh] hidden"},de={class:"sticky top-0 flex items-center justify-center w-full h-screen"},fe=["data-index"],we=P({__name:"about",async setup(h){var j;let t,i;const o=G(),{data:p,error:n}=([t,i]=J(()=>ee(ce(o.path))),t=await t,i(),t);if(n.value)throw n.value;const e=(j=p.value)==null?void 0:j.result;X(e);const g=a(null),z=[e==null?void 0:e.onlineBlocks,e==null?void 0:e.offlineBlocks,e==null?void 0:e.onSiteBlocks],c=a(0),d=a(0),f=a(null),x=a(),T=a(null),W=a(1),Q=a(0),q=()=>{if(g.value&&(c.value=g.value.clientWidth),x.value=window.innerWidth>768,f.value){const y=f.value[f.value.length-1];y&&(Q.value=y.offsetHeight)}},H=()=>{var y;if(g.value&&(c.value=g.value.clientWidth),f.value){f.value.forEach(m=>{const v=parseInt(m.dataset.index??"0");window.innerWidth>768?m.getBoundingClientRect().top<window.innerHeight/4&&(d.value=v):m.getBoundingClientRect().top<10&&(d.value=v)});const B=window.scrollY,w=(((y=T.value)==null?void 0:y.offsetTop)??0)+window.innerHeight/2-100;if(B+window.innerHeight>w){const v=B+window.innerHeight-w,S=te(v,0,100,1,0);W.value=S}else W.value=1}requestAnimationFrame(H)};return R(async()=>{window.addEventListener("resize",q),await Z(),q(),H()}),(y,B)=>{const w=V,m=D,v=ie,S=se,K=ne,N=ae;return s(e)?(r(),F(N,{key:0},{default:E(()=>[l("section",null,[u(w,{layouts:s(e).topLayouts??[],transitions:!0},null,8,["layouts"])]),s(x)?C("",!0):(r(),_("div",ue,[(r(),_(A,null,L(z,($,k)=>l("div",{ref_for:!0,ref_key:"blocksEls",ref:f,key:k,class:"mb-gap"},[u(m,{blocks:$??[]},null,8,["blocks"])])),64))])),s(x)?(r(),_("div",pe,[l("div",null,[l("div",de,[l("div",{ref_key:"circleEl",ref:g,class:"w-full"},[u(v,{"current-index":s(d),size:s(c),padding:s(c)/4,width:s(c),height:s(c)},null,8,["current-index","size","padding","width","height"])],512)])]),l("div",null,[(r(),_(A,null,L(z,($,k)=>l("div",{key:k,class:"flex",style:b({height:"100vh"})},[l("div",{ref_for:!0,ref_key:"blocksEls",ref:f,class:"sticky top-0 flex items-center h-screen","data-index":k},[u(m,{blocks:$??[]},null,8,["blocks"])],8,fe)],4)),64))])])):C("",!0),l("section",{ref_key:"content",ref:T},[u(w,{layouts:s(e).layouts??[],transitions:!0},null,8,["layouts"])],512),u(K,null,{default:E(()=>[u(S,{class:"bg-white",inverted:!0})]),_:1})]),_:1})):C("",!0)}}});export{we as default};