"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[4738],{76326:(O,r,a)=>{a.r(r),a.d(r,{DataSourcePermissionsPage:()=>d,default:()=>P});var e=a(74848),E=a(54148),s=a(54122),o=a(95374),_=a(74735);const d=()=>{const{uid:l=""}=(0,E.g)(),{navId:g,pageNav:n}=(0,o.n)("permissions");return(0,e.jsx)(s.Y,{navId:g,pageNav:n,children:(0,e.jsx)(s.Y.Contents,{children:(0,e.jsx)(_.A,{uid:l})})})},P=d},95374:(O,r,a)=>{a.d(r,{n:()=>l});var e=a(54148),E=a(98437),s=a(12636),o=a(802),_=a(96326),d=a(11241),P=a(61491);function l(g){const{uid:n=""}=(0,e.g)(),I=(0,e.zy)(),i=(0,o.xw)(n),S=(0,o.S4)(i.type),A=(0,d.ob)(i.type),T=new URLSearchParams(I.search),D=g||T.get("page"),{plugin:u,loadError:m,loading:C}=(0,o._e)(),v=(0,E.l)()?.getInstanceSettings(n),f=!!(v?.meta?.alerting??!1),R=v?.type==="alertmanager",h=f||R,M=(0,P.useSelector)(t=>t.navIndex),p=D?`datasource-${D}-${n}`:`datasource-settings-${n}`;let c={node:{text:"Data Source Nav Node"},main:{text:"Data Source Nav Node"}};if(m){const t={text:m,subTitle:"Data Source Error",icon:"exclamation-triangle"};c={node:t,main:t}}return(C||!u)&&(c=(0,s.tc)(M,p,(0,_.$m)("settings"))),u&&(c=(0,s.tc)(M,p,(0,_.Vh)((0,_.R4)(i,u),D||"settings"))),{navId:"connections-datasources",pageNav:{...c.main,dataSourcePluginName:A?.name||u?.meta.name||"",active:!0,text:i.name,subTitle:`Type: ${S.name}`,children:(c.main.children||[]).map(t=>({...t,url:t.url?.replace("datasources/edit/","/connections/datasources/edit/")}))},dataSourceHeader:{alertingSupported:h}}}}}]);

//# sourceMappingURL=ConnectionsDataSourcePermissionsPage.091a13117c05ad643851.js.map