import{isBuildingComponentSublayer as e}from"../../utilities/_layers.js";import{empty as r}from"../../utilities/asyncIterable.js";import{isWebScene as t}from"../../utilities/mapping.js";import{ClientSideQueryProvider as i}from"./ClientSideQueryProvider.js";export class BuildingComponentSublayerClientSideQueryProvider extends i{isSupported(r){const i=t(r?.layerExtension?.mapExtension?.map),{sublayer:u}=r;return e(u)&&i}_query(e,t,i){return e._layerView?super._query(e,t,i):r()}async _count(e,r,t){return e._layerView?super._count(e,r,t):{source:e,count:0}}_createQuery(e,r,t){const i=super._createQuery(e,r,t);return"mesh"===e.sublayer.geometryType&&(i.returnGeometry=!1),i}}