jQuery(function($){
"use strict";
var wishlistEvents='yith_wcwl_fragments_replaced yith_wcwl_reload_fragments yith_wcwl_add_to_wishlist_ajax_success yith_wcwl_remove_from_wishlist_ajax_success yith_wcwl_wishlist_product_added yith_wcwl_wishlist_product_removed yith_wcwl_wishlist_updated added_to_wishlist removed_from_wishlist';
var wishlistSettings=window.shopkeeperWishlistCounters||{};
var wishlistRequest=null;
if(! wishlistSettings.ajax_url){
return;
}
function refreshWishlistCount(){
if(wishlistRequest&&wishlistRequest.readyState!==4){
wishlistRequest.abort();
}
wishlistRequest=$.post(wishlistSettings.ajax_url,
{
action: wishlistSettings.action,
nonce: wishlistSettings.nonce
}
).done(function(response){
if(response&&response.success&&response.data&&typeof response.data.count!=='undefined'){
$('.wishlist_items_number').text(response.data.count);
}}).always(function(){
wishlistRequest=null;
});
}
$(document).on(wishlistEvents, refreshWishlistCount);
refreshWishlistCount();
});
jQuery(function($){
"use strict";
if(getbowtied_scripts_vars.option_minicart==1&&getbowtied_scripts_vars.option_minicart_open==1){
$('body').on('click', '.shopping-bag-button .tools_button', function(e){
if($('body').hasClass('gbt_custom_notif')){
$('.gbt-custom-notification-notice').removeClass('open-notice').removeAttr('style').addClass('fade-out-notice');
}
if($(window).width() >=1024){
e.preventDefault();
$('.shopkeeper-mini-cart').toggleClass('open');
e.stopPropagation();
}else{
e.stopPropagation();
}});
$('body').on('click', function(event){
if($('.shopkeeper-mini-cart').hasClass('open')){
if(!$(event.target).is('.shopkeeper-mini-cart')&&!$(event.target).is('.shopping-bags-button .tools-button')&&!$(event.target).is('.woocommerce-message')
&&($('.shopkeeper-mini-cart').has(event.target).length===0)){
$('.shopkeeper-mini-cart').removeClass('open');
}}
});
}
if($(window).width() >=1024){
if(getbowtied_scripts_vars.option_minicart==1&&getbowtied_scripts_vars.option_minicart_open==2){
$('.shopping-bag-button').on({
mouseenter: function(e){
if(!($('.shopkeeper-mini-cart').hasClass('open'))){
window.setTimeout(function(){
if($('body').hasClass('gbt_custom_notif')){
$('.gbt-custom-notification-notice').removeClass('open-notice').removeAttr('style').addClass('fade-out-notice');
}
e.preventDefault();
$('.shopkeeper-mini-cart').addClass('open');
e.stopPropagation();
}, 350);
}},
mouseleave: function(){
window.setTimeout(function(){
if($('.shopkeeper-mini-cart').hasClass('open')&&!$('.shopkeeper-mini-cart').is(':hover')){
$('.shopkeeper-mini-cart').removeClass('open');
}}, 500);
}});
$('.shopkeeper-mini-cart').on({
mouseleave: function (e){
window.setTimeout(function(){
if(($('.shopkeeper-mini-cart').hasClass('open'))){
$('.shopkeeper-mini-cart').removeClass('open');
}}, 500);
}});
}}
});
jQuery(function($){
"use strict";
var pagination_type=getbowtied_scripts_vars.shop_pagination_type;
var load_more_text=getbowtied_scripts_vars.ajax_load_more_locale;
var load_more_loading_text=getbowtied_scripts_vars.ajax_loading_locale;
var no_more_items_text=getbowtied_scripts_vars.ajax_no_more_items_locale;
function reloadYithWishlistButtons(){
if(window.wp&&window.wp.hooks){
window.wp.hooks.doAction('yith_wcwl_init_add_to_wishlist_components');
}}
if(pagination_type=='load_more_button'||pagination_type=='infinite_scroll'){
if($('.woocommerce-pagination').length&&$('body').hasClass('archive') ){
$('.woocommerce-pagination').before('<div class="getbowtied_ajax_load_button"><a getbowtied_ajax_load_more_processing="0">' + load_more_text + '</a></div>');
if(pagination_type=='infinite_scroll'){
$('.getbowtied_ajax_load_button').addClass('getbowtied_ajax_load_more_hidden');
}
if($('.woocommerce-pagination a.next').length==0){
$('.getbowtied_ajax_load_button').addClass('getbowtied_ajax_load_more_hidden');
}
$('.woocommerce-pagination').hide();
}
$('body').on('click', '.getbowtied_ajax_load_button a', function(e){
e.preventDefault();
if($('.woocommerce-pagination a.next').length){
$('.getbowtied_ajax_load_button a').attr('getbowtied_ajax_load_more_processing', 1);
var href=$('.woocommerce-pagination a.next').attr('href');
$('.getbowtied_ajax_load_button').fadeOut(200, function(){
$('.woocommerce-pagination').before('<div class="getbowtied_ajax_load_more_loader"><span>' + load_more_loading_text + '</span></div>');
});
$.get(href, function(response){
$('.woocommerce-pagination').html($(response).find('.woocommerce-pagination').html());
var i=0;
$(response).find('.site-content ul.products > li').each(function(){
i++;
$(this).addClass("ajax-loaded delay-" + i);
$('.site-content ul.products > li:last').after($(this));
});
$('.getbowtied_ajax_load_more_loader').fadeOut(200, function(){
$('.getbowtied_ajax_load_button').fadeIn(200);
$('.getbowtied_ajax_load_button a').attr('getbowtied_ajax_load_more_processing', 0);
});
setTimeout(function(){
$('.getbowtied_ajax_load_more_loader').remove();
}, 250);
$(document).trigger('post-load');
reloadYithWishlistButtons();
setTimeout(function(){
$('.site-content ul.products > li').each(function(){
var image=$(this).find('.product_thumbnail > img.jetpack-lazy-image');
if(image){
if(image.attr('data-lazy-srcset')){
image.attr('srcset', image.attr('data-lazy-srcset'));
}else{
image.attr('srcset', image.attr('src'));
}}
});
$('.site-content ul.products > li.hidden').removeClass('hidden').addClass('animate');
}, 500);
if($('.woocommerce-pagination a.next').length==0){
$('.getbowtied_ajax_load_button').addClass('finished').removeClass('getbowtied_ajax_load_more_hidden');
$('.getbowtied_ajax_load_button a').show().html(no_more_items_text).addClass('disabled');
}});
}else{
$('.getbowtied_ajax_load_button').addClass('finished').removeClass('getbowtied_ajax_load_more_hidden');
$('.getbowtied_ajax_load_button a').show().html(no_more_items_text).addClass('disabled');
}});
}
if(pagination_type=='infinite_scroll'){
var buffer_pixels=Math.abs(0);
$(window).on('scroll', function(){
if($('.site-content ul.products:not(.product-categories)').length){
var a=$('.site-content ul.products:not(.product-categories)').offset().top + $('.site-content ul.products:not(.product-categories)').outerHeight();
var b=a - $(window).scrollTop();
if((b - buffer_pixels) < $(window).height()){
if($('.getbowtied_ajax_load_button a').attr('getbowtied_ajax_load_more_processing')==0){
$('.getbowtied_ajax_load_button a').trigger('click');
}}
}});
}
$('section.related.products').addClass('mobile-columns-' + getbowtied_scripts_vars.mobile_product_columns);
$('section.upsells.products').addClass('mobile-columns-' + getbowtied_scripts_vars.mobile_product_columns);
});
(()=>{var e,t,n={790:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(37);const s=n.n(r)()("wc-analytics:consent"),o="statistics",a=new class{consentListeners=[];isListenerInitialized=!1;isWpConsentApiAvailable(){return"function"==typeof window.wp_has_consent}hasAnalyticsConsent(){if(!this.isWpConsentApiAvailable())return s("WP Consent API not available, defaulting to true for backward compatibility"),!0;const e=window.wp_has_consent(o);return s("Analytics consent status:",e),e}addConsentChangeListener(e){this.consentListeners.push(e),this.initializeConsentListener()}initializeConsentListener(){!this.isListenerInitialized&&this.isWpConsentApiAvailable()&&(s("Initializing consent change listener"),document.addEventListener("wp_listen_for_consent_change",e=>{const t=e.detail;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&e===o&&this.notifyListeners("allow"===t[e])}),this.isListenerInitialized=!0)}notifyListeners(e){this.consentListeners.forEach(t=>{try{t(e)}catch(e){s("Error in consent change listener:",e)}})}}},135:(e,t,n)=>{"object"==typeof window&&window.wcAnalytics?.assets_url&&(n.p=window.wcAnalytics.assets_url)},37:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))}),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(588)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},588:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,o,a=null;function i(...e){if(!i.enabled)return;const r=i,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,s)=>{if("%%"===n)return"%";a++;const o=t.formatters[s];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e,t){let n=0,r=0,s=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(s=r,o=n,r++):(n++,r++);else{if(-1===s)return!1;r=s+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(s(e,n))return!1;for(const n of t.names)if(s(e,n))return!0;return!1},t.humanize=n(207),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},207:e=>{var t=1e3,n=60*t,r=60*n,s=24*r,o=7*s;function a(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}e.exports=function(e,i){i=i||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"weeks":case"week":case"w":return i*o;case"days":case"day":case"d":return i*s;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===u&&isFinite(e))return i.long?(c=e,(l=Math.abs(c))>=s?a(c,l,s,"day"):l>=r?a(c,l,r,"hour"):l>=n?a(c,l,n,"minute"):l>=t?a(c,l,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=s?Math.round(e/s)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,s),o.exports}s.m=n,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@automattic/woocommerce-analytics:",s.l=(n,r,o,a)=>{if(e[n])e[n].push(r);else{var i,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+o){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",t+o),i.src=n),e[n]=[r];var C=(t,r)=>{i.onerror=i.onload=null,clearTimeout(f);var s=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach(e=>e(r)),t)return t(r)},f=setTimeout(C.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=C.bind(null,i.onerror),i.onload=C.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={310:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,s)=>r=e[t]=[n,s]);n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some(t=>0!==e[t])){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);c&&c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunk_automattic_woocommerce_analytics=self.webpackChunk_automattic_woocommerce_analytics||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";s(135);var e=s(790);jQuery(()=>{window.wcAnalytics&&(e.K.hasAnalyticsConsent()?s.e(693).then(s.bind(s,693)):e.K.addConsentChangeListener(e=>{e&&s.e(693).then(s.bind(s,693))}))})})()})();