"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[5594],{31552:(Ae,U,r)=>{r.r(U),r.d(U,{plugin:()=>rt});var _=r(65158),ee=r(89654),W=r(22680),d=r(74848),N=r(32196),j=r(96540),P=r(28240),te=r(40845),I=r(88575),ie=r(90182),ce=r(29158),le=r(11261),Ne=(e=>(e[e.NoData=0]="NoData",e[e.BadFrameSelection=1]="BadFrameSelection",e[e.XNotFound=2]="XNotFound",e))(Ne||{});function Y(e){return e.type===le.PU.number}function Ie(e,l){if(!l||!l.length)return{error:0};e||(e={frame:0});let i=l[e.frame??0];if(!i)return{error:1};let u=-1;for(let t=0;t<i.fields.length;t++){const s=i.fields[t];if(e.x&&e.x===(0,P.Ct)(s,i,l)){u=t;break}if(Y(s)&&!e.x){u=t;break}}let c=!1;const n=i.fields[u],g=[n];for(const t of i.fields)if(t.type===le.PU.time&&(c=!0),!(t===n||!Y(t))){if(e.exclude){const s=(0,P.Ct)(t,i,l);if(e.exclude.includes(s))continue}g.push(t)}return{x:n,fields:{x:fe(n),y:Le(n)},frame:{...i,fields:g},hasData:i.fields.length>0,hasTime:c}}function fe(e){return e?l=>e===l||!!(e.state&&e.state===l.state):()=>!1}function Le(e){if(!e)return()=>!1;const l=fe(e);return i=>!l(i,{fields:[],length:0},[])}const De=({value:e,onChange:l,context:i})=>{const u=(0,j.useMemo)(()=>i?.data?.length?i.data.map((t,s)=>({value:s,label:`${(0,P.Ri)(t,s)} (index: ${s}, rows: ${t.length})`})):[{value:0,label:"First result"}],[i.data]),c=(0,j.useMemo)(()=>Ie(e,i.data),[i.data,e]),n=(0,j.useMemo)(()=>{const t={numberFields:[],yFields:[],xAxis:e?.x?{label:`${e.x} (Not found)`,value:e.x}:void 0},s=i.data?i.data[e?.frame??0]:void 0;if(s){const p="x"in c?(0,P.Ct)(c.x,c.frame,i.data):void 0;for(let C of s.fields)if(Y(C)){const a=(0,P.Ct)(C,s,i.data),x={label:a,value:a};t.numberFields.push(x),e?.x&&a===e.x&&(t.xAxis=x),p!==a&&t.yFields.push({label:a,value:e?.exclude?.includes(a)})}t.xAxis||(t.xAxis={label:p,value:p})}return t},[c,i.data,e]),g=(0,te.of)(Be);return i.data?.length?(0,d.jsxs)("div",{children:[(0,d.jsx)(I.D,{label:"Data",children:(0,d.jsx)(ie.l6,{isClearable:!0,options:u,placeholder:"Change filter",value:u.find(t=>t.value===e?.frame),onChange:t=>{l({...e,frame:t?.value,x:void 0})}})}),(0,d.jsx)(I.D,{label:"X Field",children:(0,d.jsx)(ie.l6,{isClearable:!0,options:n.numberFields,value:n.xAxis,placeholder:`${n.numberFields?.[0].label} (First numeric)`,onChange:t=>{l({...e,x:t?.value})}})}),(0,d.jsx)(I.D,{label:"Y Fields",children:(0,d.jsx)("div",{children:n.yFields.map(t=>(0,d.jsxs)("div",{className:g.row,children:[(0,d.jsx)(ce.K,{name:t.value?"eye-slash":"eye",onClick:()=>{const s=e?.exclude?[...e.exclude]:[];let p=s.indexOf(t.label);p<0?s.push(t.label):s.splice(p,1),l({...e,exclude:s})},tooltip:t.value?"Disable":"Enable"}),t.label]},t.label))})})]}):(0,d.jsx)("div",{children:"No data..."})},Be=e=>({sorter:(0,N.css)`
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    cursor: pointer;
  `,row:(0,N.css)`
    padding: ${e.spacing(.5,1)};
    border-radius: ${e.shape.radius.default};
    background: ${e.colors.background.secondary};
    min-height: ${e.spacing(4)};
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 3px;
    border: 1px solid ${e.components.input.borderColor};
  `});var ue=r(27310),Ve=r(55852),Te=r(54391),xe=r(76218),he=r(78437);const Ee=({value:e,onChange:l,context:i,baseNameMode:u,frameFilter:c=-1})=>{const n=(t,s)=>{l({...e,[s]:t})},g=i.data&&c>-1?i.data[c]:void 0;return(0,d.jsxs)("div",{children:[(0,d.jsx)(I.D,{label:"X Field",children:(0,d.jsx)(xe.O,{value:e.x??"",context:i,onChange:t=>n(t,"x"),item:{id:"x",name:"x",settings:{filter:t=>g?.fields.some(s=>s.state?.displayName===t.state?.displayName)??!0,baseNameMode:u,placeholderText:"select X field"}}})}),(0,d.jsx)(I.D,{label:"Y Field",children:(0,d.jsx)(xe.O,{value:e.y??"",context:i,onChange:t=>n(t,"y"),item:{id:"y",name:"y",settings:{filter:t=>g?.fields.some(s=>s.state?.displayName===t.state?.displayName)??!0,baseNameMode:u,placeholderText:"select Y field"}}})}),(0,d.jsx)(I.D,{label:"Point color",children:(0,d.jsx)(he.NO,{value:e.pointColor,context:i,onChange:t=>n(t,"pointColor"),item:{id:"x",name:"x",settings:{baseNameMode:u,isClearable:!0,placeholder:"Use standard color scheme"}}})}),(0,d.jsx)(I.D,{label:"Point size",children:(0,d.jsx)(he.gm,{value:e.pointSize,context:i,onChange:t=>n(t,"pointSize"),item:{id:"x",name:"x",settings:{min:1,max:100}}})})]})};var $=r(735);const Re=({value:e,onChange:l,context:i})=>{const u=(0,j.useMemo)(()=>i?.data?.length?i.data.map((a,x)=>({value:x,label:`${(0,P.Ri)(a,x)} (index: ${x}, rows: ${a.length})`})):[{value:0,label:"First result"}],[i.data]),[c,n]=(0,j.useState)(0),g=(0,te.of)(Xe),t=(a,x,S)=>{l(e.map((f,y)=>y===x?{...f,[S]:a}:f))},s=()=>{l([...e,{pointColor:void 0,pointSize:$.QB.pointSize}]),n(e.length)};(0,j.useEffect)(()=>{e?.length||s()},[]);const p=a=>{l(e.filter((x,S)=>S!==a))},C=a=>a===c?`${g.row} ${g.sel}`:g.row;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ve.$n,{icon:"plus",size:"sm",variant:"secondary",onClick:s,className:g.marginBot,children:"Add series"}),(0,d.jsx)("div",{className:g.marginBot,children:e.map((a,x)=>(0,d.jsxs)("div",{className:C(x),onClick:()=>n(x),role:"button","aria-label":`Select series ${x+1}`,tabIndex:0,onKeyPress:S=>{S.key==="Enter"&&n(x)},children:[(0,d.jsx)(Te.R,{name:a.name??`Series ${x+1}`,onChange:S=>t(S,x,"name")}),(0,d.jsx)(ce.K,{name:"trash-alt",title:"remove",className:(0,N.cx)(g.actionIcon),onClick:()=>p(x),tooltip:"Delete series"})]},`series/${x}`))}),c>=0&&e[c]&&(0,d.jsxs)(d.Fragment,{children:[u.length>1&&(0,d.jsx)(I.D,{label:"Data",children:(0,d.jsx)(ie.l6,{isClearable:!1,options:u,placeholder:"Change filter",value:u.find(a=>a.value===e[c].frame)??0,onChange:a=>{l(e.map((x,S)=>S===c?a===null?{...e[S],frame:void 0}:{...e[S],frame:a?.value,x:void 0,y:void 0}:x))}})}),(0,d.jsx)(Ee,{baseNameMode:ue.X4.ExcludeBaseNames,item:{},context:i,value:e[c],onChange:a=>{l(e.map((x,S)=>S===c?a:x))},frameFilter:e[c].frame??void 0},`series/${c}`)]})]})},Xe=e=>({marginBot:(0,N.css)({marginBottom:"20px"}),row:(0,N.css)({padding:`${e.spacing(.5,1)}`,borderRadius:`${e.shape.radius.default}`,background:`${e.colors.background.secondary}`,minHeight:`${e.spacing(4)}`,display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"3px",cursor:"pointer",border:`1px solid ${e.components.input.borderColor}`,"&:hover":{border:`1px solid ${e.components.input.borderHover}`}}),sel:(0,N.css)({border:`1px solid ${e.colors.primary.border}`,"&:hover":{border:`1px solid ${e.colors.primary.border}`}}),actionIcon:(0,N.css)({color:`${e.colors.text.secondary}`,"&:hover":{color:`${e.colors.text}`}})});var me=r(84596),R=r(23596),X=r(32264),ge=r(67266),Oe=r(96516),Qe=r(81297),F=r(52622),pe=r(38761),He=r(16895),Ke=r(11389),Ue=r(75073),We=r(52415),Ye=r(55307),Ze=r(79871),Ge=r(21164),oe=r(5514);const Je=({dataIdxs:e,seriesIdx:l,data:i,allSeries:u,dismiss:c,options:n,isPinned:g})=>{const t=e.find(v=>v!==null),s=l-1;if(!u||t==null)return null;const p=u[s],C=p.frame(i),a=p.x(C),x=p.y(C);let S=p.name;n.seriesMapping==="manual"&&(S=n.series?.[s]?.name??`Series ${s+1}`);let f=p.pointColor(C);Array.isArray(f)&&(f=f[t]);const y={label:S,value:"",color:(0,R.X4)(f,.5),colorIndicator:Ze.fX.marker_md},o=[{label:(0,P.Ct)(a,C),value:(0,oe.S)(a,a.values[t])},{label:(0,P.Ct)(x,C),value:(0,oe.S)(x,x.values[t])}],h=C.fields.filter(v=>v!==a&&v!==x);h&&h.forEach(v=>{o.push({label:v.name,value:(0,oe.S)(v,v.values[t])})});let b;if(g&&l!=null){const v=(0,Ge.u)(x,t);b=(0,d.jsx)(Ue.S,{dataLinks:v})}return(0,d.jsxs)(Ye.i,{children:[(0,d.jsx)(We.A,{item:y,isPinned:g}),(0,d.jsx)(Ke.o,{items:o,isPinned:g}),b]})};var Z=r(36613),se=r(8066),ye=r(24293),ke=r(57875),ve=r(83195),qe=r(51336),E=r(63577),Ce=r(4134),V=r(37055),_e=r(38248),et=r(11404),Se=r(43228);const be=5;function tt(e){return{standardOptions:{[V.uo.Min]:{hideFromDefaults:!0},[V.uo.Max]:{hideFromDefaults:!0},[V.uo.Unit]:{hideFromDefaults:!0},[V.uo.Decimals]:{hideFromDefaults:!0},[V.uo.NoValue]:{hideFromDefaults:!0},[V.uo.DisplayName]:{hideFromDefaults:!0},[V.uo.Color]:{settings:{byValueSupport:!0,bySeriesSupport:!0,preferThresholdsMode:!1},defaultValue:{mode:ye.Y.PaletteClassic}}},useCustomConfig:l=>{l.addRadio({path:"show",name:"Show",defaultValue:e.show,settings:{options:[{label:"Points",value:$.Q9.Points},{label:"Lines",value:$.Q9.Lines},{label:"Both",value:$.Q9.PointsAndLines}]}}).addSliderInput({path:"pointSize.fixed",name:"Point size",defaultValue:e.pointSize?.fixed??be,settings:{min:1,max:100,step:1},showIf:i=>i.show!==$.Q9.Lines}).addCustomEditor({id:"lineStyle",path:"lineStyle",name:"Line style",showIf:i=>i.show!==$.Q9.Points,editor:Se.F,override:Se.F,process:ue.hS,shouldApply:i=>i.type===le.PU.number}).addSliderInput({path:"lineWidth",name:"Line width",defaultValue:e.lineWidth,settings:{min:0,max:10,step:1},showIf:i=>i.show!==$.Q9.Points}),_e.r(l,e),et.e(l)}}}function it(e,l,i){let u,c;try{u=lt(e,l()),c=ot(l,u,i)}catch(n){let g="Unknown error in prepScatter";return typeof n=="string"?g=n:n instanceof Error&&(g=n.message),{error:g,series:[]}}return{series:u,builder:c}}function Fe(e,l,i,u,c,n){const g=l[i],t=g.fields[c];let s=t.state??{};s.seriesIndex=e,t.state=s;let p=n.pointColorFixed?X.$.theme2.visualization.getColorByName(n.pointColorFixed):(0,se.lz)(t,X.$.theme2).color,C=()=>p;const a={...$.QB,...t.config.custom};let x=se.uf.get(ye.Y.PaletteClassic);if(n.pointColorIndex){const h=l[i].fields[n.pointColorIndex];if(h)if(x=(0,se.Qi)(t),x.isByValue){const b=n.pointColorIndex;C=v=>{const m=v.fields[b];return m.state?.range&&(m.state.range=void 0),m.display=(0,ke.J)({field:m,theme:X.$.theme2}),m.values.map(z=>m.display(z).color)}}else p=x.getCalculator(h,X.$.theme2)(h.values[0],1),C=()=>p}let S=n.pointSizeConfig,f=n.pointSizeConfig?.fixed??t.config.custom?.pointSize?.fixed??be,y=()=>f;n.pointSizeIndex?y=h=>{const b=(0,E.getScaledDimensionForField)(h.fields[n.pointSizeIndex],n.pointSizeConfig,F.QH.Quad),v=Array(h.length);for(let m=0;m<h.length;m++)v[m]=b.get(m);return v}:S={fixed:f,min:f,max:f};const o=(0,P.Ct)(t,g,l);return{name:o,frame:h=>h[i],x:h=>h.fields[u],y:h=>h.fields[c],legend:()=>[{label:o,color:p,getItemKey:()=>o,yAxis:c}],showLine:a.show!==$.Q9.Points,lineWidth:a.lineWidth??2,lineStyle:a.lineStyle,lineColor:()=>p,showPoints:a.show!==$.Q9.Lines?F.yL.Always:F.yL.Never,pointSize:y,pointColor:C,pointSymbol:(h,b)=>"circle",label:F.yL.Never,labelValue:()=>"",show:!g.fields[c].config.custom.hideFrom?.viz,hints:{pointSize:S,pointColor:{mode:x}}}}function lt(e,l){let i=0;if(!l.length)throw"Missing data";if(e.seriesMapping==="manual"){if(!e.series?.length)throw"Missing series config";const s=[];for(const p of e.series){if(!p?.x)throw"Select X dimension";if(!p?.y)throw"Select Y dimension";for(let C=0;C<l.length;C++){if(p.frame!==void 0&&p.frame!==C)continue;const a=l[C],x=(0,E.findFieldIndex)(p.x,a,l);if(x!=null){const S=(0,E.findFieldIndex)(p.y,a,l);if(S==null)throw"Y must be in the same frame as X";const f={pointColorFixed:p.pointColor?.fixed,pointColorIndex:(0,E.findFieldIndex)(p.pointColor?.field,a,l),pointSizeConfig:p.pointSize,pointSizeIndex:(0,E.findFieldIndex)(p.pointSize?.field,a,l)};s.push(Fe(i++,l,C,x,S,f))}}}return s}const u=e.dims??{},c=u.frame??0,n=l[c],g=[];let t=(0,E.findFieldIndex)(u.x,n,l);for(let s=0;s<n.fields.length;s++)if(Y(n.fields[s])){if(t==null||s===t){t=s;continue}if(u.exclude&&u.exclude.includes((0,P.Ct)(n.fields[s],n,l)))continue;g.push(s)}if(t==null)throw"Missing X dimension";if(!g.length)throw"No Y values";return g.map(s=>Fe(i++,l,c,t,s,{}))}const ot=(e,l,i)=>{let u,c;function n(f){return(o,h,b,v)=>(Z.A.orient(o,h,(m,z,M,L,D,T,ne,dt,ct,ft,ut,St,bt,Ft,Mt)=>{const O=Z.A.pxRatio,A=l[h-1];let G=o.data[h],Q=A.showLine,J=A.showPoints===F.yL.Always;!J&&A.showPoints===F.yL.Auto&&(J=G[0].length<1e3),!J&&!Q&&(Q=!0);let H=1;o.ctx.save(),o.ctx.rect(o.bbox.left,o.bbox.top,o.bbox.width,o.bbox.height),o.ctx.clip(),o.ctx.fillStyle=m.fill(),o.ctx.strokeStyle=m.stroke(),o.ctx.lineWidth=H;let xt=2*Math.PI,je=L.key,ze=D.key,Pe=A.hints.pointSize;const ht=A.hints.pointColor.mode.isByValue;let k=(Pe.max??Pe.fixed)*O,mt=o.posToVal(-k/2,je),gt=o.posToVal(o.bbox.width/O+k/2,je),pt=o.posToVal(o.bbox.height/O+k/2,ze),yt=o.posToVal(-k/2,ze),vt=f.disp.size.values(o,h),$e=f.disp.color.values(o,h),Ct=f.disp.color.alpha,we=Q?new Path2D:null,q=null;for(let w=0;w<G[0].length;w++){let B=G[0][w],ae=G[1][w],K=vt[w]*O;if(B>=mt&&B<=gt&&ae>=pt&&ae<=yt){let re=T(B,L,ft,dt),de=ne(ae,D,ut,ct);Q&&we.lineTo(re,de),J&&(o.ctx.beginPath(),o.ctx.arc(re,de,K/2,0,xt),ht&&$e[w]!==q&&(q=$e[w],o.ctx.fillStyle=(0,R.X4)(q,Ct),o.ctx.strokeStyle=q),o.ctx.fill(),o.ctx.stroke(),f.each(o,h,w,re-K/2-H/2,de-K/2-H/2,K+H,K+H))}}if(Q){let w=A.frame(e());o.ctx.strokeStyle=A.lineColor(w),o.ctx.lineWidth=A.lineWidth*O;const{lineStyle:B}=A;B&&B.fill!=="solid"&&(B.fill==="dot"&&(o.ctx.lineCap="round"),o.ctx.setLineDash(B.dash??[10,10])),o.ctx.stroke(we)}o.ctx.restore()}),null)}let g=n({disp:{size:{values:(f,y)=>f.data[y][2]},color:{values:(f,y)=>f.data[y][3],alpha:.5}},each:(f,y,o,h,b,v,m)=>{h-=f.bbox.left,b-=f.bbox.top,u.add({x:h,y:b,w:v,h:m,sidx:y,didx:o})}});const t=new qe.e;t.setCursor({drag:{setScale:!0},dataIdx:(f,y)=>{if(y===1){const o=Z.A.pxRatio;c=null;let h=1/0,b=f.cursor.left*o,v=f.cursor.top*o;u.get(b,v,1,1,m=>{if((0,Ce.ur)(b,v,m.x,m.y,m.x+m.w,m.y+m.h)){let z=m.x+m.w/2,M=m.y+m.h/2,L=z-b,D=M-v,T=Math.sqrt(L**2+D**2);T<=m.w/2&&T<=h&&(h=T,c=m)}})}return c&&y===c.sidx?c.didx:null},points:{size:(f,y)=>c&&y===c.sidx?c.w/Z.A.pxRatio:0,fill:(f,y)=>"rgba(255,255,255,0.4)"}}),t.addHook("drawClear",f=>{u=u||new Ce.C$(0,0,f.bbox.width,f.bbox.height),u.clear(),f.series.forEach((y,o)=>{o>0&&(y._paths=null)})}),t.setMode(2);const s=e();let p=l[0].x(l[0].frame(s)),C=p.config,a=C.custom,x=a?.scaleDistribution;t.addScale({scaleKey:"x",isTime:!1,orientation:F.Lt.Horizontal,direction:F.ON.Right,distribution:x?.type,log:x?.log,linearThreshold:x?.linearThreshold,min:C.min,max:C.max,softMin:a?.axisSoftMin,softMax:a?.axisSoftMax,centeredZero:a?.axisCenteredZero,decimals:C.decimals});let S=a.axisLabel;return t.addAxis({scaleKey:"x",placement:a?.axisPlacement!==F.vM.Hidden?F.vM.Bottom:F.vM.Hidden,show:a?.axisPlacement!==F.vM.Hidden,grid:{show:a?.axisGridShow},border:{show:a?.axisBorderShow},theme:i,label:S==null||S===""?(0,P.Ct)(p,l[0].frame(s),s):S,formatValue:(f,y)=>(0,ve.cN)(p.display(f,y))}),l.forEach((f,y)=>{let o=f.frame(s),h=f.y(o);const b=f.lineColor(o),v=nt(o,f.pointColor);let m=h.config.unit??"y",z=h.config,M=z.custom,L=M?.scaleDistribution;t.addScale({scaleKey:m,orientation:F.Lt.Vertical,direction:F.ON.Up,distribution:L?.type,log:L?.log,linearThreshold:L?.linearThreshold,min:z.min,max:z.max,softMin:M?.axisSoftMin,softMax:M?.axisSoftMax,centeredZero:M?.axisCenteredZero,decimals:z.decimals});let D=M?.axisLabel;t.addAxis({scaleKey:m,theme:i,placement:M?.axisPlacement===F.vM.Auto?F.vM.Left:M?.axisPlacement,show:M?.axisPlacement!==F.vM.Hidden,grid:{show:M?.axisGridShow},border:{show:M?.axisBorderShow},size:M?.axisWidth,label:D==null||D===""?(0,P.Ct)(h,l[y].frame(s),s):D,formatValue:(T,ne)=>(0,ve.cN)(h.display(T,ne))}),t.addSeries({facets:[{scale:"x",auto:!0},{scale:m,auto:!0}],pathBuilder:g,theme:i,scaleKey:"",lineColor:(0,R.X4)(""+b,1),fillColor:(0,R.X4)(v,.5),show:!M.hideFrom?.viz})}),t};function Me(e,l,i){return e.error||!l.length?[null]:[null,...e.series.map((u,c)=>{const n=u.frame(l);let g;const t=u.pointColor(n);return Array.isArray(t)?g=t:g=Array(n.length).fill(t),[u.x(n).values,u.y(n).values,st(n,u.pointSize),g]})]}function st(e,l){const i=l(e);return Array.isArray(i)?i:Array(e.length).fill(i)}function nt(e,l){const i=l(e);return Array.isArray(i)?i[0]:i}const at=e=>{const l=(0,te.$j)(),[i,u]=(0,j.useState)(),[c,n]=(0,j.useState)([]),[g,t]=(0,j.useState)(),[s,p]=(0,j.useState)(),C=(0,me.A)(e.options),a=(0,me.A)(e.data),x=(0,j.useCallback)(()=>{const y=()=>e.data.series,o=it(e.options,y,X.$.theme2);o.error?u(o.error):o.series.length&&e.data.series&&(t(o.builder),n(o.series),p(()=>Me(o,e.data.series)),u(void 0))},[e.data.series,e.options]),S=(0,j.useCallback)(()=>{p(()=>Me({error:i,series:c},e.data.series))},[e.data.series,i,c]);(0,j.useEffect)(()=>{C!==e.options||a?.structureRev!==e.data.structureRev?x():a?.series!==e.data.series&&S()},[e]);const f=()=>{const y=[];for(let h=0;h<c.length;h++){const b=c[h],v=b.frame(e.data.series);if(v)for(const m of b.legend()){const z=b.y(v);m.getDisplayValues=()=>(0,He.UO)(e.options.legend.calcs,z,l),m.disabled=!(b.show??!0),e.options.seriesMapping===$.it.Manual&&(m.label=e.options.series?.[h]?.name??`Series ${h+1}`),m.color=(0,R.X4)(b.lineColor(v),1),y.push(m)}}if(!e.options.legend.showLegend)return null;const o={flexStart:(0,N.css)({div:{justifyContent:"flex-start"}})};return(0,d.jsx)(ge.KU.Legend,{placement:e.options.legend.placement,width:e.options.legend.width,children:(0,d.jsx)(Oe.t,{className:o.flexStart,placement:e.options.legend.placement,items:y,displayMode:e.options.legend.displayMode})})};return i||!g||!s?(0,d.jsx)("div",{className:"panel-empty",children:(0,d.jsx)("p",{children:i})}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ge.KU,{width:e.width,height:e.height,legend:f(),children:(y,o)=>(0,d.jsx)(Qe.Z,{config:g,data:s,width:y,height:o,children:e.options.tooltip.mode!==F.$N.None&&(0,d.jsx)(pe.xl,{config:g,hoverMode:pe.b3.xyOne,render:(h,b,v,m,z)=>(0,d.jsx)(Je,{data:e.data.series,dataIdxs:b,allSeries:c,dismiss:z,isPinned:m,options:e.options,seriesIdx:v}),maxWidth:e.options.tooltip.maxWidth})})})})},rt=new _.m(at).useFieldConfig(tt($.QB)).setPanelOptions(e=>{e.addRadio({path:"seriesMapping",name:"Series mapping",defaultValue:"auto",settings:{options:[{value:"auto",label:"Table",description:"Plot values within a single table result"},{value:"manual",label:"Manual",description:"Construct values from any result"}]}}).addCustomEditor({id:"xyPlotConfig",path:"dims",name:"",editor:De,showIf:l=>l.seriesMapping==="auto"}).addCustomEditor({id:"series",path:"series",name:"",defaultValue:[],editor:Re,showIf:l=>l.seriesMapping==="manual"}),ee.D(e,!0),W.H(e)})},5514:(Ae,U,r)=>{r.d(U,{S:()=>ee});var _=r(83195);function ee(W,d){return W.display?(0,_.cN)(W.display(d)):`${d}`}}}]);

//# sourceMappingURL=xychart.22656e4d191ff37a5ae9.js.map