/** * @package SP Page Builder * @author JoomShaper http://www.joomshaper.com * @copyright Copyright (c) 2010 - 2020 JoomShaper * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later */ ! function(t) { "use strict"; var e = '[data-dismiss="sppb-alert"]', i = function(i) { t(i).on("click", e, this.close) }; i.VERSION = "3.2.0", i.prototype.close = function(e) { var i = t(this), n = i.attr("data-target"); n || (n = (n = i.attr("href")) && n.replace(/.*(?=#[^\s]*$)/, "")); var s = t(n); function a() { s.detach().trigger("closed.sppb.alert").remove() } e && e.preventDefault(), s.length || (s = i.hasClass("sppb-alert") ? i : i.parent()), s.trigger(e = t.Event("close.sppb.alert")), e.isDefaultPrevented() || (s.removeClass("in"), t.support.transition && s.hasClass("sppb-fade") ? s.one("bsTransitionEnd", a).emulateTransitionEnd(150) : a()) }; var n = t.fn.spbalert; t.fn.spbalert = function(e) { return this.each((function() { var n = t(this), s = n.data("sppb.alert"); s || n.data("sppb.alert", s = new i(this)), "string" == typeof e && s[e].call(n) })) }, t.fn.spbalert.Constructor = i, t.fn.spbalert.noConflict = function() { return t.fn.spbalert = n, this }, t(document).on("click.sppb.alert.data-api", e, i.prototype.close) }(jQuery), function(t) { "use strict"; var e = function(e, i) { this.$element = t(e).on("keydown.sppb.carousel", t.proxy(this.keydown, this)), this.$indicators = this.$element.find(".sppb-carousel-indicators"), this.options = i, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter.sppb.carousel", t.proxy(this.pause, this)).on("mouseleave.sppb.carousel", t.proxy(this.cycle, this)) }; function i(i) { return this.each((function() { var n = t(this), s = n.data("sppb.carousel"), a = t.extend({}, e.DEFAULTS, n.data(), "object" == typeof i && i), o = "string" == typeof i ? i : a.slide; s || n.data("sppb.carousel", s = new e(this, a)), "number" == typeof i ? s.to(i) : o ? s[o]() : a.interval && s.pause().cycle() })) } e.VERSION = "3.2.0", e.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0 }, e.prototype.keydown = function(t) { switch (t.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return } t.preventDefault() }, e.prototype.cycle = function(e) { return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this }, e.prototype.getItemIndex = function(t) { return this.$items = t.parent().children(".sppb-item"), this.$items.index(t || this.$active) }, e.prototype.to = function(e) { var i = this, n = this.getItemIndex(this.$active = this.$element.find(".sppb-item.active")); if (!(e > this.$items.length - 1 || e < 0)) return this.sliding ? this.$element.one("slid.sppb.carousel", (function() { i.to(e) })) : n == e ? this.pause().cycle() : this.slide(e > n ? "next" : "prev", t(this.$items[e])) }, e.prototype.pause = function(e) { return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this }, e.prototype.next = function() { if (!this.sliding) return this.slide("next") }, e.prototype.prev = function() { if (!this.sliding) return this.slide("prev") }, e.prototype.slide = function(e, i) { var n = this.$element.find(".sppb-item.active"), s = i || n[e](), a = this.interval, o = "next" == e ? "left" : "right", r = "next" == e ? "first" : "last", l = this; if (!s.length) { if (!this.options.wrap) return; s = this.$element.find(".sppb-item")[r]() } if (s.hasClass("active")) return this.sliding = !1; var p = s[0], d = t.Event("slide.sppb.carousel", { relatedTarget: p, direction: o }); if (this.$element.trigger(d), !d.isDefaultPrevented()) { if (this.sliding = !0, a && this.pause(), this.$indicators.length) { this.$indicators.find(".active").removeClass("active"); var h = t(this.$indicators.children()[this.getItemIndex(s)]); h && h.addClass("active") } var c = t.Event("slid.sppb.carousel", { relatedTarget: p, direction: o }); return t.support.transition && this.$element.hasClass("sppb-slide") ? (s.addClass(e), s[0].offsetWidth, n.addClass(o), s.addClass(o), n.one("bsTransitionEnd", (function() { s.removeClass([e, o].join(" ")).addClass("active"), n.removeClass(["active", o].join(" ")), l.sliding = !1, setTimeout((function() { l.$element.trigger(c) }), 0) })).emulateTransitionEnd(1e3 * n.css("transition-duration").slice(0, -1))) : (n.removeClass("active"), s.addClass("active"), this.sliding = !1, this.$element.trigger(c)), a && this.cycle(), this } }; var n = t.fn.sppbcarousel; t.fn.sppbcarousel = i, t.fn.sppbcarousel.Constructor = e, t.fn.sppbcarousel.noConflict = function() { return t.fn.sppbcarousel = n, this }, t(document).ready((function() { t(".sppb-carousel").each((function(e) { var i = t(this).find(".sppb-item"), n = "sppb-carousel" + (e + 1), s = ""; t(this).attr("id", n); for (var a = 0; a < i.length; a++) s += 0 == a ? '
' : '\n'; t(this).find(">.sppb-carousel-indicators").html(s), t(this).find(".sppb-carousel-control").attr("href", "#" + n), t(this).find(".sppb-item").first().addClass("active") })) })), t(document).on("click.sppb.carousel.data-api", "[data-slide], [data-sppb-slide-to]", (function(e) { var n, s = t(this), a = t(s.attr("data-sppb-target") || (n = s.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, "")); if (a.hasClass("sppb-carousel")) { var o = t.extend({}, a.data(), s.data()), r = s.attr("data-sppb-slide-to"); r && (o.interval = !1), i.call(a, o), r && a.data("sppb.carousel").to(r), e.preventDefault() } })), t(document).ready((function() { if (t('[data-sppb-ride="sppb-carousel"]').each((function() { var e = t(this); i.call(e, e.data()) })), t(window).width() < 767) { var e = t(".sppb-carousel-pro-inner-content").outerHeight(!0) + 50; t(".sppb-carousel-pro .sppb-item > img").css({ height: e }) } })) }(jQuery), function(t) { "use strict"; t(document).on("click", ".sppb-panel-heading", (function(e) { e.preventDefault(); var i = t(this), n = i.closest(".sppb-panel-group").find(">div"), s = n.find(".sppb-panel-heading"), a = n.find(".sppb-panel-collapse"); t(this).hasClass("active") ? (t(this).removeClass("active"), i.next().slideUp()) : (s.removeClass("active"), a.slideUp(), t(this).addClass("active").next().slideDown((function() { i[0].getBoundingClientRect().top < 0 && t("html,body").animate({ scrollTop: i.offset().top }, 400) }))) })) }(jQuery), function(t) { "use strict"; var e = function(e) { this.element = t(e) }; function i(i) { return this.each((function() { var n = t(this), s = n.data("sppb.tab"); s || n.data("sppb.tab", s = new e(this)), "string" == typeof i && s[i]() })) } e.VERSION = "3.2.0", e.prototype.show = function() { var e = this.element, i = e.closest("ul:not(.dropdown-menu)"), n = e.data("target"); if (n || (n = (n = e.attr("href")) && n.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active")) { var s = i.find(".active:last a")[0], a = t.Event("show.sppb.tab", { relatedTarget: s }); if (e.trigger(a), !a.isDefaultPrevented()) { var o = t(n); this.activate(e.closest("li"), i), this.activate(o, o.parent(), (function() { e.trigger({ type: "shown.sppb.tab", relatedTarget: s }) })) } } }, e.prototype.activate = function(e, i, n) { var s = i.find("> .active"), a = n && t.support.transition && s.hasClass("sppb-fade"); function o() { s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), e.addClass("active"), a ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("sppb-fade"), e.parent(".dropdown-menu") && e.closest("li.dropdown").addClass("active"), n && n() } a ? s.one("bsTransitionEnd", o).emulateTransitionEnd(150) : o(), s.removeClass("in") }; var n = t.fn.sppbtab; t.fn.sppbtab = i, t.fn.sppbtab.Constructor = e, t.fn.sppbtab.noConflict = function() { return t.fn.sppbtab = n, this }, t(document).ready((function() { t(".sppb-tab").each((function(e) { var i = "sppb-tab" + (e + 1), n = "sppb-content" + (e + 1); t(this).find(">.sppb-nav").children().each((function(e) { t(this).find(">a").attr("href", "#" + i + "-" + (e + 1)), t(this).find(">a").attr("id", "#" + n + "-" + (e + 1)), t(this).find(">a").attr("aria-controls", "#" + i + "-" + (e + 1)) })), t(this).find(">.sppb-tab-content").children().each((function(e) { t(this).attr("id", i + "-" + (e + 1)), t(this).attr("aria-labelledby", n + "-" + (e + 1)) })) })) })), t(document).on("click.sppb.tab.data-api", '[data-toggle="sppb-tab"], [data-toggle="sppb-pill"]', (function(e) { e.preventDefault(), i.call(t(this), "show") })) }(jQuery), function(t) { "use strict"; var e = function(t, e) { this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("sppbtooltip", t, e) }; e.VERSION = "3.2.0", e.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: 'Please re-check required fields!
'), !1; n.find(".sppb-form-validation-error").remove(); var a = { name: "view_type", value: "page" }; if (n.closest(".sp-page-builder").hasClass("mod-sppagebuilder")) { a.value = "module"; var o = { name: "module_id", value: n.closest(".sp-page-builder").data("module_id") }; s.push(o) } else n.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper") && (a.value = "article"); s.push(a); var r = { option: "com_sppagebuilder", task: "ajax", addon: "ajax_contact", "g-recaptcha-response": n.find("#g-recaptcha-response").val(), data: s }; return t.ajax({ type: "POST", data: r, beforeSend: function() { n.find(".fa").addClass("fa-spinner fa-spin") }, success: function(e) { var i = t.parseJSON(e); try { var s = t.parseJSON(i.data), a = s.content, o = "json" } catch (t) { a = i.data, o = "strings" } "json" == o ? s.status && (n.trigger("reset"), void 0 === s.gcaptchaType || !s.gcaptchaType.length || "invisible" != s.gcaptchaType && "dynamic" != s.gcaptchaType || ((gcaptchaWidgetId = t("#" + s.gcaptchaId).attr("data-recaptcha-widget-id")) ? (grecaptcha.reset(gcaptchaWidgetId), "invisible" == s.gcaptchaType && grecaptcha.execute(gcaptchaWidgetId)) : (grecaptcha.reset(), "invisible" == s.gcaptchaType && grecaptcha.execute()))) : n.trigger("reset"), n.find(".fa-spin").removeClass("fa-spinner fa-spin"), n.next(".sppb-ajax-contact-status").html(a).fadeIn().delay(4e3).fadeOut(500) } }), !1 })), t(".sppb-addon-form-builder-form").length > 0 && (s(t(".sppb-addon-form-builder-form"), !0), t('.sppb-form-builder-range input[type="range"]').on("input change", (function() { var e = t(this), i = e.attr("min"), n = e.attr("max"), s = e.val(), a = (s - i) / (n - i) * 100, o = Math.round(50 * a / 100) - 25; e.next(".sppb-form-builder-range-output").css("left", "calc(" + a + "% - " + o + "px)").text(s) }))), t(document).on("submit", ".sppb-addon-form-builder-form", (function(e) { e.preventDefault(); var i = t(this), n = t(this).serializeArray(), a = s(i), o = i.data("redirect"), r = i.data("redirect-url"); if (a) return i.next(".sppb-ajax-contact-status").html('Please check the required field!').fadeIn().delay(4e3).fadeOut(500), !1; i.find('input[type="checkbox"]:not(:checked)').each((function(e, i) { n.push({ name: t(i).attr("name"), value: "" }) })); var l = { name: "view_type", value: "page" }; if (i.closest(".sp-page-builder").hasClass("mod-sppagebuilder")) { l.value = "module"; var p = { name: "module_id", value: i.closest(".sp-page-builder").data("module_id") }; n.push(p) } else i.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper") && (l.value = "article"); n.push(l); var d = { option: "com_sppagebuilder", task: "ajax", addon: "form_builder", "g-recaptcha-response": i.find("#g-recaptcha-response").val(), data: n }; return t.ajax({ type: "POST", data: d, beforeSend: function() { i.find(".fa").addClass("fa-spinner fa-spin") }, success: function(e) { var n = t.parseJSON(e); try { var a = t.parseJSON(n.data), l = a.content, p = "json"; void 0 !== a.form_validation && s(i) } catch (t) { l = n.data, p = "strings" } "json" == p ? a.status && (i.trigger("reset"), void 0 === a.gcaptchaType || !a.gcaptchaType.length || "invisible" != a.gcaptchaType && "dynamic" != a.gcaptchaType || (a.gcaptchaId ? (gcaptchaWidgetId = t("#" + a.gcaptchaId).attr("data-recaptcha-widget-id")) && (grecaptcha.reset(gcaptchaWidgetId), "invisible" == a.gcaptchaType && grecaptcha.execute(gcaptchaWidgetId)) : (grecaptcha.reset(), "invisible" == a.gcaptchaType && grecaptcha.execute()))) : i.trigger("reset"), i.find(".fa-spin").removeClass("fa-spinner fa-spin"), i.next(".sppb-ajax-contact-status").html(l).fadeIn().delay(4e3).fadeOut(500), "yes" === o && setTimeout((function() { window.location.href = r }), 2500) } }), !1 })) })), jQuery((function(t) { t(document).on("submit", ".sppb-optin-form", (function(e) { e.preventDefault(); var i = t(this), n = t(this).serializeArray(), s = { name: "view_type", value: "page" }; if (i.closest(".sp-page-builder").hasClass("mod-sppagebuilder")) { s.value = "module"; var a = { name: "module_id", value: i.closest(".sp-page-builder").data("module_id") }; n.push(a) } else i.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper") && (s.value = "article"); n.push(s); var o = { option: "com_sppagebuilder", task: "ajax", addon: "optin_form", "g-recaptcha-response": i.find("#g-recaptcha-response").val(), data: n }; return t.ajax({ type: "POST", data: o, beforeSend: function() { i.find(".fa").addClass("fa-spinner fa-spin") }, success: function(e) { var n = t.parseJSON(e); if (!n.success) return i.find(".fa-spin").removeClass("fa-spinner fa-spin"), n.message ? i.next(".sppb-optin-form-status").html('' + n.message + "
").fadeIn().delay(4e3).fadeOut(1e3) : n.messages && i.next(".sppb-optin-form-status").html('' + n.messages + "
").fadeIn().delay(4e3).fadeOut(1e3), !1; var s = t.parseJSON(n.data), a = "sppb-alert sppb-alert-warning"; if (s.status) { a = "sppb-alert sppb-alert-success"; i.trigger("reset") } i.find(".fa-spin").removeClass("fa-spinner fa-spin"), i.next(".sppb-optin-form-status").html('' + s.content + "
").fadeIn().delay(4e3).fadeOut(1e3) } }), !1 })) })), jQuery((function(t) { t(document).on("click", ".sppb-magnific-popup", (function(e) { e.preventDefault(); var i = t(this); i.magnificPopup({ type: i.data("popup_type"), mainClass: i.data("mainclass") }).magnificPopup("open") })) })), jQuery((function(t) { /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? (t(".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap").on("mouseover", (function(e) { t(this).toggleClass("flip") })), t(document).on("mouseenter", ".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap", (function(e) { t(this).addClass("flip") })), t(document).on("mouseleave", ".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap", (function(e) { t(this).removeClass("flip") }))) : (t(document).on("click", ".sppb-addon-sppb-flibox.flipon-click .sppb-flipbox-panel, .threeD-flipbox.flipon-click .threeD-content-wrap", (function(e) { t(this).toggleClass("flip") })), t(document).on("mouseenter", ".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap", (function() { t(this).addClass("flip") })), t(document).on("mouseleave", ".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap", (function() { t(this).removeClass("flip") }))) })), jQuery((function(t) { new MutationObserver((function(e) { e.forEach((function(e) { var i = e.addedNodes; null !== i && t(i).each((function() { t(this).find(".sppb-addon-countdown .sppb-countdown-timer").each((function() { var e = t(this), i = e.data("date") + " " + e.data("time"); e.countdown(i, (function(i) { t(this).html(i.strftime('