/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/lang","../../core/accessorSupport/decorators/property","../../core/accessorSupport/decorators/cast","../../core/accessorSupport/decorators/reader","../../core/accessorSupport/decorators/subclass","../../core/accessorSupport/decorators/writer","./Element","../support/elements"],(function(e,t,r,o,s,n,i,l,p,c){"use strict";var a;let u=a=function(t){function o(e){var r;return(r=t.call(this,e)||this).elements=null,r.initialState="expanded",r.type="group",r}e._inheritsLoose(o,t);var s=o.prototype;return s.castElements=function(e){return c.ensureType(e,d,!1)},s.readElements=function(e,t){return c.fromJSON(t.formElements,d,!1)},s.writeElements=function(e,t){t.formElements=c.toJSON(e,d,!1)},s.clone=function(){return new a({description:this.description,elements:r.clone(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})},o}(p);t.__decorate([o.property({json:{write:!0}})],u.prototype,"elements",void 0),t.__decorate([s.cast("elements")],u.prototype,"castElements",null),t.__decorate([n.reader("elements",["formElements"])],u.prototype,"readElements",null),t.__decorate([l.writer("elements")],u.prototype,"writeElements",null),t.__decorate([o.property({type:["collapsed","expanded"],json:{write:!0}})],u.prototype,"initialState",void 0),t.__decorate([o.property({type:String,json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=a=t.__decorate([i.subclass("esri.form.elements.GroupElement")],u);const d=c.buildTypeMaps(u);return u}));
