(function(u,t,r){let e=!1;var a=[u],n={mouseEvent:!0,minDistance:30};function s(c,m,d){l(d).forEach(_=>_.addEventListener(c,m,{passive:!0}))}function i(c,m,d){l(d).forEach(_=>_.removeEventListener(c,m))}function o(c,m,d={}){var _=t.createEvent("Event");_.initEvent(c,!0,!0),_.swipe=d,l(m).forEach(y=>y.dispatchEvent(_))}function l(c){return Array.isArray(c)?c:[c]}u.SwipeIt=function(c,m={}){var d=function(f){var h=[];for(let x=0;xT&&o(_T&&o(y>w?"swipeUp":"swipeDown",e,{distance:x,start:y,end:w}),(L>T||I>T)&&o("swipe",e)}k()}m.mouseEvent=m.mouseEvent===void 0?n.mouseEvent:m.mouseEvent,m.minDistance=m.minDistance===void 0?n.minDistance:m.minDistance,k(),s("touchstart",b,d),s("touchmove",C,d),s("touchend",S,d),m.mouseEvent&&s("mousedown",q,d),this.on=function(f,h){return s(f,h,d),this}}})(window,document),Currency.moneyFormats={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"€{{amount}}",money_with_currency_format:"€{{amount}} EUR"},GBP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} GBP"},CAD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} CAD"},ALL:{money_format:"Lek {{amount}}",money_with_currency_format:"Lek {{amount}} ALL"},DZD:{money_format:"DA {{amount}}",money_with_currency_format:"DA {{amount}} DZD"},AFN:{money_format:"Af {{amount}}",money_with_currency_format:"Af {{amount}} AFN"},AOA:{money_format:"Kz{{amount}}",money_with_currency_format:"Kz{{amount}} AOA"},ARS:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} ARS"},AMD:{money_format:"{{amount}} AMD",money_with_currency_format:"{{amount}} AMD"},AWG:{money_format:"Afl{{amount}}",money_with_currency_format:"Afl{{amount}} AWG"},AUD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} AUD"},BBD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} Bds"},AZN:{money_format:"m.{{amount}}",money_with_currency_format:"m.{{amount}} AZN"},BDT:{money_format:"Tk {{amount}}",money_with_currency_format:"Tk {{amount}} BDT"},BSD:{money_format:"BS${{amount}}",money_with_currency_format:"BS${{amount}} BSD"},BHD:{money_format:"{{amount}}0 BD",money_with_currency_format:"{{amount}}0 BHD"},BYN:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYN"},BYR:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYR"},BZD:{money_format:"BZ${{amount}}",money_with_currency_format:"BZ${{amount}} BZD"},BTN:{money_format:"Nu {{amount}}",money_with_currency_format:"Nu {{amount}} BTN"},BAM:{money_format:"KM {{amount_with_comma_separator}}",money_with_currency_format:"KM {{amount_with_comma_separator}} BAM"},BRL:{money_format:"R$ {{amount_with_comma_separator}}",money_with_currency_format:"R$ {{amount_with_comma_separator}} BRL"},BOB:{money_format:"Bs{{amount_with_comma_separator}}",money_with_currency_format:"Bs{{amount_with_comma_separator}} BOB"},BMD:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} BMD"},BIF:{money_format:"FBu {{amount}}",money_with_currency_format:"FBu {{amount}} BIF"},BWP:{money_format:"P{{amount}}",money_with_currency_format:"P{{amount}} BWP"},BND:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} BND"},CVE:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} CVE"},KMF:{money_format:"CF {{amount}}",money_with_currency_format:"CF {{amount}} KMF"},CUC:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} CUC"},CUP:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} CUP"},CDF:{money_format:"FC {{amount}}",money_with_currency_format:"FC {{amount}} CDF"},DJF:{money_format:"Fdj {{amount}}",money_with_currency_format:"Fdj {{amount}} DJF"},ERN:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} ERN"},FKP:{money_format:"£ {{amount}}",money_with_currency_format:"£ {{amount}} FKP"},GIP:{money_format:"£ {{amount}}",money_with_currency_format:"£ {{amount}} GIP"},XAU:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} XAU"},GGP:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} GGP"},GNF:{money_format:"FG {{amount}}",money_with_currency_format:"FG {{amount}} GNF"},HTG:{money_format:"G {{amount}}",money_with_currency_format:"G {{amount}} HTG"},XDR:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} XDR"},IDR:{money_format:"{{amount_with_comma_separator}} IDR",money_with_currency_format:"Rp {{amount_with_comma_separator}} IDR"},IQD:{money_format:"ع.د {{amount}}",money_with_currency_format:"ع.د {{amount}} IQD"},IMP:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} IMP"},LAK:{money_format:"₭ {{amount}}",money_with_currency_format:"₭ {{amount}} LAK"},LSL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} LSL"},LRD:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} LRD"},LYD:{money_format:"ل.د {{amount}}",money_with_currency_format:"ل.د {{amount}} LYD"},MWK:{money_format:"MK {{amount}}",money_with_currency_format:"MK {{amount}} MWK"},MRO:{money_format:"UM {{amount}}",money_with_currency_format:"UM {{amount}} MRO"},KPW:{money_format:"₩ {{amount}}",money_with_currency_format:"₩ {{amount}} KPW"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PAB:{money_format:"B/. {{amount}}",money_with_currency_format:"B/. {{amount}} PAB"},SHP:{money_format:"£ {{amount}}",money_with_currency_format:"£ {{amount}} SHP"},SVC:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} SVC"},SLL:{money_format:"Le {{amount}}",money_with_currency_format:"Le {{amount}} SLL"},XAG:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} XAG"},SBD:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} SBD"},SOS:{money_format:"S {{amount}}",money_with_currency_format:"S {{amount}} SOS"},SDG:{money_format:"£ {{amount}}",money_with_currency_format:"£ {{amount}} SDG"},SRD:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} SRD"},SZL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} SZL"},TJS:{money_format:"TJS {{amount}}",money_with_currency_format:"TJS {{amount}} TJS"},TOP:{money_format:"T$ {{amount}}",money_with_currency_format:"T$ {{amount}} TOP"},TMT:{money_format:"m {{amount}}",money_with_currency_format:"m {{amount}} TMT"},UZS:{money_format:"лв {{amount}}",money_with_currency_format:"лв {{amount}} UZS"},YER:{money_format:"﷼ {{amount}}",money_with_currency_format:"﷼ {{amount}} YER"},BGN:{money_format:"{{amount}} \u0110\xBB\u0110\u02DB",money_with_currency_format:"{{amount}} \u0110\xBB\u0110\u02DB BGN"},MMK:{money_format:"K{{amount}}",money_with_currency_format:"K{{amount}} MMK"},KHR:{money_format:"KHR{{amount}}",money_with_currency_format:"KHR{{amount}}"},KYD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} KYD"},XAF:{money_format:"FCFA{{amount}}",money_with_currency_format:"FCFA{{amount}} XAF"},CLP:{money_format:"${{amount_no_decimals}}",money_with_currency_format:"${{amount_no_decimals}} CLP"},CNY:{money_format:"¥{{amount}}",money_with_currency_format:"¥{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"₡ {{amount_with_comma_separator}}",money_with_currency_format:"₡ {{amount_with_comma_separator}} CRC"},HRK:{money_format:"{{amount_with_comma_separator}} kn",money_with_currency_format:"{{amount_with_comma_separator}} kn HRK"},CZK:{money_format:"{{amount_with_comma_separator}} Kč",money_with_currency_format:"{{amount_with_comma_separator}} Kč"},DKK:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"kr.{{amount_with_comma_separator}}"},DOP:{money_format:"RD$ {{amount}}",money_with_currency_format:"RD$ {{amount}}"},XCD:{money_format:"${{amount}}",money_with_currency_format:"EC${{amount}}"},EGP:{money_format:"LE {{amount}}",money_with_currency_format:"LE {{amount}} EGP"},ETB:{money_format:"Br{{amount}}",money_with_currency_format:"Br{{amount}} ETB"},XPF:{money_format:"{{amount_no_decimals_with_comma_separator}} XPF",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} XPF"},FJD:{money_format:"${{amount}}",money_with_currency_format:"FJ${{amount}}"},GMD:{money_format:"D {{amount}}",money_with_currency_format:"D {{amount}} GMD"},GHS:{money_format:"GH₵{{amount}}",money_with_currency_format:"GH₵{{amount}}"},GTQ:{money_format:"Q{{amount}}",money_with_currency_format:"{{amount}} GTQ"},GYD:{money_format:"G${{amount}}",money_with_currency_format:"${{amount}} GYD"},GEL:{money_format:"{{amount}} GEL",money_with_currency_format:"{{amount}} GEL"},HNL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} HNL"},HKD:{money_format:"${{amount}}",money_with_currency_format:"HK${{amount}}"},HUF:{money_format:"{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} Ft"},ISK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr ISK"},INR:{money_format:"Rs. {{amount}}",money_with_currency_format:"Rs. {{amount}}"},IDR:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"Rp {{amount_with_comma_separator}}"},ILS:{money_format:"{{amount}} NIS",money_with_currency_format:"{{amount}} NIS"},JMD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} JMD"},JPY:{money_format:"¥{{amount_no_decimals}}",money_with_currency_format:"¥{{amount_no_decimals}} JPY"},JEP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} JEP"},JOD:{money_format:"{{amount}}0 JD",money_with_currency_format:"{{amount}}0 JOD"},KZT:{money_format:"{{amount}} KZT",money_with_currency_format:"{{amount}} KZT"},KES:{money_format:"KSh{{amount}}",money_with_currency_format:"KSh{{amount}}"},KWD:{money_format:"{{amount}}0 KD",money_with_currency_format:"{{amount}}0 KWD"},KGS:{money_format:"\u0110\xBB\u0110\u02DB{{amount}}",money_with_currency_format:"\u0110\xBB\u0110\u02DB{{amount}}"},LVL:{money_format:"Ls {{amount}}",money_with_currency_format:"Ls {{amount}} LVL"},LBP:{money_format:"L£{{amount}}",money_with_currency_format:"L£{{amount}} LBP"},LTL:{money_format:"{{amount}} Lt",money_with_currency_format:"{{amount}} Lt"},MGA:{money_format:"Ar {{amount}}",money_with_currency_format:"Ar {{amount}} MGA"},MKD:{money_format:"\u0110\xB4\u0110\xB5\u0110\u02DD {{amount}}",money_with_currency_format:"\u0110\xB4\u0110\xB5\u0110\u02DD {{amount}} MKD"},MOP:{money_format:"MOP${{amount}}",money_with_currency_format:"MOP${{amount}}"},MVR:{money_format:"Rf{{amount}}",money_with_currency_format:"Rf{{amount}} MRf"},MXN:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} MXN"},MYR:{money_format:"RM{{amount}} MYR",money_with_currency_format:"RM{{amount}} MYR"},MUR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} MUR"},MDL:{money_format:"{{amount}} MDL",money_with_currency_format:"{{amount}} MDL"},MAD:{money_format:"{{amount}} dh",money_with_currency_format:"Dh {{amount}} MAD"},MNT:{money_format:"{{amount_no_decimals}} ₮",money_with_currency_format:"{{amount_no_decimals}} MNT"},MZN:{money_format:"{{amount}} Mt",money_with_currency_format:"Mt {{amount}} MZN"},NAD:{money_format:"N${{amount}}",money_with_currency_format:"N${{amount}} NAD"},NPR:{money_format:"Rs{{amount}}",money_with_currency_format:"Rs{{amount}} NPR"},ANG:{money_format:"ƒ{{amount}}",money_with_currency_format:"{{amount}} NAƒ"},NZD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} NZD"},NIO:{money_format:"C${{amount}}",money_with_currency_format:"C${{amount}} NIO"},NGN:{money_format:"₦{{amount}}",money_with_currency_format:"₦{{amount}} NGN"},NOK:{money_format:"kr {{amount_with_comma_separator}}",money_with_currency_format:"kr {{amount_with_comma_separator}} NOK"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PKR:{money_format:"Rs.{{amount}}",money_with_currency_format:"Rs.{{amount}} PKR"},PGK:{money_format:"K {{amount}}",money_with_currency_format:"K {{amount}} PGK"},PYG:{money_format:"Gs. {{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"Gs. {{amount_no_decimals_with_comma_separator}} PYG"},PEN:{money_format:"S/. {{amount}}",money_with_currency_format:"S/. {{amount}} PEN"},PHP:{money_format:"₱{{amount}}",money_with_currency_format:"₱{{amount}} PHP"},PLN:{money_format:"{{amount_with_comma_separator}} zl",money_with_currency_format:"{{amount_with_comma_separator}} zl PLN"},QAR:{money_format:"QAR {{amount_with_comma_separator}}",money_with_currency_format:"QAR {{amount_with_comma_separator}}"},RON:{money_format:"{{amount_with_comma_separator}} lei",money_with_currency_format:"{{amount_with_comma_separator}} lei RON"},RUB:{money_format:"руб{{amount_with_comma_separator}}",money_with_currency_format:"руб{{amount_with_comma_separator}} RUB"},RWF:{money_format:"{{amount_no_decimals}} RF",money_with_currency_format:"{{amount_no_decimals}} RWF"},WST:{money_format:"WS$ {{amount}}",money_with_currency_format:"WS$ {{amount}} WST"},SAR:{money_format:"{{amount}} SR",money_with_currency_format:"{{amount}} SAR"},STD:{money_format:"Db {{amount}}",money_with_currency_format:"Db {{amount}} STD"},RSD:{money_format:"{{amount}} RSD",money_with_currency_format:"{{amount}} RSD"},SCR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} SCR"},SGD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} SGD"},SYP:{money_format:"S£{{amount}}",money_with_currency_format:"S£{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"₩{{amount_no_decimals}}",money_with_currency_format:"₩{{amount_no_decimals}} KRW"},LKR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} LKR"},SEK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr SEK"},CHF:{money_format:"SFr. {{amount}}",money_with_currency_format:"SFr. {{amount}} CHF"},TWD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TWD"},THB:{money_format:"{{amount}} ฿",money_with_currency_format:"{{amount}} ฿ THB"},TZS:{money_format:"{{amount}} TZS",money_with_currency_format:"{{amount}} TZS"},TTD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TTD"},TND:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} DT"},TRY:{money_format:"{{amount}}TL",money_with_currency_format:"{{amount}}TL"},UGX:{money_format:"Ush {{amount_no_decimals}}",money_with_currency_format:"Ush {{amount_no_decimals}} UGX"},UAH:{money_format:"\xE2\u201A\xB4{{amount}}",money_with_currency_format:"\xE2\u201A\xB4{{amount}} UAH"},AED:{money_format:"Dhs. {{amount}}",money_with_currency_format:"Dhs. {{amount}} AED"},UYU:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} UYU"},VUV:{money_format:"${{amount}}",money_with_currency_format:"${{amount}}VT"},VEF:{money_format:"Bs. {{amount_with_comma_separator}}",money_with_currency_format:"Bs. {{amount_with_comma_separator}} VEF"},VND:{money_format:"{{amount_no_decimals_with_comma_separator}}₫",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} VND"},XBT:{money_format:"{{amount_no_decimals}} BTC",money_with_currency_format:"{{amount_no_decimals}} BTC"},XOF:{money_format:"CFA{{amount}}",money_with_currency_format:"CFA{{amount}} XOF"},ZMW:{money_format:"K{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"ZMW{{amount_no_decimals_with_comma_separator}}"}},Currency.formatMoney=function(u,t){typeof u=="string"&&(u=u.replace(".",""));var r="",e=/\{\{\s*(\w+)\s*\}\}/,a=t||"${{amount}}";function n(i,o){return i===void 0?o:i}function s(i,o,l,c){if(o=n(o,2),l=n(l,","),c=n(c,"."),isNaN(i)||i==null)return 0;var m=(i=(i/100).toFixed(o)).split(".");return m[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+l)+(m[1]?c+m[1]:"")}switch(a.match(e)[1]){case"amount":r=s(u,2);break;case"amount_no_decimals":r=s(u,0);break;case"amount_with_comma_separator":r=s(u,2,".",",");break;case"amount_no_decimals_with_comma_separator":r=s(u,0,".",",")}return a.replace(e,r)},Currency.currentCurrency="",Currency.format=_settings.currencyFormat||"money_with_currency_format",Currency.convertAll=function(u){let t=u.oldCurrency||bstore.get("currentCurrency")||Shopify.currency.active||bstore.get("cart_currency"),r=u.newCurrency,e=u.selector,a=u.format,n=Currency.moneyFormats[t][a||Currency.format]||"{{amount}}",s=Currency.moneyFormats[r][a||Currency.format]||"{{amount}}",i=document.querySelectorAll(e||".jsPrice");for(let c=0,m=i.length;c{try{let o=new URL(i.url);o.origin==window.location.origin&&["/cart/add.js","/cart/update.js","/cart/change.js","/cart/clear.js"].includes(o.pathname)&&t.dispatchListeners()}catch(o){console.log("[BOOSTER THEME] Invalid URL format caught in fetch.")}}),s})}(window,window.fetch)}addListener(t,r){let e=t.dataset.cartSettings.split(","),a={};for(let n=0,s=e.length;ne)&&!(!isUndefined(t)&&t.indexOf(m)==-1)){switch(m){case"count":i.settings[m].innerText=r.minicart.data.item_count;break;case"product-list":i.settings[m].innerHTML=r.minicart.data.html;break;case"total":i.settings[m].innerText=r.minicart.data.total;break}i.settings[m].dataset.lastUpdate=e}}}}if(e>r.minicart.lastUpdate){let n=await fetch("/?section_id=api__minicart",{headers:{Pragma:"no-cache","Cache-Control":"no-cache, no-store, must-revalidate",Expires:0}}).then(i=>i.text());n=n;let s=document.createElement("div");s.innerHTML=n,this.minicart={lastUpdate:e,data:JSON.parse(s.innerText)},this.minicart.data.items=JSON.parse(this.minicart.data.items)}a();try{boosterProductPage.onNewContent()}catch(n){}for(;this.awaitingSuccess.length;)this.success(this.awaitingSuccess.pop())}addToCart(t,r=!1){t&&r&&_settings.ajaxType=="disabled"&&(r.preventDefault(),r.stopImmediatePropagation()),t.disabled=!0,t.querySelector("[data-button-text]").innerText=_bstrLocale.buttons.adding;let e=t.dataset.productQuantity;isUndefined(e)&&(e=t.closestEl("[data-qty-input]").value||t.closestEl("[data-qty-input]").dataset.quantity);let a=t.dataset.productVariant||t.closestEl('[name="id"]').value;this.queue.push({quantity:e,id:a,target:t}),!(this.queue.length>1)&&this.checkQueue()}addToCartIU(){let t=document.querySelectorAll("input.inline-upsell__toggle:checked"),r=this.queue.length;for(let e=0,a=t.length;en.json());return!isUndefined(a.status)&&a.status!="success"?(t.disabled="false",e&&(e.style.opacity="1"),this.error(a)):!0}async updateQuantity(t,r,e,a=!1){a||(r=t.target.dataset.variantId,e=t.target.value);let n=await fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({quantity:e,id:r})}).then(s=>s.json());if(!isUndefined(n.status)&&n.status!="success")return this.error(n);if(!a&&e>0)return this.dispatchListeners(["count","subtotal","product-list"])}quantityHandler(t,r,e=!0){t.preventDefault();let a=t.target.parentElement.querySelector("[data-qty-input]");if(r){if(!isNaN(parseInt(a.max))&&parseInt(a.value)>=a.max)return this.error({description:"Seems like there are no more items in stock."});a.value++}else{if(parseInt(a.value)<=0||!e&&parseInt(a.value)==1)return!1;--a.value}return e?a.onchange({target:a}):!0}checkQueue(){this.queue.length&&this.processQueue(this.queue.shift())}async processQueue(t){if(_lazyCheck==-1)return;var r=this;let e;if(t.target&&_settings.ajaxType=="disabled"){t.target.disabled=!1,t.target.querySelector("[data-button-text]").innerText=t.target.dataset.originalText;let{target:a}=t;if(a.type=="submit")return;a.setAttribute("type","submit"),a.removeAttribute("onClick"),a.click();return}else if(t.target&&_settings.ajaxType=="form"){let a=t.target.closest("form");const n=new URLSearchParams(new FormData(a));e=await fetch("/cart/add.js",{method:"POST",body:n,headers:{"Content-Type":"multipart/form-data"}}).then(s=>s.json())}else e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{quantity:t.quantity,id:t.id}]})}).then(a=>a.json());if(!isUndefined(e.status)&&e.status!="success")return t.target&&(t.target.disabled=!1),t.target&&(t.target.querySelector("[data-button-text]").innerText=t.target.dataset.originalText),this.error(e),this.checkQueue();t.target&&(t.target.querySelector("[data-button-text]").innerText=t.target.dataset.originalText),t.target&&(t.target.disabled=!1),this.awaitingSuccess.push(e),this.checkQueue()}async success(t){let r=this.cartSuccessConfig;if(r.action=="cart")return window.location="/cart";if(r.action=="checkout")return window.location="/checkout";if(r.action=="message")return boosterTheme.notify({type:"success",message:"Product added to cart successfully."});let e=document.getElementById("checkout--success"),a=e.closest(".modal"),n=t.items&&t.items[0]||t,s=n.image,i=n.product_title,o="",l=this.minicart.data.total,c=this.minicart.data.item_count,m=c+" item";m+=c>1&&"s"||"",n.product_has_only_default_variant||(o=n.variant_title);let d=e.querySelector(".add-to-cart__success--single");d.querySelector(".add-to-cart__success--single-img").src=s,d.querySelector(".add-to-cart__success--single-title").innerText=i,d.querySelector(".add-to-cart__success--single-variation").innerText=o;let _=this.cartSuccessInfoTemplate;if(_=_.replace("%total%",l),_=_.replace("%itemCount%",m),d.querySelector(".add-to-cart__success--single-current").innerHTML=_,r.action=="upsell"){let y=await boosterTheme.getUpsell(n.url),p=e.querySelector(".add-to-cart__success--upsell");if(y.trim()!=""){try{document.getElementById("quickbuy__modal").style.display="none"}catch(w){}p.style.display="flex",p.innerHTML=y}else p.style.display="none"}try{boosterProductPage.onNewContent()}catch(y){}a.style.display="block"}error(t){boosterTheme.notify({type:"error",message:t.description})}}class BoosterCtxMenu{constructor(){}async disableInspection(){document.addEventListener("keydown",t=>{if(t.keyCode==123||t.ctrlKey&&t.shiftKey&&t.keyCode=="I".charCodeAt(0)||t.ctrlKey&&t.shiftKey&&t.keyCode=="C".charCodeAt(0)||t.ctrlKey&&t.shiftKey&&t.keyCode=="J".charCodeAt(0)||t.ctrlKey&&t.keyCode=="U".charCodeAt(0))return t.preventDefault()})}openCtxMenu(t){t.preventDefault(),this.ctxMenuHolder.style.display="block",this.ctxMenu.style.left=`${t.clientX}px`,this.ctxMenu.style.top=`${t.clientY}px`,this.ctxMenu.classList.add("open")}closeCtxMenu(t){let r=t.target;if(r.className!="overlay")try{r=r.closest(".ctxMenu__item"),r.href=r.href.replace("#URL#",window.location.href)}catch(e){}this.ctxMenuHolder.style.display="none",this.ctxMenu.classList.remove("open")}}class BoosterCountdown{constructor(){_settings.countdown&&this.init()}async init(t=document){let r=t.querySelectorAll("[data-countdown]");this.bstrCts?this.bstrCts.push(...r):this.bstrCts=[...r];let e=bstore.get("bstrCts");e||(e={});let a=new Date().getTime(),n=parseInt(_settings.countdownRandom);function s(m){switch(m){case"days":return 864e5;case"hours":return 36e5;case"minutes":return 6e4;case"seconds":return 1e3;default:return 864e5}}let i,o,l;if(_settings.countdownTime.includes("/"))i=new Date(_settings.countdownTime).getTime(),o=i-n*864e5,l=i+n*864e5;else{let m=parseInt(_settings.countdownTime),d=s(_settings.countdownTimeFormat);o=a+Math.abs(m-n)*d,l=a+Math.abs(m+n)*d}function c(m,d,_=!0){if(d=="app"){let y=getRandomInt(o,l);return m.dataset.expiryTime=y,y}else{let y,p=m.dataset.duration;return p.includes("/")?y=new Date(p).getTime():y=a+parseInt(p)*s(m.dataset.durationFormat),_&&(m.dataset.expiryTime=y),y}}for(let m=0,d=r.length;ml){let w=getRandomInt(o,l);e[y]=w,_.dataset.expiryTime=w}else _.dataset.expiryTime=e[y];else{let w=c(_,p,!1);e[y]>w?(_.dataset.expiryTime=i,e[y]=w):_.dataset.expiryTime=e[y]}}bstore.set("bstrCts",e,1440),this.countdownStarted||(setInterval(this.tickCountdowns.bind(this),1e3),this.countdownStarted=!0)}tickCountdowns(){for(let t=0,r=this.bstrCts.length;t=10&&o||"0"+o,e-=o*86400;let l=Math.floor(e/3600)%24;e-=l*3600,n.innerText=l>=10&&l||"0"+l;let c=Math.floor(e/60)%60;e-=c*60,s.innerText=c>=10&&c||"0"+c;let m=e%60;i.innerText=m>=10&&Math.floor(m)||"0"+Math.floor(m)}}class BoosterFilters{constructor(t){this.currentFilters=document.querySelector("[data-current-filters]"),this.parent=t,this.init()}async init(){let t=this,r=document.querySelectorAll("[data-filter]");if(!r.length)return;let e=collectionInfo.currentTags.split(",");for(let a=0;a{t.addFilter(n)},e.includes(r[a].dataset.filter)&&this.addFilter(void 0,r[a])}addFilter(t,r){let e=this.currentFilters,a=JSON.parse(e.dataset.currentFilters);r||(r=t.target),r=r.dataset.parent&&r||r.closest(".filter__tag");let n=document.createElement("span");if(n.id=r.id,n.dataset.parent=r.dataset.parent,n.dataset.filter=r.dataset.filter.trim(),n.classList.add("filter__current-tag"),r.dataset.color){let o=document.createElement("span");o.classList.add("filter__current-color"),o.style.backgroundColor=r.dataset.color,n.appendChild(o)}let s=document.createTextNode(r.dataset.filter);n.appendChild(s);let i=this;n.onclick=o=>{i.removeFilter(o)},e.appendChild(n),r.classList.add("hide"),a.push(r.dataset.filter.trim()),e.dataset.currentFilters=JSON.stringify(a),!!t&&this.renderFilter(a)}removeFilter(t){let r=this.currentFilters,e=JSON.parse(r.dataset.currentFilters),a=t.target;a=a.dataset.parent&&a||a.closest(".filter__current-tag"),e.splice(e.indexOf(a.dataset.filter),1),r.dataset.currentFilters=JSON.stringify(e),a.parentElement.removeChild(a),document.getElementById(a.id).classList.remove("hide"),this.renderFilter(e)}async renderFilter(t){let r=t.join("+"),e=new Date().getTime(),a=new URL(document.URL),n=document.getElementById("sort-by");var s=n.options[n.selectedIndex].value;a.searchParams.set("constraint",r),a.searchParams.set("sort_by",s),a.searchParams.delete("page");let i=a.href;a.searchParams.set("section_id","product-list");var o=document.getElementById("shopify-section-product-list");o.style.opacity="0.50";let l=await fetch(a.href);if(!l.ok)return o.style.opacity="1";let c=await l.text(),m=document.createElement("div");m.innerHTML=c;let d=m.querySelector("#shopify-section-product-list").innerHTML;if(o.dataset.lastUpdate>e)return;history.replaceState({},"",i);let _=m.querySelector(".JSON-collectionTotalItems").innerText,y=document.querySelector(".collection__total-items");return y&&(y.innerText=_),o.innerHTML=d,o.dataset.lastUpdate=e,document.querySelector(".filter__mobile--current").innerText=`${t.length}`,this.parent.onNewContent(o),o.style.opacity="1"}}class BoosterInstagram{constructor(){this.init()}async init(){let t=document.querySelectorAll("[data-instagram-section]");for(let r=0,e=t.length;r4&&"1-5"||"3";for(let o=0;o
Likes: ${d}
Comments: ${m}
`}t.innerHTML=r,boosterTheme.lazyLoad.update()}catch(r){t.closest(".shopify-section").style.display="none"}}}class BoosterSlider{constructor(t="[data-booster-slider]"){this.selector=t,this.autoplay=[],this.init(),setInterval(this.autoplaySlides.bind(this),5e3)}init(){let t=this.selector,r=document.querySelectorAll(t),e=[];for(let a=0,n=r.length;a{c.preventDefault(),this.nextSlide(s)}),l&&l.addEventListener("click",c=>{c.preventDefault(),this.prevSlide(s)})}this.autoplay=[...this.autoplay,...e],this.initSwipe()}async initSwipe(){this.swipe=new SwipeIt(this.selector),this.swipe.on("swipeLeft",t=>{t.target.dataset.paused=new Date().getTime(),this.nextSlide(t.target)}),this.swipe.on("swipeRight",t=>{t.target.dataset.paused=new Date().getTime(),this.prevSlide(t.target)})}onNewContent(){this.init()}autoplaySlides(){let t=new Date().getTime();for(let r=0,e=this.autoplay.length;r0){if(t-a.dataset.paused<5e3)continue;a.dataset.paused=0}this.nextSlide(a)}}}async nextSlide(t){event&&event.stopPropagation();let r=t.dataset.currentSlide;t.dataset.currentSlide++,this.changeSlide(t,r)}async prevSlide(t){event&&event.stopPropagation();let r=t.dataset.currentSlide;--t.dataset.currentSlide,this.changeSlide(t,r)}async changeSlide(t,r){let e=t.querySelector("[data-slider-holder]"),a=e.children[r];a.dataset.type=="bannerSlider"&&(a=a.querySelector("div")),a.dataset.type=="video"&&a.querySelector("video").pause(),a.classList.remove("slide__animation"),t.dataset.currentSlide>=t.dataset.totalSlides?t.dataset.currentSlide=0:t.dataset.currentSlide<0&&(t.dataset.currentSlide=t.dataset.totalSlides-1);let n=e.children[t.dataset.currentSlide];n.dataset.type=="bannerSlider"&&(n=n.querySelector("div")),n.dataset.type=="video"&&n.querySelector("video").play(),e.dataset.sliderHolder=="adaptive"&&(e.style.height=`${n.offsetHeight}px`);let s=t.dataset.translateX==null&&100||parseInt(t.dataset.translateX);e.style.transform=`translateX(-${t.dataset.currentSlide*s}%)`,n.classList.add("slide__animation")}}class BoosterLazy{constructor(t="lazyload"){this.class=t,this.init(),this.images=!0}init(){const t=this;this.observer=new IntersectionObserver(function(e,a){for(let n=0,s=e.length;n=c||d+1==m.length){o.style.backgroundImage=`url(${y})`;break}}break}o.src=o.dataset.src;break;case"VIDEO":let l=o.querySelector("source");l.src=l.dataset.src;break;default:o.src=o.dataset.src;break}a.unobserve(i.target)}}},{rootMargin:"0px 0px 100px 0px",threshold:.5});let r=document.querySelectorAll(".lazyload");for(let e=0,a=r.length;e=t.dataset.messagescount){t.dataset.currentmessage=0,t.style.transform="translateY(0%)";return}t.dataset.currentmessage++,t.style.transform=`translateY(-${t.dataset.currentmessage*100}%)`}onNewContent(t,r=!1){switch(this.lazyLoad.update(),this.slider.onNewContent(),this.countdowns.init(t),_settings.reviewApp){case"shopifyReviews":try{SPR.initRatingHandler(),SPR.initDomEls(),SPR.loadProducts(),SPR.loadBadges()}catch(e){}break;default:break}if(!r)try{boosterProductPage.onNewContent(!0)}catch(e){}}notify(t){var r=this,e;t.url?(e=document.createElement("a"),e.href=t.url,e.target="_blank"):e=document.createElement("div"),t.id&&(e.dataset.id=t.id);const a=function(){if(this.dataset.id){let n=bstore.get("bstr_notifs")||{},s=n.dismissed||[];s.push(this.dataset.id),n.dismissed=s,bstore.set("bstr_notifs",n,120)}this.parentElement.removeChild(this)};e.setAttribute("class","booster__popup booster__popup--"+t.type),e.innerText=t.message,r.popupHolder.appendChild(e),e.onclick=a,e.classList.add("anim__fade-in"),t.expires!==!1&&setTimeout(function(){try{r.popupHolder.removeChild(e)}catch(n){}},t.expires||5e3)}toggleTab(t,r){let a=t.closest(".tab__container");a.querySelector(".tab--show").classList.remove("tab--show"),a.querySelector(`#${r}`).classList.add("tab--show"),a.querySelector(".tab__holder").querySelector(".tab--active").classList.remove("tab--active"),t.classList.add("tab--active")}toggleCollectionView(t,r){if(r.classList.contains("view--active"))return;r.closestEl(".view--active").classList.remove("view--active"),r.classList.add("view--active");let e=document.querySelectorAll(".row--product");if(t=="card")for(var a=0,n=e.length;a0){let s=`/search/suggest.json?q=${e}&resources[type]=product&resources[limit]=5&resources[options][unavailable_products]=last`;fetch(s).then(i=>i.json()).then(i=>r.populateSearchSuggest(n,i))}else return this.handleEmptySearch(n)}handleEmptySearch(t){return t.innerHTML=emptySearch,this.onNewContent()}quickBuy(t){if(window.innerWidth<768)return;t.preventDefault();let r=t.target.closest("a").href;r+=r.includes("?")&&"§ion_id=product-page__product"||"?section_id=product-page__product",fetch(r).then(e=>e.text()).then(e=>{let a=document.createElement("div");if(a.innerHTML=e,a.querySelector(".product__row").classList.contains("product__row--marketplace")){let s=a.querySelector(".product__row");s.classList.remove("product__row--marketplace");let i=s.querySelector(".product__page--info"),o=i.querySelector(".product__title"),l=i.querySelector(".product__price--holder");s.removeChild(i);let c=s.querySelector(".product__page--info");c.querySelector(".product__title")||c.insertBefore(o,c.firstChild),c.querySelector(".product__price")||c.querySelector(".product__title").insertAdjacentElement("afterend",l)}let n=document.getElementById("quickbuy__modal");n.querySelector(".content").innerHTML=''+a.innerHTML,n.style.display="flex",boosterProductPage.onNewContent()})}}class BoosterProductPage{constructor(){!_lazyInit||(this.initSwatches(),this.initThumbButtons(),this.initStock(),this.initWatching(),this.initInCart(),this.initSwipe(),this.initPagination())}onNewContent(t=!1){this.initSwatches(),this.initThumbButtons(),this.initStock(),this.initWatching(),this.initInCart();try{boosterApps.initCurrencyFX(!0)}catch(r){}if(!t)try{boosterTheme.onNewContent(void 0,!0)}catch(r){}}initPagination(){if(_settings.pagination=="infinite"){let t=document.getElementById("shopify-section-product-list");if(!t)return;window.addEventListener("scroll",debounce(()=>{if(window.innerHeight+window.scrollY>=t.offsetHeight){let r=document.querySelector(".pagination--hidden");if(!r)return;boosterTheme.renderChangePage(!1,r,!1)}},250))}}toggleZoom(t,r=-1){let e=t.currentTarget;if(e.dataset.zoom=="2x"){if(r!=-1&&r)return;e.onmousemove=null,e.style.backgroundImage="none",e.dataset.newImage="reset",e.querySelector("img").style.opacity=1,e.dataset.zoom="1x"}else{if(r!=-1&&!r)return;e.querySelector("img").style.opacity=0,e.dataset.zoom="2x",e.dataset.newImage=="reset"&&(e.style.backgroundImage=`url(${e.dataset.highResImage})`,e.dataset.newImage="set");let a,n;t.offsetX?a=t.offsetX:a=t.touches[0].pageX,t.offsetY?n=t.offsetY:a=t.touches[0].pageX;let s=a/e.offsetWidth*100,i=n/e.offsetHeight*100;e.style.backgroundPosition=s+"% "+i+"%",window.innerWidth>768&&(e.onmousemove=boosterProductPage.adjustZoom)}}adjustZoom(t){var r=t.currentTarget;let e,a;t.offsetX?e=t.offsetX:e=t.touches[0].pageX,t.offsetY?a=t.offsetY:e=t.touches[0].pageX;let n=e/r.offsetWidth*100,s=a/r.offsetHeight*100;r.style.backgroundPosition=n+"% "+s+"%"}galleryChangeImage(t,r){t&&t.preventDefault();let e=r.closest(".gallery");e.querySelector(".gallery__thumbnails span.active").classList.remove("active");let a=r.dataset.mediaType,n=e.querySelector(".active__holder");n.classList.remove("active__holder"),n.dataset.mediaHolder=="image"?n.parentElement.style.display="none":n.style.display="none";let s=e.querySelector(`[data-media-holder="${a}"]`);if(a=="image"?s.parentElement.style.display="block":s.style.display="block",s.classList.add("active__holder"),a=="image"){let i=s.parentElement;i.dataset.highResImage=r.dataset.highResImage,i.dataset.newImage="reset",s.src=r.dataset.href,s.alt=r.getAttribute("alt")}e.dataset.currentImage=r.dataset.imageIndex,r.classList.add("active")}async initSwipe(){let t=this;this.swipeit=new SwipeIt(".gallery"),this.swipeit.on("swipeLeft",r=>{let e=r.target;if(e.querySelector(".gallery__image.active"))return;let a=parseInt(e.dataset.currentImage),n=e.querySelector(".gallery__thumbnails").children;++a,a=a{let e=r.target;if(e.querySelector(".gallery__image.active"))return;let a=parseInt(e.dataset.currentImage),n=e.querySelector(".gallery__thumbnails").children;--a,a=a<0&&n.length-1||a,t.galleryChangeImage("",n[a])})}async initThumbButtons(){let t=document.querySelectorAll(".gallery__button--holder");for(let r=0,e=t.length;r=a.scrollHeight&&(t[r].style.display="none")}}scrollThumbs(t){let r=t.dataset.direction,e=t.closestEl(".gallery__thumbnails"),a=e.children[0].offsetHeight,n=e.style.transform==""?0:parseInt(e.style.transform.split("(")[1])*-1;r=="up"?(n-a<=0?(n=0,t.disabled=!0):n-=a,t.closestEl(".gallery__button").disabled&&(t.closestEl(".gallery__button").disabled=!1)):(n+e.clientHeight+a>=e.scrollHeight?(n=e.scrollHeight-e.clientHeight,t.disabled=!0):n+=a,t.closestEl(".gallery__button").disabled&&(t.closestEl(".gallery__button").disabled=!1)),e.style.transform=`translateY(-${n}px)`}async initStock(){this.stockInterval&&clearInterval(this.stockInterval);let t=document.querySelectorAll("[data-stock-type]");if(!t.length)return;let r=bstore.get("bstrStock")||{},e=[],a=parseInt(t[0].dataset.reduce);(t[0].dataset.stockType=="inventory"||r.stockInfo!=t[0].dataset.stockType)&&(r={stockInfo:t[0].dataset.stockType});for(let s=0,i=t.length;s0){var n=this;this.stockInterval=setInterval(()=>{n.stockManagement(e)},a*1e3)}}stockManagement(t){let r=bstore.get("bstrStock")||{};for(let e=0,a=t.length;e1&&--s,r[n.dataset.product]=s;let i=Math.floor(s/n.dataset.stockLeft*100*.25);i<5&&(i=5),n.closestEl(".amount--left").style.width=i+"%",n.innerText=s}bstore.set("bstrStock",r,1440)}async initWatching(){this.watchingInterval&&clearInterval(this.watchingInterval);let t=document.querySelectorAll("[data-watching]");if(!t.length)return;let r=parseInt(t[0].dataset.pollingInterval);this.initCountManagement(t,"watch",r)}async initInCart(){this.inCartInterval&&clearInterval(this.inCartInterval);let t=document.querySelectorAll("[data-in-cart]");if(!t.length)return;let r=parseInt(t[0].dataset.pollingInterval);this.initCountManagement(t,"cart",r)}initCountManagement(t,r,e){var a=this;this.countManagement(t,r),r=="cart"?this.inCartInterval=setInterval(()=>{a.countManagement(t,r)},e*1e3):this.watchingInterval=setInterval(()=>{a.countManagement(t,r)},e*1e3)}countManagement(t,r){let e={};for(let a=0,n=t.length;a{this.handleSwatchChange(c,this)});if(a.dataset.swatchContainer=!0,a.dataset.preselectSwatch!="false")if(a.dataset.preselectSwatch=="firstOptionIndex")a.querySelector('input[type="radio"]').click();else{let i=a.dataset.preselectSwatch.split(",");for(let o of i)try{a.querySelector(`[data-option-name="${o.toLowerCase()}"]`).querySelector('input[type="radio"]').click();break}catch(l){continue}}}}setVariantParam(t=!1){let r=new URLSearchParams(window.location.search);t?r.set("variant",t):r.delete("variant");let e=r.toString()==""?window.location.pathname:window.location.pathname+"?"+r.toString();history.replaceState(null,"",e)}resetSwatches(t){for(let a of t.querySelectorAll('input[type="radio"]'))a.checked=!1,a.parentElement.classList.remove("hide"),a.parentElement.classList.remove("active");for(let a of t.querySelectorAll(".swatch__current"))a.innerText="";for(let a of t.querySelectorAll("[data-selected-index]"))a.dataset.selectedIndex=-1;t.closest("#checkout--success")||t.closest("#quickbuy__modal")||t.closest(".s__holder.featured-product")||this.setVariantParam(!1);try{let a=t.closestEl('input[name="id"]');a.dataset.variantId=-1,a.setAttribute("value",-1)}catch(a){}t.dataset.currentSwatches=JSON.stringify([]);let e=t.closestEl(".product__atc").querySelectorAll("button");for(let a=0;av).length,m,d=e.closest("[data-swatch-options]"),_=parseInt(d.dataset.selectedIndex);_==-1?(d.dataset.selectedIndex=c,m=c):m=_;let y=decodeURIComponent(e.dataset.value);if(e.closestEl(".swatch__current").innerText="- "+y,o[a]=y,d.querySelector(".active")&&d.querySelector(".active").classList.remove("active"),e.parentElement.classList.add("active"),e.dataset.swatchTab==""){let v=d.id,g=d.closestEl(".tab__holder").querySelector(`[data-tab-label="${v}"]`);g.nextElementSibling&&g.nextElementSibling.dataset.tabLabel&&g.nextElementSibling.click()}function p(){if(l==JSON.stringify(o))return;let v=o.filter(h=>h).length,g=Array.from(n.querySelectorAll("[data-selected-index]")),b=new Array(g.length);for(let h of g){let x=parseInt(h.dataset.selectedIndex);x!=-1&&(b[x]=g.indexOf(h))}let C=[],S=[],f=-1;if(i==3&&v>1)if(isNaN(parseInt(b[2]))){for(let h=0;hS.includes(h.options[f]))),C}let w=p(),k=n.querySelectorAll("[data-selected-index]");function q(){if(l==JSON.stringify(o))return;let v=!1;for(let g of k){let b=parseInt(g.dataset.selectedIndex);if(b==m||b!=-1&&bv).length,n.dataset.currentSwatches=JSON.stringify(o),c==i){let v=o.join(" / "),g=s[v];try{let S=n.closestEl("[data-product-price]");S.innerText=g.price,S.dataset.currency="";let f=n.closestEl("[data-product-price-sale]");f.innerText=g.sale,f.dataset.currency="";let h=n.closestEl("[data-tag-type]"),x=!1;if(g.sale!="")try{parseInt(g.sale.replace(/[^0-9]*/gi,""))>0&&(x=!0)}catch(L){x=!0}if(x){if(S.classList.add("product__price--sale"),h)switch(h.classList.remove("hide"),h.dataset.tagType){case"percent":{let L=parseFloat(g.price.replace(/[^\.\d]*/,"")),I=parseFloat(g.sale.replace(/[^\.\d]*/,"")),T=Math.ceil((I-L)/I*100);h.innerText="-"+T+"% OFF";break}case"amount":{let L=parseFloat(g.price.replace(/[^\.\d]*/,"")),I=parseFloat(g.sale.replace(/[^\.\d]*/,"")),T=h.querySelector("span");T?(T.dataset.currency=Shopify.currency.active,T.innerText=(I-L).toFixed(2)+" "+Shopify.currency.active):h.innerHTML=`- ${(I-L).toFixed(2)} ${Shopify.currency.active} OFF`;break}}}else S.classList.remove("product__price--sale"),h&&h.classList.add("hide")}catch(S){}try{boosterApps.initCurrencyFX(!0)}catch(S){}let b=e.closestEl('input[name="id"]');try{if(_settings.variantShowImage){let f=e.closest("[data-product-holder]").querySelectorAll("[data-gallery-type]");for(let h of f)if(h.dataset.galleryType=="thumbs"){let x=h.querySelector(`[data-variants*="${g.id}"]`);x&&x.click()}else{let x=h.querySelector(".image__outlined");x&&x.classList.remove("image__outlined");let L=h.querySelector(`[data-variants*="${g.id}"]`);if(!L)continue;L.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),L.querySelector("img").classList.add("image__outlined")}}}catch(S){}if(e.closest("#checkout--success")||e.closest("#quickbuy__modal")||e.closest(".s__holder.featured-product")||this.setVariantParam(g.id),g.available){b&&(b.dataset.variantId=g.id,b.setAttribute("value",g.id));let S=e.closestEl(".product__atc").querySelectorAll("button");for(let f=0;fr?document.getElementById("inline-upsell__discount").innerHTML=Currency.formatMoney(e,a):document.getElementById("inline-upsell__discount").innerHTML=""}async recentlyBought(){if(typeof recentlyBoughtConfig=="undefined")return;let t,r=recentlyBoughtConfig,e;if(!t){let s=await(await fetch(r.allProductsUrl+"?section_id=api__recently-bought")).text(),i=document.createElement("div");i.innerHTML=s;let o=JSON.parse(i.querySelector(".shopify-section").innerText);o.names=o.names.split(","),o.names=o.names.filter(l=>l.trim()!=""),o.names.length||(o.names="Alissa Ashford, Carroll Calley, Augustina Angulo, Kenna Kuntz, Hailey Hinkle, Breann Beckham, Raquel Roles, Bernetta Beeks".split(",")),t=o}function a(){let n=document.getElementById("recently-bought--holder");function s(){let i=n.querySelector(".recently-bought--img img"),o=n.querySelector(".recently-bought--who"),l=n.querySelector(".recently-bought--when"),c=n.querySelector(".recently-bought--what"),m=n.querySelector(".recently-bought--price"),d=t.names,_=t.collection,y=_[getRandomInt(0,_.length-1)],p;if(r.useNames){if(p=d[getRandomInt(0,d.length-1)].trim(),r.nameFormat=="shorten"){let w=p.split(" ");p=w[0];try{w=w[1].substring(0,1)+".",p+=" "+w}catch(k){}}else if(r.nameFormat=="initials"){let w=p.split(" ");p="";for(let k=0;k{n.classList.remove("anim__fade-in"),n.classList.add("anim__fade-out"),setTimeout(()=>{n.classList.remove("anim__fade-out"),n.style.display="none"},500)},_settings.recentlyBoughtRemain*1e3)}setInterval(a,(_settings.recentlyBoughtInterval+_settings.recentlyBoughtRemain)*1e3)}}function submitSearch(u){u.closestEl("form").submit()}function openSearch(u){u?(u.closest("[data-search-container]").classList.add("focused"),u.tagName!="input"&&(u=u.closestEl("input"))):(u=document.querySelector(".search__container--abs"),u.classList.add("focused"),u=u.querySelector("input")),u.focus();let t=u.closestEl("[data-search-suggest]");u.value.length||boosterTheme.handleEmptySearch(t)}function closeSearch(u){u.closest("[data-search-container]").classList.remove("focused")}const boosterTheme=new BoosterTheme,boosterCart=new BoosterCart,boosterProductPage=new BoosterProductPage,boosterApps=new BoosterApps,boosterCtxMenu=new BoosterCtxMenu;function slideModels(u,t=!1){let r=u.target.closest(".lookbook--3d"),e=parseInt(r.dataset.max),a=r.querySelector(".lookbook--3d__slides");t?++r.dataset.current:--r.dataset.current;let n=parseInt(r.dataset.current),s=n;n==e?s=n-1:n>e?(r.dataset.current=0,s=0,n=0):n<0&&(s=e-1,n=e,r.dataset.current=e);let i=r.querySelector(".lookbook--3d__products");i.querySelector(".product--active").classList.remove("product--active"),i.children[n].classList.add("product--active"),r.querySelector(".lookbook--3d__products").style.transform="translateY(-"+50*s+"%)",++n,++e;for(let o=1;o<=e;++o)a.children[o].dataset.position=n-o}let modelsSwipe=new SwipeIt(".lookbook--3d");modelsSwipe.on("swipeRight",u=>{slideModels(u,!0)}),modelsSwipe.on("swipeLeft",u=>{slideModels(u)}),console.info(`888888b. 888 88888888888 888 888 "88b 888 888 888 888 .88P 888 888 888 8888888K. .d88b. .d88b. .d8888b 888888 .d88b. 888d888 888 88888b. .d88b. 88888b.d88b. .d88b. 888 "Y88b d88""88b d88""88b 88K 888 d8P Y8b 888P" 888 888 "88b d8P Y8b 888 "888 "88b d8P Y8b 888 888 888 888 888 888 "Y8888b. 888 88888888 888 888 888 888 88888888 888 888 888 88888888 888 d88P Y88..88P Y88..88P X88 Y88b. Y8b. 888 888 888 888 Y8b. 888 888 888 Y8b. 8888888P" "Y88P" "Y88P" 88888P' "Y888 "Y8888 888 888 888 888 "Y8888 888 888 888 "Y8888 `);