/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as e,subclass as s}from"../../../core/accessorSupport/decorators.js";import r from"./InputBase.js";let o=class extends r{constructor(){super(...arguments),this.editType="NA"}get editable(){return this._evaluatedEditableExpression??!0}get valid(){return!0}get _evaluatedEditableExpression(){let t=!0,e=!0;for(const s of this.features){if(null==this.template.getExpressionExecutorsForLayer(s.layer)?.editableExpression){t=t&&!0;continue}e=!1;const r=this._lookupEvaluatedExpression(s,"editable");"success"===r?.status?t=t&&!0===r.result:t=!1}return e?null:t}};t([e()],o.prototype,"editable",null),t([e({readOnly:!0})],o.prototype,"valid",null),t([e()],o.prototype,"editType",void 0),t([e()],o.prototype,"_evaluatedEditableExpression",null),o=t([s("esri.widgets.BatchAttributeForm.inputs.EditableInput")],o);const i=o;export{i as default};
