{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/views/draw/DrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/input/DrawEvents.js","webpack:///./node_modules/@arcgis/core/chunks/MultipointDrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/DrawTool.js","webpack:///./node_modules/@arcgis/core/views/draw/PointDrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/PolygonDrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/PolylineDrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/SegmentDrawAction.js","webpack:///./node_modules/@arcgis/core/views/draw/Draw.js","webpack:///./node_modules/@arcgis/core/views/interactive/GraphicManipulator.js","webpack:///./node_modules/@arcgis/core/renderers/support/clickToleranceUtils.js","webpack:///./node_modules/@arcgis/core/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js","webpack:///./node_modules/@arcgis/core/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js","webpack:///./node_modules/@arcgis/core/widgets/DistanceMeasurement2D.js","webpack:///./node_modules/@arcgis/core/widgets/support/InteractiveToolViewModel.js","webpack:///./node_modules/@arcgis/core/views/support/drapedUtils.js"],"names":["G","V","t","EventedAccessor","constructor","e","super","this","_hasZ","_cursorScreenPoint","_activePointerId","_stagedVertexUnsnapped","_lastVertexUnsnapped","_handles","i","_viewHandlesKey","_undoRedoHandlesKey","_drawToolHandlesKey","_nativeEventHistory","undoStack","redoStack","interactiveUndoDisabled","history","redoHistory","snapToScene","view","elevationInfo","defaultZ","_coordinateHelper","u","hasZ","spatialReference","_snappingManager","snappingManager","_editGeometryOperations","f","g","editGeometryType","_snappingGraphicsLayer","c","id","SNAPPING_GRAPHICS_LAYER_ID","listMode","internal","_snappingContext","x","editGeometryOperations","mode","offset","pointer","visualizer","y","_activeComponent","v","_","Local","data","components","push","normalizeCtorArgs","initialize","_snappingOperation","w","type","map","layers","add","destroy","remove","s","doneSnapping","o","vertices","pos","_stagedVertex","_committedVertices","pointToArray","notifyChange","stagedPoint","r","canUndo","canRedo","undo","redo","getCoordsFromScreenPoint","screenToMap","n","z","getCoordsAndPointFromScreenPoint","vertex","mapPoint","a","O","sceneIntersectionHelper","intersectElevationFromScreen","d","_getGeometryZValue","P","toMap","_pushCursorVertex","m","p","snap","then","_popCursorVertex","_abortSnapping","abort","_isDuplicateOfLastVertex","getLastVertex","vectorToDehydratedPoint","_shouldHandlePointerEvent","_isPrimaryPointerAction","pointerId","_vertexAddHandler","_addVertex","native","_drawCompleteHandler","_completeDrawing","pointerType","button","h","readOnly","prototype","Boolean","nonNullable","l","S","vertexIndex","defaultPrevented","preventDefault","coordinates","length","_popVertexOnPointerMove","_addVertexOnPointerUp","_addViewHandles","_addUndoRedoHandles","_removeViewHandles","_removeUndoRedoHandles","emit","complete","on","stopPropagation","TOOL","_updateCursor","key","repeat","vertexAdd","pan","operation","pop","index","arrayToVector","appendVertex","Event","Object","freeze","defineProperty","__proto__","Symbol","toStringTag","value","EventedMixin","drawOperation","manipulators","geometryType","drawingMode","snapToSceneEnabled","drawSurface","elevationDrawSurface","hasM","handles","onVertexAdd","onVertexRemove","onVertexUpdate","onCursorUpdate","onComplete","finishToolCreation","_set","interactive","updating","completeCreateOperation","onDeactivate","isCompleted","cancel","getVertexCoords","onInputEvent","reset","constructOnly","_addDrawTool","_removeDrawTool","_drawTool","addAndActivateTool","tools","_panEnabled","_dragEnabled","_clickEnabled","T","_isDragging","viewAlignedCoordinateSystem","_getClickModeViewHandles","_getDragModeViewHandles","_resetGeometry","arguments","activeAction","create","C","layer","selectable","grabbable","dragging","cursor","events","EventEmitter","_circleCollisionCache","_graphicSymbolChangedHandle","_originalSymbol","symbol","attachSymbolChanged","graphic","_get","_updateGraphicSymbol","grabbableForEvent","action","detachSymbolChanged","_resetGraphicSymbol","intersectionDistance","visible","geometry","_intersectDistance2D","_intersectDistance3D","attach","detach","focusedSymbol","_focused","originalPoint","equals","b","clone","radiusPx","size","D","toScreen","xoffset","yoffset","include","j","renderSpatialReference","state","camera","eye","Math","max","abs","stops","filter","maxSize","minSize","floor","renderer","event","visualVariables","uniqueValueInfos","forEach","classBreakInfos","W","E","M","_drawActive","_measurementLayer","_manipulatorLayer","_vertices","geodesicDistanceThreshold","measurement","measurementLabel","messages","I","async","_draw","addMany","focus","unit","palette","_updatePolylines","removeMany","removeAll","onActivate","_startSketch","onShow","onHide","_updateSketch","_stopSketch","manipulator","manipulatorId","U","next","L","coord","findById","drawing","original","F","graphics","getItemAt","pathPrimaryColor","pathSecondaryColor","pathWidth","k","symbolLayers","effects","dashTemplate","lineDashEnding","controlPointEnding","enable","capStyle","joinStyle","width","color","haloColor","haloSize","font","family","extent","center","text","style","handleColor","handleWidth","outline","A","paths","isGeographic","R","WGS84","isWebMercator","B","isWGS84","Number","supportedViewType","unsupportedErrorMessage","clear","tool","disabled","active","_validateUnit","defaultUnit","_override","_clearOverride","_validateUnits","ready","createTool","removeTool","constructTool","unitOptions","includes","slice","aliasOf","String","buttonDisabled","widgetIcon","base","container","hint","hintText","panelError","measurementItem","measurementItemDisabled","measurementItemTitle","measurementItemValue","settings","units","unitsLabel","unitsSelect","unitsSelectWrapper","actionSection","newMeasurementButton","iconClass","label","messagesUnits","viewModel","render","supported","class","unsupported","classes","distance","for","onchange","_changeUnit","bind","systems","pluralCapitalized","$","onclick","_newMeasurement","title","newMeasurement","start","target","options","selectedIndex","source","overridable","_baseHandles","_loggedUnsupportedErrorOnce","logger","getLogger","declaredClass","logError","item","created","activeTool","initial","once","error","resolution","overlayPixelSizeInMapUnits","basemapSpatialReference","xmin","min","ymin","xmax","ymax","intersects"],"mappings":"wJAIgvCA,E,wSAAE,IAAIC,EAAED,EAAE,cAAcE,OAAEC,gBAAgBC,YAAYC,GAAE,MAACC,MAAMD,GAAGE,KAAKC,MAAM,KAAKD,KAAKE,mBAAmB,KAAKF,KAAKG,iBAAiB,KAAKH,KAAKI,uBAAuB,KAAKJ,KAAKK,qBAAqB,KAAKL,KAAKM,SAAS,IAAIC,OAAEP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gD,eAAER,GAAGQ,eAAEY,EAAE5D,kBAAkBuD,EAAExE,EAAE,MAAMsF,EAAElG,EAAE2C,EAAEwB,EAAEgC,EAAEnG,EAAEiD,EAAEkB,EAAE9B,EAAErC,EAAE2C,EAAEwB,EAAEwD,EAAE3H,EAAEiD,EAAEkB,GAAGtC,iBAAiBI,GAAGwD,EAAE,OAAOpB,EAAE0V,KAAKvK,KAAKwK,IAAI9T,EAAE7D,GAAGgC,EAAE4V,KAAKzK,KAAKwK,IAAI7T,EAAEwB,GAAGtD,EAAE6V,KAAK1K,KAAKC,IAAIvJ,EAAE7D,GAAGgC,EAAE8V,KAAK3K,KAAKC,IAAItJ,EAAEwB,GAAGtD,EAAExC,iBAAiBI,EAAEoC,EAAE,SAASA,EAAElE,EAAE0E,EAAEjE,GAAG,MAAMyD,EAAEzD,EAAEoF,MAAM7F,GAAG,OAAGH,eAAEqE,IAAmBoB,EAAEpB,EAAEe,iBAAIxE,EAAEuD,GAAGiW,WAAWvV,GAAG,MAAMV,EAAE,IAAIvD","file":"js/chunk-db1c94d6.a22e9fc9.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import t from\"../../core/Evented.js\";import i from\"../../core/Handles.js\";import{clone as r}from\"../../core/lang.js\";import{isSome as s,destroyMaybe as o,isNone as n,unwrapOr as a}from\"../../core/maybe.js\";import{ignoreAbortErrors as p}from\"../../core/promiseUtils.js\";import{createScreenPointArray as d}from\"../../core/screenUtils.js\";import{property as h}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as l}from\"../../core/accessorSupport/decorators/subclass.js\";import c from\"../../layers/GraphicsLayer.js\";import{makeDehydratedPoint as m}from\"../../layers/graphics/dehydratedFeatures.js\";import{ViewingMode as _}from\"../ViewingMode.js\";import{SnappingVisualizer2D as y}from\"../2d/interactive/SnappingVisualizer2D.js\";import{createCoordinateHelper as u}from\"../interactive/coordinateHelper.js\";import{EditGeometry as g,Component as v}from\"../interactive/editGeometry/EditGeometry.js\";import{EditGeometryOperations as f}from\"../interactive/editGeometry/EditGeometryOperations.js\";import{SnappingContext as x}from\"../interactive/snapping/SnappingContext.js\";import{SnappingOperation as w}from\"../interactive/snapping/SnappingOperation.js\";var G;let V=G=class extends t.EventedAccessor{constructor(e){super(e),this._hasZ=null,this._cursorScreenPoint=null,this._activePointerId=null,this._stagedVertexUnsnapped=null,this._lastVertexUnsnapped=null,this._handles=new i,this._viewHandlesKey=\"view-handles\",this._undoRedoHandlesKey=\"undo-redo-handles\",this._drawToolHandlesKey=\"draw-tool\",this._nativeEventHistory={undoStack:[],redoStack:[]},this.interactiveUndoDisabled=!1,this.history=[],this.redoHistory=[],this.snapToScene=!1,this.view=null,this.elevationInfo=null,this.defaultZ=0,this._coordinateHelper=u(e.hasZ,!1,e.view.spatialReference),this._snappingManager=e.snappingManager,this._editGeometryOperations=new f(new g(e.editGeometryType??\"polygon\",this._coordinateHelper)),this._snappingGraphicsLayer=new c({id:G.SNAPPING_GRAPHICS_LAYER_ID,listMode:\"hide\",internal:!0}),this._snappingContext=new x({editGeometryOperations:this._editGeometryOperations,elevationInfo:{mode:\"on-the-ground\",offset:0},pointer:\"mouse\",visualizer:new y(this._snappingGraphicsLayer)}),this._activeComponent=new v(e.view.spatialReference,_.Local),this._editGeometryOperations.data.components.push(this._activeComponent)}normalizeCtorArgs(e){const t={...e};return delete t.editGeometryType,t}initialize(){this._snappingOperation=new w({view:this.view}),\"2d\"===this.view.type&&this.view.map.layers.add(this._snappingGraphicsLayer)}destroy(){this._handles.destroy(),this.view.map.layers.remove(this._snappingGraphicsLayer),this._snappingGraphicsLayer.destroy(),s(this._snappingManager)&&this._snappingManager.doneSnapping(),this._snappingOperation=o(this._snappingOperation),this._editGeometryOperations.destroy()}get _committedVertices(){return this._editGeometryOperations.data.components[0].vertices.map((e=>e.pos))}get vertices(){return s(this._stagedVertex)?[...this._committedVertices,this._coordinateHelper.pointToArray(this._stagedVertex)]:this._committedVertices}get hasZ(){return s(this._hasZ)?this._hasZ:\"3d\"===this.view.type}set hasZ(e){this._hasZ=e,this.notifyChange(\"hasZ\")}get _stagedVertex(){return this._snappingOperation.stagedPoint}set _stagedVertex(e){this._snappingOperation.stagedPoint=r(e)}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this.canUndo&&this._editGeometryOperations.undo()}redo(){this.canRedo&&this._editGeometryOperations.redo()}getCoordsFromScreenPoint(e){const t=this.screenToMap(e);return n(t)?null:t.hasZ?[t.x,t.y,t.z]:[t.x,t.y]}getCoordsAndPointFromScreenPoint(e){const t=this.screenToMap(e);return n(t)?null:t.hasZ?{vertex:[t.x,t.y,t.z],mapPoint:t}:{vertex:[t.x,t.y],mapPoint:t}}screenToMap(e){let t=null;if(\"3d\"===this.view.type)if(this.hasZ){const i=a(this.elevationInfo,O);t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(d(e.x,e.y),i,this._getGeometryZValue())}else{const i=a(this.elevationInfo,P);t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(d(e.x,e.y),i,0),s(t)&&(t.z=void 0)}else t=this.view.toMap(e),s(t)&&(t.z=this.hasZ?this._getGeometryZValue():void 0);return t}_pushCursorVertex(e,t){const i=m(e[0],e[1],null,this.view.spatialReference);this._stagedVertexUnsnapped=i;const r=this._snappingManager;if(n(r))return this._stagedVertex=i,void t();p(this._snappingOperation.snap(i,r,this._snappingContext)).then((()=>{t()}))}_popCursorVertex(){this._stagedVertexUnsnapped=null,this._stagedVertex=null}_getGeometryZValue(){return this.defaultZ}_abortSnapping(){this._snappingOperation.abort()}_isDuplicateOfLastVertex(e){const t=this._editGeometryOperations.data.components[0].getLastVertex();if(s(t)&&e[0]===t[0]&&e[1]===t[1])return!0;const{x:i,y:r}=this._coordinateHelper.vectorToDehydratedPoint(e);return!(!s(this._lastVertexUnsnapped)||i!==this._lastVertexUnsnapped.x||r!==this._lastVertexUnsnapped.y)}_shouldHandlePointerEvent(e){return this._isPrimaryPointerAction(e)&&(n(this._activePointerId)||this._activePointerId===e.pointerId)}_vertexAddHandler(e){const t=s(this._stagedVertex)?this._coordinateHelper.pointToArray(this._stagedVertex):this.getCoordsFromScreenPoint(this._cursorScreenPoint);s(t)&&this._addVertex(t,e.native)}_drawCompleteHandler(e){this._completeDrawing(e.native)}_isPrimaryPointerAction(e){return\"mouse\"!==e.pointerType||0===e.button}};V.SNAPPING_GRAPHICS_LAYER_ID=\"DrawAction-snapping-graphics-layer\",e([h({readOnly:!0})],V.prototype,\"vertices\",null),e([h({type:Boolean,nonNullable:!0})],V.prototype,\"interactiveUndoDisabled\",void 0),e([h({readOnly:!0})],V.prototype,\"history\",void 0),e([h({readOnly:!0})],V.prototype,\"redoHistory\",void 0),e([h()],V.prototype,\"snapToScene\",void 0),e([h()],V.prototype,\"view\",void 0),e([h()],V.prototype,\"elevationInfo\",void 0),e([h({nonNullable:!0})],V.prototype,\"defaultZ\",void 0),e([h()],V.prototype,\"hasZ\",null),e([h()],V.prototype,\"_snappingOperation\",void 0),e([h()],V.prototype,\"_stagedVertex\",null),V=G=e([l(\"esri.views.draw.DrawAction\")],V);const O={mode:\"absolute-height\",offset:0},P={mode:\"on-the-ground\",offset:0},S=V;export{S as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nclass t{constructor(t,e,s,i){this.view=t,this.native=e,this.vertexIndex=s,this.vertices=i,this.defaultPrevented=!1,this.type=\"vertex-add\"}preventDefault(){this.defaultPrevented=!0}}class e{constructor(t,e,s,i){this.view=t,this.native=e,this.vertexIndex=s,this.vertices=i,this.defaultPrevented=!1,this.type=\"vertex-update\"}preventDefault(){this.defaultPrevented=!0}}class s{constructor(t,e,s,i){this.view=t,this.native=e,this.vertexIndex=s,this.vertices=i,this.defaultPrevented=!1,this.type=\"vertex-remove\"}preventDefault(){this.defaultPrevented=!0}}class i{constructor(t,e,s,i,r=null){this.view=t,this.native=e,this.vertexIndex=s,this.vertices=i,this.mapPoint=r,this.coordinates=null,this.defaultPrevented=!1,this.type=\"cursor-update\",this.coordinates=1===i.length?i[0]:null}preventDefault(){this.defaultPrevented=!0}}class r{constructor(t,e){this.native=t,this.vertices=e,this.coordinates=null,this.defaultPrevented=!1,this.type=\"draw-complete\",this.coordinates=1===e.length?e[0]:null}preventDefault(){this.defaultPrevented=!0}}export{i as CursorUpdateEvent,r as DrawCompleteEvent,t as VertexAddEvent,s as VertexRemoveEvent,e as VertexUpdateEvent};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"./tslib.es6.js\";import\"../geometry.js\";import{isSome as t}from\"../core/maybe.js\";import\"../core/Logger.js\";import\"../core/accessorSupport/ensureType.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import\"../core/accessorSupport/set.js\";import{subclass as i}from\"../core/accessorSupport/decorators/subclass.js\";import o from\"../views/draw/DrawAction.js\";import{VertexRemoveEvent as s,VertexAddEvent as r,CursorUpdateEvent as n,DrawCompleteEvent as a}from\"../views/draw/input/DrawEvents.js\";import{ViewEventPriorities as d}from\"../views/input/InputManager.js\";import{SKETCH_KEYS as p}from\"../views/interactive/keybindings.js\";import{createScreenPointFromEvent as h}from\"../views/support/screenUtils.js\";import c from\"../geometry/Point.js\";let _=class extends o{constructor(e){super(e),this._popVertexOnPointerMove=!1,this._addVertexOnPointerUp=!1}initialize(){this._addViewHandles(),this._addUndoRedoHandles()}destroy(){this._removeViewHandles(),this._removeUndoRedoHandles(),this.emit(\"destroy\")}undo(){super.undo(),this.notifyChange(\"vertices\")}redo(){super.redo(),this.notifyChange(\"vertices\")}complete(){this._completeDrawing()}_addViewHandles(){this._removeViewHandles(),this._handles.add([this.view.on(\"click\",(e=>{e.stopPropagation()}),d.TOOL),this.view.on(\"pointer-down\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._activePointerId=e.pointerId,this._addVertexOnPointerUp=!0,this._cursorScreenPoint=h(e),\"touch\"===e.pointerType&&this._updateCursor(e.native))}),d.TOOL),this.view.on(\"pointer-move\",(e=>{this._popVertexOnPointerMove&&(this.undo(),this._popVertexOnPointerMove=!1),this._abortSnapping(),this._cursorScreenPoint=h(e),\"touch\"!==e.pointerType&&this._updateCursor(e.native)}),d.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._addVertexOnPointerUp=!1)}),d.TOOL),this.view.on(\"pointer-up\",(e=>{if(this._shouldHandlePointerEvent(e))if(this._abortSnapping(),this._activePointerId=null,this._addVertexOnPointerUp)this._vertexAddHandler(e);else{const t=\"touch\"===e.pointerType;this._updateCursor(e.native,t)}}),d.TOOL),this.view.on(\"drag\",[\"Shift\"],(e=>{e.stopPropagation()}),d.TOOL),this.view.on(\"double-click\",(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),d.TOOL),this.view.on(\"double-click\",[\"Control\"],(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),d.TOOL),this.view.on(\"key-down\",(e=>{const{key:t,repeat:i}=e;t===p.vertexAdd&&!i&&this._cursorScreenPoint?(e.stopPropagation(),this._abortSnapping(),this._vertexAddHandler(e)):t!==p.complete||i?t!==p.undo||this.interactiveUndoDisabled||i?t!==p.redo||this.interactiveUndoDisabled||i?t!==p.pan||i||e.stopPropagation():(e.stopPropagation(),this.redo()):(e.stopPropagation(),this.undo()):(e.stopPropagation(),this._drawCompleteHandler(e))}),d.TOOL),this.view.on(\"key-up\",(e=>{e.key===p.pan&&e.stopPropagation()}),d.TOOL)],this._viewHandlesKey)}_addUndoRedoHandles(){this._removeUndoRedoHandles(),this._handles.add([this._editGeometryOperations.on(\"vertex-remove\",(e=>{if(this.notifyChange(\"vertices\"),\"undo\"===e.operation){const i=this._nativeEventHistory.undoStack.pop();this._nativeEventHistory.redoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"undo\",new s(this.view,i,e.vertices[0].index,o))}})),this._editGeometryOperations.on(\"vertex-add\",(e=>{if(this.notifyChange(\"vertices\"),\"apply\"===e.operation){const e=this._nativeEventHistory.undoStack[this._nativeEventHistory.undoStack.length],t=this._committedVertices.length-1,i=new r(this.view,e,t,this.vertices);this.emit(\"vertex-add\",i),i.defaultPrevented&&(this._popVertexOnPointerMove=!0)}else if(\"redo\"===e.operation){const i=this._nativeEventHistory.redoStack.pop();this._nativeEventHistory.undoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"redo\",new r(this.view,i,e.vertices[0].index,o))}}))],this._undoRedoHandlesKey)}_removeViewHandles(){this._handles.remove(this._viewHandlesKey)}_removeUndoRedoHandles(){this._handles.remove(this._undoRedoHandlesKey)}_addVertex(e,t){const i=this._coordinateHelper.arrayToVector(e);if(this._isDuplicateOfLastVertex(i))return;this._lastVertexUnsnapped=this._stagedVertexUnsnapped,this._popCursorVertex(),this._editGeometryOperations.appendVertex(i);const o=t||new Event(\"placeholder\");this._nativeEventHistory.undoStack.push(o)}_updateCursor(e,i=!1){if(this._popCursorVertex(),!this._cursorScreenPoint)return;const o=this.getCoordsAndPointFromScreenPoint(this._cursorScreenPoint);t(o)&&!i&&this._pushCursorVertex(o.vertex,(()=>this.emit(\"cursor-update\",new n(this.view,e,this._activeComponent.vertices.length,this.vertices,t(this._stagedVertex)?new c(this._stagedVertex):null))))}_completeDrawing(e){if(this._activePointerId=null,this._popCursorVertex(),this._abortSnapping(),t(this._snappingManager)&&this._snappingManager.doneSnapping(),this.vertices.length<1)return;const i=new a(e,this.vertices);this.emit(\"draw-complete\",i),i.defaultPrevented||this._removeViewHandles()}};_=e([i(\"esri.views.draw.MultipointDrawAction\")],_);const v=Object.freeze(Object.defineProperty({__proto__:null,get MultipointDrawAction(){return _}},Symbol.toStringTag,{value:\"Module\"}));export{_ as M,v as a};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import t from\"../../core/Evented.js\";import{HandleOwnerMixin as o}from\"../../core/HandleOwner.js\";import{unwrapOr as r,destroyMaybe as i}from\"../../core/maybe.js\";import{property as n}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as a}from\"../../core/accessorSupport/decorators/subclass.js\";import{DrawOperation as s}from\"./DrawOperation.js\";import{SceneDrawSurface as p,ElevationDrawSurface as d}from\"./drawSurfaces.js\";import{InteractiveToolBase as l}from\"../interactive/InteractiveToolBase.js\";let h=class extends(o(t.EventedMixin(l))){constructor(e){super(e),this.defaultZ=0,this.elevationInfo=null,this.hasZ=!0,this.mode=null,this.snapToScene=null,this.type=\"draw-3d\"}initialize(){const e=r(this.elevationInfo,{mode:this.hasZ?\"absolute-height\":\"on-the-ground\",offset:0}),t=this.view;this.drawOperation=new s({view:t,manipulators:this.manipulators,geometryType:this.geometryType,drawingMode:this.mode,hasZ:this.hasZ,defaultZ:this.defaultZ,snapToSceneEnabled:this.snapToScene,drawSurface:\"3d\"===t.type?new p(t,e):null,elevationDrawSurface:\"3d\"===t.type?new d(e,this.defaultZ,t):null,hasM:!1,elevationInfo:e}),this.handles.add([this.drawOperation.on(\"vertex-add\",(e=>this.onVertexAdd(e))),this.drawOperation.on(\"vertex-remove\",(e=>this.onVertexRemove(e))),this.drawOperation.on(\"vertex-update\",(e=>this.onVertexUpdate(e))),this.drawOperation.on(\"cursor-update\",(e=>this.onCursorUpdate(e))),this.drawOperation.on(\"complete\",(e=>this.onComplete(e)))]),this.finishToolCreation()}destroy(){this.drawOperation=i(this.drawOperation),this._set(\"view\",null)}get canRedo(){return this.drawOperation.canRedo}get canUndo(){return this.drawOperation.canUndo}set enabled(e){this.drawOperation.interactive=e,this._set(\"enabled\",e)}get updating(){return this.drawOperation?.updating??!1}completeCreateOperation(){this.drawOperation.complete()}onDeactivate(){this.drawOperation.isCompleted||this.drawOperation.cancel()}getVertexCoords(){return this.drawOperation.vertices}onInputEvent(e){this.drawOperation.onInputEvent(e)}redo(){this.drawOperation.redo()}reset(){}undo(){this.drawOperation.undo()}onComplete(e){this.emit(\"complete\",e)}onCursorUpdate(e){this.emit(\"cursor-update\",e)}onVertexAdd(e){this.emit(\"vertex-add\",e)}onVertexRemove(e){this.emit(\"vertex-remove\",e)}onVertexUpdate(e){this.emit(\"vertex-update\",e)}};e([n({constructOnly:!0,nonNullable:!0})],h.prototype,\"defaultZ\",void 0),e([n()],h.prototype,\"drawOperation\",void 0),e([n({constructOnly:!0})],h.prototype,\"elevationInfo\",void 0),e([n({value:!0})],h.prototype,\"enabled\",null),e([n({constructOnly:!0})],h.prototype,\"geometryType\",void 0),e([n({constructOnly:!0})],h.prototype,\"hasZ\",void 0),e([n({constructOnly:!0})],h.prototype,\"mode\",void 0),e([n()],h.prototype,\"snapToScene\",void 0),e([n({readOnly:!0})],h.prototype,\"type\",void 0),e([n({readOnly:!0})],h.prototype,\"updating\",null),e([n({constructOnly:!0,nonNullable:!0})],h.prototype,\"view\",void 0),h=e([a(\"esri.views.draw.DrawTool\")],h);export{h as DrawTool};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import\"../../geometry.js\";import{destroyMaybe as t,isSome as i}from\"../../core/maybe.js\";import\"../../core/Logger.js\";import\"../../core/accessorSupport/ensureType.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/set.js\";import{subclass as o}from\"../../core/accessorSupport/decorators/subclass.js\";import r from\"./DrawAction.js\";import{DrawTool as s}from\"./DrawTool.js\";import{CursorUpdateEvent as n,DrawCompleteEvent as a}from\"./input/DrawEvents.js\";import{ViewEventPriorities as h}from\"../input/InputManager.js\";import{SKETCH_KEYS as p}from\"../interactive/keybindings.js\";import{createScreenPointFromEvent as d}from\"../support/screenUtils.js\";import l from\"../../geometry/Point.js\";let _=class extends r{constructor(e){super(e),this._addVertexOnPointerUp=!1}initialize(){\"2d\"===this.view.type?this._addViewHandles():this._addDrawTool()}destroy(){\"2d\"===this.view.type?this._removeViewHandles():this._removeDrawTool(),this.emit(\"destroy\")}complete(){\"2d\"===this.view.type?this._cursorScreenPoint&&this._completeDrawing():this._drawTool.completeCreateOperation()}_addViewHandles(){this._removeViewHandles(),this._handles.add([this.view.on(\"pointer-down\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._activePointerId=e.pointerId,this._addVertexOnPointerUp=!0,this._cursorScreenPoint=d(e),\"touch\"===e.pointerType&&this._updateCursor(e.native))}),h.TOOL),this.view.on(\"pointer-move\",(e=>{this._abortSnapping(),this._cursorScreenPoint=d(e),\"touch\"!==e.pointerType&&this._updateCursor(e.native)}),h.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._addVertexOnPointerUp=!1)}),h.TOOL),this.view.on(\"pointer-up\",(e=>{if(this._shouldHandlePointerEvent(e))if(this._abortSnapping(),this._activePointerId=null,this._addVertexOnPointerUp)e.stopPropagation(),this._vertexAddHandler(e);else{const t=\"touch\"===e.pointerType;this._updateCursor(e.native,t)}}),h.TOOL),this.view.on(\"drag\",[\"Shift\"],(e=>{e.stopPropagation()}),h.TOOL),this.view.on(\"key-down\",(e=>{e.key===p.complete&&this._cursorScreenPoint&&(this._abortSnapping(),this._vertexAddHandler(e))}),h.TOOL)],this._viewHandlesKey)}_removeViewHandles(){this._handles.remove(this._viewHandlesKey)}_addDrawTool(){this._drawTool=new s({view:this.view,elevationInfo:this.elevationInfo,hasZ:this.hasZ,geometryType:\"point\",mode:\"click\"}),this.view.addAndActivateTool(this._drawTool),this._handles.add([this._drawTool.on(\"cursor-update\",(e=>{1===e.vertices.length&&this.emit(\"cursor-update\",new n(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"complete\",(e=>{this.emit(\"draw-complete\",new a(null,this._drawTool.getVertexCoords())),this._removeDrawTool()}))],this._drawToolHandlesKey)}_removeDrawTool(){this._handles.remove(this._drawToolHandlesKey),this.view.tools.remove(this._drawTool),this._drawTool=t(this._drawTool)}_addVertex(e){const t=this._coordinateHelper.arrayToVector(e);this._isDuplicateOfLastVertex(t)||(this._lastVertexUnsnapped=this._stagedVertexUnsnapped,this._popCursorVertex(),this._editGeometryOperations.appendVertex(t),this.notifyChange(\"vertices\"),this._completeDrawing())}_updateCursor(e,t=!1){if(this._popCursorVertex(),!this._cursorScreenPoint)return;const o=this.getCoordsAndPointFromScreenPoint(this._cursorScreenPoint);i(o)&&!t&&this._pushCursorVertex(o.vertex,(()=>this.emit(\"cursor-update\",new n(this.view,e,this._activeComponent.vertices.length,this.vertices,i(this._stagedVertex)?new l(this._stagedVertex):null))))}_completeDrawing(e){this._activePointerId=null,this._popCursorVertex(),this._abortSnapping(),i(this._snappingManager)&&this._snappingManager.doneSnapping();const t=new a(e,this.vertices);this.emit(\"draw-complete\",t),t.defaultPrevented||this._removeViewHandles()}};_=e([o(\"esri.views.draw.PointDrawAction\")],_);export{_ as PointDrawAction};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import\"../../geometry.js\";import{isSome as t,destroyMaybe as i}from\"../../core/maybe.js\";import{property as o}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as s}from\"../../core/accessorSupport/decorators/subclass.js\";import r from\"./DrawAction.js\";import{drawingModes as n,defaultDrawingMode as a}from\"./DrawingMode.js\";import{DrawTool as d}from\"./DrawTool.js\";import{VertexRemoveEvent as h,VertexAddEvent as p,CursorUpdateEvent as l,DrawCompleteEvent as _}from\"./input/DrawEvents.js\";import{ViewEventPriorities as c}from\"../input/InputManager.js\";import{SKETCH_KEYS as v}from\"../interactive/keybindings.js\";import{createScreenPointFromEvent as m}from\"../support/screenUtils.js\";import u from\"../../geometry/Point.js\";let w=class extends r{constructor(e){super(e),this._panEnabled=!1,this._popVertexOnPointerMove=!1,this._addVertexOnPointerUp=!1,this.mode=a}initialize(){\"2d\"===this.view.type?(this._addViewHandles(),this._addUndoRedoHandles()):this._addDrawTool()}destroy(){\"2d\"===this.view.type?(this._removeViewHandles(),this._removeUndoRedoHandles()):this._removeDrawTool(),this.emit(\"destroy\")}get _dragEnabled(){return\"freehand\"===this.mode||\"hybrid\"===this.mode}get _clickEnabled(){return\"click\"===this.mode||\"hybrid\"===this.mode}undo(){super.undo(),this.notifyChange(\"vertices\")}redo(){super.redo(),this.notifyChange(\"vertices\")}complete(){\"2d\"===this.view.type?this._completeDrawing():this._drawTool.completeCreateOperation()}_getGeometryZValue(){return this.hasZ&&this.vertices.length>0?this.vertices[0][2]:this.defaultZ}_addViewHandles(){this._removeViewHandles(),this._handles.add([this.view.on(\"click\",(e=>{e.stopPropagation()}),c.TOOL),this.view.on(\"pointer-down\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._activePointerId=e.pointerId,this._addVertexOnPointerUp=!0,this._cursorScreenPoint=m(e),\"touch\"===e.pointerType&&this._updateCursor(e.native))}),c.TOOL),this.view.on(\"pointer-move\",(e=>{this._abortSnapping(),this._popVertexOnPointerMove&&(this.undo(),this._popVertexOnPointerMove=!1),this._cursorScreenPoint=m(e),\"touch\"!==e.pointerType&&this._updateCursor(e.native)}),c.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._cursorScreenPoint=m(e),this._dragEnabled&&!this._panEnabled?this._vertexAddHandler(e):this._addVertexOnPointerUp=!1)}),c.TOOL),this.view.on(\"pointer-up\",(e=>{if(this._shouldHandlePointerEvent(e))if(this._abortSnapping(),this._activePointerId=null,this._addVertexOnPointerUp){if(!this._clickEnabled)return 1===this.vertices.length&&this.vertices.pop(),void this._drawCompleteHandler(e);this._vertexAddHandler(e)}else{const t=\"touch\"===e.pointerType;this._updateCursor(e.native,t)}}),c.TOOL),this.view.on(\"drag\",(e=>{this._dragEnabled&&t(this._activePointerId)&&!this._panEnabled&&e.stopPropagation()}),c.TOOL),this.view.on(\"drag\",[\"Shift\"],(e=>{e.stopPropagation()}),c.TOOL),this.view.on(\"double-click\",(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),c.TOOL),this.view.on(\"double-click\",[\"Control\"],(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),c.TOOL),this.view.on(\"key-down\",(e=>{const{key:t,repeat:i}=e;t===v.vertexAdd&&!i&&this._cursorScreenPoint?(e.stopPropagation(),this._abortSnapping(),this._vertexAddHandler(e)):t!==v.complete||i?t!==v.undo||this.interactiveUndoDisabled||i?t!==v.redo||this.interactiveUndoDisabled||i?t!==v.pan||i||(e.stopPropagation(),this._panEnabled=!0):(e.stopPropagation(),this.redo()):(e.stopPropagation(),this.undo()):(e.stopPropagation(),this._drawCompleteHandler(e))}),c.TOOL),this.view.on(\"key-up\",(e=>{e.key===v.pan&&(e.stopPropagation(),this._panEnabled=!1)}),c.TOOL)],this._viewHandlesKey)}_addUndoRedoHandles(){this._removeUndoRedoHandles(),this._handles.add([this._editGeometryOperations.on(\"vertex-remove\",(e=>{if(this.notifyChange(\"vertices\"),\"undo\"===e.operation){const i=this._nativeEventHistory.undoStack.pop();this._nativeEventHistory.redoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"undo\",new h(this.view,i,e.vertices[0].index,o))}})),this._editGeometryOperations.on(\"vertex-add\",(e=>{if(this.notifyChange(\"vertices\"),\"apply\"===e.operation){const e=this._nativeEventHistory.undoStack[this._nativeEventHistory.undoStack.length],t=this._committedVertices.length-1,i=new p(this.view,e,t,this.vertices);this.emit(\"vertex-add\",i),i.defaultPrevented&&(this._popVertexOnPointerMove=!0)}else if(\"redo\"===e.operation){const i=this._nativeEventHistory.redoStack.pop();this._nativeEventHistory.undoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"redo\",new p(this.view,i,e.vertices[0].index,o))}}))],this._undoRedoHandlesKey)}_removeViewHandles(){this._handles.remove(this._viewHandlesKey)}_removeUndoRedoHandles(){this._handles.remove(this._undoRedoHandlesKey)}_addDrawTool(){this._drawTool=new d({view:this.view,elevationInfo:this.elevationInfo,hasZ:this.hasZ,geometryType:\"polygon\",mode:this.mode}),this.view.addAndActivateTool(this._drawTool),this._drawTool.on(\"vertex-add\",(e=>{1===e.vertices.length&&this.emit(\"vertex-add\",new p(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"cursor-update\",(e=>{1===e.vertices.length&&this.emit(\"cursor-update\",new l(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"complete\",(e=>{this.emit(\"draw-complete\",new _(null,this._drawTool.getVertexCoords())),this._removeDrawTool()}))}_removeDrawTool(){this._handles.remove(this._drawToolHandlesKey),this.view.tools.remove(this._drawTool),this._drawTool=i(this._drawTool)}_addVertex(e,t){const i=this._coordinateHelper.arrayToVector(e);if(this._isDuplicateOfLastVertex(i))return;this._lastVertexUnsnapped=this._stagedVertexUnsnapped,this._popCursorVertex(),this._editGeometryOperations.appendVertex(i);const o=t||new Event(\"placeholder\");this._nativeEventHistory.undoStack.push(o)}_updateCursor(e,i=!1){if(this._popCursorVertex(),!this._cursorScreenPoint)return;const o=this.getCoordsAndPointFromScreenPoint(this._cursorScreenPoint);t(o)&&!i&&this._pushCursorVertex(o.vertex,(()=>this.emit(\"cursor-update\",new l(this.view,e,this._activeComponent.vertices.length,this.vertices,t(this._stagedVertex)?new u(this._stagedVertex):null))))}_completeDrawing(e){if(this._activePointerId=null,this._popCursorVertex(),this._committedVertices.length<3)return;this._abortSnapping(),t(this._snappingManager)&&this._snappingManager.doneSnapping();const i=new _(e,this.vertices);this.emit(\"draw-complete\",i),i.defaultPrevented||this._removeViewHandles()}};e([o()],w.prototype,\"_dragEnabled\",null),e([o()],w.prototype,\"_clickEnabled\",null),e([o({type:n})],w.prototype,\"mode\",void 0),w=e([s(\"esri.views.draw.PolygonDrawAction\")],w);export{w as PolygonDrawAction};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import\"../../geometry.js\";import{isSome as t,destroyMaybe as i}from\"../../core/maybe.js\";import{property as o}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as s}from\"../../core/accessorSupport/decorators/subclass.js\";import r from\"./DrawAction.js\";import{drawingModes as n,defaultDrawingMode as a}from\"./DrawingMode.js\";import{DrawTool as d}from\"./DrawTool.js\";import{VertexRemoveEvent as h,VertexAddEvent as p,CursorUpdateEvent as l,DrawCompleteEvent as _}from\"./input/DrawEvents.js\";import{ViewEventPriorities as c}from\"../input/InputManager.js\";import{SKETCH_KEYS as v}from\"../interactive/keybindings.js\";import{createScreenPointFromEvent as m}from\"../support/screenUtils.js\";import u from\"../../geometry/Point.js\";let w=class extends r{constructor(e){super(e),this._panEnabled=!1,this._popVertexOnPointerMove=!1,this._addVertexOnPointerUp=!1,this.mode=a}initialize(){\"2d\"===this.view.type?(this._addViewHandles(),this._addUndoRedoHandles()):this._addDrawTool()}destroy(){\"2d\"===this.view.type?(this._removeViewHandles(),this._removeUndoRedoHandles()):this._removeDrawTool(),this.emit(\"destroy\")}get _clickEnabled(){return\"click\"===this.mode||\"hybrid\"===this.mode}get _dragEnabled(){return\"freehand\"===this.mode||\"hybrid\"===this.mode}undo(){super.undo(),this.notifyChange(\"vertices\")}redo(){super.redo(),this.notifyChange(\"vertices\")}complete(){\"2d\"===this.view.type?this._completeDrawing():this._drawTool.completeCreateOperation()}_addViewHandles(){this._removeViewHandles(),this._handles.add([this.view.on(\"click\",(e=>{e.stopPropagation()}),c.TOOL),this.view.on(\"pointer-down\",(e=>{this._shouldHandlePointerEvent(e)&&!this._panEnabled&&(this._abortSnapping(),this._activePointerId=e.pointerId,this._addVertexOnPointerUp=!0,this._cursorScreenPoint=m(e),\"touch\"===e.pointerType&&this._updateCursor(e.native))}),c.TOOL),this.view.on(\"pointer-move\",(e=>{this._popVertexOnPointerMove&&(this.undo(),this._popVertexOnPointerMove=!1),this._abortSnapping(),this._cursorScreenPoint=m(e),\"touch\"!==e.pointerType&&this._updateCursor(e.native)}),c.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._cursorScreenPoint=m(e),this._dragEnabled&&!this._panEnabled?this._vertexAddHandler(e):this._addVertexOnPointerUp=!1)}),c.TOOL),this.view.on(\"pointer-up\",(e=>{if(this._shouldHandlePointerEvent(e))if(this._abortSnapping(),this._activePointerId=null,this._addVertexOnPointerUp){if(!this._clickEnabled)return 1===this.vertices.length&&this.vertices.pop(),void this._drawCompleteHandler(e);this._vertexAddHandler(e)}else{const t=\"touch\"===e.pointerType;this._updateCursor(e.native,t)}}),c.TOOL),this.view.on(\"drag\",(e=>{this._dragEnabled&&t(this._activePointerId)&&!this._panEnabled&&e.stopPropagation()}),c.TOOL),this.view.on(\"drag\",[\"Shift\"],(e=>{e.stopPropagation()}),c.TOOL),this.view.on(\"double-click\",(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),c.TOOL),this.view.on(\"double-click\",[\"Control\"],(e=>{e.stopPropagation(),this._drawCompleteHandler(e)}),c.TOOL),this.view.on(\"key-down\",(e=>{const{key:t,repeat:i}=e;t===v.vertexAdd&&!i&&this._cursorScreenPoint?(e.stopPropagation(),this._abortSnapping(),this._vertexAddHandler(e)):t!==v.complete||i?t!==v.undo||this.interactiveUndoDisabled||i?t!==v.redo||this.interactiveUndoDisabled||i?t!==v.pan||i||(e.stopPropagation(),this._panEnabled=!0):(e.stopPropagation(),this.redo()):(e.stopPropagation(),this.undo()):(e.stopPropagation(),this._drawCompleteHandler(e))}),c.TOOL),this.view.on(\"key-up\",(e=>{e.key===v.pan&&(e.stopPropagation(),this._panEnabled=!1)}),c.TOOL)],this._viewHandlesKey)}_addUndoRedoHandles(){this._removeUndoRedoHandles(),this._handles.add([this._editGeometryOperations.on(\"vertex-remove\",(e=>{if(this.notifyChange(\"vertices\"),\"undo\"===e.operation){const i=this._nativeEventHistory.undoStack.pop();this._nativeEventHistory.redoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"undo\",new h(this.view,i,e.vertices[0].index,o))}})),this._editGeometryOperations.on(\"vertex-add\",(e=>{if(this.notifyChange(\"vertices\"),\"apply\"===e.operation){const e=this._nativeEventHistory.undoStack[this._nativeEventHistory.undoStack.length],t=this._committedVertices.length-1,i=new p(this.view,e,t,this.vertices);this.emit(\"vertex-add\",i),i.defaultPrevented&&(this._popVertexOnPointerMove=!0)}else if(\"redo\"===e.operation){const i=this._nativeEventHistory.redoStack.pop();this._nativeEventHistory.undoStack.push(i);const o=[...this._committedVertices];t(this._stagedVertex)&&o.push(this._coordinateHelper.pointToArray(this._stagedVertex)),this.emit(\"redo\",new p(this.view,i,e.vertices[0].index,o))}}))],this._undoRedoHandlesKey)}_removeViewHandles(){this._handles.remove(this._viewHandlesKey)}_removeUndoRedoHandles(){this._handles.remove(this._undoRedoHandlesKey)}_addDrawTool(){this._drawTool=new d({view:this.view,elevationInfo:this.elevationInfo,hasZ:this.hasZ,geometryType:\"polyline\",mode:this.mode}),this.view.addAndActivateTool(this._drawTool),this._handles.add([this._drawTool.on(\"vertex-add\",(e=>{1===e.vertices.length&&this.emit(\"vertex-add\",new p(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"cursor-update\",(e=>{1===e.vertices.length&&this.emit(\"cursor-update\",new l(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"complete\",(e=>{this.emit(\"draw-complete\",new _(null,this._drawTool.getVertexCoords())),this._removeDrawTool()}))],this._drawToolHandlesKey)}_removeDrawTool(){this._handles.remove(this._drawToolHandlesKey),this.view.tools.remove(this._drawTool),this._drawTool=i(this._drawTool)}_addVertex(e,t){const i=this._coordinateHelper.arrayToVector(e);if(this._isDuplicateOfLastVertex(i))return;this._lastVertexUnsnapped=this._stagedVertexUnsnapped,this._popCursorVertex(),this._editGeometryOperations.appendVertex(i);const o=t||new Event(\"placeholder\");this._nativeEventHistory.undoStack.push(o)}_updateCursor(e,i=!1){if(this._popCursorVertex(),!this._cursorScreenPoint)return;const o=this.getCoordsAndPointFromScreenPoint(this._cursorScreenPoint);t(o)&&!i&&this._pushCursorVertex(o.vertex,(()=>this.emit(\"cursor-update\",new l(this.view,e,this._activeComponent.vertices.length,this.vertices,t(this._stagedVertex)?new u(this._stagedVertex):null))))}_completeDrawing(e){if(this._activePointerId=null,this._popCursorVertex(),this._committedVertices.length<2)return;this._abortSnapping(),t(this._snappingManager)&&this._snappingManager.doneSnapping();const i=new _(e,this.vertices);this.emit(\"draw-complete\",i),i.defaultPrevented||this._removeViewHandles()}};e([o()],w.prototype,\"_clickEnabled\",null),e([o()],w.prototype,\"_dragEnabled\",null),e([o({type:n})],w.prototype,\"mode\",void 0),w=e([s(\"esri.views.draw.PolylineDrawAction\")],w);export{w as PolylineDrawAction};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import\"../../geometry.js\";import{isSome as t,isNone as i,destroyMaybe as r}from\"../../core/maybe.js\";import{property as s}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as o}from\"../../core/accessorSupport/decorators/subclass.js\";import{ViewingMode as n}from\"../ViewingMode.js\";import a from\"./DrawAction.js\";import{DrawTool as h}from\"./DrawTool.js\";import{VertexAddEvent as d,CursorUpdateEvent as p,DrawCompleteEvent as l}from\"./input/DrawEvents.js\";import{createViewAlignedCoordinateSystem as _}from\"./support/surfaceCoordinateSystems.js\";import{ViewEventPriorities as c}from\"../input/InputManager.js\";import{SKETCH_KEYS as m}from\"../interactive/keybindings.js\";import{EditGeometry as v,Component as g}from\"../interactive/editGeometry/EditGeometry.js\";import{EditGeometryOperations as w}from\"../interactive/editGeometry/EditGeometryOperations.js\";import{createScreenPointFromEvent as u}from\"../support/screenUtils.js\";import y from\"../../geometry/Point.js\";const T=[\"freehand\",\"click\"];let O=class extends a{constructor(e){super(e),this._isDragging=!1,this._panEnabled=!1,this._addVertexOnPointerUp=!1,this.viewAlignedCoordinateSystem=null,this.mode=\"freehand\"}initialize(){\"2d\"===this.view.type?this._addViewHandles():this._addDrawTool()}destroy(){\"2d\"===this.view.type?this._removeViewHandles():this._removeDrawTool(),this.emit(\"destroy\")}complete(){\"2d\"===this.view.type?this._completeDrawing():this._drawTool.completeCreateOperation()}_getGeometryZValue(){return this.hasZ&&this.vertices.length>0?this.vertices[0][2]:this.defaultZ}_addViewHandles(){this._removeViewHandles(),\"click\"===this.mode?this._handles.add(this._getClickModeViewHandles(),this._viewHandlesKey):this._handles.add(this._getDragModeViewHandles(),this._viewHandlesKey)}_getDragModeViewHandles(){return[this.view.on(\"immediate-click\",(e=>{if(e.stopPropagation(),e.mapPoint&&!this._panEnabled){const i=this.getCoordsFromScreenPoint(u(e));t(i)&&(this._vertexAddHandler(e),this._drawCompleteHandler(e))}}),c.TOOL),this.view.on(\"pointer-down\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._panEnabled||(this._resetGeometry(),this._addVertexOnPointerUp=!0,this._cursorScreenPoint=u(e),this._activePointerId=e.pointerId,this._vertexAddHandler(e),this._isDragging=!1,\"touch\"===e.pointerType&&this._updateCursor(e.native)))}),c.TOOL),this.view.on(\"pointer-move\",(e=>{this._abortSnapping(),i(this._activePointerId)&&\"touch\"!==e.pointerType&&(this._cursorScreenPoint=u(e),this._updateCursor(e.native))}),c.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._isDragging=!0,this._cursorScreenPoint=u(e),this._updateCursor(e.native))}),c.TOOL),this.view.on(\"pointer-up\",(e=>{this._shouldHandlePointerEvent(e)&&this._addVertexOnPointerUp&&(this._abortSnapping(),this._activePointerId=null,this._isDragging&&this._vertexAddHandler(e),2===this._committedVertices.length&&this._drawCompleteHandler(e),this._isDragging=!1)}),c.TOOL),this.view.on(\"key-down\",(e=>{e.key===m.complete&&this._cursorScreenPoint?(this._abortSnapping(),this._vertexAddHandler(e),this._drawCompleteHandler(e)):e.key===m.pan&&(this._panEnabled=!0)}),c.TOOL),this.view.on(\"key-up\",(e=>{e.key===m.pan&&(this._panEnabled=!1)}),c.TOOL),this.view.on(\"drag\",(e=>{t(this._activePointerId)&&e.stopPropagation()}),c.TOOL),this.view.on(\"drag\",[\"Shift\"],(e=>{e.stopPropagation()}),c.TOOL)]}_getClickModeViewHandles(){return[this.view.on(\"pointer-down\",(e=>{this._abortSnapping(),this._cursorScreenPoint=u(e),this._activePointerId=e.pointerId,this._isDragging=!1,\"touch\"===e.pointerType&&this._updateCursor(e.native)}),c.TOOL),this.view.on(\"pointer-move\",(e=>{this._abortSnapping(),this._cursorScreenPoint=u(e),i(this._activePointerId)&&\"touch\"!==e.pointerType&&this._updateCursor(e.native)}),c.TOOL),this.view.on(\"pointer-drag\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._isDragging=!0)}),c.TOOL),this.view.on(\"pointer-up\",(e=>{this._shouldHandlePointerEvent(e)&&(this._abortSnapping(),this._activePointerId=null,e.stopPropagation(),this._isDragging||this._vertexAddHandler(e),2!==this.vertices.length||this._isDragging||this._drawCompleteHandler(e),this._isDragging=!1)}),c.TOOL),this.view.on(\"key-down\",(e=>{e.key===m.vertexAdd&&this._cursorScreenPoint&&(this._vertexAddHandler(e),2===this.vertices.length&&this._drawCompleteHandler(e)),e.key===m.complete&&this._cursorScreenPoint&&2===this.vertices.length&&(this._vertexAddHandler(e),this._drawCompleteHandler(e))}),c.TOOL)]}_removeViewHandles(){this._handles.remove(this._viewHandlesKey)}_addDrawTool(){this._drawTool=new h({view:this.view,elevationInfo:this.elevationInfo,hasZ:this.hasZ,geometryType:\"segment\",mode:this.mode}),this.view.addAndActivateTool(this._drawTool),this._handles.add([this._drawTool.on(\"vertex-add\",(e=>{1===e.vertices.length&&this.emit(\"vertex-add\",new d(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"cursor-update\",(e=>{1===e.vertices.length&&this.emit(\"cursor-update\",new p(this.view,null,e.vertices[0].vertexIndex,this._drawTool.getVertexCoords()))})),this._drawTool.on(\"complete\",(e=>{this.emit(\"draw-complete\",new l(null,this._drawTool.getVertexCoords())),this._removeDrawTool()}))],this._drawToolHandlesKey)}_removeDrawTool(){this._handles.remove(this._drawToolHandlesKey),this.view.tools.remove(this._drawTool),this._drawTool=r(this._drawTool)}_addVertex(e,t){const i=this._coordinateHelper.arrayToVector(e);if(this._isDuplicateOfLastVertex(i))return;this._lastVertexUnsnapped=this._stagedVertexUnsnapped,this._popCursorVertex(),this._editGeometryOperations.appendVertex(i),1===this._committedVertices.length&&(this.viewAlignedCoordinateSystem=_(this.view,this._committedVertices[0]));const r=this._committedVertices.length-1,s=new d(this.view,t,r,this.vertices);this.emit(\"vertex-add\",s)}_updateCursor(e){if(this._popCursorVertex(),!this._cursorScreenPoint)return;const i=this.getCoordsAndPointFromScreenPoint(this._cursorScreenPoint);t(i)&&this._pushCursorVertex(i.vertex,(()=>this.emit(\"cursor-update\",new p(this.view,e,this._activeComponent.vertices.length,this.vertices,t(this._stagedVertex)?new y(this._stagedVertex):null))))}_completeDrawing(e){if(this._activePointerId=null,this._popCursorVertex(),this._cursorScreenPoint=null,this._isDragging=!1,this._abortSnapping(),t(this._snappingManager)&&this._snappingManager.doneSnapping(),this.vertices.length<1)return;const i=new l(e,this.vertices);this.emit(\"draw-complete\",i),i.defaultPrevented||this._removeViewHandles()}_resetGeometry(){this._editGeometryOperations.destroy(),this._editGeometryOperations=new w(new v(\"polygon\",this._coordinateHelper)),this._activeComponent=new g(this._coordinateHelper.spatialReference,n.Local),this._editGeometryOperations.data.components.push(this._activeComponent)}};e([s({type:T})],O.prototype,\"mode\",void 0),O=e([o(\"esri/views/2d/engine/markup/SegmentDrawAction\")],O);export{O as SegmentDrawAction};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as t}from\"../../chunks/tslib.es6.js\";import e from\"../../core/Accessor.js\";import\"../../core/has.js\";import{property as o}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as i}from\"../../core/accessorSupport/decorators/subclass.js\";import{M as r}from\"../../chunks/MultipointDrawAction.js\";import{PointDrawAction as s}from\"./PointDrawAction.js\";import{PolygonDrawAction as c}from\"./PolygonDrawAction.js\";import{PolylineDrawAction as n}from\"./PolylineDrawAction.js\";import{SegmentDrawAction as a}from\"./SegmentDrawAction.js\";let p=class extends e{constructor(){super(...arguments),this.activeAction=null,this.type=\"draw\",this.view=null}destroy(){this.activeAction&&(this.activeAction.destroy(),this.activeAction=null)}create(t,e){this.reset();const o={view:this.view,...e};switch(t){case\"point\":o.editGeometryType=\"point\",this.activeAction=new s(o);break;case\"polyline\":o.editGeometryType=\"polyline\",this.activeAction=new n(o);break;case\"multipoint\":o.editGeometryType=\"polygon\",this.activeAction=new r(o);break;case\"polygon\":o.editGeometryType=\"polygon\",this.activeAction=new c(o);break;case\"rectangle\":case\"circle\":case\"ellipse\":case\"triangle\":o.editGeometryType=\"polygon\",this.activeAction=new a(o)}return this.activeAction}complete(){this.activeAction&&this.activeAction.complete(),this.activeAction=null}reset(){this.activeAction&&this.activeAction.destroy(),this.activeAction=null}};t([o()],p.prototype,\"activeAction\",void 0),t([o({readOnly:!0})],p.prototype,\"type\",void 0),t([o()],p.prototype,\"view\",void 0),p=t([i(\"esri.views.draw.Draw\")],p);const l=p;export{l as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import t from\"../../core/Accessor.js\";import i from\"../../core/Evented.js\";import{isNone as o,isSome as s}from\"../../core/maybe.js\";import{watch as r,sync as l}from\"../../core/reactiveUtils.js\";import{pt2px as a,screenPointObjectToArray as n,createScreenPointArray as c}from\"../../core/screenUtils.js\";import{property as h}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as p}from\"../../core/accessorSupport/decorators/subclass.js\";import{s as m}from\"../../chunks/vec2.js\";import{i as u}from\"../../chunks/vec3.js\";import{c as y}from\"../../chunks/vec3f64.js\";import{canProjectWithoutEngine as g,project as b,projectPointToVector as d}from\"../../geometry/projection.js\";import{getGraphicEffectiveElevationMode as f}from\"../../support/elevationInfoUtils.js\";import{getDefaultSymbol2D as _}from\"../../symbols/support/defaults.js\";import v from\"../../symbols/support/ElevationInfo.js\";import{intersectsDrapedGeometry as S}from\"../support/drapedUtils.js\";let C=class extends t{constructor(e){super(e),this.layer=null,this.interactive=!0,this.selectable=!1,this.grabbable=!0,this.dragging=!1,this.cursor=null,this.events=new i.EventEmitter,this._circleCollisionCache=null,this._graphicSymbolChangedHandle=null,this._originalSymbol=null}set graphic(e){this._circleCollisionCache=null,this._originalSymbol=e.symbol,this._set(\"graphic\",e),this.attachSymbolChanged()}get elevationInfo(){const e=\"elevationInfo\"in this.graphic.layer&&this.graphic.layer.elevationInfo,t=f(this.graphic),i=e?e.offset:0;return new v({mode:t,offset:i})}set focusedSymbol(e){e!==this._get(\"focusedSymbol\")&&(this._set(\"focusedSymbol\",e),this._updateGraphicSymbol(),this._circleCollisionCache=null)}grabbableForEvent(){return!0}set grabbing(e){e!==this._get(\"grabbing\")&&(this._set(\"grabbing\",e),this._updateGraphicSymbol())}set hovering(e){e!==this._get(\"hovering\")&&(this._set(\"hovering\",e),this._updateGraphicSymbol())}set selected(e){e!==this._get(\"selected\")&&(this._set(\"selected\",e),this._updateGraphicSymbol(),this.events.emit(\"select-changed\",{action:e?\"select\":\"deselect\"}))}get _focused(){return this._get(\"hovering\")||this._get(\"grabbing\")}destroy(){this.detachSymbolChanged(),this._resetGraphicSymbol(),this._set(\"view\",null)}intersectionDistance(e){const t=this.graphic;if(!1===t.visible)return null;const i=t.geometry;if(o(i))return null;const r=this._get(\"focusedSymbol\"),l=s(r)?r:t.symbol;return\"2d\"===this.view.type?this._intersectDistance2D(this.view,e,i,l):this._intersectDistance3D(this.view,e,t)}attach(){this.attachSymbolChanged(),s(this.layer)&&this.layer.add(this.graphic)}detach(){this.detachSymbolChanged(),this._resetGraphicSymbol(),s(this.layer)&&this.layer.remove(this.graphic)}attachSymbolChanged(){this.detachSymbolChanged(),this._graphicSymbolChangedHandle=r((()=>this.graphic?.symbol),(e=>{s(e)&&e!==this.focusedSymbol&&e!==this._originalSymbol&&(this._originalSymbol=e,this._focused&&s(this.focusedSymbol)&&(this.graphic.symbol=this.focusedSymbol))}),l)}detachSymbolChanged(){s(this._graphicSymbolChangedHandle)&&(this._graphicSymbolChangedHandle.remove(),this._graphicSymbolChangedHandle=null)}_updateGraphicSymbol(){this.graphic.symbol=this._focused&&s(this.focusedSymbol)?this.focusedSymbol:this._originalSymbol}_resetGraphicSymbol(){this.graphic.symbol=this._originalSymbol}_intersectDistance2D(e,t,i,r){if(r=r||_(i),o(r))return null;const l=1;let c=this._circleCollisionCache;if(\"point\"!==i.type||\"simple-marker\"!==r.type)return S(t,i,e)?l:null;if(o(c)||!c.originalPoint.equals(i)){const t=i,o=e.spatialReference;if(g(t.spatialReference,o)){const e=b(t,o);c={originalPoint:t.clone(),mapPoint:e,radiusPx:a(r.size)},this._circleCollisionCache=c}}if(s(c)){const i=n(t,D),o=e.toScreen(c.mapPoint),s=c.radiusPx,h=o.x+a(r.xoffset),p=o.y-a(r.yoffset);return m(i,[h,p])\"size\"===t.type)).map((e=>{const{maxSize:r,minSize:s}=e;return(n(r,t)+n(s,t))/2}));let s=0;const o=r.length;if(0===o)return t;for(let n=0;n{e=t(e,n.symbol)})),e}if(\"class-breaks\"===n.type){let e=o;return n.classBreakInfos.forEach((n=>{e=t(e,n.symbol)})),e}return\"dot-density\"===n.type||n.type,o}export{s as calculateTolerance};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import\"../../geometry.js\";import t from\"../../Graphic.js\";import\"../../intl.js\";import\"../../symbols.js\";import s from\"../../core/Handles.js\";import{destroyMaybe as i}from\"../../core/maybe.js\";import{watch as r,initial as o}from\"../../core/reactiveUtils.js\";import{formatDecimal as a,formatImperialLength as n,formatMetricLength as l}from\"../../core/unitFormatUtils.js\";import{convertUnit as m}from\"../../core/unitUtils.js\";import{property as h}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as c}from\"../../core/accessorSupport/decorators/subclass.js\";import{geodesicLength as p,geodesicDensify as d,planarLength as u}from\"../../geometry/geometryEngine.js\";import{project as y}from\"../../geometry/projection.js\";import{isSupported as v,geodesicLengths as _,geodesicDensify as f}from\"../../geometry/support/geodesicUtils.js\";import w from\"../../layers/GraphicsLayer.js\";import{ViewingMode as g}from\"../../views/ViewingMode.js\";import b from\"../../views/draw/Draw.js\";import{createManipulatorDragEventPipeline as j,screenToMap as S,dragGraphic as L}from\"../../views/interactive/dragEventPipeline.js\";import{GraphicManipulator as A}from\"../../views/interactive/GraphicManipulator.js\";import{InteractiveToolBase as M}from\"../../views/interactive/InteractiveToolBase.js\";import{fetchMessageBundle as x}from\"../../intl/messages.js\";import{onLocaleChange as I}from\"../../intl/locale.js\";import C from\"../../geometry/Point.js\";import k from\"../../symbols/CIMSymbol.js\";import D from\"../../symbols/TextSymbol.js\";import G from\"../../symbols/Font.js\";import T from\"../../symbols/SimpleMarkerSymbol.js\";import P from\"../../geometry/Polyline.js\";import R from\"../../geometry/SpatialReference.js\";const W=1e5;let E=class extends M{constructor(e){super(e),this._drawActive=!1,this._handles=new s,this._measurementLayer=new w({internal:!0,listMode:\"hide\",visible:!1}),this._manipulatorLayer=new w({internal:!0,listMode:\"hide\",visible:!1}),this._vertices=[],this.geodesicDistanceThreshold=1e5,this.measurement=null,this.measurementLabel=null}initialize(){x(\"esri/core/t9n/Units\").then((e=>{this.messages=e})),this._handles.add(I((async()=>{this.messages=await x(\"esri/core/t9n/Units\")})));const e=this.view;this._draw=new b({view:e}),e.map.addMany([this._measurementLayer,this._manipulatorLayer]),e.focus(),this._handles.add([r((()=>[this.unit,this.geodesicDistanceThreshold,this.palette,this.messages]),(()=>{this._vertices.length>0&&this._updatePolylines()}),o)])}destroy(){const{map:e}=this.view;this._draw.view=null,this._draw=i(this._draw),e.removeMany([this._measurementLayer,this._manipulatorLayer]),this._handles.removeAll(),this._measurementLayer.removeAll(),this._manipulatorLayer.removeAll(),this._set(\"measurement\",null),this._set(\"measurementLabel\",null),this._handles=i(this._handles),this._measurementLayer=i(this._measurementLayer),this._manipulatorLayer=i(this._manipulatorLayer)}get cursor(){return this._drawActive?\"crosshair\":null}set editable(e){this._set(\"editable\",e),e||this._draw.reset()}onActivate(){this._drawActive||0!==this._vertices.length||this._startSketch()}onShow(){this._measurementLayer.visible=!0,this._manipulatorLayer.visible=!0}onHide(){this._measurementLayer.visible=!1,this._manipulatorLayer.visible=!1}reset(){this._vertices=[],this._measurementLayer.removeAll(),this._set(\"measurement\",null),this._set(\"measurementLabel\",null),this._draw.reset(),this._drawActive=!1,this._updateSketch([])}_startSketch(){this._drawActive=!0;const e=this._draw.create(\"polyline\",{mode:\"click\"});e.on([\"vertex-add\",\"vertex-update\",\"vertex-remove\",\"cursor-update\",\"undo\",\"redo\"],(e=>this._updateSketch(e.vertices))),e.on(\"draw-complete\",(()=>{this._stopSketch()}))}_stopSketch(){this.manipulators.forEach((e=>{e.manipulator.interactive=!0})),this._drawActive=!1,this.finishToolCreation()}_updateSketch(e){if(e.length<2)return this._vertices=[],this.manipulators.removeAll(),void this._measurementLayer.removeAll();const{spatialReference:t}=this.view;for(;this._vertices.length>e.length;){const{manipulatorId:e}=this._vertices.pop();this.manipulators.remove(e)}for(let n=this._vertices.length;n{t.next(S(this.view)).next(L(e.graphic,g.Local)).next((()=>{const t=e.graphic.geometry;this._vertices[n].coord=[t.x,t.y],this._updatePolylines()}))})),this._vertices.push({manipulatorId:o,coord:[s,i]})}const s=this._vertices.length-1,i=this._vertices[s],[r,o]=e[s];if(i.coord[0]!==r||i.coord[1]!==o){i.coord=[r,o];const e=new C({x:r,y:o,spatialReference:t});this.manipulators.findById(i.manipulatorId).graphic.geometry=e}const a=this._drawActive?this._vertices[s].manipulatorId:null;this.manipulators.forEach((e=>{e.manipulator.interactive=null==a||e.id!==a})),this._updatePolylines()}_updatePolylines(){const e=this._vertices.map((e=>e.coord)),{measurement:s,drawing:i,original:r}=z(e,this.view.spatialReference,this.geodesicDistanceThreshold);this._set(\"measurement\",s);const o=F(this.messages,s,this.unit);let a,n;this._set(\"measurementLabel\",o);const{graphics:l}=this._measurementLayer;if(2===l.length)a=l.getItemAt(0),n=l.getItemAt(1);else{const{pathPrimaryColor:e,pathSecondaryColor:s,pathWidth:i}=this.palette;a=new t({symbol:new k({data:{type:\"CIMSymbolReference\",symbol:{type:\"CIMLineSymbol\",symbolLayers:[{type:\"CIMSolidStroke\",effects:[{type:\"CIMGeometricEffectDashes\",dashTemplate:[14,12],lineDashEnding:\"FullGap\",controlPointEnding:\"NoConstraint\"}],enable:!0,capStyle:\"Butt\",joinStyle:\"Round\",width:i-1.5,color:s},{type:\"CIMSolidStroke\",enable:!0,capStyle:\"Butt\",joinStyle:\"Round\",width:i,color:e}]}}})}),n=new t({symbol:new D({color:[255,255,255,1],haloColor:[0,0,0,.5],haloSize:2,font:new G({size:14,family:\"sans-serif\"})})}),l.removeAll(),l.addMany([a,n])}a.geometry=i,n.geometry=r.extent.center,n.symbol.text=o}};function U(e,s,i,r){const o=new T({style:\"circle\",color:r.handleColor,size:r.handleWidth,outline:{type:\"simple-line\",width:0}}),a=new T({style:\"circle\",color:r.handleColor,size:1.5*r.handleWidth,outline:{type:\"simple-line\",width:0}}),n=new t({geometry:e,symbol:o});return new A({view:s,layer:i,graphic:n,focusedSymbol:a})}function z(e,t,s){const i=new P({paths:[e],spatialReference:t});let r,o;if(t.isGeographic)if(v(t))r=_([i],\"meters\")[0],o=f(i,W);else{const e=y(i,R.WGS84),s=f(e,W);r=_([e],\"meters\")[0],o=y(s,t)}else if(t.isWebMercator)r=p(i,\"meters\"),o=d(i,W,\"meters\");else{const e=u(i,\"meters\");if(e>=s){const e=y(i,R.WGS84),s=f(e,W);r=_([e],\"meters\")[0],o=y(s,t)}else r=e,o=i}return{measurement:{geometry:o,length:r},original:i,drawing:o}}function B(e){return null!=e}function O(e){if(!e)return!1;const{isGeographic:t,isWebMercator:s,isWGS84:i}=e;return t&&!i&&!v(e)||!t&&!s}function F(e,t,s){if(!t||!e)return null;switch(s){case\"metric\":return l(e,t.length,\"meters\");case\"imperial\":return n(e,t.length,\"meters\");default:return a(e,m(t.length,\"meters\",s),s)}}e([h()],E.prototype,\"_drawActive\",void 0),e([h({readOnly:!0})],E.prototype,\"cursor\",null),e([h({value:!0})],E.prototype,\"editable\",null),e([h({type:Number})],E.prototype,\"geodesicDistanceThreshold\",void 0),e([h({readOnly:!0})],E.prototype,\"measurement\",void 0),e([h({readOnly:!0})],E.prototype,\"measurementLabel\",void 0),e([h()],E.prototype,\"messages\",void 0),e([h()],E.prototype,\"palette\",void 0),e([h()],E.prototype,\"unit\",void 0),e([h({constructOnly:!0})],E.prototype,\"view\",void 0),E=e([c(\"esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DTool\")],E);export{E as DistanceMeasurement2DTool,z as createDistanceMeasurementInfo2D,F as createDistanceMeasurementLabel,O as isProjectionEngineRequired,B as isSupported};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as t}from\"../../chunks/tslib.es6.js\";import e from\"../../core/Handles.js\";import{isSome as i,isNone as s,unwrap as o}from\"../../core/maybe.js\";import{watch as r,initial as a,whenOnce as n}from\"../../core/reactiveUtils.js\";import{measurementLengthUnits as l}from\"../../core/unitUtils.js\";import{property as h}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as p}from\"../../core/accessorSupport/decorators/subclass.js\";import{load as d}from\"../../geometry/projection.js\";import{defaultUnitPropertyMetadata as u}from\"../../properties/defaultUnit.js\";import{isSupported as c,isProjectionEngineRequired as m,DistanceMeasurement2DTool as v}from\"./DistanceMeasurement2DTool.js\";import{InteractiveToolViewModel as y}from\"../support/InteractiveToolViewModel.js\";const f={handleWidth:8,handleColor:[255,128,0,.5],pathWidth:5,pathPrimaryColor:[255,128,0,255],pathSecondaryColor:[255,255,255,255]};let g=class extends y{constructor(t){super(t),this.supportedViewType=\"2d\",this.unsupportedErrorMessage=\"DistanceMeasurement2DViewModel is only supported in 2D views.\",this._handles=new e,this.geodesicDistanceThreshold=1e5,this.measurement=null,this.measurementLabel=null,this.palette=f}initialize(){this._handles.add([r((()=>o(this.view)?.spatialReference),(()=>this.clear())),r((()=>this.unit),(t=>{i(this.tool)&&(this.tool.unit=t)}),a),r((()=>this.geodesicDistanceThreshold),(t=>{i(this.tool)&&(this.tool.geodesicDistanceThreshold=t)}),a),r((()=>this.palette),(t=>{i(this.tool)&&(this.tool.palette=t)}),a)])}destroy(){this._handles&&(this._handles.destroy(),this._handles=null)}get state(){return this.disabled||s(this.view)||!c(this.view?.spatialReference)?\"disabled\":i(this.tool)&&this.measurement?this.tool.active?\"measuring\":\"measured\":\"ready\"}get unit(){return this._validateUnit(this.defaultUnit)}set unit(t){void 0!==t?this._override(\"unit\",this._validateUnit(t)):this._clearOverride(\"unit\")}get unitOptions(){return l}set unitOptions(t){void 0!==t?this._override(\"unitOptions\",this._validateUnits(t)):this._clearOverride(\"unitOptions\")}async start(){const t=this.view;i(t)&&(await n((()=>t.ready)),m(t.spatialReference)&&await d()),this.createTool({interactive:!0})}clear(){this.removeTool()}constructTool(){return new v({view:o(this.view),visible:this.visible,geodesicDistanceThreshold:this.geodesicDistanceThreshold,palette:this.palette,unit:this.unit})}_validateUnit(t){return this.unitOptions.includes(t)?t:this.unitOptions.includes(this.defaultUnit)?this.defaultUnit:this.unitOptions[0]}_validateUnits(t=[]){const e=t.filter((t=>l.includes(t)));return 0===e.length?l.slice():e}};t([h(u)],g.prototype,\"defaultUnit\",void 0),t([h({type:Number})],g.prototype,\"geodesicDistanceThreshold\",void 0),t([h({readOnly:!0,aliasOf:\"tool.measurement\"})],g.prototype,\"measurement\",void 0),t([h({readOnly:!0,aliasOf:\"tool.measurementLabel\"})],g.prototype,\"measurementLabel\",void 0),t([h()],g.prototype,\"palette\",void 0),t([h({readOnly:!0})],g.prototype,\"state\",null),t([h({type:String})],g.prototype,\"unit\",null),t([h({type:[String]})],g.prototype,\"unitOptions\",null),g=t([p(\"esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DViewModel\")],g);const w=g;export{w as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../chunks/tslib.es6.js\";import{ignoreAbortErrors as t}from\"../core/promiseUtils.js\";import{isMeasurementSystem as s}from\"../core/unitUtils.js\";import{aliasOf as i}from\"../core/accessorSupport/decorators/aliasOf.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import\"../core/accessorSupport/ensureType.js\";import{property as n}from\"../core/accessorSupport/decorators/property.js\";import{subclass as r}from\"../core/accessorSupport/decorators/subclass.js\";import a from\"./Widget.js\";import o from\"./DistanceMeasurement2D/DistanceMeasurement2DViewModel.js\";import{accessibleHandler as l}from\"./support/decorators/accessibleHandler.js\";import{messageBundle as u}from\"./support/decorators/messageBundle.js\";import{tsx as m}from\"./support/jsxFactory.js\";import\"./support/widgetUtils.js\";const c=\"esri-distance-measurement-2d\",p={buttonDisabled:\"esri-button--disabled\",widgetIcon:\"esri-icon-measure-line\",base:`${c} esri-widget esri-widget--panel`,container:`${c}__container`,hint:`${c}__hint`,hintText:`${c}__hint-text`,panelError:`${c}__panel--error`,measurement:`${c}__measurement`,measurementItem:`${c}__measurement-item`,measurementItemDisabled:`${c}__measurement-item--disabled`,measurementItemTitle:`${c}__measurement-item-title`,measurementItemValue:`${c}__measurement-item-value`,settings:`${c}__settings`,units:`${c}__units`,unitsLabel:`${c}__units-label`,unitsSelect:`${c}__units-select esri-select`,unitsSelectWrapper:`${c}__units-select-wrapper`,actionSection:`${c}__actions`,newMeasurementButton:`${c}__clear-button esri-button esri-button--primary`};let d=class extends a{constructor(e,t){super(e,t),this.iconClass=p.widgetIcon,this.label=void 0,this.messages=null,this.messagesUnits=null,this.unit=null,this.unitOptions=null,this.view=null,this.viewModel=new o}render(){const{id:e,messages:t,messagesUnits:i,viewModel:n,visible:r}=this,{active:a,supported:o,measurementLabel:l,state:u,unit:c,unitOptions:d}=n,v=\"disabled\"===u,b=\"measuring\"===u||\"measured\"===u,_=a&&\"ready\"===u?m(\"section\",{key:\"hint\",class:p.hint},m(\"p\",{class:p.hintText},t.hint)):null,w=o?null:m(\"section\",{key:\"unsupported\",class:p.panelError},m(\"p\",null,t.unsupported)),h=(e,t,s)=>t?m(\"div\",{key:`${s}-enabled`,class:p.measurementItem},m(\"span\",{class:p.measurementItemTitle},e),m(\"span\",{class:p.measurementItemValue},t)):m(\"div\",{key:`${s}-disabled`,class:this.classes(p.measurementItem,p.measurementItemDisabled),\"aria-disabled\":\"true\"},m(\"span\",{class:p.measurementItemTitle},e)),y=b?m(\"section\",{key:\"measurement\",class:p.measurement},h(t.distance,l,\"distance\")):null,g=`${e}-units`,M=b?m(\"section\",{key:\"units\",class:p.units},m(\"label\",{class:p.unitsLabel,for:g},t.unit),m(\"div\",{class:p.unitsSelectWrapper},m(\"select\",{class:p.unitsSelect,id:g,onchange:this._changeUnit,bind:this,value:c},d.map((e=>m(\"option\",{key:e,value:e},s(e)?i.systems[e]:i.units[e]?.pluralCapitalized)))))):null,$=b?m(\"div\",{key:\"settings\",class:p.settings},M):null,j=!o||a&&!b?null:m(\"div\",{class:p.actionSection},m(\"button\",{disabled:v,class:this.classes(p.newMeasurementButton,v&&p.buttonDisabled),bind:this,onclick:this._newMeasurement,title:t.newMeasurement,\"aria-label\":t.newMeasurement,type:\"button\"},t.newMeasurement)),f=r?m(\"div\",{class:p.container},w,_,$,y,j):null;return m(\"div\",{class:p.base},f)}_newMeasurement(){t(this.viewModel.start())}_changeUnit(e){const t=e.target,s=t.options[t.selectedIndex];s&&(this.viewModel.unit=s.value)}};e([i(\"viewModel.active\")],d.prototype,\"active\",void 0),e([n()],d.prototype,\"iconClass\",void 0),e([n({aliasOf:{source:\"messages.widgetLabel\",overridable:!0}})],d.prototype,\"label\",void 0),e([n()],d.prototype,\"uiStrings\",void 0),e([n(),u(\"esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D\")],d.prototype,\"messages\",void 0),e([n(),u(\"esri/core/t9n/Units\")],d.prototype,\"messagesUnits\",void 0),e([i(\"viewModel.unit\")],d.prototype,\"unit\",void 0),e([i(\"viewModel.unitOptions\")],d.prototype,\"unitOptions\",void 0),e([i(\"viewModel.view\")],d.prototype,\"view\",void 0),e([n({type:o})],d.prototype,\"viewModel\",void 0),e([i(\"viewModel.visible\")],d.prototype,\"visible\",void 0),e([l()],d.prototype,\"_newMeasurement\",null),e([l()],d.prototype,\"_changeUnit\",null),d=e([r(\"esri.widgets.DistanceMeasurement2D\")],d);const v=d;export{v as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import t from\"../../core/Accessor.js\";import o from\"../../core/Handles.js\";import s from\"../../core/Logger.js\";import{isSome as r,destroyMaybe as i,isNone as l,applySome as p}from\"../../core/maybe.js\";import{watch as a,syncAndInitial as h,when as n}from\"../../core/reactiveUtils.js\";import{property as d}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as c}from\"../../core/accessorSupport/decorators/subclass.js\";let v=class extends t{constructor(e){super(e),this.tool=null,this._baseHandles=new o,this._loggedUnsupportedErrorOnce=!1,this.logger=s.getLogger(this.declaredClass),e&&null!=e.visible&&(this.visible=e.visible)}initialize(){this._baseHandles.add(a((()=>({ready:r(this.view)&&this.view.ready,supported:this.supported})),(({ready:e,supported:t})=>{!e||t||this._loggedUnsupportedErrorOnce||(this.logError(this.unsupportedErrorMessage),this._loggedUnsupportedErrorOnce=!0)}),h))}destroy(){this.removeTool(),this.view=null,this._baseHandles=i(this._baseHandles)}get supported(){return l(this.view)||this.view.type===this.supportedViewType}get view(){return this._get(\"view\")}set view(e){if(e===this.view)return;this.removeTool(),this._set(\"view\",e);const t=\"tools\";this._baseHandles.remove(t),l(e)||this._baseHandles.add(e.tools.on(\"after-remove\",(e=>{e.item===this.tool&&this._set(\"tool\",null)})),t)}set visible(e){this._set(\"visible\",e),r(this.tool)&&(this.tool.visible=e)}get active(){return r(this.tool)&&this.tool.active}get disabled(){return l(this.view)||!this.view.ready||!this.supported}createTool(e={interactive:!1}){if(this.removeTool(),l(this.view)||!this.view.ready||!this.supported)return;const t=this.constructTool();t.created?(this._set(\"tool\",t),this.view.tools.add(t)):e.interactive?(this._set(\"tool\",t),this.view.addAndActivateTool(t),n((()=>t.created),(()=>{t.active&&r(this.view)&&(this.view.activeTool=null)}),{initial:!0,once:!0})):t.destroy()}removeTool(){const e=this.tool;if(l(e))return;const t=p(this.view,(e=>e.tools));r(t)?t.remove(e):e.destroy(),this._set(\"tool\",null)}logError(...e){this.logger.error(...e)}};e([d({constructOnly:!0})],v.prototype,\"tool\",void 0),e([d()],v.prototype,\"supported\",null),e([d({value:null})],v.prototype,\"view\",null),e([d({type:Boolean,value:!0})],v.prototype,\"visible\",null),e([d()],v.prototype,\"active\",null),e([d()],v.prototype,\"disabled\",null),v=e([c(\"esri.widgets.support.InteractiveToolViewModel\")],v);export{v as InteractiveToolViewModel};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport\"../../geometry.js\";import{isSome as e,isNone as t}from\"../../core/maybe.js\";import{getMetersPerUnitForSR as r}from\"../../core/unitUtils.js\";import{calculateTolerance as n}from\"../../renderers/support/clickToleranceUtils.js\";import i from\"../../geometry/Extent.js\";function a(t,n,a,o=new i){let s;if(\"2d\"===a.type)s=n*a.resolution;else if(\"3d\"===a.type){const i=a.overlayPixelSizeInMapUnits(t),o=a.basemapSpatialReference;s=e(o)&&!o.equals(a.spatialReference)?r(o)/r(a.spatialReference):n*i}const m=t.x-s,p=t.y-s,c=t.x+s,l=t.y+s,{spatialReference:f}=a;return o.xmin=Math.min(m,c),o.ymin=Math.min(p,l),o.xmax=Math.max(m,c),o.ymax=Math.max(p,l),o.spatialReference=f,o}function o(e,r,i){const o=i.toMap(e);if(t(o))return!1;return a(o,n(),i,s).intersects(r)}const s=new i;export{a as createQueryGeometry,o as intersectsDrapedGeometry};\n"],"sourceRoot":""}