"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5310],{49102:(e,n,s)=>{s.d(n,{q:()=>i});var t=s(46958),r=s(3276);const i=e=>{const n=(0,t.useSelector)((e=>e.navIndex));return(0,r.h)(n,e)}},28287:(e,n,s)=>{s.r(n),s.d(n,{default:()=>u});var t=s(68490),r=s(76687),i=s(10967),a=s(70534),c=s(36131),d=s(49102),l=s(52010);function u(){const e=(0,d.q)("live-cloud"),[n,s]=(0,r.useState)([]),[t,u]=(0,r.useState)(),h=(0,a.useStyles)(o);return(0,r.useEffect)((()=>{(0,i.getBackendSrv)().get("api/live/write-configs").then((e=>{s(e.writeConfigs)})).catch((e=>{e.data&&u(JSON.stringify(e.data,null,2))}))}),[]),(0,l.jsx)(c.Z,{navModel:e,children:(0,l.jsxs)(c.Z.Contents,{children:[t&&(0,l.jsx)("pre",{children:t}),!n&&(0,l.jsx)(l.Fragment,{children:"Loading cloud definitions"}),n&&n.map((e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{children:e.uid}),(0,l.jsx)("pre",{className:h.row,children:JSON.stringify(e.settings,null,2)})]},e.uid)))]})})}const o=e=>({row:t.css`
      cursor: pointer;
    `})}}]);
//# sourceMappingURL=CloudAdminPage.09e6e0afa9c5b5cd7ab9.js.map