import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class ClearFormElementError{execute(e,r){let{elementName:o,form:t}=e;return"object"==typeof o&&(t=getFormForElement(o)),validation.exists("form",t),o=t.actor.getElementName(o,t.event),t.actor.setElementError(o,void 0),{}}}ClearFormElementError.action="gcx:wf:forms::ClearFormElementError",ClearFormElementError.suite="gcx:wf:builtin";export{ClearFormElementError};