PageSourceSearch

https://www.heidelbergmaterials.de/themes/custom/hm/__prototype__/dist/js/photoswipe.af2luTxa.js

js heidelbergmaterials.de collected 2026-10-02 17:03:41 UTC 2,075 bytes, 1 lines download raw bytes

1import{t as e}from"../assets/carousel.idle.ce-CP5iiQFF.js";(t=>{t.behaviors={photoswipeExtend:{attach(t){once(`photoswipeExtend`,`.photoswipe-gallery`,t).forEach(t=>{t.addEventListener(`photoswipeLightboxBuild`,n=>{let{lightbox:r}=n?.detail;r.addFilter(`useContentPlaceholder`,(e,t)=>{let n=t.data.element;return(n.clientWidth/n.clientHeight).toFixed(2)===(t.width/t.height).toFixed(2)}),r.options={...r.options,closeSVG:`<div class="i-hm-close-default text-white" style="font-size: 40px"></div>`,arrowPrevSVG:`<div class="i-hm-arrow-left text-white" style="font-size: 40px"></div>`,arrowNextSVG:`<div class="i-hm-arrow-right text-white" style="font-size: 40px"></div>`,paddingFn:e=>{let t=e.x<1240?16:Math.max((e.x-e.x*.8)/2,16),n=e.x<1240?56:Math.max((e.y-e.y*.9)/2,80);return{left:t,top:n,right:t,bottom:e.x<=600?56:Math.max(n,150)}}},r.on(`uiRegister`,()=>{r.getNumItems()<2||r.pswp.ui.registerElement({name:`bulletsIndicator`,className:`pswp__bullets-indicator`,appendTo:`wrapper`,onInit:(e,t)=>{let n=[],r,i=-1,a=document.createElement(`div`);a.className=`pswp__bullet-index`,e.appendChild(a);for(let i=0;i<t.getNumItems();i++)r=document.createElement(`div`),r.className=`pswp__bullet`,r.onclick=e=>{t.goTo(n.indexOf(e.target))},e.appendChild(r),n.push(r);let o=document.createElement(`div`);o.className=`pswp__bullet-max-index`,o.textContent=String(t.getNumItems()).padStart(2,`0`),e.appendChild(o),t.on(`change`,e=>{i>=0&&n[i].classList.remove(`pswp__bullet--active`),n[t.currIndex].classList.add(`pswp__bullet--active`),i=t.currIndex,a.textContent=String(t.currIndex+1).padStart(2,`0`)})}})}),r.on(`dynamicCaptionUpdateHTML`,({captionElement:e})=>{let t=new DOMParser().parseFromString(e.textContent,`text/html`),n=t.querySelector(`.pswp__caption`);n?.remove();let r=document.createElement(`span`);r.className=`pswp__caption`,r.textContent=n?.textContent?.trim()||``,e.textContent=t.body.textContent?.trim()||``,e.append(r)}),r.on(`change`,()=>{let n=t.querySelector(`hm-carousel`);n instanceof e&&n.scrollToSlide(r.pswp.currIndex)})})})}},...t.behaviors}})(Drupal);

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.