{"version":3,"sources":["kendo.timeline.js"],"names":["f","define","$","undefined","className","name","calculateTransform","element","x","values","matrix","css","match","width","calculateOffset","parentElement","offset","left","applyCssStyles","property","value","kendo","window","ui","Widget","DataSource","data","Transition","effects","proxy","isArray","LEFT_PAGE","CETER_PAGE","RIGHT_PAGE","VERTICAL","TRANSITION_END","VIRTUAL_PAGE_COUNT","VIRTUAL_PAGE_CLASS","FLAGWRAPCLASS","TRACKITEMCLASS","SCROLLABLEWRAPCLASS","NS","CHANGE","DEFAULTHORIZONTALCARDTEMPLATE","DEFAULTVERTICALCARDTEMPLATE","HORIZONTALTRACKTEMPLATE","VERTICALEVENTSTEMPLATE","ARROWSHTML","Page","Class","extend","init","container","this","cardContainer","cardWrapper","append","content","htmlContent","uid","callOut","html","attr","position","setPageCallout","propery","callOutElement","find","destroy","that","remove","HorizontalPane","Observable","options","movable","transition","pages","fn","call","Movable","axis","onEnd","trigger","duration","eventTemplate","eventHeight","dataFieldMappings","bind","initPages","page","i","push","repositionPages","setPageContent","template","Function","titleField","title","subtitleField","subtitle","descriptionField","description","imagesField","images","actionsField","actions","updatePage","isForward","calloutOffset","length","moveTo","moveAxis","transitionTo","ease","location","index","unbind","Timeline","orientation","addClass","_horizontal","_vertical","on","action","event","target","dataItemUid","closest","dataItem","dataSource","getByUid","sender","currentEventIndex","_forward","_eventPage","_currentIndex","_firstIndexInView","_initDataFieldMappings","setDataSource","trackWrap","trackEl","scrollableWrap","eventsWrap","eventsList","_trackWrap","_trackEl","_scrollableWrap","_eventsWrap","_eventsList","height","appendTo","alternatingMode","collapsibleEvents","card","cardBody","hasClass","fx","expand","stop","play","toggleClass","reverse","_renderContentVertical","itemTemplate","useWithBlock","dateField","dataDateField","dataTitleField","dataSubtitleField","dataDescriptionField","dataImagesField","dataActionsField","alterMode","dateFormat","showDateLabels","eventWidth","_renderContentHorizontal","trackTemplate","_dataFieldMappings","initialEventIndex","parent","pane","transitionEnd","date","_transitionEnd","shift","unshift","pop","_animationInProgress","_setCurrentEvent","trackItem","currentTarget","view","eventContainer","open","forward","trackItemCircle","itemIndex","clearTimeout","navigateTimeOut","setTimeout","easeOutExpo","_repositionEvents","_navigateToView","delta","next","previous","_updateArrows","arrows","_validateNavigation","filter","removeClass","transform","_end","numOfEvents","maxEvents","Math","abs","_navigate","firstEventInViewIndex","firstEventInView","currentPage","scrollWrapElement","transitionEndHandler","end","leftOffset","currentIndex","firstIndexInView","_tackItemWidth","floor","eq","nextAll","first","prevAll","off","collapse","items","_resizeHandler","resizeTimeOut","_redrawEvents","redraw","circleElement","trackWrapScrollableElement","round","eventElement","_initHorizontal","firstEventElement","_refresh","create","_sort","field","dir","autoBind","fetch","refresh","empty","events","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,kBACH,WACA,aACA,qBACDD,IACL,WA8sBE,MAtsBC,UAAUE,EAAGC,GAEV,QAASC,GAAUC,GACf,MAAO,KAAOA,EAElB,QAASC,GAAmBC,GAA5B,GAEQC,GACAC,EAFAC,EAASH,EAAQI,IAAI,YAGzB,OAAc,QAAVD,GACAD,EAASC,EAAOE,MAAM,cACtBJ,EAAIC,EAAO,GACJD,EAAID,EAAQM,QAAU,KAEtB,EAGf,QAASC,GAAgBP,EAASQ,GAC9B,MAAOR,GAAQS,SAASC,KAAOF,EAAcC,SAASC,KAAOV,EAAQM,QAAU,EAEnF,QAASK,GAAeX,EAASY,EAAUC,GACvCb,EAAQI,IAAIQ,EAAUC,GArB7B,GACOC,GAAQC,OAAOD,MAAOE,EAAKF,EAAME,GAAIC,EAASD,EAAGC,OAAQC,EAAaJ,EAAMK,KAAKD,WAAYE,EAAaN,EAAMO,QAAQD,WAAYE,EAAQ3B,EAAE2B,MAAOC,EAAU5B,EAAE4B,QAASC,KAAgBC,EAAa,EAAGC,EAAa,EAAGC,EAAW,WAAYC,EAAiB,gBAAiBC,EAAqB,EAAGC,EAAqB,iBAAkBC,EAAg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"kendo.timeline.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.timeline', [\n 'kendo.fx',\n 'kendo.data',\n 'kendo.draganddrop'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'timeline',\n name: 'Timeline',\n category: 'web',\n description: 'The Kendo Timeline widget display events over time',\n depends: ['userevents']\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, Widget = ui.Widget, DataSource = kendo.data.DataSource, Transition = kendo.effects.Transition, proxy = $.proxy, isArray = $.isArray, LEFT_PAGE = -1, CETER_PAGE = 0, RIGHT_PAGE = 1, VERTICAL = 'vertical', TRANSITION_END = 'transitionEnd', VIRTUAL_PAGE_COUNT = 3, VIRTUAL_PAGE_CLASS = 'timeline-event', FLAGWRAPCLASS = 'k-timeline-flag-wrap', TRACKITEMCLASS = 'k-timeline-track-item', SCROLLABLEWRAPCLASS = 'k-timeline-scrollable-wrap', NS = '.kendoTimeline', CHANGE = 'change', DEFAULTHORIZONTALCARDTEMPLATE = '# var titleField = data.titleField, subtitleField = data.subtitleField, descriptionField = data.descriptionField, imagesField = data.imagesField, actionsField = data.actionsField, data = data.data; #' + '
' + '# if(data[titleField]) { #' + '
#= data[titleField] #
' + '# }' + 'if(data[subtitleField]) { #' + '
#= data[subtitleField] #
' + '# } #' + '
' + '
' + '
' + '# if(data[descriptionField]) { #' + '

#= data[descriptionField] #

' + '# }' + 'if(data[imagesField] && data[imagesField].length > 0) { #' + '' + '# } #' + '
' + '
' + '# if(data[actionsField] && data[actionsField].length > 0) { #' + '
' + '# for (var i = 0; i < data[actionsField].length; i++) { #' + '#= data[actionsField][i].text #' + '# } #' + '
' + '# } #', DEFAULTVERTICALCARDTEMPLATE = '# var titleField = data.titleField, subtitleField = data.subtitleField, descriptionField = data.descriptionField, imagesField = data.imagesField, actionsField = data.actionsField, data = data.data; #' + '
' + '
' + '# if(data[titleField]) { #' + '#= data[titleField] #' + '# } #' + '' + '' + '
' + '# if(data[subtitleField]) { #' + '
#= data[subtitleField] #
' + '# } #' + '
' + '
' + '
' + '# if(data[descriptionField]) { #' + '

#= data[descriptionField] #

' + '# } #' + '# if(data[imagesField] && data[imagesField].length > 0) { #' + '' + '# } #' + '
' + '
' + '# if(data[actionsField] && data[actionsField].length > 0) { #' + '
' + '# for (var i = 0; i < data[actionsField].length; i++) { #' + '#= data[actionsField][i].text #' + '# } #' + '
' + '# } #', HORIZONTALTRACKTEMPLATE = '# var itemTemplate = data.itemTemplate, dateField = data.dateField, dateFormat = data.dateFormat, showDateLabels = data.showDateLabels, data = data.data, year = 0; #' + '# for (var i = 0; i < data.length; i++) {' + 'if(!(data[i][dateField] instanceof Date)) {' + 'continue;' + '}' + 'var currentYear = data[i][dateField].getFullYear();' + 'if(year != currentYear) {' + 'year = currentYear; #' + '
  • ' + '#= year #' + '
  • ' + '# } #' + '
  • ' + '
    ' + '# if(showDateLabels) { #' + '#= kendo.toString(data[i][dateField], dateFormat) #' + '# } #' + '
    ' + '' + '
  • ' + '# } #', VERTICALEVENTSTEMPLATE = '# var itemTemplate = data.itemTemplate, dateField = data.dateField, titleField = data.titleField, descriptionField = data.descriptionField, subtitleField = data.subtitleField, imagesField = data.imagesField, actionsField = data.actionsField, alterMode = data.alterMode, collapsibleEvents = data.collapsibleEvents, dateFormat = data.dateFormat, showDateLabels = data.showDateLabels, data = data.data, counter = 0, year = 0, reverse = false;' + 'for (var i = 0; i < data.length; i++) {' + 'if(!(data[i][dateField] instanceof Date)) {' + 'continue;' + '}' + 'var currentYear = data[i][dateField].getFullYear();' + 'if(currentYear != year) {' + 'year = currentYear; #' + '
  • ' + '#= year #' + '
  • ' + '# } ' + 'reverse = counter % 2 === 0 && alterMode; #' + '
  • ' + '# if(showDateLabels) { #' + '
    ' + '#= kendo.toString(data[i][dateField], dateFormat) #' + '
    ' + '# } #' + '' + '
    ' + '
    ' + '' + '#= itemTemplate({titleField: titleField, subtitleField: subtitleField, descriptionField: descriptionField, imagesField: imagesField, actionsField: actionsField, data: data[i]}) #' + '
    ' + '
    ' + '
  • ' + '# counter ++;' + '} #', ARROWSHTML = '' + '' + '' + '' + '' + '';\n function className(name) {\n return 'k-' + name;\n }\n function calculateTransform(element) {\n var matrix = element.css('transform');\n var x;\n var values;\n if (matrix != 'none') {\n values = matrix.match(/-?[\\d\\.]+/g);\n x = values[4];\n return x / element.width() * 100;\n } else {\n return 0;\n }\n }\n function calculateOffset(element, parentElement) {\n return element.offset().left - parentElement.offset().left + element.width() / 2;\n }\n function applyCssStyles(element, property, value) {\n element.css(property, value);\n }\n var Page = kendo.Class.extend({\n init: function (container) {\n this.cardContainer = $('
    ');\n var cardWrapper = $('
    ').append(this.cardContainer);\n this.element = $('
  • ').append(cardWrapper);\n container.append(this.element);\n },\n content: function (htmlContent, uid) {\n var callOut = $('');\n this.cardContainer.html(htmlContent);\n this.cardContainer.append(callOut);\n this.element.attr('data-uid', uid);\n },\n position: function (position) {\n this.element.css('transform', 'translate3d(' + this.element.width() * position + 'px, 0, 0)');\n },\n setPageCallout: function (propery, value) {\n var element = this.element;\n var callOutElement = element.find('.k-timeline-card-callout');\n callOutElement.css(propery, value);\n },\n destroy: function () {\n var that = this;\n that.cardContainer = null;\n that.element.remove();\n that.element = null;\n }\n });\n var HorizontalPane = kendo.Observable.extend({\n init: function (element, options) {\n var that = this;\n kendo.Observable.fn.init.call(this);\n this.element = element;\n var movable, transition, pages;\n movable = new kendo.ui.Movable(that.element);\n transition = new Transition({\n axis: 'x',\n movable: movable,\n onEnd: function () {\n that.trigger(TRANSITION_END);\n }\n });\n pages = [];\n $.extend(that, {\n duration: options && options.duration || 1,\n movable: movable,\n transition: transition,\n pages: pages,\n eventTemplate: options.eventTemplate,\n eventHeight: options.eventHeight,\n dataFieldMappings: options.dataFieldMappings\n });\n this.bind([TRANSITION_END], options);\n },\n initPages: function () {\n var pages = this.pages, element = this.element, page;\n for (var i = 0; i < VIRTUAL_PAGE_COUNT; i++) {\n page = new Page(element);\n pages.push(page);\n }\n },\n repositionPages: function () {\n var pages = this.pages;\n pages[0].position(LEFT_PAGE);\n pages[1].position(CETER_PAGE);\n pages[2].position(RIGHT_PAGE);\n },\n setPageContent: function (page, data) {\n var template = typeof this.eventTemplate === Function ? this.eventTemplate : kendo.template(this.eventTemplate);\n var dataFieldMappings = this.dataFieldMappings;\n var html;\n html = template({\n data: data,\n titleField: dataFieldMappings.title,\n subtitleField: dataFieldMappings.subtitle,\n descriptionField: dataFieldMappings.description,\n imagesField: dataFieldMappings.images,\n actionsField: dataFieldMappings.actions\n });\n page.content(html, data.uid);\n },\n updatePage: function (isForward, data, calloutOffset) {\n var pages = this.pages;\n var page = isForward === null ? pages[1] : isForward ? pages[pages.length - 1] : pages[0];\n this.setPageContent(page, data);\n page.setPageCallout('left', calloutOffset / page.element.width() * 100 + '%');\n },\n moveTo: function (offset) {\n this.movable.moveAxis('x', -offset);\n },\n transitionTo: function (offset, ease) {\n this.transition.moveTo({\n location: offset,\n duration: this.duration,\n ease: ease\n });\n },\n destroy: function () {\n var that = this;\n for (var index = 0; index < that.pages.length; index++) {\n that.pages[index].destroy();\n }\n that.unbind();\n that.movable = that.transition = that.dataFieldMappings = that.eventTemplate = that.duration = that.pages = null;\n }\n });\n var Timeline = kendo.ui.Widget.extend({\n init: function (element, options) {\n var that = this;\n var orientation = options.orientation || that.options.orientation;\n Widget.fn.init.call(this, element, options);\n this.element.addClass(orientation === VERTICAL ? 'k-timeline k-widget k-timeline-vertical' : 'k-timeline k-widget k-timeline-horizontal');\n if (orientation != VERTICAL) {\n that._horizontal();\n } else {\n that._vertical();\n }\n this.element.on('click', '.k-card-actions', function () {\n var action = $(event.target);\n var dataItemUid = $(event.target).closest('.k-timeline-event').data('uid');\n var dataItem = that.dataSource.getByUid(dataItemUid);\n that.trigger('actionClick', {\n sender: that,\n element: action,\n dataItem: dataItem\n });\n });\n that.currentEventIndex = 0;\n that._forward = null;\n that._eventPage = 1;\n that._currentIndex = 0;\n that._firstIndexInView = 0;\n that._initDataFieldMappings();\n that.setDataSource(options.dataSource);\n },\n _horizontal: function () {\n var that = this;\n var element = this.element;\n var options = this.options;\n var trackWrap = $('
    ');\n var trackEl = $('
    ');\n var scrollableWrap = $('
      ');\n var eventsWrap = $('
      ');\n var eventsList = $('
        ');\n that._trackWrap = trackWrap;\n that._trackEl = trackEl;\n that._scrollableWrap = scrollableWrap;\n that._eventsWrap = eventsWrap;\n that._eventsList = eventsList;\n trackWrap.addClass('k-timeline-track-wrap');\n trackEl.addClass('k-timeline-track');\n scrollableWrap.addClass('k-timeline-scrollable-wrap');\n eventsWrap.addClass('k-timeline-events-list');\n eventsList.addClass('k-timeline-scrollable-wrap');\n if (options.eventHeight) {\n eventsList.height(options.eventHeight);\n }\n trackEl.append(scrollableWrap);\n trackWrap.append(ARROWSHTML);\n trackWrap.append(trackEl);\n eventsWrap.append(eventsList);\n trackWrap.appendTo(element);\n eventsWrap.appendTo(element);\n },\n _vertical: function () {\n var that = this;\n var options = this.options;\n var element = this.element;\n var eventsList = that._eventsList = $('
          ');\n that.element.append(eventsList);\n if (options.alternatingMode) {\n element.addClass('k-timeline-alternating');\n }\n if (options.collapsibleEvents) {\n element.addClass('k-timeline-collapsible');\n this.element.on('click', '.k-card-header', function () {\n var card = $(this).closest('.k-timeline-card');\n var cardBody = card.find('.k-card-body');\n var dataItem = that.dataSource.getByUid(card.closest('li').data('uid'));\n if (card.hasClass('k-collapsed')) {\n if (!that.trigger('expand', {\n sender: that,\n dataItem: dataItem\n })) {\n kendo.fx(cardBody).expand('vertical').stop().play();\n card.toggleClass('k-collapsed');\n }\n } else {\n if (!that.trigger('collapse', {\n sender: that,\n dataItem: dataItem\n })) {\n kendo.fx(cardBody).expand('vertical').stop().reverse();\n card.toggleClass('k-collapsed');\n }\n }\n });\n }\n },\n _renderContentVertical: function (data) {\n var that = this;\n var options = that.options;\n var html;\n var itemTemplate;\n if (typeof options.eventTemplate === Function) {\n itemTemplate = options.eventTemplate;\n } else {\n itemTemplate = options.eventTemplate ? kendo.template(options.eventTemplate) : kendo.template(DEFAULTVERTICALCARDTEMPLATE, { useWithBlock: false });\n }\n var template = kendo.template(VERTICALEVENTSTEMPLATE, { useWithBlock: false });\n html = template({\n data: data,\n dateField: options.dataDateField,\n titleField: options.dataTitleField,\n subtitleField: options.dataSubtitleField,\n descriptionField: options.dataDescriptionField,\n imagesField: options.dataImagesField,\n actionsField: options.dataActionsField,\n itemTemplate: itemTemplate,\n alterMode: options.alternatingMode,\n collapsibleEvents: options.collapsibleEvents,\n dateFormat: options.dateFormat,\n showDateLabels: options.showDateLabels\n });\n this._eventsList.html(html);\n if (options.eventWidth) {\n that.element.find('.k-card').width(options.eventWidth);\n }\n },\n _renderContentHorizontal: function (data) {\n var that = this;\n var options = that.options;\n var html;\n var itemTemplate;\n var dataFieldMappings = that._dataFieldMappings;\n if (typeof options.eventTemplate === Function) {\n itemTemplate = options.eventTemplate;\n } else {\n itemTemplate = options.eventTemplate ? kendo.template(options.eventTemplate) : kendo.template(DEFAULTHORIZONTALCARDTEMPLATE, { useWithBlock: false });\n }\n var trackTemplate = kendo.template(HORIZONTALTRACKTEMPLATE, { useWithBlock: false });\n html = trackTemplate({\n data: data,\n itemTemplate: itemTemplate,\n dateFormat: options.dateFormat,\n dateField: options.dataDateField,\n showDateLabels: options.showDateLabels\n });\n if (options.initialEventIndex) {\n that._trackWrap.append($(html).find('.k-timeline-scrollable-wrap').css('transform', 'translateX(-100%)').parent());\n } else {\n that._scrollableWrap.html(html);\n }\n if (that.pane) {\n that.pane.destroy();\n }\n that.pane = new HorizontalPane(that._eventsList, {\n transitionEnd: proxy(this, '_transitionEnd'),\n eventTemplate: itemTemplate,\n dataFieldMappings: dataFieldMappings,\n eventHeight: options.eventHeight\n });\n },\n _initDataFieldMappings: function () {\n var that = this;\n var options = that.options;\n that._dataFieldMappings = {\n 'title': options.dataTitleField,\n 'subtitle': options.dataSubtitleField,\n 'date': options.dataDateField,\n 'description': options.dataDescriptionField,\n 'images': options.dataImagesField,\n 'actions': options.dataActionsField\n };\n },\n _transitionEnd: function () {\n if (this._forward) {\n this.pane.pages.push(this.pane.pages.shift());\n } else {\n this.pane.pages.unshift(this.pane.pages.pop());\n }\n this._forward = null;\n this.pane.repositionPages();\n this.pane.movable.moveAxis('x', 0);\n this._animationInProgress = false;\n },\n _setCurrentEvent: function (event) {\n var that = this;\n var trackItem = $(event.currentTarget);\n var eventContainer;\n var dataItem = that.dataSource.view()[trackItem.index('li[class=\\'k-timeline-track-item\\']')];\n eventContainer = that._forward ? that.pane.pages[2].element : that.pane.pages[0].element;\n if (!that.trigger('change', {\n eventContainer: eventContainer,\n dataItem: dataItem\n })) {\n that.open(trackItem);\n }\n },\n open: function (element) {\n var that = this;\n var trackItem = $(element);\n var trackItemCircle = trackItem.find('.k-timeline-circle');\n var itemIndex = trackItem.index('li[class=\\'k-timeline-track-item\\']');\n var forward;\n var dataItem = that.dataSource.view()[itemIndex];\n if (that.currentEventIndex === itemIndex) {\n return;\n }\n that._currentIndex = trackItem.index();\n forward = that._forward = that.currentEventIndex < itemIndex;\n that.currentEventIndex = itemIndex;\n that.pane.updatePage(forward, dataItem, calculateOffset(trackItemCircle, that._trackWrap));\n if (that._forward) {\n clearTimeout(that.navigateTimeOut);\n that.navigateTimeOut = setTimeout(function () {\n that.pane.transition.moveTo({\n location: -that.pane.pages[2].element.width(),\n duration: 800,\n ease: Transition.easeOutExpo\n });\n }, 200);\n } else {\n clearTimeout(that.navigateTimeOut);\n that.navigateTimeOut = setTimeout(function () {\n that.pane.transition.moveTo({\n location: that.pane.pages[0].element.width(),\n duration: 800,\n ease: Transition.easeOutExpo\n });\n }, 200);\n }\n that._repositionEvents();\n },\n _navigateToView: function (event) {\n var that = this;\n var delta = $(event.currentTarget).hasClass('k-timeline-arrow-right') ? 1 : -1;\n if (!that.trigger('navigate', {\n sender: that,\n action: delta > 0 ? 'next' : 'previous'\n }) && !that._animationInProgress) {\n that._animationInProgress = true;\n if (delta > 0) {\n that.next();\n } else {\n that.previous();\n }\n that._updateArrows();\n }\n },\n _updateArrows: function () {\n var that = this;\n var arrows = that.element.find('.k-timeline-arrow');\n if (that._validateNavigation(false)) {\n arrows.filter('.k-timeline-arrow-left').addClass('k-state-disabled');\n } else {\n arrows.filter('.k-timeline-arrow-left').removeClass('k-state-disabled');\n }\n if (that._validateNavigation(true)) {\n arrows.filter('.k-timeline-arrow-right').addClass('k-state-disabled');\n } else {\n arrows.filter('.k-timeline-arrow-right').removeClass('k-state-disabled');\n }\n },\n _validateNavigation: function (next) {\n var that = this;\n var transform = that._end || 0;\n if (next) {\n return that._firstIndexInView + that.numOfEvents >= that.maxEvents;\n } else {\n return Math.abs(transform) <= 1;\n }\n },\n next: function () {\n var that = this;\n var options = that.options;\n if (!that._validateNavigation(true) && options.orientation != VERTICAL) {\n that._forward = true;\n that._navigate();\n }\n that._updateArrows();\n },\n _navigate: function () {\n var that = this;\n var firstEventInViewIndex;\n var firstEventInView;\n var dataItem;\n var width;\n var forward = that._forward;\n var end = calculateTransform(this._trackWrap.find('.' + SCROLLABLEWRAPCLASS));\n var leftOffset = forward ? -$('.' + SCROLLABLEWRAPCLASS).width() : $('.' + SCROLLABLEWRAPCLASS).width();\n var currentIndex = that._currentIndex;\n var currentPage;\n var firstIndexInView = that._firstIndexInView;\n end = forward ? end - 100 : end + 100;\n if (end >= 0) {\n end = 0;\n }\n that._end = end;\n width = that._tackItemWidth;\n currentPage = Math.floor(currentIndex / that.numOfEvents);\n if (forward) {\n if (that.numOfEvents === 1) {\n firstEventInViewIndex = firstIndexInView === 0 ? 1 : firstIndexInView;\n firstEventInView = this._trackWrap.find('.' + TRACKITEMCLASS).eq(firstEventInViewIndex).nextAll(':not(.' + FLAGWRAPCLASS + ')').first();\n that._firstIndexInView = firstEventInView.index();\n } else {\n firstEventInViewIndex = firstIndexInView + that.numOfEvents - 1;\n firstEventInView = this._trackWrap.find('.' + TRACKITEMCLASS).eq(firstEventInViewIndex).nextAll(':not(.' + FLAGWRAPCLASS + ')').first();\n that._firstIndexInView = firstIndexInView + that.numOfEvents;\n }\n } else {\n if (that.numOfEvents === 1) {\n firstEventInViewIndex = firstIndexInView;\n firstEventInView = this._trackWrap.find('.' + TRACKITEMCLASS).eq(firstEventInViewIndex).prevAll(':not(.' + FLAGWRAPCLASS + ')').first();\n that._firstIndexInView = firstEventInView.index();\n } else {\n firstEventInViewIndex = firstIndexInView;\n firstEventInView = this._trackWrap.find('.' + TRACKITEMCLASS).eq(firstEventInViewIndex).prevAll(':not(.' + FLAGWRAPCLASS + ')').first();\n firstEventInView = firstEventInView.length > 0 ? firstEventInView : this._trackWrap.find('.' + TRACKITEMCLASS + ':not(.' + FLAGWRAPCLASS + ')').first();\n that._firstIndexInView = firstIndexInView - that.numOfEvents < 0 ? 0 : firstIndexInView - that.numOfEvents;\n }\n }\n dataItem = that.dataSource.view()[firstEventInView.index('li[class=\\'k-timeline-track-item\\']')];\n this._trackWrap.find('.' + SCROLLABLEWRAPCLASS).css('transform', 'translateX(' + end + '%)');\n if (that._currentIndex != firstEventInView.index()) {\n that.currentEventIndex = firstEventInView.index('li[class=\\'k-timeline-track-item\\']');\n that._currentIndex = firstEventInView.index();\n that.pane.updatePage(that._forward, dataItem, currentPage === 0 && !forward ? firstEventInView.find('.k-timeline-circle').offset().left + 15 : calculateOffset(firstEventInView.find('.k-timeline-circle'), that._trackWrap) + leftOffset);\n clearTimeout(that.navigateTimeOut);\n that.navigateTimeOut = setTimeout(function () {\n if (forward && that.pane && that.pane.pages.length > 0) {\n that.pane.transition.moveTo({\n location: -that.pane.pages[2].element.width(),\n duration: 800,\n ease: Transition.easeOutExpo\n });\n } else {\n that.pane.transition.moveTo({\n location: that.pane.pages[0].element.width(),\n duration: 800,\n ease: Transition.easeOutExpo\n });\n }\n }, 200);\n } else {\n var scrollWrapElement = this._trackWrap.find('.' + SCROLLABLEWRAPCLASS);\n var transitionEndHandler = function () {\n if (that.numOfEvents != 1) {\n var page = that.pane.pages[1];\n var calloutOffset = calculateOffset(firstEventInView.find('.k-timeline-circle'), that._trackWrap);\n page.setPageCallout('left', calloutOffset / page.element.width() * 100 + '%');\n }\n scrollWrapElement.off('transitionend' + NS, transitionEndHandler);\n };\n scrollWrapElement.on('transitionend' + NS, transitionEndHandler);\n }\n },\n previous: function () {\n var that = this;\n var options = that.options;\n if (!that._validateNavigation(false) && options.orientation != VERTICAL) {\n that._forward = false;\n that._navigate();\n }\n that._updateArrows();\n },\n expand: function (event) {\n var cardWrapper = $(event).find('.k-timeline-card');\n var cardBody = $(event).find('.k-card-body');\n if (cardWrapper.hasClass('k-collapsed')) {\n kendo.fx(cardBody).expand('vertical').stop().play();\n cardWrapper.removeClass('k-collapsed');\n }\n },\n collapse: function (event) {\n var cardWrapper = $(event).find('.k-timeline-card');\n var cardBody = $(event).find('.k-card-body');\n if (!cardWrapper.hasClass('k-collapsed')) {\n kendo.fx(cardBody).expand('vertical').stop().reverse();\n cardWrapper.addClass('k-collapsed');\n }\n },\n items: function () {\n return this.element.find('li[data-uid]');\n },\n _resizeHandler: function () {\n var that = this;\n clearTimeout(that.resizeTimeOut);\n that.resizeTimeOut = setTimeout(function () {\n that._redrawEvents();\n that.pane.repositionPages();\n });\n },\n redraw: function () {\n var options = this.options;\n if (options.orientation != VERTICAL) {\n this._redrawEvents();\n this.pane.repositionPages();\n }\n },\n _redrawEvents: function () {\n var that = this;\n var numOfEvents = Math.floor(that.element.find('.k-timeline-scrollable-wrap').width() / 150);\n var width;\n if (that.element.width() <= 480) {\n that.element.addClass('k-timeline-mobile');\n width = 100;\n that.numOfEvents = 1;\n that._tackItemWidth = width;\n that.element.find('li.k-timeline-track-item').css('flex', '1 0 ' + width + '%');\n that._repositionEvents();\n } else {\n that.element.removeClass('k-timeline-mobile');\n if (numOfEvents != that.numOfEvents) {\n that.numOfEvents = numOfEvents;\n width = 100 / numOfEvents;\n applyCssStyles(that.element.find('li.k-timeline-track-item'), 'flex', '1 0 ' + width + '%');\n that._tackItemWidth = width;\n that._repositionEvents();\n }\n }\n that._updateArrows();\n },\n _repositionEvents: function () {\n var that = this;\n var width = that._tackItemWidth;\n var page = that._forward === null ? that.pane.pages[1] : that._forward ? that.pane.pages[2] : that.pane.pages[0];\n var trackWrapScrollableElement = this._trackWrap.find('.' + SCROLLABLEWRAPCLASS);\n var end = calculateTransform(trackWrapScrollableElement);\n var calloutOffset;\n var offset;\n var leftOffset;\n var circleElement;\n if (that.numOfEvents === 1) {\n offset = that.currentEventIndex * width;\n } else {\n offset = that._currentIndex * width;\n }\n if (page) {\n if (that.numOfEvents === 1) {\n page.setPageCallout('left', '50%');\n leftOffset = offset;\n applyCssStyles(trackWrapScrollableElement, 'transform', 'translateX(-' + leftOffset + '%)');\n that._firstIndexInView = that._currentIndex;\n that._updateArrows();\n return;\n }\n if (offset >= Math.abs(end) + 100) {\n leftOffset = Math.abs(end) + (offset - (Math.abs(end) + 100) + width);\n that._end = -leftOffset;\n applyCssStyles(trackWrapScrollableElement, 'transform', 'translateX(-' + leftOffset + '%)');\n that._firstIndexInView = that._currentIndex - that.numOfEvents + 1;\n } else if (offset <= Math.abs(end)) {\n leftOffset = offset;\n that._end = -leftOffset;\n applyCssStyles(trackWrapScrollableElement, 'transform', 'translateX(-' + leftOffset + '%)');\n that._firstIndexInView = that._currentIndex;\n } else {\n circleElement = trackWrapScrollableElement.find('li.k-timeline-track-item').eq(that._currentIndex).find('.k-timeline-circle');\n calloutOffset = calculateOffset(circleElement, that._trackWrap);\n page.setPageCallout('left', calloutOffset / page.element.width() * 100 + '%');\n that._firstIndexInView = Math.round(Math.abs(end) / width);\n }\n var scrollWrapElement = this._trackWrap.find('.' + SCROLLABLEWRAPCLASS);\n var transitionEndHandler = function () {\n if (that.numOfEvents != 1) {\n var page = that.pane.pages[1];\n var eventElement = that._trackWrap.find('.' + TRACKITEMCLASS).eq(that._currentIndex);\n var calloutOffset = calculateOffset(eventElement.find('.k-timeline-circle'), that._trackWrap);\n page.setPageCallout('left', calloutOffset / page.element.width() * 100 + '%');\n }\n scrollWrapElement.off('transitionend' + NS, transitionEndHandler);\n };\n scrollWrapElement.on('transitionend' + NS, transitionEndHandler);\n }\n that._updateArrows();\n },\n _initHorizontal: function () {\n var that = this;\n var firstEventElement = that._trackWrap.find('.k-timeline-circle').first();\n var dataItem = that.dataSource.view()[0];\n that.maxEvents = that._trackWrap.find('.k-timeline-track-item').length;\n that._currentIndex = 1;\n that.pane.initPages();\n that.pane.repositionPages();\n that.pane.updatePage(that._forward, dataItem, calculateOffset(firstEventElement, that._trackWrap));\n that._updateArrows();\n $(window).on('resize' + NS, proxy(this, '_resizeHandler'));\n that._trackWrap.on('click', '.k-timeline-track-item:not(.k-timeline-flag-wrap)', proxy(this, '_setCurrentEvent'));\n that._trackWrap.on('click', '.k-timeline-arrow:not(.k-state-disabled)', proxy(this, '_navigateToView'));\n },\n setDataSource: function (dataSource) {\n var that = this;\n var options = that.options;\n dataSource = isArray(dataSource) ? { data: dataSource } : dataSource;\n if (that.dataSource && that._refresh) {\n that.dataSource.unbind(CHANGE, that._refresh);\n } else {\n this._refresh = proxy(that, 'refresh');\n }\n this.dataSource = DataSource.create(dataSource);\n if (this.dataSource._sort === undefined) {\n this.dataSource._sort = [{\n field: options.dataDateField,\n dir: 'asc'\n }];\n }\n that.dataSource.bind(CHANGE, that._refresh);\n if (options.autoBind) {\n this.dataSource.fetch();\n }\n },\n refresh: function () {\n var that = this;\n var options = that.options;\n var data = this.dataSource.view();\n if (options.orientation != VERTICAL) {\n that._trackWrap.empty().remove();\n that.element.find('.k-timeline-events-list').remove();\n that._horizontal();\n }\n that.currentEventIndex = 0;\n that._forward = null;\n that._eventPage = 1;\n that._currentIndex = 0;\n that._firstIndexInView = 0;\n that.numOfEvents = null;\n that._end = 0;\n that._initDataFieldMappings();\n if (data.length) {\n if (options.orientation === 'horizontal') {\n that._renderContentHorizontal(data);\n that._redrawEvents();\n that._initHorizontal();\n } else {\n that._renderContentVertical(data);\n }\n }\n that.trigger('dataBound', { sender: that });\n },\n destroy: function () {\n var options = this.options;\n Widget.fn.destroy.call(this);\n if (this.resizeTimeOut) {\n clearTimeout(this.resizeTimeOut);\n }\n if (this.navigateTimeOut) {\n clearTimeout(this.navigateTimeOut);\n }\n $(window).off('resize' + NS, this._resizeHandler);\n this.element.off();\n if (options.orientation != VERTICAL) {\n this.pane.destroy();\n this._trackWrap.find('.' + SCROLLABLEWRAPCLASS).off();\n this._trackWrap.off();\n this.currentEventIndex = this.maxEvents = this.numOfEvents = this._currentIndex = this._eventPage = this._eventsList = this._eventsWrap = this.element = this._trackWrap = this.pane = null;\n }\n kendo.destroy(this.element);\n this._dataFieldMappings = this.element = null;\n },\n options: {\n autoBind: true,\n name: 'Timeline',\n orientation: 'vertical',\n dateFormat: 'MMM d, yyyy',\n showDateLabels: true,\n collapsibleEvents: false,\n alternatingMode: false,\n dataTitleField: 'title',\n dataDateField: 'date',\n dataSubtitleField: 'subtitle',\n dataDescriptionField: 'description',\n dataImagesField: 'images',\n dataActionsField: 'actions'\n },\n events: [\n 'collapse',\n 'dataBound',\n 'expand',\n 'actionClick',\n 'change',\n 'navigate'\n ]\n });\n kendo.ui.plugin(Timeline);\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"]}