import{executeQuery as e,executeCount as r}from"../../support/_graphicsQuery.js";import{isMapNotesSublayer as t}from"../../utilities/_layers.js";import{IdentifyProviderBase as s}from"./IdentifyProviderBase.js";export class MapNotesSublayerQueryIdentifyProvider extends s{isSupported(e,r,s){const{sublayer:i}=e;return t(i)&&e.capabilities.supportsQuery}_identify(r,t,s){const{sublayer:i}=r,a={cancelToken:s.cancelToken,outFields:s.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{sublayer:i}=e,a={cancelToken:s.cancelToken,spatialFilter:t,maxResults:s.maxResults};return r("1=1",e,i.graphics,a)}}