Liferay.Loader.define("account-admin-web@2.0.45/account_entries_admin/js/actions",["module","exports","require","frontend-js-web"],(function(e,n,o){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.ACTIONS=void 0;var t=o("frontend-js-web");const e={assignRoleAccountUsers(e,n){(0,t.openSelectionModal)({buttonAddLabel:Liferay.Language.get("done"),containerProps:{className:""},iframeBodyCssClass:"",multiple:!0,onSelect:o=>{if(Array.isArray(o)){const t=document.getElementById("".concat(n,"fm"));if(!t)return;const a=document.createElement("input");a.name="".concat(n,"accountRoleIds"),a.value=o.map((e=>e.value)),t.appendChild(a),submitForm(t,e.editRoleAccountUsersURL)}},title:Liferay.Language.get("assign-roles"),url:e.assignRoleAccountUsersURL})},removeAccountUsers(e){confirm(Liferay.Language.get("are-you-sure-you-want-to-remove-this-user"))&&submitForm(document.hrefFm,e.removeAccountUsersURL)}};n.ACTIONS=e}}));
//# sourceMappingURL=actions.js.map