{"version":3,"sources":["kendo.loader.js"],"names":["f","define","$","undefined","kendo","window","Widget","ui","HIDDEN","ARIA_LABEL","ARIA_HIDDEN","loaderClasses","loader","canvas","segment","loaderTypes","pulsing","className","segments","infinite-spinner","converging-spinner","Loader","extend","init","element","options","that","this","fn","call","_render","_appearance","notify","destroy","name","themeColor","sizes","small","medium","large","size","type","visible","messages","loading","_classNames","i","wrapper","typeData","empty","attr","push","addClass","append","appendTo","_themeColor","_sizes","_size","_type","_visible","_updateClassNames","classNames","keepClassNames","sizeAbbr","removeClass","index","indexOf","isPlainObject","join","setOptions","color","arguments","length","hide","show","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,gBAAiB,cAAeD,IACzC,WA2HE,MAnHC,UAAUE,EAAGC,GAAb,GACOC,GAAQC,OAAOD,MAAOE,EAASF,EAAMG,GAAGD,OAAQC,EAAKH,EAAMG,GAAIC,EAAS,WAAYC,EAAa,aAAcC,EAAc,cAC7HC,GACAC,OAAQ,oBACRC,OAAQ,kBACRC,QAAS,oBAETC,GACAC,SACIC,UAAW,YACXC,SAAU,GAEdC,oBACIF,UAAW,YACXC,SAAU,GAEdE,sBACIH,UAAW,YACXC,SAAU,IAGdG,EAASf,EAAOgB,QAChBC,KAAM,SAAUC,EAASC,GACrB,GAAIC,GAAOC,IACXrB,GAAOsB,GAAGL,KAAKM,KAAKH,EAAMF,EAASC,GACnCC,EAAKI,UACLJ,EAAKK,cACL3B,EAAM4B,OAAON,IAEjBO,QAAS,WACL,GAAIP,GAAOC,IACXrB,GAAOsB,GAAGK,QAAQJ,KAAKH,IAE3BD,SACIS,KAAM,SACNC,WAAY,UACZC,OACIC,MAAS,KACTC,OAAU,KACVC,MAAS,MAEbC,KAAM,SACNC,KAAM,UACNC,SAAS,EACTC,UAAYC,QAAW,WACvBC,gBAEJf,QAAS,WAAA,GAIQgB,GAHTpB,EAAOC,KAAMoB,EAAUr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,IAA8B,KAATA,GAC5BoB,EAAWV,KAAK,aAAejD,EAAEiE,cAAcnB,GAAYA,EAAS/B,UAAYwB,IAEhFC,KAAY,GACZmB,EAAWV,KAAK3C,GAEpBkB,EAAKF,QAAQ0B,KAAKxC,GAAcgC,GAChChB,EAAKF,QAAQ4B,SAASS,EAAWO,KAAK,OAE1CC,WAAY,SAAU5C,GAClB,GAAIC,GAAOC,IACXrB,GAAOsB,GAAGyC,WAAWxC,KAAKH,EAAMD,GAChCC,EAAKI,UACLJ,EAAKK,eAETI,WAAY,SAAUmC,GAClB,GAAI5C,GAAOC,IACX,OAAyB,KAArB4C,UAAUC,QAAgBF,IAAUnE,EAC7BuB,EAAK6B,aAEhB7B,EAAK6B,YAAce,EACnB5C,EAAKkC,oBADLlC,IAGJ+C,KAAM,WACF,GAAI/C,GAAOC,IACXD,GAAKiC,UAAW,EAChBjC,EAAKkC,qBAETc,KAAM,WACF,GAAIhD,GAAOC,IACXD,GAAKiC,UAAW,EAChBjC,EAAKkC,sBAGbrD,GAAGoE,OAAOtD,IACZhB,OAAOD,MAAMwE,QACRvE,OAAOD,OACE,kBAAVH,SAAwBA,OAAO4E,IAAM5E,OAAS,SAAU6E,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.loader.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.loader', ['kendo.core'], f);\n}(function () {\n var __meta__ = {\n id: 'loader',\n name: 'Loader',\n category: 'web',\n description: 'The Loader is a visual indicator of loading data across different parts of the page.',\n depends: ['core']\n };\n (function ($, undefined) {\n var kendo = window.kendo, Widget = kendo.ui.Widget, ui = kendo.ui, HIDDEN = 'k-hidden', ARIA_LABEL = 'aria-label', ARIA_HIDDEN = 'aria-hidden';\n var loaderClasses = {\n loader: 'k-widget k-loader',\n canvas: 'k-loader-canvas',\n segment: 'k-loader-segment'\n };\n var loaderTypes = {\n 'pulsing': {\n className: 'pulsing-2',\n segments: 2\n },\n 'infinite-spinner': {\n className: 'spinner-3',\n segments: 3\n },\n 'converging-spinner': {\n className: 'spinner-4',\n segments: 4\n }\n };\n var Loader = Widget.extend({\n init: function (element, options) {\n var that = this;\n Widget.fn.init.call(that, element, options);\n that._render();\n that._appearance();\n kendo.notify(that);\n },\n destroy: function () {\n var that = this;\n Widget.fn.destroy.call(that);\n },\n options: {\n name: 'Loader',\n themeColor: 'primary',\n sizes: {\n 'small': 'sm',\n 'medium': 'md',\n 'large': 'lg'\n },\n size: 'medium',\n type: 'pulsing',\n visible: true,\n messages: { 'loading': 'Loading' },\n _classNames: []\n },\n _render: function () {\n var that = this, wrapper = that.element, type = that.options.type, typeData = loaderTypes[type] === undefined ? type : loaderTypes[type], segments = [];\n wrapper.empty().attr(ARIA_LABEL, that.options.messages.loading);\n if (typeData.segments) {\n for (var i = 0; i < typeData.segments; i += 1) {\n segments.push($('').addClass(loaderClasses.segment));\n }\n }\n $('