"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5686],{2975:(p,i,a)=>{a.r(i),a.d(i,{plugin:()=>c});var d=a(68256),r=a(74848),m=a(16753),l=a(45041),f=a(55085),h=a(56276),o=a(32370),u=a(350);function s(t,e={}){(0,h.rR)(`grafana_flamegraph_${t}`,{app:m.Jk.Unknown,grafana_version:o.$.buildInfo.version,...e})}const v=t=>{const e=(0,l.oA)(t.data.series[0]);return e?(0,r.jsx)(u.a,{panelId:t.id,data:t.data,message:(0,l.Ik)(e)}):(0,r.jsx)(f.A,{data:t.data.series[0],stickyHeader:!1,getTheme:()=>o.$.theme2,showFlameGraphOnly:t.options?.showFlameGraphOnly??!1,onTableSymbolClick:()=>s("table_item_selected"),onViewSelected:n=>s("view_selected",{view:n}),onTextAlignSelected:n=>s("text_align_selected",{align:n}),onTableSort:n=>s("table_sort_selected",{sort:n})})};var g=a(18550);class F{getListWithDefaults(e){return e.getListAppender({name:g.m.FlameGraph,pluginId:"flamegraph"})}getSuggestionsForData(e){if(!e.data)return;const n=e.data.series[0];!n||(0,l.oA)(n)||this.getListWithDefaults(e).append({name:g.m.FlameGraph})}}const c=new d.m(v).setSuggestionsSupplier(new F)}}]);

//# sourceMappingURL=flamegraphPanel.1b206258cb8952ce1103.js.map