"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[6092],{60265:(L,_,e)=>{e.r(_),e.d(_,{StorageFolderPage:()=>i,default:()=>h,getPageNavFromSlug:()=>v,getRootContentNavModel:()=>P});var t=e(68404),m=e(22350),c=e(35645),g=e(72948),f=e(39904),M=e(67487),D=e(45253),O=e(79396),C=e(63163);function i(E){const n=E.match.params.slug??"",a=(0,m.Z)(()=>(0,C.$)().list("content/"+n),[n]),s=n.length>0?`g/${n}/`:"g/",o=v(n),l=()=>a.value?a.value.fields[0].values.toArray().map(R=>{let r=R;const u=r.indexOf(".")<0,d=!u&&r.endsWith(".json"),A=`${s}${r}`;return t.createElement(g.Z,{key:r,href:u||d?A:void 0},t.createElement(g.Z.Heading,null,r),t.createElement(g.Z.Figure,null,t.createElement(f.J,{name:u?"folder":d?"gf-grid":"file-alt",size:"sm"})))}):a.loading?t.createElement(M.$,null):t.createElement("div",null,"?"),T=P();return t.createElement(O.T,{navModel:T,pageNav:o},!c.v.featureToggles.topnav&&t.createElement("div",null,t.createElement(D.b,{title:"Enable the topnav feature toggle"},"This page is designed assuming topnav is enabled")),l())}function v(E){const n=E.split("/");let a=[],s="g",o;for(let l=0;l<n.length;l++)s+=`/${n[l]}`,a.push({text:n[l],url:s,parentItem:o}),o=a[a.length-1];return o}function P(){return{main:{text:"C:"},node:{text:"Content",url:"/g"}}}const h=i}}]);

//# sourceMappingURL=StorageFolderPage.a8f75e8a7e07d1300808.js.map