/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as o}from"../../../core/accessorSupport/decorators.js";import{ElementTemplateBase as r}from"./ElementTemplateBase.js";let l=class extends r{constructor(e){super(e),this.domain=null,this.group=null,this.hint=null,this.input=null,this.type="field",this.layerTimeZone=null,this.formTimeZone=null}get fieldName(){return this.field.name}get hasValueCalculations(){for(const e of this.layers){const t=this.getExpressionExecutorsForLayer(e);if(t?.valueExpression)return!0}return!1}};e([t({clonable:"reference"})],l.prototype,"domain",void 0),e([t({clonable:"reference",constructOnly:!0})],l.prototype,"field",void 0),e([t()],l.prototype,"fieldName",null),e([t({clonable:!1})],l.prototype,"group",void 0),e([t()],l.prototype,"hint",void 0),e([t()],l.prototype,"input",void 0),e([t()],l.prototype,"type",void 0),e([t()],l.prototype,"layerTimeZone",void 0),e([t()],l.prototype,"formTimeZone",void 0),e([t()],l.prototype,"hasValueCalculations",null),l=e([o("esri.widgets.BatchAttributeForm.templates.FieldElementTemplate")],l);export{l as FieldElementTemplate};
