{"version":3,"sources":["kendo.appbar.js"],"names":["f","define","spacerTemplate","$","kendo","window","ui","Widget","RESIZE","proxy","AppBar","extend","init","element","options","that","this","fn","call","addClass","position","positionMode","themeColor","_initItems","_attachEvents","events","name","items","destroy","resizeHandler","unbindResize","setOptions","removeClass","deepExtend","empty","item","separator","i","html","length","type","template","className","width","css","outerHTML","Error","_resize","trigger","onResize","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,gBAAiB,cAAeD,IACzC,WAAA,GAOME,GAAiB,uCAmFrB,OAlFC,UAAUC,GAAV,GACOC,GAAQC,OAAOD,MAAOE,EAAKF,EAAME,GAAIC,EAASD,EAAGC,OAAQC,EAAS,SAAUC,EAAQN,EAAEM,MACtFC,EAASH,EAAOI,QAChBC,KAAM,SAAUC,EAASC,GACrB,GAAIC,GAAOC,IACXT,GAAOU,GAAGL,KAAKM,KAAKH,EAAMF,EAASC,GACnCC,EAAKF,QAAUV,EAAEU,GAASM,SAAS,YACN,QAAzBJ,EAAKD,QAAQM,UACbL,EAAKF,QAAQM,SAAS,YAAcJ,EAAKD,QAAQM,UAErDL,EAAKF,QAAQM,SAAS,YAAcJ,EAAKD,QAAQO,aAAe,aAAeN,EAAKD,QAAQQ,YAC5FP,EAAKQ,aACLR,EAAKS,iBAETC,QAASjB,GACTM,SACIY,KAAM,SACNL,aAAc,SACdD,SAAU,OACVE,WAAY,QACZK,UAEJC,QAAS,WACDZ,KAAKa,gBACLzB,EAAM0B,aAAad,KAAKa,eACxBb,KAAKa,cAAgB,MAEzBtB,EAAOU,GAAGW,QAAQV,KAAKF,OAE3Be,WAAY,SAAUjB,GAClB,GAAIC,GAAOC,IACkB,SAAzBD,EAAKD,QAAQM,UACbL,EAAKF,QAAQmB,YAAY,YAAcjB,EAAKD,QAAQM,UAExDL,EAAKF,QAAQmB,YAAY,YAAcjB,EAAKD,QAAQO,aAAe,aAAeN,EAAKD,QAAQQ,YAC/FlB,EAAM6B,WAAWlB,EAAKD,QAASA,GAC/BE,KAAKY,UACLZ,KAAKH,QAAQqB,QACblB,KAAKJ,KAAKI,KAAKH,QAASG,KAAKF,UAEjCS,WAAY,WAAA,GAIJY,GAEAC,EACKC,EANLtB,EAAOC,KACPF,EAAUC,EAAKD,QACfa,EAAQb,EAAQa,MAEhBW,EAAO,EAEX,KAASD,EAAI,EAAGA,EAAIV,EAAMY,OAAQF,IAE9B,GADAF,EAAOR,EAAMU,GACI,UAAbF,EAAKK,KACLJ,EAAYjC,EAAEC,EAAMqC,SAASvC,QAAqBiB,SAASgB,EAAKO,WAC5DP,EAAKQ,QACLP,EAAUjB,SAAS,yBACnBiB,EAAUQ,IAAI,QAA+B,gBAAfT,GAAKQ,MAAqBR,EAAKQ,MAAQR,EAAKQ,MAAQ,OAEtFL,GAAQF,EAAU,GAAGS,cAClB,CACH,IAAKV,EAAKM,SACN,KAAUK,OAAM,qDAGhBR,IADAH,EAAKO,UACG,gCAAmCP,EAAKO,UAAY,KAEpD,iCAEZJ,GAAQlC,EAAMqC,SAASN,EAAKM,cAC5BH,GAAQ,SAGhBvB,EAAKF,QAAQyB,KAAKA,IAEtBS,QAAS,WACL/B,KAAKgC,QAAQxC,IAEjBgB,cAAe,WACX,GAAIT,GAAOC,IACXD,GAAKc,cAAgBpB,EAAMM,EAAKgC,QAAShC,GACzCX,EAAM6C,SAASlC,EAAKc,iBAG5BvB,GAAG4C,OAAOxC,IACZL,OAAOD,MAAM+C,QACR9C,OAAOD,OACE,kBAAVH,SAAwBA,OAAOmD,IAAMnD,OAAS,SAAUoD,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.appbar.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.appbar', ['kendo.core'], f);\n}(function () {\n var __meta__ = {\n id: 'appbar',\n name: 'AppBar',\n category: 'web',\n depends: ['core']\n };\n var spacerTemplate = '';\n (function ($) {\n var kendo = window.kendo, ui = kendo.ui, Widget = ui.Widget, RESIZE = 'resize', proxy = $.proxy;\n var AppBar = Widget.extend({\n init: function (element, options) {\n var that = this;\n Widget.fn.init.call(that, element, options);\n that.element = $(element).addClass('k-appbar');\n if (that.options.position != 'none') {\n that.element.addClass('k-appbar-' + that.options.position);\n }\n that.element.addClass('k-appbar-' + that.options.positionMode + ' k-appbar-' + that.options.themeColor);\n that._initItems();\n that._attachEvents();\n },\n events: [RESIZE],\n options: {\n name: 'AppBar',\n positionMode: 'static',\n position: 'none',\n themeColor: 'light',\n items: []\n },\n destroy: function () {\n if (this.resizeHandler) {\n kendo.unbindResize(this.resizeHandler);\n this.resizeHandler = null;\n }\n Widget.fn.destroy.call(this);\n },\n setOptions: function (options) {\n var that = this;\n if (that.options.position != 'none') {\n that.element.removeClass('k-appbar-' + that.options.position);\n }\n that.element.removeClass('k-appbar-' + that.options.positionMode + ' k-appbar-' + that.options.themeColor);\n kendo.deepExtend(that.options, options);\n this.destroy();\n this.element.empty();\n this.init(this.element, this.options);\n },\n _initItems: function () {\n var that = this;\n var options = that.options;\n var items = options.items;\n var item;\n var html = '';\n var separator;\n for (var i = 0; i < items.length; i++) {\n item = items[i];\n if (item.type == 'spacer') {\n separator = $(kendo.template(spacerTemplate)({})).addClass(item.className);\n if (item.width) {\n separator.addClass('k-appbar-spacer-sized');\n separator.css('width', typeof item.width === 'string' ? item.width : item.width + 'px');\n }\n html += separator[0].outerHTML;\n } else {\n if (!item.template) {\n throw new Error('Having a template for the contentItem is mandatory');\n }\n if (item.className) {\n html += '