"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5686],{27281(C,n,r){r.r(n),r.d(n,{plugin:()=>u});var h=r(83340),a=r(16207),s=r(74848),f=r(1906),c=r(97369),B=r(94814),G=r(27489),o=r(43173),p=r(14477);function d(t,e={}){(0,G.rR)(`grafana_flamegraph_${t}`,{app:f.Jk.Unknown,grafana_version:o.$.buildInfo.version,...e})}const v=t=>{const e=(0,c.oA)(t.data.series[0]);return e?(0,s.jsx)(p.a,{panelId:t.id,data:t.data,message:(0,c.Ik)(e)}):(0,s.jsx)(B.Ay,{data:t.data.series[0],stickyHeader:!1,getTheme:()=>o.$.theme2,showFlameGraphOnly:t.options?.showFlameGraphOnly??!1,onTableSymbolClick:()=>d("table_item_selected"),onViewSelected:l=>d("view_selected",{view:l}),onTextAlignSelected:l=>d("text_align_selected",{align:l}),onTableSort:l=>d("table_sort_selected",{sort:l})})};var i=r(73495);class k{getListWithDefaults(e){return e.getListAppender({name:i.m.FlameGraph,pluginId:"flamegraph"})}getSuggestionsForData(e){if(!e.data)return;const l=e.data.series[0];!l||(0,c.oA)(l)||this.getListWithDefaults(e).append({name:i.m.FlameGraph})}}const F=[h.uo.Unit,h.uo.Decimals],u=new a.m(v).setSuggestionsSupplier(new k).useFieldConfig({disableStandardOptions:Object.values(h.uo).filter(t=>!F.includes(t))})},73495(C,n,r){r.d(n,{m:()=>h});var h=(a=>(a.LineChart="Line chart",a.LineChartSmooth="Line chart smooth",a.LineChartGradientColorScheme="Line chart with gradient color scheme",a.AreaChart="Area chart",a.AreaChartStacked="Area chart stacked",a.AreaChartStackedPercent="Area chart 100% stacked",a.BarChart="Bar chart",a.BarChartGradientColorScheme="Bar chart with gradient color scheme",a.BarChartStacked="Bar chart stacked",a.BarChartStackedPercent="Bar chart 100% stacked",a.BarChartHorizontal="Bar chart horizontal",a.BarChartHorizontalStacked="Bar chart horizontal stacked",a.BarChartHorizontalStackedPercent="Bar chart horizontal 100% stacked",a.Candlestick="Candlestick",a.PieChart="Pie chart",a.PieChartDonut="Pie chart donut",a.Stat="Stat",a.StatColoredBackground="Stat colored background",a.Gauge="Gauge",a.GaugeCircular="Circular gauge",a.GaugeNoThresholds="Gauge no thresholds",a.BarGaugeBasic="Bar gauge basic",a.BarGaugeLCD="Bar gauge LCD",a.Table="Table",a.StateTimeline="State timeline",a.StatusHistory="Status history",a.TextPanel="Text",a.DashboardList="Dashboard list",a.Logs="Logs",a.FlameGraph="Flame graph",a.Trace="Trace",a.NodeGraph="Node graph",a))(h||{})}}]);

//# sourceMappingURL=flamegraphPanel.daeb49a90e814a8ff8d1.js.map