!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 i=e("../../Validation"),r=e("./FormElementMap"),e=(a.prototype.execute=function(e,t){var a=e.matchType,n=e.value,o=e.elementName,e=e.form;switch("object"==typeof o&&(e=r.getFormForElement(o)),i.validation.exists("form",e),i.validation.string("matchType",a,i.validation.never),i.validation.exists("value",n),a){case"index":case"item":case"key":case"label":case"value":break;default:i.validation.fail("matchOn",'The `matchOn` input must be "index", "item", "key", "label" or "value".')}o=e.actor.getElementName(o,e.event);return{result:e.actor.setCurrentItem(o,n,a)}},a.action="gcx:wf:forms::SetCurrentFormElementItem",a.suite="gcx:wf:builtin",a);function a(){}t.SetCurrentFormElementItem=e});