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