"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1456],{71239:(h,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>c,default:()=>m});var t=a(39953),E=a(89772),_=a(45580),g=a(32688),l=a(12223),P=a(4919),r=a(13253),s=a(72700);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.b43b92858a3bb318f791.js.map