define(["require","exports","../../Validation","./FormElementMap"],function(e,t,a,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(r.prototype.execute=function(e,t){var n=e.elementName,r=e.elementType,o=e.element,i=e.targetForm,e=e.form,e=i||e;if(a.validation.exists("form",e),a.validation.string("elementName",n,a.validation.never),a.validation.string("elementType",r,a.validation.never),"Header"===r)throw new Error("A form cannot contain more than one header element.");o=e.actor.addElement(n,r,o);return m.setFormForElement(o,e),{}},r.action="gcx:wf:forms::AddFormElement",r.suite="gcx:wf:builtin",r);function r(){}t.AddFormElement=n});