"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5310],{"./public/app/core/hooks/useNavModel.ts":(e,a,s)=>{s.d(a,{q:()=>r});var n=s("./.yarn/__virtual__/react-redux-virtual-7ad20a440e/3/opt/drone/yarncache/react-redux-npm-7.2.6-134f5ed64d-0bf142ce0d.zip/node_modules/react-redux/es/index.js"),c=s("./public/app/core/selectors/navModel.ts");const r=e=>{const a=(0,n.useSelector)((e=>e.navIndex));return(0,c.h)(a,e)}},"./public/app/features/live/pages/CloudAdminPage.tsx":(e,a,s)=>{s.r(a),s.d(a,{default:()=>u});var n=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),c=s("./packages/grafana-runtime/src/index.ts"),r=s("./packages/grafana-ui/src/index.ts"),t=s("./public/app/core/components/Page/Page.tsx"),o=s("./public/app/core/hooks/useNavModel.ts"),i=s("./.yarn/__virtual__/@emotion-css-virtual-72c314ddb1/3/opt/drone/yarncache/@emotion-css-npm-11.7.1-25ff8755a7-ac1f56656f.zip/node_modules/@emotion/css/dist/emotion-css.esm.js"),d=s("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/jsx-runtime.js");function u(){const e=(0,o.q)("live-cloud"),[a,s]=(0,n.useState)([]),[i,u]=(0,n.useState)(),p=(0,r.useStyles)(l);return(0,n.useEffect)((()=>{(0,c.getBackendSrv)().get("api/live/write-configs").then((e=>{s(e.writeConfigs)})).catch((e=>{e.data&&u(JSON.stringify(e.data,null,2))}))}),[]),(0,d.jsx)(t.Z,{navModel:e,children:(0,d.jsxs)(t.Z.Contents,{children:[i&&(0,d.jsx)("pre",{children:i}),!a&&(0,d.jsx)(d.Fragment,{children:"Loading cloud definitions"}),a&&a.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 l=e=>({row:i.css`
      cursor: pointer;
    `})}}]);
//# sourceMappingURL=CloudAdminPage.cd4ada1146b53ad3284f.js.map