@arcgis/core 4.34.0-next.74 → 4.34.0-next.75
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.
- package/PopupTemplate.js +1 -1
- package/applications/Components/QuantityFormatter.js +1 -1
- package/arcade/Pixel.js +5 -0
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/009556f323e58271bc7a.js +1 -0
- package/assets/esri/core/workers/chunks/{11acefc48c0354e675df.js → 0309d008e50e55c7ff1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd447dfc50ee7f511b84.js → 19c1f1431c0b2f4525a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{7219ceab0b6fae2e69b6.js → 280af3640f8e93c1024e.js} +2 -2
- package/assets/esri/core/workers/chunks/{5a476e6743902e35f81a.js.LICENSE.txt → 280af3640f8e93c1024e.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{e3ad0a390387c5847aca.js → 356c96fad88558be9054.js} +1 -1
- package/assets/esri/core/workers/chunks/{ada8e07ff12bc5d4a1d9.js → 37ff19a9c5c99bd4e7c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{d12f373fcf5848ddcd8a.js → 3f523bc8551e712c9bd4.js} +1 -1
- package/assets/esri/core/workers/chunks/{5b7e5ec6aea1f7f9b005.js → 3fecfe4f8ca2a5fd7360.js} +1 -1
- package/assets/esri/core/workers/chunks/{78b33c6d73824085c6d1.js → 48449abe795cb7a831eb.js} +1 -1
- package/assets/esri/core/workers/chunks/541bffd61006d0e36166.js +1 -0
- package/assets/esri/core/workers/chunks/{f4e9640306f64b1af7a3.js → 65ec21d29e8563fdbc55.js} +1 -1
- package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{fb669a2e50ca7aacac25.js → 71fef0a33b7ed9456e47.js} +1 -1
- package/assets/esri/core/workers/chunks/7430c462c350fdd26349.js +1 -0
- package/assets/esri/core/workers/chunks/{ff3fe5c97a98c8cab4ac.js → 7a23b127f551bf13ef54.js} +2 -2
- package/assets/esri/core/workers/chunks/{ff3fe5c97a98c8cab4ac.js.LICENSE.txt → 7a23b127f551bf13ef54.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{9c00c2263e52ad51c2a2.js → 8e428b0f33ef4688415e.js} +1 -1
- package/assets/esri/core/workers/chunks/{d682dd49bb9ee7f48f93.js → 9304c3cdf732745577fd.js} +1 -1
- package/assets/esri/core/workers/chunks/93b2e0a300b2758a1ca4.js +1 -0
- package/assets/esri/core/workers/chunks/{8d642b34d40edfe02d8e.js → 9c64b78c5c9b35b31d98.js} +2 -2
- package/assets/esri/core/workers/chunks/{8d642b34d40edfe02d8e.js.LICENSE.txt → 9c64b78c5c9b35b31d98.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{6dc62c170e9583222df2.js → a25b75de1bca1dd21941.js} +1 -1
- package/assets/esri/core/workers/chunks/a6533bab3b2fbc1e2a47.js +1 -0
- package/assets/esri/core/workers/chunks/{5c53deb45bc142219c76.js → b15ff6c9ef2de8a49853.js} +2 -2
- package/assets/esri/core/workers/chunks/{5c53deb45bc142219c76.js.LICENSE.txt → b15ff6c9ef2de8a49853.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/bccecd678faff927ac76.js +1 -0
- package/assets/esri/core/workers/chunks/{ce1f4508487298ab57b6.js → bd2dc1282c49125ede89.js} +1 -1
- package/assets/esri/core/workers/chunks/{f542bdc994a5ea3aa9d1.js → c38360d912f256519e06.js} +1 -1
- package/assets/esri/core/workers/chunks/cd1869e183001266c4c1.js +2 -0
- package/assets/esri/core/workers/chunks/{626c18c1bbc50b3b16b2.js.LICENSE.txt → cd1869e183001266c4c1.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{90321feb56f3a84f6e58.js → d153b29c542c37ae1636.js} +2 -2
- package/assets/esri/core/workers/chunks/{90321feb56f3a84f6e58.js.LICENSE.txt → d153b29c542c37ae1636.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/d55c55d39a253630d228.js +1 -0
- package/assets/esri/core/workers/chunks/{49f7a5523462aebf90fc.js → d66cdb9bb494da19696b.js} +2 -2
- package/assets/esri/core/workers/chunks/{49f7a5523462aebf90fc.js.LICENSE.txt → d66cdb9bb494da19696b.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/ed773dab5965e42a2879.js +2 -0
- package/assets/esri/core/workers/chunks/{7219ceab0b6fae2e69b6.js.LICENSE.txt → ed773dab5965e42a2879.js.LICENSE.txt} +1 -1
- package/assets/esri/images/portal/xrexperience16.png +0 -0
- package/chunks/Fog.glsl.js +6 -6
- package/chunks/GlowComposition.glsl.js +31 -12
- package/chunks/LineMarker.glsl.js +37 -36
- package/chunks/RibbonLine.glsl.js +83 -83
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/quantityFormatUtils.js +1 -1
- package/core/unitFormatUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/form/FormTemplate.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/curves/circularArcUtils.js +1 -1
- package/geometry/support/curves/closestPointOnCurve.js +1 -1
- package/geometry/support/curves/curveExtent.js +1 -1
- package/geometry/support/curves/lineUtils.js +5 -0
- package/interfaces.d.ts +270 -18
- package/kernel.js +1 -1
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/package.json +2 -2
- package/portal/PortalItem.js +1 -1
- package/renderers/ClassBreaksRenderer.js +1 -1
- package/renderers/DictionaryRenderer.js +1 -1
- package/renderers/DotDensityRenderer.js +1 -1
- package/renderers/HeatmapRenderer.js +1 -1
- package/renderers/PieChartRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/loadArcade.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/CIMSymbol.js +1 -1
- package/symbols/support/FeatureExpressionInfo.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/SurfaceCollisionConstraint.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/SurfaceCollisionCorrectionController.js +1 -1
- package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/flow/FlowWorker.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/flow/loadUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +23 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +36 -23
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +11 -11
- package/views/3d/webgl-engine/core/shaderLibrary/util/NoPerspective.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/layers/ImageryLayerView.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/assets/esri/core/workers/chunks/5a476e6743902e35f81a.js +0 -2
- package/assets/esri/core/workers/chunks/5a95688651d7e8b7101d.js +0 -1
- package/assets/esri/core/workers/chunks/626c18c1bbc50b3b16b2.js +0 -2
- package/assets/esri/core/workers/chunks/6da298da2ec09cced0b5.js +0 -1
- package/assets/esri/core/workers/chunks/8b1d2bbb2b2eb1830921.js +0 -1
- package/assets/esri/core/workers/chunks/a2f4b6d8da93f106852c.js +0 -1
- package/assets/esri/core/workers/chunks/d305ca524837c5dc81c8.js +0 -1
- package/assets/esri/core/workers/chunks/e6f2ac738df16fb5e13a.js +0 -1
- package/assets/esri/core/workers/chunks/e8d25d4ca9b335883f34.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7982],{4513:(e,a,r)=>{r.d(a,{S:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1449)]).then(r.bind(r,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(7005),r.e(3474),r.e(6445),r.e(6298),r.e(3546),r.e(8207)]).then(r.bind(r,51613))).default,CSVLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(5964)]).then(r.bind(r,68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(8506),r.e(364),r.e(8628),r.e(2593),r.e(9279),r.e(3549)]).then(r.bind(r,83508))).default,DimensionLayer:async()=>(await Promise.all([r.e(6131),r.e(3813)]).then(r.bind(r,71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(6131),r.e(9953),r.e(9186),r.e(5751)]).then(r.bind(r,68611))).default,FeatureLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(1072)]).then(r.bind(r,29784))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(6131),r.e(6730)]).then(r.bind(r,36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(8766)]).then(r.bind(r,15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(8389)]).then(r.bind(r,85582))).default,GroupLayer:async()=>(await Promise.all([r.e(6131),r.e(3562),r.e(8256)]).then(r.bind(r,85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(1956),r.e(364),r.e(3356),r.e(6699),r.e(3417)]).then(r.bind(r,42729))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(3356),r.e(6049),r.e(6699),r.e(7677),r.e(9689)]).then(r.bind(r,39689))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(6131),r.e(5335),r.e(1312)]).then(r.bind(r,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(6131),r.e(6298),r.e(5335),r.e(6894)]).then(r.bind(r,74660))).default,KMLLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1863)]).then(r.bind(r,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(8368),r.e(4649),r.e(217),r.e(2568),r.e(5655),r.e(1082),r.e(8692)]).then(r.bind(r,28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(6131),r.e(7721),r.e(9695)]).then(r.bind(r,49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(8368),r.e(4649),r.e(217),r.e(2568),r.e(5655),r.e(1082),r.e(1728)]).then(r.bind(r,71728))).default,MapImageLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(364),r.e(3249),r.e(7656),r.e(2042)]).then(r.bind(r,7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(5655),r.e(8110)]).then(r.bind(r,96299))).default,MediaLayer:async()=>(await Promise.all([r.e(7330),r.e(6131),r.e(2763)]).then(r.bind(r,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(6445),r.e(5363),r.e(4224)]).then(r.bind(r,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010),r.e(349)]).then(r.bind(r,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(9361),r.e(5549)]).then(r.bind(r,9352))).default,PointCloudLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(7984),r.e(7885)]).then(r.bind(r,77885))).default,RouteLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(217),r.e(979)]).then(r.bind(r,64185))).default,SceneLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(7005),r.e(3474),r.e(6445),r.e(6298),r.e(3546),r.e(1713)]).then(r.bind(r,36969))).default,StreamLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(1017),r.e(73)]).then(r.bind(r,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1956),r.e(8399),r.e(4111),r.e(8506),r.e(6731)]).then(r.bind(r,97483))).default,TileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(364),r.e(9186),r.e(3249),r.e(573)]).then(r.bind(r,71756))).default,UnknownLayer:async()=>(await r.e(146).then(r.bind(r,146))).default,UnsupportedLayer:async()=>(await r.e(5165).then(r.bind(r,45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(9186),r.e(5897),r.e(5314)]).then(r.bind(r,48757))).default,VideoLayer:async()=>(await Promise.all([r.e(6131),r.e(3910),r.e(5111),r.e(5323),r.e(7732)]).then(r.bind(r,86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(6131),r.e(7721),r.e(6650)]).then(r.bind(r,96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(1005)]).then(r.bind(r,21005))).default,WCSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(3356),r.e(6049),r.e(6699),r.e(7677),r.e(8854)]).then(r.bind(r,88854))).default,WFSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(9110)]).then(r.bind(r,21901))).default,WMSLayer:async()=>(await Promise.all([r.e(7330),r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5323),r.e(5181)]).then(r.bind(r,51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010),r.e(309)]).then(r.bind(r,20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010)]).then(r.bind(r,47314))).default}},23154:(e,a,r)=>{r.d(a,{K:()=>f,Q:()=>s});var t=r(77548),n=r(24183);const l=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:r,...l}=a||{},s=r?await r.fetchServiceMetadata(e,l):await(0,n.V)(e,l),i=(0,t.G$)();d(s),c(s);const o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;const u=`${(0,t.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,l):await(0,n.V)(u,l);return d(y),c(y),o.layersJSON={layers:y.layers,tables:y.tables},o}function i(e){const{type:a}=e;return!!a&&l.has(a)}function o(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(o)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(y)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},24183:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(78888);async function n(e,a){const{data:r}=await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}},27982:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(49186),n=r(84952),l=r(60694),s=r(92009),i=r(23154),o=r(77548),c=r(4513),u=r(24183);const y={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function d(e){const{properties:a,url:c}=e,d={...a,url:c},p=await async function(e,a){let r=(0,l.qg)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.V)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":m(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&m(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.iz)(e):null;return{title:null!=o&&r.name||(0,n.e7)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.An)(e).path}}}(e,a)),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const w={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},p="FeatureServer"===c,b="SceneServer"===c,L={parsedUrl:r,Constructor:null,layerId:p||b?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":if(null!=d){const{type:r}=await(0,u.V)(e,{customParameters:a});switch(f="FeatureLayer",r){case"Catalog Layer":f="CatalogLayer";break;case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() not supported for "${r}" layers`)}}else f=await async function(e,a){return(await(0,u.V)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.V)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.V)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.XX[e]&&(f=o.XX[e])}}break}case"3DTilesServer":throw new t.A("arcgis-layers:unsupported","fromUrl() not supported for 3DTiles layers");case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.V)(e,{customParameters:a});L.sourceJSON=r,L.preferredUrl=(0,o.$x)(),f=(0,i.K)(r.type)}break;default:f=w[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l,c=!1;switch(a){case"FeatureServer":{const a=await(0,i.Q)(e,{customParameters:r});l=(0,o.$x)(e,{preferredHost:a.preferredHost}),c=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.V)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.L)(e),n=await(0,u.V)(t,{customParameters:a}).catch(()=>null);return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.V)(e,{customParameters:r})}const y=t?.layers,d=t?.tables;return{preferredUrl:l,layers:y?.map(e=>({id:e.id})).reverse()||[],tables:d?.map(e=>({serverUrl:n,id:e.id})).reverse()||[],layerInfos:c?y:[],tableInfos:c?d:[]}}(e,c,a);if(p&&(L.preferredUrl=r.preferredUrl,L.sublayerInfos=r.layerInfos,L.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)L.layers=r.layers,L.tables=r.tables,p&&r.layerInfos?.length&&(L.sublayerConstructorProvider=await async function(e){if(!e.length)return;const a=new Set,r=[];for(const{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.K)(t))));const t=await Promise.all(r),n=new Map;return Array.from(a).forEach((e,a)=>{n.set(e,t[a])}),e=>n.get(e.type)}(r.layerInfos));else if(p||b){const e=r.layerInfos?.[0]??r.tableInfos?.[0];if(L.layerId=r.layers[0]?.id??r.tables[0]?.id,L.sourceJSON=e,p){const a=e?.type;f=(0,i.K)(a)}}}return L.Constructor=await h(f),L}(c,a?.customParameters),{Constructor:b,layerId:L,sourceJSON:S,parsedUrl:v,layers:P,tables:g}=p;if(P.length+g.length===0)return null!=L&&(d.layerId=L),null!=S&&(d.sourceJSON=S),new b(d);const I=new(0,(await Promise.all([r.e(6131),r.e(3562)]).then(r.bind(r,85989))).default)({title:v.title});return await async function(e,a,r){const t=a.sublayerConstructorProvider;for(const{id:n,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,n),i=w(l,n,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){const t=await h("FeatureLayer");a.tables.forEach(({id:n,serverUrl:l})=>{const s=w(l,n,f(a.tableInfos,n),t,r);e.tables.add(s)})}}(I,p,d),I}function f(e,a){return e?e.find(({id:e})=>e===a):null}function w(e,a,r,t,n){const l={...n,layerId:a};return null!=e&&(l.url=e),null!=r&&(l.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(l.sublayerTitleMode="service-name"),new t(l)}function m(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,c.S[e])()}},92009:(e,a,r)=>{r.d(a,{L:()=>u});var t=r(70333),n=r(78888),l=r(49186),s=r(74887),i=r(60694),o=r(20655),c=r(80812);async function u(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=l&&(r.portal=new o.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(u);if(!f?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const w=await d(f.url,u);return w.portalItem=f,w}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},f=d("anonymous").catch(()=>d("no-prompt")),[w,m]=await Promise.all([f,o]),h=m?.layers,p=w.data&&w.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:p[e].id}}else if(null!=s&&s<p.length)return{serverUrl:t,layerId:p[s].id};throw new Error("could not find matching associated sublayer")}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7982],{4513:(e,a,r)=>{r.d(a,{S:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1449)]).then(r.bind(r,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(7005),r.e(3474),r.e(6445),r.e(6298),r.e(3546),r.e(8207)]).then(r.bind(r,51613))).default,CSVLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(5964)]).then(r.bind(r,68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(8506),r.e(364),r.e(8628),r.e(2593),r.e(9279),r.e(3549)]).then(r.bind(r,83508))).default,DimensionLayer:async()=>(await Promise.all([r.e(6131),r.e(3813)]).then(r.bind(r,71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(6131),r.e(9953),r.e(9186),r.e(5751)]).then(r.bind(r,68611))).default,FeatureLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(1072)]).then(r.bind(r,29784))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(6131),r.e(6730)]).then(r.bind(r,36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(8766)]).then(r.bind(r,15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(8389)]).then(r.bind(r,85582))).default,GroupLayer:async()=>(await Promise.all([r.e(6131),r.e(3562),r.e(8256)]).then(r.bind(r,85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(1956),r.e(364),r.e(3356),r.e(6699),r.e(5794)]).then(r.bind(r,55942))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(3356),r.e(6049),r.e(6699),r.e(7677),r.e(9718)]).then(r.bind(r,19718))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(6131),r.e(5335),r.e(1312)]).then(r.bind(r,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(6131),r.e(6298),r.e(5335),r.e(6894)]).then(r.bind(r,74660))).default,KMLLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1863)]).then(r.bind(r,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(8368),r.e(4649),r.e(217),r.e(2568),r.e(5655),r.e(1082),r.e(8692)]).then(r.bind(r,28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(6131),r.e(7721),r.e(9695)]).then(r.bind(r,49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(8368),r.e(4649),r.e(217),r.e(2568),r.e(5655),r.e(1082),r.e(1728)]).then(r.bind(r,71728))).default,MapImageLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(364),r.e(3249),r.e(7656),r.e(2042)]).then(r.bind(r,7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(5655),r.e(8110)]).then(r.bind(r,96299))).default,MediaLayer:async()=>(await Promise.all([r.e(7330),r.e(6131),r.e(2763)]).then(r.bind(r,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(1017),r.e(6445),r.e(5363),r.e(4224)]).then(r.bind(r,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010),r.e(349)]).then(r.bind(r,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(9361),r.e(5549)]).then(r.bind(r,9352))).default,PointCloudLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(7984),r.e(7885)]).then(r.bind(r,77885))).default,RouteLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(217),r.e(979)]).then(r.bind(r,64185))).default,SceneLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(7005),r.e(3474),r.e(6445),r.e(6298),r.e(3546),r.e(1713)]).then(r.bind(r,36969))).default,StreamLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(1017),r.e(73)]).then(r.bind(r,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1956),r.e(8399),r.e(4111),r.e(8506),r.e(6731)]).then(r.bind(r,97483))).default,TileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(8399),r.e(708),r.e(4111),r.e(364),r.e(9186),r.e(3249),r.e(573)]).then(r.bind(r,71756))).default,UnknownLayer:async()=>(await r.e(146).then(r.bind(r,146))).default,UnsupportedLayer:async()=>(await r.e(5165).then(r.bind(r,45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(9186),r.e(5897),r.e(5314)]).then(r.bind(r,48757))).default,VideoLayer:async()=>(await Promise.all([r.e(6131),r.e(3910),r.e(5111),r.e(5323),r.e(7732)]).then(r.bind(r,86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(6131),r.e(7721),r.e(6650)]).then(r.bind(r,96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(6131),r.e(2869),r.e(1005)]).then(r.bind(r,21005))).default,WCSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(9953),r.e(3356),r.e(6049),r.e(6699),r.e(7677),r.e(8854)]).then(r.bind(r,88854))).default,WFSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5111),r.e(5323),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(8399),r.e(1017),r.e(9110)]).then(r.bind(r,21901))).default,WMSLayer:async()=>(await Promise.all([r.e(7330),r.e(6131),r.e(8219),r.e(2869),r.e(3910),r.e(5323),r.e(5181)]).then(r.bind(r,51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010),r.e(309)]).then(r.bind(r,20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(6131),r.e(8219),r.e(1010)]).then(r.bind(r,47314))).default}},23154:(e,a,r)=>{r.d(a,{K:()=>f,Q:()=>s});var t=r(77548),n=r(24183);const l=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:r,...l}=a||{},s=r?await r.fetchServiceMetadata(e,l):await(0,n.V)(e,l),i=(0,t.G$)();d(s),c(s);const o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;const u=`${(0,t.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,l):await(0,n.V)(u,l);return d(y),c(y),o.layersJSON={layers:y.layers,tables:y.tables},o}function i(e){const{type:a}=e;return!!a&&l.has(a)}function o(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(o)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(y)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},24183:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(78888);async function n(e,a){const{data:r}=await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}},27982:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(49186),n=r(84952),l=r(60694),s=r(92009),i=r(23154),o=r(77548),c=r(4513),u=r(24183);const y={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function d(e){const{properties:a,url:c}=e,d={...a,url:c},p=await async function(e,a){let r=(0,l.qg)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.V)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":m(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&m(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.iz)(e):null;return{title:null!=o&&r.name||(0,n.e7)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.An)(e).path}}}(e,a)),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const w={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},p="FeatureServer"===c,b="SceneServer"===c,L={parsedUrl:r,Constructor:null,layerId:p||b?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":if(null!=d){const{type:r}=await(0,u.V)(e,{customParameters:a});switch(f="FeatureLayer",r){case"Catalog Layer":f="CatalogLayer";break;case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() not supported for "${r}" layers`)}}else f=await async function(e,a){return(await(0,u.V)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.V)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.V)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.XX[e]&&(f=o.XX[e])}}break}case"3DTilesServer":throw new t.A("arcgis-layers:unsupported","fromUrl() not supported for 3DTiles layers");case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.V)(e,{customParameters:a});L.sourceJSON=r,L.preferredUrl=(0,o.$x)(),f=(0,i.K)(r.type)}break;default:f=w[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l,c=!1;switch(a){case"FeatureServer":{const a=await(0,i.Q)(e,{customParameters:r});l=(0,o.$x)(e,{preferredHost:a.preferredHost}),c=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.V)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.L)(e),n=await(0,u.V)(t,{customParameters:a}).catch(()=>null);return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.V)(e,{customParameters:r})}const y=t?.layers,d=t?.tables;return{preferredUrl:l,layers:y?.map(e=>({id:e.id})).reverse()||[],tables:d?.map(e=>({serverUrl:n,id:e.id})).reverse()||[],layerInfos:c?y:[],tableInfos:c?d:[]}}(e,c,a);if(p&&(L.preferredUrl=r.preferredUrl,L.sublayerInfos=r.layerInfos,L.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)L.layers=r.layers,L.tables=r.tables,p&&r.layerInfos?.length&&(L.sublayerConstructorProvider=await async function(e){if(!e.length)return;const a=new Set,r=[];for(const{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.K)(t))));const t=await Promise.all(r),n=new Map;return Array.from(a).forEach((e,a)=>{n.set(e,t[a])}),e=>n.get(e.type)}(r.layerInfos));else if(p||b){const e=r.layerInfos?.[0]??r.tableInfos?.[0];if(L.layerId=r.layers[0]?.id??r.tables[0]?.id,L.sourceJSON=e,p){const a=e?.type;f=(0,i.K)(a)}}}return L.Constructor=await h(f),L}(c,a?.customParameters),{Constructor:b,layerId:L,sourceJSON:S,parsedUrl:v,layers:P,tables:g}=p;if(P.length+g.length===0)return null!=L&&(d.layerId=L),null!=S&&(d.sourceJSON=S),new b(d);const I=new(0,(await Promise.all([r.e(6131),r.e(3562)]).then(r.bind(r,85989))).default)({title:v.title});return await async function(e,a,r){const t=a.sublayerConstructorProvider;for(const{id:n,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,n),i=w(l,n,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){const t=await h("FeatureLayer");a.tables.forEach(({id:n,serverUrl:l})=>{const s=w(l,n,f(a.tableInfos,n),t,r);e.tables.add(s)})}}(I,p,d),I}function f(e,a){return e?e.find(({id:e})=>e===a):null}function w(e,a,r,t,n){const l={...n,layerId:a};return null!=e&&(l.url=e),null!=r&&(l.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(l.sublayerTitleMode="service-name"),new t(l)}function m(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,c.S[e])()}},92009:(e,a,r)=>{r.d(a,{L:()=>u});var t=r(70333),n=r(78888),l=r(49186),s=r(74887),i=r(60694),o=r(20655),c=r(80812);async function u(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=l&&(r.portal=new o.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(u);if(!f?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const w=await d(f.url,u);return w.portalItem=f,w}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},f=d("anonymous").catch(()=>d("no-prompt")),[w,m]=await Promise.all([f,o]),h=m?.layers,p=w.data&&w.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:p[e].id}}else if(null!=s&&s<p.length)return{serverUrl:t,layerId:p[s].id};throw new Error("could not find matching associated sublayer")}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{4902:(t,e,i)=>{i.d(e,{PH:()=>p,sA:()=>n});var o=i(31635),s=i(40608);let r=0;const n=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},p=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};n(class{})},37838:(t,e,i)=>{i.d(e,{A:()=>Kt});var o,s=i(31635),r=i(69540),n=i(7762),p=i(25482),l=i(4718),a=i(53966),d=i(74887),c=i(10107),u=i(79901),y=i(36005),h=i(40608),g=i(43937),f=i(56507),v=i(30524),m=i(89893),C=i(84424);i(44208);let w=o=class extends C.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,l.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],w.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],w.prototype,"type",void 0),w=o=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],w);const M=w;var x;i(87811);let I=x=class extends p.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"returnType",void 0),I=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],I);const Z=I;var A;let j=A=class extends C.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new A({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=A=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var F=i(66159);let N=class extends p.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const R=N;var S,O=i(68197),_=i(65008);let T=S=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new S({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=S=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends p.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,l.o8)(this.colors),fields:(0,l.o8)(this.fields),normalizeField:this.normalizeField,series:(0,l.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[O.A],json:{type:[[f.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends R{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,L=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let P=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],P.prototype,"type",void 0),P=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],P);const z=P;var W;let D=W=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new W({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],D.prototype,"type",void 0),D=W=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);const K=D;var V;let G=V=class extends p.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new V({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],G.prototype,"sourceURL",void 0),G=V=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],G);const H=G;var X;let Q=X=class extends R{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const it=et;var ot;let st=ot=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new ot({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],st.prototype,"type",void 0),st=ot=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:R,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":z,"column-chart":K,"line-chart":it,"pie-chart":rt,image:Y}};var pt;let lt=pt=class extends C.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?z.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?it.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new pt((0,l.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],lt.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,s.Cg)([(0,g.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=pt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],lt);const at=lt;var dt=i(49852);let ct=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends C.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const gt=ht;var ft=i(93223),vt=i(83342);let mt=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],mt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[vt.A],json:{write:!0}})],mt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],mt.prototype,"type",void 0),mt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],mt);const Ct=mt,wt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut,utilityNetworkAssociations:Ct}},Mt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut}};var xt,It=i(93705),Zt=i(41227);let At=xt=class extends p.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new xt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"showNoDataRecords",void 0),At=xt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],At);const jt=At;var bt;let Ft=bt=class extends p.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new bt({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ft.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Ft.prototype,"orderByFields",void 0),Ft=bt=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Ft);const Nt=Ft;var Rt,St=i(4902);let Ot=Rt=class extends((0,St.sA)(_.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Rt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"visible",void 0),Ot=Rt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Ot);const _t=Ot;var Tt;let $t=Tt=class extends _t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Tt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),$t=Tt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],$t);const Et=$t;var Bt;let kt=Bt=class extends _t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Bt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],kt.prototype,"value",void 0),kt=Bt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],kt);const Jt=kt,qt="relationships/",Lt="expression/",Ut=n.A.ofType({key:"type",defaultKeyValue:"button",base:_t,typeMap:{button:Et,toggle:Jt}}),Pt={base:C.A,key:"type",typeMap:{media:at,custom:M,text:gt,attachments:m.A,fields:F.A,expression:b,relationship:ut,utilityNetworkAssociations:Ct}},zt=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...zt,"utility-network-associations"]);let Dt=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,f.aq)(Pt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(a.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter(t=>"fields"===t.type):[],s=i.length&&i.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===i?.origin?zt.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(i)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach(t=>{const i=e.fieldInfos.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());i?i.visible=!0:e.fieldInfos.push(t)}):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map(i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),at.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),gt.fromJSON(i)):"attachments"===i.type?m.A.fromJSON(i):"fields"===i.type?F.A.fromJSON(i):"expression"===i.type?b.fromJSON(i):"relationship"===i.type?ut.fromJSON(i):"utilityNetworkAssociations"===i.type?Ct.fromJSON(i):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(qt))return null;const o=e.replace(qt,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?ut.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${qt}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new gt({text:t})):s.push(new F.A),Array.isArray(e)&&e.length&&s.push(at.fromJSON({mediaInfos:e})),i&&s.push(m.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map(i=>(0,v.Dx)(t,e,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(qt)||t.startsWith(Lt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter(t=>!(t.startsWith(qt)||t.startsWith(Lt)))}};(0,s.Cg)([(0,c.MZ)({type:Ut})],Dt.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],Dt.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Dt.prototype,"readContent",null),(0,s.Cg)([(0,g.K)("web-scene","content",{popupElements:{type:n.A.ofType(Mt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,g.K)("content",{popupElements:{type:n.A.ofType(wt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[It.A],json:{write:!0}})],Dt.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Zt.A]})],Dt.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,g.K)("fieldInfos")],Dt.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:jt})],Dt.prototype,"layerOptions",void 0),(0,s.Cg)([(0,g.K)("layerOptions")],Dt.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Dt.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],Dt.prototype,"title",void 0),(0,s.Cg)([(0,g.K)("title")],Dt.prototype,"writeTitle",null),Dt=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],Dt);const Kt=Dt},41227:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.o{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s.Cg)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s.Cg)([(0,a.$)("esri.popup.FieldInfo")],c);const u=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},60950:(t,e,i)=>{i.d(e,{E_:()=>s,ym:()=>o});const o=Symbol("popupProvider");function s(t){return function(t){return!!t&&o in t}(t)?t[o]:null}},66159:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map(t=>t.toJSON())}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s.Cg)([(0,p.$)("esri.popup.content.FieldsContent")],c);const u=c},68780:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(93223)),a=i(40608),d=i(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o.Cg)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o.Cg)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o.Cg)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,i)=>{i.d(e,{D:()=>r,p:()=>s});var o=i(56507);function s(t){const e=(0,o.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(40608));let a=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o.Cg)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(31635),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.o{constructor(t){super(t),this.type=null}};(0,o.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o.Cg)([(0,n.$)("esri.popup.content.Content")],p);const l=p},89893:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(31635),s=i(69540),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424),l=i(66552),a=i(25482);const d=new l.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,o.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(p.A)){constructor(t){super(t),this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,o.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,o.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,o.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{4902:(t,e,i)=>{i.d(e,{PH:()=>p,sA:()=>n});var o=i(31635),s=i(40608);let r=0;const n=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},p=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:r++})}};return i=(0,o.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};n(class{})},37838:(t,e,i)=>{i.d(e,{A:()=>Kt});var o,s=i(31635),r=i(69540),n=i(7762),p=i(25482),l=i(4718),a=i(53966),d=i(74887),c=i(10107),u=i(79901),y=i(36005),h=i(40608),g=i(43937),f=i(56507),v=i(30524),m=i(89893),C=i(84424);i(44208);let w=o=class extends C.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,l.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],w.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],w.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],w.prototype,"type",void 0),w=o=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],w);const M=w;var x;i(87811);let I=x=class extends p.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],I.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"returnType",void 0),I=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],I);const Z=I;var A;let j=A=class extends C.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new A({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=A=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var F=i(66159);let N=class extends p.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const R=N;var S,O=i(68197),_=i(65008);let T=S=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new S({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=S=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends p.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,l.o8)(this.colors),fields:(0,l.o8)(this.fields),normalizeField:this.normalizeField,series:(0,l.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[O.A],json:{type:[[f.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends R{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,L=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let P=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],P.prototype,"type",void 0),P=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],P);const z=P;var W;let D=W=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new W({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:L.write,isRequired:!0}}})],D.prototype,"type",void 0),D=W=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);const K=D;var V;let G=V=class extends p.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new V({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],G.prototype,"sourceURL",void 0),G=V=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],G);const H=G;var X;let Q=X=class extends R{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const it=et;var ot;let st=ot=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new ot({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:L.write,isRequired:!0}}})],st.prototype,"type",void 0),st=ot=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:R,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":z,"column-chart":K,"line-chart":it,"pie-chart":rt,image:Y}};var pt;let lt=pt=class extends C.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?z.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?it.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new pt((0,l.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],lt.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,s.Cg)([(0,g.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=pt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],lt);const at=lt;var dt=i(49852);let ct=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends C.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const gt=ht;var ft=i(93223),vt=i(83342);let mt=class extends((0,r.OU)(C.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:f.jz,write:!0}})],mt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],mt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[vt.A],json:{write:!0}})],mt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],mt.prototype,"type",void 0),mt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],mt);const Ct=mt,wt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut,utilityNetworkAssociations:Ct}},Mt={base:null,key:"type",typeMap:{attachment:m.A,media:at,text:gt,expression:b,field:F.A,relationship:ut}};var xt,It=i(93705),Zt=i(41227);let At=xt=class extends p.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new xt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],At.prototype,"showNoDataRecords",void 0),At=xt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],At);const jt=At;var bt;let Ft=bt=class extends p.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new bt({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ft.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Ft.prototype,"orderByFields",void 0),Ft=bt=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Ft);const Nt=Ft;var Rt,St=i(4902);let Ot=Rt=class extends((0,St.sA)(_.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Rt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Ot.prototype,"visible",void 0),Ot=Rt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Ot);const _t=Ot;var Tt;let $t=Tt=class extends _t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Tt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],$t.prototype,"image",void 0),$t=Tt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],$t);const Et=$t;var Bt;let kt=Bt=class extends _t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Bt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],kt.prototype,"value",void 0),kt=Bt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],kt);const Jt=kt,qt="relationships/",Lt="expression/",Ut=n.A.ofType({key:"type",defaultKeyValue:"button",base:_t,typeMap:{button:Et,toggle:Jt}}),Pt={base:C.A,key:"type",typeMap:{media:at,custom:M,text:gt,attachments:m.A,fields:F.A,expression:b,relationship:ut,utilityNetworkAssociations:Ct}},zt=new Set(["attachments","fields","media","text","expression","relationship"]),Wt=new Set([...zt,"utility-network-associations"]);let Dt=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,f.aq)(Pt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(a.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter(t=>"fields"===t.type):[],s=i.length&&i.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,i){const o=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,i,[...o,...this._getContentExpressionInfos(this.content,o)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const i=new Set;return await this.collectRequiredFields(i,t,e),[...i].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===i?.origin?zt.has(t.type):Wt.has(t.type)).map(t=>t?.toJSON(i)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach(t=>{const i=e.fieldInfos.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());i?i.visible=!0:e.fieldInfos.push(t)}):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map(i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),at.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),gt.fromJSON(i)):"attachments"===i.type?m.A.fromJSON(i):"fields"===i.type?F.A.fromJSON(i):"expression"===i.type?b.fromJSON(i):"relationship"===i.type?ut.fromJSON(i):"utilityNetworkAssociations"===i.type?Ct.fromJSON(i):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(qt))return null;const o=e.replace(qt,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?ut.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${qt}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new gt({text:t})):s.push(new F.A),Array.isArray(e)&&e.length&&s.push(at.fromJSON({mediaInfos:e})),i&&s.push(m.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,i,o){o&&await Promise.all(o.map(o=>(0,v.Dx)(t,e,i,o.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(qt)||t.startsWith(Lt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter(t=>!(t.startsWith(qt)||t.startsWith(Lt)))}};(0,s.Cg)([(0,c.MZ)({type:Ut})],Dt.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],Dt.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Dt.prototype,"readContent",null),(0,s.Cg)([(0,g.K)("web-scene","content",{popupElements:{type:n.A.ofType(Mt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,g.K)("content",{popupElements:{type:n.A.ofType(wt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:Nt}})],Dt.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[It.A],json:{write:!0}})],Dt.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Zt.A]})],Dt.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,g.K)("fieldInfos")],Dt.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:jt})],Dt.prototype,"layerOptions",void 0),(0,s.Cg)([(0,g.K)("layerOptions")],Dt.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Dt.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],Dt.prototype,"title",void 0),(0,s.Cg)([(0,g.K)("title")],Dt.prototype,"writeTitle",null),Dt=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],Dt);const Kt=Dt},41227:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.o{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s.Cg)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s.Cg)([(0,a.$)("esri.popup.FieldInfo")],c);const u=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},60950:(t,e,i)=>{i.d(e,{E_:()=>s,ym:()=>o});const o=Symbol("popupProvider");function s(t){return function(t){return!!t&&o in t}(t)?t[o]:null}},66159:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(31635),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map(t=>t.toJSON())}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s.Cg)([(0,p.$)("esri.popup.content.FieldsContent")],c);const u=c},68780:(t,e,i)=>{i.d(e,{A:()=>u});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(93223)),a=i(40608),d=i(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o.Cg)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o.Cg)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o.Cg)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,i)=>{i.d(e,{D:()=>r,p:()=>s});var o=i(56507);function s(t){const e=(0,o.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(31635),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(44208),i(87811),i(40608));let a=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o.Cg)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(31635),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.o{constructor(t){super(t),this.type=null}};(0,o.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o.Cg)([(0,n.$)("esri.popup.content.Content")],p);const l=p},89893:(t,e,i)=>{i.d(e,{A:()=>h});var o=i(31635),s=i(69540),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424),l=i(66552),a=i(25482);const d=new l.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,o.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(p.A)){constructor(t){super(t),this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,o.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,o.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,o.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(31635),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s.Cg)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l}}]);
|