/**
 * 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:"appbar",name:"AppBar",category:"web",depends:["core"]},spacerTemplate=()=>"<span class='k-appbar-spacer'></span>";!function(e){var t=window.kendo,s=t.ui,i=s.Widget,n="resize",a=i.extend({init:function(t,s){var n=this;i.fn.init.call(n,t,s),n.element=e(t).addClass("k-appbar"),"none"!=n.options.position&&n.element.addClass("k-appbar-"+n.options.position),n.element.addClass("k-appbar-"+n.options.positionMode+" k-appbar-"+n.options.themeColor).attr("role","toolbar"),n._initItems(),n._attachEvents()},events:[n],options:{name:"AppBar",positionMode:"static",position:"none",themeColor:"light",items:[]},destroy:function(){this.resizeHandler&&(t.unbindResize(this.resizeHandler),this.resizeHandler=null),i.fn.destroy.call(this)},setOptions:function(e){var s=this;"none"!=s.options.position&&s.element.removeClass("k-appbar-"+s.options.position),s.element.removeClass("k-appbar-"+s.options.positionMode+" k-appbar-"+s.options.themeColor),t.deepExtend(s.options,e),this.destroy(),this.element.empty(),this.init(this.element,this.options)},_initItems:function(){for(var s,i,n=this.options.items,a="",o=0;o<n.length;o++)if("spacer"==(s=n[o]).type)i=e(t.template(spacerTemplate)({})).addClass(s.className),s.width&&(i.addClass("k-appbar-spacer-sized"),i.css("width","string"==typeof s.width?s.width:s.width+"px")),a+=i[0].outerHTML;else{if(!s.template)throw new Error("Having a template for the contentItem is mandatory");s.className?a+="<div class='k-appbar-section "+s.className+"'>":a+="<div class='k-appbar-section'>",a+=t.template(s.template)({}),a+="</div>"}this.element.html(a)},_resize:function(){this.trigger(n)},_attachEvents:function(){var e=this;e.resizeHandler=e._resize.bind(e),t.onResize(e.resizeHandler)}});s.plugin(a)}(window.kendo.jQuery);var kendo$1=kendo;export{kendo$1 as default};
//# sourceMappingURL=kendo.appbar.js.map
