PageSourceSearch

https://kimb.com.my/wp-content/themes/woostify/assets/js/woocommerce/woocommerce.min.js?ver=2.6.0

js kimb.com.my collected 2026-09-25 02:25:47 UTC 33,518 bytes, 1 lines download raw bytes

1"use strict";function removePageInUrl(e){var t=new URL(e),o=new URLSearchParams(t.search);o.has("product-page")&&(o.delete("product-page"),t.search=o.toString());let r=t.pathname.match(/page\/\w{1,}\/{0,}/);return r&&(t.pathname=t.pathname.replace(r[0],"")),t.toString().replace("#","")}function woostifyInfiniteScroll(e,t){let o=document.querySelector(".site-main .products"),r=document.querySelector(".woostify-view-more"),n=document.querySelector(".woostify-view-prev"),c=document.querySelector(".w-view-prev-button"),i=document.querySelector(".woocommerce-pagination ul.page-numbers");if(null==o&&(o=document.querySelector(".site-content .products")),!(null!=r&&void 0!==r||null!=n&&void 0!==n))return!1;if(null==r||void 0===r){let e={path:t||".prev.page-numbers",append:".product.type-product",history:"push",hideNav:".woocommerce-pagination",loadOnScroll:!1};window.infScroll=new InfiniteScroll(o,e);var a=woostify_woocommerce_general.paged-1,s=woostify_woocommerce_general.paged,l={};return jQuery(".page-numbers").each((function(e,t){l[jQuery(t).text()]=jQuery(t).attr("href")})),n&&c&&c.addEventListener("click",(function(){infScroll.element.getBoundingClientRect().height;var e=document.querySelector(".woostify-view-prev");if(s<=1)return;let t,o=new DOMParser,{responseBody:r,domParseResponse:n,fetchOptions:i}=infScroll.options;t=l[a],history.pushState(null,"",t);jQuery(".page-numbers");"function"==typeof i&&(i=i()),c.classList.add("circle-loading");fetch(t,i).then((i=>{if(!i.ok){let e=new Error(i.statusText);return infScroll.onPageError(e,t,i),{response:i}}return c.classList.remove("circle-loading"),--a<=0&&(e.style.display="none"),i[r]().then((e=>{"text"==r&&n&&(e=o.parseFromString(e,"text/html"));let c=e.querySelectorAll(infScroll.options.append);if(!c||!c.length)return;let a=infScroll.options.append,s=Array.from(infScroll.element.querySelectorAll(a)),l=getItemsFragment(c);infScroll.element.insertBefore(l,infScroll.element.children[0]);infScroll.scrollPages;var u={top:0,path:t,title:i.title};if(infScroll.scrollPages.unshift(u),requestAnimationFrame((()=>{let e=Array.from(infScroll.element.querySelectorAll(a)),t=e.slice(0,e.length-s.length).reduce(((e,t)=>e+t.offsetHeight),0),o=infScroll.scrollPages;for(let e=1;e<o.length;e++)o[e].top+=t})),c.length>0&&jQuery(".result-first")){let e=jQuery(".result-first")[0].innerHTML;jQuery(".result-first")[0].innerHTML=parseInt(e)-c.length}}))})).catch((e=>{console.log(e)}))})),!1}let u=r.querySelector(".woostify-loading-status"),d=woostify_woocommerce_general.loading_type,m=r.querySelector(".w-view-more-button"),f={path:t||".next.page-numbers",append:".product.type-product",history:"push",hideNav:".woocommerce-pagination",checkLastPage:".next.page-numbers",loadOnScroll:"button"!==d};if(null==i||void 0===i?"button"===d?r.style.display="none":f.loadOnScroll=!1:"button"===d?(r.style.display="block",m.style.display="inline-flex"):f.loadOnScroll=!0,i){InfiniteScroll.prototype.appendItems=function(e,t){if(this.conditionBeforeAppend(this,{items:e,fragment:t}))e&&e.length&&(refreshScripts(t=t||getItemsFragment(e)),this.element.appendChild(t));else{console.warn("Url has change. No data apended.");let e=document.querySelector(".woostify-view-more");if("button"===woostify_woocommerce_general.loading_type){e.querySelector(".w-view-more-button").classList.remove("circle-loading")}else{e.querySelector(".woostify-loading-status").style.display="none"}}},InfiniteScroll.prototype.conditionBeforeAppend=function(e,t){return infScroll.continue&&1!=(woostifyEvent.ajax_call||0)},window.infScroll=new InfiniteScroll(o,f),infScroll.loadCount=0,infScroll.on("request",(function(e,t){"button"===d?m.classList.add("circle-loading"):u.style.display="inline-block";let o=document.querySelector(f.path),r=o?o.href:"";woostify_woocommerce_general.currentUrl=r,infScroll.continue=1,woostifyEvent.ajax_call&&(infScroll.continue=0)})),infScroll.on("load",(function(e,t,o){let n=e.querySelectorAll(".woocommerce-pagination .page-numbers .page-numbers:not(.next):not(.prev):not(.dots)"),c=!e.querySelectorAll(".woocommerce-pagination .page-numbers .page-numbers.next").length;if("button"===d)m.classList.remove("circle-loading");else{r.querySelector(".woostify-loading-status").style.display="none"}n.length?c?"button"===d?m.style.display="none":(u.style.display="none",infScroll.option({loadOnScroll:!1})):"button"!==d&&infScroll.option({loadOnScroll:!0}):"button"===d?m.style.display="inline-flex":u.style.display="inline-block"})),infScroll.on("append",(function(e,t,o,n){if("button"===d)m.classList.remove("circle-loading");else{r.querySelector(".woostify-loading-status").style.display="none"}if("function"==typeof woostifyValidLoopItemAddToCartButton&&woostifyValidLoopItemAddToCartButton(),"function"==typeof woostifyAjaxAddToCartButton&&woostifyAjaxAddToCartButton(),"function"==typeof woostifyQuickView&&woostifyQuickView(),"function"==typeof woostifyVariationSwatches&&woostifyVariationSwatches(),"function"==typeof woostifySwatchList&&woostifySwatchList(),"function"==typeof customQuantity&&customQuantity(),"function"==typeof woostifyCountdownUrgency&&woostifyCountdownUrgency(),"1"===woostify_woocommerce_general.is_active_wvs&&jQuery(".variations_form").each((function(){jQuery(this).wc_variation_form()})),o.length>0&&jQuery(".result-end")){let e=jQuery(".result-end")[0].innerHTML;jQuery(".result-end")[0].innerHTML=parseInt(e)+o.length}})),infScroll.on("last",(function(e,t){"button"===d?m.style.display="none":u.style.display="none"}));a=woostify_woocommerce_general.paged-1,s=infScroll.pageIndex,l={};jQuery(".page-numbers").each((function(e,t){l[jQuery(t).text()]=jQuery(t).attr("href")})),n&&c&&c.addEventListener("click",(function(){loadPreviewPage(infScroll,a,l),a--}
1)),"button"===d&&e&&m.addEventListener("click",(function(){infScroll.loadNextPage()}))}}function loadPreviewPage(e,t,o){let r=document.querySelector(".w-view-prev-button");e.element.getBoundingClientRect().height;var n=document.querySelector(".woostify-view-prev"),c=e.pageIndex;if(c<=1)return;let i,a=new DOMParser,{responseBody:s,domParseResponse:l,fetchOptions:u}=e.options;c-1==t&&(i=jQuery(".prev.page-numbers").attr("href")),i=o[t],history.pushState(null,"",i);jQuery(".page-numbers");"function"==typeof u&&(u=u()),r.classList.add("circle-loading");fetch(i,u).then((o=>{if(!o.ok){let t=new Error(o.statusText);return e.onPageError(t,i,o),{response:o}}return r.classList.remove("circle-loading"),--t<=0&&(n.style.display="none"),o[s]().then((t=>{"text"==s&&l&&(t=a.parseFromString(t,"text/html"));let r=t.querySelectorAll(e.options.append);if(!r||!r.length)return;let n=e.options.append,c=Array.from(e.element.querySelectorAll(n)),u=getItemsFragment(r);e.element.insertBefore(u,e.element.children[0]);e.scrollPages;var d={top:0,path:i,title:o.title};if(e.scrollPages.unshift(d),requestAnimationFrame((()=>{let t=Array.from(e.element.querySelectorAll(n)),o=t.slice(0,t.length-c.length).reduce(((e,t)=>e+t.offsetHeight),0),r=e.scrollPages;for(let e=1;e<r.length;e++)r[e].top+=o})),r.length>0&&jQuery(".result-first")){let e=jQuery(".result-first")[0].innerHTML;jQuery(".result-first")[0].innerHTML=parseInt(e)-r.length}}))})).catch((e=>{console.log(e)}))}function refreshScripts(e){let t=e.querySelectorAll("script");for(let e of t){let t=document.createElement("script"),o=e.attributes;for(let e of o)t.setAttribute(e.name,e.value);t.innerHTML=e.innerHTML,e.parentNode.replaceChild(t,e)}}function getItemsFragment(e){let t=document.createDocumentFragment();return e&&t.append(...e),t}function cartSidebarOpen(){document.body.classList.contains("no-cart-sidebar")||document.body.classList.contains("disabled-sidebar-cart")||(onTouchStart(),document.documentElement.classList.add("cart-sidebar-open"))}function eventCartSidebarOpen(){document.body.classList.add("updating-cart"),document.body.classList.remove("cart-updated")}function eventCartSidebarClose(){document.body.classList.add("cart-updated"),document.body.classList.remove("updating-cart")}function shoppingBag(){var e=document.getElementsByClassName("shopping-bag-button"),t=document.getElementById("shop-cart-sidebar");if(e.length&&t&&!document.body.classList.contains("woocommerce-cart")&&!document.body.classList.contains("woocommerce-checkout"))for(var o=0,r=e.length;o<r;o++)e[o].addEventListener("click",(function(e){e.preventDefault(),cartSidebarOpen(),closeAll()}))}var woostifyConditionScrolling=function(){return!!(document.body.classList.contains("woocommerce-demo-store")&&-1===document.cookie.indexOf("store_notice")||(document.body.classList.contains("has-order-sticky-button")||document.body.classList.contains("has-proceed-sticky-button"))&&window.innerWidth<768)},woostifyStockQuantityProgressBar=function(){var e=document.querySelectorAll(".woostify-single-product-stock-progress-bar");e.length&&e.forEach((function(e,t){var o=e.getAttribute("data-number")||0;e.style.width=o+"%"}))},progressBarConfetti=function(e,t){if(woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold&&woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold_effect){var o=document.querySelectorAll(".free-shipping-progress-bar"),r=0;if(o.length&&(r=parseInt(o[0].getAttribute("data-progress"))),!e.length&&r>=100||t<r&&r>=100){let e=document.createElement("canvas");e.className="confetti-canvas",document.querySelector("#shop-cart-sidebar").appendChild(e);let t=confetti.create(e,{resize:!0});confettiSnowEffect(t,5e3),setTimeout((function(){t.reset(),document.querySelector(".confetti-canvas").remove()}),6e3)}t=r}},confettiSnowEffect=function(e,t){var o=Date.now()+t;function r(e,t){return Math.random()*(t-e)+e}!function n(){var c=o-Date.now(),i=Math.max(200,c/t*500);e({particleCount:1,startVelocity:0,ticks:i,origin:{x:Math.random(),y:0},colors:["#EF2964"],shapes:["circle","square"],gravity:1,scalar:r(.4,1),drift:r(-.4,.4)}
1),e({particleCount:1,startVelocity:0,ticks:i,origin:{x:Math.random(),y:0},colors:["#2D87B0"],shapes:["circle","square"],gravity:1,scalar:r(.4,1),drift:r(-.4,.4)}),c>0&&requestAnimationFrame(n)}()},woostifyQuantityMiniCart=function(){var e=document.querySelector(".shopping-bag-button .shop-cart-count, .boostify-count-product"),t=document.querySelectorAll(".mini-cart-product-infor");t.length&&e?(e.classList.remove("hide"),t.forEach((function(e,t){var o=e.querySelectorAll(".mini-cart-product-qty"),r=e.querySelector("input.qty"),n=r.value,c=Number(r.getAttribute("max")||-1),i=r.getAttribute("data-cart_item_key")||"",a=new Event("change"),s=new Event("quantity_updated");if(o.length&&r){t=0;for(var l=o.length;t<l;t++)o[t].onclick=function(){var e=Number(r.value||0),t=Number(r.getAttribute("step")||1),o=Number(r.getAttribute("min")||1),i=this.getAttribute("data-qty");if(e<o||isNaN(e))alert(woostify_woocommerce_general.qty_warning);else{if("minus"===i){if(e<=o||e-t<o||e<=t)return;var s=Number((e-t).toFixed(t.countDecimals()));r.value=s,n=s}else if("plus"===i){if(c>0&&(e>=c||e+t>c))return;s=Number((e+t).toFixed(t.countDecimals()));r.value=s,n=s}r.dispatchEvent(a)}};r.addEventListener("change",(function(){var e=Number(r.value||0);if(e<Number(r.getAttribute("min")||0)||isNaN(e)||c>0&&Number(e)>c)return alert(woostify_woocommerce_general.qty_warning),void(r.value=n);var t=new Request(woostify_woocommerce_general.ajax_url,{method:"POST",body:"action=update_quantity_in_mini_cart&ajax_nonce="+woostify_woocommerce_general.ajax_nonce+"&key="+i+"&qty="+e,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})});document.documentElement.classList.add("mini-cart-updating"),fetch(t).then((function(e){if(200!==e.status)throw alert(woostify_woocommerce_general.ajax_error),console.log("Status Code: "+e.status),e;return e.json()})).then((function(e){if(e.success){jQuery(document.body).trigger("updated_wc_div");var t=e.data,o=document.querySelector(".cart-sidebar-content .woocommerce-mini-cart__total .woocommerce-Price-amount.amount"),r=document.querySelectorAll(".woostify-header-total-price, .boostify-subtotal"),n=document.querySelectorAll(".shop-cart-count, .boostify-count-product"),c=document.querySelectorAll(".free-shipping-progress-bar");if(o&&(o.innerHTML=t.total_price,r.length))for(var i=0,a=r.length;i<a;i++)r[i].innerHTML=t.total_price;if(n.length)for(var s=0,l=n.length;s<l;s++)n[s].innerHTML=t.item;if(c.length&&t.hasOwnProperty("free_shipping_threshold")){let e=c[0].getAttribute("data-progress");for(var u=0,d=c.length;u<d;u++)c[u].setAttribute("data-progress",t.free_shipping_threshold.percent),c[u].querySelector(".progress-bar-message").innerHTML=t.free_shipping_threshold.message,c[u].querySelector(".progress-percent")&&(c[u].querySelector(".progress-percent").innerHTML=t.free_shipping_threshold.percent+"%"),c[u].querySelector(".progress-bar-status")&&(c[u].querySelector(".progress-bar-status").style.minWidth=t.free_shipping_threshold.percent+"%",c[u].querySelector(".progress-bar-status").style.transitionDuration=".6s",100<=parseInt(t.free_shipping_threshold.percent)?c[u].querySelector(".progress-bar-status").classList.add("success"):c[u].querySelector(".progress-bar-status").classList.remove("success"));if(woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold&&woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold_effect&&e<100&&t.free_shipping_threshold.percent>=100){var m=document.createElement("canvas");m.className="confetti-canvas",document.querySelector("#shop-cart-sidebar").appendChild(m);var f=confetti.create(m,{resize:!0});confettiSnowEffect(f,5e3),setTimeout((function(){f.reset(),document.querySelector(".confetti-canvas").remove()}),6e3)}}}})).catch((function(e){console.log(e)})).finally((function(){document.documentElement.classList.remove("mini-cart-updating"),document.dispatchEvent(s)}))}))}}))):e&&e.classList.add("hide")};function woostifyAjaxAddToCartButton(){var e=document.querySelectorAll(".add_to_cart_button");e.length&&e.forEach((function(e){e.onclick=function(t){var o=e.getAttribute("data-product_id"),r=e.getAttribute("data-quantity"),n=new Request
1(woostify_woocommerce_general.ajax_url,{method:"POST",body:"action=get_curr_percent_shipping_threshold_product&ajax_nonce="+woostify_woocommerce_general.ajax_nonce+"&product_id="+o+"&qty="+r,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})});fetch(n).then((function(e){if(200!==e.status)throw alert(woostify_woocommerce_general.ajax_error),console.log("Status Code: "+e.status),e;return e.json()})).then((function(e){if(e.success){var t=e.data;if(t.free_shipping_threshold.active){var o=t.number_of_decimals,r=t.free_shipping_threshold.goal_amount,n=t.free_shipping_threshold.total_percent,c=t.free_shipping_threshold.percent,i=(t.product.price,t.product.total_price);if(woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold&&woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold_effect){var a=document.querySelectorAll(".free-shipping-progress-bar"),s=0;if(a.length&&(s=parseInt(a[0].getAttribute("data-progress"))),0==a.length&&((i=i.toFixed())>=r&&(c=(n=i/r*100)>=100?100:n.toFixed(o)),!a.length&&c>=100||s<c&&c>=100)){let e=document.createElement("canvas");e.className="confetti-canvas",document.querySelector("#shop-cart-sidebar").appendChild(e);let t=confetti.create(e,{resize:!0});confettiSnowEffect(t,5e3),setTimeout((function(){t.reset(),document.querySelector(".confetti-canvas").remove()}),6e3)}}}}})).catch((function(e){console.log(e)}))}}))}function shippingThresholdCurrPercent(){var e=new Request(woostify_woocommerce_general.ajax_url,{method:"POST",body:"action=get_curr_percent_shipping_threshold&ajax_nonce="+woostify_woocommerce_general.ajax_nonce,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})});return fetch(e).then((function(e){if(200!==e.status)throw alert(woostify_woocommerce_general.ajax_error),console.log("Status Code: "+e.status),e;return e.json()})).then((function(e){if(e.success){var t=e.data;if(t.free_shipping_threshold.active){var o=t.free_shipping_threshold.total_percent,r=t.free_shipping_threshold.percent;if(r<100&&shippingThreshold(),100==r&&100==o){var n=document.createElement("canvas");n.className="confetti-canvas",document.querySelector("#shop-cart-sidebar").appendChild(n);var c=confetti.create(n,{resize:!0});confettiSnowEffect(c,5e3),setTimeout((function(){c.reset(),document.querySelector(".confetti-canvas").remove()}),6e3)}}}})).catch((function(e){console.log(e)})).finally((function(){})),!1}function shippingThreshold(){var e=document.querySelectorAll(".mini-cart-product-infor"),t=document.querySelectorAll(".free-shipping-progress-bar");e.forEach((function(e,o){var r=e.querySelector("input.qty"),n=r.getAttribute("data-cart_item_key")||"",c=r.value;if(r){var i=new Request(woostify_woocommerce_general.ajax_url,{method:"POST",body:"action=update_quantity_in_mini_cart&ajax_nonce="+woostify_woocommerce_general.ajax_nonce+"&key="+n+"&qty="+c,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})});fetch(i).then((function(e){if(200!==e.status)throw alert(woostify_woocommerce_general.ajax_error),console.log("Status Code: "+e.status),e;return e.json()})).then((function(e){if(e.success){jQuery(document.body).trigger("updated_wc_div");var o=e.data;if(t.length&&o.hasOwnProperty("free_shipping_threshold")){let e=t[0].getAttribute("data-progress");for(var r=0,n=t.length;r<n;r++)t[r].setAttribute("data-progress",o.free_shipping_threshold.percent),t[r].querySelector(".progress-bar-message").innerHTML=o.free_shipping_threshold.message,t[r].querySelector(".progress-percent")&&(t[r].querySelector(".progress-percent").innerHTML=o.free_shipping_threshold.percent+"%"),t[r].querySelector(".progress-bar-status")&&(t[r].querySelector(".progress-bar-status").style.minWidth=o.free_shipping_threshold.percent+"%",t[r].querySelector(".progress-bar-status").style.transitionDuration=".6s",100<=parseInt(o.free_shipping_threshold.percent)?t[r].querySelector(".progress-bar-status").classList.add("success"):t[r].querySelector(".progress-bar-status").classList.remove("success"));if(woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold&&woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold_effect){var c=document.querySelectorAll(".free-shipping-progress-bar"),i=0;if(c.length&&(i=parseInt(c[0].getAttribute("data-progress"))),e<100&&o.free_shipping_threshold.percent>=100||e<i&&i>=100){var a=document.createElement("canvas");
1a.className="confetti-canvas",document.querySelector("#shop-cart-sidebar").appendChild(a);var s=confetti.create(a,{resize:!0});confettiSnowEffect(s,5e3),setTimeout((function(){s.reset(),document.querySelector(".confetti-canvas").remove()}),6e3)}}}}})).catch((function(e){console.log(e)})).finally((function(){}))}}))}var updateHeaderCartPrice=function(){var e=document.querySelector(".cart-sidebar-content .woocommerce-mini-cart__total .woocommerce-Price-amount.amount"),t="",o=document.querySelectorAll(".woostify-header-total-price");if(o.length){switch(woostify_woocommerce_general.currency_pos){case"left":t='<span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">'+woostify_woocommerce_general.currency_symbol+"</span>0</bdi></span>";break;case"right":t='<span class="woocommerce-Price-amount amount"><bdi>0<span class="woocommerce-Price-currencySymbol">'+woostify_woocommerce_general.currency_symbol+"</span></bdi></span>";break;case"left_space":t='<span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">'+woostify_woocommerce_general.currency_symbol+"</span>&nbsp;0</bdi></span>";break;case"right_space":t='<span class="woocommerce-Price-amount amount"><bdi>0&nbsp;<span class="woocommerce-Price-currencySymbol">'+woostify_woocommerce_general.currency_symbol+"</span></bdi></span>"}for(var r=0,n=o.length;r<n;r++)o[r].innerHTML=e?'<span class="woocommerce-Price-amount amount">'+e.innerHTML+"</span>":t}},woostifyProductsCarousel=function(e){var t=document.querySelectorAll(e);t.length&&t.forEach((function(e){if(!e.classList.contains("tns-slider")&&woostify_woocommerce_general.related_carousel_opts.hasOwnProperty("loop")){var t=woostify_woocommerce_general.related_carousel_opts;t.container=e;tns(t)}}))},initMiniCartRecommendations=function(){var e=document.getElementById("shop-cart-sidebar");if(e)if(document.querySelector(".woocommerce-mini-cart__empty-message")){var t=e.querySelectorAll(".woostify-mini-cart-recommendations");t.length&&t.forEach((function(e){e.remove()}))}else{var o=document.querySelector(".woostify-mini-cart-recommendations.recommendations-drawer");if(o){o.parentNode!==e&&e.appendChild(o);var r=window.getComputedStyle(e);"0px"===r.left||"auto"===r.right?o.classList.add("sidebar-at-left"):o.classList.remove("sidebar-at-left"),window.woostifyMiniCartRecommendationsAnimated?(o.classList.add("is-active","has-animated"),document.body.classList.add("recommendations-has-animated")):document.documentElement.classList.contains("cart-sidebar-open")?setTimeout((function(){document.documentElement.classList.contains("cart-sidebar-open")&&(o.classList.add("is-active"),setTimeout((function(){o.classList.contains("is-active")&&(o.classList.add("has-animated"),window.woostifyMiniCartRecommendationsAnimated=!0,document.body.classList.add("recommendations-has-animated"))}),1e3))}),100):o.classList.remove("is-active")}var n=document.querySelectorAll(".woostify-mini-cart-recommendations:not(.recommendations-drawer) .recommendations-list");n.length&&"function"==typeof tns&&n.forEach((function(e){e.classList.contains("tns-slider")||tns({container:e,items:1,slideBy:"page",autoplay:!1,loop:!1,rewind:!0,mouseDrag:!0,controls:!0,nav:!0,navPosition:"bottom",controlsText:['<span class="woostify-svg-icon icon-angle-left"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17"><path d="M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z" fill="#000000" /></svg></span>','<span class="woostify-svg-icon icon-angle-right"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17"><path d="M11.793 8.471l-7.146 7.147 0.707 0.707 7.853-7.854-7.854-7.853-0.707 0.707 7.147 7.146z" fill="#000000" /></svg></span>']})})),"function"==typeof woostifyQuickView&&woostifyQuickView()}},woostiftToggleShow=function(e){var t=function(){e.style.display="block";var t=e.scrollHeight+"px";return e.style.display="",t}();e.classList.add("is-visible"),e.style.height=t,window.setTimeout((function(){e.style.height=""}),350)},woostiftToggleHide=function(e){e.style.height=e.scrollHeight+"px",window.setTimeout((function(){e.style.height="0"}),1),window.setTimeout((function(){e.classList.remove("is-visible")}),350)},woostifyToggleSlide=function(e,t){e.classList.contains("is-visible")?woostiftToggleHide(e):woostiftToggleShow(e)},productReviewLink=function(){jQuery(".woocommerce-review-link").click((function(){var e=jQuery('.woostify-accordion-title[data-tab="reviews"]');e.parent().hasClass("active")||e.trigger("click")}))},productDataTabsAccordion=function(){var e=document.querySelectorAll(".woocommerce-tabs.layout-accordion");e.length&&(e.forEach((function(e){var t=e.querySelectorAll(".woostify-accordion-title");if(t.length){var o=e.querySelectorAll(".woostify-tab-wrapper");t.forEach((function(e,t){e.onclick=function(){o.forEach((function(e,o){o!==t&&(e.classList.contains("active")&&woostifyToggleSlide(e.querySelector(".woocommerce-Tabs-panel")),e.classList.remove("active"))})),e.parentNode.classList.contains("active")?e.parentNode.classList.remove("active"):e.parentNode.classList.add("active");var r=nextSiblings(e);woostifyToggleSlide(r[0])}}))}})),productReviewLink())},stickyOrderReview=function(){new WSYSticky("form.woocommerce-checkout .woostify-col .col-right-inner",{stickyContainer:"form.woocommerce-checkout",marginTop:96})},checkoutOrder=function(){var e=document.querySelector(".before-checkout");if(e){var t=e.offsetHeight,o=t,r=document.querySelector(".showlogin");document.querySelector("#coupons_list")?document.arrive(".sc-coupon",(function(){document.getElementById("coupons_list").style.display="block",setTimeout((function(){n(),jQuery(document).unbindArrive(".sc-coupon")}),1e3)})):n(),document.body.addEventListener("click",(function(e){if(e.target===r){var c=setInterval((function(){n()}),50);setTimeout((function(){t==o&&clearInterval(c)}),2e3)}}))}function n(){setTimeout((function(){var t=e.offsetHeight;document.querySelector("#checkout-spacer").style.minHeight=t+"px",e.classList.add("ready")}),200)}},woostifyGetUrl=function(e){return wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%",e)},woostifyShowNotice=function(e,t){t||(t=jQuery(".woocommerce-notices-wrapper:first")||jQuery(".cart-empty").closest(".woocommerce")||jQuery(".woocommerce-cart-form")),t.prepend(e)},ajaxCouponForm=function(){var e=document.querySelector("form.checkout_coupon");e&&e.addEventListener("submit",(function(e){e.preventDefault();var t=document.getElementById("coupon_code"),o=t.value,r={security:woostify_woocommerce_general.apply_coupon_nonce,coupon_code:o};jQuery.ajax({type:"POST",url:woostifyGetUrl("apply_coupon"),data:r,dataType:"html",success:function(e){jQuery(".woocommerce-error, .woocommerce-message, .woocommerce-NoticeGroup .woocommerce-info, .woocommerce-notices-wrapper .woocommerce-info").remove(),woostifyShowNotice(e,jQuery(".woostify-woocommerce-NoticeGroup")),jQuery(document.body).trigger("applied_coupon",[o])},complete:function(){t.value="",jQuery(document.body).trigger("update_checkout")}})}))},woostifyMoveNoticesInCheckoutPage=function(){var e=document.querySelectorAll(".woocommerce-notices-wrapper"),t=document.querySelectorAll(".woocommerce > .woocommerce-info"),o=document.querySelector(".woostify-woocommerce-NoticeGroup");if(o){if(e.length){var r=e[0],n=document.createElement("div");n.innerHTML=r.innerHTML,o.appendChild(n),r.remove()}t.length&&t.forEach((function(e){var t=e.cloneNode(!0),r=e.getAttribute("class");t.setAttribute("class",r),o.appendChild(t),e.remove()}))}},woostifyCheckoutFormFieldAnimation=function(){var e=document.querySelectorAll("form.checkout .input-text, form.checkout_coupon .input-text"),t=document.querySelectorAll("form.checkout .form-row");e.length&&e.forEach((function(e){var t=e.closest(".form-row");t&&(""!==e.value&&t.classList.add("w-anim-wrap"),e.addEventListener("focus",(function(e){e.target.closest(".form-row").classList.add("w-anim-wrap")})),e.addEventListener("blur",(function(e){var t=e.target.closest(".form-row");""===e.target.value&&(t.classList.remove("w-anim-wrap"),t.classList.contains("val
1idate-required")&&t.classList.add("woocommerce-invalid-required-field"))})))})),t.length&&t.forEach((function(e){var t=e.querySelector("label");if(null==t?e.classList.add("no-label"):t.classList.remove("screen-reader-text"),e.classList.contains("address-field")){var o=e.querySelectorAll("input"),r=e.querySelectorAll("span.select2");o.length&&o.length>0&&o.forEach((function(t){"hidden"===t.getAttribute("type")?e.classList.add("field-readonly"):e.classList.remove("field-readonly")})),r.length&&r.length>0&&(e.classList.add("w-anim-wrap"),e.classList.remove("field-readonly"))}}))};function woostifyCartBlockUpdates(){if(!document.body.classList.contains("woocommerce-cart"))return;if("undefined"==typeof wp)return;if(void 0===wp.data)return;if(void 0===wp?.data?.select("wc/store/cart"))return;if("function"!=typeof wp.data.subscribe)return;let e=null;wp.data.subscribe((()=>{const t=wp.data.select("wc/store/cart");if(!t)return;const o=t.getCartData();if(o&&JSON.stringify(o)!==JSON.stringify(e)){var r=document.querySelector(".shopping-bag-button .shop-cart-count, .boostify-count-product");if(r){let e=o.itemsCount||0;r.textContent=e}e=o}}))}document.addEventListener("DOMContentLoaded",(function(){(shoppingBag(),woostifyAjaxAddToCartButton(),woostifyQuantityMiniCart(),woostifyProductsCarousel(".related.products ul.products"),woostifyProductsCarousel(".upsells.products ul.products"),woostifyProductsCarousel(".woostify-product-recently-viewed-section ul.products"),productDataTabsAccordion(),woostifyCartBlockUpdates(),initMiniCartRecommendations(),"MutationObserver"in window)&&new MutationObserver((function(e){e.forEach((function(e){if("class"===e.attributeName){var t=document.documentElement,o=document.querySelector(".woostify-mini-cart-recommendations.recommendations-drawer");o&&(t.classList.contains("cart-sidebar-open")?window.woostifyMiniCartRecommendationsAnimated?(o.classList.add("is-active","has-animated"),document.body.classList.add("recommendations-has-animated")):setTimeout((function(){t.classList.contains("cart-sidebar-open")&&(o.classList.add("is-active"),setTimeout((function(){o.classList.contains("is-active")&&(o.classList.add("has-animated"),window.woostifyMiniCartRecommendationsAnimated=!0,document.body.classList.add("recommendations-has-animated"))}),1e3))}),100):o.classList.remove("is-active"))}}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});if(window.addEventListener("click",(function(e){e.target&&e.target.closest&&e.target.closest(".woostify-mini-cart-recommendations .product-quick-view-btn")&&"function"==typeof woostifyQuickView&&(e.preventDefault(),document.documentElement.classList.remove("cart-sidebar-open"),"function"==typeof onTouchStart&&onTouchStart(!1))}),!1),window.addEventListener("load",(function(){woostifyStockQuantityProgressBar()})),woostifyInfiniteScroll(!0),jQuery(document.body).on("adding_to_cart",(function(){eventCartSidebarOpen(),shippingThresholdCurrPercent()})).on("added_to_cart",(function(e,t,o,r){if(woostifyQuantityMiniCart(),initMiniCartRecommendations(),setTimeout((()=>{shippingThresholdCurrPercent()}),300),updateHeaderCartPrice(),eventCartSidebarClose(),closeAll(),r=void 0!==r&&r){if(r.removeClass("loading"),cartSidebarOpen(),t&&r.addClass("added"),t&&!wc_add_to_cart_params.is_cart&&0===r.parent().find(".added_to_cart").length){var n=get_svg_icon("shopping-cart-full");r.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+n+wc_add_to_cart_params.i18n_view_cart+"</a>")}jQuery(document.body).trigger("wc_cart_button_updated",[r])}})).on("removed_from_cart",(function(){woostifyQuantityMiniCart(),updateHeaderCartPrice()})).on("updated_cart_totals",(function(){"function"==typeof customQuantity&&customQuantity(),woostifyQuantityMiniCart(),updateHeaderCartPrice()})).on("wc_fragments_loaded wc_fragments_refreshed",(function(){if(woostifyQuantityMiniCart(),updateHeaderCartPrice(),initMiniCartRecommendations(),woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold&&woostify_woocommerce_general.shipping_threshold.enabled_shipping_threshold_effect){var e=document.querySelectorAll(".free-shipping-progress-bar"),t=0;e.length&&(t=parseInt(e[0].getAttribute("data-progress"))),progressBarConfetti(e,t)}})).on("wc_cart_emptied",(function(){location.reload()})),jQuery(document.body).on("init_checkout updated_checkout payment_method_selected",(function(){"function"==typeof customQuantity&&customQuantity()})),document.body.classList.contains("checkout-layout-3")){var e=!1;woostifyCheckoutFormFieldAnimation(),woostifyMoveNoticesInCheckoutPage(),jQuery(document.body).on("updated_checkout",(function(e,t){setTimeout((function(){woostifyCheckoutFormFieldAnimation()}),100)})).on("init_checkout updated_checkout payment_method_selected",(function(e,t){jQuery("form.checkout").arrive("form.checkout_coupon",(function(e){ajaxCouponForm(),jQuery("form.checkout").unbindArrive("form.checkout_coupon")})),jQuery("form.checkout").arrive(".ajax-coupon-form",(function(e){jQuery(e).removeClass("loading"),jQuery(e).addClass("ready")})),jQuery("form.checkout").arrive(".woocommerce-NoticeGroup",(function(){jQuery(".woostify-woocommerce-NoticeGroup").append(jQuery(".woocommerce-NoticeGroup").html()),jQuery(".woocommerce-NoticeGroup").remove()})),jQuery(document).arrive(".woocommerce > .woocommerce-message",(function(e){var t=jQuery(e).clone();jQuery(".woostify-woocommerce-NoticeGroup").append(t),jQuery(e).remove()})),jQuery(document).arrive(".woocommerce > .woocommerce-info",(function(e){var t=jQuery(e).clone();jQuery(".woostify-woocommerce-NoticeGroup").append(t),jQuery(e).remove()}))})).on("applied_coupon",(function(){jQuery("form.checkout").arrive("form.checkout_coupon",(function(e){ajaxCouponForm(),jQuery("form.checkout").unbindArrive("form.checkout_coupon")}))})),jQuery("form.checkout").arrive("form.checkout_coupon",(function(e){ajaxCouponForm(),jQuery("form.checkout").unbindArrive("form.checkout_coupon")})),checkoutOrder(),stickyOrderReview(),jQuery(document.body).on("click","a.woocommerce-terms-and-conditions-link",(function(e){var t=document.querySelector("#order_review");t&&new MutationObserver((e=>{e.forEach((e=>{stickyOrderReview()}))})).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}
1)})),window.onscroll=function(){e||(window.dispatchEvent(new Event("resize")),e=!0)}}"function"==typeof onElementorLoaded&&onElementorLoaded((function(){window.elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(){productDataTabsAccordion()}))}))}));

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.