EdelElements.loadBundle("7b7sdvvd",["exports","./chunk-83018f36.js"],function(e,t){var n=window.EdelElements.h,r=function(){function e(){this.rows=[],this.columns=[],this.actions=[],this.actionMenu=!1}return e.prototype.render=function(){var e=this;return this.rows.length>0&&this.columns.length>0?n("table",{class:"table table--no-border-top"},n("thead",null,n("tr",{class:"table-row table-row--head"},this.renderTableHead(),this.renderActionMenuHead())),n("tbody",null,this.rows.map(function(t){return n("tr",{class:"table-row"},e.renderTableRow(t),e.renderActionMenuButtons(t))}))):null},e.prototype.renderTableHead=function(){return this.columns.map(function(e){return n("th",{class:"table-head"},e.title)})},e.prototype.renderActionMenuButtons=function(e){var r=this;if(this.actionMenu)return n("td",{class:"table-cell"},this.actions.map(function(o){return n("edel-button",{type:t.ButtonType.default,plain:!0,slim:!0,label:o.label,onClick:function(){return r.handleEvent(o.eventName,e.context.itemOrType)}})}))},e.prototype.renderActionMenuHead=function(){if(this.actionMenu)return n("th",{class:"table-head"})},e.prototype.renderTableRow=function(e){var t=this;return this.columns.map(function(r){return n("td",{class:"table-cell"},t.renderCellContents(r,e))})},e.prototype.handleEvent=function(e,t){this.emit.emit({action:e,data:t})},e.prototype.renderCellContents=function(e,t){return n("concrete-visual",{visual:e.visual,context:t.context,concrete:t.data[e.property||e.title]})},Object.defineProperty(e,"is",{get:function(){return"edel-table"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{actionMenu:{type:Boolean,attr:"action-menu"},actions:{type:"Any",attr:"actions"},columns:{type:"Any",attr:"columns"},rows:{type:"Any",attr:"rows"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"emit",method:"emit",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),e}();e.EdelTable=r,Object.defineProperty(e,"__esModule",{value:!0})});