!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Validation","./FormElementMap"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("../../Validation"),m=e("./FormElementMap"),e=(n.prototype.execute=function(e,t){var n=e.elementName,o=e.elementType,r=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",o,a.validation.never),"Header"===o)throw new Error("A form cannot contain more than one header element.");r=e.actor.addElement(n,o,r);return m.setFormForElement(r,e),{}},n.action="gcx:wf:forms::AddFormElement",n.suite="gcx:wf:builtin",n);function n(){}t.AddFormElement=e});