/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{IdentifiableMixin as r}from"../../core/Identifiable.js";import{property as i,subclass as l}from"../../core/accessorSupport/decorators.js";let o=class extends(r(e)){constructor(t){super(t),this.allItems=[],this.filterFunction=null,this.label=null}get items(){const{filterFunction:t}=this;return null==t||t(this)?this.allItems:this.allItems.filter(t)}get id(){return this.label}reapplyFilter(){this.notifyChange("filterFunction")}findByTemplate(t){return this.items.find(e=>e.template===t)}};t([i()],o.prototype,"allItems",void 0),t([i()],o.prototype,"filterFunction",void 0),t([i()],o.prototype,"items",null),t([i()],o.prototype,"label",void 0),t([i()],o.prototype,"id",null),o=t([l("esri.widgets.FeatureTemplates.TemplateItemGroup")],o);const s=o;export{s as default};
