-1&&(n.isLoadingProducts=!0,n.productPage++,f.html('<\/i> Loading more items...<\/em><\/p>'),o={productCategoryId:u.attr("data-product-category-id"),productSubCategoryId:u.attr("data-product-sub-category-id"),pageSize:u.attr("data-page-size"),skip:u.attr("data-skip"),removed:u.attr("data-removed-items"),searchText:u.attr("data-search-text")},$.get(e,o,function(t){if(typeof t!="undefined"&&t.trim()!==""){var i=u.children(".flex-dummy").first();i.length===1?i.before($(t)):u.append(t);f.empty();u.attr("data-skip",$(".filterable").length);$(".item-count").text($(".filterable").length);parseInt(u.attr("data-total-items"))>=$(".filterable").length?$(u).removeClass("paginated"):$(u).addClass("paginated");typeof r=="function"&&r()}else n.productPage=-1,f.html('
<\/p>')}).always(function(){n.isLoadingProducts=!1})))}catch(s){n.handleError(s,["JavaScript","Sportsubs.loadMoreItems"],null,null,null)}},n}(Sportsubs||{}),SportsubsPingModule=function(n){return n.pingRequest=null,n.startPinger=function(t,i,r){try{isFinite(i)||(i=6e4);isFinite(r)||(r=8);var u=36e5*r;n.pingRetries=Math.round(u/i);n.pinger=setInterval(function(){n.sendPing(t)},i)}catch(f){n.handleError(f,["JavaScript","Sportsubs.startPinger"],{url:t,ms:i,maxRetryHours:r},null,null)}},n.sendPing=function(t){try{(typeof n.pingRequest=="undefined"||n.pingRequest===null)&&(n.pingRequest=$.ajax({url:t,cache:!1,success:function(t){isNaN(n.pingRetries)||n.pingRetries<1?(n.stopPinger(),n.handleError(new Error("Pinger aborted: Exceeded maximum ping session."),["JavaScript","Sportsubs.sendPing"],{},null,null)):t.Success!=="True"?(n.stopPinger(),n.handleError(new Error("Pinger aborted: Error response from server."),["JavaScript","Sportsubs.sendPing"],{},null,null)):n.pingRetries=Math.max(0,n.pingRetries-1)},error:function(){n.stopPinger()},complete:function(){n.pingRequest=null}}))}catch(i){n.handleError(i,["JavaScript","Sportsubs.sendPing"],{url:t},null,null)}},n.stopPinger=function(){try{n.pingRetries=0;clearInterval(n.pinger)}catch(t){n.handleError(t,["JavaScript","Sportsubs.stopPinger"],{"Sportsubs.pingRetries":n.pingRetries},null,null)}},n}(Sportsubs||{}),SportsubsUIModule=function(n){return n.productFadeDelay=150,n.productFadeTimeouts=[],n.priceSlider=null,n.partialReadyEvent=function(){n.initAutoHideAlerts(12e3,450);n.initFormEnchancements();n.initBootstrapTooltips();n.initDatePickers();n.fadeInImageOnLoad(".fade-in-on-load");n.intDependantCheckboxToggle();n.initAddressEditorScripts();n.initPrintButtons();n.navigateToCollapsedAnchor();n.initBootstrapToggles();n.initFormChangeWarning();n.initCarousels(".jcarousel");n.setAddToCartButtonStates();n.initNumberSliders();n.initConnectedDropdowns();n.initTargetValueOnChange()},n.forceSameHeight=function(t){try{var i=-1;(typeof t=="undefined"||t==="")&&(t=".same-height");$(".same-height").each(function(){i=i>$(this).height()?i:$(this).height()});$(".same-height").each(function(){$(this).height(i)})}catch(r){n.handleError(r,["JavaScript","Sportsubs.forceSameHeight"],{selector:t,"max height":i},null,null)}},n.fitTabsToWidth=function(t,i,r){try{_.isNaN(i)&&(i=50);_.isNaN(r)&&(r=250);(typeof t=="undefined"||t==="")&&(t=".fit-tabs");$(t).each(function(){var i=$(this),u=i.innerWidth()-60,n=i.find("li");if(n.length>0){var t=-1,r=Math.min(200,Math.max(50,Math.floor(u/n.length)));n.outerWidth(r);n.each(function(){t=t>$(this).height()?t:$(this).outerHeight()});n.each(function(){$(this).outerHeight(t);$(this).find("a").first().outerWidth(r).outerHeight(t)})}})}catch(u){n.handleError(u,["JavaScript","Sportsubs.fitTabsToWidth"],{selector:t},null,null)}},n.intDependantCheckboxToggle=function(t){(typeof t=="undefined"||t==="")&&(t=".toggle-targets");$(t).on("click",function(){n.setDependantCheckboxState(this)});$(t).each(function(){n.setDependantCheckboxState(this)})},n.setDependantCheckboxState=function(t){try{var r=$(t).prop("checked"),i=$(t).data("target");i!==""&&(r?$(i).attr("disabled",!1).parent().css("cursor","pointer").removeClass("muted"):$(i).prop("checked",!1).attr("disabled",!0).parent().css("cursor","not-allowed").addClass("muted"))}catch(u){n.handleError(u,["JavaScript","Sportsubs.setDependantCheckboxState"],{element:t[0].id},null,null)}},n.initAutoHideAlerts=function(n,t){isNaN(n)&&(n=5e3);isNaN(t)&&(t=500);$(".alert-autohide").fadeTo(n,t).slideUp(t,function(){$(this).alert("close")})},n.refreshFormValidators=function(n){typeof n!="undefined"&&n!==null&&$(n).find("form").each(function(){$(this).removeData("validator");$(this).removeData("unobtrusiveValidation");$.validator.unobtrusive.parse($(this))})},n.initBootstrapToggles=function(){if(typeof $.fn.bootstrapToggle!="undefined"){$("[data-toggle='toggle']").bootstrapToggle("destroy");$("[data-toggle='toggle']").bootstrapToggle();$(".bootstrap-toggle-row").off("click.squads").on("click.squads",function(n){$(n.target).hasClass("toggle-off")||$(n.target).hasClass("toggle-on")||($toggle=$(this).find(".bootstrap-toggle").first(),$toggle.length===1&&$toggle.bootstrapToggle("toggle"))})}},n.navigateToCollapsedAnchor=function(){var u,i,t,r,f;try{for(u=window.location.hash.replace("#",""),i=u.split("/"),t=0;t0&&$("#"+r).collapse("show")}catch(e){n.handleError(e,["JavaScript","Sportsubs.navigateToCollapsedAnchor"],{location:window.location},null,null)}},n.initBootstrapTooltips=function(){$.isFunction($.fn.tooltip)&&$('[data-toggle="tooltip"]').tooltip({container:"body",placement:"top"})},n.initNumberSliders=function(){},n.previewCard=function(n){bootbox.dialog({message:'',title:"Custom card preview",buttons:{danger:{label:"Close",className:"btn-secondary",callback:function(){bootbox.hideAll()}}}})},n.fadeInImageOnLoad=function(t){try{(typeof t=="undefined"||t==="")&&(t=".fade-in-on-load");$(t).each(function(){if(this.complete)$(this).css("opacity","1");else $(this).off("load").on("load",function(){$(this).css("opacity")==="0"&&$(this).css("opacity","1")})})}catch(i){n.handleError(i,["JavaScript","Sportsubs.fadeInImageOnLoad"],{fadeClass:t},null,null)}},n.initPrintButtons=function(){$(".print-button").off("click.sportsubs").on("click.sportsubs",function(){var t=$(this).data("print-content-id");typeof t!="undefined"&&t!==""&&n.printElementContent(t)})},n.getValueRange=function(){var t;try{var i=0,r=0,u=$("[data-low-value]").map(function(){return parseFloat($(this).data("low-value"))}).get();return typeof u!="undefined"&&u!==null&&u.length>0&&(i=Math.floor(Math.min.apply(Math,u))),t=$("[data-high-value]").map(function(){return parseFloat($(this).data("high-value"))}).get(),typeof t!="undefined"&&t!==null&&t.length>0&&(r=Math.ceil(Math.max.apply(Math,t))),isNaN(i)&&(i=0),isNaN(r)&&(r=0),{min:i,max:r}}catch(f){n.handleError(f,["JavaScript","Sportsubs.getValueRange"],null,null,null)}},n.filterByRange=function(t){try{typeof t!="undefined"&&t!==null&&($(".filterable").not(function(){return parseInt($(this).attr("data-low-value"))>=t[0]&&parseInt($(this).attr("data-high-value"))<=t[1]}).hide(),$(".filterable").filter(function(){return parseInt($(this).attr("data-low-value"))>=t[0]&&parseInt($(this).attr("data-high-value"))<=t[1]}).fadeIn("fast"))}catch(i){n.handleError(i,["JavaScript","Sportsubs.filterByRange"],{minMax:t},null,null)}},n.fadeInObject=function(t){typeof t!="undefined"&&t.jquery&&t.fadeIn(n.productFadeDelay)},n.fadeOutObject=function(n){typeof n!="undefined"&&n.jquery&&n.hide()},n.showHiddenFilterables=function(){$(".filterable:hidden").fadeOut().hide().each(function(t){n.productFadeTimeouts[t]=setTimeout(n.fadeInObject,t*n.productFadeDelay,$(this))})},n.refreshProductLayout=function(){var i,t;try{n.showHiddenFilterables();i=Math.max.apply(Math,$(".filterable").map(function(){return $(this).height()}).get());$(".same-tile-height").each(function(){$(this).height(i)});n.priceSlider!==null&&typeof n.priceSlider.noUiSlider!="undefined"&&n.priceSlider.noUiSlider!==null&&(t=n.getValueRange(),n.priceSlider.noUiSlider.updateOptions({range:t}),n.priceSlider.noUiSlider.set([t.min,t.max]));n.fadeInImageOnLoad(".fade-in-on-load")}catch(r){n.handleError(r,["JavaScript","Sportsubs.refreshProductLayout"],null,null,null)}},n.setAddToCartButtonStates=function(t){try{(typeof t=="undefined"||t===null||t==="")&&(t="button.add-to-cart");$(t).each(function(){n.setAddToCartButtonState(this)})}catch(i){n.handleError(i,["JavaScript","Sportsubs.setAddToCartButtonStates"],null,null,null)}},n.setAddToCartButtonState=function(t){var r,i;try{r=$(t).closest("form");r.length===1&&(i=r.find("button.add-to-cart"),i.length===1&&(i.parent().tooltip("dispose"),i.prop("disabled")===!0&&(i.css("pointer-events","none"),i.hasClass("addtocartdisabled")?i.parent().attr("title",i.attr("data-add-to-cart-disabled-message")):i.hasClass("outofstock")?i.parent().attr("data-original-title","Sold out"):i.parent().attr("title","Not available")),i.hasClass("addtocartdisabled")||(n.addToCartFormIsValid(r)?(i.css("pointer-events","all"),i.prop("disabled",!1),i.parent().attr("title","")):(i.prop("disabled",!0),i.parent().attr("title","Choose a size/quantity before adding to cart"))),i.prop("disabled")===!0&&i.parent().tooltip({container:"body",placement:"top",trigger:"focus hover"})))}catch(u){n.handleError(u,["JavaScript","Sportsubs.setAddToCartButtonState"],null,null,null)}},n.addToCartFormIsValid=function(t){try{var r=!0,i=$(t).find("input.quantity-input"),u=$(t).find(".select-size");return i.length>0&&(!$.isNumeric(i.val())||i.val()<1)&&(r=!1),i.length>0&&i.val()>10&&i.val("10"),u.length>0&&(!$.isNumeric(u.val())||u.val()<1)&&(r=!1),r}catch(f){n.handleError(f,["JavaScript","Sportsubs.addToCartFormIsValid"],null,null,null)}},n.initialisePriceSlider=function(t,i,r){var s,h;try{if($(i).length===1){var o=n.getValueRange(),u=o.min,f=o.max;if(u===f||$(r).length<2)$(i).addClass("d-none");else{n.priceSlider=document.getElementById(t);noUiSlider.create(n.priceSlider,{start:[u,f],connect:!1,margin:10,step:1,range:{min:u,max:f}});s=document.getElementById("lower-value");h=document.getElementById("upper-value");n.priceSlider.noUiSlider.on("update",function(t,i){i?h.innerHTML=t[i]:s.innerHTML=t[i];n.filterByRange(n.priceSlider.noUiSlider.get())});var e=document.createElement("div"),c=n.priceSlider.getElementsByClassName("noUi-base")[0],l=n.priceSlider.getElementsByClassName("noUi-origin");e.className+="connect";c.appendChild(e);n.priceSlider.noUiSlider.on("update",function(n,t){var r=t?"right":"left",i=l[t].style.left.slice(0,-1);t===1&&(i=100-i);e.style[r]=i+"%"});$("#sortPriceLow").click(function(){typeof tinysort=="function"&&tinysort($(r),{data:"best-price"})});$("#sortPriceHigh").click(function(){typeof tinysort=="function"&&tinysort($(r),{data:"best-price",order:"desc"})});$("#sortAlpha").click(function(){typeof tinysort=="function"&&tinysort($(r),{data:"description"})});$("#sortReverseAlpha").click(function(){typeof tinysort=="function"&&tinysort($(r),{data:"description",order:"desc"})});$(i).removeClass("d-none")}}}catch(a){n.handleError(a,["JavaScript","Sportsubs.initialisePriceSlider"],null,null,null)}},n.alert=function(n,t,i,r,u){var f={options:{backdrop:!0,closeButton:!1,animate:!1,centerVertical:!0},title:i,message:n,callback:function(n){n?_.isFunction(r)&&r():_.isFunction(u)&&u()}},e;if(i||(f.title=i),typeof bootbox!="undefined"&&typeof bootbox.alert=="function")switch(t){case"confirm":f.callback=function(n){n?_.isFunction(r)&&r():_.isFunction(u)&&u()};bootbox.confirm(f);break;default:f.callback=r;bootbox.alert(f)}else switch(t){case"confirm":e=confirm(n);e?_.isFunction(r)&&r():_.isFunction(u)&&u();break;default:alert(n)}},n.setToCenterOfParent=function(n,t,i,r){parentWidth=$(t).width();parentHeight=$(t).height();elementWidth=$(n).width();elementHeight=$(n).height();i||$(n).css("left",parentWidth/2-elementWidth/2);r||$(n).css("top",parentHeight/2-elementHeight/2)},n.initCarousels=function(){try{$('[data-jcarousel="true"]').each(function(){var n=$(this).data();(typeof n.vertical=="undefined"||n.vertical==="")&&(n.vertical=!1);(typeof n.wrap=="undefined"||n.wrap==="")&&(n.wrap="circular");(typeof n.center=="undefined"||n.center==="")&&(n.center=!1);(typeof n.jcarouselautoscroll=="undefined"||n.jcarouselautoscroll==="")&&(n.jcarouselautoscroll=!1);$(this).jcarousel({wrap:n.wrap,vertical:n.vertical,center:n.center,transitions:Modernizr.csstransitions?{transforms:Modernizr.csstransforms,transforms3d:Modernizr.csstransforms3d,easing:"ease"}:!1});var i=$(this).find("ul li").length,r=$(this).find("ul li").first().width(),u=$(this).width(),t=$(this).closest(".jcarousel-wrapper");if(t.length===1)if(i*r<\/option>").val("").text("None"));$.each(t,function(n,t){$childSelect.append($("
<\/div>",{"class":"tab-panel-group card-group responsive "+r,id:"collapse-"+t.attr("id")});$.each(e,function(){var n=$(this),o=n.attr("class")===undefined?"":n.attr("class"),s="responsive-tab accordion-toggle",r=n.parent().attr("class")===undefined?"":n.parent().attr("class"),i="card",e=n.get(0).hash.replace("#","collapse-");o.length>0&&(s+=" "+o);r.length>0&&(r=r.replace(/\bactive\b/g,""),i+=" "+r,i=i.replace(/\s{2,}/g," "),i=i.replace(/^\s+|\s+$/g,""));n.parent().hasClass("active")&&(u="#"+e);f.append($("").attr("class",i).html($("
").attr("class","card-header").html($("