1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[5145],{3897(e,l,t){t.d(l,{default:()=>h});var i=t(6374),s=t(5445),a=t(4692);const{Ky:r}=s.iW,h={init(){a(".js-gallery-grid").each(function(){var e=a(this),l=e.closest(".js-gallery-container");let t={itemSelector:".js-gallery-item",sizer:".js-gallery-sizer"};e.closest(".shuffle").length&&(t.sizer=".js-feature-sizer");let s=new i.default(this,{itemSelector:".js-gallery-item",sizer:t.sizer,buffer:1});l.find(".js-gallery-filter").on("click",function(){var e=a(this).data("name");a(this).addClass("active").siblings().removeClass("active"),e&&s&&s.filter(e)}),(()=>{const e=[].slice.call(document.querySelectorAll(".m-gallery img[data-width][data-height]")),l={desktop:{smallSimple:{width:360,height:300},smallDouble:{width:360,height:629},bigSimple:{width:750,height:300},bigDouble:{width:750,height:629}},tablet:{smallSimple:{width:224,height:200},smallDouble:{width:224,height:420},bigSimple:{width:466,height:200},bigDouble:{width:466,height:420}},mobile:{smallSimple:{width:280,height:280},smallDouble:{width:280,height:280},bigSimple:{width:280,height:280},bigDouble:{width:280,height:280}}};e.forEach(e=>{const{width:t,height:i}=e.dataset;let s="smallSimple";t&&i&&(s=`${t}${i}`);const h=l[r.actual][s],o=GalaxyHelpers.resizeImg(e.src,h.width,h.height);e.src=o,a(e).closest(".js-gallery-item").css("background-image",o)})})(),a(".js-gallery-filter").each(function(e){const l=a(this);a(".gallery-filters-mobile").append(`<option class="${l.attr("class")}" data-name="${l.data("name")}">${l.text()}</option>`)}),a(".gallery-filters-mobile").change(function(){a(this).children("option:selected").addClass("active").siblings().removeClass("active");var e=a(this).children("option:selected").data("name");e&&s&&s.filter(e)}),a(".gallery-filters .js-gallery-filter").length>1?a(".gallery-filters-mobile").customSelect({minimumResultsForSearch:-1}).removeClass("hidden"):(a(".gallery-filters").remove(),a(".gallery-filters-mobile").remove()),a("[data-template=gallery] .js-gallery-container .select2, [data-template=gallery-module] .js-gallery-container .select2").addClass("visible-xs"),0===a(".breadcrumb-container").length&&(1!==a(".m-introduction.cms-hide-mobile").length&&0!==a(".m-introduction").length||a(".js-gallery-container").css("margin-top","15px"))})}}}}]);
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.