/home/suroeste/public_html/wp-content/themes/ewebot/dist/js/woocommerce
NameSizeModeActions
infinite-scroll.js239070644editdlrm
theme-woo.js147700644editdlrm
Edit: /home/suroeste/public_html/wp-content/themes/ewebot/dist/js/woocommerce/theme-woo.js (14770B)
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=161)}({161:function(t,e,o){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}}function n(){var e=t(".gt3_thumb_vertical"),n=t(".gt3_thumb_vertical.gt3_carousel_thumb");if(n.length){var i=n.find(".woocommerce-product-gallery__wrapper").height(),a=n.find(".flex-control-nav.flex-control-thumbs"),r=n.find(".flex-control-nav.flex-control-thumbs > li"),l=Math.round(i/r.outerHeight()),s=r.height()+r.outerHeight()*(l-1);if(o().width<768)return void n.find(".flex-control-nav.flex-control-thumbs > li").removeClass("point");if(a.css({height:s}),r.length||e.addClass("gt3_block_without_thumbs"),r.length<=l&&e.addClass("gt3_block_without_carousel"),r.length>l){var c;e.addClass("gt3_block_with_carousel"),n.find(".gt3_control_wrapper").length||a.wrap('
').before('').after(''),a=n.find(".flex-control-nav.flex-control-thumbs"),n.find(".flex-control-nav.flex-control-thumbs > li:nth-child("+l+"n + 1)").addClass("point");var d=r.first(),u=n.find(".gt3_control_next"),p=n.find(".gt3_control_prev");p.addClass("hidden"),u.on("click",(function(){var t=d.nextAll("li.point");return t.length&&(d=t.slice(0,1),c=a.scrollTop()+d.position().top,a.stop(!0).animate({scrollTop:c},600)),p.removeClass("hidden"),1===t.length&&u.addClass("hidden"),!1})),p.on("click",(function(){var t=d.prevAll("li.point");return t.length&&(d=t.slice(0,1),c=a.scrollTop()+d.position().top,a.stop(!0).animate({scrollTop:c},600)),u.removeClass("hidden"),1===t.length&&p.addClass("hidden"),!1}))}}}function i(){var e=t("#yith-quick-view-content");e.length&&e.each((function(){t(this).find(".woocommerce-product-gallery__wrapper").slick({slidesToShow:1,slidesToScroll:1,autoplay:!1,autoplaySpeed:4e3,speed:500,dots:!1,fade:!0,focusOnSelect:!0,arrows:!1,infinite:!1,asNavFor:t(this).find(".gt3-thumbnails-control")}),t(this).find(".gt3-thumbnails-control").slick({slidesToShow:4,slidesToScroll:1,nextArrow:'',prevArrow:'',asNavFor:t(this).find(".woocommerce-product-gallery__wrapper"),dots:!1,focusOnSelect:!0,infinite:!1});var e=t(this).find(".woocommerce-product-gallery")[0];t(e).addClass("ready")}))}function a(e,o){"string"==typeof e&&(e=t(e));var n,i=0,a=0;t.each(e,(function(e,o){var r=t(this);r.imagesLoaded((function(){var o=r.offset(),l=t(window).outerHeight();o.top>l+20&&(0===i?a=o.top:a!==o.top&&(i=0,a=o.top),i++,e=i),n=.1*e,r.css({"transition-delay":n+"s"}),r.attr("data-delay",n)}))})),e.appear((function(){var e=t(this),n=t(window).scrollTop();if(o)e.addClass("loaded");else{var i=setTimeout((function(){e.addClass("loaded")}),300);n>100&&(clearTimeout(i),e.addClass("loaded"))}var a=e.css("transition-duration"),r=e.css("transition-delay"),l=1e3*a.split("s")[0]+1e3*r.split("s")[0]+4e3;e.not(".will-progress").delay(l).queue((function(){e.removeClass("loaded gt3-anim-product").dequeue()})),e.delay(l).queue((function(){e.css("transition-delay","")}))}),{accX:0,accY:30})}function r(t,e,o){"number"!=typeof t&&(t=t.offset().top-200),window.scrollTo({top:t,behavior:"smooth"})}function l(t,o,n){n=n||{};var i=(n=Object.assign({},n,{path:"/",expires:2592e3})).expires;if("number"==typeof i&&i){var a=new Date;a.setTime(a.getTime()+1e3*i),i=n.expires=a}i&&i.toUTCString&&(n.expires=i.toUTCString());var r=t+"="+("object"===e(o)?JSON.stringify(o):o);for(var l in n){r+="; "+l;var s=n[l];!0!==s&&(r+="="+s)}document.cookie=r}function s(){var e=t(".gt3_products_gallery_image");e.length&&t.each(e,(function(e,o){var n=t(o);n.children().length<2||(n.hasClass("slick-initialized")?n.slick("setPosition"):n.slick({autoplay:!1,arrows:!1,dots:!0,slidesToScroll:1,slidesToShow:1,focusOnSelect:!0,speed:500,fade:!0}))}))}function c(){if(t(".sidebar .bapf_reset").length&&t(".berocket_aapf_widget_selected_area").length){var e=t(".berocket_aapf_widget_selected_area").html();t(".sidebar .bapf_reset").parent().append('
'+e+"
"),t(".content-container .berocket_aapf_widget_selected_area").hide()}}t(document).ready((function(e){var n,i,d,u,p,g,f,m;t.fn.shake=function(e,o,n){return this.each((function(){for(var i=1;i<=e;i++)t(this).animate({left:-1*o},n/e/4).animate({left:o},n/e/2).animate({left:0},n/e/4)})),this},t(document.body).on("added_to_cart",(function(e,o,n){setTimeout((function(){t(".gt3_header_builder_cart_component").addClass("show_cart"),t(".woo_mini-count").shake(3,1.2,300),t(".gt3-loading-overlay, .gt3-loading").remove()}),300),setTimeout((function(){t(".gt3_header_builder_cart_component").removeClass("show_cart")}),2800)})),function(){var e,o=!1;function n(t){e=new Date,!1===o&&(o=!0,setTimeout((function n(){new Date-e<400?setTimeout(n,400):(o=!1,t.removeClass("allotted"))}),400))}t("body").on("tap click",".gt3_qty_spinner .quantity-up",(function(){var e,o=t(this).parent().find('input[type="number"]'),i=o.attr("max"),a=parseFloat(o.val());e=a>=i&&""!==i?a:a+1,o.val(e).addClass("allotted"),o.trigger("change"),n(o)})),t("body").on("tap click",".gt3_qty_spinner .quantity-down",(function(){var e,o=t(this).parent().find('input[type="number"]'),i=o.attr("min"),a=parseFloat(o.val());e=a<=i&&""!==i?a:a-1,o.val(e).addClass("allotted"),o.trigger("change"),n(o)}))}(),(n=t(".gt3_block_size_popup")).length&&n.on("tap click",(function(){image_size_popup=t(".image_size_popup"),image_size_popup.addClass("active"),image_size_popup.hasClass("active")&&(t(document).keyup((function(t){27===t.keyCode&&image_size_popup.removeClass("active")})),t(".image_size_popup .layer, .image_size_popup .close").on("tap click",(function(){image_size_popup.removeClass("active")})))})),t('#respond #commentform p[class*="comment-form-"] > label').length&&t('#respond #commentform p[class*="comment-form-"] > label').each((function(){var e=t(this);e.parent().find("input, textarea").on("focus",(function(){e.addClass("gt3_onfocus")})).on("blur",(function(){""===t(this).val()?e.removeClass("gt3_onfocus"):e.addClass("gt3_onfocus")}))})),(i=t(".widget_product_categories")).length&&(i.each((function(){for(var e=t(this).find(".product-categories>li.cat-parent"),o=0;o')})),t(".gt3-button-cat-open").on("click",(function(){t(this).parent().toggleClass("open"),t(this).parent().hasClass("open")?t(this).parent().children(".children").slideDown():t(this).parent().children(".children").slideUp()}))),t(".woocommerce-product-gallery .woocommerce-product-gallery__wrapper").on("click",(function(){t(".woocommerce-product-gallery a.woocommerce-product-gallery__trigger").trigger("click")})),(d=t(".woocommerce-product-gallery")).length&&d.append(t(".woocommerce-product-gallery__trigger")),function(){var e=o().width,n=t(".gt3_sticky_thumb"),i=t(".gt3_thumb_sticky_thumb_vertical");n.length&&(e<768?n.trigger("sticky_kit:detach"):n.stick_in_parent());i.length&&(e<768?i.find(".gt3-single-content-wrapper").trigger("sticky_kit:detach"):i.find(".gt3-single-content-wrapper").stick_in_parent())}(),u=t(".gt3_header_builder__login-modal"),!t("body").hasClass("woocommerce-account")&&u.find(".woocommerce-error").length&&u.addClass("active"),function(){window.sessionStorage&&sessionStorage.getItem("gt3-show_all")&&"true"===sessionStorage.getItem("gt3-show_all")&&t(".infinite_scroll-view_all").removeClass("infinite_scroll-view_all").addClass("infinite_scroll-always");var e=t(".infinite_scroll-always .products");e.length&&e.each((function(){var e=t(this);e.infiniteScroll({path:".next.page-numbers",append:".products > .product",prefill:!0,scrollThreshold:1.2*o().height,history:!1,hideNav:".woocommerce-pagination",status:".spinner.infinite-scroll"}),e.on("append.infiniteScroll",(function(){t(".gt3-animation-wrapper.gt3-anim-product").length&&a(".gt3-animation-wrapper.gt3-anim-product:not(.loaded)",!0)})),window.sessionStorage&&sessionStorage.getItem("gt3-show_all")&&"true"===sessionStorage.getItem("gt3-show_all")&&(sessionStorage.setItem("gt3-show_all","false"),l("gt3-show_all","false"),e.imagesLoaded((function(){setTimeout((function(){r(e.find(".product:first-of-type"),2500)}),500)})))}));var n=t(".infinite_scroll-view_all .products");n.length&&n.each((function(){var e=t(this),n=e.prev(".gt3-products-header").find(".gt3-pagination_nav");n.find(".gt3_show_all").on("click tap",(function(i){var s=t(this);window.sessionStorage&&"true"!==sessionStorage.getItem("gt3-show_all")&&(s.hasClass("first-page")?(i.preventDefault(),n.find(".gt3_show_all_li").fadeOut(300),e.next(".spinner.infinite-scroll").fadeIn(300),setTimeout((function(){r(e.find(".product:first-of-type"),2500)}),500)):(sessionStorage.setItem("gt3-show_all","true"),l("gt3-show_all","true"))),e.infiniteScroll({path:".next.page-numbers",append:".products > .product",prefill:!0,scrollThreshold:1.2*o().height,history:!1,hideNav:".gt3-products-bottom .woocommerce-pagination",status:".spinner.infinite-scroll"}),e.on("append.infiniteScroll",(function(){t(".gt3-animation-wrapper.gt3-anim-product").length&&a(".gt3-animation-wrapper.gt3-anim-product:not(.loaded)",!1)}))}))}))}(),s(),g=t(".gt3_toggle_review"),f=t(".gt3_modern_shop #review_form_wrapper #review_form"),m=0,g.length&&g.on("tap click",(function(){t("#wpadminbar").length&&(m=t("#wpadminbar").height()),t(".wpda-header-builder").length&&(p=t(".wpda-header-builder").height()),f.hasClass("opened")?f.slideUp("100",(function(){f.removeClass("opened")})):(setTimeout((function(){t("html, body").animate({scrollTop:f.offset().top-p-m-20},300)}),200),f.slideDown("100",(function(){f.addClass("opened")})))})),t(document).on("click",".gt3-gridlist-toggle a",(function(){setTimeout(s,320)})),function(){if(!t(".berocket_single_filter_widget").length)return;var e=t(window).width()<768,o=t(".berocket_single_filter_widget").parents(".sidebar"),n=o.parents(".sidebar-container"),i=t(".gt3-mobile_shop_burger_container"),a=t(".gt3-mobile__burger_shop_sidebar"),r="desktop",l=t("body");if(!i.length)return;c(),t(window).on("resize",(function(){clearTimeout(s),s=setTimeout((function(){clearTimeout(s),c()}),50)}));var s=null;function c(){switch(e=t(window).width()<768,!0){case e:if("mobile"===r)break;l.addClass("visible_filter_btn"),o.appendTo(i);break;case!e:if("desktop"===r)break;d(),l.removeClass("visible_filter_btn"),o.appendTo(n)}r=e?"mobile":"desktop"}function d(){a.toggleClass("active",!1)}t(document).on("click",".gt3-mobile_filter_btn",(function(){a.toggleClass("active",!0)})),t(document).on("click",".gt3-mobile__burger_shop_sidebar_close",d)}(),c()})),t(window).on("load",(function(e){var o;t(".gt3-animation-wrapper.gt3-anim-product").length&&a(".gt3-animation-wrapper.gt3-anim-product",!1),setTimeout(n,0),(o=t(".gt3_modern_shop .woocommerce-product-gallery__image")).length&&o.each((function(){t(this).find("a").attr("data-elementor-open-lightbox","no")})),t(document).on("yith_wcwl_reload_fragments",(function(){s(),a(".gt3-animation-wrapper.gt3-anim-product:not(.loaded)",!0)})),t(document).on("berocket_ajax_products_loaded",(function(){s(),a(".gt3-animation-wrapper.gt3-anim-product",!1),c()}))})),t(window).on("resize",(function(t){})),t(document).ajaxComplete((function(){var e=t("#yith-quick-view-modal .variations select");e.length&&e.on("change",(function(){var o=t("#yith-quick-view-modal .gt3-thumbnails-control"),n=!0;e.each((function(){var e=t("#yith-quick-view-content .woocommerce-product-gallery__image").easyZoom().data("easyZoom");e.teardown(),e._init(),""!==this.value&&(n=!1)})),n?o.css({height:"auto"}):(o.find(".gt3-thumb-control-item:first").trigger("click"),o.css({height:"0"}))}))})),t(document).ajaxComplete((function(){t(".gt3-thumbnails-control.slick-slider").length||function(){var e,o,n,a,r=t("#yith-quick-view-content").find(".woocommerce-product-gallery__wrapper");if(r.length){o=r.find(".woocommerce-product-gallery__image"),e=t('
');for(var l=0;l
',e.append(a);r.parent().append(e),imagesLoaded(r.parent(),i)}}();var e,o,n=t("#yith-quick-view-modal"),a=n.find(".variations select");a.length&&a.on("change",(function(){var t=n.find(".gt3-thumbnails-control"),i=!0;a.each((function(){e=n.find(".woocommerce-product-gallery__image").easyZoom(),(o=e.data("easyZoom")).teardown(),o._init(),""!==this.value&&(i=!1)})),i?t.css({height:"auto"}):(t.find(".gt3-thumb-control-item:first").trigger("click"),t.css({height:"0"}))}))})),function(){if(document.body.classList.contains("gt3_modern_shop")){var e=document.querySelectorAll(".product .wc-tabs-wrapper, .product .woocommerce-tabs");e&&Array.from(e).forEach((function(e){e.classList.remove("wc-tabs-wrapper"),e.classList.remove("woocommerce-tabs"),e.classList.add("gt3_modern_toggle_info_wrapper"),t(".gt3_product_toggle_item_title").on("click",(function(){t(this).next().slideToggle(300),t(this).toggleClass("state-closed")}))}));var o=document.querySelector(".product .woocommerce-review-link");o&&(o.classList.remove("woocommerce-review-link"),o.classList.add("gt3_woocommerce-review-link"),o.setAttribute("href","javascript:void(0)"),t(".gt3_woocommerce-review-link").on("click",(function(){t("html, body").animate({scrollTop:t(".gt3_modern_shop .reviews_tab").offset().top},300)})))}}()}).call(this,o(2))},2:function(t,e){t.exports=jQuery}});