Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- (function($$jscomp$0) {
- /**
- * @param {!Function} actual
- * @param {string} method
- * @param {!Element} data
- * @return {?}
- */
- function sc_setScroll$jscomp$0(actual, method, data) {
- if (data.transition == "transition") {
- if (method == "swing") {
- /** @type {string} */
- method = "ease";
- }
- }
- return {
- anims : [],
- duration : actual,
- orgDuration : actual,
- easing : method,
- startTime : getTime$jscomp$0()
- };
- }
- /**
- * @param {!Object} data
- * @param {!Element} state
- * @return {undefined}
- */
- function sc_startScroll$jscomp$0(data, state) {
- /** @type {number} */
- var i = 0;
- var num_splits = data.anims.length;
- for (; i < num_splits; i++) {
- var pending = data.anims[i];
- if (!pending) {
- continue;
- }
- pending[0][state.transition](pending[1], data.duration, data.easing, pending[2]);
- }
- }
- /**
- * @param {!Object} data
- * @param {boolean} colors
- * @return {undefined}
- */
- function sc_stopScroll$jscomp$0(data, colors) {
- if (!is_boolean$jscomp$0(colors)) {
- /** @type {boolean} */
- colors = true;
- }
- if (is_object$jscomp$0(data.pre)) {
- sc_stopScroll$jscomp$0(data.pre, colors);
- }
- /** @type {number} */
- var i = 0;
- var l = data.anims.length;
- for (; i < l; i++) {
- var elem = data.anims[i];
- elem[0].stop(true);
- if (colors) {
- elem[0].css(elem[1]);
- if (is_function$jscomp$0(elem[2])) {
- elem[2]();
- }
- }
- }
- if (is_object$jscomp$0(data.post)) {
- sc_stopScroll$jscomp$0(data.post, colors);
- }
- }
- /**
- * @param {!Object} g
- * @param {boolean} b
- * @param {!Object} options
- * @return {undefined}
- */
- function sc_afterScroll$jscomp$0(g, b, options) {
- if (b) {
- b.remove();
- }
- switch(options.fx) {
- case "fade":
- case "crossfade":
- case "cover-fade":
- case "uncover-fade":
- g.css("filter", "");
- g.css("opacity", 1);
- break;
- }
- }
- /**
- * @param {?} tile
- * @param {!Object} source
- * @param {string} e
- * @param {?} name
- * @param {!Object} options
- * @return {?}
- */
- function sc_fireCallbacks$jscomp$0(tile, source, e, name, options) {
- if (source[e]) {
- source[e].call(tile, name);
- }
- if (options[e].length) {
- /** @type {number} */
- var i = 0;
- var choicesQuantity = options[e].length;
- for (; i < choicesQuantity; i++) {
- options[e][i].call(tile, name);
- }
- }
- return [];
- }
- /**
- * @param {!Object} o
- * @param {!Array} errors
- * @param {!Object} opts
- * @return {?}
- */
- function sc_fireQueue$jscomp$0(o, errors, opts) {
- if (errors.length) {
- o.trigger(cf_e$jscomp$0(errors[0][0], opts), errors[0][1]);
- errors.shift();
- }
- return errors;
- }
- /**
- * @param {string} value
- * @return {undefined}
- */
- function sc_hideHiddenItems$jscomp$0(value) {
- value.each(function() {
- var a = $$jscomp$0(this);
- a.data("_cfs_isHidden", a.is(":hidden")).hide();
- });
- }
- /**
- * @param {string} value
- * @return {undefined}
- */
- function sc_showHiddenItems$jscomp$0(value) {
- if (value) {
- value.each(function() {
- var a = $$jscomp$0(this);
- if (!a.data("_cfs_isHidden")) {
- a.show();
- }
- });
- }
- }
- /**
- * @param {!Object} context
- * @return {?}
- */
- function sc_clearTimers$jscomp$0(context) {
- if (context.auto) {
- clearTimeout(context.auto);
- }
- if (context.progress) {
- clearInterval(context.progress);
- }
- return context;
- }
- /**
- * @param {!Object} o
- * @param {?} e
- * @param {boolean} item
- * @param {string} n
- * @param {string} d
- * @param {!Function} options
- * @param {!Object} data
- * @return {?}
- */
- function sc_mapCallbackArguments$jscomp$0(o, e, item, n, d, options, data) {
- return {
- "width" : data.width,
- "height" : data.height,
- "items" : {
- "old" : o,
- "skipped" : e,
- "visible" : item
- },
- "scroll" : {
- "items" : n,
- "direction" : d,
- "duration" : options
- }
- };
- }
- /**
- * @param {!Object} options
- * @param {!Object} o
- * @param {number} c
- * @param {undefined} t
- * @return {?}
- */
- function sc_getDuration$jscomp$0(options, o, c, t) {
- var s = options.duration;
- if (options.fx == "none") {
- return 0;
- }
- if (s == "auto") {
- /** @type {number} */
- s = o.scroll.duration / o.scroll.items * c;
- } else {
- if (s < 10) {
- /** @type {number} */
- s = t / s;
- }
- }
- if (s < 1) {
- return 0;
- }
- if (options.fx == "fade") {
- /** @type {number} */
- s = s / 2;
- }
- return Math.round(s);
- }
- /**
- * @param {!Object} data
- * @param {string} options
- * @param {!Function} e
- * @return {undefined}
- */
- function nv_showNavi$jscomp$0(data, options, e) {
- var a = is_number$jscomp$0(data.items.minimum) ? data.items.minimum : data.items.visible + 1;
- if (options == "show" || options == "hide") {
- /** @type {string} */
- var name = options;
- } else {
- if (a > options) {
- debug$jscomp$0(e, "Not enough items (" + options + " total, " + a + " needed): Hiding navigation.");
- /** @type {string} */
- name = "hide";
- } else {
- /** @type {string} */
- name = "show";
- }
- }
- /** @type {string} */
- var method = name == "show" ? "removeClass" : "addClass";
- var value = cf_c$jscomp$0("hidden", e);
- if (data.auto.button) {
- data.auto.button[name]()[method](value);
- }
- if (data.prev.button) {
- data.prev.button[name]()[method](value);
- }
- if (data.next.button) {
- data.next.button[name]()[method](value);
- }
- if (data.pagination.container) {
- data.pagination.container[name]()[method](value);
- }
- }
- /**
- * @param {!Object} settings
- * @param {boolean} event
- * @param {!Function} obj
- * @return {undefined}
- */
- function nv_enableNavi$jscomp$0(settings, event, obj) {
- if (settings.circular || settings.infinite) {
- return;
- }
- var state = event == "removeClass" || event == "addClass" ? event : false;
- var val = cf_c$jscomp$0("disabled", obj);
- if (settings.auto.button && state) {
- settings.auto.button[state](val);
- }
- if (settings.prev.button) {
- /** @type {string} */
- var method = state || event == 0 ? "addClass" : "removeClass";
- settings.prev.button[method](val);
- }
- if (settings.next.button) {
- /** @type {string} */
- method = state || event == settings.items.visible ? "addClass" : "removeClass";
- settings.next.button[method](val);
- }
- }
- /**
- * @param {?} obj
- * @param {!Object} data
- * @return {?}
- */
- function go_getObject$jscomp$0(obj, data) {
- if (is_function$jscomp$0(data)) {
- data = data.call(obj);
- } else {
- if (is_undefined$jscomp$0(data)) {
- data = {};
- }
- }
- return data;
- }
- /**
- * @param {?} re
- * @param {string} s
- * @return {?}
- */
- function go_getItemsObject$jscomp$0(re, s) {
- s = go_getObject$jscomp$0(re, s);
- if (is_number$jscomp$0(s)) {
- s = {
- "visible" : s
- };
- } else {
- if (s == "variable") {
- s = {
- "visible" : s,
- "width" : s,
- "height" : s
- };
- } else {
- if (!is_object$jscomp$0(s)) {
- s = {};
- }
- }
- }
- return s;
- }
- /**
- * @param {?} datasource
- * @param {number} options
- * @return {?}
- */
- function go_getScrollObject$jscomp$0(datasource, options) {
- options = go_getObject$jscomp$0(datasource, options);
- if (is_number$jscomp$0(options)) {
- if (options <= 50) {
- options = {
- "items" : options
- };
- } else {
- options = {
- "duration" : options
- };
- }
- } else {
- if (is_string$jscomp$0(options)) {
- options = {
- "easing" : options
- };
- } else {
- if (!is_object$jscomp$0(options)) {
- options = {};
- }
- }
- }
- return options;
- }
- /**
- * @param {?} fields
- * @param {string} data
- * @return {?}
- */
- function go_getNaviObject$jscomp$0(fields, data) {
- data = go_getObject$jscomp$0(fields, data);
- if (is_string$jscomp$0(data)) {
- var fetchedData = cf_getKeyCode$jscomp$0(data);
- if (fetchedData == -1) {
- data = $$jscomp$0(data);
- } else {
- data = fetchedData;
- }
- }
- return data;
- }
- /**
- * @param {?} a
- * @param {boolean} b
- * @return {?}
- */
- function go_getAutoObject$jscomp$0(a, b) {
- b = go_getNaviObject$jscomp$0(a, b);
- if (is_jquery$jscomp$0(b)) {
- b = {
- "button" : b
- };
- } else {
- if (is_boolean$jscomp$0(b)) {
- b = {
- "play" : b
- };
- } else {
- if (is_number$jscomp$0(b)) {
- b = {
- "timeoutDuration" : b
- };
- }
- }
- }
- if (b.progress) {
- if (is_string$jscomp$0(b.progress) || is_jquery$jscomp$0(b.progress)) {
- b.progress = {
- "bar" : b.progress
- };
- }
- }
- return b;
- }
- /**
- * @param {?} editor
- * @param {!Object} data
- * @return {?}
- */
- function go_complementAutoObject$jscomp$0(editor, data) {
- if (is_function$jscomp$0(data.button)) {
- data.button = data.button.call(editor);
- }
- if (is_string$jscomp$0(data.button)) {
- data.button = $$jscomp$0(data.button);
- }
- if (!is_boolean$jscomp$0(data.play)) {
- /** @type {boolean} */
- data.play = true;
- }
- if (!is_number$jscomp$0(data.delay)) {
- /** @type {number} */
- data.delay = 0;
- }
- if (is_undefined$jscomp$0(data.pauseOnEvent)) {
- /** @type {boolean} */
- data.pauseOnEvent = true;
- }
- if (!is_boolean$jscomp$0(data.pauseOnResize)) {
- /** @type {boolean} */
- data.pauseOnResize = true;
- }
- if (!is_number$jscomp$0(data.timeoutDuration)) {
- /** @type {number} */
- data.timeoutDuration = data.duration < 10 ? 2500 : data.duration * 5;
- }
- if (data.progress) {
- if (is_function$jscomp$0(data.progress.bar)) {
- data.progress.bar = data.progress.bar.call(editor);
- }
- if (is_string$jscomp$0(data.progress.bar)) {
- data.progress.bar = $$jscomp$0(data.progress.bar);
- }
- if (data.progress.bar) {
- if (!is_function$jscomp$0(data.progress.updater)) {
- /** @type {function(string): undefined} */
- data.progress.updater = $$jscomp$0.fn.carouFredSel.progressbarUpdater;
- }
- if (!is_number$jscomp$0(data.progress.interval)) {
- /** @type {number} */
- data.progress.interval = 50;
- }
- } else {
- /** @type {boolean} */
- data.progress = false;
- }
- }
- return data;
- }
- /**
- * @param {?} schema
- * @param {number} val
- * @return {?}
- */
- function go_getPrevNextObject$jscomp$0(schema, val) {
- val = go_getNaviObject$jscomp$0(schema, val);
- if (is_jquery$jscomp$0(val)) {
- val = {
- "button" : val
- };
- } else {
- if (is_number$jscomp$0(val)) {
- val = {
- "key" : val
- };
- }
- }
- return val;
- }
- /**
- * @param {?} action
- * @param {!Object} data
- * @return {?}
- */
- function go_complementPrevNextObject$jscomp$0(action, data) {
- if (is_function$jscomp$0(data.button)) {
- data.button = data.button.call(action);
- }
- if (is_string$jscomp$0(data.button)) {
- data.button = $$jscomp$0(data.button);
- }
- if (is_string$jscomp$0(data.key)) {
- data.key = cf_getKeyCode$jscomp$0(data.key);
- }
- return data;
- }
- /**
- * @param {?} select
- * @param {!Object} options
- * @return {?}
- */
- function go_getPaginationObject$jscomp$0(select, options) {
- options = go_getNaviObject$jscomp$0(select, options);
- if (is_jquery$jscomp$0(options)) {
- options = {
- "container" : options
- };
- } else {
- if (is_boolean$jscomp$0(options)) {
- options = {
- "keys" : options
- };
- }
- }
- return options;
- }
- /**
- * @param {?} self
- * @param {!Object} data
- * @return {?}
- */
- function go_complementPaginationObject$jscomp$0(self, data) {
- if (is_function$jscomp$0(data.container)) {
- data.container = data.container.call(self);
- }
- if (is_string$jscomp$0(data.container)) {
- data.container = $$jscomp$0(data.container);
- }
- if (!is_number$jscomp$0(data.items)) {
- /** @type {boolean} */
- data.items = false;
- }
- if (!is_boolean$jscomp$0(data.keys)) {
- /** @type {boolean} */
- data.keys = false;
- }
- if (!is_function$jscomp$0(data.anchorBuilder) && !is_false$jscomp$0(data.anchorBuilder)) {
- /** @type {function(string): ?} */
- data.anchorBuilder = $$jscomp$0.fn.carouFredSel.pageAnchorBuilder;
- }
- if (!is_number$jscomp$0(data.deviation)) {
- /** @type {number} */
- data.deviation = 0;
- }
- return data;
- }
- /**
- * @param {?} name
- * @param {!Object} data
- * @return {?}
- */
- function go_getSwipeObject$jscomp$0(name, data) {
- if (is_function$jscomp$0(data)) {
- data = data.call(name);
- }
- if (is_undefined$jscomp$0(data)) {
- data = {
- "onTouch" : false
- };
- }
- if (is_true$jscomp$0(data)) {
- data = {
- "onTouch" : data
- };
- } else {
- if (is_number$jscomp$0(data)) {
- data = {
- "items" : data
- };
- }
- }
- return data;
- }
- /**
- * @param {?} rmapper
- * @param {!Object} m
- * @return {?}
- */
- function go_complementSwipeObject$jscomp$0(rmapper, m) {
- if (!is_boolean$jscomp$0(m.onTouch)) {
- /** @type {boolean} */
- m.onTouch = true;
- }
- if (!is_boolean$jscomp$0(m.onMouse)) {
- /** @type {boolean} */
- m.onMouse = false;
- }
- if (!is_object$jscomp$0(m.options)) {
- m.options = {};
- }
- if (!is_boolean$jscomp$0(m.options.triggerOnTouchEnd)) {
- /** @type {boolean} */
- m.options.triggerOnTouchEnd = false;
- }
- return m;
- }
- /**
- * @param {?} name
- * @param {string} data
- * @return {?}
- */
- function go_getMousewheelObject$jscomp$0(name, data) {
- if (is_function$jscomp$0(data)) {
- data = data.call(name);
- }
- if (is_true$jscomp$0(data)) {
- data = {};
- } else {
- if (is_number$jscomp$0(data)) {
- data = {
- "items" : data
- };
- } else {
- if (is_undefined$jscomp$0(data)) {
- /** @type {boolean} */
- data = false;
- }
- }
- }
- return data;
- }
- /**
- * @param {?} a
- * @param {?} b
- * @return {?}
- */
- function go_complementMousewheelObject$jscomp$0(a, b) {
- return b;
- }
- /**
- * @param {number} p
- * @param {number} i
- * @param {boolean} e
- * @param {!Object} self
- * @param {!Object} data
- * @return {?}
- */
- function gn_getItemIndex$jscomp$0(p, i, e, self, data) {
- if (is_string$jscomp$0(p)) {
- p = $$jscomp$0(p, data);
- }
- if (is_object$jscomp$0(p)) {
- p = $$jscomp$0(p, data);
- }
- if (is_jquery$jscomp$0(p)) {
- p = data.children().index(p);
- if (!is_boolean$jscomp$0(e)) {
- /** @type {boolean} */
- e = false;
- }
- } else {
- if (!is_boolean$jscomp$0(e)) {
- /** @type {boolean} */
- e = true;
- }
- }
- if (!is_number$jscomp$0(p)) {
- /** @type {number} */
- p = 0;
- }
- if (!is_number$jscomp$0(i)) {
- /** @type {number} */
- i = 0;
- }
- if (e) {
- p = p + self.first;
- }
- p = p + i;
- if (self.total > 0) {
- for (; p >= self.total;) {
- /** @type {number} */
- p = p - self.total;
- }
- for (; p < 0;) {
- p = p + self.total;
- }
- }
- return p;
- }
- /**
- * @param {!Object} props
- * @param {!Object} value
- * @param {number} oldvalue
- * @return {?}
- */
- function gn_getVisibleItemsPrev$jscomp$0(props, value, oldvalue) {
- /** @type {number} */
- var expected = 0;
- /** @type {number} */
- var x = 0;
- /** @type {number} */
- var i = oldvalue;
- for (; i >= 0; i--) {
- var $c_field = props.eq(i);
- expected = expected + ($c_field.is(":visible") ? $c_field[value.d["outerWidth"]](true) : 0);
- if (expected > value.maxDimension) {
- return x;
- }
- if (i == 0) {
- i = props.length;
- }
- x++;
- }
- }
- /**
- * @param {!Object} page
- * @param {!Object} o
- * @param {string} reAppend
- * @return {?}
- */
- function gn_getVisibleItemsPrevFilter$jscomp$0(page, o, reAppend) {
- return gn_getItemsPrevFilter$jscomp$0(page, o.items.filter, o.items.visibleConf.org, reAppend);
- }
- /**
- * @param {!Object} properties
- * @param {!Object} o
- * @param {!Function} reAppend
- * @param {undefined} alwaysDownload
- * @return {?}
- */
- function gn_getScrollItemsPrevFilter$jscomp$0(properties, o, reAppend, alwaysDownload) {
- return gn_getItemsPrevFilter$jscomp$0(properties, o.items.filter, alwaysDownload, reAppend);
- }
- /**
- * @param {!Object} self
- * @param {?} f
- * @param {number} o
- * @param {string} reAppend
- * @return {?}
- */
- function gn_getItemsPrevFilter$jscomp$0(self, f, o, reAppend) {
- /** @type {number} */
- var typ = 0;
- /** @type {number} */
- var floorX = 0;
- /** @type {string} */
- var newIndex = reAppend;
- var index = self.length;
- for (; newIndex >= 0; newIndex--) {
- floorX++;
- if (floorX == index) {
- return floorX;
- }
- var cell = self.eq(newIndex);
- if (cell.is(f)) {
- typ++;
- if (typ == o) {
- return floorX;
- }
- }
- if (newIndex == 0) {
- newIndex = index;
- }
- }
- }
- /**
- * @param {!Object} b
- * @param {!Object} n
- * @return {?}
- */
- function gn_getVisibleOrg$jscomp$0(b, n) {
- return n.items.visibleConf.org || b.children().slice(0, n.items.visible).filter(n.items.filter).length;
- }
- /**
- * @param {!Object} el
- * @param {!Object} value
- * @param {number} target
- * @return {?}
- */
- function gn_getVisibleItemsNext$jscomp$0(el, value, target) {
- /** @type {number} */
- var expected = 0;
- /** @type {number} */
- var comingtransition = 0;
- /** @type {number} */
- var a = target;
- /** @type {number} */
- var b = el.length - 1;
- for (; a <= b; a++) {
- var previousPrevious = el.eq(a);
- expected = expected + (previousPrevious.is(":visible") ? previousPrevious[value.d["outerWidth"]](true) : 0);
- if (expected > value.maxDimension) {
- return comingtransition;
- }
- comingtransition++;
- if (comingtransition == b + 1) {
- return comingtransition;
- }
- if (a == b) {
- /** @type {number} */
- a = -1;
- }
- }
- }
- /**
- * @param {!Object} o
- * @param {!Object} s
- * @param {number} c
- * @param {string} b
- * @return {?}
- */
- function gn_getVisibleItemsNextTestCircular$jscomp$0(o, s, c, b) {
- var a = gn_getVisibleItemsNext$jscomp$0(o, s, c);
- if (!s.circular) {
- if (c + a > b) {
- /** @type {number} */
- a = b - c;
- }
- }
- return a;
- }
- /**
- * @param {!Object} parent
- * @param {!Object} state
- * @param {number} i
- * @return {?}
- */
- function gn_getVisibleItemsNextFilter$jscomp$0(parent, state, i) {
- return gn_getItemsNextFilter$jscomp$0(parent, state.items.filter, state.items.visibleConf.org, i, state.circular);
- }
- /**
- * @param {!Object} node
- * @param {!Object} settings
- * @param {number} responses
- * @param {number} callback
- * @return {?}
- */
- function gn_getScrollItemsNextFilter$jscomp$0(node, settings, responses, callback) {
- return gn_getItemsNextFilter$jscomp$0(node, settings.items.filter, callback + 1, responses, settings.circular) - 1;
- }
- /**
- * @param {!Object} _
- * @param {?} val
- * @param {(!Function|number)} url
- * @param {number} s
- * @param {?} wlhash
- * @return {?}
- */
- function gn_getItemsNextFilter$jscomp$0(_, val, url, s, wlhash) {
- /** @type {number} */
- var lastImageUrl = 0;
- /** @type {number} */
- var va = 0;
- /** @type {number} */
- var x = s;
- /** @type {number} */
- var a = _.length - 1;
- for (; x <= a; x++) {
- va++;
- if (va >= a) {
- return va;
- }
- var QuickBase = _.eq(x);
- if (QuickBase.is(val)) {
- lastImageUrl++;
- if (lastImageUrl == url) {
- return va;
- }
- }
- if (x == a) {
- /** @type {number} */
- x = -1;
- }
- }
- }
- /**
- * @param {string} elem
- * @param {!Object} o
- * @return {?}
- */
- function gi_getCurrentItems$jscomp$0(elem, o) {
- return elem.slice(0, o.items.visible);
- }
- /**
- * @param {string} s
- * @param {!Object} o
- * @param {number} i
- * @return {?}
- */
- function gi_getOldItemsPrev$jscomp$0(s, o, i) {
- return s.slice(i, o.items.visibleConf.old + i);
- }
- /**
- * @param {string} e
- * @param {!Object} o
- * @return {?}
- */
- function gi_getNewItemsPrev$jscomp$0(e, o) {
- return e.slice(0, o.items.visible);
- }
- /**
- * @param {string} el
- * @param {!Object} add
- * @return {?}
- */
- function gi_getOldItemsNext$jscomp$0(el, add) {
- return el.slice(0, add.items.visibleConf.old);
- }
- /**
- * @param {string} i
- * @param {!Object} n
- * @param {number} max
- * @return {?}
- */
- function gi_getNewItemsNext$jscomp$0(i, n, max) {
- return i.slice(max, n.items.visible + max);
- }
- /**
- * @param {!Object} obj
- * @param {!Object} elem
- * @param {string} key
- * @return {undefined}
- */
- function sz_storeMargin$jscomp$0(obj, elem, key) {
- if (elem.usePadding) {
- if (!is_string$jscomp$0(key)) {
- /** @type {string} */
- key = "_cfs_origCssMargin";
- }
- obj.each(function() {
- var el = $$jscomp$0(this);
- /** @type {number} */
- var b = parseInt(el.css(elem.d["marginRight"]), 10);
- if (!is_number$jscomp$0(b)) {
- /** @type {number} */
- b = 0;
- }
- el.data(key, b);
- });
- }
- }
- /**
- * @param {!Object} element
- * @param {!Object} elem
- * @param {string} i
- * @return {undefined}
- */
- function sz_resetMargin$jscomp$0(element, elem, i) {
- if (elem.usePadding) {
- var x = is_boolean$jscomp$0(i) ? i : false;
- if (!is_number$jscomp$0(i)) {
- /** @type {number} */
- i = 0;
- }
- sz_storeMargin$jscomp$0(element, elem, "_cfs_tempCssMargin");
- element.each(function() {
- var target = $$jscomp$0(this);
- target.css(elem.d["marginRight"], x ? target.data("_cfs_tempCssMargin") : i + target.data("_cfs_origCssMargin"));
- });
- }
- }
- /**
- * @param {!Object} h
- * @return {undefined}
- */
- function sz_storeOrigCss$jscomp$0(h) {
- h.each(function() {
- var $ele = $$jscomp$0(this);
- $ele.data("_cfs_origCss", $ele.attr("style") || "");
- });
- }
- /**
- * @param {!Object} oThis
- * @return {undefined}
- */
- function sz_restoreOrigCss$jscomp$0(oThis) {
- oThis.each(function() {
- var $ele = $$jscomp$0(this);
- $ele.attr("style", $ele.data("_cfs_origCss") || "");
- });
- }
- /**
- * @param {!Object} obj
- * @param {!Object} items
- * @return {undefined}
- */
- function sz_setResponsiveSizes$jscomp$0(obj, items) {
- var visible = obj.items.visible;
- var i = obj.items[obj.d["width"]];
- var level = obj[obj.d["height"]];
- var adjustedLevel = is_percentage$jscomp$0(level);
- items.each(function() {
- var d = $$jscomp$0(this);
- /** @type {number} */
- var x = i - ms_getPaddingBorderMargin$jscomp$0(d, obj, "Width");
- d[obj.d["width"]](x);
- if (adjustedLevel) {
- d[obj.d["height"]](ms_getPercentage$jscomp$0(x, level));
- }
- });
- }
- /**
- * @param {!Object} _
- * @param {!Object} options
- * @return {?}
- */
- function sz_setSizes$jscomp$0(_, options) {
- var $item = _.parent();
- var a = _.children();
- var mainLink = gi_getCurrentItems$jscomp$0(a, options);
- var itemCSS = cf_mapWrapperSizes$jscomp$0(ms_getSizes$jscomp$0(mainLink, options, true), options, false);
- $item.css(itemCSS);
- if (options.usePadding) {
- var item = options.padding;
- var val = item[options.d[1]];
- if (options.align && val < 0) {
- /** @type {number} */
- val = 0;
- }
- var filterInput = mainLink.last();
- filterInput.css(options.d["marginRight"], filterInput.data("_cfs_origCssMargin") + val);
- _.css(options.d["top"], item[options.d[0]]);
- _.css(options.d["left"], item[options.d[3]]);
- }
- _.css(options.d["width"], itemCSS[options.d["width"]] + ms_getTotalSize$jscomp$0(a, options, "width") * 2);
- _.css(options.d["height"], ms_getLargestSize$jscomp$0(a, options, "height"));
- return itemCSS;
- }
- /**
- * @param {!Object} s
- * @param {!Object} args
- * @param {boolean} body
- * @return {?}
- */
- function ms_getSizes$jscomp$0(s, args, body) {
- return [ms_getTotalSize$jscomp$0(s, args, "width", body), ms_getLargestSize$jscomp$0(s, args, "height", body)];
- }
- /**
- * @param {!Object} b
- * @param {!Object} f
- * @param {string} i
- * @param {boolean} ast
- * @return {?}
- */
- function ms_getLargestSize$jscomp$0(b, f, i, ast) {
- if (!is_boolean$jscomp$0(ast)) {
- /** @type {boolean} */
- ast = false;
- }
- if (is_number$jscomp$0(f[f.d[i]]) && ast) {
- return f[f.d[i]];
- }
- if (is_number$jscomp$0(f.items[f.d[i]])) {
- return f.items[f.d[i]];
- }
- /** @type {string} */
- i = i.toLowerCase().indexOf("width") > -1 ? "outerWidth" : "outerHeight";
- return ms_getTrueLargestSize$jscomp$0(b, f, i);
- }
- /**
- * @param {!Object} c
- * @param {!Object} f
- * @param {string} v
- * @return {?}
- */
- function ms_getTrueLargestSize$jscomp$0(c, f, v) {
- /** @type {number} */
- var latestUploadNum = 0;
- /** @type {number} */
- var i = 0;
- var cl = c.length;
- for (; i < cl; i++) {
- var set = c.eq(i);
- var partNum = set.is(":visible") ? set[f.d[v]](true) : 0;
- if (latestUploadNum < partNum) {
- latestUploadNum = partNum;
- }
- }
- return latestUploadNum;
- }
- /**
- * @param {!Object} b
- * @param {!Object} result
- * @param {string} id
- * @param {boolean} a
- * @return {?}
- */
- function ms_getTotalSize$jscomp$0(b, result, id, a) {
- if (!is_boolean$jscomp$0(a)) {
- /** @type {boolean} */
- a = false;
- }
- if (is_number$jscomp$0(result[result.d[id]]) && a) {
- return result[result.d[id]];
- }
- if (is_number$jscomp$0(result.items[result.d[id]])) {
- return result.items[result.d[id]] * b.length;
- }
- /** @type {string} */
- var m = id.toLowerCase().indexOf("width") > -1 ? "outerWidth" : "outerHeight";
- /** @type {number} */
- var ret = 0;
- /** @type {number} */
- var i = 0;
- var bLength = b.length;
- for (; i < bLength; i++) {
- var values = b.eq(i);
- ret = ret + (values.is(":visible") ? values[result.d[m]](true) : 0);
- }
- return ret;
- }
- /**
- * @param {!Object} s
- * @param {!Object} o
- * @param {string} type
- * @return {?}
- */
- function ms_getParentSize$jscomp$0(s, o, type) {
- var b = s.is(":visible");
- if (b) {
- s.hide();
- }
- var f = s.parent()[o.d[type]]();
- if (b) {
- s.show();
- }
- return f;
- }
- /**
- * @param {!Object} options
- * @param {?} grunt
- * @return {?}
- */
- function ms_getMaxDimension$jscomp$0(options, grunt) {
- return is_number$jscomp$0(options[options.d["width"]]) ? options[options.d["width"]] : grunt;
- }
- /**
- * @param {!Object} obj
- * @param {!Object} test
- * @param {string} a
- * @return {?}
- */
- function ms_hasVariableSizes$jscomp$0(obj, test, a) {
- /** @type {boolean} */
- var _axisVisible = false;
- /** @type {boolean} */
- var v = false;
- /** @type {number} */
- var index = 0;
- var n = obj.length;
- for (; index < n; index++) {
- var node = obj.eq(index);
- var value = node.is(":visible") ? node[test.d[a]](true) : 0;
- if (_axisVisible === false) {
- _axisVisible = value;
- } else {
- if (_axisVisible != value) {
- /** @type {boolean} */
- v = true;
- }
- }
- if (_axisVisible == 0) {
- /** @type {boolean} */
- v = true;
- }
- }
- return v;
- }
- /**
- * @param {?} data
- * @param {!Object} elem
- * @param {string} name
- * @return {?}
- */
- function ms_getPaddingBorderMargin$jscomp$0(data, elem, name) {
- return data[elem.d["outer" + name]](true) - data[elem.d[name.toLowerCase()]]();
- }
- /**
- * @param {number} m
- * @param {(number|string)} val
- * @return {?}
- */
- function ms_getPercentage$jscomp$0(m, val) {
- if (is_percentage$jscomp$0(val)) {
- /** @type {number} */
- val = parseInt(val.slice(0, -1), 10);
- if (!is_number$jscomp$0(val)) {
- return m;
- }
- /** @type {number} */
- m = m * (val / 100);
- }
- return m;
- }
- /**
- * @param {string} name
- * @param {!Object} obj
- * @param {boolean} op
- * @param {boolean} b
- * @param {boolean} a
- * @return {?}
- */
- function cf_e$jscomp$0(name, obj, op, b, a) {
- if (!is_boolean$jscomp$0(op)) {
- /** @type {boolean} */
- op = true;
- }
- if (!is_boolean$jscomp$0(b)) {
- /** @type {boolean} */
- b = true;
- }
- if (!is_boolean$jscomp$0(a)) {
- /** @type {boolean} */
- a = false;
- }
- if (op) {
- name = obj.events.prefix + name;
- }
- if (b) {
- /** @type {string} */
- name = name + "." + obj.events.namespace;
- }
- if (b && a) {
- name = name + obj.serialNumber;
- }
- return name;
- }
- /**
- * @param {string} name
- * @param {!Function} o
- * @return {?}
- */
- function cf_c$jscomp$0(name, o) {
- return is_string$jscomp$0(o.classnames[name]) ? o.classnames[name] : name;
- }
- /**
- * @param {!Object} b
- * @param {!Object} options
- * @param {boolean} animate
- * @return {?}
- */
- function cf_mapWrapperSizes$jscomp$0(b, options, animate) {
- if (!is_boolean$jscomp$0(animate)) {
- /** @type {boolean} */
- animate = true;
- }
- var sc = options.usePadding && animate ? options.padding : [0, 0, 0, 0];
- var c = {};
- c[options.d["width"]] = b[0] + sc[1] + sc[3];
- c[options.d["height"]] = b[1] + sc[0] + sc[2];
- return c;
- }
- /**
- * @param {!Array} values
- * @param {!Array} obj
- * @return {?}
- */
- function cf_sortParams$jscomp$0(values, obj) {
- /** @type {!Array} */
- var newCentroids = [];
- /** @type {number} */
- var i = 0;
- var l = values.length;
- for (; i < l; i++) {
- /** @type {number} */
- var j = 0;
- var imagesLen = obj.length;
- for (; j < imagesLen; j++) {
- if (obj[j].indexOf(typeof values[i]) > -1 && is_undefined$jscomp$0(newCentroids[j])) {
- newCentroids[j] = values[i];
- break;
- }
- }
- }
- return newCentroids;
- }
- /**
- * @param {!Object} val
- * @return {?}
- */
- function cf_getPadding$jscomp$0(val) {
- if (is_undefined$jscomp$0(val)) {
- return [0, 0, 0, 0];
- }
- if (is_number$jscomp$0(val)) {
- return [val, val, val, val];
- }
- if (is_string$jscomp$0(val)) {
- val = val.split("px").join("").split("em").join("").split(" ");
- }
- if (!is_array$jscomp$0(val)) {
- return [0, 0, 0, 0];
- }
- /** @type {number} */
- var j = 0;
- for (; j < 4; j++) {
- /** @type {number} */
- val[j] = parseInt(val[j], 10);
- }
- switch(val.length) {
- case 0:
- return [0, 0, 0, 0];
- case 1:
- return [val[0], val[0], val[0], val[0]];
- case 2:
- return [val[0], val[1], val[0], val[1]];
- case 3:
- return [val[0], val[1], val[2], val[1]];
- default:
- return [val[0], val[1], val[2], val[3]];
- }
- }
- /**
- * @param {!Object} rate
- * @param {!Object} options
- * @return {?}
- */
- function cf_getAlignPadding$jscomp$0(rate, options) {
- /** @type {number} */
- var buttonMax = is_number$jscomp$0(options[options.d["width"]]) ? Math.ceil(options[options.d["width"]] - ms_getTotalSize$jscomp$0(rate, options, "width")) : 0;
- switch(options.align) {
- case "left":
- return [0, buttonMax];
- case "right":
- return [buttonMax, 0];
- case "center":
- default:
- return [Math.ceil(buttonMax / 2), Math.floor(buttonMax / 2)];
- }
- }
- /**
- * @param {!Object} options
- * @return {?}
- */
- function cf_getDimensions$jscomp$0(options) {
- /** @type {!Array} */
- var sortedValueArrays = [["width", "innerWidth", "outerWidth", "height", "innerHeight", "outerHeight", "left", "top", "marginRight", 0, 1, 2, 3], ["height", "innerHeight", "outerHeight", "width", "innerWidth", "outerWidth", "top", "left", "marginBottom", 3, 2, 1, 0]];
- var imagesLen = sortedValueArrays[0].length;
- /** @type {number} */
- var i = options.direction == "right" || options.direction == "left" ? 0 : 1;
- var editorMapIdItem = {};
- /** @type {number} */
- var j = 0;
- for (; j < imagesLen; j++) {
- editorMapIdItem[sortedValueArrays[0][j]] = sortedValueArrays[i][j];
- }
- return editorMapIdItem;
- }
- /**
- * @param {number} file
- * @param {!Object} group
- * @param {!Object} s
- * @param {?} fill
- * @return {?}
- */
- function cf_getAdjust$jscomp$0(file, group, s, fill) {
- /** @type {number} */
- var f = file;
- if (is_function$jscomp$0(s)) {
- f = s.call(fill, f);
- } else {
- if (is_string$jscomp$0(s)) {
- var a = s.split("+");
- var m = s.split("-");
- if (m.length > a.length) {
- /** @type {boolean} */
- var c = true;
- var str = m[0];
- var b = m[1];
- } else {
- /** @type {boolean} */
- c = false;
- str = a[0];
- b = a[1];
- }
- switch(str) {
- case "even":
- f = file % 2 == 1 ? file - 1 : file;
- break;
- case "odd":
- f = file % 2 == 0 ? file - 1 : file;
- break;
- default:
- /** @type {number} */
- f = file;
- break;
- }
- /** @type {number} */
- b = parseInt(b, 10);
- if (is_number$jscomp$0(b)) {
- if (c) {
- /** @type {number} */
- b = -b;
- }
- f = f + b;
- }
- }
- }
- if (!is_number$jscomp$0(f) || f < 1) {
- /** @type {number} */
- f = 1;
- }
- return f;
- }
- /**
- * @param {undefined} val
- * @param {!Object} view
- * @param {!Object} m
- * @param {?} b
- * @return {?}
- */
- function cf_getItemsAdjust$jscomp$0(val, view, m, b) {
- return cf_getItemAdjustMinMax$jscomp$0(cf_getAdjust$jscomp$0(val, view, m, b), view.items.visibleConf);
- }
- /**
- * @param {number} result
- * @param {!Object} data
- * @return {?}
- */
- function cf_getItemAdjustMinMax$jscomp$0(result, data) {
- if (is_number$jscomp$0(data.min) && result < data.min) {
- result = data.min;
- }
- if (is_number$jscomp$0(data.max) && result > data.max) {
- result = data.max;
- }
- if (result < 1) {
- /** @type {number} */
- result = 1;
- }
- return result;
- }
- /**
- * @param {!Array} arr
- * @return {?}
- */
- function cf_getSynchArr$jscomp$0(arr) {
- if (!is_array$jscomp$0(arr)) {
- /** @type {!Array} */
- arr = [[arr]];
- }
- if (!is_array$jscomp$0(arr[0])) {
- /** @type {!Array} */
- arr = [arr];
- }
- /** @type {number} */
- var j = 0;
- var i = arr.length;
- for (; j < i; j++) {
- if (is_string$jscomp$0(arr[j][0])) {
- arr[j][0] = $$jscomp$0(arr[j][0]);
- }
- if (!is_boolean$jscomp$0(arr[j][1])) {
- /** @type {boolean} */
- arr[j][1] = true;
- }
- if (!is_boolean$jscomp$0(arr[j][2])) {
- /** @type {boolean} */
- arr[j][2] = true;
- }
- if (!is_number$jscomp$0(arr[j][3])) {
- /** @type {number} */
- arr[j][3] = 0;
- }
- }
- return arr;
- }
- /**
- * @param {string} key
- * @return {?}
- */
- function cf_getKeyCode$jscomp$0(key) {
- if (key == "right") {
- return 39;
- }
- if (key == "left") {
- return 37;
- }
- if (key == "up") {
- return 38;
- }
- if (key == "down") {
- return 40;
- }
- return -1;
- }
- /**
- * @param {string} op
- * @param {!Object} _this
- * @param {!Object} args
- * @return {undefined}
- */
- function cf_setCookie$jscomp$0(op, _this, args) {
- if (op) {
- var v = _this.triggerHandler(cf_e$jscomp$0("currentPosition", args));
- $$jscomp$0.fn.carouFredSel.cookie.set(op, v);
- }
- }
- /**
- * @param {string} n
- * @return {?}
- */
- function cf_getCookie$jscomp$0(n) {
- var borderSize = $$jscomp$0.fn.carouFredSel.cookie.get(n);
- return borderSize == "" ? 0 : borderSize;
- }
- /**
- * @param {!Object} that
- * @param {!Array} keys
- * @return {?}
- */
- function in_mapCss$jscomp$0(that, keys) {
- var listsByKey = {};
- /** @type {number} */
- var i = 0;
- var l = keys.length;
- for (; i < l; i++) {
- listsByKey[keys[i]] = that.css(keys[i]);
- }
- return listsByKey;
- }
- /**
- * @param {!Object} data
- * @param {!Object} options
- * @param {!Object} d
- * @param {string} s
- * @return {?}
- */
- function in_complementItems$jscomp$0(data, options, d, s) {
- if (!is_object$jscomp$0(data.visibleConf)) {
- data.visibleConf = {};
- }
- if (!is_object$jscomp$0(data.sizesConf)) {
- data.sizesConf = {};
- }
- if (data.start == 0 && is_number$jscomp$0(s)) {
- /** @type {string} */
- data.start = s;
- }
- if (is_object$jscomp$0(data.visible)) {
- data.visibleConf.min = data.visible.min;
- data.visibleConf.max = data.visible.max;
- /** @type {boolean} */
- data.visible = false;
- } else {
- if (is_string$jscomp$0(data.visible)) {
- if (data.visible == "variable") {
- /** @type {boolean} */
- data.visibleConf.variable = true;
- } else {
- data.visibleConf.adjust = data.visible;
- }
- /** @type {boolean} */
- data.visible = false;
- } else {
- if (is_function$jscomp$0(data.visible)) {
- data.visibleConf.adjust = data.visible;
- /** @type {boolean} */
- data.visible = false;
- }
- }
- }
- if (!is_string$jscomp$0(data.filter)) {
- /** @type {string} */
- data.filter = d.filter(":hidden").length > 0 ? ":visible" : "*";
- }
- if (!data[options.d["width"]]) {
- if (options.responsive) {
- debug$jscomp$0(true, "Set a " + options.d["width"] + " for the items!");
- data[options.d["width"]] = ms_getTrueLargestSize$jscomp$0(d, options, "outerWidth");
- } else {
- data[options.d["width"]] = ms_hasVariableSizes$jscomp$0(d, options, "outerWidth") ? "variable" : d[options.d["outerWidth"]](true);
- }
- }
- if (!data[options.d["height"]]) {
- data[options.d["height"]] = ms_hasVariableSizes$jscomp$0(d, options, "outerHeight") ? "variable" : d[options.d["outerHeight"]](true);
- }
- data.sizesConf.width = data.width;
- data.sizesConf.height = data.height;
- return data;
- }
- /**
- * @param {!Object} obj
- * @param {?} p1
- * @return {?}
- */
- function in_complementVisibleItems$jscomp$0(obj, p1) {
- if (obj.items[obj.d["width"]] == "variable") {
- /** @type {boolean} */
- obj.items.visibleConf.variable = true;
- }
- if (!obj.items.visibleConf.variable) {
- if (is_number$jscomp$0(obj[obj.d["width"]])) {
- /** @type {number} */
- obj.items.visible = Math.floor(obj[obj.d["width"]] / obj.items[obj.d["width"]]);
- } else {
- /** @type {number} */
- obj.items.visible = Math.floor(p1 / obj.items[obj.d["width"]]);
- /** @type {number} */
- obj[obj.d["width"]] = obj.items.visible * obj.items[obj.d["width"]];
- if (!obj.items.visibleConf.adjust) {
- /** @type {boolean} */
- obj.align = false;
- }
- }
- if (obj.items.visible == "Infinity" || obj.items.visible < 1) {
- debug$jscomp$0(true, 'Not a valid number of visible items: Set to "variable".');
- /** @type {boolean} */
- obj.items.visibleConf.variable = true;
- }
- }
- return obj;
- }
- /**
- * @param {string} s
- * @param {!Object} o
- * @param {!Object} done
- * @return {?}
- */
- function in_complementPrimarySize$jscomp$0(s, o, done) {
- if (s == "auto") {
- s = ms_getTrueLargestSize$jscomp$0(done, o, "outerWidth");
- }
- return s;
- }
- /**
- * @param {string} s
- * @param {!Object} data
- * @param {!Object} c
- * @return {?}
- */
- function in_complementSecondarySize$jscomp$0(s, data, c) {
- if (s == "auto") {
- s = ms_getTrueLargestSize$jscomp$0(c, data, "outerHeight");
- }
- if (!s) {
- s = data.items[data.d["height"]];
- }
- return s;
- }
- /**
- * @param {!Object} o
- * @param {string} value
- * @return {?}
- */
- function in_getAlignPadding$jscomp$0(o, value) {
- var expon = cf_getAlignPadding$jscomp$0(gi_getCurrentItems$jscomp$0(value, o), o);
- o.padding[o.d[1]] = expon[1];
- o.padding[o.d[3]] = expon[0];
- return o;
- }
- /**
- * @param {!Object} o
- * @param {!NodeList} settings
- * @param {?} options
- * @return {?}
- */
- function in_getResponsiveValues$jscomp$0(o, settings, options) {
- var v = cf_getItemAdjustMinMax$jscomp$0(Math.ceil(o[o.d["width"]] / o.items[o.d["width"]]), o.items.visibleConf);
- if (v > settings.length) {
- v = settings.length;
- }
- /** @type {number} */
- var one = Math.floor(o[o.d["width"]] / v);
- o.items.visible = v;
- /** @type {number} */
- o.items[o.d["width"]] = one;
- /** @type {number} */
- o[o.d["width"]] = v * one;
- return o;
- }
- /**
- * @param {!Object} data
- * @return {?}
- */
- function bt_pauseOnHoverConfig$jscomp$0(data) {
- if (is_string$jscomp$0(data)) {
- /** @type {boolean} */
- var i = data.indexOf("immediate") > -1 ? true : false;
- /** @type {boolean} */
- var _i = data.indexOf("resume") > -1 ? true : false;
- } else {
- /** @type {boolean} */
- i = _i = false;
- }
- return [i, _i];
- }
- /**
- * @param {boolean} val
- * @return {?}
- */
- function bt_mousesheelNumber$jscomp$0(val) {
- return is_number$jscomp$0(val) ? val : null;
- }
- /**
- * @param {!Object} variable
- * @return {?}
- */
- function is_null$jscomp$0(variable) {
- return variable === null;
- }
- /**
- * @param {!Object} val
- * @return {?}
- */
- function is_undefined$jscomp$0(val) {
- return is_null$jscomp$0(val) || typeof val == "undefined" || val === "" || val === "undefined";
- }
- /**
- * @param {!Object} val
- * @return {?}
- */
- function is_array$jscomp$0(val) {
- return val instanceof Array;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- function is_jquery$jscomp$0(value) {
- return value instanceof jQuery;
- }
- /**
- * @param {!Object} value
- * @return {?}
- */
- function is_object$jscomp$0(value) {
- return (value instanceof Object || typeof value == "object") && !is_null$jscomp$0(value) && !is_jquery$jscomp$0(value) && !is_array$jscomp$0(value);
- }
- /**
- * @param {?} object
- * @return {?}
- */
- function is_number$jscomp$0(object) {
- return (object instanceof Number || typeof object == "number") && !isNaN(object);
- }
- /**
- * @param {!Object} value
- * @return {?}
- */
- function is_string$jscomp$0(value) {
- return (value instanceof String || typeof value == "string") && !is_undefined$jscomp$0(value) && !is_true$jscomp$0(value) && !is_false$jscomp$0(value);
- }
- /**
- * @param {!Object} value
- * @return {?}
- */
- function is_function$jscomp$0(value) {
- return value instanceof Function || typeof value == "function";
- }
- /**
- * @param {string} b
- * @return {?}
- */
- function is_boolean$jscomp$0(b) {
- return b instanceof Boolean || typeof b == "boolean" || is_true$jscomp$0(b) || is_false$jscomp$0(b);
- }
- /**
- * @param {!Object} field
- * @return {?}
- */
- function is_true$jscomp$0(field) {
- return field === true || field === "true";
- }
- /**
- * @param {!Object} value
- * @return {?}
- */
- function is_false$jscomp$0(value) {
- return value === false || value === "false";
- }
- /**
- * @param {string} num
- * @return {?}
- */
- function is_percentage$jscomp$0(num) {
- return is_string$jscomp$0(num) && num.slice(-1) == "%";
- }
- /**
- * @return {?}
- */
- function getTime$jscomp$0() {
- return (new Date).getTime();
- }
- /**
- * @param {string} dash_on
- * @param {string} dash_off
- * @return {undefined}
- */
- function deprecated$jscomp$0(dash_on, dash_off) {
- debug$jscomp$0(true, dash_on + " is DEPRECATED, support for it will be removed. Use " + dash_off + " instead.");
- }
- /**
- * @param {!Function} o
- * @param {string} m
- * @return {?}
- */
- function debug$jscomp$0(o, m) {
- if (!is_undefined$jscomp$0(window.console) && !is_undefined$jscomp$0(window.console.log)) {
- if (is_object$jscomp$0(o)) {
- /** @type {string} */
- var resizewidth = " (" + o.selector + ")";
- o = o.debug;
- } else {
- /** @type {string} */
- resizewidth = "";
- }
- if (!o) {
- return false;
- }
- if (is_string$jscomp$0(m)) {
- /** @type {string} */
- m = "carouFredSel" + resizewidth + ": " + m;
- } else {
- /** @type {!Array} */
- m = ["carouFredSel" + resizewidth + ":", m];
- }
- window.console.log(m);
- }
- return false;
- }
- if ($$jscomp$0.fn.carouFredSel) {
- return;
- }
- /** @type {function(?, string): ?} */
- $$jscomp$0.fn.caroufredsel = $$jscomp$0.fn.carouFredSel = function(u$jscomp$0, w$jscomp$7) {
- if (this.length == 0) {
- debug$jscomp$0(true, 'No element found for "' + this.selector + '".');
- return this;
- }
- if (this.length > 1) {
- return this.each(function() {
- $$jscomp$0(this).carouFredSel(u$jscomp$0, w$jscomp$7);
- });
- }
- var y$jscomp$59 = this;
- var $tt0$jscomp$0 = this[0];
- /** @type {boolean} */
- var starting_position$jscomp$0 = false;
- if (y$jscomp$59.data("_cfs_isCarousel")) {
- starting_position$jscomp$0 = y$jscomp$59.triggerHandler("_cfs_triggerEvent", "currentPosition");
- y$jscomp$59.trigger("_cfs_triggerEvent", ["destroy", true]);
- }
- var z$jscomp$11 = {};
- /**
- * @param {!Object} options
- * @param {boolean} end
- * @param {string} height
- * @return {undefined}
- */
- z$jscomp$11._cfs_init = function(options, end, height) {
- options = go_getObject$jscomp$0($tt0$jscomp$0, options);
- options.items = go_getItemsObject$jscomp$0($tt0$jscomp$0, options.items);
- options.scroll = go_getScrollObject$jscomp$0($tt0$jscomp$0, options.scroll);
- options.auto = go_getAutoObject$jscomp$0($tt0$jscomp$0, options.auto);
- options.prev = go_getPrevNextObject$jscomp$0($tt0$jscomp$0, options.prev);
- options.next = go_getPrevNextObject$jscomp$0($tt0$jscomp$0, options.next);
- options.pagination = go_getPaginationObject$jscomp$0($tt0$jscomp$0, options.pagination);
- options.swipe = go_getSwipeObject$jscomp$0($tt0$jscomp$0, options.swipe);
- options.mousewheel = go_getMousewheelObject$jscomp$0($tt0$jscomp$0, options.mousewheel);
- if (end) {
- opts_orig$jscomp$0 = $$jscomp$0.extend(true, {}, $$jscomp$0.fn.carouFredSel.defaults, options);
- }
- opts$jscomp$0 = $$jscomp$0.extend(true, {}, $$jscomp$0.fn.carouFredSel.defaults, options);
- opts$jscomp$0.d = cf_getDimensions$jscomp$0(opts$jscomp$0);
- /** @type {string} */
- A$jscomp$0.direction = opts$jscomp$0.direction == "up" || opts$jscomp$0.direction == "left" ? "next" : "prev";
- var data = y$jscomp$59.children();
- var config = ms_getParentSize$jscomp$0($wrp$jscomp$0, opts$jscomp$0, "width");
- if (is_true$jscomp$0(opts$jscomp$0.cookie)) {
- /** @type {string} */
- opts$jscomp$0.cookie = "caroufredsel_cookie_" + conf$jscomp$0.serialNumber;
- }
- opts$jscomp$0.maxDimension = ms_getMaxDimension$jscomp$0(opts$jscomp$0, config);
- opts$jscomp$0.items = in_complementItems$jscomp$0(opts$jscomp$0.items, opts$jscomp$0, data, height);
- opts$jscomp$0[opts$jscomp$0.d["width"]] = in_complementPrimarySize$jscomp$0(opts$jscomp$0[opts$jscomp$0.d["width"]], opts$jscomp$0, data);
- opts$jscomp$0[opts$jscomp$0.d["height"]] = in_complementSecondarySize$jscomp$0(opts$jscomp$0[opts$jscomp$0.d["height"]], opts$jscomp$0, data);
- if (opts$jscomp$0.responsive) {
- if (!is_percentage$jscomp$0(opts$jscomp$0[opts$jscomp$0.d["width"]])) {
- /** @type {string} */
- opts$jscomp$0[opts$jscomp$0.d["width"]] = "100%";
- }
- }
- if (is_percentage$jscomp$0(opts$jscomp$0[opts$jscomp$0.d["width"]])) {
- /** @type {boolean} */
- A$jscomp$0.upDateOnWindowResize = true;
- A$jscomp$0.primarySizePercentage = opts$jscomp$0[opts$jscomp$0.d["width"]];
- opts$jscomp$0[opts$jscomp$0.d["width"]] = ms_getPercentage$jscomp$0(config, A$jscomp$0.primarySizePercentage);
- if (!opts$jscomp$0.items.visible) {
- /** @type {boolean} */
- opts$jscomp$0.items.visibleConf.variable = true;
- }
- }
- if (opts$jscomp$0.responsive) {
- /** @type {boolean} */
- opts$jscomp$0.usePadding = false;
- /** @type {!Array} */
- opts$jscomp$0.padding = [0, 0, 0, 0];
- /** @type {boolean} */
- opts$jscomp$0.align = false;
- /** @type {boolean} */
- opts$jscomp$0.items.visibleConf.variable = false;
- } else {
- if (!opts$jscomp$0.items.visible) {
- opts$jscomp$0 = in_complementVisibleItems$jscomp$0(opts$jscomp$0, config);
- }
- if (!opts$jscomp$0[opts$jscomp$0.d["width"]]) {
- if (!opts$jscomp$0.items.visibleConf.variable && is_number$jscomp$0(opts$jscomp$0.items[opts$jscomp$0.d["width"]]) && opts$jscomp$0.items.filter == "*") {
- /** @type {number} */
- opts$jscomp$0[opts$jscomp$0.d["width"]] = opts$jscomp$0.items.visible * opts$jscomp$0.items[opts$jscomp$0.d["width"]];
- /** @type {boolean} */
- opts$jscomp$0.align = false;
- } else {
- /** @type {string} */
- opts$jscomp$0[opts$jscomp$0.d["width"]] = "variable";
- }
- }
- if (is_undefined$jscomp$0(opts$jscomp$0.align)) {
- /** @type {(boolean|string)} */
- opts$jscomp$0.align = is_number$jscomp$0(opts$jscomp$0[opts$jscomp$0.d["width"]]) ? "center" : false;
- }
- if (opts$jscomp$0.items.visibleConf.variable) {
- opts$jscomp$0.items.visible = gn_getVisibleItemsNext$jscomp$0(data, opts$jscomp$0, 0);
- }
- }
- if (opts$jscomp$0.items.filter != "*" && !opts$jscomp$0.items.visibleConf.variable) {
- opts$jscomp$0.items.visibleConf.org = opts$jscomp$0.items.visible;
- opts$jscomp$0.items.visible = gn_getVisibleItemsNextFilter$jscomp$0(data, opts$jscomp$0, 0);
- }
- opts$jscomp$0.items.visible = cf_getItemsAdjust$jscomp$0(opts$jscomp$0.items.visible, opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- opts$jscomp$0.items.visibleConf.old = opts$jscomp$0.items.visible;
- if (opts$jscomp$0.responsive) {
- if (!opts$jscomp$0.items.visibleConf.min) {
- opts$jscomp$0.items.visibleConf.min = opts$jscomp$0.items.visible;
- }
- if (!opts$jscomp$0.items.visibleConf.max) {
- opts$jscomp$0.items.visibleConf.max = opts$jscomp$0.items.visible;
- }
- opts$jscomp$0 = in_getResponsiveValues$jscomp$0(opts$jscomp$0, data, config);
- } else {
- opts$jscomp$0.padding = cf_getPadding$jscomp$0(opts$jscomp$0.padding);
- if (opts$jscomp$0.align == "top") {
- /** @type {string} */
- opts$jscomp$0.align = "left";
- } else {
- if (opts$jscomp$0.align == "bottom") {
- /** @type {string} */
- opts$jscomp$0.align = "right";
- }
- }
- switch(opts$jscomp$0.align) {
- case "center":
- case "left":
- case "right":
- if (opts$jscomp$0[opts$jscomp$0.d["width"]] != "variable") {
- opts$jscomp$0 = in_getAlignPadding$jscomp$0(opts$jscomp$0, data);
- /** @type {boolean} */
- opts$jscomp$0.usePadding = true;
- }
- break;
- default:
- /** @type {boolean} */
- opts$jscomp$0.align = false;
- /** @type {boolean} */
- opts$jscomp$0.usePadding = opts$jscomp$0.padding[0] == 0 && opts$jscomp$0.padding[1] == 0 && opts$jscomp$0.padding[2] == 0 && opts$jscomp$0.padding[3] == 0 ? false : true;
- break;
- }
- }
- if (!is_number$jscomp$0(opts$jscomp$0.scroll.duration)) {
- /** @type {number} */
- opts$jscomp$0.scroll.duration = 500;
- }
- if (is_undefined$jscomp$0(opts$jscomp$0.scroll.items)) {
- opts$jscomp$0.scroll.items = opts$jscomp$0.responsive || opts$jscomp$0.items.visibleConf.variable || opts$jscomp$0.items.filter != "*" ? "visible" : opts$jscomp$0.items.visible;
- }
- opts$jscomp$0.auto = $$jscomp$0.extend(true, {}, opts$jscomp$0.scroll, opts$jscomp$0.auto);
- opts$jscomp$0.prev = $$jscomp$0.extend(true, {}, opts$jscomp$0.scroll, opts$jscomp$0.prev);
- opts$jscomp$0.next = $$jscomp$0.extend(true, {}, opts$jscomp$0.scroll, opts$jscomp$0.next);
- opts$jscomp$0.pagination = $$jscomp$0.extend(true, {}, opts$jscomp$0.scroll, opts$jscomp$0.pagination);
- opts$jscomp$0.auto = go_complementAutoObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.auto);
- opts$jscomp$0.prev = go_complementPrevNextObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.prev);
- opts$jscomp$0.next = go_complementPrevNextObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.next);
- opts$jscomp$0.pagination = go_complementPaginationObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.pagination);
- opts$jscomp$0.swipe = go_complementSwipeObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.swipe);
- opts$jscomp$0.mousewheel = go_complementMousewheelObject$jscomp$0($tt0$jscomp$0, opts$jscomp$0.mousewheel);
- if (opts$jscomp$0.synchronise) {
- opts$jscomp$0.synchronise = cf_getSynchArr$jscomp$0(opts$jscomp$0.synchronise);
- }
- if (opts$jscomp$0.auto.onPauseStart) {
- opts$jscomp$0.auto.onTimeoutStart = opts$jscomp$0.auto.onPauseStart;
- deprecated$jscomp$0("auto.onPauseStart", "auto.onTimeoutStart");
- }
- if (opts$jscomp$0.auto.onPausePause) {
- opts$jscomp$0.auto.onTimeoutPause = opts$jscomp$0.auto.onPausePause;
- deprecated$jscomp$0("auto.onPausePause", "auto.onTimeoutPause");
- }
- if (opts$jscomp$0.auto.onPauseEnd) {
- opts$jscomp$0.auto.onTimeoutEnd = opts$jscomp$0.auto.onPauseEnd;
- deprecated$jscomp$0("auto.onPauseEnd", "auto.onTimeoutEnd");
- }
- if (opts$jscomp$0.auto.pauseDuration) {
- opts$jscomp$0.auto.timeoutDuration = opts$jscomp$0.auto.pauseDuration;
- deprecated$jscomp$0("auto.pauseDuration", "auto.timeoutDuration");
- }
- };
- /**
- * @return {undefined}
- */
- z$jscomp$11._cfs_build = function() {
- y$jscomp$59.data("_cfs_isCarousel", true);
- var headers = y$jscomp$59.children();
- var a = in_mapCss$jscomp$0(y$jscomp$59, ["textAlign", "float", "position", "top", "right", "bottom", "left", "zIndex", "width", "height", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
- /** @type {string} */
- var currentposition = "relative";
- switch(a.position) {
- case "absolute":
- case "fixed":
- currentposition = a.position;
- break;
- }
- if (conf$jscomp$0.wrapper == "parent") {
- sz_storeOrigCss$jscomp$0($wrp$jscomp$0);
- } else {
- $wrp$jscomp$0.css(a);
- }
- $wrp$jscomp$0.css({
- "overflow" : "hidden",
- "position" : currentposition
- });
- sz_storeOrigCss$jscomp$0(y$jscomp$59);
- y$jscomp$59.data("_cfs_origCssZindex", a.zIndex);
- y$jscomp$59.css({
- "textAlign" : "left",
- "float" : "none",
- "position" : "absolute",
- "top" : 0,
- "right" : "auto",
- "bottom" : "auto",
- "left" : 0,
- "marginTop" : 0,
- "marginRight" : 0,
- "marginBottom" : 0,
- "marginLeft" : 0
- });
- sz_storeMargin$jscomp$0(headers, opts$jscomp$0);
- sz_storeOrigCss$jscomp$0(headers);
- if (opts$jscomp$0.responsive) {
- sz_setResponsiveSizes$jscomp$0(opts$jscomp$0, headers);
- }
- };
- /**
- * @return {undefined}
- */
- z$jscomp$11._cfs_bind_events = function() {
- z$jscomp$11._cfs_unbind_events();
- y$jscomp$59.bind(cf_e$jscomp$0("stop", conf$jscomp$0), function(event, ctx) {
- event.stopPropagation();
- if (!A$jscomp$0.isStopped) {
- if (opts$jscomp$0.auto.button) {
- opts$jscomp$0.auto.button.addClass(cf_c$jscomp$0("stopped", conf$jscomp$0));
- }
- }
- /** @type {boolean} */
- A$jscomp$0.isStopped = true;
- if (opts$jscomp$0.auto.play) {
- /** @type {boolean} */
- opts$jscomp$0.auto.play = false;
- y$jscomp$59.trigger(cf_e$jscomp$0("pause", conf$jscomp$0), ctx);
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("finish", conf$jscomp$0), function(event) {
- event.stopPropagation();
- if (A$jscomp$0.isScrolling) {
- sc_stopScroll$jscomp$0(scrl$jscomp$0);
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("pause", conf$jscomp$0), function(event, sp, b) {
- event.stopPropagation();
- tmrs$jscomp$0 = sc_clearTimers$jscomp$0(tmrs$jscomp$0);
- if (sp && A$jscomp$0.isScrolling) {
- /** @type {boolean} */
- scrl$jscomp$0.isStopped = true;
- /** @type {number} */
- var dif = getTime$jscomp$0() - scrl$jscomp$0.startTime;
- scrl$jscomp$0.duration -= dif;
- if (scrl$jscomp$0.pre) {
- scrl$jscomp$0.pre.duration -= dif;
- }
- if (scrl$jscomp$0.post) {
- scrl$jscomp$0.post.duration -= dif;
- }
- sc_stopScroll$jscomp$0(scrl$jscomp$0, false);
- }
- if (!A$jscomp$0.isPaused && !A$jscomp$0.isScrolling) {
- if (b) {
- tmrs$jscomp$0.timePassed += getTime$jscomp$0() - tmrs$jscomp$0.startTime;
- }
- }
- if (!A$jscomp$0.isPaused) {
- if (opts$jscomp$0.auto.button) {
- opts$jscomp$0.auto.button.addClass(cf_c$jscomp$0("paused", conf$jscomp$0));
- }
- }
- /** @type {boolean} */
- A$jscomp$0.isPaused = true;
- if (opts$jscomp$0.auto.onTimeoutPause) {
- /** @type {number} */
- var throw42 = opts$jscomp$0.auto.timeoutDuration - tmrs$jscomp$0.timePassed;
- /** @type {number} */
- var bubbled_sets__3355 = 100 - Math.ceil(throw42 * 100 / opts$jscomp$0.auto.timeoutDuration);
- opts$jscomp$0.auto.onTimeoutPause.call($tt0$jscomp$0, bubbled_sets__3355, throw42);
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("play", conf$jscomp$0), function(event, dir, b, r) {
- event.stopPropagation();
- tmrs$jscomp$0 = sc_clearTimers$jscomp$0(tmrs$jscomp$0);
- /** @type {!Array} */
- var out = [dir, b, r];
- /** @type {!Array} */
- var primitives = ["string", "number", "boolean"];
- var match = cf_sortParams$jscomp$0(out, primitives);
- dir = match[0];
- b = match[1];
- r = match[2];
- if (dir != "prev" && dir != "next") {
- /** @type {string} */
- dir = A$jscomp$0.direction;
- }
- if (!is_number$jscomp$0(b)) {
- /** @type {number} */
- b = 0;
- }
- if (!is_boolean$jscomp$0(r)) {
- /** @type {boolean} */
- r = false;
- }
- if (r) {
- /** @type {boolean} */
- A$jscomp$0.isStopped = false;
- /** @type {boolean} */
- opts$jscomp$0.auto.play = true;
- }
- if (!opts$jscomp$0.auto.play) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "Carousel stopped: Not scrolling.");
- }
- if (A$jscomp$0.isPaused) {
- if (opts$jscomp$0.auto.button) {
- opts$jscomp$0.auto.button.removeClass(cf_c$jscomp$0("stopped", conf$jscomp$0));
- opts$jscomp$0.auto.button.removeClass(cf_c$jscomp$0("paused", conf$jscomp$0));
- }
- }
- /** @type {boolean} */
- A$jscomp$0.isPaused = false;
- tmrs$jscomp$0.startTime = getTime$jscomp$0();
- var p = opts$jscomp$0.auto.timeoutDuration + b;
- /** @type {number} */
- dur2 = p - tmrs$jscomp$0.timePassed;
- /** @type {number} */
- perc = 100 - Math.ceil(dur2 * 100 / p);
- if (opts$jscomp$0.auto.progress) {
- /** @type {number} */
- tmrs$jscomp$0.progress = setInterval(function() {
- var r = getTime$jscomp$0() - tmrs$jscomp$0.startTime + tmrs$jscomp$0.timePassed;
- /** @type {number} */
- var bubbled_sets__3355 = Math.ceil(r * 100 / p);
- opts$jscomp$0.auto.progress.updater.call(opts$jscomp$0.auto.progress.bar[0], bubbled_sets__3355);
- }, opts$jscomp$0.auto.progress.interval);
- }
- /** @type {number} */
- tmrs$jscomp$0.auto = setTimeout(function() {
- if (opts$jscomp$0.auto.progress) {
- opts$jscomp$0.auto.progress.updater.call(opts$jscomp$0.auto.progress.bar[0], 100);
- }
- if (opts$jscomp$0.auto.onTimeoutEnd) {
- opts$jscomp$0.auto.onTimeoutEnd.call($tt0$jscomp$0, perc, dur2);
- }
- if (A$jscomp$0.isScrolling) {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0), dir);
- } else {
- y$jscomp$59.trigger(cf_e$jscomp$0(dir, conf$jscomp$0), opts$jscomp$0.auto);
- }
- }, dur2);
- if (opts$jscomp$0.auto.onTimeoutStart) {
- opts$jscomp$0.auto.onTimeoutStart.call($tt0$jscomp$0, perc, dur2);
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("resume", conf$jscomp$0), function(event) {
- event.stopPropagation();
- if (scrl$jscomp$0.isStopped) {
- /** @type {boolean} */
- scrl$jscomp$0.isStopped = false;
- /** @type {boolean} */
- A$jscomp$0.isPaused = false;
- /** @type {boolean} */
- A$jscomp$0.isScrolling = true;
- scrl$jscomp$0.startTime = getTime$jscomp$0();
- sc_startScroll$jscomp$0(scrl$jscomp$0, conf$jscomp$0);
- } else {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0));
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("prev", conf$jscomp$0) + " " + cf_e$jscomp$0("next", conf$jscomp$0), function(event, options, value, data, d) {
- event.stopPropagation();
- if (A$jscomp$0.isStopped || y$jscomp$59.is(":hidden")) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "Carousel stopped or hidden: Not scrolling.");
- }
- var page = is_number$jscomp$0(opts$jscomp$0.items.minimum) ? opts$jscomp$0.items.minimum : opts$jscomp$0.items.visible + 1;
- if (page > itms$jscomp$0.total) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "Not enough items (" + itms$jscomp$0.total + " total, " + page + " needed): Not scrolling.");
- }
- /** @type {!Array} */
- var args = [options, value, data, d];
- /** @type {!Array} */
- var basicTypes = ["object", "number/string", "function", "boolean"];
- var a = cf_sortParams$jscomp$0(args, basicTypes);
- options = a[0];
- value = a[1];
- data = a[2];
- d = a[3];
- var key = event.type.slice(conf$jscomp$0.events.prefix.length);
- if (!is_object$jscomp$0(options)) {
- options = {};
- }
- if (is_function$jscomp$0(data)) {
- /** @type {!Function} */
- options.onAfter = data;
- }
- if (is_boolean$jscomp$0(d)) {
- /** @type {string} */
- options.queue = d;
- }
- options = $$jscomp$0.extend(true, {}, opts$jscomp$0[key], options);
- if (options.conditions && !options.conditions.call($tt0$jscomp$0, key)) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, 'Callback "conditions" returned false.');
- }
- if (!is_number$jscomp$0(value)) {
- if (opts$jscomp$0.items.filter != "*") {
- /** @type {string} */
- value = "visible";
- } else {
- /** @type {!Array} */
- var params = [value, options.items, opts$jscomp$0[key].items];
- /** @type {number} */
- a = 0;
- /** @type {number} */
- var c = params.length;
- for (; a < c; a++) {
- if (is_number$jscomp$0(params[a]) || params[a] == "page" || params[a] == "visible") {
- value = params[a];
- break;
- }
- }
- }
- switch(value) {
- case "page":
- event.stopImmediatePropagation();
- return y$jscomp$59.triggerHandler(cf_e$jscomp$0(key + "Page", conf$jscomp$0), [options, data]);
- break;
- case "visible":
- if (!opts$jscomp$0.items.visibleConf.variable && opts$jscomp$0.items.filter == "*") {
- value = opts$jscomp$0.items.visible;
- }
- break;
- }
- }
- if (scrl$jscomp$0.isStopped) {
- y$jscomp$59.trigger(cf_e$jscomp$0("resume", conf$jscomp$0));
- y$jscomp$59.trigger(cf_e$jscomp$0("queue", conf$jscomp$0), [key, [options, value, data]]);
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "Carousel resumed scrolling.");
- }
- if (options.duration > 0) {
- if (A$jscomp$0.isScrolling) {
- if (options.queue) {
- if (options.queue == "last") {
- /** @type {!Array} */
- queu$jscomp$0 = [];
- }
- if (options.queue != "first" || queu$jscomp$0.length == 0) {
- y$jscomp$59.trigger(cf_e$jscomp$0("queue", conf$jscomp$0), [key, [options, value, data]]);
- }
- }
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "Carousel currently scrolling.");
- }
- }
- /** @type {number} */
- tmrs$jscomp$0.timePassed = 0;
- y$jscomp$59.trigger(cf_e$jscomp$0("slide_" + key, conf$jscomp$0), [options, value]);
- if (opts$jscomp$0.synchronise) {
- var s = opts$jscomp$0.synchronise;
- /** @type {!Array} */
- var args = [options, value];
- /** @type {number} */
- var j = 0;
- c = s.length;
- for (; j < c; j++) {
- var direction = key;
- if (!s[j][2]) {
- /** @type {string} */
- direction = direction == "prev" ? "next" : "prev";
- }
- if (!s[j][1]) {
- args[0] = s[j][0].triggerHandler("_cfs_triggerEvent", ["configuration", direction]);
- }
- args[1] = value + s[j][3];
- s[j][0].trigger("_cfs_triggerEvent", ["slide_" + direction, args]);
- }
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("slide_prev", conf$jscomp$0), function(event, config, i) {
- event.stopPropagation();
- var el = y$jscomp$59.children();
- if (!opts$jscomp$0.circular) {
- if (itms$jscomp$0.first == 0) {
- if (opts$jscomp$0.infinite) {
- y$jscomp$59.trigger(cf_e$jscomp$0("next", conf$jscomp$0), itms$jscomp$0.total - 1);
- }
- return event.stopImmediatePropagation();
- }
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0);
- if (!is_number$jscomp$0(i)) {
- if (opts$jscomp$0.items.visibleConf.variable) {
- i = gn_getVisibleItemsPrev$jscomp$0(el, opts$jscomp$0, itms$jscomp$0.total - 1);
- } else {
- if (opts$jscomp$0.items.filter != "*") {
- var alwaysDownload = is_number$jscomp$0(config.items) ? config.items : gn_getVisibleOrg$jscomp$0(y$jscomp$59, opts$jscomp$0);
- i = gn_getScrollItemsPrevFilter$jscomp$0(el, opts$jscomp$0, itms$jscomp$0.total - 1, alwaysDownload);
- } else {
- i = opts$jscomp$0.items.visible;
- }
- }
- i = cf_getAdjust$jscomp$0(i, opts$jscomp$0, config.items, $tt0$jscomp$0);
- }
- if (!opts$jscomp$0.circular) {
- if (itms$jscomp$0.total - i < itms$jscomp$0.first) {
- /** @type {number} */
- i = itms$jscomp$0.total - itms$jscomp$0.first;
- }
- }
- opts$jscomp$0.items.visibleConf.old = opts$jscomp$0.items.visible;
- if (opts$jscomp$0.items.visibleConf.variable) {
- var data = cf_getItemsAdjust$jscomp$0(gn_getVisibleItemsNext$jscomp$0(el, opts$jscomp$0, itms$jscomp$0.total - i), opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- if (opts$jscomp$0.items.visible + i <= data && i < itms$jscomp$0.total) {
- i++;
- data = cf_getItemsAdjust$jscomp$0(gn_getVisibleItemsNext$jscomp$0(el, opts$jscomp$0, itms$jscomp$0.total - i), opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- }
- opts$jscomp$0.items.visible = data;
- } else {
- if (opts$jscomp$0.items.filter != "*") {
- data = gn_getVisibleItemsNextFilter$jscomp$0(el, opts$jscomp$0, itms$jscomp$0.total - i);
- opts$jscomp$0.items.visible = cf_getItemsAdjust$jscomp$0(data, opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- }
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0, true);
- if (i == 0) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "0 items to scroll: Not scrolling.");
- }
- debug$jscomp$0(conf$jscomp$0, "Scrolling " + i + " items backward.");
- itms$jscomp$0.first += i;
- for (; itms$jscomp$0.first >= itms$jscomp$0.total;) {
- itms$jscomp$0.first -= itms$jscomp$0.total;
- }
- if (!opts$jscomp$0.circular) {
- if (itms$jscomp$0.first == 0 && config.onEnd) {
- config.onEnd.call($tt0$jscomp$0, "prev");
- }
- if (!opts$jscomp$0.infinite) {
- nv_enableNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.first, conf$jscomp$0);
- }
- }
- y$jscomp$59.children().slice(itms$jscomp$0.total - i, itms$jscomp$0.total).prependTo(y$jscomp$59);
- if (itms$jscomp$0.total < opts$jscomp$0.items.visible + i) {
- y$jscomp$59.children().slice(0, opts$jscomp$0.items.visible + i - itms$jscomp$0.total).clone(true).appendTo(y$jscomp$59);
- }
- el = y$jscomp$59.children();
- var field = gi_getOldItemsPrev$jscomp$0(el, opts$jscomp$0, i);
- var r = gi_getNewItemsPrev$jscomp$0(el, opts$jscomp$0);
- var object = el.eq(i - 1);
- var $calEvent = field.last();
- var node = r.last();
- sz_resetMargin$jscomp$0(el, opts$jscomp$0);
- /** @type {number} */
- var second_axis_symb = 0;
- /** @type {number} */
- var second_axis_magfact = 0;
- if (opts$jscomp$0.align) {
- var dummy = cf_getAlignPadding$jscomp$0(r, opts$jscomp$0);
- second_axis_symb = dummy[0];
- second_axis_magfact = dummy[1];
- }
- var subsize = second_axis_symb < 0 ? opts$jscomp$0.padding[opts$jscomp$0.d[3]] : 0;
- /** @type {boolean} */
- var values3 = false;
- var x = $$jscomp$0();
- if (opts$jscomp$0.items.visible < i) {
- x = el.slice(opts$jscomp$0.items.visibleConf.old, i);
- if (config.fx == "directscroll") {
- var k = opts$jscomp$0.items[opts$jscomp$0.d["width"]];
- values3 = x;
- object = node;
- sc_hideHiddenItems$jscomp$0(values3);
- /** @type {string} */
- opts$jscomp$0.items[opts$jscomp$0.d["width"]] = "variable";
- }
- }
- /** @type {boolean} */
- var l = false;
- var data = ms_getTotalSize$jscomp$0(el.slice(0, i), opts$jscomp$0, "width");
- var options = cf_mapWrapperSizes$jscomp$0(ms_getSizes$jscomp$0(r, opts$jscomp$0, true), opts$jscomp$0, !opts$jscomp$0.usePadding);
- /** @type {number} */
- var str = 0;
- var val = {};
- var processedOptions = {};
- var value = {};
- var $dims = {};
- var interceptorFactorySpy = {};
- var B = {};
- var map = {};
- var name = sc_getDuration$jscomp$0(config, opts$jscomp$0, i, data);
- switch(config.fx) {
- case "cover":
- case "cover-fade":
- str = ms_getTotalSize$jscomp$0(el.slice(0, opts$jscomp$0.items.visible), opts$jscomp$0, "width");
- break;
- }
- if (values3) {
- opts$jscomp$0.items[opts$jscomp$0.d["width"]] = k;
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0, true);
- if (second_axis_magfact >= 0) {
- sz_resetMargin$jscomp$0($calEvent, opts$jscomp$0, opts$jscomp$0.padding[opts$jscomp$0.d[1]]);
- }
- if (second_axis_symb >= 0) {
- sz_resetMargin$jscomp$0(object, opts$jscomp$0, opts$jscomp$0.padding[opts$jscomp$0.d[3]]);
- }
- if (opts$jscomp$0.align) {
- opts$jscomp$0.padding[opts$jscomp$0.d[1]] = second_axis_magfact;
- opts$jscomp$0.padding[opts$jscomp$0.d[3]] = second_axis_symb;
- }
- /** @type {number} */
- B[opts$jscomp$0.d["left"]] = -(data - subsize);
- /** @type {number} */
- map[opts$jscomp$0.d["left"]] = -(str - subsize);
- processedOptions[opts$jscomp$0.d["left"]] = options[opts$jscomp$0.d["width"]];
- /**
- * @return {undefined}
- */
- var setCircleSize = function() {
- };
- /**
- * @return {undefined}
- */
- var blendingSource = function() {
- };
- /**
- * @return {undefined}
- */
- var uiCleanupFunc = function() {
- };
- /**
- * @return {undefined}
- */
- var triggerListeners_ = function() {
- };
- /**
- * @return {undefined}
- */
- var transformCircle = function() {
- };
- /**
- * @return {undefined}
- */
- var animate = function() {
- };
- /**
- * @return {undefined}
- */
- var updateHighlightColor = function() {
- };
- /**
- * @return {undefined}
- */
- var calculateOfflineData = function() {
- };
- /**
- * @return {undefined}
- */
- var play = function() {
- };
- /**
- * @return {undefined}
- */
- var init = function() {
- };
- /**
- * @return {undefined}
- */
- var change_it = function() {
- };
- switch(config.fx) {
- case "crossfade":
- case "cover":
- case "cover-fade":
- case "uncover":
- case "uncover-fade":
- l = y$jscomp$59.clone(true).appendTo($wrp$jscomp$0);
- break;
- }
- switch(config.fx) {
- case "crossfade":
- case "uncover":
- case "uncover-fade":
- l.children().slice(0, i).remove();
- l.children().slice(opts$jscomp$0.items.visibleConf.old).remove();
- break;
- case "cover":
- case "cover-fade":
- l.children().slice(opts$jscomp$0.items.visible).remove();
- l.css(map);
- break;
- }
- y$jscomp$59.css(B);
- scrl$jscomp$0 = sc_setScroll$jscomp$0(name, config.easing, conf$jscomp$0);
- val[opts$jscomp$0.d["left"]] = opts$jscomp$0.usePadding ? opts$jscomp$0.padding[opts$jscomp$0.d[3]] : 0;
- if (opts$jscomp$0[opts$jscomp$0.d["width"]] == "variable" || opts$jscomp$0[opts$jscomp$0.d["height"]] == "variable") {
- /**
- * @return {undefined}
- */
- setCircleSize = function() {
- $wrp$jscomp$0.css(options);
- };
- /**
- * @return {undefined}
- */
- blendingSource = function() {
- scrl$jscomp$0.anims.push([$wrp$jscomp$0, options]);
- };
- }
- if (opts$jscomp$0.usePadding) {
- if (node.not(object).length) {
- value[opts$jscomp$0.d["marginRight"]] = object.data("_cfs_origCssMargin");
- if (second_axis_symb < 0) {
- object.css(value);
- } else {
- /**
- * @return {undefined}
- */
- updateHighlightColor = function() {
- object.css(value);
- };
- /**
- * @return {undefined}
- */
- calculateOfflineData = function() {
- scrl$jscomp$0.anims.push([object, value]);
- };
- }
- }
- switch(config.fx) {
- case "cover":
- case "cover-fade":
- l.children().eq(i - 1).css(value);
- break;
- }
- if (node.not($calEvent).length) {
- $dims[opts$jscomp$0.d["marginRight"]] = $calEvent.data("_cfs_origCssMargin");
- /**
- * @return {undefined}
- */
- uiCleanupFunc = function() {
- $calEvent.css($dims);
- };
- /**
- * @return {undefined}
- */
- triggerListeners_ = function() {
- scrl$jscomp$0.anims.push([$calEvent, $dims]);
- };
- }
- if (second_axis_magfact >= 0) {
- interceptorFactorySpy[opts$jscomp$0.d["marginRight"]] = node.data("_cfs_origCssMargin") + opts$jscomp$0.padding[opts$jscomp$0.d[1]];
- /**
- * @return {undefined}
- */
- transformCircle = function() {
- node.css(interceptorFactorySpy);
- };
- /**
- * @return {undefined}
- */
- animate = function() {
- scrl$jscomp$0.anims.push([node, interceptorFactorySpy]);
- };
- }
- }
- /**
- * @return {undefined}
- */
- change_it = function() {
- y$jscomp$59.css(val);
- };
- /** @type {number} */
- var nbCrumbs = opts$jscomp$0.items.visible + i - itms$jscomp$0.total;
- /**
- * @return {undefined}
- */
- init = function() {
- if (nbCrumbs > 0) {
- y$jscomp$59.children().slice(itms$jscomp$0.total).remove();
- field = $$jscomp$0(y$jscomp$59.children().slice(itms$jscomp$0.total - (opts$jscomp$0.items.visible - nbCrumbs)).get().concat(y$jscomp$59.children().slice(0, nbCrumbs).get()));
- }
- sc_showHiddenItems$jscomp$0(values3);
- if (opts$jscomp$0.usePadding) {
- var paddingHandleBottom = y$jscomp$59.children().eq(opts$jscomp$0.items.visible + i - 1);
- paddingHandleBottom.css(opts$jscomp$0.d["marginRight"], paddingHandleBottom.data("_cfs_origCssMargin"));
- }
- };
- var p = sc_mapCallbackArguments$jscomp$0(field, x, r, i, "prev", name, options);
- /**
- * @return {undefined}
- */
- play = function() {
- sc_afterScroll$jscomp$0(y$jscomp$59, l, config);
- /** @type {boolean} */
- A$jscomp$0.isScrolling = false;
- clbk$jscomp$0.onAfter = sc_fireCallbacks$jscomp$0($tt0$jscomp$0, config, "onAfter", p, clbk$jscomp$0);
- queu$jscomp$0 = sc_fireQueue$jscomp$0(y$jscomp$59, queu$jscomp$0, conf$jscomp$0);
- if (!A$jscomp$0.isPaused) {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0));
- }
- };
- /** @type {boolean} */
- A$jscomp$0.isScrolling = true;
- tmrs$jscomp$0 = sc_clearTimers$jscomp$0(tmrs$jscomp$0);
- clbk$jscomp$0.onBefore = sc_fireCallbacks$jscomp$0($tt0$jscomp$0, config, "onBefore", p, clbk$jscomp$0);
- switch(config.fx) {
- case "none":
- y$jscomp$59.css(val);
- setCircleSize();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- play();
- break;
- case "fade":
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 0
- }, function() {
- setCircleSize();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- scrl$jscomp$0 = sc_setScroll$jscomp$0(name, config.easing, conf$jscomp$0);
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }, play]);
- sc_startScroll$jscomp$0(scrl$jscomp$0, conf$jscomp$0);
- }]);
- break;
- case "crossfade":
- y$jscomp$59.css({
- "opacity" : 0
- });
- scrl$jscomp$0.anims.push([l, {
- "opacity" : 0
- }]);
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }, play]);
- blendingSource();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- break;
- case "cover":
- scrl$jscomp$0.anims.push([l, val, function() {
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- play();
- }]);
- blendingSource();
- break;
- case "cover-fade":
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 0
- }]);
- scrl$jscomp$0.anims.push([l, val, function() {
- y$jscomp$59.css({
- "opacity" : 1
- });
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- play();
- }]);
- blendingSource();
- break;
- case "uncover":
- scrl$jscomp$0.anims.push([l, processedOptions, play]);
- blendingSource();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- break;
- case "uncover-fade":
- y$jscomp$59.css({
- "opacity" : 0
- });
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }]);
- scrl$jscomp$0.anims.push([l, processedOptions, play]);
- blendingSource();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- change_it();
- init();
- break;
- default:
- scrl$jscomp$0.anims.push([y$jscomp$59, val, function() {
- init();
- play();
- }]);
- blendingSource();
- triggerListeners_();
- animate();
- calculateOfflineData();
- break;
- }
- sc_startScroll$jscomp$0(scrl$jscomp$0, conf$jscomp$0);
- cf_setCookie$jscomp$0(opts$jscomp$0.cookie, y$jscomp$59, conf$jscomp$0);
- y$jscomp$59.trigger(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), [false, options]);
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("slide_next", conf$jscomp$0), function(event, options, i) {
- event.stopPropagation();
- var el = y$jscomp$59.children();
- if (!opts$jscomp$0.circular) {
- if (itms$jscomp$0.first == opts$jscomp$0.items.visible) {
- if (opts$jscomp$0.infinite) {
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0), itms$jscomp$0.total - 1);
- }
- return event.stopImmediatePropagation();
- }
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0);
- if (!is_number$jscomp$0(i)) {
- if (opts$jscomp$0.items.filter != "*") {
- var s = is_number$jscomp$0(options.items) ? options.items : gn_getVisibleOrg$jscomp$0(y$jscomp$59, opts$jscomp$0);
- i = gn_getScrollItemsNextFilter$jscomp$0(el, opts$jscomp$0, 0, s);
- } else {
- i = opts$jscomp$0.items.visible;
- }
- i = cf_getAdjust$jscomp$0(i, opts$jscomp$0, options.items, $tt0$jscomp$0);
- }
- var m = itms$jscomp$0.first == 0 ? itms$jscomp$0.total : itms$jscomp$0.first;
- if (!opts$jscomp$0.circular) {
- if (opts$jscomp$0.items.visibleConf.variable) {
- var v = gn_getVisibleItemsNext$jscomp$0(el, opts$jscomp$0, i);
- s = gn_getVisibleItemsPrev$jscomp$0(el, opts$jscomp$0, m - 1);
- } else {
- v = opts$jscomp$0.items.visible;
- s = opts$jscomp$0.items.visible;
- }
- if (i + v > m) {
- /** @type {number} */
- i = m - s;
- }
- }
- opts$jscomp$0.items.visibleConf.old = opts$jscomp$0.items.visible;
- if (opts$jscomp$0.items.visibleConf.variable) {
- v = cf_getItemsAdjust$jscomp$0(gn_getVisibleItemsNextTestCircular$jscomp$0(el, opts$jscomp$0, i, m), opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- for (; opts$jscomp$0.items.visible - i >= v && i < itms$jscomp$0.total;) {
- i++;
- v = cf_getItemsAdjust$jscomp$0(gn_getVisibleItemsNextTestCircular$jscomp$0(el, opts$jscomp$0, i, m), opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- }
- opts$jscomp$0.items.visible = v;
- } else {
- if (opts$jscomp$0.items.filter != "*") {
- v = gn_getVisibleItemsNextFilter$jscomp$0(el, opts$jscomp$0, i);
- opts$jscomp$0.items.visible = cf_getItemsAdjust$jscomp$0(v, opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- }
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0, true);
- if (i == 0) {
- event.stopImmediatePropagation();
- return debug$jscomp$0(conf$jscomp$0, "0 items to scroll: Not scrolling.");
- }
- debug$jscomp$0(conf$jscomp$0, "Scrolling " + i + " items forward.");
- itms$jscomp$0.first -= i;
- for (; itms$jscomp$0.first < 0;) {
- itms$jscomp$0.first += itms$jscomp$0.total;
- }
- if (!opts$jscomp$0.circular) {
- if (itms$jscomp$0.first == opts$jscomp$0.items.visible && options.onEnd) {
- options.onEnd.call($tt0$jscomp$0, "next");
- }
- if (!opts$jscomp$0.infinite) {
- nv_enableNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.first, conf$jscomp$0);
- }
- }
- if (itms$jscomp$0.total < opts$jscomp$0.items.visible + i) {
- y$jscomp$59.children().slice(0, opts$jscomp$0.items.visible + i - itms$jscomp$0.total).clone(true).appendTo(y$jscomp$59);
- }
- el = y$jscomp$59.children();
- var n = gi_getOldItemsNext$jscomp$0(el, opts$jscomp$0);
- var res = gi_getNewItemsNext$jscomp$0(el, opts$jscomp$0, i);
- var $results = el.eq(i - 1);
- var $item = n.last();
- var button = res.last();
- sz_resetMargin$jscomp$0(el, opts$jscomp$0);
- /** @type {number} */
- var h = 0;
- /** @type {number} */
- var lasty = 0;
- if (opts$jscomp$0.align) {
- var p = cf_getAlignPadding$jscomp$0(res, opts$jscomp$0);
- h = p[0];
- lasty = p[1];
- }
- /** @type {boolean} */
- var transformProperty = false;
- var e = $$jscomp$0();
- if (opts$jscomp$0.items.visibleConf.old < i) {
- e = el.slice(opts$jscomp$0.items.visibleConf.old, i);
- if (options.fx == "directscroll") {
- var l = opts$jscomp$0.items[opts$jscomp$0.d["width"]];
- transformProperty = e;
- $results = $item;
- sc_hideHiddenItems$jscomp$0(transformProperty);
- /** @type {string} */
- opts$jscomp$0.items[opts$jscomp$0.d["width"]] = "variable";
- }
- }
- /** @type {boolean} */
- var t = false;
- var position = ms_getTotalSize$jscomp$0(el.slice(0, i), opts$jscomp$0, "width");
- var arg1 = cf_mapWrapperSizes$jscomp$0(ms_getSizes$jscomp$0(res, opts$jscomp$0, true), opts$jscomp$0, !opts$jscomp$0.usePadding);
- /** @type {number} */
- var value = 0;
- var z = {};
- var fields = {};
- var top = {};
- var itemCSS = {};
- var p = {};
- var result = sc_getDuration$jscomp$0(options, opts$jscomp$0, i, position);
- switch(options.fx) {
- case "uncover":
- case "uncover-fade":
- value = ms_getTotalSize$jscomp$0(el.slice(0, opts$jscomp$0.items.visibleConf.old), opts$jscomp$0, "width");
- break;
- }
- if (transformProperty) {
- opts$jscomp$0.items[opts$jscomp$0.d["width"]] = l;
- }
- if (opts$jscomp$0.align) {
- if (opts$jscomp$0.padding[opts$jscomp$0.d[1]] < 0) {
- /** @type {number} */
- opts$jscomp$0.padding[opts$jscomp$0.d[1]] = 0;
- }
- }
- sz_resetMargin$jscomp$0(el, opts$jscomp$0, true);
- sz_resetMargin$jscomp$0($item, opts$jscomp$0, opts$jscomp$0.padding[opts$jscomp$0.d[1]]);
- if (opts$jscomp$0.align) {
- opts$jscomp$0.padding[opts$jscomp$0.d[1]] = lasty;
- opts$jscomp$0.padding[opts$jscomp$0.d[3]] = h;
- }
- p[opts$jscomp$0.d["left"]] = opts$jscomp$0.usePadding ? opts$jscomp$0.padding[opts$jscomp$0.d[3]] : 0;
- /**
- * @return {undefined}
- */
- var setCircleSize = function() {
- };
- /**
- * @return {undefined}
- */
- var animate = function() {
- };
- /**
- * @return {undefined}
- */
- var uiCleanupFunc = function() {
- };
- /**
- * @return {undefined}
- */
- var triggerListeners_ = function() {
- };
- /**
- * @return {undefined}
- */
- var transformCircle = function() {
- };
- /**
- * @return {undefined}
- */
- var blendingSource = function() {
- };
- /**
- * @return {undefined}
- */
- var onLoad = function() {
- };
- /**
- * @return {undefined}
- */
- var init = function() {
- };
- /**
- * @return {undefined}
- */
- var updateHighlightColor = function() {
- };
- switch(options.fx) {
- case "crossfade":
- case "cover":
- case "cover-fade":
- case "uncover":
- case "uncover-fade":
- t = y$jscomp$59.clone(true).appendTo($wrp$jscomp$0);
- t.children().slice(opts$jscomp$0.items.visibleConf.old).remove();
- break;
- }
- switch(options.fx) {
- case "crossfade":
- case "cover":
- case "cover-fade":
- y$jscomp$59.css("zIndex", 1);
- t.css("zIndex", 0);
- break;
- }
- scrl$jscomp$0 = sc_setScroll$jscomp$0(result, options.easing, conf$jscomp$0);
- /** @type {number} */
- z[opts$jscomp$0.d["left"]] = -position;
- /** @type {number} */
- fields[opts$jscomp$0.d["left"]] = -value;
- if (h < 0) {
- z[opts$jscomp$0.d["left"]] += h;
- }
- if (opts$jscomp$0[opts$jscomp$0.d["width"]] == "variable" || opts$jscomp$0[opts$jscomp$0.d["height"]] == "variable") {
- /**
- * @return {undefined}
- */
- setCircleSize = function() {
- $wrp$jscomp$0.css(arg1);
- };
- /**
- * @return {undefined}
- */
- animate = function() {
- scrl$jscomp$0.anims.push([$wrp$jscomp$0, arg1]);
- };
- }
- if (opts$jscomp$0.usePadding) {
- var holder_width = button.data("_cfs_origCssMargin");
- if (lasty >= 0) {
- holder_width = holder_width + opts$jscomp$0.padding[opts$jscomp$0.d[1]];
- }
- button.css(opts$jscomp$0.d["marginRight"], holder_width);
- if ($results.not($item).length) {
- itemCSS[opts$jscomp$0.d["marginRight"]] = $item.data("_cfs_origCssMargin");
- }
- /**
- * @return {undefined}
- */
- uiCleanupFunc = function() {
- $item.css(itemCSS);
- };
- /**
- * @return {undefined}
- */
- triggerListeners_ = function() {
- scrl$jscomp$0.anims.push([$item, itemCSS]);
- };
- var value = $results.data("_cfs_origCssMargin");
- if (h > 0) {
- value = value + opts$jscomp$0.padding[opts$jscomp$0.d[3]];
- }
- top[opts$jscomp$0.d["marginRight"]] = value;
- /**
- * @return {undefined}
- */
- transformCircle = function() {
- $results.css(top);
- };
- /**
- * @return {undefined}
- */
- blendingSource = function() {
- scrl$jscomp$0.anims.push([$results, top]);
- };
- }
- /**
- * @return {undefined}
- */
- updateHighlightColor = function() {
- y$jscomp$59.css(p);
- };
- /** @type {number} */
- var _ = opts$jscomp$0.items.visible + i - itms$jscomp$0.total;
- /**
- * @return {undefined}
- */
- init = function() {
- if (_ > 0) {
- y$jscomp$59.children().slice(itms$jscomp$0.total).remove();
- }
- var paddingHandleBottom = y$jscomp$59.children().slice(0, i).appendTo(y$jscomp$59).last();
- if (_ > 0) {
- res = gi_getCurrentItems$jscomp$0(el, opts$jscomp$0);
- }
- sc_showHiddenItems$jscomp$0(transformProperty);
- if (opts$jscomp$0.usePadding) {
- if (itms$jscomp$0.total < opts$jscomp$0.items.visible + i) {
- var paddingHandleBottom = y$jscomp$59.children().eq(opts$jscomp$0.items.visible - 1);
- paddingHandleBottom.css(opts$jscomp$0.d["marginRight"], paddingHandleBottom.data("_cfs_origCssMargin") + opts$jscomp$0.padding[opts$jscomp$0.d[1]]);
- }
- paddingHandleBottom.css(opts$jscomp$0.d["marginRight"], paddingHandleBottom.data("_cfs_origCssMargin"));
- }
- };
- var x = sc_mapCallbackArguments$jscomp$0(n, e, res, i, "next", result, arg1);
- /**
- * @return {undefined}
- */
- onLoad = function() {
- y$jscomp$59.css("zIndex", y$jscomp$59.data("_cfs_origCssZindex"));
- sc_afterScroll$jscomp$0(y$jscomp$59, t, options);
- /** @type {boolean} */
- A$jscomp$0.isScrolling = false;
- clbk$jscomp$0.onAfter = sc_fireCallbacks$jscomp$0($tt0$jscomp$0, options, "onAfter", x, clbk$jscomp$0);
- queu$jscomp$0 = sc_fireQueue$jscomp$0(y$jscomp$59, queu$jscomp$0, conf$jscomp$0);
- if (!A$jscomp$0.isPaused) {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0));
- }
- };
- /** @type {boolean} */
- A$jscomp$0.isScrolling = true;
- tmrs$jscomp$0 = sc_clearTimers$jscomp$0(tmrs$jscomp$0);
- clbk$jscomp$0.onBefore = sc_fireCallbacks$jscomp$0($tt0$jscomp$0, options, "onBefore", x, clbk$jscomp$0);
- switch(options.fx) {
- case "none":
- y$jscomp$59.css(z);
- setCircleSize();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- init();
- onLoad();
- break;
- case "fade":
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 0
- }, function() {
- setCircleSize();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- init();
- scrl$jscomp$0 = sc_setScroll$jscomp$0(result, options.easing, conf$jscomp$0);
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }, onLoad]);
- sc_startScroll$jscomp$0(scrl$jscomp$0, conf$jscomp$0);
- }]);
- break;
- case "crossfade":
- y$jscomp$59.css({
- "opacity" : 0
- });
- scrl$jscomp$0.anims.push([t, {
- "opacity" : 0
- }]);
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }, onLoad]);
- animate();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- init();
- break;
- case "cover":
- y$jscomp$59.css(opts$jscomp$0.d["left"], $wrp$jscomp$0[opts$jscomp$0.d["width"]]());
- scrl$jscomp$0.anims.push([y$jscomp$59, p, onLoad]);
- animate();
- uiCleanupFunc();
- transformCircle();
- init();
- break;
- case "cover-fade":
- y$jscomp$59.css(opts$jscomp$0.d["left"], $wrp$jscomp$0[opts$jscomp$0.d["width"]]());
- scrl$jscomp$0.anims.push([t, {
- "opacity" : 0
- }]);
- scrl$jscomp$0.anims.push([y$jscomp$59, p, onLoad]);
- animate();
- uiCleanupFunc();
- transformCircle();
- init();
- break;
- case "uncover":
- scrl$jscomp$0.anims.push([t, fields, onLoad]);
- animate();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- init();
- break;
- case "uncover-fade":
- y$jscomp$59.css({
- "opacity" : 0
- });
- scrl$jscomp$0.anims.push([y$jscomp$59, {
- "opacity" : 1
- }]);
- scrl$jscomp$0.anims.push([t, fields, onLoad]);
- animate();
- uiCleanupFunc();
- transformCircle();
- updateHighlightColor();
- init();
- break;
- default:
- scrl$jscomp$0.anims.push([y$jscomp$59, z, function() {
- updateHighlightColor();
- init();
- onLoad();
- }]);
- animate();
- triggerListeners_();
- blendingSource();
- break;
- }
- sc_startScroll$jscomp$0(scrl$jscomp$0, conf$jscomp$0);
- cf_setCookie$jscomp$0(opts$jscomp$0.cookie, y$jscomp$59, conf$jscomp$0);
- y$jscomp$59.trigger(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), [false, arg1]);
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("slideTo", conf$jscomp$0), function(event, x, expectedSeries2, cp0, s, dir, h) {
- event.stopPropagation();
- /** @type {!Array} */
- var expected = [x, expectedSeries2, cp0, s, dir, h];
- /** @type {!Array} */
- var values = ["string/number/object", "number", "boolean", "object", "string", "function"];
- var args = cf_sortParams$jscomp$0(expected, values);
- s = args[3];
- dir = args[4];
- h = args[5];
- x = gn_getItemIndex$jscomp$0(args[0], args[1], args[2], itms$jscomp$0, y$jscomp$59);
- if (x == 0) {
- return false;
- }
- if (!is_object$jscomp$0(s)) {
- /** @type {boolean} */
- s = false;
- }
- if (dir != "prev" && dir != "next") {
- if (opts$jscomp$0.circular) {
- /** @type {string} */
- dir = x <= itms$jscomp$0.total / 2 ? "next" : "prev";
- } else {
- /** @type {string} */
- dir = itms$jscomp$0.first == 0 || itms$jscomp$0.first > x ? "next" : "prev";
- }
- }
- if (dir == "prev") {
- /** @type {number} */
- x = itms$jscomp$0.total - x;
- }
- y$jscomp$59.trigger(cf_e$jscomp$0(dir, conf$jscomp$0), [s, x, h]);
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("prevPage", conf$jscomp$0), function(event, isUndo, groupObjects) {
- event.stopPropagation();
- var c = y$jscomp$59.triggerHandler(cf_e$jscomp$0("currentPage", conf$jscomp$0));
- return y$jscomp$59.triggerHandler(cf_e$jscomp$0("slideToPage", conf$jscomp$0), [c - 1, isUndo, "prev", groupObjects]);
- });
- y$jscomp$59.bind(cf_e$jscomp$0("nextPage", conf$jscomp$0), function(event, isUndo, groupObjects) {
- event.stopPropagation();
- var c = y$jscomp$59.triggerHandler(cf_e$jscomp$0("currentPage", conf$jscomp$0));
- return y$jscomp$59.triggerHandler(cf_e$jscomp$0("slideToPage", conf$jscomp$0), [c + 1, isUndo, "next", groupObjects]);
- });
- y$jscomp$59.bind(cf_e$jscomp$0("slideToPage", conf$jscomp$0), function(event, val, groupObjects, singleObjects, audiobeds) {
- event.stopPropagation();
- if (!is_number$jscomp$0(val)) {
- val = y$jscomp$59.triggerHandler(cf_e$jscomp$0("currentPage", conf$jscomp$0));
- }
- var count = opts$jscomp$0.pagination.items || opts$jscomp$0.items.visible;
- /** @type {number} */
- var edge = Math.ceil(itms$jscomp$0.total / count) - 1;
- if (val < 0) {
- /** @type {number} */
- val = edge;
- }
- if (val > edge) {
- /** @type {number} */
- val = 0;
- }
- return y$jscomp$59.triggerHandler(cf_e$jscomp$0("slideTo", conf$jscomp$0), [val * count, 0, true, groupObjects, singleObjects, audiobeds]);
- });
- y$jscomp$59.bind(cf_e$jscomp$0("jumpToStart", conf$jscomp$0), function(event, value) {
- event.stopPropagation();
- if (value) {
- value = gn_getItemIndex$jscomp$0(value, 0, true, itms$jscomp$0, y$jscomp$59);
- } else {
- /** @type {number} */
- value = 0;
- }
- value = value + itms$jscomp$0.first;
- if (value != 0) {
- if (itms$jscomp$0.total > 0) {
- for (; value > itms$jscomp$0.total;) {
- /** @type {number} */
- value = value - itms$jscomp$0.total;
- }
- }
- y$jscomp$59.prepend(y$jscomp$59.children().slice(value, itms$jscomp$0.total));
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("synchronise", conf$jscomp$0), function(event, s) {
- event.stopPropagation();
- if (s) {
- s = cf_getSynchArr$jscomp$0(s);
- } else {
- if (opts$jscomp$0.synchronise) {
- s = opts$jscomp$0.synchronise;
- } else {
- return debug$jscomp$0(conf$jscomp$0, "No carousel to synchronise.");
- }
- }
- var $viccollection = y$jscomp$59.triggerHandler(cf_e$jscomp$0("currentPosition", conf$jscomp$0));
- /** @type {boolean} */
- var x = true;
- /** @type {number} */
- var i = 0;
- var l = s.length;
- for (; i < l; i++) {
- if (!s[i][0].triggerHandler(cf_e$jscomp$0("slideTo", conf$jscomp$0), [$viccollection, s[i][3], true])) {
- /** @type {boolean} */
- x = false;
- }
- }
- return x;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("queue", conf$jscomp$0), function(event, value, b) {
- event.stopPropagation();
- if (is_function$jscomp$0(value)) {
- value.call($tt0$jscomp$0, queu$jscomp$0);
- } else {
- if (is_array$jscomp$0(value)) {
- /** @type {!Object} */
- queu$jscomp$0 = value;
- } else {
- if (!is_undefined$jscomp$0(value)) {
- queu$jscomp$0.push([value, b]);
- }
- }
- }
- return queu$jscomp$0;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("insertItem", conf$jscomp$0), function(event, target, i, style, value) {
- event.stopPropagation();
- /** @type {!Array} */
- var props = [target, i, style, value];
- /** @type {!Array} */
- var values = ["string/object", "string/number/object", "boolean", "number"];
- var args = cf_sortParams$jscomp$0(props, values);
- target = args[0];
- i = args[1];
- style = args[2];
- value = args[3];
- if (is_object$jscomp$0(target) && !is_jquery$jscomp$0(target)) {
- target = $$jscomp$0(target);
- } else {
- if (is_string$jscomp$0(target)) {
- target = $$jscomp$0(target);
- }
- }
- if (!is_jquery$jscomp$0(target) || target.length == 0) {
- return debug$jscomp$0(conf$jscomp$0, "Not a valid object.");
- }
- if (is_undefined$jscomp$0(i)) {
- /** @type {string} */
- i = "end";
- }
- sz_storeMargin$jscomp$0(target, opts$jscomp$0);
- sz_storeOrigCss$jscomp$0(target);
- /** @type {string} */
- var start = i;
- /** @type {string} */
- var method = "before";
- if (i == "end") {
- if (style) {
- if (itms$jscomp$0.first == 0) {
- /** @type {number} */
- i = itms$jscomp$0.total - 1;
- /** @type {string} */
- method = "after";
- } else {
- i = itms$jscomp$0.first;
- itms$jscomp$0.first += target.length;
- }
- if (i < 0) {
- /** @type {number} */
- i = 0;
- }
- } else {
- /** @type {number} */
- i = itms$jscomp$0.total - 1;
- /** @type {string} */
- method = "after";
- }
- } else {
- i = gn_getItemIndex$jscomp$0(i, value, style, itms$jscomp$0, y$jscomp$59);
- }
- var action = y$jscomp$59.children().eq(i);
- if (action.length) {
- action[method](target);
- } else {
- debug$jscomp$0(conf$jscomp$0, "Correct insert-position not found! Appending item to the end.");
- y$jscomp$59.append(target);
- }
- if (start != "end" && !style) {
- if (i < itms$jscomp$0.first) {
- itms$jscomp$0.first += target.length;
- }
- }
- itms$jscomp$0.total = y$jscomp$59.children().length;
- if (itms$jscomp$0.first >= itms$jscomp$0.total) {
- itms$jscomp$0.first -= itms$jscomp$0.total;
- }
- y$jscomp$59.trigger(cf_e$jscomp$0("updateSizes", conf$jscomp$0));
- y$jscomp$59.trigger(cf_e$jscomp$0("linkAnchors", conf$jscomp$0));
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("removeItem", conf$jscomp$0), function(event, value, target, data) {
- event.stopPropagation();
- /** @type {!Array} */
- var args = [value, target, data];
- /** @type {!Array} */
- var types = ["string/number/object", "boolean", "number"];
- var obj = cf_sortParams$jscomp$0(args, types);
- value = obj[0];
- target = obj[1];
- data = obj[2];
- /** @type {boolean} */
- var g = false;
- if (value instanceof $$jscomp$0 && value.length > 1) {
- input = $$jscomp$0();
- value.each(function(i, a) {
- var coin = y$jscomp$59.trigger(cf_e$jscomp$0("removeItem", conf$jscomp$0), [$$jscomp$0(this), target, data]);
- if (coin) {
- input = input.add(coin);
- }
- });
- return input;
- }
- if (is_undefined$jscomp$0(value) || value == "end") {
- input = y$jscomp$59.children().last();
- } else {
- value = gn_getItemIndex$jscomp$0(value, data, target, itms$jscomp$0, y$jscomp$59);
- var input = y$jscomp$59.children().eq(value);
- if (input.length) {
- if (value < itms$jscomp$0.first) {
- itms$jscomp$0.first -= input.length;
- }
- }
- }
- if (input && input.length) {
- input.detach();
- itms$jscomp$0.total = y$jscomp$59.children().length;
- y$jscomp$59.trigger(cf_e$jscomp$0("updateSizes", conf$jscomp$0));
- }
- return input;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("onBefore", conf$jscomp$0) + " " + cf_e$jscomp$0("onAfter", conf$jscomp$0), function(event, s) {
- event.stopPropagation();
- var stack = event.type.slice(conf$jscomp$0.events.prefix.length);
- if (is_array$jscomp$0(s)) {
- /** @type {!Object} */
- clbk$jscomp$0[stack] = s;
- }
- if (is_function$jscomp$0(s)) {
- clbk$jscomp$0[stack].push(s);
- }
- return clbk$jscomp$0[stack];
- });
- y$jscomp$59.bind(cf_e$jscomp$0("currentPosition", conf$jscomp$0), function(event, callback) {
- event.stopPropagation();
- if (itms$jscomp$0.first == 0) {
- /** @type {number} */
- var captionData = 0;
- } else {
- /** @type {number} */
- captionData = itms$jscomp$0.total - itms$jscomp$0.first;
- }
- if (is_function$jscomp$0(callback)) {
- callback.call($tt0$jscomp$0, captionData);
- }
- return captionData;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("currentPage", conf$jscomp$0), function(event, value) {
- event.stopPropagation();
- var pageSize = opts$jscomp$0.pagination.items || opts$jscomp$0.items.visible;
- /** @type {number} */
- var startNo = Math.ceil(itms$jscomp$0.total / pageSize - 1);
- var i;
- if (itms$jscomp$0.first == 0) {
- /** @type {number} */
- i = 0;
- } else {
- if (itms$jscomp$0.first < itms$jscomp$0.total % pageSize) {
- /** @type {number} */
- i = 0;
- } else {
- if (itms$jscomp$0.first == pageSize && !opts$jscomp$0.circular) {
- /** @type {number} */
- i = startNo;
- } else {
- /** @type {number} */
- i = Math.round((itms$jscomp$0.total - itms$jscomp$0.first) / pageSize);
- }
- }
- }
- if (i < 0) {
- /** @type {number} */
- i = 0;
- }
- if (i > startNo) {
- /** @type {number} */
- i = startNo;
- }
- if (is_function$jscomp$0(value)) {
- value.call($tt0$jscomp$0, i);
- }
- return i;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("currentVisible", conf$jscomp$0), function(event, value) {
- event.stopPropagation();
- var ctx = gi_getCurrentItems$jscomp$0(y$jscomp$59.children(), opts$jscomp$0);
- if (is_function$jscomp$0(value)) {
- value.call($tt0$jscomp$0, ctx);
- }
- return ctx;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("slice", conf$jscomp$0), function(event, value, i, callback) {
- event.stopPropagation();
- if (itms$jscomp$0.total == 0) {
- return false;
- }
- /** @type {!Array} */
- var args = [value, i, callback];
- /** @type {!Array} */
- var basicTypes = ["number", "number", "function"];
- var methodArgs = cf_sortParams$jscomp$0(args, basicTypes);
- value = is_number$jscomp$0(methodArgs[0]) ? methodArgs[0] : 0;
- i = is_number$jscomp$0(methodArgs[1]) ? methodArgs[1] : itms$jscomp$0.total;
- callback = methodArgs[2];
- value = value + itms$jscomp$0.first;
- i = i + itms$jscomp$0.first;
- if (items.total > 0) {
- for (; value > itms$jscomp$0.total;) {
- /** @type {number} */
- value = value - itms$jscomp$0.total;
- }
- for (; i > itms$jscomp$0.total;) {
- /** @type {number} */
- i = i - itms$jscomp$0.total;
- }
- for (; value < 0;) {
- value = value + itms$jscomp$0.total;
- }
- for (; i < 0;) {
- i = i + itms$jscomp$0.total;
- }
- }
- var test = y$jscomp$59.children();
- var selected;
- if (i > value) {
- selected = test.slice(value, i);
- } else {
- selected = $$jscomp$0(test.slice(value, itms$jscomp$0.total).get().concat(test.slice(0, i).get()));
- }
- if (is_function$jscomp$0(callback)) {
- callback.call($tt0$jscomp$0, selected);
- }
- return selected;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("isPaused", conf$jscomp$0) + " " + cf_e$jscomp$0("isStopped", conf$jscomp$0) + " " + cf_e$jscomp$0("isScrolling", conf$jscomp$0), function(event, callback) {
- event.stopPropagation();
- var i = event.type.slice(conf$jscomp$0.events.prefix.length);
- var args = A$jscomp$0[i];
- if (is_function$jscomp$0(callback)) {
- callback.call($tt0$jscomp$0, args);
- }
- return args;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("configuration", conf$jscomp$0), function(e$jscomp$34, a$jscomp$91, b$jscomp$62, c$jscomp$42) {
- e$jscomp$34.stopPropagation();
- /** @type {boolean} */
- var d$jscomp$24 = false;
- if (is_function$jscomp$0(a$jscomp$91)) {
- a$jscomp$91.call($tt0$jscomp$0, opts$jscomp$0);
- } else {
- if (is_object$jscomp$0(a$jscomp$91)) {
- opts_orig$jscomp$0 = $$jscomp$0.extend(true, {}, opts_orig$jscomp$0, a$jscomp$91);
- if (b$jscomp$62 !== false) {
- /** @type {boolean} */
- d$jscomp$24 = true;
- } else {
- opts$jscomp$0 = $$jscomp$0.extend(true, {}, opts$jscomp$0, a$jscomp$91);
- }
- } else {
- if (!is_undefined$jscomp$0(a$jscomp$91)) {
- if (is_function$jscomp$0(b$jscomp$62)) {
- /** @type {*} */
- var f$jscomp$15 = eval("opts." + a$jscomp$91);
- if (is_undefined$jscomp$0(f$jscomp$15)) {
- /** @type {string} */
- f$jscomp$15 = "";
- }
- b$jscomp$62.call($tt0$jscomp$0, f$jscomp$15);
- } else {
- if (!is_undefined$jscomp$0(b$jscomp$62)) {
- if (typeof c$jscomp$42 !== "boolean") {
- /** @type {boolean} */
- c$jscomp$42 = true;
- }
- eval("opts_orig." + a$jscomp$91 + " = b");
- if (c$jscomp$42 !== false) {
- /** @type {boolean} */
- d$jscomp$24 = true;
- } else {
- eval("opts." + a$jscomp$91 + " = b");
- }
- } else {
- return eval("opts." + a$jscomp$91);
- }
- }
- }
- }
- }
- if (d$jscomp$24) {
- sz_resetMargin$jscomp$0(y$jscomp$59.children(), opts$jscomp$0);
- z$jscomp$11._cfs_init(opts_orig$jscomp$0);
- z$jscomp$11._cfs_bind_buttons();
- var g$jscomp$7 = sz_setSizes$jscomp$0(y$jscomp$59, opts$jscomp$0);
- y$jscomp$59.trigger(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), [true, g$jscomp$7]);
- }
- return opts$jscomp$0;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("linkAnchors", conf$jscomp$0), function(event, a, val) {
- event.stopPropagation();
- if (is_undefined$jscomp$0(a)) {
- a = $$jscomp$0("body");
- } else {
- if (is_string$jscomp$0(a)) {
- a = $$jscomp$0(a);
- }
- }
- if (!is_jquery$jscomp$0(a) || a.length == 0) {
- return debug$jscomp$0(conf$jscomp$0, "Not a valid object.");
- }
- if (!is_string$jscomp$0(val)) {
- /** @type {string} */
- val = "a.caroufredsel";
- }
- a.find(val).each(function() {
- var x = this.hash || "";
- if (x.length > 0 && y$jscomp$59.children().index($$jscomp$0(x)) != -1) {
- $$jscomp$0(this).unbind("click").click(function(event) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("slideTo", conf$jscomp$0), x);
- });
- }
- });
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), function(event, b, canCreateDiscussions) {
- event.stopPropagation();
- if (!opts$jscomp$0.pagination.container) {
- return;
- }
- var limit = opts$jscomp$0.pagination.items || opts$jscomp$0.items.visible;
- /** @type {number} */
- var u = Math.ceil(itms$jscomp$0.total / limit);
- if (b) {
- if (opts$jscomp$0.pagination.anchorBuilder) {
- opts$jscomp$0.pagination.container.children().remove();
- opts$jscomp$0.pagination.container.each(function() {
- /** @type {number} */
- var i = 0;
- for (; i < u; i++) {
- var cmpEvents = y$jscomp$59.children().eq(gn_getItemIndex$jscomp$0(i * limit, 0, true, itms$jscomp$0, y$jscomp$59));
- $$jscomp$0(this).append(opts$jscomp$0.pagination.anchorBuilder.call(cmpEvents[0], i + 1));
- }
- });
- }
- opts$jscomp$0.pagination.container.each(function() {
- $$jscomp$0(this).children().unbind(opts$jscomp$0.pagination.event).each(function(step) {
- $$jscomp$0(this).bind(opts$jscomp$0.pagination.event, function(event) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("slideTo", conf$jscomp$0), [step * limit, -opts$jscomp$0.pagination.deviation, true, opts$jscomp$0.pagination]);
- });
- });
- });
- }
- var f = y$jscomp$59.triggerHandler(cf_e$jscomp$0("currentPage", conf$jscomp$0)) + opts$jscomp$0.pagination.deviation;
- if (f >= u) {
- /** @type {number} */
- f = 0;
- }
- if (f < 0) {
- /** @type {number} */
- f = u - 1;
- }
- opts$jscomp$0.pagination.container.each(function() {
- $$jscomp$0(this).children().removeClass(cf_c$jscomp$0("selected", conf$jscomp$0)).eq(f).addClass(cf_c$jscomp$0("selected", conf$jscomp$0));
- });
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("updateSizes", conf$jscomp$0), function(canCreateDiscussions) {
- var v = opts$jscomp$0.items.visible;
- var settings = y$jscomp$59.children();
- var data = ms_getParentSize$jscomp$0($wrp$jscomp$0, opts$jscomp$0, "width");
- itms$jscomp$0.total = settings.length;
- if (A$jscomp$0.primarySizePercentage) {
- opts$jscomp$0.maxDimension = data;
- opts$jscomp$0[opts$jscomp$0.d["width"]] = ms_getPercentage$jscomp$0(data, A$jscomp$0.primarySizePercentage);
- } else {
- opts$jscomp$0.maxDimension = ms_getMaxDimension$jscomp$0(opts$jscomp$0, data);
- }
- if (opts$jscomp$0.responsive) {
- opts$jscomp$0.items.width = opts$jscomp$0.items.sizesConf.width;
- opts$jscomp$0.items.height = opts$jscomp$0.items.sizesConf.height;
- opts$jscomp$0 = in_getResponsiveValues$jscomp$0(opts$jscomp$0, settings, data);
- v = opts$jscomp$0.items.visible;
- sz_setResponsiveSizes$jscomp$0(opts$jscomp$0, settings);
- } else {
- if (opts$jscomp$0.items.visibleConf.variable) {
- v = gn_getVisibleItemsNext$jscomp$0(settings, opts$jscomp$0, 0);
- } else {
- if (opts$jscomp$0.items.filter != "*") {
- v = gn_getVisibleItemsNextFilter$jscomp$0(settings, opts$jscomp$0, 0);
- }
- }
- }
- if (!opts$jscomp$0.circular && itms$jscomp$0.first != 0 && v > itms$jscomp$0.first) {
- if (opts$jscomp$0.items.visibleConf.variable) {
- /** @type {number} */
- var ctx = gn_getVisibleItemsPrev$jscomp$0(settings, opts$jscomp$0, itms$jscomp$0.first) - itms$jscomp$0.first;
- } else {
- if (opts$jscomp$0.items.filter != "*") {
- /** @type {number} */
- ctx = gn_getVisibleItemsPrevFilter$jscomp$0(settings, opts$jscomp$0, itms$jscomp$0.first) - itms$jscomp$0.first;
- } else {
- /** @type {number} */
- ctx = opts$jscomp$0.items.visible - itms$jscomp$0.first;
- }
- }
- debug$jscomp$0(conf$jscomp$0, "Preventing non-circular: sliding " + ctx + " items backward.");
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0), ctx);
- }
- opts$jscomp$0.items.visible = cf_getItemsAdjust$jscomp$0(v, opts$jscomp$0, opts$jscomp$0.items.visibleConf.adjust, $tt0$jscomp$0);
- opts$jscomp$0.items.visibleConf.old = opts$jscomp$0.items.visible;
- opts$jscomp$0 = in_getAlignPadding$jscomp$0(opts$jscomp$0, settings);
- var cursor = sz_setSizes$jscomp$0(y$jscomp$59, opts$jscomp$0);
- y$jscomp$59.trigger(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), [true, cursor]);
- nv_showNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.total, conf$jscomp$0);
- nv_enableNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.first, conf$jscomp$0);
- return cursor;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("destroy", conf$jscomp$0), function(event, a) {
- event.stopPropagation();
- tmrs$jscomp$0 = sc_clearTimers$jscomp$0(tmrs$jscomp$0);
- y$jscomp$59.data("_cfs_isCarousel", false);
- y$jscomp$59.trigger(cf_e$jscomp$0("finish", conf$jscomp$0));
- if (a) {
- y$jscomp$59.trigger(cf_e$jscomp$0("jumpToStart", conf$jscomp$0));
- }
- sz_restoreOrigCss$jscomp$0(y$jscomp$59.children());
- sz_restoreOrigCss$jscomp$0(y$jscomp$59);
- z$jscomp$11._cfs_unbind_events();
- z$jscomp$11._cfs_unbind_buttons();
- if (conf$jscomp$0.wrapper == "parent") {
- sz_restoreOrigCss$jscomp$0($wrp$jscomp$0);
- } else {
- $wrp$jscomp$0.replaceWith(y$jscomp$59);
- }
- return true;
- });
- y$jscomp$59.bind(cf_e$jscomp$0("debug", conf$jscomp$0), function(canCreateDiscussions) {
- debug$jscomp$0(conf$jscomp$0, "Carousel width: " + opts$jscomp$0.width);
- debug$jscomp$0(conf$jscomp$0, "Carousel height: " + opts$jscomp$0.height);
- debug$jscomp$0(conf$jscomp$0, "Item widths: " + opts$jscomp$0.items.width);
- debug$jscomp$0(conf$jscomp$0, "Item heights: " + opts$jscomp$0.items.height);
- debug$jscomp$0(conf$jscomp$0, "Number of items visible: " + opts$jscomp$0.items.visible);
- if (opts$jscomp$0.auto.play) {
- debug$jscomp$0(conf$jscomp$0, "Number of items scrolled automatically: " + opts$jscomp$0.auto.items);
- }
- if (opts$jscomp$0.prev.button) {
- debug$jscomp$0(conf$jscomp$0, "Number of items scrolled backward: " + opts$jscomp$0.prev.items);
- }
- if (opts$jscomp$0.next.button) {
- debug$jscomp$0(conf$jscomp$0, "Number of items scrolled forward: " + opts$jscomp$0.next.items);
- }
- return conf$jscomp$0.debug;
- });
- y$jscomp$59.bind("_cfs_triggerEvent", function(event, _rows, d) {
- event.stopPropagation();
- return y$jscomp$59.triggerHandler(cf_e$jscomp$0(_rows, conf$jscomp$0), d);
- });
- };
- /**
- * @return {undefined}
- */
- z$jscomp$11._cfs_unbind_events = function() {
- y$jscomp$59.unbind(cf_e$jscomp$0("", conf$jscomp$0));
- y$jscomp$59.unbind(cf_e$jscomp$0("", conf$jscomp$0, false));
- y$jscomp$59.unbind("_cfs_triggerEvent");
- };
- /**
- * @return {undefined}
- */
- z$jscomp$11._cfs_bind_buttons = function() {
- z$jscomp$11._cfs_unbind_buttons();
- nv_showNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.total, conf$jscomp$0);
- nv_enableNavi$jscomp$0(opts$jscomp$0, itms$jscomp$0.first, conf$jscomp$0);
- if (opts$jscomp$0.auto.pauseOnHover) {
- var ctx = bt_pauseOnHoverConfig$jscomp$0(opts$jscomp$0.auto.pauseOnHover);
- $wrp$jscomp$0.bind(cf_e$jscomp$0("mouseenter", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("pause", conf$jscomp$0), ctx);
- }).bind(cf_e$jscomp$0("mouseleave", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("resume", conf$jscomp$0));
- });
- }
- if (opts$jscomp$0.auto.button) {
- opts$jscomp$0.auto.button.bind(cf_e$jscomp$0(opts$jscomp$0.auto.event, conf$jscomp$0, false), function(event) {
- event.preventDefault();
- /** @type {boolean} */
- var status = false;
- /** @type {null} */
- var ctx = null;
- if (A$jscomp$0.isPaused) {
- /** @type {string} */
- status = "play";
- } else {
- if (opts$jscomp$0.auto.pauseOnEvent) {
- /** @type {string} */
- status = "pause";
- ctx = bt_pauseOnHoverConfig$jscomp$0(opts$jscomp$0.auto.pauseOnEvent);
- }
- }
- if (status) {
- y$jscomp$59.trigger(cf_e$jscomp$0(status, conf$jscomp$0), ctx);
- }
- });
- }
- if (opts$jscomp$0.prev.button) {
- opts$jscomp$0.prev.button.bind(cf_e$jscomp$0(opts$jscomp$0.prev.event, conf$jscomp$0, false), function(event) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0));
- });
- if (opts$jscomp$0.prev.pauseOnHover) {
- ctx = bt_pauseOnHoverConfig$jscomp$0(opts$jscomp$0.prev.pauseOnHover);
- opts$jscomp$0.prev.button.bind(cf_e$jscomp$0("mouseenter", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("pause", conf$jscomp$0), ctx);
- }).bind(cf_e$jscomp$0("mouseleave", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("resume", conf$jscomp$0));
- });
- }
- }
- if (opts$jscomp$0.next.button) {
- opts$jscomp$0.next.button.bind(cf_e$jscomp$0(opts$jscomp$0.next.event, conf$jscomp$0, false), function(event) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("next", conf$jscomp$0));
- });
- if (opts$jscomp$0.next.pauseOnHover) {
- ctx = bt_pauseOnHoverConfig$jscomp$0(opts$jscomp$0.next.pauseOnHover);
- opts$jscomp$0.next.button.bind(cf_e$jscomp$0("mouseenter", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("pause", conf$jscomp$0), ctx);
- }).bind(cf_e$jscomp$0("mouseleave", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("resume", conf$jscomp$0));
- });
- }
- }
- if (opts$jscomp$0.pagination.container) {
- if (opts$jscomp$0.pagination.pauseOnHover) {
- ctx = bt_pauseOnHoverConfig$jscomp$0(opts$jscomp$0.pagination.pauseOnHover);
- opts$jscomp$0.pagination.container.bind(cf_e$jscomp$0("mouseenter", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("pause", conf$jscomp$0), ctx);
- }).bind(cf_e$jscomp$0("mouseleave", conf$jscomp$0, false), function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("resume", conf$jscomp$0));
- });
- }
- }
- if (opts$jscomp$0.prev.key || opts$jscomp$0.next.key) {
- $$jscomp$0(document).bind(cf_e$jscomp$0("keyup", conf$jscomp$0, false, true, true), function(event) {
- var keyCode = event.keyCode;
- if (keyCode == opts$jscomp$0.next.key) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("next", conf$jscomp$0));
- }
- if (keyCode == opts$jscomp$0.prev.key) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0));
- }
- });
- }
- if (opts$jscomp$0.pagination.keys) {
- $$jscomp$0(document).bind(cf_e$jscomp$0("keyup", conf$jscomp$0, false, true, true), function(event) {
- var code = event.keyCode;
- if (code >= 49 && code < 58) {
- /** @type {number} */
- code = (code - 49) * opts$jscomp$0.items.visible;
- if (code <= itms$jscomp$0.total) {
- event.preventDefault();
- y$jscomp$59.trigger(cf_e$jscomp$0("slideTo", conf$jscomp$0), [code, 0, true, opts$jscomp$0.pagination]);
- }
- }
- });
- }
- if ($$jscomp$0.fn.swipe) {
- /** @type {boolean} */
- var IS_TOUCH_ENABLED = "ontouchstart" in window;
- if (IS_TOUCH_ENABLED && opts$jscomp$0.swipe.onTouch || !IS_TOUCH_ENABLED && opts$jscomp$0.swipe.onMouse) {
- var positionsToSend = $$jscomp$0.extend(true, {}, opts$jscomp$0.prev, opts$jscomp$0.swipe);
- var _fwdflat = $$jscomp$0.extend(true, {}, opts$jscomp$0.next, opts$jscomp$0.swipe);
- /**
- * @return {undefined}
- */
- var prev = function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0), [positionsToSend]);
- };
- /**
- * @return {undefined}
- */
- var next = function() {
- y$jscomp$59.trigger(cf_e$jscomp$0("next", conf$jscomp$0), [_fwdflat]);
- };
- switch(opts$jscomp$0.direction) {
- case "up":
- case "down":
- /** @type {function(): undefined} */
- opts$jscomp$0.swipe.options.swipeUp = next;
- /** @type {function(): undefined} */
- opts$jscomp$0.swipe.options.swipeDown = prev;
- break;
- default:
- /** @type {function(): undefined} */
- opts$jscomp$0.swipe.options.swipeLeft = next;
- /** @type {function(): undefined} */
- opts$jscomp$0.swipe.options.swipeRight = prev;
- }
- if (A$jscomp$0.swipe) {
- y$jscomp$59.swipe("destroy");
- }
- $wrp$jscomp$0.swipe(opts$jscomp$0.swipe.options);
- $wrp$jscomp$0.css("cursor", "move");
- /** @type {boolean} */
- A$jscomp$0.swipe = true;
- }
- }
- if ($$jscomp$0.fn.mousewheel) {
- if (opts$jscomp$0.mousewheel) {
- var positionsToSend = $$jscomp$0.extend(true, {}, opts$jscomp$0.prev, opts$jscomp$0.mousewheel);
- var _fwdflat = $$jscomp$0.extend(true, {}, opts$jscomp$0.next, opts$jscomp$0.mousewheel);
- if (A$jscomp$0.mousewheel) {
- $wrp$jscomp$0.unbind(cf_e$jscomp$0("mousewheel", conf$jscomp$0, false));
- }
- $wrp$jscomp$0.bind(cf_e$jscomp$0("mousewheel", conf$jscomp$0, false), function(event, a) {
- event.preventDefault();
- if (a > 0) {
- y$jscomp$59.trigger(cf_e$jscomp$0("prev", conf$jscomp$0), [positionsToSend]);
- } else {
- y$jscomp$59.trigger(cf_e$jscomp$0("next", conf$jscomp$0), [_fwdflat]);
- }
- });
- /** @type {boolean} */
- A$jscomp$0.mousewheel = true;
- }
- }
- if (opts$jscomp$0.auto.play) {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0), opts$jscomp$0.auto.delay);
- }
- if (A$jscomp$0.upDateOnWindowResize) {
- /**
- * @param {?} fullFormat
- * @return {undefined}
- */
- var fn = function(fullFormat) {
- y$jscomp$59.trigger(cf_e$jscomp$0("finish", conf$jscomp$0));
- if (opts$jscomp$0.auto.pauseOnResize && !A$jscomp$0.isPaused) {
- y$jscomp$59.trigger(cf_e$jscomp$0("play", conf$jscomp$0));
- }
- sz_resetMargin$jscomp$0(y$jscomp$59.children(), opts$jscomp$0);
- y$jscomp$59.trigger(cf_e$jscomp$0("updateSizes", conf$jscomp$0));
- };
- var $window = $$jscomp$0(window);
- /** @type {null} */
- var handler = null;
- if ($$jscomp$0.debounce && conf$jscomp$0.onWindowResize == "debounce") {
- handler = $$jscomp$0.debounce(200, fn);
- } else {
- if ($$jscomp$0.throttle && conf$jscomp$0.onWindowResize == "throttle") {
- handler = $$jscomp$0.throttle(300, fn);
- } else {
- /** @type {number} */
- var i = 0;
- /** @type {number} */
- var j = 0;
- /**
- * @return {undefined}
- */
- handler = function() {
- var k = $window.width();
- var l = $window.height();
- if (k != i || l != j) {
- fn();
- i = k;
- j = l;
- }
- };
- }
- }
- $window.bind(cf_e$jscomp$0("resize", conf$jscomp$0, false, true, true), handler);
- }
- };
- /**
- * @return {undefined}
- */
- z$jscomp$11._cfs_unbind_buttons = function() {
- var agent = cf_e$jscomp$0("", conf$jscomp$0);
- var params = cf_e$jscomp$0("", conf$jscomp$0, false);
- ns3 = cf_e$jscomp$0("", conf$jscomp$0, false, true, true);
- $$jscomp$0(document).unbind(ns3);
- $$jscomp$0(window).unbind(ns3);
- $wrp$jscomp$0.unbind(params);
- if (opts$jscomp$0.auto.button) {
- opts$jscomp$0.auto.button.unbind(params);
- }
- if (opts$jscomp$0.prev.button) {
- opts$jscomp$0.prev.button.unbind(params);
- }
- if (opts$jscomp$0.next.button) {
- opts$jscomp$0.next.button.unbind(params);
- }
- if (opts$jscomp$0.pagination.container) {
- opts$jscomp$0.pagination.container.unbind(params);
- if (opts$jscomp$0.pagination.anchorBuilder) {
- opts$jscomp$0.pagination.container.children().remove();
- }
- }
- if (A$jscomp$0.swipe) {
- y$jscomp$59.swipe("destroy");
- $wrp$jscomp$0.css("cursor", "default");
- /** @type {boolean} */
- A$jscomp$0.swipe = false;
- }
- if (A$jscomp$0.mousewheel) {
- /** @type {boolean} */
- A$jscomp$0.mousewheel = false;
- }
- nv_showNavi$jscomp$0(opts$jscomp$0, "hide", conf$jscomp$0);
- nv_enableNavi$jscomp$0(opts$jscomp$0, "removeClass", conf$jscomp$0);
- };
- if (is_boolean$jscomp$0(w$jscomp$7)) {
- w$jscomp$7 = {
- "debug" : w$jscomp$7
- };
- }
- var A$jscomp$0 = {
- "direction" : "next",
- "isPaused" : true,
- "isScrolling" : false,
- "isStopped" : false,
- "mousewheel" : false,
- "swipe" : false
- };
- var itms$jscomp$0 = {
- "total" : y$jscomp$59.children().length,
- "first" : 0
- };
- var tmrs$jscomp$0 = {
- "auto" : null,
- "progress" : null,
- "startTime" : getTime$jscomp$0(),
- "timePassed" : 0
- };
- var scrl$jscomp$0 = {
- "isStopped" : false,
- "duration" : 0,
- "startTime" : 0,
- "easing" : "",
- "anims" : []
- };
- var clbk$jscomp$0 = {
- "onBefore" : [],
- "onAfter" : []
- };
- /** @type {!Array} */
- var queu$jscomp$0 = [];
- var conf$jscomp$0 = $$jscomp$0.extend(true, {}, $$jscomp$0.fn.carouFredSel.configs, w$jscomp$7);
- var opts$jscomp$0 = {};
- var opts_orig$jscomp$0 = $$jscomp$0.extend(true, {}, u$jscomp$0);
- var $wrp$jscomp$0 = conf$jscomp$0.wrapper == "parent" ? y$jscomp$59.parent() : y$jscomp$59.wrap("<" + conf$jscomp$0.wrapper.element + ' class="' + conf$jscomp$0.wrapper.classname + '" />').parent();
- conf$jscomp$0.selector = y$jscomp$59.selector;
- /** @type {number} */
- conf$jscomp$0.serialNumber = $$jscomp$0.fn.carouFredSel.serialNumber++;
- /** @type {string} */
- conf$jscomp$0.transition = conf$jscomp$0.transition && $$jscomp$0.fn.transition ? "transition" : "animate";
- z$jscomp$11._cfs_init(opts_orig$jscomp$0, true, starting_position$jscomp$0);
- z$jscomp$11._cfs_build();
- z$jscomp$11._cfs_bind_events();
- z$jscomp$11._cfs_bind_buttons();
- if (is_array$jscomp$0(opts$jscomp$0.items.start)) {
- var B$jscomp$0 = opts$jscomp$0.items.start;
- } else {
- /** @type {!Array} */
- B$jscomp$0 = [];
- if (opts$jscomp$0.items.start != 0) {
- B$jscomp$0.push(opts$jscomp$0.items.start);
- }
- }
- if (opts$jscomp$0.cookie) {
- B$jscomp$0.unshift(parseInt(cf_getCookie$jscomp$0(opts$jscomp$0.cookie), 10));
- }
- if (B$jscomp$0.length > 0) {
- /** @type {number} */
- var a$jscomp$67 = 0;
- var l$jscomp$12 = B$jscomp$0.length;
- for (; a$jscomp$67 < l$jscomp$12; a$jscomp$67++) {
- var s$jscomp$21 = B$jscomp$0[a$jscomp$67];
- if (s$jscomp$21 == 0) {
- continue;
- }
- if (s$jscomp$21 === true) {
- /** @type {string} */
- s$jscomp$21 = window.location.hash;
- if (s$jscomp$21.length < 1) {
- continue;
- }
- } else {
- if (s$jscomp$21 === "random") {
- /** @type {number} */
- s$jscomp$21 = Math.floor(Math.random() * itms$jscomp$0.total);
- }
- }
- if (y$jscomp$59.triggerHandler(cf_e$jscomp$0("slideTo", conf$jscomp$0), [s$jscomp$21, 0, true, {
- fx : "none"
- }])) {
- break;
- }
- }
- }
- var C$jscomp$0 = sz_setSizes$jscomp$0(y$jscomp$59, opts$jscomp$0);
- var itm$jscomp$0 = gi_getCurrentItems$jscomp$0(y$jscomp$59.children(), opts$jscomp$0);
- if (opts$jscomp$0.onCreate) {
- opts$jscomp$0.onCreate.call($tt0$jscomp$0, {
- "width" : C$jscomp$0.width,
- "height" : C$jscomp$0.height,
- "items" : itm$jscomp$0
- });
- }
- y$jscomp$59.trigger(cf_e$jscomp$0("updatePageStatus", conf$jscomp$0), [true, C$jscomp$0]);
- y$jscomp$59.trigger(cf_e$jscomp$0("linkAnchors", conf$jscomp$0));
- if (conf$jscomp$0.debug) {
- y$jscomp$59.trigger(cf_e$jscomp$0("debug", conf$jscomp$0));
- }
- return y$jscomp$59;
- };
- /** @type {number} */
- $$jscomp$0.fn.carouFredSel.serialNumber = 1;
- $$jscomp$0.fn.carouFredSel.defaults = {
- "synchronise" : false,
- "infinite" : true,
- "circular" : true,
- "responsive" : false,
- "direction" : "left",
- "items" : {
- "start" : 0
- },
- "scroll" : {
- "easing" : "swing",
- "duration" : 500,
- "pauseOnHover" : false,
- "event" : "click",
- "queue" : false
- }
- };
- $$jscomp$0.fn.carouFredSel.configs = {
- "debug" : false,
- "transition" : false,
- "onWindowResize" : "throttle",
- "events" : {
- "prefix" : "",
- "namespace" : "cfs"
- },
- "wrapper" : {
- "element" : "div",
- "classname" : "caroufredsel_wrapper"
- },
- "classnames" : {}
- };
- /**
- * @param {string} a
- * @return {?}
- */
- $$jscomp$0.fn.carouFredSel.pageAnchorBuilder = function(a) {
- return '<a href="#"><span>' + a + "</span></a>";
- };
- /**
- * @param {string} newXpos
- * @return {undefined}
- */
- $$jscomp$0.fn.carouFredSel.progressbarUpdater = function(newXpos) {
- $$jscomp$0(this).css("width", newXpos + "%");
- };
- $$jscomp$0.fn.carouFredSel.cookie = {
- get : function(s) {
- /** @type {string} */
- s = s + "=";
- /** @type {!Array<string>} */
- var conns = document.cookie.split(";");
- /** @type {number} */
- var i = 0;
- /** @type {number} */
- var l = conns.length;
- for (; i < l; i++) {
- /** @type {string} */
- var c = conns[i];
- for (; c.charAt(0) == " ";) {
- /** @type {string} */
- c = c.slice(1);
- }
- if (c.indexOf(s) == 0) {
- return c.slice(s.length);
- }
- }
- return 0;
- },
- set : function(n, d, pos) {
- /** @type {string} */
- var components = "";
- if (pos) {
- /** @type {!Date} */
- var dateExpires = new Date;
- dateExpires.setTime(dateExpires.getTime() + pos * 24 * 60 * 60 * 1E3);
- /** @type {string} */
- components = "; expires=" + dateExpires.toGMTString();
- }
- /** @type {string} */
- document.cookie = n + "=" + d + components + "; path=/";
- },
- remove : function(n) {
- $$jscomp$0.fn.carouFredSel.cookie.set(n, "", -1);
- }
- };
- $$jscomp$0.extend($$jscomp$0.easing, {
- "quadratic" : function(centerY) {
- /** @type {number} */
- var iCenterY = centerY * centerY;
- return centerY * (-iCenterY * centerY + 4 * iCenterY - 6 * centerY + 4);
- },
- "cubic" : function(t) {
- return t * (4 * t * t - 9 * t + 6);
- },
- "elastic" : function(t) {
- /** @type {number} */
- var x = t * t;
- return t * (33 * x * x - 106 * x * t + 126 * x - 67 * t + 15);
- }
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement