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