Liferay.Loader.define("account-admin-web@2.0.61/account_entries_admin/js/AccountEntriesManagementToolbarPropsTransformer",["module","exports","require","frontend-js-web"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){let{portletNamespace:n}=t,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["portletNamespace"]);return c(c({},o),{},{onActionButtonClick:(t,{item:o})=>{const c=null==o?void 0:o.data,a=null==c?void 0:c.action;var i;"activateAccountEntries"===a?e(n,null==(i=c)?void 0:i.activateAccountEntriesURL):"deactivateAccountEntries"===a?(t=>{(0,r.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-deactivate-this"),onConfirm:r=>r&&e(n,null==t?void 0:t.deactivateAccountEntriesURL)})})(c):"deleteAccountEntries"===a&&(t=>{(0,r.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-delete-this"),onConfirm:r=>r&&e(n,null==t?void 0:t.deleteAccountEntriesURL)})})(c)}})};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 c(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const e=(e,t)=>{const n=document.getElementById("".concat(e,"fm"));n&&(0,r.postForm)(n,{data:{accountEntryIds:(0,r.getCheckedCheckboxes)(n,"".concat(e,"allRowIds"))},url:t})}}}));
//# sourceMappingURL=AccountEntriesManagementToolbarPropsTransformer.js.map