/*!/wp-content/themes/salient/js/third-party/transit.js*/ /*! * jQuery Transit - CSS3 transitions and transformations * (c) 2011-2012 Rico Sta. Cruz * MIT Licensed. */ (function(k) { k.transit = { version: "0.9.9", propertyMap: { marginLeft: "margin", marginRight: "margin", marginBottom: "margin", marginTop: "margin", paddingLeft: "padding", paddingRight: "padding", paddingBottom: "padding", paddingTop: "padding" }, enabled: !0, useTransitionEnd: !1 }; var d = document.createElement("div"); var q = {}; function b(v) { if (v in d.style) { return v } var u = ["Moz", "Webkit", "O", "ms"]; var r = v.charAt(0).toUpperCase() + v.substr(1); if (v in d.style) { return v } for (var t = 0; t < u.length; ++t) { var s = u[t] + r; if (s in d.style) { return s } } } function e() { d.style[q.transform] = ""; d.style[q.transform] = "rotateY(90deg)"; return d.style[q.transform] !== "" } var a = navigator.userAgent.toLowerCase().indexOf("chrome") > -1; q.transition = b("transition"); q.transitionDelay = b("transitionDelay"); q.transform = b("transform"); q.transformOrigin = b("transformOrigin"); q.transform3d = e(); var i = { transition: "transitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd", WebkitTransition: "webkitTransitionEnd", msTransition: "MSTransitionEnd" }; var f = q.transitionEnd = i[q.transition] || null; for (var p in q) { if (q.hasOwnProperty(p) && typeof k.support[p] === "undefined") { k.support[p] = q[p] } } d = null; k.cssEase = { _default: "ease", "in": "ease-in", out: "ease-out", "in-out": "ease-in-out", snap: "cubic-bezier(0,1,.5,1)", easeOutCubic: "cubic-bezier(.215,.61,.355,1)", easeInOutCubic: "cubic-bezier(.645,.045,.355,1)", easeInCirc: "cubic-bezier(.6,.04,.98,.335)", easeOutCirc: "cubic-bezier(.075,.82,.165,1)", easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)", easeInExpo: "cubic-bezier(.95,.05,.795,.035)", easeOutExpo: "cubic-bezier(.19,1,.22,1)", easeInOutExpo: "cubic-bezier(1,0,0,1)", easeInQuad: "cubic-bezier(.55,.085,.68,.53)", easeOutQuad: "cubic-bezier(.25,.46,.45,.94)", easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)", easeInQuart: "cubic-bezier(.895,.03,.685,.22)", easeOutQuart: "cubic-bezier(.165,.84,.44,1)", easeInOutQuart: "cubic-bezier(.77,0,.175,1)", easeInQuint: "cubic-bezier(.755,.05,.855,.06)", easeOutQuint: "cubic-bezier(.23,1,.32,1)", easeInOutQuint: "cubic-bezier(.86,0,.07,1)", easeInSine: "cubic-bezier(.47,0,.745,.715)", easeOutSine: "cubic-bezier(.39,.575,.565,1)", easeInOutSine: "cubic-bezier(.445,.05,.55,.95)", easeInBack: "cubic-bezier(.6,-.28,.735,.045)", easeOutBack: "cubic-bezier(.175, .885,.32,1.275)", easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)" }; k.cssHooks["transit:transform"] = { get: function(r) { return k(r).data("transform") || new j() }, set: function(s, r) { var t = r; if (!(t instanceof j)) { t = new j(t) } if (q.transform === "WebkitTransform" && !a) { s.style[q.transform] = t.toString(!0) } else { s.style[q.transform] = t.toString() } k(s).data("transform", t) } }; k.cssHooks.transform = { set: k.cssHooks["transit:transform"].set }; if (k.fn.jquery < "1.8") { k.cssHooks.transformOrigin = { get: function(r) { return r.style[q.transformOrigin] }, set: function(r, s) { r.style[q.transformOrigin] = s } }; k.cssHooks.transition = { get: function(r) { return r.style[q.transition] }, set: function(r, s) { r.style[q.transition] = s } } } n("scale"); n("translate"); n("rotate"); n("rotateX"); n("rotateY"); n("rotate3d"); n("perspective"); n("skewX"); n("skewY"); n("x", !0); n("y", !0); function j(r) { if (typeof r === "string") { this.parse(r) } return this } j.prototype = { setFromString: function(t, s) { var r = (typeof s === "string") ? s.split(",") : (s.constructor === Array) ? s : [s]; r.unshift(t); j.prototype.set.apply(this, r) }, set: function(s) { var r = Array.prototype.slice.apply(arguments, [1]); if (this.setter[s]) { this.setter[s].apply(this, r) } else { this[s] = r.join(",") } }, get: function(r) { if (this.getter[r]) { return this.getter[r].apply(this) } else { return this[r] || 0 } }, setter: { rotate: function(r) { this.rotate = o(r, "deg") }, rotateX: function(r) { this.rotateX = o(r, "deg") }, rotateY: function(r) { this.rotateY = o(r, "deg") }, scale: function(r, s) { if (s === undefined) { s = r } this.scale = r + "," + s }, skewX: function(r) { this.skewX = o(r, "deg") }, skewY: function(r) { this.skewY = o(r, "deg") }, perspective: function(r) { this.perspective = o(r, "px") }, x: function(r) { this.set("translate", r, null) }, y: function(r) { this.set("translate", null, r) }, translate: function(r, s) { if (this._translateX === undefined) { this._translateX = 0 } if (this._translateY === undefined) { this._translateY = 0 } if (r !== null && r !== undefined) { this._translateX = o(r, "px") } if (s !== null && s !== undefined) { this._translateY = o(s, "px") } this.translate = this._translateX + "," + this._translateY } }, getter: { x: function() { return this._translateX || 0 }, y: function() { return this._translateY || 0 }, scale: function() { var r = (this.scale || "1,1").split(","); if (r[0]) { r[0] = parseFloat(r[0]) } if (r[1]) { r[1] = parseFloat(r[1]) } return (r[0] === r[1]) ? r[0] : r }, rotate3d: function() { var t = (this.rotate3d || "0,0,0,0deg").split(","); for (var r = 0; r <= 3; ++r) { if (t[r]) { t[r] = parseFloat(t[r]) } } if (t[3]) { t[3] = o(t[3], "deg") } return t } }, parse: function(s) { var r = this; s.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function(t, v, u) { r.setFromString(v, u) }) }, toString: function(t) { var s = []; for (var r in this) { if (this.hasOwnProperty(r)) { if ((!q.transform3d) && ((r === "rotateX") || (r === "rotateY") || (r === "perspective") || (r === "transformOrigin"))) { continue } if (r[0] !== "_") { if (t && (r === "scale")) { s.push(r + "3d(" + this[r] + ",1)") } else { if (t && (r === "translate")) { s.push(r + "3d(" + this[r] + ",0)") } else { s.push(r + "(" + this[r] + ")") } } } } } return s.join(" ") } }; function m(s, r, t) { if (r === !0) { s.queue(t) } else { if (r) { s.queue(r, t) } else { t() } } } function h(s) { var r = []; k.each(s, function(t) { t = k.camelCase(t); t = k.transit.propertyMap[t] || k.cssProps[t] || t; t = c(t); if (k.inArray(t, r) === -1) { r.push(t) } }); return r } function g(s, v, x, r) { var t = h(s); if (k.cssEase[x]) { x = k.cssEase[x] } var w = "" + l(v) + " " + x; if (parseInt(r, 10) > 0) { w += " " + l(r) } var u = []; k.each(t, function(z, y) { u.push(y + " " + w) }); return u.join(", ") } k.fn.transition = k.fn.transit = function(z, s, y, C) { var D = this; var u = 0; var w = !0; if (typeof s === "function") { C = s; s = undefined } if (typeof y === "function") { C = y; y = undefined } if (typeof z.easing !== "undefined") { y = z.easing; delete z.easing } if (typeof z.duration !== "undefined") { s = z.duration; delete z.duration } if (typeof z.complete !== "undefined") { C = z.complete; delete z.complete } if (typeof z.queue !== "undefined") { w = z.queue; delete z.queue } if (typeof z.delay !== "undefined") { u = z.delay; delete z.delay } if (typeof s === "undefined") { s = k.fx.speeds._default } if (typeof y === "undefined") { y = k.cssEase._default } s = l(s); var E = g(z, s, y, u); var B = k.transit.enabled && q.transition; var t = B ? (parseInt(s, 10) + parseInt(u, 10)) : 0; if (t === 0) { var A = function(F) { D.css(z); if (C) { C.apply(D) } if (F) { F() } }; m(D, w, A); return D } var x = {}; var r = function(H) { var G = !1; var F = function() { if (G) { D.unbind(f, F) } if (t > 0) { D.each(function() { this.style[q.transition] = (x[this] || null) }) } if (typeof C === "function") { C.apply(D) } if (typeof H === "function") { H() } }; if ((t > 0) && (f) && (k.transit.useTransitionEnd)) { G = !0; D.bind(f, F) } else { window.setTimeout(F, t) } D.each(function() { if (t > 0) { this.style[q.transition] = E } k(this).css(z) }) }; var v = function(F) { this.offsetWidth; r(F) }; m(D, w, v); return this }; function n(s, r) { if (!r) { k.cssNumber[s] = !0 } k.transit.propertyMap[s] = q.transform; k.cssHooks[s] = { get: function(v) { var u = k(v).css("transit:transform"); return u.get(s) }, set: function(v, w) { var u = k(v).css("transit:transform"); u.setFromString(s, w); k(v).css({ "transit:transform": u }) } } } function c(r) { return r.replace(/([A-Z])/g, function(s) { return "-" + s.toLowerCase() }) } function o(s, r) { if ((typeof s === "string") && (!s.match(/^[\-0-9\.]+$/))) { return s } else { return "" + s + r } } function l(s) { var r = s; if (k.fx.speeds[r]) { r = k.fx.speeds[r] } return o(r, "ms") } k.transit.getTransitionValue = g })(jQuery); /*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ ! function(e, t) { "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", t) : "object" == typeof module && module.exports ? module.exports = t() : e.EvEmitter = t() }("undefined" != typeof window ? window : this, function() { function e() {} var t = e.prototype; return t.on = function(e, t) { if (e && t) { var i = this._events = this._events || {}, n = i[e] = i[e] || []; return n.indexOf(t) == -1 && n.push(t), this } }, t.once = function(e, t) { if (e && t) { this.on(e, t); var i = this._onceEvents = this._onceEvents || {}, n = i[e] = i[e] || {}; return n[t] = !0, this } }, t.off = function(e, t) { var i = this._events && this._events[e]; if (i && i.length) { var n = i.indexOf(t); return n != -1 && i.splice(n, 1), this } }, t.emitEvent = function(e, t) { var i = this._events && this._events[e]; if (i && i.length) { i = i.slice(0), t = t || []; for (var n = this._onceEvents && this._onceEvents[e], o = 0; o < i.length; o++) { var r = i[o], s = n && n[r]; s && (this.off(e, r), delete n[r]), r.apply(this, t) } return this } }, t.allOff = function() { delete this._events, delete this._onceEvents }, e }), function(e, t) { "use strict"; "function" == typeof define && define.amd ? define(["ev-emitter/ev-emitter"], function(i) { return t(e, i) }) : "object" == typeof module && module.exports ? module.exports = t(e, require("ev-emitter")) : e.imagesLoaded = t(e, e.EvEmitter) }("undefined" != typeof window ? window : this, function(e, t) { function i(e, t) { for (var i in t) e[i] = t[i]; return e } function n(e) { if (Array.isArray(e)) return e; var t = "object" == typeof e && "number" == typeof e.length; return t ? d.call(e) : [e] } function o(e, t, r) { if (!(this instanceof o)) return new o(e, t, r); var s = e; return "string" == typeof e && (s = document.querySelectorAll(e)), s ? (this.elements = n(s), this.options = i({}, this.options), "function" == typeof t ? r = t : i(this.options, t), r && this.on("always", r), this.getImages(), h && (this.jqDeferred = new h.Deferred), void setTimeout(this.check.bind(this))) : void a.error("Bad element for imagesLoaded " + (s || e)) } function r(e) { this.img = e } function s(e, t) { this.url = e, this.element = t, this.img = new Image } var h = e.jQuery, a = e.console, d = Array.prototype.slice; o.prototype = Object.create(t.prototype), o.prototype.options = {}, o.prototype.getImages = function() { this.images = [], this.elements.forEach(this.addElementImages, this) }, o.prototype.addElementImages = function(e) { "IMG" == e.nodeName && this.addImage(e), this.options.background === !0 && this.addElementBackgroundImages(e); var t = e.nodeType; if (t && u[t]) { for (var i = e.querySelectorAll("img"), n = 0; n < i.length; n++) { var o = i[n]; this.addImage(o) } if ("string" == typeof this.options.background) { var r = e.querySelectorAll(this.options.background); for (n = 0; n < r.length; n++) { var s = r[n]; this.addElementBackgroundImages(s) } } } }; var u = { 1: !0, 9: !0, 11: !0 }; return o.prototype.addElementBackgroundImages = function(e) { var t = getComputedStyle(e); if (t) for (var i = /url\((['"])?(.*?)\1\)/gi, n = i.exec(t.backgroundImage); null !== n;) { var o = n && n[2]; o && this.addBackground(o, e), n = i.exec(t.backgroundImage) } }, o.prototype.addImage = function(e) { var t = new r(e); this.images.push(t) }, o.prototype.addBackground = function(e, t) { var i = new s(e, t); this.images.push(i) }, o.prototype.check = function() { function e(e, i, n) { setTimeout(function() { t.progress(e, i, n) }) } var t = this; return this.progressedCount = 0, this.hasAnyBroken = !1, this.images.length ? void this.images.forEach(function(t) { t.once("progress", e), t.check() }) : void this.complete() }, o.prototype.progress = function(e, t, i) { this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !e.isLoaded, this.emitEvent("progress", [this, e, t]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, e), this.progressedCount == this.images.length && this.complete(), this.options.debug && a && a.log("progress: " + i, e, t) }, o.prototype.complete = function() { var e = this.hasAnyBroken ? "fail" : "done"; if (this.isComplete = !0, this.emitEvent(e, [this]), this.emitEvent("always", [this]), this.jqDeferred) { var t = this.hasAnyBroken ? "reject" : "resolve"; this.jqDeferred[t](this) } }, r.prototype = Object.create(t.prototype), r.prototype.check = function() { var e = this.getIsImageComplete(); return e ? void this.confirm(0 !== this.img.naturalWidth, "naturalWidth") : (this.proxyImage = new Image, this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), void(this.proxyImage.src = this.img.src)) }, r.prototype.getIsImageComplete = function() { return this.img.complete && this.img.naturalWidth }, r.prototype.confirm = function(e, t) { this.isLoaded = e, this.emitEvent("progress", [this, this.img, t]) }, r.prototype.handleEvent = function(e) { var t = "on" + e.type; this[t] && this[t](e) }, r.prototype.onload = function() { this.confirm(!0, "onload"), this.unbindEvents() }, r.prototype.onerror = function() { this.confirm(!1, "onerror"), this.unbindEvents() }, r.prototype.unbindEvents = function() { this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this) }, s.prototype = Object.create(r.prototype), s.prototype.check = function() { this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url; var e = this.getIsImageComplete(); e && (this.confirm(0 !== this.img.naturalWidth, "naturalWidth"), this.unbindEvents()) }, s.prototype.unbindEvents = function() { this.img.removeEventListener("load", this), this.img.removeEventListener("error", this) }, s.prototype.confirm = function(e, t) { this.isLoaded = e, this.emitEvent("progress", [this, this.element, t]) }, o.makeJQueryPlugin = function(t) { t = t || e.jQuery, t && (h = t, h.fn.imagesLoaded = function(e, t) { var i = new o(this, e, t); return i.jqDeferred.promise(h(this)) }) }, o.makeJQueryPlugin(), o }); /*!/wp-content/themes/salient/js/init.js*/ (function(e, t, a) { "use strict"; function n() { Ie(), _e(), ba(), kt(), m() } function i() { ve(), Ie(), g(), ct(), ki.usingMobileBrowser || _e() } function s() { e(".flex-gallery").each(function() { if (e().flexslider) { var t = e(this); imagesLoaded(e(this), function() { t.flexslider({ animation: "fade", smoothHeight: !1, animationSpeed: 500, useCSS: !1, touch: !0 }), e(".flex-gallery .flex-direction-nav li a.flex-next").html(''), e(".flex-gallery .flex-direction-nav li a.flex-prev").html('') }) } }) } function r(e, t) { this.lastX = ki.clientX, this.lastY = ki.clientY, this.$el = e, this.iconType = t, this.timeout = !1, this.overEl = !1, this.$dragEl = "", this.$viewEl = "", this.$closeEl = "", this.lerpDamp = .18, this.createMarkup(), this.mouseBind() } function o() { e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').each(function() { e(this).css({ height: "", width: "" }); var t = parseInt(e(this).find("img").attr("height")), a = parseInt(e(this).find("img").attr("width")), n = A(a, t, 2e3, parseInt(e(this).find("img").height())); e(this).css({ height: n.height + "px", width: n.width + "px" }) }) } function l() { e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').length > 0 && (o(), En.on("smartresize", o)) } function d() { if (0 == e(".nectar-flickity:not(.masonry)").length) return !1; ai = [], ni = [], e(".nectar-flickity:not(.masonry)").each(function(t) { e(this).removeClass(function(e, t) { return (t.match(/(^|\s)instance-\S+/g) || []).join(" ") }), e(this).addClass("instance-" + t); var a = !(!e(this).is("[data-free-scroll]") || "true" != e(this).attr("data-free-scroll")), n = !0, i = !0, s = .025, o = !1, l = !0, d = "center"; e(this).is('[data-format="fixed_text_content_fullwidth"]') && (d = "left", n = !1, i = !1, s = .02, e(this).parent().is('[data-alignment="right"]') && (d = "right")), 1 == a && (n = !1), e(this).attr("data-controls").length > 0 && "next_prev_arrows" == e(this).attr("data-controls") || e(this).attr("data-controls").length > 0 && "next_prev_arrows_overlaid" == e(this).attr("data-controls") ? (o = !1, l = !0) : (o = !0, l = !1), e(this).attr("data-controls").length > 0 && "none" == e(this).attr("data-controls") && (o = !1, l = !1); var c = !1; e(this).is("[data-autoplay]") && "true" == e(this).attr("data-autoplay") && (c = !0, e(this).is("[data-autoplay-dur]") && e(this).attr("data-autoplay-dur").length > 0 && parseInt(e(this).attr("data-autoplay-dur")) > 100 && parseInt(e(this).attr("data-autoplay-dur")) < 3e4 && (c = parseInt(e(this).attr("data-autoplay-dur")))); var u = e(this), p = !(e("body.vc_editor").length > 0), f = e("body.vc_editor").length > 0, g = "", m = !e(this).is("[data-wrap]") || "no-wrap" != e(this).attr("data-wrap"), v = !1; e(this).is('[data-adaptive-height="true"]') && (v = !0); var b = !!e(this).find("img[data-flickity-lazyload]") && 1; e(this).find("img[data-flickity-lazyload]") && e(this).is('[data-overflow="visible"]') && e(this).is('[data-wrap="no-wrap"]') && (b = 2); var w, y, _ = !!Hn.hasClass("rtl"); if (g = e(this).attr("data-controls").length > 0 && "next_prev_arrows_overlaid" == e(this).attr("data-controls") || e(this).attr("data-controls").length > 0 && "touch_total" == e(this).attr("data-controls") ? { x0: 10, x1: 60, y1: 50, x2: 70, y2: 40, x3: 30 } : { x0: 20, x1: 70, y1: 30, x2: 70, y2: 25, x3: 70 }, ai[t] = new Flickity(".nectar-flickity.instance-" + t, { contain: i, draggable: p, lazyLoad: b, imagesLoaded: !0, percentPosition: !0, adaptiveHeight: v, cellAlign: d, groupCells: n, prevNextButtons: l, freeScroll: a, pageDots: o, resize: !0, selectedAttraction: s, autoPlay: c, rightToLeft: _, pauseAutoPlayOnHover: f, setGallerySize: !0, wrapAround: m, accessibility: !1, arrowShape: g }), e(this).is('[data-controls="touch_total"]')) { 0 == e(this).find(".visualized-total").length && (e(this).parents(".full-width-content").length > 0 && e(this).parents(".vc_col-sm-12").length > 0 ? e(this).append('
') : e(this).append('
')), ki.usingMobileBrowser || (ni[t] = new r(e(this), "horizontal-movement"), ai[t].on("dragMove", function(e, t) { ki.clientY = t.clientY, ki.clientX = t.clientX }), ai[t].on("pointerDown", function(t, a) { e(".nectar-drag-indicator").addClass("pointer-down") }), ai[t].on("pointerUp", function(t, a) { e(".nectar-drag-indicator").removeClass("pointer-down") })); var C = e(this).find(".flickity-page-dots li").length, x = e(this).find(".visualized-total span"), k = 1, T = e(this).find(".visualized-total").width(); En.on("smartresize", function() { setTimeout(function() { C = u.find(".flickity-page-dots li").length, T = u.find(".visualized-total").width(), k = T / C * u.find(".flickity-page-dots .is-selected").index(), x.css("width", 100 / C + "%"), x.css({ x: k + "px" }) }, 200) }), setTimeout(function() { C = u.find(".flickity-page-dots li").length, T = u.find(".visualized-total").width(), x.css("width", 100 / C + "%") }, 200), ai[t].on("change", function(e, t) { k = T / C * u.find(".flickity-page-dots .is-selected").index(), x.css({ x: k + "px" }) }) } if (e(this).is('[data-format="fixed_text_content_fullwidth"]') && !ki.usingFrontEndEditor) { var I = ki.usingMobileBrowser; ai[t].on("scroll", function() { if (!I) { var a = u.find(".cell").outerWidth() + 25, n = e('body[data-header-format="left-header"]').length > 0 && En.width() > 1e3 ? 275 : 0, i = (En.width() + n - u.parents(".main-content").width()) / 2; i += parseInt(u.css("margin-left")) + 2, ai[t].slides.forEach(function(n, s) { var r = 1, o = 0, l = 0, d = 10, c = 1, h = e(n.cells[0].element).offset().left, u = e(".nectar-flickity.instance-" + t + " .cell:nth-child(" + (s + 1) + ")"); h - i < 0 && h - i > -1 * a ? (r = 1 + (h - i) / 1500, c = 1 + (h - i + 70) / 550, o = -1 * (h - i), l = (h - i) / 25 * -1) : (r = 1, c = 1, o = 0, l = 0), d = h + 5 - i < 0 && h - i > -1 * a ? 5 : 10, u.css({ "z-index": d }), u.find(".inner-wrap-outer").css({ transform: "perspective(800px) translateX(" + o + "px) rotateY(" + l + "deg) translateZ(0)", opacity: c }), u.find(".inner-wrap").css({ transform: "scale(" + r + ") translateZ(0)" }) }) } }) } ai[t].on("dragStart", function() { clearTimeout(w), clearTimeout(y), u.addClass("is-dragging"), u.addClass("is-moving"), u.find(".flickity-prev-next-button").addClass("hidden") }), ai[t].on("dragEnd", function() { u.removeClass("is-dragging"), w = setTimeout(function() { u.removeClass("is-moving"), u.find(".flickity-prev-next-button").removeClass("hidden") }, 600), y = setTimeout(function() { u.removeClass("is-moving") }, 300) }), e(".flickity-prev-next-button").on("click", function() { clearTimeout(w), e(this).parents(".nectar-flickity").find(".flickity-prev-next-button").addClass("hidden"), w = setTimeout(function() { u.find(".flickity-prev-next-button").removeClass("hidden") }, 600) }), u.hasClass("nectar-carousel") && imagesLoaded(u, function() { h(u) }) }); var t = e(".nectar-carousel.nectar-flickity:not(.masonry)").length > 0; t && En.on("resize", c) } function c() { e(".nectar-carousel.nectar-flickity:not(.masonry)").each(function() { h(e(this)) }) } function h(t) { var a = 0; t.find(".flickity-slider > .cell").css("height", "auto"), t.find(".flickity-slider > .cell").each(function() { e(this).height() > a && (a = e(this).height()) }), a < 10 && (a = "auto"), t.find(".flickity-slider > .cell").css("height", a + "px") } function u() { e(".twentytwenty-container").each(function() { var t = e(this); 0 == t.find(".twentytwenty-handle").length && e(this).imagesLoaded(function() { t.twentytwenty() }) }) } function p() { } function f() { var t = En.width(), a = e("header#top > .container").width(); e("header#top nav > ul > li.megamenu > .sub-menu").css({ "padding-left": (t - a) / 2 + "px", "padding-right": (t + 2 - a) / 2 + "px", width: a, left: "-" + (t - a) / 2 + "px" }) } function g() { ki.winW < 1e3 && "1" == Hn.attr("data-responsive") ? (Hn.addClass("mobile"), e("header#top nav").css("display", "none")) : (Hn.removeClass("mobile"), e("header#top nav").css("display", ""), e(".slide-out-widget-area-toggle #toggle-nav .lines-button").removeClass("close")) } function m() { e("#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul").each(function() { e(this).removeClass("on-left-side"), e(this).offset().left + e(this).outerWidth() > En.width() ? (e(this).addClass("on-left-side"), e(this).find("ul").addClass("on-left-side")) : (e(this).removeClass("on-left-side"), e(this).find("ul").removeClass("on-left-side")) }) } function v() { 0 != e(".carousel").length && ("undefined" != typeof SalientRecentProjectsCarousel && e("ul.carousel.portfolio-items").each(function(t) { gi[t] = new SalientRecentProjectsCarousel(e(this)) }), e('ul.carousel:not(".clients"):not(.portfolio-items)').each(function() { var a, n, i = e(this), s = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? "auto" : 3, r = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? "auto" : "", o = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? 500 : 453, l = "true" == e(this).attr("data-autorotate"), d = !0, c = !0; e("body.ascend").length > 0 && "true" != e(this).parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != e(this).parents(".carousel-wrap").attr("data-full-width") ? e(this).find("li").length % 3 == 0 ? (d = !0, c = !0) : (d = !1, c = !0) : (d = !0, c = !0), a = parseInt(e(this).attr("data-scroll-speed")) ? parseInt(e(this).attr("data-scroll-speed")) : 700, n = e(this).is("[data-easing]") ? e(this).attr("data-easing") : "linear"; var h = i; 0 == i.find("img").length && (h = Hn), imagesLoaded(h, function() { i.carouFredSel({ circular: d, infinite: c, height: "auto", responsive: !0, items: { width: o, visible: { min: 1, max: s } }, swipe: { onTouch: !0, onMouse: !0, options: { excludedElements: "button, input, select, textarea, .noSwipe", tap: function(a, n) { !e(n).attr("href") || e(n).is('[target="_blank"]') || e(n).is('[rel^="prettyPhoto"]') || e(n).is(".magnific-popup") || e(n).is(".magnific") || t.open(e(n).attr("href"), "_self") } }, onBefore: function() { i.find(".work-item").trigger("mouseleave"), i.find(".work-item .work-info a").trigger("mouseup") } }, scroll: { items: r, easing: n, duration: a, onBefore: function() { (e("body.ascend").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width")) && i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length / i.triggerHandler("currentVisible").length)) }, onAfter: function() { (e("body.ascend").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width")) && (i.parents(".carousel-wrap").find(".item-count .current").html(i.triggerHandler("currentPage") + 1), i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length / i.triggerHandler("currentVisible").length))) } }, prev: { button: function() { return i.parents(".carousel-wrap").find(".carousel-prev") } }, next: { button: function() { return i.parents(".carousel-wrap").find(".carousel-next") } }, auto: { play: l } }, { transition: !0 }).animate({ opacity: 1 }, 1300), i.parents(".carousel-wrap").wrap('