https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/themes/betheme/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/KMU-CSR-PLANER/wp-content/themes/betheme/js/woocommerce.min.js
!function(t){function e(){t(".woocommerce .column_shop_products ul.products.list li.product").each((function(){t(this).css({"min-height":"1px"});var e=t(this).outerHeight(),n=t(this).find(".product-loop-thumb").outerHeight();n>e&&t(this).css({"min-height":n})}))}t(document).ready((function(){r.init(),!t("body").hasClass("mfn-ui")&&t(".mfn-product-gallery-grid").length&&(t("body").hasClass("product-zoom-disabled")||t(" .mfn-product-gg-img a").zoom(),s(".mfn-product-gallery-grid")),t(document).on("click",".mfn-quick-view",(function(e){e.preventDefault();var n=t(this).attr("data-id");t(this).addClass("loading"),quickview.display(n)})),t("body").hasClass("mfn-ajax-add-to-cart")&&t(document).on("click",".single_add_to_cart_button:not(.disabled)",(function(e){e.preventDefault();var n=t("#header_cart .header-cart-count").length?t("#header_cart .header-cart-count").first().text():0,o=t(this),a=o.closest("form.cart"),r=o.closest("form.cart").get(0),i=a.find("input.qty"),s=i.attr("max");if(void 0!==s&&""!=s&&parseInt(i.val())>parseInt(s))return i.css({"background-color":"#77a464",transition:"0.8s"}),i.val(s),void setTimeout((function(){i.removeAttr("style")}),1e3);var l={url:wc_add_to_cart_params.ajax_url,type:"POST",beforeSend:function(e){t(document.body).trigger("adding_to_cart"),o.removeClass("added").addClass("loading")},success:function(e){void 0===e.error?(o.addClass("added").removeClass("loading"),t(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,o]),t(document.body).trigger("wc_fragment_refresh"),t(".mfn-cart-holder").attr("aria-expanded","true")):location.reload()}};if(a.hasClass("grouped_form")){var c=t("input.qty",a),d=!1;if(c.each((function(){parseInt(t(this).val())>0&&(d=!0)})),!d)return alert(mfnwoovars.groupedQuantityErrori18n),!1}var m=new FormData(r);return m.append("action","woocommerce_add_to_cart"),m.append("current_cart",n),t(".mnm_cart.mnm_data .mnm_add_to_cart_button").length&&m.delete("add-to-cart"),m.has("product_id")||"undefined"===o.val()||m.append("product_id",parseInt(o.val())),m.has("variation_id")&&m.delete("product_id"),l.data=m,l.contentType=!1,l.processData=!1,t(document.body).trigger("adding_to_cart",[o,m]),t.ajax(l),!1})),t(".wc-block-product-categories-list")&&(t(".wc-block-product-categories-list li.wc-block-product-categories-list-item").each((function(){t(this).children("ul").length&&t(this).append('<span class="cat-expander"></span>')})),t(".wc-block-product-categories-list li > span.cat-expander").on("click",(function(e){t(this).siblings("ul").is(":visible")?(t(this).siblings("ul").slideUp(300),t(this).parent("li").removeClass("li-expanded")):(t(this).siblings("ul").slideDown(300),t(this).parent("li").addClass("li-expanded"))}))),t(".woocommerce-product-attributes").length&&t(".woocommerce-product-attributes td, .woocommerce-product-attributes th").each((function(){t(this).html("<span>"+t(this).html()+"</span>")})),t(".mfn-variations-wrapper").length&&t("body").hasClass("mfn-variable-swatches")&&n.run(),t(".toggle-mfn-cart").on("click",(function(e){if(t("body").hasClass("shop-sidecart-active")&&t(".mfn-cart-holder").length){if(e.preventDefault(),t("body").hasClass("mfn-bebuilder-header"))return;t("html").hasClass("mfn-cart-opened")?t(".mfn-cart-holder").attr("aria-expanded","false"):t(".mfn-cart-holder").attr("aria-expanded","true"),a.click()}})),t(".toggle-mfn-cart").on("keypress",(function(e){if(e.preventDefault(),"Enter"===e.originalEvent.key){if(t("html").hasClass("mfn-cart-opened")){t(".mfn-cart-holder").attr("aria-expanded","false");const e=t("body").hasClass("side-slide-is-open")?".extras-wrapper ":".top_bar_right ";t(`${e} #header_cart`).trigger("focus")}else t(".mfn-cart-holder").find("a").first().trigger("focus"),t(".mfn-cart-holder").attr("aria-expanded","true");a.click()}})),t(".mfn-cart-overlay").on("click",(function(){a.click()})),t("body").hasClass("shop-sidecart-active")&&a.start(),t(".toggle-login-modal").on("click",(function(e){e.preventDefault(),t("body").hasClass("mfn-ui")||modallogin.click(t(this))})),t(document).on("mouseup",(function(e){t("body").hasClass("mfn-show-login-modal")&&(t(".mfn-header-login").is(e.target)||0!==t(".mfn-header-login").has(e.target).length||t(".toggle-login-modal").is(e.target)||0!==t(".toggle-login-modal").has(e.target).length||modallogin.click())})),t(".woocommerce .column_shop_products ul.products.list").length&&(e(),t(window).on("debouncedresize",e)),t(".mfn-header-modal-login .woocommerce-form-login .form-row").on("click",(function(){t(this).hasClass("active")||t(this).addClass("active")})),t(".mfn-header-modal-login .woocommerce-form-login .form-row input.input-text").on("focus keyup",(function(){t(this).closest(".form-row").hasClass("active")||t(this).closest(".form-row").addClass("active")})),t(".mfn-header-modal-login .woocommerce-form-login .form-row input").on("blur change",(function(){modallogin.check()})),modallogin.check(),t(document).on("click",".mfn-cart-holder .mfn-ch-content .mfn-chp-remove",(function(e){if(e.preventDefault(),!t(".mfn-cart-holder").hasClass("loading")){t(".mfn-cart-holder").addClass("loading");var n=t(this).closest(".mfn-ch-product").attr("data-row-key");a.delete(n)}})),t(".mfn-woo-products").on("change",".mfn-variations-wrapper-loop .mfn-vr-select",(function(){var e=t(this).find(":selected").attr("data-link");""!=e&&(window.location.href=e)})),t(document).on("change",".mfn-cart-holder .mfn-ch-content .qty",(function(){var e=t(this);if(!t(".mfn-cart-holder").hasClass("loading")){t(".mfn-cart-holder").addClass("loading");var n=e.closest(".mfn-ch-product").attr("data-row-key"),o=e.val();a.updatequantity(n,o)}})),t("body").hasClass("woocommerce-checkout")&&(t(".woocommerce-form-login").length&&t(".woocommerce-form-login").addClass("checkout-form-toggle"),t(".woocommerce-form-coupon").length&&t(".woocommerce-form-coupon").addClass("checkout-form-toggle"),setTimeout((function(){checkoutpayment.start()}),1500)),t(document.body).on("added_to_cart",(function(e){t("body").hasClass("shop-sidecart-active")&&(t("html").hasClass("mfn-cart-opened")||(a.force_open=!0))})),t(document).on("mouseup click",".wc-block-cart__main .wc-block-cart-item__quantity .wc-block-components-quantity-selector__button",(function(){setTimeout((function(){t(document.body).trigger("wc_fragment_refresh")}),2e3)})),t(document).on("mouseup click",".wc-block-cart__main .wc-block-cart-item__quantity .wc-block-cart-item__remove-link",(function(){setTimeout((function(){t(document.body).trigger("wc_fragment_refresh")}),2e3)})),t(document).on("click",".woocommerce-review-link, a.wc-rating-with-text",(function(e){if(t("#tab-reviews").length&&t('a[href="#tab-reviews"]').length){e.preventDefault(),t('a[href="#tab-reviews"]').trigger("click");let n=t('a[href="#tab-reviews"]').offset().top-t(".mfn-header-tmpl").outerHeight();t("body, html").animate({scrollTop:n},500)}})),o.set(),t(document).on("click",".mfn-wish-button",(function(e){e.preventDefault();var n=t(this).attr("data-id");o.click(n)}));let l={action:!1,params:"",init:function(){t(document).on("change",".woocommerce-ordering select, .mfn-active-filters-sorting .mfn-archive-orderby-select",(function(){const e=t(this).val(),n=new URL(window.location.href);n.searchParams.set("orderby",e),n.searchParams.delete("paged"),window.location.href=n.toString()})),t("form.mfn_attr_filters").length&&(t(document).on("click",".mfn-woo-list-active-filters li span",(function(){var e=t(this).attr("data-id");t(this).closest("li").addClass("loading"),t(".widget.mfn_woo_attributes .mfn_attr_filters input."+e).length&&(t(".mfn_woo_attributes .mfn_attr_filters input."+e).is(":checked")&&(t(".mfn_woo_attributes .mfn_attr_filters input."+e).prop("checked",!1),t(".mfn_woo_attributes .mfn_attr_filters input."+e).closest("li").hasClass("active")&&t(".mfn_woo_attributes .mfn_attr_filters input."+e).closest("li").removeClass("active")),setTimeout((()=>l.grab()),1))})),t(document).on("click","form.mfn_attr_filters ul li",(function(){var e=t(this),n=t(this).closest("form"),o=e.find("input").attr("class");e.siblings("li").removeClass("active"),e.siblings("li").find("input").prop("checked",!1),n.hasClass("mfn-before-products-list-form")?(e.find("input").is(":checked")?e.find("input").prop("checked",!1):e.find("input").prop("checked",!0),e.toggleClass("active")):n.hasClass("mfn_attr_filters")&&(e.find("input").is(":checked")?t("form.mfn_attr_filters ul li input."+o).prop("checked",!1):t("form.mfn_attr_filters ul li input."+o).prop("checked",!0),t("form.mfn_attr_filters ul li input."+o).closest("li").toggleClass("active")),e.closest("form").hasClass("button-enabled")||(e.addClass("loading"),setTimeout((()=>l.grab()),1))}))),t("form.mfn_attr_filters.button-enabled").length&&t("form.mfn_attr_filters.button-enabled").submit((function(t){t.preventDefault(),l.grab()}))},grab:function(){if(t("form.mfn-advanced-filters").length)return void t("form.mfn-advanced-filters").trigger("submit");let e=[];var n=window.location.pathname.replace(/\/page\/\d+\/?$/,"/");t("form.mfn_attr_filters").each((function(){const n=t(this).serialize();n&&(e.push(n),n.split("&").forEach((t=>{if(!t)return;const[n,o]=t.split("=");if(n&&0===n.indexOf("filter_")){const t=n.slice("filter_".length);e.push(`query_type_${t}=or`)}})))}));const o=t("form.woocommerce-ordering");o.length&&["post_type","s","paged","orderby"].forEach((t=>{const n=o.find(`[name="${t}"]`);if(n.length&&""!==n.val()){const o=encodeURIComponent(n.val()),a=encodeURIComponent(t);e.push(`${a}=${o}`)}}));const a=Array.from(new Set(e)).join("&");this.action=a?`${n}?${a}`:n,this.ajax()},ajax:function(){t(".mfn_attr_filters button").addClass("loading disabled"),t("body").hasClass("archive")?t.get(l.action,(function(e){if(t(".pager_wrapper").remove(),t(".woocommerce-info").remove(),t(".default-woo-list").length?t(".default-woo-list").replaceWith(t(t.parseHTML(e)).find(".default-woo-list").clone()):t(".column_shop_products").length&&t(".column_shop_products").each((function(n){t(this).replaceWith(t(t.parseHTML(e)).find(".column_shop_products").eq(n).clone())})),t(".mcb-sidebar").length){var n=t("#Content .sections_group").outerHeight();t(".mcb-sidebar").each((function(){t(this).css("min-height",0),t(this).height()>n&&(n=t(this).height())})),t(".mcb-sidebar").css("min-height",n+"px")}history.replaceState(null,"",l.action),t(t.parseHTML(e)).find(".mfn-infinite-load-button").length&&t(document).trigger("mfn:waypoints"),t(document).trigger("mfn:ajax:refresh"),t(".mfn_attr_filters ul li").removeClass("loading"),t(".mfn_attr_filters button").removeClass("loading disabled")})):window.location.href=l.action}};l.init(),setTimeout((function(){i.start()}),300)}));var n={run:function(){if(t(".mfn-variations-wrapper .mfn-vr-options li a").on("click",(function(e){e.preventDefault(),t(this).parent().siblings().removeClass("active"),t(this).parent().addClass("active");var o=t(this).attr("data-id"),a=t(this).parent().parent().attr("data-atr");t(".variations select#"+a).val(o),t(".variations select#"+a).trigger("change"),"false"!=t("form.variations_form").attr("data-product_variations")&&setTimeout((function(){n.triggerChange()}),100)})),t(".mfn-variations-wrapper .mfn-vr-select").on("change",(function(){var e=t(this).val(),o=t(this).attr("data-atr");t(".variations select#"+o).val(e),t(".variations select#"+o).trigger("change"),"false"!=t("form.variations_form").attr("data-product_variations")&&setTimeout((function(){n.triggerChange()}),100)})),t(".woocommerce div.product form.cart .variations select").each((function(){var e=t(this).val(),n=t(this).attr("id");e.length&&(t('.mfn-variations-wrapper .mfn-vr-options[data-atr="'+n+'"] li a[data-id="'+e+'"]').length?t('.mfn-variations-wrapper .mfn-vr-options[data-atr="'+n+'"] li a[data-id="'+e+'"]').trigger("click"):t('.mfn-variations-wrapper .mfn-vr-select[data-atr="'+n+'"]').length&&t('.mfn-variations-wrapper .mfn-vr-select[data-atr="'+n+'"]').val(e))})),window.location.search&&t(".mfn-variations-wrapper ul.mfn-vr-options").length){const e=new URLSearchParams(window.location.search);t(".mfn-variations-wrapper ul.mfn-vr-options").each((function(){let n=t(this).attr("data-atr");e.get(n)&&void 0!==n&&t(this).find('li a[data-id="'+e.get(n)+'"]').length&&t(this).find('li a[data-id="'+e.get(n)+'"]').trigger("click")}))}t(document).on("click",".woocommerce .mfn-variations-wrapper .mfn-reset-variations",(function(e){e.preventDefault(),t(".woocommerce .mfn-variations-wrapper .mfn-vr ul li").removeClass("active disabled"),t(".woocommerce .mfn-variations-wrapper .mfn-vr select").val(""),t(".mfn-variable-swatches .variations_form .variations select").val("").trigger("change"),t(this).hide()})),setTimeout((function(){n.triggerChange()}),200)},triggerChange:function(){t(".mfn-vr-options li").length&&t(".mfn-vr-options li").addClass("disabled"),t(".mfn-vr-select option").length&&t(".mfn-vr-select option").attr("disabled","true"),t(".woocommerce form.variations_form.cart table.variations select option").each((function(){var e=t(this).attr("value"),n=t(this).closest("select").attr("name");t(".woocommerce .mfn-variations-wrapper .mfn-vr ul."+n).length&&t(".woocommerce .mfn-variations-wrapper .mfn-vr ul."+n+' a[data-id="'+e+'"]').parent("li").removeClass("disabled"),t(".woocommerce .mfn-variations-wrapper .mfn-vr select."+n).length&&t(".woocommerce .mfn-variations-wrapper .mfn-vr select."+n+' option[value="'+e+'"]').removeAttr("disabled")})),t(".woocommerce .mfn-variations-wrapper .mfn-vr ul li.active").length?t(".woocommerce .mfn-variations-wrapper .mfn-reset-variations").show():t(".woocommerce .mfn-variations-wrapper .mfn-reset-variations").hide()}},o={cookiename:"mfn_wishlist",click:function(e){o.readcookie()?arr=o.readcookie().split(","):arr=[],arr.includes(e)?(arr=arr.filter((t=>t!=e)),t('.mfn-wish-button[data-id="'+e+'"]').removeClass("loved"),t('.mfn-wish-button[data-id="'+e+'"]').closest(".wishlist-row").length&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".wishlist-row").slideUp(300),t("body").hasClass("wishlist")&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".product").length&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".product").slideUp(300),setTimeout((function(){t('.mfn-wish-button[data-id="'+e+'"]').closest(".wishlist-row").length&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".wishlist-row").remove(),t("body").hasClass("wishlist")&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".product").length&&t('.mfn-wish-button[data-id="'+e+'"]').closest(".product").remove()}),400),1!=t(".wishlist .wishlist-row").length&&1!=t(".wishlist .column_shop_products .product").length||t(".wishlist .wishlist-info").show()):(arr.push(e),t('.mfn-wish-button[data-id="'+e+'"]').addClass("loved")),o.createcookie(arr),o.updatecounter(arr.length)},set:function(){o.readcookie()?arr=o.readcookie().split(","):arr=[],arr.length&&t.each(arr,(function(e,n){t('.mfn-wish-button[data-id="'+n+'"]').addClass("loved")})),o.updatecounter(arr.length)},readcookie:function(){for(var t=o.cookiename+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var a=e[n];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null},createcookie:function(t){var e=new Date;e.setTime(e.getTime()+31536e6);var n="; expires="+e.toGMTString();document.cookie=o.cookiename+"="+t+n+"; path="+mfnwoovars.rooturl+"/"},updatecounter:function(e){t(".header-wishlist-count").text(e).attr("class","header-wishlist-count mfn-header-icon-"+e)}};modallogin={check:function(){t(".mfn-header-modal-login form.woocommerce-form-login").attr("action",mfnwoovars.myaccountpage),t(".mfn-header-modal-login .woocommerce-form-login .form-row input").each((function(){t(this).val()?t(this).closest(".form-row").addClass("active"):t(this).closest(".form-row").removeClass("active")}))},click:function(e){var n=t("body").hasClass("rtl");if(t(".mfn-header-login").hasClass("disabled"))return!0;if(t("body").hasClass("mfn-show-login-modal"))t(".mfn-header-login").removeAttr("style").addClass("disabled"),setTimeout((function(){t(".mfn-header-login").addClass("is-side").removeClass("disabled")}),300),t("body").removeClass("mfn-show-login-modal no-overlay");else{if(e.hasClass("is-boxed")){var o=t("body").offset().top||0,a=e.offset().top||0,r=e.offset().left||0,i=window.innerWidth;modalW=340,a-=o,t(".mfn-header-login").removeClass("is-side"),t(".mfn-header-login").css("top",a+"px"),n?r-modalW<0?t(".mfn-header-login").css("left",r+"px"):t(".mfn-header-login").css("left",r-modalW+37+"px"):r+modalW>i?t(".mfn-header-login").css("left",r-modalW+37+"px"):t(".mfn-header-login").css("left",r+"px"),t("body").addClass("no-overlay")}t("body").addClass("mfn-show-login-modal")}}},checkoutpayment={start:function(e=!1){t(".wc_payment_methods .wc_payment_method").each((function(){t(this).find(".mfn-payment-check").length||t(this).append('<span class="mfn-payment-check"><i class="icon-check" aria-label="payment check icon"></i></span>'),t(this).find(".input-radio").is(":checked")&&checkoutpayment.set(t(this),e)})),checkoutpayment.watch()},watch:function(){t(document).on("click",".wc_payment_methods .wc_payment_method",(function(){checkoutpayment.set(t(this))}))},set:function(e,n=!1){$input=e.find(".input-radio"),$input.is(":checked")?e.addClass("active-payment"):(t(".wc_payment_methods .wc_payment_method .payment_box").slideUp(300),t(".wc_payment_methods .wc_payment_method").removeClass("active-payment"),$input.trigger("click"),e.addClass("active-payment"),e.find(".payment_box").slideDown(300)),n||setTimeout((function(){checkoutpayment.start(!0)}),1500)}},quickview={headerOffset:!1,display:function(e){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnproductquickview",id:e},type:"POST",success:function(e){t("body").append(e),t(".mfn-quick-view").removeClass("loading"),quickview.close(),t(".mfn-variations-wrapper").length&&t("body").hasClass("mfn-variable-swatches")&&n.run(),t("html").addClass("mfn-quick-view-opened"),t(".mfn-popup-quickview .mfn-quickview-slider").slick({slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,dots:!1,arrows:!0,prevArrow:'<a class="slick-prev mfn-popup-arrow slick-arrow" href="#"><i class="icon-left-open-big" aria-label="previous slide"></i></a>',nextArrow:'<a class="slick-next mfn-popup-arrow slick-arrow" href="#"><i class="icon-right-open-big" aria-label="next slide"></i></a>',focusOnChange:!0}),t(".mfn-popup-quickview form.cart.variations_form").length&&t(".mfn-popup-quickview .variations_form").wc_variation_form(),t(".mfn-popup-quickview .mfn-quickview-slider").imagesLoaded((function(){quickview.setHeight()})),o.set(),t(window).on("debouncedresize",quickview.setHeight)}})},setHeight:function(){var e=t(".mfn-popup-quickview .mfn-popup-content").outerHeight(),n=t(".mfn-popup-quickview .mfn-popup-content-photos .mfn-qs-one-first img").height();n>e?t(".mfn-popup-quickview .mfn-popup-content-text").css({height:e}):t(".mfn-popup-quickview .mfn-popup-content-text").css({height:n}),t("body").hasClass("mfn-header-scrolled")&&t(".mfn-header-tmpl.mfn-hasSticky").length&&(t("html").addClass("mfn-disable-css-animations"),t("body").removeClass("mfn-header-scrolled"),quickview.headerOffset=t(".mfn-header-tmpl.mfn-hasSticky").outerHeight(),t("body").addClass("mfn-header-scrolled"),t("#Wrapper").css({"padding-top":quickview.headerOffset+"px"}))},close:function(){t(".mfn-close-popup").on("click",(function(){t(".mfn-popup").remove(),t("html").removeClass("mfn-quick-view-opened"),t("html").removeClass("mfn-disable-css-animations")})),t(".mfn-popup").on("click",(function(e){t(".mfn-popup-content").is(e.target)||0!==t(".mfn-popup-content").has(e.target).length||(t(".mfn-popup").remove(),t("html").removeClass("mfn-quick-view-opened"),t("html").removeClass("mfn-disable-css-animations"))}))}};let a={force_open:!1,coupons:{init:function(){a.coupons.toggle(),a.coupons.apply(),a.coupons.remove()},back:function(e){t(".mfn-chft-apply-coupon-wrapper").is(e.target)||t(e.target).closest(".mfn-chft-apply-coupon-wrapper").length||(t(".mfn-chft-apply-coupon-wrapper").removeClass("mfn-chft-apply-coupon-active"),t(document).unbind("click",a.coupons.back))},toggle:function(){t(document).on("click",".mfn-chft-apply-coupon-switcher",(function(e){e.preventDefault(),t(this).closest(".mfn-chft-apply-coupon-wrapper").addClass("mfn-chft-apply-coupon-active"),t(".mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon-input").focus(),t(document).bind("click",a.coupons.back)}))},remove:function(){t(document).on("click",".mfn-chft-apply-coupon-wrapper .mfn-chft-coupons-list .mfn-sidecart-remove-coupon",(function(e){if(e.preventDefault(),t(this).hasClass("loading"))return;t(this).addClass("loading");let n=t(this).attr("data-code");t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfndeletecoupon",code:n},type:"POST",cache:!1,success:function(e){t(document.body).trigger("wc_fragment_refresh")}})}))},apply:function(){t(document).on("click",".mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon",(function(e){e.preventDefault(),t(document.body).trigger("wc_fragment_refresh")})),t(document).on("keypress",".mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon-input",(function(e){13==e.which&&t(document.body).trigger("wc_fragment_refresh")}))},removeNotices:function(){setTimeout((function(){t(".mfn-chft-apply-coupon-wrapper .mfn-sidecart-notice").remove()}),3e3)}},start:function(){return!1},click:function(){t("body").hasClass("shop-sidecart-active")&&t(".mfn-cart-holder").length&&(t("html").toggleClass("mfn-cart-opened"),a.force_open=!1)},delete:function(e){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnremovewooproduct",pid:e},type:"POST",cache:!1,success:function(n){t(document.body).trigger("wc_fragment_refresh"),t("body").hasClass("woocommerce-cart")&&t('.woocommerce .shop_table .product-remove a.remove[data-product_id="'+e+'"]').trigger("click")}})},updatequantity:function(e,n){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnchangeqtyproduct",pid:e,qty:n},type:"POST",cache:!1,success:function(o){t(document.body).trigger("wc_fragment_refresh"),t("body").hasClass("woocommerce-cart")&&(t('.woocommerce .shop_table .product-remove a.remove[data-product_id="'+e+'"]').parent().siblings(".product-quantity").find("input.qty").val(n).trigger("change"),t('.woocommerce-cart-form .button[name="update_cart"]').trigger("click"))}})}};a.coupons.init();var r={active:!0,time:function(){let t=[2e4,25e3,3e4,35e3,4e4,5e4];return t[Math.floor(Math.random()*t.length)]},init:function(){if(t("body").hasClass("mfn-ui"))return;if(r.checkCookie("mfnFakeSale")&&(r.active=!1),"undefined"==typeof mfn_fake_sale||!r.active)return;let e=void 0!==mfn_fake_sale.delay?mfn_fake_sale.delay:5;e=1e3*parseFloat(e),setTimeout(r.show,e),t(document).on("click",".mfn-fake-sale-noti .mfn-fake-sale-noti-close",(function(t){t.preventDefault(),r.active=!1,r.hide(),r.addCookie(1,"mfnFakeSale")}))},show:function(){var e=mfn_fake_sale.items[Math.floor(Math.random()*mfn_fake_sale.items.length)],n=`<div class="mfn-fake-sale-noti mfn-fake-sale-noti-${mfn_fake_sale.position}">${e} ${"1"==mfn_fake_sale.closeable?'<a href="/" class="mfn-fake-sale-noti-close"><span class="icon">&#10005;</span></a>':""}</div>`;t("body").append(n),setTimeout(r.hide,15e3)},hide:function(){t(".mfn-fake-sale-noti").length&&(t(".mfn-fake-sale-noti").addClass("mfn-fake-sale-noti-out"),setTimeout((function(){t(".mfn-fake-sale-noti").remove()}),500),r.active&&r.reset())},reset:function(){setTimeout(r.show,r.time())},addCookie(t,e){let n=new Date;n.setTime(n.getTime()+24*parseInt(t)*60*60*1e3);let o="; expires="+n.toGMTString();document.cookie=e+"=true"+o+"; path=/"},checkCookie(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var a=n[o];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}},i={start:function(){t(".flex-viewport").length?($loup=t(".woocommerce-product-gallery__trigger").clone(!0).empty().appendTo(".flex-viewport"),t(".woocommerce-product-gallery > .woocommerce-product-gallery__trigger").remove(),t(".woocommerce-product-gallery .mfn-wish-button").length&&(t(".woocommerce-product-gallery .mfn-wish-button").clone(!0).appendTo(".flex-viewport"),t(".woocommerce-product-gallery > .mfn-wish-button").remove(),t(document).trigger("resize"))):t(".woocommerce-product-gallery__trigger").length&&t(".woocommerce-product-gallery__trigger").empty(),t(".mfn-product-gallery").length&&(t(".flex-control-thumbs").length&&t(".flex-control-thumbs").wrap('<div class="mfn-flex-control-thumbs-wrapper"></div>'),t(".woocommerce-product-gallery").imagesLoaded((function(){t(".mfn-thumbnails-left").length||t(".mfn-thumbnails-right").length?i.verticalThumbs():t(".mfn-thumbnails-bottom").length&&i.horizontalThumbs()})))},horizontalThumbs:function(){var e=t(".mfn-product-gallery"),n=e.outerWidth(),o=e.find(".flex-control-thumbs"),a=0;if(o.find("li").each((function(){t(this).addClass("swiper-slide"),a+=t(this).outerWidth()})),e.length&&o.length){a>n&&(o.css({"justify-content":"flex-start",width:"100%"}),t(".mfn-flex-control-thumbs-wrapper").addClass("mfn-scroller-active")),o.addClass("swiper-wrapper");var r={slidesPerView:5,spaceBetween:parseInt(mfnwoovars.productthumbs)};o.parent().addClass("mfn-arrows-absolute"),o.parent().append('<div class="swiper-button-next mfn-swiper-arrow"><i class="icon-right-open-big"></i></div><div class="swiper-button-prev mfn-swiper-arrow"><i class="icon-left-open-big"></i></div>'),r.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"};new Swiper(".mfn-flex-control-thumbs-wrapper",r)}},verticalThumbs:function(){var e=t(".mfn-product-gallery"),n=e.find(".woocommerce-product-gallery__image").first().outerHeight(),o=e.find(".flex-control-thumbs"),a=0,r=0,i=mfnwoovars.productthumbsover?mfnwoovars.productthumbsover:0;if(o.find("li img").css({height:"auto"}),o.find("li").css({height:"auto"}),o.find("li").each((function(){t(this).addClass("swiper-slide").css({"margin-bottom":parseInt(mfnwoovars.productthumbs)}),a+=t(this).outerHeight()+parseInt(mfnwoovars.productthumbs),t(this).css({opacity:"1"})})),"mfn-mim-2"==mfnwoovars.mainimgmargin?r=4:"mfn-mim-5"==mfnwoovars.mainimgmargin?r=10:"mfn-mim-10"==mfnwoovars.mainimgmargin?r=20:"mfn-mim-15"==mfnwoovars.mainimgmargin?r=30:"mfn-mim-20"==mfnwoovars.mainimgmargin?r=40:"mfn-mim-25"==mfnwoovars.mainimgmargin?r=50:"mfn-mim-30"==mfnwoovars.mainimgmargin&&(r=60),e.length&&o.length){if(e.find(".flex-viewport").css({height:"auto"}),a>n){"mfn-thumbnails-overlay"==i?t(".mfn-flex-control-thumbs-wrapper").height(n-r):t(".mfn-flex-control-thumbs-wrapper").height(n),o.css({"align-items":"flex-start"}),t(".mfn-flex-control-thumbs-wrapper").addClass("mfn-scroller-active"),o.addClass("swiper-wrapper");new Swiper(".mfn-flex-control-thumbs-wrapper",{slidesPerView:4,spaceBetween:parseInt(mfnwoovars.productthumbs),direction:"vertical",mousewheel:!0});o.find("li").each((function(){t(this).find("img").css({height:t(this).outerHeight()}),t(this).css({opacity:"1"})}))}e.find(".flex-viewport").css("height",n)}}};t(window).on("debouncedresize",(function(){(t(".mfn-thumbnails-left").length||t(".mfn-thumbnails-right").length)&&setTimeout(i.verticalThumbs(),300),setTimeout((function(){l.prepare()}),100)}));var s=function(e){var n=function(n){var o,a=document.querySelectorAll(".pswp")[0];o=function(){var n=[];return t(e).find("div img").not(".zoomImg").each((function(){var e=t(this),o=e.attr("data-large_image"),a=e.attr("data-large_image_width"),r=e.attr("data-large_image_height"),i={alt:e.attr("alt"),src:o,w:a,h:r,title:e.attr("data-caption")?e.attr("data-caption"):e.attr("title")};n.push(i)})),n}();var r={index:parseInt(n,10),getThumbBoundsFn:function(e){var n=t('.mfn-product-gallery-grid .mfn-product-gg-img[data-index="'+e+'"] div img:first-child'),o=(window.pageYOffset||document.documentElement.scrollTop,n.offset());return{x:o.left,y:o.top,w:n.width()}}};isNaN(r.index)||(gallery=new PhotoSwipe(a,PhotoSwipeUI_Default,o,r),gallery.init())};t(".mfn-product-gallery-grid a.woocommerce-product-gallery__trigger").on("click",(function(e){e.preventDefault();var o=t(this).closest(".mfn-product-gg-img").attr("data-index");n(o)})),t(".mfn-product-gallery-grid .woocommerce-product-gallery__image a").on("click",(function(e){e.preventDefault(),t(this).closest(".elementor-widget-container").length||t(this).closest(".mfn-product-gg-img").find(".woocommerce-product-gallery__trigger").trigger("click")}))};t(document).on("click",".mfn-woocommerce-tabs .mfn-woocommerce-tabs-nav a",(function(e){if(e.preventDefault(),t(this).parent("li").hasClass("active"))return;let n=t(this).closest(".mfn-woocommerce-tabs"),o=t(this).attr("href").replace("#",".");t(this).parent().siblings("li").removeClass("active"),t(this).closest(".mfn-woocommerce-tabs").find(".mfn-woocommerce-tabs-content.active").removeClass("active"),t(this).parent("li").addClass("active"),n.find(o).addClass("active")}));let l={wrap:!1,offset:0,slide_w:0,index:0,slides_count:1,touchStartX:0,touchStartY:0,touchThreshold:2,hasSwiped:!1,timing:300,dx:0,dy:0,abs_dx:0,tolerance:0,is_mobile:!1,prepared:!1,init:function(){this.prepare(),t(document).on("click",".mfn-product-list-gallery-slider .mfn-plgsn-next",(function(e){e.preventDefault(),t(this).hasClass("disabled")||(t(this).addClass("disabled"),l.wrap=t(this).closest(".mfn-product-list-gallery-slider"),l.setFromNav(),l.wrap.find(".mfn-slide-current").next(".mfn-product-list-gallery-item").length||(l.wrap.find(".mfn-product-list-gallery-slider-track").append(l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:first-child")),l.offset=l.offset+l.slide_w,l.wrap.find(".mfn-product-list-gallery-slider-track").css({transform:`translate3d(${l.offset}px, 0, 0)`,"transition-duration":"0s"})),setTimeout(l.next,50))})),t(document).on("click",".mfn-product-list-gallery-slider .mfn-plgsn-prev",(function(e){e.preventDefault(),t(this).hasClass("disabled")||(t(this).addClass("disabled"),l.wrap=t(this).closest(".mfn-product-list-gallery-slider"),l.setFromNav(),l.wrap.find(".mfn-slide-current").prev(".mfn-product-list-gallery-item").length||(l.wrap.find(".mfn-product-list-gallery-slider-track").prepend(l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:last-child")),l.offset=l.offset-l.slide_w,l.wrap.find(".mfn-product-list-gallery-slider-track").css({transform:`translate3d(${l.offset}px, 0, 0)`,"transition-duration":"0s"})),setTimeout(l.prev,50))})),t(document).on("click",".mfn-product-list-gallery-slider .mfn-product-list-gallery-slider-pagination a",(function(e){e.preventDefault(),t(this).hasClass("active")||t(this).closest(".mfn-product-list-gallery-slider-pagination").hasClass("disabled")||(t(this).closest(".mfn-product-list-gallery-slider-pagination").addClass("disabled"),l.wrap=t(this).closest(".mfn-product-list-gallery-slider"),l.slide_w=l.wrap.outerWidth(),l.index=t(this).attr("data-index"),l.wrap.find('.mfn-product-list-gallery-item[data-index="'+l.index+'"]').addClass("mfn-slide-current").siblings().removeClass("mfn-slide-current"),l.offset=-l.wrap.find('.mfn-product-list-gallery-item[data-index="'+l.index+'"]').position().left,l.show())})),t(document).on("touchstart",".mfn-product-list-gallery-slider",(function(e){if(l.hasSwiped)return;const n=e.originalEvent.touches[0];l.wrap=t(this),l.offset=parseFloat(l.wrap.attr("data-offset"))||0,l.slide_w=l.wrap.outerWidth(),l.touchStartX=n.clientX,l.touchStartY=n.clientY,l.tolerance=.9*l.slide_w,l.prepared=!0})),t(document).on("touchmove",".mfn-product-list-gallery-slider",(function(t){const e=t.originalEvent.touches[0];if(l.dx=e.clientX-l.touchStartX,l.dy=e.clientY-l.touchStartY,l.abs_dx=Math.abs(l.dx),Math.abs(l.dy)<100){if(t.preventDefault(),!l.hasSwiped)if(l.dx<-l.touchThreshold){if(l.wrap.find(".mfn-slide-current").next(".mfn-product-list-gallery-item").length||(l.wrap.find(".mfn-product-list-gallery-slider-track").append(l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:first-child")),l.offset=l.offset+l.slide_w),l.abs_dx>=l.tolerance)return l.next(),void(l.hasSwiped=!0);let t=l.offset-l.abs_dx;l.wrap.find(".mfn-product-list-gallery-slider-track").css({transform:`translate3d(${t}px, 0, 0)`,"transition-duration":"0s"})}else if(l.dx>=l.touchThreshold){if(l.wrap.find(".mfn-slide-current").prev(".mfn-product-list-gallery-item").length||(l.wrap.find(".mfn-product-list-gallery-slider-track").prepend(l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:last-child")),l.offset=l.offset-l.slide_w),l.abs_dx>=l.tolerance)return l.prev(),void(l.hasSwiped=!0);let t=l.offset+l.abs_dx;l.wrap.find(".mfn-product-list-gallery-slider-track").css({transform:`translate3d(${t}px, 0, 0)`,"transition-duration":"0s"})}}else l.hasSwiped=!0})),t(document).on("touchend",".mfn-product-list-gallery-slider",(function(e){t("body").hasClass("mobile-row-2-products")&&l.is_mobile,l.tolerance;!l.hasSwiped&&l.dx>l.touchThreshold?l.prev():l.hasSwiped?l.show():l.next()}))},prepare:function(){t(".mfn-product-list-gallery-slider").length&&(t(".mfn-product-list-gallery-slider .mfn-product-list-gallery-item").removeAttr("style"),setTimeout((function(){t(".mfn-product-list-gallery-slider").each((function(){let e=t(this).outerWidth();t(this).find(".mfn-product-list-gallery-item").css({width:e})}))}),1),t(window).width()<767?l.is_mobile=!0:l.is_mobile=!1)},setFromNav:function(){l.offset=parseFloat(l.wrap.attr("data-offset"))||0,l.slide_w=l.wrap.outerWidth(),l.slides_count=l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item").length},show:function(){l.wrap.find(".mfn-product-list-gallery-slider-track").css({transform:`translate3d(${l.offset}px, 0, 0)`,"transition-duration":"300ms"}),setTimeout((function(){l.hasSwiped=!1,l.prepared=!1,l.wrap.find(".disabled").removeClass("disabled")}),290),l.wrap.find('.mfn-product-list-gallery-slider-pagination a[data-index="'+l.index+'"]').addClass("active").siblings().removeClass("active"),l.wrap.attr("data-offset",l.offset)},next:function(){l.wrap.find(".mfn-slide-current").next(".mfn-product-list-gallery-item").length?(l.offset=l.offset-l.slide_w,l.index=l.wrap.find(".mfn-slide-current").next(".mfn-product-list-gallery-item").attr("data-index"),l.wrap.find(".mfn-slide-current").next(".mfn-product-list-gallery-item").addClass("mfn-slide-current").siblings(".mfn-product-list-gallery-item").removeClass("mfn-slide-current")):(l.offset=0,l.index=0,l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:first-child").addClass("mfn-slide-current").siblings(".mfn-product-list-gallery-item").removeClass("mfn-slide-current")),l.show()},prev:function(){l.wrap.find(".mfn-slide-current").prev(".mfn-product-list-gallery-item").length?(l.offset=l.offset+l.slide_w,l.index=l.wrap.find(".mfn-slide-current").prev(".mfn-product-list-gallery-item").attr("data-index"),l.wrap.find(".mfn-slide-current").prev(".mfn-product-list-gallery-item").addClass("mfn-slide-current").siblings(".mfn-product-list-gallery-item").removeClass("mfn-slide-current")):(l.offset=-l.slide_w*l.slides_count+l.slide_w,l.index=l.slides_count-1,l.wrap.find(".mfn-product-list-gallery-slider-track .mfn-product-list-gallery-item:last-child").addClass("mfn-slide-current").siblings(".mfn-product-list-gallery-item").removeClass("mfn-slide-current")),l.show()}};l.init(),t(document).on("mfn:tabber:open",l.prepare),t(document).on("mfn:ajax:refresh",(function(){l.prepare(),t(".woocommerce .column_shop_products ul.products.list").length&&e(),t(".products li img").length&&t(".products li img").each((function(){void 0!==t(this).attr("data-src")&&t(this).attr("src",t(this).attr("data-src"))}))}));let c={selector:!1,init:function(){t(".column_header_currency_switcher .mfn-currency-switcher-wrapper:not(.initialized)").length&&t(".column_header_currency_switcher .mfn-currency-switcher-wrapper:not(.initialized)").each((function(){c.selector=t(this),c.selector.addClass("initialized"),c.selector.hasClass("mfn-currency-switcher-flags")&&c.attach_flags(),c.selector.hasClass("mfn-currency-switcher-dropdown mfn-currency-switcher-dropdown-icon")&&c.dropdown_icon(),c.selector.hasClass("mfn-currency-switcher-dropdown")&&c.dropdown(),c.selector=!1}))},attach_flags:function(){let e=c.selector.attr("data-themepath");c.selector.find("li a").each((function(){let n=t(this).attr("rel"),o=`${e}/${n}.svg`;t(this).prepend('<img class="mfn-wcml-flag" src="'+o+'" alt="" width="20" height="15">')}))},dropdown_icon:function(){let e=c.selector.attr("data-path");c.selector.find("li.wcml-cs-active-currency > a").each((function(){t(this).append('<i class="mfn-arrow-icon '+e+'"></i>')}))},dropdown:function(){let t=c.selector.find("ul").clone(),e=c.selector.find("ul li.wcml-cs-active-currency").clone();c.selector.find("ul").before('<ul class="mfn-wcml-dropdown-ready"></ul>'),c.selector.find("ul.mfn-wcml-dropdown-ready").append(e),c.selector.find("ul:not(.mfn-wcml-dropdown-ready)").remove(),c.selector.find("ul.mfn-wcml-dropdown-ready li").append(t),c.selector.find("ul.mfn-wcml-dropdown-ready li ul li.wcml-cs-active-currency").remove()}};c.init(),t(document.body).on("wc_fragments_refreshed",(function(){t(".mfn-cart-holder").removeClass("loading");let e=function(){try{let e=sessionStorage.getItem(wc_cart_fragments_params.fragment_name);if(!e)return 0;e=JSON.parse(e);let n=e[".header-cart-count"];if(n||(n=e["span.header-cart-count"]),!n)return 0;let o=t("<div>").html(n).text(),a=parseInt(o.replace(/\D/g,""),10);return isNaN(a)?0:a}catch(t){return 0}}();t("body").hasClass("woocommerce-cart")&&t(".mfn-builder-content.mfn-cart-tmpl-builder").length&&(t(".mfn-builder-content.mfn-cart-tmpl-builder").removeClass("mfn-cart-tmpl-not-empty mfn-cart-tmpl-empty"),e?t(".mfn-builder-content.mfn-cart-tmpl-builder").addClass("mfn-cart-tmpl-not-empty"):t(".mfn-builder-content.mfn-cart-tmpl-builder").addClass("mfn-cart-tmpl-empty")),0===e?t(".mfn-ch-footer-buttons").hide():t(".mfn-ch-footer-buttons").show(),a.force_open&&a.click()}))}(jQuery);

https://t.me/RX1948 - 2025