"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5310],{93970:(e,n,s)=>{s.d(n,{q:()=>i});var t=s(18745),r=s(8674);const i=e=>{const n=(0,t.useSelector)((e=>e.navIndex));return(0,r.h)(n,e)}},20238:(e,n,s)=>{s.r(n),s.d(n,{default:()=>u});var t=s(36636),r=s(68404),i=s(90923),a=s(69783),c=s(33801),d=s(93970),l=s(45916);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.53112753380f843c0d2e.js.map