"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[9603],{"./public/app/features/admin/AdminSettings.tsx":(e,s,n)=>{n.r(s),n.d(s,{AdminSettings:()=>l,default:()=>p});var t,a=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),r=n("./packages/grafana-runtime/src/index.ts"),d=n("./public/app/core/selectors/navModel.ts"),c=n("./public/app/core/components/Page/Page.tsx"),o=n("./node_modules/react/jsx-runtime.js");class l extends a.PureComponent{constructor(...e){var s,n,t;super(...e),t={settings:{},isLoading:!0},(n="state")in(s=this)?Object.defineProperty(s,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[n]=t}async componentDidMount(){const e=await(0,r.getBackendSrv)().get("/api/admin/settings");this.setState({settings:e,isLoading:!1})}render(){const{settings:e,isLoading:s}=this.state,{navModel:n}=this.props;return(0,o.jsx)(c.Z,{navModel:n,children:(0,o.jsxs)(c.Z.Contents,{isLoading:s,children:[(0,o.jsx)("div",{className:"grafana-info-box span8",style:{margin:"20px 0 25px 0"},children:"These system settings are defined in grafana.ini or custom.ini (or overridden in ENV variables). To change these you currently need to restart Grafana."}),(0,o.jsx)("table",{className:"filter-table",children:(0,o.jsx)("tbody",{children:Object.entries(e).map((([e,s],n)=>(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"admin-settings-section",children:e}),t||(t=(0,o.jsx)("td",{}))]}),Object.entries(s).map((([e,s],n)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{style:{paddingLeft:"25px"},children:e}),(0,o.jsx)("td",{style:{whiteSpace:"break-spaces"},children:s})]},`property-${n}`)))]},`section-${n}`)))})})]})})}}const p=(0,i.connect)((e=>({navModel:(0,d.h)(e.navIndex,"server-settings")})))(l)}}]);
//# sourceMappingURL=AdminSettings.8128b05ac04b15cbf98d.js.map