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