import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class ShowFormElement{execute(e,t){var{elementName:o,visible:m}=e;let r=e["form"];"object"==typeof o&&(r=getFormForElement(o)),validation.exists("form",r);o=r.actor.getElement(o,r.event);return!1===m?r.actor.hideElement(o):r.actor.showElement(o),{}}}ShowFormElement.action="gcx:wf:forms::ShowFormElement",ShowFormElement.suite="gcx:wf:builtin";export{ShowFormElement};