chunk-EGZW6HC3.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. import {
  2. B
  3. } from "./chunk-4NKD334K.js";
  4. import {
  5. a
  6. } from "./chunk-MXB2XLKV.js";
  7. import {
  8. m as m3
  9. } from "./chunk-TBBTRX4O.js";
  10. import {
  11. K,
  12. Q,
  13. X,
  14. _
  15. } from "./chunk-VBRY5KJM.js";
  16. import {
  17. M2 as M,
  18. o
  19. } from "./chunk-ECW2QABR.js";
  20. import {
  21. s as s3
  22. } from "./chunk-GCDJLKH4.js";
  23. import {
  24. d,
  25. e,
  26. n2 as n,
  27. u2 as u,
  28. y3 as y2
  29. } from "./chunk-Y3WMVFTW.js";
  30. import {
  31. v
  32. } from "./chunk-IHXECKQQ.js";
  33. import {
  34. s,
  35. s3 as s2
  36. } from "./chunk-EMJ4ZSM2.js";
  37. import {
  38. m as m2,
  39. y
  40. } from "./chunk-IKP3YN53.js";
  41. import {
  42. m,
  43. r,
  44. t
  45. } from "./chunk-GZT4BVFP.js";
  46. // node_modules/@arcgis/core/portal/PortalItemResource.js
  47. var h = s.getLogger("esri.portal.PortalItemResource");
  48. var n2 = class extends y2 {
  49. constructor(t2) {
  50. super(t2), this.portalItem = null;
  51. }
  52. normalizeCtorArgs(t2) {
  53. return t2 && t2.portalItem && t2.path ? { ...t2, path: this._normalizePath(t2.path, t2.portalItem) } : t2;
  54. }
  55. set path(t2) {
  56. r(t2) && K(t2) ? h.error("portalitemresource:invalid-path", "A portal item resource path must be relative") : this._set("path", t2);
  57. }
  58. _castPath(t2) {
  59. return this._normalizePath(t2, this.portalItem);
  60. }
  61. get url() {
  62. return this.portalItem && this.path ? `${this.portalItem.itemUrl}/resources/${this.path}` : null;
  63. }
  64. get itemRelativeUrl() {
  65. return this.portalItem && this.path ? `./resources/${this.path}` : null;
  66. }
  67. fetch(t2 = "json", r2) {
  68. const o2 = this.url;
  69. if (t(o2))
  70. throw new s2("portal-item-resource:fetch", "Portal item resource does not refer to a valid item or path");
  71. return this.portalItem.portal._request(o2, { responseType: t2, query: { token: this.portalItem.apiKey }, signal: m(r2, "signal") });
  72. }
  73. async update(t2, r2) {
  74. return (await import("./resourceUtils-NZ5U43P2.js")).addOrUpdateResource(this, "update", t2, r2);
  75. }
  76. hasPath() {
  77. return r(this.path);
  78. }
  79. _normalizePath(t2, r2) {
  80. return t(t2) ? t2 : (t2 = t2.replace(/^\/+/, ""), r(r2) && K(t2) && (t2 = _(t2, r2.itemUrl)), t2.replace(/^\/+/, "").replace(/^(\.\/)?resources\//, ""));
  81. }
  82. };
  83. e([d()], n2.prototype, "portalItem", void 0), e([d({ type: String, value: null })], n2.prototype, "path", null), e([s3("path")], n2.prototype, "_castPath", null), e([d({ type: String, readOnly: true })], n2.prototype, "url", null), e([d({ type: String, readOnly: true })], n2.prototype, "itemRelativeUrl", null), n2 = e([n("esri.portal.PortalItemResource")], n2);
  84. var y3 = n2;
  85. // node_modules/@arcgis/core/portal/PortalRating.js
  86. var e2 = class extends y2 {
  87. constructor(r2) {
  88. super(r2), this.created = null, this.rating = null;
  89. }
  90. };
  91. e([d()], e2.prototype, "created", void 0), e([d()], e2.prototype, "rating", void 0), e2 = e([n("esri.portal.PortalRating")], e2);
  92. var c = e2;
  93. // node_modules/@arcgis/core/portal/PortalItem.js
  94. var w;
  95. var f = w = class extends u(m3) {
  96. constructor(e3) {
  97. super(e3), this.access = null, this.accessInformation = null, this.apiKey = null, this.applicationProxies = null, this.avgRating = null, this.categories = null, this.created = null, this.culture = null, this.description = null, this.extent = null, this.groupCategories = null, this.id = null, this.itemControl = null, this.licenseInfo = null, this.modified = null, this.name = null, this.numComments = null, this.numRatings = null, this.numViews = null, this.owner = null, this.ownerFolder = null, this.portal = null, this.screenshots = null, this.size = null, this.snippet = null, this.sourceJSON = null, this.spatialReference = null, this.tags = null, this.title = null, this.type = null, this.typeKeywords = null, this.url = null;
  98. }
  99. static from(e3) {
  100. return v(w, e3);
  101. }
  102. destroy() {
  103. this.portal = null;
  104. }
  105. get displayName() {
  106. const e3 = this.type, t2 = this.typeKeywords || [];
  107. let i = e3;
  108. return e3 === "Feature Service" || e3 === "Feature Collection" ? i = t2.includes("Table") ? "Table" : t2.includes("Route Layer") ? "Route Layer" : t2.includes("Markup") ? "Markup" : "Feature Layer" : e3 === "Image Service" ? i = t2.includes("Elevation 3D Layer") ? "Elevation Layer" : t2.includes("Tiled Imagery") ? "Tiled Imagery Layer" : "Imagery Layer" : e3 === "Scene Service" ? i = "Scene Layer" : e3 === "Video Service" ? i = "Video Layer" : e3 === "Scene Package" ? i = "Scene Layer Package" : e3 === "Stream Service" ? i = "Feature Layer" : e3 === "Geoprocessing Service" && this.portal && this.portal.isPortal ? i = t2.includes("Web Tool") ? "Tool" : "Geoprocessing Service" : e3 === "Geocoding Service" ? i = "Locator" : e3 === "Geoenrichment Service" ? i = "GeoEnrichment Service" : e3 === "Microsoft Powerpoint" ? i = "Microsoft PowerPoint" : e3 === "GeoJson" ? i = "GeoJSON" : e3 === "Globe Service" ? i = "Globe Layer" : e3 === "Vector Tile Service" ? i = "Tile Layer" : e3 === "netCDF" ? i = "NetCDF" : e3 === "Map Service" ? i = t2.includes("Spatiotemporal") || !t2.includes("Hosted Service") && !t2.includes("Tiled") || t2.includes("Relational") ? "Map Image Layer" : "Tile Layer" : e3 && e3.toLowerCase().includes("add in") ? i = e3.replace(/(add in)/gi, "Add-In") : e3 === "datastore catalog service" ? i = "Big Data File Share" : e3 === "Compact Tile Package" ? i = "Tile Package (tpkx)" : e3 === "OGCFeatureServer" ? i = "OGC Feature Layer" : e3 === "web mapping application" && t2.includes("configurableApp") && (i = "Instant App"), i;
  109. }
  110. readExtent(e3) {
  111. return e3 && e3.length ? new M(e3[0][0], e3[0][1], e3[1][0], e3[1][1]) : null;
  112. }
  113. get iconUrl() {
  114. const e3 = this.type && this.type.toLowerCase() || "", i = this.typeKeywords || [], r2 = "esri/images/portal/", o2 = "16";
  115. let s4, a2 = false, n3 = false, l = false, p = false, c2 = false, d2 = false;
  116. return e3.indexOf("service") > 0 || e3 === "feature collection" || e3 === "kml" || e3 === "wms" || e3 === "wmts" || e3 === "wfs" ? (a2 = i.includes("Hosted Service"), e3 === "feature service" || e3 === "feature collection" || e3 === "kml" || e3 === "wfs" ? (n3 = i.includes("Table"), l = i.includes("Route Layer"), p = i.includes("Markup"), c2 = i.includes("Spatiotemporal"), d2 = i.includes("UtilityNetwork"), s4 = c2 && n3 ? "spatiotemporaltable" : n3 ? "table" : l ? "routelayer" : p ? "markup" : c2 ? "spatiotemporal" : a2 ? "featureshosted" : d2 ? "utilitynetwork" : "features") : s4 = e3 === "map service" || e3 === "wms" || e3 === "wmts" ? a2 || i.includes("Tiled") || e3 === "wmts" ? "maptiles" : "mapimages" : e3 === "scene service" ? i.includes("Line") ? "sceneweblayerline" : i.includes("3DObject") ? "sceneweblayermultipatch" : i.includes("Point") ? "sceneweblayerpoint" : i.includes("IntegratedMesh") ? "sceneweblayermesh" : i.includes("PointCloud") ? "sceneweblayerpointcloud" : i.includes("Polygon") ? "sceneweblayerpolygon" : i.includes("Building") ? "sceneweblayerbuilding" : i.includes("Voxel") ? "sceneweblayervoxel" : "sceneweblayer" : e3 === "image service" ? i.includes("Elevation 3D Layer") ? "elevationlayer" : i.includes("Tiled Imagery") ? "tiledimagerylayer" : "imagery" : e3 === "stream service" ? "streamlayer" : e3 === "video service" ? "mediaservice" : e3 === "vector tile service" ? "vectortile" : e3 === "datastore catalog service" ? "datastorecollection" : e3 === "geocoding service" ? "geocodeservice" : e3 === "geoprocessing service" ? i.includes("Web Tool") && this.portal && this.portal.isPortal ? "tool" : "layers" : e3 === "geodata service" ? "geodataservice" : "layers") : s4 = e3 === "web map" || e3 === "cityengine web scene" ? "maps" : e3 === "web scene" ? i.includes("ViewingMode-Local") ? "webscenelocal" : "websceneglobal" : e3 === "web mapping application" && i.includes("configurableApp") ? "instantapps" : e3 === "web mapping application" || e3 === "mobile application" || e3 === "application" || e3 === "operation view" || e3 === "desktop application" ? "apps" : e3 === "map document" || e3 === "map package" || e3 === "published map" || e3 === "scene document" || e3 === "globe document" || e3 === "basemap package" || e3 === "mobile basemap package" || e3 === "mobile map package" || e3 === "project package" || e3 === "project template" || e3 === "pro map" || e3 === "layout" || e3 === "layer" && i.includes("ArcGIS Pro") || e3 === "explorer map" && i.indexOf("Explorer Document") ? "mapsgray" : e3 === "service definition" || e3 === "csv" || e3 === "shapefile" || e3 === "cad drawing" || e3 === "geojson" || e3 === "360 vr experience" || e3 === "netcdf" || e3 === "administrative report" ? "datafiles" : e3 === "explorer add in" || e3 === "desktop add in" || e3 === "windows viewer add in" || e3 === "windows viewer configuration" ? "appsgray" : e3 === "arcgis pro add in" || e3 === "arcgis pro configuration" ? "addindesktop" : e3 === "rule package" || e3 === "file geodatabase" || e3 === "sqlite geodatabase" || e3 === "csv collection" || e3 === "kml collection" || e3 === "windows mobile package" || e3 === "map template" || e3 === "desktop application template" || e3 === "gml" || e3 === "arcpad package" || e3 === "code sample" || e3 === "form" || e3 === "document link" || e3 === "earth configuration" || e3 === "operations dashboard add in" || e3 === "rules package" || e3 === "image" || e3 === "workflow manager package" || e3 === "explorer map" && i.includes("Explorer Mapping Application") || i.includes("Document") ? "datafilesgray" : e3 === "network analysis service" || e3 === "geoprocessing service" || e3 === "geodata service" || e3 === "geometry service" || e3 === "geoprocessing package" || e3 === "locator package" || e3 === "geoprocessing sample" || e3 === "workflow manager service" ? "toolsgray" : e3 === "layer" || e3 === "layer package" || e3 === "explorer layer" ? "layersgray" : e3 === "scene package" ? "scenepackage" : e3 === "mobile scene package" ? "mobilescenepackage" : e3 === "tile package" || e3 === "compact tile package" ? "tilepackage" : e3 === "task file" ? "taskfile" : e3 === "report template" ? "report-template" : e3 === "statistical data collection" ? "statisticaldatacollection" : e3 === "insights workbook" ? "workbook" : e3 === "insights model" ? "insightsmodel" : e3 === "insights page" ? "insightspage" : e3 === "insights theme" ? "insightstheme" : e3 === "hub initiative" ? "hubinitiative" : e3 === "hubpage" ? "hubpage" : e3 === "hub event" ? "hubevent" : e3 === "hub site application" ? "hubsite" : e3 === "hub project" ? "hubproject" : e3 === "relational database connection" ? "relationaldatabaseconnection" : e3 === "big data file share" ? "datastorecollection" : e3 === "image collection" ? "imagecollection" : e3 === "style" ? "style" : e3 === "desktop style" ? "desktopstyle" : e3 === "dashboard" ? "dashboard" : e3 === "raster function template" ? "rasterprocessingtemplate" : e3 === "vector tile package" ? "vectortilepackage" : e3 === "ortho mapping project" ? "orthomappingproject" : e3 === "ortho mapping template" ? "orthomappingtemplate" : e3 === "solution" ? "solutions" : e3 === "geopackage" ? "geopackage" : e3 === "deep learning package" ? "deeplearningpackage" : e3 === "real time analytic" ? "realtimeanalytics" : e3 === "big data analytic" ? "bigdataanalytics" : e3 === "feed" ? "feed" : e3 === "excalibur imagery project" ? "excaliburimageryproject" : e3 === "notebook" ? "notebook" : e3 === "storymap" ? "storymap" : e3 === "survey123 add in" ? "survey123addin" : e3 === "mission" ? "mission" : e3 === "mission report" ? "missionreport" : e3 === "quickcapture project" ? "quickcaptureproject" : e3 === "pro report" ? "proreport" : e3 === "urban model" ? "urbanmodel" : e3 === "web experience" ? "experiencebuilder" : e3 === "web experience template" ? "webexperiencetemplate" : e3 === "experience builder widget" ? "experiencebuilderwidget" : e3 === "experience builder widget package" ? "experiencebuilderwidgetpackage" : e3 === "workflow" ? "workflow" : e3 === "insights script" ? "insightsscript" : e3 === "kernel gateway connection" ? "kernelgatewayconnection" : e3 === "hub initiative template" ? "hubinitiativetemplate" : e3 === "storymap theme" ? "storymaptheme" : e3 === "knowledge graph" ? "knowledgegraph" : e3 === "native application" ? "nativeapp" : e3 === "native application installer" ? "nativeappinstaller" : e3 === "link chart" ? "linkchart" : e3 === "investigation" ? "investigation" : e3 === "ogcfeatureserver" ? "features" : e3 === "pro project" ? "proproject" : e3 === "insights workbook package" ? "insightsworkbookpackage" : e3 === "apache parquet" ? "apacheparquet" : e3 === "notebook code snippets" ? "notebookcodesnippets" : e3 === "suitability model" ? "suitabilitymodel" : e3 === "esri classifier definition" ? "classifierdefinition" : e3 === "esri classification schema" ? "classificationschema" : e3 === "insights data engineering workbook" ? "dataengineeringworkbook" : e3 === "insights data engineering model" ? "dataengineeringmodel" : e3 === "deep learning studio project" ? "deeplearningproject" : "maps", s4 ? a(r2 + s4 + o2 + ".png") : null;
  117. }
  118. get isLayer() {
  119. return ["Map Service", "Feature Service", "Feature Collection", "Scene Service", "Image Service", "Stream Service", "Vector Tile Service", "WMTS", "WMS"].includes(this.type);
  120. }
  121. get itemUrl() {
  122. const e3 = this.get("portal.restUrl");
  123. return e3 && this.id ? `${e3}/content/items/${this.id}` : null;
  124. }
  125. get thumbnailUrl() {
  126. const e3 = this.itemUrl, t2 = this.thumbnail;
  127. return e3 && t2 ? this.portal._normalizeUrl(`${e3}/info/${t2}?f=json`) : null;
  128. }
  129. get userItemUrl() {
  130. const e3 = this.get("portal.restUrl");
  131. if (!e3)
  132. return null;
  133. const t2 = this.owner || this.get("portal.user.username");
  134. if (!t2)
  135. return null;
  136. return `${e3}/content/users/${this.ownerFolder ? `${t2}/${this.ownerFolder}` : t2}/items/${this.id}`;
  137. }
  138. load(e3) {
  139. this.portal || (this.portal = B.getDefault());
  140. const t2 = this.portal.load(e3).then(() => this.sourceJSON ? this.sourceJSON : this.id && this.itemUrl ? this.portal._request(this.itemUrl, { signal: r(e3) ? e3.signal : null, query: { token: this.apiKey } }) : {}).then((e4) => {
  141. this.sourceJSON = e4, this.read(e4);
  142. });
  143. return this.addResolvingPromise(t2), Promise.resolve(this);
  144. }
  145. addRating(e3) {
  146. const t2 = { method: "post", query: {} };
  147. return e3 instanceof c && (e3 = e3.rating), isNaN(e3) || typeof e3 != "number" || (t2.query.rating = e3), this.portal._request(this.itemUrl + "/addRating", t2).then(() => new c({ rating: e3, created: new Date() }));
  148. }
  149. clone() {
  150. const e3 = { access: this.access, accessInformation: this.accessInformation, applicationProxies: m2(this.applicationProxies), avgRating: this.avgRating, categories: m2(this.categories), created: m2(this.created), culture: this.culture, description: this.description, extent: m2(this.extent), groupCategories: m2(this.groupCategories), id: this.id, itemControl: this.itemControl, licenseInfo: this.licenseInfo, modified: m2(this.modified), name: this.name, numComments: this.numComments, numRatings: this.numRatings, numViews: this.numViews, owner: this.owner, ownerFolder: this.ownerFolder, portal: this.portal, screenshots: m2(this.screenshots), size: this.size, snippet: this.snippet, spatialReference: this.spatialReference, tags: m2(this.tags), thumbnail: this.thumbnail, title: this.title, type: this.type, typeKeywords: m2(this.typeKeywords), url: this.url };
  151. return this.loaded && (e3.loadStatus = "loaded"), new w({ sourceJSON: this.sourceJSON }).set(e3);
  152. }
  153. createPostQuery() {
  154. const e3 = this.toJSON();
  155. for (const i of ["tags", "typeKeywords", "categories"])
  156. e3[i] && (e3[i] = e3[i].join(", "));
  157. const { extent: t2 } = e3;
  158. return t2 && (e3.extent = JSON.stringify(t2)), e3;
  159. }
  160. deleteRating() {
  161. return this.portal._request(this.itemUrl + "/deleteRating", { method: "post" }).then(() => {
  162. });
  163. }
  164. fetchData(e3 = "json", t2) {
  165. return this.portal._request(this.itemUrl + "/data", { responseType: e3, ...t2, query: { token: this.apiKey } });
  166. }
  167. fetchRating(e3) {
  168. return this.portal._request(this.itemUrl + "/rating", { query: { token: this.apiKey }, ...e3 }).then((e4) => e4.rating != null ? (e4.created = new Date(e4.created), new c(e4)) : null);
  169. }
  170. fetchRelatedItems(e3, t2) {
  171. return this.portal._requestToTypedArray(this.itemUrl + "/relatedItems", { query: { ...e3, token: this.apiKey }, ...t2 }, w);
  172. }
  173. getThumbnailUrl(e3) {
  174. let t2 = this.thumbnailUrl;
  175. return t2 && e3 && (t2 += `&w=${e3}`), t2;
  176. }
  177. reload() {
  178. return this.portal._request(this.itemUrl, { cacheBust: true, query: { token: this.apiKey } }).then((e3) => (this.sourceJSON = e3, this.read(e3), this));
  179. }
  180. update(e3) {
  181. return this.id ? this.load().then(() => this.portal._signIn()).then(() => {
  182. const t2 = e3 && e3.data, i = { method: "post" };
  183. i.query = this.createPostQuery();
  184. for (const e4 in i.query)
  185. i.query[e4] === null && (i.query[e4] = "");
  186. return i.query.clearEmptyFields = true, t2 != null && (typeof t2 == "string" ? i.query.text = t2 : typeof t2 == "object" && (i.query.text = JSON.stringify(t2))), this.portal._request(`${this.userItemUrl}/update`, i).then(() => this.reload());
  187. }) : Promise.reject(new s2("portal:item-does-not-exist", "The item does not exist yet and cannot be updated"));
  188. }
  189. updateThumbnail(e3) {
  190. return this.id ? this.load().then(() => this.portal._signIn()).then(() => {
  191. const t2 = e3.thumbnail, i = e3.filename, r2 = { method: "post" };
  192. if (typeof t2 == "string")
  193. X(t2) ? r2.query = { data: t2 } : r2.query = { url: Q(t2) }, r(i) && (r2.query.filename = i);
  194. else {
  195. const e4 = new FormData();
  196. r(i) ? e4.append("file", t2, i) : e4.append("file", t2), r2.body = e4;
  197. }
  198. return this.portal._request(`${this.userItemUrl}/updateThumbnail`, r2).then(() => this.reload());
  199. }) : Promise.reject(new s2("portal:item-does-not-exist", "The item does not exist yet and cannot be updated"));
  200. }
  201. async fetchResources(e3 = {}, t2) {
  202. return (await import("./resourceUtils-NZ5U43P2.js")).fetchResources(this, e3, t2);
  203. }
  204. async addResource(e3, t2, i) {
  205. const r2 = await import("./resourceUtils-NZ5U43P2.js");
  206. return e3.portalItem = this, r2.addOrUpdateResource(e3, "add", t2, i);
  207. }
  208. async removeResource(e3, t2) {
  209. const r2 = await import("./resourceUtils-NZ5U43P2.js");
  210. if (e3.portalItem && e3.portalItem.itemUrl !== this.itemUrl)
  211. throw new s2("removeresource:portal-item-mismatch", "The portal item associated with the provided resource does not match the item");
  212. return r2.removeResource(this, e3, t2);
  213. }
  214. async removeAllResources(e3) {
  215. return (await import("./resourceUtils-NZ5U43P2.js")).removeAllResources(this, e3);
  216. }
  217. resourceFromPath(e3) {
  218. return new y3({ portalItem: this, path: e3 });
  219. }
  220. toJSON() {
  221. const e3 = this.extent, t2 = { accessInformation: this.accessInformation, categories: m2(this.categories), created: this.created && this.created.getTime(), description: this.description, extent: e3 && [[e3.xmin, e3.ymin], [e3.xmax, e3.ymax]], id: this.id, licenseInfo: this.licenseInfo, modified: this.modified && this.modified.getTime(), name: this.name, owner: this.owner, ownerFolder: this.ownerFolder, snippet: this.snippet, spatialReference: this.spatialReference, tags: m2(this.tags), thumbnail: this.thumbnail, title: this.title, type: this.type, typeKeywords: m2(this.typeKeywords), url: this.url };
  222. return y(t2);
  223. }
  224. static fromJSON(e3) {
  225. if (!e3)
  226. return null;
  227. if (e3.declaredClass)
  228. throw new Error("JSON object is already hydrated");
  229. return new w({ sourceJSON: e3 });
  230. }
  231. _getPostQuery() {
  232. const e3 = this.toJSON();
  233. for (const t2 in e3)
  234. t2 === "tags" && e3[t2] !== null && (e3[t2] = e3[t2].join(", ")), t2 === "typeKeywords" && e3[t2] !== null && (e3[t2] = e3[t2].join(", ")), t2 === "extent" && e3[t2] && (e3[t2] = JSON.stringify(e3[t2]));
  235. return e3;
  236. }
  237. };
  238. e([d({ type: ["private", "shared", "org", "public"] })], f.prototype, "access", void 0), e([d()], f.prototype, "accessInformation", void 0), e([d({ type: String })], f.prototype, "apiKey", void 0), e([d({ json: { read: { source: "appProxies" } } })], f.prototype, "applicationProxies", void 0), e([d()], f.prototype, "avgRating", void 0), e([d()], f.prototype, "categories", void 0), e([d({ type: Date })], f.prototype, "created", void 0), e([d()], f.prototype, "culture", void 0), e([d()], f.prototype, "description", void 0), e([d({ readOnly: true })], f.prototype, "displayName", null), e([d({ type: M })], f.prototype, "extent", void 0), e([o("extent")], f.prototype, "readExtent", null), e([d()], f.prototype, "groupCategories", void 0), e([d({ readOnly: true })], f.prototype, "iconUrl", null), e([d()], f.prototype, "id", void 0), e([d({ readOnly: true })], f.prototype, "isLayer", null), e([d()], f.prototype, "itemControl", void 0), e([d({ readOnly: true })], f.prototype, "itemUrl", null), e([d()], f.prototype, "licenseInfo", void 0), e([d({ type: Date })], f.prototype, "modified", void 0), e([d()], f.prototype, "name", void 0), e([d()], f.prototype, "numComments", void 0), e([d()], f.prototype, "numRatings", void 0), e([d()], f.prototype, "numViews", void 0), e([d()], f.prototype, "owner", void 0), e([d()], f.prototype, "ownerFolder", void 0), e([d({ type: B })], f.prototype, "portal", void 0), e([d()], f.prototype, "screenshots", void 0), e([d()], f.prototype, "size", void 0), e([d()], f.prototype, "snippet", void 0), e([d()], f.prototype, "sourceJSON", void 0), e([d({ type: String })], f.prototype, "spatialReference", void 0), e([d()], f.prototype, "tags", void 0), e([d()], f.prototype, "thumbnail", void 0), e([d({ readOnly: true })], f.prototype, "thumbnailUrl", null), e([d()], f.prototype, "title", void 0), e([d()], f.prototype, "type", void 0), e([d()], f.prototype, "typeKeywords", void 0), e([d({ type: String, json: { read(e3, t2) {
  239. if (t2.type !== "KML")
  240. return e3;
  241. const i = this.portal?.restUrl;
  242. return e3 || (e3 = i && this.id ? `${i}/content/items/${this.id}/data` : null), e3;
  243. } } })], f.prototype, "url", void 0), e([d({ readOnly: true })], f.prototype, "userItemUrl", null), f = w = e([n("esri.portal.PortalItem")], f);
  244. var b = f;
  245. export {
  246. b
  247. };
  248. //# sourceMappingURL=chunk-EGZW6HC3.js.map