"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.withActionHandler=void 0;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)}var b=function(b){if("function"!=typeof b)throw new Error("withActionHandler can only be applied to methods not: ".concat(a(b)));return function(a){if(!a||!a.type||"click"===a.type||-1!==["keydown","keypress"].indexOf(a.type)&&-1!==["Enter"," "].indexOf(a.key)){for(var c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];b.apply(void 0,[a].concat(d))}}};exports.withActionHandler=b;