/**
 * Kendo UI v2023.3.1114 (http://www.telerik.com/kendo-ui)
 * Copyright 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
 *
 * Kendo UI commercial licenses may be obtained at
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
 * If you do not own a commercial license, this file shall be governed by the trial license terms.
 */
import"./kendo.core.js";var __meta__={id:"loader",name:"Loader",category:"web",description:"The Loader is a visual indicator of loading data across different parts of the page.",depends:["core"]};!function(e,s){var i=window.kendo,a=i.ui.Widget,n=i.ui,t="k-loader",o="k-loader-canvas",r="k-loader-segment",l={pulsing:{className:"pulsing-2",segments:2},"infinite-spinner":{className:"spinner-3",segments:3},"converging-spinner":{className:"spinner-4",segments:4}},d=a.extend({init:function(e,s){var n=this;a.fn.init.call(n,e,s),n._render(),n._appearance(),i.notify(n)},destroy:function(){a.fn.destroy.call(this)},options:{name:"Loader",themeColor:"primary",sizes:{small:"sm",medium:"md",large:"lg"},size:"medium",type:"pulsing",visible:!0,messages:{loading:"Loading"},_classNames:[]},_render:function(){var i=this,a=i.element,n=i.options.type,t=l[n]===s?n:l[n],d=[];if(a.empty().attr("aria-label",i.options.messages.loading).attr("role","alert").attr("aria-live","polite"),t.segments)for(var p=0;p<t.segments;p+=1)d.push(e("<span/>").addClass(r));e("<div>").addClass(o).append(d).appendTo(a)},_appearance:function(){var e=this;e._themeColor=e.options.themeColor,e._sizes=e.options.sizes,e._size=e.options.size,e._type=e.options.type,e._visible=e.options.visible,e._updateClassNames()},_updateClassNames:function(){var i=this,a=[t],n=i.options._classNames,o=i._themeColor,r=i._sizes,d=i._size,p=i._type,m=l[p]===s?p:l[p],u=r[d]===s?d:r[d],c=i._visible;i.element.removeClass((function(e,s){0===s.indexOf("k-")&&-1===n.indexOf(s)&&i.element.removeClass(s)})),"string"==typeof o&&""!==o&&"inherit"!==o&&a.push("k-loader-"+o),"string"==typeof d&&""!==d&&""!==u&&a.push("k-loader-"+u),"string"==typeof p&&""!==p&&a.push("k-loader-"+(e.isPlainObject(m)?m.className:p)),!1===c&&a.push("k-hidden"),i.element.attr("aria-hidden",!c),i.element.addClass(a.join(" "))},setOptions:function(e){var s=this;a.fn.setOptions.call(s,e),s._render(),s._appearance()},themeColor:function(e){var i=this;if(0===arguments.length||e===s)return i._themeColor;i._themeColor=e,i._updateClassNames()},hide:function(){this._visible=!1,this._updateClassNames()},show:function(){this._visible=!0,this._updateClassNames()}});n.plugin(d)}(window.kendo.jQuery);var kendo$1=kendo;export{kendo$1 as default};
//# sourceMappingURL=kendo.loader.js.map
