{"version":3,"sources":["kendo.panelbar.js"],"names":["f","define","$","undefined","updateArrow","items","children","LINKSELECTOR","remove","filter","each","item","this","parent","append","hasClass","ACTIVECLASS","updateFirstLast","removeClass","FIRST","LAST","addClass","kendo","window","ui","keys","extend","template","Widget","excludedNodesRegExp","NS","IMG","HREF","LINK","ERROR","ITEM","GROUP","VISIBLEGROUP","IMAGE","EXPAND","SELECT","CONTENT","ACTIVATE","COLLAPSE","MOUSEENTER","MOUSELEAVE","CONTENTLOAD","GROUPS","CONTENTS","FOCUSEDCLASS","DISABLEDCLASS","SELECTEDCLASS","SELECTEDSELECTOR","HIGHLIGHTCLASS","ACTIVEITEMSELECTOR","clickableItems","disabledItems","selectableItems","defaultState","ARIA_DISABLED","ARIA_EXPANDED","ARIA_HIDDEN","ARIA_SELECTED","VISIBLE","EMPTY","SINGLE","templates","content","group","itemWrapper","image","arrow","sprite","empty","rendering","aria","attr","contentUrl","expanded","enabled","wrapperCssClass","result","index","length","cssClass","textClass","firstLevel","textAttributes","url","arrowClass","text","encoded","htmlEncode","tag","groupAttributes","groupCssClass","contentAttributes","PanelBar","init","element","options","that","fn","call","wrapper","id","_itemId","_tabindex","_initData","_updateClasses","_animations","on","e","_click","currentTarget","preventDefault","_toggleHover","proxy","_keydown","select","_current","_first","find","expand","dataSource","_angularCompile","notify","events","name","animation","effects","duration","collapse","expandMode","angular","elements","data","dataItem","$angular","_angularCleanup","destroy","off","setOptions","useAnimation","animBackup","_animating","is","one","setTimeout","groups","add","_collapseAllExpanded","hide","_triggerEvent","_toggleItem","_toggleDisabled","enable","toggleClass","link","_updateSelected","clearSelection","state","disable","referenceItem","inserted","_insert","height","insertBefore","before","insertAfter","after","parentsUntil","eq","reload","_ajaxRequest","first","_last","last","candidate","focused","_focused","removeAttr","key","keyCode","current","target","DOWN","RIGHT","_nextItem","UP","LEFT","_prevItem","ENTER","SPACEBAR","HOME","END","next","nextAll","prev","prevAll","groupData","plain","isPlainObject","isReferenceItem","renderGroup","appendTo","Observable","toJSON","isArray","map","value","idx","renderItem","charAt","_updateItemsClasses","parents","type","panels","not","_updateItemClasses","wrapElement","selected","_selected","contentUrls","root","support","browser","msie","css","parentNode","contents","nodeName","match","nodeType","trim","nodeValue","wrapAll","prevent","href","isAnchor","visibility","closest","indexOf","isVisible","childGroup","_toggleGroup","animationSettings","hasCollapseAnimation","reverse","complete","_animationCallback","kendoStop","kendoAnimate","trigger","stopExpand","siblings","contentElement","statusIcon","loadingIconTimeout","ajax","cache","dataType","error","xhr","status","clearTimeout","success","getElements","get","html","console","message","eventName","panelBar","imageUrl","spriteCssClass","renderContent","subGroup","renderItems","i","len","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,kBAAmB,cAAeD,IAC3C,WAwvBE,MAhvBC,UAAUE,EAAGC,GA8EV,QAASC,GAAYC,GACjBA,EAAQH,EAAEG,GACVA,EAAMC,SAASC,GAAcD,SAAS,WAAWE,SACjDH,EAAMI,OAAO,mCAAmCH,SAAS,yCAAyCI,KAAK,WACnG,GAAIC,GAAOT,EAAEU,MAAOC,EAASF,EAAKE,QAClCF,GAAKG,OAAO,wBAA2BD,EAAOE,SAASC,GAAe,kCAAoC,iCAAmC,SAGrJ,QAASC,GAAgBZ,GACrBA,EAAQH,EAAEG,GACVA,EAAMI,OAAO,8BAA8BS,YAAYC,GACvDd,EAAMI,OAAO,4BAA4BS,YAAYE,GACrDf,EAAMI,OAAO,gBAAgBY,SAASF,GACtCd,EAAMI,OAAO,eAAeY,SAASD,GA3F5C,GACOE,GAAQC,OAAOD,MAAOE,EAAKF,EAAME,GAAIC,EAAOH,EAAMG,KAAMC,EAASxB,EAAEwB,OAAQhB,EAAOR,EAAEQ,KAAMiB,EAAWL,EAAMK,SAAUC,EAASJ,EAAGI,OAAQC,EAAsB,gBAAiBC,EAAK,iBAAkBC,EAAM,MAAOC,EAAO,OAAQZ,EAAO,SAAUa,EAAO,SAA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WAAaX,EAAUK,MAAQE,EACzE4M,SAAUpL,GAAS2G,aACpBlI,KAEPkI,YAAa,SAAUxG,GACnB,MAAOlC,GAAUE,MAAM1C,GACnB4P,YAAa,SAAUlL,GAEnB,IADA,GAAIyK,GAAO,GAAIU,EAAI,EAAGlR,EAAQ+F,EAAQ/F,MAAOmR,EAAMnR,EAAQA,EAAM8E,OAAS,EAAGf,EAAQ1C,GAASyD,OAAQqM,GAAOpL,EAAQhC,OAC9GmN,EAAIC,EAAKD,IACZV,GAAQ5K,GAASmH,WAAW1L,EAAO0E,GAC/BhC,MAAOA,EACPzD,KAAMe,GAASwD,MAAOqM,GAAKlR,EAAMkR,MAGzC,OAAOV,KAEZzK,EAAS1B,KAEhB0M,cAAe,SAAUhL,GACrB,MAAOlC,GAAUC,QAAQzC,EAAO0E,EAAS1B,OAGjDpD,EAAME,GAAGiQ,OAAOxL,KAClB1E,OAAOD,MAAMoQ,QACRnQ,OAAOD,OACE,kBAAVrB,SAAwBA,OAAO0R,IAAM1R,OAAS,SAAU2R,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.panelbar.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.panelbar', ['kendo.core'], f);\n}(function () {\n var __meta__ = {\n id: 'panelbar',\n name: 'PanelBar',\n category: 'web',\n description: 'The PanelBar widget displays hierarchical data as a multi-level expandable panel bar.',\n depends: ['core']\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, keys = kendo.keys, extend = $.extend, each = $.each, template = kendo.template, Widget = ui.Widget, excludedNodesRegExp = /^(ul|a|div)$/i, NS = '.kendoPanelBar', IMG = 'img', HREF = 'href', LAST = 'k-last', LINK = 'k-link', LINKSELECTOR = '.' + LINK, ERROR = 'error', ITEM = '.k-item', GROUP = '.k-group', VISIBLEGROUP = GROUP + ':visible', IMAGE = 'k-image', FIRST = 'k-first', EXPAND = 'expand', SELECT = 'select', CONTENT = 'k-content', ACTIVATE = 'activate', COLLAPSE = 'collapse', MOUSEENTER = 'mouseenter', MOUSELEAVE = 'mouseleave', CONTENTLOAD = 'contentLoad', ACTIVECLASS = 'k-state-active', GROUPS = '> .k-panel', CONTENTS = '> .k-content', FOCUSEDCLASS = 'k-state-focused', DISABLEDCLASS = 'k-state-disabled', SELECTEDCLASS = 'k-state-selected', SELECTEDSELECTOR = '.' + SELECTEDCLASS, HIGHLIGHTCLASS = 'k-state-highlight', ACTIVEITEMSELECTOR = ITEM + ':not(.k-state-disabled)', clickableItems = '> ' + ACTIVEITEMSELECTOR + ' > ' + LINKSELECTOR + ', .k-panel > ' + ACTIVEITEMSELECTOR + ' > ' + LINKSELECTOR, disabledItems = ITEM + '.k-state-disabled > .k-link', selectableItems = '> li > ' + SELECTEDSELECTOR + ', .k-panel > li > ' + SELECTEDSELECTOR, defaultState = 'k-state-default', ARIA_DISABLED = 'aria-disabled', ARIA_EXPANDED = 'aria-expanded', ARIA_HIDDEN = 'aria-hidden', ARIA_SELECTED = 'aria-selected', VISIBLE = ':visible', EMPTY = ':empty', SINGLE = 'single', templates = {\n content: template('
#= content(item) #
'),\n group: template(''),\n itemWrapper: template('<#= tag(item) # class=\\'#= textClass(item, group) #\\' #= contentUrl(item) ##= textAttributes(item) #>' + '#= image(item) ##= sprite(item) ##= text(item) #' + '#= arrow(data) #' + ''),\n item: template('
  • ' + '#= itemWrapper(data) #' + '# if (item.items) { #' + '#= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) #' + '# } else if (item.content || item.contentUrl) { #' + '#= renderContent(data) #' + '# } #' + '
  • '),\n image: template('\\'\\''),\n arrow: template(''),\n sprite: template(''),\n empty: template('')\n }, rendering = {\n aria: function (item) {\n var attr = '';\n if (item.items || item.content || item.contentUrl) {\n attr += ARIA_EXPANDED + '=\\'' + (item.expanded ? 'true' : 'false') + '\\' ';\n }\n if (item.enabled === false) {\n attr += ARIA_DISABLED + '=\\'true\\'';\n }\n return attr;\n },\n wrapperCssClass: function (group, item) {\n var result = 'k-item', index = item.index;\n if (item.enabled === false) {\n result += ' ' + DISABLEDCLASS;\n } else if (item.expanded === true) {\n result += ' ' + ACTIVECLASS;\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 if (item.cssClass) {\n result += ' ' + item.cssClass;\n }\n return result;\n },\n textClass: function (item, group) {\n var result = LINK;\n if (group.firstLevel) {\n result += ' k-header';\n }\n return result;\n },\n textAttributes: function (item) {\n return item.url ? ' href=\\'' + item.url + '\\'' : '';\n },\n arrowClass: function (item) {\n var result = 'k-icon';\n result += item.expanded ? ' k-i-arrow-n k-panelbar-collapse' : ' k-i-arrow-s k-panelbar-expand';\n return result;\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 || item.contentUrl ? 'a' : 'span';\n },\n groupAttributes: function (group) {\n return group.expanded !== true ? ' style=\\'display:none\\'' : '';\n },\n groupCssClass: function () {\n return 'k-group k-panel';\n },\n contentAttributes: function (content) {\n return content.item.expanded !== true ? ' style=\\'display:none\\'' : '';\n },\n content: function (item) {\n return item.content ? item.content : item.contentUrl ? '' : ' ';\n },\n contentUrl: function (item) {\n return item.contentUrl ? 'href=\"' + item.contentUrl + '\"' : '';\n }\n };\n function updateArrow(items) {\n items = $(items);\n items.children(LINKSELECTOR).children('.k-icon').remove();\n items.filter(':has(.k-panel),:has(.k-content)').children('.k-link:not(:has([class*=k-i-arrow]))').each(function () {\n var item = $(this), parent = item.parent();\n item.append('');\n });\n }\n function updateFirstLast(items) {\n items = $(items);\n items.filter('.k-first:not(:first-child)').removeClass(FIRST);\n items.filter('.k-last:not(:last-child)').removeClass(LAST);\n items.filter(':first-child').addClass(FIRST);\n items.filter(':last-child').addClass(LAST);\n }\n var PanelBar = Widget.extend({\n init: function (element, options) {\n var that = this, content;\n Widget.fn.init.call(that, element, options);\n element = that.wrapper = that.element.addClass('k-widget k-reset k-header k-panelbar');\n options = that.options;\n if (element[0].id) {\n that._itemId = element[0].id + '_pb_active';\n }\n that._tabindex();\n that._initData(options);\n that._updateClasses();\n that._animations(options);\n element.on('click' + NS, clickableItems, function (e) {\n if (that._click($(e.currentTarget))) {\n e.preventDefault();\n }\n }).on(MOUSEENTER + NS + ' ' + MOUSELEAVE + NS, clickableItems, that._toggleHover).on('click' + NS, disabledItems, false).on('keydown' + NS, $.proxy(that._keydown, that)).on('focus' + NS, function () {\n var item = that.select();\n that._current(item[0] ? item : that._first());\n }).on('blur' + NS, function () {\n that._current(null);\n }).attr('role', 'menu');\n content = element.find('li.' + ACTIVECLASS + ' > .' + CONTENT);\n if (content[0]) {\n that.expand(content.parent(), false);\n }\n if (options.dataSource) {\n that._angularCompile();\n }\n kendo.notify(that);\n },\n events: [\n EXPAND,\n COLLAPSE,\n SELECT,\n ACTIVATE,\n ERROR,\n CONTENTLOAD\n ],\n options: {\n name: 'PanelBar',\n animation: {\n expand: {\n effects: 'expand:vertical',\n duration: 200\n },\n collapse: { duration: 200 }\n },\n expandMode: 'multiple'\n },\n _angularCompile: function () {\n var that = this;\n that.angular('compile', function () {\n return {\n elements: that.element.children('li'),\n data: [{ dataItem: that.options.$angular }]\n };\n });\n },\n _angularCleanup: function () {\n var that = this;\n that.angular('cleanup', function () {\n return { elements: that.element.children('li') };\n });\n },\n destroy: function () {\n Widget.fn.destroy.call(this);\n this.element.off(NS);\n this._angularCleanup();\n kendo.destroy(this.element);\n },\n _initData: function (options) {\n var that = this;\n if (options.dataSource) {\n that.element.empty();\n that.append(options.dataSource, that.element);\n }\n },\n setOptions: function (options) {\n var animation = this.options.animation;\n this._animations(options);\n options.animation = extend(true, animation, options.animation);\n if ('dataSource' in options) {\n this._initData(options);\n }\n Widget.fn.setOptions.call(this, options);\n },\n expand: function (element, useAnimation) {\n var that = this, animBackup = {};\n element = this.element.find(element);\n if (that._animating && element.find('ul').is(':visible')) {\n that.one('complete', function () {\n setTimeout(function () {\n that.expand(element);\n });\n });\n return;\n }\n that._animating = true;\n useAnimation = useAnimation !== false;\n element.each(function (index, item) {\n item = $(item);\n var groups = item.find(GROUPS).add(item.find(CONTENTS));\n if (!item.hasClass(DISABLEDCLASS) && groups.length > 0) {\n if (that.options.expandMode == SINGLE && that._collapseAllExpanded(item)) {\n return that;\n }\n element.find('.' + HIGHLIGHTCLASS).removeClass(HIGHLIGHTCLASS);\n item.addClass(HIGHLIGHTCLASS);\n if (!useAnimation) {\n animBackup = that.options.animation;\n that.options.animation = {\n expand: { effects: {} },\n collapse: {\n hide: true,\n effects: {}\n }\n };\n }\n if (!that._triggerEvent(EXPAND, item)) {\n that._toggleItem(item, false);\n }\n if (!useAnimation) {\n that.options.animation = animBackup;\n }\n }\n });\n return that;\n },\n collapse: function (element, useAnimation) {\n var that = this, animBackup = {};\n that._animating = true;\n useAnimation = useAnimation !== false;\n element = that.element.find(element);\n element.each(function (index, item) {\n item = $(item);\n var groups = item.find(GROUPS).add(item.find(CONTENTS));\n if (!item.hasClass(DISABLEDCLASS) && groups.is(VISIBLE)) {\n item.removeClass(HIGHLIGHTCLASS);\n if (!useAnimation) {\n animBackup = that.options.animation;\n that.options.animation = {\n expand: { effects: {} },\n collapse: {\n hide: true,\n effects: {}\n }\n };\n }\n if (!that._triggerEvent(COLLAPSE, item)) {\n that._toggleItem(item, true);\n }\n if (!useAnimation) {\n that.options.animation = animBackup;\n }\n }\n });\n return that;\n },\n _toggleDisabled: function (element, enable) {\n element = this.element.find(element);\n element.toggleClass(defaultState, enable).toggleClass(DISABLEDCLASS, !enable).attr(ARIA_DISABLED, !enable);\n },\n select: function (element) {\n var that = this;\n if (element === undefined) {\n return that.element.find(selectableItems).parent();\n }\n element = that.element.find(element);\n if (!element.length) {\n this._updateSelected(element);\n } else {\n element.each(function () {\n var item = $(this), link = item.children(LINKSELECTOR);\n if (item.hasClass(DISABLEDCLASS)) {\n return that;\n }\n if (!that._triggerEvent(SELECT, item)) {\n that._updateSelected(link);\n }\n });\n }\n return that;\n },\n clearSelection: function () {\n this.select($());\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 append: function (item, referenceItem) {\n referenceItem = this.element.find(referenceItem);\n var inserted = this._insert(item, referenceItem, referenceItem.length ? referenceItem.find(GROUPS) : null);\n each(inserted.items, function () {\n inserted.group.append(this);\n updateFirstLast(this);\n });\n updateArrow(referenceItem);\n updateFirstLast(inserted.group.find('.k-first, .k-last'));\n inserted.group.height('auto');\n return this;\n },\n insertBefore: function (item, referenceItem) {\n referenceItem = this.element.find(referenceItem);\n var inserted = this._insert(item, referenceItem, referenceItem.parent());\n each(inserted.items, function () {\n referenceItem.before(this);\n updateFirstLast(this);\n });\n updateFirstLast(referenceItem);\n inserted.group.height('auto');\n return this;\n },\n insertAfter: function (item, referenceItem) {\n referenceItem = this.element.find(referenceItem);\n var inserted = this._insert(item, referenceItem, referenceItem.parent());\n each(inserted.items, function () {\n referenceItem.after(this);\n updateFirstLast(this);\n });\n updateFirstLast(referenceItem);\n inserted.group.height('auto');\n return this;\n },\n remove: function (element) {\n element = this.element.find(element);\n var that = this, parent = element.parentsUntil(that.element, ITEM), group = element.parent('ul');\n element.remove();\n if (group && !group.hasClass('k-panelbar') && !group.children(ITEM).length) {\n group.remove();\n }\n if (parent.length) {\n parent = parent.eq(0);\n updateArrow(parent);\n updateFirstLast(parent);\n }\n return that;\n },\n reload: function (element) {\n var that = this;\n element = that.element.find(element);\n element.each(function () {\n var item = $(this);\n that._ajaxRequest(item, item.children('.' + CONTENT), !item.is(VISIBLE));\n });\n },\n _first: function () {\n return this.element.children(ACTIVEITEMSELECTOR).first();\n },\n _last: function () {\n var item = this.element.children(ACTIVEITEMSELECTOR).last(), group = item.children(VISIBLEGROUP);\n if (group[0]) {\n return group.children(ACTIVEITEMSELECTOR).last();\n }\n return item;\n },\n _current: function (candidate) {\n var that = this, focused = that._focused, id = that._itemId;\n if (candidate === undefined) {\n return focused;\n }\n that.element.removeAttr('aria-activedescendant');\n if (focused && focused.length) {\n if (focused[0].id === id) {\n focused.removeAttr('id');\n }\n focused.children(LINKSELECTOR).removeClass(FOCUSEDCLASS);\n }\n if ($(candidate).length) {\n id = candidate[0].id || id;\n candidate.attr('id', id).children(LINKSELECTOR).addClass(FOCUSEDCLASS);\n that.element.attr('aria-activedescendant', id);\n }\n that._focused = candidate;\n },\n _keydown: function (e) {\n var that = this, key = e.keyCode, current = that._current();\n if (e.target != e.currentTarget) {\n return;\n }\n if (key == keys.DOWN || key == keys.RIGHT) {\n that._current(that._nextItem(current));\n e.preventDefault();\n } else if (key == keys.UP || key == keys.LEFT) {\n that._current(that._prevItem(current));\n e.preventDefault();\n } else if (key == keys.ENTER || key == keys.SPACEBAR) {\n that._click(current.children(LINKSELECTOR));\n e.preventDefault();\n } else if (key == keys.HOME) {\n that._current(that._first());\n e.preventDefault();\n } else if (key == keys.END) {\n that._current(that._last());\n e.preventDefault();\n }\n },\n _nextItem: function (item) {\n if (!item) {\n return this._first();\n }\n var group = item.children(VISIBLEGROUP), next = item.nextAll(':visible').first();\n if (group[0]) {\n next = group.children('.' + FIRST);\n }\n if (!next[0]) {\n next = item.parent(VISIBLEGROUP).parent(ITEM).next();\n }\n if (!next[0]) {\n next = this._first();\n }\n if (next.hasClass(DISABLEDCLASS)) {\n next = this._nextItem(next);\n }\n return next;\n },\n _prevItem: function (item) {\n if (!item) {\n return this._last();\n }\n var prev = item.prevAll(':visible').first(), result;\n if (!prev[0]) {\n prev = item.parent(VISIBLEGROUP).parent(ITEM);\n if (!prev[0]) {\n prev = this._last();\n }\n } else {\n result = prev;\n while (result[0]) {\n result = result.children(VISIBLEGROUP).children('.' + LAST);\n if (result[0]) {\n prev = result;\n }\n }\n }\n if (prev.hasClass(DISABLEDCLASS)) {\n prev = this._prevItem(prev);\n }\n return prev;\n },\n _insert: function (item, referenceItem, parent) {\n var that = this, items, plain = $.isPlainObject(item), isReferenceItem = referenceItem && referenceItem[0], groupData;\n if (!isReferenceItem) {\n parent = that.element;\n }\n groupData = {\n firstLevel: parent.hasClass('k-panelbar'),\n expanded: parent.parent().hasClass(ACTIVECLASS),\n length: parent.children().length\n };\n if (isReferenceItem && !parent.length) {\n parent = $(PanelBar.renderGroup({ group: groupData })).appendTo(referenceItem);\n }\n if (item instanceof kendo.Observable) {\n item = item.toJSON();\n }\n if (plain || $.isArray(item)) {\n items = $.map(plain ? [item] : item, function (value, idx) {\n if (typeof value === 'string') {\n return $(value);\n } else {\n return $(PanelBar.renderItem({\n group: groupData,\n item: extend(value, { index: idx })\n }));\n }\n });\n if (isReferenceItem) {\n referenceItem.attr(ARIA_EXPANDED, false);\n }\n } else {\n if (typeof item == 'string' && item.charAt(0) != '<') {\n items = that.element.find(item);\n } else {\n items = $(item);\n }\n that._updateItemsClasses(items);\n }\n return {\n items: items,\n group: parent\n };\n },\n _toggleHover: function (e) {\n var target = $(e.currentTarget);\n if (!target.parents('li.' + DISABLEDCLASS).length) {\n target.toggleClass('k-state-hover', e.type == MOUSEENTER);\n }\n },\n _updateClasses: function () {\n var that = this, panels, items;\n panels = that.element.find('li > ul').not(function () {\n return $(this).parentsUntil('.k-panelbar', 'div').length;\n }).addClass('k-group k-panel').attr('role', 'group');\n panels.parent().attr(ARIA_EXPANDED, false).not('.' + ACTIVECLASS).children('ul').attr(ARIA_HIDDEN, true).hide();\n items = that.element.add(panels).children();\n that._updateItemsClasses(items);\n updateArrow(items);\n updateFirstLast(items);\n },\n _updateItemsClasses: function (items) {\n var length = items.length, idx = 0;\n for (; idx < length; idx++) {\n this._updateItemClasses(items[idx], idx);\n }\n },\n _updateItemClasses: function (item, index) {\n var selected = this._selected, contentUrls = this.options.contentUrls, url = contentUrls && contentUrls[index], root = this.element[0], wrapElement, link;\n item = $(item).addClass('k-item').attr('role', 'menuitem');\n if (kendo.support.browser.msie) {\n item.css('list-style-position', 'inside').css('list-style-position', '');\n }\n item.children(IMG).addClass(IMAGE);\n link = item.children('a').addClass(LINK);\n if (link[0]) {\n link.attr('href', url);\n link.children(IMG).addClass(IMAGE);\n }\n item.filter(':not([disabled]):not([class*=k-state])').addClass('k-state-default');\n item.filter('li[disabled]').addClass('k-state-disabled').attr(ARIA_DISABLED, true).removeAttr('disabled');\n item.children('div').addClass(CONTENT).attr('role', 'region').attr(ARIA_HIDDEN, true).hide().parent().attr(ARIA_EXPANDED, false);\n link = item.children(SELECTEDSELECTOR);\n if (link[0]) {\n if (selected) {\n selected.removeAttr(ARIA_SELECTED).children(SELECTEDSELECTOR).removeClass(SELECTEDCLASS);\n }\n link.addClass(SELECTEDCLASS);\n this._selected = item.attr(ARIA_SELECTED, true);\n }\n if (!item.children(LINKSELECTOR)[0]) {\n wrapElement = '';\n if (contentUrls && contentUrls[index] && item[0].parentNode == root) {\n wrapElement = '';\n }\n item.contents().filter(function () {\n return !this.nodeName.match(excludedNodesRegExp) && !(this.nodeType == 3 && !$.trim(this.nodeValue));\n }).wrapAll(wrapElement);\n }\n if (item.parent('.k-panelbar')[0]) {\n item.children(LINKSELECTOR).addClass('k-header');\n }\n },\n _click: function (target) {\n var that = this, element = that.element, prevent, contents, href, isAnchor;\n if (target.parents('li.' + DISABLEDCLASS).length) {\n return;\n }\n if (target.closest('.k-widget')[0] != element[0]) {\n return;\n }\n var link = target.closest(LINKSELECTOR), item = link.closest(ITEM);\n that._updateSelected(link);\n contents = item.find(GROUPS).add(item.find(CONTENTS));\n href = link.attr(HREF);\n isAnchor = href && (href.charAt(href.length - 1) == '#' || href.indexOf('#' + that.element[0].id + '-') != -1);\n prevent = !!(isAnchor || contents.length);\n if (contents.data('animating')) {\n return prevent;\n }\n if (that._triggerEvent(SELECT, item)) {\n prevent = true;\n }\n if (prevent === false) {\n return;\n }\n if (that.options.expandMode == SINGLE) {\n if (that._collapseAllExpanded(item)) {\n return prevent;\n }\n }\n if (contents.length) {\n var visibility = contents.is(VISIBLE);\n if (!that._triggerEvent(!visibility ? EXPAND : COLLAPSE, item)) {\n prevent = that._toggleItem(item, visibility);\n }\n }\n return prevent;\n },\n _toggleItem: function (element, isVisible) {\n var that = this, childGroup = element.find(GROUPS), link = element.find(LINKSELECTOR), url = link.attr(HREF), prevent, content;\n if (childGroup.length) {\n this._toggleGroup(childGroup, isVisible);\n prevent = true;\n } else {\n content = element.children('.' + CONTENT);\n if (content.length) {\n prevent = true;\n if (!content.is(EMPTY) || url === undefined) {\n that._toggleGroup(content, isVisible);\n } else {\n that._ajaxRequest(element, content, isVisible);\n }\n }\n }\n return prevent;\n },\n _toggleGroup: function (element, visibility) {\n var that = this, animationSettings = that.options.animation, animation = animationSettings.expand, collapse = extend({}, animationSettings.collapse), hasCollapseAnimation = collapse && 'effects' in collapse;\n if (element.is(VISIBLE) != visibility) {\n that._animating = false;\n return;\n }\n element.parent().attr(ARIA_EXPANDED, !visibility).attr(ARIA_HIDDEN, visibility).toggleClass(ACTIVECLASS, !visibility).find('> .k-link > .k-icon').toggleClass('k-i-arrow-n', !visibility).toggleClass('k-panelbar-collapse', !visibility).toggleClass('k-i-arrow-s', visibility).toggleClass('k-panelbar-expand', visibility);\n if (visibility) {\n animation = extend(hasCollapseAnimation ? collapse : extend({ reverse: true }, animation), { hide: true });\n animation.complete = function () {\n that._animationCallback();\n };\n } else {\n animation = extend({\n complete: function (element) {\n that._triggerEvent(ACTIVATE, element.closest(ITEM));\n that._animationCallback();\n }\n }, animation);\n }\n element.kendoStop(true, true).kendoAnimate(animation);\n },\n _animationCallback: function () {\n var that = this;\n that.trigger('complete');\n that._animating = false;\n },\n _collapseAllExpanded: function (item) {\n var that = this, children, stopExpand = false;\n var groups = item.find(GROUPS).add(item.find(CONTENTS));\n if (groups.is(VISIBLE)) {\n stopExpand = true;\n }\n if (!(groups.is(VISIBLE) || groups.length === 0)) {\n children = item.siblings();\n children.find(GROUPS).add(children.find(CONTENTS)).filter(function () {\n return $(this).is(VISIBLE);\n }).each(function (index, content) {\n content = $(content);\n stopExpand = that._triggerEvent(COLLAPSE, content.closest(ITEM));\n if (!stopExpand) {\n that._toggleGroup(content, true);\n }\n });\n }\n return stopExpand;\n },\n _ajaxRequest: function (element, contentElement, isVisible) {\n var that = this, statusIcon = element.find('.k-panelbar-collapse, .k-panelbar-expand'), link = element.find(LINKSELECTOR), loadingIconTimeout = setTimeout(function () {\n statusIcon.addClass('k-i-loading');\n }, 100), data = {}, url = link.attr(HREF);\n $.ajax({\n type: 'GET',\n cache: false,\n url: url,\n dataType: 'html',\n data: data,\n error: function (xhr, status) {\n statusIcon.removeClass('k-i-loading');\n if (that.trigger(ERROR, {\n xhr: xhr,\n status: status\n })) {\n this.complete();\n }\n },\n complete: function () {\n clearTimeout(loadingIconTimeout);\n statusIcon.removeClass('k-i-loading');\n },\n success: function (data) {\n function getElements() {\n return { elements: contentElement.get() };\n }\n try {\n that.angular('cleanup', getElements);\n contentElement.html(data);\n that.angular('compile', getElements);\n } catch (e) {\n var console = window.console;\n if (console && console.error) {\n console.error(e.name + ': ' + e.message + ' in ' + url);\n }\n this.error(this.xhr, 'error');\n }\n that._toggleGroup(contentElement, isVisible);\n that.trigger(CONTENTLOAD, {\n item: element[0],\n contentElement: contentElement[0]\n });\n }\n });\n },\n _triggerEvent: function (eventName, element) {\n var that = this;\n return that.trigger(eventName, { item: element[0] });\n },\n _updateSelected: function (link) {\n var that = this, element = that.element, item = link.parent(ITEM), selected = that._selected;\n if (selected) {\n selected.removeAttr(ARIA_SELECTED);\n }\n that._selected = item.attr(ARIA_SELECTED, true);\n element.find(selectableItems).removeClass(SELECTEDCLASS);\n element.find('> .' + HIGHLIGHTCLASS + ', .k-panel > .' + HIGHLIGHTCLASS).removeClass(HIGHLIGHTCLASS);\n link.addClass(SELECTEDCLASS);\n link.parentsUntil(element, ITEM).filter(':has(.k-header)').addClass(HIGHLIGHTCLASS);\n that._current(item[0] ? item : null);\n },\n _animations: function (options) {\n if (options && 'animation' in options && !options.animation) {\n options.animation = {\n expand: { effects: {} },\n collapse: {\n hide: true,\n effects: {}\n }\n };\n }\n }\n });\n extend(PanelBar, {\n renderItem: function (options) {\n options = extend({\n panelBar: {},\n group: {}\n }, options);\n var empty = templates.empty, item = options.item;\n return templates.item(extend(options, {\n image: item.imageUrl ? templates.image : empty,\n sprite: item.spriteCssClass ? templates.sprite : empty,\n itemWrapper: templates.itemWrapper,\n renderContent: PanelBar.renderContent,\n arrow: item.items || item.content || item.contentUrl ? templates.arrow : empty,\n subGroup: PanelBar.renderGroup\n }, rendering));\n },\n renderGroup: function (options) {\n return templates.group(extend({\n renderItems: function (options) {\n var html = '', i = 0, items = options.items, len = items ? items.length : 0, group = extend({ length: len }, options.group);\n for (; i < len; i++) {\n html += PanelBar.renderItem(extend(options, {\n group: group,\n item: extend({ index: i }, items[i])\n }));\n }\n return html;\n }\n }, options, rendering));\n },\n renderContent: function (options) {\n return templates.content(extend(options, rendering));\n }\n });\n kendo.ui.plugin(PanelBar);\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"],"sourceRoot":"/source/"}