PageSourceSearch

https://www.bat.de/etc.clientlibs/batcom/base/clientlibs/publish/c…ser.min.fc66dc881e1f7f2a6fafb1ab70ce2843.js

js bat.de collected 2026-10-02 05:59:34 UTC 5,226 bytes, 1 lines download raw bytes

1"use strict";(globalThis["batcomJsonp "]=globalThis["batcomJsonp "]||[]).push([[1037],{6561(e,t,i){var s=i(3502),a=i(3711),r=i(8155);class n extends a.A{trackActionLinkClick(e){const t=e.innerHTML,i={event:r.nn.events.button,eventAction:t,eventLabel:t,url:e.href};this.pushAnalytics(i)}}var o=i(9529),c=i(9107);const h=".cmp-teaser__action-link",l=".cmp-teaser__link",m=".cmp-image",d=".batcom-header__wrapper",p=".cmp-image__image",g=".cmp-teaser__content",u=".cmp-teaser__image-half-banner-wrapper",b=".cmp-teaser__secondary-image",y=".cmp-teaser__content-promocard-wrapper",f="batcom-teaser-offset",H="batcom-teaser-corp-stage",L="batcom-teaser-corp--vertical",w="batcom-teaser-corp--horizontal",C="cmp-teaser--clickable",k="batcom-teaser-corp-curtain",v="batcom-teaser-corp-curtain--fixed",S="batcom-teaser-corp-curtain--limit",_="cmp-image__image--hidden",B="cmp-image--has-background",q="batcom-teaser-promo-card",E="batcom-teaser-half-banner",I="cmp-teaser__content-promocard-wrapper",T="cmp-teaser--has-background-color";(0,s.kz)({Teaser:class{constructor(e){this.el=e,this.init()}init(){this.setRefs(),this.teaserContainer.classList.contains(k)&&this.setCurtainTeaser(),this.setEventListeners(),this.teaserContainer.classList.contains(q)&&(this.setPromoCardWrapper(),this.setCmpTeaserContent()),this.isHalfBannerVariant&&(0,c.WR)().matches&&this.setHalfBannerSecondaryImageHeight(),this.el.classList.contains(T)&&this.setBackgroundColor(),this.calculateFooterHeight(),this.calculateHeaderHeight(),this.setViewportHeight()}setRefs(){this.teaserContainer=this.el.parentElement,this.actionLink=this.el.querySelector(h),this.img=this.el.querySelector(p),this.imgContainer=this.el.querySelector(m),this.teaserLink=this.el.querySelector(l),this.actionLinkList=this.el.querySelectorAll(h),this.teaserAnalytics=new n(this.el),this.teaserContainer.classList.contains(E)&&(this.isHalfBannerVariant=!0,this.halfBannerVariantImageWrapper=this.el.querySelector(u),this.halfBannerVariantSecondaryImage=this.el.querySelector(b))}setEventListeners(){const e=[f,H,L,w];if([...this.teaserContainer.classList].some(t=>e.includes(t))&&this.actionLink&&(this.el.addEventListener("click",this.goToURL.bind(this)),this.el.classList.add(C)),this.teaserContainer.classList.contains(k)){new IntersectionObserver(e=>{e.forEach(e=>{e.boundingClientRect.top<0?this.teaserContainer.classList.add(v):this.teaserContainer.classList.remove(v)})},{root:null,threshold:0}).observe(this.limit)}this.actionLinkList.length>0&&this.actionLinkList.forEach(e=>{e.addEventListener("click",()=>{this.teaserAnalytics.trackActionLinkClick(e)})}),this.halfBannerVariantImageWrapper&&window.addEventListener("resize",()=>{(0,c.WR)().matches?(0,o.s)(this.setHalfBannerSecondaryImageHeight(),200,!1):this.unsetHalfBannerSecondaryImageHeight()}),window.addEventListener("resize",(0,o.s)(()=>{this.calculateFooterHeight(),this.calculateHeaderHeight(),this.setViewportHeight()},200,!1))}unsetHalfBannerSecondaryImageHeight(){this.halfBannerVariantSecondaryImage.removeAttribute("style")}setHalfBannerSecondaryImageHeight(){const e=this.halfBannerVariantImageWrapper?.offsetHeight||0,t=Math.floor(.8*e);this.halfBannerVariantSecondaryImage.style.height=`${t}px`}setCurtainTeaser(){this.limit=document.createElement("div"),this.limit.classList.add(S),this.teaserContainer.prepend(this.limit),this.img.classList.add(_),this.imgContainer.style.backgroundImage=`url(${this.img.src})`,this.imgContainer.classList.add(B)}setPromoCardWrapper(){const e=document.createElement("div");e.classList.add(I),e.append(this.teaserContainer?.querySelector(g));(this.teaserLink||this.el).append(e)}setCmpTeaserContent(){const e=this.imgContainer.parentElement.scrollHeight,t=this.teaserAnalytics.el.querySelector(y),i=t?.querySelector(g);if(i){i.scrollHeight<e&&(i.style.height="100%")}}setBackgroundColor(){const e=(0,c.Cy)().matches?this.el.dataset.bgcolordesktop:this.el.dataset.bgcolormobile;this.teaserContainer.style.background=e}calculateFooterHeight(e=0){const t=document.querySelector(".batcom-footer-warning-container"),i=t?.parentElement,s=this.el?.closest(".batcom-teaser");i&&0!==i.offsetHeight?s.style.setProperty("--footer-banner-height",`${i.offsetHeight}px`):e<10&&setTimeout(()=>this.calculateFooterHeight(e+1),200)}calculateHeaderHeight(e=0){const t=document.querySelector(d),i=this.el?.closest(".batcom-teaser");t&&0!==t.offsetHeight?i.style.setProperty("--batcom-layout-teaser-header-height",`${t.offsetHeight}px`):e<10&&setTimeout(()=>this.calculateHeaderHeight(e+1),200)}
1setViewportHeight(){if(globalThis.Granite||document.querySelector(".aem-AuthorLayer-Edit")){if(this.viewportHeightSet)return;this.viewportHeightSet=!0}const e=window.innerHeight,t=this.el?.closest(".batcom-teaser");t&&(t.style.setProperty("--viewport-height-mobile",`${e}px`),t.style.setProperty("--viewport-height-desktop",`${e}px`))}goToURL(){this.actionLink.click()}}})},9107(e,t,i){i.d(t,{Cy:()=>r,WR:()=>n,h6:()=>o,wq:()=>a});var s=i(8801);const a=()=>window.matchMedia(`(min-width: ${s.F.b00}px)`),r=()=>window.matchMedia(`(min-width: ${s.F.b01}px)`),n=()=>window.matchMedia(`(min-width: ${s.F.b02}px)`),o=()=>window.matchMedia(`(max-width: ${s.F.b05}px)`)}},e=>{var t;t=6561,e(e.s=t)}]);

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.