/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{property as r,subclass as s}from"../../core/accessorSupport/decorators.js";import{cast as o}from"../../core/accessorSupport/decorators/cast.js";import{writer as i}from"../../core/accessorSupport/decorators/writer.js";import l from"./Element.js";import{ensureType as n,fromJSON as p,toJSON as m,buildTypeMaps as a}from"../support/formUtils.js";import{reader as c}from"../../core/accessorSupport/decorators/reader.js";var d;let u=d=class extends l{constructor(e){super(e),this.initialState="expanded",this.type="group"}get elements(){return this._get("elements")??null}set elements(e){this._set("elements",e)}castElements(e){return n(e,f,!1)}readElements(e,t){return p(t.formElements,f,!1)}writeElements(e,t){t.formElements=m(e,f,!1)}clone(){return new d({description:this.description,elements:t(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};e([r({json:{write:!0}})],u.prototype,"elements",null),e([o("elements")],u.prototype,"castElements",null),e([c("elements",["formElements"])],u.prototype,"readElements",null),e([i("elements")],u.prototype,"writeElements",null),e([r({type:["collapsed","expanded"],json:{write:!0}})],u.prototype,"initialState",void 0),e([r({type:String,json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=d=e([s("esri.form.elements.GroupElement")],u);const f=a(u),E=u;export{E as default};
