"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7430],{44613:(v,o,a)=>{a.r(o),a.d(o,{SelectOrgPage:()=>i,default:()=>M});var n=a(74848),_=a(71468),g=a(94701),E=a(32264),P=a(67061),O=a(55852),s=a(21780),r=a(32931);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.YW,{navModel:l,children:(0,n.jsx)(s.YW.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.84b76c108e2e2884d609.js.map