Liferay.Loader.define("announcements-web@6.0.37/announcements_admin/js/AnnouncementsManagementToolbarPropsTransformer",["module","exports","require","frontend-js-web"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{additionalProps:{deleteEntriesURL:t,inputId:n,inputValue:o},portletNamespace:c}=e;return i(i({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["additionalProps","portletNamespace"])),{},{onActionButtonClick(e,{item:i}){var a;"deleteEntries"===(null==i||null===(a=i.data)||void 0===a?void 0:a.action)&&(0,r.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-delete-the-selected-entries"),onConfirm:e=>{if(e){const e=document.getElementById("".concat(c,"fm"));if(!e)return;e.setAttribute("method","post");const r=document.getElementById("".concat(c).concat(n));r&&r.setAttribute("value",o),submitForm(e,t)}}})}})};var r=n("frontend-js-web");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}}));
//# sourceMappingURL=AnnouncementsManagementToolbarPropsTransformer.js.map