import { G, W } from "./chunk-3RSFVUKZ.js"; import { o } from "./chunk-HZRKBTHJ.js"; import { o as o2 } from "./chunk-6T6G6LCQ.js"; import { r } from "./chunk-PQFTYGF5.js"; import { e, l3 as l, n5 as n, t5 as t, y3 as y } from "./chunk-2Z2TG5CU.js"; import { v } from "./chunk-2TIUKVZN.js"; // node_modules/@arcgis/core/geometry/HeightModelInfo.js var d; var p = o()({ orthometric: "gravity-related-height", gravity_related_height: "gravity-related-height", ellipsoidal: "ellipsoidal" }); var u = p.jsonValues.slice(); v(u, "orthometric"); var g = o()({ meter: "meters", foot: "feet", "us-foot": "us-feet", "clarke-foot": "clarke-feet", "clarke-yard": "clarke-yards", "clarke-link": "clarke-links", "sears-yard": "sears-yards", "sears-foot": "sears-feet", "sears-chain": "sears-chains", "benoit-1895-b-chain": "benoit-1895-b-chains", "indian-yard": "indian-yards", "indian-1937-yard": "indian-1937-yards", "gold-coast-foot": "gold-coast-feet", "sears-1922-truncated-chain": "sears-1922-truncated-chains", "50-kilometers": "50-kilometers", "150-kilometers": "150-kilometers" }); var m = d = class extends l { constructor(e2) { super(e2), this.heightModel = "gravity-related-height", this.heightUnit = "meters", this.vertCRS = null; } writeHeightModel(e2, t2, r2) { return p.write(e2, t2, r2); } readHeightModel(e2, t2, r2) { const o3 = p.read(e2); return o3 || (r2 && r2.messages && r2.messages.push(f(e2, { context: r2 })), null); } readHeightUnit(e2, t2, r2) { const o3 = g.read(e2); return o3 || (r2 && r2.messages && r2.messages.push(y2(e2, { context: r2 })), null); } readHeightUnitService(e2, t2, r2) { const o3 = G(e2) || g.read(e2); return o3 || (r2 && r2.messages && r2.messages.push(y2(e2, { context: r2 })), null); } readVertCRS(e2, t2) { return t2.vertCRS || t2.ellipsoid || t2.geoid; } clone() { return new d({ heightModel: this.heightModel, heightUnit: this.heightUnit, vertCRS: this.vertCRS }); } equals(e2) { return !!e2 && (this === e2 || this.heightModel === e2.heightModel && this.heightUnit === e2.heightUnit && this.vertCRS === e2.vertCRS); } static deriveUnitFromSR(e2, t2) { const r2 = W(t2); return new d({ heightModel: e2.heightModel, heightUnit: r2, vertCRS: e2.vertCRS }); } write(e2, t2) { return t2 = { origin: "web-scene", ...t2 }, super.write(e2, t2); } static fromJSON(e2) { if (!e2) return null; const t2 = new d(); return t2.read(e2, { origin: "web-scene" }), t2; } }; function y2(e2, t2) { return new t("height-unit:unsupported", `Height unit of value '${e2}' is not supported`, t2); } function f(e2, t2) { return new t("height-model:unsupported", `Height model of value '${e2}' is not supported`, t2); } e([y({ type: p.apiValues, constructOnly: true, json: { origins: { "web-scene": { type: u, default: "ellipsoidal" } } } })], m.prototype, "heightModel", void 0), e([r("web-scene", "heightModel")], m.prototype, "writeHeightModel", null), e([o2(["web-scene", "service"], "heightModel")], m.prototype, "readHeightModel", null), e([y({ type: g.apiValues, constructOnly: true, json: { origins: { "web-scene": { type: g.jsonValues, write: g.write } } } })], m.prototype, "heightUnit", void 0), e([o2("web-scene", "heightUnit")], m.prototype, "readHeightUnit", null), e([o2("service", "heightUnit")], m.prototype, "readHeightUnitService", null), e([y({ type: String, constructOnly: true, json: { origins: { "web-scene": { write: true } } } })], m.prototype, "vertCRS", void 0), e([o2("service", "vertCRS", ["vertCRS", "ellipsoid", "geoid"])], m.prototype, "readVertCRS", null), m = d = e([n("esri.geometry.HeightModelInfo")], m); var v2 = m; export { v2 as v }; //# sourceMappingURL=chunk-7B57NUGF.js.map