Liferay.Loader.define("site-membership-web@5.0.57/js/actions",["module","exports","require","frontend-js-web"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ACTIONS=void 0;var n=o("frontend-js-web");const e={assignRoles(e,t){(0,n.openSelectionModal)({buttonAddLabel:Liferay.Language.get("done"),getSelectedItemsOnly:!1,multiple:!0,onSelect:o=>{const n=document.getElementById("".concat(t,"editUserGroupRoleFm"));if(!n)return;const a=document.createElement("input");a.name="".concat(t,"availableRowIds"),a.value=o.map((e=>e.value)),n.appendChild(a);const r=document.createElement("input");r.name="".concat(t,"rowIds"),r.value=o.filter((e=>e.checked)).map((e=>e.value)),n.appendChild(r),submitForm(n,e.editUserGroupRoleURL)},title:Liferay.Language.get("assign-roles"),url:e.assignRolesURL})},deleteGroupUsers(e){(0,n.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-delete-this"),onConfirm:t=>{t&&submitForm(document.hrefFm,e.deleteGroupUsersURL)}})}};t.ACTIONS=e}}));
//# sourceMappingURL=actions.js.map