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