JavaScript
Executed Scripts (27)
Executed Evals (3)
#1 JavaScript::Eval (size: 55809) - SHA256: f46438dc69e006684fd2254a035cd58fa8fc9277206bdf0f8c9a278bbfbc8756
/************************************************
* REVOLUTION 5.4.8 EXTENSION - LAYER ANIMATION
* @version: 3.6.5 (10.06.2018)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
************************************************/
! function(e) {
"use strict";
var A = jQuery.fn.revolution,
l = (A.is_mobile(), A.is_android(), {
alias: "LayerAnimation Min JS",
name: "revolution.extensions.layeranimation.min.js",
min_core: "5.4.6.4",
version: "3.6.5"
});
jQuery.extend(!0, A, {
updateMarkup: function(e, t) {
var i = jQuery(e).data();
if (void 0 !== i.start && !i.frames_added && void 0 === i.frames) {
var a = new Array,
n = F(B(), i.transform_in, void 0, !1),
r = F(B(), i.transform_out, void 0, !1),
o = F(B(), i.transform_hover, void 0, !1);
jQuery.isNumeric(i.end) && jQuery.isNumeric(i.start) && jQuery.isNumeric(n.speed) && (i.end = parseInt(i.end, 0) - (parseInt(i.start, 0) + parseFloat(n.speed, 0))), a.push({
frame: "0",
delay: i.start,
from: i.transform_in,
to: i.transform_idle,
split: i.splitin,
speed: n.speed,
ease: n.anim.ease,
mask: i.mask_in,
splitdelay: i.elementdelay
}), a.push({
frame: "5",
delay: i.end,
to: i.transform_out,
split: i.splitout,
speed: r.speed,
ease: r.anim.ease,
mask: i.mask_out,
splitdelay: i.elementdelay
}), i.transform_hover && a.push({
frame: "hover",
to: i.transform_hover,
style: i.style_hover,
speed: o.speed,
ease: o.anim.ease,
splitdelay: i.elementdelay
}), i.frames = a
}
if (!i.frames_added) {
if (i.inframeindex = 0, i.outframeindex = -1, i.hoverframeindex = -1, void 0 !== i.frames)
for (var s = 0; s < i.frames.length; s++) void 0 !== i.frames[s].sfx_effect && 0 <= i.frames[s].sfx_effect.indexOf("block") && (0 === s ? (i.frames[s].from = "o:0", i.frames[s].to = "o:1") : i.frames[s].to = "o:0", i._sfx = "block"), void 0 === i.frames[0].from && (i.frames[0].from = "o:inherit"), 0 === i.frames[0].delay && (i.frames[0].delay = 20), "hover" === i.frames[s].frame ? i.hoverframeindex = s : "frame_999" !== i.frames[s].frame && "frame_out" !== i.frames[s].frame && "last" !== i.frames[s].frame && "end" !== i.frames[s].frame || (i.outframeindex = s), void 0 !== i.frames[s].split && i.frames[s].split.match(/chars|words|lines/g) && (i.splittext = !0);
i.outframeindex = -1 === i.outframeindex ? -1 === i.hoverframeindex ? i.frames.length - 1 : i.frames.length - 2 : i.outframeindex, i.frames_added = !0
}
},
animcompleted: function(e, t) {
var i = e.data(),
a = i.videotype,
n = i.autoplay,
r = i.autoplayonlyfirsttime;
null != a && "none" != a && (1 == n || "true" == n || "on" == n || "1sttime" == n || r ? (("carousel" !== t.sliderType || "carousel" === t.sliderType && "on" === t.carousel.showLayersAllTime && e.closest("li").hasClass("active-revslide") || "carousel" === t.sliderType && "on" !== t.carousel.showLayersAllTime && e.closest("li").hasClass("active-revslide")) && A.playVideo(e, t), A.toggleState(e.data("videotoggledby")), (r || "1sttime" == n) && (i.autoplayonlyfirsttime = !1, i.autoplay = "off")) : ("no1sttime" == n && (i.datasetautoplay = "on"), A.unToggleState(e.data("videotoggledby"))))
},
handleStaticLayers: function(e, t) {
var i = parseInt(e.data("startslide"), 0),
a = parseInt(e.data("endslide"), 0);
i < 0 && (i = 0), a < 0 && (a = t.realslideamount), 0 === i && a === t.realslideamount - 1 && (a = t.realslideamount + 1), e.data("startslide", i), e.data("endslide", a)
},
animateTheCaptions: function(e) {
if ("stop" === A.compare_version(l).check) return !1;
var p = e.opt,
t = e.slide,
n = e.recall,
i = e.maintimeline,
r = e.preset,
o = e.startslideanimat,
s = "carousel" === p.sliderType ? 0 : p.width / 2 - p.gridwidth[p.curWinRange] * p.bw / 2,
a = t.data("index");
if (p.layers = p.layers || new Object, p.layers[a] = p.layers[a] || t.find(".tp-caption"), p.layers.static = p.layers.static || p.c.find(".tp-static-layers").find(".tp-caption"), void 0 === p.timelines && A.createTimelineStructure(p), p.conh = p.c.height(), p.conw = p.c.width(), p.ulw = p.ul.width(), p.ulh = p.ul.height(), p.debugMode) {
t.addClass("indebugmode"), t.find(".helpgrid").remove(), p.c.find(".hglayerinfo").remove(), t.append('<div class="helpgrid" style="width:' + p.gridwidth[p.curWinRange] * p.bw + "px;height:" + p.gridheight[p.curWinRange] * p.bw + 'px;"></div>');
var d = t.find(".helpgrid");
d.append('<div class="hginfo">Zoom:' + Math.round(100 * p.bw) + "% Device Level:" + p.curWinRange + " Grid Preset:" + p.gridwidth[p.curWinRange] + "x" + p.gridheight[p.curWinRange] + "</div>"), p.c.append('<div class="hglayerinfo"></div>'), d.append('<div class="tlhg"></div>')
}
void 0 !== a && p.layers[a] && jQuery.each(p.layers[a], function(e, t) {
var i = jQuery(this);
A.updateMarkup(this, p), A.prepareSingleCaption({
caption: i,
opt: p,
offsetx: s,
offsety: 0,
index: e,
recall: n,
preset: r
}), r && 0 !== o || A.buildFullTimeLine({
caption: i,
opt: p,
offsetx: s,
offsety: 0,
index: e,
recall: n,
preset: r,
regenerate: 0 === o
}), n && "carousel" === p.sliderType && "on" === p.carousel.showLayersAllTime && A.animcompleted(i, p)
}), p.layers.static && jQuery.each(p.layers.static, function(e, t) {
var i = jQuery(this),
a = i.data();
!0 !== a.hoveredstatus && !0 !== a.inhoveroutanimation ? (A.updateMarkup(this, p), A.prepareSingleCaption({
caption: i,
opt: p,
offsetx: s,
offsety: 0,
index: e,
recall: n,
preset: r
}), r && 0 !== o || !0 === a.veryfirstststic || (A.buildFullTimeLine({
caption: i,
opt: p,
offsetx: s,
offsety: 0,
index: e,
recall: n,
preset: r,
regenerate: 0 === o
}), a.veryfirstststic = !0), n && "carousel" === p.sliderType && "on" === p.carousel.showLayersAllTime && A.animcompleted(i, p)) : A.prepareSingleCaption({
caption: i,
opt: p,
offsetx: s,
offsety: 0,
index: e,
recall: n,
preset: r
})
});
var g = -1 === p.nextSlide || void 0 === p.nextSlide ? 0 : p.nextSlide;
void 0 !== p.rowzones && (g = g > p.rowzones.length ? p.rowzones.length : g), null != p.rowzones && 0 < p.rowzones.length && null != p.rowzones[g] && 0 <= g && g <= p.rowzones.length && 0 < p.rowzones[g].length && A.setSize(p), r || void 0 !== o && (void 0 !== a && jQuery.each(p.timelines[a].layers, function(e, t) {
var i = t.layer.data();
"none" !== t.wrapper && void 0 !== t.wrapper || ("keep" == t.triggerstate && "on" === i.triggerstate ? A.playAnimationFrame({
caption: t.layer,
opt: p,
frame: "frame_0",
triggerdirection: "in",
triggerframein: "frame_0",
triggerframeout: "frame_999"
}) : t.timeline.restart())
}), p.timelines.staticlayers && jQuery.each(p.timelines.staticlayers.layers, function(e, t) {
var i = t.layer.data(),
a = g >= t.firstslide && g <= t.lastslide,
n = g < t.firstslide || g > t.lastslide,
r = t.timeline.getLabelTime("slide_" + t.firstslide),
o = t.timeline.getLabelTime("slide_" + t.lastslide),
s = i.static_layer_timeline_time,
d = "in" === i.animdirection || "out" !== i.animdirection && void 0,
l = "bytrigger" === i.frames[0].delay,
m = (i.frames[i.frames.length - 1].delay, i.triggered_startstatus),
c = i.lasttriggerstate;
!0 !== i.hoveredstatus && 1 != i.inhoveroutanimation && (void 0 !== s && d && ("keep" == c ? (A.playAnimationFrame({
caption: t.layer,
opt: p,
frame: "frame_0",
triggerdirection: "in",
triggerframein: "frame_0",
triggerframeout: "frame_999"
}), i.triggeredtimeline.time(s)) : !0 !== i.hoveredstatus && t.timeline.time(s)), "reset" === c && "hidden" === m && (t.timeline.time(0), i.animdirection = "out"), a ? d ? g === t.lastslide && (t.timeline.play(o), i.animdirection = "in") : (l || "in" === i.animdirection || t.timeline.play(r), ("visible" == m && "keep" !== c || "keep" === c && !0 === d || "visible" == m && void 0 === d) && (t.timeline.play(r + .01), i.animdirection = "in")) : n && d && t.timeline.play("frame_999"))
})), null != i && setTimeout(function() {
i.resume()
}, 30)
},
prepareSingleCaption: function(e) {
var t = e.caption,
i = t.data(),
a = e.opt,
n = e.recall,
r = e.recall,
o = (e.preset, jQuery("body").hasClass("rtl"));
if (i._pw = void 0 === i._pw ? t.closest(".tp-parallax-wrap") : i._pw, i._lw = void 0 === i._lw ? t.closest(".tp-loop-wrap") : i._lw, i._mw = void 0 === i._mw ? t.closest(".tp-mask-wrap") : i._mw, i._responsive = i.responsive || "on", i._respoffset = i.responsive_offset || "on", i._ba = i.basealign || "grid", i._gw = "grid" === i._ba ? a.width : a.ulw, i._gh = "grid" === i._ba ? a.height : a.ulh, i._lig = void 0 === i._lig ? t.hasClass("rev_layer_in_group") ? t.closest(".rev_group") : t.hasClass("rev_layer_in_column") ? t.closest(".rev_column_inner") : t.hasClass("rev_column_inner") ? t.closest(".rev_row") : "none" : i._lig, i._column = void 0 === i._column ? t.hasClass("rev_column_inner") ? t.closest(".rev_column") : "none" : i._column, i._row = void 0 === i._row ? t.hasClass("rev_column_inner") ? t.closest(".rev_row") : "none" : i._row, i._ingroup = void 0 === i._ingroup ? !(t.hasClass("rev_group") || !t.closest(".rev_group")) : i._ingroup, i._isgroup = void 0 === i._isgroup ? !!t.hasClass("rev_group") : i._isgroup, i._nctype = i.type || "none", i._cbgc_auto = void 0 === i._cbgc_auto ? "column" === i._nctype && i._pw.find(".rev_column_bg_auto_sized") : i._cbgc_auto, i._cbgc_man = void 0 === i._cbgc_man ? "column" === i._nctype && i._pw.find(".rev_column_bg_man_sized") : i._cbgc_man, i._slideid = i._slideid || t.closest(".tp-revslider-slidesli").data("index"), i._id = void 0 === i._id ? t.data("id") || t.attr("id") : i._id, i._slidelink = void 0 === i._slidelink ? void 0 !== t.hasClass("slidelink") && t.hasClass("slidelink") : i._slidelink, void 0 === i._li && (t.hasClass("tp-static-layer") ? (i._isstatic = !0, i._li = t.closest(".tp-static-layers"), i._slideid = "staticlayers") : i._li = t.closest(".tp-revslider-slidesli")), i._row = void 0 === i._row ? "column" === i._nctype && i._pw.closest(".rev_row") : i._row, void 0 === i._togglelisteners && t.find(".rs-toggled-content") ? (i._togglelisteners = !0, void 0 === i.actions && t.click(function() {
A.swaptoggleState(t)
})) : i._togglelisteners = !1, "fullscreen" == a.sliderLayout && (e.offsety = i._gh / 2 - a.gridheight[a.curWinRange] * a.bh / 2), ("on" == a.autoHeight || null != a.minHeight && 0 < a.minHeight) && (e.offsety = a.conh / 2 - a.gridheight[a.curWinRange] * a.bh / 2), e.offsety < 0 && (e.offsety = 0), a.debugMode) {
t.closest("li").find(".helpgrid").css({
top: e.offsety + "px",
left: e.offsetx + "px"
});
var s = a.c.find(".hglayerinfo");
t.on("hover, mouseenter", function() {
var i = "";
t.data() && jQuery.each(t.data(), function(e, t) {
"object" != typeof t && (i = i + '<span style="white-space:nowrap"><span style="color:#27ae60">' + e + ":</span>" + t + "</span> ")
}), s.html(i)
})
}
if ("off" === (void 0 === i.visibility ? "oon" : N(i.visibility, a)[a.forcedWinRange] || N(i.visibility, a) || "ooon") || i._gw < a.hideCaptionAtLimit && "on" == i.captionhidden || i._gw < a.hideAllCaptionAtLimit ? i._pw.addClass("tp-hidden-caption") : i._pw.removeClass("tp-hidden-caption"), i.layertype = "html", e.offsetx < 0 && (e.offsetx = 0), null != i.thumbimage && null == i.videoposter && (i.videoposter = i.thumbimage), 0 < t.find("img").length) {
var d = t.find("img");
i.layertype = "image", 0 == d.width() && d.css({
width: "auto"
}), 0 == d.height() && d.css({
height: "auto"
}), null == d.data("ww") && 0 < d.width() && d.data("ww", d.width()), null == d.data("hh") && 0 < d.height() && d.data("hh", d.height());
var l = d.data("ww"),
m = d.data("hh"),
c = "slide" == i._ba ? a.ulw : a.gridwidth[a.curWinRange],
p = "slide" == i._ba ? a.ulh : a.gridheight[a.curWinRange],
g = "full" === (l = N(d.data("ww"), a)[a.curWinRange] || N(d.data("ww"), a) || "auto") || "full-proportional" === l,
u = "full" === (m = N(d.data("hh"), a)[a.curWinRange] || N(d.data("hh"), a) || "auto") || "full-proportional" === m;
if ("full-proportional" === l) {
var f = d.data("owidth"),
h = d.data("oheight");
f / c < h / p ? m = h * ((l = c) / f) : l = f * ((m = p) / h)
} else l = g ? c : !jQuery.isNumeric(l) && 0 < l.indexOf("%") ? l : parseFloat(l), m = u ? p : !jQuery.isNumeric(m) && 0 < m.indexOf("%") ? m : parseFloat(m);
l = void 0 === l ? 0 : l, m = void 0 === m ? 0 : m, "off" !== i._responsive ? ("grid" != i._ba && g ? jQuery.isNumeric(l) ? d.css({
width: l + "px"
}) : d.css({
width: l
}) : jQuery.isNumeric(l) ? d.css({
width: l * a.bw + "px"
}) : d.css({
width: l
}), "grid" != i._ba && u ? jQuery.isNumeric(m) ? d.css({
height: m + "px"
}) : d.css({
height: m
}) : jQuery.isNumeric(m) ? d.css({
height: m * a.bh + "px"
}) : d.css({
height: m
})) : d.css({
width: l,
height: m
}), i._ingroup && "row" !== i._nctype && (void 0 !== l && !jQuery.isNumeric(l) && "string" === jQuery.type(l) && 0 < l.indexOf("%") && punchgs.TweenLite.set([i._lw, i._pw, i._mw], {
minWidth: l
}), void 0 !== m && !jQuery.isNumeric(m) && "string" === jQuery.type(m) && 0 < m.indexOf("%") && punchgs.TweenLite.set([i._lw, i._pw, i._mw], {
minHeight: m
}))
}
if ("slide" === i._ba) e.offsetx = 0, e.offsety = 0;
else if (i._isstatic && void 0 !== a.carousel && void 0 !== a.carousel.horizontal_align && "carousel" === a.sliderType) {
switch (a.carousel.horizontal_align) {
case "center":
e.offsetx = 0 + (a.ulw - a.gridwidth[a.curWinRange] * a.bw) / 2;
break;
case "left":
break;
case "right":
e.offsetx = a.ulw - a.gridwidth[a.curWinRange] * a.bw
}
e.offsetx = e.offsetx < 0 ? 0 : e.offsetx
}
var v = "html5" == i.audio ? "audio" : "video";
if (t.hasClass("tp-videolayer") || t.hasClass("tp-audiolayer") || 0 < t.find("iframe").length || 0 < t.find(v).length) {
if (i.layertype = "video", A.manageVideoLayer && A.manageVideoLayer(t, a, n, r), !n && !r) {
i.videotype;
A.resetVideo && A.resetVideo(t, a, e.preset)
}
var _ = i.aspectratio;
null != _ && 1 < _.split(":").length && A.prepareCoveredVideo(a, t);
d = t.find("iframe") ? t.find("iframe") : d = t.find(v);
var b = !t.find("iframe"),
y = t.hasClass("coverscreenvideo");
d.css({
display: "block"
}), null == t.data("videowidth") && (t.data("videowidth", d.width()), t.data("videoheight", d.height()));
l = N(t.data("videowidth"), a)[a.curWinRange] || N(t.data("videowidth"), a) || "auto", m = N(t.data("videoheight"), a)[a.curWinRange] || N(t.data("videoheight"), a) || "auto";
l = "auto" === l || !jQuery.isNumeric(l) && 0 < l.indexOf("%") ? "auto" === l ? "auto" : "grid" === i._ba ? a.gridwidth[a.curWinRange] * a.bw : i._gw : parseFloat(l) * a.bw + "px", m = "auto" === m || !jQuery.isNumeric(m) && 0 < m.indexOf("%") ? "auto" === m ? "auto" : "grid" === i._ba ? a.gridheight[a.curWinRange] * a.bw : i._gh : parseFloat(m) * a.bh + "px", i.cssobj = void 0 === i.cssobj ? V(t, 0) : i.cssobj;
var w = Z(i.cssobj, a);
if ("auto" == w.lineHeight && (w.lineHeight = w.fontSize + 4), t.hasClass("fullscreenvideo") || y) {
e.offsetx = 0, e.offsety = 0, t.data("x", 0), t.data("y", 0);
var x = i._gh;
"on" == a.autoHeight && (x = a.conh), t.css({
width: i._gw,
height: x
})
} else punchgs.TweenLite.set(t, {
paddingTop: Math.round(w.paddingTop * a.bh) + "px",
paddingBottom: Math.round(w.paddingBottom * a.bh) + "px",
paddingLeft: Math.round(w.paddingLeft * a.bw) + "px",
paddingRight: Math.round(w.paddingRight * a.bw) + "px",
marginTop: w.marginTop * a.bh + "px",
marginBottom: w.marginBottom * a.bh + "px",
marginLeft: w.marginLeft * a.bw + "px",
marginRight: w.marginRight * a.bw + "px",
borderTopWidth: Math.round(w.borderTopWidth * a.bh) + "px",
borderBottomWidth: Math.round(w.borderBottomWidth * a.bh) + "px",
borderLeftWidth: Math.round(w.borderLeftWidth * a.bw) + "px",
borderRightWidth: Math.round(w.borderRightWidth * a.bw) + "px",
width: l,
height: m
});
(0 == b && !y || 1 != i.forcecover && !t.hasClass("fullscreenvideo") && !y) && (d.width(l), d.height(m)), i._ingroup && null !== i.videowidth && void 0 !== i.videowidth && !jQuery.isNumeric(i.videowidth) && 0 < i.videowidth.indexOf("%") && punchgs.TweenLite.set([i._lw, i._pw, i._mw], {
minWidth: i.videowidth
})
}
E(t, a, 0, i._responsive), t.hasClass("tp-resizeme") && t.find("*").each(function() {
E(jQuery(this), a, "rekursive", i._responsive)
});
var T = t.outerHeight(),
k = t.css("backgroundColor");
D(t, ".frontcorner", "left", "borderRight", "borderTopColor", T, k), D(t, ".frontcornertop", "left", "borderRight", "borderBottomColor", T, k), D(t, ".backcorner", "right", "borderLeft", "borderBottomColor", T, k), D(t, ".backcornertop", "right", "borderLeft", "borderTopColor", T, k), "on" == a.fullScreenAlignForce && (e.offsetx = 0, e.offsety = 0), "block" === i._sfx && void 0 === i._bmask && (i._bmask = jQuery('<div class="tp-blockmask"></div>'), i._mw.append(i._bmask)), i.arrobj = new Object, i.arrobj.voa = N(i.voffset, a)[a.curWinRange] || N(i.voffset, a)[0], i.arrobj.hoa = N(i.hoffset, a)[a.curWinRange] || N(i.hoffset, a)[0], i.arrobj.elx = N(i.x, a)[a.curWinRange] || N(i.x, a)[0], i.arrobj.ely = N(i.y, a)[a.curWinRange] || N(i.y, a)[0];
var j = 0 == i.arrobj.voa.length ? 0 : i.arrobj.voa,
L = 0 == i.arrobj.hoa.length ? 0 : i.arrobj.hoa,
I = 0 == i.arrobj.elx.length ? 0 : i.arrobj.elx,
W = 0 == i.arrobj.ely.length ? 0 : i.arrobj.ely;
i.eow = t.outerWidth(!0), i.eoh = t.outerHeight(!0), 0 == i.eow && 0 == i.eoh && (i.eow = a.ulw, i.eoh = a.ulh);
var R = "off" !== i._respoffset ? parseInt(j, 0) * a.bw : parseInt(j, 0),
C = "off" !== i._respoffset ? parseInt(L, 0) * a.bw : parseInt(L, 0),
z = "grid" === i._ba ? a.gridwidth[a.curWinRange] * a.bw : i._gw,
O = "grid" === i._ba ? a.gridheight[a.curWinRange] * a.bw : i._gh;
"on" == a.fullScreenAlignForce && (z = a.ulw, O = a.ulh), "none" !== i._lig && null != i._lig && (z = i._lig.width(), O = i._lig.height(), e.offsetx = 0, e.offsety = 0), I = "center" === I || "middle" === I ? z / 2 - i.eow / 2 + C : "left" === I ? C : "right" === I ? z - i.eow - C : "off" !== i._respoffset ? I * a.bw : I, W = "center" == W || "middle" == W ? O / 2 - i.eoh / 2 + R : "top" == W ? R : "bottom" == W ? O - i.eoh - R : "off" !== i._respoffset ? W * a.bw : W, o && !i._slidelink && (I += i.eow), i._slidelink && (I = 0), i.calcx = parseInt(I, 0) + e.offsetx, i.calcy = parseInt(W, 0) + e.offsety;
var Q = t.css("z-Index");
if ("row" !== i._nctype && "column" !== i._nctype) punchgs.TweenLite.set(i._pw, {
zIndex: Q,
top: i.calcy,
left: i.calcx,
overwrite: "auto"
});
else if ("row" !== i._nctype) punchgs.TweenLite.set(i._pw, {
zIndex: Q,
width: i.columnwidth,
top: 0,
left: 0,
overwrite: "auto"
});
else if ("row" === i._nctype) {
var S = "grid" === i._ba ? z + "px" : "100%";
punchgs.TweenLite.set(i._pw, {
zIndex: Q,
width: S,
top: 0,
left: e.offsetx,
overwrite: "auto"
})
}
if (void 0 !== i.blendmode && punchgs.TweenLite.set(i._pw, {
mixBlendMode: i.blendmode
}), "row" === i._nctype && (i.columnbreak <= a.curWinRange ? t.addClass("rev_break_columns") : t.removeClass("rev_break_columns")), "on" == i.loopanimation && punchgs.TweenLite.set(i._lw, {
minWidth: i.eow,
minHeight: i.eoh
}), "column" === i._nctype) {
var M = void 0 !== t[0]._gsTransform ? t[0]._gsTransform.y : 0,
P = parseInt(i._column[0].style.paddingTop, 0);
punchgs.TweenLite.set(t, {
y: 0
}), punchgs.TweenLite.set(i._cbgc_man, {
y: parseInt(P + i._column.offset().top - t.offset().top, 0)
}), punchgs.TweenLite.set(t, {
y: M
})
}
i._ingroup && "row" !== i._nctype && (void 0 !== i._groupw && !jQuery.isNumeric(i._groupw) && 0 < i._groupw.indexOf("%") && punchgs.TweenLite.set([i._lw, i._pw, i._mw], {
minWidth: i._groupw
}), void 0 !== i._grouph && !jQuery.isNumeric(i._grouph) && 0 < i._grouph.indexOf("%") && punchgs.TweenLite.set([i._lw, i._pw, i._mw], {
minHeight: i._grouph
}))
},
createTimelineStructure: function(s) {
s.timelines = s.timelines || new Object, s.c.find(".tp-revslider-slidesli, .tp-static-layers").each(function() {
var e = jQuery(this),
o = e.data("index");
s.timelines[o] = s.timelines[o] || {}, s.timelines[o].layers = s.timelines[o].layers || new Object, e.find(".tp-caption").each(function(e) {
var t, i, a, n, r;
t = jQuery(this), i = s.timelines[o].layers, a = o, r = new punchgs.TimelineLite({
paused: !0
}), (i = i || new Object)[t.attr("id")] = i[t.attr("id")] || new Object, "staticlayers" === a && (i[t.attr("id")].firstslide = t.data("startslide"), i[t.attr("id")].lastslide = t.data("endslide")), t.data("slideid", a), i[t.attr("id")].defclasses = n = t[0].className, i[t.attr("id")].wrapper = 0 <= n.indexOf("rev_layer_in_column") ? t.closest(".rev_column_inner") : 0 <= n.indexOf("rev_column_inner") ? t.closest(".rev_row") : 0 <= n.indexOf("rev_layer_in_group") ? t.closest(".rev_group") : "none", i[t.attr("id")].timeline = r, i[t.attr("id")].layer = t, i[t.attr("id")].triggerstate = t.data("lasttriggerstate"), i[t.attr("id")].dchildren = 0 <= n.indexOf("rev_row") ? t[0].getElementsByClassName("rev_column_inner") : 0 <= n.indexOf("rev_column_inner") ? t[0].getElementsByClassName("tp-caption") : 0 <= n.indexOf("rev_group") ? t[0].getElementsByClassName("rev_layer_in_group") : "none", t.data("timeline", r)
})
})
},
buildFullTimeLine: function(e) {
var t, i, a = e.caption,
n = a.data(),
r = e.opt,
o = {},
s = h();
if (!(t = r.timelines[n._slideid].layers[n._id]).generated || !0 === e.regenerate) {
if (i = t.timeline, t.generated = !0, void 0 !== n.current_timeline && !0 !== e.regenerate ? (n.current_timeline_pause = n.current_timeline.paused(), n.current_timeline_time = n.current_timeline.time(), n.current_is_nc_timeline = i === n.current_timeline, n.static_layer_timeline_time = n.current_timeline_time) : (n.static_layer_timeline_time = n.current_timeline_time, n.current_timeline_time = 0, n.current_timeline && n.current_timeline.clear()), i.clear(), o.svg = null != n.svg_src && a.find("svg"), o.svg && (n.idlesvg = f(n.svg_idle, u()), punchgs.TweenLite.set(o.svg, n.idlesvg.anim)), -1 !== n.hoverframeindex && void 0 !== n.hoverframeindex && !a.hasClass("rs-hover-ready")) {
if (a.addClass("rs-hover-ready"), n.hovertimelines = {}, n.hoveranim = F(s, n.frames[n.hoverframeindex].to), n.hoveranim = v(n.hoveranim, n.frames[n.hoverframeindex].style), o.svg) {
var d = f(n.svg_hover, u());
null != n.hoveranim.anim.color && (d.anim.fill = n.hoveranim.anim.color, n.idlesvg.anim.css.fill = o.svg.css("fill")), n.hoversvg = d
}
a.hover(function(e) {
var t = {
caption: jQuery(e.currentTarget),
opt: r,
firstframe: "frame_0",
lastframe: "frame_999"
},
i = (g(t), t.caption),
a = i.data(),
n = a.frames[a.hoverframeindex];
a.forcehover = n.force, a.hovertimelines.item = punchgs.TweenLite.to(i, n.speed / 1e3, a.hoveranim.anim), (a.hoverzIndex || a.hoveranim.anim && a.hoveranim.anim.zIndex) && (a.basiczindex = void 0 === a.basiczindex ? a.cssobj.zIndex : a.basiczindex, a.hoverzIndex = void 0 === a.hoverzIndex ? a.hoveranim.anim.zIndex : a.hoverzIndex, a.inhoverinanimation = !0, 0 === n.speed && (a.inhoverinanimation = !1), a.hovertimelines.pwhoveranim = punchgs.TweenLite.to(a._pw, n.speed / 1e3, {
overwrite: "auto",
zIndex: a.hoverzIndex
}), a.hovertimelines.pwhoveranim.eventCallback("onComplete", function(e) {
e.inhoverinanimation = !1
}, [a])), o.svg && (a.hovertimelines.svghoveranim = punchgs.TweenLite.to([o.svg, o.svg.find("path")], n.speed / 1e3, a.hoversvg.anim)), a.hoveredstatus = !0
}, function(e) {
var t = {
caption: jQuery(e.currentTarget),
opt: r,
firstframe: "frame_0",
lastframe: "frame_999"
},
i = (g(t), t.caption),
a = i.data(),
n = a.frames[a.hoverframeindex];
a.hoveredstatus = !1, a.inhoveroutanimation = !0, a.hovertimelines.item.pause(), a.hovertimelines.item = punchgs.TweenLite.to(i, n.speed / 1e3, jQuery.extend(!0, {}, a._gsTransformTo)), 0 == n.speed && (a.inhoveroutanimation = !1), a.hovertimelines.item.eventCallback("onComplete", function(e) {
e.inhoveroutanimation = !1
}, [a]), void 0 !== a.hovertimelines.pwhoveranim && (a.hovertimelines.pwhoveranim = punchgs.TweenLite.to(a._pw, n.speed / 1e3, {
overwrite: "auto",
zIndex: a.basiczindex
})), o.svg && punchgs.TweenLite.to([o.svg, o.svg.find("path")], n.speed / 1e3, a.idlesvg.anim)
})
}
for (var l = 0; l < n.frames.length; l++)
if (l !== n.hoverframeindex) {
var m = l === n.inframeindex ? "frame_0" : l === n.outframeindex || "frame_999" === n.frames[l].frame ? "frame_999" : "frame_" + l;
t[n.frames[l].framename = m] = {}, t[m].timeline = new punchgs.TimelineLite({
align: "normal"
});
var c = n.frames[l].delay,
p = (n.triggered_startstatus, void 0 !== c ? 0 <= jQuery.inArray(c, ["slideenter", "bytrigger", "wait"]) ? c : parseInt(c, 0) / 1e3 : "wait");
void 0 !== t.firstslide && "frame_0" === m && (i.addLabel("slide_" + t.firstslide + "_pause", 0), i.addPause("slide_" + t.firstslide + "_pause"), i.addLabel("slide_" + t.firstslide, "+=0.005")), void 0 !== t.lastslide && "frame_999" === m && (i.addLabel("slide_" + t.lastslide + "_pause", "+=0.01"), i.addPause("slide_" + t.lastslide + "_pause"), i.addLabel("slide_" + t.lastslide, "+=0.005")), jQuery.isNumeric(p) ? i.addLabel(m, "+=" + p) : (i.addLabel("pause_" + l, "+=0.01"), i.addPause("pause_" + l), i.addLabel(m, "+=0.01")), i = A.createFrameOnTimeline({
caption: e.caption,
timeline: i,
label: m,
frameindex: l,
opt: r
})
}
e.regenerate || (n.current_is_nc_timeline && (n.current_timeline = i), n.current_timeline_pause ? i.pause(n.current_timeline_time) : i.time(n.current_timeline_time))
}
},
createFrameOnTimeline: function(e) {
var t = e.caption,
i = t.data(),
a = e.label,
n = e.timeline,
r = e.frameindex,
o = e.opt,
s = t,
d = {},
l = o.timelines[i._slideid].layers[i._id],
m = i.frames.length - 1,
c = i.frames[r].split,
p = i.frames[r].split_direction,
g = i.frames[r].sfx_effect,
u = !1;
if (p = void 0 === p ? "forward" : p, -1 !== i.hoverframeindex && i.hoverframeindex == m && (m -= 1), d.content = new punchgs.TimelineLite({
align: "normal"
}), d.mask = new punchgs.TimelineLite({
align: "normal"
}), void 0 === n.vars.id && (n.vars.id = Math.round(1e5 * Math.random())), "column" === i._nctype && (n.add(punchgs.TweenLite.set(i._cbgc_man, {
visibility: "visible"
}), a), n.add(punchgs.TweenLite.set(i._cbgc_auto, {
visibility: "hidden"
}), a)), i.splittext && 0 === r) {
void 0 !== i.mySplitText && i.mySplitText.revert();
var f = 0 < t.find("a").length ? t.find("a") : t;
i.mySplitText = new punchgs.SplitText(f, {
type: "chars,words,lines",
charsClass: "tp-splitted tp-charsplit",
wordsClass: "tp-splitted tp-wordsplit",
linesClass: "tp-splitted tp-linesplit"
}), t.addClass("splitted")
}
void 0 !== i.mySplitText && c && c.match(/chars|words|lines/g) && (s = i.mySplitText[c], u = !0);
var h, v, _ = r !== i.outframeindex ? F(B(), i.frames[r].to, void 0, u, s.length - 1) : void 0 !== i.frames[r].to && null === i.frames[r].to.match(/auto:auto/g) ? F(X(), i.frames[r].to, 1 == o.sdir, u, s.length - 1) : F(X(), i.frames[i.inframeindex].from, 0 == o.sdir, u, s.length - 1),
b = void 0 !== i.frames[r].from ? F(_, i.frames[i.inframeindex].from, 1 == o.sdir, u, s.length - 1) : void 0,
y = i.frames[r].splitdelay;
if (0 !== r || e.fromcurrentstate ? v = H(i.frames[r].mask) : h = H(i.frames[r].mask), _.anim.ease = void 0 === i.frames[r].ease ? punchgs.Power1.easeInOut : i.frames[r].ease, void 0 !== b && (b.anim.ease = void 0 === i.frames[r].ease ? punchgs.Power1.easeInOut : i.frames[r].ease, b.speed = void 0 === i.frames[r].speed ? b.speed : i.frames[r].speed, b.anim.x = b.anim.x * o.bw || Y(b.anim.x, o, i.eow, i.eoh, i.calcy, i.calcx, "horizontal"), b.anim.y = b.anim.y * o.bw || Y(b.anim.y, o, i.eow, i.eoh, i.calcy, i.calcx, "vertical")), void 0 !== _ && (_.anim.ease = void 0 === i.frames[r].ease ? punchgs.Power1.easeInOut : i.frames[r].ease, _.speed = void 0 === i.frames[r].speed ? _.speed : i.frames[r].speed, _.anim.x = _.anim.x * o.bw || Y(_.anim.x, o, i.eow, i.eoh, i.calcy, i.calcx, "horizontal"), _.anim.y = _.anim.y * o.bw || Y(_.anim.y, o, i.eow, i.eoh, i.calcy, i.calcx, "vertical")), t.data("iframes") && n.add(punchgs.TweenLite.set(t.find("iframe"), {
autoAlpha: 1
}), a + "+=0.001"), r === i.outframeindex && (i.frames[r].to && i.frames[r].to.match(/auto:auto/g), _.speed = void 0 === i.frames[r].speed || "inherit" === i.frames[r].speed ? i.frames[i.inframeindex].speed : i.frames[r].speed, _.anim.ease = void 0 === i.frames[r].ease || "inherit" === i.frames[r].ease ? i.frames[i.inframeindex].ease : i.frames[r].ease, _.anim.overwrite = "auto"), 0 !== r || e.fromcurrentstate) 0 === r && e.fromcurrentstate && (_.speed = b.speed);
else {
if (s != t) {
var w = jQuery.extend({}, _.anim, !0);
n.add(punchgs.TweenLite.set(t, _.anim), a), (_ = B()).ease = w.ease, void 0 !== w.filter && (_.anim.filter = w.filter), void 0 !== w["-webkit-filter"] && (_.anim["-webkit-filter"] = w["-webkit-filter"])
}
b.anim.visibility = "hidden", b.anim.immediateRender = !0, _.anim.visibility = "visible"
}
e.fromcurrentstate && (_.anim.immediateRender = !0);
var x = -1;
if (0 === r && !e.fromcurrentstate && void 0 !== i._bmask && void 0 !== g && 0 <= g.indexOf("block") || r === i.outframeindex && !e.fromcurrentstate && void 0 !== i._bmask && void 0 !== g && 0 <= g.indexOf("block")) {
var T = 0 === r ? b.speed / 1e3 / 2 : _.speed / 1e3 / 2,
k = [{
scaleY: 1,
scaleX: 0,
transformOrigin: "0% 50%"
}, {
scaleY: 1,
scaleX: 1,
ease: _.anim.ease
}],
j = {
scaleY: 1,
scaleX: 0,
transformOrigin: "100% 50%",
ease: _.anim.ease
};
switch (x = void 0 === y ? T : y + T, g) {
case "blocktoleft":
case "blockfromright":
k[0].transformOrigin = "100% 50%", j.transformOrigin = "0% 50%";
break;
case "blockfromtop":
case "blocktobottom":
k = [{
scaleX: 1,
scaleY: 0,
transformOrigin: "50% 0%"
}, {
scaleX: 1,
scaleY: 1,
ease: _.anim.ease
}], j = {
scaleX: 1,
scaleY: 0,
transformOrigin: "50% 100%",
ease: _.anim.ease
};
break;
case "blocktotop":
case "blockfrombottom":
k = [{
scaleX: 1,
scaleY: 0,
transformOrigin: "50% 100%"
}, {
scaleX: 1,
scaleY: 1,
ease: _.anim.ease
}], j = {
scaleX: 1,
scaleY: 0,
transformOrigin: "50% 0%",
ease: _.anim.ease
}
}
k[0].background = i.frames[r].sfxcolor, n.add(d.mask.fromTo(i._bmask, T, k[0], k[1], y), a), n.add(d.mask.to(i._bmask, T, j, x), a)
}
if (u) var L = M(s.length - 1, p);
if (0 !== r || e.fromcurrentstate)
if ("block" === i._sfx_out && r === i.outframeindex) n.add(d.content.staggerTo(s, .001, {
autoAlpha: 0,
delay: x
}), a), n.add(d.content.staggerTo(s, _.speed / 1e3 / 2 - .001, {
x: 0,
delay: x
}), a + "+=0.001");
else if (u && void 0 !== L) {
R = {
to: P(_.anim)
};
for (var I in s) {
z = jQuery.extend({}, _.anim);
for (var W in R.to) z[W] = parseInt(R.to[W].values[R.to[W].index], 0), R.to[W].index = R.to[W].index < R.to[W].len ? R.to[W].index + 1 : 0;
void 0 !== i.frames[r].color && (z.color = i.frames[r].color), void 0 !== i.frames[r].bgcolor && (z.backgroundColor = i.frames[r].bgcolor), n.add(d.content.to(s[L[I]], _.speed / 1e3, z, y * I), a)
}
} else void 0 !== i.frames[r].color && (_.anim.color = i.frames[r].color), void 0 !== i.frames[r].bgcolor && (_.anim.backgroundColor = i.frames[r].bgcolor), n.add(d.content.staggerTo(s, _.speed / 1e3, _.anim, y), a);
else if ("block" === i._sfx_in) n.add(d.content.staggerFromTo(s, .05, {
x: 0,
y: 0,
autoAlpha: 0
}, {
x: 0,
y: 0,
autoAlpha: 1,
delay: x
}), a);
else if (u && void 0 !== L) {
var R = {
from: P(b.anim),
to: P(_.anim)
};
for (var I in s) {
var C = jQuery.extend({}, b.anim),
z = jQuery.extend({}, _.anim);
for (var W in R.from) C[W] = parseInt(R.from[W].values[R.from[W].index], 0), R.from[W].index = R.from[W].index < R.from[W].len ? R.from[W].index + 1 : 0;
z.ease = C.ease, void 0 !== i.frames[r].color && (C.color = i.frames[r].color, z.color = i.cssobj.styleProps.color), void 0 !== i.frames[r].bgcolor && (C.backgroundColor = i.frames[r].bgcolor, z.backgroundColor = i.cssobj.styleProps["background-color"]), n.add(d.content.fromTo(s[L[I]], b.speed / 1e3, C, z, y * I), a)
}
} else void 0 !== i.frames[r].color && (b.anim.color = i.frames[r].color, _.anim.color = i.cssobj.styleProps.color), void 0 !== i.frames[r].bgcolor && (b.anim.backgroundColor = i.frames[r].bgcolor, _.anim.backgroundColor = i.cssobj.styleProps["background-color"]), n.add(d.content.staggerFromTo(s, b.speed / 1e3, b.anim, _.anim, y), a);
return void 0 === v || !1 === v || 0 === r && e.ignorefirstframe || (v.anim.ease = void 0 === v.anim.ease || "inherit" === v.anim.ease ? i.frames[0].ease : v.anim.ease, v.anim.overflow = "hidden", v.anim.x = v.anim.x * o.bw || Y(v.anim.x, o, i.eow, i.eoh, i.calcy, i.calcx, "horizontal"), v.anim.y = v.anim.y * o.bw || Y(v.anim.y, o, i.eow, i.eoh, i.calcy, i.calcx, "vertical")), 0 === r && h && !1 !== h && !e.fromcurrentstate || 0 === r && e.ignorefirstframe ? ((v = new Object).anim = new Object, v.anim.overwrite = "auto", v.anim.ease = _.anim.ease, v.anim.x = v.anim.y = 0, h && !1 !== h && (h.anim.x = h.anim.x * o.bw || Y(h.anim.x, o, i.eow, i.eoh, i.calcy, i.calcx, "horizontal"), h.anim.y = h.anim.y * o.bw || Y(h.anim.y, o, i.eow, i.eoh, i.calcy, i.calcx, "vertical"), h.anim.overflow = "hidden")) : 0 === r && n.add(d.mask.set(i._mw, {
overflow: "visible"
}), a), void 0 !== h && void 0 !== v && !1 !== h && !1 !== v ? n.add(d.mask.fromTo(i._mw, b.speed / 1e3, h.anim, v.anim, y), a) : void 0 !== v && !1 !== v && n.add(d.mask.to(i._mw, _.speed / 1e3, v.anim, y), a), n.addLabel(a + "_end"), i._gsTransformTo && r === m && i.hoveredstatus && (i.hovertimelines.item = punchgs.TweenLite.to(t, 0, i._gsTransformTo)), i._gsTransformTo = !1, d.content.eventCallback("onStart", O, [r, l, i._pw, i, n, _.anim, t, e.updateStaticTimeline, o]), d.content.eventCallback("onUpdate", Q, [a, i._id, i._pw, i, n, r, jQuery.extend(!0, {}, _.anim), e.updateStaticTimeline, t, o]), d.content.eventCallback("onComplete", S, [r, i.frames.length, m, i._pw, i, n, e.updateStaticTimeline, t, o]), n
},
endMoveCaption: function(e) {
e.firstframe = "frame_0", e.lastframe = "frame_999";
var t = g(e),
i = e.caption.data();
if (void 0 !== e.frame ? t.timeline.play(e.frame) : (!t.static || e.currentslide >= t.removeonslide || e.currentslide < t.showonslide) && (t.outnow = new punchgs.TimelineLite, t.timeline.pause(), !0 === i.visibleelement && A.createFrameOnTimeline({
caption: e.caption,
timeline: t.outnow,
label: "outnow",
frameindex: e.caption.data("outframeindex"),
opt: e.opt,
fromcurrentstate: !0
}).play()), e.checkchildrens && t.timeline_obj && t.timeline_obj.dchildren && "none" !== t.timeline_obj.dchildren && 0 < t.timeline_obj.dchildren.length)
for (var a = 0; a < t.timeline_obj.dchildren.length; a++) A.endMoveCaption({
caption: jQuery(t.timeline_obj.dchildren[a]),
opt: e.opt
})
},
playAnimationFrame: function(e) {
e.firstframe = e.triggerframein, e.lastframe = e.triggerframeout;
var t, i = g(e),
a = e.caption.data(),
n = 0;
for (var r in a.frames) a.frames[r].framename === e.frame && (t = n), n++;
void 0 !== a.triggeredtimeline && a.triggeredtimeline.pause(), a.triggeredtimeline = new punchgs.TimelineLite, i.timeline.pause();
var o = !0 === a.visibleelement;
a.triggeredtimeline = A.createFrameOnTimeline({
caption: e.caption,
timeline: a.triggeredtimeline,
label: "triggered",
frameindex: t,
updateStaticTimeline: !0,
opt: e.opt,
ignorefirstframe: !0,
fromcurrentstate: o
}).play()
},
removeTheCaptions: function(e, i) {
if ("stop" === A.compare_version(l).check) return !1;
var t = e.data("index"),
a = new Array;
i.layers[t] && jQuery.each(i.layers[t], function(e, t) {
a.push(t)
});
var n = A.currentSlideIndex(i);
a && jQuery.each(a, function(e) {
var t = jQuery(this);
"carousel" === i.sliderType && "on" === i.carousel.showLayersAllTime ? (clearTimeout(t.data("videoplaywait")), A.stopVideo && A.stopVideo(t, i)) : (r(t), clearTimeout(t.data("videoplaywait")), A.endMoveCaption({
caption: t,
opt: i,
currentslide: n
})), A.removeMediaFromList && A.removeMediaFromList(t, i), i.lastplayedvideos = []
})
}
});
var O = function(e, t, i, a, n, r, o, s, d) {
var l = {};
if (l.layer = o, l.eventtype = 0 === e ? "enterstage" : e === a.outframeindex ? "leavestage" : "framestarted", l.layertype = o.data("layertype"), a.active = !0, l.frame_index = e, l.layersettings = o.data(), d.c.trigger("revolution.layeraction", [l]), "on" == a.loopanimation && c(a._lw, d.bw), "enterstage" === l.eventtype && (a.animdirection = "in", a.visibleelement = !0, A.toggleState(a.layertoggledby)), "none" !== t.dchildren && void 0 !== t.dchildren && 0 < t.dchildren.length)
if (0 === e)
for (var m = 0; m < t.dchildren.length; m++) jQuery(t.dchildren[m]).data("timeline").play(0);
else if (e === a.outframeindex)
for (m = 0; m < t.dchildren.length; m++) A.endMoveCaption({
caption: jQuery(t.dchildren[m]),
opt: d,
checkchildrens: !0
});
punchgs.TweenLite.set(i, {
visibility: "visible"
}), a.current_frame = e, a.current_timeline = n, a.current_timeline_time = n.time(), s && (a.static_layer_timeline_time = a.current_timeline_time), a.last_frame_started = e
},
Q = function(e, t, i, a, n, r, o, s, d, l) {
"column" === a._nctype && b(d, l), punchgs.TweenLite.set(i, {
visibility: "visible"
}), a.current_frame = r, a.current_timeline = n, a.current_timeline_time = n.time(), s && (a.static_layer_timeline_time = a.current_timeline_time), void 0 !== a.hoveranim && !1 === a._gsTransformTo && (a._gsTransformTo = o, a._gsTransformTo && a._gsTransformTo.startAt && delete a._gsTransformTo.startAt, void 0 === a.cssobj.styleProps.css ? a._gsTransformTo = jQuery.extend(!0, {}, a.cssobj.styleProps, a._gsTransformTo) : a._gsTransformTo = jQuery.extend(!0, {}, a.cssobj.styleProps.css, a._gsTransformTo)), a.visibleelement = !0
},
S = function(e, t, i, a, n, r, o, s, d) {
var l = {};
l.layer = s, l.eventtype = 0 === e ? "enteredstage" : e === t - 1 || e === i ? "leftstage" : "frameended", l.layertype = s.data("layertype"), l.layersettings = s.data(), d.c.trigger("revolution.layeraction", [l]), "leftstage" !== l.eventtype && A.animcompleted(s, d), "leftstage" === l.eventtype && A.stopVideo && A.stopVideo(s, d), "column" === n._nctype && (punchgs.TweenLite.to(n._cbgc_man, .01, {
visibility: "hidden"
}), punchgs.TweenLite.to(n._cbgc_auto, .01, {
visibility: "visible"
})), "leftstage" === l.eventtype && (n.active = !1, punchgs.TweenLite.set(a, {
visibility: "hidden",
overwrite: "auto"
}), n.animdirection = "out", n.visibleelement = !1, A.unToggleState(n.layertoggledby), "video" === n._nctype && A.resetVideo && setTimeout(function() {
A.resetVideo(s, d)
}, 100)), n.current_frame = e, n.current_timeline = r, n.current_timeline_time = r.time(), o && (n.static_layer_timeline_time = n.current_timeline_time)
},
g = function(e) {
var t = {};
return e.firstframe = void 0 === e.firstframe ? "frame_0" : e.firstframe, e.lastframe = void 0 === e.lastframe ? "frame_999" : e.lastframe, t.id = e.caption.data("id") || e.caption.attr("id"), t.slideid = e.caption.data("slideid") || e.caption.closest(".tp-revslider-slidesli").data("index"), t.timeline_obj = e.opt.timelines[t.slideid].layers[t.id], t.timeline = t.timeline_obj.timeline, t.ffs = t.timeline.getLabelTime(e.firstframe), t.ffe = t.timeline.getLabelTime(e.firstframe + "_end"), t.lfs = t.timeline.getLabelTime(e.lastframe), t.lfe = t.timeline.getLabelTime(e.lastframe + "_end"), t.ct = t.timeline.time(), t.static = null != t.timeline_obj.firstslide || null != t.timeline_obj.lastslide, t.static && (t.showonslide = t.timeline_obj.firstslide, t.removeonslide = t.timeline_obj.lastslide), t
},
M = function(e, t) {
var i = new Array;
switch (t) {
case "forward":
case "random":
for (var a = 0; a <= e; a++) i.push(a);
"random" === t && (i = function(e) {
for (var t, i, a = e.length; 0 !== a;) i = Math.floor(Math.random() * a), t = e[a -= 1], e[a] = e[i], e[i] = t;
return e
}(i));
break;
case "backward":
for (a = 0; a <= e; a++) i.push(e - a);
break;
case "middletoedge":
var n = Math.ceil(e / 2),
r = n - 1,
o = n + 1;
i.push(n);
for (a = 0; a < n; a++) 0 <= r && i.push(r), o <= e && i.push(o), r--, o++;
break;
case "edgetomiddle":
for (r = e, o = 0, a = 0; a <= Math.floor(e / 2); a++) i.push(r), o < r && i.push(o), r--, o++
}
return i
},
P = function(e) {
var t = {};
for (var i in e) "string" == typeof e[i] && 0 <= e[i].indexOf("|") && (void 0 === t[i] && (t[i] = {
index: 0
}), t[i].values = e[i].replace("[", "").replace("]", "").split("|"), t[i].len = t[i].values.length - 1);
return t
},
B = function(e) {
return (e = void 0 === e ? new Object : e).anim = void 0 === e.anim ? new Object : e.anim, e.anim.x = void 0 === e.anim.x ? 0 : e.anim.x, e.anim.y = void 0 === e.anim.y ? 0 : e.anim.y, e.anim.z = void 0 === e.anim.z ? 0 : e.anim.z, e.anim.rotationX = void 0 === e.anim.rotationX ? 0 : e.anim.rotationX, e.anim.rotationY = void 0 === e.anim.rotationY ? 0 : e.anim.rotationY, e.anim.rotationZ = void 0 === e.anim.rotationZ ? 0 : e.anim.rotationZ, e.anim.scaleX = void 0 === e.anim.scaleX ? 1 : e.anim.scaleX, e.anim.scaleY = void 0 === e.anim.scaleY ? 1 : e.anim.scaleY, e.anim.skewX = void 0 === e.anim.skewX ? 0 : e.anim.skewX, e.anim.skewY = void 0 === e.anim.skewY ? 0 : e.anim.skewY, e.anim.opacity = void 0 === e.anim.opacity ? 1 : e.anim.opacity, e.anim.transformOrigin = void 0 === e.anim.transformOrigin ? "50% 50%" : e.anim.transformOrigin, e.anim.transformPerspective = void 0 === e.anim.transformPerspective ? 600 : e.anim.transformPerspective, e.anim.rotation = void 0 === e.anim.rotation ? 0 : e.anim.rotation, e.anim.force3D = void 0 === e.anim.force3D ? "auto" : e.anim.force3D, e.anim.autoAlpha = void 0 === e.anim.autoAlpha ? 1 : e.anim.autoAlpha, e.anim.visibility = void 0 === e.anim.visibility ? "visible" : e.anim.visibility, e.anim.overwrite = void 0 === e.anim.overwrite ? "auto" : e.anim.overwrite, e.speed = void 0 === e.speed ? .3 : e.speed, e.filter = void 0 === e.filter ? "blur(0px) grayscale(0%) brightness(100%)" : e.filter, e["-webkit-filter"] = void 0 === e["-webkit-filter"] ? "blur(0px) grayscale(0%) brightness(100%)" : e["-webkit-filter"], e
},
u = function() {
var e = new Object;
return e.anim = new Object, e.anim.stroke = "none", e.anim.strokeWidth = 0, e.anim.strokeDasharray = "none", e.anim.strokeDashoffset = "0", e
},
f = function(e, r) {
var t = e.split(";");
return t && jQuery.each(t, function(e, t) {
var i = t.split(":"),
a = i[0],
n = i[1];
"sc" == a && (r.anim.stroke = n), "sw" == a && (r.anim.strokeWidth = n), "sda" == a && (r.anim.strokeDasharray = n), "sdo" == a && (r.anim.strokeDashoffset = n)
}), r
},
X = function() {
var e = new Object;
return e.anim = new Object, e.anim.x = 0, e.anim.y = 0, e.anim.z = 0, e
},
h = function() {
var e = new Object;
return e.anim = new Object, e.speed = .2, e
},
m = function(e, t, i, a, n) {
if (n = void 0 === n ? "" : n, jQuery.isNumeric(parseFloat(e))) return parseFloat(e) + n;
if (void 0 === e || "inherit" === e) return t + "ext";
if (1 < e.split("{").length) {
var r = e.split(","),
o = parseFloat(r[1].split("}")[0]);
if (r = parseFloat(r[0].split("{")[1]), void 0 !== i && void 0 !== a) {
parseInt(Math.random() * (o - r), 0), parseInt(r, 0);
for (var s = 0; s < a; s++) e = e + "|" + (parseInt(Math.random() * (o - r), 0) + parseInt(r, 0)) + n;
e += "]"
} else e = Math.random() * (o - r) + r
}
return e
},
Y = function(e, t, i, a, n, r, o) {
return !jQuery.isNumeric(e) && e.match(/%]/g) ? (e = e.split("[")[1].split("]")[0], "horizontal" == o ? e = (i + 2) * parseInt(e, 0) / 100 : "vertical" == o && (e = (a + 2) * parseInt(e, 0) / 100)) : e = "top" === (e = "left" === (e = "layer_top" === (e = "layer_left" === e ? 0 - i : "layer_right" === e ? i : e) ? 0 - a : "layer_bottom" === e ? a : e) || "stage_left" === e ? 0 - i - r : "right" === e || "stage_right" === e ? t.conw - r : "center" === e || "stage_center" === e ? t.conw / 2 - i / 2 - r : e) || "stage_top" === e ? 0 - a - n : "bottom" === e || "stage_bottom" === e ? t.conh - n : "middle" === e || "stage_middle" === e ? t.conh / 2 - a / 2 - n : e, e
},
F = function(e, t, r, o, s) {
var d = new Object;
if (d = jQuery.extend(!0, {}, d, e), void 0 === t) return d;
var i = t.split(";"),
l = "";
return i && jQuery.each(i, function(e, t) {
var i = t.split(":"),
a = i[0],
n = i[1];
r && "none" !== r && null != n && 0 < n.length && n.match(/\(R\)/) && ("[" === (n = "right" === (n = n.replace("(R)", "")) ? "left" : "left" === n ? "right" : "top" === n ? "bottom" : "bottom" === n ? "top" : n)[0] && "-" === n[1] ? n = n.replace("[-", "[") : "[" === n[0] && "-" !== n[1] ? n = n.replace("[", "[-") : "-" === n[0] ? n = n.replace("-", "") : n[0].match(/[1-9]/) && (n = "-" + n)), null != n && (n = n.replace(/\(R\)/, ""), "rotationX" != a && "rX" != a || (d.anim.rotationX = m(n, d.anim.rotationX, o, s, "deg")), "rotationY" != a && "rY" != a || (d.anim.rotationY = m(n, d.anim.rotationY, o, s, "deg")), "rotationZ" != a && "rZ" != a || (d.anim.rotation = m(n, d.anim.rotationZ, o, s, "deg")), "scaleX" != a && "sX" != a || (d.anim.scaleX = m(n, d.anim.scaleX, o, s)), "scaleY" != a && "sY" != a || (d.anim.scaleY = m(n, d.anim.scaleY, o, s)), "opacity" != a && "o" != a || (d.anim.opacity = m(n, d.anim.opacity, o, s)), "fb" == a && (l = "" === l ? "blur(" + parseInt(n, 0) + "px)" : l + " blur(" + parseInt(n, 0) + "px)"), "fg" == a && (l = "" === l ? "grayscale(" + parseInt(n, 0) + "%)" : l + " grayscale(" + parseInt(n, 0) + "%)"), "fbr" == a && (l = "" === l ? "brightness(" + parseInt(n, 0) + "%)" : l + " brightness(" + parseInt(n, 0) + "%)"), 0 === d.anim.opacity && (d.anim.autoAlpha = 0), d.anim.opacity = 0 == d.anim.opacity ? 1e-4 : d.anim.opacity, "skewX" != a && "skX" != a || (d.anim.skewX = m(n, d.anim.skewX, o, s)), "skewY" != a && "skY" != a || (d.anim.skewY = m(n, d.anim.skewY, o, s)), "x" == a && (d.anim.x = m(n, d.anim.x, o, s)), "y" == a && (d.anim.y = m(n, d.anim.y, o, s)), "z" == a && (d.anim.z = m(n, d.anim.z, o, s)), "transformOrigin" != a && "tO" != a || (d.anim.transformOrigin = n.toString()), "transformPerspective" != a && "tP" != a || (d.anim.transformPerspective = parseInt(n, 0)), "speed" != a && "s" != a || (d.speed = parseFloat(n)))
}), "" !== l && (d.anim["-webkit-filter"] = l, d.anim.filter = l), d
},
H = function(e) {
if (void 0 === e) return !1;
var n = new Object;
n.anim = new Object;
var t = e.split(";");
return t && jQuery.each(t, function(e, t) {
var i = (t = t.split(":"))[0],
a = t[1];
"x" == i && (n.anim.x = a), "y" == i && (n.anim.y = a), "s" == i && (n.speed = parseFloat(a)), "e" != i && "ease" != i || (n.anim.ease = a)
}), n
},
N = function(i, e, t) {
if (null == i && (i = 0), !jQuery.isArray(i) && "string" === jQuery.type(i) && (1 < i.split(",").length || 1 < i.split("[").length)) {
var a = (i = (i = i.replace("[", "")).replace("]", "")).match(/'/g) ? i.split("',") : i.split(",");
i = new Array, a && jQuery.each(a, function(e, t) {
t = (t = t.replace("'", "")).replace("'", ""), i.push(t)
})
} else {
var n = i;
jQuery.isArray(i) || (i = new Array).push(n)
}
n = i[i.length - 1];
if (i.length < e.rle)
for (var r = 1; r <= e.curWinRange; r++) i.push(n);
return i
};
function D(e, t, i, a, n, r, o) {
var s = e.find(t);
s.css("borderWidth", r + "px"), s.css(i, 0 - r + "px"), s.css(a, "0px solid transparent"), s.css(n, o)
}
var v = function(a, e) {
if (void 0 === e) return a;
var t = (e = (e = (e = (e = (e = (e = (e = (e = e.replace("c:", "color:")).replace("bg:", "background-color:")).replace("bw:", "border-width:")).replace("bc:", "border-color:")).replace("br:", "borderRadius:")).replace("bs:", "border-style:")).replace("td:", "text-decoration:")).replace("zi:", "zIndex:")).split(";");
return t && jQuery.each(t, function(e, t) {
var i = t.split(":");
0 < i[0].length && ("background-color" === i[0] && 0 <= i[1].indexOf("gradient") && (i[0] = "background"), a.anim[i[0]] = i[1])
}), a
},
V = function(e, t) {
var i, a = new Object,
n = !1;
if ("rekursive" == t && (i = e.closest(".tp-caption")) && e.css("fontSize") === i.css("fontSize") && e.css("fontWeight") === i.css("fontWeight") && e.css("lineHeight") === i.css("lineHeight") && (n = !0), a.basealign = e.data("basealign") || "grid", a.fontSize = n ? void 0 === i.data("fontsize") ? parseInt(i.css("fontSize"), 0) || 0 : i.data("fontsize") : void 0 === e.data("fontsize") ? parseInt(e.css("fontSize"), 0) || 0 : e.data("fontsize"), a.fontWeight = n ? void 0 === i.data("fontweight") ? parseInt(i.css("fontWeight"), 0) || 0 : i.data("fontweight") : void 0 === e.data("fontweight") ? parseInt(e.css("fontWeight"), 0) || 0 : e.data("fontweight"), a.whiteSpace = n ? void 0 === i.data("whitespace") ? i.css("whitespace") || "normal" : i.data("whitespace") : void 0 === e.data("whitespace") ? e.css("whitespace") || "normal" : e.data("whitespace"), a.textAlign = n ? void 0 === i.data("textalign") ? i.css("textalign") || "inherit" : i.data("textalign") : void 0 === e.data("textalign") ? e.css("textalign") || "inherit" : e.data("textalign"), a.zIndex = n ? void 0 === i.data("zIndex") ? i.css("zIndex") || "inherit" : i.data("zIndex") : void 0 === e.data("zIndex") ? e.css("zIndex") || "inherit" : e.data("zIndex"), -1 !== jQuery.inArray(e.data("layertype"), ["video", "image", "audio"]) || e.is("img") ? a.lineHeight = 0 : a.lineHeight = n ? void 0 === i.data("lineheight") ? parseInt(i.css("lineHeight"), 0) || 0 : i.data("lineheight") : void 0 === e.data("lineheight") ? parseInt(e.css("lineHeight"), 0) || 0 : e.data("lineheight"), a.letterSpacing = n ? void 0 === i.data("letterspacing") ? parseFloat(i.css("letterSpacing"), 0) || 0 : i.data("letterspacing") : void 0 === e.data("letterspacing") ? parseFloat(e.css("letterSpacing")) || 0 : e.data("letterspacing"), a.paddingTop = void 0 === e.data("paddingtop") ? parseInt(e.css("paddingTop"), 0) || 0 : e.data("paddingtop"), a.paddingBottom = void 0 === e.data("paddingbottom") ? parseInt(e.css("paddingBottom"), 0) || 0 : e.data("paddingbottom"), a.paddingLeft = void 0 === e.data("paddingleft") ? parseInt(e.css("paddingLeft"), 0) || 0 : e.data("paddingleft"), a.paddingRight = void 0 === e.data("paddingright") ? parseInt(e.css("paddingRight"), 0) || 0 : e.data("paddingright"), a.marginTop = void 0 === e.data("margintop") ? parseInt(e.css("marginTop"), 0) || 0 : e.data("margintop"), a.marginBottom = void 0 === e.data("marginbottom") ? parseInt(e.css("marginBottom"), 0) || 0 : e.data("marginbottom"), a.marginLeft = void 0 === e.data("marginleft") ? parseInt(e.css("marginLeft"), 0) || 0 : e.data("marginleft"), a.marginRight = void 0 === e.data("marginright") ? parseInt(e.css("marginRight"), 0) || 0 : e.data("marginright"), a.borderTopWidth = void 0 === e.data("bordertopwidth") ? parseInt(e.css("borderTopWidth"), 0) || 0 : e.data("bordertopwidth"), a.borderBottomWidth = void 0 === e.data("borderbottomwidth") ? parseInt(e.css("borderBottomWidth"), 0) || 0 : e.data("borderbottomwidth"), a.borderLeftWidth = void 0 === e.data("borderleftwidth") ? parseInt(e.css("borderLeftWidth"), 0) || 0 : e.data("borderleftwidth"), a.borderRightWidth = void 0 === e.data("borderrightwidth") ? parseInt(e.css("borderRightWidth"), 0) || 0 : e.data("borderrightwidth"), "rekursive" != t) {
if (a.color = void 0 === e.data("color") ? "nopredefinedcolor" : e.data("color"), a.whiteSpace = n ? void 0 === i.data("whitespace") ? i.css("whiteSpace") || "nowrap" : i.data("whitespace") : void 0 === e.data("whitespace") ? e.css("whiteSpace") || "nowrap" : e.data("whitespace"), a.textAlign = n ? void 0 === i.data("textalign") ? i.css("textalign") || "inherit" : i.data("textalign") : void 0 === e.data("textalign") ? e.css("textalign") || "inherit" : e.data("textalign"), a.fontWeight = n ? void 0 === i.data("fontweight") ? parseInt(i.css("fontWeight"), 0) || 0 : i.data("fontweight") : void 0 === e.data("fontweight") ? parseInt(e.css("fontWeight"), 0) || 0 : e.data("fontweight"), a.minWidth = void 0 === e.data("width") ? parseInt(e.css("minWidth"), 0) || 0 : e.data("width"), a.minHeight = void 0 === e.data("height") ? parseInt(e.css("minHeight"), 0) || 0 : e.data("height"), null != e.data("videowidth") && null != e.data("videoheight")) {
var r = e.data("videowidth"),
o = e.data("videoheight");
r = "100%" === r ? "none" : r, o = "100%" === o ? "none" : o, e.data("width", r), e.data("height", o)
}
a.maxWidth = void 0 === e.data("width") ? parseInt(e.css("maxWidth"), 0) || "none" : e.data("width"), a.maxHeight = -1 !== jQuery.inArray(e.data("type"), ["column", "row"]) ? "none" : void 0 === e.data("height") ? parseInt(e.css("maxHeight"), 0) || "none" : e.data("height"), a.wan = void 0 === e.data("wan") ? parseInt(e.css("-webkit-transition"), 0) || "none" : e.data("wan"), a.moan = void 0 === e.data("moan") ? parseInt(e.css("-moz-animation-transition"), 0) || "none" : e.data("moan"), a.man = void 0 === e.data("man") ? parseInt(e.css("-ms-animation-transition"), 0) || "none" : e.data("man"), a.ani = void 0 === e.data("ani") ? parseInt(e.css("transition"), 0) || "none" : e.data("ani")
}
return a.styleProps = {
borderTopLeftRadius: e[0].style.borderTopLeftRadius,
borderTopRightRadius: e[0].style.borderTopRightRadius,
borderBottomRightRadius: e[0].style.borderBottomRightRadius,
borderBottomLeftRadius: e[0].style.borderBottomLeftRadius,
background: e[0].style.background,
boxShadow: e[0].style.boxShadow,
"background-color": e[0].style["background-color"],
"border-top-color": e[0].style["border-top-color"],
"border-bottom-color": e[0].style["border-bottom-color"],
"border-right-color": e[0].style["border-right-color"],
"border-left-color": e[0].style["border-left-color"],
"border-top-style": e[0].style["border-top-style"],
"border-bottom-style": e[0].style["border-bottom-style"],
"border-left-style": e[0].style["border-left-style"],
"border-right-style": e[0].style["border-right-style"],
"border-left-width": e[0].style["border-left-width"],
"border-right-width": e[0].style["border-right-width"],
"border-bottom-width": e[0].style["border-bottom-width"],
"border-top-width": e[0].style["border-top-width"],
color: e[0].style.color,
"text-decoration": e[0].style["text-decoration"],
"font-style": e[0].style["font-style"]
}, "" !== a.styleProps.background && void 0 !== a.styleProps.background && a.styleProps.background !== a.styleProps["background-color"] || delete a.styleProps.background, "" == a.styleProps.color && (a.styleProps.color = e.css("color")), a
},
Z = function(a, n) {
var r = new Object;
return a && jQuery.each(a, function(e, t) {
var i = N(t, n)[n.curWinRange];
r[e] = void 0 !== i ? i : a[e]
}), r
},
_ = function(e, t, i, a) {
return e = "full" === (e = jQuery.isNumeric(e) ? e * t + "px" : e) ? a : "auto" === e || "none" === e ? i : e
},
E = function(e, t, i, a) {
var n = e.data();
n = void 0 === n ? {} : n;
try {
if ("BR" == e[0].nodeName || "br" == e[0].tagName) return !1
} catch (e) {}
n.cssobj = void 0 === n.cssobj ? V(e, i) : n.cssobj;
var r = Z(n.cssobj, t),
o = t.bw,
s = t.bh;
"off" === a && (s = o = 1), "auto" == r.lineHeight && (r.lineHeight = r.fontSize + 4);
var d = {
Top: r.marginTop,
Bottom: r.marginBottom,
Left: r.marginLeft,
Right: r.marginRight
};
if ("column" === n._nctype && (punchgs.TweenLite.set(n._column, {
paddingTop: Math.round(r.marginTop * s) + "px",
paddingBottom: Math.round(r.marginBottom * s) + "px",
paddingLeft: Math.round(r.marginLeft * o) + "px",
paddingRight: Math.round(r.marginRight * o) + "px"
}), d = {
Top: 0,
Bottom: 0,
Left: 0,
Right: 0
}), !e.hasClass("tp-splitted")) {
if (e.css("-webkit-transition", "none"), e.css("-moz-transition", "none"), e.css("-ms-transition", "none"), e.css("transition", "none"), (void 0 !== e.data("transform_hover") || void 0 !== e.data("style_hover")) && punchgs.TweenLite.set(e, r.styleProps), punchgs.TweenLite.set(e, {
fontSize: Math.round(r.fontSize * o) + "px",
fontWeight: r.fontWeight,
letterSpacing: Math.floor(r.letterSpacing * o) + "px",
paddingTop: Math.round(r.paddingTop * s) + "px",
paddingBottom: Math.round(r.paddingBottom * s) + "px",
paddingLeft: Math.round(r.paddingLeft * o) + "px",
paddingRight: Math.round(r.paddingRight * o) + "px",
marginTop: d.Top * s + "px",
marginBottom: d.Bottom * s + "px",
marginLeft: d.Left * o + "px",
marginRight: d.Right * o + "px",
borderTopWidth: Math.round(r.borderTopWidth * s) + "px",
borderBottomWidth: Math.round(r.borderBottomWidth * s) + "px",
borderLeftWidth: Math.round(r.borderLeftWidth * o) + "px",
borderRightWidth: Math.round(r.borderRightWidth * o) + "px",
lineHeight: Math.round(r.lineHeight * s) + "px",
textAlign: r.textAlign,
overwrite: "auto"
}), "rekursive" != i) {
var l = "slide" == r.basealign ? t.ulw : t.gridwidth[t.curWinRange],
m = "slide" == r.basealign ? t.ulh : t.gridheight[t.curWinRange],
c = _(r.maxWidth, o, "none", l),
p = _(r.maxHeight, s, "none", m),
g = _(r.minWidth, o, "0px", l),
u = _(r.minHeight, s, "0px", m);
if (g = void 0 === g ? 0 : g, u = void 0 === u ? 0 : u, c = void 0 === c ? "none" : c, p = void 0 === p ? "none" : p, n._isgroup && ("#1/1#" === g && (g = c = l), "#1/2#" === g && (g = c = l / 2), "#1/3#" === g && (g = c = l / 3), "#1/4#" === g && (g = c = l / 4), "#1/5#" === g && (g = c = l / 5), "#1/6#" === g && (g = c = l / 6), "#2/3#" === g && (g = c = l / 3 * 2), "#3/4#" === g && (g = c = l / 4 * 3), "#2/5#" === g && (g = c = l / 5 * 2), "#3/5#" === g && (g = c = l / 5 * 3), "#4/5#" === g && (g = c = l / 5 * 4), "#3/6#" === g && (g = c = l / 6 * 3), "#4/6#" === g && (g = c = l / 6 * 4), "#5/6#" === g && (g = c = l / 6 * 5)), n._ingroup && (n._groupw = g, n._grouph = u), punchgs.TweenLite.set(e, {
maxWidth: c,
maxHeight: p,
minWidth: g,
minHeight: u,
whiteSpace: r.whiteSpace,
textAlign: r.textAlign,
overwrite: "auto"
}), "nopredefinedcolor" != r.color && punchgs.TweenLite.set(e, {
color: r.color,
overwrite: "auto"
}), null != n.svg_src) {
var f = "nopredefinedcolor" != r.color && null != r.color ? r.color : null != r.css && "nopredefinedcolor" != r.css.color && null != r.css.color ? r.css.color : null != r.styleProps.color ? r.styleProps.color : null != r.styleProps.css && null != r.styleProps.css.color && r.styleProps.css.color;
0 != f && (punchgs.TweenLite.set(e.find("svg"), {
fill: f,
overwrite: "auto"
}), punchgs.TweenLite.set(e.find("svg path"), {
fill: f,
overwrite: "auto"
}))
}
}
"column" === n._nctype && (void 0 === n._column_bg_set && (n._column_bg_set = e.css("backgroundColor"), n._column_bg_image = e.css("backgroundImage"), n._column_bg_image_repeat = e.css("backgroundRepeat"), n._column_bg_image_position = e.css("backgroundPosition"), n._column_bg_image_size = e.css("backgroundSize"), n._column_bg_opacity = e.data("bgopacity"), n._column_bg_opacity = void 0 === n._column_bg_opacity ? 1 : n._column_bg_opacity, punchgs.TweenLite.set(e, {
backgroundColor: "transparent",
backgroundImage: ""
})), setTimeout(function() {
b(e, t)
}, 1), n._cbgc_auto && 0 < n._cbgc_auto.length && (n._cbgc_auto[0].style.backgroundSize = n._column_bg_image_size, jQuery.isArray(r.marginLeft) ? punchgs.TweenLite.set(n._cbgc_auto, {
borderTopWidth: r.marginTop[t.curWinRange] * s + "px",
borderLeftWidth: r.marginLeft[t.curWinRange] * o + "px",
borderRightWidth: r.marginRight[t.curWinRange] * o + "px",
borderBottomWidth: r.marginBottom[t.curWinRange] * s + "px",
backgroundColor: n._column_bg_set,
backgroundImage: n._column_bg_image,
backgroundRepeat: n._column_bg_image_repeat,
backgroundPosition: n._column_bg_image_position,
opacity: n._column_bg_opacity
}) : punchgs.TweenLite.set(n._cbgc_auto, {
borderTopWidth: r.marginTop * s + "px",
borderLeftWidth: r.marginLeft * o + "px",
borderRightWidth: r.marginRight * o + "px",
borderBottomWidth: r.marginBottom * s + "px",
backgroundColor: n._column_bg_set,
backgroundImage: n._column_bg_image,
backgroundRepeat: n._column_bg_image_repeat,
backgroundPosition: n._column_bg_image_position,
opacity: n._column_bg_opacity
}))), setTimeout(function() {
e.css("-webkit-transition", e.data("wan")), e.css("-moz-transition", e.data("moan")), e.css("-ms-transition", e.data("man")), e.css("transition", e.data("ani"))
}, 30)
}
},
b = function(e, t) {
var i, a, n, r = e.data();
r._cbgc_man && 0 < r._cbgc_man.length && (jQuery.isArray(r.cssobj.marginLeft) ? (r.cssobj.marginLeft[t.curWinRange] * t.bw, i = r.cssobj.marginTop[t.curWinRange] * t.bh, a = r.cssobj.marginBottom[t.curWinRange] * t.bh, r.cssobj.marginRight[t.curWinRange], t.bw) : (r.cssobj.marginLeft * t.bw, i = r.cssobj.marginTop * t.bh, a = r.cssobj.marginBottom * t.bh, r.cssobj.marginRight, t.bw), n = r._row.hasClass("rev_break_columns") ? "100%" : r._row.height() - (i + a) + "px", r._cbgc_man[0].style.backgroundSize = r._column_bg_image_size, punchgs.TweenLite.set(r._cbgc_man, {
width: "100%",
height: n,
backgroundColor: r._column_bg_set,
backgroundImage: r._column_bg_image,
backgroundRepeat: r._column_bg_image_repeat,
backgroundPosition: r._column_bg_image_position,
overwrite: "auto",
opacity: r._column_bg_opacity
}))
},
c = function(e, t) {
var i = e.data();
if (e.hasClass("rs-pendulum") && null == i._loop_timeline) {
i._loop_timeline = new punchgs.TimelineLite;
var a = null == e.data("startdeg") ? -20 : e.data("startdeg"),
n = null == e.data("enddeg") ? 20 : e.data("enddeg"),
r = null == e.data("speed") ? 2 : e.data("speed"),
o = null == e.data("origin") ? "50% 50%" : e.data("origin"),
s = null == e.data("easing") ? punchgs.Power2.easeInOut : e.data("easing");
a *= t, n *= t, i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
rotation: a,
transformOrigin: o
}, {
rotation: n,
ease: s
})), i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
rotation: n,
transformOrigin: o
}, {
rotation: a,
ease: s,
onComplete: function() {
i._loop_timeline.restart()
}
}))
}
if (e.hasClass("rs-rotate") && null == i._loop_timeline) {
i._loop_timeline = new punchgs.TimelineLite;
a = null == e.data("startdeg") ? 0 : e.data("startdeg"), n = null == e.data("enddeg") ? 360 : e.data("enddeg"), r = null == e.data("speed") ? 2 : e.data("speed"), o = null == e.data("origin") ? "50% 50%" : e.data("origin"), s = null == e.data("easing") ? punchgs.Power2.easeInOut : e.data("easing");
a *= t, n *= t, i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
rotation: a,
transformOrigin: o
}, {
rotation: n,
ease: s,
onComplete: function() {
i._loop_timeline.restart()
}
}))
}
if (e.hasClass("rs-slideloop") && null == i._loop_timeline) {
i._loop_timeline = new punchgs.TimelineLite;
var d = null == e.data("xs") ? 0 : e.data("xs"),
l = null == e.data("ys") ? 0 : e.data("ys"),
m = null == e.data("xe") ? 0 : e.data("xe"),
c = null == e.data("ye") ? 0 : e.data("ye");
r = null == e.data("speed") ? 2 : e.data("speed"), s = null == e.data("easing") ? punchgs.Power2.easeInOut : e.data("easing");
d *= t, l *= t, m *= t, c *= t, i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
x: d,
y: l
}, {
x: m,
y: c,
ease: s
})), i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
x: m,
y: c
}, {
x: d,
y: l,
onComplete: function() {
i._loop_timeline.restart()
}
}))
}
if (e.hasClass("rs-pulse") && null == i._loop_timeline) {
i._loop_timeline = new punchgs.TimelineLite;
var p = null == e.data("zoomstart") ? 0 : e.data("zoomstart"),
g = null == e.data("zoomend") ? 0 : e.data("zoomend");
r = null == e.data("speed") ? 2 : e.data("speed"), s = null == e.data("easing") ? punchgs.Power2.easeInOut : e.data("easing");
i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
scale: p
}, {
scale: g,
ease: s
})), i._loop_timeline.append(new punchgs.TweenLite.fromTo(e, r, {
force3D: "auto",
scale: g
}, {
scale: p,
onComplete: function() {
i._loop_timeline.restart()
}
}))
}
if (e.hasClass("rs-wave") && null == i._loop_timeline) {
i._loop_timeline = new punchgs.TimelineLite;
var u = null == e.data("angle") ? 10 : parseInt(e.data("angle"), 0),
f = null == e.data("radius") ? 10 : parseInt(e.data("radius"), 0),
h = (r = null == e.data("speed") ? -20 : e.data("speed"), (o = null == e.data("origin") ? "50% 50%" : e.data("origin")).split(" ")),
v = new Object;
1 <= h.length ? (v.x = h[0], v.y = h[1]) : (v.x = "50%", v.y = "50%"), f *= t;
var _ = (parseInt(v.x, 0) / 100 - .5) * e.width(),
b = (parseInt(v.y, 0) / 100 - .5) * e.height(),
y = {
a: 0,
ang: u,
element: e,
unit: f,
xoffset: 0 + _,
yoffset: -1 * f + b
},
w = parseInt(u, 0),
x = new punchgs.TweenLite.fromTo(y, r, {
a: 0 + w
}, {
a: 360 + w,
force3D: "auto",
ease: punchgs.Linear.easeNone
});
x.eventCallback("onUpdate", function(e) {
var t = e.a * (Math.PI / 180),
i = e.yoffset + e.unit * (1 - Math.sin(t)),
a = e.xoffset + Math.cos(t) * e.unit;
punchgs.TweenLite.to(e.element, .1, {
force3D: "auto",
x: a,
y: i
})
}, [y]), x.eventCallback("onComplete", function(e) {
e._loop_timeline.restart()
}, [i]), i._loop_timeline.append(x)
}
},
r = function(e) {
e.closest(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function() {
null != this._loop_timeline && (this._loop_timeline.pause(), this._loop_timeline = null)
})
}
}(jQuery);
#2 JavaScript::Eval (size: 29070) - SHA256: e0a244f4ace8e695c3aa03697b9dd349f5f1abbae8974d87e879274808305595
/************************************************
* REVOLUTION 5.4.8 EXTENSION - SLIDE ANIMATIONS
* @version: 1.8 (17.05.2017)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
************************************************/
! function(t) {
"use strict";
var L = jQuery.fn.revolution,
l = {
alias: "SlideAnimations Min JS",
name: "revolution.extensions.slideanims.min.js",
min_core: "5.4.5",
version: "1.8"
};
jQuery.extend(!0, L, {
animateSlide: function(t, e, o, a, i, n, r, s) {
return "stop" === L.compare_version(l).check ? s : d(t, e, o, a, i, n, r, s)
}
});
var ct = function(t, e, o, a) {
var i = t,
n = i.find(".defaultimg"),
r = n.data("mediafilter"),
s = i.data("zoomstart"),
l = i.data("rotationstart");
null != n.data("currotate") && (l = n.data("currotate")), null != n.data("curscale") && "box" == a ? s = 100 * n.data("curscale") : null != n.data("curscale") && (s = n.data("curscale")), L.slotSize(n, e);
var d = n.attr("src"),
h = n.data("bgcolor"),
f = e.width,
c = e.height,
u = n.data("fxof");
void 0 === h && (h = n.css("backgroundColor")), "on" == e.autoHeight && (c = e.c.height()), null == u && (u = 0);
var p = 0,
g = n.data("bgfit"),
w = n.data("bgrepeat"),
m = n.data("bgposition");
null == g && (g = "cover"), null == w && (w = "no-repeat"), null == m && (m = "center center");
var v = "";
switch (v = void 0 !== h && 0 <= h.indexOf("gradient") ? "background:" + h : "background-color:" + h + ";background-image:url(" + d + ");background-repeat:" + w + ";background-size:" + g + ";background-position:" + m, a) {
case "box":
for (var y = 0, x = 0, T = 0; T < e.slots; T++) {
for (var z = x = 0; z < e.slots; z++) i.append('<div class="slot" style="position:absolute;top:' + (0 + x) + "px;left:" + (u + y) + "px;width:" + e.slotw + "px;height:" + e.sloth + 'px;overflow:hidden;"><div class="slotslide ' + r + '" data-x="' + y + '" data-y="' + x + '" style="position:absolute;top:0px;left:0px;width:' + e.slotw + "px;height:" + e.sloth + 'px;overflow:hidden;"><div style="position:absolute;top:' + (0 - x) + "px;left:" + (0 - y) + "px;width:" + f + "px;height:" + c + "px;" + v + ';"></div></div></div>'), x += e.sloth, null != s && null != l && punchgs.TweenLite.set(i.find(".slot").last(), {
rotationZ: l
});
y += e.slotw
}
break;
case "vertical":
case "horizontal":
if ("horizontal" == a) {
if (!o) p = 0 - e.slotw;
for (z = 0; z < e.slots; z++) i.append('<div class="slot" style="position:absolute;top:0px;left:' + (u + z * e.slotw) + "px;overflow:hidden;width:" + (e.slotw + .3) + "px;height:" + c + 'px"><div class="slotslide ' + r + '" style="position:absolute;top:0px;left:' + p + "px;width:" + (e.slotw + .6) + "px;height:" + c + 'px;overflow:hidden;"><div style="position:absolute;top:0px;left:' + (0 - z * e.slotw) + "px;width:" + f + "px;height:" + c + "px;" + v + ';"></div></div></div>'), null != s && null != l && punchgs.TweenLite.set(i.find(".slot").last(), {
rotationZ: l
})
} else {
if (!o) p = 0 - e.sloth;
for (z = 0; z < e.slots + 2; z++) i.append('<div class="slot" style="position:absolute;top:' + (0 + z * e.sloth) + "px;left:" + u + "px;overflow:hidden;width:" + f + "px;height:" + e.sloth + 'px"><div class="slotslide ' + r + '" style="position:absolute;top:' + p + "px;left:0px;width:" + f + "px;height:" + e.sloth + 'px;overflow:hidden;"><div style="position:absolute;top:' + (0 - z * e.sloth) + "px;left:0px;width:" + f + "px;height:" + c + "px;" + v + ';"></div></div></div>'), null != s && null != l && punchgs.TweenLite.set(i.find(".slot").last(), {
rotationZ: l
})
}
}
};
var ut = function(t, e) {
return null == e || jQuery.isNumeric(t) ? t : null == t ? t : t.split(",")[e]
},
d = function(a, t, e, o, i, n, r, s) {
var l = e[0].opt,
d = i.index(),
h = o.index() < d ? 1 : 0;
"arrow" == l.sc_indicator && (h = l.sc_indicator_dir);
var f = function(t, o, e, a) {
var i = t[0].opt,
n = punchgs.Power1.easeIn,
r = punchgs.Power1.easeOut,
s = punchgs.Power1.easeInOut,
l = punchgs.Power2.easeIn,
d = punchgs.Power2.easeOut,
h = punchgs.Power2.easeInOut,
f = (punchgs.Power3.easeIn, punchgs.Power3.easeOut),
c = punchgs.Power3.easeInOut,
u = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45],
p = [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27],
g = 0,
w = 1,
m = 0,
v = 0,
y = (new Array, [
["boxslide", 0, 1, 10, 0, "box", !1, null, 0, r, r, 500, 6],
["boxfade", 1, 0, 10, 0, "box", !1, null, 1, s, s, 700, 5],
["slotslide-horizontal", 2, 0, 0, 200, "horizontal", !0, !1, 2, h, h, 700, 3],
["slotslide-vertical", 3, 0, 0, 200, "vertical", !0, !1, 3, h, h, 700, 3],
["curtain-1", 4, 3, 0, 0, "horizontal", !0, !0, 4, r, r, 300, 5],
["curtain-2", 5, 3, 0, 0, "horizontal", !0, !0, 5, r, r, 300, 5],
["curtain-3", 6, 3, 25, 0, "horizontal", !0, !0, 6, r, r, 300, 5],
["slotzoom-horizontal", 7, 0, 0, 400, "horizontal", !0, !0, 7, r, r, 300, 7],
["slotzoom-vertical", 8, 0, 0, 0, "vertical", !0, !0, 8, d, d, 500, 8],
["slotfade-horizontal", 9, 0, 0, 1e3, "horizontal", !0, null, 9, d, d, 2e3, 10],
["slotfade-vertical", 10, 0, 0, 1e3, "vertical", !0, null, 10, d, d, 2e3, 10],
["fade", 11, 0, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["crossfade", 11, 1, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["fadethroughdark", 11, 2, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["fadethroughlight", 11, 3, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["fadethroughtransparent", 11, 4, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["slideleft", 12, 0, 1, 0, "horizontal", !0, !0, 12, c, c, 1e3, 1],
["slideup", 13, 0, 1, 0, "horizontal", !0, !0, 13, c, c, 1e3, 1],
["slidedown", 14, 0, 1, 0, "horizontal", !0, !0, 14, c, c, 1e3, 1],
["slideright", 15, 0, 1, 0, "horizontal", !0, !0, 15, c, c, 1e3, 1],
["slideoverleft", 12, 7, 1, 0, "horizontal", !0, !0, 12, c, c, 1e3, 1],
["slideoverup", 13, 7, 1, 0, "horizontal", !0, !0, 13, c, c, 1e3, 1],
["slideoverdown", 14, 7, 1, 0, "horizontal", !0, !0, 14, c, c, 1e3, 1],
["slideoverright", 15, 7, 1, 0, "horizontal", !0, !0, 15, c, c, 1e3, 1],
["slideremoveleft", 12, 8, 1, 0, "horizontal", !0, !0, 12, c, c, 1e3, 1],
["slideremoveup", 13, 8, 1, 0, "horizontal", !0, !0, 13, c, c, 1e3, 1],
["slideremovedown", 14, 8, 1, 0, "horizontal", !0, !0, 14, c, c, 1e3, 1],
["slideremoveright", 15, 8, 1, 0, "horizontal", !0, !0, 15, c, c, 1e3, 1],
["papercut", 16, 0, 0, 600, "", null, null, 16, c, c, 1e3, 2],
["3dcurtain-horizontal", 17, 0, 20, 100, "vertical", !1, !0, 17, s, s, 500, 7],
["3dcurtain-vertical", 18, 0, 10, 100, "horizontal", !1, !0, 18, s, s, 500, 5],
["cubic", 19, 0, 20, 600, "horizontal", !1, !0, 19, c, c, 500, 1],
["cube", 19, 0, 20, 600, "horizontal", !1, !0, 20, c, c, 500, 1],
["flyin", 20, 0, 4, 600, "vertical", !1, !0, 21, f, c, 500, 1],
["turnoff", 21, 0, 1, 500, "horizontal", !1, !0, 22, c, c, 500, 1],
["incube", 22, 0, 20, 200, "horizontal", !1, !0, 23, h, h, 500, 1],
["cubic-horizontal", 23, 0, 20, 500, "vertical", !1, !0, 24, d, d, 500, 1],
["cube-horizontal", 23, 0, 20, 500, "vertical", !1, !0, 25, d, d, 500, 1],
["incube-horizontal", 24, 0, 20, 500, "vertical", !1, !0, 26, h, h, 500, 1],
["turnoff-vertical", 25, 0, 1, 200, "horizontal", !1, !0, 27, h, h, 500, 1],
["fadefromright", 12, 1, 1, 0, "horizontal", !0, !0, 28, h, h, 1e3, 1],
["fadefromleft", 15, 1, 1, 0, "horizontal", !0, !0, 29, h, h, 1e3, 1],
["fadefromtop", 14, 1, 1, 0, "horizontal", !0, !0, 30, h, h, 1e3, 1],
["fadefrombottom", 13, 1, 1, 0, "horizontal", !0, !0, 31, h, h, 1e3, 1],
["fadetoleftfadefromright", 12, 2, 1, 0, "horizontal", !0, !0, 32, h, h, 1e3, 1],
["fadetorightfadefromleft", 15, 2, 1, 0, "horizontal", !0, !0, 33, h, h, 1e3, 1],
["fadetobottomfadefromtop", 14, 2, 1, 0, "horizontal", !0, !0, 34, h, h, 1e3, 1],
["fadetotopfadefrombottom", 13, 2, 1, 0, "horizontal", !0, !0, 35, h, h, 1e3, 1],
["parallaxtoright", 15, 3, 1, 0, "horizontal", !0, !0, 36, h, l, 1500, 1],
["parallaxtoleft", 12, 3, 1, 0, "horizontal", !0, !0, 37, h, l, 1500, 1],
["parallaxtotop", 14, 3, 1, 0, "horizontal", !0, !0, 38, h, n, 1500, 1],
["parallaxtobottom", 13, 3, 1, 0, "horizontal", !0, !0, 39, h, n, 1500, 1],
["scaledownfromright", 12, 4, 1, 0, "horizontal", !0, !0, 40, h, l, 1e3, 1],
["scaledownfromleft", 15, 4, 1, 0, "horizontal", !0, !0, 41, h, l, 1e3, 1],
["scaledownfromtop", 14, 4, 1, 0, "horizontal", !0, !0, 42, h, l, 1e3, 1],
["scaledownfrombottom", 13, 4, 1, 0, "horizontal", !0, !0, 43, h, l, 1e3, 1],
["zoomout", 13, 5, 1, 0, "horizontal", !0, !0, 44, h, l, 1e3, 1],
["zoomin", 13, 6, 1, 0, "horizontal", !0, !0, 45, h, l, 1e3, 1],
["slidingoverlayup", 27, 0, 1, 0, "horizontal", !0, !0, 47, s, r, 2e3, 1],
["slidingoverlaydown", 28, 0, 1, 0, "horizontal", !0, !0, 48, s, r, 2e3, 1],
["slidingoverlayright", 30, 0, 1, 0, "horizontal", !0, !0, 49, s, r, 2e3, 1],
["slidingoverlayleft", 29, 0, 1, 0, "horizontal", !0, !0, 50, s, r, 2e3, 1],
["parallaxcirclesup", 31, 0, 1, 0, "horizontal", !0, !0, 51, h, n, 1500, 1],
["parallaxcirclesdown", 32, 0, 1, 0, "horizontal", !0, !0, 52, h, n, 1500, 1],
["parallaxcirclesright", 33, 0, 1, 0, "horizontal", !0, !0, 53, h, n, 1500, 1],
["parallaxcirclesleft", 34, 0, 1, 0, "horizontal", !0, !0, 54, h, n, 1500, 1],
["notransition", 26, 0, 1, 0, "horizontal", !0, null, 46, h, l, 1e3, 1],
["parallaxright", 15, 3, 1, 0, "horizontal", !0, !0, 55, h, l, 1500, 1],
["parallaxleft", 12, 3, 1, 0, "horizontal", !0, !0, 56, h, l, 1500, 1],
["parallaxup", 14, 3, 1, 0, "horizontal", !0, !0, 57, h, n, 1500, 1],
["parallaxdown", 13, 3, 1, 0, "horizontal", !0, !0, 58, h, n, 1500, 1],
["grayscale", 11, 5, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["grayscalecross", 11, 6, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["brightness", 11, 7, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["brightnesscross", 11, 8, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["blurlight", 11, 9, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["blurlightcross", 11, 10, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["blurstrong", 11, 9, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1],
["blurstrongcross", 11, 10, 1, 300, "horizontal", !0, null, 11, h, h, 1e3, 1]
]);
i.duringslidechange = !0, i.testanims = !1, 1 == i.testanims && (i.nexttesttransform = void 0 === i.nexttesttransform ? 34 : i.nexttesttransform + 1, i.nexttesttransform = 70 < i.nexttesttransform ? 0 : i.nexttesttransform, o = y[i.nexttesttransform][0], console.log(o + " " + i.nexttesttransform + " " + y[i.nexttesttransform][1] + " " + y[i.nexttesttransform][2])), jQuery.each(["parallaxcircles", "slidingoverlay", "slide", "slideover", "slideremove", "parallax", "parralaxto"], function(t, e) {
o == e + "horizontal" && (o = 1 != a ? e + "left" : e + "right"), o == e + "vertical" && (o = 1 != a ? e + "up" : e + "down")
}), "random" == o && (o = Math.round(Math.random() * y.length - 1), y.length - 1 < o && (o = y.length - 1)), "random-static" == o && (o = Math.round(Math.random() * u.length - 1), u.length - 1 < o && (o = u.length - 1), o = u[o]), "random-premium" == o && (o = Math.round(Math.random() * p.length - 1), p.length - 1 < o && (o = p.length - 1), o = p[o]);
if (1 == i.isJoomla && null != window.MooTools && -1 != [12, 13, 14, 15, 16, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45].indexOf(o)) {
var x = Math.round(Math.random() * (p.length - 2)) + 1;
p.length - 1 < x && (x = p.length - 1), 0 == x && (x = 1), o = p[x]
}
jQuery.each(y, function(t, e) {
e[0] != o && e[8] != o || (g = e[1], w = e[2], m = v), v += 1
}), 30 < g && (g = 30), g < 0 && (g = 0);
var T = new Object;
return T.nexttrans = g, T.STA = y[m], T.specials = w, T
}(e, t, 0, h),
c = f.STA,
u = f.specials;
a = f.nexttrans;
"on" == n.data("kenburns") && (a = 11);
var p = o.data("nexttransid") || 0,
g = ut(o.data("masterspeed"), p);
g = (g = "default" === g ? c[11] : "random" === g ? Math.round(1e3 * Math.random() + 300) : null != g ? parseInt(g, 0) : c[11]) > l.delay ? l.delay : g, g += c[4], l.slots = ut(o.data("slotamount"), p), l.slots = null == l.slots || "default" == l.slots ? c[12] : "random" == l.slots ? Math.round(12 * Math.random() + 4) : l.slots, l.slots = l.slots < 1 ? "boxslide" == t ? Math.round(6 * Math.random() + 3) : "flyin" == t ? Math.round(4 * Math.random() + 1) : l.slots : l.slots, l.slots = (4 == a || 5 == a || 6 == a) && l.slots < 3 ? 3 : l.slots, l.slots = 0 != c[3] ? Math.min(l.slots, c[3]) : l.slots, l.slots = 9 == a ? l.width / l.slots : 10 == a ? l.height / l.slots : l.slots, l.rotate = ut(o.data("rotate"), p), l.rotate = null == l.rotate || "default" == l.rotate ? 0 : 999 == l.rotate || "random" == l.rotate ? Math.round(360 * Math.random()) : l.rotate, l.rotate = l.ie || l.ie9 ? 0 : l.rotate, 11 != a && (null != c[7] && ct(r, l, c[7], c[5]), null != c[6] && ct(n, l, c[6], c[5])), s.add(punchgs.TweenLite.set(n.find(".defaultvid"), {
y: 0,
x: 0,
top: 0,
left: 0,
scale: 1
}), 0), s.add(punchgs.TweenLite.set(r.find(".defaultvid"), {
y: 0,
x: 0,
top: 0,
left: 0,
scale: 1
}), 0), s.add(punchgs.TweenLite.set(n.find(".defaultvid"), {
y: "+0%",
x: "+0%"
}), 0), s.add(punchgs.TweenLite.set(r.find(".defaultvid"), {
y: "+0%",
x: "+0%"
}), 0), s.add(punchgs.TweenLite.set(n, {
autoAlpha: 1,
y: "+0%",
x: "+0%"
}), 0), s.add(punchgs.TweenLite.set(r, {
autoAlpha: 1,
y: "+0%",
x: "+0%"
}), 0), s.add(punchgs.TweenLite.set(n.parent(), {
backgroundColor: "transparent"
}), 0), s.add(punchgs.TweenLite.set(r.parent(), {
backgroundColor: "transparent"
}), 0);
var w = ut(o.data("easein"), p),
m = ut(o.data("easeout"), p);
if (w = "default" === w ? c[9] || punchgs.Power2.easeInOut : w || c[9] || punchgs.Power2.easeInOut, m = "default" === m ? c[10] || punchgs.Power2.easeInOut : m || c[10] || punchgs.Power2.easeInOut, 0 == a) {
var v = Math.ceil(l.height / l.sloth),
y = 0;
n.find(".slotslide").each(function(t) {
var e = jQuery(this);
(y += 1) == v && (y = 0), s.add(punchgs.TweenLite.from(e, g / 600, {
opacity: 0,
top: 0 - l.sloth,
left: 0 - l.slotw,
rotation: l.rotate,
force3D: "auto",
ease: w
}), (15 * t + 30 * y) / 1500)
})
}
if (1 == a) {
var x;
n.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = Math.random() * g + 300,
a = 500 * Math.random() + 200;
x < o + a && (x = a + a, t), s.add(punchgs.TweenLite.from(e, o / 1e3, {
autoAlpha: 0,
force3D: "auto",
rotation: l.rotate,
ease: w
}), a / 1e3)
})
}
if (2 == a) {
var T = new punchgs.TimelineLite;
r.find(".slotslide").each(function() {
var t = jQuery(this);
T.add(punchgs.TweenLite.to(t, g / 1e3, {
left: l.slotw,
ease: w,
force3D: "auto",
rotation: 0 - l.rotate
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function() {
var t = jQuery(this);
T.add(punchgs.TweenLite.from(t, g / 1e3, {
left: 0 - l.slotw,
ease: w,
force3D: "auto",
rotation: l.rotate
}), 0), s.add(T, 0)
})
}
if (3 == a) {
T = new punchgs.TimelineLite;
r.find(".slotslide").each(function() {
var t = jQuery(this);
T.add(punchgs.TweenLite.to(t, g / 1e3, {
top: l.sloth,
ease: w,
rotation: l.rotate,
force3D: "auto",
transformPerspective: 600
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function() {
var t = jQuery(this);
T.add(punchgs.TweenLite.from(t, g / 1e3, {
top: 0 - l.sloth,
rotation: l.rotate,
ease: m,
force3D: "auto",
transformPerspective: 600
}), 0), s.add(T, 0)
})
}
if (4 == a || 5 == a) {
setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100);
var z = g / 1e3;
T = new punchgs.TimelineLite;
r.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = t * z / l.slots;
5 == a && (o = (l.slots - t - 1) * z / l.slots / 1.5), T.add(punchgs.TweenLite.to(e, 3 * z, {
transformPerspective: 600,
force3D: "auto",
top: 0 + l.height,
opacity: .5,
rotation: l.rotate,
ease: w,
delay: o
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = t * z / l.slots;
5 == a && (o = (l.slots - t - 1) * z / l.slots / 1.5), T.add(punchgs.TweenLite.from(e, 3 * z, {
top: 0 - l.height,
opacity: .5,
rotation: l.rotate,
force3D: "auto",
ease: punchgs.eo,
delay: o
}), 0), s.add(T, 0)
})
}
if (6 == a) {
l.slots < 2 && (l.slots = 2), l.slots % 2 && (l.slots = l.slots + 1);
T = new punchgs.TimelineLite;
setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100), r.find(".slotslide").each(function(t) {
var e = jQuery(this);
if (t + 1 < l.slots / 2) var o = 90 * (t + 2);
else o = 90 * (2 + l.slots - t);
T.add(punchgs.TweenLite.to(e, (g + o) / 1e3, {
top: 0 + l.height,
opacity: 1,
force3D: "auto",
rotation: l.rotate,
ease: w
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this);
if (t + 1 < l.slots / 2) var o = 90 * (t + 2);
else o = 90 * (2 + l.slots - t);
T.add(punchgs.TweenLite.from(e, (g + o) / 1e3, {
top: 0 - l.height,
opacity: 1,
force3D: "auto",
rotation: l.rotate,
ease: m
}), 0), s.add(T, 0)
})
}
if (7 == a) {
(g *= 2) > l.delay && (g = l.delay);
T = new punchgs.TimelineLite;
setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100), r.find(".slotslide").each(function() {
var t = jQuery(this).find("div");
T.add(punchgs.TweenLite.to(t, g / 1e3, {
left: 0 - l.slotw / 2 + "px",
top: 0 - l.height / 2 + "px",
width: 2 * l.slotw + "px",
height: 2 * l.height + "px",
opacity: 0,
rotation: l.rotate,
force3D: "auto",
ease: w
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this).find("div");
T.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: 0,
top: 0,
opacity: 0,
transformPerspective: 600
}, {
left: 0 - t * l.slotw + "px",
ease: m,
force3D: "auto",
top: "0px",
width: l.width,
height: l.height,
opacity: 1,
rotation: 0,
delay: .1
}), 0), s.add(T, 0)
})
}
if (8 == a) {
(g *= 3) > l.delay && (g = l.delay);
T = new punchgs.TimelineLite;
r.find(".slotslide").each(function() {
var t = jQuery(this).find("div");
T.add(punchgs.TweenLite.to(t, g / 1e3, {
left: 0 - l.width / 2 + "px",
top: 0 - l.sloth / 2 + "px",
width: 2 * l.width + "px",
height: 2 * l.sloth + "px",
force3D: "auto",
ease: w,
opacity: 0,
rotation: l.rotate
}), 0), s.add(T, 0)
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this).find("div");
T.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: 0,
top: 0,
opacity: 0,
force3D: "auto"
}, {
left: "0px",
top: 0 - t * l.sloth + "px",
width: n.find(".defaultimg").data("neww") + "px",
height: n.find(".defaultimg").data("newh") + "px",
opacity: 1,
ease: m,
rotation: 0
}), 0), s.add(T, 0)
})
}
if (9 == a || 10 == a) {
n.find(".slotslide").each(function(t) {
var e = jQuery(this);
0, s.add(punchgs.TweenLite.fromTo(e, g / 2e3, {
autoAlpha: 0,
force3D: "auto",
transformPerspective: 600
}, {
autoAlpha: 1,
ease: w,
delay: t * l.slots / 100 / 2e3
}), 0)
})
}
if (27 == a || 28 == a || 29 == a || 30 == a) {
var L = n.find(".slot"),
b = 27 == a || 29 == a ? "-100%" : "+100%",
A = 27 == a || 29 == a ? "+100%" : "-100%",
D = 27 == a || 29 == a ? "-80%" : "80%",
j = 27 == a || 29 == a ? "+80%" : "-80%",
Q = 27 == a || 29 == a ? "+10%" : "-10%",
M = {
overwrite: "all"
},
P = {
autoAlpha: 0,
zIndex: 1,
force3D: "auto",
ease: w
},
k = {
position: "inherit",
autoAlpha: 0,
overwrite: "all",
zIndex: 1
},
O = {
autoAlpha: 1,
force3D: "auto",
ease: m
},
I = {
overwrite: "all",
zIndex: 2,
opacity: 1,
autoAlpha: 1
},
X = {
autoAlpha: 1,
force3D: "auto",
overwrite: "all",
ease: w
},
Y = {
overwrite: "all",
zIndex: 2,
autoAlpha: 1
},
S = {
autoAlpha: 1,
force3D: "auto",
ease: w
},
_ = 1 == (27 == a || 28 == a ? 1 : 2) ? "y" : "x";
M[_] = "0px", P[_] = b, k[_] = Q, O[_] = "0%", I[_] = A, X[_] = b, Y[_] = D, S[_] = j, L.append('<span style="background-color:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0px;left:0px;display:block;z-index:2"></span>'), s.add(punchgs.TweenLite.fromTo(r, g / 1e3, M, P), 0), s.add(punchgs.TweenLite.fromTo(n.find(".defaultimg"), g / 2e3, k, O), g / 2e3), s.add(punchgs.TweenLite.fromTo(L, g / 1e3, I, X), 0), s.add(punchgs.TweenLite.fromTo(L.find(".slotslide div"), g / 1e3, Y, S), 0)
}
if (31 == a || 32 == a || 33 == a || 34 == a) {
g = 6e3, w = punchgs.Power3.easeInOut;
var C = g / 1e3;
mas = C - C / 5, _nt = a, fy = 31 == _nt ? "+100%" : 32 == _nt ? "-100%" : "0%", fx = 33 == _nt ? "+100%" : 34 == _nt ? "-100%" : "0%", ty = 31 == _nt ? "-100%" : 32 == _nt ? "+100%" : "0%", tx = 33 == _nt ? "-100%" : 34 == _nt ? "+100%" : "0%", s.add(punchgs.TweenLite.fromTo(r, C - .2 * C, {
y: 0,
x: 0
}, {
y: ty,
x: tx,
ease: m
}), .2 * C), s.add(punchgs.TweenLite.fromTo(n, C, {
y: fy,
x: fx
}, {
y: "0%",
x: "0%",
ease: w
}), 0), n.find(".slot").remove(), n.find(".defaultimg").clone().appendTo(n).addClass("slot"),
function(t, f, c, e, u) {
var o = t.find(".slot"),
p = [2, 1.2, .9, .7, .55, .42],
g = t.width(),
w = t.height();
o.wrap('<div class="slot-circle-wrapper" style="overflow:hidden;position:absolute;border:1px solid #fff"></div>');
for (var a = 0; a < 6; a++) o.parent().clone(!1).appendTo(nextsh);
t.find(".slot-circle-wrapper").each(function(t) {
if (t < 6) {
var e = jQuery(this),
o = e.find(".slot"),
a = w < g ? p[t] * g : p[t] * w,
i = a / 2 - g / 2 + 0,
n = a / 2 - w / 2 + 0,
r = {
scale: 1,
transformOrigo: "50% 50%",
width: a + "px",
height: a + "px",
top: w / 2 - a / 2 + "px",
left: (33 == c ? g / 2 - a / 2 : 34 == c ? g - a : g / 2 - a / 2) + "px",
borderRadius: 0 != t ? "50%" : "0"
},
s = {
scale: 1,
top: w / 2 - a / 2,
left: g / 2 - a / 2,
ease: u
},
l = {
width: g,
height: w,
autoAlpha: 1,
top: n + "px",
position: "absolute",
left: (33 == c ? i : 34 == c ? i + g / 2 : i) + "px"
},
d = {
top: n + "px",
left: i + "px",
ease: u
},
h = f;
mtl.add(punchgs.TweenLite.fromTo(e, h, r, s), 0), mtl.add(punchgs.TweenLite.fromTo(o, h, l, d), 0), mtl.add(punchgs.TweenLite.fromTo(e, .001, {
autoAlpha: 0
}, {
autoAlpha: 1
}), 0)
}
})
}(n, C, _nt, 0, w)
}
if (11 == a) {
12 < u && (u = 0);
var V = 2 == u ? "#000000" : 3 == u ? "#ffffff" : "transparent";
switch (u) {
case 0:
s.add(punchgs.TweenLite.fromTo(n, g / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: w
}), 0);
break;
case 1:
s.add(punchgs.TweenLite.fromTo(n, g / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: w
}), 0), s.add(punchgs.TweenLite.fromTo(r, g / 1e3, {
autoAlpha: 1
}, {
autoAlpha: 0,
force3D: "auto",
ease: w
}), 0);
break;
case 2:
case 3:
case 4:
s.add(punchgs.TweenLite.set(r.parent(), {
backgroundColor: V,
force3D: "auto"
}), 0), s.add(punchgs.TweenLite.set(n.parent(), {
backgroundColor: "transparent",
force3D: "auto"
}), 0), s.add(punchgs.TweenLite.to(r, g / 2e3, {
autoAlpha: 0,
force3D: "auto",
ease: w
}), 0), s.add(punchgs.TweenLite.fromTo(n, g / 2e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: w
}), g / 2e3);
break;
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
var Z = "blur(" + (0 <= jQuery.inArray(u, [9, 10]) ? 5 : 0 <= jQuery.inArray(u, [11, 12]) ? 10 : 0) + "px) grayscale(" + (0 <= jQuery.inArray(u, [5, 6, 7, 8]) ? 100 : 0) + "%) brightness(" + (0 <= jQuery.inArray(u, [7, 8]) ? 300 : 0) + "%)",
H = "blur(0px) grayscale(0%) brightness(100%)";
s.add(punchgs.TweenLite.fromTo(n, g / 1e3, {
autoAlpha: 0,
filter: Z,
"-webkit-filter": Z
}, {
autoAlpha: 1,
filter: H,
"-webkit-filter": H,
force3D: "auto",
ease: w
}), 0), 0 <= jQuery.inArray(u, [6, 8, 10]) && s.add(punchgs.TweenLite.fromTo(r, g / 1e3, {
autoAlpha: 1,
filter: H,
"-webkit-filter": H
}, {
autoAlpha: 0,
force3D: "auto",
ease: w,
filter: Z,
"-webkit-filter": Z
}), 0)
}
s.add(punchgs.TweenLite.set(n.find(".defaultimg"), {
autoAlpha: 1
}), 0), s.add(punchgs.TweenLite.set(r.find("defaultimg"), {
autoAlpha: 1
}), 0)
}
if (26 == a) {
g = 0, s.add(punchgs.TweenLite.fromTo(n, g / 1e3, {
autoAlpha: 0
}, {
autoAlpha: 1,
force3D: "auto",
ease: w
}), 0), s.add(punchgs.TweenLite.to(r, g / 1e3, {
autoAlpha: 0,
force3D: "auto",
ease: w
}), 0), s.add(punchgs.TweenLite.set(n.find(".defaultimg"), {
autoAlpha: 1
}), 0), s.add(punchgs.TweenLite.set(r.find("defaultimg"), {
autoAlpha: 1
}), 0)
}
if (12 == a || 13 == a || 14 == a || 15 == a) {
(g = g) > l.delay && (g = l.delay), setTimeout(function() {
punchgs.TweenLite.set(r.find(".defaultimg"), {
autoAlpha: 0
})
}, 100);
var J = l.width,
N = l.height,
R = n.find(".slotslide, .defaultvid"),
q = 0,
B = 0,
E = 1,
F = 1,
G = 1,
K = g / 1e3,
U = K;
"fullwidth" != l.sliderLayout && "fullscreen" != l.sliderLayout || (J = R.width(), N = R.height()), 12 == a ? q = J : 15 == a ? q = 0 - J : 13 == a ? B = N : 14 == a && (B = 0 - N), 1 == u && (E = 0), 2 == u && (E = 0), 3 == u && (K = g / 1300), 4 != u && 5 != u || (F = .6), 6 == u && (F = 1.4), 5 != u && 6 != u || (G = 1.4, B = q = N = J = E = 0), 6 == u && (G = .6);
7 == u && (N = J = 0);
var W = n.find(".slotslide"),
$ = r.find(".slotslide, .defaultvid");
if (s.add(punchgs.TweenLite.set(i, {
zIndex: 15
}), 0), s.add(punchgs.TweenLite.set(o, {
zIndex: 20
}), 0), 8 == u ? (s.add(punchgs.TweenLite.set(i, {
zIndex: 20
}), 0), s.add(punchgs.TweenLite.set(o, {
zIndex: 15
}), 0), s.add(punchgs.TweenLite.set(W, {
left: 0,
top: 0,
scale: 1,
opacity: 1,
rotation: 0,
ease: w,
force3D: "auto"
}), 0)) : s.add(punchgs.TweenLite.from(W, K, {
left: q,
top: B,
scale: G,
opacity: E,
rotation: l.rotate,
ease: w,
force3D: "auto"
}), 0), 4 != u && 5 != u || (N = J = 0), 1 != u) switch (a) {
case 12:
s.add(punchgs.TweenLite.to($, U, {
left: 0 - J + "px",
force3D: "auto",
scale: F,
opacity: E,
rotation: l.rotate,
ease: m
}), 0);
break;
case 15:
s.add(punchgs.TweenLite.to($, U, {
left: J + "px",
force3D: "auto",
scale: F,
opacity: E,
rotation: l.rotate,
ease: m
}), 0);
break;
case 13:
s.add(punchgs.TweenLite.to($, U, {
top: 0 - N + "px",
force3D: "auto",
scale: F,
opacity: E,
rotation: l.rotate,
ease: m
}), 0);
break;
case 14:
s.add(punchgs.TweenLite.to($, U, {
top: N + "px",
force3D: "auto",
scale: F,
opacity: E,
rotation: l.rotate,
ease: m
}), 0)
}
}
if (16 == a) {
T = new punchgs.TimelineLite;
s.add(punchgs.TweenLite.set(i, {
position: "absolute",
"z-index": 20
}), 0), s.add(punchgs.TweenLite.set(o, {
position: "absolute",
"z-index": 15
}), 0), i.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'), i.find(".tp-half-one").clone(!0).appendTo(i).addClass("tp-half-two"), i.find(".tp-half-two").removeClass("tp-half-one");
J = l.width, N = l.height;
"on" == l.autoHeight && (N = e.height()), i.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:' + J + "px;height:" + N + 'px;"></div>'), i.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:' + J + "px;height:" + N + 'px;"></div>'), i.find(".tp-half-two .defaultimg").css({
position: "absolute",
top: "-50%"
}), i.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'), s.add(punchgs.TweenLite.set(i.find(".tp-half-two"), {
width: J,
height: N,
overflow: "hidden",
zIndex: 15,
position: "absolute",
top: N / 2,
left: "0px",
transformPerspective: 600,
transformOrigin: "center bottom"
}), 0), s.add(punchgs.TweenLite.set(i.find(".tp-half-one"), {
width: J,
height: N / 2,
overflow: "visible",
zIndex: 10,
position: "absolute",
top: "0px",
left: "0px",
transformPerspective: 600,
transformOrigin: "center top"
}), 0);
i.find(".defaultimg");
var tt = Math.round(20 * Math.random() - 10),
et = Math.round(20 * Math.random() - 10),
ot = Math.round(20 * Math.random() - 10),
at = .4 * Math.random() - .2,
it = .4 * Math.random() - .2,
nt = 1 * Math.random() + 1,
rt = 1 * Math.random() + 1,
st = .3 * Math.random() + .3;
s.add(punchgs.TweenLite.set(i.find(".tp-half-one"), {
overflow: "hidden"
}), 0), s.add(punchgs.TweenLite.fromTo(i.find(".tp-half-one"), g / 800, {
width: J,
height: N / 2,
position: "absolute",
top: "0px",
left: "0px",
force3D: "auto",
transformOrigin: "center top"
}, {
scale: nt,
rotation: tt,
y: 0 - N - N / 4,
autoAlpha: 0,
ease: w
}), 0), s.add(punchgs.TweenLite.fromTo(i.find(".tp-half-two"), g / 800, {
width: J,
height: N,
overflow: "hidden",
position: "absolute",
top: N / 2,
left: "0px",
force3D: "auto",
transformOrigin: "center bottom"
}, {
scale: rt,
rotation: et,
y: N + N / 4,
ease: w,
autoAlpha: 0,
onComplete: function() {
punchgs.TweenLite.set(i, {
position: "absolute",
"z-index": 15
}), punchgs.TweenLite.set(o, {
position: "absolute",
"z-index": 20
}), 0 < i.find(".tp-half-one").length && (i.find(".tp-half-one .defaultimg").unwrap(), i.find(".tp-half-one .slotholder").unwrap()), i.find(".tp-half-two").remove()
}
}), 0), T.add(punchgs.TweenLite.set(n.find(".defaultimg"), {
autoAlpha: 1
}), 0), null != i.html() && s.add(punchgs.TweenLite.fromTo(o, (g - 200) / 1e3, {
scale: st,
x: l.width / 4 * at,
y: N / 4 * it,
rotation: ot,
force3D: "auto",
transformOrigin: "center center",
ease: m
}, {
autoAlpha: 1,
scale: 1,
x: 0,
y: 0,
rotation: 0
}), 0), s.add(T, 0)
}
if (17 == a && n.find(".slotslide").each(function(t) {
var e = jQuery(this);
s.add(punchgs.TweenLite.fromTo(e, g / 800, {
opacity: 0,
rotationY: 0,
scale: .9,
rotationX: -110,
force3D: "auto",
transformPerspective: 600,
transformOrigin: "center center"
}, {
opacity: 1,
top: 0,
left: 0,
scale: 1,
rotation: 0,
rotationX: 0,
force3D: "auto",
rotationY: 0,
ease: w,
delay: .06 * t
}), 0)
}), 18 == a && n.find(".slotslide").each(function(t) {
var e = jQuery(this);
s.add(punchgs.TweenLite.fromTo(e, g / 500, {
autoAlpha: 0,
rotationY: 110,
scale: .9,
rotationX: 10,
force3D: "auto",
transformPerspective: 600,
transformOrigin: "center center"
}, {
autoAlpha: 1,
top: 0,
left: 0,
scale: 1,
rotation: 0,
rotationX: 0,
force3D: "auto",
rotationY: 0,
ease: w,
delay: .06 * t
}), 0)
}), 19 == a || 22 == a) {
T = new punchgs.TimelineLite;
s.add(punchgs.TweenLite.set(i, {
zIndex: 20
}), 0), s.add(punchgs.TweenLite.set(o, {
zIndex: 20
}), 0), setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100);
var lt = 90,
dt = (E = 1, "center center ");
1 == h && (lt = -90), 19 == a ? (dt = dt + "-" + l.height / 2, E = 0) : dt += l.height / 2, punchgs.TweenLite.set(e, {
transformStyle: "flat",
backfaceVisibility: "hidden",
transformPerspective: 600
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this);
T.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
transformStyle: "flat",
backfaceVisibility: "hidden",
left: 0,
rotationY: l.rotate,
z: 10,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: dt,
rotationX: lt
}, {
left: 0,
rotationY: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
rotationX: 0,
delay: 50 * t / 1e3,
ease: w
}), 0), T.add(punchgs.TweenLite.to(e, .1, {
autoAlpha: 1,
delay: 50 * t / 1e3
}), 0), s.add(T)
}), r.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = -90;
1 == h && (o = 90), T.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
transformStyle: "flat",
backfaceVisibility: "hidden",
autoAlpha: 1,
rotationY: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: dt,
rotationX: 0
}, {
autoAlpha: 1,
rotationY: l.rotate,
top: 0,
z: 10,
scale: 1,
rotationX: o,
delay: 50 * t / 1e3,
force3D: "auto",
ease: m
}), 0), s.add(T)
}), s.add(punchgs.TweenLite.set(i, {
zIndex: 18
}), 0)
}
if (20 == a) {
if (setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100), 1 == h) {
var ht = -l.width;
lt = 80, dt = "20% 70% -" + l.height / 2
} else ht = l.width, lt = -80, dt = "80% 70% -" + l.height / 2;
n.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = 50 * t / 1e3;
s.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: ht,
rotationX: 40,
z: -600,
opacity: E,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 600,
transformOrigin: dt,
transformStyle: "flat",
rotationY: lt
}, {
left: 0,
rotationX: 0,
opacity: 1,
top: 0,
z: 0,
scale: 1,
rotationY: 0,
delay: o,
ease: w
}), 0)
}), r.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = 50 * t / 1e3;
if (o = 0 < t ? o + g / 9e3 : 0, 1 != h) var a = -l.width / 2,
i = 30,
n = "20% 70% -" + l.height / 2;
else a = l.width / 2, i = -30, n = "80% 70% -" + l.height / 2;
m = punchgs.Power2.easeInOut, s.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
opacity: 1,
rotationX: 0,
top: 0,
z: 0,
scale: 1,
left: 0,
force3D: "auto",
transformPerspective: 600,
transformOrigin: n,
transformStyle: "flat",
rotationY: 0
}, {
opacity: 1,
rotationX: 20,
top: 0,
z: -600,
left: a,
force3D: "auto",
rotationY: i,
delay: o,
ease: m
}), 0)
})
}
if (21 == a || 25 == a) {
setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100);
lt = 90, ht = -l.width;
var ft = -lt;
if (1 == h)
if (25 == a) {
dt = "center top 0";
lt = l.rotate
} else {
dt = "left center 0";
ft = l.rotate
} else if (ht = l.width, lt = -90, 25 == a) {
dt = "center bottom 0";
ft = -lt, lt = l.rotate
} else {
dt = "right center 0";
ft = l.rotate
}
n.find(".slotslide").each(function(t) {
var e = jQuery(this),
o = g / 1.5 / 3;
s.add(punchgs.TweenLite.fromTo(e, 2 * o / 1e3, {
left: 0,
transformStyle: "flat",
rotationX: ft,
z: 0,
autoAlpha: 0,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 1200,
transformOrigin: dt,
rotationY: lt
}, {
left: 0,
rotationX: 0,
top: 0,
z: 0,
autoAlpha: 1,
scale: 1,
rotationY: 0,
force3D: "auto",
delay: o / 1e3,
ease: w
}), 0)
}), 1 != h ? (ht = -l.width, lt = 90, 25 == a ? (dt = "center top 0", ft = -lt, lt = l.rotate) : (dt = "left center 0", ft = l.rotate)) : (ht = l.width, lt = -90, 25 == a ? (dt = "center bottom 0", ft = -lt, lt = l.rotate) : (dt = "right center 0", ft = l.rotate)), r.find(".slotslide").each(function(t) {
var e = jQuery(this);
s.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: 0,
transformStyle: "flat",
rotationX: 0,
z: 0,
autoAlpha: 1,
top: 0,
scale: 1,
force3D: "auto",
transformPerspective: 1200,
transformOrigin: dt,
rotationY: 0
}, {
left: 0,
rotationX: ft,
top: 0,
z: 0,
autoAlpha: 1,
force3D: "auto",
scale: 1,
rotationY: lt,
ease: m
}), 0)
})
}
if (23 == a || 24 == a) {
setTimeout(function() {
r.find(".defaultimg").css({
opacity: 0
})
}, 100);
lt = -90, E = 1;
if (1 == h && (lt = 90), 23 == a) {
dt = "center center -" + l.width / 2;
E = 0
} else dt = "center center " + l.width / 2;
punchgs.TweenLite.set(e, {
transformStyle: "preserve-3d",
backfaceVisibility: "hidden",
perspective: 2500
}), n.find(".slotslide").each(function(t) {
var e = jQuery(this);
s.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: 0,
rotationX: l.rotate,
force3D: "auto",
opacity: E,
top: 0,
scale: 1,
transformPerspective: 1200,
transformOrigin: dt,
rotationY: lt
}, {
left: 0,
rotationX: 0,
autoAlpha: 1,
top: 0,
z: 0,
scale: 1,
rotationY: 0,
delay: 50 * t / 500,
ease: w
}), 0)
}), lt = 90, 1 == h && (lt = -90), r.find(".slotslide").each(function(t) {
var e = jQuery(this);
s.add(punchgs.TweenLite.fromTo(e, g / 1e3, {
left: 0,
rotationX: 0,
top: 0,
z: 0,
scale: 1,
force3D: "auto",
transformStyle: "flat",
transformPerspective: 1200,
transformOrigin: dt,
rotationY: 0
}, {
left: 0,
rotationX: l.rotate,
top: 0,
scale: 1,
rotationY: lt,
delay: 50 * t / 500,
ease: m
}), 0), 23 == a && s.add(punchgs.TweenLite.fromTo(e, g / 2e3, {
autoAlpha: 1
}, {
autoAlpha: 0,
delay: 50 * t / 500 + g / 3e3,
ease: m
}), 0)
})
}
return s
}
}(jQuery);
#3 JavaScript::Eval (size: 26103) - SHA256: 38da5f0c3fd471c5a28d03d7155aba416ae2562ba4a73a2ca3920b19e4b47a63
/********************************************
* REVOLUTION 5.4.8 EXTENSION - NAVIGATION
* @version: 1.3.5 (06.04.2017)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
! function(a) {
"use strict";
var b = jQuery.fn.revolution,
c = b.is_mobile(),
d = {
alias: "Navigation Min JS",
name: "revolution.extensions.navigation.min.js",
min_core: "5.4.0",
version: "1.3.5"
};
jQuery.extend(!0, b, {
hideUnHideNav: function(a) {
var b = a.c.width(),
c = a.navigation.arrows,
d = a.navigation.bullets,
e = a.navigation.thumbnails,
f = a.navigation.tabs;
m(c) && y(a.c.find(".tparrows"), c.hide_under, b, c.hide_over), m(d) && y(a.c.find(".tp-bullets"), d.hide_under, b, d.hide_over), m(e) && y(a.c.parent().find(".tp-thumbs"), e.hide_under, b, e.hide_over), m(f) && y(a.c.parent().find(".tp-tabs"), f.hide_under, b, f.hide_over), x(a)
},
resizeThumbsTabs: function(a, b) {
if (a.navigation && a.navigation.tabs.enable || a.navigation && a.navigation.thumbnails.enable) {
var c = (jQuery(window).width() - 480) / 500,
d = new punchgs.TimelineLite,
e = a.navigation.tabs,
g = a.navigation.thumbnails,
h = a.navigation.bullets;
if (d.pause(), c = c > 1 ? 1 : c < 0 ? 0 : c, m(e) && (b || e.width > e.min_width) && f(c, d, a.c, e, a.slideamount, "tab"), m(g) && (b || g.width > g.min_width) && f(c, d, a.c, g, a.slideamount, "thumb"), m(h) && b) {
var i = a.c.find(".tp-bullets");
i.find(".tp-bullet").each(function(a) {
var b = jQuery(this),
c = a + 1,
d = b.outerWidth() + parseInt(void 0 === h.space ? 0 : h.space, 0),
e = b.outerHeight() + parseInt(void 0 === h.space ? 0 : h.space, 0);
"vertical" === h.direction ? (b.css({
top: (c - 1) * e + "px",
left: "0px"
}), i.css({
height: (c - 1) * e + b.outerHeight(),
width: b.outerWidth()
})) : (b.css({
left: (c - 1) * d + "px",
top: "0px"
}), i.css({
width: (c - 1) * d + b.outerWidth(),
height: b.outerHeight()
}))
})
}
d.play(), x(a)
}
return !0
},
updateNavIndexes: function(a) {
function d(a) {
c.find(a).lenght > 0 && c.find(a).each(function(a) {
jQuery(this).data("liindex", a)
})
}
var c = a.c;
d(".tp-tab"), d(".tp-bullet"), d(".tp-thumb"), b.resizeThumbsTabs(a, !0), b.manageNavigation(a)
},
manageNavigation: function(a) {
var c = b.getHorizontalOffset(a.c.parent(), "left"),
d = b.getHorizontalOffset(a.c.parent(), "right");
m(a.navigation.bullets) && ("fullscreen" != a.sliderLayout && "fullwidth" != a.sliderLayout && (a.navigation.bullets.h_offset_old = void 0 === a.navigation.bullets.h_offset_old ? a.navigation.bullets.h_offset : a.navigation.bullets.h_offset_old, a.navigation.bullets.h_offset = "center" === a.navigation.bullets.h_align ? a.navigation.bullets.h_offset_old + c / 2 - d / 2 : a.navigation.bullets.h_offset_old + c - d), t(a.c.find(".tp-bullets"), a.navigation.bullets, a)), m(a.navigation.thumbnails) && t(a.c.parent().find(".tp-thumbs"), a.navigation.thumbnails, a), m(a.navigation.tabs) && t(a.c.parent().find(".tp-tabs"), a.navigation.tabs, a), m(a.navigation.arrows) && ("fullscreen" != a.sliderLayout && "fullwidth" != a.sliderLayout && (a.navigation.arrows.left.h_offset_old = void 0 === a.navigation.arrows.left.h_offset_old ? a.navigation.arrows.left.h_offset : a.navigation.arrows.left.h_offset_old, a.navigation.arrows.left.h_offset = "right" === a.navigation.arrows.left.h_align ? a.navigation.arrows.left.h_offset_old + d : a.navigation.arrows.left.h_offset_old + c, a.navigation.arrows.right.h_offset_old = void 0 === a.navigation.arrows.right.h_offset_old ? a.navigation.arrows.right.h_offset : a.navigation.arrows.right.h_offset_old, a.navigation.arrows.right.h_offset = "right" === a.navigation.arrows.right.h_align ? a.navigation.arrows.right.h_offset_old + d : a.navigation.arrows.right.h_offset_old + c), t(a.c.find(".tp-leftarrow.tparrows"), a.navigation.arrows.left, a), t(a.c.find(".tp-rightarrow.tparrows"), a.navigation.arrows.right, a)), m(a.navigation.thumbnails) && e(a.c.parent().find(".tp-thumbs"), a.navigation.thumbnails), m(a.navigation.tabs) && e(a.c.parent().find(".tp-tabs"), a.navigation.tabs)
},
createNavigation: function(a, f) {
if ("stop" === b.compare_version(d).check) return !1;
var g = a.parent(),
j = f.navigation.arrows,
n = f.navigation.bullets,
r = f.navigation.thumbnails,
s = f.navigation.tabs,
t = m(j),
v = m(n),
x = m(r),
y = m(s);
h(a, f), i(a, f), t && q(a, j, f), f.li.each(function(b) {
var c = jQuery(f.li[f.li.length - 1 - b]),
d = jQuery(this);
v && (f.navigation.bullets.rtl ? u(a, n, c, f) : u(a, n, d, f)), x && (f.navigation.thumbnails.rtl ? w(a, r, c, "tp-thumb", f) : w(a, r, d, "tp-thumb", f)), y && (f.navigation.tabs.rtl ? w(a, s, c, "tp-tab", f) : w(a, s, d, "tp-tab", f))
}), a.bind("revolution.slide.onafterswap revolution.nextslide.waiting", function() {
var b = 0 == a.find(".next-revslide").length ? a.find(".active-revslide").data("index") : a.find(".next-revslide").data("index");
a.find(".tp-bullet").each(function() {
var a = jQuery(this);
a.data("liref") === b ? a.addClass("selected") : a.removeClass("selected")
}), g.find(".tp-thumb, .tp-tab").each(function() {
var a = jQuery(this);
a.data("liref") === b ? (a.addClass("selected"), a.hasClass("tp-tab") ? e(g.find(".tp-tabs"), s) : e(g.find(".tp-thumbs"), r)) : a.removeClass("selected")
});
var c = 0,
d = !1;
f.thumbs && jQuery.each(f.thumbs, function(a, e) {
c = !1 === d ? a : c, d = e.id === b || a === b || d
});
var h = c > 0 ? c - 1 : f.slideamount - 1,
i = c + 1 == f.slideamount ? 0 : c + 1;
if (!0 === j.enable) {
var k = j.tmp;
if (void 0 != f.thumbs[h] && jQuery.each(f.thumbs[h].params, function(a, b) {
k = k.replace(b.from, b.to)
}), j.left.j.html(k), k = j.tmp, i > f.slideamount) return;
jQuery.each(f.thumbs[i].params, function(a, b) {
k = k.replace(b.from, b.to)
}), j.right.j.html(k), j.rtl ? (punchgs.TweenLite.set(j.left.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + f.thumbs[i].src + ")"
}), punchgs.TweenLite.set(j.right.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + f.thumbs[h].src + ")"
})) : (punchgs.TweenLite.set(j.left.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + f.thumbs[h].src + ")"
}), punchgs.TweenLite.set(j.right.j.find(".tp-arr-imgholder"), {
backgroundImage: "url(" + f.thumbs[i].src + ")"
}))
}
}), l(j), l(n), l(r), l(s), g.on("mouseenter mousemove", function() {
g.hasClass("tp-mouseover") || (g.addClass("tp-mouseover"), punchgs.TweenLite.killDelayedCallsTo(p), t && j.hide_onleave && p(g.find(".tparrows"), j, "show"), v && n.hide_onleave && p(g.find(".tp-bullets"), n, "show"), x && r.hide_onleave && p(g.find(".tp-thumbs"), r, "show"), y && s.hide_onleave && p(g.find(".tp-tabs"), s, "show"), c && (g.removeClass("tp-mouseover"), o(a, f)))
}), g.on("mouseleave", function() {
g.removeClass("tp-mouseover"), o(a, f)
}), t && j.hide_onleave && p(g.find(".tparrows"), j, "hide", 0), v && n.hide_onleave && p(g.find(".tp-bullets"), n, "hide", 0), x && r.hide_onleave && p(g.find(".tp-thumbs"), r, "hide", 0), y && s.hide_onleave && p(g.find(".tp-tabs"), s, "hide", 0), x && k(g.find(".tp-thumbs"), f), y && k(g.find(".tp-tabs"), f), "carousel" === f.sliderType && k(a, f, !0), ("on" === f.navigation.touch.touchOnDesktop || "on" == f.navigation.touch.touchenabled && c) && k(a, f, "swipebased")
}
});
var e = function(a, b) {
var d = (a.hasClass("tp-thumbs"), a.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask"),
e = a.hasClass("tp-thumbs") ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
f = a.hasClass("tp-thumbs") ? ".tp-thumb" : ".tp-tab",
g = a.find(d),
h = g.find(e),
i = b.direction,
j = "vertical" === i ? g.find(f).first().outerHeight(!0) + b.space : g.find(f).first().outerWidth(!0) + b.space,
k = "vertical" === i ? g.height() : g.width(),
l = parseInt(g.find(f + ".selected").data("liindex"), 0),
m = k / j,
n = "vertical" === i ? g.height() : g.width(),
o = 0 - l * j,
p = "vertical" === i ? h.height() : h.width(),
q = o < 0 - (p - n) ? 0 - (p - n) : q > 0 ? 0 : o,
r = h.data("offset");
m > 2 && (q = o - (r + j) <= 0 ? o - (r + j) < 0 - j ? r : q + j : q, q = o - j + r + k < j && o + (Math.round(m) - 2) * j < r ? o + (Math.round(m) - 2) * j : q), q = q < 0 - (p - n) ? 0 - (p - n) : q > 0 ? 0 : q, "vertical" !== i && g.width() >= h.width() && (q = 0), "vertical" === i && g.height() >= h.height() && (q = 0), a.hasClass("dragged") || ("vertical" === i ? h.data("tmmove", punchgs.TweenLite.to(h, .5, {
top: q + "px",
ease: punchgs.Power3.easeInOut
})) : h.data("tmmove", punchgs.TweenLite.to(h, .5, {
left: q + "px",
ease: punchgs.Power3.easeInOut
})), h.data("offset", q))
},
f = function(a, b, c, d, e, f) {
var g = c.parent().find(".tp-" + f + "s"),
h = g.find(".tp-" + f + "s-inner-wrapper"),
i = g.find(".tp-" + f + "-mask"),
j = d.width * a < d.min_width ? d.min_width : Math.round(d.width * a),
k = Math.round(j / d.width * d.height),
l = "vertical" === d.direction ? j : j * e + d.space * (e - 1),
m = "vertical" === d.direction ? k * e + d.space * (e - 1) : k,
n = "vertical" === d.direction ? {
width: j + "px"
} : {
height: k + "px"
};
b.add(punchgs.TweenLite.set(g, n)), b.add(punchgs.TweenLite.set(h, {
width: l + "px",
height: m + "px"
})), b.add(punchgs.TweenLite.set(i, {
width: l + "px",
height: m + "px"
}));
var o = h.find(".tp-" + f);
return o && jQuery.each(o, function(a, c) {
"vertical" === d.direction ? b.add(punchgs.TweenLite.set(c, {
top: a * (k + parseInt(void 0 === d.space ? 0 : d.space, 0)),
width: j + "px",
height: k + "px"
})) : "horizontal" === d.direction && b.add(punchgs.TweenLite.set(c, {
left: a * (j + parseInt(void 0 === d.space ? 0 : d.space, 0)),
width: j + "px",
height: k + "px"
}))
}), b
},
g = function(a) {
var b = 0,
c = 0,
d = 0,
e = 0,
f = 1,
g = 1,
h = 1;
return "detail" in a && (c = a.detail), "wheelDelta" in a && (c = -a.wheelDelta / 120), "wheelDeltaY" in a && (c = -a.wheelDeltaY / 120), "wheelDeltaX" in a && (b = -a.wheelDeltaX / 120), "axis" in a && a.axis === a.HORIZONTAL_AXIS && (b = c, c = 0), d = b * f, e = c * f, "deltaY" in a && (e = a.deltaY), "deltaX" in a && (d = a.deltaX), (d || e) && a.deltaMode && (1 == a.deltaMode ? (d *= g, e *= g) : (d *= h, e *= h)), d && !b && (b = d < 1 ? -1 : 1), e && !c && (c = e < 1 ? -1 : 1), e = navigator.userAgent.match(/mozilla/i) ? 10 * e : e, (e > 300 || e < -300) && (e /= 10), {
spinX: b,
spinY: c,
pixelX: d,
pixelY: e
}
},
h = function(a, c) {
"on" === c.navigation.keyboardNavigation && jQuery(document).keydown(function(d) {
("horizontal" == c.navigation.keyboard_direction && 39 == d.keyCode || "vertical" == c.navigation.keyboard_direction && 40 == d.keyCode) && (c.sc_indicator = "arrow", c.sc_indicator_dir = 0, b.callingNewSlide(a, 1)), ("horizontal" == c.navigation.keyboard_direction && 37 == d.keyCode || "vertical" == c.navigation.keyboard_direction && 38 == d.keyCode) && (c.sc_indicator = "arrow", c.sc_indicator_dir = 1, b.callingNewSlide(a, -1))
})
},
i = function(a, c) {
if ("on" === c.navigation.mouseScrollNavigation || "carousel" === c.navigation.mouseScrollNavigation) {
c.isIEEleven = !!navigator.userAgent.match(/Trident.*rv\:11\./), c.isSafari = !!navigator.userAgent.match(/safari/i), c.ischrome = !!navigator.userAgent.match(/chrome/i);
var d = c.ischrome ? -49 : c.isIEEleven || c.isSafari ? -9 : navigator.userAgent.match(/mozilla/i) ? -29 : -49,
e = c.ischrome ? 49 : c.isIEEleven || c.isSafari ? 9 : navigator.userAgent.match(/mozilla/i) ? 29 : 49;
a.on("mousewheel DOMMouseScroll", function(f) {
var h = g(f.originalEvent),
i = a.find(".tp-revslider-slidesli.active-revslide").index(),
j = a.find(".tp-revslider-slidesli.processing-revslide").index(),
k = -1 != i && 0 == i || -1 != j && 0 == j,
l = -1 != i && i == c.slideamount - 1 || 1 != j && j == c.slideamount - 1,
m = !0;
"carousel" == c.navigation.mouseScrollNavigation && (k = l = !1), -1 == j ? h.pixelY < d ? (k || (c.sc_indicator = "arrow", "reverse" !== c.navigation.mouseScrollReverse && (c.sc_indicator_dir = 1, b.callingNewSlide(a, -1)), m = !1), l || (c.sc_indicator = "arrow", "reverse" === c.navigation.mouseScrollReverse && (c.sc_indicator_dir = 0, b.callingNewSlide(a, 1)), m = !1)) : h.pixelY > e && (l || (c.sc_indicator = "arrow", "reverse" !== c.navigation.mouseScrollReverse && (c.sc_indicator_dir = 0, b.callingNewSlide(a, 1)), m = !1), k || (c.sc_indicator = "arrow", "reverse" === c.navigation.mouseScrollReverse && (c.sc_indicator_dir = 1, b.callingNewSlide(a, -1)), m = !1)) : m = !1;
var n = c.c.offset().top - jQuery("body").scrollTop(),
o = n + c.c.height();
return "carousel" != c.navigation.mouseScrollNavigation ? ("reverse" !== c.navigation.mouseScrollReverse && (n > 0 && h.pixelY > 0 || o < jQuery(window).height() && h.pixelY < 0) && (m = !0), "reverse" === c.navigation.mouseScrollReverse && (n < 0 && h.pixelY < 0 || o > jQuery(window).height() && h.pixelY > 0) && (m = !0)) : m = !1, 0 == m ? (f.preventDefault(f), !1) : void 0
})
}
},
j = function(a, b, d) {
return a = c ? jQuery(d.target).closest("." + a).length || jQuery(d.srcElement).closest("." + a).length : jQuery(d.toElement).closest("." + a).length || jQuery(d.originalTarget).closest("." + a).length, !0 === a || 1 === a ? 1 : 0
},
k = function(a, d, e) {
var f = d.carousel;
jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"), f.Limit = "endless";
var h = (c || b.get_browser(), a),
i = "vertical" === d.navigation.thumbnails.direction || "vertical" === d.navigation.tabs.direction ? "none" : "vertical",
k = d.navigation.touch.swipe_direction || "horizontal";
i = "swipebased" == e && "vertical" == k ? "none" : e ? "vertical" : i, jQuery.fn.swipetp || (jQuery.fn.swipetp = jQuery.fn.swipe), jQuery.fn.swipetp.defaults && jQuery.fn.swipetp.defaults.excludedElements || jQuery.fn.swipetp.defaults || (jQuery.fn.swipetp.defaults = new Object), jQuery.fn.swipetp.defaults.excludedElements = "label, button, input, select, textarea, .noSwipe", h.swipetp({
allowPageScroll: i,
triggerOnTouchLeave: !0,
treshold: d.navigation.touch.swipe_treshold,
fingers: d.navigation.touch.swipe_min_touches,
excludeElements: jQuery.fn.swipetp.defaults.excludedElements,
swipeStatus: function(e, g, h, i, l, m, n) {
var o = j("rev_slider_wrapper", a, e),
p = j("tp-thumbs", a, e),
q = j("tp-tabs", a, e),
r = jQuery(this).attr("class"),
s = !!r.match(/tp-tabs|tp-thumb/gi);
if ("carousel" === d.sliderType && (("move" === g || "end" === g || "cancel" == g) && d.dragStartedOverSlider && !d.dragStartedOverThumbs && !d.dragStartedOverTabs || "start" === g && o > 0 && 0 === p && 0 === q)) {
if (c && ("up" === h || "down" === h)) return;
switch (d.dragStartedOverSlider = !0, i = h && h.match(/left|up/g) ? Math.round(-1 * i) : i = Math.round(1 * i), g) {
case "start":
void 0 !== f.positionanim && (f.positionanim.kill(), f.slide_globaloffset = "off" === f.infinity ? f.slide_offset : b.simp(f.slide_offset, f.maxwidth)), f.overpull = "none", f.wrap.addClass("dragged");
break;
case "move":
if (d.c.find(".tp-withaction").addClass("tp-temporarydisabled"), f.slide_offset = "off" === f.infinity ? f.slide_globaloffset + i : b.simp(f.slide_globaloffset + i, f.maxwidth), "off" === f.infinity) {
var t = "center" === f.horizontal_align ? (f.wrapwidth / 2 - f.slide_width / 2 - f.slide_offset) / f.slide_width : (0 - f.slide_offset) / f.slide_width;
"none" !== f.overpull && 0 !== f.overpull || !(t < 0 || t > d.slideamount - 1) ? t >= 0 && t <= d.slideamount - 1 && (t >= 0 && i > f.overpull || t <= d.slideamount - 1 && i < f.overpull) && (f.overpull = 0) : f.overpull = i, f.slide_offset = t < 0 ? f.slide_offset + (f.overpull - i) / 1.1 + Math.sqrt(Math.abs((f.overpull - i) / 1.1)) : t > d.slideamount - 1 ? f.slide_offset + (f.overpull - i) / 1.1 - Math.sqrt(Math.abs((f.overpull - i) / 1.1)) : f.slide_offset
}
b.organiseCarousel(d, h, !0, !0);
break;
case "end":
case "cancel":
f.slide_globaloffset = f.slide_offset, f.wrap.removeClass("dragged"), b.carouselToEvalPosition(d, h), d.dragStartedOverSlider = !1, d.dragStartedOverThumbs = !1, d.dragStartedOverTabs = !1, setTimeout(function() {
d.c.find(".tp-withaction").removeClass("tp-temporarydisabled")
}, 19)
}
} else {
if (("move" !== g && "end" !== g && "cancel" != g || d.dragStartedOverSlider || !d.dragStartedOverThumbs && !d.dragStartedOverTabs) && !("start" === g && o > 0 && (p > 0 || q > 0))) {
if ("end" == g && !s) {
if (d.sc_indicator = "arrow", "horizontal" == k && "left" == h || "vertical" == k && "up" == h) return d.sc_indicator_dir = 0, b.callingNewSlide(d.c, 1), !1;
if ("horizontal" == k && "right" == h || "vertical" == k && "down" == h) return d.sc_indicator_dir = 1, b.callingNewSlide(d.c, -1), !1
}
return d.dragStartedOverSlider = !1, d.dragStartedOverThumbs = !1, d.dragStartedOverTabs = !1, !0
}
p > 0 && (d.dragStartedOverThumbs = !0), q > 0 && (d.dragStartedOverTabs = !0);
var u = d.dragStartedOverThumbs ? ".tp-thumbs" : ".tp-tabs",
v = d.dragStartedOverThumbs ? ".tp-thumb-mask" : ".tp-tab-mask",
w = d.dragStartedOverThumbs ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
x = d.dragStartedOverThumbs ? ".tp-thumb" : ".tp-tab",
y = d.dragStartedOverThumbs ? d.navigation.thumbnails : d.navigation.tabs;
i = h && h.match(/left|up/g) ? Math.round(-1 * i) : i = Math.round(1 * i);
var z = a.parent().find(v),
A = z.find(w),
B = y.direction,
C = "vertical" === B ? A.height() : A.width(),
D = "vertical" === B ? z.height() : z.width(),
E = "vertical" === B ? z.find(x).first().outerHeight(!0) + y.space : z.find(x).first().outerWidth(!0) + y.space,
F = void 0 === A.data("offset") ? 0 : parseInt(A.data("offset"), 0),
G = 0;
switch (g) {
case "start":
a.parent().find(u).addClass("dragged"), F = "vertical" === B ? A.position().top : A.position().left, A.data("offset", F), A.data("tmmove") && A.data("tmmove").pause();
break;
case "move":
if (C <= D) return !1;
G = F + i, G = G > 0 ? "horizontal" === B ? G - A.width() * (G / A.width() * G / A.width()) : G - A.height() * (G / A.height() * G / A.height()) : G;
var H = "vertical" === B ? 0 - (A.height() - z.height()) : 0 - (A.width() - z.width());
G = G < H ? "horizontal" === B ? G + A.width() * (G - H) / A.width() * (G - H) / A.width() : G + A.height() * (G - H) / A.height() * (G - H) / A.height() : G, "vertical" === B ? punchgs.TweenLite.set(A, {
top: G + "px"
}) : punchgs.TweenLite.set(A, {
left: G + "px"
});
break;
case "end":
case "cancel":
if (s) return G = F + i, G = "vertical" === B ? G < 0 - (A.height() - z.height()) ? 0 - (A.height() - z.height()) : G : G < 0 - (A.width() - z.width()) ? 0 - (A.width() - z.width()) : G, G = G > 0 ? 0 : G, G = Math.abs(i) > E / 10 ? i <= 0 ? Math.floor(G / E) * E : Math.ceil(G / E) * E : i < 0 ? Math.ceil(G / E) * E : Math.floor(G / E) * E, G = "vertical" === B ? G < 0 - (A.height() - z.height()) ? 0 - (A.height() - z.height()) : G : G < 0 - (A.width() - z.width()) ? 0 - (A.width() - z.width()) : G, G = G > 0 ? 0 : G, "vertical" === B ? punchgs.TweenLite.to(A, .5, {
top: G + "px",
ease: punchgs.Power3.easeOut
}) : punchgs.TweenLite.to(A, .5, {
left: G + "px",
ease: punchgs.Power3.easeOut
}), G = G || ("vertical" === B ? A.position().top : A.position().left), A.data("offset", G), A.data("distance", i), setTimeout(function() {
d.dragStartedOverSlider = !1, d.dragStartedOverThumbs = !1, d.dragStartedOverTabs = !1
}, 100), a.parent().find(u).removeClass("dragged"), !1
}
}
}
})
},
l = function(a) {
a.hide_delay = jQuery.isNumeric(parseInt(a.hide_delay, 0)) ? a.hide_delay / 1e3 : .2, a.hide_delay_mobile = jQuery.isNumeric(parseInt(a.hide_delay_mobile, 0)) ? a.hide_delay_mobile / 1e3 : .2
},
m = function(a) {
return a && a.enable
},
n = function(a) {
return a && a.enable && !0 === a.hide_onleave && (void 0 === a.position || !a.position.match(/outer/g))
},
o = function(a, b) {
var d = a.parent();
n(b.navigation.arrows) && punchgs.TweenLite.delayedCall(c ? b.navigation.arrows.hide_delay_mobile : b.navigation.arrows.hide_delay, p, [d.find(".tparrows"), b.navigation.arrows, "hide"]), n(b.navigation.bullets) && punchgs.TweenLite.delayedCall(c ? b.navigation.bullets.hide_delay_mobile : b.navigation.bullets.hide_delay, p, [d.find(".tp-bullets"), b.navigation.bullets, "hide"]), n(b.navigation.thumbnails) && punchgs.TweenLite.delayedCall(c ? b.navigation.thumbnails.hide_delay_mobile : b.navigation.thumbnails.hide_delay, p, [d.find(".tp-thumbs"), b.navigation.thumbnails, "hide"]), n(b.navigation.tabs) && punchgs.TweenLite.delayedCall(c ? b.navigation.tabs.hide_delay_mobile : b.navigation.tabs.hide_delay, p, [d.find(".tp-tabs"), b.navigation.tabs, "hide"])
},
p = function(a, b, c, d) {
switch (d = void 0 === d ? .5 : d, c) {
case "show":
punchgs.TweenLite.to(a, d, {
autoAlpha: 1,
ease: punchgs.Power3.easeInOut,
overwrite: "auto"
});
break;
case "hide":
punchgs.TweenLite.to(a, d, {
autoAlpha: 0,
ease: punchgs.Power3.easeInOu,
overwrite: "auto"
})
}
},
q = function(a, b, c) {
b.style = void 0 === b.style ? "" : b.style, b.left.style = void 0 === b.left.style ? "" : b.left.style, b.right.style = void 0 === b.right.style ? "" : b.right.style, 0 === a.find(".tp-leftarrow.tparrows").length && a.append('<div class="tp-leftarrow tparrows ' + b.style + " " + b.left.style + '">' + b.tmp + "</div>"), 0 === a.find(".tp-rightarrow.tparrows").length && a.append('<div class="tp-rightarrow tparrows ' + b.style + " " + b.right.style + '">' + b.tmp + "</div>");
var d = a.find(".tp-leftarrow.tparrows"),
e = a.find(".tp-rightarrow.tparrows");
b.rtl ? (d.click(function() {
c.sc_indicator = "arrow", c.sc_indicator_dir = 0, a.revnext()
}), e.click(function() {
c.sc_indicator = "arrow", c.sc_indicator_dir = 1, a.revprev()
})) : (e.click(function() {
c.sc_indicator = "arrow", c.sc_indicator_dir = 0, a.revnext()
}), d.click(function() {
c.sc_indicator = "arrow", c.sc_indicator_dir = 1, a.revprev()
})), b.right.j = a.find(".tp-rightarrow.tparrows"), b.left.j = a.find(".tp-leftarrow.tparrows"), b.padding_top = parseInt(c.carousel.padding_top || 0, 0), b.padding_bottom = parseInt(c.carousel.padding_bottom || 0, 0), t(d, b.left, c), t(e, b.right, c), b.left.opt = c, b.right.opt = c, "outer-left" != b.position && "outer-right" != b.position || (c.outernav = !0)
},
r = function(a, b, c) {
var d = a.outerHeight(!0),
f = (a.outerWidth(!0), void 0 == b.opt ? 0 : 0 == c.conh ? c.height : c.conh),
g = "layergrid" == b.container ? "fullscreen" == c.sliderLayout ? c.height / 2 - c.gridheight[c.curWinRange] * c.bh / 2 : "on" == c.autoHeight || void 0 != c.minHeight && c.minHeight > 0 ? f / 2 - c.gridheight[c.curWinRange] * c.bh / 2 : 0 : 0,
h = "top" === b.v_align ? {
top: "0px",
y: Math.round(b.v_offset + g) + "px"
} : "center" === b.v_align ? {
top: "50%",
y: Math.round(0 - d / 2 + b.v_offset) + "px"
} : {
top: "100%",
y: Math.round(0 - (d + b.v_offset + g)) + "px"
};
a.hasClass("outer-bottom") || punchgs.TweenLite.set(a, h)
},
s = function(a, b, c) {
var e = (a.outerHeight(!0), a.outerWidth(!0)),
f = "layergrid" == b.container ? "carousel" === c.sliderType ? 0 : c.width / 2 - c.gridwidth[c.curWinRange] * c.bw / 2 : 0,
g = "left" === b.h_align ? {
left: "0px",
x: Math.round(b.h_offset + f) + "px"
} : "center" === b.h_align ? {
left: "50%",
x: Math.round(0 - e / 2 + b.h_offset) + "px"
} : {
left: "100%",
x: Math.round(0 - (e + b.h_offset + f)) + "px"
};
punchgs.TweenLite.set(a, g)
},
t = function(a, b, c) {
var d = a.closest(".tp-simpleresponsive").length > 0 ? a.closest(".tp-simpleresponsive") : a.closest(".tp-revslider-mainul").length > 0 ? a.closest(".tp-revslider-mainul") : a.closest(".rev_slider_wrapper").length > 0 ? a.closest(".rev_slider_wrapper") : a.parent().find(".tp-revslider-mainul"),
e = d.width(),
f = d.height();
if (r(a, b, c), s(a, b, c), "outer-left" !== b.position || "fullwidth" != b.sliderLayout && "fullscreen" != b.sliderLayout ? "outer-right" !== b.position || "fullwidth" != b.sliderLayout && "fullscreen" != b.sliderLayout || punchgs.TweenLite.set(a, {
right: 0 - a.outerWidth() + "px",
x: b.h_offset + "px"
}) : punchgs.TweenLite.set(a, {
left: 0 - a.outerWidth() + "px",
x: b.h_offset + "px"
}), a.hasClass("tp-thumbs") || a.hasClass("tp-tabs")) {
var g = a.data("wr_padding"),
h = a.data("maxw"),
i = a.data("maxh"),
j = a.hasClass("tp-thumbs") ? a.find(".tp-thumb-mask") : a.find(".tp-tab-mask"),
k = parseInt(b.padding_top || 0, 0),
l = parseInt(b.padding_bottom || 0, 0);
h > e && "outer-left" !== b.position && "outer-right" !== b.position ? (punchgs.TweenLite.set(a, {
left: "0px",
x: 0,
maxWidth: e - 2 * g + "px"
}), punchgs.TweenLite.set(j, {
maxWidth: e - 2 * g + "px"
})) : (punchgs.TweenLite.set(a, {
maxWidth: h + "px"
}), punchgs.TweenLite.set(j, {
maxWidth: h + "px"
})), i + 2 * g > f && "outer-bottom" !== b.position && "outer-top" !== b.position ? (punchgs.TweenLite.set(a, {
top: "0px",
y: 0,
maxHeight: k + l + (f - 2 * g) + "px"
}), punchgs.TweenLite.set(j, {
maxHeight: k + l + (f - 2 * g) + "px"
})) : (punchgs.TweenLite.set(a, {
maxHeight: i + "px"
}), punchgs.TweenLite.set(j, {
maxHeight: i + "px"
})), "outer-left" !== b.position && "outer-right" !== b.position && (k = 0, l = 0), !0 === b.span && "vertical" === b.direction ? (punchgs.TweenLite.set(a, {
maxHeight: k + l + (f - 2 * g) + "px",
height: k + l + (f - 2 * g) + "px",
top: 0 - k,
y: 0
}), r(j, b, c)) : !0 === b.span && "horizontal" === b.direction && (punchgs.TweenLite.set(a, {
maxWidth: "100%",
width: e - 2 * g + "px",
left: 0,
x: 0
}), s(j, b, c))
}
},
u = function(a, b, c, d) {
0 === a.find(".tp-bullets").length && (b.style = void 0 === b.style ? "" : b.style, a.append('<div class="tp-bullets ' + b.style + " " + b.direction + '"></div>'));
var e = a.find(".tp-bullets"),
f = c.data("index"),
g = b.tmp;
jQuery.each(d.thumbs[c.index()].params, function(a, b) {
g = g.replace(b.from, b.to)
}), e.append('<div class="justaddedbullet tp-bullet">' + g + "</div>");
var h = a.find(".justaddedbullet"),
i = a.find(".tp-bullet").length,
j = h.outerWidth() + parseInt(void 0 === b.space ? 0 : b.space, 0),
k = h.outerHeight() + parseInt(void 0 === b.space ? 0 : b.space, 0);
"vertical" === b.direction ? (h.css({
top: (i - 1) * k + "px",
left: "0px"
}), e.css({
height: (i - 1) * k + h.outerHeight(),
width: h.outerWidth()
})) : (h.css({
left: (i - 1) * j + "px",
top: "0px"
}), e.css({
width: (i - 1) * j + h.outerWidth(),
height: h.outerHeight()
})), h.find(".tp-bullet-image").css({
backgroundImage: "url(" + d.thumbs[c.index()].src + ")"
}), h.data("liref", f), h.click(function() {
d.sc_indicator = "bullet", a.revcallslidewithid(f), a.find(".tp-bullet").removeClass("selected"), jQuery(this).addClass("selected")
}), h.removeClass("justaddedbullet"), b.padding_top = parseInt(d.carousel.padding_top || 0, 0), b.padding_bottom = parseInt(d.carousel.padding_bottom || 0, 0), b.opt = d, "outer-left" != b.position && "outer-right" != b.position || (d.outernav = !0), e.addClass("nav-pos-hor-" + b.h_align), e.addClass("nav-pos-ver-" + b.v_align), e.addClass("nav-dir-" + b.direction), t(e, b, d)
},
w = function(a, b, c, d, e) {
var f = "tp-thumb" === d ? ".tp-thumbs" : ".tp-tabs",
g = "tp-thumb" === d ? ".tp-thumb-mask" : ".tp-tab-mask",
h = "tp-thumb" === d ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
i = "tp-thumb" === d ? ".tp-thumb" : ".tp-tab",
j = "tp-thumb" === d ? ".tp-thumb-image" : ".tp-tab-image";
if (b.visibleAmount = b.visibleAmount > e.slideamount ? e.slideamount : b.visibleAmount, b.sliderLayout = e.sliderLayout, 0 === a.parent().find(f).length) {
b.style = void 0 === b.style ? "" : b.style;
var k = !0 === b.span ? "tp-span-wrapper" : "",
l = '<div class="' + d + "s " + k + " " + b.position + " " + b.style + '"><div class="' + d + '-mask"><div class="' + d + 's-inner-wrapper" style="position:relative;"></div></div></div>';
"outer-top" === b.position ? a.parent().prepend(l) : "outer-bottom" === b.position ? a.after(l) : a.append(l), b.padding_top = parseInt(e.carousel.padding_top || 0, 0), b.padding_bottom = parseInt(e.carousel.padding_bottom || 0, 0), "outer-left" != b.position && "outer-right" != b.position || (e.outernav = !0)
}
var m = c.data("index"),
n = a.parent().find(f),
o = n.find(g),
p = o.find(h),
q = "horizontal" === b.direction ? b.width * b.visibleAmount + b.space * (b.visibleAmount - 1) : b.width,
r = "horizontal" === b.direction ? b.height : b.height * b.visibleAmount + b.space * (b.visibleAmount - 1),
s = b.tmp;
jQuery.each(e.thumbs[c.index()].params, function(a, b) {
s = s.replace(b.from, b.to)
}), p.append('<div data-liindex="' + c.index() + '" data-liref="' + m + '" class="justaddedthumb ' + d + '" style="width:' + b.width + "px;height:" + b.height + 'px;">' + s + "</div>");
var u = n.find(".justaddedthumb"),
v = n.find(i).length,
w = u.outerWidth() + parseInt(void 0 === b.space ? 0 : b.space, 0),
x = u.outerHeight() + parseInt(void 0 === b.space ? 0 : b.space, 0);
u.find(j).css({
backgroundImage: "url(" + e.thumbs[c.index()].src + ")"
}), "vertical" === b.direction ? (u.css({
top: (v - 1) * x + "px",
left: "0px"
}), p.css({
height: (v - 1) * x + u.outerHeight(),
width: u.outerWidth()
})) : (u.css({
left: (v - 1) * w + "px",
top: "0px"
}), p.css({
width: (v - 1) * w + u.outerWidth(),
height: u.outerHeight()
})), n.data("maxw", q), n.data("maxh", r), n.data("wr_padding", b.wrapper_padding);
var y = "outer-top" === b.position || "outer-bottom" === b.position ? "relative" : "absolute";
"outer-top" !== b.position && "outer-bottom" !== b.position || b.h_align;
o.css({
maxWidth: q + "px",
maxHeight: r + "px",
overflow: "hidden",
position: "relative"
}), n.css({
maxWidth: q + "px",
maxHeight: r + "px",
overflow: "visible",
position: y,
background: b.wrapper_color,
padding: b.wrapper_padding + "px",
boxSizing: "contet-box"
}), u.click(function() {
e.sc_indicator = "bullet";
var b = a.parent().find(h).data("distance");
b = void 0 === b ? 0 : b, Math.abs(b) < 10 && (a.revcallslidewithid(m), a.parent().find(f).removeClass("selected"), jQuery(this).addClass("selected"))
}), u.removeClass("justaddedthumb"), b.opt = e, n.addClass("nav-pos-hor-" + b.h_align), n.addClass("nav-pos-ver-" + b.v_align), n.addClass("nav-dir-" + b.direction), t(n, b, e)
},
x = function(a) {
var b = a.c.parent().find(".outer-top"),
c = a.c.parent().find(".outer-bottom");
a.top_outer = b.hasClass("tp-forcenotvisible") ? 0 : b.outerHeight() || 0, a.bottom_outer = c.hasClass("tp-forcenotvisible") ? 0 : c.outerHeight() || 0
},
y = function(a, b, c, d) {
b > c || c > d ? a.addClass("tp-forcenotvisible") : a.removeClass("tp-forcenotvisible")
}
}(jQuery);
Executed Writes (0)