"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[4738],{53683(s,t,e){e.r(t),e.d(t,{DataSourcePermissionsPage:()=>_,default:()=>x});var o=e(74848),n=e(54148),u=e(40210),d=e(49095),p=e(96361);const _=()=>{const{uid:m=""}=(0,n.g)(),{navId:v,pageNav:l}=(0,d.n)("permissions");return(0,o.jsx)(u.Y,{navId:v,pageNav:l,children:(0,o.jsx)(u.Y.Contents,{children:(0,o.jsx)(p.A,{uid:m})})})},x=_},49095(s,t,e){e.d(t,{n:()=>v});var o=e(54148),n=e(92745),u=e(78282),d=e(84057),p=e(74426),_=e(99723),x=e(23691),m=e(52763);function v(l){const{uid:r=""}=(0,o.g)(),M=(0,o.zy)(),i=(0,p.xw)(r),b=(0,p.S4)(i.type),O=(0,x.ob)(i.type),w=new URLSearchParams(M.search),E=l||w.get("page"),{plugin:g,loadError:P,loading:I}=(0,p._e)(),f=(0,u.l)()?.getInstanceSettings(r),T=!!(f?.meta?.alerting??!1),h=f?.type==="alertmanager",A=T||h,D=(0,m.d4)(a=>a.navIndex),k=E?`datasource-${E}-${r}`:`datasource-settings-${r}`;let c={node:{text:(0,n.t)("connections.use-data-source-settings-nav.page-nav.text.data-source-nav-node","Data Source Nav Node")},main:{text:(0,n.t)("connections.use-data-source-settings-nav.page-nav.text.data-source-nav-node","Data Source Nav Node")}};if(P){const a={text:P,subTitle:(0,n.t)("connections.use-data-source-settings-nav.node.subTitle.data-source-error","Data Source Error"),icon:"exclamation-triangle"};c={node:a,main:a}}if((I||!g)&&(c=(0,d.tc)(D,k,(0,_.$m)("settings"))),!i.uid){const a={text:(0,n.t)("connections.use-data-source-settings-nav.node.subTitle.data-source-error","Data Source Error"),icon:"exclamation-triangle"};c={node:a,main:a}}return g&&(c=(0,d.tc)(D,k,(0,_.Vh)((0,_.R4)(i,g),E||"settings"))),{navId:"connections-datasources",pageNav:{...c.main,dataSourcePluginName:O?.name||g?.meta.name||"",active:!0,text:i.name||"",subTitle:b.name?`Type: ${b.name}`:"",url:`/connections/datasources/edit/${r}/`,children:(c.main.children||[]).map(a=>({...a,url:a.url?.replace("datasources/edit/","/connections/datasources/edit/")}))},dataSourceHeader:{alertingSupported:A}}}},14552(s,t,e){s.exports=e.p+"static/img/adobe-analytics.4753db26.svg"},42965(s,t,e){s.exports=e.p+"static/img/appdynamics.26e3d55b.svg"},63340(s,t,e){s.exports=e.p+"static/img/atlassian-statuspage.3c87e280.svg"},19810(s,t,e){s.exports=e.p+"static/img/aurora.b26d603d.svg"},36654(s,t,e){s.exports=e.p+"static/img/azure-cosmosdb.573a2a46.svg"},15912(s,t,e){s.exports=e.p+"static/img/azure-devops.a937d73a.png"},91735(s,t,e){s.exports=e.p+"static/img/catchpoint.fa6c7933.svg"},95552(s,t,e){s.exports=e.p+"static/img/cloudflare.ea4404be.jpg"},74484(s,t,e){s.exports=e.p+"static/img/cockroachdb.c40db97d.jpg"},51147(s,t,e){s.exports=e.p+"static/img/datadog.68935496.png"},7672(s,t,e){s.exports=e.p+"static/img/drone.e55e0d85.svg"},36404(s,t,e){s.exports=e.p+"static/img/dynatrace.3510a47f.png"},70535(s,t,e){s.exports=e.p+"static/img/gitlab.a9ff2a14.svg"},23735(s,t,e){s.exports=e.p+"static/img/honeycomb.23074f0a.png"},26871(s,t,e){s.exports=e.p+"static/img/jira_logo.fc367bdf.png"},57454(s,t,e){s.exports=e.p+"static/img/logicmonitor.a0d2ddd9.svg"},10128(s,t,e){s.exports=e.p+"static/img/mongodb.cd31e197.svg"},78485(s,t,e){s.exports=e.p+"static/img/netlify.35f83f3c.svg"},59161(s,t,e){s.exports=e.p+"static/img/newrelic.4ba92509.svg"},69443(s,t,e){s.exports=e.p+"static/img/oracle.b53d3bc4.png"},94443(s,t,e){s.exports=e.p+"static/img/pagerduty.261221ea.svg"},12680(s,t,e){s.exports=e.p+"static/img/salesforce.f79d37a9.svg"},99444(s,t,e){s.exports=e.p+"static/img/sap_hana.7f369d20.png"},57925(s,t,e){s.exports=e.p+"static/img/servicenow.de3a7a6a.svg"},15584(s,t,e){s.exports=e.p+"static/img/signalfx-logo.70e37f3d.svg"},22810(s,t,e){s.exports=e.p+"static/img/snowflake.4951e616.svg"},73946(s,t,e){s.exports=e.p+"static/img/solarWinds.fe97cd47.svg"},42166(s,t,e){s.exports=e.p+"static/img/splunk_logo_128.08e4871b.png"},6758(s,t,e){s.exports=e.p+"static/img/sumo.3e01fb77.svg"},40250(s,t,e){s.exports=e.p+"static/img/wavefront.a8880e4a.svg"},16926(s,t,e){s.exports=e.p+"static/img/zendesk.9a6bf432.svg"}}]);

//# sourceMappingURL=ConnectionsDataSourcePermissionsPage.4d3fedce012693eb6c97.js.map