import { m } from "./chunk-3LVSQLWJ.js"; import { S } from "./chunk-CRGY2SDS.js"; import { o, s } from "./chunk-HZRKBTHJ.js"; import { o as o2 } from "./chunk-6T6G6LCQ.js"; import { r as r2 } from "./chunk-PQFTYGF5.js"; import { e, l3 as l, n5 as n, y3 as y2 } from "./chunk-2Z2TG5CU.js"; import { r, y } from "./chunk-YXWMMD76.js"; // node_modules/@arcgis/core/symbols/support/FeatureExpressionInfo.js var i; var p = i = class extends l { constructor(r4) { super(r4); } async collectRequiredFields(r4, e3) { return S(r4, e3, this.expression); } clone() { return new i({ expression: this.expression, title: this.title }); } equals(r4) { return this.expression === r4.expression && this.title === r4.title; } }; e([y2({ type: String, json: { write: true } })], p.prototype, "expression", void 0), e([y2({ type: String, json: { write: true } })], p.prototype, "title", void 0), p = i = e([n("esri.layers.support.FeatureExpressionInfo")], p); var c = p; // node_modules/@arcgis/core/symbols/support/unitConversionUtils.js function r3(n2) { return 1 / (m[n2] || 1); } function e2() { const n2 = Object.keys(m); return n2.sort(), n2; } var o3 = e2(); // node_modules/@arcgis/core/symbols/support/ElevationInfo.js var m2; var d = o()({ onTheGround: "on-the-ground", relativeToGround: "relative-to-ground", relativeToScene: "relative-to-scene", absoluteHeight: "absolute-height" }); var c2 = new s({ foot: "feet", kilometer: "kilometers", meter: "meters", mile: "miles", "us-foot": "us-feet", yard: "yards" }); var h = m2 = class extends l { constructor(e3) { super(e3), this.offset = null; } readFeatureExpressionInfo(e3, r4) { return null != e3 ? e3 : r4.featureExpression && 0 === r4.featureExpression.value ? { expression: "0" } : void 0; } writeFeatureExpressionInfo(e3, r4, o4, t) { r4[o4] = e3.write({}, t), "0" === e3.expression && (r4.featureExpression = { value: 0 }); } get mode() { const { offset: e3, featureExpressionInfo: r4 } = this; return this._isOverridden("mode") ? this._get("mode") : r(e3) || r4 ? "relative-to-ground" : "on-the-ground"; } set mode(e3) { this._override("mode", e3); } set unit(e3) { this._set("unit", e3); } write(e3, r4) { return this.offset || this.mode || this.featureExpressionInfo || this.unit ? super.write(e3, r4) : null; } clone() { return new m2({ mode: this.mode, offset: this.offset, featureExpressionInfo: this.featureExpressionInfo ? this.featureExpressionInfo.clone() : void 0, unit: this.unit }); } equals(e3) { return this.mode === e3.mode && this.offset === e3.offset && this.unit === e3.unit && y(this.featureExpressionInfo, e3.featureExpressionInfo); } }; e([y2({ type: c, json: { write: true } })], h.prototype, "featureExpressionInfo", void 0), e([o2("featureExpressionInfo", ["featureExpressionInfo", "featureExpression"])], h.prototype, "readFeatureExpressionInfo", null), e([r2("featureExpressionInfo", { featureExpressionInfo: { type: c }, "featureExpression.value": { type: [0] } })], h.prototype, "writeFeatureExpressionInfo", null), e([y2({ type: d.apiValues, nonNullable: true, json: { type: d.jsonValues, read: d.read, write: { writer: d.write, isRequired: true } } })], h.prototype, "mode", null), e([y2({ type: Number, json: { write: true } })], h.prototype, "offset", void 0), e([y2({ type: o3, json: { type: String, read: c2.read, write: c2.write } })], h.prototype, "unit", null), h = m2 = e([n("esri.layers.support.ElevationInfo")], h); var x = h; export { r3 as r, x }; //# sourceMappingURL=chunk-DUEMJ5XS.js.map