"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1456],{87918:(h,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>c,default:()=>m});var t=a(27702),E=a(27173),_=a(19559),g=a(34667),l=a(64022),P=a(66670),r=a(44644),s=a(30284);const O={main:{icon:"grafana",subTitle:"Preferences",text:"Select active organization"},node:{text:"Select active organization"}},D=e=>({userOrgs:e.organization.userOrgs}),u={setUserOrganization:s.Q$,getUserOrganizations:s.JE},M=(0,E.connect)(D,u),c=({setUserOrganization:e,getUserOrganizations:T,userOrgs:i})=>{const U=async n=>{await e(n.orgId),window.location.href=g.config.appSubUrl+"/"};return(0,_.Z)(()=>{T()}),t.createElement(r.T,{navModel:O},t.createElement(r.T.Contents,null,t.createElement("div",null,t.createElement("p",null,"You have been invited to another organization! Please select which organization that you want to use right now. You can change this later at any time."),t.createElement(l.Lh,{wrap:!0},i&&i.map(n=>t.createElement(P.zx,{key:n.orgId,icon:"signin",onClick:()=>U(n)},n.name))))))},m=M(c)}}]);

//# sourceMappingURL=SelectOrgPage.59bd0d388a524266dd92.js.map