/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as s}from"../../../core/accessorSupport/decorators.js";import i from"./Column.js";let o=class extends i{constructor(e){super(e),this.columns=null,this.sortable=!1}initialize(){this._set("fieldName",`group:${this.label}`)}destroy(){this.columns?.forEach(e=>!e.destroyed&&e.destroy())}get effectiveVisible(){return!(this.hidden||!this.columns?.length)&&this.visibleChildColumns.length>0}get visibleChildColumns(){return this.columns?.filter(e=>e.effectiveVisible)??[]}};e([t()],o.prototype,"columns",void 0),e([t()],o.prototype,"effectiveVisible",null),e([t({readOnly:!0})],o.prototype,"sortable",void 0),e([t()],o.prototype,"visibleChildColumns",null),o=e([s("esri.widgets.FeatureTable.Grid.GroupColumn")],o);const l=o;export{l as default};
