PageSourceSearch

https://europe.analysisgroup.com/scripts/footer-block-0bb188bf.js

js analysisgroup.com collected 2026-10-01 10:14:27 UTC 2,958 bytes, 2 lines download raw bytes

1var w=Object.defineProperty;var x=(r,a,e)=>a in r?w(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e;var y=(r,a,e)=>(x(r,typeof a!="symbol"?a+"":a,e),e);import{C as L}from"./vendor-a6c4fc13.js";import{i as $,m as b}from"./utils-3a9d2551.js";import{i as E,a as u}from"./index-4af11e01.js";class B extends L{constructor(e){super(e);y(this,"isReducedMotion");y(this,"isTabletLandscape");this.isReducedMotion=$(e),this.isTabletLandscape=b({from:"tabletLandscape"}),this.setupDefaults_()}setupDefaults_(){this.dom={$el:this.el,$container:this.el.querySelector(".footer-block__content"),$footerHeading:this.el.querySelector(".footer-heading"),$headingLines:[],$form:this.el.querySelector(".footer-form__form"),$arrowButton:this.el.querySelector(".footer-cta__arrow-btn"),$footerCta:this.el.querySelector(".footer-cta"),$footerForm:this.el.querySelector(".footer-form")},this.wrapLines(),this.init()}wrapLines(){var g,C,_;const{$footerHeading:e}=this.dom;if(!e)return;const o=e;if(!((g=o.textContent)!=null&&g.trim()))return;const i=o.textContent,t=o.cloneNode();t.style.position="absolute",t.style.visibility="hidden",t.style.whiteSpace="normal",t.style.width=o.offsetWidth+"px";const l=window.getComputedStyle(o);t.style.font=l.font,t.style.lineHeight=l.lineHeight,t.style.letterSpacing=l.letterSpacing,t.textContent="",(C=o.parentElement)==null||C.appendChild(t);const m=[];for(const d of i){const n=document.createElement("span");n.textContent=d,t.appendChild(n),m.push(n)}const f=[];let c=null,s=[];for(const d of m){const n=d.offsetTop;c===null&&(c=n),n!==c&&(f.push(s),s=[],c=n),s.push(d)}s.length&&f.push(s);const p=document.createElement("h2");p.className="footer-heading footer-form__heading";for(const d of f){const n=document.createElement("div");n.className="footer-form__heading-line";const h=document.createElement("span");h.className="footer-form__heading-line-text",h.textContent=d.map(S=>S.textContent).join(""),n.appendChild(h),p.appendChild(n)}(_=o.parentElement)==null||_.replaceChild(p,o),t.remove(),this.dom.$headingLines=p.querySelectorAll(".footer-form__heading-line-text")}init(){const{$el:e,$container:o,$headingLines:i,$form:t,$arrowButton:l,$footerForm:m,$footerCta:f}=this.dom;if(this.isReducedMotion||!e||!o){e==null||e.classList.add("module--reduced-motion");return}if(!f&&!m){e==null||e.classList.add("module--reduced-motion");return}E(e,()=>{u(o,{transform:["translateY(50%)","translateY(0)"]},{duration:.75,ease:"easeInOut"}).then(()=>{i==null||i.forEach((c,s)=>{u(c,{transform:["translateY(100%)","translateY(0)"],opacity:[0,1]},{duration:.5,ease:"easeInOut",delay:.5+s*.25}).then(()=>{t&&s===i.length-1&&u(t,{opacity:[0,1],insetBlockEnd:["-40px","0"]},{duration:.5,ease:"easeInOut"}),l&&s===i.length-1&&u(l,{transform:["scale(0.2)","scale(1)"],opacity:[0,1]},{duration:.5,ease:"easeInOut"})})})})},{amount:this.isTabletLandscape?.1:.05})}}export{B as default};
2//# sourceMappingURL=footer-block-0bb188bf.js.map

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.