"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7430],{90607:(v,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>i,default:()=>M});var n=a(74848),_=a(71468),g=a(94701),E=a(32370),P=a(48583),O=a(54594),s=a(54122),r=a(80713);const l={main:{icon:"grafana",subTitle:"Preferences",text:"Select active organization"},node:{text:"Select active organization"}},h=e=>({userOrgs:e.organization.userOrgs}),d={setUserOrganization:r.bA,getUserOrganizations:r.wV},D=(0,_.connect)(h,d),i=({setUserOrganization:e,getUserOrganizations:U,userOrgs:c})=>{const u=async t=>{await e(t.orgId),window.location.href=E.$.appSubUrl+"/"};return(0,g.A)(()=>{U()}),(0,n.jsx)(s.Y,{navModel:l,children:(0,n.jsx)(s.Y.Contents,{children:(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"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."}),(0,n.jsx)(P.B,{wrap:"wrap",children:c&&c.map(t=>(0,n.jsx)(O.$n,{icon:"signin",onClick:()=>u(t),children:t.name},t.orgId))})]})})})},M=D(i)}}]);

//# sourceMappingURL=SelectOrgPage.e36f7c8a2dd9ab72f062.js.map