import { d } from "./chunk-KMAHKQ2G.js"; import { y } from "./chunk-BJHM4JNS.js"; import { y as y2 } from "./chunk-WZQZRKNH.js"; import { s } from "./chunk-EMJ4ZSM2.js"; // node_modules/@arcgis/core/layers/support/fieldProperties.js var s2 = s.getLogger("esri.layers.support.fieldProperties"); function l() { return { fields: { type: [y], value: null }, fieldsIndex: { readOnly: true, get() { return new d(this.fields || []); } }, outFields: { type: [String], json: { read: false }, set: function(e) { this._userOutFields = e, this.notifyChange("outFields"); }, get: function() { const e = this._userOutFields; if (!e || !e.length) return null; if (e.includes("*")) return ["*"]; if (!this.fields) return e; for (const i of e) { this.fieldsIndex.has(i) || s2.error("field-attributes-layer:invalid-field", `Invalid field ${i} found in outFields`, { layer: this, outFields: e }); } return y2(this.fieldsIndex, e); } } }; } export { l }; //# sourceMappingURL=chunk-ZRX5UNQH.js.map