"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(68404),E=a(36635),_=a(58252),g=a(35645),l=a(52081),P=a(31403),r=a(79396),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.724f7fc4a6cb86978c63.js.map