"use strict";(self.webpackChunkgrafana_pyroscope_app=self.webpackChunkgrafana_pyroscope_app||[]).push([[776],{9776:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var r=n(9869),a=n(4164),o=n(3715),i=n(5959),c=n.n(i),l=n(9838);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u({initialTimeRange:e,onTimeRangeChange:t,initialFilters:n,initialDS:a}){const o=new r.JZ({value:e,from:e.raw.from.toString(),to:e.raw.to.toString()});o.subscribeToState((e=>{t&&t(e.value)}));const i=new l.a({$timeRange:o,isEmbedded:!0,initialFilters:n?n.map((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}({},e))):void 0,initialDS:a}),c=new URLSearchParams(window.location.search);return r.Go.syncStateFromSearchParams(i,c),i}function p(e){const[t]=(0,i.useState)(u(e));return c().createElement(r.$L,{namespace:"pd",scene:t,updateUrlOnInit:!1,createBrowserHistorySteps:!0},c().createElement(o.Ht,{client:a.q},c().createElement(t.Component,{model:t})))}}}]);
//# sourceMappingURL=776.js.map?_cache=af7b61fe118bc8f81cea