"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[207],{35871:(D,r,a)=>{a.r(r),a.d(r,{PanelEditPage:()=>l,default:()=>g});var e=a(85960),P=a(5836),_=a(20989),d=a(55415),s=a(51012);function l({match:n}){const t=(0,s.wc)(),{panelEditor:E,isLoading:u,loadError:o}=t.useState();return(0,e.useEffect)(()=>(t.loadPanelEdit(n.params.uid,n.params.panelId),()=>{t.clearState()}),[t,n.params.uid,n.params.panelId]),E?e.createElement(E.Component,{model:E}):e.createElement(_.T,{layout:P.Q.Canvas},u&&e.createElement(d.Z,null),o&&e.createElement("h2",null,o))}const g=l}}]);

//# sourceMappingURL=scenes.ba84e2d490fe5901ac47.js.map