Liferay.Loader.define("users-admin-web@6.0.44/js/actions.es",["module","exports","require","frontend-js-web"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ACTIONS=void 0;var a=n("frontend-js-web");const e={selectUsers({basePortletURL:e,organizationId:t,portletNamespace:n}){if(!t)return;const o=(0,a.createRenderURL)(e,{mvcPath:"/select_organization_users.jsp",organizationId:t,p_p_state:"pop_up"});(0,a.openSelectionModal)({buttonAddLabel:Liferay.Language.get("done"),multiple:!0,onSelect:o=>{if(null==o?void 0:o.length){const i=(0,a.createRenderURL)(e,{mvcRenderCommandName:"/users_admin/view",organizationId:t,toolbarItem:"view-all-organizations",usersListView:"tree"}),r=o.map((e=>e.value)),s=(0,a.createActionURL)(e,{addUserIds:r.join(","),assignmentsRedirect:i.toString(),"javax.portlet.action":"/users_admin/edit_organization_assignments",organizationId:t}),d=document.getElementById("".concat(n,"fm"));if(!d)return;submitForm(d,s.toString())}},title:Liferay.Language.get("assign-users"),url:o.toString()})}};t.ACTIONS=e}}));
//# sourceMappingURL=actions.es.js.map