PageSourceSearch

https://www.softwashing.uk/cdn/shop/t/51/assets/timber.js?v=136721842993684758081780061955

js softwashing.uk collected 2026-10-04 04:20:33 UTC 28,643 bytes, 2 lines download raw bytes

1(function(t){var e=-1,a=-1,o=function(t2){return parseFloat(t2)||0},i=function(e2){var a2=t(e2),i2=null,n2=[];return a2.each(function(){var e3=t(this),a3=e3.offset().top-o(e3.css("margin-top")),r2=n2.length>0?n2[n2.length-1]:null;r2===null?n2.push(e3):Math.floor(Math.abs(i2-a3))<=1?n2[n2.length-1]=r2.add(e3):n2.push(e3),i2=a3}),n2},n=function(e2){var a2={byRow:!0,property:"height",target:null,remove:!1};return typeof e2=="object"?t.extend(a2,e2):(typeof e2=="boolean"?a2.byRow=e2:e2==="remove"&&(a2.remove=!0),a2)},r=t.fn.matchHeight=function(e2){var a2=n(e2);if(a2.remove){var o2=this;return this.css(a2.property,""),t.each(r._groups,function(t2,e3){e3.elements=e3.elements.not(o2)}),this}return this.length<=1&&!a2.target?this:(r._groups.push({elements:this,options:a2}),r._apply(this,a2),this)};r.version="master",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=i,r._parse=o,r._parseOptions=n,r._apply=function(e2,a2){var s2=n(a2),h=t(e2),c=[h],l=t(window).scrollTop(),p=t("html").outerHeight(!0),d=h.parents().filter(":hidden");return d.each(function(){var e3=t(this);e3.data("style-cache",e3.attr("style"))}),d.css("display","block"),s2.byRow&&!s2.target&&(h.each(function(){var e3=t(this),a3=e3.css("display");a3!=="inline-block"&&a3!=="inline-flex"&&(a3="block"),e3.data("style-cache",e3.attr("style")),e3.css({display:a3,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=i(h),h.each(function(){var e3=t(this);e3.attr("style",e3.data("style-cache")||"")})),t.each(c,function(e3,a3){var i2=t(a3),n2=0;if(s2.target)n2=s2.target.outerHeight(!1);else{if(s2.byRow&&i2.length<=1)return void i2.css(s2.property,"");i2.each(function(){var e4=t(this),a4=e4.css("display");a4!=="inline-block"&&a4!=="inline-flex"&&(a4="block");var o2={display:a4};o2[s2.property]="",e4.css(o2),e4.outerHeight(!1)>n2&&(n2=e4.outerHeight(!1)),e4.css("display","")})}i2.each(function(){var e4=t(this),a4=0;s2.target&&e4.is(s2.target)||(e4.css("box-sizing")!=="border-box"&&(a4+=o(e4.css("border-top-width"))+o(e4.css("border-bottom-width")),a4+=o(e4.css("padding-top"))+o(e4.css("padding-bottom"))),e4.css(s2.property,n2-a4+"px"))})}),d.each(function(){var e3=t(this);e3.attr("style",e3.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(l/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e2={};t("[data-match-height], [data-mh]").each(function(){var a2=t(this),o2=a2.attr("data-mh")||a2.attr("data-match-height");e2[o2]=o2 in e2?e2[o2].add(a2):a2}),t.each(e2,function(){this.matchHeight(!0)})};var s=function(e2){r._beforeUpdate&&r._beforeUpdate(e2,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e2,r._groups)};r._update=function(o2,i2){if(i2&&i2.type==="resize"){var n2=t(window).width();if(n2===e)return;e=n2}o2?a===-1&&(a=setTimeout(function(){s(i2),a=-1},r._throttle)):s(i2)},t(r._applyDataApi),t(window).bind("load",function(t2){r._update(!1,t2)}),t(window).bind("resize orientationchange",function(t2){r._update(!0,t2)})})(jQuery),typeof Shopify=="undefined"&&(Shopify={}),Shopify.formatMoney||(Shopify.formatMoney=function(cents,format){var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||this.money_format;typeof cents=="string"&&(cents=cents.replace(".",""));function defaultOption(opt,def){return typeof opt=="undefined"?def:opt}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultOption(precision,2),thousands=defaultOption(thousands,","),decimal=defaultOption(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2}if(formatString!=null){switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break}return formatString.replace(placeholderRegex,value)}else return cents}),Shopify.resizeImage||(Shopify.resizeImage=function(e,t){try{if(t=="original")return e;var n=e.match(/(.*\/[\w\-\_\.]+)\.(\w{2,4})/);return n[1]+"_"+t+"."+n[2]}catch(r){return e}}),window.timber=window.timber||{},timber.init=function(){timber.cartTimer(),timber.cacheSelectors(),timber.loginForms()},timber.cacheSelectors=function(){timber.cache={$html:$("html"),$body:$(document.body),$navigation:$("#AccessibleNav"),$mobileSubNavToggle:$(".mobile-nav__toggle"),$changeView:$(".change-view"),$productImage:$("#ProductPhotoImg"),$thumbImages:$("#ProductThumbs").find("a.product-single__thumbnail"),$recoverPasswordLink:$("#RecoverPassword"),$hideRecoverPasswordLink:$("#HideRecoverPasswordLink"),$recoverPasswordForm:$("#RecoverPasswordForm"),$customerLoginForm:$("#CustomerLoginForm"),$passwordResetSuccess:$("#ResetSuccess")}},timber.loginForms=function(){function showRecoverPasswordForm(){timber.cache.$re
1coverPasswordForm.removeClass("hide"),timber.cache.$recoverPasswordForm.show(),timber.cache.$customerLoginForm.addClass("hide"),timber.cache.$customerLoginForm.hide()}function hideRecoverPasswordForm(){timber.cache.$recoverPasswordForm.addClass("hide"),timber.cache.$recoverPasswordForm.hide(),timber.cache.$customerLoginForm.removeClass("hide"),timber.cache.$customerLoginForm.show()}timber.cache.$recoverPasswordLink.on("click",function(evt){evt.preventDefault(),showRecoverPasswordForm()}),timber.cache.$hideRecoverPasswordLink.on("click",function(evt){evt.preventDefault(),hideRecoverPasswordForm()}),timber.getHash()=="#recover"&&showRecoverPasswordForm()},timber.getHash=function(){return window.location.hash},timber.qtySelectors=function(){var numInputs=$('input[type="number"]');numInputs.length&&(numInputs.each(function(){var $el=$(this),currentQty=$el.val(),inputName=$el.attr("name"),inputId=$el.attr("id"),itemAdd=currentQty+1,itemMinus=currentQty-1,itemQty=currentQty,source=$("#JsQty").html(),template=Handlebars.compile(source),data2={key:$el.data("id"),itemQty:itemQty,itemAdd:itemAdd,itemMinus:itemMinus,inputName:inputName,inputId:inputId};$el.after(template(data2)).remove()}),$(".js-qty__adjust").on("click",function(){var $el=$(this),id=$el.data("id"),$qtySelector=$el.siblings(".js-qty__num"),qty=parseInt($qtySelector.val().replace(/\D/g,""));parseFloat(qty)==parseInt(qty)&&!isNaN(qty)||(qty=1),$el.hasClass("js-qty__adjust--plus")?qty+=1:(qty-=1,qty<=1&&(qty=1)),$qtySelector.val(qty)}))},timber.setCookie=function(name,value,days){var expires="";if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3),expires="; expires="+date.toUTCString()}document.cookie=name+"="+(value||"")+expires+"; path=/"},timber.getCookie=function(name){for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];c.charAt(0)==" ";)c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null},timber.eraseCookie=function(name){document.cookie=name+"=; Max-Age=-99999999;"},timber.modalBox=function(){var modal,modalHTML,btn=$("[data-toggle='modal']"),close=$("[data-toggle='close-modal']");$(btn).click(function(e){if(e.preventDefault(),modal=$($(this).data("target")),$(window).width()>767)var width="600px";else var width="90%";$(modal).find(".modal-content").css("width",width),$(modal).addClass("in"),modalHTML=$(this).data("target").replace("#","")}),$(close).click(function(e){e.preventDefault(),$(modal).removeClass("in")}),window.onclick=function(event){event.target.id==modalHTML&&$(modal).removeClass("in")}},timber.modalBoxSize=function(){var modal,modalHTML,btn=$("[data-toggle='modal_size']"),close=$("[data-toggle='close-modal']");$(btn).click(function(e){if(e.preventDefault(),modal=$($(this).data("target")),$(window).width()>767)var width="600px";else var width="90%";$(modal).find(".modal-content").css("width",width),$(modal).addClass("in"),modalHTML=$(this).data("target").replace("#","")}),$(close).click(function(e){e.preventDefault(),$(modal).removeClass("in")}),window.onclick=function(event){event.target.id==modalHTML&&$(modal).removeClass("in")}},timber.cartTimer=function(){if($("#cartTimer").length){var completetime=540,timer_time=completetime/60,hours=Math.floor(timer_time/60),minutes=Math.floor(timer_time%60),seconds=60;$("#cartTimer").countdowntimer({minutes:minutes,seconds:seconds})}},timber.estimateTimer=function(){if($("#estimateTimer").length){var startTime=new Date,endTime=new Date(startTime.getFullYear()+"/"+(startTime.getMonth()+1)+"/"+startTime.getDate()+" 16:00:00"),timer_time=Math.round((endTime-startTime)/6e4),tomorrow=new Date,date_one_days=$("#estimateTimer").parent("b").find(".dateEstimate").data("date");timer_time<=0&&(endTime.setDate(endTime.getDate()+1),timer_time=Math.round((endTime-startTime)/6e4),tomorrow.setDate(tomorrow.getDate()+1));var excludeDays="SUN";excludeDays=excludeDays.split(" "),$.each(excludeDays,function(key,daySingle){daySingle==="SUN"&&(excludeDays[key]=0),daySingle==="MON"&&(excludeDays[key]=1),daySingle==="TUE"&&(excludeDays[key]=2),daySingle==="WED"&&(excludeDays[key]=3),daySingle==="THU"&&(excludeDays[key]=4),daySingle==="FRI"&&(excludeDays[key]=5),daySingle==="SAT"&&(excludeDays[key]=6)}),excludeDays.length>=7&&(excludeDays=[]);var count_one=0;do tomorrow.setDate(tomorrow.getDate()+1),$.inArray(tomorrow.getDay(),excludeDays)<=-1&&count_one++;while($.inArray(tomorrow.getDay(),excludeDays)>-1||count_one<date_one_days);var fmt=new DateFmt;$(".dateEstimate").html(fmt.format(tomorrow,"%w %n %d"));var hours=Math.floor(timer_time/60),minutes=Math.floor(timer_time%60),day_wek=fmt.format(tomorrow,"%y")+" "+hours+":"+minutes,countDownDate=new Date(day_
1wek).getTime(),x=setInterval(function(){var now=new Date().getTime(),distance=countDownDate-now;document.getElementById("estimateTimer").innerHTML=hours+" Hours "+minutes+" Minutes",distance<0&&clearInterval(x)},100)}},timber.validateQty=function(qty){return parseFloat(qty)==parseInt(qty)&&!isNaN(qty)||(qty=1),qty},$(document).on("change",".addCart-product-qty .ajaxcart__qty-num",function(){var line=$(this).data("line"),qty=$(this).val();setTimeout(function(){var $body2=$(document.body),params={type:"POST",url:"/cart/change.js",data:"quantity="+qty+"&line="+line,dataType:"json",success:function(cart){$.ajax({type:"GET",url:"/cart.js",cache:!1,dataType:"json",success:function(cart2){timber.cartUpdatePopupModel(cart2)}})}};jQuery.ajax(params)},250)}),timber.geoIP=function(){$(function(){var countriesWithCurrency={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"INR",BV:"NOK",BW:"BWP",BY:"BYR",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHE",CI:"XOF",CK:"NZD",CL:"CLF",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUC",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"HRK",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"LTL",LU:"EUR",LV:"EUR",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRO",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"USD",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",SS:"SSP",ST:"STD",SV:"USD",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VEF",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",XK:"EUR",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMK",ZW:"ZWL"},d=new Date,weekday=new Array(7);weekday[0]="Sunday",weekday[1]="Monday",weekday[2]="Tuesday",weekday[3]="Wednesday",weekday[4]="Thursday",weekday[5]="Friday",weekday[6]="Saturday";var n=weekday[d.getDay()];$("#DCTime").html(n);var startTime=new Date,endTime=new Date(startTime.getFullYear()+"/"+(startTime.getMonth()+1)+"/"+startTime.getDate()+" 16:00:00"),timer_time=Math.round((endTime-startTime)/6e4),tomorrow=new Date,date_one_days=$(".date_one_ship").data("date");timer_time<=0&&tomorrow.setDate(tomorrow.getDate()+1);var excludeDays="SUN";excludeDays=excludeDays.split(" "),$.each(excludeDays,function(key,daySingle){daySingle==="SUN"&&(excludeDays[key]=0),daySingle==="MON"&&(excludeDays[key]=1),daySingle==="TUE"&&(excludeDays[key]=2),daySingle==="WED"&&(excludeDays[key]=3),daySingle==="THU"&&(excludeDays[key]=4),daySingle==="FRI"&&(excludeDays[key]=5),daySingle==="SAT"&&(excludeDays[key]=6)}),excludeDays.length>=7&&(excludeDays=[]);var count_one=0;do tomorrow.setDate(tomorrow.getDate()+1),$.inArray(tomorrow.getDay(),excludeDays)<=-1&&count_one++;while($.inArray(tomorrow.getDay(),excludeDays)>-1||count_one<date_one_days);var fmt=new DateFmt;$(".date_one_ship").html(fmt.format(tomorrow,"%w %n %d"));var tomorrow2=new Date;timer_time<=0&&tomorrow2.setDate(tomorrow2.getDate()+1);var date_two_days=$(".date_two_ship").data("date"),count_two=0;do tomorrow2.setDate(tomorrow2.getDate()+1),$.inArray(tomorrow2.getDay(),excludeDays)<=-1&&count_two++;while($.inArray(tomorrow2.getDay(),excludeDays)>-1||count_two<date_two_days);var fmt=new DateFmt;$(".date_two_ship").html(fmt.format(tomorrow2,"%w %n %d"))})},timber.recordLastCollection=function(options){jQuery.cookie("shopify_collection",options.collection,{path:"/"})};function openpopup(url,name){window.open(url,name,"width=500,height=300")}function DateFmt(){this.dateMarkers={d:["getDate",function(v){return("0"+v).substr(-2,2)}],m:["getMonth",function(v){return("0"+v).substr(-2,2)}],n:["getMonth",function(v){var mthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return mthNames[v]}],w:["getDay",function(v){var dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"];return dayNames[v]}],y:["getFullYear"],H:["getHours",function(v){return("0"+v).substr(-2,2)}],M:["getMinutes",function(v){return("0"+v).substr(-2,2)}],S:["getSeconds",function(v){return("0"+v).substr(-2,2)}],i:["toISOString",null]},this.format=function(date,fmt){var dateMarkers=this.dateMarkers,dateTxt=fmt.replace(/%(.)/g,function(m,p){var rv=date[dateMarkers[p][0]]();return dateMarkers[p][1]!=null&&(rv=dateMarkers[p][1](rv)),rv});return dateTxt}}$(timber.init),typeof ShopifyAPI=="undefined"&&(ShopifyAPI={});function attributeToString(attribute){return typeof attribute!="string"&&(attribute+="",attribute==="undefined"&&(attribute="")),jQuery.trim(attribute)}ShopifyAPI.onCartUpdate=function(cart){},ShopifyAPI.updateCartNote=function(note,callback){var $body2=$(document.body),params={type:"POST",url:"/cart/update.js",data:"note="+attributeToString(note),dataType:"json",beforeSend:function(){$body2.trigger("beforeUpdateCartNote.ajaxCart",note)},success:function(cart){typeof callback=="function"?callback(cart):ShopifyAPI.onCartUpdate(cart),$body2.trigger("afterUpdateCartNote.ajaxCart",[note,cart])},error:function(XMLHttpRequest2,textStatus2){$body2.trigger("errorUpdateCartNote.ajaxCart",[XMLHttpRequest2,textStatus2]),ShopifyAPI.onError(XMLHttpRequest2,textStatus2)},complete:function(jqxhr,text){$body2.trigger("completeUpdateCartNote.ajaxCart",[this,jqxhr,text])}};jQuery.ajax(params)},ShopifyAPI.onError=function(XMLHttpRequest,textStatus){var data=eval("("+XMLHttpRequest.responseText+")");data.message},ShopifyAPI.addItemFromForm=function(form,callback,errorCallback,isProduct){var flag_addcart=!0;if($(".product_properties").each(function(){var val=$(this).find("input").val(),val_charlimit=$(this).find("input").data("charlimit");if(val==""){flag_addcart=!1,$(this).find("input").addClass("ui-state-error");var topScroll=$(this).find("input").offset().top-300;$("html, body").animate({scrollTop:topScroll},1e3)}else $(this).find("input").removeClass("ui-state-error"),$(this).find(".error-limit").hide(),val_charlimit!=null&&val.length>val_charlimit&&(flag_addcart=!1,$(this).find("input").addClass("ui-state-error"),$(this).find(".error-limit").html("Oops, we won't have space to print all that, try something shorter.").show())}),flag_addcart){var $body2=$(document.body),params={type:"POST",url:"/cart/add.js",data:jQuery(form).serialize(),dataType:"json",beforeSend:function(jqxhr,settings2){$body2.trigger("beforeAddItem.ajaxCart",form)},success:function(line_item){jQuery(".AddToCart_hide_button").hide(),jQuery(".AddToCart_show_button").show(),$(window).width()<767&&timber.RightDrawer.open(),typeof callback=="function"?callback(line_item,form):ShopifyAPI.onItemAdded(line_item,form),$body2.trigger("afterAddItem.ajaxCart",[line_item,form])},error:function(XMLHttpRequest2,textStatus2){$(form).find(".sold-out-tooltip").removeClass("sold-out-tooltip--show"),setTimeout(function(){$(form).find(".sold-out-tooltip").addClass("sold-out-tooltip--show")},50),typeof errorCallback=="function"?errorCallback(XMLHttpRequest2,textStatus2):ShopifyAPI.onError(XMLHttpRequest2,textStatus2),$body2.trigger("errorAddItem.ajaxCart",[XMLHttpRequest2,textStatus2])},complete:function(jqxhr,text){$body2.trigger("completeAddItem.ajaxCart",[this,jqxhr,text])}};jQuery.ajax(params)}},ShopifyAPI.getCart=function(callback){$(document.body).trigger("beforeGetCart.ajaxCart"),$.ajax({type:"GET",url:"/cart.js",cache:!1,dataType:"json",success:function(cart){typeof callback=="function"?callback(cart):ShopifyAPI.onCartUpdate(cart),$(document.body).trigger("afterGetCart.ajaxCart",cart)}})},ShopifyAPI.changeItem=function(line,quantity,callback){var $body2=$(document.body),params={type:"POST",url:"/cart/change.js",data:"quantity="+quantity+"&line="+line,dataType:"json",beforeSend:function(){$body2.trigger("beforeChangeItem.ajaxCart",[line,quantity])},success:function(cart){typeof callback=="function"?callback(cart):ShopifyAPI.onCartUpdate(cart),$body2.trigger("afterChangeItem.ajaxCart",[line,quantity,cart])},error:function(XMLHttpRequest2,textStatus2){$body2.trigger("errorChangeItem.ajaxCart",[X
1MLHttpRequest2,textStatus2]),ShopifyAPI.onError(XMLHttpRequest2,textStatus2)},complete:function(jqxhr,text){$body2.trigger("completeChangeItem.ajaxCart",[this,jqxhr,text])}};jQuery.ajax(params)};var ajaxCart=(function(module,$){"use strict";var init,loadCart,settings,isUpdating,$body,$formContainer,$addToCart,$cartCountSelector,$cartCostSelector,$cartContainer,$drawerContainer,updateCountPrice,formOverride,itemAddedCallback,itemErrorCallback,cartUpdateCallback,buildCart,cartCallback,adjustCart,adjustCartCallback,createQtySelectors,qtySelectors,validateQty;return init=function(options){settings={formSelector:'form[action^="/cart/add"]',cartContainer:"#CartContainer",addToCartSelector:'input[type="submit"]',cartCountSelector:null,cartCostSelector:null,moneyFormat:"",disableAjaxCart:!1,enableQtySelectors:!0,isProduct:!0,lastItemRemoved:-1},$.extend(settings,options),$formContainer=$(settings.formSelector),$cartContainer=$(settings.cartContainer),$addToCart=$formContainer.find(settings.addToCartSelector),$cartCountSelector=$(settings.cartCountSelector),$cartCostSelector=$(settings.cartCostSelector),$body=$(document.body),isUpdating=!1,settings.enableQtySelectors&&qtySelectors(),!settings.disableAjaxCart&&$addToCart.length&&formOverride(),adjustCart()},loadCart=function(){$body.addClass("drawer--is-loading"),ShopifyAPI.getCart(cartUpdateCallback)},updateCountPrice=function(cart){$cartCountSelector&&($cartCountSelector.html(cart.item_count).removeClass("hidden-count"),cart.item_count===0&&$cartCountSelector.addClass("hidden-count")),$cartCostSelector&&$cartCostSelector.html(Shopify.formatMoney(cart.total_price,settings.moneyFormat))},formOverride=function(){$formContainer.on("submit",function(evt){evt.preventDefault(),$addToCart=$(this).find(".AddToCart"),$addToCart.removeClass("is-added").addClass("is-adding"),$addToCart.find("span#AddToCartText").html("Adding to cart ..."),$(".qty-error").remove(),ShopifyAPI.addItemFromForm(evt.target,itemAddedCallback,itemErrorCallback,settings.isProduct)})},itemAddedCallback=function(product){setTimeout(function(){$addToCart.removeClass("is-adding").addClass("is-added"),$addToCart.find("span#AddToCartText").html("Add to Cart")},1e3),setTimeout(function(){$addToCart.removeClass("is-adding is-added"),$addToCart.find("span#AddToCartText").html("Add to cart")},2e3),$("#quick-view").find(".modal-body").html(""),$("#quick-view").removeClass("in"),ShopifyAPI.getCart(cartUpdateCallback),$("html").removeClass("fixx"),$(".product-slideup").removeClass("active"),$("body").removeClass("search-overlay-show")},itemErrorCallback=function(XMLHttpRequest,textStatus){var data=eval("("+XMLHttpRequest.responseText+")");$addToCart.removeClass("is-adding is-added"),data.message&&data.status==422&&$formContainer.after('<div class="errors qty-error">'+data.description+"</div>")},cartUpdateCallback=function(cart){updateCountPrice(cart),buildCart(cart)},buildCart=function(cart){if($cartContainer.empty(),cart.item_count===0){$cartContainer.append("<p>Your cart is currently empty.</p>"),cartCallback(cart),jQuery(".AddToCart_hide_button").show(),jQuery(".AddToCart_show_button").hide();return}var items=[],item={},data2={},source=$("#CartTemplate").html(),template=Handlebars.compile(source);$.each(cart.items,function(index,cartItem){if(cartItem.image!=null)var prodImg=cartItem.image.replace(/(\.[^.]*)$/,"_small$1").replace("http:","");else var prodImg="//cdn.shopify.com/s/assets/admin/no-image-medium-cc9732cb976dd349a0df1d39816fbcc7.gif";item={key:cartItem.key,line:index+1,url:cartItem.url,img:prodImg,name:cartItem.product_title,variation:cartItem.variant_title,properties:cartItem.properties,itemAdd:cartItem.quantity+1,itemMinus:cartItem.quantity-1,itemQty:cartItem.quantity,price:Shopify.formatMoney(cartItem.price,settings.moneyFormat),vendor:cartItem.vendor,linePrice:Shopify.formatMoney(cartItem.line_price,settings.moneyFormat),originalLinePrice:Shopify.formatMoney(cartItem.original_line_price,settings.moneyFormat),discounts:cartItem.discounts,discountsApplied:cartItem.line_price!==cartItem.original_line_price},items.push(item)}),data2={items:items,note:cart.note,totalPrice:Shopify.formatMoney(cart.total_price,settings.moneyFormat),totalCartDiscount:cart.total_discount===0?0:"You're saving [savings]".replace("[savings]",Shopify.formatMoney(cart.total_discount,settings.moneyFormat)),totalCartDiscountApplied:cart.total_discount!==0},$cartContainer.append(template(data2)),cartCallback(cart)}
1,cartCallback=function(cart){$body.removeClass("drawer--is-loading"),$body.trigger("afterCartLoad.ajaxCart",cart),window.Shopify&&Shopify.StorefrontExpressButtons&&Shopify.StorefrontExpressButtons.initialize()},adjustCart=function(){$body.on("click",".ajaxcart__qty-adjust",function(){if(!isUpdating){var $el=$(this),line=$el.data("line"),$qtySelector=$el.siblings(".ajaxcart__qty-num"),qty=parseInt($qtySelector.val().replace(/\D/g,"")),qty=validateQty(qty);$el.hasClass("ajaxcart__qty--plus")?qty+=1:(qty-=1,qty<=0&&(qty=0)),line?updateQuantity(line,qty):$qtySelector.val(qty)}}),$body.on("change",".ajaxcart__qty-num",function(){if(!isUpdating){var $el=$(this),line=$el.data("line"),qty=parseInt($el.val().replace(/\D/g,"")),qty=validateQty(qty);line&&updateQuantity(line,qty)}}),$body.on("submit","form.ajaxcart",function(evt){isUpdating&&evt.preventDefault()}),$body.on("focus",".ajaxcart__qty-adjust",function(){var $el=$(this);setTimeout(function(){$el.select()},50)}),$body.on("click",".removeLineCartPop",function(e){e.preventDefault();var line=$(this).data("line"),variant=$(this).data("variant");variant!=settings.lastItemRemoved&&(settings.lastItemRemoved=variant,ShopifyAPI.changeItem(line,0,itemAddedCallback))}),$body.on("click",".ajaxcart_remove",function(e){e.preventDefault();var line=$(this).data("line");updateQuantity(line,0)});function updateQuantity(line,qty){isUpdating=!0;var $row=$('.ajaxcart__row[data-line="'+line+'"]').addClass("is-loading");qty===0&&$row.parent().addClass("is-removed"),setTimeout(function(){ShopifyAPI.changeItem(line,qty,adjustCartCallback)},250)}$body.on("change",'textarea[name="note"]',function(){var newNote=$(this).val();ShopifyAPI.updateCartNote(newNote,function(cart){})})},adjustCartCallback=function(cart){updateCountPrice(cart),setTimeout(function(){isUpdating=!1,ShopifyAPI.getCart(buildCart)},150)},createQtySelectors=function(){$('input[type="number"]',$cartContainer).length&&$('input[type="number"]',$cartContainer).each(function(){var $el=$(this),currentQty=$el.val(),itemAdd=currentQty+1,itemMinus=currentQty-1,itemQty=currentQty,source=$("#AjaxQty").html(),template=Handlebars.compile(source),data2={key:$el.data("id"),itemQty:itemQty,itemAdd:itemAdd,itemMinus:itemMinus};$el.after(template(data2)).remove()})},qtySelectors=function(){var numInputs=$('input[type="number"]:not([data-no-replace])');numInputs.length&&(numInputs.each(function(){var $el=$(this),currentQty=$el.val(),inputName=$el.attr("name"),inputId=$el.attr("id"),itemAdd=currentQty+1,itemMinus=currentQty-1,itemQty=currentQty,source=$("#JsQty").html(),template=Handlebars.compile(source),data2={key:$el.data("id"),itemQty:itemQty,itemAdd:itemAdd,itemMinus:itemMinus,inputName:inputName,inputId:inputId};$el.after(template(data2)).remove()}),$(".js-qty__adjust").on("click",function(){var $el=$(this),id=$el.data("id"),$qtySelector=$el.siblings(".js-qty__num"),qty=parseInt($qtySelector.val().replace(/\D/g,"")),qty=validateQty(qty);$el.hasClass("js-qty__adjust--plus")?qty+=1:(qty-=1,qty<=1&&(qty=1)),$qtySelector.val(qty)}))},validateQty=function(qty){return parseFloat(qty)==parseInt(qty)&&!isNaN(qty)||(qty=1),qty}
1,module={init:init,load:loadCart},module})(ajaxCart||{},jQuery);timber.geoIP(),jQuery(function($2){timber.estimateTimer()});function hide_goods_in_cart(){$.getJSON("/cart.js",function(cart,textStatus2){var product_ids_in_cart=[];$.each(cart.items,function(k,v){product_ids_in_cart[k]=v.id}),$.each($(".r_addtocartbutton button"),function(k,v){var btn=$(this);$.each(product_ids_in_cart,function(x,y){$(v).attr("onclick").indexOf(y)!=-1&&btn.attr("disabled","disabled").find(".r_AddToCartText").text("In cart").css("color","#27aae1")})})})}document.addEventListener("DOMContentLoaded",function(){var div,n,v=document.getElementsByClassName("youtube-player");for(n=0;n<v.length;n++)div=document.createElement("div"),div.setAttribute("data-id",v[n].dataset.id),div.innerHTML=labnolThumb(v[n].dataset.id),div.onclick=labnolIframe,v[n].appendChild(div)});function labnolThumb(id){var thumb='<img src="https://i.ytimg.com/vi/ID/hqdefault.jpg" width="100" height="100" loading="lazy" />',play='<div class="play"></div>';return thumb.replace("ID",id)+play}function labnolIframe(){var iframe=document.createElement("iframe"),embed="https://www.youtube.com/embed/ID?autoplay=1";iframe.setAttribute("src",embed.replace("ID",this.dataset.id)),iframe.setAttribute("frameborder","0"),iframe.setAttribute("allowfullscreen","1"),this.parentNode.replaceChild(iframe,this)}$(".nav-tabs a").click(function(e){e.preventDefault();var tabActive=$(this).attr("href");$(".tab-pane").removeClass("active").removeClass("in"),$(tabActive).addClass("active").addClass("in")});
2//# sourceMappingURL=/cdn/shop/t/51/assets/timber.js.map?v=136721842993684758081780061955

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.