مؤسسة الركن المكتبي التجارية تأسست على رؤية مُختلفة، تهدف إلى تقديم تجربة فريدة من نوعها في الأثاث المكتبي والفندقي لكي نضمن بيئة عمل توفر مساحات عمل مريحة وصحية، حيث نمتاز بخبراتنا الواسعة فأصبحت أحد أفضل المؤسسات الوطنية الرائدة في تجارة وصناعة الأثاث والتصميم الداخلي والسبّاقة على مستوى المملكة في المفروشات المكتبية والفندقية والمنزلية، نهدف الى خلق قيمة لعملائنا عن طريق توفير الجودة العالية في مقابل السعر المناسب.
منتجاتنا الجودة العالية في مقابل السعر المناسب
فبراير 6, 2025
فبراير 6, 2025
فبراير 6, 2025
فبراير 6, 2025
فبراير 9, 2025
فبراير 9, 2025
فبراير 9, 2025
فبراير 9, 2025
أغسطس 15, 2022
UX-антипаттерны в действии – Анализ скриншотов популярных онлайн-площадок Просматривая сотни скриншотов популярных онлайн-площадок, мы сразу же видим: навязчивое […]
يناير 1, 2023
Vavada рабочее зеркало вход для удобного доступа Vavada рабочее зеркало вход Чтобы получить моментальный доступ к любимым развлечениям, […]
مايو 29, 2023
Эпикстар казино играй и выигрывай без проблем онлайн Эпикстар казино играй и выигрывай онлайн без проблем Добро пожаловать […]
سبتمبر 16, 2023
Рацион 2025 год что ждет нас на столах Ключ к вашему рациону 2025 года – персонализация. Забудьте о […]
أكتوبر 16, 2023
Авто 2025 – Ваш выбор лучших моделей по всем классам Выберите свой идеальный автомобиль 2025 года. Наш гид […]
يناير 2, 2025
Вавада казино | Vavada Зеркало Вход на официальный сайт ▶️ ИГРАТЬ Содержимое Вавада казино – надежный партнер для […]
يناير 3, 2025
Пинко Казино – Официальный сайт Pinco Casino ▶️ ИГРАТЬ Содержимое Преимущества игры в Pinco Casino Как начать играть […]
فبراير 6, 2025
*(……&*6干sfa绅士的风度sfsdfd不打发打发死啊好办法
/home/officeco/.trash/public_html/wp-content/themes/betheme00/js/woocommerce.min.js
!function(t){t(document).ready((function(){function r(){t(".woocommerce .column_shop_products ul.products.list li.product").each((function(){t(this).css({"min-height":"1px"});var e=t(this).outerHeight(),o=t(this).find(".product-loop-thumb").outerHeight();o>e&&t(this).css({"min-height":o})}))}function i(){let e=[];var o=function(){var e=window.location.pathname,o="";o=e.includes("/page/")?e.split("/page/")[0]:e;t("body").hasClass("archive")||(o=t("form.mfn_attr_filters").attr("action"));return o}();t("form.mfn_attr_filters").each((function(){e.push(t(this).serialize())})),formUnique=e.filter((function(t){if(!this[t])return this[t]=1,t}),{}),function(e){t(".entry-content .mfn-woo-products");t(".mfn_attr_filters button").addClass("loading disabled"),t("body").hasClass("archive")?t.get(e,(function(o){if(t(".pager_wrapper").remove(),t(".woocommerce-info").remove(),t(".default-woo-list").length?t(".default-woo-list").replaceWith(t(t.parseHTML(o)).find(".default-woo-list").clone()):t(".column_shop_products").length&&t(".column_shop_products").replaceWith(t(t.parseHTML(o)).find(".column_shop_products").clone()),t(".woocommerce-ordering select").on("change",(function(){t(this).closest("form").submit()})),history.replaceState(null,"",e),t(".mcb-sidebar").length){var a=t("#Content .sections_group").outerHeight();t(".mcb-sidebar").each((function(){t(this).css("min-height",0),t(this).height()>a&&(a=t(this).height())})),t(".mcb-sidebar").css("min-height",a+"px")}t(".woocommerce .column_shop_products ul.products.list").length&&(r(),t(window).on("debouncedresize",r)),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"))})),t(".mfn_attr_filters ul li").removeClass("loading"),t(".mfn_attr_filters button").removeClass("loading disabled")})):window.location.href=e}(o+"?"+formUnique.join("&"))}!t("body").hasClass("mfn-ui")&&t(".mfn-product-gallery-grid").length&&(t("body").hasClass("product-zoom-disabled")||t(" .mfn-product-gg-img a").zoom(),n(".mfn-product-gallery-grid")),t(document).on("click",".mfn-quick-view",(function(e){e.preventDefault();var o=t(this).attr("data-id");t(this).addClass("loading"),quickview.display(o)})),t("body").hasClass("mfn-ajax-add-to-cart")&&t(document).on("click",".single_add_to_cart_button:not(.disabled)",(function(e){e.preventDefault();var o=t("#header_cart .header-cart-count").length?t("#header_cart .header-cart-count").first().text():0,a=t(this),n=a.closest("form.cart"),r=a.closest("form.cart").get(0),i=n.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 c={url:wc_add_to_cart_params.ajax_url,type:"POST",beforeSend:function(e){t(document.body).trigger("adding_to_cart"),a.removeClass("added").addClass("loading")},success:function(e){"error"!=e&&(a.addClass("added").removeClass("loading"),t(document.body).trigger("added_to_cart"),t(document.body).trigger("wc_fragment_refresh"),t(".mfn-cart-holder").attr("aria-expanded","true"))}};if(n.hasClass("grouped_form")){var l=t("input.qty",n),m=!1;if(l.each((function(){parseInt(t(this).val())>0&&(m=!0)})),!m)return alert(mfnwoovars.groupedQuantityErrori18n),!1}var d=new FormData(r);return d.append("action","woocommerce_add_to_cart"),d.append("current_cart",o),t(".mnm_cart.mnm_data .mnm_add_to_cart_button").length&&d.delete("add-to-cart"),"undefined"!==a.val()&&d.append("product_id",parseInt(a.val())),c.data=d,c.contentType=!1,c.processData=!1,t(document.body).trigger("adding_to_cart",[a,d]),t.ajax(c),!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")&&e.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"),woocart.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");woocart.click()}})),t(".mfn-cart-overlay").on("click",(function(){woocart.click()})),t("body").hasClass("shop-sidecart-active")&&woocart.start(),t(".toggle-login-modal").on("click",(function(e){e.preventDefault(),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&&(r(),t(window).on("debouncedresize",r)),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").on("blur change",(function(){modallogin.check()})),modallogin.check(),t(".mfn-cart-holder .mfn-ch-content").on("click",".mfn-chp-remove",(function(e){if(e.preventDefault(),!t(".mfn-cart-holder").hasClass("loading")){t(".mfn-cart-holder").addClass("loading");var o=t(this).closest(".mfn-ch-product").attr("data-row-key");woocart.delete(o)}})),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(".mfn-cart-holder .mfn-ch-content").on("change",".qty",(function(){var e=t(this);if(!t(".mfn-cart-holder").hasClass("loading")){t(".mfn-cart-holder").addClass("loading");var o=e.closest(".mfn-ch-product").attr("data-row-key"),a=e.val();woocart.updatequantity(o,a)}})),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"),t(document).ajaxComplete((function(){checkoutpayment.start()})),setTimeout((function(){checkoutpayment.start()}),1500)),t(document.body).on("adding_to_cart",(function(e){t(".header-cart-count").length&&t(".header-cart-total").length||(t(".header-cart").append('<span class="header-cart-count"></span>'),t("#header_cart").append('<p class="header-cart-total"></p>'))})),t(document.body).on("added_to_cart",(function(e){t("body").hasClass("shop-sidecart-active")&&(woocart.refresh(),t("html").hasClass("mfn-cart-opened")||woocart.click())})),t(document.body).on("updated_cart_totals removed_from_cart",(function(){t("body").hasClass("shop-sidecart-active")&&woocart.refresh()})),o.set(),t(document).on("click",".mfn-wish-button",(function(e){e.preventDefault();var a=t(this).attr("data-id");o.click(a)})),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("laoding"),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")),i())})),t(document).on("click","form.mfn_attr_filters ul li",(function(){var e=t(this),o=(t(this).closest("ul"),t(this).closest("form")),a=e.find("input").attr("class");o.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")):o.hasClass("mfn_attr_filters")&&(e.find("input").is(":checked")?t("form.mfn_attr_filters ul li input."+a).prop("checked",!1):t("form.mfn_attr_filters ul li input."+a).prop("checked",!0),t("form.mfn_attr_filters ul li input."+a).closest("li").toggleClass("active")),e.closest("form").hasClass("button-enabled")||(e.addClass("loading"),i())}))),t("form.mfn_attr_filters.button-enabled").length&&t("form.mfn_attr_filters.button-enabled").submit((function(t){t.preventDefault(),i()})),setTimeout((function(){a.start()}),300)}));var e={run:function(){if(t(".mfn-variations-wrapper .mfn-vr-options li a").on("click",(function(o){o.preventDefault(),t(this).parent().siblings().removeClass("active"),t(this).parent().addClass("active");var a=t(this).attr("data-id"),n=t(this).parent().parent().attr("data-atr");t(".variations select#"+n).val(a),t(".variations select#"+n).trigger("change"),"false"!=t("form.variations_form").attr("data-product_variations")&&setTimeout((function(){e.triggerChange(n,a)}),100)})),t(".mfn-variations-wrapper .mfn-vr-select").on("change",(function(){var o=t(this).val(),a=t(this).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(){e.triggerChange(a,o)}),100)})),t(".woocommerce div.product form.cart .variations select").each((function(){var e=t(this).val(),o=t(this).attr("id");e.length&&(t('.mfn-variations-wrapper .mfn-vr-options[data-atr="'+o+'"] li a[data-id="'+e+'"]').length?t('.mfn-variations-wrapper .mfn-vr-options[data-atr="'+o+'"] li a[data-id="'+e+'"]').trigger("click"):t('.mfn-variations-wrapper .mfn-vr-select[data-atr="'+o+'"]').length&&t('.mfn-variations-wrapper .mfn-vr-select[data-atr="'+o+'"]').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 o=t(this).attr("data-atr");e.get(o)&&void 0!==o&&t(this).find('li a[data-id="'+e.get(o)+'"]').length&&t(this).find('li a[data-id="'+e.get(o)+'"]').trigger("click")}))}},triggerChange:function(e,o){t(".mfn-vr-options li").length&&t(".mfn-vr-options li a").css("opacity","0.3"),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"),o=t(this).closest("select").attr("name");t(".woocommerce .mfn-variations-wrapper .mfn-vr ul."+o).length&&t(".woocommerce .mfn-variations-wrapper .mfn-vr ul."+o+' a[data-id="'+e+'"]').css("opacity","1"),t(".woocommerce .mfn-variations-wrapper .mfn-vr select."+o).length&&t(".woocommerce .mfn-variations-wrapper .mfn-vr select."+o+' option[value="'+e+'"]').removeAttr("disabled")}))}},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").slideUp(300),setTimeout((function(){t('.mfn-wish-button[data-id="'+e+'"]').closest(".wishlist-row").remove()}),400),1==t(".wishlist .wishlist-row").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,o){t('.mfn-wish-button[data-id="'+o+'"]').addClass("loved")})),o.updatecounter(arr.length)},readcookie:function(){for(var t=o.cookiename+"=",e=document.cookie.split(";"),a=0;a<e.length;a++){for(var n=e[a];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return null},createcookie:function(t){var e=new Date;e.setTime(e.getTime()+31536e6);var a="; expires="+e.toGMTString();document.cookie=o.cookiename+"="+t+a+"; path="+mfnwoovars.rooturl+"/"},updatecounter:function(e){t("body").hasClass("mfn-hidden-icon-count")&&0==e?t(".header-wishlist-count").hide():t(".header-wishlist-count").show().text(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 o=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 a=t("body").offset().top||0,n=e.offset().top||0,r=e.offset().left||0,i=window.innerWidth;modalW=340,n-=a,t(".mfn-header-login").removeClass("is-side"),t(".mfn-header-login").css("top",n+"px"),o?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(){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))})),checkoutpayment.watch()},watch:function(){t(document).on("click",".wc_payment_methods .wc_payment_method",(function(){checkoutpayment.set(t(this))}))},set:function(e){$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)),setTimeout((function(){checkoutpayment.start()}),1500)}},quickview={headerOffset:!1,display:function(a){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnproductquickview",id:a},type:"POST",success:function(a){t("body").append(a),t(".mfn-quick-view").removeClass("loading"),quickview.close(),t(".mfn-variations-wrapper").length&&t("body").hasClass("mfn-variable-swatches")&&e.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(),o=t(".mfn-popup-quickview .mfn-popup-content-photos .mfn-qs-one-first img").height();o>e?t(".mfn-popup-quickview .mfn-popup-content-text").css({height:e}):t(".mfn-popup-quickview .mfn-popup-content-text").css({height:o}),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"))}))}},woocart={start:function(){t("a#header_cart .header-cart-count").length&&"0"==t("#Top_bar a#header_cart .header-cart-count").text()&&t(".mfn-ch-footer-buttons").hide()},click:function(){t("body").hasClass("shop-sidecart-active")&&t(".mfn-cart-holder").length&&t("html").toggleClass("mfn-cart-opened")},refresh:function(){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnrefreshcart"},type:"POST",cache:!1,success:function(e){t(".mfn-cart-holder .mfn-ch-content").html(e.content),t(".mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals").html(e.footer),t(".mfn-cart-holder").removeClass("loading"),0==e.total?t(".mfn-ch-footer-buttons").hide():t(".mfn-ch-footer-buttons").show()}})},delete:function(e){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnremovewooproduct",pid:e},type:"POST",cache:!1,success:function(o){t(document.body).trigger("wc_fragment_refresh"),woocart.refresh(),t("body").hasClass("woocommerce-cart")&&t('.woocommerce .shop_table .product-remove a.remove[data-product_id="'+e+'"]').trigger("click")}})},updatequantity:function(e,o){t.ajax({url:mfnwoovars.ajaxurl,data:{"mfn-woo-nonce":mfnwoovars.wpnonce,action:"mfnchangeqtyproduct",pid:e,qty:o},type:"POST",cache:!1,success:function(a){t(document.body).trigger("wc_fragment_refresh"),woocart.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(o).trigger("change"),t('.woocommerce-cart-form .button[name="update_cart"]').trigger("click"))}})}};var a={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?a.verticalThumbs():t(".mfn-thumbnails-bottom").length&&a.horizontalThumbs()})))},horizontalThumbs:function(){var e=t(".mfn-product-gallery"),o=e.outerWidth(),a=e.find(".flex-control-thumbs"),n=0;if(a.find("li").each((function(){t(this).addClass("swiper-slide"),n+=t(this).outerWidth()})),e.length&&a.length){n>o&&(a.css({"justify-content":"flex-start",width:"100%"}),t(".mfn-flex-control-thumbs-wrapper").addClass("mfn-scroller-active")),a.addClass("swiper-wrapper");var r={slidesPerView:5,spaceBetween:parseInt(mfnwoovars.productthumbs)};a.parent().addClass("mfn-arrows-absolute"),a.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"),o=e.find(".woocommerce-product-gallery__image").first().outerHeight(),a=e.find(".flex-control-thumbs"),n=0,r=0,i=mfnwoovars.productthumbsover?mfnwoovars.productthumbsover:0;if(a.find("li img").css({height:"auto"}),a.find("li").css({height:"auto"}),a.find("li").each((function(){t(this).addClass("swiper-slide").css({"margin-bottom":parseInt(mfnwoovars.productthumbs)}),n+=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&&a.length){if(e.find(".flex-viewport").css({height:"auto"}),n>o){"mfn-thumbnails-overlay"==i?t(".mfn-flex-control-thumbs-wrapper").height(o-r):t(".mfn-flex-control-thumbs-wrapper").height(o),a.css({"align-items":"flex-start"}),t(".mfn-flex-control-thumbs-wrapper").addClass("mfn-scroller-active"),a.addClass("swiper-wrapper");new Swiper(".mfn-flex-control-thumbs-wrapper",{slidesPerView:4,spaceBetween:parseInt(mfnwoovars.productthumbs),direction:"vertical",mousewheel:!0});a.find("li").each((function(){t(this).find("img").css({height:t(this).outerHeight()}),t(this).css({opacity:"1"})}))}e.find(".flex-viewport").css("height",o)}}};t(window).on("debouncedresize",(function(){(t(".mfn-thumbnails-left").length||t(".mfn-thumbnails-right").length)&&setTimeout(a.verticalThumbs(),300)}));var n=function(e){var o=function(o){var a,n=document.querySelectorAll(".pswp")[0];a=function(){var o=[];return t(e).find("div img").not(".zoomImg").each((function(){var e=t(this),a=e.attr("data-large_image"),n=e.attr("data-large_image_width"),r=e.attr("data-large_image_height"),i={alt:e.attr("alt"),src:a,w:n,h:r,title:e.attr("data-caption")?e.attr("data-caption"):e.attr("title")};o.push(i)})),o}();var r={index:parseInt(o,10),getThumbBoundsFn:function(e){var o=t('.mfn-product-gallery-grid .mfn-product-gg-img[data-index="'+e+'"] div img:first-child'),a=(window.pageYOffset||document.documentElement.scrollTop,o.offset());return{x:a.left,y:a.top,w:o.width()}}};isNaN(r.index)||(gallery=new PhotoSwipe(n,PhotoSwipeUI_Default,a,r),gallery.init())};t(".mfn-product-gallery-grid a.woocommerce-product-gallery__trigger").on("click",(function(e){e.preventDefault();var a=t(this).closest(".mfn-product-gg-img").attr("data-index");o(a)})),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")}))}}(jQuery);
Run Command [Bypass]
Run Command