1import{h as Q,e as f,c as h,d as v,s as B,t as C,k as j,A as be,_ as pe,p as N,O as re,o as D,F as V,r as K,l as P,x as xe,Q as X,g as w,y as ke,f as fe,P as ve,v as Se,I as x,R as je,T as me,U as Pe,V as Te,W as Le,X as Ce,Y as We,Z as ee,$ as Ie,a0 as ge,a1 as z,a2 as U,a3 as M,i as $e,u as Ae,w as Ee,b as se,a4 as Me,m as Ve,z as De}from"./CcYxcaA2.js";import{_ as qe,a as He,b as Oe,c as Ne,d as Re}from"./58HYua-T.js";import{u as ie}from"./OBKRHLP3.js";const Be={class:"WorksIntro grid grid-cols-[1fr_100px] md:grid-cols-2 items-start wrapper py-4"},ze={class:"h2 uppercase md:max-w-[800px] lg:indent-[110px]"},Fe={class:"hidden lg:block"},Xe={__name:"WorksIntro",props:["data"],setup(e){const{locale:t}=Q();function o(){document.querySelector(".WorksAll").dataset.active=="true"?(document.querySelector(".worksIntro_btn").classList.remove("on"),document.querySelector(".worksIntro_btn").firstChild.textContent=t.value!="fr-fr"?"Work list":"Liste projets",document.querySelector(".WorksAll").dataset.active=!1,document.querySelector(".header").dataset.active=!1):(document.querySelector(".WorksAll").dataset.active=!0,document.querySelector(".header").dataset.active=!0,document.querySelector(".worksIntro_btn").classList.add("on"),document.querySelector(".worksIntro_btn").firstChild.textContent=t.value!="fr-fr"?"Close":"Fermer")}return(a,r)=>(f(),h("section",Be,[v("h1",ze,[B(C(e.data.titre_page.slice(0,e.data.titre_page.lastIndexOf(" ",Math.ceil(e.data.titre_page.length/2))))+" ",1),r[0]||(r[0]=v("br",null,null,-1)),r[1]||(r[1]=v("div",{class:"snippet_circle bg-rose w-[30px] h-[30px] lg:w-[65px] lg:h-[65px] rounded-full align-baseline inline-block"},null,-1)),B(" "+C(e.data.titre_page.slice(e.data.titre_page.lastIndexOf(" ",Math.ceil(e.data.titre_page.length/2)))),1)]),v("button",{onClick:o,class:"group worksIntro_btn fixed z-40 h6 uppercase bg-[#f3f0f0]/80 backdrop-blur-xl rounded-[10px] inline-block justify-self-end top-[20px] p-3.5 lg:p-[19px] gap-2 hover:lg:bg-black/80 hover:lg:text-white aspect-square lg:aspect-auto flex right-5 [&.on]:bg-black/80 [&.on]:text-white"},[v("span",Fe,C(j(t)!="fr-fr"?"Work list":"Liste projets"),1),r[2]||(r[2]=be('<svg class="group-[.on]:hidden" width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0.5H4V4.5H0V0.5Z" fill="currentColor"></path><path d="M7 0.5H11V4.5H7V0.5Z" fill="currentColor"></path><path d="M0 7.5H4V11.5H0V7.5Z" fill="currentColor"></path><path d="M7 7.5H11V11.5H7V7.5Z" fill="currentColor"></path></svg><svg class="group-[:not(.on)]:hidden" width="11" height="11" viewB
1ox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="1.35355" y1="1.14645" x2="10.3536" y2="10.1464" stroke="white"></line><line x1="1.14645" y1="10.1464" x2="10.1464" y2="1.14645" stroke="white"></line></svg>',2))])]))}},Ye={key:0,"data-active":"false",class:"group/section WorksAll fixed top-0 left-0 w-full h-full bg-0 z-[11] bg-white data-[active='false']:translate-y-full duration-[300ms] overflow-hidden pb-[55px]"},Ze={class:"h-full overflow-scroll p-5"},Ge={class:"WorksAll_title mb-5 overflow-hidden"},Ue={class:"grid grid-cols-[80px_1fr_1fr] md:grid-cols-[160px_1fr] items-center uppercase font-semibold lg:pt-2"},Je={class:"h3"},Qe={class:"h3"},Ke={class:"grid uppercase h3"},et={class:"text-[20px] lg:text-[44px]"},tt={class:"lg:opacity-0 group-hover:lg:opacity-100"},ot={__name:"WorksAll",props:["data"],setup(e){N.registerPlugin(re);const{locale:t}=Q();D(()=>{if("ontouchstart"in window||navigator.maxTouchPoints>0)return;re.create({target:window,type:"pointer",onMove:c=>{n.x=c.x,n.y=c.y}});const n={x:0,y:0};var p=document.querySelector("#workListDesktopThumb");const l={x:window.innerWidth/2,y:window.innerHeight/2},i=.15,s=N.quickSetter(p,"x","px"),d=N.quickSetter(p,"y","px");N.ticker.add(()=>{const c=1-Math.pow(1-i,N.ticker.deltaRatio());l.x+=(n.x-l.x)*c,l.y+=(n.y-l.y)*c,s(l.x),d(l.y)})});function o(){document.querySelector(".worksIntro_btn").classList.remove("bg-jaune"),document.querySelector(".worksIntro_btn").firstChild.textContent=t.value!="fr-fr"?"Work list":"Liste projets",document.querySelector(".WorksAll").dataset.active=!1,document.querySelector(".header").dataset.active=!1}function a(n){document.querySelector("#workListDesktopThumb").style.opacity=1,document.querySelector("#workListDesktopThumb").src=n.target.dataset.thumb}function r(){document.querySelector("#workListDesktopThumb").style.opacity=0}return(n,p)=>{const l=ke;return e.data?(f(),h("div",Ye,[v("div",Ze,[v("div",Ge,[v("div",Ue,[v("span",Je,C(j(t).value!="fr-fr"?"All":"Tous"),1),v("span",Qe,C(e.data.filter(i=>i.projet.data).length),1)])]),p[2]||(p[2]=v("img",{id:"workListDesktopThumb",class:"hidden lg:block fixed top-[-70px] left-[25px] opacity-0 rounded z-50 pointer-events-none w-[250px] aspect-[16/9] object-cover"},null,-1)),v("div",Ke,[(f(!0),h(V,null,K(e.data,i=>(f(),h(V,null,[i.projet&&i.projet.data?(f(),P(l,{key:0,to:n.localePath("works")+"#"+i.projet.uid,class:"block w-full group relative before:absolute before:top-0 before:block before:content-[''] before:w-full before:h-[1px] before:bg-black py-3 lg:py-5 text-black/20 hover:lg:text-black/100",onClick:p[0]||(p[0]=s=>o()),onMouseenter:a,onMouseleave:r,"data-thumb":i.projet.data.thumbnail.url+"&width=400"},{default:xe(()=>[v("div",et,[B(C(i.projet.data.titre)+" ",1),v("div",{class:"snippet_circle bg-bleu w-[24px] h-[24px] lg:w-[32px] lg:h-[32px] rounded-full relative top-[1px] hidden lg:inline-block mx-2.5",style:X("background:"+i.projet.data.couleur)},null,4),p[1]||(p[1]=B()),v("span",tt,C(i.projet.data.client),1)])]),_:2},1032,["to","data-thumb"])):w("",!0)],64))),256))])])])):w("",!0)}}},nt=pe(ot,[["__scopeId","data-v-286bbb2d"]]),at={class:"ProjetHeaderDefault mt-[60px] md:mt-[120px]"},lt={class:"h6 uppercase"},rt={__name:"ProjetHeaderDefault",props:["data"],setup(e){return(t,o)=>{const a=ve;return f(),h("section",at,[v("h3",lt,C(e.data.soustitre),1),fe(a,{field:e.data.description,class:"md:max-w-[435px] mt-[15px] mb-5"},null,8,["field"])])}}},st={class:"ProjetHeaderMedia grid md:grid-cols-2 mt-6"},it={key:0},ct={key:0,class:"h6 uppercase mb-[15px]"},ut={key:1,class:"relative group/video"},dt=["data-loopstart","data-loopend"],pt=["src"],ft={key:2,class:"relative group/video"},vt=["src"],mt={__name:"ProjetHeaderMedia",props:["data"],setup(e){function t(o){o.target.parentNode.classList.contains("is-playing")?(o.target.parentNode.classList.remove("is-playing"),o.target.muted=!0,o.target.volume=0):(o.target.parentNode.classList.add("is-playing"),o.target.currentTime=0,o.target.muted=!1,o.target.volume=1)}return(o,a)=>{var p,l,i,s;const r=ve,n=Se;return f(),h("section",st,[e.data.soustitre!=null||e.data.description.text!=null?(f(),h("div",it,[e.data.soustitre?(f(),h("h3",ct,C(e.data.soustitre),1)):w("",!0),e.data.description?(f(),P(r,{key:1,field:e.data.description,class:"md:max-w-[435px] mb-5"},null,8,["field"])):w("",!0)])):w("",!0),e.data.video.url!=null&&e.data.intervalle_preview!=null?(f(),h("div",ut,[e.data.video.url?(f(),h("video",{key:0,"data-tooltip":"play","data-loopstart":(p=e.data.intervalle_preview_gauche)==null?void 0:p.split("-")[0],"data-loopend":(l=e.data.intervalle_preview_gauche)==null?void 0:l.split("-")[1],onClick:a[0]||(a[0]=d=>t(d)),muted:"",autoplay:"",playsinline:"",loop:"",preload:"metadata",class:"desktop"},[v("source",{src:e.data.video.url+"#t="+((i=e.data.intervalle_preview_gauche)==null?void 0:i.split("-")[0])+"-"+((s=e.data.intervalle_preview_gauche)==null?void 0:s.split("-")[1]),type:"video/mp4"},null,8,pt)],8,dt)):w("",!0),a[2]||(a[2]=v("div",{class:"lg:hidden absolute left-0 bottom-0 text-white px-3 py-2"},[v("span",{class:"group-[:not(.is-playing)]/video:hidden"},"Pause"),v("span",{class:"group-[.is-playing]/video:hidden"},"Play")],-1))])):e.data.video.url!=null?(f(),h("div",ft,[e.data.video.url?(f(),h("video",{key:0,"data-tooltip":"play","data-loopstart":1,"data-loopend":4,onClick:a[1]||(a[1]=d=>t(d)),muted:"",autoplay:"",playsinline:"",loop:"",preload:"metadata",class:"desktop"},[v("source",{src:e.data.video.url+"#t=1-4",type:"video/mp4"},null,8,vt)])):w("",!0),a[3]||(a[3]=v("div",{class:"lg:hidden absolute left-0 bottom-0 text-white px-3 py-2"},[v("span",{class:"group-[:not(.is-playing)]/video:hidden"},"Pause"),v("span",{class:"group-[.is-playing]/video:hidden"},"Play")],-1))])):e.data.photo?(f(),P(n,{key:3,field:e.data.photo,alt:e.data.photo,width:"1400",height:"600",class:"rounded-sm block w-full h-full aspect-[600/670] object-cover",loading:"lazy"},null,8,["field","alt"])):w("",!0)])}}},gt=pe(mt,[["__scopeId","data-v-3b127f2e"]]),ht=["id"],yt={class:"WorksPage_head sticky content-center max-lg:min-h-20 top-0 lg:pt-5 pr-16 lg:pr-0 bg-white py-3.5 lg:py-5 z-10"},_t={key:0,class:"text-[20px] lg:text-[44px] font-semibold uppercase inline"},wt={class:"max-lg:hidden inline-block pr-12"},bt={key:1,class:"text-[20px] lg:text-[44px] font-semibold uppercase opacity-30"},xt={__name:"WorksPage",props:["page","index"],setup(e){const t=x(!1),o=x(null);return D(()=>
1{if(typeof window<"u"&&o.value){const r={root:null,rootMargin:"500px 0px 500px 0px",threshold:0},n=l=>{l.forEach(i=>{i.isIntersecting?t.value=!0:t.value=!1})};new IntersectionObserver(n,r).observe(o.value)}if(document.querySelector("video:not(.no)")){Array.prototype.forEach.call(document.querySelectorAll("video:not(.no)"),(r,n)=>{je(()=>{r.parentNode.classList.contains("is-playing")||r.currentTime>r.dataset.loopend&&(r.currentTime=r.dataset.loopstart)},500)});var a=new IntersectionObserver(function(r){r.map(n=>{!n.isIntersecting&&n.target.parentNode.classList.contains("is-playing")&&(n.target.parentNode.classList.remove("is-playing"),n.target.muted=!0,n.target.volume=0)})});Array.prototype.forEach.call(document.querySelectorAll("video"),function(r,n){a.observe(r)})}}),(a,r)=>{const n=rt,p=gt,l=qe,i=He,s=Oe,d=Ne,c=Re;return f(),h("section",{ref_key:"sectionRef",ref:o,style:X({visibility:j(t)?"visible":"hidden"}),id:e.page.uid,class:"WorksPage wrapper bg-white border-t border-black"},[v("div",yt,[e.page.data.titre?(f(),h("h2",_t,[v("span",wt,C(e.index+1<10?"0"+(e.index+1):e.index+1),1),B(" "+C(e.page.data.titre),1)])):w("",!0),v("div",{class:"snippet_circle bg-bleu w-[17px] h-[17px] lg:w-[32px] lg:h-[32px] rounded-full relative top-[1px] lg:top-[2px] inline-block mx-2 lg:mx-2.5",style:X("background:"+e.page.data.couleur)},null,4),e.page.data.client?(f(),h("span",bt,C(e.page.data.client),1)):w("",!0)]),e.page.data.slices?(f(!0),h(V,{key:0},K(e.page.data.slices,u=>(f(),h(V,null,[u.slice_type=="header"&&u.variation=="default"?(f(),P(n,{key:0,data:u.primary},null,8,["data"])):u.slice_type=="header"&&u.variation=="headerWMedia"?(f(),P(p,{key:1,data:u.primary},null,8,["data"])):w("",!0),u.slice_type=="projet_contenu"&&u.variation=="default"?(f(),P(l,{key:2,data:u.primary},null,8,["data"])):w("",!0),u.slice_type=="projet_contenu"&&u.variation=="projetContenuW2Cols"?(f(),P(i,{key:3,data:u},null,8,["data"])):u.slice_type=="projet_contenu"&&u.variation=="projetContenuW3Cols"?(f(),P(s,{key:4,data:u.primary},null,8,["data"])):u.slice_type=="projet_contenu"&&u.variation=="projetContenuWOptionGap"?(f(),P(d,{key:5,data:u},null,8,["data"])):u.slice_type=="projet_contenu"&&u.variation=="projetContenuW2Cols4060"?(f(),P(c,{key:6,data:u},null,8,["data"])):w("",!0)],64))),256)):w("",!0)],12,ht)}}},kt={id:"PopupVideo",class:"bg-black z-50 fixed inset-0 [&:not(.on)]:hidden"},St={class:"relative aspect-[16/9] left-5 w-[calc(100vw-40px)] h-auto top-[50vh] max-lg:translate-y-[-50%] lg:left-[calc(50vw-62vh)] lg:w-[124vh] lg:h-[70vh] lg:top-[15vh]"},jt={class:"relative w-full h-full"},Pt={__name:"PopupVideo",setup(e){me("popup");const t=x(0),o=x(null);D(()=>{window.addEventListener("keyup",p)});const a=()=>{const s=o.value;s&&(t.value=s.currentTime/s.duration*100)},r=()=>{t.value=0},n=s=>{const d=o.value,c=s.target.getBoundingClientRect(),g=(s.clientX-c.left)/c.width*d.duration;d.currentTime=g};function p(s){s.code=="Escape"&&l()}function l(){document.querySelector("#PopupVideo").classList.remove("on"),document.querySelector("#PopupVideo video").pause()}function i(){document.querySelector("#PopupVideo_here video").paused?document.querySelector("#PopupVideo_here video").play():document.querySelector("#PopupVideo_here video").pause()}return(s,d)=>(f(),h("section",kt,[v("div",{class:"absolute inset-0",onClick:l,"data-tooltip":"pause"}),v("div",St,[v("div",jt,[v("div",{id:"PopupVideo_here",onClick:i,class:"w-full h-full"},[v("video",{class:"no",ref_key:"videoPlayer",ref:o,onTimeupdate:a,onLoadedmetadata:r},null,544)]),v("div",{onClick:d[0]||(d[0]=c=>n(c)),class:"progress-container absolute bottom-4 left-5 right-5 h-1 bg-white/20"},[v("div",{style:X({width:`${j(t)}%`}),class:"absolute inset-0 w-1/2 h-full bg-white/100"},null,4)])])])]))}};function te(e){return Pe()?(Te(e),!0):!1}function b(e){return typeof e=="function"?e():j(e)}const he=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Tt=e=>e!=null,Lt=Object.prototype.toString,Ct=e=>Lt.call(e)==="[object Object]",I=()=>{},ce=Wt();function Wt(){var e,t;return he&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ye(e,t){function o(...a){return new Promise((r,n)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(r).catch(n)})}return o}function It(e,t={}){let o,a,r=I;const n=l=>{clearTimeout(l),r(),r=I};return l=>{const i=b(e),s=b(t.maxWait);return o&&n(o),i<=0||s!==void 0&&s<=0?(a&&(n(a),a=null),Promise.resolve(l())):new Promise((d,c)=>
1{r=t.rejectOnCancel?c:d,s&&!a&&(a=setTimeout(()=>{o&&n(o),a=null,d(l())},s)),o=setTimeout(()=>{a&&n(a),a=null,d(l())},i)})}}function $t(...e){let t=0,o,a=!0,r=I,n,p,l,i,s;!Ie(e[0])&&typeof e[0]=="object"?{delay:p,trailing:l=!0,leading:i=!0,rejectOnCancel:s=!1}=e[0]:[p,l=!0,i=!0,s=!1]=e;const d=()=>{o&&(clearTimeout(o),o=void 0,r(),r=I)};return u=>{const g=b(p),y=Date.now()-t,T=()=>n=u();return d(),g<=0?(t=Date.now(),T()):(y>g&&(i||!a)?(t=Date.now(),T()):l&&(n=new Promise((k,_)=>{r=s?_:k,o=setTimeout(()=>{t=Date.now(),a=!0,k(T()),d()},Math.max(0,g-y))})),!i&&!o&&(o=setTimeout(()=>a=!0,g)),a=!1,n)}}const At={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Et(e){return ge()}function Mt(...e){if(e.length!==1)return Le(...e);const t=e[0];return typeof t=="function"?Ce(We(()=>({get:t,set:I}))):x(t)}function Vt(e,t=200,o={}){return ye(It(t,o),e)}function Dt(e,t=200,o=!1,a=!0,r=!1){return ye($t(t,o,a,r),e)}function qt(e,t=!0,o){Et()?D(e,o):t?e():ee(e)}function R(e){var t;const o=b(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Y=he?window:void 0;function J(...e){let t,o,a,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,a,r]=e,t=Y):[t,o,a,r]=e,!t)return I;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const n=[],p=()=>{n.forEach(d=>d()),n.length=0},l=(d,c,u,g)=>(d.addEventListener(c,u,g),()=>d.removeEventListener(c,u,g)),i=z(()=>[R(t),b(r)],([d,c])=>{if(p(),!d)return;const u=Ct(c)?{...c}:c;n.push(...o.flatMap(g=>a.map(y=>l(d,g,y,u))))},{immediate:!0,flush:"post"}),s=()=>{i(),p()};return te(s),s}function Ht(){const e=x(!1),t=ge();return t&&D(()=>{e.value=!0},t),e}function Ot(e){const t=Ht();return M(()=>(t.value,!!e()))}function Nt(e,t,o={}){const{root:a,rootMargin:r="0px",threshold:n=.1,window:p=Y,immediate:l=!0}=o,i=Ot(()=>p&&"IntersectionObserver"in p),s=M(()=>{const y=b(e);return(Array.isArray(y)?y:[y]).map(R).filter(Tt)});let d=I;const c=x(l),u=i.value?z(()=>[s.value,R(a),c.value],([y,T])=>{if(d(),!c.value||!y.length)return;const k=new IntersectionObserver(t,{root:R(T),rootMargin:r,threshold:n});y.forEach(_=>_&&k.observe(_)),d=()=>{k.disconnect(),d=I}},{immediate:l,flush:"post"}):I,g=()=>{d(),u(),c.value=!1};return te(g),{isSupported:i,isActive:c,pause(){d(),c.value=!1},resume(){c.value=!0},stop:g}}function Rt(e,t={}){const{window:o=Y,scrollTarget:a,threshold:r=0}=t,n=x(!1);return Nt(e,p=>{let l=n.value,i=0;for(const s of p)s.time>=i&&(i=s.time,l=s.isIntersecting);n.value=l},{root:a,window:o,threshold:r}),n}const ue=1;function Bt(e,t={}){const{throttle:o=0,idle:a=200,onStop:r=I,onScroll:n=I,offset:p={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:s=Y,onError:d=m=>{console.error(m)}}=t,c=x(0),u=x(0),g=M({get(){return c.value},set(m){T(m,void 0)}}),y=M({get(){return u.value},set(m){T(void 0,m)}});function T(m,A){var L,q,H,$;if(!s)return;const W=b(e);if(!W)return;(H=W instanceof Document?s.document.body:W)==null||H.scrollTo({top:(L=b(A))!=null?L:y.value,left:(q=b(m))!=null?q:g.value,behavior:b(i)});const O=(($=W==null?void 0:W.document)==null?void 0:$.documentElement)||(W==null?void 0:W.documentElement)||W;g!=null&&(c.value=O.scrollLeft),y!=null&&(u.value=O.scrollTop)}const k=x(!1),_=U({left:!0,right:!1,top:!0,bottom:!1}),S=U({left:!1,right:!1,top:!1,bottom:!1}),oe=m=>{k.value&&(k.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,r(m))},we=Vt(oe,o+a),Z=m=>{var A;if(!s)return;const L=((A=m==null?void 0:m.document)==null?void 0:A.documentElement)||(m==null?void 0:m.documentElement)||R(m),{display:q,flexDirection:H}=getComputedStyle(L),$=L.scrollLeft;S.left=$<c.value,S.right=$>c.value;const W=Math.abs($)<=(p.left||0),O=Math.abs($)+L.clientWidth>=L.scrollWidth-(p.right||0)-ue;q==="flex"&&H==="row-reverse"?(_.left=O,_.right=W):(_.left=W,_.right=O),c.value=$;let E=L.scrollTop;m===s.document&&!E&&(E=s.document.body.scrollTop),S.top=E<u.value,S.bottom=E>u.value;const ae=Math.abs(E)<=(p.top||0),le=Math.abs(E)+L.clientHeight>=L.scrollHeight-(p.bottom||0)-ue;q==="flex"&&H==="column-reverse"?(_.top=le,_.bottom=ae):(_.top=ae,_.bottom=le),u.value=E},ne=m=>{var A;if(!s)return;const L=(A=m.target.documentElement)!=null?A:m.target;Z(L),k.value=!0,we(m),n(m)};return J(e,"scroll",o?Dt(ne,o,!0,!1):ne,l),qt(()=>{try{const m=b(e);
1if(!m)return;Z(m)}catch(m){d(m)}}),J(e,"scrollend",oe,l),{x:g,y,isScrolling:k,arrivedState:_,directions:S,measure(){const m=b(e);s&&m&&Z(m)}}}function F(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function de(e,t,o={}){var a;const{direction:r="bottom",interval:n=100,canLoadMore:p=()=>!0}=o,l=U(Bt(e,{...o,offset:{[r]:(a=o.distance)!=null?a:0,...o.offset}})),i=x(),s=M(()=>!!i.value),d=M(()=>F(b(e))),c=Rt(d);function u(){if(l.measure(),!d.value||!c.value||!p(d.value))return;const{scrollHeight:g,clientHeight:y,scrollWidth:T,clientWidth:k}=d.value,_=r==="bottom"||r==="top"?g<=y:T<=k;(l.arrivedState[r]||_)&&(i.value||(i.value=Promise.all([t(l),new Promise(S=>setTimeout(S,n))]).finally(()=>{i.value=null,ee(()=>u())})))}return z(()=>[l.arrivedState[r],c.value],u,{immediate:!0}),{isLoading:s}}const zt={[At.mounted](e,t){typeof t.value=="function"?de(e,t.value):de(e,...t.value)}};function _e(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:_e(o)}}function Ft(e){const t=e||window.event,o=t.target;return _e(o)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const G=new WeakMap;function Xt(e,t=!1){const o=x(t);let a=null,r="";z(Mt(e),l=>{const i=F(b(l));if(i){const s=i;if(G.get(s)||G.set(s,s.style.overflow),s.style.overflow!=="hidden"&&(r=s.style.overflow),s.style.overflow==="hidden")return o.value=!0;if(o.value)return s.style.overflow="hidden"}},{immediate:!0});const n=()=>{const l=F(b(e));!l||o.value||(ce&&(a=J(l,"touchmove",i=>{Ft(i)},{passive:!1})),l.style.overflow="hidden",o.value=!0)},p=()=>{const l=F(b(e));!l||!o.value||(ce&&(a==null||a()),l.style.overflow=r,G.delete(l),o.value=!1)};return te(p),M({get(){return o.value},set(l){l?n():p()}})}function Yt(){let e=!1;const t=x(!1);return(o,a)=>{if(t.value=a.value,e)return;e=!0;const r=Xt(o,a.value);z(t,n=>r.value=n)}}Yt();const Jt={__name:"index",async setup(e){let t,o;me("popup",()=>!1);const{locale:a}=Q();$e();const{client:r}=Ae(),{data:n}=([t,o]=Ee(async()=>Ve("works_"+a.value,async()=>{const c=await r.getSingle("works",{fetchLinks:["projet.thumbnail,projet.titre,projet.couleur,projet.client,projet.slices"],lang:a.value});if(c)return{page:c};throw De({statusCode:404,message:"Page not found"})},"$H7JrYyj4Uw")),t=await t,o(),t);a.value=="fr"?(se({htmlAttrs:{lang:"fr"},bodyAttrs:{class:"works"}}),ie({title:n.value.page.data.meta_title,ogTitle:n.value.page.data.meta_title,description:n.value.page.data.meta_description,ogDescription:n.value.page.data.meta_description,ogImage:"/cover.jpg",twitterCard:"summary_large_image"})):(se({htmlAttrs:{lang:"en"},bodyAttrs:{class:"works"}}),ie({title:n.value.page.data.meta_title,ogTitle:n.value.page.data.meta_title,description:n.value.page.data.meta_description,ogDescription:n.value.page.data.meta_description,ogImage:"/cover.jpg",twitterCard:"summary_large_image"}));const p=async()=>{if(await ee(),window.location.hash){const c=window.location.hash.substring(1),u=document.getElementById(c);u&&u.scrollIntoView({behavior:"smooth"})}},l=x(1),i=n.value.page.data.projets.slice(),s=x([i[0]]);function d(){const c=i[l.value];if(!c){p(),l.value++;return}s.value.push(c),l.value++}return D(()=>{document.addEventListener("scroll",()=>{document.querySelectorAll("video").forEach((c,u)=>{const g=c.getBoundingClientRect();g.top<window.innerHeight&&g.bottom>0?c.play():c.pause()})})}),(c,u)=>{const g=Xe,y=nt,T=xt,k=Pt;return f(),h("div",null,[j(n)?(f(),P(g,{key:0,data:j(n).page.data},null,8,["data"])):w("",!0),j(n).page.data.projets?(f(),P(y,{key:1,data:j(n).page.data.projets},null,8,["data"])):w("",!0),Me((f(),h("div",null,[(f(!0),h(V,null,K(j(s),(_,S)=>(f(),h(V,null,[_.projet.data?(f(),P(T,{key:0,page:_.projet,index:S},null,8,["page","index"])):w("",!0)],64))),256))])),[[j(zt),[d,{distance:10,canLoadMore:()=>j(l)<=j(i).length}]]]),fe(k)])}}};export{Jt 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.