@arcgis/core 4.31.0-next.20240904 → 4.31.0-next.20240905

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/WebDocument2D.js +5 -0
  2. package/WebLinkChart.js +5 -0
  3. package/WebMap.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/004a7dd8d0eb43dc4b7d.js +1 -0
  6. package/assets/esri/core/workers/chunks/03153382ba2e451b90bc.js +1 -0
  7. package/assets/esri/core/workers/chunks/0e88801bdac21b755ac8.js +1 -0
  8. package/assets/esri/core/workers/chunks/0ef0cd5b45519f731c54.js +1 -0
  9. package/assets/esri/core/workers/chunks/10f2baaa6cac0bafaf3e.js +1 -0
  10. package/assets/esri/core/workers/chunks/151c551d17046d41a7d7.js +1 -0
  11. package/assets/esri/core/workers/chunks/15eea613a323272ba7ff.js +1 -0
  12. package/assets/esri/core/workers/chunks/1bd6d276cb41bfc6c51e.js +1 -0
  13. package/assets/esri/core/workers/chunks/{a44e8d05526d04592468.js → 25eb4d7915ecf5dd810a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2827b494d470fd59dbb7.js +1 -0
  15. package/assets/esri/core/workers/chunks/407954afcc9d49126f5b.js +1 -0
  16. package/assets/esri/core/workers/chunks/43ba8ea1251442e47738.js +1 -0
  17. package/assets/esri/core/workers/chunks/451dcbc8e1b420471417.js +1 -0
  18. package/assets/esri/core/workers/chunks/4a1f5697f8ce488fff88.js +1 -0
  19. package/assets/esri/core/workers/chunks/5180a93f12ab431cada3.js +1 -0
  20. package/assets/esri/core/workers/chunks/{5f748d7dbb7490fadef3.js → 58e9cba33e80131e02be.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{d9cdbaa1491905ce795c.js → 5da27757d1de991d6212.js} +1 -1
  22. package/assets/esri/core/workers/chunks/628e5f9f887b7b7ee13c.js +1 -0
  23. package/assets/esri/core/workers/chunks/84d2359eb20c99e6b61e.js +1 -0
  24. package/assets/esri/core/workers/chunks/85b52087887c1a5b4cfd.js +1 -0
  25. package/assets/esri/core/workers/chunks/{c947c09618b6890de62a.js → 8ca3a2d315c8538fe564.js} +1 -1
  26. package/assets/esri/core/workers/chunks/a6ed46fb60479d3643e9.js +1 -0
  27. package/assets/esri/core/workers/chunks/a886cdf90031b214c992.js +1 -0
  28. package/assets/esri/core/workers/chunks/{2b4f0b597d8bd793d6b9.js → b4a17f8afd6ae34dc99f.js} +1 -1
  29. package/assets/esri/core/workers/chunks/c0af54cc5938176ce764.js +1 -0
  30. package/assets/esri/core/workers/chunks/c306ce662ed71aa43b24.js +1 -0
  31. package/assets/esri/core/workers/chunks/d0f001c1558a0d559117.js +1 -0
  32. package/assets/esri/core/workers/chunks/d239db2b0438f3f0881f.js +1 -0
  33. package/assets/esri/core/workers/chunks/d8a63d74a22ea585f616.js +1 -0
  34. package/assets/esri/core/workers/chunks/d9fa7d013135ba2ebc40.js +1 -0
  35. package/assets/esri/core/workers/chunks/da7dd91a51256d97b048.js +1 -0
  36. package/assets/esri/core/workers/chunks/e4fd0245efb9628c686e.js +1 -0
  37. package/assets/esri/core/workers/chunks/ebb1c4e4e8d2605affce.js +1 -0
  38. package/assets/esri/core/workers/chunks/ef938fc7efe04926cbf2.js +1 -0
  39. package/assets/esri/core/workers/chunks/efdffec6a59d986f79a7.js +1 -0
  40. package/assets/esri/core/workers/chunks/{29b157b41dfa16da886b.js → f4a0814a6e30eef8f170.js} +1 -1
  41. package/assets/esri/core/workers/chunks/ffc0d4cfba7ff49bd9f8.js +1 -0
  42. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  43. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  44. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  45. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  46. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  47. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  48. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  49. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  54. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  55. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  56. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  57. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  58. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  59. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  60. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  61. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  62. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  63. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nb.json +1 -1
  64. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  65. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  66. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  67. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  68. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  69. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  70. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  71. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  72. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  73. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  74. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  75. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  76. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  77. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  78. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  79. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  80. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  81. package/chunks/LaserlinePath.glsl.js +79 -34
  82. package/chunks/NoiseTextureAtlas.glsl.js +2 -2
  83. package/core/accessorSupport/decorators/enumeration.js +1 -1
  84. package/geometry/operators/centroidOperator.d.ts +4 -0
  85. package/geometry/operators/clipOperator.d.ts +4 -0
  86. package/geometry/operators/simplifyOperator.d.ts +4 -0
  87. package/interfaces.d.ts +641 -866
  88. package/layers/ImageryTileLayer.js +1 -1
  89. package/layers/LinkChartLayer.js +1 -1
  90. package/layers/graphics/data/QueryEngineResult.js +1 -1
  91. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  92. package/layers/mixins/ImageryTileMixin.js +1 -1
  93. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  94. package/layers/support/RasterFunction.js +1 -1
  95. package/linkChart/ChronologicalLayoutSettings.js +5 -0
  96. package/linkChart/LayoutSettings.js +5 -0
  97. package/linkChart/LinkChartProperties.js +5 -0
  98. package/linkChart/NonspatialDataDisplay.js +5 -0
  99. package/linkChart/OrganicLayoutSettings.js +5 -0
  100. package/linkChart/enums.js +5 -0
  101. package/{linkchart/InitialViewProperties.js → linkChart/utils.js} +1 -1
  102. package/package.json +1 -1
  103. package/smartMapping/heuristics/ageUnit.js +1 -1
  104. package/smartMapping/renderers/opacity.js +1 -1
  105. package/smartMapping/renderers/predominance.js +1 -1
  106. package/smartMapping/renderers/support/utils.js +1 -1
  107. package/smartMapping/statistics/summaryStatisticsForAge.js +1 -1
  108. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  109. package/smartMapping/statistics/support/statsWorker.js +1 -1
  110. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  111. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  112. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  113. package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
  114. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  115. package/smartMapping/support/adapters/StreamLayerAdapter.js +1 -1
  116. package/smartMapping/support/adapters/support/utils.js +1 -1
  117. package/smartMapping/support/utils.js +1 -1
  118. package/statistics/utils.js +1 -1
  119. package/support/revision.js +1 -1
  120. package/symbols/IconSymbol3DLayer.js +1 -1
  121. package/symbols/ObjectSymbol3DLayer.js +1 -1
  122. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  123. package/views/2d/engine/webgl/Painter.js +1 -1
  124. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  125. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/EntityStorage.js +1 -1
  126. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  127. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  128. package/views/2d/layers/LayerView2D.js +1 -1
  129. package/views/2d/layers/features/FeatureContainer.js +1 -1
  130. package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
  131. package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +1 -1
  132. package/views/3d/analysis/Viewshed/ViewshedAnalysisVisualization.js +1 -1
  133. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  134. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  135. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  136. package/views/3d/interactive/editingTools/manipulations/InteractiveManipulation.js +5 -0
  137. package/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +1 -1
  138. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  139. package/views/3d/terrain/TerrainSurface.js +1 -1
  140. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  141. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  142. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  143. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  144. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  145. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  146. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechniqueConfiguration.js +1 -1
  147. package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
  148. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  149. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  150. package/views/LinkChartView.js +5 -0
  151. package/views/MapView.js +1 -1
  152. package/views/View2D.d.ts +4 -0
  153. package/views/View2D.js +5 -0
  154. package/views/interactive/InteractiveToolBase.js +1 -1
  155. package/webmap/utils.js +1 -1
  156. package/webscene/Slide.js +1 -1
  157. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  158. package/LinkChart.js +0 -5
  159. package/assets/esri/core/workers/chunks/0718d8d36b9a9efc358d.js +0 -1
  160. package/assets/esri/core/workers/chunks/1cdab0f5880a15494621.js +0 -1
  161. package/assets/esri/core/workers/chunks/316eec68a82ad3e91261.js +0 -1
  162. package/assets/esri/core/workers/chunks/380c2eff34bf6d5360f4.js +0 -1
  163. package/assets/esri/core/workers/chunks/39dcc4cbbff7d77c8e35.js +0 -1
  164. package/assets/esri/core/workers/chunks/3fdc827664f76f6b61a8.js +0 -1
  165. package/assets/esri/core/workers/chunks/45b07a691726cc970c00.js +0 -1
  166. package/assets/esri/core/workers/chunks/51d79457388672399bfb.js +0 -1
  167. package/assets/esri/core/workers/chunks/52313e084f2747c9f8b4.js +0 -1
  168. package/assets/esri/core/workers/chunks/53fd2baefbbfe7f2ddcd.js +0 -1
  169. package/assets/esri/core/workers/chunks/5661f28d29b8c1b659bb.js +0 -1
  170. package/assets/esri/core/workers/chunks/570f1602f1ce65a0b01d.js +0 -1
  171. package/assets/esri/core/workers/chunks/5bdd960542e519f5ec1c.js +0 -1
  172. package/assets/esri/core/workers/chunks/5cd1ad94ca7a2876e35f.js +0 -1
  173. package/assets/esri/core/workers/chunks/5e42c48d66539088befd.js +0 -1
  174. package/assets/esri/core/workers/chunks/6e0ff361527ce06d81e4.js +0 -1
  175. package/assets/esri/core/workers/chunks/76b5e8434565ca4affb9.js +0 -1
  176. package/assets/esri/core/workers/chunks/81d9922531290e5bd155.js +0 -1
  177. package/assets/esri/core/workers/chunks/8c8caabcc8cc6afe240a.js +0 -1
  178. package/assets/esri/core/workers/chunks/9e0d07b537a42f1e3088.js +0 -1
  179. package/assets/esri/core/workers/chunks/a4b45191a76f8e4594e2.js +0 -1
  180. package/assets/esri/core/workers/chunks/a55dee507a26b2234702.js +0 -1
  181. package/assets/esri/core/workers/chunks/af0173b1c439ee653560.js +0 -1
  182. package/assets/esri/core/workers/chunks/b1c44040d09f3390721f.js +0 -1
  183. package/assets/esri/core/workers/chunks/cae33a935118038dfcc5.js +0 -1
  184. package/assets/esri/core/workers/chunks/cddf5e5582ec2e4ae144.js +0 -1
  185. package/assets/esri/core/workers/chunks/dab6372afeb296565939.js +0 -1
  186. package/assets/esri/core/workers/chunks/e8a0b47d9f627766b137.js +0 -1
  187. package/assets/esri/core/workers/chunks/eea60dbad459bd7b6191.js +0 -1
  188. package/assets/esri/core/workers/chunks/ff61ea571adef8129fd0.js +0 -1
  189. package/views/2d/engine/webgl/effects/AnimationEffect.js +0 -5
  190. /package/geometry/operators/{operatorAutoComplete.js → autoCompleteOperator.js} +0 -0
  191. /package/geometry/operators/{operatorCentroid.js → centroidOperator.js} +0 -0
  192. /package/geometry/operators/{operatorClip.js → clipOperator.js} +0 -0
  193. /package/geometry/operators/{operatorContains.js → containsOperator.js} +0 -0
  194. /package/geometry/operators/{operatorCrosses.js → crossesOperator.js} +0 -0
  195. /package/geometry/operators/{operatorCut.js → cutOperator.js} +0 -0
  196. /package/geometry/operators/{operatorDensify.js → densifyOperator.js} +0 -0
  197. /package/geometry/operators/{operatorDifference.js → differenceOperator.js} +0 -0
  198. /package/geometry/operators/{operatorDisjoint.js → disjointOperator.js} +0 -0
  199. /package/geometry/operators/{operatorEquals.js → equalsOperator.js} +0 -0
  200. /package/geometry/operators/{operatorGeodesicBuffer.js → geodesicBufferOperator.js} +0 -0
  201. /package/geometry/operators/{operatorGeodeticDensifyByLength.js → geodeticDensifyByLengthOperator.js} +0 -0
  202. /package/geometry/operators/{operatorGeodeticDistance.js → geodeticDistanceOperator.js} +0 -0
  203. /package/geometry/operators/{operatorIntersection.js → intersectionOperator.js} +0 -0
  204. /package/geometry/operators/{operatorIntersects.js → intersectsOperator.js} +0 -0
  205. /package/geometry/operators/{operatorLabelPoint.js → labelPointOperator.js} +0 -0
  206. /package/geometry/operators/{operatorOffset.js → offsetOperator.js} +0 -0
  207. /package/geometry/operators/{operatorOverlaps.js → overlapsOperator.js} +0 -0
  208. /package/geometry/operators/{operatorProximity.js → proximityOperator.js} +0 -0
  209. /package/geometry/operators/{operatorRelate.js → relateOperator.js} +0 -0
  210. /package/geometry/operators/{operatorReshape.js → reshapeOperator.js} +0 -0
  211. /package/geometry/operators/{operatorShapePreservingDensify.js → shapePreservingDensifyOperator.js} +0 -0
  212. /package/geometry/operators/{operatorSimplify.js → simplifyOperator.js} +0 -0
  213. /package/geometry/operators/{operatorTouches.js → touchesOperator.js} +0 -0
  214. /package/geometry/operators/{operatorUnion.js → unionOperator.js} +0 -0
  215. /package/geometry/operators/{operatorWithin.js → withinOperator.js} +0 -0
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{_ as e}from"./chunks/tslib.es6.js";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./Viewpoint.js";import{isSome as o}from"./core/arrayUtils.js";import s from"./core/Collection.js";import n from"./core/Error.js";import a from"./core/Loadable.js";import{loadAll as p}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as u}from"./core/maybe.js";import{MultiOriginJSONMixin as m}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as c}from"./core/promiseUtils.js";import{whenOnce as d}from"./core/reactiveUtils.js";import{addQueryParameter as g,isDataProtocol as f,dataComponents as b}from"./core/urlUtils.js";import{property as w}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import{reader as y}from"./core/accessorSupport/decorators/reader.js";import{subclass as A}from"./core/accessorSupport/decorators/subclass.js";import{writer as S}from"./core/accessorSupport/decorators/writer.js";import{readLoadable as _}from"./core/accessorSupport/read.js";import v from"./geometry/SpatialReference.js";import V from"./portal/PortalItem.js";import{typeKeyword as j}from"./portal/support/portalItemUtils.js";import I from"./support/MapFloorInfo.js";import{SaveOperationType as U}from"./webdoc/interfaces.js";import P from"./webdoc/RangeInfo.js";import O from"./webdoc/Widgets.js";import{getOptimalThumbnailSize as F}from"./webdoc/support/thumbnailUtils.js";import{loadFromSource as L}from"./webdoc/support/webdocLoadUtils.js";import{getLayerJSON as R}from"./webdoc/support/writeUtils.js";import k from"./webmap/ApplicationProperties.js";import x from"./webmap/Bookmark.js";import T from"./webmap/InitialViewProperties.js";import{Version as B}from"./webmap/Version.js";import E from"./webmap/background/ColorBackground.js";const N=s.ofType(x),J=new Map([["image/jpeg","jpeg"],["image/jpg","jpg"],["image/png","png"],["image/gif","gif"]]),M="ArcGIS Pro",Z=j.JSAPI;let W=class extends(m(a.LoadableMixin(h(r)))){constructor(e){super(e),this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1,this._thumbnailFilename=null,this._updateFromPromise=null,this.resourceReferences={portalItem:null,paths:[]},this.applicationProperties=null,this.bookmarks=new N,this.floorInfo=null,this.initialViewProperties=new T,this.portalItem=null,this.sourceVersion=null,this.widgets=null,this._debouncedSaveOperations=c((async(e,t,r)=>{const{save:i,saveAs:o}=await import("./webdoc/support/webdocSaveUtils.js");switch(e){case U.SAVE:return i(this.context,this,t);case U.SAVE_AS:return o(this.context,this,r,t)}})),this.authoringApp=this.authoringAppVersion=null,this._isAuthoringAppSetByUser=this._isAuthoringAppVersionSetByUser=!1}destroy(){this.portalItem=u(this.portalItem)}initialize(){if(this.when().catch((e=>{l.getLogger(this).error("#load()","Failed to load web map",e)})),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t)}}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp=Z}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}readInitialViewProperties(e,t){const r=new T;t.background&&(r.background=E.fromJSON(t.background));const o=t.initialState?.viewpoint;if(o){if(o.rotation){B.parse(t.version||"","webmap").lessThan(2,20)&&t.authoringApp===M&&(o.rotation*=-1)}r.viewpoint=i.fromJSON(o)}return t.mapRangeInfo&&(r.rangeInfo=P.fromJSON(t.mapRangeInfo)),t.spatialReference&&(r.spatialReference=v.fromJSON(t.spatialReference)),t.timeZone&&(r.timeZone=t.timeZone),r}writeInitialViewProperties(e,t,r,i){e&&(e.background?.color&&(t.background=e.background.write({},i)),e.viewpoint&&(t.initialState={viewpoint:e.viewpoint.write({},i)}),e.rangeInfo&&(t.mapRangeInfo=e.rangeInfo.toJSON(i)),e.spatialReference&&(t.spatialReference=e.spatialReference.write({},i)),t.timeZone=e.timeZone)}writeLayers(e,t,r,i){t[r]=this._writeLayers(e,i,"operational-layers")}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new B(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${this.context.currentVersion.major}.${this.context.currentVersion.minor}`}writeTables(e,t,r,i){const o=this._writeLayers(e,i,"tables");o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl||null}set thumbnailUrl(e){e?(this._override("thumbnailUrl",e),this._thumbnailFilename=this._generateCustomThumbnailFilename(e)):this._clearThumbnailOverride()}get updatingFromView(){return!!this._updateFromPromise}load(e){return this.addResolvingPromise(L(this.context,this)),Promise.resolve(this)}loadAll(){return p(this,(e=>{e(this.ground,this.basemap,this.layers,this.tables)}))}read(e,t){t={...t,origin:this.context.origin};const r=this._getAuthoringPropsState();_(this,e,(t=>super.read(e,t)),t),this._restoreAuthoringPropsFromState(r)}write(e,t){if("loaded"!==this.loadStatus){const e=new n("webmap:not-loaded","Web map must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web map must be loaded before it can be serialized",this.loadError||this.loadStatus),e}return this._removeDanglingLayerRefs(),t={...t,origin:this.context.origin,restrictedWebMapWriting:!0,webmap:this},super.write(e,t)}async save(e){return this._debouncedSaveOperations(U.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(U.SAVE_AS,t,e)}async updateFrom(e,t){const r=this._updateFromInternal(e,t);this._updateFromPromise=r,await r;r===this._updateFromPromise&&(this._updateFromPromise=null)}getLayerJSONFromResourceInfo(e){const t=this.resourceInfo;return this._collectAllLayersJSON([...t?.baseMap?.baseMapLayers||[],...t?.operationalLayers||[],...this.basemap?.resourceInfo?.data?.baseMapLayers||[]]).find((t=>t.id===e.id))}async updateItemThumbnail(){this.thumbnailUrl&&this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl,filename:this._thumbnailFilename})),this._clearThumbnailOverride())}getThumbnailState(){let e=this.thumbnailUrl;return e&&(e=this._isOverridden("thumbnailUrl")?e:g(e,"w","8192")),{thumbnailUrl:e,filename:this._thumbnailFilename}}restoreThumbnailFromState(e){this.thumbnailUrl=e.thumbnailUrl,this._thumbnailFilename=e.filename}_collectAllLayersJSON(e){return e.reduce(((e,t)=>(e.push(t),"GroupLayer"===t.layerType&&(e=e.concat(this._collectAllLayersJSON(t.layers||[]))),e)),[])}_writeLayers(e,t,r){t={...t,layerContainerType:r};return e.map((e=>R(e,"tables"===r?null:this.getLayerJSONFromResourceInfo(e),t))).filter(o).toArray()}_validateJSON(e){const t=B.parse(e.version||"","webmap");return this.context.currentVersion.validate(t),e.version=`${t.major}.${t.minor}`,e}_removeDanglingLayerRefs(){const e=this.applicationProperties,t=e?.viewing?.search,r=e=>this.allLayers.some((t=>t.id===e));if(t?.layers&&(t.layers=t.layers.filter((e=>r(e.id)))),t?.tables&&(t.tables=t.tables.filter((e=>this.tables.some((t=>t.id===e.id))))),e){const t=e.editing?.locationTracking;t?.info&&!r(t.info.layerId)&&(e.editing=null)}const i="presentation"in this?this.presentation:null,o=i?.slides;o&&o.forEach((e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter((e=>r(e.id))))}))}async _updateFromInternal(e,t){if(t??={},await d((()=>e.ready)),this._updateInitialViewProperties(e,t),e.map===this)for(const r of e.allLayerViews)"visible"in r&&"visible"in r.layer&&r._isOverridden("visible")&&(r.layer.visible=r.visible),"featureEffect"in r&&"featureEffect"in r.layer&&r._isOverridden("featureEffect")&&(r.layer.featureEffect=r.featureEffect);await this._updateThumbnailUrl(e,t),this.updateFromView(e)}_updateInitialViewProperties(e,t){if(t.backgroundExcluded||(this.initialViewProperties.background=e.background?.clone()),this.initialViewProperties.spatialReference=e.spatialReference?.clone(),this.initialViewProperties.timeZone=e.timeZone,t.viewpointExcluded||(this.initialViewProperties.viewpoint=new i({rotation:e.rotation,scale:t.scalePreserved?e.scale:null,targetGeometry:this._getViewExtent(e)})),!t.widgetsExcluded)for(const r of e.persistableViewModels)r.updateWebDocument(this)}_getViewExtent(e){const t=e.center.clone().normalize(),r=e.extent.clone(),i=r.width/2;return r.xmin=t.x-i,r.xmax=t.x+i,r}async _updateThumbnailUrl(e,t){if(t.thumbnailExcluded)return;const r=F(e,t.thumbnailSize),i=await e.takeScreenshot({format:"png",width:r.width,height:r.height});this._setAutoGeneratedThumbnail(i.dataUrl)}_setAutoGeneratedThumbnail(e){this.thumbnailUrl=e,this._thumbnailFilename=null}_clearThumbnailOverride(){this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"),this._thumbnailFilename=null}_generateCustomThumbnailFilename(e){if(f(e)){const t=b(e),r=t?.mediaType,i=r&&J.get(r.toLowerCase())||null,o=`thumbnail${Date.now()}`;return i?`${o}.${i}`:o}return null}_getAuthoringPropsState(){return{authoringApp:this.authoringApp,authoringAppVersion:this.authoringAppVersion,isAuthoringAppSetByUser:this._isAuthoringAppSetByUser,isAuthoringAppVersionSetByUser:this._isAuthoringAppVersionSetByUser}}_restoreAuthoringPropsFromState(e){e.isAuthoringAppSetByUser?this.authoringApp=e.authoringApp:this._isAuthoringAppSetByUser=!1,e.isAuthoringAppVersionSetByUser?this.authoringAppVersion=e.authoringAppVersion:this._isAuthoringAppVersionSetByUser=!1}};e([w()],W.prototype,"_updateFromPromise",void 0),e([w({type:k,json:{write:!0}})],W.prototype,"applicationProperties",void 0),e([w({type:String,json:{write:{allowNull:!0,ignoreOrigin:!0}}})],W.prototype,"authoringApp",null),e([S("authoringApp")],W.prototype,"writeAuthoringApp",null),e([w({type:String,json:{write:{allowNull:!0,ignoreOrigin:!0}}})],W.prototype,"authoringAppVersion",null),e([S("authoringAppVersion")],W.prototype,"writeAuthoringAppVersion",null),e([w({type:N,json:{write:{overridePolicy:e=>({enabled:!!(e&&e.length>0),ignoreOrigin:!0})}}})],W.prototype,"bookmarks",void 0),e([w({type:I,json:{name:"mapFloorInfo",write:!0}})],W.prototype,"floorInfo",void 0),e([w({type:T,nonNullable:!0,json:{read:{source:["background","initialState.viewpoint","mapRangeInfo","spatialReference","timeZone"]},write:{ignoreOrigin:!0,target:{background:{type:E},"initialState.viewpoint":{type:i},mapRangeInfo:{type:P},spatialReference:{type:v},"timeZone:":{type:String}}}}})],W.prototype,"initialViewProperties",void 0),e([y("initialViewProperties")],W.prototype,"readInitialViewProperties",null),e([S("initialViewProperties")],W.prototype,"writeInitialViewProperties",null),e([w({json:{read:!1,write:{target:"operationalLayers",ignoreOrigin:!0}}})],W.prototype,"layers",void 0),e([S("layers")],W.prototype,"writeLayers",null),e([w({type:V})],W.prototype,"portalItem",void 0),e([w()],W.prototype,"resourceInfo",void 0),e([w({readOnly:!0,type:B,json:{read:{source:"version"},write:{allowNull:!0,ignoreOrigin:!0,target:"version",isRequired:!0}}})],W.prototype,"sourceVersion",void 0),e([y("sourceVersion")],W.prototype,"readSourceVersion",null),e([S("sourceVersion")],W.prototype,"writeSourceVersion",null),e([w({json:{read:!1,write:{ignoreOrigin:!0}}})],W.prototype,"tables",void 0),e([S("tables")],W.prototype,"writeTables",null),e([w()],W.prototype,"thumbnailUrl",null),e([w()],W.prototype,"updatingFromView",null),e([w({type:O,json:{write:!0}})],W.prototype,"widgets",void 0),W=e([A("esri.WebDocument2D")],W);const $=W;export{$ as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ */
5
+ import{_ as r}from"./chunks/tslib.es6.js";import e from"./WebDocument2D.js";import t from"./core/Error.js";import{property as o}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import"./core/Logger.js";import"./core/RandomLCG.js";import{subclass as i}from"./core/accessorSupport/decorators/subclass.js";import s from"./linkChart/LinkChartProperties.js";import a from"./webmap/InitialViewProperties.js";import{currentVersion as p}from"./webmap/utils.js";import{Version as n}from"./webmap/Version.js";var c;const m={currentVersion:p,createInitialViewProperties:()=>new a,parseVersion:n.parse,itemType:"Web Link Chart",name:"linkchart",origin:"link-chart"};let l=c=class extends e{constructor(r){super(r),this.mapType="webLinkChart",this.linkChartProperties=new s}get activeLinkChartLayer(){return this.layers.find((({type:r})=>"link-chart"===r))}get context(){return m}static fromJSON(r){if(r)return new c({resourceInfo:r});throw new t("linkchart:empty-resource","Expected a JSON resource but got nothing")}updateFromView(r){this.linkChartProperties.layoutType=r.layoutType}};r([o({readOnly:!0})],l.prototype,"activeLinkChartLayer",null),r([o({json:{write:!0}})],l.prototype,"mapType",void 0),r([o({type:s,nonNullable:!0,json:{write:!0}})],l.prototype,"linkChartProperties",void 0),l=c=r([i("esri.WebLinkChart")],l);const h=l;export{h as default};
package/WebMap.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"./chunks/tslib.es6.js";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./Viewpoint.js";import{isSome as o}from"./core/arrayUtils.js";import s from"./core/Collection.js";import n from"./core/Error.js";import a from"./core/Loadable.js";import{loadAll as p}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as u}from"./core/maybe.js";import{MultiOriginJSONMixin as m}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as c}from"./core/promiseUtils.js";import{whenOnce as d}from"./core/reactiveUtils.js";import{addQueryParameter as g,isDataProtocol as f,dataComponents as w}from"./core/urlUtils.js";import{property as y}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import{reader as b}from"./core/accessorSupport/decorators/reader.js";import{subclass as A}from"./core/accessorSupport/decorators/subclass.js";import{writer as S}from"./core/accessorSupport/decorators/writer.js";import{readLoadable as v}from"./core/accessorSupport/read.js";import _ from"./geometry/SpatialReference.js";import j from"./networks/UtilityNetwork.js";import V from"./portal/PortalItem.js";import{typeKeyword as I}from"./portal/support/portalItemUtils.js";import U from"./support/MapFloorInfo.js";import P from"./webdoc/GeotriggersInfo.js";import{SaveOperationType as O}from"./webdoc/interfaces.js";import k from"./webdoc/RangeInfo.js";import L from"./webdoc/Widgets.js";import{getOptimalThumbnailSize as F}from"./webdoc/support/thumbnailUtils.js";import{loadFromSource as N}from"./webdoc/support/webdocLoadUtils.js";import{getLayerJSON as R}from"./webdoc/support/writeUtils.js";import T from"./webmap/ApplicationProperties.js";import E from"./webmap/Bookmark.js";import B from"./webmap/InitialViewProperties.js";import{Version as J}from"./webmap/Version.js";import x from"./webmap/background/ColorBackground.js";const M=new J(2,31),Z="Web Map",W="webmap",$="web-map",C=s.ofType(E),G=s.ofType(j),z=new Map([["image/jpeg","jpeg"],["image/jpg","jpg"],["image/png","png"],["image/gif","gif"]]),D="ArcGIS Pro",q=I.JSAPI,H={currentVersion:M,createInitialViewProperties:()=>new B,parseVersion:J.parse,itemType:Z,name:W,origin:$};let K=class extends(m(a.LoadableMixin(h(r)))){constructor(e){super(e),this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1,this._thumbnailFilename=null,this._updateFromPromise=null,this.resourceReferences={portalItem:null,paths:[]},this.applicationProperties=null,this.bookmarks=new C,this.floorInfo=null,this.geotriggersInfo=null,this.initialViewProperties=new B,this.ipsInfo=null,this.portalItem=null,this.presentation=null,this.sourceVersion=null,this.widgets=null,this.utilityNetworks=null,this._debouncedSaveOperations=c((async(e,t,r)=>{const{save:i,saveAs:o}=await import("./webdoc/support/webdocSaveUtils.js");switch(e){case O.SAVE:return i(H,this,t);case O.SAVE_AS:return o(H,this,r,t)}})),this.authoringApp=this.authoringAppVersion=null,this._isAuthoringAppSetByUser=this._isAuthoringAppVersionSetByUser=!1}destroy(){if(this.portalItem=u(this.portalItem),this.utilityNetworks){const e=this.utilityNetworks.removeAll();for(const t of e)t.destroy();this.utilityNetworks.destroy()}}initialize(){if(this.when().catch((e=>{l.getLogger(this).error("#load()","Failed to load web map",e)})),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t)}}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp=q}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}readInitialViewProperties(e,t){const r=new B;t.background&&(r.background=x.fromJSON(t.background));const o=t.initialState?.viewpoint;if(o){if(o.rotation){J.parse(t.version||"","webmap").lessThan(2,20)&&t.authoringApp===D&&(o.rotation*=-1)}r.viewpoint=i.fromJSON(o)}return t.mapRangeInfo&&(r.rangeInfo=k.fromJSON(t.mapRangeInfo)),t.spatialReference&&(r.spatialReference=_.fromJSON(t.spatialReference)),t.timeZone&&(r.timeZone=t.timeZone),r}writeInitialViewProperties(e,t,r,i){e&&(e.background?.color&&(t.background=e.background.write({},i)),e.viewpoint&&(t.initialState={viewpoint:e.viewpoint.write({},i)}),e.rangeInfo&&(t.mapRangeInfo=e.rangeInfo.toJSON(i)),e.spatialReference&&(t.spatialReference=e.spatialReference.write({},i)),t.timeZone=e.timeZone)}writeLayers(e,t,r,i){t[r]=this._writeLayers(e,i,"operational-layers")}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new J(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${M.major}.${M.minor}`}writeTables(e,t,r,i){const o=this._writeLayers(e,i,"tables");o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl||null}set thumbnailUrl(e){e?(this._override("thumbnailUrl",e),this._thumbnailFilename=this._generateCustomThumbnailFilename(e)):this._clearThumbnailOverride()}get updatingFromView(){return!!this._updateFromPromise}load(e){return this.addResolvingPromise(N(H,this)),Promise.resolve(this)}loadAll(){return p(this,(e=>{e(this.ground,this.basemap,this.layers,this.tables)}))}read(e,t){t={...t,origin:$};const r=this._getAuthoringPropsState();v(this,e,(t=>super.read(e,t)),t),this._restoreAuthoringPropsFromState(r)}write(e,t){if("loaded"!==this.loadStatus){const e=new n("webmap:not-loaded","Web map must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web map must be loaded before it can be serialized",this.loadError||this.loadStatus),e}return this._removeDanglingLayerRefs(),t={...t,origin:$,restrictedWebMapWriting:!0,webmap:this},super.write(e,t)}async save(e){return this._debouncedSaveOperations(O.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(O.SAVE_AS,t,e)}async updateFrom(e,t){const r=this._updateFromInternal(e,t);this._updateFromPromise=r,await r;r===this._updateFromPromise&&(this._updateFromPromise=null)}getLayerJSONFromResourceInfo(e){const t=this.resourceInfo;return this._collectAllLayersJSON([...t?.baseMap?.baseMapLayers||[],...t?.operationalLayers||[],...this.basemap?.resourceInfo?.data?.baseMapLayers||[]]).find((t=>t.id===e.id))}async updateItemThumbnail(){this.thumbnailUrl&&this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl,filename:this._thumbnailFilename})),this._clearThumbnailOverride())}getThumbnailState(){let e=this.thumbnailUrl;return e&&(e=this._isOverridden("thumbnailUrl")?e:g(e,"w","8192")),{thumbnailUrl:e,filename:this._thumbnailFilename}}restoreThumbnailFromState(e){this.thumbnailUrl=e.thumbnailUrl,this._thumbnailFilename=e.filename}_collectAllLayersJSON(e){return e.reduce(((e,t)=>(e.push(t),"GroupLayer"===t.layerType&&(e=e.concat(this._collectAllLayersJSON(t.layers||[]))),e)),[])}_writeLayers(e,t,r){t={...t,layerContainerType:r};return e.map((e=>R(e,"tables"===r?null:this.getLayerJSONFromResourceInfo(e),t))).filter(o).toArray()}_validateJSON(e){const t=J.parse(e.version||"","webmap");return M.validate(t),e.version=`${t.major}.${t.minor}`,e}_removeDanglingLayerRefs(){const e=this.applicationProperties,t=e?.viewing?.search,r=e=>this.allLayers.some((t=>t.id===e));if(t?.layers&&(t.layers=t.layers.filter((e=>r(e.id)))),t?.tables&&(t.tables=t.tables.filter((e=>this.tables.some((t=>t.id===e.id))))),e){const t=e.editing?.locationTracking;t?.info&&!r(t.info.layerId)&&(e.editing=null)}const i=this.presentation?.slides;i&&i.forEach((e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter((e=>r(e.id))))}))}async _updateFromInternal(e,t){if(t??={},await d((()=>e.ready)),this._updateInitialViewProperties(e,t),e.map===this)for(const r of e.allLayerViews)"visible"in r&&"visible"in r.layer&&r._isOverridden("visible")&&(r.layer.visible=r.visible),"featureEffect"in r&&"featureEffect"in r.layer&&r._isOverridden("featureEffect")&&(r.layer.featureEffect=r.featureEffect);await this._updateThumbnailUrl(e,t)}_updateInitialViewProperties(e,t){if(t.backgroundExcluded||(this.initialViewProperties.background=e.background?.clone()),this.initialViewProperties.spatialReference=e.spatialReference?.clone(),this.initialViewProperties.timeZone=e.timeZone,t.viewpointExcluded||(this.initialViewProperties.viewpoint=new i({rotation:e.rotation,scale:t.scalePreserved?e.scale:null,targetGeometry:this._getViewExtent(e)})),!t.widgetsExcluded)for(const r of e.persistableViewModels)r.updateWebDocument(this)}_getViewExtent(e){const t=e.center.clone().normalize(),r=e.extent.clone(),i=r.width/2;return r.xmin=t.x-i,r.xmax=t.x+i,r}async _updateThumbnailUrl(e,t){if(t.thumbnailExcluded)return;const r=F(e,t.thumbnailSize),i=await e.takeScreenshot({format:"png",width:r.width,height:r.height});this._setAutoGeneratedThumbnail(i.dataUrl)}_setAutoGeneratedThumbnail(e){this.thumbnailUrl=e,this._thumbnailFilename=null}_clearThumbnailOverride(){this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"),this._thumbnailFilename=null}_generateCustomThumbnailFilename(e){if(f(e)){const t=w(e),r=t?.mediaType,i=r&&z.get(r.toLowerCase())||null,o=`thumbnail${Date.now()}`;return i?`${o}.${i}`:o}return null}_getAuthoringPropsState(){return{authoringApp:this.authoringApp,authoringAppVersion:this.authoringAppVersion,isAuthoringAppSetByUser:this._isAuthoringAppSetByUser,isAuthoringAppVersionSetByUser:this._isAuthoringAppVersionSetByUser}}_restoreAuthoringPropsFromState(e){e.isAuthoringAppSetByUser?this.authoringApp=e.authoringApp:this._isAuthoringAppSetByUser=!1,e.isAuthoringAppVersionSetByUser?this.authoringAppVersion=e.authoringAppVersion:this._isAuthoringAppVersionSetByUser=!1}static fromJSON(e){const t=e;if(!t)throw new n("webmap:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:t})}};K.VERSION=M,e([y()],K.prototype,"_updateFromPromise",void 0),e([y({type:T,json:{write:!0}})],K.prototype,"applicationProperties",void 0),e([y({type:String,json:{write:{allowNull:!0,ignoreOrigin:!0}}})],K.prototype,"authoringApp",null),e([S("authoringApp")],K.prototype,"writeAuthoringApp",null),e([y({type:String,json:{write:{allowNull:!0,ignoreOrigin:!0}}})],K.prototype,"authoringAppVersion",null),e([S("authoringAppVersion")],K.prototype,"writeAuthoringAppVersion",null),e([y({type:C,json:{write:{overridePolicy:e=>({enabled:!!(e&&e.length>0),ignoreOrigin:!0})}}})],K.prototype,"bookmarks",void 0),e([y({type:U,json:{name:"mapFloorInfo",write:!0}})],K.prototype,"floorInfo",void 0),e([y({type:P,json:{write:!0}})],K.prototype,"geotriggersInfo",void 0),e([y({type:B,nonNullable:!0,json:{read:{source:["background","initialState.viewpoint","mapRangeInfo","spatialReference","timeZone"]},write:{ignoreOrigin:!0,target:{background:{type:x},"initialState.viewpoint":{type:i},mapRangeInfo:{type:k},spatialReference:{type:_},"timeZone:":{type:String}}}}})],K.prototype,"initialViewProperties",void 0),e([b("initialViewProperties")],K.prototype,"readInitialViewProperties",null),e([S("initialViewProperties")],K.prototype,"writeInitialViewProperties",null),e([y({json:{write:!0,name:"mapIPSInfo"}})],K.prototype,"ipsInfo",void 0),e([y({json:{read:!1,write:{target:"operationalLayers",ignoreOrigin:!0}}})],K.prototype,"layers",void 0),e([S("layers")],K.prototype,"writeLayers",null),e([y({type:V})],K.prototype,"portalItem",void 0),e([y({json:{write:!0}})],K.prototype,"presentation",void 0),e([y()],K.prototype,"resourceInfo",void 0),e([y({readOnly:!0,type:J,json:{read:{source:"version"},write:{allowNull:!0,ignoreOrigin:!0,target:"version",isRequired:!0}}})],K.prototype,"sourceVersion",void 0),e([b("sourceVersion")],K.prototype,"readSourceVersion",null),e([S("sourceVersion")],K.prototype,"writeSourceVersion",null),e([y({json:{read:!1,write:{ignoreOrigin:!0}}})],K.prototype,"tables",void 0),e([S("tables")],K.prototype,"writeTables",null),e([y()],K.prototype,"thumbnailUrl",null),e([y()],K.prototype,"updatingFromView",null),e([y({type:L,json:{write:!0}})],K.prototype,"widgets",void 0),e([y({type:G,json:{read:!0,write:!0}})],K.prototype,"utilityNetworks",void 0),K=e([A("esri.WebMap")],K);const Q=K;export{Q as default};
5
+ import{_ as o}from"./chunks/tslib.es6.js";import r from"./WebDocument2D.js";import t from"./core/Collection.js";import e from"./core/Error.js";import{property as s}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import"./core/Logger.js";import"./core/RandomLCG.js";import{subclass as i}from"./core/accessorSupport/decorators/subclass.js";import p from"./networks/UtilityNetwork.js";import n from"./webdoc/GeotriggersInfo.js";import m from"./webmap/InitialViewProperties.js";import{currentVersion as a}from"./webmap/utils.js";import{Version as c}from"./webmap/Version.js";const l={currentVersion:a,createInitialViewProperties:()=>new m,parseVersion:c.parse,itemType:"Web Map",name:"webmap",origin:"web-map"},u=t.ofType(p);let f=class extends r{constructor(o){super(o),this.geotriggersInfo=null,this.ipsInfo=null,this.presentation=null,this.utilityNetworks=null}destroy(){if(this.utilityNetworks){const o=this.utilityNetworks.removeAll();for(const r of o)r.destroy();this.utilityNetworks.destroy()}}get context(){return l}static fromJSON(o){if(o)return new this({resourceInfo:o});throw new e("webmap:empty-resource","Expected a JSON resource but got nothing")}updateFromView(o){}};f.VERSION=a,o([s({type:n,json:{write:!0}})],f.prototype,"geotriggersInfo",void 0),o([s({json:{write:!0,name:"mapIPSInfo"}})],f.prototype,"ipsInfo",void 0),o([s({json:{write:!0}})],f.prototype,"presentation",void 0),o([s({type:u,json:{read:!0,write:!0}})],f.prototype,"utilityNetworks",void 0),f=o([i("esri.WebMap")],f);const w=f;export{w as default};