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