{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js","webpack:///./node_modules/@arcgis/core/views/interactive/snapping/candidates/VertexSnappingCandidate.js","webpack:///./node_modules/@arcgis/core/views/interactive/snapping/featureSources/queryEngineUtils.js","webpack:///./node_modules/@arcgis/core/views/interactive/snapping/hints/PointSnappingHint.js"],"names":["a","r","super","e","t","this","layerSource","layer","source","querySnapping","distance","point","coordinateHelper","vectorToPoint","toJSON","types","query","filter","createQuery","where","signal","candidates","map","constructOnly","prototype","readOnly","n","constraint","targetPoint","o","type","edgeStart","pointToVector","start","edgeEnd","end","target","objectId","s"],"mappings":"kHAAA,mLAIof,IAAIA,EAAE,cAAc,OAAE,YAAYC,GAAGC,MAAMD,GAAG,mBAAmB,OAAO,EAAE,WAAW,sBAAsBA,EAAEE,GAAG,MAAMC,EAAEC,KAAKC,YAAYC,MAAMC,OAAO,OAAOJ,EAAEK,qBAAqBL,EAAEK,cAAc,CAACC,SAAST,EAAES,SAASC,MAAMV,EAAEW,iBAAiBC,cAAcZ,EAAEU,OAAOG,SAASC,MAAMd,EAAEc,MAAMC,MAAM,eAAEf,EAAEgB,QAAQhB,EAAEgB,OAAOC,cAAcJ,SAAS,CAACK,MAAM,QAAQ,CAACC,OAAOjB,KAAKkB,WAAWC,IAAKnB,GAAG,eAAEA,EAAEF,EAAEW,mBAAoB,KAAK,eAAE,CAAC,eAAE,CAACW,eAAc,KAAMvB,EAAEwB,UAAU,mBAAc,GAAQ,eAAE,CAAC,eAAE,CAACC,UAAS,KAAMzB,EAAEwB,UAAU,eAAe,MAAMxB,EAAE,eAAE,CAAC,eAAE,mFAAmFA,I,0HCA15B,MAAM,UAAU,OAAE,YAAY0B,GAAGxB,MAAM,IAAIwB,EAAEC,WAAW,IAAI,OAAED,EAAEd,iBAAiBc,EAAEE,eAAe,YAAY,MAAM,CAAC,IAAI,OAAEvB,KAAKuB,eCApK,SAAS,EAAEC,EAAE5B,GAAG,OAAO4B,EAAEC,MAAM,IAAI,OAAO,OAAO,IAAI,OAAE,CAAClB,iBAAiBX,EAAE8B,UAAU9B,EAAE+B,cAAcH,EAAEI,OAAOC,QAAQjC,EAAE+B,cAAcH,EAAEM,KAAKP,YAAY3B,EAAE+B,cAAcH,EAAEO,QAAQC,SAASR,EAAEQ,WAAW,IAAI,SAAS,OAAO,IAAI,EAAE,CAACzB,iBAAiBX,EAAE2B,YAAY3B,EAAE+B,cAAcH,EAAEO,QAAQC,SAASR,EAAEQ,c,kCCJ1c,8DAImG,MAAMC,UAAU,OAAE,YAAYlC,GAAGF,QAAQG,KAAKM,MAAMP,EAAE,OAAOsB,GAAG,OAAOA,aAAaY,GAAG,eAAEjC,KAAKM,MAAMe,EAAEf","file":"js/chunk-703d78b0.d6535b3d.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.21/esri/copyright.txt for details.\n*/\nimport{_ as r}from\"../../../../chunks/tslib.es6.js\";import e from\"../../../../core/Accessor.js\";import{isSome as o}from\"../../../../core/maybe.js\";import{property as t}from\"../../../../core/accessorSupport/decorators/property.js\";import\"../../../../core/has.js\";import\"../../../../core/accessorSupport/ensureType.js\";import\"../../../../core/Logger.js\";import{subclass as s}from\"../../../../core/accessorSupport/decorators/subclass.js\";import{convertSnappingCandidate as i}from\"./queryEngineUtils.js\";let a=class extends e{constructor(r){super(r)}get availability(){return 1}refresh(){}async fetchCandidates(r,e){const t=this.layerSource.layer.source;return t.querySnapping?(await t.querySnapping({distance:r.distance,point:r.coordinateHelper.vectorToPoint(r.point).toJSON(),types:r.types,query:o(r.filter)?r.filter.createQuery().toJSON():{where:\"1=1\"}},{signal:e})).candidates.map((e=>i(e,r.coordinateHelper))):[]}};r([t({constructOnly:!0})],a.prototype,\"layerSource\",void 0),r([t({readOnly:!0})],a.prototype,\"availability\",null),a=r([s(\"esri.views.interactive.snapping.featureSources.FeatureCollectionSnappingSource\")],a);export{a as FeatureCollectionSnappingSource};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.21/esri/copyright.txt for details.\n*/\nimport{PointConstraint as t}from\"../SnappingConstraint.js\";import{FeatureSnappingCandidate as n}from\"./FeatureSnappingCandidate.js\";import{PointSnappingHint as r}from\"../hints/PointSnappingHint.js\";class i extends n{constructor(n){super({...n,constraint:new t(n.coordinateHelper,n.targetPoint)})}get hints(){return[new r(this.targetPoint)]}}export{i as VertexSnappingCandidate};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.21/esri/copyright.txt for details.\n*/\nimport{EdgeSnappingCandidate as e}from\"../candidates/EdgeSnappingCandidate.js\";import{VertexSnappingCandidate as t}from\"../candidates/VertexSnappingCandidate.js\";function o(o,r){switch(o.type){case\"edge\":return new e({coordinateHelper:r,edgeStart:r.pointToVector(o.start),edgeEnd:r.pointToVector(o.end),targetPoint:r.pointToVector(o.target),objectId:o.objectId});case\"vertex\":return new t({coordinateHelper:r,targetPoint:r.pointToVector(o.target),objectId:o.objectId})}}export{o as convertSnappingCandidate};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.21/esri/copyright.txt for details.\n*/\nimport{objectEqual as t}from\"../snappingUtils.js\";import{SnappingHint as n}from\"./SnappingHint.js\";class s extends n{constructor(t){super(),this.point=t}equals(n){return n instanceof s&&t(this.point,n.point)}}export{s as PointSnappingHint};\n"],"sourceRoot":""}