import { g } from "./chunk-OLXMUZBB.js"; import { l as l2, m, s as s2, u as u2 } from "./chunk-XPM6MV6B.js"; import { L, N } from "./chunk-SB62IOA2.js"; import "./chunk-LX2NI53X.js"; import "./chunk-IZUZZJS7.js"; import "./chunk-OQLLPV4D.js"; import "./chunk-6SHVYOIM.js"; import { An, mn } from "./chunk-VYQHMPYW.js"; import "./chunk-SOSOZIX6.js"; import "./chunk-I4RYNNL6.js"; import { i } from "./chunk-DUH52ME3.js"; import { p } from "./chunk-BFKFNCQC.js"; import "./chunk-SZFMKPVM.js"; import { U, a } from "./chunk-BWATQC2Y.js"; import { v as v2 } from "./chunk-2DSTZVND.js"; import { c as c2 } from "./chunk-VXKIGGM4.js"; import { d } from "./chunk-KG45D2XL.js"; import { O } from "./chunk-JYRZQPQI.js"; import "./chunk-3HZQM2NK.js"; import "./chunk-AR2YN3E2.js"; import "./chunk-U3LEOWJX.js"; import { c } from "./chunk-4ONPMX2F.js"; import "./chunk-47NSA4T4.js"; import "./chunk-FUODOQDM.js"; import { t as t4 } from "./chunk-2L5METUC.js"; import "./chunk-VGWC3IKZ.js"; import "./chunk-SWMSD4RP.js"; import "./chunk-UKEN2UNL.js"; import "./chunk-XJCUT65M.js"; import "./chunk-P3XKUGLS.js"; import "./chunk-PIFOHNWC.js"; import "./chunk-LLO7GCYU.js"; import "./chunk-U7RKABRB.js"; import "./chunk-X7CNGECX.js"; import "./chunk-PSEI52P3.js"; import "./chunk-ZLNEXZAN.js"; import "./chunk-5UVJ64RB.js"; import { b } from "./chunk-O43KLDSX.js"; import "./chunk-AUOH2VSO.js"; import "./chunk-RYY6632W.js"; import "./chunk-DW42UVIT.js"; import "./chunk-TJNOJH33.js"; import "./chunk-YAEIHDJH.js"; import "./chunk-OSHI574D.js"; import "./chunk-44GMIOGP.js"; import "./chunk-75U5LM2V.js"; import "./chunk-ZHRAUKVQ.js"; import { v2 as v } from "./chunk-RZK6A2GY.js"; import { j } from "./chunk-4NQ74ZR6.js"; import "./chunk-X4LLOW7U.js"; import "./chunk-BDA6VH2A.js"; import "./chunk-Z4JTBD7M.js"; import "./chunk-MSBIHK67.js"; import "./chunk-HZRKBTHJ.js"; import { U as U2 } from "./chunk-5DMBXPN2.js"; import "./chunk-QANZ6BFY.js"; import { j as j2 } from "./chunk-VEGAOVMY.js"; import { o } from "./chunk-CXCDYJ5R.js"; import "./chunk-GAOW3WRZ.js"; import { r as r2 } from "./chunk-QCKFNSN2.js"; import { e, l3 as l, n5 as n, t2, t5 as t3, u2 as u, y3 as y2 } from "./chunk-6SOHRC7T.js"; import "./chunk-U2XHEJM7.js"; import "./chunk-SQOPWYIT.js"; import "./chunk-6KZ2LTDA.js"; import { w } from "./chunk-V6P2MAQQ.js"; import { s3 as s } from "./chunk-E5O6P5I2.js"; import { y } from "./chunk-SPWQ3AWG.js"; import "./chunk-2TIUKVZN.js"; import { q, r, t } from "./chunk-YXWMMD76.js"; import "./chunk-S5KM4IGW.js"; // node_modules/@arcgis/core/layers/support/SceneModification.js var m2; var y3 = m2 = class extends l { constructor(e2) { super(e2), this.geometry = null, this.type = "clip"; } writeGeometry(e2, r3, o2, s3) { if (s3.layer && s3.layer.spatialReference && !s3.layer.spatialReference.equals(this.geometry.spatialReference)) { if (!An(e2.spatialReference, s3.layer.spatialReference)) return void (s3 && s3.messages && s3.messages.push(new t3("scenemodification:unsupported", "Scene modifications with incompatible spatial references are not supported", { modification: this, spatialReference: s3.layer.spatialReference, context: s3 }))); const p2 = new v(); mn(e2, p2, s3.layer.spatialReference), r3[o2] = p2.toJSON(s3); } else r3[o2] = e2.toJSON(s3); delete r3[o2].spatialReference; } clone() { return new m2({ geometry: y(this.geometry), type: this.type }); } }; e([y2({ type: v }), g()], y3.prototype, "geometry", void 0), e([r2(["web-scene", "portal-item"], "geometry")], y3.prototype, "writeGeometry", null), e([y2({ type: ["clip", "mask", "replace"], nonNullable: true }), g()], y3.prototype, "type", void 0), y3 = m2 = e([n("esri.layers.support.SceneModification")], y3); var f = y3; // node_modules/@arcgis/core/layers/support/SceneModifications.js var a2; var n2 = a2 = class extends u(j.ofType(f)) { constructor(r3) { super(r3), this.url = null; } clone() { return new a2({ url: this.url, items: this.items.map((r3) => r3.clone()) }); } toJSON(r3) { return this.toArray().map((o2) => o2.toJSON(r3)).filter((r4) => !!r4.geometry); } static fromJSON(r3, o2) { const t5 = new a2(); for (const e2 of r3) t5.add(f.fromJSON(e2, o2)); return t5; } static async fromUrl(r3, t5, e2) { const c3 = { url: j2(r3), origin: "service" }, p2 = await U2(r3, { responseType: "json", signal: q(e2, "signal") }), n3 = t5.toJSON(), l4 = []; for (const o2 of p2.data) l4.push(f.fromJSON({ ...o2, geometry: { ...o2.geometry, spatialReference: n3 } }, c3)); return new a2({ url: r3, items: l4 }); } }; e([y2({ type: String })], n2.prototype, "url", void 0), n2 = a2 = e([n("esri.layers.support.SceneModifications")], n2); var l3 = n2; // node_modules/@arcgis/core/layers/IntegratedMeshLayer.js var b2 = class extends N(p(c2(v2(t4(O(i(b))))))) { constructor(...e2) { super(...e2), this._handles = new t2(), this.geometryType = "mesh", this.operationalLayerType = "IntegratedMeshLayer", this.type = "integrated-mesh", this.nodePages = null, this.materialDefinitions = null, this.textureSetDefinitions = null, this.geometryDefinitions = null, this.serviceUpdateTimeStamp = null, this.profile = "mesh-pyramids", this.modifications = null, this._modificationsSource = null, this.elevationInfo = null, this.path = null; } destroy() { this._handles.destroy(); } initialize() { this._handles.add(a(() => this.modifications, "after-changes", () => this.modifications = this.modifications, U)); } normalizeCtorArgs(e2, t5) { return "string" == typeof e2 ? { url: e2, ...t5 } : e2; } readModifications(e2, t5, r3) { this._modificationsSource = { url: c(e2, r3), context: r3 }; } async load(e2) { return this.addResolvingPromise(this._doLoad(e2)), this; } async _doLoad(e2) { const t5 = q(e2, "signal"); try { await this.loadFromPortal({ supportedTypes: ["Scene Service"] }, e2); } catch (r3) { w(r3); } if (await this._fetchService(t5), r(this._modificationsSource)) { const t6 = await l3.fromUrl(this._modificationsSource.url, this.spatialReference, e2); this.setAtOrigin("modifications", t6, this._modificationsSource.context.origin), this._modificationsSource = null; } await this._fetchIndexAndUpdateExtent(this.nodePages, t5); } beforeSave() { if (!t(this._modificationsSource)) return this.load().then(() => { }, () => { }); } async saveAs(e2, t5) { return this._debouncedSaveOperations(L.SAVE_AS, { ...t5, getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" }, e2); } async save() { const e2 = { getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" }; return this._debouncedSaveOperations(L.SAVE, e2); } validateLayer(e2) { if (e2.layerType && "IntegratedMesh" !== e2.layerType) throw new s("integrated-mesh-layer:layer-type-not-supported", "IntegratedMeshLayer does not support this layer type", { layerType: e2.layerType }); if (isNaN(this.version.major) || isNaN(this.version.minor)) throw new s("layer:service-version-not-supported", "Service version is not supported.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" }); if (this.version.major > 1) throw new s("layer:service-version-too-new", "Service version is too new.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" }); } _getTypeKeywords() { return ["IntegratedMeshLayer"]; } }; e([y2({ type: String, readOnly: true })], b2.prototype, "geometryType", void 0), e([y2({ type: ["show", "hide"] })], b2.prototype, "listMode", void 0), e([y2({ type: ["IntegratedMeshLayer"] })], b2.prototype, "operationalLayerType", void 0), e([y2({ json: { read: false }, readOnly: true })], b2.prototype, "type", void 0), e([y2({ type: s2, readOnly: true })], b2.prototype, "nodePages", void 0), e([y2({ type: [l2], readOnly: true })], b2.prototype, "materialDefinitions", void 0), e([y2({ type: [u2], readOnly: true })], b2.prototype, "textureSetDefinitions", void 0), e([y2({ type: [m], readOnly: true })], b2.prototype, "geometryDefinitions", void 0), e([y2({ readOnly: true })], b2.prototype, "serviceUpdateTimeStamp", void 0), e([y2({ type: l3 }), g({ origins: ["web-scene", "portal-item"], type: "resource", prefix: "modifications" })], b2.prototype, "modifications", void 0), e([o(["web-scene", "portal-item"], "modifications")], b2.prototype, "readModifications", null), e([y2(d)], b2.prototype, "elevationInfo", void 0), e([y2({ type: String, json: { origins: { "web-scene": { read: true, write: true }, "portal-item": { read: true, write: true } }, read: false } })], b2.prototype, "path", void 0), b2 = e([n("esri.layers.IntegratedMeshLayer")], b2); var A = b2; export { A as default }; //# sourceMappingURL=IntegratedMeshLayer-B7PIXZS2.js.map