"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[4074],{"./public/app/features/search/components/DashboardListPage.tsx":(e,a,r)=>{r.r(a),r.d(a,{DashboardListPage:()=>h,default:()=>m});var s=r("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),n=r("./.yarn/__virtual__/react-use-virtual-00326e70ba/3/opt/drone/yarncache/react-use-npm-17.3.2-a032cbeb01-7379460f51.zip/node_modules/react-use/esm/useAsync.js"),t=r("./.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"),o=r("./packages/grafana-data/src/index.ts"),c=r("./packages/grafana-runtime/src/index.ts"),d=r("./public/app/core/selectors/navModel.ts"),l=r("./public/app/core/components/Page/Page.tsx"),i=r("./public/app/core/services/backend_srv.ts"),p=r("./public/app/features/folders/state/navModel.ts");var u=r("./public/app/features/search/components/ManageDashboards.tsx"),v=r("../../opt/drone/yarncache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/jsx-runtime.js");const h=(0,s.memo)((e=>{var a;let{navModel:r,match:s,location:t}=e;const{loading:d,value:h}=(0,n.Z)((()=>{const e=s.params.uid,a=t.pathname;return e&&a.startsWith("/dashboards")?(e=>i.ae.getFolderByUid(e).then((e=>{const a=(0,p.B)(e);return a.children[0].active=!0,{folder:e,folderNav:a}})))(e).then((e=>{let{folder:a,folderNav:s}=e;const n=o.locationUtil.stripBaseFromUrl(a.url);return n!==t.pathname&&c.locationService.push(n),{folder:a,pageNavModel:Object.assign({},r,{main:s})}})):Promise.resolve({pageNavModel:r})}),[s.params.uid]);return(0,v.jsx)(l.Z,{navModel:null!==(a=null==h?void 0:h.pageNavModel)&&void 0!==a?a:r,children:(0,v.jsx)(l.Z.Contents,{isLoading:d,children:(0,v.jsx)(u.Z,{folder:null==h?void 0:h.folder})})})}));h.displayName="DashboardListPage";const m=(0,t.connect)((e=>({navModel:(0,d.h)(e.navIndex,"manage-dashboards")})))(h)}}]);
//# sourceMappingURL=DashboardListPage.cd4ada1146b53ad3284f.js.map