{"version":3,"sources":["node_modules/@arcgis/core/layers/support/fieldProperties.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport has from \"../../core/has.js\";\nimport e from \"../../core/Logger.js\";\nimport i from \"./Field.js\";\nimport t from \"./FieldsIndex.js\";\nimport { fixFields as r } from \"./fieldUtils.js\";\nfunction s() {\n return {\n fields: {\n type: [i],\n value: null,\n set: function (i) {\n if (i && has(\"big-integer-warning-enabled\")) {\n const t = i.filter(e => \"big-integer\" === e.type || \"oid\" === e.type && (e.length || 0) >= 8);\n if (t.length) {\n const i = t.map(e => `'${e.name}'`).join(\", \");\n e.getLogger(this).warn(\"#fields\", `Layer (title: '${this.title ?? \"no title\"}', id: '${this.id ?? \"no id\"}') references big-integer field(s): ${i}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`);\n }\n }\n this._set(\"fields\", i);\n }\n },\n fieldsIndex: {\n readOnly: !0,\n get() {\n return t.fromLayer(this);\n }\n },\n outFields: {\n type: [String],\n json: {\n read: !1\n },\n set: function (e) {\n this._userOutFields = e, this.notifyChange(\"outFields\");\n },\n get: function () {\n const i = this._userOutFields;\n if (!i?.length) return null;\n if (i.includes(\"*\")) return [\"*\"];\n if (!this.fields) return i;\n for (const t of i) {\n const r = this.fieldsIndex?.has(t);\n r || e.getLogger(\"esri.layers.support.fieldProperties\").error(\"field-attributes-layer:invalid-field\", `Invalid field ${t} found in outFields`, {\n layer: this,\n outFields: i\n });\n }\n return r(this.fieldsIndex, i);\n }\n }\n };\n}\nexport { s as defineFieldProperties };"],"mappings":"wMASA,SAASA,GAAI,CACX,MAAO,CACL,OAAQ,CACN,KAAM,CAACC,CAAC,EACR,MAAO,KACP,IAAK,SAAUC,EAAG,CAChB,GAAIA,GAAKC,EAAI,6BAA6B,EAAG,CAC3C,IAAM,EAAID,EAAE,OAAOE,GAAuBA,EAAE,OAApB,eAAsCA,EAAE,OAAZ,QAAqBA,EAAE,QAAU,IAAM,CAAC,EAC5F,GAAI,EAAE,OAAQ,CACZ,IAAM,EAAI,EAAE,IAAIA,GAAK,IAAIA,EAAE,IAAI,GAAG,EAAE,KAAK,IAAI,EAC7CC,EAAE,UAAU,IAAI,EAAE,KAAK,UAAW,kBAAkB,KAAK,OAAS,UAAU,WAAW,KAAK,IAAM,OAAO,uCAAuC,CAAC,gEAAgE,OAAO,gBAAgB,2CAA2C,CACrR,CACF,CACA,KAAK,KAAK,SAAUH,CAAC,CACvB,CACF,EACA,YAAa,CACX,SAAU,GACV,KAAM,CACJ,OAAOI,EAAE,UAAU,IAAI,CACzB,CACF,EACA,UAAW,CACT,KAAM,CAAC,MAAM,EACb,KAAM,CACJ,KAAM,EACR,EACA,IAAK,SAAU,EAAG,CAChB,KAAK,eAAiB,EAAG,KAAK,aAAa,WAAW,CACxD,EACA,IAAK,UAAY,CACf,IAAMJ,EAAI,KAAK,eACf,GAAI,CAACA,GAAG,OAAQ,OAAO,KACvB,GAAIA,EAAE,SAAS,GAAG,EAAG,MAAO,CAAC,GAAG,EAChC,GAAI,CAAC,KAAK,OAAQ,OAAOA,EACzB,QAAW,KAAKA,EACJ,KAAK,aAAa,IAAI,CAAC,GAC5BG,EAAE,UAAU,qCAAqC,EAAE,MAAM,uCAAwC,iBAAiB,CAAC,sBAAuB,CAC7I,MAAO,KACP,UAAWH,CACb,CAAC,EAEH,OAAOK,EAAE,KAAK,YAAaL,CAAC,CAC9B,CACF,CACF,CACF","names":["s","y","i","has","e","n","Z","I"],"x_google_ignoreList":[0]}