import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetFormElementItems{execute(e,t){var m=e["items"];let{elementName:o,form:r}=e;"object"==typeof o&&(r=getFormForElement(o)),validation.exists("form",r);e=validation.boolean("reset",e.reset,!0);return o=r.actor.getElementName(o,r.event),r.actor.assignItemsToElement(o,m,e),{}}}SetFormElementItems.action="gcx:wf:forms::SetFormElementItems",SetFormElementItems.suite="gcx:wf:builtin";export{SetFormElementItems};