"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1456],{26096:(U,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>c,default:()=>m});var t=a(65237),E=a(37149),_=a(11356),g=a(49784),l=a(6741),P=a(48389),r=a(38992),s=a(47570);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.7c6c2d1e667fc9287ecb.js.map