{"version":3,"sources":["kendo.tabstrip.js"],"names":["f","define","$","undefined","updateTabClasses","tabs","children","IMG","addClass","IMAGE","LINK","filter","DEFAULTSTATE","DISABLEDSTATE","removeAttr","parent","ACTIVESTATE","TABONTOP","attr","each","item","this","length","contents","nodeName","match","excludedNodesRegExp","nodeType","trim","nodeValue","wrapAll","updateFirstLast","tabGroup","removeClass","FIRST","LAST","scrollButtonHtml","buttonClass","iconClass","kendo","window","ui","keys","map","extend","template","outerWidth","_outerWidth","outerHeight","_outerHeight","Widget","NS","HREF","PREV","SHOW","CLICK","ERROR","EMPTY","SELECT","ACTIVATE","CONTENT","CONTENTURL","MOUSEENTER","MOUSELEAVE","CONTENTLOAD","FOCUSEDSTATE","HOVERSTATE","NAVIGATABLEITEMS","HOVERABLEITEMS","templates","content","itemWrapper","image","sprite","empty","rendering","wrapperCssClass","group","result","index","enabled","textAttributes","url","text","encoded","htmlEncode","tag","contentAttributes","active","contentUrl","TabStrip","init","element","options","value","selectedItems","that","fn","call","_animations","_wrapper","_isRtl","support","isRtl","wrapper","_tabindex","_updateClasses","_dataSource","dataSource","fetch","_tabPosition","_scrollable","contentUrls","find","data","on","_toggleHover","proxy","_active","_current","_keyDownProxy","_keydown","navigatable","e","msie","wr","document","activeElement","browser","setActive","j","focus","_click","currentTarget","preventDefault","contentHolder","childNodes","activateTab","eq","id","_ariaId","notify","_endItem","action","_item","endItem","hasClass","candidate","focused","_focused","key","keyCode","current","rtl","target","DOWN","RIGHT","UP","LEFT","ENTER","SPACEBAR","HOME","END","_refreshHandler","unbind","refresh","DataSource","create","bind","setDataSource","animation","open","effects","close","idx","tab","getter","dataTextField","dataContentField","dataContentUrlField","dataImageUrlField","dataUrlField","dataSpriteCssClass","view","items","imageUrl","spriteCssClass","insertBefore","append","remove","indexOf","field","get","trigger","select","setOptions","off","events","name","tabPosition","duration","collapsible","scrollable","distance","destroy","scrollWrap","_scrollableModeActive","_scrollPrevButton","_scrollNextButton","unwrap","arguments","isNaN","contentElement","enable","state","_toggleDisabled","disable","reload","ajaxRequest","inserted","_create","before","angular","elements","_updateContentElements","resize","referenceTab","referenceContent","insertAfter","after","type","plain","isPlainObject","isArray","renderItem","renderContent","test","parentNode","className","parseInt","getAttribute","replace","add","toggleClass","activeItem","activeTab","appendTo","contentElements","css","display","tabStripID","guid","currentIndex","setAttribute","removeData","currentContent","prependTo","contentAnimators","tabsHeight","kineticScrollNeeded","mobile","Scroller","touchScroller","is","_setContentElementsDimensions","contentDivs","activeDiv","marginStyleProperty","margin","minHeight","Math","ceil","height","setTimeout","_resize","_sizeScrollWrap","h","floor","prevent","isAnchor","link","href","collapse","closest","charAt","deactivateTab","wrapperOffsetWidth","tabGroupScrollWidth","scrollPrevButton","scrollNextButton","_scrollableAllowed","offsetWidth","scrollWidth","_nowScrollingTabs","marginLeft","marginRight","_scrollTabsByDelta","_toggleScrollButtons","_scrollTabsToItem","itemPosition","currentScrollOffset","scrollLeft","itemWidth","itemOffset","position","left","first","tabGroupWidth","tabGroupPadding","parseFloat","finish","animate","delta","scrLeft","ul","toggle","animationSettings","hasCloseAnimation","reverse","hide","size","kendoAddClass","kendoRemoveClass","kendoStop","kendoAnimate","neighbours","oldTab","itemIndex","visibleContents","isAjaxContent","showContentElement","showContent","inRequest","xhr","abort","complete","idTest","i","len","RegExp","scrollContainer","touch","halfWidth","fakeProgress","statusIcon","endState","oldProgressAnimation","ajaxSettings","width","version","ajax","cache","dataType","request","event","progressUpload","progress","upload","addEventListener","evt","noProgress","XMLHttpRequest","lengthComputable","percent","loaded","total","stop","error","status","stopProgress","clearInterval","style","cssText","statusText","success","console","setInterval","min","html","message","tabStrip","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,kBAAmB,cAAeD,IAC3C,WA2+BE,MAn+BC,UAAUE,EAAGC,GA2CV,QAASC,GAAiBC,GACtBA,EAAKC,SAASC,GAAKC,SAASC,GAC5BJ,EAAK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tabstrip.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.tabstrip', ['kendo.data'], f);\n}(function () {\n var __meta__ = {\n id: 'tabstrip',\n name: 'TabStrip',\n category: 'web',\n description: 'The TabStrip widget displays a collection of tabs with associated tab content.',\n depends: ['data']\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, keys = kendo.keys, map = $.map, each = $.each, trim = $.trim, extend = $.extend, template = kendo.template, outerWidth = kendo._outerWidth, outerHeight = kendo._outerHeight, Widget = ui.Widget, excludedNodesRegExp = /^(a|div)$/i, NS = '.kendoTabStrip', IMG = 'img', HREF = 'href', PREV = 'prev', SHOW = 'show', LINK = 'k-link', LAST = 'k-last', CLICK = 'click', ERROR = 'error', EMPTY = ':empty', IMAGE = 'k-image', FIRST = 'k-first', SELECT = 'select', ACTIVATE = 'activate', CONTENT = 'k-content', CONTENTURL = 'contentUrl', MOUSEENTER = 'mouseenter', MOUSELEAVE = 'mouseleave', CONTENTLOAD = 'contentLoad', DISABLEDSTATE = 'k-state-disabled', DEFAULTSTATE = 'k-state-default', ACTIVESTATE = 'k-state-active', FOCUSEDSTATE = 'k-state-focused', HOVERSTATE = 'k-state-hover', TABONTOP = 'k-tab-on-top', NAVIGATABLEITEMS = '.k-item:not(.' + DISABLEDSTATE + ')', HOVERABLEITEMS = '.k-tabstrip-items > ' + NAVIGATABLEITEMS + ':not(.' + ACTIVESTATE + ')', templates = {\n content: template('
#= content(item) #
'),\n itemWrapper: template('<#= tag(item) # class=\\'k-link\\'#= contentUrl(item) ##= textAttributes(item) #>' + '#= image(item) ##= sprite(item) ##= text(item) #' + ''),\n item: template('
  • ' + '#= itemWrapper(data) #' + '
  • '),\n image: template('\\'\\''),\n sprite: template(''),\n empty: template('')\n }, rendering = {\n wrapperCssClass: function (group, item) {\n var result = 'k-item', index = item.index;\n if (item.enabled === false) {\n result += ' k-state-disabled';\n } else {\n result += ' k-state-default';\n }\n if (index === 0) {\n result += ' k-first';\n }\n if (index == group.length - 1) {\n result += ' k-last';\n }\n return result;\n },\n textAttributes: function (item) {\n return item.url ? ' href=\\'' + item.url + '\\'' : '';\n },\n text: function (item) {\n return item.encoded === false ? item.text : kendo.htmlEncode(item.text);\n },\n tag: function (item) {\n return item.url ? 'a' : 'span';\n },\n contentAttributes: function (content) {\n return content.active !== true ? ' style=\\'display:none\\' aria-hidden=\\'true\\' aria-expanded=\\'false\\'' : '';\n },\n content: function (item) {\n return item.content ? item.content : item.contentUrl ? '' : ' ';\n },\n contentUrl: function (item) {\n return item.contentUrl ? kendo.attr('content-url') + '=\"' + item.contentUrl + '\"' : '';\n }\n };\n function updateTabClasses(tabs) {\n tabs.children(IMG).addClass(IMAGE);\n tabs.children('a').addClass(LINK).children(IMG).addClass(IMAGE);\n tabs.filter(':not([disabled]):not([class*=k-state-disabled])').addClass(DEFAULTSTATE);\n tabs.filter('li[disabled]').addClass(DISABLEDSTATE).removeAttr('disabled');\n tabs.filter(':not([class*=k-state])').children('a').filter(':focus').parent().addClass(ACTIVESTATE + ' ' + TABONTOP);\n tabs.attr('role', 'tab');\n tabs.filter('.' + ACTIVESTATE).attr('aria-selected', true);\n tabs.each(function () {\n var item = $(this);\n if (!item.children('.' + LINK).length) {\n item.contents().filter(function () {\n return !this.nodeName.match(excludedNodesRegExp) && !(this.nodeType == 3 && !trim(this.nodeValue));\n }).wrapAll('');\n }\n });\n }\n function updateFirstLast(tabGroup) {\n var tabs = tabGroup.children('.k-item');\n tabs.filter('.k-first:not(:first-child)').removeClass(FIRST);\n tabs.filter('.k-last:not(:last-child)').removeClass(LAST);\n tabs.filter(':first-child').addClass(FIRST);\n tabs.filter(':last-child').addClass(LAST);\n }\n function scrollButtonHtml(buttonClass, iconClass) {\n return '';\n }\n var TabStrip = Widget.extend({\n init: function (element, options) {\n var that = this, value;\n Widget.fn.init.call(that, element, options);\n that._animations(that.options);\n options = that.options;\n that._wrapper();\n that._isRtl = kendo.support.isRtl(that.wrapper);\n that._tabindex();\n that._updateClasses();\n that._dataSource();\n if (options.dataSource) {\n that.dataSource.fetch();\n }\n that._tabPosition();\n that._scrollable();\n if (that.options.contentUrls) {\n that.wrapper.find('.k-tabstrip-items > .k-item').each(function (index, item) {\n $(item).find('>.' + LINK).data(CONTENTURL, that.options.contentUrls[index]);\n });\n }\n that.wrapper.on(MOUSEENTER + NS + ' ' + MOUSELEAVE + NS, HOVERABLEITEMS, that._toggleHover).on('focus' + NS, $.proxy(that._active, that)).on('blur' + NS, function () {\n that._current(null);\n });\n that._keyDownProxy = $.proxy(that._keydown, that);\n if (options.navigatable) {\n that.wrapper.on('keydown' + NS, that._keyDownProxy);\n }\n if (that.options.value) {\n value = that.options.value;\n }\n that.wrapper.children('.k-tabstrip-items').on(CLICK + NS, '.k-state-disabled .k-link', false).on(CLICK + NS, ' > ' + NAVIGATABLEITEMS, function (e) {\n var wr = that.wrapper[0];\n if (wr !== document.activeElement) {\n var msie = kendo.support.browser.msie;\n if (msie) {\n try {\n wr.setActive();\n } catch (j) {\n wr.focus();\n }\n } else {\n wr.focus();\n }\n }\n if (that._click($(e.currentTarget))) {\n e.preventDefault();\n }\n });\n var selectedItems = that.tabGroup.children('li.' + ACTIVESTATE), content = that.contentHolder(selectedItems.index());\n if (selectedItems[0] && content.length > 0 && content[0].childNodes.length === 0) {\n that.activateTab(selectedItems.eq(0));\n }\n that.element.attr('role', 'tablist');\n if (that.element[0].id) {\n that._ariaId = that.element[0].id + '_ts_active';\n }\n that.value(value);\n kendo.notify(that);\n },\n _active: function () {\n var item = this.tabGroup.children().filter('.' + ACTIVESTATE);\n item = item[0] ? item : this._endItem('first');\n if (item[0]) {\n this._current(item);\n }\n },\n _endItem: function (action) {\n return this.tabGroup.children(NAVIGATABLEITEMS)[action]();\n },\n _item: function (item, action) {\n var endItem;\n if (action === PREV) {\n endItem = 'last';\n } else {\n endItem = 'first';\n }\n if (!item) {\n return this._endItem(endItem);\n }\n item = item[action]();\n if (!item[0]) {\n item = this._endItem(endItem);\n }\n if (item.hasClass(DISABLEDSTATE)) {\n item = this._item(item, action);\n }\n return item;\n },\n _current: function (candidate) {\n var that = this, focused = that._focused, id = that._ariaId;\n if (candidate === undefined) {\n return focused;\n }\n if (focused) {\n if (focused[0].id === id) {\n focused.removeAttr('id');\n }\n focused.removeClass(FOCUSEDSTATE);\n }\n if (candidate) {\n if (!candidate.hasClass(ACTIVESTATE)) {\n candidate.addClass(FOCUSEDSTATE);\n }\n that.element.removeAttr('aria-activedescendant');\n id = candidate[0].id || id;\n if (id) {\n candidate.attr('id', id);\n that.element.attr('aria-activedescendant', id);\n }\n }\n that._focused = candidate;\n },\n _keydown: function (e) {\n var that = this, key = e.keyCode, current = that._current(), rtl = that._isRtl, action;\n if (e.target != e.currentTarget) {\n return;\n }\n if (key == keys.DOWN || key == keys.RIGHT) {\n action = rtl ? PREV : 'next';\n } else if (key == keys.UP || key == keys.LEFT) {\n action = rtl ? 'next' : PREV;\n } else if (key == keys.ENTER || key == keys.SPACEBAR) {\n that._click(current);\n e.preventDefault();\n } else if (key == keys.HOME) {\n that._click(that._endItem('first'));\n e.preventDefault();\n return;\n } else if (key == keys.END) {\n that._click(that._endItem('last'));\n e.preventDefault();\n return;\n }\n if (action) {\n that._click(that._item(current, action));\n e.preventDefault();\n }\n },\n _dataSource: function () {\n var that = this;\n if (that.dataSource && that._refreshHandler) {\n that.dataSource.unbind('change', that._refreshHandler);\n } else {\n that._refreshHandler = $.proxy(that.refresh, that);\n }\n that.dataSource = kendo.data.DataSource.create(that.options.dataSource).bind('change', that._refreshHandler);\n },\n setDataSource: function (dataSource) {\n var that = this;\n that.options.dataSource = dataSource;\n that._dataSource();\n that.dataSource.fetch();\n },\n _animations: function (options) {\n if (options && 'animation' in options && !options.animation) {\n options.animation = {\n open: { effects: {} },\n close: { effects: {} }\n };\n }\n },\n refresh: function (e) {\n var that = this, options = that.options, text = kendo.getter(options.dataTextField), content = kendo.getter(options.dataContentField), contentUrl = kendo.getter(options.dataContentUrlField), image = kendo.getter(options.dataImageUrlField), url = kendo.getter(options.dataUrlField), sprite = kendo.getter(options.dataSpriteCssClass), idx, tabs = [], tab, action, view = that.dataSource.view(), length;\n e = e || {};\n action = e.action;\n if (action) {\n view = e.items;\n }\n for (idx = 0, length = view.length; idx < length; idx++) {\n tab = { text: text(view[idx]) };\n if (options.dataContentField) {\n tab.content = content(view[idx]);\n }\n if (options.dataContentUrlField) {\n tab.contentUrl = contentUrl(view[idx]);\n }\n if (options.dataUrlField) {\n tab.url = url(view[idx]);\n }\n if (options.dataImageUrlField) {\n tab.imageUrl = image(view[idx]);\n }\n if (options.dataSpriteCssClass) {\n tab.spriteCssClass = sprite(view[idx]);\n }\n tabs[idx] = tab;\n }\n if (e.action == 'add') {\n if (e.index < that.tabGroup.children().length) {\n that.insertBefore(tabs, that.tabGroup.children().eq(e.index));\n } else {\n that.append(tabs);\n }\n } else if (e.action == 'remove') {\n for (idx = 0; idx < view.length; idx++) {\n that.remove(e.index);\n }\n } else if (e.action == 'itemchange') {\n idx = that.dataSource.view().indexOf(view[0]);\n if (e.field === options.dataTextField) {\n that.tabGroup.children().eq(idx).find('.k-link').text(view[0].get(e.field));\n }\n } else {\n that.trigger('dataBinding');\n that.remove('li');\n that.append(tabs);\n that.trigger('dataBound');\n }\n },\n value: function (value) {\n var that = this;\n if (value !== undefined) {\n if (value != that.value()) {\n that.tabGroup.children().each(function () {\n if ($.trim($(this).text()) == value) {\n that.select(this);\n }\n });\n }\n } else {\n return that.select().text();\n }\n },\n items: function () {\n return this.tabGroup[0].children;\n },\n setOptions: function (options) {\n var that = this, animation = that.options.animation;\n that._animations(options);\n options.animation = extend(true, animation, options.animation);\n if (options.navigatable) {\n that.wrapper.on('keydown' + NS, that._keyDownProxy);\n } else {\n that.wrapper.off('keydown' + NS, that._keyDownProxy);\n }\n Widget.fn.setOptions.call(that, options);\n },\n events: [\n SELECT,\n ACTIVATE,\n SHOW,\n ERROR,\n CONTENTLOAD,\n 'change',\n 'dataBinding',\n 'dataBound'\n ],\n options: {\n name: 'TabStrip',\n dataTextField: '',\n dataContentField: '',\n dataImageUrlField: '',\n dataUrlField: '',\n dataSpriteCssClass: '',\n dataContentUrlField: '',\n tabPosition: 'top',\n animation: {\n open: {\n effects: 'expand:vertical fadeIn',\n duration: 200\n },\n close: { duration: 200 }\n },\n collapsible: false,\n navigatable: true,\n contentUrls: false,\n scrollable: { distance: 200 }\n },\n destroy: function () {\n var that = this, scrollWrap = that.scrollWrap;\n Widget.fn.destroy.call(that);\n if (that._refreshHandler) {\n that.dataSource.unbind('change', that._refreshHandler);\n }\n that.wrapper.off(NS);\n that.wrapper.children('.k-tabstrip-items').off(NS);\n if (that._scrollableModeActive) {\n that._scrollPrevButton.off().remove();\n that._scrollNextButton.off().remove();\n }\n kendo.destroy(that.wrapper);\n scrollWrap.children('.k-tabstrip').unwrap();\n },\n select: function (element) {\n var that = this;\n if (arguments.length === 0) {\n return that.tabGroup.children('li.' + ACTIVESTATE);\n }\n if (!isNaN(element)) {\n element = that.tabGroup.children().get(element);\n }\n element = that.tabGroup.find(element);\n $(element).each(function (index, item) {\n item = $(item);\n if (!item.hasClass(ACTIVESTATE) && !that.trigger(SELECT, {\n item: item[0],\n contentElement: that.contentHolder(item.index())[0]\n })) {\n that.activateTab(item);\n }\n });\n return that;\n },\n enable: function (element, state) {\n this._toggleDisabled(element, state !== false);\n return this;\n },\n disable: function (element) {\n this._toggleDisabled(element, false);\n return this;\n },\n reload: function (element) {\n element = this.tabGroup.find(element);\n var that = this;\n element.each(function () {\n var item = $(this), contentUrl = item.find('.' + LINK).data(CONTENTURL), content = that.contentHolder(item.index());\n if (contentUrl) {\n that.ajaxRequest(item, content, null, contentUrl);\n }\n });\n return that;\n },\n append: function (tab) {\n var that = this, inserted = that._create(tab);\n each(inserted.tabs, function (idx) {\n var contents = inserted.contents[idx];\n that.tabGroup.append(this);\n if (that.options.tabPosition == 'bottom') {\n that.tabGroup.before(contents);\n } else if (that._scrollableModeActive) {\n that._scrollPrevButton.before(contents);\n } else {\n that.wrapper.append(contents);\n }\n that.angular('compile', function () {\n return { elements: [contents] };\n });\n });\n updateFirstLast(that.tabGroup);\n that._updateContentElements();\n that.resize(true);\n return that;\n },\n insertBefore: function (tab, referenceTab) {\n referenceTab = this.tabGroup.find(referenceTab);\n var that = this, inserted = that._create(tab), referenceContent = $(that.contentElement(referenceTab.index()));\n each(inserted.tabs, function (idx) {\n var contents = inserted.contents[idx];\n referenceTab.before(this);\n referenceContent.before(contents);\n that.angular('compile', function () {\n return { elements: [contents] };\n });\n });\n updateFirstLast(that.tabGroup);\n that._updateContentElements();\n that.resize(true);\n return that;\n },\n insertAfter: function (tab, referenceTab) {\n referenceTab = this.tabGroup.find(referenceTab);\n var that = this, inserted = that._create(tab), referenceContent = $(that.contentElement(referenceTab.index()));\n each(inserted.tabs, function (idx) {\n var contents = inserted.contents[idx];\n referenceTab.after(this);\n referenceContent.after(contents);\n that.angular('compile', function () {\n return { elements: [contents] };\n });\n });\n updateFirstLast(that.tabGroup);\n that._updateContentElements();\n that.resize(true);\n return that;\n },\n remove: function (elements) {\n var that = this;\n var type = typeof elements;\n var contents;\n if (type === 'string') {\n elements = that.tabGroup.find(elements);\n } else if (type === 'number') {\n elements = that.tabGroup.children().eq(elements);\n }\n contents = elements.map(function () {\n var content = that.contentElement($(this).index());\n kendo.destroy(content);\n return content;\n });\n elements.remove();\n contents.remove();\n that._updateContentElements();\n that.resize(true);\n return that;\n },\n _create: function (tab) {\n var plain = $.isPlainObject(tab), that = this, tabs, contents, content;\n if (plain || $.isArray(tab)) {\n tab = $.isArray(tab) ? tab : [tab];\n tabs = map(tab, function (value, idx) {\n return $(TabStrip.renderItem({\n group: that.tabGroup,\n item: extend(value, { index: idx })\n }));\n });\n contents = map(tab, function (value, idx) {\n if (typeof value.content == 'string' || value.contentUrl) {\n return $(TabStrip.renderContent({ item: extend(value, { index: idx }) }));\n }\n });\n } else {\n if (typeof tab == 'string' && tab[0] != '<') {\n tabs = that.element.find(tab);\n } else {\n tabs = $(tab);\n }\n contents = $();\n tabs.each(function () {\n content = $('
    ');\n if (/k-tabstrip-items/.test(this.parentNode.className)) {\n var index = parseInt(this.getAttribute('aria-controls').replace(/^.*-/, ''), 10) - 1;\n content = $(that.contentElement(index));\n }\n contents = contents.add(content);\n });\n updateTabClasses(tabs);\n }\n return {\n tabs: tabs,\n contents: contents\n };\n },\n _toggleDisabled: function (element, enable) {\n element = this.tabGroup.find(element);\n element.each(function () {\n $(this).toggleClass(DEFAULTSTATE, enable).toggleClass(DISABLEDSTATE, !enable);\n });\n },\n _updateClasses: function () {\n var that = this, tabs, activeItem, activeTab;\n that.wrapper.addClass('k-widget k-header k-tabstrip');\n that.tabGroup = that.wrapper.children('ul').addClass('k-tabstrip-items k-reset');\n if (!that.tabGroup[0]) {\n that.tabGroup = $('