PageSourceSearch

https://www.modeltraintechnology.com/wp-content/themes/ciyashop/js/main.min.js?ver=4.10.1

js modeltraintechnology.com collected 2026-09-30 22:51:35 UTC 69,212 bytes, 1 lines download raw bytes

1!function(w){"use strict";E(),jQuery(window).load(function(){jQuery("#load").fadeOut(),jQuery("#preloader").delay(200).fadeOut("slow"),i(),x(),setTimeout(function(){c()},300),H(),setTimeout(function(){B()},200),setTimeout(function(){I()},300)}),jQuery(document).ready(function(){E(),w("body").hasClass("cs-filter-with-ajax")&&(w(document.body).on("cs_shop_ajax_filter",function(e,t,o){var a;-1==t.indexOf("/page")||o||(o=t.split("/page")[0],a=t.split("?")[0],t=t.replace(a,o)),window.history.pushState(null,null,t),jQuery(".products.products-loop").addClass("loading"),0<jQuery(".woocommerce-categories-slider").length&&jQuery(".woocommerce-categories-slider").addClass("loading"),jQuery(document.body).trigger("cs_shop_ajax_before_content_load"),jQuery.get(t).success(function(e){jQuery(".loading").removeClass("loading"),0<jQuery(".woocommerce-categories-slider").length&&jQuery(".woocommerce-categories-slider").removeClass("loading");e=jQuery.parseHTML(e);jQuery("#content").html(jQuery(e).find("#content").html()),jQuery(".owl-carousel.owl-carousel-options").each(function(){var e=jQuery(this),e=e.attr("data-owl_options")?e.data("owl_options"):{};e.navElement="div",e.rtl=!!jQuery("body").hasClass("rtl"),jQuery(this).owlCarousel(e)}),k(),V(),jQuery(document.body).trigger("init_price_filter"),jQuery().selectWoo&&0<jQuery(".woocommerce-widget-layered-nav-dropdown").length&&jQuery("select.woocommerce-widget-layered-nav-dropdown").selectWoo()}),jQuery(document.body).trigger("cs_shop_ajax_after_content_load")}),w(document).on("submit",".woocommerce-product-search",function(e){e.preventDefault(e);e=jQuery(this).find(".search-field").val(),e=U(window.location.href,"s",e);w(document.body).trigger("cs_shop_ajax_filter",[e,!1])}),w(document).on("click",".woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a, .pgs-woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a, .ciyashop-clear-filters, .widget_layered_nav_filters ul li a, .widget_product_categories ul li a, .widget_rating_filter ul li a, .woocommerce-categories-slider .item a, .ciyashop-products-per-page .per-page-variation",function(e){e.preventDefault(e);e=w(this).attr("href");w(document.body).trigger("cs_shop_ajax_filter",[e,!1])}),w(document).on("click",".woocommerce-pagination ul li a",function(e){e.preventDefault(e);e=w(this).attr("href");w(document.body).trigger("cs_shop_ajax_filter",[e,!0])}),w(document).on("change","select.woocommerce-widget-layered-nav-dropdown",function(e){var t=jQuery(this).val();jQuery(':input[name^="filter_"]').val(t),jQuery(this).attr("multiple")||jQuery(this).closest("form").submit()}),w(document).on("submit",".woocommerce-ordering",function(e){e.preventDefault()}),w(document).on("submit",".loop-header-filters-form",function(e){e.preventDefault()}),w(document).on("change",".woocommerce-ordering .orderby",function(e){e.preventDefault();e=jQuery(this).val(),e=U(window.location.href,"orderby",e);w(document.body).trigger("cs_shop_ajax_filter",[e,!1])}),w(document).on("change",".dropdown_layered_nav_taxonomy_filter, .shop-filter #shop-filter-search, .shop-filter .dropdown_product_cat, .
1shop-filter .dropdown_layered_nav_rating",function(e){e.preventDefault();var e=(e=jQuery(this).attr("data-filter-name"))||jQuery(this).attr("name"),t=jQuery(this).val(),e=U(window.location.href,e,t);w(document.body).trigger("cs_shop_ajax_filter",[e,!1])}),w(document).on("click",".price_slider_wrapper .button",function(e){e.preventDefault();var e=jQuery("#min_price").val(),t=jQuery("#max_price").val(),e=U(window.location.href,"min_price",e),e=U(e,"max_price",t);w(document.body).trigger("cs_shop_ajax_filter",[e,!1])})),jQuery(document).on("click",".cs-wcwl-add-button .add_to_wishlist",function(e){e.preventDefault();var t=jQuery(this),o=t.data("product-id");if(jQuery(this).hasClass("added-wishlist"))return e=jQuery(this).attr("href"),window.location.replace(e),!1;jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"POST",dataType:"json",data:{action:"add_ciyashop_wishlist",product_id:o,ajax_nonce:ciyashop_l10n.ciyashop_nonce},beforeSend:function(){t.addClass("cs-loading")},success:function(e){t.removeClass("cs-loading"),t.addClass("added-wishlist"),jQuery(".post-"+o).find(".cs-wcwl-add-button .add_to_wishlist").each(function(){jQuery(this).hasClass("added-wishlist")||jQuery(this).addClass("added-wishlist")}),e.added?(0<jQuery(t).parents(".product-quick-view").length&&jQuery(t).parents(".cs-wcwl-add-button").append('<span class="feedback">'+ciyashop_l10n.product_added_text+"</span>"),jQuery(".ciyashop-wishlist-count").html(e.count),jQuery(".product-added").show(),jQuery(".product-added").fadeTo(200,1),setTimeout(function(){jQuery(".product-added").fadeTo(200,0)},1700)):(0<jQuery(t).parents(".product-quick-view").length&&jQuery(t).parents(".cs-wcwl-add-button").append('<span class="feedback">'+ciyashop_l10n.already_in_wishlist_text+"</span>"),jQuery(".already-in-wishlist").show(),jQuery(".already-in-wishlist").fadeTo(200,1),setTimeout(function(){jQuery(".already-in-wishlist").fadeTo(200,0)},1700)),t.closest(".product-action-wishlist").attr("data-original-title",ciyashop_l10n.browse_wishlist),t.find("span").html(ciyashop_l10n.browse_wishlist)}})}),jQuery(document).on("click",".cs-remove-wishlist",function(e){e.preventDefault();var t=jQuery(this),e=t.data("product-id");jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"POST",dataType:"json",data:{action:"remove_ciyashop_wishlist",product_id:e,ajax_nonce:ciyashop_l10n.ciyashop_nonce},beforeSend:function(){jQuery(".wishlist_table").addClass("cs-loading")},success:function(e){jQuery(".ciyashop-wishlist-count").html(e),t.closest(".cs-wcwl-row").addClass("remove-wishlist"),t.closest(".cs-wcwl-row").fadeOut(),e<=0&&jQuery(".wishlist-empty").removeClass("d-none")}}).done(function(){jQuery(".wishlist_table").removeClass("cs-loading"),jQuery(".remove-wishlist").remove()})}),jQuery(document).on("click",".ciyashop-compare",function(e){e.preventDefault();var t=jQuery(this),e=t.data("product-id"),o=t.data("product-action"),e={action:"ciyashop_get_compare",product_id:e,ajax_nonce:ciyashop_l10n.ciyashop_nonce};o&&(e.product_action=o),jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"POST",data:e,beforeSend:function(){t.addClass("cs-loading")},success:function(e){t.removeClass("cs-loading"),jQuery("#cs-comparelist").html(e),jQuery("#cs-comparelist").show(),jQuery("#cs-comparelist").hasClass("popup-open")||jQuery("#cs-comparelist").addClass("popup-open"),0<jQuery(".cs-compare-list-content .cs-product-list-column").length&&(jQuery(".cs-compare-list-wrapper").removeClass("d-none"),jQuery(".cs-woocompare-popup-content .compare-empty-text").addClass("d-none"),$(),576<=w(window).width()&&jQuery(".cs-compare-list-content").sortable({cursor:"move"}))}})}),jQuery(document).on("click","#cs-compare-popup-close",function(e){e.preventDefault(),jQuery("#cs-comparelist").removeClass("popup-open"),jQuery("#cs-comparelist").hide()}),jQuery(document).on("click",".cs-product-compare-remove",function(e){e.preventDefault();var t=jQuery(this),e={action:"ciyashop_remove_compare_product",product_id:jQuery(this).attr("data-product_id"),ajax_nonce:ciyashop_l10n.ciyashop_nonce};jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"POST",dataType:"json",data:e,beforeSend:function(){t.parents(".cs-product-list-column").addClass("cs-loading")},success:function(e){t.parents(".cs-product-list-column").fadeOut("slow",function(){w(this).remove(),jQuery(".cs-compare-list-content .cs-product-list-column").length?$():(jQuery(".cs-compare-list-wrapper").addClass("d-none"),jQuery(".cs-woocompare-popup-content .compare-empty-text").removeClass("d-none"))})}})}),jQuery(document).on("click",".quantity .quantity-up",function(e){var t=w(this).parents(".quantity").find("input.qty"),o=(o=t.attr("max"))||999999,a=parseFloat(t.val());isNaN(a)&&(a=0),t.val(o<=a?a:a+1),t.trigger("change")}),jQuery(document).on("click",".quantity .quantity-down",function(e){var t=w(this).parents(".quantity").find('input[type="number"]'),o=t.attr("min"),a=parseFloat(t.val());isNaN(a)&&(a=0),t.val(a<=o?a:a-1),t.trigger("change")}),jQuery("body").hasClass("device-type-mobile")&&w(".products .product").on("click",function(e){var o=w(this).find(".add_to_cart_button").data("product_id");w(".products .product").each(function(e){var t=w(this).find(".add_to_cart_button").data("product_id");o===t&&void 0!==this.touched||(this.touched=!1)}),jQuery("body").hasClass("hover-effect-mobile-disabled")||(!1===this.touched&&(e.stopPropagation(),e.preventDefault()),!0===this.touched?(this.touched=!1,e.returnValue=!0,w(this).click()):this.touched=!0)}),w(document).on("click","ul.pgs_megamenu-enable > li.pgs-menu-item-open-on-click > a",function(e){w(this).parent(".pgs-menu-item-open-on-click").hasClass("pgs-menu-item-link-enable")&&(!w(this).parent(".pgs-menu-item-open-on-click").hasClass("pgs-menu-item-link-enable")||w(this).parent(".pgs-menu-item-open-on-click").hasClass("pgs-menu-item-clicked"))||(e.preventDefault(),w(this).parent(".pgs-menu-item-open-on-click").hasClass("pgs-menu-item-clicked")?
1w(this).parent(".pgs-menu-item-open-on-click").removeClass("pgs-menu-item-clicked"):(w(".pgs-menu-item-open-on-click").removeClass("pgs-menu-item-clicked"),w(this).parent(".pgs-menu-item-open-on-click").addClass("pgs-menu-item-clicked")))}),w(document).click(function(e){e=e.target;w(e).parents().is(".pgs-menu-item-open-on-click")||w("ul.pgs_megamenu-enable > li.pgs-menu-item-open-on-click").hasClass("pgs-menu-item-clicked")&&w("ul.pgs_megamenu-enable > li.pgs-menu-item-open-on-click").removeClass("pgs-menu-item-clicked")}),W(),V(),w("body").bind("wc_fragments_refreshed wc_fragments_loaded",function(){I(),W()}),setTimeout(function(){0<w(".ciyashop-promo-popup").length&&("shown"==Cookies.get("woocommerce_popup")||0==ciyashop_l10n.main_promopopup||w(window).width()<768&&1==ciyashop_l10n.promopopup_hide_mobile||w.magnificPopup.open({items:{src:".ciyashop-promo-popup",type:"inline"},removalDelay:400,callbacks:{beforeOpen:function(){this.st.mainClass="ciyashop-popup-effect"},close:function(){var e=w("input[id='hide_promo_popup']:checked").length;w("#hide_promo_popup").length&&!e||Cookies.set("woocommerce_popup","shown",{expires:7,path:"/"})}}}))},1e3),O(),jQuery(document).bind("click",function(e){w(e.target).parents().andSelf().is("input.search-form")||(jQuery("ul.search_form-autocomplete .ui-menu-item").remove(),jQuery(".ciyashop-auto-compalte-default").addClass("ciyashop-empty"))}),w("input.search-form").keyup(function(){jQuery(this).val().length<1&&(jQuery(".ciyashop-auto-compalte-default ul").empty(),jQuery(".ciyashop-auto-compalte-default").addClass("ciyashop-empty"))}),w(".mfp-popup-link").each(function(){var e=w(this),t=e.attr("data-mfp_options")?e.data("mfp_options"):{};w(e).magnificPopup(t)}),w(".pgs-qrcode-popup-link").magnificPopup({type:"image",mainClass:"mfp-pgs-qrcode",image:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><div class="mfp-pgs-qrcode-img"><img class="mfp-img"></div></div>'}}),q(),0<w(".pgs-sizeguide-popup").length&&w(".pgs-sizeguide-popup").magnificPopup({type:"inline",midClick:!0,mainClass:"mfp-fade"}),w(".progress-bar").length&&(P(),jQuery(window).scroll(function(){P()})),w(".counter-number").length&&(F(),jQuery(window).scroll(function(){F()}));var a=document.getElementById("header-sticky"),s=document.getElementById("masthead"),i=0,n=w("#wpadminbar");function t(){if(a){if("desktop"==ciyashop_l10n.device_type&&"1"==ciyashop_l10n.sticky_header||"mobile"==ciyashop_l10n.device_type&&"1"==ciyashop_l10n.sticky_header_mobile){if("1"==ciyashop_l10n.sticky_header&&"desktop"==ciyashop_l10n.device_type&&"0"==ciyashop_l10n.sticky_header_mobile&&w(window).width()<=992)return;w("body").hasClass("admin-bar")&&0<n.length&&(i="fixed"==n.css("position")?w("#wpadminbar").outerHeight():0);var e=jQuery(window).scrollTop(),t=s.offsetTop+s.offsetHeight,o=w(".header-sticky-inner").outerHeight();t<e?(a.style.position="fixed",a.style.top=i+"px",a.style.display="block",a.style.width=screen.width+"px",a.style.height=o+"px",a.classList.add("is-sticky")):(a.style.position=null,a.style.top=null,a.style.display="none",a.style.height=null,a.style.width=null,a.classList.remove("is-sticky"))}W()}}w(document).ready(function(){t()}),window.onscroll=function(){t()},w(window).on("resize",function(e){t()}),0<w(".header-style-custom").length&&N(),w(window).on("resize",function(e){0<w(".header-style-custom").length&&N(),B(),H()}),w(window).on("scroll",function(){0<w(".header-style-custom").length&&N(),B(),H()}),k(),C();var o,r,e,c,l,d=w("#site-navigation-sticky"),u=0<w("#mega-menu-wrap-primary").length?w("#mega-menu-wrap-primary"):w("#primary-menu"),u=w(u).clone(),d=(w(d).append(u),w("#site-navigation-sticky-mobile").hasClass("sidemnu")?(w(".cs-menu-nav .menu-item-has-children > a").append('<span class="sub-menu-icon sub-menu-open-icon"></span>'),w(document).on("click",".sub-menu-icon",function(e){e.preventDefault(),w(this).closest(".menu-item").hasClass("menu-opend")?(w(this).closest(".menu-item").removeClass("menu-opend").find("> ul").slideUp(300),w(this).removeClass("sub-menu-close-icon").addClass("sub-menu-open-icon")):(w(this).closest(".menu-item").addClass("menu-opend").find(">
1 ul").slideDown(300),w(this).removeClass("sub-menu-open-icon").addClass("sub-menu-close-icon"))}),w(document).on("click",".ciyashop-sidemenu-overlay",function(e){e.preventDefault(),w(this).removeClass("side-menu-open"),w(".ciyashop-side-menu-mobile-container").removeClass("side-menu-open")}),w(document).on("click",".ciyashop-mobile-nav-tabs-container .mobile-tab",function(e){w(".ciyashop-mobile-nav-tabs-container .mobile-tab").removeClass("active"),w(this).addClass("active");var t=w(this).attr("data-menu-tab");w(".ciyashop-mm-tab-content").each(function(e){w(this).hasClass("d-none")||w(this).addClass("d-none")}),w("#"+t).removeClass("d-none")}),w(document).on("click","#site-navigation-sticky-mobile",function(e){w(".ciyashop-side-menu-mobile-container").hasClass("side-menu-open")?w(".ciyashop-side-menu-mobile-container").removeClass("side-menu-open"):w(".ciyashop-side-menu-mobile-container").addClass("side-menu-open"),w(".ciyashop-sidemenu-overlay").hasClass("side-menu-open")?w(".ciyashop-sidemenu-overlay").removeClass("side-menu-open"):w(".ciyashop-sidemenu-overlay").addClass("side-menu-open")})):(w("#site-navigation-mobile").slicknav({label:"",appendTo:"#site-navigation-sticky-mobile",allowParentLinks:!0,closedSymbol:"&#43;",openedSymbol:"&#45;",init:function(){var e=w("#site-navigation-sticky-mobile").find(".slicknav_btn");w(e).hasClass("slicknav_collapsed")?w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-closed"):w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-opened")},afterOpen:function(e){w(e).hasClass("slicknav_collapsed")?w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-closed"):w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-opened")},afterClose:function(e){w(e).hasClass("slicknav_collapsed")?w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-closed"):w(".mobile-menu-trigger").removeClass("mobile-menu-trigger-closed mobile-menu-trigger-opened").addClass("mobile-menu-trigger-opened")}}),w(document).on("click",".mobile-menu-trigger",function(e){e.stopPropagation(),w("#site-navigation-mobile").slicknav("toggle")})),w(".primary-menu")),u=w(".primary-menu-mobile"),p=((0<d.length||0<u.length)&&((d=window.location.href.split("#"))[1]&&null!=document.querySelector("#"+d[1])&&document.querySelector("#"+d[1]).scrollIntoView(),w("ul.primary-menu li a, ul.primary-menu-mobile li a").each(function(e){this.addEventListener("click",M)}),w(document).on("scroll",R)),w(document).on("click",function(e){e.stopPropagation(),w(e.target).is(".mobile-search-trigger, .mobile-search-trigger > i, .search-button-wrap > .search-element-mobile-view > .mobile-search-button > i")?(0<w(".header-style-custom").length?w(e.target).parents(".header-element-item").find(".mobile-search-wrap"):w(".mobile-search-wrap")).toggleClass("active"):w(e.target).is(".mobile-search-wrap, .mobile-search-wrap *")||w(".mobile-search-wrap").hasClass("active")&&w(".mobile-search-wrap").removeClass("active")}),w(".inline_hover").on("mouseenter",function(){var o,a=w(this),e=w(this).attr("data-trigger_ele"),t="";void 0!==e&&!1!==e&&(t=(o=a.find("."+e)).data("hover_styles"),w.each(t,function(e,t){null!=o.css(e)?o.data("prehover_"+e,o.css(e)):o.data("prehover_"+e,"remove"),o.css(e,t)})),t=a.data("hover_styles"),w.each(t,function(e,t){null!=a.css(e)?a.data("prehover_"+e,a.css(e)):a.data("prehover_"+e,"remove"),a.css(e,t)})}),w(".inline_hover").on("mouseleave",function(){var o,e,a=w(this),t=w(this).attr("data-trigger_ele"),t=(void 0!==t&&!1!==t&&(e=(o=a.find("."+t)).data("hover_styles"),w.each(e,function(e,t){o.css(e,"")})),e=a.data("hover_styles"),w.each(e,function(e,t){"remove"!=a.data("prehover_"+e)?a.css(e,a.data("prehover_"+e)):a.css(e,"")}),a.data("prehover_style"));w.each(t,function(e,t){a.css(e,t)})}),"accepted"!=Cookies.get("ciyashop_cookies")&&w(".ciyashop-cookies-info").show(),w(".ciyashop-cookies-info").on("click",".cookies-info-accept-btn",function(e){e.preventDefault(),p()}),function(){w(".ciyashop-cookies-info").hide(),Cookies.set("ciyashop_cookies","accepted",{expires:60,path:"/"})});function h(){var i=1;jQuery(window).scroll(function(){var e,t,o,a,s;0<w(".product-infinite_scroll").length&&0<w(".product-more-button a").length&&(e=w(".product-more-button a"),t=Math.round(e.offset().top),o=e.height(),a=w(window).height()+w(window).scrollTop(),s=e.data("current_page"),t+o<a&&setTimeout(function(){s!=i||e.hasClass("content-loading")||(i++,e.trigger("click"))},200))})}jQuery(document).on("click",".product-more-button a",function(e){e.preventDefault();var i=this,e=w(this).data("next_link");w(this).data("max_pages"),w(this).data("current_page"),w(this).data("next_page");w(i).hasClass("disabled")||w.ajax({url:e,beforeSend:function(e){w(i).html(ciyashop_l10n.loading),w(i).addClass("content-loading")}}).done(function(e){w(i).removeClass("content-loading");var e=w(e),t=e.find(".product-more-button").html(),e=e.find("ul.products-loop"),o=w(t).data("next_link"),a=w(t).data("max_pages"),s=w(t).data("next_page"),t=w(t).data("current_page");t<a?(w(i).html(ciyashop_l10n.load_more),w(i).data("next_link",o),w(i).data("max_pages",a),w(i).data("next_page",s),w(i).data("current_page",t)):w(i).html(ciyashop_l10n.no_more_product_to_load).addClass("disabled"),w("li.product").last().after(e.html()),L(),E()})}),h(),w(document.body).on("cs_shop_ajax_after_content_load",function(e,t,o){h()}),w(document).on("click",".open-quick-view",function(e){e.preventDefault();var e=w(this).data("id"),t=w(this),e=(t.addClass("loading"),{id:e,action:"ciyashop_quick_view",lang:ciyash
1op_l10n.lang,ajax_nonce:ciyashop_l10n.ciyashop_nonce});w.ajax({url:ciyashop_l10n.ajax_url,data:e,method:"get",success:function(e){w.magnificPopup.open({items:{src:'<div class="mfp-with-anim ciyashop-popup ciyashop-popup-quick-view">'+e+"</div>",type:"inline"},removalDelay:500,callbacks:{beforeOpen:function(){},open:function(){w(".quantity").trigger("init"),0<w(".variations_form").length&&(w(".product-quick-view .variations_form").wc_variation_form(),w(document).on("change",".variations_form",function(){var e=w(".variations_form").data("product_variations"),t=w(".variations_form").find(".single_variation_wrap"),e=(w(t).find('.variations_button input[name="variation_id"]').val(),e.filter(function(e){return e.variation_id==(""!=(e=w(t).find('.variations_button input[name="variation_id"]').val())&&e)}));void 0===e[0]&&!e[0]||(e[0]&&e[0].image&&e[0].image.src&&1<e[0].image.src.length&&w("img#product-zoom").attr("src",e[0].image.url),w(document).on("click",".reset_variations",function(){w("img#product-zoom").attr("src",w("img#product-zoom").attr("data-zoom-image"))}))}))}}})},complete:function(){I(),t.removeClass("loading"),E()},error:function(){}})}),w(document.body).on("added_to_cart",function(){0!=w(".after_add_to_cart_message-wrapper").length&&w.magnificPopup.open({items:{removalDelay:500,src:"#after_add_to_cart_message-popup",type:"inline"}}),0<w(".ciyashop-popup-quick-view .mfp-close").length&&w(".ciyashop-popup-quick-view .mfp-close").trigger("click"),0<w("#cs-comparelist").length&&(jQuery("#cs-comparelist").removeClass("popup-open"),jQuery("#cs-comparelist").hide()),0!=w(".after_add_to_cart_message-wrapper").length&&w(".after_add_to_cart_message-wrapper").addClass("side_cart-show"),0!=w(".side_shopping_cart-wrapper").length&&(w(".side_shopping_cart-overlay").addClass("side_cart-show"),w(".side_shopping_cart-wrapper").addClass("side_shopping_cart-show"))}),w(".close-popup").on("click",function(e){e.preventDefault(),w.magnificPopup.close()}),w(".close-side_shopping_cart").on("click",function(){w(".after_add_to_cart_message-wrapper").hasClass("side_cart-show")&&w(".after_add_to_cart_message-wrapper").removeClass("side_cart-show")}),w(document).on("change input",".woocommerce-mini-cart .quantity .qty",function(){var e=w(this),t=e.val(),i=e.parents(".woocommerce-mini-cart-item").attr("data-cart_item_key");ciyashop_l10n.cart_hash_key,ciyashop_l10n.fragment_name;clearTimeout(o),o=setTimeout(function(){e.parents(".mini_cart_item").addClass("cs-loading"),w.ajax({url:ciyashop_l10n.ajax_url,dataType:"json",method:"GET",data:{action:"ciyashop_update_cart_item_details",item_id:i,qty:t,ajax_nonce:ciyashop_l10n.ciyashop_nonce},success:function(s){s.fragments&&w.each(s.fragments,function(e,t){var o,a;w(e).hasClass("widget_shopping_cart_content")&&(o=w(t).find('.woocommerce-mini-cart-item[data-cart_item_key="'+i+'"]'),a=w(t).find(".woocommerce-mini-cart__total"),s.cart_hash)?(w(e).find('.woocommerce-mini-cart-item[data-cart_item_key="'+i+'"]').replaceWith(o),w(".woocommerce-mini-cart__total").replaceWith(a)):w(e).replaceWith(t)})},complete:function(){I()}})},600)}),w(document).on("click",".product-action a.compare, .product-summary-actions a.compare, .yith-wcwl-add-button .add_to_wishlist",function(e){w(this).addClass("cs-loading")}),w(document).ajaxComplete(function(){w(".product-action a.compare, .product-summary-actions a.compare").each(function(){w(this).hasClass("added")&&w(this).removeClass("cs-loading")}),w(".yith-wcwl-add-button").each(function(){w(this).hasClass("hide")&&w(this).find(".cs-loading").removeClass("cs-loading")}),w(".DTFC_LeftBodyLiner").empty(),w(".DTFC_Cloned").empty()}),w(document).on("click","#cboxClose, #cboxOverlay",function(e){setTimeout(function(){W()},500)}),"undefined"!=typeof wc_cart_fragments_params&&(r={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",success:function(e){e&&e.fragments&&(jQuery.each(e.fragments,function(e,t){jQuery(e).replaceWith(t)}),jQuery(document.body).trigger("wc_fragments_refreshed"))}},jQuery(document).on("submit","form.cart",function(e){var t;0<w(this).parents(".ciyashop-popup-quick-view").length&&(e.preventDefault(),jQuery(".single_add_to_cart_button").block({message:null,overlayCSS:{curs
1or:"none"}}),e=(e=-1<(e=window.location.toString()).indexOf("?")?e.substring(0,e.indexOf("?")):e)+"/?add-to-cart="+jQuery(".single_add_to_cart_button").val(),t=jQuery(this),jQuery.post(e,t.serialize()+"&_wp_http_referer="+e,function(e){jQuery.ajax(r),jQuery(".single_add_to_cart_button").unblock()}))})),w(document.body).on("adding_to_cart",function(){w("body").hasClass("scroll_to_cart-on")&&0!=w(".woo-tools-action.woo-tools-cart").length&&0==w(".after_add_to_cart_message-wrapper").length&&0==w(".side_shopping_cart-wrapper").length&&(w("body,html").animate({scrollTop:0},1e3),w(".woo-tools-action.woo-tools-cart").addClass("woo-tools-cart-show"))}),w(".close-side_shopping_cart").on("click",function(e){e.preventDefault(),w(".side_shopping_cart-wrapper").hasClass("side_shopping_cart-show")&&(w(".side_shopping_cart-wrapper").removeClass("side_shopping_cart-show"),w("div.side_shopping_cart-overlay").removeClass("side_cart-show"))}),w(document.body).on("added_to_cart",function(){w(document.body).hasClass("scroll_to_cart-on")&&0!=w(".woo-tools-action.woo-tools-cart").length&&0==w(".after_add_to_cart_message-wrapper").length&&0==w(".side_shopping_cart-wrapper").length&&setTimeout(function(){w(".woo-tools-action.woo-tools-cart").removeClass("woo-tools-cart-show")},3500)}),w(document).on("click",".woo-tools-compare > a",function(e){e.preventDefault();e=this.href;void 0!==e&&w("body").trigger("yith_woocompare_open_popup",{response:e,button:w(this)})}),w(document).scroll(function(){var e,t,o,a;0<w(".product_title.entry-title").length&&768<=w(window).width()&&0<w("#woo-product-sticky-content").length&&(a=w("#wpadminbar"),w(window).height(),e=w(".product_title.entry-title").offset().top,t=document.getElementById("woo-product-sticky-content"),o=10,w("#header-sticky").is(":visible")&&(o+=w("#header-sticky").outerHeight()),w(".desktop-sticky-on").each(function(){o+=w(this).outerHeight()}),w("body").hasClass("admin-bar")&&0<a.length&&"fixed"==a.css("position")&&(o+=w("#wpadminbar").outerHeight()),e<(a=w(this).scrollTop())?(t.style.position="fixed",t.style.top=o+"px",t.style.display="block",t.classList.add("is-sticky")):a<e&&(t.style.position=null,t.style.top=null,t.style.display="none",t.classList.remove("is-sticky")))}),0<w(".ciyashop-product-images-wrapper").length&&(w(".ciyashop-product-images-wrapper").hasClass("ciyashop-gallery-style-wide_gallery")?w(".ciyashop-product-gallery__wrapper").slick({arrows:!0,centerMode:!1,dots:!1,draggable:!0,focusOnSelect:!0,infinite:!1,respondTo:"slider",slidesToShow:3,slidesToScroll:1,swipeToSlide:!0,touchMove:!0,rtl:!!jQuery("body").hasClass("rtl")}):0<w(".ciyashop-product-gallery__wrapper").length&&0<w(".ciyashop-product-thumbnails__wrapper").length&&(u=w(".ciyashop-product-gallery__wrapper"),e=w(".ciyashop-product-thumbnails__wrapper"),c=!!w(".ciyashop-product-images-wrapper").hasClass("ciyashop-gallery-thumb_vh-vertical"),w(window).width()<768&&(c=!1),u.slick({arrows:!1,asNavFor:".ciyashop-product-thumbnails__wrapper",centerMode:!1,dots:!1,draggable:!0,focusOnSelect:!0,infinite:!1,respondTo:"slider",slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,touchMove:!0,rtl:!!jQuery("body").hasClass("rtl")}),setTimeout(function(){e.slick({arrows:!0,asNavFor:".ciyashop-product-gallery__wrapper",centerMode:!1,dots:!1,draggable:!0,focusOnSelect:!0,infinite:!1,respondTo:"slider",slidesToShow:4,slidesToScroll:1,swipeToSlide:!0,touchMove:!0,vertical:c,verticalSwiping:c,rtl:!!jQuery("body").hasClass("rtl")})},200))),0<w("body.single-product .product.type-product").length&&w("body.single-product .product.type-product").hasClass("product_page_style-sticky_gallery")&&(l=!1,jQuery(window).on("scroll",function(){var e=jQuery("#header-sticky.is-sticky").is(":visible");l!=e&&(l=e,jQuery("#header-sticky.is-sticky").is(":visible")?(e=0,e=jQuery("#header-sticky.is-sticky").outerHeight()+(e=w("body").hasClass("admin-bar")&&0<w("#wpadminbar").length?w("#wpadminbar").outerHeight():e)+15,w(".product-top-left-inner.sticky-top").addClass("product-top-left-sticky").css("top",e)):w(".product-top-left-inner.sticky-top").removeClass("product-top-left-sticky").css("top",""))})),w(document.body).on("updated_cart_totals",function(){I()}),0!=w(".related.products").length&&w(".related.products > .products-loop").owlCarousel({items:4,loop:!1,margin:15,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!1,nav:!0,smartSpeed:1e3,navText:["<i class='fas fa-angle-left fa-2x'></i>","<i class='fas fa-angle-right fa-2x'></i>"],responsive:{0:{items:1},767:{items:2},992:{items:4}},rtl:!!jQuery("body").hasClass("rtl")}),0!=w(".up-sells.upsells.products").length&&w(".up-sells.upsells.products > .products-loop").owlCarousel({items:4,loop:!1,margin:15,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!1,nav:!0,smartSpeed:1e3,navText:["<i class='fas fa-angle-left fa-2x'></i>","<i class='fas fa-angle-right fa-2x'></i>"],responsive:{0:{items:1},767:{items:2},992:{items:4}},rtl:!!jQuery("body").hasClass("rtl")}),0!=w(".cross-sells .products.products-loop").length&&w(".cross-sells .products.products-loop").owlCarousel({items:3,loop:!1,margin:15,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!1,nav:!0,smartSpeed:1e3,navText:["<i class='fas fa-angle-left fa-2x'></i>","<i class='fas fa-angle-right fa-2x'></i>"],responsive:{0:{items:1},767:{items:2},992:{items:4}},rtl:!!jQuery("body").hasClass("rtl")}),w(document).on("click",".gridlist-button-wrap .gridlist-toggle > a",function(e){e.preventDefault();var t="",o=(w(this).is("[data-grid]")&&(t=w(this).data("grid").column),[]),a=[];w(".gridlist-button-wrap .gridlist-toggle > a").each(function(e,t){w(this).is("[data-grid]")&&a.push(w(this).data("grid").column),w(this).hasClass("active")&&w(this).removeClass("active")}),o=w("ul.products").attr("class").toString().split(" "),w.each(a,function(e,t){-1<o.indexOf("products-loop-column-"+t)&&w("ul.products").removeClass("products-loop-column-"+t)}),t?(t=w(this).data("grid").column,w("ul.products").hasClass("list")&&w("ul.products").removeClass("list"),w("ul.products").addClass("grid"),w("ul.products").fadeOut(300,function(){L(),w(this).addClass("products-loop-column-"+t).removeClass("list").fadeIn(300),Cookies.set("gridlist_view","products-loop-column-"+t,{path:"/"})}),w(this).addClass("active")):w(this).hasClass("gridlist-toggle-list")&&(w("ul.products").hasClass("grid")&&w("ul.products").removeClass("grid"),w(this).addClass("active"),w("ul.products").fadeOut(300,function(){L(),w("ul.products").addClass("list").fadeIn(300),Cookies.set("gridlist_view","list",{path:"/"})}))}),w(document).on("click",".ciyashop-show-shop-btn",function(e){e.preventDefault();e=w(".sidebar-widget-heading").parents(".sidebar");e.hasClass("ciyashop_shop_sidebar-open")?(e.removeClass("ciyashop_shop_sidebar-open"),w(".shop-sidebar-widgets-overlay").hasClass("shop_sidebar_widgets-show")&&w(".shop-sidebar-widgets-overlay").removeClass("shop_sidebar_widgets-show")):(e.addClass("ciyashop_shop_sidebar-open"),w(".shop-sidebar-widgets-overlay").hasClass("shop_sidebar_widgets-show")||w(".shop-sidebar-widgets-overlay").addClass("shop_sidebar_widgets-show"),w(".ciyashop_shop_sidebar-open").nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"shop-sidebar-widgets"}))}),w(document).on("click",".sidebar-widget-heading",function(e){e.preventDefault();e=w(this).parents(".sidebar");e.hasClass("ciyashop_shop_sidebar-open")&&(e.removeClass("ciyashop_shop_sidebar-open"),w(".shop-sidebar-widgets-overlay").removeClass("shop_sidebar_widgets-show"),w(".shop-sidebar-widgets-overlay").hasClass("shop_sidebar_widgets-show")&&w(".shop-sidebar-widgets-overlay").removeClass("shop_sidebar_widgets-show"))}),w(document).on("click",".shop-sidebar-widgets-overlay",function(e){e.preventDefault(),w(this).hasClass("shop_sidebar_widgets-show")&&(w(this).next("aside").removeClass("ciyashop_shop_sidebar-open"),w(".shop-sidebar-widgets-overlay").removeClass("shop_sidebar_widgets-show"),w(".shop-sidebar-widgets-overlay").hasClass("shop_sidebar_widgets-show")&&w(".shop-sidebar-widgets-overlay").removeClass("shop_sidebar_widgets-show"))}),w(".shop_filter_hide_show-btn").change(function(){this.checked?(Cookie
1s.set("shop_filter_hide_show","shown",{expires:7,path:"/"}),w("div.loop-header-filters").slideDown(),w(this).addClass("pgs-shop-filter-visible")):(Cookies.remove("shop_filter_hide_show"),w("div.loop-header-filters").slideUp(),w(this).addClass("pgs-shop-filter-hide")),0<w(".pgs-woocommerce-widget-layered-nav-list-container").length&&0<w(".pgs-woocommerce-widget-layered-nav-list-container").length&&w(".pgs-woocommerce-widget-layered-nav-list-container").nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"pgs-woocommerce-widget-layered-nav-list"})}),0<w(".product-video-popup-link-html5_old").length&&w(".product-video-popup-link-html5_old").each(function(){var e=w(this);w(e).magnificPopup({type:"inline",midClick:!0})});var m,y,f,g,d=w(".product-video-popup-link-html5"),u=(0<d.length&&d.each(function(){var e=w(this);w(e).magnificPopup({type:"iframe",mainClass:"mfp-fade product-video-popup",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src"}})}),w(".product-video-popup-link-oembed")),_=(0<u.length&&u.each(function(){var e=w(this);w(e).magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade product-video-popup",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{patterns:{youtube:{index:"youtube.com/",id:function(e){e=e.match(/[\\?\\&]v=([^\\?\\&]+)/);return e&&e[1]?e[1]:null},src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},youtu:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},vimeo:{index:"vimeo.com/",id:function(e){e=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);return e&&e[5]?e[5]:null},src:"//player.vimeo.com/video/%id%?autoplay=1"}}}})}),jQuery('[data-toggle="tooltip"]').tooltip(),w(document).on("click",".swatches-select a.ciyashop-swatch",function(){var e=w(this).parents(".ciyashop-swatches").find("select#"+w(this).attr("data-cs_parent").replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&")+' option[value="'+w(this).attr("data-value")+'"]'),t=w(this).attr("data-cs_parent").replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&");w(this).parents(".ciyashop-swatches").find("select#"+t).val(w(e).val()).change(),w(this).parent(".swatches-select").find(".cs-attr-selected").removeClass("cs-attr-selected"),w(this).addClass("cs-attr-selected"),w(this).parent().addClass("cs-selected"),w(".cs-disabled").removeClass("cs-disabled"),w(".swatches-select").each(function(){var e,t;w(this).hasClass("cs-selected")||(e=new Array,t=w(this).next("select"),w(t).find("option").each(function(){0<w(this).val().length&&e.push(w(this).val())}),w(this).find("a.ciyashop-swatch").each(function(){-1==jQuery.inArray(w(this).data("value"),e)&&w(this).addClass("cs-disabled")}))}),w(this).parent().removeClass("cs-selected"),w(this).parents("form.variations_form").addClass("ciyashop-variation-selected")}),w(document).on("change","table.variations td.value select",function(){w(this).val().length&&w(this).parents("form.variations_form").addClass("ciyashop-variation-selected")}),w(document).on("click","a.product_type_variable.add_to_cart_button",function(e){var t,o,a,s;w(this).parents(".product-inner").find(".ciyashop-product-variations-wrapper").length&&(e.preventDefault(),t=w(this),o=t.parents(".product").first(),e=(a=o.find(".ciyashop-product-variations-wrapper")).data("id"),t.hasClass(s="cs-loading")||(o.hasClass("variations-loaded")?(o.addClass("variations-shown"),a.fadeIn(500)):w.ajax({url:ciyashop_l10n.ajax_url,data:{action:"ciyashop_load_variations",id:e,lang:ciyashop_l10n.lang,ajax_nonce:ciyashop_l10n.ciyashop_nonce},beforeSend:function(){t.addClass(s),o.addClass("loading-variations")},method:"post",success:function(e){a.find(".ciyashop-variations-form").append(e),o.find(".variations_form").wc_variation_form().find(".variations select:eq(0)").change(),o.find(".variations_form").trigger("wc_variation_form")},complete:function(){I(),w('[data-toggle="tooltip"]').tooltip(),t.removeClass(s),o.removeClass("loading-variations"),o.addClass("variations-shown variations-loaded")},error:function(){}})))}),w(document.body).on("submit","form.cart",function(e){var a;w(document.body).hasClass("cs-ajax-add-to-cart")&&!w(this).closest(".product").hasClass("product-type-external")&&(e.preventDefault(),e=w(this),a=e.find(".single_add_to_cart_button"),e=e.serialize(),e=(e+="&action=ciyashop_ajax_add_to_cart_action")+"&ajax_nonce="+ciyashop_l10n.ciyashop_nonce,a.val()&&(e+="&add-to-cart="+a.val()),a.addClass("loading"),w(document.body).trigger("adding_to_cart",[a,e]),w.ajax({url:ciyash
1op_l10n.ajax_url,type:"json",data:e,method:"POST",beforeSend:function(){w(".widget_shopping_cart").addClass("cs-loading-cart")},success:function(e){var t,o;e&&(e.error&&e.product_url?window.location=e.product_url:(t=e.fragments,o=e.cart_hash,t&&w.each(t,function(e){w(e).addClass("updating")}),t&&w.each(t,function(e,t){w(e).replaceWith(t)}),void 0!==e.notices&&0<e.notices.indexOf("error")?(w(".woocommerce-notices-wrapper").replaceWith(e.notices),a.addClass("not-added")):(a.addClass("added"),"yes"===wc_add_to_cart_params.cart_redirect_after_add?window.location=wc_add_to_cart_params.cart_url:w(document.body).trigger("added_to_cart",[t,o,a]))))},error:function(){console.log("Error while performing ajax.")},complete:function(){a.removeClass("loading"),w(".reset_variations").trigger("click"),w(".ciyashop-variations-close").trigger("click"),w(".widget_shopping_cart").removeClass("cs-loading-cart")}}))}),w(document).on("click",".reset_variations",function(){w(this).parents("table.variations").find(".cs-attr-selected").removeClass("cs-attr-selected"),w(this).parents("table.variations").find(".cs-disabled").removeClass("cs-disabled"),w(this).parents("form.variations_form").removeClass("ciyashop-variation-selected")}),w(document).on("click",".ciyashop-variations-close",function(){w(this).parent(".ciyashop-product-variations-wrapper").fadeOut(500),w(this).parents(".product").first().removeClass("variations-shown")}),jQuery(document).on("click",".ciyashop-grid-swatch",function(){var e,t,o,a,s,i,n,r,c=jQuery(this).data("image-src"),l=jQuery(this).data("image-srcset"),d=jQuery(this).data("image-sizes");void 0!==c&&(i=(s=(a=jQuery(this).parents(".product-type-variable")).find(".product-thumbnail-main img")).data("original-src"),n=s.data("original-srcset"),r=s.data("original-sizes"),void 0===i&&s.data("original-src",s.attr("src")),void 0===n&&s.data("original-srcset",s.attr("srcset")),void 0===r&&s.data("original-sizes",s.attr("sizes")),jQuery(this).hasClass("cs-attr-selected")?(e=i,t=n,o=r,jQuery(this).removeClass("cs-attr-selected"),a.removeClass("product-swatched")):(jQuery(this).parent().find(".cs-attr-selected").removeClass("cs-attr-selected"),jQuery(this).addClass("cs-attr-selected"),a.addClass("product-swatched"),e=c,t=l,o=d),s.attr("src")!=e&&(a.addClass("cs-loading"),s.attr("src",e).attr("srcset",t).attr("image_sizes",o).one("load",function(){a.removeClass("cs-loading")})))}),Q(),w("ul.products.products-loop li").length&&w("ul.products.products-loop li").each(function(){j(w(this).find(".product-inner"))}),w(document).on("click",".cs-more-btn",function(){w(this).parents(".ciyashop-product-description").removeClass("ciyashop-short-description"),j(w(this).parents(".product-inner"))}),w("body").on("click",".product-summary-actions a.compare, .yith-wcwl-add-button a.add_to_wishlist",function(){w(this).addClass("cs-loading")}),w("body").bind("added_to_wishlist removed_from_wishlist",function(){w.ajax({url:ciyashop_l10n.ajax_url,type:"post",data:{action:"ciyashop_get_wishlist_number",ajax_nonce:ciyashop_l10n.ciyashop_nonce},dataType:"json",success:function(e){w(".ciyashop-wishlist-count").html(e)}})}),w(document.body).on("added_to_cart",function(){w.ajax({url:ciyashop_l10n.ajax_url,type:"post",data:{action:"ciyashop_get_wishlist_number",ajax_nonce:ciyashop_l10n.ciyashop_nonce},dataType:"json",success:function(e){w(".ciyashop-wishlist-count").html(e)}})}),jQuery(".entry-date-bottom a").on("click",function(e){e.preventDefault();var i=this,e=w(this).data("next_link");w(this).data("max_pages"),w(this).data("current_page"),w(this).data("next_page");w(i).hasClass("disabled")||w.ajax({url:e,beforeSend:function(e){w(i).html(ciyashop_l10n.loading)}}).done(function(e){var e=w(e),t=e.find(".entry-date-bottom").html(),e=(e.find(".entry-date").remove(),e.find(".entry-date-bottom").remove(),e.find(".clearfix.timeline-inverted").remove(),e.find("ul.timeline").html()),o=w(t).data("next_link"),a=w(t).data("max_pages"),s=w(t).data("next_page"),t=w(t).data("current_page");t<a?(w(i).html(ciyashop_l10n.load_more),w(i).data("next_link",o),w(i).data("max_pages",a),w(i).data("next_page",s),w(i).data("current_page",t)):w(i).html(ciyashop_l10n.no_more_product_to_load).addClass("disabled"),w("ul.timeline .timeline-item").last().after(e),jQuery(".owl-carousel.owl-carousel-options").each(function(){var e=jQuery(this),e=e.attr("data-owl_options")?e.data("owl_options"):{};e.navElement="div",e.rtl=!!jQuery("body").hasClass("rtl"),jQuery(this).owlCarousel(e)}),E()}).fail(function(){}
1).always(function(){})}),jQuery(".portfolio-more-button a").on("click",function(e){e.preventDefault();var i=this,e=w(this).data("next_link");w(this).data("max_pages"),w(this).data("current_page"),w(this).data("next_page");w(i).hasClass("disabled")||w.ajax({url:e,beforeSend:function(e){w(i).html(ciyashop_l10n.loading),w(i).addClass("content-loading")}}).done(function(e){w(i).removeClass("content-loading");var e=w(e),t=e.find(".portfolio-more-button").html(),e=e.find("div.portfolio-content-area").html(),o=w(t).data("next_link"),a=w(t).data("max_pages"),s=w(t).data("next_page"),t=w(t).data("current_page");t<a?(w(".div.portfolio-content-area").hasClass("portfolio-infinite_scroll")||w(i).html(ciyashop_l10n.load_more),w(i).data("next_link",o),w(i).data("max_pages",a),w(i).data("next_page",s),w(i).data("current_page",t)):w(i).hide(),w("div.portfolio-grid-item").last().after(e),0<w(".isotope-wrapper").length&&setTimeout(function(){x()},200),E()}).fail(function(){}).always(function(){})}),1),v=(w(window).scroll(function(){var e,t,o,a,s;0<w(".portfolio-infinite_scroll").length&&(e=w(".portfolio-more-button a"),a=Math.round(e.offset().top),s=e.height(),t=w(window).height()+w(window).scrollTop(),o=e.data("current_page"),a+s<t&&setTimeout(function(){o!=_||e.hasClass("content-loading")||(_++,e.trigger("click"))},200)),0<w(".wpb_column.sticky-top").length&&(!1!=jQuery("#header-sticky.is-sticky").is(":visible")&&(jQuery("#header-sticky.is-sticky").is(":visible")?(a=0,s=jQuery("#header-sticky.is-sticky").outerHeight()+(a=w("body").hasClass("admin-bar")&&0<w("#wpadminbar").length?w("#wpadminbar").outerHeight():a)+10,w(".wpb_column.sticky-top").css("top",s)):w(".wpb_column.sticky-top").css("top","")))}),jQuery(".tabs_wrapper").each(function(e){var t=jQuery(this);t.find("li[data-tabs]").on("click",function(){var e=jQuery(this).data("tabs");t.find("li[data-tabs]").removeClass("active"),jQuery(this).addClass("active"),t.find(".tabcontent.active").fadeOut().hide().removeClass("active").removeClass("pulse"),jQuery("#"+e).addClass("active").show().fadeIn("slow").addClass("pulse")})}),w(".accordion > .accordion-content").hide());v.first().slideDown("easeOutExpo"),w(".accordion > .accordion-title > a").first().addClass("active"),w(".accordion > .accordion-title > a").on("click",function(){var e=w(this).parent().next(".accordion-content");return w(".accordion > .accordion-title > a").removeClass("active"),w(this).addClass("active"),v.not(e).slideUp("easeInExpo"),w(this).parent().next().slideDown("easeOutExpo"),!1}),w("#back-to-top").hide(),w(window).scroll(function(){100<w(window).scrollTop()?w("#back-to-top").fadeIn(1500):w("#back-to-top").fadeOut(1500)}),w("#back-to-top").on("click",function(){return w("body,html").animate({scrollTop:0},1e3),!1}),w(window).on("load resize",function(){var e;w(".footer-wrapper").hasClass("ciyashop-sticky-footer")&&(e=w(".site-footer .footer-wrapper").height(),w("footer.site-footer").height(e))}),0!=w(".commingsoon_countdown").length&&(m=w(".commingsoon_countdown"),d=w(m).data("countdown_date"),y=w(m).data("counter_data"),w(m).countdown(d).on("update.countdown",function(e){var t="",t=(t=(t=(t=0<e.offset.totalDays?t+'<li><span class="days">%-D</span><p class="days_ref">'+y.days+"</p></li>":t)+'<li><span class="hours">%H</span><p class="hours_ref">'+y.hours+"</p></li>")+'<li><span class="minutes">%M</span><p class="minutes_ref">'+y.minutes+"</p></li>")+'<li><span class="seconds">%S</span><p class="seconds_ref">'+y.seconds+"</p></li>";m.html(e.strftime(t))})),jQuery(".intro_header_video-bg").each(function(){var t,o,e=w(this),a=e.find("iframe"),s=e.parent(),i=e.data("video_type"),n=e.data("video_link"),r=a.attr("src"),c=r,l={},d="";"vimeo"==i?l={background:1,autoplay:1,muted:1,loop:1,quality:"540p"}:"youtube"==i&&(l={playlist:void 0!==(i=n)&&(null!==(i=i.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&i[1]),iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent",mute:1,modestbranding:1}),t=l,o="",Object.keys(t).forEach(function(e){o+=e+"="+t[e]+"&"}),d=o.substr(0,o.length-1),c=-1!==r.indexOf("?")?r+"&"+d:r+"?"+d,jQuery(a).attr("src",c),jQuery(e).css("opacity","1"),b(s),jQuery(window).on("resize",function(){b(s)})}),jQuery(".testimonials.slick-carousel").length&&jQuery(".testimonials.slick-carousel").each(function(e,t){var o=w(this).find(".slick-carousel-main"),a=w(this).find(".slick-carousel-nav"),s=w(o).data("show");w(o).slick({slidesToShow:1,slidesToScroll:1,arrows:!1,asNavFor:a,rtl:!!jQuery("body").hasClass("rtl")}),w(a).slick({slidesToShow:s,slidesToScroll:1,asNavFor:o,arrows:!0,dots:!1,centerMode:!0,focusOnSelect:!0,rtl:!!jQuery("body").hasClass("rtl")})}
1),A(),T(),0!=w(".pgscore_banner_wrapper").length&&w(window).on("load resize",function(e){var n=w(window).width();w(".pgscore_banner").each(function(e,t){var o=w(this).data("banner_options"),a=w(this).children(".pgscore_banner-content"),s=w(a).data("banner_padding_options"),i=o.font_size_xl;o.font_size_responsive&&(1200<=n?i=o.font_size_xl:992<=n?i=o.font_size_lg:768<=n?i=o.font_size_md:576<=n?i=o.font_size_sm:n<576&&(i=o.font_size_xs),w(this).css("font-size",parseInt(i))),null!=f&&w(a).hasClass(f)&&w(a).removeClass(f),s.banner_padding_responsive&&(1200<=n?f=s.banner_padding_xl:992<=n?f=s.banner_padding_lg:768<=n?f=s.banner_padding_md:576<=n?f=s.banner_padding_sm:n<576&&(f=s.banner_padding_xs),w(a).addClass(f))})}),0<w(".mtpl-tab-link").length&&(w(".mtpl-tab-link").on("shown.bs.tab",function(e){var t=w(e.relatedTarget).data("arrow_target"),o=w(e.target).data("arrow_target");w("#"+t).removeClass("active"),w("#"+o).addClass("active"),w(e.target).hasClass("mtpl-intro-tab-link")&&(w(e.target).css("color",w(e.target).data("active_link_color")),w(e.relatedTarget).css("color",w(e.relatedTarget).data("link_color")))}),w('a[data-toggle="tab"]').on("shown.bs.tab",function(e){w(w(e.target).attr("href")).find(".owl-carousel").owlCarousel("invalidate","width").owlCarousel("update")})),0<w(".mtpl-tab-link").length&&w(".mtpl-tab-link").on("click",function(e){w(this).hasClass("active")||w(this).parents(".pgs-mtpl-wrapper").addClass("multi-tab-product-loader"),w(".mtpl-tab-link").on("shown.bs.tab",function(e){w(this).parents(".pgs-mtpl-wrapper").removeClass("multi-tab-product-loader")})}),0<jQuery(".smart_product_open").length&&jQuery(".smart_product_open").magnificPopup({callbacks:{beforeOpen:function(){window.CI360.destroy()},open:function(){window.CI360.init()}}}),jQuery("img").hasClass("threesixty-preview-image")&&(u=jQuery(".threesixty-preview-image").outerHeight(),jQuery(".woocommerce-product-gallery + .ciyashop-product-images .ciyashop-gallery-style-default .ciyashop-product-gallery").css("height",u)),jQuery(document).on("click",".mfp-close i",function(e){e.preventDefault(),jQuery.magnificPopup.close()}),S(),D(),0<w(".ciyashop-sticky-btn").length&&(g=w(".ciyashop-sticky-btn"),w(window).scroll(function(){var e=w(window).scrollTop(),t=w("#colophon").position(),o=w("form.cart").position(),o=void 0===o?0:o.top+w("form.cart").outerHeight();!(o<e&&e<t.top)&&t.top>e?g.removeClass("sticky"):g.addClass("sticky")}),w(document).on("click",".ciyashop-sticky-add-to-cart.vaiable_button",function(e){e.preventDefault();e=w(".variations_form").offset().top-w(".variations_form").outerHeight();w("html, body").animate({scrollTop:e},1e3)}),w(document).on("click",".ciyashop-sticky-add-to-cart.grouped_product",function(e){e.preventDefault();e=w(".grouped_form").offset().top-w(".grouped_form").outerHeight();w("html, body").animate({scrollTop:e},1e3)})),z()});var j=function(e){var t=e.find(".ciyashop-product-description").outerHeight();e.find(".content-hover-block").css({marginBottom:-t}),e.addClass("element-hovered")};function b(e){var t,o,a,s,i=e.innerWidth(),n=e.innerHeight();i/n<16/9?(t=n*(16/9),o=n,a=-Math.round((t-i)/2)+"px",s=-Math.round((o-n)/2)+"px"):(o=(t=i)*(9/16),s=-Math.round((o-n)/2)+"px",a=-Math.round((t-i)/2)+"px"),t+="px",o+="px",e.find(".intro_header_video-bg iframe").css({maxWidth:"1000%",marginLeft:a,marginTop:s,width:t,height:o})}function Q(){jQuery(".ciyashop-product-description").each(function(){90<w(this).outerHeight()&&(jQuery(this).addClass("ciyashop-short-description"),jQuery(this).append('<a href="javascript:void(0)" class="cs-more-btn"><span>load more</span></a>'))})}function e(){O(),C()}function C(){jQuery(".search_form-category").select2({containerCssClass:"ciyashop-search_form_cat-container",dropdownCssClass:"ciyashop-search_form_cat-dropdown"})}function k(){0<w(".shop-filter").length&&w(".shop-filter").each(function(){var e=w(this),t=w(this).data("placeholder");e.find("select").select2({placeholder:t,allowClear:!0,dropdownParent:w(this)})}),0<w(".woocommerce-ordering select.orderby").length&&w(".woocommerce-ordering select.orderby").select2(),0<w("select.ciyashop-select2").length&&w("select.ciyashop-select2").select2({containerCssClass:"ciyashop-select2-container",dropdownCssClass:"ciyashop-select2-dropdown"})}function t(){i(),Q()}function o(){i(),jQuery(".testimonials.slick-carousel").length&&jQuery(".testimonials.slick-carousel").each(function(e,t){var o=jQuery(this).find(".slick-carousel-main"),a=jQuery(this).find(".slick-carousel-nav"),s=jQuery(o).data("show");jQuery(o).not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,arrows:!1,asNavFor:a,rtl:!!jQuery("body").hasClass("rtl")}),jQuery(a).not(".slick-initialized").slick({slidesToShow:s,slidesToScroll:1,asNavFor:o,arrows:!0,dots:!1,centerMode:!0,focusOnSelect:!0,rtl:!!jQuery("body").hasClass("rtl")})})}function a(){i(),setTimeout(function(){x()},200),q()}function x(){var e=jQuery(".isotope-wrapper");0!=e.length&&e.each(function(){var e=jQuery(this).find(".isotope"),t=jQuery(this).find(".isotope-filters"),o=t.find("button.active"),a=new Shuffle(e,{itemSelector:".grid-item",easing:"ease-out"}),e=parseInt(o.attr("data-filter"));
1a.filter(e),t.on("click","button",function(){var e=parseInt(jQuery(this).attr("data-filter"));a.filter(e)}),t.each(function(e,t){var o=jQuery(t);o.on("click","button",function(){o.find(".active").removeClass("active"),jQuery(this).addClass("active")})})})}function T(){0<jQuery(".widget_pgs_newsletter_widget, .pgscore_newsletter_wrapper").length&&jQuery(".widget_pgs_newsletter_widget, .pgscore_newsletter_wrapper").each(function(e,t){jQuery(this).find("form");var o,a=jQuery(this).find(".newsletter-msg"),s=jQuery(this).find(".newsletter-mailchimp"),i=jQuery(this).find(".newsletter-spinner"),n=jQuery(this).find(".newsletter-email");jQuery(this).attr("data-form-id");jQuery(s).on("click",function(){return o=jQuery(n).val(),jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"post",data:"action=mailchimp_singup&newsletter_email="+o,beforeSend:function(){jQuery(i).html('<i class="fa fa-refresh fa-spin"></i>'),jQuery(a).hide().removeClass("error_msg").html("")},success:function(e){jQuery(a).show().removeClass("error_msg").html(e),jQuery(n).val(""),jQuery(i).html("")},error:function(e){jQuery(i).html(""),jQuery(a).addClass("error_msg").html(e).show()}}),!1})})}function S(){0<jQuery(".slider-popup").length&&jQuery(".slider-popup").magnificPopup({type:"image"})}function D(){0<jQuery(".pgscore_v_menu__menu_wrap").length&&jQuery(".pgscore_v_menu__menu_wrap").each(function(e,t){var o=jQuery(this).find(".pgscore_v_menu__nav"),a=jQuery(this).parent(),s="";void 0!==jQuery(a).data("menu_title")&&""!==w(a).data("menu_title")&&(s=jQuery(a).data("menu_title")),o.slicknav({label:'<i class="fa fa-bars"></i>',brand:'<span class="slicknav_brand_icon"><i class="fa fa-bars"></i></span>'+s,appendTo:a,allowParentLinks:!0,closedSymbol:"&rsaquo;",openedSymbol:"&rsaquo;",init:function(){jQuery(a).find(".slicknav_menu").addClass("slicknav_menu-wrap").removeClass("slicknav_menu"),jQuery(a).find(".slicknav_nav").addClass("menu"),jQuery(a).find(".pgscore_v_menu__nav").hasClass("pgs_megamenu-enable")&&jQuery(a).find(".slicknav_nav").addClass("pgs_megamenu-enable")},afterOpen:function(e){jQuery(e).find(".fa").removeClass("fa-bars").addClass("fa-times")},afterClose:function(e){jQuery(e).find(".fa").removeClass("fa-times").addClass("fa-bars")}})})}function s(){i(),S()}function l(){i(),A()}function d(){i()}function O(){jQuery("input.search-form").each(function(){var o=jQuery(this).attr("id");jQuery(this).autocomplete({search:function(e,t){jQuery(".ciyashop-auto-compalte-default ul").empty(),jQuery(".ciyashop-auto-compalte-default").addClass("ciyashop-empty"),jQuery(this).parents("form.search-form").find(".ciyashop-auto-compalte-default").addClass(o+"-class-selector")},source:function(e,t){var o=this.element.parents("div.search_form-input-wrap").prev().children().val(),a=this.element.val(),s=this.element.parents("div.search_form-search-field");jQuery.ajax({url:ciyashop_l10n.ajax_url,type:"POST",dataType:"json",data:{action:"ciyashop_auto_complete_search",ajax_nonce:ciyashop_l10n.ciyashop_nonce,search_keyword:a,search_category:o},beforeSend:function(){s.addClass("ui-autocomplete-loader")},success:function(e){t(jQuery.map(e,function(e){return{image:e.post_img,title:e.post_title,link:e.post_link}}))}}).done(function(){s.removeClass("ui-autocomplete-loader")})},minLength:2}).data("ui-autocomplete")._renderItem=function(e,t){e.remove();e=(e="")+'<a href="'+t.link+'"><div class="search-item-container">';return t.image&&(e+=t.image),e=(e+=t.title)+"</div>"+"</a>",jQuery(o+"-class-selector").removeClass("ciyashop-empty"),jQuery("<li class='ui-menu-item'></li>").data("ui-autocomplete-item",t).append(e).appendTo(jQuery("."+o+"-class-selector ul"))}})}function q(){0<jQuery(".image_popup-gallery").length&&jQuery(".image_popup-gallery").each(function(e){jQuery(this).magnificPopup({delegate:"a.image_popup-img",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'}})})}function P(){jQuery(".progress-bar").each(function(e,t){var o,a,s,i;jQuery(this).hasClass("progress-animated")||(o=jQuery(this).offset().top,a=jQuery(window).scrollTop(),a+=jQuery(window).height(),i=(s=jQuery(this)).attr("data-percent")||"100",s.attr("data-animate"),o<a&&s.animate({width:i+"%"}).addClass("progress-animated"))})}function i(){setTimeout(function(){jQuery(".owl-carousel.owl-carousel-options").each(function(){var e=jQuery(this),e=e.attr("data-owl_options")?e.data("owl_options"):{};e.navElement="div",e.rtl=!!jQuery("body").hasClass("rtl"),jQuery(this).owlCarousel(e)})},300)}function u(){setTimeout(function(){x()},200),i(),q()}function z(){jQuery(document).on("click",function(e){0===jQuery(e.target).parents(".trigger-click").length&&jQuery(".trigger-click").removeClass("hotspot-visible")}),jQuery(".trigger-click").each(function(){jQuery(this).on("click",function(){jQuery(this).hasClass("hotspot-visible")||(jQuery(".trigger-click").removeClass("hotspot-visible"),jQuery(this).addClass("hotspot-visible"))})})}function p(){window.CI360.init()}function F(){jQuery(".counter-number").each(function(){var e,t,o;jQuery(this).hasClass("counter-animated")||(e=jQuery(this).offset().top,t=(t=jQuery(window).scrollTop())+jQuery(window).height()-30,o=jQuery(this),e<t&&(o.addClass("counter-animated"),jQuery(this).prop("Counter",0).animate({Counter:jQuery(this).text()},{duration:1500,easing:"swing",step:function(e){jQuery(this).text(Math.ceil(e))}})))})}function A(){jQuery(".deal-counter-wrapper").length&&jQuery(".deal-counter-wrapper").each(function(){var t=jQuery(this),o=t.find(".deal-counter"),e=o.data("c
1ountdown-date"),a=o.data("counter_data"),s=void 0!==a.on_expire_btn?a.on_expire_btn:"remove",i=t.parent().hasClass("pgscore_banner-content-inner-wrapper")?t.closest(".pgscore_banner-content-inner-wrapper").find(".pgscore_banner-btn"):(t.closest(".deal-banner"),t.find(".deal-button"));o.countdown(e).on("update.countdown",function(e){var t='<ul class="countdown">',t=(t=(t=(t=0<e.offset.totalDays?t+'<li><span class="days">%-D</span><p class="days_ref smalltxt">'+a.days+"</p></li>":t)+'<li><span class="hours">%H</span><p class="hours_ref smalltxt">'+a.hours+"</p></li>")+'<li><span class="minutes">%M</span><p class="minutes_ref smalltxt">'+a.minutes+"</p></li>")+'<li><span class="seconds">%S</span><p class="seconds_ref smalltxt">'+a.seconds+"</p></li>";o.html(e.strftime(t+="</ul>"))}).on("finish.countdown",function(e){t.addClass("deal-expired"),o.html('<span class="deal-expire-message">'+a.expiremsg+"</span>").addClass("deal-counter-expired").removeAttr("data-counter_data").removeAttr("data-countdown-date"),"remove"==s?i.remove():(i.addClass("disabled").attr("disabled",!0),i.on("click",function(e){e.preventDefault()}))})})}"rtl"==jQuery("html").attr("dir")&&(jQuery(window).load(function(){r()}),w(window).resize(function(){r()})),document.getElementById("mega-menu-wrap-primary")&&jQuery(".site-header .main-navigation button.menu-toggle").hide(),w(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_countdown.default",A),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_banner.default",A),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_product-deal.default",A),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_product-deals.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_counter.default",F),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_smart-image-view.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_hotspot.default",z),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_progress-bar.default",P),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_portfolio.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_search.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_single-product-slider.default",d),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_multi-tab-products-listing.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_image-slider.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_vertical-menu.default",D),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_newsletter.default",T),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_clients.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_image-gallery.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_recent-posts.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_team-members.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_testimonials.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_product-showcase.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_product-category-items.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_instagram.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/pgscore_product-listing.default",t)});var n=document.querySelector(".topbar_item.topbar_item_type-currency .woocommerce-currency-switcher-form");function H(){var e=jQuery('[data-vc-full-width="true"]');jQuery.each(e,function(e,t){var o,a,s,i,n,r,c=jQuery(this),l=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(l=l.length?l:c.parent().next(".vc_row-full-width")).length&&(s=parseInt(c.css("margin-left"),10),i=parseInt(c.css("margin-right"),10),n=0-l.offset().left-s,r=jQuery(window).width(),"rtl"===c.css("direction")&&(n=(n=n-l.width()+r)+s+i),c.css({position:"relative",left:n,"box-sizing":"border-box",width:r}),c.data("vcStretchContent")||("rtl"===c.css("direction")?((o=n)<0&&(o=0),(a=n)<0&&(a=0)):(a=r-(o=(o=-1*n)<0?0:o)-l.width()+s+i)<0&&(a=0),c.css({"padding-left":o+"px","padding-right":a+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),jQuery(document).trigger("vc-full-width-row-single",{el:c,offset:n,marginLeft:s,marginRight:i,elFull:l,width:r}))}),jQuery(document).trigger("vc-full-width-row",e)}function r(){var e;"rtl"==jQuery("html").attr("dir")&&(e=jQuery('[data-vc-full-width="true"]'),jQuery.each(e,function(e,t){var o,a=jQuery(this),s=(a.addClass("vc_hidden"),a.next(".vc_row-full-width"));(s=s.length?s:a.parent().next(".vc_row-full-width")).length&&(o=parseInt(a.css("margin-left"),10),parseInt(a.css("margin-right"),10),s=0-s.offset().left-o,o=jQuery(window).width(),a.css({left:"auto",right:s,width:o})),a.attr("data-vc-full-width-init","true"),a.removeClass("vc_hidden")}))}function I(){jQuery(".quantity").each(function(){jQuery('<div class="quantity-nav"><div class="quantity-button quantity-up">+</div><div class="quantity-button quantity-down">-</div></div>').insertAfter(jQuery(this).find('input[type="number"]'))})}function M(e){var t,o,a=jQuery(this).attr("href"),s=window.location.href;void 0!==a&&(t=a.substr(0,a.lastIndexOf("#")),-1<window.location.href.indexOf("#")&&(s=s.substr(0,s.lastIndexOf("#"))),o=this.getAttribute("href").split("#"),t+"/"==s?(e.preventDefault(),document.querySelector("#"+o[1]).scrollIntoView({behavior:"smooth"})):a&&-1<a.indexOf("#")&&"#"!=a&&((anch_hash_urlarray=a.split("#"))[0]||null!=document.querySelector(a)&&(e.preventDefault(),document.querySelector(a).scrollIntoView({behavior:"smooth"}
1))))}function R(e){var n=jQuery(document).scrollTop();jQuery(".primary-menu a, .primary-menu-mobile a").each(function(){var e,t,o,a,s=jQuery(this),i=s.attr("href");void 0!==i&&(e=i.split("#"))[1]&&(t=jQuery("#"+e[1].replace(/[^a-z0-9\s]/gi,""))),this.addEventListener("click",M),void 0!==t&&t.position()&&(o=t.position().top,a=t.height()),(o<n||o==n)&&n<o+a?s.parent().addClass("current-menu-item"):void 0!==i&&-1<i.indexOf("#")&&s.parent().removeClass("current-menu-item")})}function c(){var e=document.querySelector(".masonry-main .masonry");null!=e&&new Masonry(e,{itemSelector:".masonry-item",columnWidth:".masonry-item",isOriginLeft:!jQuery("body").hasClass("rtl")})}function L(){var e,t;jQuery("ul.products-loop").hasClass("grid")&&(e=0,t=jQuery("ul.products-loop").data("column"),jQuery("ul.products-loop").find("li").each(function(){e++,jQuery(this).hasClass("first")?jQuery(this).removeClass("first"):jQuery(this).hasClass("last")&&jQuery(this).removeClass("last"),t==e?(jQuery(this).addClass("last"),e=0):1==e&&jQuery(this).addClass("first")}))}function E(){jQuery(".ciyashop-lazy-load").length&&jQuery(".ciyashop-lazy-load").lazy({afterLoad:function(e){e.removeClass("ciyashop-lazy-load"),e.addClass("ciyashop-loaded"),x(),c()}})}function W(){0<jQuery(".pgs_product_list_widget-container").length&&0<jQuery(".woocommerce-mini-cart").length&&jQuery(".pgs_product_list_widget-container").each(function(){0<jQuery(this).parents(".header-sticky").length?jQuery(this).nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"woocommerce-mini-cart",preventPageScrolling:!1}):jQuery(this).nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"woocommerce-mini-cart",preventPageScrolling:!1,flash:!!jQuery("body").hasClass("rtl")})})}function N(){var o=0,e=jQuery(window).scrollTop(),t=jQuery(window).width(),a=0,s=0,i=0,n=0,r=0,c=0,l=!0,d=!0;if(jQuery("body").hasClass("admin-bar")&&0<jQuery("#wpadminbar").length&&"fixed"==jQuery("#wpadminbar").css("position")&&(a=jQuery("#wpadminbar").outerHeight()),jQuery.each(jQuery(".header-row"),function(e,t){o+=jQuery(this).outerHeight()}),t<=992){if(jQuery(".header-main-wrapper").hasClass("chl-header-sticky")||0<jQuery(".mobile-sticky-on").length&&(s=jQuery(".mobile-sticky-on").first().offset().top),jQuery.each(jQuery(".header-row"),function(e,t){e++,n+=jQuery(this).outerHeight(),jQuery(this).hasClass("mobile-sticky-off")&&1==e?(c=jQuery(this).outerHeight(),s=c,d=!1):jQuery(this).hasClass("mobile-sticky-off")&&2==e?(c=n,d||(s=c)):jQuery(this).hasClass("mobile-sticky-off")&&3==e&&(c=n)}),0==jQuery(".header-row.mobile-sticky-on").length)return;jQuery(".header-main-wrapper").addClass("chl-sticky-enabled"),e<=c&&e<=s?(jQuery(".header-row.mobile-sticky-off").show(),jQuery(".header-main-wrapper").removeClass("chl-header-sticky")):(jQuery(".header-main-wrapper").addClass("chl-header-sticky"),jQuery(".header-row.mobile-sticky-off").hide())}else if(992<t){if(jQuery(".header-main-wrapper").hasClass("chl-header-sticky")||0<jQuery(".desktop-sticky-on").length&&(i=jQuery(".desktop-sticky-on").first().offset().top-a),jQuery.each(jQuery(".header-row"),function(e,t){e++,n+=jQuery(this).outerHeight(),jQuery(this).hasClass("desktop-sticky-off")&&1==e?(r=jQuery(this).outerHeight(),i=r,l=!1):jQuery(this).hasClass("desktop-sticky-off")&&2==e?(r=n,l||(i=r)):jQuery(this).hasClass("desktop-sticky-off")&&3==e&&(r=n)}),0==jQuery(".header-row.desktop-sticky-on").length)return;jQuery(".header-main-wrapper").addClass("chl-sticky-enabled"),!(e<=r&&e<=i)&&i<e?(jQuery(".header-main-wrapper").css({top:a}),jQuery(".header-main-wrapper").addClass("chl-header-sticky"),jQuery(".header-row.desktop-sticky-off").hide()):(jQuery(".header-main-wrapper").css({top:0}),jQuery(".header-row.desktop-sticky-off").show(),jQuery(".header-main-wrapper").removeClass("chl-header-sticky"))}jQuery("#masthead-inner").css({paddingTop:o})}function B(){var s=jQuery(window).width();jQuery("ul.pgs_megamenu-enable > li").each(function(e){var t,o,a;jQuery(this).hasClass("pgs-menu-item-mega-menu")&&(0<jQuery(this).find(".pgs_menu_nav-sublist-dropdown").length&&(o=jQuery(this).find(".pgs_menu_nav-sublist-dropdown").outerWidth(),(t=jQuery(this).offset().left)+o<=s||(a=t+o-s,jQuery(this).hasClass("pgs-mega-menu-full-width")||(a+=15),jQuery(this).find(".pgs_menu_nav-sublist-dropdown").css("left","-"+a+"px"))),0<jQuery(this).find(".pgs-menu-html-block").length&&(t=jQuery(this).find(".pgs-menu-html-block").outerWidth(),(o=jQuery(this).offset().left)+t<=s||(a=o+t-s,jQuery(this).hasClass("pgs-mega-menu-full-width")||(a+=15),jQuery(this).find(".pgs-menu-html-block").css("left","-"+a+"px"))))})}function $(){jQuery(".cs-compare-list-header .cs-compare-list-title").each(function(e){jQuery(this).removeAttr("style")}),jQuery(".cs-product-list-column").each(function(e){jQuery(this).find(".cs-product-list-row").each(function(e){jQuery(this).removeAttr("style")})});for(var o=[],t=(jQuery(".cs-product-list-column").each(function(e){var t=[];jQuery(this).find(".cs-product-list-row").each(function(e){t.push(jQuery(this).height())}),o.push(t)}),[]),e=0;e<o.length;e++){0!==e&&0;for(var a=0;a<o[e].length;a++)0!==e?o[e][a]>t[a]&&(t[a]=o[e][a]):t.push(o[e][a])}jQuery(".cs-compare-list-header .cs-compare-list-title").each(function(e){jQuery(this).height(t[e])}),jQuery(".cs-product-list-column").each(function(e){jQuery(this).find(".cs-product-list-row").each(function(e){jQuery(this).height(t[e])})})}function V(){0<jQuery(".pgs-woocommerce-widget-layered-nav-list-container").length&&0<jQuery(".pgs-woocommerce-widget-layered-nav-list-container").length&&jQuery(".pgs-woocommerce-widget-layered-nav-list-container").nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"pgs-woocommerce-widget-layered-nav-list"}),0<jQuery(".widget_product_categories").length&&0<jQuery(".product-categories").length&&jQuery(".widget_product_categories").each(function(){0<!jQuery(this).find("select.dropdown_product_cat").length&&jQuery(this).nanoScroller({paneClass:"ciyashop-scroll-pane",sliderClass:"ciyashop-scroll-slider",contentClass:"product-categories",preventPageScrolling:!0})})}function U(e,t,o){var a=new RegExp("([?&])"+t+"=.*?(&|$)","i"),s=-1!==e.indexOf("?")?"&":"?";return e.match(a)?e.replace(a,"$1"+t+"="+o+"$2"):e+s+t+"="+o}null!=n&&n.setAttribute("action",""),jQuery(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({disableOn:300,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1}),jQuery.extend(!0,jQuery.magnificPopup.defaults,{iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"}}}}),jQuery.extend(!0,jQuery.magnificPopup.defaults,{iframe:{patterns:{vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}}}})}(jQuery);

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.