1import{d as N,ah as T,ai as q,u as V,v as j,aq as z,ar as f,as as F,j as l,A as $,g as b,Y as O,n as P,x as i,o as t,ay as C,I as y,F as L,r as W,_ as U,i as R,f as Y,an as G,k as A}from"./CHz7KWu6.js";const H=["id"],J={key:0,class:"logos__text"},K=["textContent"],Q=N({name:"logos",__name:"logos-module",props:{module:{}},setup(a){const S=T(),{firstLoadComplete:p}=q(S),v=V(),c=i(null),_=i(null),u=i(null);let h=null;const r=i(4),d=A(()=>a.module.logos??[]),w=A(()=>Array(r.value).fill(d.value).flat());function x(){!p.value||!c.value||(h=v.$gsap.context(()=>{E()},c.value))}function B(){const o=_.value,e=u.value,s=d.value.length;if(!o||!e||!s)return 4;const n=r.value,k=e.scrollWidth/n;if(!k)return 4;const I=o.offsetWidth,m=Math.ceil(I/k*2),M=m%2===0?m:m+1;return Math.max(4,M+2)}async function D(){const o=u.value;if(!o)return;const e=B();e!==r.value&&(r.value=e,await f());const g=o.offsetWidth/250;v.$gsap.to(o,{xPercent:-50,ease:"none",duration:g>=4?g:4,repeat:-1,force3D:!0})}function E(){setTimeout(D,1e3)}return j(p,()=>{f(()=>{x()})}),z(()=>{f(()=>{x()})}),F(()=>{h?.revert?.()}),(o,e)=>(t(),l("section",{class:P(["logos module",[{"module--colour-inverted":a.module.colourIsInverted}]]),id:a.module.id,ref_key:"moduleRef",ref:c},[$(O,{class:"logos__container"},{default:b(()=>[e[0]||(C(-1,!0),(e[0]=y("div",{class:"logos__text-wrapper"},[a.module.textLines?.length?(t(),l("div",J,[(t(!0),l(L,null,W(a.module.textLines,(s,n)=>(t(),l("span",{class:"logos__text-line",key:n,textContent:U(s)},null,8,K))),128))])):R("",!0)])).cacheIndex=0,C(1),e[0]),d.value.length?(t(),l("div",{key:0,class:"logos__scroller",ref_key:"scroller",ref:_},[y("div",{class:"logos__logos",ref_key:"logosRef",ref:u},[(t(!0),l(L,null,W(w.value,(s,n)=>(t(),Y(G,{key:n,class:"logos__asset",asset:s.asset,"image-sizes":"120px","image-loading":"eager","img-attrs":{class:"logos__image",decoding:"async"},"picture-class":"logos__image-holder"},null,8,["asset"]))),128))],512)],512)):R("",!0)]),_:1})],10,H))}}),Z=Object.assign(Q,{__name:"LogosModule"});export{Z 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.