{"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.31/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 CatalogLayer: !0,\n CSV: !0,\n GeoJSON: !0,\n GeoRSS: !0,\n GroupLayer: !0,\n KML: !0,\n KnowledgeGraphLayer: !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 BingMapsAerial: !0,\n BingMapsHybrid: !0,\n BingMapsRoad: !0,\n OpenStreetMap: !0,\n VectorTileLayer: !0,\n WMS: !0,\n WebTiledLayer: !0\n },\n a = {\n ArcGISFeatureLayer: !0,\n SubtypeGroupTable: !0\n },\n i = {\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 CatalogLayer: !0,\n CSV: !0,\n GeoJSON: !0,\n GroupLayer: !0,\n IntegratedMesh3DTilesLayer: !0,\n IntegratedMeshLayer: !0,\n KML: !0,\n LineOfSightLayer: !0,\n MediaLayer: !0,\n OGCFeatureLayer: !0,\n OrientedImageryLayer: !0,\n PointCloudLayer: !0,\n RasterDataLayer: !0,\n VectorTileLayer: !0,\n ViewshedLayer: !0,\n Voxel: !0,\n WFS: !0,\n WMS: !0,\n WebTiledLayer: !0\n },\n \"web-scene/basemap\": {\n ArcGISImageServiceLayer: !0,\n ArcGISMapServiceLayer: !0,\n ArcGISSceneServiceLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n ArcGISTiledMapServiceLayer: !0,\n OpenStreetMap: !0,\n VectorTileLayer: !0,\n WMS: !0,\n WebTiledLayer: !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 ArcGISImageServiceLayer: !0,\n ArcGISSceneServiceLayer: !0,\n ArcGISStreamLayer: !0,\n ArcGISTiledImageServiceLayer: !0,\n BuildingSceneLayer: !0,\n IntegratedMesh3DTilesLayer: !0,\n IntegratedMeshLayer: !0,\n MediaLayer: !0,\n OrientedImageryLayer: !0,\n PointCloudLayer: !0,\n SubtypeGroupLayer: !0\n }\n };\nexport { i as supportedTypes };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/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 i } from \"../../core/accessorSupport/decorators/property.js\";\nimport { Integer as o, Null as s } from \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/RandomLCG.js\";\nimport \"../../core/has.js\";\nimport { reader as n } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as a } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as p } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { excludeTables as l } from \"../../core/accessorSupport/layerContainerType.js\";\nimport { readLoadable as y } from \"../../core/accessorSupport/read.js\";\nimport { willPropertyWrite as m } from \"../../core/accessorSupport/write.js\";\nimport { supportedTypes as c } from \"./operationalLayers.js\";\nimport { listMode as d, opacity as u } from \"../support/commonProperties.js\";\nimport w from \"../../time/TimeExtent.js\";\nconst b = b => {\n let T = class extends b {\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, i) {\n (i && \"ground\" === i.layerContainerType || e && m(this, t, {}, i)) && (r[t] = e);\n }\n writeOperationalLayerType(e, r, t, i) {\n e && \"tables\" !== i?.layerContainerType && (r.layerType = e);\n }\n writeTitle(e, r) {\n r.title = e ?? \"Layer\";\n }\n readTimeExtent(e) {\n return e ? w.fromArray(e) : null;\n }\n writeTimeExtent(e, t, i, o) {\n e && \"tables\" !== o.layerContainerType && (e.isEmpty ? o?.messages && o.messages.push(new r(\"layer:invalid-visibilityTimeExtent\", \"visibilityTimeExtent cannot be empty\")) : t[i] = e.toArray());\n }\n read(e, r) {\n r && (r.layer = this), y(this, e, r => super.read(e, r), r);\n }\n write(e, i) {\n if (!this.persistenceEnabled && !i?.ignorePersistenceEnabled) return null;\n if (i?.origin) {\n const e = `${i.origin}/${i.layerContainerType || \"operational-layers\"}`,\n t = c[e];\n let o = !!t?.[this.operationalLayerType];\n if (\"ArcGISTiledElevationServiceLayer\" === this.operationalLayerType && \"web-scene/operational-layers\" === e && (o = !1), \"ArcGISDimensionLayer\" === this.operationalLayerType && \"web-map/operational-layers\" === e && (o = !1), !o) return i.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 o = super.write(e, {\n ...i,\n layer: this\n }),\n s = !!i && !!i.messages && !!i.messages.filter(e => e instanceof r && \"web-document-write:property-required\" === e.name).length;\n return t(o?.url) ? (i?.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 : o;\n }\n beforeSave() {}\n };\n return e([i({\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 })], T.prototype, \"id\", void 0), e([n(\"id\", [\"id\"])], T.prototype, \"readId\", null), e([i(d)], T.prototype, \"listMode\", void 0), e([p(\"listMode\")], T.prototype, \"writeListMode\", null), e([i({\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: l\n }\n }\n }\n }\n })], T.prototype, \"operationalLayerType\", void 0), e([p(\"operationalLayerType\")], T.prototype, \"writeOperationalLayerType\", null), e([i(u)], T.prototype, \"opacity\", void 0), e([i({\n type: Boolean,\n readOnly: !1\n })], T.prototype, \"persistenceEnabled\", void 0), e([i({\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 })], T.prototype, \"title\", void 0), e([p(\"title\"), p([\"web-scene\"], \"title\")], T.prototype, \"writeTitle\", null), e([i({\n type: w,\n json: {\n origins: {\n \"web-scene\": {\n write: {\n layerContainerTypes: l\n }\n }\n }\n }\n })], T.prototype, \"visibilityTimeExtent\", void 0), e([n(\"visibilityTimeExtent\")], T.prototype, \"readTimeExtent\", null), e([p([\"portal-item\", \"web-map\", \"web-scene\"], \"visibilityTimeExtent\", {\n visibilityTimeExtent: {\n type: [[o, s]]\n }\n })], T.prototype, \"writeTimeExtent\", null), e([i({\n type: Boolean,\n json: {\n origins: {\n \"web-scene\": {\n name: \"visibility\",\n write: {\n enabled: !0,\n layerContainerTypes: l\n }\n }\n },\n name: \"visibility\",\n write: !0\n }\n })], T.prototype, \"visible\", void 0), T = e([a(\"esri.layers.mixins.OperationalLayer\")], T), T;\n};\nfunction T(e) {\n return \"operationalLayerType\" in e;\n}\nexport { b as OperationalLayer, T as isOperationalLayer };"],"mappings":"keAIA,IAAMA,EAAI,CACN,sBAAuB,GACvB,qBAAsB,GACtB,mBAAoB,GACpB,wBAAyB,GACzB,8BAA+B,GAC/B,sBAAuB,GACvB,kBAAmB,GACnB,6BAA8B,GAC9B,2BAA4B,GAC5B,eAAgB,GAChB,eAAgB,GAChB,aAAc,GACd,aAAc,GACd,IAAK,GACL,QAAS,GACT,OAAQ,GACR,WAAY,GACZ,IAAK,GACL,oBAAqB,GACrB,WAAY,GACZ,gBAAiB,GACjB,qBAAsB,GACtB,kBAAmB,GACnB,gBAAiB,GACjB,IAAK,GACL,IAAK,GACL,cAAe,EACjB,EACAC,EAAI,CACF,wBAAyB,GACzB,8BAA+B,GAC/B,sBAAuB,GACvB,6BAA8B,GAC9B,2BAA4B,GAC5B,eAAgB,GAChB,eAAgB,GAChB,aAAc,GACd,cAAe,GACf,gBAAiB,GACjB,IAAK,GACL,cAAe,EACjB,EACAC,EAAI,CACF,mBAAoB,GACpB,kBAAmB,EACrB,EACAC,EAAI,CAC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E,qCAAqC,CAAC,EAAGf,CAAC,EAAGA,CAC9F","names":["e","r","a","i","__spreadProps","__spreadValues","b","T","e","r","i","g","p","t","s","d","o","__spreadProps","__spreadValues","Z","m","I","a","f","x","_"],"x_google_ignoreList":[0,1]}