"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1456],{90779:(U,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>c,default:()=>m});var t=a(66111),E=a(67948),_=a(49380),g=a(35645),l=a(52081),P=a(31403),r=a(8412),s=a(2183);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:v,userOrgs:i})=>{const T=async n=>{await e(n.orgId),window.location.href=g.v.appSubUrl+"/"};return(0,_.Z)(()=>{v()}),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:()=>T(n)},n.name))))))},m=M(c)}}]);

//# sourceMappingURL=SelectOrgPage.86247c00d525c0026a85.js.map