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