PageSourceSearch

https://sigma.bike/wp-content/themes/sigma/parts/components/product-tabs/index.min.js

js sigma.bike collected 2026-10-09 04:41:56 UTC 4,808 bytes, 1 lines download raw bytes

1!function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}({12:function(e,t){const r=jQuery.noConflict();({nav:r(".product-hero__nav"),items:r(".product-hero__nav a"),subpages:r(".product-subpage"),hero:r(".product-hero"),heroExtendedElements:r(".product-hero .product-hero__image, .product-hero .product-hero__subtitle, .product-hero .product-hero__title"),heroSimpleElements:r(".product-hero .product-hero__title, .wc-notices"),heroSimpleElementsImages:r(".product-hero .product-hero__subpages-image"),currentHeroImage:"",subpageTabsHeroImages:r(".product-hero .product-hero__subpages-image"),current:"",activeTabData:"",currentHeroData:"",queryString:window.location.search,currentUrl:window.location,urlParams:{},activeTabParam:"",init(){this.urlParams=new URLSearchParams(this.queryString),this.activeTabParam=this.urlParams.get("tab")||"",this.setActiveOnLoad(),this.bindEvents()},setActiveOnLoad(){const e=this.activeTabParam;e?(this.current=this.nav.find(`[data-tab="${e}"]`),this.current[0]||(this.current=this.nav.find("li:first-child > a")),this.currentHeroData=this.current[0].getAttribute("data-hero-type"),this.currentHeroImage=this.current[0].getAttribute("data-tab").replace("#","")+"-hero"):(this.current=this.nav.find("li:first-child > a"),this.currentHeroData=this.current[0].getAttribute("data-hero-type"),this.currentHeroImage=this.current[0].getAttribute("data-tab").replace("#","")+"-hero"),this.updateActiveTab()},updateHero(){this.hero.removeClass("simple"),this.hero.addClass(this.currentHeroData)},updateActiveTab(){if(this.items.parent().removeClass("active"),this.current.parent().addClass("active"),this.subpages.filter(":visible").fadeOut("normal",()=>{this.subpages.filter("#"+this.current.attr("data-tab")).fadeIn("normal",()=>{r(window).trigger("resize")})}),"simple"===this.currentHeroData)if("simple"!==this.currentHeroData)this.heroExtendedElements.fadeOut("normal",()=>{this.updateHero(),this.heroSimpleElements.fadeIn("normal"),r("#"+this.currentHeroImage).fadeIn("normal",()=>{r(window).trigger("resize")})});else{let e,t;this.subpageTabsHeroImages.filter(":visible").find("img")&&this.subpageTabsHeroImages.filter(":visible").find("img").length>0&&(e=this.subpageTabsHeroImages.filter(":visible").find("img")[0].getAttribute("src")),r("#"+this.currentHeroImage).find("img")&&r("#"+this.currentHeroImage).find("img").length>0&&(t=r("#"+this.currentHeroImage).find("img")[0].getAttribute("src")),t!==e&&(this.subpageTabsHeroImages.filter(":visible").fadeOut("normal"),r("#"+this.currentHeroImage).fadeIn("normal",()=>{r(window).trigger("resize")}))}else this.subpageTabsHeroImages.filter(":visible").fadeOut("normal"),this.heroSimpleElements.fadeOut("normal",()=>{this.updateHero(),this.heroExtendedElements.fadeIn("normal",()=>{window.slickSliders.length>1&&window.slickSliders.forEach(e=>{e.refresh()}),r(window).trigger("resize")})});this.activeTabData=this.currentHeroData},bindEvents(){this.nav.find("a").on("click",this.changeTab.bind(this)),window.addEventListener("popstate",()=>setTimeout(()=>{const e=new URL(window.location).searchParams.get("tab");this.activeTabParam=e,this.setActiveOnLoad(),this.updateActiveTab(),a()},0))},changeTab(e){e.preventDefault();const t=e.target,i=new URL(window.location);i.searchParams.set("tab",t.getAttribute("data-tab")),t!==this.current.get(0)&&(this.current=r(t),this.currentHeroData=t.getAttribute("data-hero-type"),this.currentHeroImage=t.getAttribute("data-tab").replace("#","")+"-hero",this.updateActiveTab(),window.history.pushState({},"",i),a())}}).init();const a=()=>{const e=r(".button-add-to-cart"),t=r("form.cart"),a=new URL(window.location),i=a.searchParams.get("tab");i&&e.length>0&&e.each((e,t)=>{let r=t.getAttribute("href");const i=new URL(window.location.origin+window.location.pathname+r).searchParams.get("add-to-cart");i&&a.searchParams.set("add-to-cart",i),t.href=a}),i&&t.length>0&&t.each((e,t)=>{const r=window.location.href;t.action=r})};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.