"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5310],{"./public/app/core/hooks/useNavModel.ts":(e,s,n)=>{n.d(s,{q:()=>r});var a=n("./node_modules/react-redux/es/index.js"),t=n("./public/app/core/selectors/navModel.ts");const r=e=>{const s=(0,a.useSelector)((e=>e.navIndex));return(0,t.h)(s,e)}},"./public/app/features/live/pages/CloudAdminPage.tsx":(e,s,n)=>{n.r(s),n.d(s,{default:()=>l});var a=n("./node_modules/react/index.js"),t=n("./packages/grafana-runtime/src/index.ts"),r=n("./packages/grafana-ui/src/index.ts"),c=n("./public/app/core/components/Page/Page.tsx"),o=n("./public/app/core/hooks/useNavModel.ts"),i=n("./node_modules/@emotion/css/dist/emotion-css.esm.js"),d=n("./node_modules/react/jsx-runtime.js");function l(){const e=(0,o.q)("live-cloud"),[s,n]=(0,a.useState)([]),[i,l]=(0,a.useState)(),p=(0,r.useStyles)(u);return(0,a.useEffect)((()=>{(0,t.getBackendSrv)().get("api/live/remote-write-backends").then((e=>{n(e.remoteWriteBackends)})).catch((e=>{e.data&&l(JSON.stringify(e.data,null,2))}))}),[]),(0,d.jsx)(c.Z,{navModel:e,children:(0,d.jsxs)(c.Z.Contents,{children:[i&&(0,d.jsx)("pre",{children:i}),!s&&(0,d.jsx)(d.Fragment,{children:"Loading cloud definitions"}),s&&s.map((e=>(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{children:e.uid}),(0,d.jsx)("pre",{className:p.row,children:JSON.stringify(e.settings,null,2)})]},e.uid)))]})})}const u=e=>({row:i.css`
      cursor: pointer;
    `})}}]);
//# sourceMappingURL=CloudAdminPage.8128b05ac04b15cbf98d.js.map