import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class FilterFormElementItems{execute(e){let{elementName:t,form:m,phrase:r}=e;return"object"==typeof t&&(m=getFormForElement(t)),validation.exists("form",m),t=m.actor.getElementName(t,m.event),"string"!=typeof r&&(e=m.event.argument,r="string"==typeof e?e:""),{result:m.actor.filterItems(t,r)}}}FilterFormElementItems.action="gcx:wf:forms::FilterFormElementItems",FilterFormElementItems.suite="gcx:wf:builtin";export{FilterFormElementItems};