https://www.italiangourmet.de/cdn/shop/t/24/assets/section-header.js?v=81966248575105562171669759563
1if(typeof MainHeader!="function"){class MainHeader2 extends HTMLElement{constructor(){super(),this.mount()}mount(){if(window.inertElems=document.querySelectorAll("[data-js-inert]"),this.hasAttribute("data-sticky-header")){const stickyHeader=document.createElement("div");stickyHeader.classList="sticky-header",stickyHeader.innerHTML=`<div class="header__bottom header-container container--large portable-hide"> 2 ${this.querySelector(".header__bottom").innerHTML} 3 </div> 4 <div class="site-header header__top container--large"> 5 ${this.querySelector(".header__top").innerHTML} 6 </div>`,document.body.append(stickyHeader),window.lst=window.scrollY,window.lhp=0;const stickyHeaderDeskBound=this.querySelector(".header__bottom"),stickyHeaderMobileBound=this.querySelector(".header__top");this.SCROLL_StickyHelper=()=>{var st=window.scrollY;if((st<=0||(window.innerWidth>=1024?stickyHeaderDeskBound.getBoundingClientRect().top>=0:stickyHeaderMobileBound.getBoundingClientRect().top>=0))&&stickyHeader.classList.contains("show")){stickyHeader.classList.remove("show");return}st<0||Math.abs(lst-st)<=5||(st>window.lhp&&(st==0&&stickyHeader.classList.contains("show")?stickyHeader.classList.remove("show"):st<=lst&&!stickyHeader.classList.contains("show")?(window.lhp=stickyHeader.offsetTop,stickyHeader.classList.add("show")):st>lst&&stickyHeader.classList.contains("show")&&stickyHeader.classList.remove("show")),window.lst=st)},window.addEventListener("scroll",this.SCROLL_StickyHelper,{passive:!0})}document.querySelectorAll("[data-js-sidebar-handle]").forEach(elm=>{if(elm.hasAttribute("aria-controls")){const elmSidebar=document.getElementById(elm.getAttribute("aria-controls"));elm.addEventListener("click",e=>{e.preventDefault(),elm.setAttribute("aria-expanded","true"),elmSidebar.show()}),elm.addEventListener("keyup",e=>{e.keyCode==window.KEYCODES.RETURN&&(elm.setAttribute("aria-expanded","true"),elmSidebar.show(),elmSidebar.querySelector("[data-js-close]").focus())})}}),document.querySelectorAll("sidebar-drawer [data-js-close]").forEach(elm=>{elm.addEventListener("click",e=>{e.preventDefault(),e.target.closest(".sidebar").classList.contains("sidebar--opened")&&e.target.closest(".sidebar").hide()})}),document.querySelector(".site-overlay").addEventListener("click",()=>{document.querySelector(".sidebar--opened")&&document.querySelector(".sidebar--opened").hide()}),document.addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.ESC&&document.querySelector(".sidebar--opened")&&document.querySelector(".sidebar--opened").hide()});const rootHeight=document.getElementById("root-height");this.RESIZE_SidebarHelper=debounce(()=>{rootHeight.innerHTML=`:root { 7 --window-height: ${window.innerHeight}px; 8 }`},200),window.addEventListener("resize",this.RESIZE_SidebarHelper),rootHeight.innerHTML=`:root { 9 --window-height: ${window.innerHeight}px; 10 }`,document.querySelectorAll('[aria-controls="modal-store-selector"]').forEach(elm=>{elm.addEventListener("click",e=>{e.preventDefault(),document.querySelector(".sidebar--opened")&&document.querySelector(".sidebar--opened").hide(),document.getElementById(elm.getAttribute("aria-controls"))&&document.getElementById(elm.getAttribute("aria-controls")).show()}),elm.addEventListener("keyup",e=>{e.keyCode==window.KEYCODES.RETURN&&(document.querySelector(".sidebar--opened")&&document.querySelector(".sidebar--opened").hide(),document.getElementById(elm.getAttribute("aria-controls"))&&document.getElementById(elm.getAttribute("aria-controls")).show())})}),document.querySelectorAll(".site-nav.style--classic .has-submenu").forEach(elm=>{elm.addEventListener("mouseover",()=>{elm.querySelector(".normal-menu")&&(elm.querySelector(".normal-menu").style.left=`${elm.getBoundingClientRect().left}px`)})}),JSON.parse(document.getElementById("shopify-features").text).predictiveSearch&&KROWN.settings.predictive_search_enabled=="true"&&(document.querySelectorAll("search-form [data-js-search-input]").forEach(elm=>{elm.addEventListener("focus",()=>{if(document.getElementById(elm.dataset.jsFocusOverlay).classList.add("active"),!document.body.classList.contains("predictive-script-loaded")){document.body.classList.add("predictive-script-loaded");const predictiveSearchJS=document.createElement("script");predictiveSearchJS.src=KROWN.settings.predictive_search_script,document.head.appendChild(predictiveSearchJS)}}),elm.addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.TAB&&document.getElementById("search-results-overlay-desktop").classList.contains("active")&&document.getElementById("search-results-overlay-desktop").classList.remove("active")})}),window.addEventListener("load",()=>{document.querySelectorAll(".search-results-overlay").forEach(elm=>{elm.style=""})})),document.querySelectorAll(".site-nav.style--classic .has-submenu > a").forEach(childEl=>{const elm=childEl.parentNode;elm.addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.RETURN&&(e.target.classList.contains("no-focus-link")||e.preventDefault(),elm.classList.contains("focus")?document.activeElement.parentNode.classList.contains("has-submenu")&&elm.classList.contains("focus")&&(elm.classList.remove("focus"),elm.setAttribute("aria-expanded","true")):(elm.classList.add("focus"),elm.setAttribute("aria-expanded","true")))}),elm.querySelector(".submenu-holder > li:last-child a")&&elm.querySelector(".submenu-holder > li:last-child a").addEventListener("focusout",e=>{elm.classList.contains("focus")&&(elm.classList.remove("focus"),elm.setAttribute("aria-expanded","fal
10se"))})}),document.querySelectorAll(".site-nav.style--classic .has-babymenu:not(.mega-link) > a").forEach(childEl=>{const elm=childEl.parentNode;elm.addEventListener("keydown",e=>{e.keyCode==window.KEYCODES.RETURN&&(e.target.classList.contains("no-focus-link")||e.preventDefault(),elm.classList.contains("focus")?(elm.classList.remove("focus"),elm.setAttribute("aria-expanded","false")):(elm.classList.add("focus"),elm.setAttribute("aria-expanded","true")))}),elm.querySelector(".babymenu li:last-child a")&&elm.querySelector(".babymenu li:last-child a").addEventListener("focusout",e=>{elm.parentNode.classList.contains("focus")&&(elm.parentNode.classList.remove("focus"),elm.parentNode.setAttribute("aria-expanded","false"))})})}unmount(){window.removeEventListener("resize",this.RESIZE_SidebarHelper)}}typeof customElements.get("main-header")>"u"&&customElements.define("main-header",MainHeader2)}if(typeof SidebarDrawer!="function"){class SidebarDrawer2 extends HTMLElement{constructor(){super(),this.querySelector("[data-js-close]").addEventListener("click",()=>{this.hide()}),document.addEventListener("keydown",e=>{if(e.keyCode==window.KEYCODES.ESC){const openedSidebar=document.querySelector("sidebar-drawer.sidebar--opened");openedSidebar&&openedSidebar.hide()}})}show(){this.opened=!0,document.body.classList.add("sidebar-opened"),this.classList.contains("sidebar--right")?document.body.classList.add("sidebar-opened--right"):this.classList.contains("sidebar--left")&&document.body.classList.add("sidebar-opened--left"),this.style.display="grid",setTimeout(()=>
10{this.classList.add("sidebar--opened"),window.inertElems.forEach(elm=>{elm.setAttribute("inert","")})},15)}hide(){this.opened=!1,this.classList.remove("sidebar--opened"),document.body.classList.remove("sidebar-opened"),document.body.classList.remove("sidebar-opened--left"),document.body.classList.remove("sidebar-opened--right"),window.inertElems.forEach(elm=>{elm.removeAttribute("inert")}),document.querySelector(`[aria-controls="${this.id}"]`).setAttribute("aria-expanded","false"),setTimeout(()=>{this.style.display="none"},501)}}typeof customElements.get("sidebar-drawer")>"u"&&customElements.define("sidebar-drawer",SidebarDrawer2)}if(typeof MobileNavigation!="function"){class MobileNavigation2 extends HTMLElement{constructor(){super();let openedFirstSubmenu=!1,openedSecondSubmenu=!1;if(this.querySelectorAll(".has-submenu > a").forEach(elm=>{elm.addEventListener("click",e=>{e.preventDefault(),openedFirstSubmenu||(openedFirstSubmenu=!0,this.classList.add("opened-first-submenu")),e.target.closest("li").classList.add("opened")})}),this.querySelectorAll(".has-babymenu > a").forEach(elm=>{elm.addEventListener("click",e=>{e.preventDefault(),openedSecondSubmenu||(openedSecondSubmenu=!0,this.classList.add("opened-second-submenu")),e.target.closest("li").classList.add("opened")})}),this.querySelectorAll(".submenu-back a").forEach(elm=>{elm.addEventListener("click",e=>{openedSecondSubmenu?(openedSecondSubmenu=!1,this.classList.remove("opened-second-submenu")):openedFirstSubmenu&&(openedFirstSubmenu=!1,this.classList.remove("opened-first-submenu")),setTimeout(()=>{e.target.closest("li.opened").classList.remove("opened")},301),e.preventDefault()})}),this.dataset.showHeaderActions=="true"){const mobileNavActions=document.createElement("div");mobileNavActions.classList="header-actions flex-buttons",mobileNavActions.innerHTML=document.querySelector("[data-js-header-actions]").innerHTML,this.querySelector("nav").prepend(mobileNavActions),mobileNavActions.querySelectorAll("[data-modal]").forEach(elm=>{elm.addEventListener("click",e=>{e.preventDefault(),document.querySelector(".sidebar--opened")&&document.querySelector(".sidebar--opened").hide(),document.getElementById(elm.getAttribute("aria-controls"))&&document.getElementById(elm.getAttribute("aria-controls")).show()})})}}}typeof customElements.get("mobile-navigation")>"u"&&customElements.define("mobile-navigation",MobileNavigation2)}if(typeof ScrollableNavigation!="function"){class ScrollableNavigation2 extends HTMLElement{constructor(){super(),this.linkList=this.querySelector(".link-list"),this.header=this.parentNode,window.addEventListener("resize",debounce(()=>{this.checkNav()},200)),this.checkNav(),this.parentNode.querySelector(".scrollable-navigation-button--left").addEventListener("click",()=>{this.scroll({top:0,left:this.scrollLeft-100,behavior:"smooth"})}),this.parentNode.querySelector(".scrollable-navigation-button--right").addEventListener("click",()=>{this.scroll({top:0,left:this.scrollLeft+100,behavior:"smooth"})})}checkNav(){this.linkList.scrollWidth>this.offsetWidth?this.header.classList.add("scrolling-navigation-enabled"):this.header.classList.remove("scrolling-navigation-enabled")}}typeof customElements.get("scrollable-navigation")>"u"&&customElements.define("scrollable-navigation",ScrollableNavigation2)} 11//# sourceMappingURL=/cdn/shop/t/24/assets/section-header.js.map?v=81966248575105562171669759563
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.