Guest User

WPBR 79739

a guest
May 18th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var isLocalStorageSupported = function() {
  2.     var c = "test",
  3.         b = window.sessionStorage;
  4.     try {
  5.         b.setItem(c, "1");
  6.         b.removeItem(c);
  7.         return true
  8.     } catch (a) {
  9.         return false
  10.     }
  11. };
  12. (function(E) {
  13.     E.WR = E.WR || {};
  14.     E.function_rotate_device = {};
  15.     E.fn.WR_ImagesLoaded = function(ad) {
  16.         var ab = function(af, ag) {
  17.             var ae = new Image;
  18.             ae.onload = ag;
  19.             ae.src = af
  20.         };
  21.         var aa = this.find("img").toArray().map(function(ae) {
  22.             return ae.src
  23.         });
  24.         if (aa.length) {
  25.             var ac = 0;
  26.             E(aa).each(function(ae, af) {
  27.                 ab(af, function() {
  28.                     ac++;
  29.                     if (ac == aa.length) {
  30.                         ad()
  31.                     }
  32.                 })
  33.             })
  34.         } else {
  35.             ad()
  36.         }
  37.     };
  38.     E.fn.WR_ImagesLazyload = function(af, ah) {
  39.         var ac = E(window),
  40.             aa = af || 0,
  41.             ab = window.devicePixelRatio > 1,
  42.             ad = ab ? "data-src-retina" : "data-src-lazyload",
  43.             ag = this,
  44.             ae;
  45.         this.one("WR_ImagesLazyload", function() {
  46.             var aj = this.getAttribute(ad);
  47.             aj = aj || this.getAttribute("data-src-lazyload");
  48.             if (aj) {
  49.                 this.setAttribute("src", aj);
  50.                 if (typeof ah === "function") {
  51.                     ah.call(this)
  52.                 }
  53.             }
  54.         });
  55.  
  56.         function ai() {
  57.             var aj = ag.filter(function() {
  58.                 var al = E(this);
  59.                 if (al.is(":hidden")) {
  60.                     return
  61.                 }
  62.                 var ak = ac.scrollTop(),
  63.                     an = ak + ac.height(),
  64.                     ao = al.offset().top,
  65.                     am = ao + al.height();
  66.                 return am >= ak - aa && ao <= an + aa
  67.             });
  68.             ae = aj.trigger("WR_ImagesLazyload");
  69.             ag = ag.not(ae)
  70.         }
  71.         ac.on("scroll.WR_ImagesLazyload resize.WR_ImagesLazyload lookup.WR_ImagesLazyload", ai);
  72.         ai();
  73.         return this
  74.     };
  75.     var D = function() {
  76.         return (/Android|iPhone|iPad|iPod|BlackBerry/i).test(navigator.userAgent || navigator.vendor || window.opera)
  77.     };
  78.  
  79.     function v(ab, ac) {
  80.         var aa = false;
  81.         E.each(ab, function(ad, ae) {
  82.             if (ae.name == ac) {
  83.                 aa = true;
  84.                 return
  85.             }
  86.         });
  87.         return aa
  88.     }
  89.  
  90.     function l(aa, ac, ab) {
  91.         E.each(aa, function(ad, ae) {
  92.             if (ae.name == ac) {
  93.                 aa.push({
  94.                     name: ab,
  95.                     value: ae.value
  96.                 });
  97.                 delete aa[ad]
  98.             }
  99.         });
  100.         return aa
  101.     }
  102.  
  103.     function J(aa) {
  104.         var ab = {};
  105.         E.each(aa, function(ac, ad) {
  106.             if (ad != undefined) {
  107.                 ab[ad.name] = ad.value
  108.             }
  109.         });
  110.         return ab
  111.     }
  112.  
  113.     function w(ac) {
  114.         if (typeof ac != "string" || ac.search("&") == -1) {
  115.             return false
  116.         }
  117.         var ae = {},
  118.             ab, aa, ad;
  119.         ab = ac.split("&");
  120.         for (ad = 0; ad < ab.length; ad++) {
  121.             aa = ab[ad].split("=");
  122.             ae[aa[0]] = decodeURIComponent(aa[1])
  123.         }
  124.         return ae
  125.     }
  126.  
  127.     function q() {
  128.         E(".hb-search .open.show-full-screen").on("click", function() {
  129.             var ai = E(this);
  130.             var ae = ai.parents(".hb-search");
  131.             var ac = ae.find(".hb-search-fs")[0].outerHTML;
  132.             E("body").append(ac);
  133.             var ad = E(this).attr("data-background-style");
  134.             var af = E(this).attr("data-layout");
  135.             var ag = E("body > .hb-search-fs");
  136.             if (af == "topbar" && E(this).hasClass("active-topbar")) {
  137.                 aa()
  138.             } else {
  139.                 switch (af) {
  140.                     case "full-screen":
  141.                         ag.fadeIn(300);
  142.                         E("html").addClass("no-scroll");
  143.                         break;
  144.                     case "topbar":
  145.                         var ah = E("#wpadminbar");
  146.                         var ab = ah.length ? ah.height() : "0";
  147.                         E(this).addClass("active-topbar");
  148.                         ag.css({
  149.                             display: "block",
  150.                             top: (ab - 80) + "px"
  151.                         }).animate({
  152.                             top: ab + "px"
  153.                         });
  154.                         E("body > .wrapper-outer").css({
  155.                             position: "relative",
  156.                             top: "0px"
  157.                         }).animate({
  158.                             top: "80px"
  159.                         });
  160.                         break
  161.                 }
  162.                 ag.addClass(ad + " " + af);
  163.                 ag.find(".close").attr("data-layout", af);
  164.                 ag.find("form input").focus()
  165.             }
  166.         });
  167.  
  168.         function aa() {
  169.             var ae = E("body > .hb-search-fs .close");
  170.             var ac = ae.attr("data-layout");
  171.             switch (ac) {
  172.                 case "full-screen":
  173.                     E("body > .hb-search-fs").fadeOut(300, function() {
  174.                         E("html").removeClass("no-scroll");
  175.                         E("body > .hb-search-fs").remove();
  176.                         E("body > .wrapper-outer").removeAttr("style")
  177.                     });
  178.                     break;
  179.                 case "topbar":
  180.                     var ad = E("#wpadminbar");
  181.                     var ab = ad.length ? ad.height() : "0";
  182.                     E("body > .hb-search-fs").animate({
  183.                         top: (ab - 80) + "px"
  184.                     }, function() {
  185.                         E(this).remove()
  186.                     });
  187.                     E("body > .wrapper-outer").animate({
  188.                         top: "0px"
  189.                     }, function() {
  190.                         E(this).removeAttr("style")
  191.                     });
  192.                     break
  193.             }
  194.             E(".header .hb-search").find(".open.active-topbar").removeClass("active-topbar")
  195.         }
  196.         E("body").on("click", ".hb-search-fs .close", function() {
  197.             aa()
  198.         });
  199.         E(".header .hb-search.dropdown .open").click(function() {
  200.             var ai = E(this);
  201.             var an = ai.closest(".hb-search");
  202.             var ae = an.find(".search-form:first");
  203.             var ah = E(".header .hb-search.dropdown").index(an);
  204.             var ak = an[0].getBoundingClientRect();
  205.             var ao = parseInt(an.css("borderTopWidth"));
  206.             var aq = parseInt(an.css("borderBottomWidth"));
  207.             E(".header .hb-search.dropdown:not(:eq(" + ah + "))").removeClass("active-dropdown");
  208.             if (an.hasClass("active-dropdown")) {
  209.                 an.removeClass("active-dropdown");
  210.                 ae.removeClass("set-width")
  211.             } else {
  212.                 S(ai, ".hb-search", function(at) {
  213.                     an.removeClass("active-dropdown");
  214.                     ae.removeClass("set-width")
  215.                 });
  216.                 ae.removeAttr("style");
  217.                 var ac = E(window).width();
  218.                 if (ae.width() > (ac - 10)) {
  219.                     ae.css("width", (ac - 10));
  220.                     ae.addClass("set-width")
  221.                 }
  222.                 var ac = E(window).width();
  223.                 var ad = ae[0].getBoundingClientRect();
  224.                 var ab = ai[0].getBoundingClientRect();
  225.                 var ar = (ac > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  226.                 if (ac < (ad.right + 5)) {
  227.                     var am = (ad.right + 5 + ar) - ac;
  228.                     ae.css("left", -am + "px")
  229.                 } else {
  230.                     if (ad.left < (5 + ar)) {
  231.                         ae.css("left", "5px")
  232.                     }
  233.                 }
  234.                 var al = (an.attr("data-margin-top") == "empty") ? an.attr("data-margin-top") : parseInt(an.attr("data-margin-top"));
  235.                 if (ai.closest(".sticky-row-scroll").length || al == "empty") {
  236.                     var af = ai.closest((ai.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer"))[0].getBoundingClientRect();
  237.                     var aj = parseInt((af.bottom - ak.bottom) + (ak.height - ao));
  238.                     ae.css("top", aj)
  239.                 } else {
  240.                     if (al > 0) {
  241.                         ae.css("top", (al + (ak.height - (ao + aq))))
  242.                     }
  243.                 }
  244.                 an.addClass("active-dropdown");
  245.                 var ap = an.find(".wrls-form");
  246.                 if (ap.length) {
  247.                     var ag = an.find(".cate-search-outer").width()
  248.                 }
  249.                 setTimeout(function() {
  250.                     an.find(".txt-search").focus()
  251.                 }, 300)
  252.             }
  253.         });
  254.         E(".header .hb-search.expand-width .open").on("click", function(ao) {
  255.             var an = E(this);
  256.             var ar = an.closest(".hb-search");
  257.             var ae = ar.find(".search-form form");
  258.             var af = ae[0].getBoundingClientRect();
  259.             var al = af.width;
  260.             var ap = an.closest(".header");
  261.             var aj = ap.hasClass("vertical-layout");
  262.             var au = true;
  263.             if (ar.hasClass("expan-width-active")) {
  264.                 ae.stop(true, true).css({
  265.                     overflow: "hidden"
  266.                 }).animate({
  267.                     width: "0px"
  268.                 }, 200, function() {
  269.                     ar.removeClass("expan-width-active");
  270.                     ae.removeAttr("style");
  271.                     var aw = an.closest(".container").find(".hide-expand-search");
  272.                     aw.css("visibility", "").animate({
  273.                         opacity: 1
  274.                     }, 200, function() {
  275.                         aw.removeClass("hide-expand-search");
  276.                         E(this).css("opacity", "")
  277.                     })
  278.                 })
  279.             } else {
  280.                 S(an, ".hb-search", function(aw) {
  281.                     ae.stop(true, true).css({
  282.                         overflow: "hidden"
  283.                     }).animate({
  284.                         width: "0px"
  285.                     }, 200, function() {
  286.                         ar.removeClass("expan-width-active");
  287.                         ae.removeAttr("style");
  288.                         var ax = an.closest(".container").find(".hide-expand-search");
  289.                         ax.css("visibility", "").animate({
  290.                             opacity: 1
  291.                         }, 200, function() {
  292.                             ax.removeClass("hide-expand-search");
  293.                             E(this).css("opacity", "")
  294.                         })
  295.                     })
  296.                 });
  297.                 var ab = an[0].getBoundingClientRect();
  298.                 var ak = ab.left + ab.width / 2;
  299.                 var ah = document.body.offsetWidth;
  300.                 var av = ar.outerWidth();
  301.                 if (aj) {
  302.                     var am = ar[0].getBoundingClientRect();
  303.                     var aq = ap[0].getBoundingClientRect();
  304.                     if (ap.hasClass("left-position-vertical")) {
  305.                         au = (am.left - aq.left - 10) >= af.width ? false : true
  306.                     } else {
  307.                         au = (aq.right - am.right - 10) >= af.width ? true : false
  308.                     }
  309.                 } else {
  310.                     au = ak * 2 < ah
  311.                 }
  312.                 if (au) {
  313.                     var at = ar.nextUntil();
  314.                     if (at.length) {
  315.                         var ad = 0;
  316.                         var ai = function() {
  317.                             ae.stop(true, true).css({
  318.                                 left: av + 5,
  319.                                 width: 0,
  320.                                 overflow: "hidden",
  321.                                 visibility: "initial"
  322.                             }).animate({
  323.                                 width: al
  324.                             }, 200, function() {
  325.                                 E(this).css("overflow", "")
  326.                             })
  327.                         };
  328.                         if (!aj) {
  329.                             at.each(function(aw, ax) {
  330.                                 if (ad < al) {
  331.                                     E(ax).animate({
  332.                                         opacity: 0
  333.                                     }, 200, function() {
  334.                                         E(ax).css("visibility", "hidden")
  335.                                     });
  336.                                     E(ax).addClass("hide-expand-search")
  337.                                 }
  338.                                 ad += E(ax).outerWidth(true);
  339.                                 if (ad > al) {
  340.                                     return false
  341.                                 }
  342.                             });
  343.                             setTimeout(ai, 200)
  344.                         } else {
  345.                             ai()
  346.                         }
  347.                     } else {
  348.                         ae.stop(true, true).css({
  349.                             left: av + 5,
  350.                             width: 0,
  351.                             overflow: "hidden",
  352.                             visibility: "initial"
  353.                         }).animate({
  354.                             width: al
  355.                         }, 200, function() {
  356.                             E(this).css("overflow", "")
  357.                         })
  358.                     }
  359.                 } else {
  360.                     var ag = ar.prevUntil();
  361.                     if (ag.length) {
  362.                         var ac = 0;
  363.                         var ai = function() {
  364.                             ae.stop(true, true).css({
  365.                                 right: av + 5,
  366.                                 width: 0,
  367.                                 overflow: "hidden",
  368.                                 visibility: "initial"
  369.                             }).animate({
  370.                                 width: al
  371.                             }, 200, function() {
  372.                                 E(this).css("overflow", "")
  373.                             })
  374.                         };
  375.                         if (!aj) {
  376.                             ag.each(function(aw, ax) {
  377.                                 if (ac < al) {
  378.                                     E(ax).animate({
  379.                                         opacity: 0
  380.                                     }, 200, function() {
  381.                                         E(ax).css("visibility", "hidden")
  382.                                     });
  383.                                     E(ax).addClass("hide-expand-search")
  384.                                 }
  385.                                 ac += E(ax).outerWidth(true);
  386.                                 if (ac > al) {
  387.                                     return false
  388.                                 }
  389.                             });
  390.                             setTimeout(ai, 200)
  391.                         } else {
  392.                             ai()
  393.                         }
  394.                     } else {
  395.                         ae.stop(true, true).css({
  396.                             right: av + 5,
  397.                             width: 0,
  398.                             overflow: "hidden",
  399.                             visibility: "initial"
  400.                         }).animate({
  401.                             width: al
  402.                         }, 200, function() {
  403.                             E(this).css("overflow", "")
  404.                         })
  405.                     }
  406.                 }
  407.                 ar.addClass("expan-width-active");
  408.                 setTimeout(function() {
  409.                     ar.find(".txt-search").focus()
  410.                 }, 300)
  411.             }
  412.         });
  413.         E(".header .hb-search.boxed .open").on("click", function() {
  414.             var ac = E(this);
  415.             var ab = ac.parents(".hb-search");
  416.             ab.find('input[type="submit"]').trigger("click")
  417.         })
  418.     }
  419.  
  420.     function r() {
  421.         E(".hb-cart.sidebar").click(function() {
  422.             var aj = E(this);
  423.             var an = aj.find(".cart-control-sidebar");
  424.             var al = aj.find(".hb-minicart")[0].outerHTML;
  425.             if (!E("body > .hb-cart-outer").length) {
  426.                 E("body").append('<div class="hb-cart-outer"></div>')
  427.             }
  428.             E("body > .hb-cart-outer").html('<span class="wr-close-mobile"><span></span></span>' + al);
  429.             if (!E("body > .overlay-sidebar").length) {
  430.                 var am = E('<div class="overlay-sidebar"></div>').click(function() {
  431.                     aa(E(this))
  432.                 });
  433.                 E("body").append(am)
  434.             }
  435.             E("html").addClass("no-scroll");
  436.             var af = an.attr("data-animation");
  437.             var ai = an.attr("data-position");
  438.             var ag = E("body > .overlay-sidebar");
  439.             var ad = E("body > .wrapper-outer");
  440.             var ah = E(".hb-cart-outer .hb-minicart");
  441.             var ao = E(".hb-cart-outer .hb-minicart .widget_shopping_cart_content");
  442.             ag.addClass("active").attr("data-animation", af).attr("data-position", ai);
  443.             ah.attr("style", "");
  444.             ad.attr("style", "");
  445.             ag.attr("style", "");
  446.             ao.attr("style", "");
  447.             ag.css({
  448.                 display: "block"
  449.             }).animate({
  450.                 opacity: 1
  451.             });
  452.             ah.addClass(ai);
  453.             ah.css("opacity", 1);
  454.             var ak = ah[0].getBoundingClientRect();
  455.             var ae = function() {
  456.                 var at = E(".hb-cart-outer .widget_shopping_cart_content > .cart_list-outer");
  457.                 var av = E(".hb-cart-outer .hb-minicart").width();
  458.                 var au = at.width();
  459.                 var ax = E(".hb-cart-outer .widget_shopping_cart_content > .price-checkout").outerWidth(true);
  460.                 if (av < (au + ax)) {
  461.                     var ar = E(".hb-cart-outer");
  462.                     var aw = E(".hb-cart-outer .cart_list-outer");
  463.                     var at = E(".hb-cart-outer .cart_list");
  464.                     ar.addClass("cart-slider");
  465.                     var ay = av - ax;
  466.                     var aq = at.width();
  467.                     var ap = parseInt(((aq - ay) + 50) / 80) + 1;
  468.                     ar.attr("data-items", ap);
  469.                     aw.width(ay);
  470.                     aw.prepend('<div class="control"><div class="prev control-item"><div class="prev-inner control-inner"></div></div><div class="disabled next control-item"><div class="next-inner control-inner"></div></div></div>')
  471.                 }
  472.             };
  473.             switch (ai) {
  474.                 case "position-sidebar-right":
  475.                     ah.css({
  476.                         visibility: "visible",
  477.                         right: "-" + ak.width + "px"
  478.                     }).animate({
  479.                         right: "0px"
  480.                     });
  481.                     if (af == "sidebar-push" || af == "sidebar-fall-down" || af == "sidebar-fall-up") {
  482.                         ad.css({
  483.                             position: "relative",
  484.                             right: "0px"
  485.                         }).animate({
  486.                             right: ak.width + "px"
  487.                         })
  488.                     }
  489.                     switch (af) {
  490.                         case "sidebar-slide-in-on-top":
  491.                             break;
  492.                         case "sidebar-push":
  493.                             break;
  494.                         case "sidebar-fall-down":
  495.                             ao.css({
  496.                                 position: "relative",
  497.                                 top: "-300px"
  498.                             }).animate({
  499.                                 top: "0px"
  500.                             });
  501.                             break;
  502.                         case "sidebar-fall-up":
  503.                             ao.css({
  504.                                 position: "relative",
  505.                                 top: "300px"
  506.                             }).animate({
  507.                                 top: "0px"
  508.                             });
  509.                             break
  510.                     }
  511.                     break;
  512.                 case "position-sidebar-left":
  513.                     ah.css({
  514.                         visibility: "visible",
  515.                         left: "-" + ak.width + "px"
  516.                     }).animate({
  517.                         left: "0px"
  518.                     });
  519.                     if (af == "sidebar-push" || af == "sidebar-fall-down" || af == "sidebar-fall-up") {
  520.                         ad.css({
  521.                             position: "relative",
  522.                             left: "0px"
  523.                         }).animate({
  524.                             left: ak.width + "px"
  525.                         })
  526.                     }
  527.                     switch (af) {
  528.                         case "sidebar-slide-in-on-top":
  529.                             break;
  530.                         case "sidebar-push":
  531.                             break;
  532.                         case "sidebar-fall-down":
  533.                             ao.css({
  534.                                 position: "relative",
  535.                                 top: "-300px"
  536.                             }).animate({
  537.                                 top: "0px"
  538.                             });
  539.                             break;
  540.                         case "sidebar-fall-up":
  541.                             ao.css({
  542.                                 position: "relative",
  543.                                 top: "300px"
  544.                             }).animate({
  545.                                 top: "0px"
  546.                             });
  547.                             break
  548.                     }
  549.                     break;
  550.                 case "position-sidebar-top":
  551.                     ah.addClass("active");
  552.                     if (af == "sidebar-slide-in-on-top" || af == "sidebar-push" || af == "sidebar-fall-down") {
  553.                         ah.css({
  554.                             visibility: "visible",
  555.                             transform: "translate(0%, -100%)"
  556.                         }).animate({
  557.                             transform: "translate(0%, 0%)"
  558.                         })
  559.                     }
  560.                     ae();
  561.                     switch (af) {
  562.                         case "sidebar-slide-in-on-top":
  563.                             break;
  564.                         case "sidebar-push":
  565.                             break;
  566.                         case "sidebar-fall-down":
  567.                             ao.css({
  568.                                 position: "relative",
  569.                                 top: "-150px",
  570.                                 opacity: 0
  571.                             }).animate({
  572.                                 top: "0px",
  573.                                 opacity: 1
  574.                             });
  575.                             break;
  576.                         case "sidebar-fall-up":
  577.                             ah.css({
  578.                                 overflow: "hidden",
  579.                                 visibility: "visible",
  580.                                 transform: "translate(0%, -100%)"
  581.                             }).animate({
  582.                                 transform: "translate(0%, 0%)"
  583.                             }, function() {
  584.                                 E(this).css("overflow", "")
  585.                             });
  586.                             ao.css({
  587.                                 position: "relative",
  588.                                 top: "150px",
  589.                                 opacity: 0
  590.                             }).animate({
  591.                                 top: "0px",
  592.                                 opacity: 1
  593.                             });
  594.                             break
  595.                     }
  596.                     break;
  597.                 case "position-sidebar-bottom":
  598.                     if (af == "sidebar-slide-in-on-top" || af == "sidebar-push" || af == "sidebar-fall-up") {
  599.                         ah.css({
  600.                             visibility: "visible",
  601.                             transform: "translate(0%, 100%)"
  602.                         }).animate({
  603.                             transform: "translate(0%, 0%)"
  604.                         })
  605.                     }
  606.                     ae();
  607.                     switch (af) {
  608.                         case "sidebar-slide-in-on-top":
  609.                             break;
  610.                         case "sidebar-push":
  611.                             break;
  612.                         case "sidebar-fall-down":
  613.                             ah.css({
  614.                                 overflow: "hidden",
  615.                                 visibility: "visible",
  616.                                 transform: "translate(0%, 100%)"
  617.                             }).animate({
  618.                                 transform: "translate(0%, 0%)"
  619.                             }, function() {
  620.                                 ah.css("overflow", "")
  621.                             });
  622.                             ao.css({
  623.                                 position: "relative",
  624.                                 top: "-150px",
  625.                                 opacity: 0
  626.                             }).animate({
  627.                                 top: "0px",
  628.                                 opacity: 1
  629.                             });
  630.                             break;
  631.                         case "sidebar-fall-up":
  632.                             ao.css({
  633.                                 position: "relative",
  634.                                 top: "150px",
  635.                                 opacity: 0
  636.                             }).animate({
  637.                                 top: "0px",
  638.                                 opacity: 1
  639.                             });
  640.                             break
  641.                     }
  642.                     break
  643.             }
  644.         });
  645.  
  646.         function aa(ak) {
  647.             ak.removeClass("active");
  648.             var ah = ak.attr("data-animation");
  649.             var ad = ak.attr("data-position");
  650.             var ae = E(".hb-cart-outer .hb-minicart .widget_shopping_cart_content");
  651.             var ai = E(".active-icon-cart-sidebar");
  652.             var af = E(".hb-cart-outer .hb-minicart");
  653.             var aj = E("body > .wrapper-outer");
  654.             ak.animate({
  655.                 opacity: 0
  656.             }, function() {
  657.                 ak.hide()
  658.             });
  659.             setTimeout(function() {
  660.                 E(".hb-cart.sidebar .hb-minicart").html(E("body > .hb-cart-outer .hb-minicart").html()).find("input.edit-number").each(function(al, am) {
  661.                     if (parseInt(E(am).data("value-old")) && E(am).attr("value") != E(am).data("value-old")) {
  662.                         E(am).attr("value", E(am).data("value-old"))
  663.                     }
  664.                 });
  665.                 E("body > .hb-cart-outer").remove();
  666.                 ak.remove();
  667.                 E("html").removeClass("no-scroll");
  668.                 aj.removeAttr("style")
  669.             }, 500);
  670.             var ag = af[0].getBoundingClientRect();
  671.             switch (ad) {
  672.                 case "position-sidebar-right":
  673.                     af.animate({
  674.                         right: "-" + ag.width + "px"
  675.                     });
  676.                     if (ah == "sidebar-push" || ah == "sidebar-fall-down" || ah == "sidebar-fall-up") {
  677.                         aj.animate({
  678.                             right: "0px"
  679.                         })
  680.                     }
  681.                     switch (ah) {
  682.                         case "sidebar-slide-in-on-top":
  683.                             break;
  684.                         case "sidebar-push":
  685.                             break;
  686.                         case "sidebar-fall-down":
  687.                             ae.animate({
  688.                                 top: "-300px"
  689.                             });
  690.                             break;
  691.                         case "sidebar-fall-up":
  692.                             ae.animate({
  693.                                 top: "300px"
  694.                             });
  695.                             break
  696.                     }
  697.                     break;
  698.                 case "position-sidebar-left":
  699.                     af.animate({
  700.                         left: "-" + ag.width + "px"
  701.                     });
  702.                     if (ah == "sidebar-push" || ah == "sidebar-fall-down" || ah == "sidebar-fall-up") {
  703.                         aj.animate({
  704.                             left: "0px"
  705.                         })
  706.                     }
  707.                     switch (ah) {
  708.                         case "sidebar-slide-in-on-top":
  709.                             break;
  710.                         case "sidebar-push":
  711.                             break;
  712.                         case "sidebar-fall-down":
  713.                             ae.animate({
  714.                                 top: "-300px"
  715.                             });
  716.                             break;
  717.                         case "sidebar-fall-up":
  718.                             ae.animate({
  719.                                 top: "300px"
  720.                             });
  721.                             break
  722.                     }
  723.                     break;
  724.                 case "position-sidebar-top":
  725.                     E(".hb-cart-outer .hb-minicart .action-top-bottom").remove();
  726.                     if (ah == "sidebar-slide-in-on-top" || ah == "sidebar-push" || ah == "sidebar-fall-down") {
  727.                         af.animate({
  728.                             top: "-120px"
  729.                         })
  730.                     }
  731.                     if (ah == "sidebar-push" || ah == "sidebar-fall-down" || ah == "sidebar-fall-up") {
  732.                         aj.animate({
  733.                             top: "0px"
  734.                         })
  735.                     }
  736.                     switch (ah) {
  737.                         case "sidebar-slide-in-on-top":
  738.                             break;
  739.                         case "sidebar-push":
  740.                             break;
  741.                         case "sidebar-fall-down":
  742.                             ae.animate({
  743.                                 top: "-150px",
  744.                                 opacity: 0
  745.                             });
  746.                             break;
  747.                         case "sidebar-fall-up":
  748.                             af.css("overflow", "hidden").animate({
  749.                                 top: "-120px"
  750.                             }, function() {
  751.                                 E(this).css("overflow", "")
  752.                             });
  753.                             ae.animate({
  754.                                 top: "150px",
  755.                                 opacity: 0
  756.                             });
  757.                             break
  758.                     }
  759.                     break;
  760.                 case "position-sidebar-bottom":
  761.                     E(".hb-cart-outer .hb-minicart .action-top-bottom").remove();
  762.                     if (ah == "sidebar-slide-in-on-top" || ah == "sidebar-push" || ah == "sidebar-fall-up") {
  763.                         af.animate({
  764.                             bottom: "-120px"
  765.                         })
  766.                     }
  767.                     if (ah == "sidebar-push" || ah == "sidebar-fall-down" || ah == "sidebar-fall-up") {
  768.                         aj.animate({
  769.                             bottom: "0px"
  770.                         })
  771.                     }
  772.                     switch (ah) {
  773.                         case "sidebar-slide-in-on-top":
  774.                             break;
  775.                         case "sidebar-push":
  776.                             break;
  777.                         case "sidebar-fall-down":
  778.                             af.css("overflow", "hidden").animate({
  779.                                 bottom: "-120px"
  780.                             }, function() {
  781.                                 E(this).css("overflow", "initial")
  782.                             });
  783.                             ae.animate({
  784.                                 top: "-150px",
  785.                                 opacity: 0
  786.                             });
  787.                             break;
  788.                         case "sidebar-fall-up":
  789.                             ae.animate({
  790.                                 top: "150px",
  791.                                 opacity: 0
  792.                             });
  793.                             break
  794.                     }
  795.                     break
  796.             }
  797.             setTimeout(function() {
  798.                 aj.removeAttr("style");
  799.                 af.removeAttr("style");
  800.                 E(".hb-cart-outer .hb-minicart").removeAttr("style");
  801.                 ae.removeAttr("style");
  802.                 ak.removeAttr("style")
  803.             }, 500)
  804.         }
  805.         if (E.fn.hoverIntent) {
  806.             E("body").hoverIntent({
  807.                 over: function() {
  808.                     var aj = E(this);
  809.                     var am = aj.find(".hb-minicart-outer:first");
  810.                     var ah = aj.find(".link-cart:first")[0].getBoundingClientRect();
  811.                     am.removeAttr("style");
  812.                     var ad = am[0].getBoundingClientRect();
  813.                     var ag = E(window).width(),
  814.                         ak = E(window).height();
  815.                     var aq = (ag > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  816.                     if (ag < (ad.right + 5 + aq)) {
  817.                         var an = ((ad.right + 5) - ag) + aq;
  818.                         am.css("left", -an + "px")
  819.                     } else {
  820.                         if (ad.left < (5 + aq)) {
  821.                             am.css("left", "5px")
  822.                         }
  823.                     }
  824.                     aj.addClass("active-dropdown");
  825.                     var al = (aj.attr("data-margin-top") == "empty") ? aj.attr("data-margin-top") : parseInt(aj.attr("data-margin-top"));
  826.                     if (aj.closest(".sticky-row-scroll").length || al == "empty") {
  827.                         var af = aj[0].getBoundingClientRect();
  828.                         var ap = aj.closest((aj.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer"))[0].getBoundingClientRect();
  829.                         var ao = parseInt(ap.bottom - ah.bottom);
  830.                         var ai = parseInt(ap.bottom - ah.top);
  831.                         if (aj.find(".hover-area").length == 0) {
  832.                             aj.append('<span class="hover-area" style="height:' + ao + 'px"></span>')
  833.                         }
  834.                         am.css("top", ai)
  835.                     } else {
  836.                         if (al > 0) {
  837.                             if (aj.find(".hover-area").length == 0) {
  838.                                 aj.append('<span class="hover-area" style="height:' + al + 'px"></span>')
  839.                             }
  840.                             var af = aj[0].getBoundingClientRect();
  841.                             am.css("top", (al + ah.height))
  842.                         }
  843.                     }
  844.                     ad = am[0].getBoundingClientRect();
  845.                     if (ad.bottom > ak) {
  846.                         var ae = ad.height - (ad.bottom - ak) - 5;
  847.                         am.css({
  848.                             overflowY: "scroll",
  849.                             height: ae
  850.                         })
  851.                     }
  852.                 },
  853.                 out: function() {
  854.                     var ad = E(this);
  855.                     ad.removeClass("active-dropdown");
  856.                     ad.find(".hover-area").remove()
  857.                 },
  858.                 timeout: 0,
  859.                 sensitivity: 1,
  860.                 interval: 0,
  861.                 selector: ".hb-cart.dropdown"
  862.             })
  863.         }
  864.         E("body").on("click", ".hb-cart-outer.cart-slider .control .prev", function() {
  865.             var ah = E(this);
  866.             var af = ah.closest(".hb-cart-outer");
  867.             var ae = parseInt(af.attr("data-items"));
  868.             if (af.attr("data-item") >= ae) {
  869.                 return
  870.             }
  871.             var ag = (af.attr("data-item") == undefined) ? 1 : (parseInt(af.attr("data-item")) + 1);
  872.             var ad = af.find(".cart_list");
  873.             af.attr("data-item", ag);
  874.             ad.css("right", -(ag * 80));
  875.             if (ae == ag) {
  876.                 ah.addClass("disabled")
  877.             }
  878.             E(".hb-cart-outer.cart-slider .control .next").removeClass("disabled")
  879.         });
  880.         E("body").on("click", ".hb-cart-outer.cart-slider .control .next", function() {
  881.             var ag = E(this);
  882.             var ae = ag.closest(".hb-cart-outer");
  883.             if (ae.attr("data-item") == undefined || ae.attr("data-item") == 0) {
  884.                 return
  885.             }
  886.             var af = parseInt(ae.attr("data-item")) - 1;
  887.             var ad = ae.find(".cart_list");
  888.             ae.attr("data-item", af);
  889.             if (af == 0) {
  890.                 ag.addClass("disabled")
  891.             }
  892.             E(".hb-cart-outer.cart-slider .control .prev").removeClass("disabled");
  893.             ad.css("right", -(af * 80))
  894.         });
  895.         E("body").on("click", ".widget_shopping_cart_content .remove-item .remove", function(af) {
  896.             af.preventDefault();
  897.             var ag = E(this),
  898.                 ae = ag.closest(".hb-minicart"),
  899.                 ad = ag.attr("data-product_id");
  900.             ag.addClass("loading");
  901.             E.ajax({
  902.                 type: "POST",
  903.                 url: WRAjaxURL,
  904.                 data: {
  905.                     action: "wr_product_remove",
  906.                     cart_item_key: ad
  907.                 },
  908.                 success: function(aj) {
  909.                     if (aj) {
  910.                         aj = E.parseJSON(aj);
  911.                         if (ae.hasClass("position-sidebar-top") || ae.hasClass("position-sidebar-bottom")) {
  912.                             var ah = ag.closest(".cart-slider");
  913.                             if (ah.length) {
  914.                                 var ai = parseInt(ah.attr("data-items"));
  915.                                 ah.attr("data-items", (ai - 1));
  916.                                 if (ai == 1) {
  917.                                     ah.removeClass("cart-slider");
  918.                                     ah.find(".cart_list-outer").removeAttr("style")
  919.                                 }
  920.                             }
  921.                             E('li[data-key="' + ad + '"]').hide(300, function() {
  922.                                 E('li[data-key="' + ad + '"]').remove()
  923.                             })
  924.                         } else {
  925.                             E('li[data-key="' + ad + '"]').slideUp(300, function() {
  926.                                 E('li[data-key="' + ad + '"]').remove()
  927.                             })
  928.                         }
  929.                         if (E(".mini-price").length) {
  930.                             E(".mini-price").html(aj.price_total)
  931.                         }
  932.                         if (E(".hb-cart .cart-control .count").length) {
  933.                             E(".hb-cart .cart-control .count").html(aj.count_product)
  934.                         }
  935.                         if (aj.count_product == 0) {
  936.                             if (E(".hb-minicart .total").length) {
  937.                                 E(".hb-minicart .total").hide()
  938.                             }
  939.                             if (E(".hb-minicart .buttons").length) {
  940.                                 E(".hb-minicart .buttons").hide()
  941.                             }
  942.                             if (!E(".hb-minicart .product_list_widget .empty").length) {
  943.                                 E(".hb-minicart .product_list_widget").append('<li class="empty">' + aj.empty + "</li>")
  944.                             }
  945.                         }
  946.                     }
  947.                 }
  948.             })
  949.         });
  950.         E(document).ajaxComplete(function(af, aj, ae) {
  951.             var ad = ae.url;
  952.             var ah = (typeof ae.data != "undefined") ? ae.data : "";
  953.             if (ad.search("wc-ajax=add_to_cart") != -1) {
  954.                 if (!isLocalStorageSupported()) {
  955.                     return window.location.reload()
  956.                 }
  957.                 if (ae.data != undefined && aj.responseJSON != undefined && aj.responseJSON.cart_hash != undefined) {
  958.                     var ak = w(ae.data);
  959.                     E.ajax({
  960.                         type: "POST",
  961.                         url: WRAjaxURL,
  962.                         data: {
  963.                             action: "wr_add_to_cart_message",
  964.                             product_id: ak.product_id
  965.                         },
  966.                         success: function(an) {
  967.                             if (an.message == undefined) {
  968.                                 return false
  969.                             }
  970.                             E("body > .wr-notice-cart-outer").remove();
  971.                             var al = '<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">' + an.message + "</div></div></div>";
  972.                             E("body").append(al);
  973.                             var am = E('<span class="close-notice"></span>').click(function() {
  974.                                 E(this).closest(".wr-notice-cart-outer").removeClass("active")
  975.                             });
  976.                             E("body .wr-notice-cart").prepend(am);
  977.                             setTimeout(function() {
  978.                                 E("body > .wr-notice-cart-outer").addClass("active")
  979.                             }, "10");
  980.                             setTimeout(function() {
  981.                                 E("body > .wr-notice-cart-outer").removeClass("active")
  982.                             }, "5000")
  983.                         }
  984.                     })
  985.                 } else {
  986.                     if (ae.data != undefined && aj.responseJSON != undefined && aj.responseJSON.error == true) {
  987.                         E.ajax({
  988.                             type: "POST",
  989.                             url: WRAjaxURL,
  990.                             data: {
  991.                                 action: "wr_add_to_cart_error"
  992.                             },
  993.                             success: function(an) {
  994.                                 if (an.message == undefined) {
  995.                                     return false
  996.                                 }
  997.                                 E("body > .wr-notice-cart-outer").remove();
  998.                                 var al = '<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">' + an.message + "</div></div></div>";
  999.                                 E("body").append(al);
  1000.                                 var am = E('<span class="close-notice"></span>').click(function() {
  1001.                                     E(this).closest(".wr-notice-cart-outer").removeClass("active")
  1002.                                 });
  1003.                                 E("body .wr-notice-cart").prepend(am);
  1004.                                 setTimeout(function() {
  1005.                                     E("body > .wr-notice-cart-outer").addClass("active")
  1006.                                 }, "10");
  1007.                                 setTimeout(function() {
  1008.                                     E("body > .wr-notice-cart-outer").removeClass("active")
  1009.                                 }, "5000")
  1010.                             }
  1011.                         })
  1012.                     }
  1013.                 }
  1014.             }
  1015.             if (ae.data != undefined) {
  1016.                 var ak = w(ae.data);
  1017.                 if (ak.action == "add_to_wishlist") {
  1018.                     E("body > .wr-notice-cart-outer").remove();
  1019.                     var ag = '<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="fa fa-heart-o"></i></div><div class="text-notice"><div> ' + aj.responseJSON.message + ' </div><a class="db" href="' + aj.responseJSON.wishlist_url + '">' + WR_Data_Js["View Wishlist"] + "</a></div></div></div>";
  1020.                     E("body").append(ag);
  1021.                     var ai = E('<span class="close-notice"></span>').click(function() {
  1022.                         E(this).closest(".wr-notice-cart-outer").removeClass("active")
  1023.                     });
  1024.                     E("body .wr-notice-cart").prepend(ai);
  1025.                     setTimeout(function() {
  1026.                         E("body > .wr-notice-cart-outer").addClass("active")
  1027.                     }, "10");
  1028.                     setTimeout(function() {
  1029.                         E("body > .wr-notice-cart-outer").removeClass("active")
  1030.                     }, "5000")
  1031.                 }
  1032.             }
  1033.             if (ae.data != undefined) {
  1034.                 var ak = w(ae.data);
  1035.                 if (ad.search("wc-ajax=add_to_cart") != -1 && ak.remove_from_wishlist_after_add_to_cart != undefined) {
  1036.                     E(".woocommerce-message").hide();
  1037.                     setTimeout(function() {
  1038.                         if (E(".wishlist_table tbody tr").length <= 1) {
  1039.                             E(".wishlist_table").remove();
  1040.                             E("#yith-wcwl-form").addClass("empty")
  1041.                         }
  1042.                     }, 1000)
  1043.                 }
  1044.             }
  1045.         });
  1046.         E(document.body).on("wc_fragments_loaded wc_fragments_refreshed added_to_cart", function() {
  1047.             if (isLocalStorageSupported()) {
  1048.                 if (window.wc_cart_fragments_params !== undefined && wc_cart_fragments_params.fragment_name !== undefined) {
  1049.                     var ad = E.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name));
  1050.                     if (ad && typeof ad.wr_total_price != "undefined" && typeof ad.wr_count_item != "undefined") {
  1051.                         E(".hb-cart .cart-control .count").html(ad.wr_count_item);
  1052.                         E(".mini-price").html(ad.wr_total_price)
  1053.                     }
  1054.                 }
  1055.             }
  1056.         });
  1057.         var ac;
  1058.         E("body").on("blur change", ".widget_shopping_cart_content .edit-number", function() {
  1059.             var ak = E(this),
  1060.                 ag = ak.closest(".mini_cart_item"),
  1061.                 af = ag.attr("data-key"),
  1062.                 ae = ak.val(),
  1063.                 ad = ak.closest(".hb-minicart").attr("data-slidebar-position"),
  1064.                 aj = ak.attr("data-max"),
  1065.                 ai = ak.attr("data-value-old"),
  1066.                 ah = ag.find(".multiplication");
  1067.             ah.removeClass("loading");
  1068.             if (ac) {
  1069.                 clearTimeout(ac)
  1070.             }
  1071.             ac = setTimeout(function() {
  1072.                 if (ae == "" || ae == 0 || ai == ae) {
  1073.                     return
  1074.                 }
  1075.                 if (aj && parseInt(ae) > parseInt(aj)) {
  1076.                     var al = WR_Data_Js.wr_error_cannot_add,
  1077.                         al = al.replace(/%d/g, aj);
  1078.                     alert(al);
  1079.                     return
  1080.                 }
  1081.                 ah.addClass("loading");
  1082.                 E.ajax({
  1083.                     type: "POST",
  1084.                     url: WR_CART_URL,
  1085.                     data: {
  1086.                         "wr-action-cart": "update_cart",
  1087.                         cart_item_key: af,
  1088.                         cart_item_number: ae
  1089.                     },
  1090.                     success: function(am) {
  1091.                         if (am.count_product == 0) {
  1092.                             if (E(".hb-minicart .total").length) {
  1093.                                 E(".hb-minicart .total").hide()
  1094.                             }
  1095.                             if (E(".hb-minicart .buttons").length) {
  1096.                                 E(".hb-minicart .buttons").hide()
  1097.                             }
  1098.                             if (!E(".hb-minicart .product_list_widget .empty").length) {
  1099.                                 E(".hb-minicart .product_list_widget").append('<li class="empty">' + am.empty + "</li>")
  1100.                             }
  1101.                         }
  1102.                         if (E(".mini-price").length) {
  1103.                             E(".mini-price").html(am.price_total)
  1104.                         }
  1105.                         if (E(".hb-cart .cart-control .count").length) {
  1106.                             E(".hb-cart .cart-control .count").html(am.count_product)
  1107.                         }
  1108.                         ah.removeClass("loading");
  1109.                         ak.attr("data-value-old", ae)
  1110.                     }
  1111.                 })
  1112.             }, 50)
  1113.         });
  1114.         if (WR_Data_Js.ajax_add_to_cart_single != "no" || parseInt(WR_Data_Js.buy_now_button_enabled)) {
  1115.             E(window).load(function() {
  1116.                 var ad = document.querySelector("form.cart"),
  1117.                     af;
  1118.                 if (ad) {
  1119.                     af = E._data(ad, "events");
  1120.                     E.WR.form_add_to_cart_events = {};
  1121.                     for (var ah in af) {
  1122.                         if (["click", "submit"].indexOf(ah) < 0) {
  1123.                             continue
  1124.                         }
  1125.                         E.WR.form_add_to_cart_events[ah] = [];
  1126.                         for (var ae = 0; ae < af[ah].length; ae++) {
  1127.                             if (ah == "click") {
  1128.                                 var ag = E(ad).find(af[ah][ae].selector);
  1129.                                 if (ag[0] && ag[0].type != "submit") {
  1130.                                     continue
  1131.                                 }
  1132.                             }
  1133.                             E.WR.form_add_to_cart_events[ah].push({
  1134.                                 handler: af[ah][ae].handler,
  1135.                                 selector: af[ah][ae].selector
  1136.                             })
  1137.                         }
  1138.                         for (var ae = 0, ai = E.WR.form_add_to_cart_events[ah].length; ae < ai; ae++) {
  1139.                             E("form.cart").off(ah, E.WR.form_add_to_cart_events[ah][ae].selector, E.WR.form_add_to_cart_events[ah][ae].handler)
  1140.                         }
  1141.                     }
  1142.                     E("form.cart").on("submit", function(aj) {
  1143.                         if (E.WR.form_add_to_cart_processing) {
  1144.                             aj.preventDefault()
  1145.                         }
  1146.                     })
  1147.                 }
  1148.             });
  1149.             E("body").on("click", ".quickview-modal form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button", function(ad) {
  1150.                 ad.preventDefault();
  1151.                 ad.stopPropagation();
  1152.                 var ae = E(this);
  1153.                 window.wr_add_to_cart_ajax(ae, ad)
  1154.             });
  1155.             E("form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button").click(function(ad) {
  1156.                 var ae = E(this);
  1157.                 ad.preventDefault();
  1158.                 if (!E.WR.form_add_to_cart_processing) {
  1159.                     E.WR.form_add_to_cart_processing = true;
  1160.                     if (typeof yith_wapo_general != "undefined") {
  1161.                         setTimeout(function() {
  1162.                             if (yith_wapo_general.do_submit) {
  1163.                                 window.wr_add_to_cart_ajax(ae, ad)
  1164.                             }
  1165.                         }, 100)
  1166.                     } else {
  1167.                         window.wr_add_to_cart_ajax(ae, ad)
  1168.                     }
  1169.                 } else {
  1170.                     ad.stopPropagation()
  1171.                 }
  1172.             });
  1173.             E(".floating-add-to-cart .floating_button").click(function(ad) {
  1174.                 ad.preventDefault();
  1175.                 ad.stopPropagation();
  1176.                 var ae = E(this);
  1177.                 E("form.cart .single_add_to_cart_button").trigger("click")
  1178.             });
  1179.             window.wr_add_to_cart_ajax = function(ai, af, an) {
  1180.                 var am = ai.closest("form"),
  1181.                     ad = am.serializeArray(),
  1182.                     aj = E(".floating-add-to-cart .floating_button"),
  1183.                     ae = function(at) {
  1184.                         var at = at.match(/<script id="tp-notice-html"[^>]*>(\{"status":[^\r\n]+\})<\/script>/);
  1185.                         if (!at) {
  1186.                             E.ajax({
  1187.                                 type: "POST",
  1188.                                 url: WRAjaxURL,
  1189.                                 data: {
  1190.                                     product_id: ad["add-to-cart"],
  1191.                                     action: "wr_add_to_cart_message",
  1192.                                     url_only: "true"
  1193.                                 },
  1194.                                 success: function(au) {
  1195.                                     if (au != undefined) {
  1196.                                         window.location = au;
  1197.                                         return
  1198.                                     }
  1199.                                 }
  1200.                             });
  1201.                             return
  1202.                         }
  1203.                         at = E.parseJSON(at[1]);
  1204.                         if (typeof an == "function") {
  1205.                             return an(at)
  1206.                         }
  1207.                         if (at.status == "true") {
  1208.                             if (at.redirect != undefined) {
  1209.                                 window.location = at.redirect;
  1210.                                 return
  1211.                             }
  1212.                             E("body > .wr-notice-cart-outer").remove();
  1213.                             var ao = at.notice;
  1214.                             ao = ao.replace(/&quot;/g, '"');
  1215.                             var ap = ao.match(/<a[^>]+>.?[^<]*<\/a[^>]*>/)[0];
  1216.                             ao.replace(/(<a[^>]+>.?[^<]*<\/a[^>]*>)(.*$)/);
  1217.                             ao = ao.replace(/(<a[^>]+>.?[^<]*<\/a[^>]*>)(.*$)/, "$2");
  1218.                             ao = ao.replace(/(".?[^"]*")(.*)/, "<div><b>$1</b>$2</div>");
  1219.                             at.notice = ap + ao;
  1220.                             var aq = '<div class="wr-notice-cart-outer pf ptr"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">' + at.notice + "</div></div></div>";
  1221.                             E("body").append(aq);
  1222.                             var ar = E('<span class="close-notice"></span>').click(function() {
  1223.                                 E(this).closest(".wr-notice-cart-outer").removeClass("active")
  1224.                             });
  1225.                             E("body .wr-notice-cart").prepend(ar);
  1226.                             setTimeout(function() {
  1227.                                 E("body > .wr-notice-cart-outer").addClass("active")
  1228.                             }, 10);
  1229.                             setTimeout(function() {
  1230.                                 E("body > .wr-notice-cart-outer").removeClass("active")
  1231.                             }, 500);
  1232.                             ai.addClass("added");
  1233.                             aj.addClass("added");
  1234.                             E(document.body).trigger("updated_wc_div")
  1235.                         } else {
  1236.                             if (at.status == "false") {
  1237.                                 E("body > .wr-notice-cart-outer").remove();
  1238.                                 var aq = '<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">' + at.notice + "</div></div></div>";
  1239.                                 E("body").append(aq);
  1240.                                 var ar = E('<span class="close-notice"></span>').click(function() {
  1241.                                     E(this).closest(".wr-notice-cart-outer").removeClass("active")
  1242.                                 });
  1243.                                 E("body .wr-notice-cart").prepend(ar);
  1244.                                 setTimeout(function() {
  1245.                                     E("body > .wr-notice-cart-outer").addClass("active")
  1246.                                 }, 10);
  1247.                                 setTimeout(function() {
  1248.                                     E("body > .wr-notice-cart-outer").removeClass("active")
  1249.                                 }, 5000);
  1250.                                 ai.addClass("error");
  1251.                                 aj.addClass("error")
  1252.                             }
  1253.                         }
  1254.                         ai.removeClass("loading");
  1255.                         ai.prop("disabled", false);
  1256.                         aj.removeClass("loading");
  1257.                         aj.prop("disabled", false)
  1258.                     };
  1259.                 ai.prop("disabled", true);
  1260.                 ai.addClass("loading");
  1261.                 ai.removeClass("added error");
  1262.                 aj.addClass("loading");
  1263.                 aj.removeClass("added error");
  1264.                 if (!am.find('input[name="wr-action-cart"]').length) {
  1265.                     am.append('<input type="hidden" name="wr-action-cart" value="add_to_cart" />')
  1266.                 }
  1267.                 for (var ak in E.WR.form_add_to_cart_events) {
  1268.                     for (var ah = 0; ah < E.WR.form_add_to_cart_events[ak].length; ah++) {
  1269.                         if (E.WR.form_add_to_cart_events[ak][ah].handler) {
  1270.                             var al = ai.closest("form");
  1271.                             if (E.WR.form_add_to_cart_events[ak][ah].selector) {
  1272.                                 al = al.find(E.WR.form_add_to_cart_events[ak][ah].selector)
  1273.                             }
  1274.                             if (al.length) {
  1275.                                 E.WR.form_add_to_cart_events[ak][ah].handler.call(al[0], af)
  1276.                             }
  1277.                         }
  1278.                     }
  1279.                 }
  1280.                 if (!isLocalStorageSupported()) {
  1281.                     am.append('<input type="hidden" name="add_to_cart_normally" value="1" />')
  1282.                 } else {
  1283.                     var ag = E("iframe#wr_nitro_add_to_cart_iframe");
  1284.                     if (!ag.length) {
  1285.                         ag = E("<iframe />", {
  1286.                             id: "wr_nitro_add_to_cart_iframe",
  1287.                             name: "wr_nitro_add_to_cart_iframe",
  1288.                             src: "about:blank"
  1289.                         }).css({
  1290.                             position: "absolute",
  1291.                             top: ai.offset().top + "px",
  1292.                             left: ai.offset().left + "px",
  1293.                             width: ai.outerWidth() + "px",
  1294.                             height: ai.outerHeight() + "px",
  1295.                             opacity: 0,
  1296.                             visibility: "hidden"
  1297.                         });
  1298.                         E(document.body).append(ag)
  1299.                     }
  1300.                     ag.show().off("load").on("load", function(ao) {
  1301.                         ae(typeof ao.target.contentDocument.documentElement.outerHTML != "undefined" ? ao.target.contentDocument.documentElement.outerHTML : ao.target.contentDocument.documentElement.innerHTML);
  1302.                         ag.hide()
  1303.                     });
  1304.                     am.attr("target", "wr_nitro_add_to_cart_iframe")
  1305.                 }
  1306.                 E.WR.form_add_to_cart_processing = false;
  1307.                 am.submit()
  1308.             }
  1309.         }
  1310.         E("body").on("show_variation", "form.cart.variations_form", function(af, ae, ad) {
  1311.             af.preventDefault();
  1312.             var ag = E(this);
  1313.             if (ad) {
  1314.                 ag.find(".single_buy_now").removeAttr("disabled").removeClass("disabled");
  1315.                 ag.find(".single_add_to_cart_button").removeAttr("disabled").removeClass("disabled");
  1316.                 ag.find(".woocommerce-variation-add-to-cart").removeAttr("disabled").removeClass("disabled");
  1317.                 E(".floating-add-to-cart button").removeAttr("disabled");
  1318.                 ag.find(".single_buy_now").removeClass("wr-notice-tooltip");
  1319.                 ag.find(".single_buy_now .notice-tooltip").remove();
  1320.                 ag.find(".single_add_to_cart_button").removeClass("wr-notice-tooltip");
  1321.                 ag.find(".single_add_to_cart_button .notice-tooltip").remove();
  1322.                 ag.find(".woocommerce-variation-add-to-cart").removeClass("wr-notice-tooltip");
  1323.                 ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").remove();
  1324.                 E(".floating-add-to-cart button").removeClass("wr-notice-tooltip");
  1325.                 E(".floating-add-to-cart button .notice-tooltip").remove()
  1326.             } else {
  1327.                 ag.find(".single_buy_now").attr("disabled", "disabled").addClass("disabled");
  1328.                 ag.find(".single_add_to_cart_button").attr("disabled", "disabled").addClass("disabled");
  1329.                 ag.find(".woocommerce-variation-add-to-cart").attr("disabled", "disabled").addClass("disabled");
  1330.                 E(".floating-add-to-cart button").attr("disabled", "disabled").addClass("disabled");
  1331.                 if (ag.find(".single_buy_now .notice-tooltip").length == 0) {
  1332.                     ag.find(".single_buy_now").addClass("wr-notice-tooltip");
  1333.                     ag.find(".single_buy_now").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1334.                 }
  1335.                 if (ag.find(".single_add_to_cart_button .notice-tooltip").length == 0) {
  1336.                     ag.find(".single_add_to_cart_button").addClass("wr-notice-tooltip");
  1337.                     ag.find(".single_add_to_cart_button").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1338.                 }
  1339.                 if (ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").length == 0) {
  1340.                     ag.find(".woocommerce-variation-add-to-cart").addClass("wr-notice-tooltip");
  1341.                     ag.find(".woocommerce-variation-add-to-cart").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1342.                 }
  1343.                 if (E(".floating-add-to-cart button .notice-tooltip").length == 0) {
  1344.                     E(".floating-add-to-cart button").addClass("wr-notice-tooltip");
  1345.                     E(".floating-add-to-cart button").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1346.                 }
  1347.             }
  1348.         });
  1349.         E("body").on("hide_variation", "form.cart.variations_form", function(af, ae, ad) {
  1350.             af.preventDefault();
  1351.             var ag = E(this);
  1352.             ag.find(".single_buy_now").attr("disabled", "disabled").addClass("disabled");
  1353.             ag.find(".single_add_to_cart_button").attr("disabled", "disabled").addClass("disabled");
  1354.             ag.find(".woocommerce-variation-add-to-cart").attr("disabled", "disabled").addClass("disabled");
  1355.             E(".floating-add-to-cart button").attr("disabled", "disabled").addClass("disabled");
  1356.             if (ag.find(".single_buy_now .notice-tooltip").length == 0) {
  1357.                 ag.find(".single_buy_now").addClass("wr-notice-tooltip");
  1358.                 ag.find(".single_buy_now").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1359.             }
  1360.             if (ag.find(".single_add_to_cart_button .notice-tooltip").length == 0) {
  1361.                 ag.find(".single_add_to_cart_button").addClass("wr-notice-tooltip");
  1362.                 ag.find(".single_add_to_cart_button").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1363.             }
  1364.             if (ag.find(".woocommerce-variation-add-to-cart .notice-tooltip").length == 0) {
  1365.                 ag.find(".woocommerce-variation-add-to-cart").addClass("wr-notice-tooltip");
  1366.                 ag.find(".woocommerce-variation-add-to-cart").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1367.             }
  1368.             if (E(".floating-add-to-cart button .notice-tooltip").length == 0) {
  1369.                 E(".floating-add-to-cart button").addClass("wr-notice-tooltip");
  1370.                 E(".floating-add-to-cart button").append('<span class="notice-tooltip">' + WR_Data_Js.wr_noice_tooltip + "</span>")
  1371.             }
  1372.         });
  1373.         var ab = function(ae) {
  1374.             var ai = function(al) {
  1375.                 if (al.status == "true") {
  1376.                     var am = WR_Data_Js.checkout_url;
  1377.                     if (parseInt(WR_Data_Js.buy_now_button_action) == 2) {
  1378.                         window.location.href = am
  1379.                     } else {
  1380.                         if (am.indexOf("?") > -1) {
  1381.                             am = am + "&wr-buy-now=check-out"
  1382.                         } else {
  1383.                             am = am + "?wr-buy-now=check-out"
  1384.                         }
  1385.                         if (typeof E.fn.magnificPopup != "undefined") {
  1386.                             E.magnificPopup.close();
  1387.                             setTimeout(function() {
  1388.                                 E.magnificPopup.open({
  1389.                                     items: {
  1390.                                         src: am
  1391.                                     },
  1392.                                     type: "iframe",
  1393.                                     mainClass: "mfp-fade wr-buy-now"
  1394.                                 })
  1395.                             }, 100)
  1396.                         }
  1397.                     }
  1398.                     E(document.body).trigger("updated_wc_div")
  1399.                 } else {
  1400.                     if (al.status == "false") {
  1401.                         E("body > .wr-notice-cart-outer").remove();
  1402.                         var aj = '<div class="wr-notice-cart-outer pf ptr error"><div class="wr-notice-cart"><div class="icon-notice"><i class="nitro-icon-cart-9"></i></div><div class="text-notice">' + al.notice + "</div></div></div>";
  1403.                         E("body").append(aj);
  1404.                         var ak = E('<span class="close-notice"></span>').click(function() {
  1405.                             E(this).closest(".wr-notice-cart-outer").removeClass("active")
  1406.                         });
  1407.                         E("body .wr-notice-cart").prepend(ak);
  1408.                         setTimeout(function() {
  1409.                             E("body > .wr-notice-cart-outer").addClass("active")
  1410.                         }, 10);
  1411.                         setTimeout(function() {
  1412.                             E("body > .wr-notice-cart-outer").removeClass("active")
  1413.                         }, 5000);
  1414.                         ah.addClass("error");
  1415.                         ag.addClass("error")
  1416.                     }
  1417.                 }
  1418.                 ah.removeClass("loading");
  1419.                 ah.prop("disabled", false);
  1420.                 ag.removeClass("loading");
  1421.                 ag.prop("disabled", false)
  1422.             };
  1423.             if (ae === true) {
  1424.                 return ai({
  1425.                     status: "true"
  1426.                 })
  1427.             }
  1428.             ae.preventDefault();
  1429.             ae.stopPropagation();
  1430.             var ah = E(this),
  1431.                 ad = ah.closest("form"),
  1432.                 ag = E(".floating-add-to-cart .floating_button"),
  1433.                 af = function() {
  1434.                     if (!isLocalStorageSupported()) {
  1435.                         ad.append('<input type="hidden" name="buy_now" value="1" />')
  1436.                     }
  1437.                     window.wr_add_to_cart_ajax(ah, ae, ai)
  1438.                 };
  1439.             if (parseInt(WR_Data_Js.buy_now_checkout_type) == 1) {
  1440.                 ah.prop("disabled", true);
  1441.                 ah.addClass("loading");
  1442.                 ah.removeClass("added error");
  1443.                 ag.addClass("loading");
  1444.                 ag.removeClass("error");
  1445.                 E.ajax({
  1446.                     url: WRAjaxURL,
  1447.                     data: {
  1448.                         action: "wr_clear_cart",
  1449.                         _nonce: _nonce_wr_nitro
  1450.                     },
  1451.                     complete: function(aj) {
  1452.                         af()
  1453.                     }
  1454.                 })
  1455.             } else {
  1456.                 af()
  1457.             }
  1458.         };
  1459.         if (parseInt(WR_Data_Js.in_buy_now_process)) {
  1460.             ab(true)
  1461.         }
  1462.         E("form.cart .single_buy_now").click(ab);
  1463.         E("body").on("click", ".quickview-modal form.cart .single_buy_now", ab);
  1464.         E(".floating-add-to-cart .single_buy_now").click(function(ad) {
  1465.             ad.preventDefault();
  1466.             ad.stopPropagation();
  1467.             E("form.cart .single_buy_now").trigger("click")
  1468.         });
  1469.         E(document).on("gform_pre_conditional_logic", function(ad, ae) {
  1470.             setTimeout(function() {
  1471.                 var ag = E("#gform_submit_button_" + ae).is(":visible");
  1472.                 if (!ag) {
  1473.                     var af = E('[id="gform_submit_button_' + ae + '"]');
  1474.                     af.show().prop("disabled", true)
  1475.                 } else {
  1476.                     var ag = E("#gform_submit_button_" + ae).is(":disabled"),
  1477.                         af = E('[id="gform_submit_button_' + ae + '"]');
  1478.                     if (ag) {
  1479.                         af.show().prop("disabled", false)
  1480.                     } else {
  1481.                         af.show().prop("disabled", true)
  1482.                     }
  1483.                 }
  1484.             })
  1485.         });
  1486.         E("body").on("click", ".woocommerce-cart .cart-table .product-remove a", function() {
  1487.             var ae = E(this),
  1488.                 ad = ae.closest("tr").find(".product-name > a").text().trim();
  1489.             E(document).ajaxComplete(function(aj, al, ah) {
  1490.                 var ag = ah.url,
  1491.                     ak = (typeof ah.data != "undefined") ? ah.data : "";
  1492.                 if (ag.indexOf("?remove_item=") != -1) {
  1493.                     var af = E(".woocommerce-message"),
  1494.                         am = af.find("a")[0].outerHTML,
  1495.                         ai = WR_Data_Js.removed_notice.replace("%s", '"' + ad + '"');
  1496.                     E(".woocommerce-message").html(ai + am)
  1497.                 }
  1498.             })
  1499.         })
  1500.     }
  1501.  
  1502.     function s() {
  1503.         E(".hb-sidebar .icon-sidebar").click(function() {
  1504.             E(this).closest(".hb-sidebar").addClass("active");
  1505.             E("html").addClass("no-scroll")
  1506.         });
  1507.         E(".hb-sidebar .content-sidebar > .overlay").click(function() {
  1508.             E(this).closest(".hb-sidebar").removeClass("active");
  1509.             E("html").removeClass("no-scroll")
  1510.         })
  1511.     }
  1512.  
  1513.     function d() {
  1514.         E(".hb-currency .list .item").click(function() {
  1515.             var ad = E(this),
  1516.                 aa = ad.closest("form"),
  1517.                 ac = aa.find(".currency-value"),
  1518.                 ab = ad.attr("data-id");
  1519.             ac.val(ab);
  1520.             aa.submit()
  1521.         })
  1522.     }
  1523.  
  1524.     function o() {
  1525.         E("body.wr-desktop").on("click", ".hb-menu .menu-icon-action", function() {
  1526.             var ap = E(this);
  1527.             var av = ap.parents(".hb-menu");
  1528.             ap.find(".wr-burger-scale").addClass("wr-acitve-burger");
  1529.             var an = av.find(".site-navigator-outer")[0].outerHTML;
  1530.             if (!E("body > .hb-menu-outer").length) {
  1531.                 E("body").append('<div class="hb-menu-outer"></div>')
  1532.             }
  1533.             E("body > .hb-menu-outer").html(an);
  1534.             setTimeout(function() {
  1535.                 var ay = E(".hb-menu-outer .navigator-column").height();
  1536.                 var ax = E(".hb-menu-outer .navigator-column-inner").height();
  1537.                 if (ay < ax) {
  1538.                     E(".hb-menu-outer").addClass("hb-menu-scroll")
  1539.                 }
  1540.             }, 500);
  1541.             if (!E("body > .hb-overlay-menu").length) {
  1542.                 E("body").append('<div class="hb-overlay-menu"></div>')
  1543.             }
  1544.             var ao = ap.attr("data-layout");
  1545.             var aw = ap.attr("data-effect");
  1546.             var am = ap.attr("data-position");
  1547.             var ak = ap.attr("data-animation");
  1548.             var ah = E("body > .wrapper-outer");
  1549.             var aj = E("body > .hb-menu-outer .sidebar-style");
  1550.             var ar = E("body > .hb-menu-outer");
  1551.             var au = E("body > .hb-menu-outer ul.site-navigator");
  1552.             var al = E("body > .hb-overlay-menu");
  1553.             var at = E("body > .hb-menu-outer .fullscreen-style");
  1554.             E("html").addClass("no-scroll");
  1555.             if (ao == "fullscreen") {
  1556.                 switch (aw) {
  1557.                     case "none":
  1558.                         at.show();
  1559.                         break;
  1560.                     case "fade":
  1561.                         at.fadeIn(100);
  1562.                         break;
  1563.                     case "scale":
  1564.                         setTimeout(function() {
  1565.                             at.addClass("scale-active")
  1566.                         }, 100);
  1567.                         break
  1568.                 }
  1569.             } else {
  1570.                 if (ao == "sidebar") {
  1571.                     var ai = aj.innerWidth();
  1572.                     al.attr("data-position", am);
  1573.                     al.attr("data-animation", ak);
  1574.                     al.fadeIn();
  1575.                     aj.css("opacity", 1);
  1576.                     var aq = E("#wpadminbar");
  1577.                     if (aq.length) {
  1578.                         aj.css("top", aq.height() + "px")
  1579.                     } else {
  1580.                         aj.css("top", "0px")
  1581.                     }
  1582.                     switch (am) {
  1583.                         case "left":
  1584.                             aj.css({
  1585.                                 visibility: "visible",
  1586.                                 left: "-" + ai + "px"
  1587.                             }).animate({
  1588.                                 left: "0px"
  1589.                             });
  1590.                             if (ak == "push" || ak == "fall-down" || ak == "fall-up") {
  1591.                                 ah.css({
  1592.                                     position: "relative",
  1593.                                     left: "0px"
  1594.                                 }).animate({
  1595.                                     left: ai + "px"
  1596.                                 })
  1597.                             }
  1598.                             switch (ak) {
  1599.                                 case "slide-in-on-top":
  1600.                                     break;
  1601.                                 case "push":
  1602.                                     break;
  1603.                                 case "fall-down":
  1604.                                     au.css({
  1605.                                         position: "relative",
  1606.                                         top: "-300px"
  1607.                                     }).animate({
  1608.                                         top: "0px"
  1609.                                     });
  1610.                                     break;
  1611.                                 case "fall-up":
  1612.                                     au.css({
  1613.                                         position: "relative",
  1614.                                         top: "300px"
  1615.                                     }).animate({
  1616.                                         top: "0px"
  1617.                                     });
  1618.                                     break
  1619.                             }
  1620.                             break;
  1621.                         case "right":
  1622.                             aj.css({
  1623.                                 visibility: "visible",
  1624.                                 right: "-" + ai + "px"
  1625.                             }).animate({
  1626.                                 right: "0px"
  1627.                             });
  1628.                             if (ak == "push" || ak == "fall-down" || ak == "fall-up") {
  1629.                                 ah.css({
  1630.                                     position: "relative",
  1631.                                     right: "0px"
  1632.                                 }).animate({
  1633.                                     right: ai + "px"
  1634.                                 })
  1635.                             }
  1636.                             switch (ak) {
  1637.                                 case "slide-in-on-top":
  1638.                                     break;
  1639.                                 case "push":
  1640.                                     break;
  1641.                                 case "fall-down":
  1642.                                     au.css({
  1643.                                         position: "relative",
  1644.                                         top: "-300px"
  1645.                                     }).animate({
  1646.                                         top: "0px"
  1647.                                     });
  1648.                                     break;
  1649.                                 case "fall-up":
  1650.                                     au.css({
  1651.                                         position: "relative",
  1652.                                         top: "300px"
  1653.                                     }).animate({
  1654.                                         top: "0px"
  1655.                                     });
  1656.                                     break
  1657.                             }
  1658.                             break
  1659.                     }
  1660.                 }
  1661.             }
  1662.         });
  1663.         E("body").on("click", ".fullscreen-style .close", function() {
  1664.             E(".wr-burger-scale").removeClass("wr-acitve-burger");
  1665.             var aj = E(this);
  1666.             var ai = aj.parents(".hb-menu-outer");
  1667.             var ah = aj.attr("data-effect");
  1668.             switch (ah) {
  1669.                 case "none":
  1670.                     ai.remove();
  1671.                     break;
  1672.                 case "fade":
  1673.                     ai.find(".site-navigator-outer").fadeOut(300, function() {
  1674.                         ai.remove()
  1675.                     });
  1676.                     break;
  1677.                 case "scale":
  1678.                     ai.find(".site-navigator-outer").removeClass("scale-active");
  1679.                     setTimeout(function() {
  1680.                         ai.remove()
  1681.                     }, 300);
  1682.                     break
  1683.             }
  1684.             E("html").removeClass("no-scroll");
  1685.             E("body > .wrapper-outer").removeAttr("style")
  1686.         });
  1687.         E("body").on("click", ".hb-overlay-menu", function() {
  1688.             E(".wr-burger-scale").removeClass("wr-acitve-burger");
  1689.             var ao = E(this);
  1690.             var ai = ao.attr("data-position");
  1691.             var ak = ao.attr("data-animation");
  1692.             var am = E("body > .wrapper-outer");
  1693.             var aj = E("body > .hb-menu-outer .sidebar-style");
  1694.             var an = E("body > .hb-menu-outer ul.site-navigator");
  1695.             var ah = aj.innerWidth();
  1696.             var al = aj.innerHeight();
  1697.             ao.fadeOut();
  1698.             setTimeout(function() {
  1699.                 E("body > .hb-menu-outer").remove();
  1700.                 ao.remove();
  1701.                 E("html").removeClass("no-scroll");
  1702.                 E("body > .wrapper-outer").removeAttr("style")
  1703.             }, 500);
  1704.             switch (ai) {
  1705.                 case "left":
  1706.                     aj.animate({
  1707.                         left: "-" + ah + "px"
  1708.                     });
  1709.                     if (ak == "push" || ak == "fall-down" || ak == "fall-up") {
  1710.                         am.animate({
  1711.                             left: "0px"
  1712.                         })
  1713.                     }
  1714.                     switch (ak) {
  1715.                         case "slide-in-on-top":
  1716.                             break;
  1717.                         case "push":
  1718.                             break;
  1719.                         case "fall-down":
  1720.                             an.animate({
  1721.                                 top: "-300px"
  1722.                             });
  1723.                             break;
  1724.                         case "fall-up":
  1725.                             an.animate({
  1726.                                 top: "300px"
  1727.                             });
  1728.                             break
  1729.                     }
  1730.                     break;
  1731.                 case "right":
  1732.                     aj.animate({
  1733.                         right: "-" + ah + "px"
  1734.                     });
  1735.                     if (ak == "push" || ak == "fall-down" || ak == "fall-up") {
  1736.                         am.animate({
  1737.                             right: "0px"
  1738.                         })
  1739.                     }
  1740.                     switch (ak) {
  1741.                         case "slide-in-on-top":
  1742.                             break;
  1743.                         case "push":
  1744.                             break;
  1745.                         case "fall-down":
  1746.                             an.animate({
  1747.                                 top: "-300px"
  1748.                             });
  1749.                             break;
  1750.                         case "fall-up":
  1751.                             an.animate({
  1752.                                 top: "300px"
  1753.                             });
  1754.                             break
  1755.                     }
  1756.                     break
  1757.             }
  1758.         });
  1759.         E("body").on("click", ".header .menu-more .icon-more", function(aA) {
  1760.             var aw = E(this);
  1761.             var an = aw.closest(".site-navigator-inner");
  1762.             var ah = aw.closest(".menu-more");
  1763.             var am = an.find(".site-navigator");
  1764.             var at = an.find(".nav-more");
  1765.             var av = an.find(" > .site-navigator .item-hidden");
  1766.             var ap = E(".header .menu-more").index(ah);
  1767.             var ao = aw.closest(".element-item");
  1768.             E(".header .menu-more:not(:eq(" + ap + "))").removeClass("active-more");
  1769.             if (ah.hasClass("active-more")) {
  1770.                 ah.removeClass("active-more")
  1771.             } else {
  1772.                 S(aw, ".hb-menu", function(aD) {
  1773.                     ah.removeClass("active-more")
  1774.                 });
  1775.                 at.html("");
  1776.                 at.removeAttr("style");
  1777.                 var az = E(window).width();
  1778.                 var aj = at[0].getBoundingClientRect();
  1779.                 var ay = (az > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  1780.                 if (az < (aj.right + 5)) {
  1781.                     var aq = (aj.right + 5 + ay) - az;
  1782.                     at.css("left", -aq + "px")
  1783.                 } else {
  1784.                     if (aj.left < (5 + ay)) {
  1785.                         at.css("left", "5px")
  1786.                     }
  1787.                 }
  1788.                 var aC = (ao.attr("data-margin-top") == "empty") ? ao.attr("data-margin-top") : parseInt(ao.attr("data-margin-top"));
  1789.                 var ai = ah[0].getBoundingClientRect();
  1790.                 if (aw.closest(".sticky-row-scroll").length || aC == "empty") {
  1791.                     var ak = aw.closest((aw.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer"))[0].getBoundingClientRect();
  1792.                     var al = ai.top + ai.height;
  1793.                     var ax = ak.top + ak.height;
  1794.                     var aB = parseInt(ax - al);
  1795.                     var au = parseInt(aB + ai.height);
  1796.                     at.css("top", au)
  1797.                 } else {
  1798.                     if (aC > 0) {
  1799.                         at.css("top", (aC + ai.height))
  1800.                     }
  1801.                 }
  1802.                 if (av.length) {
  1803.                     var ar = "";
  1804.                     E.each(av, function() {
  1805.                         ar += E(this)[0].outerHTML
  1806.                     });
  1807.                     at.html('<ul class="animation-' + ao.attr("data-animation") + " " + am.attr("class") + '">' + ar + "</ul>")
  1808.                 }
  1809.                 setTimeout(function() {
  1810.                     ah.addClass("active-more")
  1811.                 }, 10)
  1812.             }
  1813.         });
  1814.         if (E.fn.hoverIntent) {
  1815.             var ad = function(aC) {
  1816.                 var aH = "";
  1817.                 var aJ = aC[0].getBoundingClientRect();
  1818.                 var aF = E(window).width();
  1819.                 var ar = (aF > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  1820.                 var aL = (aC.closest(".hb-menu").attr("data-margin-top") == "empty") ? aC.closest(".hb-menu").attr("data-margin-top") : parseInt(aC.closest(".hb-menu").attr("data-margin-top"));
  1821.                 if (aC.hasClass("wrmm-item")) {
  1822.                     var ax = aC.find(" > .mm-container-outer");
  1823.                     ax.attr("style", "display:block");
  1824.                     var ai = aC.closest(".container")[0].getBoundingClientRect();
  1825.                     var aF = E(window).width();
  1826.                     var aw = ai.width;
  1827.                     var az = ai.right;
  1828.                     var av = 0;
  1829.                     var ao = 0;
  1830.                     var aA = ax.attr("data-width");
  1831.                     if (aA === "full") {
  1832.                         av = aw;
  1833.                         if ((av + 10 + ar * 2) >= aF) {
  1834.                             av = aw - 10;
  1835.                             az -= 5
  1836.                         }
  1837.                     } else {
  1838.                         if (aA === "full-width") {
  1839.                             av = aF - 10 - (ar * 2);
  1840.                             az = 5 + ar
  1841.                         } else {
  1842.                             av = parseInt(aA) ? parseInt(aA) : aw;
  1843.                             if ((av + 10 + ar * 2) >= aF) {
  1844.                                 av = aF - 10 - (ar * 2);
  1845.                                 az -= 5
  1846.                             }
  1847.                         }
  1848.                     }
  1849.                     ax.width(av);
  1850.                     var aG = ax[0].getBoundingClientRect();
  1851.                     if (aA == "full-width") {
  1852.                         ao = -(aG.left - az)
  1853.                     } else {
  1854.                         if (aA == "full") {
  1855.                             ao = ((aG.right - az) > 0) ? -(parseInt(aG.right - az)) : 0
  1856.                         } else {
  1857.                             ao = (aG.right > (aF - 5 - (ar * 2))) ? (-(aG.right - (aF - 5 - ar))) : 0
  1858.                         }
  1859.                     }
  1860.                     aH = {
  1861.                         display: "block",
  1862.                         left: ao,
  1863.                         width: av
  1864.                     };
  1865.                     if (aC.closest(".sticky-row-scroll").length || aL == "empty") {
  1866.                         var ap = aC.closest((aC.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer"))[0].getBoundingClientRect();
  1867.                         var at = aJ.top + aJ.height;
  1868.                         var aD = ap.top + ap.height;
  1869.                         var aI = parseInt(aD - at);
  1870.                         var ay = parseInt(aI + aJ.height);
  1871.                         aH.top = ay;
  1872.                         if (aC.children(".hover-area").length == 0) {
  1873.                             aC.append('<span class="hover-area" style="height:' + (ay - aJ.height) + 'px"></span>')
  1874.                         }
  1875.                     } else {
  1876.                         if (aL > 0) {
  1877.                             aH.top = aL + aJ.height;
  1878.                             if (aC.children(".hover-area").length == 0) {
  1879.                                 aC.append('<span class="hover-area" style="height:' + aL + 'px"></span>')
  1880.                             }
  1881.                         }
  1882.                     }
  1883.                     var aK = ax.find(".mm-container").width();
  1884.                     var aj = 0;
  1885.                     E.each(ax.find(".mm-container > .mm-col"), function() {
  1886.                         var aM = E(this);
  1887.                         var aN = aM.outerWidth();
  1888.                         aj += aN;
  1889.                         aM.removeClass("mm-last-row");
  1890.                         if (aj == aK) {
  1891.                             aM.addClass("mm-last-row");
  1892.                             aj = 0
  1893.                         } else {
  1894.                             if (aj > aK) {
  1895.                                 aM.prev().addClass("mm-last-row");
  1896.                                 aj = aN
  1897.                             }
  1898.                         }
  1899.                     })
  1900.                 } else {
  1901.                     var ax = aC.find(" > ul.sub-menu");
  1902.                     ax.attr("style", "display:block");
  1903.                     if (ax.length == 0) {
  1904.                         return false
  1905.                     }
  1906.                     var aG = ax[0].getBoundingClientRect();
  1907.                     var aF = E(window).width();
  1908.                     var ao = Math.round(aG.right - aF + ar);
  1909.                     if (aC.hasClass("menu-default")) {
  1910.                         ao = (ao > 0) ? (-ao - 5) : 0;
  1911.                         if (aC.closest(".sticky-row-scroll").length || aL == "empty") {
  1912.                             var ap = aC.closest((aC.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer"))[0].getBoundingClientRect();
  1913.                             var at = aJ.top + aJ.height;
  1914.                             var aD = ap.top + ap.height;
  1915.                             var aI = parseInt(aD - at);
  1916.                             var aq = parseInt(aI + aJ.height);
  1917.                             if (aC.children(".hover-area").length == 0) {
  1918.                                 aC.append('<span class="hover-area" style="height:' + (aq - aJ.height) + 'px"></span>')
  1919.                             }
  1920.                         } else {
  1921.                             if (aL > 0) {
  1922.                                 var aq = aL + aJ.height;
  1923.                                 if (aC.children(".hover-area").length == 0) {
  1924.                                     aC.append('<span class="hover-area" style="height:' + aL + 'px"></span>')
  1925.                                 }
  1926.                             }
  1927.                         }
  1928.                     } else {
  1929.                         var aB = aC.closest("ul");
  1930.                         var an = parseInt(aB.css("left"));
  1931.                         if (an < 0) {
  1932.                             var ah = aB[0].getBoundingClientRect();
  1933.                             ao = (aG.width < (ah.left - ar)) ? -aG.width : aG.width
  1934.                         } else {
  1935.                             if (WR_Data_Js.rtl == 1 && aC.hasClass("menu-item-lv1")) {
  1936.                                 ao = -aG.width
  1937.                             } else {
  1938.                                 ao = (ao > 0) ? -aG.width : aG.width
  1939.                             }
  1940.                         }
  1941.                         var am = E(window).height();
  1942.                         var au = E("#wpadminbar").length ? ((E("#wpadminbar").css("position") == "fixed") ? E("#wpadminbar").height() : 0) : 0;
  1943.                         var al = am - (aG.top + aG.height) - ar;
  1944.                         if (aG.height > (am - 10 - au - ar)) {
  1945.                             al = -(aG.top - au - 5 - ar)
  1946.                         } else {
  1947.                             al = al < 5 ? (al - 5) : 0
  1948.                         }
  1949.                     }
  1950.                     aH = {
  1951.                         display: "block",
  1952.                         left: ao
  1953.                     };
  1954.                     if (typeof al !== "undefined") {
  1955.                         aH.top = al
  1956.                     }
  1957.                     if (typeof aq !== "undefined") {
  1958.                         aH.top = aq
  1959.                     }
  1960.                 }
  1961.                 ax.css(aH);
  1962.                 var aE = aC.closest(".hb-menu").attr("data-animation");
  1963.                 switch (aE) {
  1964.                     case "none":
  1965.                         ax.css({
  1966.                             opacity: "1"
  1967.                         });
  1968.                         break;
  1969.                     case "fade":
  1970.                         ax.stop(true, true).css({
  1971.                             pointerEvents: "none"
  1972.                         }).animate({
  1973.                             opacity: "1"
  1974.                         }, 150, function() {
  1975.                             aH.pointerEvents = "";
  1976.                             ax.css(aH)
  1977.                         });
  1978.                         break;
  1979.                     case "left-to-right":
  1980.                         var ao = parseInt(ax.css("left"));
  1981.                         ax.stop(true, true).css({
  1982.                             pointerEvents: "none",
  1983.                             left: (ao - 50) + "px"
  1984.                         }).animate({
  1985.                             opacity: "1",
  1986.                             left: ao + "px"
  1987.                         }, 300, function() {
  1988.                             aH.pointerEvents = "";
  1989.                             ax.css(aH)
  1990.                         });
  1991.                         break;
  1992.                     case "right-to-left":
  1993.                         var ao = parseInt(ax.css("left"));
  1994.                         ax.stop(true, true).css({
  1995.                             pointerEvents: "none",
  1996.                             left: (ao + 50) + "px"
  1997.                         }).animate({
  1998.                             opacity: "1",
  1999.                             left: ao + "px"
  2000.                         }, 300, function() {
  2001.                             aH.pointerEvents = "";
  2002.                             ax.css(aH)
  2003.                         });
  2004.                         break;
  2005.                     case "bottom-to-top":
  2006.                         var ak = parseInt(ax.css("top"));
  2007.                         var ao = parseInt(ax.css("left"));
  2008.                         ax.stop(true, true).css({
  2009.                             pointerEvents: "none",
  2010.                             left: ao + "px",
  2011.                             top: (ak + 30) + "px"
  2012.                         }).animate({
  2013.                             opacity: "1",
  2014.                             top: ak + "px"
  2015.                         }, 300, function() {
  2016.                             aH.pointerEvents = "";
  2017.                             ax.css(aH)
  2018.                         });
  2019.                         break;
  2020.                     case "scale":
  2021.                         var ao = parseInt(ax.css("left"));
  2022.                         ax.css({
  2023.                             pointerEvents: "none",
  2024.                             left: ao + "px",
  2025.                             transform: "scale(0.8)"
  2026.                         }).animate({
  2027.                             opacity: "1",
  2028.                             transform: "scale(1)"
  2029.                         }, 250, function() {
  2030.                             aH.pointerEvents = "";
  2031.                             ax.css(aH)
  2032.                         });
  2033.                         break
  2034.                 }
  2035.                 aC.addClass("menu-hover")
  2036.             };
  2037.             setTimeout(function() {
  2038.                 E(".wr-desktop header.header.horizontal-layout .active-menu").each(function() {
  2039.                     ad(E(this))
  2040.                 })
  2041.             }, 1000);
  2042.             E(".wr-desktop header.header.horizontal-layout").hoverIntent({
  2043.                 over: function() {
  2044.                     var ah = E(this);
  2045.                     if (ah.hasClass("active-menu")) {
  2046.                         return
  2047.                     }
  2048.                     ad(ah)
  2049.                 },
  2050.                 out: function() {
  2051.                     var al = E(this);
  2052.                     if (al.hasClass("active-menu")) {
  2053.                         return
  2054.                     }
  2055.                     al.children(".hover-area").remove();
  2056.                     if (al.hasClass("wrmm-item")) {
  2057.                         var aj = al.find(" > .mm-container-outer")
  2058.                     } else {
  2059.                         var aj = al.find("ul.sub-menu")
  2060.                     }
  2061.                     al.find(" > .menu-item-link .hover-area").removeAttr("style");
  2062.                     var ak = al.closest(".hb-menu").attr("data-animation");
  2063.                     switch (ak) {
  2064.                         case "none":
  2065.                             al.removeClass("menu-hover");
  2066.                             aj.removeAttr("style");
  2067.                             break;
  2068.                         case "fade":
  2069.                             aj.stop(true, true).animate({
  2070.                                 opacity: "0"
  2071.                             }, 150, function() {
  2072.                                 al.removeClass("menu-hover");
  2073.                                 aj.removeAttr("style")
  2074.                             });
  2075.                             break;
  2076.                         case "left-to-right":
  2077.                             var ai = parseInt(aj.css("left")) - 50;
  2078.                             aj.stop(true, true).animate({
  2079.                                 opacity: "0",
  2080.                                 left: ai + "px"
  2081.                             }, 300, function() {
  2082.                                 al.removeClass("menu-hover");
  2083.                                 aj.removeAttr("style")
  2084.                             });
  2085.                             break;
  2086.                         case "right-to-left":
  2087.                             var ai = parseInt(aj.css("left")) + 50;
  2088.                             aj.stop(true, true).animate({
  2089.                                 opacity: "0",
  2090.                                 left: ai + "px"
  2091.                             }, 300, function() {
  2092.                                 al.removeClass("menu-hover");
  2093.                                 aj.removeAttr("style")
  2094.                             });
  2095.                             break;
  2096.                         case "bottom-to-top":
  2097.                             var ah = parseInt(aj.css("top")) + 50;
  2098.                             aj.stop(true, true).animate({
  2099.                                 opacity: "0",
  2100.                                 top: ah + "px"
  2101.                             }, 300, function() {
  2102.                                 al.removeClass("menu-hover");
  2103.                                 aj.removeAttr("style")
  2104.                             });
  2105.                             break;
  2106.                         case "scale":
  2107.                             aj.stop(true, true).animate({
  2108.                                 opacity: "0",
  2109.                                 transform: "scale(0.8)"
  2110.                             }, 250, function() {
  2111.                                 al.removeClass("menu-hover");
  2112.                                 aj.removeAttr("style")
  2113.                             });
  2114.                             break
  2115.                     }
  2116.                 },
  2117.                 timeout: 0,
  2118.                 sensitivity: 1,
  2119.                 interval: 0,
  2120.                 selector: ".site-navigator li.menu-item"
  2121.             });
  2122.             var af = function(az) {
  2123.                 var aC = "";
  2124.                 var aA = E(window).width();
  2125.                 var aw = 0;
  2126.                 if (az.closest(".menu-more").length == 1) {
  2127.                     var ai = az.closest(".menu-more");
  2128.                     var aj = ai[0].getBoundingClientRect();
  2129.                     var aB = aA - aj.right;
  2130.                     if (aj.left > aB) {
  2131.                         aw = 1
  2132.                     }
  2133.                 } else {
  2134.                     aw = az.closest(".vertical-layout.right-position-vertical").length || az.closest(".sidebar-style.right-position").length
  2135.                 }
  2136.                 var aq = (aA > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  2137.                 var aD = az[0].getBoundingClientRect();
  2138.                 var am = E(window).height();
  2139.                 if (az.hasClass("wrmm-item")) {
  2140.                     var av = az.find(" > .mm-container-outer");
  2141.                     av.attr("style", "display:block");
  2142.                     var at = av.attr("data-width");
  2143.                     if (aw == 1) {
  2144.                         var au = aD.left - aq;
  2145.                         if (at == "full" || at > au) {
  2146.                             at = au - 5
  2147.                         }
  2148.                         av.width(at);
  2149.                         var ak = av[0].getBoundingClientRect();
  2150.                         var ar = E("#wpadminbar").length ? ((E("#wpadminbar").css("position") == "fixed") ? E("#wpadminbar").height() : 0) : 0;
  2151.                         var an = am - (ak.top + ak.height) - aq;
  2152.                         if (ak.height > (am - 10 - ar - aq)) {
  2153.                             an = -(ak.top - ar - 5 - aq)
  2154.                         } else {
  2155.                             an = an < 5 ? (an - 5) : 0
  2156.                         }
  2157.                         aC = {
  2158.                             display: "block",
  2159.                             width: at,
  2160.                             left: -at,
  2161.                             top: an
  2162.                         }
  2163.                     } else {
  2164.                         var au = aA - aD.right - aq;
  2165.                         if (at == "full" || at > au) {
  2166.                             at = au - 5
  2167.                         }
  2168.                         av.width(at);
  2169.                         var ak = av[0].getBoundingClientRect();
  2170.                         var ar = E("#wpadminbar").length ? ((E("#wpadminbar").css("position") == "fixed") ? E("#wpadminbar").height() : 0) : 0;
  2171.                         var an = am - (ak.top + ak.height) - aq;
  2172.                         if (ak.height > (am - 10 - ar - aq)) {
  2173.                             an = -(ak.top - ar - 5 - aq)
  2174.                         } else {
  2175.                             an = an < 5 ? (an - 5) : 0
  2176.                         }
  2177.                         aC = {
  2178.                             display: "block",
  2179.                             width: at,
  2180.                             left: parseInt(aD.width),
  2181.                             top: an
  2182.                         }
  2183.                     }
  2184.                 } else {
  2185.                     var av = az.find(" > ul.sub-menu");
  2186.                     if (!av.length) {
  2187.                         return false
  2188.                     }
  2189.                     av.attr("style", "display:block");
  2190.                     var ak = av[0].getBoundingClientRect();
  2191.                     if (az.hasClass("menu-default")) {
  2192.                         if (aw == 1) {
  2193.                             var ap = -parseInt(ak.width)
  2194.                         } else {
  2195.                             var ap = parseInt(aD.width)
  2196.                         }
  2197.                     } else {
  2198.                         var ay = az.closest("ul");
  2199.                         var ah = ay[0].getBoundingClientRect();
  2200.                         var ap = (ak.width > (aA - ah.right - aq - 5)) ? -ak.width : ak.width;
  2201.                         var ao = parseInt(ay.css("left"));
  2202.                         if (ao < 0) {
  2203.                             var ap = (ak.width < ah.left - 5 - aq) ? -ak.width : ak.width
  2204.                         }
  2205.                     }
  2206.                     var ar = E("#wpadminbar").length ? ((E("#wpadminbar").css("position") == "fixed") ? E("#wpadminbar").height() : 0) : 0;
  2207.                     var an = am - (ak.top + ak.height) - aq;
  2208.                     if (ak.height > (am - 10 - ar - aq)) {
  2209.                         an = -(ak.top - ar - 5 - aq)
  2210.                     } else {
  2211.                         an = an < 5 ? (an - 5) : 0
  2212.                     }
  2213.                     aC = {
  2214.                         display: "block",
  2215.                         left: ap,
  2216.                         top: an
  2217.                     }
  2218.                 }
  2219.                 var ax = (az.closest(".menu-more").length == 1) ? az.closest(".element-item").attr("data-animation") : az.closest(".site-navigator-outer").attr("data-effect-vertical");
  2220.                 if (az.closest(".hb-menu-scroll").length && az.hasClass("menu-item-lv0")) {
  2221.                     if (ak.height > (am - 10 - aq * 2 - ar)) {
  2222.                         aC.top = 5
  2223.                     } else {
  2224.                         if ((aD.top + ak.height) > (am - 5 - aq)) {
  2225.                             aC.top = aD.top - ((aD.top + ak.height) - am);
  2226.                             aC.top -= aq * 2 + ar + 5
  2227.                         } else {
  2228.                             aC.top = aD.top - aq - ar
  2229.                         }
  2230.                     }
  2231.                 }
  2232.                 av.css(aC);
  2233.                 switch (ax) {
  2234.                     case "none":
  2235.                         av.css({
  2236.                             visibility: "visible",
  2237.                             opacity: "1"
  2238.                         });
  2239.                         break;
  2240.                     case "fade":
  2241.                         av.stop(true, true).animate({
  2242.                             opacity: "1"
  2243.                         }, 300, function() {
  2244.                             av.css(aC)
  2245.                         });
  2246.                         break;
  2247.                     case "left-to-right":
  2248.                         var ap = parseInt(av.css("left"));
  2249.                         av.stop(true, true).css({
  2250.                             left: (ap - 50) + "px"
  2251.                         }).animate({
  2252.                             opacity: "1",
  2253.                             left: ap + "px"
  2254.                         }, 300, function() {
  2255.                             av.css(aC)
  2256.                         });
  2257.                         break;
  2258.                     case "right-to-left":
  2259.                         var ap = parseInt(av.css("left"));
  2260.                         av.stop(true, true).css({
  2261.                             left: (ap + 50) + "px"
  2262.                         }).animate({
  2263.                             opacity: "1",
  2264.                             left: ap + "px"
  2265.                         }, 300, function() {
  2266.                             av.css(aC)
  2267.                         });
  2268.                         break;
  2269.                     case "bottom-to-top":
  2270.                         var al = parseInt(av.css("top"));
  2271.                         var ap = parseInt(av.css("left"));
  2272.                         av.stop(true, true).css({
  2273.                             left: ap + "px",
  2274.                             top: (al + 50) + "px"
  2275.                         }).animate({
  2276.                             opacity: "1",
  2277.                             top: al + "px"
  2278.                         }, 300, function() {
  2279.                             av.css(aC)
  2280.                         });
  2281.                         break;
  2282.                     case "scale":
  2283.                         av.css({
  2284.                             left: ap + "px",
  2285.                             transform: "scale(0.8)"
  2286.                         }).animate({
  2287.                             opacity: "1",
  2288.                             transform: "scale(1)"
  2289.                         }, 300, function() {
  2290.                             av.css(aC)
  2291.                         });
  2292.                         break
  2293.                 }
  2294.                 az.addClass("menu-hover")
  2295.             };
  2296.             setTimeout(function() {
  2297.                 E(".vertical-layout .text-layout .animation-vertical-normal .active-menu").each(function() {
  2298.                     af(E(this))
  2299.                 })
  2300.             }, 1000);
  2301.             E("body").hoverIntent({
  2302.                 over: function() {
  2303.                     var ah = E(this);
  2304.                     if (ah.hasClass("active-menu")) {
  2305.                         return
  2306.                     }
  2307.                     af(ah)
  2308.                 },
  2309.                 out: function() {
  2310.                     var al = E(this);
  2311.                     if (al.hasClass("active-menu")) {
  2312.                         return
  2313.                     }
  2314.                     if (al.hasClass("wrmm-item")) {
  2315.                         var aj = al.find(" > .mm-container-outer")
  2316.                     } else {
  2317.                         var aj = al.find("ul.sub-menu")
  2318.                     }
  2319.                     var ak = (al.closest(".menu-more").length == 1) ? al.closest(".element-item").attr("data-animation") : al.closest(".site-navigator-outer").attr("data-effect-vertical");
  2320.                     switch (ak) {
  2321.                         case "none":
  2322.                             al.removeClass("menu-hover");
  2323.                             aj.removeAttr("style");
  2324.                             break;
  2325.                         case "fade":
  2326.                             aj.stop(true, true).animate({
  2327.                                 opacity: "0"
  2328.                             }, 300, function() {
  2329.                                 al.removeClass("menu-hover");
  2330.                                 aj.removeAttr("style")
  2331.                             });
  2332.                             break;
  2333.                         case "left-to-right":
  2334.                             var ai = parseInt(aj.css("left")) - 50;
  2335.                             aj.stop(true, true).animate({
  2336.                                 opacity: "0",
  2337.                                 left: ai + "px"
  2338.                             }, 300, function() {
  2339.                                 al.removeClass("menu-hover");
  2340.                                 aj.removeAttr("style")
  2341.                             });
  2342.                             break;
  2343.                         case "right-to-left":
  2344.                             var ai = parseInt(aj.css("left")) + 50;
  2345.                             aj.stop(true, true).animate({
  2346.                                 opacity: "0",
  2347.                                 left: ai + "px"
  2348.                             }, 300, function() {
  2349.                                 al.removeClass("menu-hover");
  2350.                                 aj.removeAttr("style")
  2351.                             });
  2352.                             break;
  2353.                         case "bottom-to-top":
  2354.                             var ah = parseInt(aj.css("top")) + 50;
  2355.                             aj.stop(true, true).animate({
  2356.                                 opacity: "0",
  2357.                                 top: ah + "px"
  2358.                             }, 300, function() {
  2359.                                 al.removeClass("menu-hover");
  2360.                                 aj.removeAttr("style")
  2361.                             });
  2362.                             break;
  2363.                         case "scale":
  2364.                             aj.stop(true, true).animate({
  2365.                                 opacity: "0",
  2366.                                 transform: "scale(0.8)"
  2367.                             }, 300, function() {
  2368.                                 al.removeClass("menu-hover");
  2369.                                 aj.removeAttr("style")
  2370.                             });
  2371.                             break
  2372.                     }
  2373.                 },
  2374.                 timeout: 1,
  2375.                 sensitivity: 6,
  2376.                 interval: 0,
  2377.                 selector: ".vertical-layout .text-layout .animation-vertical-normal .site-navigator li.menu-item, .hb-menu-outer .sidebar-style.animation-vertical-normal .site-navigator li.menu-item, .menu-more .nav-more .site-navigator li.menu-item"
  2378.             })
  2379.         }
  2380.         var ag = {};
  2381.         E("body").on("click", ".mm-container .mm-has-children", function(aq) {
  2382.             aq.preventDefault();
  2383.             var ao = E(this);
  2384.             var aj = ao.closest("ul");
  2385.             var an = ao.closest("li");
  2386.             var al = ao.closest(".mm-col");
  2387.             var ai = an.find(" > ul");
  2388.             aj.addClass("slide-hide");
  2389.             ai.addClass("slide-show");
  2390.             if (!al.find(".prev-slide").length) {
  2391.                 al.find(" > li > ul.sub-menu").prepend('<li class="prev-slide"><i class="fa fa-angle-left"></i></li>')
  2392.             }
  2393.             var am = ao.closest(".mm-col").find(" > li > ul");
  2394.             var ap = ai.height();
  2395.             var ah = am.find(".prev-slide").outerHeight();
  2396.             var ak = ap + ah;
  2397.             if (am.height() < ak) {
  2398.                 am.height(ak)
  2399.             }
  2400.         });
  2401.         E("body").on("click", ".mm-container .prev-slide", function(al) {
  2402.             var am = E(this);
  2403.             var aj = am.closest(".mm-col");
  2404.             var ai = am.closest(".mm-container");
  2405.             var ak = aj.find(".slide-show:last").removeClass("slide-show");
  2406.             var ah = aj.find(".slide-hide:last");
  2407.             if (aj.find(".slide-hide").length == 1) {
  2408.                 am.closest("ul").css("height", "");
  2409.                 am.remove()
  2410.             }
  2411.             ah.removeClass("slide-hide")
  2412.         });
  2413.         E("body").on("click", ".vertical-layout .hb-menu .animation-vertical-slide .icon-has-children, .hb-menu-outer .animation-vertical-slide .icon-has-children", function(ay) {
  2414.             ay.preventDefault();
  2415.             var au = E(this);
  2416.             var ak = au.closest(".site-navigator-outer");
  2417.             var am = au.closest("li");
  2418.             var aj = am.find(" > ul > li");
  2419.             var an = au.closest("ul");
  2420.             var aq = an.find(" > li ");
  2421.             var ar = Object.keys(ag).length + 1;
  2422.             var al = au.closest("a").find(".menu_title").text();
  2423.             var ap = am.find((am.hasClass("wrmm-item") ? " .mm-container-outer " : " > ul "));
  2424.             var av = ap.height();
  2425.             var at = ak.find(".site-navigator");
  2426.             var ao = at.height();
  2427.             var ah = "";
  2428.             if (av > ao) {
  2429.                 at.attr("style", "height:" + av + "px;")
  2430.             }
  2431.             am.addClass("active-slide").addClass("slide-level-" + ar);
  2432.             if (!am.find(" > ul > li.menu-item-has-children").length) {
  2433.                 am.find(" > ul ").addClass("not-padding-icon")
  2434.             }
  2435.             if (aq.length) {
  2436.                 var az = aq.length;
  2437.                 aq.each(function(aA, aB) {
  2438.                     setTimeout(function() {
  2439.                         E(aB).addClass("slide-left");
  2440.                         if (az == (aA + 1)) {
  2441.                             if (am.hasClass("wrmm-item")) {
  2442.                                 am.addClass("slide-normal")
  2443.                             }
  2444.                         }
  2445.                     }, 100 * aA)
  2446.                 })
  2447.             }
  2448.             if (aj.length && !am.hasClass("wrmm-item")) {
  2449.                 setTimeout(function() {
  2450.                     aj.each(function(aA, aB) {
  2451.                         setTimeout(function() {
  2452.                             E(aB).addClass("slide-normal")
  2453.                         }, 100 * aA)
  2454.                     })
  2455.                 }, 100)
  2456.             }
  2457.             ag[ar] = al;
  2458.             ak.find(".menu-breadcrumbs-outer").addClass("show-breadcrumbs");
  2459.             ak.find(".item-breadcrumbs").remove();
  2460.             if (Object.keys(ag).length) {
  2461.                 E.each(ag, function(aA, aB) {
  2462.                     ah += '<div class="element-breadcrumbs item-breadcrumbs"><i class="fa fa-long-arrow-right"></i><span class="title-breadcrumbs" data-level="' + aA + '">' + aB + "</span></div>"
  2463.                 })
  2464.             }
  2465.             ak.find(".menu-breadcrumbs").append(ah);
  2466.             if (ak.hasClass("fullscreen-style")) {
  2467.                 var aw = au.closest(".navigator-column-inner")[0].getBoundingClientRect();
  2468.                 var ax = E(window).width();
  2469.                 var ai = ax - aw.left;
  2470.                 ak.find(".menu-breadcrumbs-outer").css("width", parseInt(ai));
  2471.                 au.closest(".navigator-column-inner").width(aw.width)
  2472.             }
  2473.         });
  2474.         E("body").on("click", ".vertical-layout .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs, .hb-menu-outer .animation-vertical-slide .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs", function() {
  2475.             var al = E(this);
  2476.             var ak = al.attr("data-level");
  2477.             var aj = al.closest(".site-navigator-outer");
  2478.             var ai = Object.keys(ag).length;
  2479.             var ah = al.closest(".menu-breadcrumbs");
  2480.             if (ak == ai) {
  2481.                 return
  2482.             }
  2483.             if (aj.find(".slide-level-" + ai + ".wrmm-item").length) {
  2484.                 aj.find(".slide-level-" + ai + ".wrmm-item").removeClass("slide-normal")
  2485.             } else {
  2486.                 aj.find(".slide-level-" + ai + "> ul > li").each(function(am, an) {
  2487.                     setTimeout(function() {
  2488.                         E(an).removeClass("slide-normal")
  2489.                     }, 100 * am)
  2490.                 })
  2491.             }
  2492.             if (ak == "all") {
  2493.                 setTimeout(function() {
  2494.                     var am = aj.find(".site-navigator > li").length;
  2495.                     aj.find(".site-navigator > li").each(function(an, ao) {
  2496.                         setTimeout(function() {
  2497.                             E(ao).removeClass("slide-left");
  2498.                             if (am == (an + 1)) {
  2499.                                 E(ao).closest(".site-navigator").removeAttr("style");
  2500.                                 aj.find(".slide-normal").removeClass("slide-normal");
  2501.                                 aj.find(".slide-left").removeClass("slide-left");
  2502.                                 for (var ap = 1; ap <= ai; ap++) {
  2503.                                     aj.find(".slide-level-" + ap).removeClass("slide-level-" + ap)
  2504.                                 }
  2505.                                 aj.find(".active-slide").removeClass("active-slide");
  2506.                                 al.closest(".menu-breadcrumbs-outer").removeClass("show-breadcrumbs");
  2507.                                 setTimeout(function() {
  2508.                                     ag = {};
  2509.                                     ah.find(".item-breadcrumbs").remove()
  2510.                                 }, 300)
  2511.                             }
  2512.                         }, 100 * an)
  2513.                     })
  2514.                 }, 100)
  2515.             } else {
  2516.                 setTimeout(function() {
  2517.                     var am = aj.find(".slide-level-" + ak + " > ul > li").length;
  2518.                     aj.find(".slide-level-" + ak + " > ul > li").each(function(an, ao) {
  2519.                         setTimeout(function() {
  2520.                             E(ao).removeClass("slide-left");
  2521.                             if (am == (an + 1)) {
  2522.                                 aj.find(".slide-level-" + ak + " ul ul .slide-normal").removeClass("slide-normal");
  2523.                                 aj.find(".slide-level-" + ak + " ul ul .slide-left").removeClass("slide-left");
  2524.                                 for (var ap = ak; ap <= ai; ap++) {
  2525.                                     if (ap != ak) {
  2526.                                         aj.find(".slide-level-" + ap).removeClass("slide-level-" + ap)
  2527.                                     }
  2528.                                 }
  2529.                                 aj.find(".slide-level-" + ak + " .active-slide").removeClass("active-slide");
  2530.                                 for (var ap = ak; ap <= ai; ap++) {
  2531.                                     if (ap != ak) {
  2532.                                         delete ag[ap];
  2533.                                         ah.find('.title-breadcrumbs[data-level="' + ap + '"]').parent().remove()
  2534.                                     }
  2535.                                 }
  2536.                             }
  2537.                         }, 100 * an)
  2538.                     })
  2539.                 }, 100)
  2540.             }
  2541.         });
  2542.         E("body").on("click", ".vertical-layout .hb-menu .animation-vertical-accordion .icon-has-children, .hb-menu-outer .animation-vertical-accordion .icon-has-children", function(ai) {
  2543.             ai.preventDefault();
  2544.             var aj = E(this);
  2545.             var ah = aj.closest("li");
  2546.             if (ah.hasClass("active-accordion")) {
  2547.                 ah.removeClass("active-accordion");
  2548.                 if (ah.find(" > .mm-container-outer").length) {
  2549.                     ah.find(" > .mm-container-outer").stop(true, true).slideUp(300)
  2550.                 } else {
  2551.                     ah.find(" > .sub-menu").stop(true, true).slideUp(300)
  2552.                 }
  2553.             } else {
  2554.                 ah.addClass("active-accordion");
  2555.                 if (ah.find(" > .mm-container-outer").length) {
  2556.                     ah.find(" > .mm-container-outer").stop(true, true).slideDown(300)
  2557.                 } else {
  2558.                     ah.find(" > .sub-menu").stop(true, true).slideDown(300)
  2559.                 }
  2560.             }
  2561.         });
  2562.  
  2563.         function ac(ah) {
  2564.             var ai = 0;
  2565.             E.each(ah, function() {
  2566.                 var ak = E(this);
  2567.                 if (ak.hasClass("hb-menu") && ak.hasClass("text-layout")) {
  2568.                     var aj = (ak.outerWidth(true) - ak.find(".site-navigator-outer").width()) + 47;
  2569.                     ai += aj
  2570.                 } else {
  2571.                     var aj = ak.outerWidth(true);
  2572.                     ai += aj
  2573.                 }
  2574.             });
  2575.             return ai
  2576.         }
  2577.  
  2578.         function ae(am, an, ak) {
  2579.             var ah = 0;
  2580.             var aj = 0;
  2581.             E.each(am, function() {
  2582.                 var ap = E(this);
  2583.                 var ao = ap.outerWidth(true);
  2584.                 ah += ao
  2585.             });
  2586.             if (ah < an) {
  2587.                 aj = an - ah
  2588.             }
  2589.             if (aj) {
  2590.                 var ai = ak.prevAll(".hb-flex");
  2591.                 if (ai.length) {
  2592.                     var al = parseInt(aj / ai.length);
  2593.                     ai.width(al);
  2594.                     ai.addClass("not-flex")
  2595.                 } else {
  2596.                     ak.css("marginLeft", (aj + parseInt(ak.css("marginLeft"))))
  2597.                 }
  2598.             }
  2599.         }
  2600.  
  2601.         function aa() {
  2602.             E.each(E(".horizontal-layout .hb-section-outer"), function() {
  2603.                 var aw = E(this);
  2604.                 var at = aw.find(".hb-menu.text-layout");
  2605.                 var ak = aw.find(".element-item.center-element");
  2606.                 var aj = aw.find(".hb-flex");
  2607.                 if (at.length) {
  2608.                     at.find(".site-navigator > .menu-item").removeClass("item-hidden");
  2609.                     at.find(".menu-more").remove();
  2610.                     aw.find(".center-element").removeAttr("style");
  2611.                     aj.removeAttr("style");
  2612.                     aj.removeClass("not-flex");
  2613.                     if (ak.hasClass("hb-menu") && ak.hasClass("text-layout")) {
  2614.                         var ao = aw.find(".hb-section > .container");
  2615.                         var au = ao[0].getBoundingClientRect();
  2616.                         var an = au.width - (parseInt(ao.css("borderLeftWidth")) + parseInt(ao.css("borderRightWidth")) + parseInt(ao.css("paddingLeft")) + parseInt(ao.css("paddingRight")));
  2617.                         var aq = ak.prevAll(':not(".hb-flex")');
  2618.                         var ai = ak.nextAll(':not(".hb-flex")');
  2619.                         var av = ac(aq);
  2620.                         var ar = ac(ai);
  2621.                         var am = (av > ar) ? av : ar;
  2622.                         var ah = ak.outerWidth(true);
  2623.                         var al = an - (am * 2);
  2624.                         if (ah >= al) {
  2625.                             ab(ak, al)
  2626.                         }
  2627.                         var ap = parseInt((an - ak.outerWidth(true)) / 2);
  2628.                         ab(aq, ap);
  2629.                         ab(ai, ap);
  2630.                         ae(aq, ap, ak)
  2631.                     } else {
  2632.                         if (ak.length) {
  2633.                             ak.removeAttr("style");
  2634.                             var ao = aw.find(".hb-section > .container");
  2635.                             var au = ao[0].getBoundingClientRect();
  2636.                             var an = au.width - (parseInt(ao.css("borderLeftWidth")) + parseInt(ao.css("borderRightWidth")) + parseInt(ao.css("paddingLeft")) + parseInt(ao.css("paddingRight")));
  2637.                             var ap = parseInt((an - ak.outerWidth(true)) / 2);
  2638.                             var aq = ak.prevAll(':not(".hb-flex")');
  2639.                             var ai = ak.nextAll(':not(".hb-flex")');
  2640.                             ab(aq, ap);
  2641.                             ab(ai, ap);
  2642.                             ae(aq, ap, ak)
  2643.                         } else {
  2644.                             var ao = aw.find(".hb-section > .container");
  2645.                             var au = ao[0].getBoundingClientRect();
  2646.                             var an = au.width - (parseInt(ao.css("borderLeftWidth")) + parseInt(ao.css("borderRightWidth")) + parseInt(ao.css("paddingLeft")) + parseInt(ao.css("paddingRight")));
  2647.                             ab(aw.find(".element-item:not(.hb-flex)"), an)
  2648.                         }
  2649.                     }
  2650.                 } else {
  2651.                     if (ak.length) {
  2652.                         aw.find(".center-element").removeAttr("style");
  2653.                         aw.find(".hb-flex").removeAttr("style");
  2654.                         aj.removeClass("not-flex");
  2655.                         var ao = aw.find(".hb-section > .container");
  2656.                         var au = ao[0].getBoundingClientRect();
  2657.                         var an = au.width - (parseInt(ao.css("borderLeftWidth")) + parseInt(ao.css("borderRightWidth")) + parseInt(ao.css("paddingLeft")) + parseInt(ao.css("paddingRight")));
  2658.                         var ap = parseInt((an - ak.outerWidth(true)) / 2);
  2659.                         var aq = ak.prevAll(':not(".hb-flex")');
  2660.                         ae(aq, ap, ak)
  2661.                     }
  2662.                 }
  2663.             })
  2664.         }
  2665.  
  2666.         function ab(an, am) {
  2667.             var ao = [];
  2668.             var ak = [];
  2669.             E.each(an, function() {
  2670.                 var ar = E(this);
  2671.                 if (ar.hasClass("hb-menu") && ar.hasClass("text-layout")) {
  2672.                     ao.push(ar)
  2673.                 } else {
  2674.                     ak.push(ar)
  2675.                 }
  2676.             });
  2677.             var ap = ao.length;
  2678.             E.each(ak, function() {
  2679.                 am -= E(this).outerWidth(true)
  2680.             });
  2681.             var ai = parseInt(am / ap);
  2682.             var ah = 0;
  2683.             var al = false;
  2684.             var aq = [];
  2685.             var aj = 0;
  2686.             E.each(ao, function() {
  2687.                 var ar = E(this).outerWidth(true);
  2688.                 if (ar < ai) {
  2689.                     ah += ai - ar
  2690.                 } else {
  2691.                     aq.push(aj)
  2692.                 }
  2693.                 aj++
  2694.             });
  2695.             ai += parseInt(ah / aq.length);
  2696.             E.each(aq, function(aA, au) {
  2697.                 var aw = E(ao[au]);
  2698.                 var az = aw.find(".site-navigator > .menu-item");
  2699.                 if (!az.length) {
  2700.                     return
  2701.                 }
  2702.                 var ay = aw.outerWidth(true);
  2703.                 var ar = aw.find(".site-navigator-outer").width();
  2704.                 var ax = ai - ((ay - ar) + 52);
  2705.                 var av = 0;
  2706.                 var at = false;
  2707.                 E.each(az, function(aB, aC) {
  2708.                     av += E(this).outerWidth(true);
  2709.                     if (av >= ax) {
  2710.                         E(this).addClass("item-hidden");
  2711.                         at = true
  2712.                     }
  2713.                 });
  2714.                 if (at) {
  2715.                     aw.find(".site-navigator-inner").append('<div class="menu-more"><div class="icon-more"><span class="wr-burger-menu"></span><i class="fa fa-caret-down"></i></div><div class="nav-more"></div></div>')
  2716.                 }
  2717.             })
  2718.         }
  2719.         aa();
  2720.         E(window).resize(_.debounce(function() {
  2721.             aa()
  2722.         }, 300))
  2723.     }
  2724.  
  2725.     function O() {
  2726.         function aa() {
  2727.             var ak = E(".header .sticky-row");
  2728.             var ap = ak.closest(".hb-section-outer");
  2729.             var ag = ap.height();
  2730.             var aq = ap.offset();
  2731.             var al = aq.top + ag;
  2732.             var ar = E(window).scrollTop();
  2733.             var ao = 0;
  2734.             var ac = 0;
  2735.             var ai = E("#wpadminbar");
  2736.             var an = E(".header .sticky-row .hb-search.dropdown");
  2737.             var aj = E(".header .sticky-row .hb-cart.dropdown");
  2738.             var ab = E(".wr-desktop .header .sticky-row .menu-more");
  2739.             var ad = E(".wr-desktop .header.horizontal-layout .sticky-row .hb-menu.text-layout .menu-item");
  2740.             if (ai.length) {
  2741.                 var ae = E(window).width();
  2742.                 if (ae > 600) {
  2743.                     ac = ai.height();
  2744.                     ak.css("top", ac + "px")
  2745.                 }
  2746.             }
  2747.             ap.height(ag + "px");
  2748.             if (ar > al) {
  2749.                 ak.addClass("sticky-row-scroll")
  2750.             }
  2751.             E.function_rotate_device.sticky_row = function() {
  2752.                 ak.removeClass("sticky-row-scroll").removeClass("sticky-row-scroll-down").removeClass("sticky-row-scroll-up");
  2753.                 ap.removeAttr("style");
  2754.                 ag = ap.height();
  2755.                 ap.height(ag + "px");
  2756.                 aq = ap.offset();
  2757.                 al = aq.top + ag
  2758.             };
  2759.             var am = 106;
  2760.             var af = function() {
  2761.                 ar = E(window).scrollTop();
  2762.                 var av = ak.hasClass("sticky-row-scroll-up");
  2763.                 var at = ak.hasClass("sticky-row-scroll");
  2764.                 if (!av && !at && (ar > (al - ac))) {
  2765.                     an.removeClass("active-dropdown");
  2766.                     aj.removeClass("active-dropdown");
  2767.                     ab.removeClass("active-more");
  2768.                     ad.trigger("mouseleave")
  2769.                 }
  2770.                 if (ar > al) {
  2771.                     if (!at) {
  2772.                         ak.addClass("sticky-row-scroll")
  2773.                     }
  2774.                     if (ar < (al + 150)) {
  2775.                         if (am < 106) {
  2776.                             am += 6;
  2777.                             ak.css("transform", "translateY(-" + am + "%)")
  2778.                         }
  2779.                     } else {
  2780.                         if (ar > ao) {
  2781.                             if (am < 106) {
  2782.                                 am += 6;
  2783.                                 ak.css("transform", "translateY(-" + am + "%)")
  2784.                             }
  2785.                             var au = ak.hasClass("sticky-row-scroll-down");
  2786.                             if (!au) {
  2787.                                 ak.addClass("sticky-row-scroll-down").removeClass("sticky-row-scroll-up")
  2788.                             }
  2789.                         } else {
  2790.                             if (am > 0) {
  2791.                                 am -= 6;
  2792.                                 ak.css("transform", "translateY(-" + am + "%)")
  2793.                             }
  2794.                             if (!av) {
  2795.                                 ak.addClass("sticky-row-scroll-up").removeClass("sticky-row-scroll-down")
  2796.                             }
  2797.                         }
  2798.                     }
  2799.                 } else {
  2800.                     if (at) {
  2801.                         ak.removeClass("sticky-row-scroll").removeClass("sticky-row-scroll-up").removeClass("sticky-row-scroll-down");
  2802.                         ak.css("transform", "");
  2803.                         am = 106
  2804.                     }
  2805.                 }
  2806.                 ao = ar
  2807.             };
  2808.             var ah = function() {
  2809.                 ar = E(window).scrollTop();
  2810.                 if (ar > (aq.top - ac)) {
  2811.                     ak.addClass("sticky-row-scroll")
  2812.                 } else {
  2813.                     ak.removeClass("sticky-row-scroll")
  2814.                 }
  2815.             };
  2816.             if (E(".header .sticky-row").hasClass("sticky-normal")) {
  2817.                 E(window).scroll(ah);
  2818.                 ap.find(".hb-section").height(ag + "px")
  2819.             } else {
  2820.                 E(window).scroll(af)
  2821.             }
  2822.         }
  2823.         if (E(".header .sticky-row").length) {
  2824.             setTimeout(function() {
  2825.                 E(".header").WR_ImagesLoaded(function() {
  2826.                     aa()
  2827.                 })
  2828.             }, 50)
  2829.         }
  2830.     }
  2831.  
  2832.     function R() {
  2833.         var aa = E(".pageloader");
  2834.         if (!aa.length) {
  2835.             return
  2836.         }
  2837.         E(window).on("pageshow", function(ab) {
  2838.             if (ab.originalEvent != undefined && ab.originalEvent.persisted) {
  2839.                 aa.hide();
  2840.                 aa.children().hide()
  2841.             }
  2842.         });
  2843.         E(window).on("beforeunload", function() {
  2844.             aa.fadeIn(300, function() {
  2845.                 aa.children().fadeIn(300)
  2846.             })
  2847.         });
  2848.         aa.fadeOut(800);
  2849.         aa.children().fadeOut("slow")
  2850.     }
  2851.  
  2852.     function U() {
  2853.         var ae = [];
  2854.         var ad = E(".header .site-navigator > li");
  2855.         var aa = E("#wpadminbar").outerHeight();
  2856.         E(".wr-scroll-animated, .wr-scroll-animated *, .menu-item-link").click(function() {
  2857.             if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
  2858.                 var ai = E(this.hash);
  2859.                 if (!this.hash.slice(1)) {
  2860.                     return
  2861.                 }
  2862.                 var ah = E(window).width();
  2863.                 var aj = (ah > 1024) ? parseInt(WR_Data_Js.offset) : 0;
  2864.                 ai = ai.length ? ai : E("[name=" + this.hash.slice(1) + "]");
  2865.                 if (ai.length) {
  2866.                     var af = E(".header .sticky-row");
  2867.                     var ag = parseInt(af.attr("data-height"));
  2868.                     if (!ag) {
  2869.                         ag = af.height()
  2870.                     }
  2871.                     E("html,body").stop().animate({
  2872.                         scrollTop: ai.offset().top - aa - aj + 1 - ag + "px"
  2873.                     }, 1200);
  2874.                     return false
  2875.                 }
  2876.             }
  2877.         });
  2878.         E.each(E(".header .site-navigator > li > a"), function() {
  2879.             var ah = E(this);
  2880.             var af = ah.attr("href");
  2881.             if (af != undefined) {
  2882.                 if (af.match(/^#/gi) != null) {
  2883.                     var ag = E(af);
  2884.                     if (ag.length) {
  2885.                         ae.push(ag)
  2886.                     }
  2887.                 }
  2888.             }
  2889.         });
  2890.         var ac = _.debounce(function() {
  2891.             var ag = E(this);
  2892.             var af = ag.scrollTop();
  2893.             E.each(ae, function() {
  2894.                 var aj = E(this);
  2895.                 var an = aj.offset();
  2896.                 var am = aj.outerHeight();
  2897.                 var ai = aj.attr("id");
  2898.                 var ak = E(".header .sticky-normal.sticky-row-scroll").height();
  2899.                 if (af >= (an.top - aa - ak) && af <= (an.top + am - aa - ak)) {
  2900.                     var al = E('.header .site-navigator > li > a[href="#' + ai + '"]');
  2901.                     var ah = al.closest("li");
  2902.                     ad.removeClass("current-menu-ancestor").removeClass("current-menu-item");
  2903.                     ah.addClass("current-menu-item");
  2904.                     return
  2905.                 }
  2906.             })
  2907.         }, 10);
  2908.         var ab = function() {
  2909.             requestAnimationFrame(ac)
  2910.         };
  2911.         if (ae.length) {
  2912.             E(window).scroll(ab)
  2913.         }
  2914.     }
  2915.  
  2916.     function Z() {
  2917.         var ac = E(".primary-sidebar-sticky");
  2918.         if (!ac.length) {
  2919.             return
  2920.         }
  2921.         var ah = E(window),
  2922.             af = E(".primary-sidebar-inner"),
  2923.             an = parseInt(ac.css("marginTop")),
  2924.             ai = parseInt(af.css("marginTop")),
  2925.             ad = E("#wpadminbar"),
  2926.             al = E(".header .sticky-row"),
  2927.             am = al.attr("data-height"),
  2928.             ab = ad.length ? parseInt(ad.height()) : 0,
  2929.             ag = parseInt(ac.find(".widget:last").css("marginBottom")),
  2930.             aa = false,
  2931.             aj = false;
  2932.         if (ai == 0) {
  2933.             if (an == 0) {
  2934.                 ac.addClass("fixed-margin");
  2935.                 an = 30;
  2936.                 aj = true
  2937.             }
  2938.         } else {
  2939.             an = 0;
  2940.             aa = true
  2941.         }
  2942.         af.width(af.width());
  2943.         var ae = _.debounce(function() {
  2944.             var au = ah.width();
  2945.             if (au <= 785) {
  2946.                 ac.removeClass("fixed-bottom fixed-top");
  2947.                 return
  2948.             }
  2949.             if (au <= 1008) {
  2950.                 var aC = 0
  2951.             } else {
  2952.                 var aC = parseInt(WR_Data_Js.offset)
  2953.             }
  2954.             var ap = af.height(),
  2955.                 av = af.outerHeight(true),
  2956.                 ay = ac.height(),
  2957.                 aA = ah.height(),
  2958.                 aB = al.length ? ((am != 0) ? parseInt(am) : al.height()) : 0,
  2959.                 ax = ab + aB + an + aC,
  2960.                 az = aA - ax - aC;
  2961.             if (ap > az || av >= ay) {
  2962.                 ac.removeClass("fixed-bottom fixed-top");
  2963.                 return
  2964.             }
  2965.             var aw = E(this),
  2966.                 aq = aw.scrollTop(),
  2967.                 at = ac.offset(),
  2968.                 ao = aq + aA,
  2969.                 ay = ac.height(),
  2970.                 aD = at.top + ay + (aA - ap) - ax,
  2971.                 ar = aj ? (ax - an) : ax;
  2972.             if (aa) {
  2973.                 aD -= ai
  2974.             }
  2975.             af.css("top", ar);
  2976.             if (aq > (at.top - ax) && ao < aD) {
  2977.                 if (ac.hasClass("fixed-bottom")) {
  2978.                     ac.removeClass("fixed-bottom")
  2979.                 }
  2980.                 ac.addClass("fixed-top");
  2981.                 ac.addClass("fixing")
  2982.             } else {
  2983.                 if (ao > aD) {
  2984.                     if (ac.hasClass("fixed-top")) {
  2985.                         ac.removeClass("fixed-top")
  2986.                     }
  2987.                     ac.addClass("fixed-bottom");
  2988.                     ac.addClass("fixing")
  2989.                 } else {
  2990.                     ac.removeClass("fixed-bottom fixed-top fixing")
  2991.                 }
  2992.             }
  2993.         }, 10);
  2994.         var ak = function() {
  2995.             requestAnimationFrame(ae)
  2996.         };
  2997.         E(window).scroll(ak);
  2998.         ak()
  2999.     }
  3000.     E.WR.Lightbox = function() {
  3001.         if (typeof E.fn.nivoLightbox == "undefined") {
  3002.             return setTimeout(function() {
  3003.                 E.WR.Lightbox()
  3004.             }, 100)
  3005.         }
  3006.         E('a[data-lightbox^="nivo"]').each(function() {
  3007.             if (!E(this).data("nivo-lightbox-initialized")) {
  3008.                 E(this).nivoLightbox({
  3009.                     effect: "fall",
  3010.                     keyboardNav: true,
  3011.                     clickOverlayToClose: true
  3012.                 });
  3013.                 E(this).data("nivo-lightbox-initialized", true)
  3014.             }
  3015.         })
  3016.     };
  3017.  
  3018.     function u() {
  3019.         if (E(".pagination[layout]").length > 0) {
  3020.             var ag = parseInt(E(".pagination").find(".page-ajax.enable").attr("data-page"));
  3021.             var ai = E(".pagination[layout]").attr("layout");
  3022.             var an = E(".pagination[layout-style]").attr("layout-style");
  3023.             var ab = E("." + ("masonry" == an ? "wr-nitro-masonry" : "products"));
  3024.             var aj = false;
  3025.             var ah = E(".page-ajax"),
  3026.                 al = E(ah).find("a").attr("href"),
  3027.                 ak = ".products",
  3028.                 ao = ".page-ajax a",
  3029.                 af = E(ao).attr("href"),
  3030.                 ae = 2;
  3031.             var ac = E(".products .product").length;
  3032.             var aa = function() {
  3033.                 E.get(al + "", function(aq) {
  3034.                     var at = E(ak, aq).wrapInner("").html(),
  3035.                         ap = E(ak, aq).find(".product");
  3036.                     ac += ap.length;
  3037.                     E(".woocommerce-result-count span").html(ac);
  3038.                     E(at).WR_ImagesLoaded(function() {
  3039.                         af = E(ao, aq).attr("href");
  3040.                         ab.append(ap).isotope("appended", ap)
  3041.                     });
  3042.                     E(ao).text("...");
  3043.                     if (ag > ae) {
  3044.                         if (WR_Data_Js.permalink == "plain") {
  3045.                             var ar = al.replace(/paged=+[0-9]+/gi, "paged=" + (ae + 1))
  3046.                         } else {
  3047.                             var ar = al.replace(/page\/+[0-9]+\//gi, "page/" + (ae + 1) + "/")
  3048.                         }
  3049.                         E(ao).attr("href", ar)
  3050.                     } else {
  3051.                         E(ao).removeAttr("href").addClass("disabled")
  3052.                     }
  3053.                     aj = false;
  3054.                     ae++
  3055.                 })
  3056.             };
  3057.             if (ab.length) {
  3058.                 ab.WR_ImagesLoaded(function() {
  3059.                     if ("masonry" == an) {
  3060.                         ab.isotope({
  3061.                             itemSelector: ".product",
  3062.                             masonry: {
  3063.                                 columnWidth: ".grid-sizer"
  3064.                             }
  3065.                         })
  3066.                     } else {
  3067.                         ab.isotope({
  3068.                             itemSelector: ".product",
  3069.                             layoutMode: "fitRows"
  3070.                         })
  3071.                     }
  3072.                 })
  3073.             }
  3074.             if ("loadmore" == ai) {
  3075.                 E(".page-ajax a").on("click", function(ap) {
  3076.                     ap.preventDefault();
  3077.                     ah = E(".page-ajax");
  3078.                     al = E(ah).find("a").attr("href");
  3079.                     ak = ".products";
  3080.                     ao = ".page-ajax a";
  3081.                     af = E(ao).attr("href");
  3082.                     if (!al) {
  3083.                         return
  3084.                     }
  3085.                     E(ao).html('<i class="fa fa-circle-o-notch fa-spin"></i>');
  3086.                     aa()
  3087.                 })
  3088.             } else {
  3089.                 if ("infinite" == ai) {
  3090.                     var am = function() {
  3091.                         ab = E("." + ("masonry" == an ? "wr-nitro-masonry" : "products"));
  3092.                         ah = E(".page-ajax");
  3093.                         al = E(ah).find("a").attr("href");
  3094.                         ak = ".products";
  3095.                         ao = ".page-ajax a";
  3096.                         af = E(ao).attr("href");
  3097.                         var ap = ab.offset().top + ab.height() - E(window).scrollTop();
  3098.                         if (ap < window.innerHeight && ap > 0 && !aj) {
  3099.                             if (!al) {
  3100.                                 return
  3101.                             }
  3102.                             aj = true;
  3103.                             E(ao).html('<i class="fa fa-circle-o-notch fa-spin"></i>');
  3104.                             aa()
  3105.                         }
  3106.                     };
  3107.                     var ad = function() {
  3108.                         requestAnimationFrame(am)
  3109.                     };
  3110.                     E(window).scroll(ad)
  3111.                 }
  3112.             }
  3113.         }
  3114.     }
  3115.  
  3116.     function e() {
  3117.         if (typeof ScrollReveal != "undefined") {
  3118.             window.sr = ScrollReveal().reveal(".wr-item-animation", {
  3119.                 duration: 700
  3120.             })
  3121.         }
  3122.     }
  3123.     E.WR.Carousel = function() {
  3124.         if (typeof E.fn.owlCarousel == "undefined") {
  3125.             return setTimeout(E.WR.Carousel, 100)
  3126.         }
  3127.         E(".wr-nitro-carousel").each(function() {
  3128.             var al = E(this);
  3129.             if (!al.data("owl-carousel-initialized")) {
  3130.                 if (al.hasClass("exclude-carousel")) {
  3131.                     return
  3132.                 }
  3133.                 var ar = al.data("owl-options");
  3134.                 if (ar !== undefined) {
  3135.                     var an = ("true" == ar.autoplay) ? true : false,
  3136.                         ac = (ar.autoplayTimeout) ? ar.autoplayTimeout : "5000",
  3137.                         ad = ar.items,
  3138.                         ai = ("true" == ar.nav) ? true : false,
  3139.                         at = ("true" == ar.dots) ? true : false,
  3140.                         aq = ("true" == ar.autoplayHoverPause) ? true : false,
  3141.                         ae = ar.desktop,
  3142.                         ao = ar.tablet,
  3143.                         ak = ar.mobile,
  3144.                         am = ar.sm_mobile,
  3145.                         ag = ar.custom_responsive,
  3146.                         ah = ("true" == ar.rtl) ? true : false,
  3147.                         aj = (ar.loop) ? ar.loop : true,
  3148.                         ab = ("true" == ar.autoHeight) ? true : false,
  3149.                         aa = (ar.animateIn) ? ar.animateIn : "",
  3150.                         af = (ar.animateOut) ? ar.animateOut : "",
  3151.                         ap = {
  3152.                             items: 1,
  3153.                             autoplay: an,
  3154.                             autoplayTimeout: ac,
  3155.                             autoplayHoverPause: aq,
  3156.                             nav: ai,
  3157.                             dots: at,
  3158.                             loop: aj,
  3159.                             autoHeight: ab,
  3160.                             smartSpeed: 400,
  3161.                             navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
  3162.                             rtl: ah
  3163.                         };
  3164.                     ap.items = ad;
  3165.                     if (!aa && !ab && "1" != ad && "true" != ag) {
  3166.                         ap.responsive = {
  3167.                             0: {
  3168.                                 items: ak
  3169.                             },
  3170.                             584: {
  3171.                                 items: ao
  3172.                             },
  3173.                             784: {
  3174.                                 items: ad
  3175.                             }
  3176.                         }
  3177.                     } else {
  3178.                         ap.responsive = {
  3179.                             0: {
  3180.                                 items: am
  3181.                             },
  3182.                             376: {
  3183.                                 items: ak
  3184.                             },
  3185.                             601: {
  3186.                                 items: ao
  3187.                             },
  3188.                             769: {
  3189.                                 items: ae
  3190.                             },
  3191.                             993: {
  3192.                                 items: ad
  3193.                             }
  3194.                         }
  3195.                     }
  3196.                     if (aa) {
  3197.                         ap.animateIn = aa
  3198.                     }
  3199.                     if (af) {
  3200.                         ap.animateOut = af
  3201.                     }
  3202.                     al.owlCarousel(ap)
  3203.                 }
  3204.                 al.data("owl-carousel-initialized", true)
  3205.             }
  3206.         })
  3207.     };
  3208.  
  3209.     function A() {
  3210.         var aa = E(".wr-nitro-masonry");
  3211.         aa.each(function(ad, af) {
  3212.             var ae = E(this).data("masonry");
  3213.             if (ae !== undefined) {
  3214.                 var ac = ae.selector,
  3215.                     ab = ae.columnWidth;
  3216.                 E(this).WR_ImagesLoaded(function() {
  3217.                     E(af).isotope({
  3218.                         percentPosition: true,
  3219.                         itemSelector: ac,
  3220.                         masonry: {
  3221.                             columnWidth: ab
  3222.                         }
  3223.                     })
  3224.                 })
  3225.             }
  3226.         })
  3227.     }
  3228.  
  3229.     function h() {
  3230.         var aa = E(".wr-nitro-countdown");
  3231.         aa.each(function(af, ah) {
  3232.             var ag = E(this).data("time");
  3233.             if (ag !== undefined) {
  3234.                 var ae = ag.day,
  3235.                     ad = ag.month,
  3236.                     ac = ag.year,
  3237.                     ab = ad + "/ " + ae + "/ " + ac + " 00:00:00";
  3238.                 E(ah).countdown({
  3239.                     date: ab,
  3240.                     render: function(ai) {
  3241.                         E(this.el).html("<div class='pr'><span class='db color-primary'>" + this.leadingZeros(ai.days, 2) + "</span><span class='db tu ls-1 color-dark'>" + WR_Data_Js.wr_countdown_days + "</span></div><div class='pr'><span class='db color-primary'>" + this.leadingZeros(ai.hours, 2) + "</span><span class='db tu ls-1 color-dark'>" + WR_Data_Js.wr_countdown_hrs + "</span></div><div class='pr'><span class='db color-primary'>" + this.leadingZeros(ai.min, 2) + "</span><span class='db tu ls-1 color-dark'>" + WR_Data_Js.wr_countdown_mins + "</span></div><div class='pr'><span class='db color-primary'>" + this.leadingZeros(ai.sec, 2) + "</span><span class='db tu ls-1 color-dark'>" + WR_Data_Js.wr_countdown_secs + "</span></div>")
  3242.                     }
  3243.                 })
  3244.             }
  3245.         })
  3246.     }
  3247.  
  3248.     function H() {
  3249.         var aa = E("#wr-back-top");
  3250.         E(window).scroll(function() {
  3251.             if (E(this).scrollTop() != 0) {
  3252.                 aa.fadeIn()
  3253.             } else {
  3254.                 aa.fadeOut()
  3255.             }
  3256.         });
  3257.         aa.click(function() {
  3258.             E("body, html").animate({
  3259.                 scrollTop: 0
  3260.             }, 800)
  3261.         })
  3262.     }
  3263.  
  3264.     function t() {
  3265.         E(".search-results .search-item .entry-content p, .search-results .search-item .entry-title a").each(function(ac, ad) {
  3266.             var aa = E(".search-results .result-list").attr("data-key");
  3267.             var ae = E(ad).text();
  3268.             var ab = aa.split(" ");
  3269.             E.each(ab, function(ag, af) {
  3270.                 var ah = new RegExp("(" + af + ")", "gi");
  3271.                 ae = ae.replace(ah, '<span class="highlight">$1</span>');
  3272.                 E(ad).html(ae)
  3273.             })
  3274.         })
  3275.     }
  3276.  
  3277.     function x() {
  3278.         E("body").delegate(".product__compare .product__btn", "click", function() {
  3279.             E(this).next().find(".compare").trigger("click");
  3280.             return false
  3281.         })
  3282.     }
  3283.  
  3284.     function j() {
  3285.         if (E(".single-product .product-type-booking").length) {
  3286.             E(".woocommerce-message").show()
  3287.         }
  3288.     }
  3289.  
  3290.     function K() {
  3291.         var aa = function(ab) {
  3292.             if (parseInt(Number(ab)) == ab) {
  3293.                 return ab
  3294.             }
  3295.             return ab.toFixed(2)
  3296.         };
  3297.         E("body").on("click", ".quantity a.plus", function(ad) {
  3298.             var ae = E(this).parent().parent().find("input"),
  3299.                 ab = Number(ae.attr("step")),
  3300.                 ac = aa(Number(ae.val()) + ab);
  3301.             ae.val(ac);
  3302.             ae.trigger("change")
  3303.         });
  3304.         E("body").on("click", ".quantity a.minus", function(ad) {
  3305.             var ae = E(this).parent().parent().find("input"),
  3306.                 ab = Number(ae.attr("step")),
  3307.                 ac = aa(Number(ae.val()) - ab);
  3308.             if (ac < ab) {
  3309.                 ac = ab
  3310.             }
  3311.             ae.val(ac);
  3312.             ae.trigger("change")
  3313.         })
  3314.     }
  3315.  
  3316.     function z() {
  3317.         E("body").on("click", ".btn-quickview", function(ab) {
  3318.             var ad = E(this);
  3319.             ad.addClass("loading");
  3320.             var ac = ad.attr("data-prod"),
  3321.                 aa = {
  3322.                     action: "wr_quickview",
  3323.                     product: ac,
  3324.                     wr_view_image: "wr_quickview"
  3325.                 };
  3326.             E.post(WRAjaxURL, aa, function(ae) {
  3327.                 ae = E(ae);
  3328.                 ae.find(".wr-custom-attribute .has-image-gallery[data-value]").each(function() {
  3329.                     var af = E(this).attr("data-href"),
  3330.                         ag = af + "&wr_view_image=wr_quickview";
  3331.                     E(this).attr("data-href", ag)
  3332.                 });
  3333.                 if (typeof E.fn.magnificPopup != "undefined") {
  3334.                     E.magnificPopup.open({
  3335.                         items: {
  3336.                             src: ae
  3337.                         },
  3338.                         mainClass: "mfp-fade mfp-quickview",
  3339.                         removalDelay: 300,
  3340.                         callbacks: {
  3341.                             open: function() {
  3342.                                 if (typeof wc_add_to_cart_variation_params !== "undefined") {
  3343.                                     E(".variations_form").each(function() {
  3344.                                         E(this).wc_variation_form().find(".variations select:eq(0)").change()
  3345.                                     })
  3346.                                 }
  3347.                             }
  3348.                         }
  3349.                     })
  3350.                 }
  3351.                 ad.removeClass("loading");
  3352.                 setTimeout(function() {
  3353.                     if (E(".quickview-modal form").hasClass("variations_form")) {
  3354.                         E(".quickview-modal form.variations_form").wc_variation_form()
  3355.                     }
  3356.                     E(".wr-images-quickview").WR_ImagesLoaded(function() {
  3357.                         var af = E(".wr-images-quickview").outerHeight();
  3358.                         E(".quickview-modal .info").css({
  3359.                             height: af,
  3360.                             overflow: "auto"
  3361.                         })
  3362.                     })
  3363.                 }, 100)
  3364.             });
  3365.             ab.preventDefault();
  3366.             ab.stopPropagation()
  3367.         });
  3368.         E("body").on("click", ".mfp-quickview .open-popup-link", function(aa) {
  3369.             aa.preventDefault();
  3370.             aa.stopPropagation();
  3371.             E(".quickview-modal").addClass("active-sizeguide");
  3372.             E(".quickview-modal-inner").hide()
  3373.         });
  3374.         E("body").on("click", ".wr-sizeguide .sizeguide-close", function(aa) {
  3375.             E(".quickview-modal").removeClass("active-sizeguide");
  3376.             E(".quickview-modal-inner").show()
  3377.         })
  3378.     }
  3379.  
  3380.     function N() {
  3381.         E("body").on("click", ".product-type-simple .btn-buynow, .wr-buy-now .btn-buynow", function(ab) {
  3382.             var ac = E(this);
  3383.             ac.addClass("loading");
  3384.             var aa = {
  3385.                 action: "wr_quickbuy",
  3386.                 product_id: ac.attr("data-product-id")
  3387.             };
  3388.             if (ac.attr("data-checkout") != undefined && ac.attr("data-payment-info") != undefined) {
  3389.                 aa.shortcode_checkout = ac.attr("data-checkout");
  3390.                 aa.shortcode_payment = ac.attr("data-payment-info")
  3391.             }
  3392.             E.ajax({
  3393.                 type: "POST",
  3394.                 url: WRAjaxURL,
  3395.                 data: aa,
  3396.                 success: function(ad) {
  3397.                     if (ad.status == "true") {
  3398.                         if (ad.type == "redirect") {
  3399.                             window.location.href = ad.checkout_url
  3400.                         } else {
  3401.                             if (ad.type == "modal") {
  3402.                                 if (ad.checkout_url.indexOf("?") != -1) {
  3403.                                     ad.checkout_url = ad.checkout_url + "&wr-buy-now=check-out"
  3404.                                 } else {
  3405.                                     ad.checkout_url = ad.checkout_url + "?wr-buy-now=check-out"
  3406.                                 }
  3407.                                 if (typeof E.fn.magnificPopup != "undefined") {
  3408.                                     E.magnificPopup.open({
  3409.                                         items: {
  3410.                                             src: ad.checkout_url
  3411.                                         },
  3412.                                         type: "iframe",
  3413.                                         mainClass: "mfp-fade wr-buy-now",
  3414.                                         removalDelay: 300
  3415.                                     })
  3416.                                 }
  3417.                             }
  3418.                         }
  3419.                     } else {
  3420.                         if (ad.status == "false") {}
  3421.                     }
  3422.                     ac.removeClass("loading")
  3423.                 }
  3424.             });
  3425.             ab.preventDefault();
  3426.             ab.stopPropagation()
  3427.         })
  3428.     }
  3429.  
  3430.     function i() {
  3431.         E("body").on("click", ".wc-switch a", function(af) {
  3432.             af.preventDefault();
  3433.             var ah = E(this);
  3434.             if (ah.hasClass("active") || ah.hasClass("loading")) {
  3435.                 return
  3436.             }
  3437.             var ad = ah.closest(".wc-switch");
  3438.             ad.find("a").removeClass("active");
  3439.             ah.addClass("active");
  3440.             var ae = ah.attr("data-layout");
  3441.             var aa = function(ak) {
  3442.                 var aj = "";
  3443.                 if (ak.indexOf("?") != -1) {
  3444.                     var ai = (WR_Data_Js.wc_archive_style == "list") ? "grid" : WR_Data_Js.wc_archive_style;
  3445.                     if (ak.indexOf("switch=" + ai) != -1) {
  3446.                         aj = ak.replace("switch=" + ai, "switch=" + ae)
  3447.                     } else {
  3448.                         if (ak.indexOf("switch=list") != -1) {
  3449.                             aj = ak.replace("switch=list", "switch=" + ae)
  3450.                         } else {
  3451.                             if (ak.indexOf("?switch=") != -1 || ak.indexOf("&switch=") != -1) {
  3452.                                 aj = ak.replace("switch=", "");
  3453.                                 aj = aj + "&switch=" + ae
  3454.                             } else {
  3455.                                 aj = ak + "&switch=" + ae
  3456.                             }
  3457.                         }
  3458.                     }
  3459.                 } else {
  3460.                     aj = ak + "?switch=" + ae
  3461.                 }
  3462.                 return aj
  3463.             };
  3464.             var ag = aa(window.location.href);
  3465.             history.pushState({}, "", ag);
  3466.             E("#shop-main .woocommerce-pagination ul li a.page-numbers").each(function(aj, ak) {
  3467.                 var al = E(this);
  3468.                 var ai = al.attr("href");
  3469.                 al.attr("href", aa(ai))
  3470.             });
  3471.             if (E("#shop-main .products").length == 1) {
  3472.                 ah.addClass("loading");
  3473.                 E.get(ag, function(ai) {
  3474.                     var ak = E(".products", ai);
  3475.                     if (ak.length) {
  3476.                         ak.addClass("products-ajax").hide();
  3477.                         var aj = ak[0].outerHTML;
  3478.                         var al = E("#shop-main .products");
  3479.                         al.after(aj);
  3480.                         al.fadeOut(200, function() {
  3481.                             E("#shop-main .products-ajax").show()
  3482.                         })
  3483.                     }
  3484.                     ah.removeClass("loading")
  3485.                 })
  3486.             } else {
  3487.                 var ab = E("#shop-main .products." + ae + "-layout");
  3488.                 var ac = E("#shop-main .products:not(." + ae + "-layout)");
  3489.                 ac.hide();
  3490.                 ab.show()
  3491.             }
  3492.         })
  3493.     }
  3494.  
  3495.     function V() {
  3496.         E(".btn-newacc, .register .btn-backacc").on("click", function(aa) {
  3497.             E(".form-container.login, .form-container.register").toggleClass("opened")
  3498.         });
  3499.         E(".btn-lostpw, .lost-password .btn-backacc").on("click", function(aa) {
  3500.             E(".form-container.login, .form-container.lost-password").toggleClass("opened")
  3501.         })
  3502.     }
  3503.  
  3504.     function L() {
  3505.         E("#tab-description").show().closest(".description_tab").addClass("active");
  3506.         E(".accordion-tabs .tab-heading").click(function(ac) {
  3507.             ac.preventDefault();
  3508.             var ad = E(this);
  3509.             var aa = ad.closest(".accordion_item");
  3510.             var ab = ad.closest(".accordion-tabs");
  3511.             if (aa.hasClass("active")) {
  3512.                 aa.removeClass("active");
  3513.                 aa.find(".entry-content").stop(true, true).slideUp()
  3514.             } else {
  3515.                 ab.find(".accordion_item").removeClass("active");
  3516.                 aa.addClass("active");
  3517.                 ab.find(".entry-content").stop(true, true).slideUp();
  3518.                 aa.find(".entry-content").stop(true, true).slideDown()
  3519.             }
  3520.         })
  3521.     }
  3522.  
  3523.     function G() {
  3524.         if (E(".p-single-action .single_add_to_cart_button").length == 0) {
  3525.             return
  3526.         }
  3527.         E(window).load(function() {
  3528.             var ai = E(".footer"),
  3529.                 af = E(".p-single-action .single_add_to_cart_button"),
  3530.                 ac = af.offset().top + af.height(),
  3531.                 aj = ai.height(),
  3532.                 ab = E(window).height(),
  3533.                 ah = E(document).height(),
  3534.                 ae = E(window).width(),
  3535.                 ad = ((ae > 1024) ? parseInt(WR_Data_Js.offset) : 0) + 10;
  3536.             var aa = function() {
  3537.                 var am = E(window).scrollTop(),
  3538.                     an = E(".actions-fixed"),
  3539.                     ak = ai.offset().top - an.height() - 15,
  3540.                     al = ak - am;
  3541.                 if (am > ac) {
  3542.                     an.slideDown()
  3543.                 } else {
  3544.                     an.slideUp()
  3545.                 }
  3546.                 if (am + ab < ah - aj) {
  3547.                     an.css({
  3548.                         bottom: ad + "px",
  3549.                         top: "auto"
  3550.                     })
  3551.                 } else {
  3552.                     an.css({
  3553.                         bottom: "auto",
  3554.                         top: al
  3555.                     })
  3556.                 }
  3557.             };
  3558.             var ag = function() {
  3559.                 requestAnimationFrame(aa)
  3560.             };
  3561.             E(window).scroll(ag)
  3562.         })
  3563.     }
  3564.  
  3565.     function a() {
  3566.         E(".product-categories .cat-parent > .children, .widget_nav_menu .menu-item-has-children > .sub-menu").before('<span class="fa fa-angle-down pa tc"></span>');
  3567.         E("body").on("click", ".product-categories .cat-parent .fa", function() {
  3568.             E(this).closest(".cat-parent").toggleClass("active").find("> .children").stop(true, false).slideToggle()
  3569.         });
  3570.         E("body").on("click", ".widget_nav_menu .menu-item-has-children .fa", function() {
  3571.             E(this).closest(".menu-item-has-children").toggleClass("active").find("> .sub-menu").stop(true, false).slideToggle()
  3572.         });
  3573.         E(".product-categories .count").each(function() {
  3574.             var ab = E(this);
  3575.             var aa = ab.text().replace("(", "").replace(")", "");
  3576.             ab.text(aa)
  3577.         })
  3578.     }
  3579.  
  3580.     function S(aa, ab, ad) {
  3581.         E(".wrapper-outer").on("mousedown vmousedown", function ac(af) {
  3582.             var ag = E(ab).index(aa.closest(ab));
  3583.             var ae = E(ab).index(E(af.target).closest(ab));
  3584.             if (ag != ae) {
  3585.                 E("body").off("mousedown vmousedown");
  3586.                 ad.call(af)
  3587.             }
  3588.         })
  3589.     }
  3590.  
  3591.     function m(aa, ad, ac) {
  3592.         E(".wrapper-outer").on("mousedown vmousedown", function ab(af) {
  3593.             var ae = E(ad).index(E(af.target).closest(ad));
  3594.             if (ae == -1) {
  3595.                 E("body").off("mousedown vmousedown");
  3596.                 ac.call(af)
  3597.             }
  3598.         })
  3599.     }
  3600.  
  3601.     function Q() {
  3602.         E(window).resize(function() {
  3603.             var ac = E(window).height();
  3604.             var ab = E(window).width();
  3605.             if (typeof window.is_vertical_mobile === "undefined") {
  3606.                 window.is_vertical_mobile = (ac < ab) ? true : false
  3607.             }
  3608.             if (ac < ab && window.is_vertical_mobile) {
  3609.                 window.is_vertical_mobile = false;
  3610.                 aa()
  3611.             } else {
  3612.                 if (ac > ab && !window.is_vertical_mobile) {
  3613.                     window.is_vertical_mobile = true;
  3614.                     aa()
  3615.                 }
  3616.             }
  3617.         });
  3618.  
  3619.         function aa() {
  3620.             E.each(E.function_rotate_device, function(ab, ac) {
  3621.                 ac.call()
  3622.             })
  3623.         }
  3624.     }
  3625.  
  3626.     function M() {
  3627.         var aa = E(".wr-nitro-horizontal");
  3628.         if (aa.length > 0) {
  3629.             var ae = aa.data("owl-options");
  3630.             if (ae !== undefined) {
  3631.                 var ad = ("true" == ae.autoplay) ? true : false,
  3632.                     ac = ("true" == ae.dots) ? true : false,
  3633.                     af = ("true" == ae.loop) ? true : false,
  3634.                     ab = ("true" == ae.mousewheel) ? true : false;
  3635.                 aa.owlCarousel({
  3636.                     items: 4,
  3637.                     loop: true,
  3638.                     nav: false,
  3639.                     autoplay: ad,
  3640.                     dots: ac,
  3641.                     autoWidth: true
  3642.                 });
  3643.                 if (ab == true) {
  3644.                     aa.on("mousewheel", ".owl-stage", function(ag) {
  3645.                         if (ag.deltaY > 0) {
  3646.                             aa.trigger("prev.owl")
  3647.                         } else {
  3648.                             aa.trigger("next.owl")
  3649.                         }
  3650.                         ag.preventDefault()
  3651.                     })
  3652.                 }
  3653.             }
  3654.         }
  3655.     }
  3656.  
  3657.     function C() {
  3658.         var ab = E(".gallery-cover");
  3659.         var aa = E(".gallery-thumb");
  3660.         var af = 6;
  3661.         var ad = true;
  3662.         if (!ab.length > 0) {
  3663.             return
  3664.         }
  3665.         ab.owlCarousel({
  3666.             items: 1,
  3667.             slideSpeed: 2000,
  3668.             nav: true,
  3669.             animateOut: "fadeOut",
  3670.             animateIn: "fadeIn",
  3671.             autoplay: true,
  3672.             dots: false,
  3673.             loop: true,
  3674.             navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"]
  3675.         }).on("changed.owl.carousel", ae);
  3676.         aa.on("initialized.owl.carousel", function() {
  3677.             aa.find(".owl-item").eq(0).addClass("current")
  3678.         }).owlCarousel({
  3679.             items: af,
  3680.             dots: false,
  3681.             nav: false,
  3682.             smartSpeed: 200,
  3683.             slideSpeed: 500,
  3684.             slideBy: af,
  3685.             responsiveRefreshRate: 100
  3686.         }).on("changed.owl.carousel", ac);
  3687.  
  3688.         function ae(ah) {
  3689.             var ai = ah.item.count - 1;
  3690.             var ak = Math.round(ah.item.index - (ah.item.count / 2) - 0.5);
  3691.             if (ak < 0) {
  3692.                 ak = ai
  3693.             }
  3694.             if (ak > ai) {
  3695.                 ak = 0
  3696.             }
  3697.             aa.find(".owl-item").removeClass("current").eq(ak).addClass("current");
  3698.             var aj = aa.find(".owl-item.active").length - 1;
  3699.             var al = aa.find(".owl-item.active").first().index();
  3700.             var ag = aa.find(".owl-item.active").last().index();
  3701.             if (ak > ag) {
  3702.                 aa.data("owl.carousel").to(ak, 100, true)
  3703.             }
  3704.             if (ak < al) {
  3705.                 aa.data("owl.carousel").to(ak - aj, 100, true)
  3706.             }
  3707.         }
  3708.  
  3709.         function ac(ag) {
  3710.             if (ad) {
  3711.                 var ah = ag.item.index;
  3712.                 ab.data("owl.carousel").to(ah, 100, true)
  3713.             }
  3714.         }
  3715.         aa.on("click", ".owl-item", function(ah) {
  3716.             ah.preventDefault();
  3717.             var ag = E(this).index();
  3718.             ab.data("owl.carousel").to(ag, 300, true)
  3719.         })
  3720.     }
  3721.  
  3722.     function y() {
  3723.         E(".wr-mobile .hb-menu .has-children-mobile").click(function() {
  3724.             var ad = E(this);
  3725.             var ab = ad.closest(".item-link-outer");
  3726.             var ac = ad.closest("li");
  3727.             var aa = ac.find(" > ul:first");
  3728.             if (ab.hasClass("active-submenu")) {
  3729.                 aa.stop(true, true).slideUp(function() {
  3730.                     var ah = ad.closest(".site-navigator-inner");
  3731.                     var af = ad.closest(".site-navigator");
  3732.                     var ae = af[0].getBoundingClientRect();
  3733.                     var ag = E(window).height();
  3734.                     var ai = ag - ae.top;
  3735.                     if (ae.height <= ai) {
  3736.                         ah.css("height", "")
  3737.                     }
  3738.                 });
  3739.                 ab.removeClass("active-submenu")
  3740.             } else {
  3741.                 aa.stop(true, true).slideDown(function() {
  3742.                     var ag = ad.closest(".site-navigator-inner");
  3743.                     var ae = ag[0].getBoundingClientRect();
  3744.                     var af = E(window).height();
  3745.                     var ah = af - ae.top;
  3746.                     if (ae.height > ah) {
  3747.                         ag.height(ah)
  3748.                     }
  3749.                 });
  3750.                 ab.addClass("active-submenu")
  3751.             }
  3752.         });
  3753.         E(".wr-mobile .hb-menu .menu-icon-action").click(function() {
  3754.             var ac = E(this);
  3755.             var aa = ac.closest(".hb-menu");
  3756.             var ab = aa.find(".site-navigator-inner");
  3757.             if (ac.hasClass("active-menu")) {
  3758.                 ab.stop(true, true).slideUp();
  3759.                 ac.removeClass("active-menu")
  3760.             } else {
  3761.                 S(ac, ".hb-menu", function(ad) {
  3762.                     ab.stop(true, true).slideUp();
  3763.                     ac.removeClass("active-menu")
  3764.                 });
  3765.                 ab.stop(true, true).slideDown(function() {
  3766.                     var ad = ab[0].getBoundingClientRect();
  3767.                     var ae = E(window).height();
  3768.                     var af = ae - ad.top;
  3769.                     if (ad.height > af) {
  3770.                         E(this).height(af)
  3771.                     }
  3772.                 });
  3773.                 ac.addClass("active-menu")
  3774.             }
  3775.         });
  3776.         E.function_rotate_device.menu_mobile = function() {
  3777.             E.each(E(".wr-mobile .hb-menu .menu-icon-action.active-menu"), function(ab, af) {
  3778.                 var ah = E(af);
  3779.                 var ac = ah.closest(".hb-menu");
  3780.                 var ae = ac.find(".site-navigator-inner");
  3781.                 ae.css("height", "");
  3782.                 var aa = ae[0].getBoundingClientRect();
  3783.                 var ad = E(window).height();
  3784.                 var ag = ad - aa.top;
  3785.                 if (aa.height > ag) {
  3786.                     ae.height(ag)
  3787.                 } else {
  3788.                     ae.css("height", "")
  3789.                 }
  3790.             })
  3791.         }
  3792.     }
  3793.  
  3794.     function c() {
  3795.         var aa = E(".nitro-member .member a");
  3796.         var ab = E(".nitro-member .info > p").height();
  3797.         E(".nitro-member.style-2 .info").css("bottom", -(ab + 16));
  3798.         aa.mouseenter(function(ac) {
  3799.             E(this).find(".name").fadeIn()
  3800.         });
  3801.         aa.mouseleave(function(ac) {
  3802.             E(this).find(".name").hide()
  3803.         });
  3804.         aa.mousemove(function(af) {
  3805.             var ad = af.pageX,
  3806.                 ah = af.pageY,
  3807.                 ag = E(this).offset(),
  3808.                 ae = ad - ag.left,
  3809.                 ac = ah - ag.top;
  3810.             E(this).find(".name").css({
  3811.                 top: (ac + 20) + "px",
  3812.                 left: (ae - 15) + "px"
  3813.             })
  3814.         });
  3815.         aa.on("click", function() {
  3816.             var ai = E(this),
  3817.                 al = ai.closest(".member"),
  3818.                 ag = ai.closest(".nitro-member"),
  3819.                 ao = ag.find(".member"),
  3820.                 am = ao.index(al) + 1,
  3821.                 af = ao.length,
  3822.                 ac = ag.width(),
  3823.                 an = al[0].getBoundingClientRect(),
  3824.                 ae = parseInt(ac / an.width),
  3825.                 ak = ai.next();
  3826.             if (af <= ae) {
  3827.                 var aj = af
  3828.             } else {
  3829.                 if (am <= ae) {
  3830.                     var aj = (ae - am) + am
  3831.                 } else {
  3832.                     var aj = (parseInt(am / ae) + (am % ae == 0 ? 0 : 1)) * ae;
  3833.                     if (af < aj) {
  3834.                         aj = af
  3835.                     }
  3836.                 }
  3837.             }
  3838.             var ad = ag.find(".member").get(aj - 1);
  3839.             ad = E(ad).next();
  3840.             if (al.hasClass("active-member")) {
  3841.                 al.removeClass("active-member");
  3842.                 E(".member-container").slideUp(500, function() {
  3843.                     E(this).remove()
  3844.                 })
  3845.             } else {
  3846.                 ao.removeClass("active-member");
  3847.                 al.addClass("active-member");
  3848.                 var ah = ag.find(".member").get(aj - 1);
  3849.                 if (ad.hasClass("member-container")) {
  3850.                     E(".member-container").fadeOut(300, function() {
  3851.                         E(this).html(ak.html());
  3852.                         E(this).fadeIn(300)
  3853.                     })
  3854.                 } else {
  3855.                     if (E(".member-container").length) {
  3856.                         E(".member-container").slideUp(500, function() {
  3857.                             E(this).remove();
  3858.                             var ap = ag.find(".member").get(aj - 1);
  3859.                             E(ap).after('<div class="member-container clear">' + ak.html() + "</div>");
  3860.                             E(".member-container").slideDown()
  3861.                         })
  3862.                     } else {
  3863.                         E(".member-container").remove();
  3864.                         var ah = ag.find(".member").get(aj - 1);
  3865.                         E(ah).after('<div class="member-container clear">' + ak.html() + "</div>");
  3866.                         E(".member-container").slideDown(500)
  3867.                     }
  3868.                 }
  3869.             }
  3870.         })
  3871.     }
  3872.  
  3873.     function T() {
  3874.         var aa = E(".galleries .nitro-gallery-masonry");
  3875.         if (aa.length) {
  3876.             aa.each(function() {
  3877.                 var ae = E(this),
  3878.                     ad = ae.attr("data-layout");
  3879.                 ae.WR_ImagesLoaded(function() {
  3880.                     if (ad == "masonry") {
  3881.                         ae.isotope({
  3882.                             filter: "*",
  3883.                             percentPosition: true,
  3884.                             masonry: {
  3885.                                 columnWidth: ".grid-sizer"
  3886.                             }
  3887.                         })
  3888.                     } else {
  3889.                         ae.isotope({
  3890.                             filter: "*",
  3891.                             percentPosition: true,
  3892.                             layoutMode: "fitRows"
  3893.                         })
  3894.                     }
  3895.                 })
  3896.             })
  3897.         }
  3898.         E(".gallery-cat a").click(function() {
  3899.             var ad = E(this).attr("data-filter");
  3900.             E(this).closest(".galleries").find(".nitro-gallery-masonry").isotope({
  3901.                 filter: ad,
  3902.                 transitionDuration: "0.3s"
  3903.             })
  3904.         });
  3905.         var ab = E(".gallery-cat"),
  3906.             ac = ab.find("a");
  3907.         ac.click(function() {
  3908.             var ae = E(this);
  3909.             if (ae.hasClass("selected")) {
  3910.                 return false
  3911.             }
  3912.             var ad = ae.parents(".gallery-cat");
  3913.             ad.find(".selected").removeClass("selected");
  3914.             ae.addClass("selected")
  3915.         });
  3916.         if (window.innerWidth <= 769) {
  3917.             E(".filter-on-mobile").on("click", function() {
  3918.                 E(this).next().slideToggle()
  3919.             });
  3920.             E(".gallery-cat a[data-filter]").on("click", function() {
  3921.                 var ad = E(this).text();
  3922.                 E(this).parent().siblings(".filter-on-mobile").find("span").text(ad);
  3923.                 E(this).parent().slideToggle()
  3924.             })
  3925.         }
  3926.     }
  3927.  
  3928.     function Y() {
  3929.         var aa = E('.sc-cat-list[data-expand="true"]').children("a");
  3930.         E('.sc-cat-list[data-expand="true"] ul').hide();
  3931.         aa.on("click", function() {
  3932.             E(this).next().slideToggle()
  3933.         });
  3934.         if (E(".sc-cat-mobile").length > 0) {
  3935.             E(".sc-cat-mobile").on("click", function() {
  3936.                 E(this).toggleClass("expanded").next().toggleClass("expanded")
  3937.             })
  3938.         }
  3939.     }
  3940.  
  3941.     function b() {
  3942.         E("body").on("click", ".yith-wcwl-add-button .add_to_wishlist", function(aa) {
  3943.             aa.preventDefault();
  3944.             E(this).css("opacity", "0")
  3945.         });
  3946.         E("body").on("click", ".wishlist-submit.add_to_wishlist", function(aa) {
  3947.             aa.preventDefault();
  3948.             E(this).find(".ajax-loading").show();
  3949.             E(this).find(".wishlist-icon").hide()
  3950.         });
  3951.         E("body").on("click", ".yith-wcwl-remove-button a", function(ad) {
  3952.             ad.preventDefault();
  3953.             var af = E(this);
  3954.             var aa = af.closest(".yith-wcwl-add-to-wishlist");
  3955.             var ae = aa.find(".yith-wcwl-remove-button .ajax-loading");
  3956.             var ac = aa.find(".yith-wcwl-add-button .add_to_wishlist");
  3957.             af.css("opacity", "0");
  3958.             ae.css("visibility", "visible");
  3959.             ac.css("opacity", "1");
  3960.             var ab = {
  3961.                 action: "wr_remove_product_wishlish",
  3962.                 _nonce: _nonce_wr_nitro,
  3963.                 product_id: af.attr("data-product-id")
  3964.             };
  3965.             E.ajax({
  3966.                 type: "POST",
  3967.                 url: WRAjaxURL,
  3968.                 data: ab,
  3969.                 success: function(ag) {
  3970.                     if (ag.status == "true") {
  3971.                         ae.css("visibility", "hidden");
  3972.                         aa.find(".yith-wcwl-remove-button").hide();
  3973.                         aa.find(".yith-wcwl-add-button").show();
  3974.                         af.css("opacity", "1")
  3975.                     }
  3976.                 }
  3977.             })
  3978.         })
  3979.     }
  3980.  
  3981.     function X() {
  3982.         E(".wr-buy-now .btn-buynow").click(function() {
  3983.             if (!E("body").hasClass("woocommerce-page")) {
  3984.                 E("body").addClass("woocommerce-page")
  3985.             }
  3986.         })
  3987.     }
  3988.  
  3989.     function F() {
  3990.         E(".nitro-separator").each(function() {
  3991.             var ab = E(this).find("span").width(),
  3992.                 ac = E(this).attr("data-align");
  3993.             switch (ac) {
  3994.                 case "left":
  3995.                     if (E("body").hasClass("rtl")) {
  3996.                         E(this).find(".sep").css("margin-right", ab + 20)
  3997.                     } else {
  3998.                         E(this).find(".sep").css("margin-left", ab + 20)
  3999.                     }
  4000.                     break;
  4001.                 case "right":
  4002.                     if (E("body").hasClass("rtl")) {
  4003.                         E(this).find(".sep").css("margin-left", ab + 20)
  4004.                     } else {
  4005.                         E(this).find(".sep").css("margin-right", ab + 20)
  4006.                     }
  4007.                     break;
  4008.                 case "center":
  4009.                     var aa = (E(this).width() - ab) / 2 - 20;
  4010.                     E(this).find(".sep-left, .sep-right").css("width", aa);
  4011.                     break
  4012.             }
  4013.         })
  4014.     }
  4015.  
  4016.     function n() {
  4017.         if (typeof E.fn.magnificPopup == "undefined") {
  4018.             return setTimeout(n, 100)
  4019.         }
  4020.         if (E(".sc-video").length > 0) {
  4021.             E(".sc-video-popup").each(function(aa, ad) {
  4022.                 var ac = E(this).data("popup");
  4023.                 if (ac !== undefined) {
  4024.                     var ab = ("true" == ac.control) ? "controls=1" : "controls=0";
  4025.                     E(ad).magnificPopup({
  4026.                         type: "iframe",
  4027.                         mainClass: "mfp-fade",
  4028.                         removalDelay: 300,
  4029.                         iframe: {
  4030.                             markup: '<div class="mfp-iframe-scaler"><button type="button" class="mfp-close">×</button><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',
  4031.                             patterns: {
  4032.                                 youtube: {
  4033.                                     index: "youtube.com/",
  4034.                                     id: "v=",
  4035.                                     src: "//www.youtube.com/embed/%id%?autoplay=1&showinfo=0&" + ab
  4036.                                 },
  4037.                                 vimeo: {
  4038.                                     index: "vimeo.com/",
  4039.                                     id: "/",
  4040.                                     src: "//player.vimeo.com/video/%id%?autoplay=1"
  4041.                                 }
  4042.                             }
  4043.                         }
  4044.                     })
  4045.                 }
  4046.             });
  4047.             if (E(".sc-yt-trigger").length > 0) {
  4048.                 E.getScript("https://www.youtube.com/iframe_api");
  4049.                 E(".sc-yt-trigger").each(function() {
  4050.                     var ac = E(this),
  4051.                         aa = ac.next();
  4052.                     setTimeout(function ab() {
  4053.                         if (typeof YT !== "object") {
  4054.                             return setTimeout(ab, 1000)
  4055.                         }
  4056.                         if (typeof YT.Player !== "function") {
  4057.                             return setTimeout(ab, 1000)
  4058.                         }
  4059.                         var ad;
  4060.                         ad = new YT.Player(aa.get(0), {
  4061.                             events: {
  4062.                                 onReady: function(ae) {
  4063.                                     ac.on("click", function(af) {
  4064.                                         ae.target.playVideo();
  4065.                                         ac.css("opacity", 0);
  4066.                                         aa.show();
  4067.                                         af.preventDefault()
  4068.                                     })
  4069.                                 }
  4070.                             }
  4071.                         })
  4072.                     }, 1000)
  4073.                 })
  4074.             }
  4075.             if (E(".sc-vm-trigger").length > 0) {
  4076.                 E(".sc-vm-trigger").each(function() {
  4077.                     var ad = E(this),
  4078.                         ac = ad.next(),
  4079.                         aa = "*";
  4080.                     ad.on("click", function(ae) {
  4081.                         ab("play");
  4082.                         ad.css("opacity", 0);
  4083.                         ac.show();
  4084.                         ae.preventDefault()
  4085.                     });
  4086.  
  4087.                     function ab(ah, ag) {
  4088.                         var af = {
  4089.                             method: ah
  4090.                         };
  4091.                         if (ag) {
  4092.                             af.value = ag
  4093.                         }
  4094.                         var ae = JSON.stringify(af);
  4095.                         ac[0].contentWindow.postMessage(ae, aa)
  4096.                     }
  4097.                 })
  4098.             }
  4099.         }
  4100.     }
  4101.  
  4102.     function W() {
  4103.         var ab = E(".nitro-timeline.style-2");
  4104.         var aa = function() {
  4105.             ab.removeClass("style-2").addClass("style-1");
  4106.             if (E(window).width() < 568) {
  4107.                 ab.removeClass("style-2").addClass("style-1")
  4108.             } else {
  4109.                 ab.removeClass("style-1").addClass("style-2")
  4110.             }
  4111.         };
  4112.         if (ab.length > 0) {
  4113.             aa();
  4114.             E(window).resize(function() {
  4115.                 aa()
  4116.             })
  4117.         }
  4118.     }
  4119.  
  4120.     function I() {
  4121.         var aa = function() {
  4122.             E.each(E(".list-blog.has-featured-img .has-post-thumbnail .entry-title"), function() {
  4123.                 var ac = E(this);
  4124.                 var ab = ac.closest(".has-post-thumbnail");
  4125.                 ab.removeClass("blog-res");
  4126.                 if (ac.width() < 180) {
  4127.                     ab.addClass("blog-res")
  4128.                 }
  4129.             })
  4130.         };
  4131.         aa();
  4132.         E(window).resize(function() {
  4133.             aa()
  4134.         })
  4135.     }
  4136.  
  4137.     function k() {
  4138.         E(".woof_auto_show").parent().addClass("woof_auto_show_outer")
  4139.     }
  4140.  
  4141.     function p() {
  4142.         if (E(".p-video").length > 0) {
  4143.             E(".p-video-link").magnificPopup({
  4144.                 type: "iframe"
  4145.             });
  4146.             E(".p-video-file").magnificPopup({
  4147.                 type: "inline"
  4148.             })
  4149.         }
  4150.     }
  4151.  
  4152.     function g() {
  4153.         if (E(".wr-open-cf7").length > 0) {
  4154.             E(".wr-open-cf7").magnificPopup({
  4155.                 disableOn: 700,
  4156.                 type: "inline",
  4157.                 removalDelay: 300,
  4158.                 mainClass: "mfp-fade"
  4159.             })
  4160.         }
  4161.     }
  4162.  
  4163.     function f() {
  4164.         E("body").on("click", ".wc-show-sidebar", function(aa) {
  4165.             E("body").toggleClass("slide-to-left");
  4166.             E("html").addClass("no-scroll");
  4167.             E("#shop-mobile-sidebar").before('<div class="mask-overlay"></div>');
  4168.             m(E(this), "#shop-mobile-sidebar", function() {
  4169.                 E("body").removeClass("slide-to-left");
  4170.                 E("html").removeClass("no-scroll");
  4171.                 E(".mask-overlay").remove()
  4172.             })
  4173.         })
  4174.     }
  4175.  
  4176.     function P() {
  4177.         if (E(".term-description").length > 0) {
  4178.             var ab = E(".term-description"),
  4179.                 aa = ab.height();
  4180.             if (aa > 78) {
  4181.                 ab.wrapInner('<div class="term-description-inner"></div>');
  4182.                 ab.append('<a class="term-more dib mgt10 bg-primary color-white" href="#">' + WR_Data_Js.show_more + "</a>");
  4183.                 ab.children(".term-description-inner").css({
  4184.                     height: 78,
  4185.                     overflow: "hidden"
  4186.                 });
  4187.                 E("body").on("click", ".term-more", function() {
  4188.                     ab.children(".term-description-inner").toggleClass("term-show-hide");
  4189.                     (E(this).text() == WR_Data_Js.show_more) ? E(this).text(WR_Data_Js.show_less): E(this).text(WR_Data_Js.show_more)
  4190.                 })
  4191.             }
  4192.         }
  4193.     }
  4194.  
  4195.     function B() {
  4196.         if (E(".flex-control-thumbs").length > 0) {
  4197.             var aa = E(".flex-control-thumbs li").length;
  4198.             if (aa > 5) {
  4199.                 E(".woocommerce-product-gallery__wrapper").WR_ImagesLoaded(function() {
  4200.                     setTimeout(function() {
  4201.                         E(".flex-control-thumbs").scrollbar()
  4202.                     }, 800)
  4203.                 })
  4204.             }
  4205.         }
  4206.     }
  4207.     E(document).ready(function() {
  4208.         E("body").on("click", ".vc_tta-tab a", function(aa) {
  4209.             aa.preventDefault()
  4210.         });
  4211.         if ((WR_Data_Js != undefined && WR_Data_Js.blogParallax == 1 || WR_Data_Js.pageParallax == 1 || WR_Data_Js.bodyParallax == 1) && !D()) {
  4212.             if (window.skrollr) {
  4213.                 skrollr.init({
  4214.                     forceHeight: false
  4215.                 })
  4216.             }
  4217.         }
  4218.         if (E(".open-popup-link").length) {
  4219.             E(".addition-product .open-popup-link, .addition-product .price br").remove()
  4220.         }
  4221.         y();
  4222.         O();
  4223.         q();
  4224.         r();
  4225.         s();
  4226.         o();
  4227.         d();
  4228.         U();
  4229.         Z();
  4230.         E.WR.Lightbox();
  4231.         E.WR.Carousel();
  4232.         A();
  4233.         h();
  4234.         H();
  4235.         t();
  4236.         Q();
  4237.         C();
  4238.         u();
  4239.         e();
  4240.         k();
  4241.         b();
  4242.         j();
  4243.         x();
  4244.         K();
  4245.         z();
  4246.         N();
  4247.         V();
  4248.         i();
  4249.         L();
  4250.         G();
  4251.         p();
  4252.         g();
  4253.         f();
  4254.         P();
  4255.         B();
  4256.         c();
  4257.         T();
  4258.         Y();
  4259.         X();
  4260.         F();
  4261.         n();
  4262.         W();
  4263.         I();
  4264.         a();
  4265.         R()
  4266.     });
  4267.     E(window).load(function() {
  4268.         M()
  4269.     })
  4270. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment