1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[5110],{55449:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var i=a(82503),r=a(46378);const s=a(38302).default;class o extends s{get SELECTORS(){return{slidersCarousel:".js-editorial-bar-header_item",buttonCarouselNext:".btn-swiper-editorial-bar__next",buttonCarouselPrev:".btn-swiper-editorial-bar__prev",btnCloseSectionBarHeader:".js-close-header_bar",containerEditorialHeaderBar:".js-pd-editorial-header_bar"}}constructor(e){super(e),this.swiper,this.slides=[...this.element.querySelectorAll(this.SELECTORS.slidersCarousel)],this.header=document.querySelector("header.main-header"),this.containerEditorialHeaderBar=document.querySelector(this.SELECTORS.containerEditorialHeaderBar),this.body=document.querySelector("body"),this.header||!this.containerEditorialHeaderBar?this.containerEditorialHeaderBar&&(this.checkSessionStorageHeaderBar(),this.isClosed()||this.initSlider()):this.containerEditorialHeaderBar.classList.add("d-none")}initSlider(){const e="true"==this.element.dataset.loop,t=this.element.dataset.speed?1e3*parseInt(this.element.dataset.speed):6e3,a=this.element.dataset.autoplay,s={loop:this.slides.length>1&&e,autoplay:!1,slidesPerView:1,modules:[r.W_,r.tl,r.pt,r.s5],navigation:{nextEl:this.SELECTORS.buttonCarouselNext,prevEl:this.SELECTORS.buttonCarouselPrev},spaceBetween:10,on:{init:this.swiperInitilized.bind(this)}};"true"==a&&(s.autoplay={delay:t,pauseOnMouseEnter:!0,disableOnInteraction:!1}),this.swiper=new i.Z(this.element,s),e?this.swiper.slides.forEach((e=>this.createLongContentScroll(e))):this.createLongContentScroll(this.swiper.slides[0]),this.swiper.on("resize",(e=>{this.createLongContentScroll(e.slides[e.snapIndex])}))}swiperInitilized(e){e.el.parentNode.classList.remove("hidden")}wrapText(e){const t=e.innerHTML;e.querySelector("span")||(e.innerHTML="<span>"+t+"</span>")}createLongContentScroll(e){const t=e;if(!t)return;const a=t.firstElementChild;if(a.clientWidth>t.clientWidth){const e=a.querySelector("div a");e?(e.previousElementSibling?(this.wrapText(e.previousElementSibling),a.classList.add("editorial-bar-header_item-content--long-content-double-cta")):(this.wrapText(e.querySelector("p")),a.classList.add("editorial-bar-header_item-content--long-content-single-cta")),a.querySelector(".content-bar")&&a.querySelector(".content-bar").classList.add("flex-wrap")):(a.classList.add("editorial-bar-header_item-content--long-content"),t.classList.add("justify-start"))}else a.classList.remove("editorial-bar-header_item-content--long-content"),t.classList.remove("justify-start"),a.classList.remove("editorial-bar-header_item-content--long-content-single-cta"),a.classList.remove("editorial-bar-header_item-content--long-content-double-cta")}closeEditorialBarHeader(){document.querySelector(this.SELECTORS.btnCloseSectionBarHeader).addEventListener("click",(()=>{this.containerEditorialHeaderBar.classList.add("d-none"),this.header.classList.remove("active-editorial-bar-header"),this.body.classList.remove("editorial-bar-is-open"),this.body.classList.add("editorial-bar-is-closed"),sessionStorage.setItem("editorialHeaderBarStatus","close"),this.addCookieHeaderBar()}))}eventScrollHeader(){let e=0;("Search-Show"!==this.header.dataset.action&&"true"!==this.header.dataset.editorialPage||"Search-Show"===this.header.dataset.action&&"true"===this.header.dataset.editorialPage)&&document.addEventListener("scroll",(t=>{e=window.scrollY,e>=40?this.header.classList.add("header-sticky"):this.header.classList.remove("header-sticky")}))}addCookieHeaderBar(){var e,t;
1e="",(t=new Date).setTime(t.getTime()+6048e5),e="; expires="+t.toUTCString(),document.cookie="_editorialBarHeader=closed"+e+"; path=/"}removeCookieHeaderBar(){document.cookie="_editorialBarHeader=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}isClosed(){return sessionStorage.getItem("editorialHeaderBarStatus")}checkSessionStorageHeaderBar(){this.isClosed()?(this.body.classList.add("editorial-bar-is-closed"),this.containerEditorialHeaderBar.classList.add("d-none"),this.addCookieHeaderBar()):(this.removeCookieHeaderBar(),this.closeEditorialBarHeader(),this.eventScrollHeader(),this.header.classList.add("active-editorial-bar-header"),this.containerEditorialHeaderBar.querySelectorAll(".editorial-bar-header_item").length&&this.containerEditorialHeaderBar.classList.remove("d-none"),this.body.classList.add("editorial-bar-is-open"))}}}}]);
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.