{"version":3,"sources":["assets/src/modules/ElcaSlideshowWidget/js/elca.jquery.cslider.js"],"names":["$","Slider","options","element","maxHeight","this","$el","_init","window","width","find","each","i","body","bodyHeight","outerHeight","css","defaults","current","bgincrement","autoplay","interval","navigationDots","prototype","extend","$slides","children","slidesCount","length","eq","addClass","$navigation","append","appendTo","$pages","$navNext","$navPrev","isAnimating","bgpositer","cssAnimations","Modernizr","cssanimations","cssTransitions","csstransitions","_updatePage","_loadEvents","_startSlideshow","_setVisibilityOfArrows","_navigate","page","dir","classTo","classFrom","rmClasses","$current","_self","d","$next","removeClass","stop","animate","left","slideshow","setTimeout","idx","clearTimeout","on","event","index","target","id","attr","originalEvent","animationName","hide","logError","message","console","error","fn","cslider","args","Array","slice","call","arguments","instance","data","isFunction","charAt","apply","jQuery"],"mappings":"CAAA,SAAWA,GAKPA,EAAEC,OAAS,SAAUC,EAASC,GAI1B,IACQC,EAJRC,KAAKC,IAAMN,EAAEG,GACbE,KAAKE,MAAML,GAEPF,EAAEQ,QAAQC,QAAU,MAChBL,EAAY,EAChBC,KAAKC,IAAII,KAAK,+BAA+BC,KAAK,SAAUC,EAAGC,GACvDC,EAAad,EAAEa,GAAME,cACRX,EAAbU,IACAV,EAAYU,KAGpBT,KAAKC,IAAIU,IAAI,aAAcZ,EAAY,IAAM,MAIrDJ,EAAEC,OAAOgB,SAAW,CAChBC,QAAS,EACTC,YAAa,EACbC,UAAU,EACVC,SAAU,IACVC,gBAAgB,GAGpBtB,EAAEC,OAAOsB,UAAY,CACjBhB,MAAO,SAAUL,GAEbG,KAAKH,QAAUF,EAAEwB,QAAO,EAAM,GAAIxB,EAAEC,OAAOgB,SAAUf,GACrDG,KAAKoB,QAAUpB,KAAKC,IAAIoB,SAAS,gBACjCrB,KAAKsB,YAActB,KAAKoB,QAAQG,OAChCvB,KAAKa,QAAUb,KAAKH,QAAQgB,SAExBb,KAAKa,QAAU,GAAKb,KAAKa,SAAWb,KAAKsB,eACzCtB,KAAKa,QAAU,GAG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esContent":["(function ($, undefined) {\r\n\r\n /*\r\n * Slider object.\r\n */\r\n $.Slider = function (options, element) {\r\n this.$el = $(element);\r\n this._init(options);\r\n\r\n if ($(window).width() < 768) {\r\n var maxHeight = 0;\r\n this.$el.find('.mi-corpo-fixed-slider-body').each(function (i, body) {\r\n var bodyHeight = $(body).outerHeight();\r\n if (bodyHeight > maxHeight) {\r\n maxHeight = bodyHeight;\r\n }\r\n })\r\n this.$el.css('min-height', maxHeight + 256 + 50);\r\n }\r\n };\r\n\r\n $.Slider.defaults = {\r\n current: 0, \t // index of current slide\r\n bgincrement: 0,\t // increment the bg position (parallax effect) when sliding\r\n autoplay: false, // slideshow on / off\r\n interval: 4000, // time between transitions\r\n navigationDots: false //navigation dots to show specific slide\r\n };\r\n\r\n $.Slider.prototype = {\r\n _init: function (options) {\r\n\r\n this.options = $.extend(true, {}, $.Slider.defaults, options);\r\n this.$slides = this.$el.children('div.da-slide');\r\n this.slidesCount = this.$slides.length;\r\n this.current = this.options.current;\r\n\r\n if (this.current < 0 || this.current >= this.slidesCount) {\r\n this.current = 0;\r\n }\r\n\r\n this.$slides.eq(this.current).addClass('da-slide-current');\r\n\r\n var $navigation = $('