"use strict"; function cssInit(t, i) { return t += "ms", i += "ms", { "transition-duration": i, "animation-duration": i, "transition-timing-function": "ease", "transition-delay": t } } function initAnima(t) { !function (i) { var e = i.fn.getGlobalVar("animaTimeout"), a = i.fn.getGlobalVar("animaTimeout_2"), s = i(t).attr("data-anima"), n = i(t).find(".anima,*[data-anima]"), o = i(t).attr("data-time"), r = i(t).attr("data-target"), l = i(t).attr("data-timeline"), c = i(t).attr("data-timeline-time"), d = i(t).attr("data-trigger"), h = i(n).length, m = i.fn.getGlobalVar("default_anima"); "default" != s || isEmpty(m) || (s = m), isEmpty(c) && (c = 500), isEmpty(n) && (n = t), i(n).each(function (e) { if (!isEmpty(i(this).attr("data-anima")) && 0 === e) return n = t, !1 }), isEmpty(r) || (n = i(r)), isEmpty(o) && (o = 500); var f = 0, u = 1; isEmpty(l) || "desc" !== l || (f = (h - 1) * c, u = -1); var p = null; i(n).each(function (m) { var $ = f; if (m === h - 1 && "desc" === l && ($ = 0), !i(this).hasClass("anima") && n != t && isEmpty(r)) p = this; else if (null != p && !i.contains(p, this) || null === p) { var g = this, v = i(this).css("position"); "absolute" != v && "fixed" != v && i(this).css("position", "relative"); var b = Math.random(5) + ""; i(g).attr("aid", b), e.length > 30 && (e.shift(), a.shift()), e.push([b, setTimeout(function () { i(g).css(cssInit(0, 0)); var t = s; if (!isEmpty(i(g).attr("class")) && -1 != i(g).attr("class").indexOf("anima-")) for (var e = i(g).attr("class").split(" "), n = 0; n < e.length; n++) -1 != e[n].indexOf("anima-") && (t = e[n].replace("anima-", "")); i(window).width() < 768 && (isEmpty(d) || "scroll" === d || "load" === d) && (t = "fade-in"), a.push([b, setTimeout(function () { i(g).css(cssInit(0, o)).addClass(t), i(g).css("opacity", "") }, 100)]) }, $)]), isEmpty(l) || (f += c * u) } }), i.fn.setGlobalVar(e, "animaTimeout"), i.fn.setGlobalVar(a, "animaTimeout_2") }(jQuery) } function outAnima(t) { !function (i) { var e = i.fn.getGlobalVar("animaTimeout"), a = i.fn.getGlobalVar("animaTimeout_2"), s = i(t).attr("data-anima"), n = i(t).find(".anima,*[data-anima]"), o = i(t).attr("data-time"), r = i(t).attr("data-anima-out"), l = i(t).attr("data-target"), c = i.fn.getGlobalVar("default_anima"); if ("default" != s || isEmpty(c) || (s = c), isEmpty(n) && (n = t), isEmpty(l) || (n = i(l)), isEmpty(o) && (o = 500), isEmpty(r) && (r = "back"), "back" == r || "hide" == r) { var d = null; i(n).each(function () { var r = i(this).attr("aid"); if (!isEmpty(r)) { for (m = 0; m < e.length; m++) e[m][0] == r && clearTimeout(e[m][1]); for (m = 0; m < a.length; m++) a[m][0] == r && clearTimeout(a[m][1]) } if (i(this).hasClass("anima") || n == t) { if (null != d && !i.contains(d, this) || null == d) { var l = i(this).css("position"); "absolute" != l && "fixed" != l && i(this).css("position", "relative"); var c = s; try { if (-1 != i(this).attr("class").indexOf("anima-")) for (var h = i(this).attr("class").split(" "), m = 0; m < h.length; m++) -1 != h[m].indexOf("anima-") && (c = h[m].replace("anima-", "")) } catch (t) { } i(this).css(cssInit(0, o)).removeClass(c); var f = parseFloat(i(this).css("opacity")); f > 0 && f < 1 && i(this).css("opacity", 1) } } else d = this }), "hide" == r && (i(n).css(cssInit(0, o)).css("opacity", 0), setTimeout(function () { i(n).css("opacity", 0) }, 400)) } i.fn.setGlobalVar(e, "animaTimeout"), i.fn.setGlobalVar(a, "animaTimeout_2") }(jQuery) } function setImgPos(t) { var i = parseInt($(t).find(".maso img").css("height"), 10), e = parseInt($(t).find(".maso").css("height"), 10); e < i && $(t).find(".maso img").css("margin-top", "-" + (i - e) / 2 + "px") } function getURLParameter(t) { return decodeURIComponent((new RegExp("[?|&]" + t + "=([^&;]+?)(&|#|;|$)").exec(location.search) || [, ""])[1].replace(/\+/g, "%20") || "") } function openWindow(t, i, e) { void 0 === i && (i = 550), void 0 === e && (e = 350); var a = screen.width / 2 - i / 2, s = screen.height / 2 - e / 2; return window.open(t, "targetWindow", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + i + ",height=" + e + ", top=" + s + ", left=" + a), !1 } function onePageScroll(t) { isEmpty(t) || jQuery(t).find('a[href ^= "#"]').on("click", function (t) { t.preventDefault(); var i = this.hash, e = jQuery(i); if (e.length > 0) { if (-1 === i.indexOf("collapse")) try { jQuery("html, body").stop().animate({ scrollTop: e.offset().top - 150 }, 900, "swing", function () { window.location.hash = i }) } catch (t) { } } else "#" != i && i.length > 2 && jQuery(this).closest("header").length && (document.location = window.location.protocol + "//" + window.location.host) }) } function getOptionsString(t, i) { for (var e = t.split(","), a = 0; a < e.length; a++) i[e[a].split(":")[0]] = correctValue(e[a].split(":")[1]); return i } function isEmpty(t) { return void 0 === t || null === t || !(t.length > 0 || "number" == typeof t || void 0 === t.length) || "undefined" === t } function correctValue(t) { return "number" == typeof t ? parseFloat(t) : "true" == t || "false" != t && t } function isScrollView(t) { var i = .5 * jQuery(window).height() + jQuery(window).scrollTop(); return jQuery(t).offset().top < i + 300 || jQuery(window).scrollTop() + jQuery(window).height() == jQuery(document).height() } window.onload = function () { var t, i = document.getElementsByTagName("*"); for (t in i) i[t].hasAttribute && i[t].hasAttribute("data-include") && function (t, i) { var e = /^(?:file):/, a = new XMLHttpRequest, s = 0; a.onreadystatechange = function () { 4 == a.readyState && (s = a.status), e.test(location.href) && a.responseText && (s = 200), 4 == a.readyState && 200 == s && (t.outerHTML = a.responseText) }; try { a.open("GET", i, !0), a.send() } catch (t) { } }(i[t], i[t].getAttribute("data-include")) }, function ($) { var arrFA = [], firstLoad = !0, animaTimeout = [], animaTimeout_2 = [], default_anima; !function (t) { if ("function" == typeof define && define.amd) define(t); else if ("object" == typeof exports) module.exports = t(); else { var i = window.Cookies, e = window.Cookies = t(); e.noConflict = function () { return window.Cookies = i, e } } }(function () { function t() { for (var t, i, e = 0, a = {}; e < arguments.length; e++) { t = arguments[e]; for (i in t) a[i] = t[i] } return a } function i(e) { function a(i, s, n) { var o, r; if (arguments.length > 1) { "number" == typeof (n = t({ path: "/" }, a.defaults, n)).expires && ((r = new Date).setMilliseconds(r.getMilliseconds() + 864e5 * n.expires), n.expires = r); try { o = JSON.stringify(s), /^[\{\[]/.test(o) && (s = o) } catch (t) { } return s = encodeURIComponent(String(s)), s = s.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), i = encodeURIComponent(String(i)), i = i.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent), i = i.replace(/[\(\)]/g, escape), document.cookie = [i, "=", s, n.expires && "; expires=" + n.expires.toUTCString(), n.path && "; path=" + n.path, n.domain && "; domain=" + n.domain, n.secure ? "; secure" : ""].join("") } i || (o = {}); for (var l = document.cookie ? document.cookie.split("; ") : [], c = /(%[0-9A-Z]{2})+/g, d = 0; d < l.length; d++) { var h = l[d].split("="), m = h[0].replace(c, decodeURIComponent), f = h.slice(1).join("="); '"' === f.charAt(0) && (f = f.slice(1, -1)); try { if (f = e && e(f, m) || f.replace(c, decodeURIComponent), this.json) try { f = JSON.parse(f) } catch (t) { } if (i === m) { o = f; break } i || (o[m] = f) } catch (t) { } } return o } return a.get = a.set = a, a.getJSON = function () { return a.apply({ json: !0 }, [].slice.call(arguments)) }, a.defaults = {}, a.remove = function (i, e) { a(i, "", t(e, { expires: -1 })) }, a.withConverter = i, a } return i() }), $.fn.toggleClick = function (t) { var i = arguments, e = t.guid || $.guid++, a = 0, s = function (e) { var s = ($._data(this, "lastToggle" + t.guid) || 0) % a; return $._data(this, "lastToggle" + t.guid, s + 1), e.preventDefault(), i[s].apply(this, arguments) || !1 }; for (s.guid = e; a < i.length;) i[a++].guid = e; return this.click(s) }, $.fn.showAnima = function (t, i) { var e = this; "default" === t && (t = $.fn.getGlobalVar("default_anima")), $(e).removeClass(t), isEmpty(i) || "complete" !== i ? setTimeout(function () { $(e).css(cssInit(0, 300)).addClass(t), $(e).css("opacity", "") }, 100) : ($(e).attr("data-anima", t).attr("data-trigger", "manual"), initAnima(e)) }, $.fn.titleFullScreen = function (t) { if (!isEmpty(this)) { var i = $(this).find(".overlaybox"); $(this).sizeFullScreen(t), "absolute" !== $("header").css("position") && "fixed" !== $("header").css("position") && $(this).css("height", $(this).height() - $("header").height() + "px"), isEmpty(i) || $(i).css("margin-top", "-" + $(i).height() / 2 - 10 + "px") } }, $.fn.sizeFullScreen = function (t) { isEmpty(this) || (t = $(window).outerHeight() - parseInt($(this).css("margin-top").replace("px", ""), 10) - parseInt($(this).css("margin-bottom").replace("px", ""), 10) - (isEmpty(t) ? 0 : parseInt(t, 10))) > $(this).height() && $(this).css("height", t + "px") }, $.fn.setMiddleBox = function (t) { isEmpty(t) && (t = ".box-middle"); var i = $(this).find(t), e = parseInt($(this).outerHeight(), 10), a = parseInt($(i).outerHeight(!0), 10); a < e && $(i).css("margin-top", (e - a) / 2 + "px") }, $.fn.scrollTo = function () { isEmpty(this) || $("html, body").animate({ scrollTop: $(this).offset().top - 50 }, 1e3) }, $.fn.expandItem = function () { var t = this; $(t).css("display", "block").css("height", ""); var i = $(t).height(); $(t).css("height", 0).css("opacity", 1), $(t).animate({ height: i }, 300, function () { $(t).css("height", "") }) }, $.fn.collapseItem = function () { var t = this; $(t).animate({ height: 0 }, 300, function () { $(t).css("display", "none") }) }, $.fn.setVideoBgSize = function (t, i) { var e = this, a = t, s = i, n = $(o).find("iframe").length, o = this; setTimeout(function () { ($(o).hasClass("section-bg-video") || $(o).hasClass("header-video")) && (e = $(o).find("video"), a = $(o).height(), s = $(o).width()), i > 992 && n && $(o).find(".videobox").css("height", "130%"); var t = $(e).height(), r = $(e).width(), l = r * (a / t); l / r > 1 && ($(window).width() < l && t < a || $(window).width() < 769) && (i < 992 && !n && (l += 100), $(e).css("width", Math.ceil(l) + "px"), $(e).css("margin-left", "-" + Math.floor((l - s) / 2) + "px")) }, 300) }, $.fn.getHeight = function () { return isEmpty(this) ? 0 : $(this)[0].clientHeight }, $.fn.executeFunction = function (t, i) { var e; $(this).length > 0 && ("function" == typeof window.jQuery.fn[t] || "function" == typeof window[t] ? i() : e = setInterval(function () { "function" != typeof window.jQuery.fn[t] && "function" != typeof window[t] || (i(), clearInterval(e)) }, 300)) }, $.fn.getGlobalVar = function (name) { return eval(name) }, $.fn.setGlobalVar = function (t, i) { window[i] = t }, $.fn.renderLoadedImgs = function () { if ($.isFunction($.fn.imagesLoaded)) { var t, i = !1, e = imagesLoaded($(this)); $(this).hasClass("maso-box") && (i = !0, t = this), e.on("progress", function (e, a) { var s = a.isLoaded ? "loaded" : "broken", n = "a"; $(a.img).closest("ul.slides").length && (n = ".slides li"), $(a.img).closest(".img-box").length && (n = ".img-box"), $(a.img).closest(".img-box.thumbnail span img").length && (n = "span"), $(a.img).closest("figure").length && (n = "figure"); var o = $(a.img).closest(n), r = a.img.clientHeight, l = a.img.clientWidth, c = 0, d = 0; if (isEmpty(o.get(0)) || (c = o.get(0).clientWidth, d = o.get(0).clientHeight), "loaded" == s) { if (i) { t.isotope("layout"); var h = $(a.img).closest(".maso-item"); $(h).css("visibility", "visible"), $(h).find("> *").animate({ opacity: 1 }, 300) } if (r > d) $(a.img).css("margin-top", "-" + Math.floor((r - d) / 2) + "px"); else { var m = l * (d / r); m / l > 1 && ($(a.img).css("max-width", Math.ceil(m) + "px").css("width", Math.ceil(m) + "px"), $(a.img).css("margin-left", "-" + Math.floor((m - c) / 2) + "px")) } } }) } }, $.fn.initPagination = function () { function t(t) { var i = $(t).attr("data-current-page"); isEmpty(i) && (i = 1), i++, $(t).attr("data-current-page", i); for (var a = e * i, r = e * (i - 1) ; r < e * i; r++) s.isotope("insert", n[r]); s.isotope("layout"), $.isFunction($.fn.renderLoadedImgs) && $(s).renderLoadedImgs(), a >= o && $(t).hide(300) } var i = $(this).attr("data-options"), e = ($(this).attr("data-pagination-anima"), parseInt($(this).attr("data-page-items"), 10)), a = $(this).closest(".maso-list"), s = $(a).find(".maso-box"), n = s.isotope("getItemElements"), o = $(n).length, r = ""; $(this).hasClass("load-more-maso") && (r = "load-more"), $(this).hasClass("pagination-maso") && (r = "pagination"); for (var l = e; l < o; l++) s.isotope("remove", n[l]); if (s.isotope("layout"), "pagination" == r) { var c = { totalPages: Math.ceil(o / e), visiblePages: 7, first: " First", last: "Last ", next: "Next ", prev: " Previous", onPageClick: function (t, o) { s.isotope("remove", s.isotope("getItemElements")); for (var r = e * (o - 1) ; r < e * o; r++) s.isotope("insert", n[r]); s.isotope("layout"), isEmpty(i) || -1 == i.indexOf("scrollTop:true") || $(a).scrollTo() } }; isEmpty(i) || (i.split(","), c = getOptionsString(i, c)), $(this).twbsPagination(c) } if ("load-more" == r) { var d = this; $(d).on("click", function (i) { t(this) }), isEmpty(i) || -1 == i.indexOf("lazyLoad:true") || $(window).scroll(function () { $(window).scrollTop() + $(window).height() == $(document).height() && ($.fn.getGlobalVar("firstLoad") ? setTimeout(function () { t(d) }, 800) : t(d)) }) } }, $.fn.initIsotope = function () { var t = $(this).find(".maso-box"), i = $(this).attr("data-options"), e = { itemSelector: ".maso-item", percentPosition: !0, masonry: { columnWidth: ".maso-item" }, getSortData: { number: function (t) { return parseInt(jQuery(t).attr("data-sort"), 10) } }, sortBy: "number" }; if (isEmpty(i) || (i.split(","), e = getOptionsString(i, e)), $(t).isotope(e), $.isFunction($.fn.renderLoadedImgs)) { t.isotope("getItemElements"); $(t).renderLoadedImgs() } $(this).find(".pagination-maso,.load-more-maso").initPagination() }, $.fn.showPopupBanner = function () { var t = this, i = $(t).attr("data-popup-anima"); isEmpty(i) && (i = "fade-in"), $(t).css("opacity", 0), $(t).showAnima(i), $(t).css("display", "block") }, $.fn.initMagnificPopup = function () { var t = this, i = $(t).attr("data-options"), e = $(t).attr("data-trigger"); isEmpty(e) && (e = ""); var a = $(t).attr("data-lightbox-anima"), s = $(t).attr("href"); isEmpty(s) && (s = ""); var n = { type: "iframe" }; if (isEmpty(i) || (i.split(","), n = getOptionsString(i, n)), isEmpty(n.mainClass) && (n.mainClass = ""), "load" == e || "scroll" == e) { var o = $(t).attr("data-link"), r = $(t).attr("data-click"); isEmpty(o) ? (s = "#" + $(this).attr("id"), n.mainClass += " custom-lightbox") : s = o, isEmpty(r) || $("body").on("click", ".lightbox-on-load", function () { "_blank" == $(t).attr("data-click-target") ? window.open(r) : document.location = r }) } ($(t).hasClass("grid-box") || $(t).hasClass("maso-box")) && (n.type = "image", n.delegate = "a.img-box,.advs-box a:not(.img-box)", n.gallery = { enabled: 1 }), -1 == s.indexOf(".jpg") && -1 == s.indexOf(".png") || (n.type = "image"), 0 == s.indexOf("#") && (n.type = "inline", n.mainClass += " box-inline", n.closeBtnInside = 0), n.callbacks = { open: function () { var t = $(".mfp-content"); if (isEmpty(a) ? isEmpty(i) || -1 == i.indexOf("anima:") || ($(t).showAnima(n.anima), $(t).css("opacity", 0)) : ($(t).showAnima(a), $(t).css("opacity", 0)), 0 == s.indexOf("#") && $(s).css("display", "block"), $.isFunction($.fn.initFlexSlider)) { var e = 0; $(t).find(".flexslider").each(function () { $(this).initFlexSlider(), e++ }), e && $(window).trigger("resize").trigger("scroll") } var o = $(t).find(".google-map"); $.isFunction($.fn.googleMap) && $(o).length && $(o).googleMap() }, change: function (t) { var i = this.content; $(".mfp-container").removeClass("active"), setTimeout(function () { $(".mfp-container").addClass("active") }, 500), $.isFunction($.fn.initFlexSlider) && setTimeout(function () { var t = 0; $(i).find(".flexslider").each(function () { $(this).initFlexSlider(), t++ }), t && $(window).trigger("resize").trigger("scroll") }, 100); var e = $(i).find(".google-map"); $.isFunction($.fn.googleMap) && $(e).length && $(e).googleMap() }, close: function () { $.isFunction($.fn.fullpage) && $.isFunction($.fn.fullpage.setMouseWheelScrolling) && $.fn.fullpage.setMouseWheelScrolling(!0) } }, "load" != e && "scroll" != e ? $(t).magnificPopup(n) : (0 == s.indexOf("#") && $(s).css("display", "block"), n.items = { src: s }, n.mainClass += " lightbox-on-load", $.magnificPopup.open(n)) }, $.fn.initSlimScroll = function () { var t = $(window).width(); if (!$(this).hasClass("scroll-mobile-disabled") || t > 993) { var i = $(this).attr("data-options"), e = { height: 0, size: "4px" }; isEmpty(i) || (i.split(","), e = getOptionsString(i, e)), t < 993 && (e.alwaysVisible = !0); var a = function (t, i) { var e = $(t).attr("data-height"), a = $(t).attr("data-height-remove"); if (isEmpty(e) || "auto" == e) { var s = i - $(t)[0].getBoundingClientRect().top - $("footer").outerHeight(), n = $(t).outerHeight(); isEmpty(a) || (s = i - a), e = n < s ? n + 30 : s - 30 } if ("fullscreen" == e) { s = i; e = s = !isEmpty(a) && i - a > 150 ? i - a : i - 100 } return e }(this, $(window).height()), s = $(this).attr("data-height-remove"); isEmpty(s) && (s = 0), -1 == (a += "").indexOf("#") && -1 == a.indexOf(".") || (a = "" + ($(this).closest(a).height() - s)), e.height = a + "px", $(this).slimScroll(e); var n = $(this).find(".google-map"); $.isFunction($.fn.googleMap) && $(n).length && $(n).googleMap(), e.alwaysVisible || $(".slimScrollBar").hide() } }, $.fn.restartFlexSlider = function () { var t = this; setTimeout(function () { $(t).removeData("flexslider"), $(t).find("li.clone").remove(), $(t).find(".flex-control-nav").remove(), $(t).initFlexSlider() }, 100) }, $.fn.initFlexSlider = function () { function t(t) { var i = $(t).find(".flex-active-slide"), e = $(i).attr("data-slider-anima"); isEmpty(e) || ($(i).attr("data-anima", e), initAnima(i)) } var i, e = this, a = 250, s = $(e).attr("data-options"), n = { animation: "slide", slideshowSpeed: 6e3, controlNav: !$(e).hasClass("thumb") || "thumbnails", start: function () { !$(e).hasClass("advanced-slider") && $.fn.renderLoadedImgs && $(e).find(".slides").renderLoadedImgs(), $(e).hasClass("carousel") && $(e).find(".slides > li").css("width", a + "px"), ($(e).hasClass("thumb") || $(e).hasClass("nav-middle")) && $(e).find(".flex-prev,.flex-next").css("top", $(e).find(".slides > li img")[0].clientHeight / 2 + "px"), $(e).find(".background-page video,.section-bg-video").each(function () { $(this).setVideoBgSize($(window).height(), $(window).width()) }), $(e).find(".pos-slider.pos-center").each(function () { $(this).css("margin-left", "-" + $(this).width() / 2 + "px") }), $(e).find(".pos-slider.pos-middle").each(function () { $(this).css("margin-top", "-" + $(this).height() / 2 + "px") }), t(e) }, after: function () { t(e) } }; if (isEmpty(s) || (i = s.split(","), n = getOptionsString(s, n), -1 != s.indexOf("controlNav:false") && $(this).addClass("no-navs")), $(e).hasClass("carousel")) { var o = $(e).find(".slides > li"), r = 110; $(window).width() < 993 && (r = 180); var l = 5, c = 3, d = $(e).outerWidth(); if (!isEmpty(s)) for (var h = 0; h < i.length; h++) { var m = i[h].split(":"); "minWidth" == m[0] && (r = m[1]), "itemWidth" == m[0] && (a = m[1]), "itemMargin" == m[0] && (l = m[1]), "numItems" == m[0] && (c = parseInt(m[1], 10)) } (a = d / c) < r && (c = 1, d / 2 > r && (c = 2), d / 3 > r && (c = 3), a = d / c), 1 == c && (l = 0), r = a = (a += l / c).toFixed(1), n.itemWidth = a, n.itemMargin = l; var f = Math.ceil(o.length / c); n.move = f > c ? c : f, o.length < c && (n.move = 0), n.numItems = c, l > 0 && $(o).css("padding-right", l + "px") } var u = $("[data-slider-anima] .anima"); $(u).each(function () { $(this).css("opacity", 0) }), $(e).flexslider(n) }, $(document).ready(function () { function t(t) { var i = $(t).attr("data-menu-anima"); isEmpty(i) && (i = "fade-in"), $(".hamburger-menu,.side-menu-fixed").css("visibility", "hidden").css("opacity", "0").removeClass(i), $(t).removeClass("active"), $("body").css("overflow", "") } function i(t) { var i = $(t).attr("data-menu-anima"); isEmpty(i) && (i = "fade-in"), $(".hamburger-menu,.side-menu-fixed").css("visibility", "visible").showAnima(i), $(t).addClass("active"), "device-xs" == n && $("body").css("overflow", "hidden") } function a(t) { var i = $(t).closest("header"), e = $(i).find(".subline-bar ul:eq(" + $(t).index() + ")"); $(i).find(".subline-bar ul").css("display", "none"), $(e).css("opacity", "0").css("display", "block").animate({ opacity: 1 }, 300) } function s() { $(".shop-menu-cnt").length && jQuery.ajax({ method: "POST", url: ajax_url, data: { action: "hc_get_wc_cart_items" } }).done(function (t) { if (!isEmpty(t) && t.length > 10) { var i = JSON.parse(t); if (i.length > 0) { for (var e = $(".shop-menu-cnt"), a = $(e).find(".cart-total").attr("data-currency"), s = 0, n = "", o = 0; o < i.length; o++) s += i[o].price * i[o].quantity, n += "