1(()=>{(function(){"use strict";document.documentElement.classList.add("wh1-js");let N=null;function K(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function Q(){return navigator.standalone===!0||window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches}function $(){return{wrapper:document.querySelector("[data-kussin-pwa-install-wrapper]"),button:document.querySelector("[data-kussin-pwa-install]"),modal:document.querySelector("[data-kussin-pwa-modal]")}}function D(e){let{wrapper:r,button:n}=$();!r||!n||(r.hidden=!e,n.disabled=!e)}function Le(e){!e||!window.bootstrap||!window.bootstrap.Modal||window.bootstrap.Modal.getOrCreateInstance(e).show()}async function Ae(){let{modal:e}=$();if(K()){Le(e);return}if(!N){D(!1);return}let r=N;N=null,await r.prompt(),await r.userChoice,D(!1)}function z(){let{button:e}=$();if(!(!e||e.dataset.kussinPwaBound==="1")){if(e.dataset.kussinPwaBound="1",e.addEventListener("click",Ae),Q()){D(!1);return}D(K()||!!N)}}function J(){if(document.documentElement.dataset.kussinFactFinderHeaderFocusBound==="1")return;document.documentElement.dataset.kussinFactFinderHeaderFocusBound="1";let e=t=>t&&t.closest?t.closest(".kussin-factfinder-search-overlay-trigger"):null,r=()=>document.querySelector(".kussin-factfinder-search-overlay-wrapper"),n=t=>t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}));document.addEventListener("keydown",t=>{let s=e(t.target),i=r();if(!s||!i||i.contains(s)||t.altKey||t.ctrlKey||t.metaKey)return;let a=t.target.matches('input[type="text"]')?t.target:null,f=t.key.length===1?t.key:"";if(!(f!==""||t.key==="ArrowDown"||t.key==="Enter"&&(!a||a.value.trim()===""))||(t.preventDefault(),n(s),f===""))return;let w=i.querySelector("#ffSearchParam");w&&window.setTimeout(()=>{w.value=f,w.dispatchEvent(new Event("input",{bubbles:!0})),w.setSelectionRange(w.value.length,w.value.length)},0)}),document.addEventListener("keydown",t=>{var i;if(t.key!=="Escape"||!document.body.classList.contains("kussin-factfinder-search-overlay-active"))return;let s=document.querySelector(".kussin-factfinder-search-overlay-close");s&&(t.preventDefault(),s.click(),(i=document.querySelector('.kussin-factfinder-search-overlay-trigger input[type="text"]'))==null||i.focus())})}function Z(){let e=document.getElementById("kussinFactFinderMobileAsnOverlay"),r=Array.from(document.querySelectorAll("[data-kussin-factfinder-mobile-asn-trigger]"));if(!e||r.length===0||e.dataset.kussinFactfinderBound==="1")return;e.dataset.kussinFactfinderBound="1";let n=e.querySelector(".kussin-factfinder-asn-overlay-dialog"),t=e.querySelector(".kussin-factfinder-asn-overlay-close"),s=e.querySelector("[data-kussin-factfinder-asn-overlay-title]"),i=r.find(b=>b.dataset.kussinFactfinderMobileAsnTrigger==="category"),a=window.matchMedia("(max-width: 991.98px)"),f=null,m=null,w=()=>{m||(m={x:window.scrollX,y:window.scrollY},document.documentElement.style.setProperty("--kussin-factfinder-asn-scroll-x",`${m.x}px`),document.documentElement.style.setProperty("--kussin-factfinder-asn-scroll-y",`${m.y}px`),document.body.classList.add("kussin-factfinder-asn-overlay-active"),document.documentElement.classList.add("kussin-factfinder-asn-overlay-active"))},d=()=>{let b=m;m=null,document.body.classList.remove("kussin-factfinder-asn-overlay-active"),document.documentElement.classList.remove("kussin-factfinder-asn-overlay-active"),document.documentElement.style.removeProperty("--kussin-factfinder-asn-scroll-x"),document.documentElement.style.removeProperty("--kussin-factfinder-asn-scroll-y"),b&&window.scrollTo(b.x,b.y)},l=b=>b.getAttribute("for-group")==="CategoryPathROOT",u=()=>e.querySelector('.kussin-factfinder-asn ff-asn-group[for-group="CategoryPathROOT"]'),k=()=>Array.from(e.querySelectorAll(".kussin-factfinder-asn ff-asn-group, .kussin-factfinder-asn ff-asn-group-slider")).find(b=>b.getAttribute("for-group")!=="CategoryPathROOT"),S=()=>{i&&(i.hidden=!u())},L=b=>{var M;let q=b==="category"?u():k();if(!q){t==null||t.focus();return}q.scrollIntoView({block:"start"}),(M=q.querySelector('[data-container="groupCaption"] [role="button"], .groupCaption[role="button"], [slot="groupCaption"][tabindex]')||t)==null||M.focus()},p=()=>
1{if(T(),e.classList.remove("is-active"),e.setAttribute("aria-hidden","true"),e.removeAttribute("data-kussin-factfinder-active-mode"),n&&(n.removeAttribute("role"),n.removeAttribute("aria-modal"),n.removeAttribute("aria-label")),r.forEach(b=>b.setAttribute("aria-expanded","false")),f){let b=f;f=null,b.focus({preventScroll:!0})}d(),document.dispatchEvent(new CustomEvent("kussin-factfinder-asn-overlay-closed"))},g=()=>{if(a.matches){e.classList.contains("is-active")||e.setAttribute("aria-hidden","true");return}T(),e.classList.remove("is-active"),e.removeAttribute("aria-hidden"),e.removeAttribute("data-kussin-factfinder-active-mode"),r.forEach(b=>b.setAttribute("aria-expanded","false")),f=null,n&&(n.removeAttribute("role"),n.removeAttribute("aria-modal"),n.removeAttribute("aria-label")),d()},y=e.querySelector("[data-kussin-factfinder-asn-overlay-count]"),v=e.querySelector("[data-kussin-factfinder-asn-overlay-cloud]"),o=e.querySelector("[data-kussin-factfinder-asn-overlay-more]"),c=e.querySelector("[data-kussin-factfinder-asn-overlay-apply]"),h=document.querySelector(".ff-filtercloud-wrapper"),E=4,A=()=>Array.from(e.querySelectorAll(".kussin-factfinder-asn ff-asn-group, .kussin-factfinder-asn ff-asn-group-slider")),C=()=>{if(!y)return;let b=document.querySelector(".kussin-factfinder-list-heading .kussin-factfinder-resultcount"),q=b?b.textContent.replace(/\s+/g," ").trim():"";y.textContent=q,y.hidden=q===""},x=()=>{let b=h&&h.querySelector("ff-filter-cloud");!v||!b||(v.appendChild(b),v.hidden=!1,P())},T=()=>{let b=v&&v.querySelector("ff-filter-cloud");b&&h&&h.appendChild(b),v&&(v.hidden=!0)},R=()=>{let b=new Set,q=M=>{String(M||"").split(",").forEach(I=>{let B=I;try{B=decodeURIComponent(I.replace(/\+/g," "))}catch(W){return}let O=B.match(/^filter=CategoryPath(?:ROOT)?:(.+)$/i);O&&O[1].split("/").forEach(W=>b.add(W.trim().toLowerCase()))})},F=document.querySelector("ff-communication");return q(F?F.getAttribute("add-params"):""),new URLSearchParams(window.location.search).getAll("filter").forEach(M=>q(`filter=${M}`)),b},P=()=>{let b=document.querySelector("ff-filter-cloud");if(!b)return;let q=R(),F=new Set(A().filter(I=>!l(I)).map(I=>{let B=I.querySelector('[data-container="groupCaption"], .groupCaption, [slot="groupCaption"]');return B?B.textContent.trim():""}).filter(Boolean)),M=0;b.querySelectorAll(".kussin-factfinder-filtercloud-item").forEach(I=>{let B=I.querySelector(".kussin-factfinder-filtercloud-name"),O=I.querySelector(".kussin-factfinder-filtercloud-group"),W=!!B&&q.has(B.textContent.trim().toLowerCase())&&!(O&&F.has(O.textContent.trim()));I.classList.toggle("is-category",W),W||(M+=1)}),b.classList.toggle("is-category-only",M===0)},_=new MutationObserver(()=>window.requestAnimationFrame(P));(()=>{let b=document.querySelector("ff-filter-cloud");b&&(_.observe(b,{childList:!0,subtree:!0}),P())})();let Ge=b=>{e.classList.add("is-collapsing"),A().forEach(q=>q.classList.remove("is-beyond-fold")),A().forEach((q,F)=>{let M=l(q);if(M&&b!=="category")return;let I=q.querySelector(".ffw-wrapper"),B=M&&b==="category",O=q.querySelector('[data-container="groupCaption"] > *');I&&!B&&I.hasAttribute("opened")&&O&&O.click(),B||q.removeAttribute("opened"),I&&B&&!I.hasAttribute("opened")&&(q.removeAttribute("opened"),O&&O.click())}),A().filter(q=>!l(q)).forEach((q,F)=>{q.classList.toggle("is-beyond-fold",F>=E)}),e.offsetHeight,e.classList.remove("is-collapsing"),e.classList.remove("is-showing-all-groups"),o&&(o.hidden=A().filter(q=>!l(q)).length<=E)},$e=b=>{if(b.target instanceof Element&&b.target.closest(".introjs-tooltip, .introjs-tooltipReferenceLayer"))return;let q=window.kussinIntroTours;q&&Object.keys(q).forEach(F=>{let M=q[F]&&q[F].instance;M&&typeof M.exit=="function"&&M.exit()})};e.addEventListener("pointerdown",$e,!0);let ze=()=>{A().forEach(b=>b.classList.remove("is-beyond-fold")),e.classList.add("is-showing-all-groups"),o&&(o.hidden=!0)},Ue=b=>{let q=b.dataset.kussinFactfinderMobileAsnTrigger,F=q==="category"?e.dataset.kussinFactfinderCategoryLabel:e.dataset.kussinFactfinderFilterLabel;f=b,r.forEach(M=>M.setAttribute("aria-expanded",M===b?"true":"false")),w(),e.classList.add("is-active"),e.setAttribute("aria-hidden","false"),e.dataset.kussinFactfinderActiveMode=q,s&&(s.textContent=F||""),n&&(n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label",F||"")),e.classList.add("is-preparing"),C(),x(),window.requestAnimationFrame(()=>{Ge(q),window.requestAnimationFrame(()=>e.classList.remove("is-preparing")),L(q)})};o==null||o.addEventListener("click",ze),c==null||c.addEventListener("click",()=>p()),document.addEventListener("dom-updated",()=>{window.requestAnimationFrame(P),e.classList.contains("is-active")&&window.requestAnimationFrame(C)}),r.forEach(b=>{b.addEventListener("click",()=>Ue(b))}),e.addEventListener("click",b=>{(b.target===e||b.target.closest&&b.target.closest(".kussin-factfinder-asn-overlay-close"))&&p()}),document.addEventListener("keydown",b=>{b.key==="Escape"&&e.classList.contains("is-active")&&p()}),document.addEventListener("WebComponentsReady",S),document.addEventListener("dom-updated",b=>{b.target&&b.target.matches&&b.target.matches("ff-asn")&&(S(),e.classList.contains("is-active")&&document.activeElement===t&&L(e.dataset.kussinFactfinderActiveMode))}),typeof a.addEventListener=="function"?a.addEventListener("change",g):typeof a.addListener=="function"&&a.addListener(g),S(),g()}let Ce="#kussin-factfinder-listing",qe=".kussin-factfinder-record-list",xe=".ff-filtercloud-wrapper";function V(){return U&&document.querySelector(U)||document.querySelector(xe)||document.querySelector(qe)||document.getElementById("wh1-products")}let ee=".kussin-factfinder-list-toolbar",U=null;function Y(){let e=document.elementsFromPoint(Math.round(window.innerWidth/2),1)||[],r=0;return e.forEach(n=>{let t=window.getComputedStyle(n).position;if(t!=="fixed"&&t!=="sticky")return;let s=n.getBoundingClientRect();s.height>window.innerHeight*.3||(r=Math.max(r,s.bottom))}),r}function Me(e){let r=V();if(!r)return!1;let n=Math.round(r.getBoundingClientRect().top-Y());return Math.abs(n)<2?!1:(window.scrollBy({top:n,behavior:e?"smooth":"auto"}),!0)}function H(e,r){if(U=r||null,!V())return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||e==="auto"){Me(!1),j();return}te()}function te(){let e=["wheel","touchstart","keydown"],r=Date.now()+3e3,n=!1,t=0,s=null;function i(){e.forEach(m=>window.removeEventListener(m,a)),s&&(window.cancelAnimationFrame(s),s=null)}function a(){n=!0,i()}function f(){if(n)return;let m=V();if(!m||Date.now()>r){i(),j();return}let w=Math.round(m.getBoundingClientRect().top-Y());if(Math.abs(w)<2){if(t+=1,t>12){i(),j();return}}else{t=0;let d=w>0?Math.max(1,Math.round(w*.2)):Math.min(-1,Math.round(w*.2));window.scrollBy(0,d)}s=window.requestAnimationFrame(f)}e.forEach(m=>window.addEventListener(m,a,{passive:!0})),s=window.requestAnimationFrame(f)}function j(){if(typeof ResizeObserver!="function")return;let e=null,r=!1,n=()=>{e&&(e.disconnect(),e=null)};e=new ResizeObserver(()=>{let t=V();if(!t||r)return;let s=Math.round(t.getBoundingClientRect().top-Y());Math.abs(s)<4||(r=!0,n(),te())}),e.observe(document.body),window.setTimeout(n,4e3)}function ne(){let e=document.getElementById("basket_form");if(!e)return;let r=e.querySelector("#kussinBasketSelectAll"),n=Array.from(e.querySelectorAll(".kussin-basket-select-item")),t=e.querySelector('[data-kussin-basket-action="remove"]'),s=e.querySelector('[data-kussin-basket-action="update"]');if(n.length===0)return;let i=()=>n.filter(m=>m.checked),a=()=>{let m=i().length;t&&(t.disabled=m===0),r&&(r.checked=m===n.length,r.indeterminate=m>0&&m<n.length)},f=()=>{let m=e.querySelector('input[name^="aproducts"][name$="[am]"]');m?m.dispatchEvent(new Event("change",{bubbles:!0})):e.submit()};
1n.forEach(m=>m.addEventListener("change",a)),r&&r.addEventListener("change",()=>{n.forEach(m=>{m.checked=r.checked}),a()}),t&&t.addEventListener("click",()=>{let m=i();m.length!==0&&(m.forEach(w=>{let d=e.querySelector('input[name="aproducts['+w.dataset.kussinBasketRow+'][am]"]');d&&(d.value=0)}),f())}),s&&s.addEventListener("click",f),a()}function Ie(e){if(!e||e.dataset.kussinPanels==="1"||!e.querySelector(":scope > h2"))return;e.dataset.kussinPanels="1";let r=null,n=t=>t.tagName==="H2"||t.querySelector&&t.querySelector("h2")!==null;Array.from(e.children).forEach(t=>{if(t.classList.contains("kussin-checkout-panel")||t.querySelector(".kussin-checkout-panel")!==null){r=null;return}n(t)&&(r=document.createElement("div"),r.className="kussin-checkout-panel",e.insertBefore(r,t)),r&&r.appendChild(t)})}function Fe(){let e=document.getElementById("orderAddress");[document.getElementById("addressForm"),document.getElementById("user_form"),document.getElementById("payment"),document.getElementById("shipping"),e,e?e.closest(".card"):null].forEach(Ie)}function Te(){document.addEventListener("click",e=>{let r=e.target.closest("[data-kussin-step-submit]");if(!r)return;let n=document.getElementById(r.dataset.kussinStepSubmit);n&&(e.preventDefault(),n.requestSubmit?n.requestSubmit():n.submit())})}var se={};function re(e,r,n){e.innerHTML=n,e.setAttribute("data-kussin-live-loaded","");var t=e.querySelector("#basketModal[data-kussin-flyout-open]");t&&(t.removeAttribute("data-kussin-flyout-open"),window.bootstrap&&window.bootstrap.Modal&&window.bootstrap.Modal.getOrCreateInstance(t).show()),window.dispatchEvent(new CustomEvent("kussinHeaderWidgetLoaded",{detail:{widget:r,wrapper:e}}))}function oe(e){var r=document.querySelectorAll("[data-kussin-live-widget]");if(!(!r.length||typeof window.fetch!="function")){var n=(window.WH1_SHOP_URL||"/").replace(/\/+$/,"/")||"/",t=document.documentElement.getAttribute("lang")==="en"?1:0;Array.prototype.forEach.call(r,function(s){var i=s.getAttribute("data-kussin-live-widget"),a=s.getAttribute("data-kussin-live-params")||"",f=i+"?"+a,m=se[f],w=s.hasAttribute("data-kussin-live-loaded")||s.hasAttribute("data-kussin-live-pending");if(!(w&&i!==e)&&(m&&!s.hasAttribute("data-kussin-live-loaded")&&re(s,i,m),!(m&&i!==e))){var d=n+"widget.php?cl="+encodeURIComponent(i)+"&lang="+t+"&nocookie=1&time="+Date.now()+(a?"&"+a:"");s.setAttribute("data-kussin-live-pending",""),fetch(d,{credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(l){return l.ok?l.text():null}).then(function(l){if(s.removeAttribute("data-kussin-live-pending"),l!==null){var u=l.trim();u&&(re(s,i,u),se[f]=s.innerHTML)}}).catch(function(){s.removeAttribute("data-kussin-live-pending")})}})}}function ie(){document.querySelectorAll('a.wh1-cat-hero-link, a[href="#wh1-products"]').forEach(i=>{i.addEventListener("click",a=>{V()&&(a.preventDefault(),H("smooth"))})}),window.wmdkAsnScrollToListing=function(){H("smooth")};let e=document.querySelector(Ce);if(!e)return;let r=!1,n=!1,t=!1,s=()=>!!document.querySelector(".kussin-factfinder-asn-overlay.is-active");e.addEventListener("click",i=>{i.target.closest&&(i.target.closest(".kussin-factfinder-pagination")?r=!0:i.target.closest("ff-asn, ff-filter-cloud")&&(n=!0))},!0),document.addEventListener("dom-updated",i=>{let a=i.target;if(!(!a||!a.matches||!a.matches("ff-record-list"))){if(r){r=!1,n=!1,window.requestAnimationFrame(()=>H("auto"));return}if(n){if(n=!1,s()){t=!0;return}window.requestAnimationFrame(()=>H("smooth",ee))}}}),document.addEventListener("kussin-factfinder-asn-overlay-closed",()=>{t&&(t=!1,window.requestAnimationFrame(()=>H("smooth",ee)))})}function ae(){let e=window.KUSSIN_FACTFINDER_ASN_TOOLTIPS;if(!e||typeof e!="object")return;let r="wh1-asn-tooltip-bubble",n=null,t=null,s=()=>n||(n=document.createElement("div"),n.id=r,n.className="wh1-asn-tooltip-bubble",n.setAttribute("role","tooltip"),n.hidden=!0,n.innerHTML='<span class="wh1-asn-tooltip-caret"></span><span class="wh1-asn-tooltip-text"></span>',document.body.appendChild(n),n),i=()=>
1{if(!t||!n)return;let l=t.getBoundingClientRect(),u=10;n.style.left="0px",n.style.top="0px";let k=n.getBoundingClientRect(),S=8,L=l.left+l.width/2-k.width/2;L=Math.max(S,Math.min(L,window.innerWidth-k.width-S));let p=l.bottom+u,g=!1;p+k.height>window.innerHeight-S&&l.top-u-k.height>S&&(p=l.top-u-k.height,g=!0),n.style.left=`${Math.round(L)}px`,n.style.top=`${Math.round(p)}px`,n.classList.toggle("is-above",g);let y=n.querySelector(".wh1-asn-tooltip-caret");y&&(y.style.left=`${Math.round(l.left+l.width/2-L)}px`)},a=()=>{t&&(t.removeAttribute("aria-describedby"),t.setAttribute("aria-expanded","false"),t=null,n&&(n.hidden=!0))},f=l=>{let u=l.getAttribute("data-tooltip");if(!u)return;let k=s();k.querySelector(".wh1-asn-tooltip-text").textContent=u,k.hidden=!1,t=l,l.setAttribute("aria-describedby",r),l.setAttribute("aria-expanded","true"),i()},m=l=>{let u=document.createElement("button");return u.type="button",u.className="wh1-asn-tooltip",u.setAttribute("data-tooltip",l),u.setAttribute("aria-label",l),u.setAttribute("aria-expanded","false"),u.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="8" fill="currentColor"/><rect x="7.1" y="6.6" width="1.8" height="5.6" rx="0.9" fill="#fff"/><circle cx="8" cy="4.3" r="1.1" fill="#fff"/></svg>',u.addEventListener("pointerenter",k=>{k.pointerType==="mouse"&&f(u)}),u.addEventListener("pointerleave",k=>{k.pointerType==="mouse"&&a()}),u.addEventListener("focus",()=>f(u)),u.addEventListener("blur",a),u},w=()=>{document.querySelectorAll("ff-asn-group-element").forEach(l=>{let u=l.querySelectorAll(".filterName");u.length||(u=l.querySelectorAll('[slot="unselected"], [slot="selected"]')),u.forEach(k=>{if(k.querySelector(".wh1-asn-tooltip"))return;let S=e[k.textContent.trim().toLowerCase()];S&&k.appendChild(m(S))})})};w(),document.addEventListener("dom-updated",()=>{a(),window.requestAnimationFrame(w)});let d=l=>{let u=l.target instanceof Element?l.target.closest(".wh1-asn-tooltip"):null;return u?((!("pointerType"in l)||l.pointerType==="mouse")&&l.preventDefault(),l.stopPropagation(),l.stopImmediatePropagation(),u):(l.type==="click"&&a(),null)};["pointerdown","mousedown","mouseup"].forEach(l=>{document.addEventListener(l,d,!0)}),document.addEventListener("click",l=>{let u=d(l);u&&(t===u?a():f(u))},!0),document.addEventListener("keydown",l=>{l.key==="Escape"&&a()}),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i)}function ce(){let e=["Terrain","Schwung","Swing","Speed"],r=window.matchMedia("(min-width: 992px)"),n=()=>{r.matches&&document.querySelectorAll(".kussin-factfinder-asn ff-asn-group-slider").forEach(t=>{if(e.indexOf(t.getAttribute("for-group"))===-1||t.dataset.kussinRatingOpened==="1")return;let s=t.querySelector(".ffw-wrapper"),i=t.querySelector('[data-container="groupCaption"] > *');!s||!i||s.hasAttribute("opened")||(t.dataset.kussinRatingOpened="1",i.click())})};window.requestAnimationFrame(n),document.addEventListener("dom-updated",()=>window.requestAnimationFrame(n))}function le(){let e=/^(cm|mm|m|km|g|kg|t|l|ml|â¬|%|"|inch|in)$/i,r=()=>{document.querySelectorAll("ff-asn-group-slider input").forEach(n=>{let t=/^\s*([\d.,]+)\s+(\S+)\s*$/.exec(n.value||"");!t||e.test(t[2])||(n.value=t[1])})};r(),document.addEventListener("dom-updated",()=>window.requestAnimationFrame(r)),document.addEventListener("input",n=>{n.target instanceof Element&&n.target.closest("ff-asn-group-slider")&&window.requestAnimationFrame(r)},!0),document.addEventListener("pointerdown",n=>{if(!(n.target instanceof Element)||!n.target.closest("ff-asn-group-slider"))return;let t=!0,s=()=>{t&&(r(),window.requestAnimationFrame(s))},i=()=>{t=!1,r(),document.removeEventListener("pointerup",i),document.removeEventListener("pointercancel",i)};document.addEventListener("pointerup",i),document.addEventListener("pointercancel",i),window.requestAnimationFrame(s)},!0)}function ue(){if(document.body.classList.contains("cl-manufacturerlist")||document.body.classList.contains("cl-vendorlist"))return;let e=document.querySelector(".wh1-cat-hero-title"),r=document.querySelector(".kussin-factfinder-list-title");if(!e&&!r)return;let n=()=>(e||r).textContent.trim(),t=()=>{let a=document.querySelectorAll('ff-asn-group[for-group="CategoryPathROOT"] .ffw-asn-selected');return a.length?a[a.length-1].textContent.trim():""},s=!1,i=()=>{let a=t();if(!a||s||a===n())return;s=!0;let f=encodeURIComponent(a.replace(/&/g,"wmdk_and")),m=window.WH1_SELF_LINK||"index.php?",w=/[?&]$/.test(m)?""
1:m.includes("?")?"&":"?";fetch(`${m}${w}cl=articlelistajax&fnc=getCategoryByName&catname=${f}`,{credentials:"same-origin"}).then(d=>d.ok?d.json():null).then(d=>{if(!d||!d.success||!d.title)return;e&&(e.textContent=d.title),r&&(r.textContent=d.title);let l=document.querySelector(".breadcrumb-wrapper .breadcrumb"),u=Array.isArray(d.breadcrumb)?d.breadcrumb:[];if(l&&u.length){let L=l.querySelectorAll("li");for(let p=L.length-1;p>=1;p-=1)L[p].remove();u.forEach((p,g)=>{let y=document.createElement("li");if(y.className="breadcrumb-item",g===u.length-1)y.classList.add("active"),y.textContent=p.title;else{let v=document.createElement("a");v.className="breadcrumb-link",v.href=p.link||"#",v.title=p.title,v.textContent=p.title,y.appendChild(v)}l.appendChild(y)})}let k=document.querySelector(".wh1-cat-hero-img");k&&d.image&&(k.src=d.image,k.alt=k.alt.replace(/[â"][^â"]*[â"]/,`\u201C${d.title}\u201D`));let S=document.querySelector(".wh1-cat-hero-picture");if(S){let L=S.querySelector("source");d.mobileimage?(L||(L=document.createElement("source"),L.media="(max-width: 991.98px)",S.insertBefore(L,S.firstElementChild)),L.srcset=d.mobileimage):L&&L.remove()}}).catch(()=>{}).finally(()=>{s=!1})};document.addEventListener("dom-updated",()=>window.requestAnimationFrame(i))}let Be={Preis:"\u20AC",Price:"\u20AC","Wakeboard L\xE4nge":"cm","Wakeboard length":"cm","Snowboard L\xE4nge":"cm","Snowboard length":"cm","Snowboard L\xE4nge (Set)":"cm","Snowboard Set length":"cm","Ski L\xE4nge":"cm","Ski length":"cm","Stock L\xE4nge":"cm","Ski pole length":"cm","SUP Fahrergewicht":"kg","SUP rider weight":"kg","SUP Volumen":"Liter","SUP Volume":"Liter"};function de(){let e=()=>{document.querySelectorAll(".kussin-factfinder-filtercloud-item").forEach(r=>{let n=r.querySelector(".kussin-factfinder-filtercloud-name"),t=r.querySelector(".kussin-factfinder-filtercloud-group");if(!n||!t)return;let s=n.textContent;if(!s.includes("["))return;let i=Be[t.textContent.trim()],a=s.replace(/\[/g,"").replace(/\]/g,"").replace(/\.00/g,"").trim();n.textContent=i?`${a} ${i}`:a})};e(),document.addEventListener("dom-updated",()=>window.requestAnimationFrame(e))}function Pe(){let e=document.querySelectorAll(".cmsContent");if(!e.length)return;let r=n=>{let t=[];return e.forEach(s=>t.push(...s.querySelectorAll(n))),t};r('[data-toggle="collapse"]:not([data-bs-toggle])').forEach(n=>{n.setAttribute("data-bs-toggle","collapse");let t=n.getAttribute("data-target");t&&!n.hasAttribute("data-bs-target")&&n.setAttribute("data-bs-target",t);let s=n.getAttribute("data-parent");s&&!n.hasAttribute("data-bs-parent")&&n.setAttribute("data-bs-parent",s)}),r('[data-bs-toggle="collapse"][data-bs-parent]').forEach(n=>{let t=n.getAttribute("data-bs-parent"),s=n.getAttribute("data-bs-target")||n.getAttribute("href");if(!t||!s||s.charAt(0)!=="#")return;let i=null;try{i=document.querySelector(s)}catch(a){return}i&&!i.hasAttribute("data-bs-parent")&&i.setAttribute("data-bs-parent",t)})}function Re(){new URLSearchParams(window.location.search).get("headline")&&document.querySelectorAll(".categoryDescription .masonry-wrapper, .dd-shortcode-wmdksaleoftheday").forEach(r=>{r.style.display="none"})}function Oe(){let e=document.querySelector("#catLongDescLocator"),r=e?e.closest(".wh1-cat-description"):null;if(!r)return;let n=()=>{r.classList.remove("wh1-cat-description--empty"),e.getBoundingClientRect().height===0&&r.classList.add("wh1-cat-description--empty")};n(),window.addEventListener("load",n,{once:!0})}function Ne(){let e=document.querySelectorAll("[data-wh1-countdown-until]");if(!e.length)return;let r=t=>String(t).padStart(2,"0"),n=()=>{e.forEach(t=>{let s=Date.parse(t.getAttribute("data-wh1-countdown-until").replace(/-/g,"/"));if(Number.isNaN(s))return;let i=Math.max(0,s-Date.now());t.textContent=[Math.floor(i/36e5),Math.floor(i%36e5/6e4),Math.floor(i%6e4/1e3)].map(r).join(":")})};n(),window.setInterval(n,1e3)}function De(){let e=document.querySelectorAll(".slom_newsletter > div:nth-child(2)");e.length&&document.addEventListener("click",r=>{r.target.closest("a.showmore")&&(r.preventDefault(),e.forEach(t=>{let s=window.getComputedStyle(t).display==="none";t.style.display=s?"flex":"",s&&t.scrollIntoView({behavior:"smooth",block:"start"})}))})}function _e(){let e=document.querySelectorAll(".subcat-tile-img");if(!e.length)return;let r=t=>
1t.naturalWidth>0&&t.naturalWidth<=200&&t.naturalWidth===t.naturalHeight,n=t=>{let s=t.currentSrc||t.src||"",i=Number(t.getAttribute("data-tile-fallback")||0),a=s.split("/").pop();return i===0&&s.includes("/1140_250_90/")?s.replace("/1140_250_90/","/261_126_90/"):i<=1&&s.includes("/261_126_90/")&&!a.startsWith("wmdkresized_")?s.replace(a,"wmdkresized_"+a):null};e.forEach(t=>{let s=()=>{if(!r(t))return;let i=n(t);i&&(t.setAttribute("data-tile-fallback",String(Number(t.getAttribute("data-tile-fallback")||0)+1)),t.src=i)};t.addEventListener("load",s),t.complete&&s()})}function fe(){let e=document.getElementById("wh1-back-to-top");if(!e)return;e.hidden=!1;let r=()=>window.innerHeight*.75,n=()=>{e.classList.toggle("is-visible",window.scrollY>r())};e.addEventListener("click",()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:t?"auto":"smooth"})}),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),n()}function me(){let e=document.querySelector("[data-kussin-mobile-header]"),r=e?e.querySelector(":scope > [data-kussin-mobile-header-inner]"):null;if(!e||!r||e.dataset.kussinMobileHeaderBound==="1")return;e.dataset.kussinMobileHeaderBound="1";let n=window.matchMedia("(max-width: 991.98px)"),t=200,s=0,i=0,a=!1,f=0,m=!1,w=()=>{window.clearTimeout(f),m=!1,e.classList.remove("is-mobile-compact"),e.removeAttribute("data-kussin-mobile-header-fixed"),e.style.removeProperty("height"),s=0,i=0},d=()=>{if(!n.matches||e.classList.contains("is-mobile-compact"))return;let L=r.getBoundingClientRect();s=L.height,i=window.innerWidth,e.style.height=`${L.height}px`},l=()=>{window.clearTimeout(f),m=!0,f=window.setTimeout(()=>{m=!1,d()},t)},u=()=>{let L=e.classList.contains("is-mobile-compact");if(!n.matches){w(),a=!1;return}(s===0||i!==window.innerWidth&&!L)&&d();let p=e.getBoundingClientRect().top+window.scrollY,g=window.scrollY>p;g&&!L?(window.clearTimeout(f),e.dataset.kussinMobileHeaderFixed="1",e.classList.add("is-mobile-compact")):!g&&L&&(e.classList.remove("is-mobile-compact"),e.removeAttribute("data-kussin-mobile-header-fixed"),l()),a=!1},k=()=>{a||(a=!0,window.requestAnimationFrame(u))},S=typeof ResizeObserver=="function"?new ResizeObserver(()=>{n.matches&&!e.classList.contains("is-mobile-compact")&&!m&&i===window.innerWidth&&d()}):null;S&&S.observe(r),window.addEventListener("scroll",k,{passive:!0}),window.addEventListener("resize",k,{passive:!0}),typeof n.addEventListener=="function"?n.addEventListener("change",k):n.addListener(k),u()}function pe(){document.documentElement.dataset.kussinVariantOptionsBound!=="1"&&(document.documentElement.dataset.kussinVariantOptionsBound="1",document.addEventListener("click",e=>{let r=e.target.closest?e.target.closest("[data-kussin-variant-value]"):null,n=r?r.closest(".kussin-product-variant-group"):null,t=n?n.querySelector(".kussin-product-variant-select"):null;!r||r.disabled||!t||(t.value=r.dataset.kussinVariantValue,n.querySelectorAll("[data-kussin-variant-value]").forEach(s=>{let i=s===r;s.classList.toggle("is-active",i),s.setAttribute("aria-pressed",i?"true":"false")}),t.dispatchEvent(new Event("change",{bubbles:!0})))}))}function Ve(){if(document.documentElement.dataset.kussinDefectiveCopiesBound==="1")return;document.documentElement.dataset.kussinDefectiveCopiesBound="1";let e=()=>{document.querySelectorAll(".js-oxProductForm").forEach(n=>{let t=n.querySelector('[data-kussin-defective-copies] input[type="checkbox"]'),s=n.querySelector("#toBasket");s==null||s.classList.toggle("kussin-agreement-required",!!(t&&!t.checked))})},r=n=>{var a,f;let t=n.type==="click"?(f=(a=n.target).closest)==null?void 0:f.call(a,"#toBasket"):null,s=(t==null?void 0:t.form)||(n.type==="submit"?n.target:null),i=s==null?void 0:s.querySelector('[data-kussin-defective-copies] input[type="checkbox"]');!i||i.checked||(n.preventDefault(),n.stopImmediatePropagation(),i.scrollIntoView({block:"center",behavior:"smooth"}),i.reportValidity())};document.addEventListener("click",r,!0),document.addEventListener("submit",r,!0),document.addEventListener("change",n=>{n.target.id==="kussinDefectiveCopiesAgreement"&&e()}),document.addEventListener("dom-updated",e),document.addEventListener("DOMContentLoaded",e),window.addEventListener("pageshow",e),e()}function he(){if(document.documentElement.dataset.kussinStickyCartBound==="1")return;document.documentElement.dataset.kussinStickyCartBound="1";let e=document.documentElement,r=window.matchMedia("(max-width: 991.98px)"),n=window.matchMedia("(prefers-reduced-motion: reduce)"),t=null,s=null,i=null,a=null,f=null,m=null,w=null,d=!1,l=()=>
1{i&&(i.classList.remove("kussin-sticky-cart-discount"),!(!i.isConnected||!(a!=null&&a.isConnected)||i.parentNode===a)&&((f==null?void 0:f.parentNode)===a?a.insertBefore(i,f):a.append(i)))},u=()=>{!i||!s||(i.classList.add("kussin-sticky-cart-discount"),i.parentNode!==s&&s.insertBefore(i,s.firstChild))},k=()=>{let o=s.getBoundingClientRect(),c=o.top;if(i!=null&&i.isConnected&&i.parentNode===s){let h=i.getBoundingClientRect();h.height>0&&(c=Math.min(c,h.top))}e.style.setProperty("--kussin-sticky-cart-height",`${o.height}px`),e.style.setProperty("--kussin-sticky-cart-clearance",`${Math.max(o.height,o.bottom-c)}px`)},S=()=>{e.style.removeProperty("--kussin-sticky-cart-height"),e.style.removeProperty("--kussin-sticky-cart-clearance")},L=()=>{typeof ResizeObserver=="function"&&(w==null||w.disconnect(),w=new ResizeObserver(()=>{t!=null&&t.classList.contains("is-sticky")&&k()}),s&&w.observe(s),i!=null&&i.isConnected&&w.observe(i))},p=o=>{if(!t||!s){l(),e.classList.remove("kussin-sticky-cart-active"),w==null||w.disconnect(),S();return}if(!o){l(),t.classList.remove("is-sticky"),t.style.removeProperty("--kussin-sticky-cart-anchor-height"),e.classList.remove("kussin-sticky-cart-active"),w==null||w.disconnect(),S();return}t.style.setProperty("--kussin-sticky-cart-anchor-height",`${s.getBoundingClientRect().height}px`),u(),t.classList.add("is-sticky"),e.classList.add("kussin-sticky-cart-active"),window.requestAnimationFrame(()=>{t!=null&&t.classList.contains("is-sticky")&&(k(),L())})},g=()=>{if(!t||!s||!r.matches){p(!1);return}p(t.getBoundingClientRect().bottom<=0)},y=()=>{d=!1;let o=document.querySelector("[data-kussin-sticky-cart]"),c=o?o.querySelector(".tobasketFunction, .tobasket-function"):null,h=c?c.querySelector("#toBasket"):null,E=o?o.closest(".kussin-product-purchase"):null,A=E?E.querySelector(".wmdk-discount-rate"):null;if(o===t&&c===s&&A===i){g();return}m&&(m.disconnect(),m=null),w&&(w.disconnect(),w=null),p(!1),t=h?o:null,s=h?c:null,i=h?A:null,a=i?i.parentNode:null,f=i?i.nextSibling:null,!(!t||!s)&&(m=new IntersectionObserver(C=>{let x=C[0];p(r.matches&&!x.isIntersecting&&x.boundingClientRect.bottom<=0)}),m.observe(t),g())},v=()=>{d||(d=!0,window.requestAnimationFrame(y))};document.addEventListener("dom-updated",v),document.addEventListener("click",o=>{let c=o.target.closest?o.target.closest("#toBasket.not-saleable"):null;if(!c||!(t!=null&&t.classList.contains("is-sticky"))||!t.contains(c))return;let h=document.querySelector(".kussin-product-variant-group"),E=h?h.querySelector("[data-kussin-variant-value]:not(:disabled)"):null;h&&(o.preventDefault(),h.scrollIntoView({behavior:n.matches?"auto":"smooth",block:"center"}),E==null||E.focus({preventScroll:!0}))}),window.addEventListener("resize",v,{passive:!0}),typeof r.addEventListener=="function"?r.addEventListener("change",g):r.addListener(g),y()}function ge(){document.documentElement.dataset.kussinProductPanelsBound!=="1"&&(document.documentElement.dataset.kussinProductPanelsBound="1",document.addEventListener("click",e=>{let r=e.target.closest?e.target.closest(".kussin-product-information-trigger, [data-kussin-product-panel-open]"):null,n=r?r.closest("[data-kussin-product-panel]"):null,t=n?n.querySelector(".kussin-product-information-trigger"):null,s=n?n.querySelector("[data-kussin-product-panel-content]"):null;if(!r||!n||!t)return;let i=r.hasAttribute("data-kussin-product-panel-open")||t.getAttribute("aria-expanded")!=="true";if(n.classList.toggle("is-open",i),t.setAttribute("aria-expanded",i?"true":"false"),s){let a=n.classList.contains("kussin-product-information-panel-preview");s.setAttribute("aria-hidden",i||a?"false":"true")}}))}function G(e,r){let n=e.tagName.toLowerCase(),t=document.createElement(n.includes("-")?"div":n);return t.className=e.className,t.innerHTML=e.innerHTML,t.dataset.kussinInfiniteClone=r,t.setAttribute("aria-hidden","true"),t.setAttribute("inert",""),t.querySelectorAll("[id]").forEach(s=>s.removeAttribute("id")),t.querySelectorAll("[name]").forEach(s=>s.removeAttribute("name")),t.querySelectorAll("input, select, textarea, button").forEach(s=>{s.disabled=!0}),t.querySelectorAll("iframe, video, .cmplazypreviewiframe").forEach(s=>s.remove()),t}function ye(){if(document.documentElement.dataset.kussinProductGalleryVideosBound==="1")return;document.documentElement.dataset.kussinProductGalleryVideosBound="1";let e=a=>Array.from(a.querySelectorAll(".wrap > figure[data-kussin-product-gallery-video]:not([data-kussin-infinite-clone])")),r=a=>{let f=a.getAttribute("src")||"";return f!==""&&f!=="about:blank"},n=a=>{e(a).filter(m=>m.dataset.kussinProductGalleryVideo==="youtube").some(m=>Array.from(m.querySelectorAll("iframe")).some(r))&&a.querySelectorAll("img[data-kussin-product-gallery-video-thumb]").forEach(m=>{let w=m.dataset.kussinProductGalleryVideoThumb;
1w&&m.getAttribute("src")!==w&&m.setAttribute("src",w)})},t=a=>{a.querySelectorAll("video").forEach(f=>{f.paused||f.pause()}),a.querySelectorAll("iframe").forEach(f=>{r(f)&&a.dataset.kussinProductGalleryVideoShown==="1"&&(a.dataset.kussinProductGalleryVideoShown="0",f.setAttribute("src",f.getAttribute("src")))})},s=a=>{let f=a.querySelector(".wrap");if(!f||typeof IntersectionObserver!="function"||a.dataset.kussinProductGalleryVideosWatched==="1")return;a.dataset.kussinProductGalleryVideosWatched="1";let m=new IntersectionObserver(w=>{w.forEach(d=>{if(d.isIntersecting&&d.intersectionRatio>=.5){d.target.dataset.kussinProductGalleryVideoShown="1";return}t(d.target)})},{root:f,threshold:[.5]});e(a).forEach(w=>m.observe(w))},i=(a=document)=>{let f=[];a instanceof Element&&a.matches("[data-kussin-product-gallery]")&&f.push(a),a.querySelectorAll&&f.push(...a.querySelectorAll("[data-kussin-product-gallery]")),[...new Set(f)].forEach(m=>{s(m),n(m)})};document.addEventListener("keydown",a=>{if(a.key!=="Enter"&&a.key!==" ")return;let f=a.target instanceof Element?a.target.closest(".kussin-product-gallery-video-thumb"):null;f&&(a.preventDefault(),f.click())}),typeof MutationObserver=="function"&&new MutationObserver(()=>i()).observe(document.documentElement,{attributes:!0,attributeFilter:["src"],subtree:!0}),document.addEventListener("dom-updated",a=>{i(a.target instanceof Element?a.target:document)}),i()}function ke(){if(document.documentElement.dataset.kussinProductGalleryBound==="1")return;document.documentElement.dataset.kussinProductGalleryBound="1";let e=window.matchMedia("(max-width: 767.98px)"),r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=new WeakSet,t=new WeakSet,s=new WeakMap,i=new WeakMap,a=p=>p.hasAttribute("data-kussin-product-gallery-infinite"),f=p=>Array.from(p.querySelectorAll(":scope > figure:not([data-kussin-infinite-clone])")),m=p=>{let g=p.querySelector(".wrap");if(!g)return!1;let y=f(g),v=g.querySelectorAll(":scope > [data-kussin-infinite-clone]"),o=e.matches&&a(p)&&y.length>1,c=i.get(p);return o&&c&&c.first===y[0]&&c.last===y[y.length-1]&&c.count===y.length&&v.length===2?!1:(v.forEach(E=>E.remove()),i.delete(p),o?(g.prepend(G(y[y.length-1],"before")),g.append(G(y[0],"after")),i.set(p,{first:y[0],last:y[y.length-1],count:y.length}),!0):v.length>0)},w=(p,g)=>{let y=p.querySelectorAll(".gallery-helper").length;return y===0?0:a(p)&&y>1?(g%y+y)%y:Math.max(0,Math.min(g,y-1))},d=(p,g)=>{let y=Array.from(p.querySelectorAll("[data-kussin-product-gallery-dot]")),v=Array.from(p.querySelectorAll(".gallery-helper")),o=w(p,g);y.forEach((c,h)=>{let E=h===o;c.classList.toggle("is-active",E),c.setAttribute("aria-current",E?"true":"false")}),v[o]&&(v[o].checked=!0)},l=p=>{let g=p.getBoundingClientRect(),y=g.left+g.width/2,v=f(p),o=0,c=Number.POSITIVE_INFINITY;return v.forEach((h,E)=>{let A=h.getBoundingClientRect(),C=Math.abs(A.left+A.width/2-y);C<c&&(c=C,o=E)}),o},u=p=>{let g=p.closest("[data-kussin-product-gallery]");g&&d(g,l(p))},k=(p,g,y=!1)=>{let v=p.querySelector(".wrap"),o=v?f(v):[],c=w(p,g),h=o[c];if(!v||!h)return;let E=v.getBoundingClientRect(),A=h.getBoundingClientRect(),C=A.left-E.left+v.scrollLeft;e.matches&&(C-=(v.clientWidth-A.width)/2),v.scrollTo({left:C,behavior:y?"instant":r.matches?"auto":"smooth"}),d(p,c)},S=(p,g=!1)=>{let y=Array.from(p.querySelectorAll(".gallery-helper")),v=Math.max(0,y.findIndex(o=>o.checked));k(p,v,g)};document.addEventListener("click",p=>{let g=p.target.closest?p.target.closest("[data-kussin-product-gallery-dot]"):null,y=g?g.closest("[data-kussin-product-gallery]"):null;!g||!y||!e.matches||k(y,Number(g.dataset.kussinProductGalleryDot))}),document.addEventListener("change",p=>{let g=p.target.closest?p.target.closest("[data-kussin-product-gallery] .gallery-helper"):null,y=g?g.closest("[data-kussin-product-gallery]"):null;if(!g||!y)return;let o=Array.from(y.querySelectorAll(".gallery-helper")).indexOf(g);d(y,o),e.matches&&k(y,o)}),document.addEventListener("scroll",p=>{let g=p.target instanceof Element&&p.target.matches("[data-kussin-product-gallery] .wrap")?p.target:null;!g||!e.matches||n.has(g)||(n.add(g),window.requestAnimationFrame(()=>{u(g),n.delete(g)}))},!0),document.addEventListener("touchstart",p=>{let g=p.target.closest?p.target.closest("[data-kussin-product-gallery] .wrap"):null,y=g?g.closest("[data-kussin-product-gallery]"):null,v=p.touches.length===1?p.touches[0]:null;!g||!y||!v||!a(y)||s.set(g,{x:v.clientX,y:v.clientY,index:l(g)}
1)},{passive:!0}),document.addEventListener("touchend",p=>{let g=p.target.closest?p.target.closest("[data-kussin-product-gallery] .wrap"):null,y=g?g.closest("[data-kussin-product-gallery]"):null,v=g?s.get(g):null,o=p.changedTouches.length===1?p.changedTouches[0]:null;if(!g||!y||!v||!o)return;s.delete(g);let c=o.clientX-v.x,h=o.clientY-v.y,E=f(g).length-1;Math.abs(c)<40||Math.abs(c)<=Math.abs(h)||(v.index===0&&c>0?k(y,E,!0):v.index===E&&c<0&&k(y,0,!0))},{passive:!0});let L=(p=document,g=!1)=>{let y=[];p instanceof Element&&p.matches("[data-kussin-product-gallery]")&&y.push(p),p.querySelectorAll&&y.push(...p.querySelectorAll("[data-kussin-product-gallery]")),[...new Set(y)].forEach(v=>{let o=m(v);e.matches&&(g||o)&&S(v,!0)})};typeof e.addEventListener=="function"?e.addEventListener("change",()=>L(document,!0)):e.addListener(()=>L(document,!0)),document.addEventListener("dom-updated",p=>{let g=p.target instanceof Element?p.target:document,y=g instanceof Element?g.closest("[data-kussin-product-gallery]"):null,v=y||g;!(y||g.querySelector&&g.querySelector("[data-kussin-product-gallery]"))||t.has(v)||(t.add(v),window.requestAnimationFrame(()=>{L(v),t.delete(v)}))}),L(document,!0)}function He(){let e=document.querySelectorAll("button.btn-noticelist[data-articleid], button.btn-noticelist[data-articleId]");if(!e.length)return;let r=Array.isArray(window.WH1_NOTICELIST)?window.WH1_NOTICELIST:[],n=window.WH1_NOTICELIST_I18N||{},t="wh1NoticeListResult";e.forEach(m=>{let w=m.getAttribute("data-articleId")||m.getAttribute("data-articleid"),d=r.indexOf(w)!==-1;if(d){let l=m.querySelector("use");if(l&&l.setAttribute("xlink:href","#star-fill"),m.setAttribute("data-amount","0"),n.remove&&(m.setAttribute("title",n.remove),(m.textContent||"").trim())){let u=[...m.childNodes].find(k=>k.nodeType===3&&k.textContent.trim());u&&(u.textContent=" "+n.remove+" ")}}m.addEventListener("click",()=>{try{window.sessionStorage.setItem(t,d?"removed":"added")}catch(l){}})});let s=null;try{s=window.sessionStorage.getItem(t),window.sessionStorage.removeItem(t)}catch(m){s=null}if(!s)return;let i=s==="removed"?n.removed:n.added;if(!i)return;let a=document.getElementById("basket_form")||document.querySelector(".card");if(!a||!a.parentNode)return;let f=document.createElement("div");f.className="alert alert-success wh1-noticelist-message",f.setAttribute("role","status"),f.textContent=i,a.parentNode.insertBefore(f,a)}function we(e,r,n){let t=n.validateOnBlur===!0;if(!e||!r||e.dataset.wh1ValidationBound==="1")return;e.dataset.wh1ValidationBound="1";let s=l=>!!(l.offsetWidth||l.offsetHeight||l.getClientRects().length),i=l=>l.closest(".form-floating")||l.closest(".mb-3")||l.parentElement,a=l=>{let u=window.oApex&&window.oApex.i18n||{};return l.validity.valueMissing?l.tagName==="SELECT"?u.DD_FORM_VALIDATION_CHECKONE||l.validationMessage:u.DD_FORM_VALIDATION_REQUIRED||l.validationMessage:l.validity.typeMismatch&&u.DD_FORM_VALIDATION_VALIDEMAIL||l.validationMessage},f=l=>{let u=i(l);if(!u)return;u.classList.add("is-invalid");let k=u.nextElementSibling;if(k&&k.classList.contains("invalid-feedback")){k.classList.contains("wh1-invalid-feedback")&&(k.textContent=a(l));return}let S=document.createElement("div");S.className="invalid-feedback wh1-invalid-feedback",S.textContent=a(l),u.after(S)},m=l=>{let u=i(l);u&&u.classList.remove("is-invalid"),l.classList.remove("is-invalid")},w=()=>{let l=Array.prototype.slice.call(e.querySelectorAll("input, select, textarea")),u=[];l.forEach(S=>{S.setCustomValidity(""),S.required&&!s(S)&&(S.required=!1,u.push(S))});let k=l.filter(S=>S.willValidate&&s(S)&&!S.validity.valid);return u.forEach(S=>{S.required=!0}),k};document.addEventListener("click",l=>{let u=l.target instanceof Element?l.target:null;if(!u||u!==r&&!r.contains(u))return;let k=w();k.length&&(l.preventDefault(),l.stopImmediatePropagation(),k.forEach(f),k[0].scrollIntoView({block:"center",behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}))},!0);let d=l=>{let u=l.target;!(u instanceof Element)||!u.matches("input, select, textarea")||!u.willValidate||(u.setCustomValidity(""),u.validity.valid&&m(u))};e.addEventListener("input",d,!0),e.addEventListener("change",d,!0),t&&e.addEventListener("blur",l=>{let u=l.target;if(!(u instanceof Element)||!u.matches("input, select, textarea")||!u.willValidate||u.validity.valid)return;let k=i(u);(k&&k.classList.contains("is-invalid")||String(u.value).trim()!=="")&&f(u)},!0)}function be(){we(document.getElementById("user_form"),document.getElementById("userFormSubmit"),{})}function ve(){document.querySelectorAll("form.wh1-contact-form").forEach(e
1=>{we(e,e.querySelector(".wh1-contact-submit"),{validateOnBlur:!0})})}function Ee(){let e=document.querySelectorAll(".details-related, .kussin-factfinder-pdp-related");if(!e.length)return;let r=[".ff-record-list-item",".ff-record-item","ff-record",".kussin-product-carousel-slide",".product-card"].join(","),n=t=>{let s=t.querySelector(r)!==null;t.classList.toggle("wh1-carousel-empty",!s)};e.forEach(t=>{n(t),new MutationObserver(()=>n(t)).observe(t,{childList:!0,subtree:!0})})}function We(){if(document.documentElement.dataset.kussinCarouselSizesBound==="1")return;document.documentElement.dataset.kussinCarouselSizesBound="1";let e=window.matchMedia("(min-width: 992px) and (hover: hover)"),r="[data-kussin-product-carousel] .kussin-factfinder-record-card",n=document.createElement("div");n.className="kussin-carousel-size-overlay",n.id="kussin-carousel-size-overlay",n.setAttribute("role","tooltip"),n.hidden=!0,document.body.append(n);let t=null,s=null,i=null,a=null,f=()=>{s&&(i===null?s.removeAttribute("aria-describedby"):s.setAttribute("aria-describedby",i)),a==null||a.disconnect(),t==null||t.classList.remove("kussin-carousel-size-open"),t=null,s=null,n.hidden=!0,n.replaceChildren()},m=d=>{var p;if(d===t||(f(),!e.matches||!d||d.closest("[data-kussin-infinite-clone]")||document.body.matches(".cl-alist, .cl-search, .cl-manufacturerlist")&&d.closest(".kussin-factfinder-campaign-pushed-products")))return;let l=d.querySelectorAll(".kussin-factfinder-record-variants ul.sizeselection li"),u=d.getBoundingClientRect(),k=d.closest("[data-kussin-product-carousel-track]"),S=k==null?void 0:k.getBoundingClientRect();if(!l.length||!S||u.left<S.left-1||u.right>S.right+1||u.bottom<0||u.bottom>=window.innerHeight)return;let L=document.createElement("ul");l.forEach(g=>{let y=document.createElement("li");y.textContent=g.textContent,y.classList.toggle("sold-out",g.classList.contains("sold-out")),L.append(y)}),n.append(L),n.style.left=`${u.left}px`,n.style.top=`${u.bottom-1}px`,n.style.width=`${u.width}px`,n.style.maxHeight=`${window.innerHeight-u.bottom}px`,n.hidden=!1,t=d,t.classList.add("kussin-carousel-size-open"),s=d.querySelector(".kussin-factfinder-record-link"),i=(p=s==null?void 0:s.getAttribute("aria-describedby"))!=null?p:null,s==null||s.setAttribute("aria-describedby",[i,n.id].filter(Boolean).join(" ")),a=new MutationObserver(f),a.observe(k,{childList:!0,subtree:!0,characterData:!0})},w=d=>d instanceof Element?d.closest(r):null;document.addEventListener("pointerover",d=>{if(d.pointerType!=="touch"&&!n.contains(d.target)){let l=w(d.target);l&&m(l)}}),document.addEventListener("pointerout",d=>{!t||!t.contains(d.target)&&!n.contains(d.target)||d.relatedTarget instanceof Node&&(t.contains(d.relatedTarget)||n.contains(d.relatedTarget))||t.contains(document.activeElement)||f()}),document.addEventListener("focusin",d=>m(w(d.target))),document.addEventListener("focusout",()=>{queueMicrotask(()=>{t&&!t.contains(document.activeElement)&&!t.matches(":hover")&&!n.matches(":hover")&&f()})}),document.addEventListener("keydown",d=>{d.key==="Escape"&&f()}),document.addEventListener("scroll",d=>{n.contains(d.target)||f()},!0),window.addEventListener("resize",f,{passive:!0}),e.addEventListener("change",f),document.addEventListener("dom-updated",f)}function Se(){We();let e=window.matchMedia("(max-width: 767.98px)"),r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=new WeakSet,t=new WeakMap,s=new WeakMap,i=!1,a=o=>o.hasAttribute("data-kussin-product-carousel-infinite"),f=o=>{let c=o.querySelector("[data-kussin-product-carousel-track]");return c?Array.from(c.children).filter(h=>h.classList.contains("kussin-product-carousel-slide")&&!h.hasAttribute("data-kussin-infinite-clone")):[]},m=o=>e.matches?1:Math.max(1,Number(o.dataset.kussinProductCarouselDesktopItems)||1),w=o=>e.matches?1:Math.max(1,Math.min(m(o),Math.floor(Number(o.dataset.kussinProductCarouselScrollItems))||m(o))),d=o=>Math.max(1,Math.ceil((f(o).length-m(o))/w(o))+1),l=(o,c)=>{let h=d(o);return a(o)&&h>1?(c%h+h)%h:Math.max(0,Math.min(c,h-1))},u=o=>
1{let c=o.querySelector("[data-kussin-product-carousel-track]"),h=f(o);if(!c||h.length===0)return 0;if(!e.matches){let x=Math.max(0,c.scrollWidth-c.clientWidth);return x>0?Math.round(c.scrollLeft/x*(d(o)-1)):0}let E=c.getBoundingClientRect().left+c.clientWidth/2,A=0,C=Number.POSITIVE_INFINITY;return h.forEach((x,T)=>{let R=x.getBoundingClientRect(),P=Math.abs(R.left+R.width/2-E);P<C&&(C=P,A=T)}),A},k=o=>{let c=o.querySelector("[data-kussin-product-carousel-track]"),h=o.querySelector("[data-kussin-product-carousel-previous]"),E=o.querySelector("[data-kussin-product-carousel-next]"),A=Array.from(o.querySelectorAll("[data-kussin-product-carousel-page]"));if(!c)return;let C=Math.max(0,c.scrollWidth-c.clientWidth),x=C>2,T=Math.max(0,Math.min(u(o),d(o)-1)),R=a(o)&&d(o)>1;h&&(h.hidden=!x,h.disabled=!x||!R&&c.scrollLeft<=2),E&&(E.hidden=!x,E.disabled=!x||!R&&c.scrollLeft>=C-2),A.forEach((P,_)=>{P.setAttribute("aria-current",_===T?"true":"false")})},S=o=>{let c=o.querySelector("[data-kussin-product-carousel-dots]");if(!c)return;let h=d(o),E=c.dataset.kussinProductCarouselDotLabel||"Product %current% of %total%";c.replaceChildren();for(let A=0;A<h;A+=1){let C=document.createElement("button"),x=E.replace("%current%",String(A+1)).replace("%total%",String(h));C.type="button",C.className="kussin-product-carousel-dot",C.dataset.kussinProductCarouselPage=String(A),C.setAttribute("aria-label",x),C.setAttribute("aria-current",A===0?"true":"false"),c.append(C)}c.hidden=h<=1},L=(o,c,h=!1)=>{let E=o.querySelector("[data-kussin-product-carousel-track]"),A=f(o),C=d(o),x=l(o,c),T=Math.min(x*w(o),A.length-1),R=A[T];if(!E||!R)return;let P=E.getBoundingClientRect(),_=R.getBoundingClientRect(),X=_.left-P.left+E.scrollLeft;e.matches&&(X-=(E.clientWidth-_.width)/2),E.scrollTo({left:X,behavior:h||c<0||c>=C||r.matches?r.matches?"auto":"instant":"smooth"}),window.requestAnimationFrame(()=>k(o))},p=o=>{let c=o.querySelector("[data-kussin-product-carousel-track]");if(!c)return!1;let h=f(o),E=c.querySelectorAll(":scope > [data-kussin-infinite-clone]"),A=e.matches&&a(o)&&h.length>1,C=s.get(o);return A&&C&&C.first===h[0]&&C.last===h[h.length-1]&&C.count===h.length&&E.length===2?!1:(E.forEach(T=>T.remove()),s.delete(o),A?(c.prepend(G(h[h.length-1],"before")),c.append(G(h[0],"after")),s.set(o,{first:h[0],last:h[h.length-1],count:h.length}),!0):E.length>0)},g=o=>{if(!o.querySelector("[data-kussin-product-carousel-track]"))return;o.style.setProperty("--kussin-product-carousel-desktop-items",String(m(o)));let h=u(o),E=p(o);S(o),E?L(o,h,!0):k(o)},y=(o=document)=>{let c=[];o instanceof Element&&o.matches("[data-kussin-product-carousel]")&&c.push(o),o.querySelectorAll&&c.push(...o.querySelectorAll("[data-kussin-product-carousel]")),[...new Set(c)].forEach(g)},v=()=>{document.querySelectorAll("[data-kussin-product-carousel-track]").forEach(o=>{o.scrollTo({left:0,behavior:"auto"})}),y()};document.documentElement.dataset.kussinProductCarouselBound!=="1"&&(document.documentElement.dataset.kussinProductCarouselBound="1",document.addEventListener("load",o=>{let c=o.target instanceof HTMLImageElement?o.target.closest(".kussin-brand-subcategories"):null;c&&g(c)},!0),document.addEventListener("click",o=>{let c=o.target.closest?o.target.closest("[data-kussin-product-carousel-previous], [data-kussin-product-carousel-next], [data-kussin-product-carousel-page]"):null,h=c?c.closest("[data-kussin-product-carousel]"):null;!c||!h||(c.hasAttribute("data-kussin-product-carousel-previous")?L(h,u(h)-1):c.hasAttribute("data-kussin-product-carousel-next")?L(h,u(h)+1):L(h,Number(c.dataset.kussinProductCarouselPage)))}),document.addEventListener("scroll",o=>{let c=o.target instanceof Element&&o.target.matches("[data-kussin-product-carousel-track]")?o.target:null,h=c?c.closest("[data-kussin-product-carousel]"):null;!c||!h||n.has(c)||(n.add(c),window.requestAnimationFrame(()=>{k(h),n.delete(c)}))},!0),document.addEventListener("touchstart",o=>{let c=o.target.closest?o.target.closest("[data-kussin-product-carousel-track]"):null,h=c?c.closest("[data-kussin-product-carousel]"):null,E=o.touches.length===1?o.touches[0]:null;!c||!h||!E||!a(h)||t.set(c,{x:E.clientX,y:E.clientY,page:u(h)})},{passive:!0}),document.addEventListener("touchend",o=>{let c=o.target.closest?o.target.closest("[data-kussin-product-carou
1sel-track]"):null,h=c?c.closest("[data-kussin-product-carousel]"):null,E=c?t.get(c):null,A=o.changedTouches.length===1?o.changedTouches[0]:null;if(!c||!h||!E||!A)return;t.delete(c);let C=A.clientX-E.x,x=A.clientY-E.y,T=d(h)-1;Math.abs(C)<40||Math.abs(C)<=Math.abs(x)||(E.page===0&&C>0?L(h,-1):E.page===T&&C<0&&L(h,T+1))},{passive:!0}),document.addEventListener("dom-updated",o=>{let c=o.target instanceof Element?o.target.closest("[data-kussin-product-carousel]"):null;window.requestAnimationFrame(()=>y(c||document))}),window.addEventListener("resize",()=>{i||(i=!0,window.requestAnimationFrame(()=>{y(),i=!1}))},{passive:!0}),typeof e.addEventListener=="function"?e.addEventListener("change",v):e.addListener(v)),y()}window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),N=e,z(),D(!Q())}),window.addEventListener("appinstalled",()=>{N=null,D(!1)}),document.addEventListener("DOMContentLoaded",()=>{z(),J(),Z(),ie(),ae(),le(),ce(),de(),ue(),Pe(),Re(),Oe(),Ne(),De(),_e(),fe(),me(),oe(),pe(),he(),ge(),ke(),ye(),Se(),Ee(),be(),ve()}),z(),J(),Z(),ie(),ae(),le(),ce(),de(),ue(),fe(),me(),pe(),Ve(),he(),ge(),ke(),ye(),Se(),Ee(),Fe(),Te(),ne(),be(),ve(),He(),window.addEventListener("basketLoaded",ne),window.addEventListener("basketLoaded",function(){oe("oxwMiniBasket")})})();})(); 2//# sourceMappingURL=wh1.min.js.map
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.