"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=b;function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}function b(b,c,d){var e=d.value;if("function"!=typeof e)throw new Error("@a11yButtonActionHandler decorator can only be applied to methods not: ".concat(a(e)));return d.value=function(a){if(!a||!a.type||"click"===a.type||-1!==["keydown","keypress"].indexOf(a.type)&&-1!==["Enter"," "].indexOf(a.key)){for(var b=arguments.length,c=Array(1<b?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];e.call(this,a,c)}},d}