1"use strict";(globalThis.webpackChunkNorden_Commerce=globalThis.webpackChunkNorden_Commerce||[]).push([[8915],{3164(t,e,a){a.d(e,{AccessoryProducts:()=>o});var i=a(4561),s=a(8196);class o{constructor(t){t=t||{},this.container=t.container,this.isTabbed=this.container.closest("[data-tabs]")}init(){if(this.isTabbed){if(!this.container.parentNode.previousElementSibling.querySelector("[data-tab-content]")){document.querySelector(`[data-tab="${this.container.getAttribute("data-tab-content")}"]`).setAttribute("data-tab-active",""),this.handleCarousel()}const t=this.container.closest("[data-tabs]").querySelector(`[data-tab="${this.container.getAttribute("data-tab-content")}"]`);t&&t.addEventListener("click",e=>{e.preventDefault(),this.handleClick(t)})}else this.handleCarousel()}handleCarousel(t){const e=t||this.container,a=e.querySelectorAll("[data-product-item]");let o;this.options={slidesPerView:1,loop:!1,speed:100,scrollbar:{enabled:!1},breakpoints:{1024:{slidesPerView:4},720:{slidesPerView:3},480:{slidesPerView:2}},on:{init(){setTimeout(()=>{let t=0;for(let e of a){let a=(0,i.DK)(e.querySelector('[data-selector="product-name-anchor"]'));t=a>t?a:t}for(let e of a)e.querySelector('[data-selector="product-name"]').style.height=t+"px"},100)}}},setTimeout(async()=>{e.matches(".swiper-initialized")||(o=await(0,s.N)(e,this.options)),this.container.classList.add("is-active")},10)}handleClick(t){const e=t.getAttribute("data-tab"),a=document.querySelector(`[data-tab-content="${e}"]`);this.handleCarousel(a)}}}}]);
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.