1class Accordion{constructor(){this.links=document.querySelectorAll(".accordion ul li a"),this.eventManagement()}eventManagement(){this.linkClick=this.openItem.bind(this),this.links.forEach(link=>{link.addEventListener("click",this.linkClick)})}openItem(e){e.preventDefault();const target=e.currentTarget;this.links.forEach(link=>{link.classList.remove("js-open")}),target.classList.contains("js-open")?target.classList.remove("js-open"):target.classList.add("js-open")}}if(document.querySelector(".accordion"))new Accordion;class BannerCheck{constructor(){this.header=document.querySelector(".siteHeader"),console.log(this.header),this.checkForSmallBanner()}checkForSmallBanner(){document.querySelector(".siteSmallBanner")?this.header.classList.add("siteHeader--grey"):this.header.classList.contains("siteHeader--grey")&&this.header.classList.remove("siteHeader--grey")}}const bannerCheck=new BannerCheck;class Compensation{constructor(){this.links=document.querySelectorAll(".compensation__link"),this.popups=document.querySelectorAll(".compensation__popup"),this.list=document.querySelector(".compensation__list"),this.goBack=document.querySelectorAll(".compensation__goBack"),this.eventManagement()}eventManagement(){this.manageLinks=this.showActiveLink.bind(this),this.manageBackClicks=this.showOptions.bind(this),this.links.forEach(link=>{link.addEventListener("click",this.manageLinks)}),this.goBack.forEach(back=>{back.addEventListener("click",this.manageBackClicks)})}showOptions(e){e.preventDefault(),console.log(e.currentTarget);const activeLinks=document.querySelectorAll(".compensation__link.js-active"),activePopups=document.querySelectorAll(".compensation__popup.js-active");this.list.classList.contains("js-active")&&this.list.classList.remove("js-active"),activeLinks.forEach(active=>{active.classList.remove("js-active")}),activePopups.forEach(active=>{active.classList.remove("js-active")})}showActiveLink(e){e.preventDefault();e.currentTarget;const clickedLink=e.currentTarget.dataset.popup,activeLinks=document.querySelectorAll(`.compensation__link--${clickedLink}`),target=document.querySelector(`#${clickedLink}`);this.popups.forEach(popup=>{popup.classList.remove("js-active")}),this.links.forEach(l=>{l.classList.remove("js-active")}),target.classList.contains("js-active")?target.classList.remove("js-active"):(target.classList.add("js-active"),this.list.classList.add("js-active")),activeLinks.forEach(active=>{active.classList.remove("js-active")}),activeLinks.forEach(a=>{a.classList.add("js-active")})}}if(document.querySelector(".compensation"))new Compensation;class InView{constructor(){this.textBlockForm=document.querySelector(".textBlockForm"),this.newsForm=document.querySelector(".newsIntro"),this.makeClaimForm=document.querySelector(".makeClaimForm--abs"),this.testimonialContent=document.querySelector(".testimonialContent"),this.eventManagement()}eventManagement(){const options={threshold:0,rootMargin:"-30px"};if(this.textBlockForm){new IntersectionObserver(function(entries,observer){entries.forEach(entry=>{if(!entry.isIntersecting)return;document.querySelector(".textBlockForm__formHolder").classList.add("js-inview"),observer.unobserve(entry.target)})},options).observe(this.textBlockForm)}if(this.testimonialContent){new IntersectionObserver(function(entries,observer){entries.forEach(entry=>{if(!entry.isIntersecting)return;console.log("uywefiugegr"),document.querySelector(".testimonialContent__testimonial").classList.add("js-inview"),observer.unobserve(entry.target)})},options).observe(this.testimonialContent)}if(this.newsForm){new IntersectionObserver(function(entries,observer){entries.forEach(entry=>{if(!entry.isIntersecting)return;document.querySelector(".newsIntro__formHolder").classList.add("js-inview"),observer.unobserve(entry.target)})},options).observe(this.newsForm)}if(this.makeClaimForm){new IntersectionObserver(function(entries,observer){entries.forEach(entry=>{if(!entry.isIntersecting)return;document.querySelector(".makeClaimForm__formHolder").classList.add("js-inview"),observer.unobserve(entry.target)})},options).observe(this.makeClaimForm)}}}if(document.querySelector(".textBlockForm")||document.querySelector(".testimonialContent")||document.querySelector(".newsIntro")||document.querySelector(".makeClaimForm--abs"))new InView;class LoadMoreNews{constructor(){this.loadMore=document.querySelector(".loadMore"),this.newsArticles=document.querySelectorAll(".newsArticles__listItem"),this.eventManagement()}eventManagement(){this.amountPosts,this.amountPosts=4,this.newsArticles.forEac
1h((article,index)=>{index<=this.amountPosts&&article.classList.add("js-show")}),this.loadMore.addEventListener("click",this.loadNews.bind(this))}loadNews(e){e.preventDefault(),this.amountPosts+=4,this.newsArticles.forEach((article,index)=>{index<=this.amountPosts&&article.classList.add("js-show")}),this.amountPosts>=this.newsArticles.length-1&&this.loadMore.classList.add("js-hide")}}if(document.querySelector(".newsArticles__listItem"))new LoadMoreNews;class LoadMoreQuotes{constructor(){this.loadMore=document.querySelector(".loadMore"),this.quoteBlocks=document.querySelectorAll(".quoteBlocks__listItem"),this.eventManagement()}eventManagement(){this.amountPosts,this.amountPosts=4,this.quoteBlocks.forEach((block,index)=>{index<=this.amountPosts&&block.classList.add("js-show")}),this.loadMore.addEventListener("click",this.loadQuotes.bind(this))}loadQuotes(e){e.preventDefault(),this.amountPosts+=4,this.quoteBlocks.forEach((block,index)=>{index<=this.amountPosts&&block.classList.add("js-show")}),this.amountPosts>=this.quoteBlocks.length-1?this.loadMore.classList.add("js-hide"):this.loadMore.classList.remove("js-hide")}}if(document.querySelector(".quoteBlocks__listItem"))new LoadMoreQuotes;class LoadMoreStudies{constructor(){this.loadMore=document.querySelector(".loadMore"),this.caseStudies=document.querySelectorAll(".caseStudies__listItem"),this.eventManagement()}eventManagement(){this.amountPosts,this.amountPosts=2,this.caseStudies.forEach((block,index)=>{index<=this.amountPosts&&block.classList.add("js-show")}),this.loadMore.addEventListener("click",this.loadQuotes.bind(this))}loadQuotes(e){e.preventDefault(),this.amountPosts+=2,this.caseStudies.forEach((study,index)=>{index<=this.amountPosts&&study.classList.add("js-show")}),this.amountPosts>=this.caseStudies.length-1?this.loadMore.classList.add("js-hide"):this.loadMore.classList.remove("js-hide")}}if(document.querySelector(".caseStudies__listItem"))new LoadMoreStudies;class MakeClaimLink{constructor(){this.link=document.querySelector(".siteFooter__makeClaim"),this.claimsForm=document.querySelector(".claimsForm"),this.claimsFormPosition=this.claimsForm.getBoundingClientRect().top+400,this.currentScroll=window.pageYOffset,this.theFooter=document.querySelector(".siteFooter"),this.makeClaimSiteWide=document.querySelector(".makeClaimForm--siteWide"),this.makeClaimSiteWide&&(console.log("YEP"),this.theFooter.classList.add("js-includeGreyBg")),window.innerWidth>1080&&window.addEventListener("scroll",this.hideClaim.bind(this)),this.link.addEventListener("click",this.hideLink.bind(this))}hideClaim(){this.currentScroll=window.pageYOffset,this.currentScroll>this.claimsFormPosition?this.link.classList.add("js-active"):this.link.classList.remove("js-active")}hideLink(e){e.preventDefault();const target=this.claimsForm.dataset.name;gsap.to(window,.5,{scrollTo:`.${target}`,onComplete:()=>{this.link.classList.remove("js-active")}})}}if(document.querySelector(".claimsForm"))new MakeClaimLink;else;class SiteHeader{constructor(){this.siteHeader=document.querySelector(".siteHeader"),this.body=document.querySelector("body"),this.navItems=document.querySelectorAll(".siteHeader__navItem"),this.navBtn=document.querySelector(".siteHeader__navBtn"),this.headerLinks=document.querySelectorAll(".siteHeader__navLink"),this.navLinks=document.querySelectorAll(".siteHeader__navLink"),this.dropdowns=document.querySelectorAll(".siteHeader__dropdownHolder"),this.dropdownLinks=document.querySelectorAll(".siteHeader__dropdownLink"),this.eventManagement()}eventManagement(){this.navButtonClicked=this.navButtonClick.bind(this),this.navBtn.addEventListener("click",this.navButtonClicked.bind(this)),window.innerWidth>1200?(this.hoveredLinks=this.openDropdown.bind(this),this.headerLinks.forEach(link=>{link.addEventListener("mouseenter",this.hoveredLinks)}),this.dropdownLinks.forEach(l=>{l.addEventListener("mousemove",this.changeCursor)}),this.dropdownLinks.forEach(l=>{l.addEventListener("mouseleave",this.removeCursor)})):(this.clickedLink=this.openMobileDropdown.bind(this),this.navLinks.forEach(link=>{link.dataset.dropdown&&link.addEventListener("click",this.openMobileDropdown)}))}
1changeCursor(e){const cursor=document.querySelector(".siteHeader__cursor");cursor.classList.add("js-show"),cursor.style.top=e.pageY+"px",cursor.style.left=e.pageX+"px"}removeCursor(){document.querySelector(".siteHeader__cursor").classList.remove("js-show")}openDropdown(e){const hoveredLink=e.currentTarget,dataTarget=e.currentTarget.dataset.dropdown,target=document.querySelector(`#${dataTarget}`);dataTarget&&(target.classList.contains("js-active")||(hoveredLink.classList.add("js-active"),target.classList.add("js-active")),target.addEventListener("mouseleave",()=>{hoveredLink.classList.remove("js-active"),target.classList.remove("js-active")}))}navButtonClick(e){e.preventDefault(),this.siteHeader.classList.contains("js-open")?(this.siteHeader.classList.remove("js-open"),this.body.classList.remove("nav-open"),this.dropdowns.forEach(dropdown=>{dropdown.classList.contains("js-showDropdown")&&setTimeout(()=>{dropdown.classList.remove("js-showDropdown")},400)})):(this.siteHeader.classList.add("js-open"),this.body.classList.add("nav-open"),gsap.fromTo(this.navItems,.7,{opacity:0,x:"-20px"},{opacity:1,x:"0px",stagger:.08,autoAlpha:1,clearProps:"all"}))}openMobileDropdown(e){e.preventDefault();const siteHeader=document.querySelector(".siteHeader"),dataTarget=e.currentTarget.dataset.dropdown,target=document.querySelectorAll(`#${dataTarget}`),dropdown=document.querySelectorAll(".siteHeader__dropdownBack");target.forEach(t=>{t.classList.add("js-showDropdown")}),dropdown.forEach(d=>{d.addEventListener("click",e=>{e.preventDefault(),siteHeader.classList.remove("js-mobileOpen"),target.forEach(t=>{t.classList.remove("js-showDropdown")})})})}}const siteHeader=new SiteHeader;class SiteIntro{constructor(){this.siteIntroList=document.querySelector(".siteIntro__list"),this.listItems=document.querySelectorAll(".siteIntro__listItem"),this.dots=document.querySelectorAll(".siteIntro__paginationItem"),this.titleFirstLine=document.querySelector(".siteIntro__listItem--one .siteIntro__logo"),this.titleSecondLine=document.querySelector(".siteIntro__listItem--one .siteIntro__text"),this.titleNoWinFee=document.querySelector(".siteIntro__listItem--one .siteIntro__noWinFee"),this.eventManagement()}eventManagement(){this.index=0,this.initCarousel(),this.manageClick(),this.introAnim()}introAnim(){gsap.fromTo(this.titleFirstLine,1,{x:"-100%",opacity:0}
1,{x:"0",opacity:1,ease:"power1.in"}),gsap.fromTo(this.titleSecondLine,1,{x:"100%",opacity:0},{x:"0",opacity:1,ease:"power1.in"},"<"),gsap.fromTo(this.titleNoWinFee,.3,{y:"100px",opacity:0},{y:"0",opacity:1,ease:"power1.in",delay:1})}manageClick(){this.dotClick=this.paginationClick.bind(this),this.dots.forEach(dot=>{dot.addEventListener("click",this.dotClick)})}initCarousel(){this.siteIntroCarousel=this.changeSlide.bind(this),this.siteIntroInterval=setInterval(()=>{this.siteIntroCarousel()},5e3)}changeSlide(){this.currentSlide=this.siteIntroList.querySelector(".siteIntro__listItem.active"),this.index++,this.currentSlide.classList.remove("active"),this.index!==this.listItems.length?(this.currentSlide.nextElementSibling.classList.add("active"),this.dots.forEach(dot=>dot.classList.remove("active")),this.dots[this.index].classList.add("active")):(this.index=0,this.listItems[0].classList.add("active"),this.dots.forEach(dot=>dot.classList.remove("active")),this.dots[this.index].classList.add("active"))}paginationClick(e){e.preventDefault(),this.currentSlide=this.siteIntroList.querySelector(".siteIntro__listItem.active"),this.dots.forEach((dot,i)=>{if(dot.classList.remove("active"),dot===e.currentTarget){const target=this.listItems[i];this.currentSlide.classList.remove("active"),target.classList.add("active"),clearInterval(this.siteIntroInterval)}}),e.currentTarget.classList.add("active")}}if(document.querySelector(".siteIntro__list"))new SiteIntro;class Testimonial{constructor(){this.testimonialList=document.querySelector(".testimonial__list"),this.slides=document.querySelectorAll(".testimonial__slide"),this.previousBtn=document.querySelector(".testimonial__btn--previous"),this.nextBtn=document.querySelector(".testimonial__btn--next"),this.counter=0,this.setOptions()}setOptions(){const THAT=this;this.flickity=new Flickity(this.testimonialList,{pageDots:!0,prevNextButtons:!1,cellAlign:"center",wrapAround:!1,freeScroll:!0,contain:!0,draggable:!1}),this.previousBtn.addEventListener("click",()=>{THAT.flickity.previous(),this.counter--,this.nextBtn.classList.remove("disabled"),this.arrowStates()}),this.nextBtn.addEventListener("click",()=>{THAT.flickity.next(),this.counter++,this.previousBtn.classList.remove("disabled"),this.arrowStates()}),this.paginationStates()}arrowStates(){0===this.counter?this.previousBtn.classList.add("disabled"):this.counter===this.slides.length-1?this.nextBtn.classList.add("disabled"):(this.previousBtn.classList.remove("disabled"),this.nextBtn.classList.remove("disabled"))}paginationStates(e){document.querySelectorAll(".dot").forEach((dot,index)=>{dot.addEventListener("click",e=>{0===index?(this.counter=0,this.previousBtn.classList.add("disabled"),this.nextBtn.classList.remove("disabled")):index===this.slides.length-1?(this.counter=this.slides.length-1,this.nextBtn.classList.add("disabled"),this.previousBtn.classList.remove("disabled")):(this.previousBtn.classList.remove("disabled"),this.nextBtn.classList.remove("disabled"),this.counter=index)})})}}if(document.querySelector(".homeTestimonial"))new Testimonial;
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.