/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/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{parseFormTemplateString as r}from"./featureFormUtils.js";let o=class extends e{constructor(t){super(t),this.element=null,this.feature=null,this.layer=null,this.timeZone=null,this.type=null,this.visibilityExpressionExecutor=null}get description(){return this.getFormattedLabel(this.element?.description)}get evaluatedVisibilityExpression(){const{visibilityExpressionExecutor:t}=this;return null!=t?!!t.lastEvaluatedValue:null}get label(){return this.getFormattedLabel(this.element?.label)}get updating(){return!1}get visible(){return null!=this.evaluatedVisibilityExpression?this.evaluatedVisibilityExpression:null!=this.element}getFormattedLabel(t){const{feature:e,layer:i,timeZone:l}=this;return null==i||null==t?t:r({attributes:e.attributes,label:t,layer:i,timeZone:l})}};t([i({readOnly:!0})],o.prototype,"description",null),t([i({constructOnly:!0})],o.prototype,"element",void 0),t([i()],o.prototype,"evaluatedVisibilityExpression",null),t([i()],o.prototype,"feature",void 0),t([i()],o.prototype,"label",null),t([i()],o.prototype,"layer",void 0),t([i()],o.prototype,"timeZone",void 0),t([i()],o.prototype,"type",void 0),t([i()],o.prototype,"updating",null),t([i()],o.prototype,"visible",null),t([i()],o.prototype,"visibilityExpressionExecutor",void 0),o=t([l("esri.widgets.FeatureForm.InputBase")],o);const s=o;export{s as default};
