Liferay.Loader.define("message-boards-web@5.0.70/message_boards_admin/js/BanUsersManagementToolbarPropsTransformer",["module","exports","require","frontend-js-web"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function propsTransformer(e){let{additionalProps:{banUsersURL:r},portletNamespace:t}=e;return _objectSpread(_objectSpread({},function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["additionalProps","portletNamespace"])),{},{onActionButtonClick:(e,{item:o})=>{var a;if("unbanUser"===(null==o||null===(a=o.data)||void 0===a?void 0:a.action)){const e=document.getElementById("".concat(t,"fm"));e&&(0,n.postForm)(e,{data:{cmd:"unban"},url:r})}}})};var n=t("frontend-js-web");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}}}));
//# sourceMappingURL=BanUsersManagementToolbarPropsTransformer.js.map