diff --git a/app/scripts/app.coffee b/app/scripts/app.coffee old mode 100644 new mode 100755 index 41e35b2..759132e --- a/app/scripts/app.coffee +++ b/app/scripts/app.coffee @@ -1,135 +1,134 @@ 'use strict' angular.module('slick', []) - .directive "slick", ($timeout) -> - restrict: "AEC" - scope: - initOnload: "@" - data: "=" - currentIndex: "=" - accessibility: "@" - adaptiveHeight: "@" - arrows: "@" - asNavFor: "@" - appendArrows: "@" - appendDots: "@" - autoplay: "@" - autoplaySpeed: "@" - centerMode: "@" - centerPadding: "@" - cssEase: "@" - customPaging: "&" - dots: "@" - draggable: "@" - easing: "@" - fade: "@" - focusOnSelect: "@" - infinite: "@" - initialSlide: "@" - lazyLoad: "@" - onBeforeChange: "&" - onAfterChange: "&" - onInit: "&" - onReInit: "&" - onSetPosition: "&" - pauseOnHover: "@" - pauseOnDotsHover: "@" - responsive: "=" - rtl: "@" - slide: "@" - slidesToShow: "@" - slidesToScroll: "@" - speed: "@" - swipe: "@" - swipeToSlide: "@" - touchMove: "@" - touchThreshold: "@" - useCSS: "@" - variableWidth: "@" - vertical: "@" - prevArrow:"@" - nextArrow:"@" +.directive "slick", () -> + restrict: "AEC" + scope: + initOnload: "@" + data: "=" + currentIndex: "=" + accessibility: "@" + adaptiveHeight: "@" + arrows: "@" + asNavFor: "@" + appendArrows: "@" + appendDots: "@" + autoplay: "@" + autoplaySpeed: "@" + centerMode: "@" + centerPadding: "@" + cssEase: "@" + customPaging: "&" + dots: "@" + draggable: "@" + easing: "@" + fade: "@" + focusOnSelect: "@" + infinite: "@" + initialSlide: "@" + lazyLoad: "@" + onBeforeChange: "&" + onAfterChange: "&" + onInit: "&" + onReInit: "&" + onSetPosition: "&" + pauseOnHover: "@" + pauseOnDotsHover: "@" + responsive: "=" + rtl: "@" + slide: "@" + slidesToShow: "@" + slidesToScroll: "@" + speed: "@" + swipe: "@" + swipeToSlide: "@" + touchMove: "@" + touchThreshold: "@" + useCSS: "@" + variableWidth: "@" + vertical: "@" + prevArrow:"@" + nextArrow:"@" - link: (scope, element, attrs) -> - destroySlick = () -> - $timeout(() -> - slider = $(element) - slider.unslick() - slider.find('.slick-list').remove() - slider - ) - initializeSlick = () -> - $timeout(() -> - slider = $(element) - currentIndex = scope.currentIndex if scope.currentIndex? - slider.slick - accessibility: scope.accessibility isnt "false" - adaptiveHeight: scope.adaptiveHeight is "true" - arrows: scope.arrows isnt "false" - asNavFor: if scope.asNavFor then scope.asNavFor else undefined - appendArrows: if scope.appendArrows then $(scope.appendArrows) else $(element) - appendDots: if scope.appendDots then $(scope.appendDots) else $(element) - autoplay: scope.autoplay is "true" - autoplaySpeed: if scope.autoplaySpeed? then parseInt(scope.autoplaySpeed, 10) else 3000 - centerMode: scope.centerMode is "true" - centerPadding: scope.centerPadding or "50px" - cssEase: scope.cssEase or "ease" - customPaging: if attrs.customPaging then scope.customPaging else undefined - dots: scope.dots is "true" - draggable: scope.draggable isnt "false" - easing: scope.easing or "linear" - fade: scope.fade is "true" - focusOnSelect: scope.focusOnSelect is "true" - infinite: scope.infinite isnt "false" - initialSlide:scope.initialSlide or 0 - lazyLoad: scope.lazyLoad or "ondemand" - onBeforeChange: if attrs.onBeforeChange then scope.onBeforeChange else undefined - onAfterChange: (sl, index) -> - scope.onAfterChange() if attrs.onAfterChange - if currentIndex? - scope.$apply(-> - currentIndex = index - scope.currentIndex = index - ) - onInit: (sl) -> - scope.onInit() if attrs.onInit - if currentIndex? - sl.slideHandler(currentIndex) - onReInit: if attrs.onReInit then scope.onReInit else undefined - onSetPosition: if attrs.onSetPosition then scope.onSetPosition else undefined - pauseOnHover: scope.pauseOnHover isnt "false" - responsive: scope.responsive or undefined - rtl: scope.rtl is "true" - slide: scope.slide or "div" - slidesToShow: if scope.slidesToShow? then parseInt(scope.slidesToShow, 10) else 1 - slidesToScroll: if scope.slidesToScroll? then parseInt(scope.slidesToScroll, 10) else 1 - speed: if scope.speed? then parseInt(scope.speed, 10) else 300 - swipe: scope.swipe isnt "false" - swipeToSlide: scope.swipeToSlide is "true" - touchMove: scope.touchMove isnt "false" - touchThreshold: if scope.touchThreshold then parseInt(scope.touchThreshold, 10) else 5 - useCSS: scope.useCSS isnt "false" - variableWidth: scope.variableWidth is "true" - vertical: scope.vertical is "true" - prevArrow: if scope.prevArrow then $(scope.prevArrow) else undefined - nextArrow: if scope.nextArrow then $(scope.nextArrow) else undefined + link: (scope, element, attrs) -> + currentIndexWatcher = null + dataWatcher = null + destroySlick = () -> + slider = $(element) + slider.unslick() + slider.find('.slick-list').remove() + slider + initializeSlick = () -> + slider = $(element) + currentIndex = scope.currentIndex if scope.currentIndex? + slider.slick + accessibility: scope.accessibility isnt "false" + adaptiveHeight: scope.adaptiveHeight is "true" + arrows: scope.arrows isnt "false" + asNavFor: if scope.asNavFor then scope.asNavFor else undefined + appendArrows: if scope.appendArrows then $(scope.appendArrows) else $(element) + appendDots: if scope.appendDots then $(scope.appendDots) else $(element) + autoplay: scope.autoplay is "true" + autoplaySpeed: if scope.autoplaySpeed? then parseInt(scope.autoplaySpeed, 10) else 3000 + centerMode: scope.centerMode is "true" + centerPadding: scope.centerPadding or "50px" + cssEase: scope.cssEase or "ease" + customPaging: if attrs.customPaging then scope.customPaging else undefined + dots: scope.dots is "true" + draggable: scope.draggable isnt "false" + easing: scope.easing or "linear" + fade: scope.fade is "true" + focusOnSelect: scope.focusOnSelect is "true" + infinite: scope.infinite isnt "false" + initialSlide:scope.initialSlide or 0 + lazyLoad: scope.lazyLoad or "ondemand" + onBeforeChange: if attrs.onBeforeChange then scope.onBeforeChange else undefined + onAfterChange: (sl, index) -> + scope.onAfterChange() if attrs.onAfterChange + if currentIndex? + scope.$apply(-> + currentIndex = index + scope.currentIndex = index + ) + onInit: (sl) -> + scope.onInit() if attrs.onInit + if currentIndex? + sl.slideHandler(currentIndex) + onReInit: if attrs.onReInit then scope.onReInit else undefined + onSetPosition: if attrs.onSetPosition then scope.onSetPosition else undefined + pauseOnHover: scope.pauseOnHover isnt "false" + responsive: scope.responsive or undefined + rtl: scope.rtl is "true" + slide: scope.slide or "div" + slidesToShow: if scope.slidesToShow? then parseInt(scope.slidesToShow, 10) else 1 + slidesToScroll: if scope.slidesToScroll? then parseInt(scope.slidesToScroll, 10) else 1 + speed: if scope.speed? then parseInt(scope.speed, 10) else 300 + swipe: scope.swipe isnt "false" + swipeToSlide: scope.swipeToSlide is "true" + touchMove: scope.touchMove isnt "false" + touchThreshold: if scope.touchThreshold then parseInt(scope.touchThreshold, 10) else 5 + useCSS: scope.useCSS isnt "false" + variableWidth: scope.variableWidth is "true" + vertical: scope.vertical is "true" + prevArrow: if scope.prevArrow then $(scope.prevArrow) else undefined + nextArrow: if scope.nextArrow then $(scope.nextArrow) else undefined + currentIndexWatcher() if currentIndexWatcher + currentIndexWatcher = scope.$watch("currentIndex", (newVal, oldVal) -> + if currentIndex? and newVal? and newVal != currentIndex + slider.slickGoTo(newVal) + ) - scope.$watch("currentIndex", (newVal, oldVal) -> - if currentIndex? and newVal? and newVal != currentIndex - slider.slickGoTo(newVal) - ) - ) + if scope.initOnload + isInitialized = false + dataWatcher() if dataWatcher + dataWatcher = scope.$watch("data", (newVal, oldVal) -> + if newVal? + if isInitialized + destroySlick() - if scope.initOnload - isInitialized = false - scope.$watch("data", (newVal, oldVal) -> - if newVal? - if isInitialized - destroySlick() - - initializeSlick() - isInitialized = true - ) - else - initializeSlick() + initializeSlick() + isInitialized = true + ) + else + initializeSlick() diff --git a/dist/slick.js b/dist/slick.js old mode 100644 new mode 100755 index 9d9a323..381d9ac --- a/dist/slick.js +++ b/dist/slick.js @@ -1,156 +1,157 @@ 'use strict'; -angular.module('slick', []).directive('slick', [ - '$timeout', - function ($timeout) { - return { - restrict: 'AEC', - scope: { - initOnload: '@', - data: '=', - currentIndex: '=', - accessibility: '@', - adaptiveHeight: '@', - arrows: '@', - asNavFor: '@', - appendArrows: '@', - appendDots: '@', - autoplay: '@', - autoplaySpeed: '@', - centerMode: '@', - centerPadding: '@', - cssEase: '@', - customPaging: '&', - dots: '@', - draggable: '@', - easing: '@', - fade: '@', - focusOnSelect: '@', - infinite: '@', - initialSlide: '@', - lazyLoad: '@', - onBeforeChange: '&', - onAfterChange: '&', - onInit: '&', - onReInit: '&', - onSetPosition: '&', - pauseOnHover: '@', - pauseOnDotsHover: '@', - responsive: '=', - rtl: '@', - slide: '@', - slidesToShow: '@', - slidesToScroll: '@', - speed: '@', - swipe: '@', - swipeToSlide: '@', - touchMove: '@', - touchThreshold: '@', - useCSS: '@', - variableWidth: '@', - vertical: '@', - prevArrow: '@', - nextArrow: '@' - }, - link: function (scope, element, attrs) { - var destroySlick, initializeSlick, isInitialized; - destroySlick = function () { - return $timeout(function () { - var slider; - slider = $(element); - slider.unslick(); - slider.find('.slick-list').remove(); - return slider; - }); - }; - initializeSlick = function () { - return $timeout(function () { - var currentIndex, slider; - slider = $(element); - if (scope.currentIndex != null) { - currentIndex = scope.currentIndex; +angular.module('slick', []).directive('slick', function () { + return { + restrict: 'AEC', + scope: { + initOnload: '@', + data: '=', + currentIndex: '=', + accessibility: '@', + adaptiveHeight: '@', + arrows: '@', + asNavFor: '@', + appendArrows: '@', + appendDots: '@', + autoplay: '@', + autoplaySpeed: '@', + centerMode: '@', + centerPadding: '@', + cssEase: '@', + customPaging: '&', + dots: '@', + draggable: '@', + easing: '@', + fade: '@', + focusOnSelect: '@', + infinite: '@', + initialSlide: '@', + lazyLoad: '@', + onBeforeChange: '&', + onAfterChange: '&', + onInit: '&', + onReInit: '&', + onSetPosition: '&', + pauseOnHover: '@', + pauseOnDotsHover: '@', + responsive: '=', + rtl: '@', + slide: '@', + slidesToShow: '@', + slidesToScroll: '@', + speed: '@', + swipe: '@', + swipeToSlide: '@', + touchMove: '@', + touchThreshold: '@', + useCSS: '@', + variableWidth: '@', + vertical: '@', + prevArrow: '@', + nextArrow: '@' + }, + link: function (scope, element, attrs) { + var currentIndexWatcher, dataWatcher, destroySlick, initializeSlick, isInitialized; + currentIndexWatcher = null; + dataWatcher = null; + destroySlick = function () { + var slider; + slider = $(element); + slider.unslick(); + slider.find('.slick-list').remove(); + return slider; + }; + initializeSlick = function () { + var currentIndex, slider; + slider = $(element); + if (scope.currentIndex != null) { + currentIndex = scope.currentIndex; + } + slider.slick({ + accessibility: scope.accessibility !== 'false', + adaptiveHeight: scope.adaptiveHeight === 'true', + arrows: scope.arrows !== 'false', + asNavFor: scope.asNavFor ? scope.asNavFor : void 0, + appendArrows: scope.appendArrows ? $(scope.appendArrows) : $(element), + appendDots: scope.appendDots ? $(scope.appendDots) : $(element), + autoplay: scope.autoplay === 'true', + autoplaySpeed: scope.autoplaySpeed != null ? parseInt(scope.autoplaySpeed, 10) : 3000, + centerMode: scope.centerMode === 'true', + centerPadding: scope.centerPadding || '50px', + cssEase: scope.cssEase || 'ease', + customPaging: attrs.customPaging ? scope.customPaging : void 0, + dots: scope.dots === 'true', + draggable: scope.draggable !== 'false', + easing: scope.easing || 'linear', + fade: scope.fade === 'true', + focusOnSelect: scope.focusOnSelect === 'true', + infinite: scope.infinite !== 'false', + initialSlide: scope.initialSlide || 0, + lazyLoad: scope.lazyLoad || 'ondemand', + onBeforeChange: attrs.onBeforeChange ? scope.onBeforeChange : void 0, + onAfterChange: function (sl, index) { + if (attrs.onAfterChange) { + scope.onAfterChange(); + } + if (currentIndex != null) { + return scope.$apply(function () { + currentIndex = index; + return scope.currentIndex = index; + }); + } + }, + onInit: function (sl) { + if (attrs.onInit) { + scope.onInit(); } - slider.slick({ - accessibility: scope.accessibility !== 'false', - adaptiveHeight: scope.adaptiveHeight === 'true', - arrows: scope.arrows !== 'false', - asNavFor: scope.asNavFor ? scope.asNavFor : void 0, - appendArrows: scope.appendArrows ? $(scope.appendArrows) : $(element), - appendDots: scope.appendDots ? $(scope.appendDots) : $(element), - autoplay: scope.autoplay === 'true', - autoplaySpeed: scope.autoplaySpeed != null ? parseInt(scope.autoplaySpeed, 10) : 3000, - centerMode: scope.centerMode === 'true', - centerPadding: scope.centerPadding || '50px', - cssEase: scope.cssEase || 'ease', - customPaging: attrs.customPaging ? scope.customPaging : void 0, - dots: scope.dots === 'true', - draggable: scope.draggable !== 'false', - easing: scope.easing || 'linear', - fade: scope.fade === 'true', - focusOnSelect: scope.focusOnSelect === 'true', - infinite: scope.infinite !== 'false', - initialSlide: scope.initialSlide || 0, - lazyLoad: scope.lazyLoad || 'ondemand', - onBeforeChange: attrs.onBeforeChange ? scope.onBeforeChange : void 0, - onAfterChange: function (sl, index) { - if (attrs.onAfterChange) { - scope.onAfterChange(); - } - if (currentIndex != null) { - return scope.$apply(function () { - currentIndex = index; - return scope.currentIndex = index; - }); - } - }, - onInit: function (sl) { - if (attrs.onInit) { - scope.onInit(); - } - if (currentIndex != null) { - return sl.slideHandler(currentIndex); - } - }, - onReInit: attrs.onReInit ? scope.onReInit : void 0, - onSetPosition: attrs.onSetPosition ? scope.onSetPosition : void 0, - pauseOnHover: scope.pauseOnHover !== 'false', - responsive: scope.responsive || void 0, - rtl: scope.rtl === 'true', - slide: scope.slide || 'div', - slidesToShow: scope.slidesToShow != null ? parseInt(scope.slidesToShow, 10) : 1, - slidesToScroll: scope.slidesToScroll != null ? parseInt(scope.slidesToScroll, 10) : 1, - speed: scope.speed != null ? parseInt(scope.speed, 10) : 300, - swipe: scope.swipe !== 'false', - swipeToSlide: scope.swipeToSlide === 'true', - touchMove: scope.touchMove !== 'false', - touchThreshold: scope.touchThreshold ? parseInt(scope.touchThreshold, 10) : 5, - useCSS: scope.useCSS !== 'false', - variableWidth: scope.variableWidth === 'true', - vertical: scope.vertical === 'true', - prevArrow: scope.prevArrow ? $(scope.prevArrow) : void 0, - nextArrow: scope.nextArrow ? $(scope.nextArrow) : void 0 - }); - return scope.$watch('currentIndex', function (newVal, oldVal) { - if (currentIndex != null && newVal != null && newVal !== currentIndex) { - return slider.slickGoTo(newVal); - } - }); - }); - }; - if (scope.initOnload) { - isInitialized = false; - return scope.$watch('data', function (newVal, oldVal) { - if (newVal != null) { - if (isInitialized) { - destroySlick(); - } - initializeSlick(); - return isInitialized = true; + if (currentIndex != null) { + return sl.slideHandler(currentIndex); } - }); - } else { - return initializeSlick(); + }, + onReInit: attrs.onReInit ? scope.onReInit : void 0, + onSetPosition: attrs.onSetPosition ? scope.onSetPosition : void 0, + pauseOnHover: scope.pauseOnHover !== 'false', + responsive: scope.responsive || void 0, + rtl: scope.rtl === 'true', + slide: scope.slide || 'div', + slidesToShow: scope.slidesToShow != null ? parseInt(scope.slidesToShow, 10) : 1, + slidesToScroll: scope.slidesToScroll != null ? parseInt(scope.slidesToScroll, 10) : 1, + speed: scope.speed != null ? parseInt(scope.speed, 10) : 300, + swipe: scope.swipe !== 'false', + swipeToSlide: scope.swipeToSlide === 'true', + touchMove: scope.touchMove !== 'false', + touchThreshold: scope.touchThreshold ? parseInt(scope.touchThreshold, 10) : 5, + useCSS: scope.useCSS !== 'false', + variableWidth: scope.variableWidth === 'true', + vertical: scope.vertical === 'true', + prevArrow: scope.prevArrow ? $(scope.prevArrow) : void 0, + nextArrow: scope.nextArrow ? $(scope.nextArrow) : void 0 + }); + if (currentIndexWatcher) { + currentIndexWatcher(); } + return currentIndexWatcher = scope.$watch('currentIndex', function (newVal, oldVal) { + if (currentIndex != null && newVal != null && newVal !== currentIndex) { + return slider.slickGoTo(newVal); + } + }); + }; + if (scope.initOnload) { + isInitialized = false; + if (dataWatcher) { + dataWatcher(); + } + return dataWatcher = scope.$watch('data', function (newVal, oldVal) { + if (newVal != null) { + if (isInitialized) { + destroySlick(); + } + initializeSlick(); + return isInitialized = true; + } + }); + } else { + return initializeSlick(); } - }; - } -]); \ No newline at end of file + } + }; +}); \ No newline at end of file diff --git a/dist/slick.min.js b/dist/slick.min.js old mode 100644 new mode 100755 index 81cf898..0b45b05 --- a/dist/slick.min.js +++ b/dist/slick.min.js @@ -1,2 +1,2 @@ -/*! angular-slick v0.1.17 */ -"use strict";angular.module("slick",[]).directive("slick",["$timeout",function(a){return{restrict:"AEC",scope:{initOnload:"@",data:"=",currentIndex:"=",accessibility:"@",adaptiveHeight:"@",arrows:"@",asNavFor:"@",appendArrows:"@",appendDots:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",customPaging:"&",dots:"@",draggable:"@",easing:"@",fade:"@",focusOnSelect:"@",infinite:"@",initialSlide:"@",lazyLoad:"@",onBeforeChange:"&",onAfterChange:"&",onInit:"&",onReInit:"&",onSetPosition:"&",pauseOnHover:"@",pauseOnDotsHover:"@",responsive:"=",rtl:"@",slide:"@",slidesToShow:"@",slidesToScroll:"@",speed:"@",swipe:"@",swipeToSlide:"@",touchMove:"@",touchThreshold:"@",useCSS:"@",variableWidth:"@",vertical:"@",prevArrow:"@",nextArrow:"@"},link:function(b,c,d){var e,f,g;return e=function(){return a(function(){var a;return a=$(c),a.unslick(),a.find(".slick-list").remove(),a})},f=function(){return a(function(){var a,e;return e=$(c),null!=b.currentIndex&&(a=b.currentIndex),e.slick({accessibility:"false"!==b.accessibility,adaptiveHeight:"true"===b.adaptiveHeight,arrows:"false"!==b.arrows,asNavFor:b.asNavFor?b.asNavFor:void 0,appendArrows:$(b.appendArrows?b.appendArrows:c),appendDots:$(b.appendDots?b.appendDots:c),autoplay:"true"===b.autoplay,autoplaySpeed:null!=b.autoplaySpeed?parseInt(b.autoplaySpeed,10):3e3,centerMode:"true"===b.centerMode,centerPadding:b.centerPadding||"50px",cssEase:b.cssEase||"ease",customPaging:d.customPaging?b.customPaging:void 0,dots:"true"===b.dots,draggable:"false"!==b.draggable,easing:b.easing||"linear",fade:"true"===b.fade,focusOnSelect:"true"===b.focusOnSelect,infinite:"false"!==b.infinite,initialSlide:b.initialSlide||0,lazyLoad:b.lazyLoad||"ondemand",onBeforeChange:d.onBeforeChange?b.onBeforeChange:void 0,onAfterChange:function(c,e){return d.onAfterChange&&b.onAfterChange(),null!=a?b.$apply(function(){return a=e,b.currentIndex=e}):void 0},onInit:function(c){return d.onInit&&b.onInit(),null!=a?c.slideHandler(a):void 0},onReInit:d.onReInit?b.onReInit:void 0,onSetPosition:d.onSetPosition?b.onSetPosition:void 0,pauseOnHover:"false"!==b.pauseOnHover,responsive:b.responsive||void 0,rtl:"true"===b.rtl,slide:b.slide||"div",slidesToShow:null!=b.slidesToShow?parseInt(b.slidesToShow,10):1,slidesToScroll:null!=b.slidesToScroll?parseInt(b.slidesToScroll,10):1,speed:null!=b.speed?parseInt(b.speed,10):300,swipe:"false"!==b.swipe,swipeToSlide:"true"===b.swipeToSlide,touchMove:"false"!==b.touchMove,touchThreshold:b.touchThreshold?parseInt(b.touchThreshold,10):5,useCSS:"false"!==b.useCSS,variableWidth:"true"===b.variableWidth,vertical:"true"===b.vertical,prevArrow:b.prevArrow?$(b.prevArrow):void 0,nextArrow:b.nextArrow?$(b.nextArrow):void 0}),b.$watch("currentIndex",function(b){return null!=a&&null!=b&&b!==a?e.slickGoTo(b):void 0})})},b.initOnload?(g=!1,b.$watch("data",function(a){return null!=a?(g&&e(),f(),g=!0):void 0})):f()}}}]); \ No newline at end of file +/*! angular-slick v0.1.18 */ +"use strict";angular.module("slick",[]).directive("slick",function(){return{restrict:"AEC",scope:{initOnload:"@",data:"=",currentIndex:"=",accessibility:"@",adaptiveHeight:"@",arrows:"@",asNavFor:"@",appendArrows:"@",appendDots:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",customPaging:"&",dots:"@",draggable:"@",easing:"@",fade:"@",focusOnSelect:"@",infinite:"@",initialSlide:"@",lazyLoad:"@",onBeforeChange:"&",onAfterChange:"&",onInit:"&",onReInit:"&",onSetPosition:"&",pauseOnHover:"@",pauseOnDotsHover:"@",responsive:"=",rtl:"@",slide:"@",slidesToShow:"@",slidesToScroll:"@",speed:"@",swipe:"@",swipeToSlide:"@",touchMove:"@",touchThreshold:"@",useCSS:"@",variableWidth:"@",vertical:"@",prevArrow:"@",nextArrow:"@"},link:function(a,b,c){var d,e,f,g,h;return d=null,e=null,f=function(){var a;return a=$(b),a.unslick(),a.find(".slick-list").remove(),a},g=function(){var e,f;return f=$(b),null!=a.currentIndex&&(e=a.currentIndex),f.slick({accessibility:"false"!==a.accessibility,adaptiveHeight:"true"===a.adaptiveHeight,arrows:"false"!==a.arrows,asNavFor:a.asNavFor?a.asNavFor:void 0,appendArrows:$(a.appendArrows?a.appendArrows:b),appendDots:$(a.appendDots?a.appendDots:b),autoplay:"true"===a.autoplay,autoplaySpeed:null!=a.autoplaySpeed?parseInt(a.autoplaySpeed,10):3e3,centerMode:"true"===a.centerMode,centerPadding:a.centerPadding||"50px",cssEase:a.cssEase||"ease",customPaging:c.customPaging?a.customPaging:void 0,dots:"true"===a.dots,draggable:"false"!==a.draggable,easing:a.easing||"linear",fade:"true"===a.fade,focusOnSelect:"true"===a.focusOnSelect,infinite:"false"!==a.infinite,initialSlide:a.initialSlide||0,lazyLoad:a.lazyLoad||"ondemand",onBeforeChange:c.onBeforeChange?a.onBeforeChange:void 0,onAfterChange:function(b,d){return c.onAfterChange&&a.onAfterChange(),null!=e?a.$apply(function(){return e=d,a.currentIndex=d}):void 0},onInit:function(b){return c.onInit&&a.onInit(),null!=e?b.slideHandler(e):void 0},onReInit:c.onReInit?a.onReInit:void 0,onSetPosition:c.onSetPosition?a.onSetPosition:void 0,pauseOnHover:"false"!==a.pauseOnHover,responsive:a.responsive||void 0,rtl:"true"===a.rtl,slide:a.slide||"div",slidesToShow:null!=a.slidesToShow?parseInt(a.slidesToShow,10):1,slidesToScroll:null!=a.slidesToScroll?parseInt(a.slidesToScroll,10):1,speed:null!=a.speed?parseInt(a.speed,10):300,swipe:"false"!==a.swipe,swipeToSlide:"true"===a.swipeToSlide,touchMove:"false"!==a.touchMove,touchThreshold:a.touchThreshold?parseInt(a.touchThreshold,10):5,useCSS:"false"!==a.useCSS,variableWidth:"true"===a.variableWidth,vertical:"true"===a.vertical,prevArrow:a.prevArrow?$(a.prevArrow):void 0,nextArrow:a.nextArrow?$(a.nextArrow):void 0}),d&&d(),d=a.$watch("currentIndex",function(a){return null!=e&&null!=a&&a!==e?f.slickGoTo(a):void 0})},a.initOnload?(h=!1,e&&e(),e=a.$watch("data",function(a){return null!=a?(h&&f(),g(),h=!0):void 0})):g()}}}); \ No newline at end of file