1"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[3652],{39014(e,i,t){var s=t(23029),r=t(49530),n=t(50388),a=t(53954),o=t(85501),l=(t(74423),t(31526)),c=t(12595),u=t(34361),h=t(56773),d=t(73355),g=t(50783),f=t(58843),p=t(85333),m=t(9209),y=t(48669);const b={pagination:{enabled:!1,scope:null,usePageUrlParam:!1,pageSize:null},selectors:{list:".teaserlist__items",items:".teaserlist__item",itemLink:".teaserlist__item-link",buttons:"heliux-calltoaction",arrows:".carousel__arrow",arrowsMobile:".carousel__arrowMobile",listForLoadMore:".teaserlist__items--loadMore",loadmore:".teaserlist__loadmore--server",listForLazyScrolling:".teaserlist__items--lazyScrolling",lazyScrolling:".teaserlist__lazyScrolling--server",lazyScrollingSpinner:".teaserlist__lazyScrollingSpinner"},classes:{hidden:"teaserlist__loadmore--hidden",disabled:"teaserlist__loadmore--disabled",arrowsDisplayed:"carousel__base--arrowsDisplayed",arrowsMobileDisplayed:"carousel__base--arrowsMobileDisplayed",showNextSlide:"carousel__slider--showNextSlide",showNextSlideMobile:"carousel__slider--showNextSlideMobile",showPrevNextSlide:"carousel__slider--showPrevNextSlide",showPrevNextSlideMobile:"carousel__slider--showPrevNextSlideMobile"},paginationParam:"pgnav-",paginationVariables:{size:"--teaserlist-columns"},teaserListVariables:{ctaAreaHeight:"--teaserlist-space-for-pageteaser-cta"},subscribes:{carouselInitialized:e=>`carousel:carousel_${e}:initialized`,carouselSlideChanged:e=>`carousel:carousel_${e}:slideChanged`},publishes:{teasersLoaded:e=>`teasers:${e}:loaded`,showSpinner:e=>`spinner:${e}:show`,hideSpinner:e=>`spinner:${e}:hide`,carouselClick:"tracking:tlV2:carousel:slideChanged:prodMultiView"}};function S(e,i,t){return i=(0,a.A)(i),(0,n.A)(e,L()?Reflect.construct(i,t||[],(0,a.A)(e).constructor):i.apply(e,t))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}let v=function(e){function i(){var e;(0,s.A)(this,i),(e=S(this,i,[b])).queryElements();const t=e.elements.list;return e.initialList=t?t.cloneNode(!0):null,e.trackedCarouselPages=new Set,e}return(0,o.A)(i,e),(0,r.A)(i,[{key:"selectors",get:function(){return this.presets.selectors}},{key:"carouselParams",get:function(){const{carousel:e,params:i}=this.data;try{return{...JSON.parse(e||"{}"),...JSON.parse(i||"{}")}}catch(e){return console.error("TLv2 Carousel Params could not by parsed as JSON"),{}}}},{key:"listeners",value:function(){this.refreshCssVariables(),(0,h.h)(()=>this.reInitCarousel,200,this.id),(0,l.B1)(this.config.subscribes.carouselInitialized(this.id),()=>{this.reInitCarousel(),this.trackCarouselPage(0)}),(0,l.B1)(this.config.subscribes.carouselSlideChanged(this.id),e=>{this.trackCarouselPage(e)})}},{key:"trackCarouselPage",value:function(e){if(!this.trackedCarouselPages.has(e)){this.trackedCarouselPages.add(e);const i=this.getItemTrackingConfigs(e),t=this.closest("heliux-teaserlist-v2"),s=t?.getAttribute("data-adobe-tracking-configs");if(s)try{const e=JSON.parse(s),t=e.prodClickSearchAnalyticsConfig||e.prodClickAnalyticsConfig;t?.isActive&&(0,m.h)(this.config.publishes.carouselClick,{...t,itemTrackingConfigs:i})}catch(e){console.error("TLv2 Sliding: Could not parse data-adobe-tracking-configs",e)}}}},{key:"getItemTrackingConfigs",value:function(e){return this.initialList?Array.from(this.initialList.querySelectorAll(this.config.selectors.items)).slice(e*this.size,(e+1)*this.size).reduce((e,i)=>{const t=i.getAttribute("data-adobe-tracking-configs");if(!t)return e;try{const i=JSON.parse(t),s=i.prodClickSearchAnalyticsConfig||i.prodClickAnalyticsConfig;e.push(s)}catch(e){console.error("TLv2 Sliding: Could not parse data-adobe-tracking-configs",e)}return e},[]):[]}},{key:"reInitCarousel",value:function(){this.refreshCssVariables(),this.reRender()}},{key:"refreshCssVariables",value:function(){this.queryElements()}},{key:"pageSize",get:function(){return getComputedStyle(this).getPropertyValue(this.presets.paginationVariables.size)||1}},{key:"reRender",value:function(){this.size!==this.previousPageSize&&(this.innerHTML=this.render())}},{key:"size",get:function(){return parseInt(this.pageSize,10)}},{key:"render",value:function(){const{carouselcontrolsclasses:e}=this.dataset;this.previousPageSize=this.size;const{descriptionLabel:i}=this.carouselParams;return`\n <heliux-carousel>\n <section tabindex="0"\n class="carousel__base container-max-grid"\n id="carousel_${this.id}"\n role="group"\n aria-label="${i||"carousel"}"\n aria-roledescription="carousel"\n data-components="Carousel"\n data-components-params-Carousel='${JSON.stringify(this.carouselParams)}'>\n <div class="carousel__sliderContainerWrapper">\n <div class="carousel__sliderContainer">\n <div class="carousel__slider ${this.updateCarouselClasses()}">\n ${this.breakIntoPages()}\n </div>\n </div>\n ${this.renderArrows()}\n ${this.renderArrowsMobile()}\n </div>\n <div class="carousel__controls limited-container ${e}"></div>\n </section>\n </heliux-carousel>\n `}},{key:"updateCarouselClasses",value:function(){if(this.config={...b,...this.config},(0,y.wY)().matches||(0,y.PP)().matches||(0,y.YS)().matches||(0,y.ol)().matches){if(this.initialList.classList.contains(this.config.classes.showNextSlideMobile))return this.config.classes.showNextSlideMobile;if(this.initialList.classList.contains(this.config.classes.showPrevNextSlideMobile))return this.config.classes.showPrevNextSlideMobile}if((0,y.gK)().matches||(0,y.Qt)().matches||(0,y.QY)().matches){if(this.initialList.classList.contains(this.config.classes.showNextSlide))return this.config.classes.showNextSlide;if(this.initialList.classList.contains(this.config.classes.showPrevNextSlide))return this.config.classes.showPrevNextSlide}return"carousel__slider"}},{key:"breakIntoPages",value:function(){if(!this.initialList)return"";const e=Array.from(this.initialList.querySelectorAll(this.config.selectors.items)),i=[],t=Math.ceil(e.length/this.size);for(let s=0;s<t;s+=1){const t=e.splice(0,this.size);i.push(t)}return i.map(e=>`<ul class="${this.initialList.classList[0]}\n ${this.initialList.classList[1]}">\n ${e.map(e=>e.outerHTML).join("")}\n </ul>`).join("")}},{key:"renderArrows",value:function(){return this.elements.arrows?[...this.elements.arrows].map(e=>e.outerHTML).join(""):""}},{key:"renderArrowsMobile",value:function(){return this.elements.arrowsMobile?[...this.elements.arrowsMobile].map(e=>e.outerHTML).join(""):""}}],[{key:"tag",get:function(){return"heliux-teaserlist-sliding-v2"}},{key:"observedAttributes",get:function(){return["carousel","params"]}}])}(p.E);function k(e,i,t){return i=(0,a.A)(i),(0,n.A)(e,C()?Reflect.construct(i,t||[],(0,a.A)(e).constructor):i.apply(e,t))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}(0,u.v)(v);let _=function(e){function i(){return(0,s.A)(this,i),k(this,i,arguments)}return(0,o.A)(i,e),(0,r.A)(i,[{key:"init",value:function(){this.config=(0,c.$N)({},b,this.config),this.getElements(),this.setCtaAreaHeight(),this.itemLink=(0,d.K)(this.itemLink),this.config.containerId||(this.config.containerId=this.el.
1id),this.initLoadMoreOrLazyScrolling(),this.addListeners(),this.setItemLinkAltText()}},{key:"addListeners",value:function(){(0,h.h)(()=>this.setCtaAreaHeight())}},{key:"initLoadMoreOrLazyScrolling",value:function(){if(!this.loadmore&&!this.listForLazyScrolling)return;const{size:e,itemsLimit:i,containerId:t,offset:s,initial:r}=this.config,n={scope:t,totalResults:i,offset:s,pageSize:e,initialPageSize:r,reset:!(!this.loadmore&&!this.listForLazyScrolling)};this.paginationController=new f.J(n),this.loadmore&&this.loadmore.addEventListener("click",e=>(e.stopPropagation(),e.preventDefault(),this.paginationController.goToNext()),!0),this.lazyScrolling&&document.addEventListener("scroll",()=>this.onScrolling()),this.paginationController.subscribeChange(e=>this.loadMoreResults(e)),this.paginationController.subscribeReset(e=>this.paginationReset(e))}},{key:"onScrolling",value:function(){const{publishes:e}=this.config,i=this.list.getBoundingClientRect().bottom,t=window.innerHeight+window.innerHeight,s=i>0&&i<=t;this.paginationController.isAtEnd||this.lazyScrollingInProgress||!s||((0,l.publish)(e.showSpinner(this.lazyScrollingSpinner?.id)),this.lazyScrollingInProgress=!0,this.paginationController.goToNext())}},{key:"removePaginationParams",value:function(e){const{paginationParam:i}=this.config,t=[];return e.forEach((e,s)=>{s.includes(i)&&t.push(s)}),t.forEach(i=>e.delete(i)),e}},{key:"setItemLinkAltText",value:function(){(0,d.K)(this.itemLink).forEach(e=>{if(!e.getAttribute("title")){const i=e.href,t=i.substring(i.lastIndexOf("/")+1,i.indexOf(".")).replaceAll("-"," ");e.setAttribute("title",t)}})}},{key:"buildRequestURL",value:function(e){let i=this.getBaseLoadMoreUrl(e),t=new URLSearchParams(this.urlParams||window.location.search);return t=this.removePaginationParams(t),this.urlParams=t.toString(),""!==this.urlParams&&(i=`${i}?${this.urlParams}`),"/"===i[0]&&(i=`${window.location.origin}${i}`),i=(0,g.Ff)(i),i}},{key:"getBaseLoadMoreUrl",value:function(e){const{offset:i}=e?.paginationData||this.paginationController?.paginationData||{offset:0},{loadMoreLink:t}=this.config,s=i;let r="";return r=t.includes(".html")?t.replace(".html",`.items.${s}.html`):`${t}.items.${s}.html`,r}},{key:"paginationReset",value:function(){this.lazyScrollingInProgress=!1}},{key:"loadMoreResults",value:function(e){const{publishes:i}=this.config,t=this.buildRequestURL(e);this.createRequestV2(t,e=>{this.listForLoadMore&&this.listForLoadMore.insertAdjacentHTML("beforeend",e),this.listForLazyScrolling&&(this.listForLazyScrolling.insertAdjacentHTML("beforeend",e),(0,l.publish)(i.hideSpinner(this.lazyScrollingSpinner?.id)),this.lazyScrollingInProgress=!1),(0,l.publish)(i.teasersLoaded(this.el.id))})}},{key:"render",value:function(e){const{publishes:i}=this.config;this.list.innerHTML="",this.list.append(e),this.scrollContainer(),(0,l.publish)(i.teasersLoaded(this.el.id))}},{key:"createRequestV2",value:function(e,i){const{classes:t}=this.config;this.loadmore&&this.loadmore.classList&&this.loadmore.classList.add(t.disabled),this.request=new l.Kd({}),this.request.url=e,this.request.get().then(i.bind(this)).then(()=>{this.loadmore&&(this.loadmore.classList.remove(t.disabled),this.paginationController.isAtEnd&&this.loadmore.classList.add(t.hidden))}).catch(e=>console.error(e))}},{key:"setCtaAreaHeight",value:function(){if(this.buttons.length>0){const e=this.buttons[0].offsetHeight;0!==e&&this.el.style.setProperty(this.config.teaserListVariables.ctaAreaHeight,`${e}px`)}}}])}(l.xu);(0,l.kz)({TeaserListV2:_},0)}},e=>{e.O(0,[750],()=>e(39014)),e.O()}]);
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.