import{validation}from"../../Validation.js";import{featuresToArray}from"./tools.js";class GetFeatureSetObjectIds{execute(e,t){const r=featuresToArray(validation.exists("features",e.features)),i=validation.string("objectIdField",e.objectIdField,"OBJECTID");e=r.map(function(e){e=e.attributes;if(null!=e){e=e[i];return"number"==typeof e?e:void 0}});return{id:e[0],ids:e}}}GetFeatureSetObjectIds.action="gcx:wf:arcgis::GetFeatureSetObjectIds",GetFeatureSetObjectIds.suite="gcx:wf:builtin";export{GetFeatureSetObjectIds};