1(function(){"use strict";if(window.wwTabs)return;function tabsIn(root){return Array.prototype.slice.call(root.querySelectorAll("[data-tab-trigger]"))}function panelsIn(root){return Array.prototype.slice.call(root.querySelectorAll("[data-tab-panel]"))}function activate(root,i,source){var tabs=tabsIn(root);if(!(i<0||i>=tabs.length)){var prev=tabs.findIndex(function(t){return t.classList.contains("is-active")});root.setAttribute("data-tabs-dir",prev>=0&&i<prev?"back":"fwd"),tabs.forEach(function(t,j){var on=j===i;t.classList.toggle("is-active",on),t.setAttribute("aria-selected",on?"true":"false"),t.tabIndex=on?0:-1});var mode=root.getAttribute("data-ww-tabs")==="class"?"class":"hidden";panelsIn(root).forEach(function(p,j){mode==="class"?p.classList.toggle("is-active",j===i):j===i?p.removeAttribute("hidden"):p.setAttribute("hidden","")});var cur=root.querySelectorAll("[data-tabs-current]");Array.prototype.forEach.call(cur,function(c){c.textContent=tabs[i].textContent.trim()}),root.dispatchEvent(new CustomEvent("ww:tabchange",{bubbles:!0,detail:{index:i,source:source||"api"}}))}}document.addEventListener("click",function(e){var tab=e.target.closest&&e.target.closest("[data-tab-trigger]");if(tab){var root=tab.closest("[data-ww-tabs]");root&&activate(root,tabsIn(root).indexOf(tab),"user")}}),document.addEventListener("keydown",function(e){var k=e.key,isArrow=k==="ArrowUp"||k==="ArrowDown"||k==="ArrowLeft"||k==="ArrowRight",isJump=k==="Home"||k==="End";if(!(!isArrow&&!isJump)){var tab=e.target.closest&&e.target.closest("[data-tab-trigger]");if(tab){var root=tab.closest("[data-ww-tabs]");if(root&&!(isJump&&!root.hasAttribute("data-tabs-home-end"))){var tabs=tabsIn(root),i=tabs.indexOf(tab),n=i;k==="ArrowDown"||k==="ArrowRight"?n=(i+1)%tabs.length:k==="ArrowUp"||k==="ArrowLeft"?n=(i-1+tabs.length)%tabs.length:k==="Home"?n=0:n=tabs.length-1,e.preventDefault(),activate(root,n,"user"),tabs[n].focus()}}}}),document.addEventListener("click",function(e){var btn=e.target.closest&&e.target.closest("[data-tabs-nav]");if(btn){var root=btn.closest("[data-ww-tabs]");if(root){var tabs=tabsIn(root),cur=tabs.findIndex(function(t){return t.classList.contains("is-active")});cur<0&&(cur=0);var next=btn.getAttribute("data-tabs-nav")==="next"?cur+1:cur-1;next<0||next>=tabs.length||activate(root,next,"user")}}});function stepFromSwipe(zone,dx,dy){if(!(Math.abs(dx)<48||Math.abs(dx)<Math.abs(dy)*1.5)){var root=zone.closest("[data-ww-tabs]");if(root){var tabs=tabsIn(root),cur=tabs.findIndex(function(tb){return tb.classList.contains("is-active")});cur<0&&(cur=0);var next=dx<0?cur+1:cur-1;next<0||next>=tabs.length||activate(root,next,"user")}}}var swipe=null;document.addEventListener("touchstart",function(e){var zone=e.target.closest&&e.target.closest("[data-tabs-swipe]");if(!zone){swipe=null;return}var t=e.touches[0];swipe={zone:zone,x:t.clientX,y:t.clientY}},{passive:!0}),document.addEventListener("touchend",function(e){if(swipe){var t=e.changedTouches[0],s=swipe;swipe=null,stepFromSwipe(s.zone,t.clientX-s.x,t.clientY-s.y)}},{passive:!0});var mdrag=null;document.addEventListener("mousedown",function(e){if(e.button!==0){mdrag=null;return}var zone=e.target.closest&&e.target.closest("[data-tabs-swipe]");if(!zone||e.target.closest&&e.target.closest("a, button, input, select, textarea")){mdrag=null;return}mdrag={zone:zone,x:e.clientX,y:e.clientY}}),document.addEventListener("mouseup",function(e){if(mdrag){var s=mdrag;mdrag=null,stepFromSwipe(s.zone,e.clientX-s.x,e.clientY-s.y)}}),document.addEventListener("dragstart",function(e){e.target.closest&&e.target.closest("[data-tabs-swipe]")&&e.preventDefault()}),document.addEventListener("ww:tabchange",function(e){var root=e.target,host=root.querySelector&&root.querySelector("slide-section[data-tabs-slider]");!host||!host.globalSlide||host.globalSlide.destroyed||host.globalSlide.activeIndex!==e.detail.index&&host.globalSlide.slideTo(e.detail.index)});function bindSliderBridges(){document.querySelectorAll("slide-section[data-tabs-slider]").forEach(function(host){if(!(host.__wwTabsSlider||host.__wwTabsSliderObs)){var attach=function(){var sw=host.globalSlide;return!sw||sw.destroyed?!1:(host.__wwTabsSlider=!0,sw.on("slideChange",function(){var root=host.closest("[data-ww-tabs]");
1if(root){var tabs=tabsIn(root),cur=tabs.findIndex(function(t){return t.classList.contains("is-active")});cur!==sw.activeIndex&&activate(root,sw.activeIndex,"slider")}}),!0)};if(!attach()){var mo=new MutationObserver(function(){attach()&&(mo.disconnect(),host.__wwTabsSliderObs=null)});mo.observe(host,{attributes:!0,attributeFilter:["class"]}),host.__wwTabsSliderObs=mo}}})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",bindSliderBridges):bindSliderBridges(),window.wwTabs={activate:activate,tabsIn:tabsIn}})(); 2//# sourceMappingURL=/cdn/shop/t/125/assets/ww-tabs.js.map?v=61430030669642063631786959974
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.