/*
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/Accessor","../../../core/accessorSupport/decorators/property","../../../core/arrayUtils","../../../core/has","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/subclass","../../../popup/ExpressionInfo","../../../popup/FieldInfo","../support/featureUtils"],(function(e,o,r,t,s,p,i,n,l,c,u){"use strict";let a=function(o){function r(e){var r;return(r=o.call(this,e)||this).attributes=null,r.expressionInfos=null,r.description=null,r.fieldInfos=null,r.title=null,r}return e._inheritsLoose(r,o),e._createClass(r,[{key:"formattedFieldInfos",get:function(){const{expressionInfos:e,fieldInfos:o}=this,r=[];return null==o||o.forEach((o=>{if(!(!o.hasOwnProperty("visible")||o.visible))return;const t=o.clone();t.label=u.getFieldInfoLabel(t,e),r.push(t)})),r}}]),r}(r);o.__decorate([t.property()],a.prototype,"attributes",void 0),o.__decorate([t.property({type:[l]})],a.prototype,"expressionInfos",void 0),o.__decorate([t.property()],a.prototype,"description",void 0),o.__decorate([t.property({type:[c]})],a.prototype,"fieldInfos",void 0),o.__decorate([t.property({readOnly:!0})],a.prototype,"formattedFieldInfos",null),o.__decorate([t.property()],a.prototype,"title",void 0),a=o.__decorate([n.subclass("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],a);return a}));
