import { $, H } from "./chunk-O4FY3ITT.js"; import { o as o2 } from "./chunk-PDKDCAAD.js"; import { o } from "./chunk-ECW2QABR.js"; import { r } from "./chunk-MRJEICT6.js"; import { d, e, l3 as l, n2 as n, t } from "./chunk-Y3WMVFTW.js"; import { A2 as A } from "./chunk-GZT4BVFP.js"; // node_modules/@arcgis/core/geometry/HeightModelInfo.js var d2; var p = o2()({ orthometric: "gravity-related-height", gravity_related_height: "gravity-related-height", ellipsoidal: "ellipsoidal" }); var u = p.jsonValues.slice(); A(u, "orthometric"); var g = o2()({ 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 = d2 = 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(y(e2, { context: r2 })), null); } readHeightUnitService(e2, t2, r2) { const o3 = H(e2) || g.read(e2); return o3 || (r2 && r2.messages && r2.messages.push(y(e2, { context: r2 })), null); } readVertCRS(e2, t2) { return t2.vertCRS || t2.ellipsoid || t2.geoid; } clone() { return new d2({ 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 = $(t2); return new d2({ 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 d2(); return t2.read(e2, { origin: "web-scene" }), t2; } }; function y(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([d({ 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([o(["web-scene", "service"], "heightModel")], m.prototype, "readHeightModel", null), e([d({ type: g.apiValues, constructOnly: true, json: { origins: { "web-scene": { type: g.jsonValues, write: g.write } } } })], m.prototype, "heightUnit", void 0), e([o("web-scene", "heightUnit")], m.prototype, "readHeightUnit", null), e([o("service", "heightUnit")], m.prototype, "readHeightUnitService", null), e([d({ type: String, constructOnly: true, json: { origins: { "web-scene": { write: true } } } })], m.prototype, "vertCRS", void 0), e([o("service", "vertCRS", ["vertCRS", "ellipsoid", "geoid"])], m.prototype, "readVertCRS", null), m = d2 = e([n("esri.geometry.HeightModelInfo")], m); var v = m; export { v }; //# sourceMappingURL=chunk-524XACB7.js.map