import{executeQuery as e,executeCount as r}from"../../support/_graphicsQuery.js";import{isGraphicsLayer as t}from"../../utilities/_layers.js";import{IdentifyProviderBase as s}from"./IdentifyProviderBase.js";export class GraphicsLayerQueryIdentifyProvider extends s{isSupported(e,r,s){const{layer:i}=e;return t(i)&&e.capabilities.supportsQuery}_identify(r,t,s){const i=r.layer,a={cancelToken:s.cancelToken,outFields:r.featureSettings.outFields,returnGeometry:s.returnGeometry,spatialFilter:t,maxResults:s.maxResults};return e("1=1",r,i.graphics,a)}_count(e,t,s){const i=e.layer,a={cancelToken:s.cancelToken,spatialFilter:t,maxResults:s.maxResults};return r("1=1",e,i.graphics,a)}}