import{validation}from"../../Validation.js";import{featuresToArray}from"./tools.js";class GetAttributeValues{execute(t,e){const a=validation.string("attribute",t.attribute,validation.never),i=featuresToArray(validation.exists("features",t.features));t=i.map(t=>t.attributes?t.attributes[a]:void 0).filter(t=>null!=t);return{value:t[0],values:t}}}GetAttributeValues.action="gcx:wf:arcgis::GetAttributeValues",GetAttributeValues.suite="gcx:wf:builtin";export{GetAttributeValues};