{"version":3,"sources":["node_modules/@arcgis/core/layers/mixins/operationalLayers.js","node_modules/@arcgis/core/layers/mixins/OperationalLayer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nconst e = {\n ArcGISAnnotationLayer: !0,\n ArcGISDimensionLayer: !0,\n ArcGISFeatureLayer: !0,\n ArcGISImageServiceLayer: !0,\n ArcGISImageServiceVectorLayer: !0,\n ArcGISMapServiceLayer: !0,\n ArcGISStreamLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n ArcGISTiledMapServiceLayer: !0,\n BingMapsAerial: !0,\n BingMapsHybrid: !0,\n BingMapsRoad: !0,\n CSV: !0,\n GeoRSS: !0,\n GeoJSON: !0,\n GroupLayer: !0,\n KML: !0,\n MediaLayer: !0,\n OGCFeatureLayer: !0,\n OrientedImageryLayer: !0,\n SubtypeGroupLayer: !0,\n VectorTileLayer: !0,\n WFS: !0,\n WMS: !0,\n WebTiledLayer: !0\n },\n r = {\n ArcGISImageServiceLayer: !0,\n ArcGISImageServiceVectorLayer: !0,\n ArcGISMapServiceLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n ArcGISTiledMapServiceLayer: !0,\n OpenStreetMap: !0,\n VectorTileLayer: !0,\n WMS: !0,\n WebTiledLayer: !0,\n BingMapsAerial: !0,\n BingMapsRoad: !0,\n BingMapsHybrid: !0\n },\n a = {\n ArcGISFeatureLayer: !0\n },\n S = {\n \"web-scene/operational-layers\": {\n ArcGISDimensionLayer: !0,\n ArcGISFeatureLayer: !0,\n ArcGISImageServiceLayer: !0,\n ArcGISMapServiceLayer: !0,\n ArcGISSceneServiceLayer: !0,\n ArcGISTiledElevationServiceLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n ArcGISTiledMapServiceLayer: !0,\n BuildingSceneLayer: !0,\n GroupLayer: !0,\n IntegratedMeshLayer: !0,\n OGCFeatureLayer: !0,\n PointCloudLayer: !0,\n WebTiledLayer: !0,\n CSV: !0,\n GeoJSON: !0,\n VectorTileLayer: !0,\n WFS: !0,\n WMS: !0,\n KML: !0,\n RasterDataLayer: !0,\n Voxel: !0,\n LineOfSightLayer: !0\n },\n \"web-scene/basemap\": {\n ArcGISTiledImageServiceLayer: !0,\n ArcGISTiledMapServiceLayer: !0,\n WebTiledLayer: !0,\n OpenStreetMap: !0,\n VectorTileLayer: !0,\n ArcGISImageServiceLayer: !0,\n WMS: !0,\n ArcGISMapServiceLayer: !0,\n ArcGISSceneServiceLayer: !0\n },\n \"web-scene/ground\": {\n ArcGISTiledElevationServiceLayer: !0,\n RasterDataElevationLayer: !0\n },\n \"web-scene/tables\": {\n ArcGISFeatureLayer: !0\n },\n \"web-map/operational-layers\": e,\n \"web-map/basemap\": r,\n \"web-map/tables\": a,\n \"link-chart/operational-layers\": {\n ...e,\n LinkChartLayer: !0\n },\n \"link-chart/basemap\": r,\n \"link-chart/tables\": a,\n \"portal-item/operational-layers\": {\n ArcGISFeatureLayer: !0,\n ArcGISSceneServiceLayer: !0,\n ArcGISStreamLayer: !0,\n ArcGISImageServiceLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n PointCloudLayer: !0,\n BuildingSceneLayer: !0,\n IntegratedMeshLayer: !0,\n OrientedImageryLayer: !0,\n SubtypeGroupLayer: !0\n }\n };\nexport { S as supportedTypes };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport r from \"../../core/Error.js\";\nimport { isBlobProtocol as t } from \"../../core/urlUtils.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/arrayUtils.js\";\nimport \"../../core/has.js\";\nimport { reader as i } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as a } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { excludeTables as n } from \"../../core/accessorSupport/layerContainerType.js\";\nimport { readLoadable as p } from \"../../core/accessorSupport/read.js\";\nimport { willPropertyWrite as l } from \"../../core/accessorSupport/write.js\";\nimport { supportedTypes as y } from \"./operationalLayers.js\";\nimport { listMode as c, opacity as d } from \"../support/commonProperties.js\";\nconst u = u => {\n let m = class extends u {\n constructor() {\n super(...arguments), this.persistenceEnabled = !0, this.title = null;\n }\n readId(e, r, t) {\n return \"Group Layer\" === t?.portalItem?.type ? void 0 : e;\n }\n writeListMode(e, r, t, o) {\n (o && \"ground\" === o.layerContainerType || e && l(this, t, {}, o)) && (r[t] = e);\n }\n writeOperationalLayerType(e, r, t, o) {\n e && \"tables\" !== o?.layerContainerType && (r.layerType = e);\n }\n writeTitle(e, r) {\n r.title = e ?? \"Layer\";\n }\n read(e, r) {\n r && (r.layer = this), p(this, e, r => super.read(e, r), r);\n }\n write(e, o) {\n if (!this.persistenceEnabled) return null;\n if (o?.origin) {\n const e = `${o.origin}/${o.layerContainerType || \"operational-layers\"}`,\n t = y[e];\n let i = !!t?.[this.operationalLayerType];\n if (\"ArcGISTiledElevationServiceLayer\" === this.operationalLayerType && \"web-scene/operational-layers\" === e && (i = !1), \"ArcGISDimensionLayer\" === this.operationalLayerType && \"web-map/operational-layers\" === e && (i = !1), !i) return o.messages?.push(new r(\"layer:unsupported\", `Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`, {\n layer: this\n })), null;\n }\n const i = super.write(e, {\n ...o,\n layer: this\n }),\n s = !!o && !!o.messages && !!o.messages.filter(e => e instanceof r && \"web-document-write:property-required\" === e.name).length;\n return t(i?.url) ? (o?.messages?.push(new r(\"layer:invalid-url\", `Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`, {\n layer: this\n })), null) : !this.url && s ? null : i;\n }\n beforeSave() {}\n };\n return e([o({\n type: String,\n json: {\n write: {\n ignoreOrigin: !0\n },\n origins: {\n \"web-scene\": {\n write: {\n isRequired: !0,\n ignoreOrigin: !0\n }\n },\n \"portal-item\": {\n write: !1\n }\n }\n }\n })], m.prototype, \"id\", void 0), e([i(\"id\", [\"id\"])], m.prototype, \"readId\", null), e([o(c)], m.prototype, \"listMode\", void 0), e([a(\"listMode\")], m.prototype, \"writeListMode\", null), e([o({\n type: String,\n readOnly: !0,\n json: {\n read: !1,\n write: {\n target: \"layerType\",\n ignoreOrigin: !0\n },\n origins: {\n \"portal-item\": {\n write: !1\n },\n \"web-scene\": {\n name: \"layerType\",\n read: !1,\n write: {\n enabled: !0,\n ignoreOrigin: !0,\n layerContainerTypes: n\n }\n }\n }\n }\n })], m.prototype, \"operationalLayerType\", void 0), e([a(\"operationalLayerType\")], m.prototype, \"writeOperationalLayerType\", null), e([o(d)], m.prototype, \"opacity\", void 0), e([o({\n type: Boolean,\n readOnly: !1\n })], m.prototype, \"persistenceEnabled\", void 0), e([o({\n type: String,\n json: {\n write: {\n ignoreOrigin: !0,\n writerEnsuresNonNull: !0\n },\n origins: {\n \"web-scene\": {\n write: {\n isRequired: !0,\n ignoreOrigin: !0,\n writerEnsuresNonNull: !0\n }\n },\n \"portal-item\": {\n write: !1\n }\n }\n },\n value: \"Layer\"\n })], m.prototype, \"title\", void 0), e([a(\"title\"), a([\"web-scene\"], \"title\")], m.prototype, \"writeTitle\", null), e([o({\n type: Boolean,\n json: {\n origins: {\n \"web-scene\": {\n name: \"visibility\",\n write: {\n enabled: !0,\n layerContainerTypes: n\n }\n }\n },\n name: \"visibility\",\n write: !0\n }\n })], m.prototype, \"visible\", void 0), m = e([s(\"esri.layers.mixins.OperationalLayer\")], m), m;\n};\nfunction m(e) {\n return \"operationalLayerType\" in e;\n}\nexport { u as OperationalLayer, m as isOperationalLayer };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,KAAI;AAAA,EACN,uBAAuB;AAAA,EACvB,sBA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