"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7430],{44613:(h,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>c,default:()=>m});var t=a(96540),E=a(69733),_=a(94701),g=a(32264),l=a(66864),P=a(55852),r=a(36830),s=a(32931);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.bA,getUserOrganizations:s.wV},M=(0,E.connect)(D,u),c=({setUserOrganization:e,getUserOrganizations:U,userOrgs:i})=>{const v=async n=>{await e(n.orgId),window.location.href=g.$.appSubUrl+"/"};return(0,_.A)(()=>{U()}),t.createElement(r.Y,{navModel:O},t.createElement(r.Y.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.Gy,{wrap:!0},i&&i.map(n=>t.createElement(P.$n,{key:n.orgId,icon:"signin",onClick:()=>v(n)},n.name))))))},m=M(c)}}]);

//# sourceMappingURL=SelectOrgPage.695c19a5101a3a03ee28.js.map