/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{property as i,subclass as l}from"../../../core/accessorSupport/decorators.js";import{isFieldInput as r,isGroupInput as s}from"./support/inputUtils.js";let n=class extends e{constructor(t){super(t),this.inputs=[],this.template=null}get allFieldInputs(){const t=[];for(const e of this.inputs)r(e)?t.push(e):s(e)&&t.push(...e.inputs.filter(r));return t}get description(){return this.template?.description??null}get hasInvalidHiddenInputs(){return this.invalidHiddenInputs.length>0}get invalidFeatures(){return Array.from(new Set(this.allFieldInputs.flatMap(t=>t.invalidFeatures)))}get invalidHiddenInputs(){return this.allFieldInputs.filter(t=>!t.valid&&!t.effectiveVisible)}get title(){return this.template?.title??null}get valid(){return this.allFieldInputs.every(t=>t.valid)}};t([i()],n.prototype,"allFieldInputs",null),t([i()],n.prototype,"description",null),t([i()],n.prototype,"inputs",void 0),t([i()],n.prototype,"hasInvalidHiddenInputs",null),t([i()],n.prototype,"invalidFeatures",null),t([i()],n.prototype,"invalidHiddenInputs",null),t([i()],n.prototype,"template",void 0),t([i()],n.prototype,"title",null),t([i()],n.prototype,"valid",null),n=t([l("esri.widgets.BatchAttributeForm.inputs.BatchFormInputs")],n);const p=n;export{p as default};
