"
}), n = i;
else {
var s = o.data("old_gallery") || !1;
s && (n = s)
}
if ("" != n) {
if (o.data("prev_gallery")) {
var r = u(o.data("prev_gallery")),
l = u(n),
c = !0;
if (r.length == l.length)
for (var d = 0; d < r.length; d++) u(r[d]).attr("data-thumb") != u(l[d]).attr("data-thumb") && (c = !1);
else c = !1;
if (c) return
}
o.data("prev_gallery", n), n = '
', 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 += '