"use strict";(self.webpackChunkgrafana_exploretraces_app=self.webpackChunkgrafana_exploretraces_app||[]).push([[722],{28722:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(85959),o=n.n(r),a=n(15056),c=n(65082);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,o,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}if(a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.getOwnPropertyNames(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}function u(e){let{initialTimeRange:t,onTimeRangeChange:n}=e,r=l(e,["initialTimeRange","onTimeRangeChange"]);var o;const u=new a.JZ({value:t,from:t.raw.from.toString(),to:t.raw.to.toString()});u.subscribeToState(e=>{n&&n(e.value)});const f=new c.Nr(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){i(e,t,n[t])})}return e}({$timeRange:u,embedded:!0,initialMetric:null!==(o=r.initialMetric)&&void 0!==o?o:"rate"},r));if(!r.embeddedMini){const e=new URLSearchParams(window.location.search);a.Go.syncStateFromSearchParams(f,e)}return f}function f(e){const[t]=(0,r.useState)(u(e));return e.urlSync?o().createElement(a.$L,{namespace:"td",scene:t,updateUrlOnInit:!1,createBrowserHistorySteps:!0},o().createElement(t.Component,{model:t})):o().createElement(t.Component,{model:t})}}}]);
//# sourceMappingURL=722.js.map?_cache=acdc8abd059829a87569