", {
class: e.classes.container
}),
this.elements.$motionFXLayer = jQuery("
", {
class: e.classes.layer
}),
this.updateBackgroundLayerSize(),
this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),
(e.addBackgroundLayerTo ? this.$element.find(e.addBackgroundLayerTo) : this.$element).prepend(this.elements.$motionFXContainer)
}
}, {
key: "removeBackgroundLayer",
value: function() {
this.elements.$motionFXContainer.remove()
}
}, {
key: "updateBackgroundLayerSize",
value: function() {
var e = this.getSettings()
, t = {
x: 0,
y: 0
}
, n = e.interactions.mouseMove
, i = e.interactions.scroll;
n && n.translateXY && (t.x = 10 * n.translateXY.intensity,
t.y = 10 * n.translateXY.intensity),
i && (i.translateX && (t.x = 10 * i.translateX.intensity),
i.translateY && (t.y = 10 * i.translateY.intensity)),
this.elements.$motionFXLayer.css({
width: 100 + t.x + "%",
height: 100 + t.y + "%"
})
}
}]),
n
}(elementorModules.ViewModule);
t.default = d
}
, {
"./actions": 7,
"./interactions/mouse": 10,
"./interactions/scroll": 11,
"@babel/runtime/helpers/classCallCheck": 72,
"@babel/runtime/helpers/createClass": 73,
"@babel/runtime/helpers/get": 75,
"@babel/runtime/helpers/getPrototypeOf": 76,
"@babel/runtime/helpers/inherits": 77,
"@babel/runtime/helpers/interopRequireDefault": 78,
"@babel/runtime/helpers/possibleConstructorReturn": 81
}],
13: [function(i, e, t) {
"use strict";
var n = i("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.default = void 0;
var r = n(i("@babel/runtime/helpers/createClass"))
, o = n(i("@babel/runtime/helpers/classCallCheck"))
, s = n(i("@babel/runtime/helpers/inherits"))
, a = n(i("@babel/runtime/helpers/possibleConstructorReturn"))
, l = n(i("@babel/runtime/helpers/getPrototypeOf"));
function c(i) {
var r = function() {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham)
return !1;
if ("function" == typeof Proxy)
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})),
!0
} catch (e) {
return !1
}
}();
return function() {
var e, t, n = (0,
l.default)(i);
return t = r ? (e = (0,
l.default)(this).constructor,
Reflect.construct(n, arguments, e)) : n.apply(this, arguments),
(0,
a.default)(this, t)
}
}
var u = function(e) {
(0,
s.default)(n, e);
var t = c(n);
function n() {
var e;
return (0,
o.default)(this, n),
e = t.call(this),
elementorFrontend.elementsHandler.attachHandler("global", i("./effects/handler").default, null),
elementorFrontend.elementsHandler.attachHandler("section", i("./sticky/handler").default, null),
elementorFrontend.elementsHandler.attachHandler("container", i("./sticky/handler").default, null),
elementorFrontend.elementsHandler.attachHandler("widget", i("./sticky/handler").default, null),
i("./sticky/sticky-script-manager"),
e
}
return (0,
r.default)(n)
}(elementorModules.Module);
t.default = u
}
, {
"./effects/handler": 8,
"./sticky/handler": 14,
"./sticky/sticky-script-manager": 15,
"@babel/runtime/helpers/classCallCheck": 72,
"@babel/runtime/helpers/createClass": 73,
"@babel/runtime/helpers/getPrototypeOf": 76,
"@babel/runtime/helpers/inherits": 77,
"@babel/runtime/helpers/interopRequireDefault": 78,
"@babel/runtime/helpers/possibleConstructorReturn": 81
}],
14: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = void 0;
var r = i(e("@babel/runtime/helpers/toConsumableArray"))
, o = elementorModules.frontend.handlers.Base.extend({
settingPrefix: "raven_motion_effects",
stickyFunction: "ravenSticky",
bindEvents: function() {
elementorFrontend.addListenerOnce(this.getUniqueHandlerID() + this.stickyFunction, "resize", this.refresh)
},
unbindEvents: function() {
elementorFrontend.removeListeners(this.getUniqueHandlerID() + this.stickyFunction + "Sticky", "resize", this.refresh)
},
onInit: function() {
var e = this;
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments),
elementorFrontend.isEditMode() && elementor.listenTo(elementor.channels.deviceMode, "change", function() {
return e.onDeviceModeChange()
}),
this.run()
},
run: function(e) {
var t;
this.getElementSettings(this.settingPrefix + "sticky") ? (t = elementorFrontend.getCurrentDeviceMode(),
-1 !== this.getElementSettings(this.settingPrefix + "sticky_on").indexOf(t) ? !0 !== e ? this.isStickyInstanceActive() || this.activate() : this.reactivate() : this.deactivate()) : this.deactivate()
},
activate: function() {
var e = this.getElementSettings()
, t = {
to: e[this.settingPrefix + "sticky"],
offset: this.getResponsiveSetting(this.settingPrefix + "sticky_offset"),
effectsOffset: this.getResponsiveSetting(this.settingPrefix + "sticky_effects_offset"),
classes: {
sticky: "raven-sticky",
stickyActive: "raven-sticky--active raven-section--handles-inside",
stickyEffects: "raven-sticky--effects",
spacer: "raven-sticky__spacer"
}
};
e[this.settingPrefix + "sticky_parent"] && (t.parent = ".e-container, .elementor-widget-wrap, .e-con");
var n = elementorFrontend.elements.$wpAdminBar;
n.length && "top" === t.to && "fixed" === n.css("position") && (t.offset += n.height()),
this.$element[this.stickyFunction](t)
},
getResponsiveSetting: function(e) {
var t = this.getElementSettings();
return elementorFrontend.getCurrentDeviceSetting(t, e)
},
getResponsiveSettingList: function(t) {
var e = Object.keys(elementorFrontend.config.responsive.activeBreakpoints);
return [""].concat(e).map(function(e) {
return e ? "".concat(t, "_").concat(e) : t
})
},
refresh: function() {
this.run(!0)
},
reactivate: function() {
this.deactivate(),
this.activate()
},
deactivate: function() {
this.isStickyInstanceActive() && this.$element[this.stickyFunction]("destroy")
},
isStickyInstanceActive: function() {
return void 0 !== this.$element.data(this.stickyFunction)
},
onElementChange: function(e) {
var t = this.getElementSettings(this.settingPrefix + "sticky_on")
, n = elementorFrontend.getCurrentDeviceMode();
null != t && t.includes(n) && (-1 !== [this.settingPrefix + "sticky", this.settingPrefix + "sticky_on"].indexOf(e) && this.run(!0),
-1 !== [].concat((0,
r.default)(this.getResponsiveSettingList(this.settingPrefix + "sticky_offset")), (0,
r.default)(this.getResponsiveSettingList(this.settingPrefix + "sticky_effects_offset")), [this.settingPrefix + "sticky_parent"]).indexOf(e) && this.reactivate())
},
onDeviceModeChange: function() {
setTimeout(this.refresh)
},
onDestroy: function() {
elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this, arguments),
this.deactivate()
}
});
n.default = o
}
, {
"@babel/runtime/helpers/interopRequireDefault": 78,
"@babel/runtime/helpers/toConsumableArray": 84
}],
15: [function(e, t, n) {
"use strict";
var i, r = e("@babel/runtime/helpers/interopRequireDefault")(e("./sticky-script")), o = "ravenSticky";
(i = jQuery).fn[o] = function(t) {
var n = "string" == typeof t;
return this.each(function() {
if (n) {
var e = i(this).data(o);
if (!e)
throw Error("Trying to perform the `" + t + "` method prior to initialization");
if (!e[t])
throw ReferenceError("Method `" + t + "` not found in sticky instance");
e[t].apply(e, Array.prototype.slice.call(arguments, 1)),
"destroy" === t && i(this).removeData(o)
} else
i(this).data(o, new r.default(this,t))
}),
this
}
,
window[o] = r.default
}
, {
"./sticky-script": 16,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
16: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = void 0;
var r = i(e("@babel/runtime/helpers/classCallCheck"))
, o = i(e("@babel/runtime/helpers/createClass"))
, s = function() {
function n(e, t) {
(0,
r.default)(this, n),
this.prefix = "raven",
this.userSettings = t,
this.element = e,
this.$element = null,
this.isSticky = !1,
this.isFollowingParent = !1,
this.isReachedEffectsPoint = !1,
this.elements = {},
this.settings = null,
this.defaultSettings = {
to: "top",
offset: 0,
effectsOffset: 0,
parent: !1,
classes: {
sticky: "raven-sticky",
stickyActive: "raven-sticky--active raven-section--handles-inside",
stickyEffects: "raven-sticky--effects",
spacer: "raven-sticky__spacer"
}
},
this.init()
}
return (0,
o.default)(n, [{
key: "init",
value: function() {
this.initSettings(),
this.initElements(),
this.bindEvents(),
this.checkPosition()
}
}, {
key: "initSettings",
value: function() {
this.settings = jQuery.extend(!0, this.defaultSettings, this.userSettings)
}
}, {
key: "initElements",
value: function() {
this.$element = $(this.element).addClass(this.settings.classes.sticky),
this.elements.$window = $(window),
this.settings.parent && (this.elements.$parent = this.$element.parent(),
"parent" !== this.settings.parent && (this.elements.$parent = this.elements.$parent.closest(this.settings.parent)))
}
}, {
key: "checkPosition",
value: function() {
var e, t, n, i = this.settings.offset;
this.isSticky ? (e = this.getElementViewportOffset(this.elements.$spacer),
t = "top" === this.settings.to ? e.top.fromTop - i : -e.bottom.fromBottom - i,
this.settings.parent && this.checkParent(),
0 < t && this.unstick()) : (n = this.getElementViewportOffset(this.$element),
(t = "top" === this.settings.to ? n.top.fromTop - i : -n.bottom.fromBottom - i) <= 0 && (this.stick(),
this.settings.parent && this.checkParent())),
this.checkEffectsPoint(t)
}
}, {
key: "backupCSS",
value: function(e, t, n) {
var i = e[0].style
, r = {};
n.forEach(function(e) {
r[e] = void 0 !== i[e] ? i[e] : ""
}),
e.data(this.prefix + "-css-backup-" + t, r)
}
}, {
key: "getCSSBackup",
value: function(e, t) {
return e.data(this.prefix + "-css-backup-" + t)
}
}, {
key: "addSpacer",
value: function() {
this.elements.$spacer = this.$element.clone().addClass(this.settings.classes.spacer).css({
visibility: "hidden",
transition: "none",
animation: "none"
}),
this.$element.after(this.elements.$spacer)
}
}, {
key: "removeSpacer",
value: function() {
this.elements.$spacer.remove()
}
}, {
key: "stickElement",
value: function() {
this.backupCSS(this.$element, "unsticky", ["position", "width", "margin-top", "margin-bottom", "top", "bottom"]);
var e = {
position: "fixed",
width: this.getElementOuterSize(this.$element, "width"),
marginTop: 0,
marginBottom: 0
};
e[this.settings.to] = this.settings.offset,
e["top" === this.settings.to ? "bottom" : "top"] = "",
this.$element.css(e).addClass(this.settings.classes.stickyActive)
}
}, {
key: "unstickElement",
value: function() {
this.$element.css(this.getCSSBackup(this.$element, "unsticky")).removeClass(this.settings.classes.stickyActive)
}
}, {
key: "followParent",
value: function() {
this.backupCSS(this.elements.$parent, "childNotFollowing", ["position"]),
this.elements.$parent.css("position", "relative"),
this.backupCSS(this.$element, "notFollowing", ["position", "top", "bottom"]);
var e = {
position: "absolute"
};
e[this.settings.to] = "",
e["top" === this.settings.to ? "bottom" : "top"] = 0,
this.$element.css(e),
this.isFollowingParent = !0
}
}, {
key: "unfollowParent",
value: function() {
this.elements.$parent.css(this.getCSSBackup(this.elements.$parent, "childNotFollowing")),
this.$element.css(this.getCSSBackup(this.$element, "notFollowing")),
this.isFollowingParent = !1
}
}, {
key: "getElementOuterSize",
value: function(e, t, n) {
var i = window.getComputedStyle(e[0])
, r = "height" === t ? ["top", "bottom"] : ["left", "right"]
, o = parseFloat(i[t])
, s = [];
return "border-box" !== i.boxSizing && s.push("border", "padding"),
n && s.push("margin"),
s.forEach(function(t) {
r.forEach(function(e) {
o += parseFloat(i[t + "-" + e])
})
}),
o
}
}, {
key: "getElementViewportOffset",
value: function(e) {
var t = this.elements.$window.scrollTop()
, n = this.getElementOuterSize(e, "height")
, i = window.innerHeight
, r = e.offset().top - t
, o = r - i;
return {
top: {
fromTop: r,
fromBottom: o
},
bottom: {
fromTop: r + n,
fromBottom: o + n
}
}
}
}, {
key: "stick",
value: function() {
this.addSpacer(),
this.stickElement(),
this.isSticky = !0,
this.$element.trigger(this.prefix + "Sticky:stick")
}
}, {
key: "unstick",
value: function() {
this.unstickElement(),
this.removeSpacer(),
this.isSticky = !1,
this.$element.trigger(this.prefix + "Sticky:unstick")
}
}, {
key: "checkParent",
value: function() {
var e, t, n, i, r = this.getElementViewportOffset(this.$element), o = "top" === this.settings.to;
this.isFollowingParent ? (o ? r.top.fromTop > this.settings.offset : r.bottom.fromBottom < -this.settings.offset) && this.unfollowParent() : (e = this.getElementViewportOffset(this.elements.$parent),
t = window.getComputedStyle(this.elements.$parent[0]),
n = parseFloat(t[o ? "borderBottomWidth" : "borderTopWidth"]),
i = o ? e.bottom.fromTop - n : e.top.fromBottom + n,
(o ? i <= r.bottom.fromTop : i >= r.top.fromBottom) && this.followParent())
}
}, {
key: "checkEffectsPoint",
value: function(e) {
if (this.isReachedEffectsPoint && -e < this.settings.effectsOffset)
return this.$element.removeClass(this.settings.classes.stickyEffects),
void (this.isReachedEffectsPoint = !1);
!this.isReachedEffectsPoint && -e >= this.settings.effectsOffset && (this.$element.addClass(this.settings.classes.stickyEffects),
this.isReachedEffectsPoint = !0)
}
}, {
key: "bindEvents",
value: function() {
this.scrollHandler = this.onWindowScroll.bind(this),
this.resizeHandler = this.onWindowResize.bind(this),
this.elements.$window.on({
scroll: this.scrollHandler,
resize: this.resizeHandler
})
}
}, {
key: "unbindEvents",
value: function() {
this.elements.$window.off("scroll", this.scrollHandler).off("resize", this.resizeHandler)
}
}, {
key: "onWindowScroll",
value: function() {
this.checkPosition()
}
}, {
key: "onWindowResize",
value: function() {
this.isSticky && (this.unstickElement(),
this.stickElement(),
this.settings.parent && (this.isFollowingParent = !1,
this.checkParent()))
}
}, {
key: "destroy",
value: function() {
this.isSticky && this.unstick(),
this.unbindEvents(),
this.$element.removeClass(this.settings.classes.sticky)
}
}]),
n
}();
n.default = s
}
, {
"@babel/runtime/helpers/classCallCheck": 72,
"@babel/runtime/helpers/createClass": 73,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
17: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = void 0;
var r = i(e("./module")).default.extend({
$clickedItem: null,
getDefaultSettings: function() {
return {
classes: {
fetching: "raven-pagination-fetching",
disabled: "raven-pagination-disabled",
reading: "raven-pagination-reading",
spinner: "raven-pagination-spinner",
activePage: "raven-pagination-active",
item: "raven-pagination-item",
pageNum: "raven-pagination-num",
prevButton: "raven-pagination-prev",
nextButton: "raven-pagination-next"
},
selectors: {
activePage: ".raven-pagination-active",
pageNum: ".raven-pagination-num",
prevButton: ".raven-pagination-prev",
nextButton: ".raven-pagination-next",
spinner: ".raven-pagination-spinner"
},
isEnabled: !0,
activePage: 1,
totalPages: this.getElementSettings("total_pages"),
pagesVisible: this.getElementSettings("pages_visible")
}
},
getDefaultElements: function() {
var e = this.getSettings("selectors");
return {
$prevButton: this.$element.find(e.prevButton),
$nextButton: this.$element.find(e.nextButton)
}
},
bindEvents: function() {
this.$element.on("click", this.getSettings("selectors.pageNum"), this.handlePageNum),
this.elements.$prevButton.on("click", this.handlePrev),
this.elements.$nextButton.on("click", this.handleNext)
},
onInit: function() {
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments)
},
getTotalPages: function() {
return parseInt(this.getSettings("totalPages"))
},
setTotalPages: function(e) {
this.setSettings("totalPages", parseInt(e))
},
getPagesVisible: function() {
return parseInt(this.getSettings("pagesVisible"))
},
getActivePage: function() {
return parseInt(this.getSettings("activePage"))
},
setActivePage: function(e) {
this.setSettings("activePage", parseInt(e))
},
setEnabled: function(e) {
this.setSettings("isEnabled", e)
},
isEnabled: function() {
return this.getSettings("isEnabled")
},
recreatePagination: function(e) {
this.setTotalPages(e),
this.setActivePage(1),
this.renderUpdate()
},
renderUpdate: function() {
var e = this.getSettings("classes")
, t = this.getSettings("selectors");
this.$element.removeClass(e.fetching),
this.$clickedItem && (this.$clickedItem.find(t.spinner).remove(),
this.$clickedItem.removeClass(e.reading),
this.$clickedItem = null),
this.setEnabled(!0),
this.renderNumbers(),
this.updatePrevNext()
},
renderNumbers: function() {
var e, t, n = this, i = this.getPages();
i.length && (e = this.getSettings("selectors"),
t = [],
i.forEach(function(e) {
t.push(n.numberTemplate(e))
}),
this.$element.find(e.pageNum).remove(),
this.elements.$prevButton.after(t))
},
numberTemplate: function(e) {
var t = this.getSettings("classes")
, n = $("
");
return n.addClass(t.pageNum),
n.addClass(t.item),
n.toggleClass(t.activePage, e === this.getActivePage()),
n.attr("href", "#"),
n.attr("data-page-num", e),
n.html(e),
n
},
updateActivePage: function(e) {
var t = this.getSettings("classes");
this.$element.addClass(t.fetching),
this.$clickedItem && (this.$clickedItem.addClass(t.reading),
this.$clickedItem.append('
'))),
this.setEnabled(!1),
this.setActivePage(e)
},
updatePrevNext: function() {
var e, t, n;
this.getPages().length && (e = this.getSettings("classes"),
t = this.getActivePage(),
n = this.getTotalPages(),
this.elements.$prevButton.toggleClass(e.disabled, t <= 1),
this.elements.$nextButton.toggleClass(e.disabled, n <= t))
},
handlePageNum: function(e) {
e.preventDefault();
var t = $(e.target)
, n = parseInt(t.data("page-num"));
this.getActivePage() !== n && this.triggerPagination(t, n)
},
handlePrev: function(e) {
e.preventDefault();
var t = this.getSettings("classes")
, n = $(e.target)
, i = this.getActivePage() - 1;
1 <= i && !n.hasClass(t.disabled) && this.triggerPagination(n, i)
},
handleNext: function(e) {
e.preventDefault();
var t = this.getSettings("classes")
, n = $(e.target)
, i = this.getTotalPages()
, r = this.getActivePage() + 1;
r <= i && !n.hasClass(t.disabled) && this.triggerPagination(n, r)
},
triggerPagination: function(e, t) {
this.isEnabled() && (this.$clickedItem = e,
this.updateActivePage(t),
this.handlePagination(t))
},
getPages: function() {
var e = this.getActivePage()
, t = this.getPagesVisible()
, n = this.getTotalPages()
, i = []
, r = Math.floor(t / 2)
, o = e - r
, s = e + r;
o <= 0 && (o = 1,
s = t),
n < s && (s = n);
for (var a = o; a <= s; )
i.push(a),
a++;
return i
},
handlePagination: function() {
this.renderUpdate()
}
});
n.default = r
}
, {
"./module": 6,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
18: [function(e, t, n) {
"use strict";
var m = e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));
function i() {
var e, s, l, c, n, t, u = window, d = document;
function p(e, t) {
this.scrollLeft = e,
this.scrollTop = t
}
function i(e) {
if (null === e || "object" !== (0,
m.default)(e) || void 0 === e.behavior || "auto" === e.behavior || "instant" === e.behavior)
return !0;
if ("object" === (0,
m.default)(e) && "smooth" === e.behavior)
return !1;
throw new TypeError("behavior member of ScrollOptions " + e.behavior + " is not a valid value for enumeration ScrollBehavior.")
}
function r(e, t) {
return "Y" === t ? e.clientHeight + n < e.scrollHeight : "X" === t ? e.clientWidth + n < e.scrollWidth : void 0
}
function o(e, t) {
var n = u.getComputedStyle(e, null)["overflow" + t];
return "auto" === n || "scroll" === n
}
function a(e) {
for (var t, n, i; !1 === ((e = e.parentNode) === d.body) && !1 === (i = n = void 0,
n = r(t = e, "Y") && o(t, "Y"),
i = r(t, "X") && o(t, "X"),
n || i); )
;
return e
}
function h(e) {
var t, n, i, r, o = (c() - e.startTime) / s;
r = o = 1 < o ? 1 : o,
t = .5 * (1 - Math.cos(Math.PI * r)),
n = e.startX + (e.x - e.startX) * t,
i = e.startY + (e.y - e.startY) * t,
e.method.call(e.scrollable, n, i),
n === e.x && i === e.y || u.requestAnimationFrame(h.bind(u, e))
}
function f(e, t, n) {
var i, r, o, s = c(), a = e === d.body ? (r = (i = u).scrollX || u.pageXOffset,
o = u.scrollY || u.pageYOffset,
l.scroll) : (r = (i = e).scrollLeft,
o = e.scrollTop,
p);
h({
scrollable: i,
method: a,
startTime: s,
startX: r,
startY: o,
x: t,
y: n
})
}
"scrollBehavior"in d.documentElement.style && !0 !== u.__forceSmoothScrollPolyfill__ || (e = u.HTMLElement || u.Element,
s = 468,
l = {
scroll: u.scroll || u.scrollTo,
scrollBy: u.scrollBy,
elementScroll: e.prototype.scroll || p,
scrollIntoView: e.prototype.scrollIntoView
},
c = u.performance && u.performance.now ? u.performance.now.bind(u.performance) : Date.now,
t = u.navigator.userAgent,
n = new RegExp(["MSIE ", "Trident/", "Edge/"].join("|")).test(t) ? 1 : 0,
u.scroll = u.scrollTo = function() {
void 0 !== arguments[0] && (!0 !== i(arguments[0]) ? f.call(u, d.body, void 0 !== arguments[0].left ? ~~arguments[0].left : u.scrollX || u.pageXOffset, void 0 !== arguments[0].top ? ~~arguments[0].top : u.scrollY || u.pageYOffset) : l.scroll.call(u, void 0 !== arguments[0].left ? arguments[0].left : "object" !== (0,
m.default)(arguments[0]) ? arguments[0] : u.scrollX || u.pageXOffset, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : u.scrollY || u.pageYOffset))
}
,
u.scrollBy = function() {
void 0 !== arguments[0] && (i(arguments[0]) ? l.scrollBy.call(u, void 0 !== arguments[0].left ? arguments[0].left : "object" !== (0,
m.default)(arguments[0]) ? arguments[0] : 0, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : 0) : f.call(u, d.body, ~~arguments[0].left + (u.scrollX || u.pageXOffset), ~~arguments[0].top + (u.scrollY || u.pageYOffset)))
}
,
e.prototype.scroll = e.prototype.scrollTo = function() {
if (void 0 !== arguments[0])
if (!0 !== i(arguments[0])) {
var e = arguments[0].left
, t = arguments[0].top;
f.call(this, this, void 0 === e ? this.scrollLeft : ~~e, void 0 === t ? this.scrollTop : ~~t)
} else {
if ("number" == typeof arguments[0] && void 0 === arguments[1])
throw new SyntaxError("Value could not be converted");
l.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left : "object" !== (0,
m.default)(arguments[0]) ? ~~arguments[0] : this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top : void 0 !== arguments[1] ? ~~arguments[1] : this.scrollTop)
}
}
,
e.prototype.scrollBy = function() {
void 0 !== arguments[0] && (!0 !== i(arguments[0]) ? this.scroll({
left: ~~arguments[0].left + this.scrollLeft,
top: ~~arguments[0].top + this.scrollTop,
behavior: arguments[0].behavior
}) : l.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop))
}
,
e.prototype.scrollIntoView = function() {
var e, t, n;
!0 !== i(arguments[0]) ? (t = (e = a(this)).getBoundingClientRect(),
n = this.getBoundingClientRect(),
e !== d.body ? (f.call(this, e, e.scrollLeft + n.left - t.left, e.scrollTop + n.top - t.top),
"fixed" !== u.getComputedStyle(e).position && u.scrollBy({
left: t.left,
top: t.top,
behavior: "smooth"
})) : u.scrollBy({
left: n.left,
top: n.top,
behavior: "smooth"
})) : l.scrollIntoView.call(this, void 0 === arguments[0] || arguments[0])
}
)
}
"object" === (void 0 === n ? "undefined" : (0,
m.default)(n)) && void 0 !== t && (t.exports = {
polyfill: i
}),
i()
}
, {
"@babel/runtime/helpers/interopRequireDefault": 78,
"@babel/runtime/helpers/typeof": 85
}],
19: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = void 0;
var r = i(e("./module")).default.extend({
$clickedItem: null,
getDefaultSettings: function() {
return {
classes: {
fetching: "raven-sortable-fetching",
reading: "raven-sortable-reading",
spinner: "raven-sortable-spinner",
activeItem: "raven-sortable-active"
},
selectors: {
item: ".raven-sortable-item",
activeItem: ".raven-sortable-active",
spinner: ".raven-sortable-spinner"
},
activeID: -1,
isEnabled: !0
}
},
getDefaultElements: function() {
return {}
},
bindEvents: function() {
this.$element.on("click", this.getSettings("selectors.item"), this.handleItemClick)
},
onInit: function() {
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments)
},
getActiveID: function() {
return parseInt(this.getSettings("activeID"))
},
setActiveID: function(e) {
this.setSettings("activeID", parseInt(e))
},
setEnabled: function(e) {
this.setSettings("isEnabled", e)
},
isEnabled: function() {
return this.getSettings("isEnabled")
},
renderUpdate: function() {
var e = this.getSettings("classes")
, t = this.getSettings("selectors");
this.$element.removeClass(e.fetching),
this.$element.find(t.activeItem).removeClass(e.activeItem),
this.$clickedItem && (this.$clickedItem.find(t.spinner).remove(),
this.$clickedItem.removeClass(e.reading),
this.$clickedItem.addClass(e.activeItem),
this.$clickedItem = null),
this.setEnabled(!0)
},
updateActiveItem: function(e) {
var t = this.getSettings("classes");
this.$element.addClass(t.fetching),
this.$clickedItem && (this.$clickedItem.addClass(t.reading),
this.$clickedItem.append('
'))),
this.setEnabled(!1),
this.setActiveID(e)
},
handleItemClick: function(e) {
e.preventDefault();
var t = $(e.target)
, n = parseInt(t.data("category"));
this.getActiveID() !== n && this.triggerSort(t, n)
},
triggerSort: function(e, t) {
this.isEnabled() && (this.$clickedItem = e,
this.updateActiveItem(t),
this.handleSort(t))
},
handleSort: function() {
this.renderUpdate()
}
});
n.default = r
}
, {
"./module": 6,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
20: [function(e, t, n) {
"use strict";
var a = e("@babel/runtime/helpers/interopRequireDefault")(e("tippy.js"))
, l = {
widgetEditorSettings: function(n) {
var e, i = {};
return !!window.elementor.hasOwnProperty("elements") && (!!(e = window.elementor.elements).models && ($.each(e.models, function(e, t) {
$.each(t.attributes.elements.models, function(e, t) {
$.each(t.attributes.elements.models, function(e, t) {
n === t.id && (i = t.attributes.settings.attributes)
})
})
}),
{
tooltip: i.jupiter_widget_tooltip || "false",
tooltipDescription: i.jupiter_widget_tooltip_description || "Lorem Ipsum",
tooltipPlacement: i.jupiter_widget_tooltip_placement || "top",
tooltipArrow: "yes" === i.jupiter_widget_tooltip_arrow,
xOffset: i.jupiter_widget_tooltip_x_offset || 0,
yOffset: i.jupiter_widget_tooltip_y_offset || 0,
tooltipAnimation: i.jupiter_widget_tooltip_animation || "shift-toward",
tooltipTrigger: i.jupiter_widget_tooltip_trigger || "mouseenter",
customSelector: i.jupiter_widget_tooltip_custom_selector || "",
zIndex: i.jupiter_widget_tooltip_z_index || "999",
delay: i.jupiter_widget_tooltip_delay || "0"
}))
},
jupiterTooltipInstance: function(e) {
var t, n = e.data("id"), i = e[0], r = Boolean(elementorFrontend.isEditMode()), o = i, s = {}, s = r ? l.widgetEditorSettings(n) : e.data("jupiter-tooltip-settings");
return i._tippy && i._tippy.destroy(),
!!s && (void 0 !== s && ("false" !== s.tooltip && void 0 !== s.tooltip && "" !== s.tooltipDescription && (e.addClass("jupiter-tooltip-widget"),
s.customSelector && (o = $(s.customSelector)[0]),
r && !$("#jupiter-tooltip-content-" + n)[0] && ((t = $("
", {
id: "jupiter-tooltip-content-" + n,
class: "jupiter-tooltip-widget__content"
})).html(s.tooltipDescription),
e.append(t)),
(0,
a.default)([o], {
content: e.find(".jupiter-tooltip-widget__content")[0].innerHTML,
allowHTML: !0,
appendTo: i,
arrow: !!s.tooltipArrow,
placement: s.tooltipPlacement,
offset: [s.xOffset, s.yOffset],
animation: s.tooltipAnimation,
trigger: s.tooltipTrigger,
interactive: !0,
zIndex: s.zIndex,
maxWidth: "none",
delay: s.delay.size ? s.delay.size : 0,
popperOptions: {
strategy: "fixed"
},
onMount: function(e) {
var t = $("#tippy-" + e.id + " .tippy-box[data-placement^=top]>.tippy-arrow")
, n = $("#tippy-" + e.id + " .tippy-box[data-placement^=bottom]>.tippy-arrow")
, i = $("#tippy-" + e.id + " .tippy-box[data-placement^=left]>.tippy-arrow")
, r = $("#tippy-" + e.id + " .tippy-box[data-placement^=right]>.tippy-arrow")
, o = $("#tippy-" + e.id + " .tippy-box");
switch (s.tooltipPlacement) {
case "top-start":
case "top":
case "top-end":
t.css("bottom", "-" + o.css("border-bottom-width"));
break;
case "right-start":
case "right":
case "right-end":
r.css("left", "-" + o.css("border-left-width"));
break;
case "bottom-start":
case "bottom":
case "bottom-end":
n.css("top", "-" + o.css("border-top-width"));
break;
case "left-start":
case "left":
case "left-end":
i.css("right", "-" + o.css("border-right-width"))
}
}
}),
void (r && i._tippy && i._tippy.show()))))
}
};
elementorFrontend.hooks.addAction("frontend/element_ready/widget", function(e) {
new l.jupiterTooltipInstance(e)
})
}
, {
"@babel/runtime/helpers/interopRequireDefault": 78,
"tippy.js": 101
}],
21: [function(e, t, n) {
"use strict";
var i = function(o) {
o.data("raven-element-link") && o.on("click.onWrapperLink", function() {
var e = o.data("raven-element-link")
, t = o.data("id")
, n = document.createElement("a");
/^https?:\/\//i.test(e.url) || (e.url = "http://" + e.url),
n.id = "raven-wrapper-link-" + t,
n.href = e.url,
n.target = e.is_external ? "_blank" : "_self",
n.rel = e.nofollow ? "nofollow noreferer" : "",
n.style.display = "none",
document.body.appendChild(n);
var i = document.getElementById(n.id);
i.click();
var r = setTimeout(function() {
document.body.removeChild(i),
clearTimeout(r)
})
})
};
elementorFrontend.hooks.addAction("frontend/element_ready/global", function(e) {
new i(e)
})
}
, {}],
22: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(e) {
new o({
$element: e
})
}
;
var r = i(e("../utils/module"));
$ = jQuery;
var o = r.default.extend({
getDefaultSettings: function() {
return {
selectors: {
wrapper: ".raven-product-add-to-cart",
cartForm: "form.cart",
tableBody: "tbody",
singleVariationWrapper: ".single_variation_wrap",
variationFormHolder: ".raven-variations-form-holder",
qty: ".quantity > div",
plusMinus: ".plus-minus-btn",
qtyInput: ".quantity .raven-qty-button-holder-inner input[type=number]",
qtyInputText: ".quantity input[type=text]",
formResetButton: ".artbees-was-reset-options"
}
}
},
getDefaultElements: function() {
var e = this.getSettings("selectors");
return {
$wrapper: this.$element.find(e.wrapper),
$cartForm: this.$element.find(e.cartForm),
$tableBody: this.$element.find(e.tableBody),
$singleVariationWrapper: this.$element.find(e.singleVariationWrapper),
$variationFormHolder: this.$element.find(e.variationFormHolder),
$qty: this.$element.find(e.qty),
$plusMinus: this.$element.find(e.plusMinus),
$qtyInput: this.$element.find(e.qtyInput),
$qtyInputText: this.$element.find(e.qtyInputText),
$formResetButton: this.$element.find(e.formResetButton)
}
},
bindEvents: function() {
this.detectSellKitSwatch(),
this.detectPlusMinus(),
this.detectInputFocused(),
this.removeInputSpinner(),
this.moveResetButtonToTableBody(),
this.onResetClearButton(),
this.addDummyPriceToEditor(),
0 < this.$element.find(".sellkit-pro-deactive").length && this.fixResetButtonIcon()
},
detectSellKitSwatch: function() {
var e;
this.isElementorEditor() && (e = new CustomEvent("sellkitpro:swatches"),
document.dispatchEvent(e))
},
detectPlusMinus: function() {
var a = this;
this.elements.$plusMinus.on("click", function(e) {
var t = $(e.currentTarget)
, n = t.closest("form.cart").find(".qty")
, i = parseFloat(n.attr("max"))
, r = parseFloat(n.attr("min"))
, o = parseFloat(n.attr("step"))
, s = parseFloat(n.val());
a.elements.$wrapper.hasClass("raven-product-grouped") && isNaN(s) && (s = 0),
t.is(".plus") ? i && i <= s ? n.val(i) : n.val(s + o) : t.is(".minus") && (r && s <= r ? n.val(r) : 1 < s && n.val(s - o))
})
},
detectInputFocused: function() {
this.elements.$qtyInput.on("focus", function(e) {
$(e.currentTarget).closest(".raven-qty-button-holder-inner").addClass("focused")
}),
this.elements.$qtyInput.on("focusout", function(e) {
$(e.currentTarget).closest(".raven-qty-button-holder-inner").removeClass("focused")
})
},
removeInputSpinner: function() {
this.elements.$qty.removeClass("input-group"),
this.elements.$qty.removeClass("qty"),
this.elements.$qty.find(".input-group-prepend").remove(),
this.elements.$qty.find(".input-group-append").remove(),
this.elements.$qtyInputText.attr("type", "number")
},
moveResetButtonToTableBody: function() {
var e = this.elements.$formResetButton;
this.elements.$formResetButton.remove(),
this.elements.$tableBody.append(e)
},
onResetClearButton: function() {
0 !== this.elements.$formResetButton.length && this.elements.$formResetButton[0].addEventListener("click", function() {
var e = document.getElementsByClassName("artbees-was-content");
e && Object.entries(e).forEach(function(e) {
e[1].classList.remove("selected-attribute")
})
})
},
addDummyPriceToEditor: function() {
var e, t, n = this;
this.isVariableProduct() && $("form.variations_form.cart").wc_variation_form(),
this.isElementorEditor() && this.isVariableProduct() && !this.hasDefaultAttributes() && (e = "",
this.elements.$wrapper.data("price") && (e = parseFloat(this.elements.$wrapper.data("price")).toFixed(2)),
t = '
$' + (e = e || 20) + "
",
this.elements.$singleVariationWrapper.prepend(t),
this.elements.$variationFormHolder.change(function() {
n.$element.find(".raven-dummy-price").hide()
}))
},
fixResetButtonIcon: function() {
var e = this.$element.find("#jupiterx-clear-variable-button-single-page")
, t = e.text();
e.wrapInner("
"),
e.find("span").before(''),
e.find("span").text(t)
},
isElementorEditor: function() {
return document.body.classList.contains("elementor-editor-active")
},
isVariableProduct: function() {
if (0 !== this.elements.$cartForm.length)
return this.elements.$cartForm[0].classList.contains("variations_form")
},
hasDefaultAttributes: function() {
return 0 !== this.$element.find(".has-default-attributes").length
}
})
}
, {
"../utils/module": 6,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
23: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(e) {
new o({
$element: e
})
}
;
var r = i(e("../utils/module"))
, s = jQuery
, o = r.default.extend({
onInit: function() {
this.accordionOnClick()
},
accordionOnClick: function() {
var o = !1
, e = this.getElementSettings();
e.collapsible && "yes" === e.collapsible && (o = !0),
s(".jx-single-accordion-header").off().on("click", function() {
var e, t = s(this).parents(".jupiterx-single-advanced-accordion-wrapper"), n = t.find(".jx-single-accordion-body"), i = n.css("display"), r = s(this).parents(".jupiterx-advanced-accordion-wrapper").find(".jx-single-accordion-body");
"" !== i && "none" !== i || (o && r.slideUp("fast").addClass("jx-ac-body-none").removeClass("jx-ac-body-block").parent().addClass("jx-ac-inactive").removeClass("jx-ac-active"),
n.slideDown("fast"),
t.addClass("jx-ac-active").removeClass("jx-ac-inactive"),
e = !1),
"block" !== i || o || (n.slideUp("fast"),
t.addClass("jx-ac-inactive").removeClass("jx-ac-active"),
e = !0),
t.hasClass("jx-ac-last") && (e && t.find(".jx-single-accordion-header").removeClass("border-not-radius"),
e || (t.find(".jx-single-accordion-header").addClass("border-not-radius"),
t.find(".jx-single-accordion-body").addClass("border-is-radius")))
})
}
})
}
, {
"../utils/module": 6,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
24: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(e) {
new l({
$element: e
})
}
;
var r = i(e("@babel/runtime/helpers/defineProperty"))
, o = i(e("../utils/module"));
function s(t, e) {
var n, i = Object.keys(t);
return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t),
e && (n = n.filter(function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
})),
i.push.apply(i, n)),
i
}
function a(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? s(Object(n), !0).forEach(function(e) {
(0,
r.default)(t, e, n[e])
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : s(Object(n)).forEach(function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
})
}
return t
}
var v = jQuery
, l = o.default.extend({
mainLayout: null,
mobileLayout: null,
isRtl: !1,
widgetParents: {},
getDefaultSettings: function() {
return {
selectors: {
menus: "ul.raven-adnav-menu",
mainNav: "nav.raven-adnav-menu-main",
mainMenu: "nav.raven-adnav-menu-main ul.raven-adnav-menu",
mobileNav: "nav.raven-adnav-menu-mobile",
mobileMenu: "nav.raven-adnav-menu-mobile ul.raven-adnav-menu",
inPageMenuItems: 'a[href*="#"]',
toggleButton: ".raven-adnav-menu-toggle-button",
closeButton: ".raven-adnav-menu-close-button",
rootListItems: "ul.raven-adnav-menu > li",
submenuLinks: "ul.raven-adnav-menu .submenu a"
}
}
},
getDefaultElements: function() {
var e = this.getSettings("selectors");
return {
$body: v("body"),
$menus: this.$element.find(e.menus),
$mainNav: this.$element.find(e.mainNav),
$mainMenu: this.$element.find(e.mainMenu),
$mobileNav: this.$element.find(e.mobileNav),
$mobileMenu: this.$element.find(e.mobileMenu),
$inPageMenuItems: this.$element.find(e.inPageMenuItems),
$toggleButton: this.$element.find(e.toggleButton),
$closeButton: this.$element.find(e.closeButton),
$rootListItems: this.$element.find(e.rootListItems),
$submenuLinks: this.$element.find(e.submenuLinks),
$elementorElement: this.$element.closest(".elementor-element"),
$parentSegment: this.$element.parentsUntil("div.jupiterx-site").last()
}
},
onInit: function() {
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments),
this.mainLayout = this.elements.$mainNav.attr("data-layout"),
this.mobileLayout = !!this.elements.$mobileNav.length && this.elements.$mobileNav.attr("data-layout"),
this.isRtl = v("body").hasClass("rtl"),
this.isEdit && "section_submenu" === elementor.panel.currentView.currentPageView.activeSection && this.onSectionActivated("section_submenu"),
this.deactivateMenu(),
v(window).off("resize", this.deactivateMenu.bind(this)).on("resize", this.deactivateMenu.bind(this)),
this.widgetParents = {
widget: this.$element,
column: this.getParentColumn(),
section: this.getParentSection(),
container: this.getParentContainer()
},
this.initMainSmartMenu(),
this.initMobileSmartMenu(),
this.updateActiveListItems(),
this.inPageMenuClick(),
this.mobileMenuScroll(),
this.handleLinksOnSubmenu()
},
bindEvents: function() {
var e, t = this.elements.$mainNav.attr("data-layout");
"dropdown" === t && this.elements.$toggleButton.on("click", this.toggleDropdown.bind(this)),
"offcanvas" === t && (this.elements.$toggleButton.on("click", this.toggleMenu.bind(this)),
this.elements.$closeButton.on("click", this.toggleMenu.bind(this)),
this.elements.$menus.on("select.smapi", this.onSideMenuItemClick.bind(this)),
e = this.getElementSettings("offcanvas_appear_effect"),
this.elements.$body.addClass("raven-adnav-menu-effect-".concat(e)),
this.elements.$toggleButton.on("click", this.doSideMenuEffects.bind(this)),
this.elements.$closeButton.on("click", this.doSideMenuEffects.bind(this)));
var n = this.elements.$mobileNav.attr("data-layout");
if ("dropdown" !== n) {
if ("side" === n) {
this.elements.$toggleButton.on("click", this.toggleMenu.bind(this)),
this.elements.$closeButton.on("click", this.toggleMenu.bind(this)),
this.elements.$menus.on("select.smapi", this.onSideMenuItemClick.bind(this));
var i = this.getElementSettings("side_menu_effect");
return this.elements.$body.addClass("raven-adnav-menu-effect-".concat(i)),
this.elements.$toggleButton.on("click", this.doSideMenuEffects.bind(this)),
void this.elements.$closeButton.on("click", this.doSideMenuEffects.bind(this))
}
"full-screen" === n && (this.elements.$toggleButton.on("click", this.toggleMenu.bind(this)),
this.elements.$closeButton.on("click", this.toggleMenu.bind(this)))
} else
this.elements.$toggleButton.on("click", this.toggleDropdown.bind(this))
},
initMainSmartMenu: function() {
var e, t, n, i, r = this, o = {
subIndicators: !1,
rightToLeftSubMenus: this.isRtl
}, s = getComputedStyle(this.$element[0]).getPropertyValue("--submenu-spacing") && null !== (e = this.$element) && void 0 !== e && e.css("--submenu-spacing") ? parseInt(null === (t = this.$element) || void 0 === t ? void 0 : t.css("--submenu-spacing")) : 0;
"horizontal" !== this.mainLayout && "vertical" !== this.mainLayout || (n = this.elements.$elementorElement,
i = this.getElementSettings("content_effect_content_overlay"),
0 !== v(n[0]).parents(".jupiterx-header") && "enabled" === i && "horizontal" === this.mainLayout && 0 === v(".jupiterx-main").find(".jupiterx-advanced-nav-content-effect-enabled-overlay").length && v(".jupiterx-main").append(''),
o = a(a({}, o), {}, {
hideTimeout: 300,
hideFunction: function(e) {
e.removeClass("submenu-shown"),
setTimeout(function() {
e.css("display", "none"),
"horizontal" === r.mainLayout && (r.handleContentEffectsBlur("remove"),
r.handleContentEffectsOverlay("remove"))
}, 0)
},
showTimeout: 0,
showFunction: function(e) {
var t;
r.setSubmenuWidth(e, s),
r.setSubmenuPosition(e),
e.css("display", "block"),
"horizontal" === r.mainLayout && (t = r.getElementSettings("content_effect_blur_content"),
0 === v(n[0]).parents(".jupiterx-header") || "enabled" !== i && "enabled" !== t || 0 === v(".jupiterx-main").find(".jupiterx-advanced-nav-content-effect-enabled-overlay").length && v(".jupiterx-main").append(''),
"enabled" !== i && "enabled" !== t || r.elements.$body[0].classList.add("jupiterx-advanced-nav-content-effect-enabled")),
setTimeout(function() {
e.addClass("submenu-shown"),
"horizontal" === r.mainLayout && (r.handleContentEffectsBlur("add"),
r.handleContentEffectsOverlay("add"))
})
},
showOnClick: "click" === this.getElementSettings("submenu_trigger"),
subMenusMinWidth: "0",
subMenusMaxWidth: "110vw"
})),
"horizontal" === this.mainLayout && (o = a(a({}, o), {}, {
bottomToTopSubMenus: "top" === this.getElementSettings("submenu_opening_position"),
mainMenuSubOffsetY: s
})),
"vertical" === this.mainLayout && this.elements.$mainMenu.addClass("sm-vertical"),
this.elements.$mainMenu.smartmenus(o)
},
handleContentEffectsOverlay: function(e) {
var t = this.elements.$elementorElement;
if (t[0].classList.contains("raven-blur-content-overlay-enabled") && 0 !== v(t[0]).parents(".jupiterx-header").length) {
var n = this.getElementSettings("content_effect_content_overlay");
if (0 !== v(t[0]).parents(".jupiterx-header") && "enabled" === n && this.elements.$body[0].classList.add("jupiterx-advanced-nav-overlay-enabled"),
"remove" === e)
return this.elements.$body[0].classList.remove("jupiterx-advanced-nav-overlay-enabled"),
void v(".jupiterx-advanced-nav-content-effect-enabled-overlay").removeClass("jupiterx-advanced-nav-overlay-activated");
v(".jupiterx-advanced-nav-content-effect-enabled-overlay").addClass("jupiterx-advanced-nav-overlay-activated")
}
},
handleContentEffectsBlur: function(e) {
var t, n = this.elements.$elementorElement;
if (n[0].classList.contains("raven-blur-content-enabled") && 0 !== v(n[0]).parents(".jupiterx-header").length) {
var i = (null === (t = this.getElementSettings("content_effect_blur_intensity")) || void 0 === t ? void 0 : t.size) || 5;
if ("remove" === e)
return v(".jupiterx-advanced-nav-content-effect-enabled-overlay").css("backdrop-filter", ""),
void v(".jupiterx-advanced-nav-content-effect-enabled-overlay").removeClass("jupiterx-advanced-nav-overlay-activated");
v(".jupiterx-advanced-nav-content-effect-enabled-overlay").addClass("jupiterx-advanced-nav-overlay-activated"),
v(".jupiterx-advanced-nav-content-effect-enabled-overlay").css("backdrop-filter", "blur(".concat(i, "px)"))
}
},
initMobileSmartMenu: function() {
var e;
this.elements.$mobileMenu.length && (e = {
subIndicators: !1,
subMenusMaxWidth: "1500px",
rightToLeftSubMenus: this.isRtl
},
this.elements.$mobileMenu.smartmenus(e))
},
toggleDropdown: function() {
this.elements.$toggleButton.find(".hamburger").toggleClass("is-active"),
"dropdown" !== this.mainLayout ? (this.dropdownFullWidth(),
this.elements.$mobileNav.slideToggle(250),
this.dropdownFullWidth()) : this.elements.$mainNav.slideToggle(250)
},
dropdownFullWidth: function() {
var e, t, n, i, r, o = this.elements.$mobileNav;
"stretch" === this.getElementSettings("full_width") && (t = null === (e = o[0]) || void 0 === e ? void 0 : e.getBoundingClientRect().x,
this.elements.$mobileNav.css("width", "".concat(this.$element.closest("body")[0].getBoundingClientRect().width, "px")).css("left", "".concat(-t, "px")),
n = this.elements.$elementorElement,
i = this.elements.$toggleButton,
r = n.offset().top + n.outerHeight() - i.offset().top,
o.css("top", r))
},
doSideMenuEffects: function() {
var e = this
, t = "offcanvas" === this.mainLayout;
if ("overlay" === this.getElementSettings(t ? "offcanvas_appear_effect" : "side_menu_effect"))
return this.elements.$body.hasClass("raven-adnav-menu-effect-overlayed") ? void setTimeout(function() {
e.elements.$body.removeClass("raven-adnav-menu-effect-overlayed"),
e.togglePrepareParentForPushEffect(!1)
}, 400) : (this.elements.$body.addClass("raven-adnav-menu-effect-overlayed"),
void this.togglePrepareParentForPushEffect());
var n = this.getElementSettings(t ? "offcanvas_position" : "side_menu_alignment")
, i = parseInt(this.$element.css(t ? "--offcanvas-box-width" : "--menu-container-width")) || 250;
if ("right" === n && (i = "-".concat(i, "px")),
!this.elements.$body.hasClass("raven-adnav-menu-effect-pushed")) {
var r = this.isRtl ? "margin-right" : "margin-left";
return this.elements.$body.addClass("raven-adnav-menu-effect-pushed").css(r, i),
void this.togglePrepareParentForPushEffect()
}
this.elements.$body.removeClass("raven-adnav-menu-effect-pushed").removeAttr("style"),
this.togglePrepareParentForPushEffect(!1)
},
togglePrepareParentForPushEffect: function(e) {
0 < arguments.length && void 0 !== e && !e ? this.elements.$parentSegment.removeClass("raven-adnav-menu-parent-segment") : this.elements.$parentSegment.addClass("raven-adnav-menu-parent-segment").css("--adnav-menu-overlay-color", this.getElementSettings("offcanvas_overlay_color"))
},
toggleMenu: function() {
var e = "offcanvas" === this.mainLayout ? this.elements.$mainNav : this.elements.$mobileNav;
e.toggleClass("raven-adnav-menu-active"),
"full-screen" === this.mobileLayout && this.elements.$body.toggleClass("raven-adnav-menu-effect-overlayed"),
e.hasClass("raven-adnav-menu-active") ? e.parents(".animated").addClass("raven-adnav-menu-parents-animation") : e.parents(".animated").removeClass("raven-adnav-menu-parents-animation"),
0 !== this.elements.$toggleButton.find(".hamburger").length && this.elements.$toggleButton.find(".hamburger").toggleClass("is-active")
},
mobileMenuScroll: function() {
for (var i = document.querySelectorAll(".raven-adnav-menu-mobile.raven-adnav-menu-full-screen"), r = null, e = 0; e < i.length; e++)
!function(n) {
i[n].addEventListener("touchstart", function(e) {
1 === e.targetTouches.length && (r = e.targetTouches[0].clientY)
}, !1),
i[n].addEventListener("touchmove", function(e) {
var t;
1 === e.targetTouches.length && (t = e.targetTouches[0].clientY - r,
0 === i[n].scrollTop && 0 < t && e.cancelable && 0 === v(e.target).parents(".raven-container").length && e.preventDefault(),
i[n].scrollHeight - i[n].scrollTop <= i[n].clientHeight && t < 0 && e.cancelable && 0 === v(e.target).parents(".raven-container").length && e.preventDefault())
}, !1)
}(e)
},
handleLinksOnSubmenu: function() {
this.elements.$submenuLinks.on("click", function(e) {
e.stopPropagation()
})
},
inPageMenuClick: function() {
var g = this;
this.elements.$inPageMenuItems.on("click", function(e) {
var t, n, i, r, o, s, a, l, c, u, d, p, h, f = v(e.currentTarget).prop("href"), m = null;
try {
m = new window.URL(f)
} catch (e) {
return
}
m.hash && m.pathname === window.location.pathname && (e.preventDefault(),
g.deactivateMenu(),
g.changeHamburgerState(!1),
window.history.pushState(null, null, m.hash),
0 !== (t = v(m.hash)).length && (i = (n = v(".jupiterx-header").data("jupiterx-settings")).behavior,
r = n.overlap,
o = n.position,
s = n.template,
a = n.stickyTemplate,
l = "sticky" === i && (!a || a !== s),
c = 0 < v(".jupiterx-header-sticked").length,
u = v(".jupiterx-tbar").outerHeight() || 0,
d = v("#wpadminbar").height() || 0,
p = parseInt(v(".jupiterx-site-body-border").css("border-width")) || 0,
h = t.offset().top,
h -= d,
h -= p,
h -= u,
c || i && ("sticky" !== i || !r) || (h -= u),
l && (h -= v(".jupiterx-header-custom .elementor:last-of-type").outerHeight() || 0),
l || "sticky" !== i && ("fixed" !== i || "top" !== o) || (h -= g.getHeaderHeight()),
v("html, body").stop().animate({
scrollTop: h
}, 500, "swing")))
})
},
getHeaderHeight: function() {
var e = v(".jupiterx-header");
if (0 === e.length)
return 0;
var t = e.data("jupiterx-settings").behavior;
return "fixed" === t || "sticky" === t || window.pageYOffset < e.height() ? e.height() : 0
},
onElementChange: function(e) {
var t, n, i, r;
"full_width" === e && this.dropdownFullWidth(),
(e.startsWith("menu_container_width") || e.startsWith("offcanvas_box_width")) && this.elements.$body.hasClass("raven-adnav-menu-effect-pushed") && (t = "offcanvas" === this.mainLayout,
n = this.getElementSettings(t ? "offcanvas_position" : "side_menu_alignment"),
i = parseInt(this.$element.css(t ? "--offcanvas-box-width" : "--menu-container-width")) || 250,
"right" === n && (i = "-".concat(i, "px")),
r = this.isRtl ? "margin-right" : "margin-left",
this.elements.$body.css(r, i)),
"submenu_space_between" === e && (this.elements.$menus.smartmenus("destroy"),
this.initMainSmartMenu())
},
onSectionActivated: function(e) {
if ("section_submenu" === e)
return this.forceShowSubmenu(),
void (this.showSubMenuInterval = setInterval(this.forceShowSubmenu, 1e3));
clearInterval(this.showSubMenuInterval)
},
forceShowSubmenu: function() {
var e;
this.elements.$mainMenu.find("li ul.submenu").each(function() {
v(this).find("li:not(.submenu-template)").length && (e = v(this).prev("a.raven-menu-item"))
}),
null !== e && void 0 !== e && e.length && "none" === e.next("ul").css("display") && this.elements.$menus.smartmenus("itemActivate", e)
},
onSideMenuItemClick: function(e, t) {
var n, i = v(t);
0 === i.closest(".raven-adnav-menu-side,.raven-adnav-menu-offcanvas").length || -1 === (n = i.attr("href")).search(/^#/) && 0 !== n.trim().length && this.elements.$closeButton.trigger("click")
},
changeHamburgerState: function(e) {
var t = this.elements.$toggleButton.find(".hamburger");
0 !== t.length && (e ? t.addClass("is-active") : t.removeClass("is-active"))
},
updateActiveListItems: function() {
this.elements.$rootListItems.each(function() {
var e = 0 < v(this).children("a.active-link").length;
v(this).toggleClass("current-menu-item", e)
})
},
setSubmenuWidth: function(e, t) {
var n, i = e.closest("li.menu-item"), r = i.data("width_type");
if ("custom" !== r)
if ("vertical" !== this.mainLayout) {
"default" !== r ? (n = this.widgetParents[r].get(0).getBoundingClientRect().width,
e.css("width", "".concat(n, "px"))) : e.css({
width: "fit-content",
"max-width": this.widgetParents.widget.get(0).getBoundingClientRect().width + "px"
})
} else {
if ("default" === r)
return void e.css({
width: "fit-content",
"max-width": this.widgetParents.widget.get(0).getBoundingClientRect().width - this.elements.$mainMenu.get(0).getBoundingClientRect().width - t + "px"
});
var o = this.widgetParents[r].get(0).getBoundingClientRect().width - this.elements.$mainMenu.get(0).getBoundingClientRect().width - t;
e.css("width", "".concat(o, "px"))
}
else {
var s = i.data("custom_width");
e.css("width", s)
}
},
setSubmenuPosition: function(e) {
var t, n, i, r, o, s, a, l, c, u, d, p, h, f, m, g = e.closest("li.menu-item");
"vertical" !== this.mainLayout ? (t = g.data("width_type"),
["default", "custom"].includes(t) ? (i = "unset",
s = "0",
"right" === (n = g.data("submenu_pos")) && (i = "0",
s = "unset"),
"center" === n && (r = g.get(0).getBoundingClientRect().width,
o = parseInt(e.css("width")),
s = "".concat((r - o) / 2, "px")),
e.css({
left: s,
right: i
})) : (a = this.widgetParents[t].get(0).getBoundingClientRect().x,
l = g.get(0).getBoundingClientRect().x,
e.css("left", "".concat(a - l, "px")))) : ((d = g.data("submenu_pos")) && "center" !== d || (d = this.isRtl ? "left" : "right"),
p = getComputedStyle(this.$element[0]).getPropertyValue("--submenu-spacing") && null !== (c = this.$element) && void 0 !== c && c.css("--submenu-spacing") ? parseInt(null === (u = this.$element) || void 0 === u ? void 0 : u.css("--submenu-spacing")) : 0,
h = g.get(0).getBoundingClientRect().width + p,
f = "right" === d ? "unset" : h,
m = "right" === d ? h : "unset",
e.css({
left: m,
right: f
}))
},
getParentSection: function() {
var e = this.$element.closest('section[data-element_type="section"]');
if (e.length)
return e;
var t = this.$element.parents('[data-element_type="container"]').last();
return t.length ? t : void 0
},
getParentColumn: function() {
var e = this.$element.closest('div[data-element_type="column"]');
if (e.length)
return e;
var t = this.$element.closest('[data-element_type="container"]');
return t.length ? t : void 0
},
getParentContainer: function() {
var e = this.$element.closest('[data-element_type="container"]');
if (e.length)
return e;
var t = this.$element.closest('section[data-element_type="section"]');
return t.length ? t : void 0
},
deactivateMenu: function() {
var e = this.elements.$mobileNav.hasClass("raven-adnav-menu-dropdown")
, t = this.elements.$mainNav.css("display");
e && "none" === t || (this.elements.$body.removeClass(["raven-adnav-menu-effect-pushed", "raven-adnav-menu-effect-overlayed"]).removeAttr("style"),
this.elements.$parentSegment.removeClass("raven-adnav-menu-parent-segment"),
this.elements.$mainNav.removeClass("raven-adnav-menu-active"),
this.elements.$mobileNav.removeClass("raven-adnav-menu-active"),
this.elements.$toggleButton.find(".hamburger").removeClass("is-active"),
"dropdown" === this.mobileLayout && this.elements.$mobileNav.slideUp(250),
"dropdown" === this.mainLayout && this.elements.$mainNav.slideUp(250))
}
})
}
, {
"../utils/module": 6,
"@babel/runtime/helpers/defineProperty": 74,
"@babel/runtime/helpers/interopRequireDefault": 78
}],
25: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(e) {
new a({
$element: e
})
}
;
var p = i(e("@babel/runtime/helpers/toConsumableArray"))
, r = i(e("../utils/module"))
, o = i(e("../utils/pagination"))
, s = i(e("../utils/sortable"))
, a = r.default.extend({
Pagination: null,
Sortable: null,
getDefaultSettings: function() {
return {
classes: {
postMirrored: "data-mirrored"
},
selectors: {
posts: ".advanced-posts-content",
postItem: ".raven-posts-item",
postImage: ".raven-post-image",
pagination: ".raven-pagination",
loadMore: ".raven-load-more",
loadMoreButton: ".raven-load-more-button",
postImageFit: ".raven-image-fit img",
postMirrored: "[data-mirrored]",
sortable: ".raven-sortable",
preLoader: ".raven-posts-preloader",
sortPreLoader: ".raven-posts-sortable-preloader",
postOverlay: ".content-layout-overlay"
},
state: {
paged: 1,
category: -1,
maxNumPages: 1,
isLoading: !1
}
}
},
getDefaultElements: function() {
var e = this.getSettings("selectors");
return {
$postsWrapper: this.$element,
$postsContainer: this.$element.find(e.posts),
$postsImages: this.$element.find(e.postImage),
$pagination: this.$element.find(e.pagination),
$loadMore: this.$element.find(e.loadMore),
$loadMoreButton: this.$element.find(e.loadMoreButton),
$preLoader: this.$element.find(e.preLoader),
$sortPreLoader: this.$element.find(e.sortPreLoader),
$sortable: this.$element.find(e.sortable),
$postOverlay: this.$element.find(e.postOverlay),
$showedItems: 0
}
},
bindEvents: function() {
"yes" === this.getInstanceValue("mirror_rows") && elementorFrontend.addListenerOnce(this.$element.data("model-cid"), "resize", this.mirrorRows.bind(this));
var e = this;
window.addEventListener("resize", function() {
setTimeout(function() {
"masonry" === e.getInstanceValue("general_layout") && e.masonryRun(),
"matrix" === e.getInstanceValue("general_layout") && e.matrixRun(500),
"metro" === e.getInstanceValue("general_layout") && e.metroRun(500)
}, 500)
})
},
onDeviceModeChange: function() {
setTimeout(this.initialize(), 0)
},
onElementChange: function(e) {
var t = this;
"metro_matrix_rows_gap" === e && ("metro" === this.getInstanceValue("general_layout") && this.metroRun(0),
"matrix" === this.getInstanceValue("general_layout") && this.matrixRun(0)),
"stroke_width" === e && setTimeout(function() {
"masonry" === t.getInstanceValue("general_layout") && t.masonryRun()
}, 0),
"metro_matrix_large_aspect_ratio" !== e && "metro_matrix_small_aspect_ratio" !== e || setTimeout(function() {
"metro" === t.getInstanceValue("general_layout") && t.metroRun(0),
"matrix" === t.getInstanceValue("general_layout") && t.matrixRun(0)
}, 0),
"rows_spacing" !== e && "block_column_spacing" !== e || "masonry" === this.getInstanceValue("general_layout") && setTimeout(function() {
t.masonryRun()
}, 500)
},
onInit: function() {
var e = this;
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments),
this.initializeOnce(),
this.initialize(),
elementorFrontend.isEditMode() && elementor.listenTo(elementor.channels.deviceMode, "change", function() {
return e.onDeviceModeChange()
})
},
initialize: function() {
var e = this;
"masonry" === this.getInstanceValue("general_layout") && this.masonryRun(),
"metro" === this.getInstanceValue("general_layout") && this.elements.$postsContainer.imagesLoaded().progress(function() {
e.metroRun(0)
}),
"matrix" === this.getInstanceValue("general_layout") && this.matrixRun(0),
"yes" === this.getInstanceValue("mirror_rows") && this.mirrorRows(),
this.handleAnitmation(),
this.handleFeaturedIamageEffect(),
objectFitPolyfill(this.$element.find(this.getSettings("selectors.postImageFit")))
},
initializeOnce: function() {
"yes" === this.getInstanceValue("show_sortable") && this.sortableModule(),
"page_based" === this.getInstanceValue("pagination_type") && this.paginationModule(),
"load_more" === this.getInstanceValue("pagination_type") && this.elements.$loadMore.length && this.loadMore(),
"infinite_load" === this.getInstanceValue("pagination_type") && this.infiniteLoadWaypoint()
},
handlePostsOrder: function(e) {
return "metro" === this.getInstanceValue("general_layout") && e[0].classList.contains("raven-posts-full-width") ? [].concat((0,
p.default)(e.slice(1, 3).reverse()), [e[0]], (0,
p.default)(e.slice(3, e.length))) : e[0].classList.contains("raven-posts-full-width") ? [e[0]].concat((0,
p.default)(e.slice(1, e.length).reverse())) : "matrix" === this.getInstanceValue("general_layout") ? (0,
p.default)(e) : (0,
p.default)(e.reverse())
},
handleAnitmation: function() {
var l = this
, c = (0,
p.default)(this.elements.$postsContainer[0].querySelectorAll(".raven-posts-item:not(.raven-advanced-posts-loaded)"))
, u = this.getInstanceValue("load_effect")
, d = this;
this.elements.$postsContainer.imagesLoaded().done(function() {
var e = 0;
if ("slide-right" === u) {
l.setColumnsCount();
var t = l.getSettings().columnsCount;
t || ("metro" === l.getInstanceValue("general_layout") && (t = 3),
"matrix" === l.getInstanceValue("general_layout") && (t = 4));
var n = parseInt(c.length / t)
, i = c.length % t;
if (c.length / t <= 1)
c = (0,
p.default)(l.handlePostsOrder(c));
else {
for (var r = [], o = [], s = 1; s <= n; ++s) {
o = [];
for (var a = r.length; a < s * t; ++a)
o.push(c[a]);
r.push.apply(r, (0,
p.default)(l.handlePostsOrder(o)))
}
0 < i && r.push.apply(r, (0,
p.default)(c.slice(-i).reverse())),
c = r
}
}
c.forEach(function(n, i) {
u && !document.body.classList.contains("elementor-editor-active") || n.classList.contains("raven-advanced-posts-loaded") || (++e,
setTimeout(function() {
n.classList.add("raven-advanced-posts-loaded")
}, 200 + 100 * e)),
u && new Waypoint({
context: window,
element: $(n),
handler: function() {
var e, t = this;
n.classList.contains("raven-advanced-posts-loaded") || (e = 0 < d.elements.$showedItems ? this.element.index() - d.elements.$showedItems : i,
"slide-right" === u && (e > d.elements.$showedItems && (e -= d.elements.$showedItems),
d.elements.$showedItems > e && (e = d.elements.$showedItems - e)),
setTimeout(function() {
t.element.addClass("raven-advanced-posts-loaded"),
d.elements.$showedItems = t.element.index(),
t.destroy()
}, 100 * e))
},
offset: "100%"
})
})
})
},
addPosts: function(e) {
var t = this.getSettings("state");
return !(t.isLoading || t.paged < 1) && (this.ajaxPosts(e, this.appendPosts),
!0)
},
setPosts: function(e) {
return !this.getSettings("state").isLoading && (this.ajaxPosts(e, this.renderPosts),
!0)
},
handleSort: function(e) {
this.setPosts({
paged: 1,
category: e
}) && this.setSettings("state.category", e)
},
sortableModule: function() {
var e, t = this;
document.body.classList.contains("elementor-editor-active") || (e = s.default.extend({
handleSort: this.handleSort.bind(this)
}),
this.Sortable = new e({
$element: this.$element.find(this.getSettings("selectors.sortable"))
}),
this.elements.$sortable.on("click", ".raven-sortable-item", function(e) {
e.currentTarget.classList.contains("raven-sortable-active") || (t.elements.$sortPreLoader[0].classList.add("active-preloader"),
t.elements.$postsContainer.find(".raven-posts-item").delay("100").addClass("raven-posts-remove-animation"))
}))
},
paginationModule: function() {
var e, t = this;
document.body.classList.contains("elementor-editor-active") || (e = o.default.extend({
handlePagination: this.handlePagination.bind(this)
}),
this.Pagination = new e({
$element: this.$element.find(this.getSettings("selectors.pagination"))
}),
this.elements.$pagination.on("click", ".raven-pagination-item", function(e) {
e.currentTarget.classList.contains("raven-pagination-active") || (t.elements.$showedItems = 0,
t.elements.$preLoader[0].classList.add("active-preloader"))
}))
},
loadMore: function() {
var i = this
, e = this.getSettings("state")
, t = this.elements.$loadMore.data("settings");
this.setPaged({
paged: e.paged,
maxNumPages: t.maxNumPages
}),
this.elements.$loadMoreButton.on("click", function(e) {
var t, n;
e.preventDefault(),
document.body.classList.contains("elementor-editor-active") || (i.elements.$preLoader[0].classList.add("active-preloader"),
n = (t = i.getSettings("state")).paged + 1,
i.addPosts({
paged: n,
category: t.category
}))
})
},
infiniteLoadWaypoint: function() {
var n = this
, e = this;
e.elements.$postsContainer.imagesLoaded().always(function() {
document.body.classList.contains("elementor-editor-active") || elementorFrontend.waypoint(e.elements.$postsContainer, function() {
var e = n.getSettings("state")
, t = e.paged + 1;
n.addPosts({
paged: t,
category: e.category
})
}, {
offset: "bottom-in-view",
triggerOnce: !0
})
})
},
handlePagination: function(e) {
this.scrollToContainer(this.elements.$postsContainer),
this.elements.$postsContainer.find(".raven-posts-item").delay("100").addClass("raven-posts-remove-animation"),
this.setPosts({
paged: e,
category: this.getSettings("state.category")
})
},
renderPosts: function(e) {
var t, n;
this.elements.$postsContainer.empty(),
this.elements.$postsContainer.append(e.posts),
this.Sortable && !this.Sortable.isEnabled() && (this.Sortable.renderUpdate(),
this.Pagination && this.Pagination.isEnabled() && this.Pagination.recreatePagination(e.max_num_pages)),
this.Pagination && !this.Pagination.isEnabled() && this.Pagination.renderUpdate(),
this.setPaged({
paged: 1,
maxNumPages: e.max_num_pages
}),
null !== (t = this.elements.$preLoader[0]) && void 0 !== t && null !== (t = t.classList) && void 0 !== t && t.remove("active-preloader"),
null !== (n = this.elements.$sortPreLoader[0]) && void 0 !== n && null !== (n = n.classList) && void 0 !== n && n.remove("active-preloader"),
this.initialize()
},
appendPosts: function(e) {
var t = this.getSettings("state");
this.elements.$postsContainer.append(e.posts),
this.setPaged({
paged: t.paged + 1,
maxNumPages: e.max_num_pages
}),
this.afterAppend()
},
afterAppend: function() {
var e, t;
"yes" === this.getInstanceValue("mirror_rows") && this.mirrorRows(),
"infinite_load" === this.getInstanceValue("pagination_type") && this.infiniteLoadWaypoint(),
"masonry" === this.getInstanceValue("general_layout") && this.masonryRun(),
"metro" === this.getInstanceValue("general_layout") && this.metroRun(0),
"matrix" === this.getInstanceValue("general_layout") && this.matrixRun(0),
["metro", "matrix"].includes(this.getInstanceValue("general_layout")) || this.handleAnitmation(),
this.handleFeaturedIamageEffect(),
null !== (e = this.elements.$preLoader[0]) && void 0 !== e && null !== (e = e.classList) && void 0 !== e && e.remove("active-preloader"),
null !== (t = this.elements.$sortPreLoader[0]) && void 0 !== t && null !== (t = t.classList) && void 0 !== t && t.remove("active-preloader")
},
ajaxPosts: function(e, n) {
var t = this.elements.$postsContainer.data("archive-query")
, i = this
, r = {
action: "raven_render_advanced_posts",
post_id: this.getCurrentPostId(),
model_id: this.getID(),
paged: e.paged,
category: e.category,
nonce: ravenTools.nonce
};
t && (r.archive_query = JSON.stringify(t));
this.setSettings("state.isLoading", !0),
wp.ajax.post(r).done(function(e) {
var t;
(t = e).posts && n(t),
i.setSettings("state.isLoading", !1)
})
},
getCurrentPostId: function() {
return parseInt(this.elements.$postsContainer.data("post-id"))
},
setPaged: function(e) {
var t = e.paged
, n = e.maxNumPages;
n <= t && (t = -1),
this.elements.$loadMore.show(),
-1 === t && this.elements.$loadMore.hide(),
this.setSettings("state.paged", t),
this.setSettings("state.maxNumPages", n)
},
mirrorRows: function() {
this.setColumnsCount();
var e = this.getSettings()
, t = this.$element.find(e.selectors.postItem);
if (t.filter(e.selectors.postMirrored).removeAttr(e.classes.postMirrored),
t.length && t.length > e.columnsCount)
for (var n = t.length / e.columnsCount, i = 1; i < n; i += 2) {
var r = i * e.columnsCount;
t.slice(r, r + e.columnsCount).attr(e.classes.postMirrored, !0)
}
},
setColumnsCount: function() {
var e = elementorFrontend.getCurrentDeviceMode()
, t = "columns_".concat(e);
"desktop" === e && (t = "columns"),
this.setSettings("columnsCount", parseInt(this.getInstanceValue(t)))
},
setGapSize: function() {
var e, t = elementorFrontend.getCurrentDeviceMode(), n = "metro_matrix_rows_gap_".concat(t);
"desktop" === t && (n = "metro_matrix_rows_gap"),
this.setSettings("gapSize", parseInt(null === (e = this.getInstanceValue(n)) || void 0 === e ? void 0 : e.size))
},
masonryRun: function() {
var e = !document.body.classList.contains("rtl");
this.elements.$postsContainer.data("isotope") && this.elements.$postsContainer.isotope("reloadItems").isotope(),
this.elements.$postsContainer.isotope({
itemSelector: ".raven-masonry-item",
masonry: {
layoutMode: "fitRows"
},
transitionDuration: 0,
sortBy: "original-order",
isOriginLeft: e
})
},
metroRun: function(e) {
this.setGapSize();
var r = this
, t = this.getSettings().gapSize ? this.getSettings().gapSize : 0
, n = elementorFrontend.getCurrentDeviceMode()
, i = !document.body.classList.contains("rtl");
r.elements.$postsContainer.data("isotope") && r.elements.$postsContainer.isotope("reloadItems").isotope();
var o = Math.floor((r.elements.$postsContainer.parent().width() + t) / 4)
, s = 2 * o;
"tablet" === n && (s = 2 * (o *= 2)),
"mobile" === n && (s = o *= 4),
r.elements.$postsContainer.find(".raven-metro-item").each(function(e, t) {
var n = o
, i = o;
t.classList.contains("raven-posts-full-width") && (i = n = s),
n && (t.style.width = n + "px"),
r.elements.$postsContainer[0].classList.contains("content-layout-under-image") || (t.style.height = i + "px")
}),
setTimeout(function() {
r.elements.$postsContainer.isotope({
itemSelector: ".raven-metro-item",
layoutMode: "packery",
percentPosition: !0,
sortBy: "original-order",
transitionDuration: 0,
gutter: 10,
isOriginLeft: i
}),
r.elements.$postsContainer.isotope("once", "arrangeComplete", function() {
setTimeout(function() {
return r.handleAnitmation()
}, 100),
setTimeout(function() {
return Waypoint.refreshAll()
}, 2e3)
})
}, e)
},
matrixRun: function(e) {
var t = this
, i = elementorFrontend.getCurrentDeviceMode()
, n = !document.body.classList.contains("rtl");
t.elements.$postsContainer.data("isotope") && t.elements.$postsContainer.isotope("reloadItems").isotope();
var r = Math.floor(t.elements.$postsContainer.width() / 3)
, o = 3 * r;
"mobile" === i && (o = r *= 3),
t.elements.$postsContainer.find(".raven-matrix-item").each(function(e, t) {
var n = r;
t.classList.contains("raven-posts-full-width") && (n = o),
n && (t.style.width = n + "px"),
"mobile" === i && (t.style.paddingRight = 0)
}),
setTimeout(function() {
t.elements.$postsContainer.isotope({
itemSelector: ".raven-matrix-item",
layoutMode: "packery",
packery: {
isFitWidth: !0
},
percentPosition: !0,
sortBy: "original-order",
transitionDuration: 0,
isOriginLeft: n
}),
t.elements.$postsContainer.isotope("once", "arrangeComplete", function() {
setTimeout(function() {
return t.handleAnitmation()
}, 100),
setTimeout(function() {
return Waypoint.refreshAll()
}, 2e3)
})
}, e)
},
handleFeaturedIamageEffect: function() {
var e, t = this.getInstanceValue("featured_image_hover");
!t || "zoom-move" !== t || this.elements.$postsImages.length < 1 || (e = this.elements.$postsContainer.find(".raven-posts-item:not(.raven-advanced-posts-loaded)").find(".raven-post-image"),
0 < this.elements.$postOverlay.length && (e = this.elements.$postOverlay.find(".raven-posts-item:not(.raven-advanced-posts-loaded)").find(".raven-post-wrapper")),
e.on("mouseout", function(e) {
var t = e.currentTarget.querySelector(".raven-posts-zoom-move-wrapper");
t && (t.style.transform = "perspective(900px) translate3d( 0px, 0px, 0px ) scale(1)")
}),
e.on("mousemove", function(e) {
var t = e.currentTarget.getBoundingClientRect()
, n = ((t.width + 35) / t.width).toFixed(2)
, i = ((t.height + 35) / t.height).toFixed(2)
, r = e.currentTarget.querySelector(".raven-posts-zoom-move-wrapper")
, o = t.width / 2 - (e.clientX - t.left)
, s = t.height / 2 - (e.clientY - t.top)
, o = o / t.width * 30
, s = s / t.height * 30;
r && (r.style.transform = "perspective(900px) translate3d( ".concat(o, "px, ").concat(s, "px, 0px ) scale(").concat(Math.max(n, i), ")"))
}),
this.elements.$postOverlay.length < 1 || document.body.classList.contains("elementor-editor-active") || e.on("click", function(e) {
var t = e.currentTarget.querySelector(".raven-post-image").href;
t && window.location.assign(t)
}))
}
})
}
, {
"../utils/module": 6,
"../utils/pagination": 17,
"../utils/sortable": 19,
"@babel/runtime/helpers/interopRequireDefault": 78,
"@babel/runtime/helpers/toConsumableArray": 84
}],
26: [function(e, t, n) {
"use strict";
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(t) {
t.find(".raven-alert-dismiss").on("click", function(e) {
e.preventDefault(),
t.fadeOut()
})
}
}
, {}],
27: [function(e, t, n) {
"use strict";
var i = e("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(n, "__esModule", {
value: !0
}),
n.default = function(e) {
new s({
$element: e
})
}
;
var r = i(e("../utils/module"))
, o = jQuery
, s = r.default.extend({
svgPaths: {
circle: ["M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"],
underline_zigzag: ["M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"],
x: ["M497.4,23.9C301.6,40,155.9,80.6,4,144.4", "M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"],
strikethrough: ["M3,75h493.5"],
curly: ["M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"],
diagonal: ["M13.5,15.5c131,13.7,289.3,55.5,475,125.5"],
double: ["M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2", "M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"],
double_underline: ["M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6", "M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"],
underline: ["M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"]
},
onInit: function() {
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments),
this.intersectionObservers = {
startAnimation: {
observer: null,
element: null
}
},
this.isLoopMode = "yes" === this.getElementSettings("loop"),
this.activateScrollListener()
},
getDefaultSettings: function() {
var e = this.getElementSettings("rotate_iteration_delay")
, t = {
animationDelay: e || 2500,
lettersDelay: .02 * e || 50,
typeLettersDelay: .06 * e || 150,
selectionDuration: .2 * e || 500,
revealDuration: .24 * e || 600,
revealAnimationDelay: .6 * e || 1500,
highlightAnimationDuration: this.getElementSettings("highlight_animation_duration") || 1200,
highlightAnimationDelay: this.getElementSettings("highlight_iteration_delay") || 8e3
};
return t.typeAnimationDelay = t.selectionDuration + 800,
t.selectors = {
heading: ".raven-heading",
dynamicWrapper: ".raven-heading-dynamic-wrapper",
dynamicText: ".raven-heading-dynamic-text"
},
t.classes = {
dynamicText: "raven-heading-dynamic-text",
dynamicLetter: "raven-heading-dynamic-letter",
textActive: "raven-heading-text-active",
textInactive: "raven-heading-text-inactive",
letters: "raven-heading-letters",
animationIn: "raven-heading-animation-in",
typeSelected: "raven-heading-typing-selected",
activateHighlight: "raven-animated",
hideHighlight: "raven-hide-highlight"
},
t
},
getDefaultElements: function() {
var e = this.getSettings("selectors");
return {
$heading: this.$element.find(e.heading),
$dynamicWrapper: this.$element.find(e.dynamicWrapper),
$dynamicText: this.$element.find(e.dynamicText)
}
},
getNextWord: function(e) {
return e.is(":last-child") ? e.parent().children().eq(0) : e.next()
},
switchWord: function(e, t) {
e.removeClass("raven-heading-text-active").addClass("raven-heading-text-inactive"),
t.removeClass("raven-heading-text-inactive").addClass("raven-heading-text-active"),
this.setDynamicWrapperWidth(t)
},
singleLetters: function() {
var r = this.getSettings("classes");
this.elements.$dynamicText.each(function() {
var n = o(this)
, e = n.text().split("")
, i = n.hasClass(r.textActive);
n.empty(),
e.forEach(function(e) {
var t = o("", {
class: r.dynamicLetter
}).text(e);
i && t.addClass(r.animationIn),
n.append(t)
}),
n.css("opacity", 1)
})
},
showLetter: function(e, t, n, i) {
var r = this
, o = this.getSettings("classes");
e.addClass(o.animationIn),
e.is(":last-child") ? n || setTimeout(function() {
r.hideWord(t)
}, r.getSettings("animationDelay")) : setTimeout(function() {
r.showLetter(e.next(), t, n, i)
}, i)
},
hideLetter: function(e, t, n, i) {
var r = this
, o = this.getSettings();
e.removeClass(o.classes.animationIn),
e.is(":last-child") ? n && setTimeout(function() {
r.hideWord(r.getNextWord(t))
}, r.getSettings("animationDelay")) : setTimeout(function() {
r.hideLetter(e.next(), t, n, i)
}, i)
},
showWord: function(e, t) {
var n = this
, i = n.getSettings()
, r = n.getElementSettings("animation_type");
if ("typing" === r)
return n.showLetter(e.find("." + i.classes.dynamicLetter).eq(0), e, !1, t),
void e.addClass(i.classes.textActive).removeClass(i.classes.textInactive);
"clip" === r && n.elements.$dynamicWrapper.animate({
width: e.width() + 10
}, i.revealDuration, function() {
setTimeout(function() {
n.hideWord(e)
}, i.revealAnimationDelay)
})
},
hideWord: function(e) {
var t = this
, n = t.getSettings()
, i = n.classes
, r = "." + i.dynamicLetter
, o = t.getElementSettings("animation_type")
, s = t.getNextWord(e);
if (this.isLoopMode || !e.is(":last-child")) {
if ("typing" === o)
return t.elements.$dynamicWrapper.addClass(i.typeSelected),
setTimeout(function() {
t.elements.$dynamicWrapper.removeClass(i.typeSelected),
e.addClass(n.classes.textInactive).removeClass(i.textActive).children(r).removeClass(i.animationIn)
}, n.selectionDuration),
void setTimeout(function() {
t.showWord(s, n.typeLettersDelay)
}, n.typeAnimationDelay);
if (t.elements.$heading.hasClass(i.letters)) {
var a = e.children(r).length >= s.children(r).length;
return t.hideLetter(e.find(r).eq(0), e, a, n.lettersDelay),
t.showLetter(s.find(r).eq(0), s, a, n.lettersDelay),
void t.setDynamicWrapperWidth(s)
}
"clip" !== o ? (t.switchWord(e, s),
setTimeout(function() {
t.hideWord(s)
}, n.animationDelay)) : t.elements.$dynamicWrapper.animate({
width: "2px"
}, n.revealDuration, function() {
t.switchWord(e, s),
t.showWord(s)
})
}
},
setDynamicWrapperWidth: function(e) {
var t = this.getElementSettings("animation_type");
"clip" !== t && "typing" !== t && this.elements.$dynamicWrapper.css("width", e.width())
},
animateHeading: function() {
var e = this
, t = e.getElementSettings("animation_type")
, n = e.elements.$dynamicWrapper;
"clip" === t ? n.width(n.width() + 10) : "typing" !== t && e.setDynamicWrapperWidth(e.elements.$dynamicText),
setTimeout(function() {
e.hideWord(e.elements.$dynamicText.eq(0))
}, e.getSettings("animationDelay"))
},
getSvgPaths: function(e) {
var t = this.svgPaths[e]
, n = o();
return t.forEach(function(e) {
n = n.add(o("", {
d: e
}))
}),
n
},
addHighlight: function() {
var e = this.getElementSettings()
, t = o("