! function(l) { "use strict"; window.LA = { core: {}, ui: {}, utils: {}, component: {} }, l.exists = function(e) { return 0 < e.length }, l.getCachedScript = function(e) { var t = { dataType: "script", cache: !0, url: e }; return l.ajax(t) }, l.fn.LA_ImagesLoaded = function() { var e = this.find('img[src!=""]'); if (!e.length) return l.Deferred().resolve().promise(); var a = []; return e.each(function() { var e = l.Deferred(); a.push(e); var t = new Image; t.onload = function() { e.resolve() }, t.onerror = function() { e.resolve() }, t.src = this.src }), l.when.apply(l, a) }, l.expr[":"].appeared = function(e) { var t = l(e), a = l(window); if (!t.is(":visible")) return !1; var i = a.scrollLeft(), o = a.scrollTop(), n = t.offset(), s = n.left, r = n.top; return r + t.height() >= o && r - (t.data("appear-top-offset") || 0) <= o + a.height() && s + t.width() >= i && s - (t.data("appear-left-offset") || 0) <= i + a.width() }; var e = function(e) { this.$el = l(e), this._init() }; e.prototype = { _init: function() { this._loadEvents() }, _loadEvents: function() { var n = this; this.$el.on("mouseenter.hoverdir, mouseleave.hoverdir", function(e) { var t = l(this), a = n._getDir(t, { x: e.pageX, y: e.pageY }), i = n._getClass(a), o = "mouseenter" === e.type ? "in-" : "out-"; t.removeClass("in-top in-left in-right in-bottom out-top out-left out-right out-bottom"), t.addClass(o + i) }) }, _getDir: function(e, t) { var a = e.width(), i = e.height(), o = (t.x - e.offset().left - a / 2) * (i < a ? i / a : 1), n = (t.y - e.offset().top - i / 2) * (a < i ? a / i : 1); return Math.round((Math.atan2(n, o) * (180 / Math.PI) + 180) / 90 + 3) % 4 }, _getClass: function(e) { var t; switch (e) { case 0: t = "top"; break; case 1: t = "right"; break; case 2: t = "bottom"; break; case 3: t = "left" } return t } }, l.fn.la_hover_effect = function() { return new e(this) } }(jQuery), function(i) { "use strict"; var e, t, a, o, n, s, r, c = window.LA || {}; function d(e) { return /^(?:body|html)$/i.test(e.tagName) } function u(e, t) { return i(e).css(t) } function l(e, t) { return parseInt(u(e, t)) || 0 } function p(e) { return l(e, "border-top-width") } function h(e) { return l(e, "border-left-width") } function f(e) { return "border-box" == u(e, "-moz-box-sizing") } function m(e) { if (e.getBoundingClientRect && "ios" != c.utils.browser.platform) { var t = e.getBoundingClientRect(), a = e.ownerDocument.documentElement, i = { x: window.pageXOffset || document.documentElement.scrollLeft, y: window.pageYOffset || document.documentElement.scrollTop }, o = function(e) { for (var t = e.parentNode, a = { x: 0, y: 0 }; t && !d(t);) a.x += t.scrollLeft, a.y += t.scrollTop, t = t.parentNode; return a }(e), n = "fixed" == u(e, "position"); return { x: parseInt(t.left) + o.x + (n ? 0 : i.x) - a.clientLeft, y: parseInt(t.top) + o.y + (n ? 0 : i.y) - a.clientTop } } var s = e, r = { x: 0, y: 0 }; if (d(e)) return r; for (; s && !d(s);) { if (r.x += s.offsetLeft, r.y += s.offsetTop, "firefox" == c.utils.browser.name) { f(s) || (r.x += h(s), r.y += p(s)); var l = s.parentNode; l && "visible" != u(l, "overflow") && (r.x += h(l), r.y += p(l)) } else s != e && "safari" == c.utils.browser.name && (r.x += h(s), r.y += p(s)); s = s.offsetParent } return "firefox" != c.utils.browser.name || f(e) || (r.x -= h(e), r.y -= p(e)), r } c.utils = window.LA.utils || {}, c.utils.isDebug = !0, c.utils.logger = { $cache: {}, display: function(e) { if (c.utils.isDebug) return console.log(e) }, set: function(e, t, a) { if (c.utils.isDebug) { void 0 !== t ? void 0 === a && (a = t) : (t = "anonymous", a = "Anonymous"); var i = this.$cache[t] || []; i.push([e, a]), this.$cache[t] = i } }, get: function(a) { if (c.utils.isDebug) { void 0 === a ? (console.group("ALL"), i.each(this.$cache, function(a, e) { i.each(e, function(e, t) { console.group("Com [" + a + "] : " + t[1]), console.log(t[0]), console.groupEnd() }) }), console.groupEnd()) : i.each(this.$cache[a], function(e, t) { console.group("Com [" + a + "] : " + t[1]), console.log(t[0]), console.groupEnd() }) } } }, c.utils.isCookieEnable = function() { if (navigator.cookieEnabled) return !0; document.cookie = "cookietest=1"; var e = -1 != document.cookie.indexOf("cookietest="); return document.cookie = "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT", e }, c.utils.browser = (n = navigator.userAgent.toLowerCase(), s = navigator.platform.toLowerCase(), r = n.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/) || [null, "unknown", "0"], -1 != (o = function() { var e = -1; if ("Microsoft Internet Explorer" == navigator.appName) { var t = navigator.userAgent; null != new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t) && (e = parseFloat(RegExp.$1)) } else "Netscape" == navigator.appName && (t = navigator.userAgent, null != new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(t) && (e = parseFloat(RegExp.$1))); return e }()) ? (e = "ie", t = o) : (e = "version" == r[1] ? r[3] : r[1], t = r[2].substring(0, 2)), a = n.match(/ip(?:ad|od|hone)/) ? "ios" : (n.match(/(?:webos|android)/) || s.match(/mac|win|linux/) || ["other"])[0], i("html").addClass(e).addClass(e + " " + e + t + " platform-" + a), { name: e, version: t, platform: a }), c.utils.isMobile = function() { return navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/iPhone|iPad|iPod/i) || navigator.userAgent.match(/Opera Mini/i) || navigator.userAgent.match(/IEMobile/i) }, c.utils.getUrlParameter = function(e, t) { t || (t = window.location.href), e = e.replace(/[\[\]]/g, "\\$&"); var a = new RegExp("[?&]" + e + "(=([^&#]*)|&|#|$)").exec(t); return a ? a[2] ? decodeURIComponent(a[2].replace(/\+/g, " ")) : "" : null }, c.utils.isRTL = function() { return i(document.body).hasClass("rtl") }, c.utils.isActiveVC = function() { return i(document.body).hasClass("wpb-js-composer") }, c.utils.sanitizeSlug = function(e) { return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "") }, c.utils.randomID = function() { var e, t = "", a = "abcdefghijklmnopqrstuvwxyz", i = "0123456789"; for (e = 0; e < 5; e++) t += a.charAt(Math.floor(Math.random() * a.length)); for (e = 0; e < 5; e++) t += i.charAt(Math.floor(Math.random() * i.length)); return t }, c.utils.getAdminbarHeight = function() { var e = i("#wpadminbar"); return i.exists(e) && "fixed" == e.css("position") ? e.height() : 0 }, c.utils.addStyleSheet = function(e) { var t, a; return t = document.getElementsByTagName("head")[0], (a = document.createElement("style")).setAttribute("type", "text/css"), a.styleSheet ? a.styleSheet.cssText = e : a.appendChild(document.createTextNode(e)), t.appendChild(a), a }, c.utils.addQueryArg = function(e, t, a) { var i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = -1 !== e.indexOf("?") ? "&" : "?"; return e.match(i) ? e.replace(i, "$1" + t + "=" + a + "$2") : e + o + t + "=" + a }, c.utils.removeURLParameter = function(e, t) { var a = e.split("?"); if (2 <= a.length) { for (var i = encodeURIComponent(t) + "=", o = a[1].split(/[&;]/g), n = o.length; 0 < n--;) - 1 !== o[n].lastIndexOf(i, 0) && o.splice(n, 1); return e = a[0] + (0 < o.length ? "?" + o.join("&") : "") } return e }, c.utils.reverseString = function(e) { return e.split("").reverse().join("") }, c.utils.decodeToken = function(e) { var t = ""; if ("" != e) { var a = e.split("."), r = []; a.forEach(function(e, t) { var a = e.length, i = ""; if (5 < a) { var o = e.substr(0, 3), n = e.substr(a - 3), s = e.substr(3, a - 6); s && (s = c.utils.reverseString(s)), i = c.utils.reverseString(n) + s + c.utils.reverseString(o) } else i = 0 < a ? c.utils.reverseString(e) : e; r.push(i) }), t = r.join(".") } return t }, c.utils.getOffset = function(e) { return i.exists(e) ? m(e.get(0)) : { x: 0, y: 0 } }, c.utils.localCache = { timeout: 6e5, data: {}, remove: function(e) { delete c.utils.localCache.data[e] }, exist: function(e) { return !!c.utils.localCache.data[e] && (new Date).getTime() - c.utils.localCache.data[e]._ < c.utils.localCache.timeout }, get: function(e) { return console.log("Getting in cache for url " + e), c.utils.localCache.data[e].data }, set: function(e, t, a) { c.utils.localCache.remove(e), c.utils.localCache.data[e] = { _: (new Date).getTime(), data: t }, i.isFunction(a) && a(t) } }, i.ajaxPrefilter(function(e, t, a) { if (e.cache) { var i = t.url + (void 0 !== t.ajax_request_id ? JSON.stringify(t.ajax_request_id) : JSON.stringify(t.data)); e.cache = !1, e.beforeSend = function() { return c.utils.localCache.exist(i) || a.promise().done(function(e, t) { c.utils.localCache.set(i, e) }), !0 } } }), i.ajaxTransport("+*", function(e, t, a) { var i = t.url + (void 0 !== t.ajax_request_id ? JSON.stringify(t.ajax_request_id) : JSON.stringify(t.data)); if (e.cache = !1, c.utils.localCache.exist(i)) return { send: function(e, t) { t(200, "OK", [c.utils.localCache.get(i)]) }, abort: function() {} } }) }(jQuery), function(c) { "use strict"; var e = window.LA || {}; e.utils = window.LA.utils || {}; var d = { rootMargin: "0px", threshold: .1, load: function(e) { var t = e.getAttribute("data-src") || e.getAttribute("data-lazy") || e.getAttribute("data-lazy-src") || e.getAttribute("data-lazy-original"), a = e.getAttribute("data-src") || e.getAttribute("data-lazy-srcset"), i = e.getAttribute("data-sizes") || e.getAttribute("data-lazy-sizes"); "true" == e.getAttribute("datanolazy") && (t = a = i = ""), t && (e.src = t), a && (e.srcset = a), i && (e.sizes = i), e.getAttribute("data-background-image") && (e.style.backgroundImage = "url(" + e.getAttribute("data-background-image") + ")") }, complete: function(e) {} }; function u(e) { e.setAttribute("data-element-loaded", !0) } var p = function(e) { return "true" === e.getAttribute("data-element-loaded") }; e.utils.LazyLoad = function() { var a, t = 0 < arguments.length && void 0 !== arguments[0] && arguments[0], e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, i = c.extend({}, d, e), o = i.rootMargin, n = i.threshold, s = i.load, r = i.complete, l = void 0; return window.IntersectionObserver && (l = new IntersectionObserver((a = s, function(e, t) { e.forEach(function(e) { 0 < e.intersectionRatio && (t.unobserve(e.target), p(e.target) || (a(e.target), u(e.target))) }) }), { rootMargin: o, threshold: n })), { triggerSingleLoad: function() { if (c.exists(t)) { var e = t.get(0); p(e) || (l ? l.observe(e) : (s(e), u(e), r(t))) } }, observe: function() { if (c.exists(t)) { for (var e = 0; e < t.length; e++) p(t[e]) || (l ? l.observe(t[e]) : (s(t[e]), u(t[e]))); r(t) } }, triggerLoad: function(e) { p(e) || (s(e), u(e), r(t)) } } } }(jQuery), function(T) { "use strict"; var D, q; q = T(window), D = T(document), T.fn.la_sticky = function(e) { var C, t, x, k, A, L, S, a, j, M, z, i, o, n, I; for (null == e && (e = {}), M = e.sticky_class, k = e.inner_scrolling, j = e.recalc_every, a = e.parent, L = e.offset_top, A = e.spacer, x = e.bottoming, I = e.fake_parent, e.fake_parent_height, z = q.height(), C = D.height(), null == L && (L = 0), null == a && (a = void 0), null == k && (k = !0), null == M && (M = "is_stuck"), null == x && (x = !0), S = function(e) { var t, a; return window.getComputedStyle ? (e[0], t = window.getComputedStyle(e[0]), a = parseFloat(t.getPropertyValue("width")) + parseFloat(t.getPropertyValue("margin-left")) + parseFloat(t.getPropertyValue("margin-right")), "border-box" !== t.getPropertyValue("box-sizing") && (a += parseFloat(t.getPropertyValue("border-left-width")) + parseFloat(t.getPropertyValue("border-right-width")) + parseFloat(t.getPropertyValue("padding-left")) + parseFloat(t.getPropertyValue("padding-right"))), a) : e.outerWidth(!0) }, i = function(n, s, r, l, c, d, u, p) { var h, e, f, m, g, v, _, w, t, b, y, i, o; if (!n.data("la_sticky")) { if (n.data("la_sticky", !0), g = C, _ = n.parent(), I && (o = I), null != a && (_ = _.closest(a)), !_.length) throw "failed to find stick parent"; if (h = f = !1, (y = null != A ? A && n.closest(A) : T("
")) && y.css("position", n.css("position")), (w = function() { var e, t, a; if (!p) return z = q.height(), C = D.height(), g = C, e = parseInt(_.css("border-top-width"), 10), t = parseInt(_.css("padding-top"), 10), s = parseInt(_.css("padding-bottom"), 10), r = _.offset().top + e + t, l = I ? o.height() : _.height(), f && (h = f = !1, null == A && (n.insertAfter(y), y.detach()), n.css({ position: "", top: "", width: "", bottom: "" }).removeClass(M), a = !0), c = n.offset().top - (parseInt(n.css("margin-top"), 10) || 0) - L, d = n.outerHeight(!0), u = n.css("float"), y && y.css({ width: S(n), height: d, display: n.css("display"), "vertical-align": n.css("vertical-align"), float: u }), a ? i() : void 0 })(), d !== l) return m = void 0, v = L, b = j, i = function() { var e, t, a, i, o; if (!p) return a = !1, null != b && (b -= 1) <= 0 && (b = j, w(), a = !0), a || C === g || (w(), a = !0), i = q.scrollTop(), null != m && (t = i - m), m = i, f ? (x && (o = l + r < i + d + v, h && !o && (h = !1, n.css({ position: "fixed", bottom: "", top: v }).trigger("la_sticky:unbottom"))), i <= c && (f = !1, v = L, null == A && ("left" !== u && "right" !== u || n.insertAfter(y), y.detach()), e = { position: "", width: "", top: "" }, n.css(e).removeClass(M).trigger("la_sticky:unstick")), k && z < d + L && (h || (v -= t, v = Math.max(z - d, v), v = Math.min(L, v), f && n.css({ top: v + "px" })))) : c < i && (f = !0, (e = { position: "fixed", top: v }).width = "border-box" === n.css("box-sizing") ? n.outerWidth() + "px" : n.width() + "px", n.css(e).addClass(M), null == A && (n.after(y), "left" !== u && "right" !== u || y.append(n)), n.trigger("la_sticky:stick")), f && x && (null == o && (o = l + r < i + d + v), !h && o) ? (h = !0, "static" === _.css("position") && _.css({ position: "relative" }), n.css({ position: "absolute", bottom: s, top: "auto" }).trigger("la_sticky:bottom")) : void 0 }, t = function() { return w(), i() }, e = function() { if (p = !0, q.off("touchmove", i), q.off("scroll", i), q.off("resize", t), T(document.body).off("la_sticky:recalc", t), n.off("la_sticky:detach", e), n.removeData("la_sticky"), n.css({ position: "", bottom: "", top: "", width: "" }), _.position("position", ""), f) return null == A && ("left" !== u && "right" !== u || n.insertAfter(y), y.remove()), n.removeClass(M) }, q.on("touchmove", i), q.on("scroll", i), q.on("resize", t), T(document.body).on("la_sticky:recalc", t), n.on("la_sticky:detach", e), setTimeout(i, 0) } }, o = 0, n = this.length; o < n; o++) t = this[o], i(T(t)); return this } }(jQuery), function(a) { "use strict"; var e = window.LA || {}; e.utils = window.LA.utils || {}, e.utils.eventManager = {}, e.utils.eventManager.subscribe = function(e, t) { a(this).on(e, t) }, e.utils.eventManager.unsubscribe = function(e, t) { a(this).off(e, t) }, e.utils.eventManager.publish = function(e, t) { a(this).trigger(e, t) } }(jQuery), function(u) { "use strict"; var t = function(e, t) { if (this.$target = e, this.$images = u(".woocommerce-product-gallery__image", e), e.parent(".product--large-image").data("old_gallery") || e.parent(".product--large-image").data("old_gallery", e.find(".woocommerce-product-gallery__wrapper").html()).data("prev_gallery", e.find(".woocommerce-product-gallery__wrapper").html()), 0 === this.$images.length) return this.$target.css("opacity", 1), void this.$target.parent().addClass("no-gallery"); 1 === this.$images.length ? this.$target.parent().addClass("no-gallery") : this.$target.parent().removeClass("no-gallery"), e.data("product_gallery", this), this.flexslider_enabled = !0, (e.hasClass("no-slider-script") || e.hasClass("force-disable-slider-script")) && (this.flexslider_enabled = !1), this.zoom_enabled = u.isFunction(u.fn.zoom) && wc_single_product_params.zoom_enabled, this.photoswipe_enabled = "undefined" != typeof PhotoSwipe && wc_single_product_params.photoswipe_enabled, t && (this.flexslider_enabled = !1 !== t.flexslider_enabled && this.flexslider_enabled, this.zoom_enabled = !1 !== t.zoom_enabled && this.zoom_enabled, this.photoswipe_enabled = !1 !== t.photoswipe_enabled && this.photoswipe_enabled), e.hasClass("force-disable-slider-script") && (this.flexslider_enabled = !1, this.zoom_enabled = !1), this.thumb_verital = !1, this.$images.length < 2 && (this.flexslider_enabled = !1); try { 2 == la_theme_config.product_single_design && (this.thumb_verital = !0) } catch (e) { this.thumb_verital = !1 } if (this.parent_is_quickview = !1, e.closest(".lightcase-contentInner").length && (this.thumb_verital = !0, this.zoom_enabled = !1, this.parent_is_quickview = !0), this.initSlickslider = this.initSlickslider.bind(this), this.initZoom = this.initZoom.bind(this), this.initPhotoswipe = this.initPhotoswipe.bind(this), this.onResetSlidePosition = this.onResetSlidePosition.bind(this), this.getGalleryItems = this.getGalleryItems.bind(this), this.openPhotoswipe = this.openPhotoswipe.bind(this), this.flexslider_enabled) if (u.isFunction(u.fn.slick)) this.initSlickslider(), e.on("woocommerce_gallery_reset_slide_position", this.onResetSlidePosition); else { var a = this; LA.core.loadDependencies([LA.core.path.plugins + "jquery.slick.js"], function() { a.initSlickslider(), e.on("woocommerce_gallery_reset_slide_position", a.onResetSlidePosition) }) } else this.parent_is_quickview && u("body").removeClass("lightcase--pending").addClass("lightcase--completed"), this.$target.css("opacity", 1), e.removeClass("la-rebuild-product-gallery").parent().removeClass("swatch-loading"); this.zoom_enabled && (this.initZoom(), e.on("woocommerce_gallery_init_zoom", this.initZoom)), this.photoswipe_enabled && this.initPhotoswipe() }; t.prototype.initSlickslider = function() { var e = this.$images, t = this.$target, o = t.find(".woocommerce-product-gallery__wrapper"), n = t.parent().find(".la-thumb-inner"), a = Math.floor(100 * Math.random() + 1), i = "la_woo_thumb_" + a, s = "la_woo_target_" + a, r = this.parent_is_quickview; o.attr("id", s), n.attr("id", i), e.each(function() { var e = u(this), t = e.find("a[data-videolink]").data("videolink"), a = o.css("height"), i = '
'; void 0 !== t && t && (e.unbind("click"), e.find(".zoomImg").css({ display: "none!important" }), 0 == t.indexOf("http://selfhosted/") ? (t = t.replace("http://selfhosted/", ""), i = '
', e.append(''), e.attr("data-video", '
')) : (i = '
', e.append(''), e.attr("data-video", '
')), e.find("img").css({ opacity: "0", "z-index": "-1" }), e.find("iframe").next().remove()), n.append(i) }); var l = u.extend({ xlg: 3, lg: 3, md: 3, sm: 5, xs: 4, mb: 3 }, JSON.parse(la_theme_config.product_gallery_column) || {}), c = { infinite: !0, slidesToShow: parseInt(l.xlg), slidesToScroll: 1, asNavFor: "#" + s, dots: !1, arrows: !0, focusOnSelect: !0, prevArrow: '', nextArrow: '', vertical: this.thumb_verital, responsive: [{ breakpoint: 1024, settings: { vertical: this.thumb_verital, slidesToShow: parseInt(l.lg) } }, { breakpoint: 991, settings: { vertical: !1, slidesToShow: parseInt(l.md) } }, { breakpoint: 768, settings: { vertical: !1, slidesToShow: parseInt(l.sm) } }, { breakpoint: 600, settings: { vertical: !1, slidesToShow: parseInt(l.xs) } }, { breakpoint: 480, settings: { vertical: !1, slidesToShow: parseInt(l.mb) } }] }; this.thumb_verital || (c.infinite = !0, c.centerMode = !0, c.centerPadding = "0px"); var d = { infinite: !0, swipe: !0, slidesToShow: 1, slidesToScroll: 1, arrows: !0, asNavFor: "#" + i, prevArrow: '', nextArrow: '', rtl: LA.utils.isRTL() }; this.thumb_verital || (d.infinite = !0), n.slick(c), o.slick(d), LA.utils.LazyLoad(u("img,.la-lazyload-image", t.parent()), { complete: function() { t.css("opacity", 1), n.slick("setPosition"), t.parent().removeClass("swatch-loading"), r && setTimeout(function() { o.resize(), setTimeout(function() { u("body").removeClass("lightcase--pending").addClass("lightcase--completed") }, 50) }, 150) } }).observe() }, t.prototype.initZoom = function() { var e = this.$images, a = this.$target.width(), i = !1; if (this.flexslider_enabled || (e = e.first()), u(e).each(function(e, t) { if (u(t).find("img").data("large_image_width") > a) return !(i = !0) }), i) { var t = { touch: !1 }; "ontouchstart" in window && (t.on = "click"), e.trigger("zoom.destroy"), e.zoom(t) } }, t.prototype.initPhotoswipe = function() { this.zoom_enabled && 0 < this.$images.length && (this.$target.prepend(''), this.$target.on("click", ".woocommerce-product-gallery__trigger", this.openPhotoswipe)), this.$target.on("click", ".woocommerce-product-gallery__image a:not(.video-link-popup)", this.openPhotoswipe) }, t.prototype.onResetSlidePosition = function() { this.$target.parent().removeClass("swatch-loading"), this.$target.find(".woocommerce-product-gallery__wrapper").slick("slickGoTo", 0) }, t.prototype.getGalleryItems = function() { var e = this.$images, o = []; return 0 < e.length && e.each(function(e, t) { var a = u(t).find("img"), i = { src: a.attr("data-large_image"), w: a.attr("data-large_image_width"), h: a.attr("data-large_image_height"), title: a.attr("title") }; u(t).attr("data-video") && (i = { html: u(t).attr("data-video") }), o.push(i) }), o }, t.prototype.openPhotoswipe = function(e) { e.preventDefault(); var t, a = u(".pswp")[0], i = this.getGalleryItems(), o = u(e.target); t = o.is(".woocommerce-product-gallery__trigger") ? this.$target.find(".slick-current") : o.closest(".woocommerce-product-gallery__image"); var n = { index: u(t).index(), shareEl: !1, closeOnScroll: !1, history: !1, hideAnimationDuration: 0, showAnimationDuration: 0 }; new PhotoSwipe(a, PhotoSwipeUI_Default, i, n).init() }, u.fn.la_product_gallery = function(e) { return new t(this, e), this } }(jQuery), function(u) { "use strict"; function l(e, t) { this.recalc_needed = !0, this.variation_attributes = e, this.variations_available = t, this.variations_current = {}, this.variations_selected = {}, this.reset_current = function() { for (var e in this.variation_attributes) { this.variations_current[e] = {}; for (var t = 0; t < this.variation_attributes[e].length; t++) this.variations_current[e.toString()][this.variation_attributes[e][t].toString()] = 0 } }, this.update_current = function() { this.reset_current(); for (var e = 0; e < this.variations_available.length; e++) if (this.variations_available[e].variation_is_active) { var t = this.variations_available[e].attributes; for (var a in t) { var i = t[a], o = this.variations_selected[a]; if (o && o == i) this.variations_current[a][i] = 1; else { var n = !0; for (var s in this.variations_selected) if (s != a) { var r = this.variations_selected[s], l = t[s]; r && l && r != l && (n = !1) } if (n) if ("" === i) for (var c in this.variations_current[a]) this.variations_current[a][c] = 1; else this.variations_current[a][i] = 1 } } } this.recalc_needed = !1 }, this.get_current = function() { return this.recalc_needed && this.update_current(), this.variations_current }, this.reset_selected = function() { this.recalc_needed = !0, this.variations_selected = {} }, this.set_selected = function(e, t) { this.recalc_needed = !0, this.variations_selected[e] = t }, this.get_selected = function() { return this.variations_selected } } function r(e, t) { var a, i, o = e.closest(".la-p-single-wrap").find(".product--large-image"), n = ""; if (null !== t) i = "", void 0 !== (a = t) && u.isArray(a.la_additional_images) && u.each(a.la_additional_images, function(e, t) { i += '', n += '
', o.css({ "max-height": o.height(), "min-height": o.height() }).addClass("swatch-loading"), LA.utils.LazyLoad(u("img,.la-lazyload-image", u(n)), { complete: function() { o.html(n); var e = o.find(".la-woo-product-gallery"); null !== t && e.addClass("la-rebuild-product-gallery"), e.la_product_gallery().addClass("swatch-loaded"), o.css({ "max-height": "none", "min-height": "0" }) } }).observe() } } try { u.fn.la_variation_form = function() { var o = this, a = parseInt(o.data("product_id"), 10), i = null, s = !1, n = null; o.addClass("la-init-swatches"), o.find("td.label").each(function() { u(this).find("label").append('') }), o.on("bind_calculator", function() { var e = o.data("product_variations"); (s = !1 === e) && o.block({ message: null, overlayCSS: { background: "#fff", opacity: .6 } }); var r = {}; if (o.find(".select-option.selected").each(function(e, t) { var a = u(this), i = a.closest("div.select").eq(0), o = i.closest("tr").find(".swatch-label").eq(0), n = i.find("select").first(), s = u("
").html(a.data("value")).text(); s = (s = s.replace(/'/g, "\\'")).replace(/"/g, '\\"'), o && o.html(n.children("[value='" + s + "']").eq(0).text()), n.trigger("change") }), o.find(".variations select").each(function(e, t) { var a = u(t), i = a.data("attribute_name") || a.attr("name"); r[i] = []; var o; if ((o = a.find("option:gt(0)").get()).length) for (var n = 0; n < o.length; n++) { var s = o[n]; r[i].push(u(s).val()) } }), s) { n && n.abort(); var t = { product_id: a, action: "la_swatch_get_product_variations" }; n = u.ajax({ url: la_theme_config.ajax_url, type: "POST", data: t, success: function(e) { i = new l(r, e.data, null, null), o.unblock() } }) } else i = new l(r, e, null, null); o.trigger("woocommerce_variation_has_changed") }), o.on("change", ".wc-default-select", function(e) { var t = u(this), a = t.closest("tr").find(".swatch-label").eq(0); "" != t.val() ? a.html(t.find("option:selected").html()) : a.html("") }), o.find(".wc-default-select").trigger("change"), o.on("click", ".reset_variations", function() { return o.find(".swatch-label").html(""), o.find(".select-option").removeClass("selected"), o.find(".radio-option").prop("checked", !1), !1 }).on("click", ".select-option", function(e) { e.preventDefault(); var t = u(this), a = t.closest("div.select").eq(0), i = a.closest("tr").find(".swatch-label").eq(0), o = a.find("select").first(); if (t.hasClass("disabled")) return !1; if (t.hasClass("selected")) t.removeClass("selected"), o.children("option:eq(0)").prop("selected", "selected").change(), i && i.html(""); else { a.find(".select-option").removeClass("selected"), t.addClass("selected"); var n = u("
").html(t.data("value")).text(); n = (n = n.replace(/'/g, "\\'")).replace(/"/g, '\\"'), o.trigger("focusin").children("[value='" + n + "']").prop("selected", "selected").change(), i && i.html(o.children("[value='" + n + "']").eq(0).text()) } }).on("change", ".radio-option", function(e) { var t = u(this), a = t.closest("div.select").eq(0).find("select").first(), i = u("
").html(t.val()).text(); i = (i = i.replace(/'/g, "\\'")).replace(/"/g, '\\"'), a.trigger("focusin").children("[value='" + i + "']").prop("selected", "selected").change() }).on("woocommerce_variation_has_changed", function() { if (null !== i) { o.find(".variations select").each(function() { var e = u(this).data("attribute_name") || u(this).attr("name"); i.set_selected(e, u(this).val()) }); var n = i.get_current(); o.find("div.select").each(function(e, t) { var a = u(t).find("select").first(), i = a.data("attribute_name") || a.attr("name"), o = n[i]; u(t).find("div.select-option").each(function(e, t) { o[u(t).data("value")] ? u(t).removeClass("disabled") : u(t).addClass("disabled", "disabled") }), u(t).find("input.radio-option").each(function(e, t) { o[u(t).val()] ? (u(t).removeAttr("disabled"), u(t).parent().removeClass("disabled")) : (u(t).attr("disabled", "disabled"), u(t).parent().addClass("disabled", "disabled")) }) }), s && o.find(".wc-default-select").each(function(e, t) { var a = u(t), i = a.data("attribute_name") || a.attr("name"), o = n[i]; a.find("option:gt(0)").removeClass("attached"), a.find("option:gt(0)").removeClass("enabled"), a.find("option:gt(0)").removeAttr("disabled"), a.find("option:gt(0)").each(function(e, t) { o[u(t).val()] ? (u(t).addClass("attached"), u(t).addClass("enabled")) : u(t).addClass("disabled", "disabled") }), a.find("option:gt(0):not(.enabled)").attr("disabled", "disabled") }) } }).on("found_variation", function(e, t) { r(o, t) }).on("reset_image", function(e) { r(o, null) }), o.find(".single_variation").on("show_variation", function(e, t, a) { var i = o.siblings(".single-price-wrapper"); u("span.price", i).remove(), i.append(t.price_html) }) }; var a = []; la_theme_config.la_extension_available.swatches && u(document).on("wc_variation_form", ".variations_form", function(e) { var t = u(e.target); a.push(t), t.data("has_swatches_form") || (t.data("has_swatches_form", !0), t.la_variation_form(), t.trigger("bind_calculator"), t.on("reload_product_variations", function() { for (var e = 0; e < a.length; e++) a[e].trigger("woocommerce_variation_has_changed"), a[e].trigger("bind_calculator"), a[e].trigger("woocommerce_variation_has_changed") })) }) } catch (e) { console.log("la_theme_config.la_extension_available.swatches is not activate") } }(jQuery), function(n) { "use strict"; var s = window.LA || {}; s.core = window.LA.core || {}; var r = [], l = {}; s.core.initAll = function(e) { var t = e.find(".js-el").filter("[data-la_component]"), a = ""; if (a += ".product--summary .add_compare,", a += ".product--summary .add_wishlist,", a += ".social--sharing a,", a += ".products-list .product_item .product_item--thumbnail .product_item--action .quickview,", a += ".products-grid-6 .button:not(.add_to_cart_button),", a += ".products-grid-6 .add_to_cart_button span,", a += ".products-grid:not(.products-grid-6) .product_item_thumbnail_action .button:not(.add_to_cart_button),", a += ".products-grid:not(.products-grid-6) .product_item_thumbnail_action .add_to_cart_button span", n(".la-tooltip-elm").length, e.find(a).length && s.core.ToolTip(e.find(a)).init(), !(t.length <= 0)) { var i = function(e, t) { var a = n(t); a.data("init-" + e) || ("function" != typeof s.component[e] ? s.utils.logger.set(e, "Component", "Component init error") : (new s.component[e](t).init(), a.data("init-" + e, !0), s.utils.eventManager.publish("LA:component_inited"))) }; t.each(function() { var t = this, e = n(this).data("la_component"); "string" == typeof e ? i(e, t) : e.forEach(function(e) { i(e, t) }) }) } }, s.core.loadDependencies = function(e, t) { var a = t || function() {}; if (e) { var i = e.map(function(e) { return -1 === r.indexOf(e) && (void 0 === l[e] ? (s.utils.logger.display(e), e) : (l[e].push(a), !0)) }); if (!0 !== i[0]) if (!1 !== i[0]) { var o = i.map(function(e) { return l[e] = [a], n.getCachedScript(e) }); n.when.apply(null, o).done(function() { var t = 0; i.map(function(e) { t++, l[e].forEach(function(e) { t == i.length && e() }), delete l[e], r.push(e) }) }) } else a(); else s.utils.logger.set({ new_deps: i[0], waitingFor: e[0] }, "Component", "waitingFor: load js file before running callback") } else a() }, s.core.path = { theme: la_theme_config.theme_path, plugins: la_theme_config.js_path, ajaxUrl: la_theme_config.ajax_url, security: la_theme_config.security } }(jQuery), function(v) { "use strict"; var _ = window.LA || {}, w = v(window), l = v(document), n = v("html,body"), u = v("body.mantis-body"), c = v("#masthead"), d = c.find(".site-header-inner"), p = v("#masthead_aside").find(".site-header-inner"), h = v(".site-header-mobile"), f = h.find(".site-header-inner"), m = v("#colophon"), g = v("#la_full_page"); _.utils = window.LA.utils || {}, _.component = window.LA.component || {}, _.ui = window.LA.ui || {}, _.core = window.LA.core || {}, _.ui.AnimateLoadElement = function(e, t, a) { var i = a || function() {}, o = 0; t.css({ opacity: 0 }), "fade" == e ? (t.each(function() { v(this).stop().animate({ opacity: 1 }, 1e3) }), o = 1e3) : "sequencefade" == e ? (t.each(function(e) { var t = v(this); setTimeout(function() { t.stop().animate({ opacity: 1 }, 1e3) }, 100 + 50 * e) }), o = 500 + 50 * t.length) : "upfade" == e ? (t.each(function() { var e = v(this), t = parseInt(e.css("top"), 10) + e.height() / 2; e.css({ top: t + "px", opacity: 0 }) }), t.each(function() { var e = v(this); e.stop().animate({ top: parseInt(e.css("top"), 10) - e.height() / 2, opacity: 1 }, 1500) }), o = 2e3) : "sequenceupfade" == e ? (t.each(function() { var e = v(this), t = parseInt(e.css("top"), 10) + e.height() / 2; e.css({ top: t + "px", opacity: 0 }) }), t.each(function(e) { var t = v(this); setTimeout(function() { t.stop().animate({ top: parseInt(t.css("top"), 10) - t.height() / 2, opacity: 1 }, 1e3) }, 100 + 50 * e) }), o = 500 + 50 * t.length) : (t.css({ opacity: 1 }), o = 1e3), setTimeout(function() { i.call() }, o) }, _.ui.LazyLoadElementEffect = function(e, t) { var a; t.hasClass("LazyLoadElementEffect-inited") || (_.utils.LazyLoad(t, { load: (a = 0 == !!t.attr("data-la-effect") ? "sequenceupfade" : t.attr("data-la-effect"), void _.ui.AnimateLoadElement(a, v(e, t), function() { v(e, t).addClass("showmenow") })) }).observe(), t.addClass("LazyLoadElementEffect-inited")) }, _.ui.MobileMenuEffect = function() { var e = { classin: "dl-animate-in-2", classout: "dl-animate-out-2" }; switch (la_theme_config.mm_mb_effect) { case "1": e = { classin: "dl-animate-in-1", classout: "dl-animate-out-1" }; break; case "2": e = { classin: "dl-animate-in-2", classout: "dl-animate-out-2" }; break; case "3": e = { classin: "dl-animate-in-3", classout: "dl-animate-out-3" }; break; case "4": e = { classin: "dl-animate-in-4", classout: "dl-animate-out-4" }; break; case "5": e = { classin: "dl-animate-in-5", classout: "dl-animate-out-5" } } return e }, _.ui.ShowMessageBox = function(e, t) { var a = function() { lightcase.start({ href: "#", showSequenceInfo: !1, maxWidth: 600, maxHeight: 500, onInit: { clearTimeout: function() { clearTimeout(_.timeOutMessageBox) } }, onFinish: { insertContent: function() { t && u.addClass(t), lightcase.get("content").append('
'), lightcase.get("contentInner").children().html('
' + e + "
"), lightcase.get("contentInner").append('
'), lightcase.resize(), _.timeOutMessageBox = setTimeout(function() { lightcase.close() }, 2e4) } }, onClose: { qux: function() { t && u.removeClass(t), v(".custom-lightcase-overlay").remove(), v(".custom-lighcase-btn-close").remove(), clearTimeout(_.timeOutMessageBox) } } }) }; v.fn.lightcase ? a() : _.core.loadDependencies([_.core.path.plugins + "jquery.lightcase.js"], a) }, _.core.ToolTip = function(e, t) { var a = function() { e.tooltip(v.extend({ container: "body", trigger: "hover" }, t)) }; return { init: function() { void 0 !== v.fn.tooltip ? a() : _.core.loadDependencies([_.core.path.plugins + "bstooltip.js"], a) } } }, _.component.ToolTip = function(e) { var t = v(e), a = function() { t.tooltip() }; return { init: function() { void 0 !== v.fn.tooltip ? a() : _.core.loadDependencies([_.core.path.plugins + "bstooltip.js"], a) } } }, _.component.loadCSSFile = function(e) { return { init: function() {} } }, _.component.UnitResponsive = function(e) { var t = v(e), a = t.attr("data-el_media_sizes"), i = t.attr("data-el_target"), n = "", s = "", r = "", l = "", c = "", d = "", o = function(e, t) { var a = { lg: "all", xlg: "screen and (min-width:1825px)", md: "screen and (max-width:1199px)", sm: "screen and (max-width:991px)", xs: "screen and (max-width:767px)", mb: "screen and (max-width:575px)" }; v.each(a, function(e) { v.exists(v("#latheme_custom_css_" + e)) || v("", { id: "latheme_custom_css_" + e, media: a[e] }).appendTo("head") }), v("#latheme_custom_css_" + t).append(e) }; return { init: function() { void 0 === a && null == a || v.each(v.parseJSON(a), function(e, t) { var o = e; void 0 !== t && null != t && "" != t && v.each(t.split(";"), function(e, t) { if (void 0 !== t && null != t && "" != t) { var a = t.split(":"), i = o + ":" + a[1] + ";"; switch (a[0]) { case "xlg": n += i; break; case "lg": s += i; break; case "md": r += i; break; case "sm": l += i; break; case "xs": c += i; break; case "mb": d += i } } }) }), "" != n && o(i + "{" + n + "}", "xlg"), "" != s && o(i + "{" + s + "}", "lg"), "" != r && o(i + "{" + r + "}", "md"), "" != l && o(i + "{" + l + "}", "sm"), "" != c && o(i + "{" + c + "}", "xs"), "" != d && o(i + "{" + d + "}", "mb") } } }, _.component.AutoCarousel = function(e) { var t = v(e), a = t.data("slider_config") || {}, i = t.data("slick_custompaging") || ""; "" != i && (a.customPaging = function(e, t) { return i }), a = v.extend({ prevArrow: '', nextArrow: '', rtl: _.utils.isRTL() }, a); var o = function() { void 0 !== a.arrows && void 0 === a.appendArrows && 1 == a.arrows && t.closest(".woocommerce").length && t.closest(".woocommerce").closest(".vc_row").length && (a.appendArrows = v('
').prependTo(t.parent())), t.closest(".la-carousel-wrapper").hasClass("slider-fade") && (a.fade = !0); try { t.on("init", function(e, t) { t.slideCount <= t.options.slidesToShow ? t.$slider.addClass("hidden-dots") : t.$slider.removeClass("hidden-dots"), t.options.centerMode && t.$slider.addClass("la-slick-centerMode"), _.utils.LazyLoad(v(".la-lazyload-image")).observe() }), t.slick(a) } catch (e) { _.utils.logger.set(e, "AutoCarousel") } }; return { init: function() { v.isFunction(v.fn.slick) ? o() : _.core.loadDependencies([_.core.path.plugins + "jquery.slick.js"], o) } } }, _.component.InsertCustomCSS = function(e) { var t = v("#latheme_custom_css"), a = v(e).html(); return v.exists(t) || (t = v("", { id: "latheme_custom_css" }).appendTo("head")), { init: function() { t.append(a) } } }, _.component.AjaxLoadShortCode = function(e) { var a = v(e), t = a.data("query-settings"), i = a.data("request"), o = a.data("public-nonce"), n = { action: "la_get_shortcode_loader_by_ajax", tag: t.tag, data: t, _vcnonce: o }, s = function() { if (!a.hasClass("is-loading") && !a.hasClass("has-loaded")) { a.addClass("is-loading"); var e = { url: i, method: "POST", dataType: "html", data: n }; v.ajax(e).done(function(e) { var t = v(e); l.trigger("LA:AjaxLoadShortCode:before_render", [a, t]), a.removeClass("is-loading"), a.addClass("has-loaded"), t.addClass("fadeIn animated"), t.appendTo(a), _.core.initAll(a), w.trigger("la_vc_row_parallax:refresh"), l.trigger("LA:AjaxLoadShortCode:after_render", [a, t]), _.utils.LazyLoad(v(".la-lazyload-image")).observe(), v.exists(p) && setTimeout(function() { u.trigger("la_sticky:recalc") }, 300), _.utils.localCache.set(i + JSON.stringify({ container: "#" + t.attr("id"), paged: 1 }), e) }) } }; return { init: function() { _.utils.LazyLoad(a, { rootMargin: "200px", load: s }).observe() } } }, _.component.DefaultMasonry = function(e) { var t = v(e), a = t.data("item_selector"), i = t.data("config_isotope") || {}; i = v.extend({ percentPosition: !0, itemSelector: a }, i); var o = function() { t.find('img[data-lazy-src!=""]').each(function() { v(this).attr("src", v(this).attr("data-lazy-src")).removeAttr("data-lazy-src") }), t.isotope(i), t.hasClass("showposts-loop") || t.hasClass("loaded") || t.on("layoutComplete", function(e) { _.ui.LazyLoadElementEffect(a, t) }), _.utils.LazyLoad(v("img,.la-lazyload-image", t), { complete: function() { v(".la-isotope-loading", t).hide(), t.addClass("loaded").isotope("layout") } }).observe() }; return { init: function() { v(".la-isotope-loading", t).show(), v.isFunction(v.fn.isotope) ? o() : _.core.loadDependencies([_.core.path.plugins + "jquery.isotope.pkgd.js"], o) } } }, _.component.AdvancedMasonry = function(e) { var t = v(e), a = t.data("item_selector"), i = t.data("config_isotope") || {}; i = v.extend({ percentPosition: !0, itemSelector: a, masonry: { gutter: 0 } }, i); _.utils.eventManager.subscribe("LA:AdvancedMasonry:calculatorItemWidth", function(e, t) { if (!t.hasClass("grid-items")) { var a, i, o = w.width(), n = t.data("item-width"), s = t.data("item-height"), r = !1 != !!t.data("container-width") ? t.data("container-width") : t.width(), l = t.width(), c = (a = r, i = n, Math.round(a / i)); if (1300 < o) { var d = t.parent().attr("class").match(/masonry-max-item-per-row-(\d+)/), u = t.parent().attr("class").match(/masonry-min-item-per-row-(\d+)/); d && d[1] && c > parseInt(d[1]) && (c = parseInt(d[1])), u && u[1] && c < parseInt(u[1]) && (c = parseInt(u[1])) } o < 1024 ? (c = t.data("md-col"), t.removeClass("cover-img-bg")) : t.addClass("cover-img-bg"), o < 992 && (c = t.data("sm-col")), o < 768 && (c = t.data("xs-col")), o < 576 && (c = t.data("mb-col")); var p = Math.floor(l / c), h = t.data("item_selector"), f = parseInt(t.data("item_margin") || 0), m = parseFloat(n / s); v(h, t).each(function(e) { var t = parseFloat(v(this).data("width") || 1), a = parseFloat(v(this).data("height") || 1), i = {}; isNaN(t) && (t = 1), isNaN(a) && (a = 1), o < 1024 && (t = a = 1), i.width = Math.floor(p * t - f / 2), i.height = Math.floor(p / m * a), o < 1024 && (i.height = "auto"), v(this).css(i) }) } }); var o = function() { t.find('img[data-lazy-src!=""]').each(function() { v(this).attr("src", v(this).attr("data-lazy-src")).removeAttr("data-lazy-src") }), t.hasClass("masonry__column-type-default") || (i.masonry.columnWidth = 1), t.isotope(i), t.on("layoutComplete", function(e) { _.ui.LazyLoadElementEffect(a, t) }), _.utils.LazyLoad(v("img,.la-lazyload-image", t), { complete: function() { v(".la-isotope-loading", t).hide(), t.addClass("loaded").isotope("layout") } }).observe(), w.on("resize", function(e) { _.utils.eventManager.publish("LA:AdvancedMasonry:calculatorItemWidth", [t]) }) }; return { init: function() { v(".la-isotope-loading", t).show(), _.utils.eventManager.publish("LA:AdvancedMasonry:calculatorItemWidth", [t]), v.isFunction(v.fn.isotope) ? o() : _.core.loadDependencies([_.core.path.plugins + "jquery.isotope.pkgd.js"], o) } } }, _.component.MasonryFilter = function(e) { var a = v(e), i = a.data("isotope_option") || {}, o = v(a.data("isotope_container")), t = function() { v("li", a).on("click", function(e) { e.preventDefault(); var t = v(this).attr("data-filter"); a.find(".active").removeClass("active"), "*" != t && (t = "." + t), o && o.isotope(v.extend(i, { filter: t })), v(this).addClass("active"), a.find(".la-toggle-filter").removeClass("active").text(v(this).text()) }) }; return { init: function() { v.isFunction(v.fn.isotope) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.isotope.pkgd.js"], t) } } }, _.component.CountUp = function(e) { var c = v(e), t = function() { var e = c.find(".stats-value"), t = parseFloat(e.data("counter-value")), a = e.data("counter-value") + " ", i = parseInt(e.data("speed")), o = e.data("separator"), n = e.data("decimal"), s = a.split("."), r = !0, l = 0 < t && t < 10 ? "0" : ""; s = s[1] ? s[1].length - 1 : 0, r = "none" != o, "none" == n && (n = ""), e.countup({ startVal: 0, endVal: t, decimals: s, duration: i, options: { useEasing: !0, useGrouping: r, separator: o, decimal: n, prefix: l } }) }; return { init: function() { _.utils.LazyLoad(c, { load: function() { v.isFunction(v.fn.countup) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.countUp.js"], t) } }).observe() } } }, _.component.CountDownTimer = function(e) { var r = v(e), t = function() { var i = r.find(".elm-countdown-dateandtime"), e = new Date(i.html()), t = i.data("countformat"), a = i.data("labels").split(","), o = i.data("labels2").split(","), n = new Date(i.data("time-now")), s = function(e) { var t = i.find(".countdown-amount"), a = i.find(".countdown-period"); t.css({ color: i.data("tick-col"), "border-color": i.data("br-color"), "border-width": i.data("br-size"), "border-style": i.data("br-style"), "border-radius": i.data("br-radius"), background: i.data("bg-color"), padding: i.data("padd") }), a.css({ "font-size": i.data("tick-p-size"), color: i.data("tick-p-col") }), "bold" == i.data("tick-style") ? t.css("font-weight", "bold") : "italic" == i.data("tick-style") ? t.css("font-style", "italic") : "boldnitalic" == i.data("tick-style") && (t.css("font-weight", "bold"), t.css("font-style", "italic")), "bold" == i.data("tick-p-style") ? a.css("font-weight", "bold") : "italic" == i.data("tick-p-style") ? a.css("font-style", "italic") : "boldnitalic" == i.data("tick-p-style") && (a.css("font-weight", "bold"), a.css("font-style", "italic")) }; i.hasClass("usrtz") ? i.countdown({ labels: a, labels1: o, until: e, format: t, padZeroes: !0, onTick: s }) : i.countdown({ labels: a, labels1: o, until: e, format: t, padZeroes: !0, onTick: s, serverSync: n }) }; return { init: function() { _.utils.LazyLoad(r, { load: function() { v.isFunction(v.fn.countup) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.countdown.js"], t) } }).observe() } } }, _.component.ParallaxRow = function(e) { var t = v(e); void 0 === window.el_vc_row_parallax_pos && (window.el_vc_row_parallax_pos = 0), window.el_vc_row_parallax_pos = window.el_vc_row_parallax_pos - 1, t.css("z-index", window.el_vc_row_parallax_pos).attr("data-zindex", window.el_vc_row_parallax_pos); var a = function() { var e = v(function(e) { for (var t = e.parentNode; !t.classList.contains("vc_row") && !t.classList.contains("wpb_row");) { if ("HTML" === t.tagName) { t = !1; break } t = t.parentNode } if (!1 !== t) return t; t = e.parentNode; for (var a = !1; !a;) { if (Array.prototype.forEach.call(t.classList, function(e, t) { a || e.match(/row/g) && (a = !0) }), a) return t; if ("HTML" === t.tagName) break; t = t.parentNode } return e.parentNode }(t[0])); t.la_vc_row_parallax({ image: t.attr("data-bg-image"), direction: t.attr("data-direction"), mobileenabled: t.attr("data-mobile-enabled"), mobiledevice: _.utils.isMobile(), opacity: t.attr("data-opacity"), width: t.attr("data-bg-width"), height: t.attr("data-bg-height"), velocity: t.attr("data-velocity"), align: t.attr("data-bg-align"), repeat: t.attr("data-bg-repeat"), repeatType: t.attr("data-bg-repeat-type"), zIndex: t.attr("data-zindex"), target: e, id: t.attr("data-id") || "", removeOrig: !1, complete: function() { e.addClass("la-parent-parallax-row"), v(".parallax-inner-" + this.id).addClass(t.attr("class").replace("la_parallax_row js-el", "")), v(window).trigger("la_vc_row_parallax:refresh") } }) }; return { init: function() { v.isFunction(v.fn.la_vc_row_parallax) ? a() : _.core.loadDependencies([_.core.path.plugins + "jquery.vc_row_parallax.js"], a) } } }, _.component.GradientBackground = function(o) { return { init: function() { var e = v(o), t = e.data("grad"), a = e.next(), i = (t = t.replace("url(data:image/svg+xml;base64,", "")).indexOf(";"); t = t.substring(i + 1), a.attr("style", (void 0 !== a.attr("style") ? a.attr("style") : "") + t), e.remove() } } }, _.component.AnimationBlock = function(e) { return { init: function() { _.utils.LazyLoad(v(e), { load: function(e) { var t = v(e); if (0 != !!t.data("animate")) { var a = t.find(">div:not(.la-animation-block):not([data-la_component]), >.vc_custom_heading"), i = t.data("animate"), o = t.data("animation-duration") + "s", n = parseInt(t.data("animation-iteration")), l = parseFloat(t.data("animation-delay")), s = "opacity:1;-webkit-transition-delay: " + l + "s; -moz-transition-delay: " + l + "s; transition-delay: " + l + "s;", c = ""; if (t.is(".wpb_wrapper")) { var r = v(e).closest(".wpb_column"), d = r.attr("style") || ""; "opacity:0;" == (d = d.replace(/ /g, "")) && 0 !== d.indexOf(s) && r.attr("style", s).css("opacity", "1"), t.css("opacity", "1"), r.addClass("animated").addClass(i) } else { var u = t.attr("style") || "test"; "opacity:0;" == (u = u.replace(/ /g, "")) && 0 !== u.indexOf(s) && t.attr("style", s).css("opacity", "1") } c += "opacity:0;", c += "-webkit-animation-duration:" + o + ";", c += "-moz-animation-duration:" + o + ";", c += "animation-duration:" + o + ";", c += "-webkit-animation-iteration-count:" + n + ";", c += "-moz-animation-iteration-count:" + n + ";", c += "animation-iteration-count:" + n + ";"; var p = 0; a.each(function(e, t) { var a, i, o = v(t), n = o.attr("style") || "", s = "", r = c; 5 == e && (p = 0), r += (a = (l + parseFloat(.1 * p)).toFixed(3), i = "", i += "-webkit-animation-delay:" + a + "s;", i += "-moz-animation-delay:" + a + "s;", i += "animation-delay:" + a + "s;"), s = 0 == n.indexOf(r) ? n : r + n, o.attr("style", s), p++ }), _.utils.LazyLoad(a, { load: function(e) { v(e).css("opacity", "1").addClass("animated").addClass(i) } }).observe() } } }).observe() } } }, _.component.PieChart = function(e) { var l = v(e), t = function() { var e = l; if (!1 == !!e.data("pie-init-success")) { var t = e.data("pie-value"), a = e.data("pie-color"), i = e.data("pie-units"), o = e.data("empty-fill"), n = parseInt(e.data("stroke")), s = e.find(".sc-cp-canvas").innerHeight(), r = e.find(".sc-cp-v"); e.find(".sc-cp-canvas").circleProgress({ value: parseFloat(t / 100), thickness: n, emptyFill: o, reverse: !0, lineCap: "butt", size: s, startAngle: 0 - Math.PI / 2, fill: { color: a } }).on("circle-animation-progress", function(e, t, a) { r.text(parseInt(100 * a) + i) }), e.data("pie-init-success", "true") } }; return { init: function() { _.utils.LazyLoad(l, { load: function() { v.isFunction(v.fn.countup) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.circle-progress.js"], t) } }).observe() } } }, _.component.InstagramFeed = function(e) { var r = v(e), t = function() { var t, e, a = r, i = a.data("feed_config"); if (!1 == !!a.data("appear-success")) { if (a.hasClass("loading")) return; a.addClass("loading"), "" == la_theme_config.security.instagram_token && a.addClass("loaded loaded-error"), t = v(".la-instagram-loop", a); var o = ""; for (var n in i) "template" != n && (o += "_", o += i[n]); o = _.utils.sanitizeSlug(o).replace(/\-+/, "_").replace(/\_\_+/g, "_").replace(/^_+/, ""), e = v.extend({ target: t.get(0), accessToken: la_theme_config.security.instagram_token, filter: function(e) { return !0 }, before: function() { t.html("") }, success: function() { t.hasClass("la-instagram-slider") && (t.addClass("js-el la-slick-slider"), setTimeout(function() { _.core.initAll(a) }, 200)), a.removeClass("loading").addClass("loaded") }, after: function() { if ("" != o) try { Cookies.set(o, "yes", { expires: 1 / 48 }); var e = t.clone(); t.hasClass("la-instagram-slider") && e.find(".slick-list").remove(), sessionStorage.setItem(o, e.html()) } catch (e) { _.utils.logger.set("Cannot set cache", "Instafeed", "sessionStorage init error") } } }, i); try { if ("" != o) { var s = sessionStorage.getItem(o); "yes" == Cookies.get(o) && void 0 !== s && null != s ? (t.html(s), e.success()) : new Instafeed(e).run() } else new Instafeed(e).run() } catch (e) { a.removeClass("loading").addClass("loaded loaded-error"), _.utils.logger.set("Cannot create Instafeed object", "Instafeed", "Instafeed init error") } a.attr("data-appear-success", "true") } }; return { init: function() { v(window).load(function() { _.utils.LazyLoad(r, { load: function() { v.isFunction(window.Instafeed) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.instafeed.js"], t) } }).observe() }) } } }, _.component.tweetsFeed = function(e) { var i = v(e), t = function() { i.attr("id", "la_tweets_" + _.utils.randomID); var n = i, e = n.attr("data-widget-id"), t = n.attr("data-profile"), a = { id: "", profile: { screenName: "lastudioweb" }, dataOnly: !0, maxTweets: n.attr("data-amount"), customCallback: function(e) { for (var t = "", a = 0, i = e.length; a < i; a++) { var o = e[a]; t += '
' + o.tweet + '
' + o.author + '
" } n.html(t), v(".tweet-content a.link.customisable", n).each(function() { var e = v(this); e.html(e.attr("href")) }), n.parent(".twitter-feed").hasClass("tweets-slider") && n.slick({ arrows: !1, infinite: !0, autoplay: !1, autoplaySpeed: 5e3, adaptiveHeight: !0, speed: 1e3, rtl: _.utils.isRTL() }) } }; e && (a.id = e), t && (a.profile = { screenName: t }), twitterFetcher.fetch(a) }; return { init: function() { v(window).load(function() { _.utils.LazyLoad(i, { load: function() { "undefined" != typeof twitterFetcher ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.twitterFetcher.js"], t) } }).observe() }) } } }, _.component.InfiniteScroll = function(e) { var i = v(e), t = i.data("item_selector"), a = i.data("page_num"), o = i.data("path"), n = i.data("page_num_max"), s = { navSelector: ".la-pagination", nextSelector: ".la-pagination a.next", loading: { finished: function() { v(".la-infinite-loading", i).remove() }, msg: v("
") } }, r = function() { (i.parent().append('
'), s = v.extend(s, { itemSelector: t, state: { currPage: a }, pathParse: function(e, t) { return [o, "/"] }, maxPage: n }), i.infinitescroll(s, function(e) { var t = v(e); (_.core.initAll(t), i.data("isotope") ? (i.append(t).isotope("appended", t).isotope("layout"), setTimeout(function() { i.isotope("layout") }, 100)) : (t.each(function(e) { 0 == e && (e = 1), v(this).css({ "animation-delay": 100 * e + "ms", "-webkit-animation-delay": 100 * e + "ms" }) }), t.addClass("fadeInUp animated")), v(".la-infinite-loading", i).remove(), v(".la-infinite-container-flag", i.parent()).length) && (_.utils.getOffset(v(".la-infinite-container-flag", i.parent())).y < window.innerHeight && i.infinitescroll("retrieve")); var a = i.data("infinitescroll"); try { v(".blog-main-loop__btn-loadmore").removeClass("loading"), n == a.options.state.currPage && v(".blog-main-loop__btn-loadmore").addClass("nothing-to-load") } catch (e) { _.utils.logger.set(e, "infinitescroll", "error when call") } }), i.hasClass("infinite-show-loadmore") && i.infinitescroll("pause"), v(".la-infinite-container-flag", i.parent()).length) && (_.utils.getOffset(v(".la-infinite-container-flag", i.parent())).y < window.innerHeight && i.infinitescroll("retrieve")); v(document).on("click", ".blog-main-loop__btn-loadmore", function(e) { e.preventDefault(), v(this).addClass("loading"), v(".blog-main-loop.infinite-show-loadmore").infinitescroll("retrieve") }) }; return { init: function() { v.isFunction(v.fn.infinitescroll) ? r() : _.core.loadDependencies([_.core.path.plugins + "jquery.infinitescroll.js"], r) } } }, _.component.WooThreeSixty = function(e) { var i = v(e); if ("" != i.data("woothreesixty_vars")) { var t = function() { var e = i.data("woothreesixty_vars"), t = JSON.parse(e.images); try { var a = i.ThreeSixty({ totalFrames: t.length, currentFrame: 1, endFrame: t.length, framerate: e.framerate, playSpeed: e.playspeed, imgList: ".threesixty_images", progress: ".spinner", filePrefix: "", height: e.height, width: e.width, navigation: e.navigation, imgArray: t, responsive: e.responsive, drag: e.drag, disableSpin: e.spin }); _.utils.eventManager.publish("LA:WooThreeSixty", [a, i]) } catch (e) { _.utils.logger.display(e) } }; return { init: function() { v.isFunction(v.fn.ThreeSixty) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.threesixty.js"], t) } } } }, _.component.InlineSVG = function(e) { var t = v(e), a = t.data(), i = { type: a.type ? a.type : "oneByOne", duration: a.duration ? a.duration : 150, file: a.svg }, o = function() { var e = new Vivus(t[0], i); a.hover && v(a.hover).hasClass("active-svg-effect") && v(a.hover).on("mouseenter", function() { e.stop().reset().play(2) }).on("mouseleave", function() { e.finish() }) }; return { init: function() { "undefined" == typeof Vivus ? _.core.loadDependencies([_.core.path.plugins + "vivus.js"], o) : o() } } }, _.component.HotSpotImages = function(t) { var e = v(t).data("tooltip-func"); return { init: function() { v("> img", v(t)).on("click", function(e) { v(t).find(".hotspot__item.open,.nttip.open").removeClass("open") }), "hover" == e && v(".la_hotspot_wrap", v(t)).on("mouseenter", function(e) { 1024 < w.width() && v(this).find(">.hotspot__item,>.nttip").addClass("open") }).on("mouseleave", function(e) { 1024 < w.width() && v(this).find(">.hotspot__item,>.nttip").removeClass("open") }), v(".la_hotspot_wrap", v(t)).on("click", function(e) { e.preventDefault(), v(this).siblings(".la_hotspot_wrap").find(">.hotspot__item,>.nttip").removeClass("open"), v(e.target).is(".tipclose") || v(e.target).parent().is(".tipclose") ? v(this).find(">.hotspot__item,>.nttip").removeClass("open") : v(this).find(">.hotspot__item,>.nttip").addClass("open") }), v(".tipclose", v(t)).on("click", function(e) { e.preventDefault(), v(this).closest(".la_hotspot_wrap").find(">.hotspot__item,>.nttip").removeClass("open") }), _.utils.LazyLoad(v(".la_hotspot_wrap", v(t)), { load: function(e) { v(e).addClass("animated-in") } }).observe() } } }, _.core.MegaMenu = function() { function e(e, t) { e.find("> .dl-menu > div > ul > li").unwrap().unwrap(), e.find(".sub-menu, ul.children").addClass("dl-submenu"), e.dlmenu(v.extend({ backLabel: la_theme_config.i18n.backtext, animationClasses: _.ui.MobileMenuEffect() }, t)) } _.utils.eventManager.subscribe("LA:MegaMenu:MenuPosition", function(e, t) { v.exists(t) && t.each(function() { var e = v(this), u = e.parent().attr("data-container"), t = e.parent().attr("data-parent-container"), p = e.hasClass("isVerticalMenu"), h = v(u).width(); p && (h = (t ? v(t).width() : w.width()) - v(u).outerWidth()), v("li.mm-popup-wide .megamenu-inited", e).removeClass("megamenu-inited"), v("li.mm-popup-wide > .popup", e).removeAttr("style"), v("li.mm-popup-wide", e).each(function() { var e = v(this), t = v("> .popup", e), a = v("> .popup > .inner", e), i = parseInt(a.data("maxWidth") ? a.data("maxWidth") : a.css("maxWidth")), o = 1920, n = u, s = parseInt(a.css("padding-left")), r = parseInt(a.css("padding-right")); h < o && (o = h), i < o && (o = i); var l = o - s - r, c = e.attr("class").match(/mm-popup-column-(\d)/), d = c && c[1] || 4; e.hasClass("mm-popup-force-fullwidth") && isNaN(i) && (l = p ? v("#page.site > .site-inner").width() - s - r : w.width() - s - r), v("> ul > li", a).each(function() { var e = parseFloat(v(this).data("column")) || 1; e < 0 && (e = 1); var t = parseFloat(l / d * e); v(this).data("old-width", v(this).width()).css("width", t) }), e.hasClass("mm-popup-force-fullwidth") && (a.data("maxWidth", i).css("maxWidth", "none"), v("> ul", a).css("width", i), p ? o = v("#page.site > .site-inner").width() : (o = w.width(), n = "body.mantis-body")), t.width(o), function(e, t, a, i) { if (v(".megamenu-inited", e).length) return; var o = v("> .popup", e); if (0 != o.length) { var n = o.outerWidth(); if (a < n && (n = a), !i) { if ("body.mantis-body" == t) return o.css("left", 0 - e.offset().left).css("left"); var s = v(t), r = parseInt(s.css("padding-left")), l = parseInt(s.css("padding-right")), c = o.parent().outerWidth(), d = 0, u = _.utils.getOffset(s), p = _.utils.getOffset(o); d = c < n ? -(n - c) / 2 : 0, p.x - u.x - r + d < 0 && (d = -(p.x - u.x - r)), p.x + n + d > u.x + s.outerWidth() - l && (d -= p.x + n + d - (u.x + s.outerWidth() - l)), o.css("left", d).css("left") } if (i) { var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, f = o.offset(), m = o.outerHeight(), g = w.scrollTop(); f.top - g + m > h && o.css({ top: h - f.top + g - m - 20 }) } o.addClass("megamenu-inited") } }(e, n, h, p) }), v("li.mm-popup-narrow li.mm-item-level-1.menu-item-has-children", e).each(function() { var e = v(this).find(">ul"); e.offset().left + e.width() <= w.width() ? v(this).removeClass("submenu-position-left").addClass("submenu-position-right") : v(this).removeClass("submenu-position-right").addClass("submenu-position-left") }) }) }), _.utils.eventManager.subscribe("LA:MegaMenu:ComponentSubMenuPosition", function(e, t, a, i) { v.exists(t) && t.each(function() { v(">.menu", v(this)).removeAttr("style"), v(">.menu.submenu-inited", v(this)).removeClass("submenu-inited"), function(e, t, a) { if (v(".submenu-inited", e).length) return; var i = v("> .menu", e); if (0 != i.length) { var o = i.outerWidth(); a < o && (o = a); var n = v(t), s = parseInt(n.css("padding-left")), r = parseInt(n.css("padding-right")), l = i.parent().outerWidth(), c = 0, d = _.utils.getOffset(n), u = _.utils.getOffset(i); c = l < o ? -(o - l) / 2 : 0, u.x - d.x - s + c < 0 && (c = -(u.x - d.x - s)), u.x + o + c > d.x + n.outerWidth() - r && (c -= u.x + o + c - (d.x + n.outerWidth() - r)), i.css("left", c).css("left"), i.addClass("submenu-inited") } }(v(this), a, i) }) }), _.utils.eventManager.publish("LA:MegaMenu:MenuPosition", [v(".mega-menu")]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".header-top-elements .la_com_action--dropdownmenu"), ".header-top-elements", v(".header-top-elements").width()]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".header-main .la_com_action--dropdownmenu"), ".header-main", v(".header-main").width()]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".site-header-mobile .la_com_action--dropdownmenu"), ".site-header-mobile", v(".site-header-mobile").width()]), w.on("resize", function() { _.utils.eventManager.publish("LA:MegaMenu:MenuPosition", [v(".mega-menu")]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".header-top-elements .la_com_action--dropdownmenu"), ".header-top-elements", v(".header-top-elements").width()]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".site-header-mobile .la_com_action--dropdownmenu"), ".site-header-mobile", v(".site-header-mobile").width()]), _.utils.eventManager.publish("LA:MegaMenu:ComponentSubMenuPosition", [v(".header-main .la_com_action--dropdownmenu"), ".header-main", v(".header-main").width()]) }); var t = function() { e(v("#la_mobile_nav"), {}), v("#la_dlmenu_main").length && e(v("#la_dlmenu_main"), { animationClasses: { classin: "dl-animate-in-2", classout: "dl-animate-out-2" } }) }; v.isFunction(v.fn.dlmenu) ? t() : _.core.loadDependencies([_.core.path.plugins + "jquery.dlmenu.js"], t), l.on("click", "html.support-touch-click .mega-menu > li.menu-item-has-children > a", function(e) { v(this).parent().siblings().removeClass("go-go"), v(this).parent().hasClass("go-go") || (e.preventDefault(), v(this).parent().addClass("go-go")) }) }, _.core.SitePreload = function() { setTimeout(function() { u.removeClass("site-loading") }, 500), w.load(function() { u.removeClass("site-loading") }), w.on("beforeunload", function(e) { "safari" != _.utils.browser.name && (void 0 === window.hack_beforeunload_time || void 0 !== window.hack_beforeunload_time && 1e3 < e.timeStamp - window.hack_beforeunload_time) && (v("#page.site").css("opacity", "0"), u.addClass("site-loading")) }), v(document).on("click", 'a[href^="tel:"], a[href^="mailto:"], a[href^="callto"], a[href^="skype"], a[href^="whatsapp"]', function(e) { window.hack_beforeunload_time = parseInt(e.timeStamp) }), w.on("pageshow", function(e) { e.originalEvent.persisted && u.removeClass("site-loading") }), _.utils.LazyLoad(v(".la-lazyload-image")).observe(), _.utils.eventManager.subscribe("LA:Component:LazyLoadImage", function(e, t) { t.find("img[data-lazy-src], img[data-lazy-original]").each(function(e, t) { var a = t.getAttribute("data-lazy-srcset"), i = t.getAttribute("data-lazy-sizes"), o = t.getAttribute("data-lazy-src") || t.getAttribute("data-lazy-original"); a && t.setAttribute("srcset", a), i && t.setAttribute("sizes", i), o && t.setAttribute("src", o), v(t).removeClass("lazyload") }) }) }, _.core.FixVCRowFullWidth = function() { if (_.utils.isActiveVC()) { v(".la-shortcode-maps").each(function() { v(this).closest(".wpb_wrapper").height("100%") }), w.on("load resize", function() { var e = v(".map-full-height"); e.css("height", e.closest(".vc_column-inner ").height()) }); var u = v("#main.site-main"); l.on("vc-full-width-row", function(e) { for (var t = 1; t < arguments.length; t++) { var a = v(arguments[t]); a.addClass("vc_hidden"); var i = a.next(".vc_row-full-width"); i.length || (i = a.parent().next(".vc_row-full-width")); var o = parseInt(a.css("margin-left"), 10), n = parseInt(a.css("margin-right"), 10), s = 0 - i.offset().left - o + u.offset().left + parseInt(u.css("padding-left")), r = u.width(), l = parseInt(a.css("maxWidth")); if (0 < l && l < r && (s < 0 && (s += (r - l) / 2), r = l), a.css({ position: "relative", left: s, "box-sizing": "border-box", width: r }), !a.data("vcStretchContent")) { var c = -1 * s; c < 0 && (c = 0); var d = r - c - i.width() + o + n; d < 0 && (d = 0), a.css({ "padding-left": c + "px", "padding-right": d + "px" }) } if (v.exists(a.find('[data-la_component="AdvancedMasonry"]'))) a.find('[data-la_component="AdvancedMasonry"]').each(function() { !1 == !!v(this).data("data-advancedmasonry-setwidth") && (_.utils.eventManager.publish("LA:AdvancedMasonry:calculatorItemWidth", [v(this)]), v(this).attr("data-advancedmasonry-setwidth", !0)) }); a.attr("data-vc-full-width-init", "true"), a.addClass("vc-has-modified").removeClass("vc_hidden") } }), "undefined" == typeof vc_js ? w.on("load resize", function() { l.trigger("vc-full-width-row", v('[data-vc-full-width="true"]')) }) : l.trigger("vc-full-width-row", v('[data-vc-full-width="true"]')), _.utils.isRTL() && (l.on("vc-full-width-row", function() { e() }), e()) } function e() { var e = v('[data-vc-full-width="true"]'); v.each(e, function() { var e = v(this); e.css("right", e.css("left")).css("left", "") }) } }, _.core.ElementAjaxClickEvent = function() { l.on("click", ".elm-loadmore-ajax a", function(e) { e.preventDefault(); var a = v(this).closest(".elm-loadmore-ajax"); if (!a.hasClass("is-loading")) { var t, i = v(a.data("container")), o = a.data("item-class"), n = a.data("query-settings"), s = a.data("request"), r = a.data("public-nonce"), l = parseInt(a.data("paged")), c = parseInt(a.data("max-page")); if (l < c) { n.atts.paged = l + 1, t = { action: "la_get_shortcode_loader_by_ajax", tag: n.tag, data: n, _vcnonce: r }, a.addClass("is-loading"); var d = { url: s, method: "POST", dataType: "html", data: t, cache: !1, ajax_request_id: { container: a.data("container"), paged: n.atts.paged } }; v.ajax(d).done(function(e) { var t = v(e).find(o); i.hasClass("la-slick-slider") ? (i.slick("slickAdd", t), i.slick("setPosition")) : i.hasClass("la-isotope-container") ? (i.isotope("insert", t.addClass("showmenow")), "AdvancedMasonry" == i.data("la_component") && (_.utils.eventManager.publish("LA:AdvancedMasonry:calculatorItemWidth", [i]), i.isotope("layout")), i.trigger("LA:Masonry:ajax_loadmore", [i])) : t.addClass("fadeIn animated").appendTo(i), _.core.initAll(t), _.utils.LazyLoad(v(".la-lazyload-image")).observe(), v.exists(p) && setTimeout(function() { u.trigger("la_sticky:recalc") }, 300), a.data("paged", l + 1), a.removeClass("is-loading"), c === l + 1 && a.addClass("hide") }) } } }).on("click", ".elm-pagination-ajax a", function(e) { if (e.preventDefault(), !v(this).closest(".elm-pagination-ajax").hasClass("is-loading")) { var t, a = v(this), o = a.closest(".elm-pagination-ajax"), n = v(o.data("container")), s = !!o.data("parent-container") && v(o.data("parent-container")), r = o.data("item-class"), i = o.data("query-settings"), l = o.data("request"), c = o.data("public-nonce"), d = parseInt(_.utils.getUrlParameter("la_paged", a.attr("href"))); o.data("append-type"); if (0 < d) { i.atts.paged = d, t = { action: "la_get_shortcode_loader_by_ajax", tag: i.tag, data: i, _vcnonce: c }, o.addClass("is-loading"); var u = { url: l, method: "POST", dataType: "html", data: t, cache: !0, ajax_request_id: { container: !!o.data("parent-container") && o.data("parent-container"), paged: d } }; v.ajax(u).done(function(e, t, a) { var i = v(e).find(r); n.hasClass("la-slick-slider") ? (n.slick("unslick").removeData("initAutoCarousel"), i.appendTo(n.empty())) : n.data("isotope") ? (n.isotope("remove", n.isotope("getItemElements")), n.isotope("insert", i.addClass("showmenow")), "AdvancedMasonry" == n.data("la_component") ? (_.utils.eventManager.publish("LA:AdvancedMasonry:calculatorItemWidth", [n]), n.isotope("layout")) : setTimeout(function() { n.isotope("layout") }, 400), n.trigger("LA:Masonry:ajax_pagination", [n])) : (i.addClass("fadeIn animated"), i.appendTo(n.empty())), _.core.initAll(s || n), _.utils.LazyLoad(v(".la-lazyload-image")).observe(), o.removeClass("is-loading"), o.find(".la-pagination").html(v(e).find(".la-pagination").html()) }) } } }).on("click", ".la-favorite-link a", function(e) { e.preventDefault(); var t = v(this), a = t.data("favorite_id"); if (!t.hasClass("loading") && !t.hasClass("exists")) { var i = v('a[data-favorite_id="' + a + '"]'); i.addClass("loading"), v.ajax({ url: _.core.path.ajaxUrl, method: "POST", dataType: "json", data: { action: "la_helpers_favorite", type: t.hasClass("added") ? "remove" : "add", post_id: a, security: _.core.path.security.favorite_posts } }).done(function(e) { i.removeClass("loading"), e.success && (t.hasClass("added") ? i.removeClass("added exists") : i.addClass("added exists"), i.find(".favorite_count").html(e.data.count)) }).fail(function() { i.removeClass("loading") }) } }) }, _.core.ElementClickEvent = function() { l.on("click", ".la_com_action--searchbox.searchbox__01 .component-target", function(e) { e.preventDefault(), u.addClass("open-search-form"), setTimeout(function() { v(".searchform-fly .search-field").focus() }, 600) }).on("click", ".la_com_action--aside_header .component-target,.btn-aside-toggle", function(e) { e.preventDefault(), v.exists(v(".header--menu-burger")) ? (u.removeClass("open-header-aside"), u.toggleClass("open-burger-menu")) : (u.removeClass("open-burger-menu"), u.toggleClass("open-header-aside")) }).on("click", ".btn-close-search", function(e) { e.preventDefault(), u.removeClass("open-search-form") }), l.on("click", ".site-header-mobile .la_com_action--primary-menu", function(e) { e.preventDefault(), v(this).toggleClass("active"), u.toggleClass("open-mobile-menu") }).on("touchend click", ".la-overlay-global,.header-aside-overlay", function(e) { e.preventDefault(), v(".la_com_action--primary-menu,.la_com_action--dropdownmenu").removeClass("active"), u.removeClass("open-aside open-search-form open-cart-aside open-mobile-menu open-advanced-shop-filter open-header-aside open-master-aside open-overlay open-burger-menu") }).on("touchend click", ".site-main,.section-page-header", function(e) { v(".site-header-mobile .la_com_action--primary-menu").removeClass("active"), u.removeClass("open-mobile-menu") }).on("click", ".footer-handheld-footer-bar .la_com_action--dropdownmenu .component-target", function(e) { e.preventDefault(); var t = v(this).parent(); u.removeClass("open-mobile-menu open-search-form"), t.hasClass("active") ? (t.removeClass("active"), u.removeClass("open-overlay")) : (t.addClass("active"), t.siblings().removeClass("active"), u.addClass("open-overlay")) }).on("click", ".footer-handheld-footer-bar .la_com_action--searchbox", function(e) { e.preventDefault(); var t = v(this); t.hasClass("active") ? (u.removeClass("open-mobile-menu open-search-form"), t.removeClass("active")) : (u.addClass("open-search-form"), t.addClass("active"), t.siblings().removeClass("active"), u.removeClass("open-overlay")) }), w.on("load scroll", function() { w.scrollTop() > w.height() + 100 ? v(".backtotop-container").addClass("show") : v(".backtotop-container").removeClass("show") }), l.on("click", ".btn-backtotop", function(e) { e.preventDefault(), n.animate({ scrollTop: 0 }, 800) }), l.on("click", ".la-popup:not(.wpb_single_image), .banner-video .banner--link-overlay, .la-popup.wpb_single_image a,.la-popup-slideshow", function(e) { e.preventDefault(); var t = v(this), a = function() { lightcase.start({ href: t.attr("href"), showTitle: !1, showCaption: !1, maxWidth: w.width(), maxHeight: w.height(), iframe: { width: 1280, height: 720 }, onFinish: { createOverlay: function() { lightcase.get("content").append('
'), lightcase.get("contentInner").append('') } }, onClose: { qux: function() { v(".custom-lightcase-overlay").remove(), v(".custom-lighcase-btn-close").remove() } } }) }; v.fn.lightcase ? a() : _.core.loadDependencies([_.core.path.plugins + "jquery.lightcase.js"], a) }).on("click", ".custom-lighcase-btn-close, .popup-button-continue, .custom-lightcase-overlay", function(e) { e.preventDefault(); try { lightcase.close() } catch (e) {} }).on("click", ".vc_message_box > .close-button", function(e) { e.preventDefault(), v(this).closest(".vc_message_box").slideUp(300) }) }, _.core.FullPageJs = function() { if (void 0 !== v.fn.fullpage) { var e, s = [], r = []; v('
  • 0101
').appendTo(u), l.on("click", ".la-fp-arrows .prev", function(e) { e.preventDefault(), v.fn.fullpage.moveSectionUp() }).on("click", ".la-fp-arrows .next", function(e) { e.preventDefault(), v.fn.fullpage.moveSectionDown() }), m.addClass("la_fp_section fp-auto-height").attr("data-anchor", "colophon").appendTo(g), v(".vc_section.la_fp_section").each(function() { var e = v(this).attr("data-anchor"), t = v(this).attr("data-fp-tooltip"); if (e || (e = _.utils.randomID()), t || (t = ""), s.push(e), r.push(t), 0 == v(".la_fp_slide.la_fp_child_section", v(this)).length) { var a = v('
'), i = getComputedStyle(v(this).get(0)), o = {}; for (var n in i) 0 == n.indexOf("background") && "" != i[n] && (o[n] = i[n]); a.css(o), v(this).addClass("dont-need-bg").prepend(a) } }), v.exists(v("#section_page_header")) && v("#section_page_header").remove(); g.data("fp-animation"); e = v.extend({ sectionSelector: ".la_fp_section", slideSelector: ".la_fp_slide", navigation: !1, anchors: s, navigationTooltips: r, paddingTop: _.utils.getAdminbarHeight(), onLeave: function(e, t, a) { 1 < t ? u.removeClass("fp-active-firstsection") : u.addClass("fp-active-firstsection"); var i, o, n, s, r, l, c = v(this), d = v("#la_full_page > .fp-section:nth-child(" + t + ")"); v(".la-fp-arrows .num .current").html(t < 10 ? "0" + t : t), d.hasClass("site-footer") ? c.addClass("last-before-footer no-effect") : "up" == a ? (d.hasClass("last-before-footer") && d.addClass("no-effect"), c.hasClass("last-before-footer") && c.removeClass("no-effect")) : c.siblings(".last-before-footer").removeClass("no-effect"), c.hasClass("last-before-footer") && "down" == a && c.css({ transform: "translateY(-" + m.innerHeight() + "px)", "-webkit-transform": "translateY(-" + m.innerHeight() + "px)", "-moz-transform": "translateY(-" + m.innerHeight() + "px)" }), d.hasClass("last-before-footer") && d.css({ transform: "translateY(0)", "-webkit-transform": "translateY(0)", "-moz-transform": "translateY(0)" }), c.find(".fp-slides").length ? c.find(".fp-slide.active .wpb_animate_when_almost_visible.wpb_start_animation").removeClass("wpb_start_animation") : c.find(".wpb_animate_when_almost_visible.wpb_start_animation").removeClass("wpb_start_animation"), o = d, n = a, r = (i = c).index(), (l = o.index()) < r && (s = l, l = r, r = s), "up" == n ? (v(">.fp-tableCell", i).removeClass("go-down is-active").addClass("go-up"), 1 < l - r && v(">.fp-tableCell", v(".vc_section.la_fp_section").slice(r, l)).removeClass("go-down").addClass("go-up")) : (v(">.fp-tableCell", i).removeClass("go-up is-active").addClass("go-down"), 1 < l - r && v(">.fp-tableCell", v(".vc_section.la_fp_section").slice(r, l)).removeClass("go-up").addClass("go-down")), v(">.fp-tableCell", o).removeClass("go-up go-down").addClass("is-active"), 1 < t ? "down" == a ? (v(".site-header").addClass("is-sticky"), v(".site-header-mobile").addClass("is-sticky"), v(".site-header-inner").removeClass("sticky--pinned").addClass("sticky--unpinned"), v(".la-header-sticky-height").css("height", v(".la-header-sticky-height").prev().innerHeight()).hide(), v(".la-header-sticky-height-mb").css("height", v(".la-header-sticky-height-mb").prev().innerHeight()).hide()) : (v(".site-header-inner").removeClass("sticky--unpinned").addClass("sticky--pinned"), v(".la-header-sticky-height").css("height", v(".la-header-sticky-height").prev().innerHeight()).show(), v(".la-header-sticky-height-mb").css("height", v(".la-header-sticky-height-mb").prev().innerHeight()).show()) : (v(".site-header").removeClass("is-sticky"), v(".site-header-mobile").removeClass("is-sticky"), v(".site-header-inner").removeClass("sticky--unpinned").addClass("sticky--pinned"), v(".la-header-sticky-height").css("height", v(".la-header-sticky-height").prev().innerHeight()).show(), v(".la-header-sticky-height-mb").css("height", v(".la-header-sticky-height-mb").prev().innerHeight()).show()), g.trigger("la_event_fp:onLeave", [e, t, a]) }, afterLoad: function(e, t) { var a = v(this); a.hasClass("site-footer") && a.prev(".vc_section").addClass("last-before-footer"), v.exists(a.find(".fp-slides")) ? a.find(".fp-slide.active .wpb_animate_when_almost_visible:not(.wpb_start_animation)").addClass("wpb_start_animation") : a.find(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").addClass("wpb_start_animation"), g.trigger("la_event_fp:afterLoad", [e, t]) }, afterRender: function() { v(".la-fp-arrows .num .total").html(s.length), u.hasClass("enable-header-transparency") && c.addClass("fp-header-is-transparency"), u.addClass("fp-active-firstsection"), v(".la_fp_section:not(.active) > .fp-tableCell").addClass("go-up"), v(".la_fp_section.active > .fp-tableCell").addClass("is-active"), v("#fp-nav ul li, .fp-slidesNav ul li").each(function() { v(this).find(">a").append('' + (v(this).index() + 1) + "") }), v("#fp-nav li:gt(" + parseInt(s.length - 1) + ")").remove(), g.trigger("la_event_fp:afterRender") }, afterResize: function() { g.trigger("la_event_fp:afterResize") }, afterResponsive: function(e) { g.trigger("la_event_fp:afterResponsive", [e]) }, afterSlideLoad: function(e, t, a, i) { v(this).find(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").addClass("wpb_start_animation"), g.trigger("la_event_fp:afterSlideLoad", [e, t, a, i]) }, onSlideLeave: function(e, t, a, i, o) { v(this).find(".wpb_animate_when_almost_visible.wpb_start_animation").removeClass("wpb_start_animation"), g.trigger("la_event_fp:onSlideLeave", [e, t, a, i, o]) } }, la_theme_config.fullpage), 0 == v(".vc_section.la_fp_fixed_top").length && (e.fixedElements = e.fixedElements.replace(".la_fp_fixed_top", "")), 0 == v(".vc_section.la_fp_fixed_bottom").length && (e.fixedElements = e.fixedElements.replace(".la_fp_fixed_bottom", "")), e.fixedElements = e.fixedElements.replace(/^,+/, ""), u.removeClass("admin-bar"), v(atob("I3dwYWRtaW5iYXI=")).css("position", "absolute").addClass("hidden"), g.fullpage(e), w.resize(function() { try { v.fn.fullpage.reBuild() } catch (e) { _.utils.logger.display(e) } }) } }, _.core.HeaderSticky = function() { var o = la_theme_config.header_height, i = "none", t = w.scrollTop(); if (w.on("scroll", function() { var e = w.scrollTop(); i = t < e ? "down" : e === t ? "none" : "up", t = e }), v.exists(p)) { var e = { offset_top: _.utils.getAdminbarHeight() }; p.la_sticky(e), w.on("resize", function() { setTimeout(function() { u.trigger("la_sticky:recalc") }, 300) }) } var l = !!u.hasClass("header-sticky-type-auto"), a = function() { var e = w.width(), t = o.desktop.normal, a = o.tablet.normal, i = o.mobile.normal; 992 < e ? v.exists(c) && (t = a = d.outerHeight(), 1300 < e ? v(".la-header-sticky-height").height(t) : v(".la-header-sticky-height").height(a)) : v.exists(h) && (i = f.outerHeight(), v(".la-header-sticky-height-mb").height(i)) }; a(), w.on("resize", a), function() { if (v.exists(v(".footer-handheld-footer-bar"))) { var a = v(".footer-handheld-footer-bar"); w.on("scroll", function(e) { if (!(600 < w.width())) { var t = parseInt(la_theme_config.header_height.mobile.normal); t < 20 && (t = 100), w.scrollTop() > t ? "down" == la_theme_config.mobile_bar ? "down" == i ? a.removeClass("sticky--unpinned").addClass("sticky--pinned") : a.removeClass("sticky--pinned").addClass("sticky--unpinned") : "up" == la_theme_config.mobile_bar && ("up" == i ? a.removeClass("sticky--unpinned").addClass("sticky--pinned") : a.removeClass("sticky--pinned").addClass("sticky--unpinned")) : a.removeClass("sticky--pinned sticky--unpinned") } }) } }(), u.hasClass("enable-header-sticky") && (function() { if (v.exists(c)) { var i = c, o = v(".site-header-outer", c), n = d, s = 0, r = _.utils.getOffset(o).y; w.on("resize", function(e) { r = _.utils.getOffset(o).y }).on("scroll", function(e) { if (!(w.width() < 992)) { var t = w.scrollTop(), a = r - _.utils.getAdminbarHeight(); l && (a = r - _.utils.getAdminbarHeight() + o.outerHeight()), a < t ? (n.css("top", _.utils.getAdminbarHeight()), i.hasClass("is-sticky") || i.addClass("is-sticky"), l ? t < u.height() && t < s ? (n.hasClass("sticky--unpinned") && n.removeClass("sticky--unpinned"), n.hasClass("sticky--pinned") || n.addClass("sticky--pinned")) : (n.hasClass("sticky--pinned") && n.removeClass("sticky--pinned"), n.hasClass("sticky--unpinned") || n.addClass("sticky--unpinned")) : n.addClass("sticky--pinned")) : l ? i.hasClass("is-sticky") && (a - t < o.outerHeight() || (i.removeClass("is-sticky"), n.css("top", "0").removeClass("sticky--pinned sticky--unpinned"))) : i.hasClass("is-sticky") && (i.removeClass("is-sticky"), n.css("top", "0").removeClass("sticky--pinned sticky--unpinned")), s = t } }) } }(), function() { if (v.exists(h)) { var i = h, o = v(".site-header-outer", h), n = f, s = 0, r = _.utils.getOffset(o).y; w.on("resize", function(e) { r = _.utils.getOffset(o).y }).on("scroll", function(e) { if (!(992 < w.width())) { var t = w.scrollTop(), a = r - _.utils.getAdminbarHeight(); l && (a = r - _.utils.getAdminbarHeight() + o.outerHeight()), a < t ? (n.css("top", _.utils.getAdminbarHeight()), i.hasClass("is-sticky") || i.addClass("is-sticky"), l ? t < u.height() && t < s ? (n.hasClass("sticky--unpinned") && n.removeClass("sticky--unpinned"), n.hasClass("sticky--pinned") || n.addClass("sticky--pinned")) : (n.hasClass("sticky--pinned") && n.removeClass("sticky--pinned"), n.hasClass("sticky--unpinned") || n.addClass("sticky--unpinned")) : n.addClass("sticky--pinned")) : l ? i.hasClass("is-sticky") && (a - t < o.outerHeight() || (i.removeClass("is-sticky"), n.css("top", "0").removeClass("sticky--pinned sticky--unpinned"))) : i.hasClass("is-sticky") && (i.removeClass("is-sticky"), n.css("top", "0").removeClass("sticky--pinned sticky--unpinned")), s = t } }) } }()) }, _.core.WooCommerce = function() { function o() { var a = v("table.wishlist_table"); a.addClass("shop_table_responsive"), a.find("thead th").each(function() { var e = v(this), t = e.text().trim(); "" != t && v("td." + e.attr("class"), a).attr("data-title", t) }) } v(".la-woo-product-gallery").each(function() { v(this).la_product_gallery() }), v(".variations_form").trigger("wc_variation_form"), l.on("click", ".product_item .la-swatch-control .swatch-wrapper", function(e) { e.preventDefault(); var t = v(this), a = t.closest(".product_item").find(".product_item--thumbnail-holder img").first(); 0 < t.closest(".product_item--thumbnail").length && (a = t.closest(".product_item--thumbnail").find(".product_item--thumbnail-holder img").last()), t.hasClass("selected") || (t.addClass("selected").siblings().removeClass("selected"), a.hasClass("_has_changed") || a.attr("data-o-src", a.attr("src")).attr("data-o-sizes", a.attr("sizes")).attr("data-o-srcset", a.attr("srcset")), t.attr("data-thumb") && a.attr("src", t.attr("data-thumb")).removeAttr("sizes srcset")) }), l.on("click", ".la-quickview-button", function(e) { var t, a; if (1500 < w.width() ? (t = 1440, a = 800) : 1200 < w.width() ? (t = 1e3, a = 600) : (t = 900, a = 500), a > w.height() && (a = .8 * w.height()), 900 < w.width()) { e.preventDefault(); var i = v(this), o = function() { lightcase.start({ href: i.data("href"), showSequenceInfo: !1, type: "ajax", maxWidth: t, maxHeight: a, speedIn: 150, speedOut: 100, ajax: { width: t, height: a, cache: !0, ajax_request_id: _.utils.getUrlParameter("product_quickview", i.data("href")) }, onClose: { qux: function() { u.removeClass("open-quickview-product lightcase--completed lightcase--pending"), v(".custom-lightcase-overlay").remove(), v(".custom-lighcase-btn-close").remove() } }, onWait: function(e, t, a) { u.addClass("open-quickview-product"), e.objects.content.append('
'), e.objects.contentInner.append(''), t.html(a); var i = v(".la-woo-product-gallery", t); i.length && (u.addClass("lightcase--pending"), i.la_product_gallery()), e._showContent(t) } }) }; v.fn.lightcase ? o() : _.core.loadDependencies([_.core.path.plugins + "jquery.lightcase.js"], o) } }), l.on("click", "#lightcase-case .product-main-image .product--large-image a", function(e) { e.preventDefault() }), o(), u.on("removed_from_wishlist", function(e) { o() }), l.on("added_to_cart", function(e, t, a, i) { setTimeout(o, 800) }), l.on("click", ".product a.add_wishlist:not(.la-core-wishlist)", function(e) { if (!v(this).hasClass("added")) { e.preventDefault(); var n = v(this), t = n.data("product_id"), s = n.closest(".product").find(".product_item--thumbnail img:eq(0)"), r = "Product", a = { add_to_wishlist: t, product_type: n.data("product-type"), action: yith_wcwl_l10n.actions.add_to_wishlist_action }; n.data("product_title") && (r = n.data("product_title")), n.closest(".product--summary").length && (s = n.closest(".product").find(".woocommerce-product-gallery__image img:eq(0)")); try { if (yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in) { var i = n.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"), o = i.find(".wishlist-select"), l = i.find(".wishlist-name"), c = i.find(".wishlist-visibility"); a.wishlist_id = o.val(), a.wishlist_name = l.val(), a.wishlist_visibility = c.val() } if (!_.utils.isCookieEnable()) return void alert(yith_wcwl_l10n.labels.cookie_disabled); v.ajax({ type: "POST", url: yith_wcwl_l10n.ajax_url, data: a, dataType: "json", beforeSend: function() { n.addClass("loading") }, complete: function() { n.removeClass("loading").addClass("added") }, success: function(o) { v("#yith-wcwl-popup-message"); var e = o.result, t = o.message; if (yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in) { var a = v("select.wishlist-select"); void 0 !== v.prettyPhoto && v.prettyPhoto.close(), a.each(function(e) { var t = v(this), a = t.find("option"); if ((a = a.slice(1, a.length - 1)).remove(), void 0 !== o.user_wishlists) { var i = 0; for (i in o.user_wishlists) "1" != o.user_wishlists[i].is_default && v("