dash_mantine_components 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[247],{7980:(t,e,r)=>{r.r(e),r.d(e,{default:()=>_});var a=r(1635),i=r(4848),o=r(295),s=r.n(o),n=r(4124),l=r(7158),c=r(4653),d=r(300),h=r(7018),p=r(9107),u=r(7984),f=r(1706),y=r(3495),m=r(8687),x=r(9396),v=r(6344),k=r(2412),A=r(6100),g=r(1101),C=r(9274),j=r(2837),P=r(4791),b=r(6585),D=r(5849),N=r(8498),L=r(1072);function O({offset:t,id:e,colors:r,fillOpacity:a}){const o=(0,g.xd)();return(0,i.jsxs)("linearGradient",{id:e,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,i.jsx)("stop",{offset:t,stopColor:(0,v.r)(r[0],o),stopOpacity:a??.2}),(0,i.jsx)("stop",{offset:t,stopColor:(0,v.r)(r[1],o),stopOpacity:a??.2})]})}function S({data:t,series:e}){return 1===e.length?function({data:t,dataKey:e}){const r=Math.max(...t.map(t=>t[e])),a=Math.min(...t.map(t=>t[e]));return r<=0?0:a>=0?1:r/(r-a)}({data:t,dataKey:e[0].name}):.5}O.displayName="@mantine/charts/AreaSplit";var w=r(9133);function $(t){return`${(100*t).toFixed(0)}%`}const I={withXAxis:!0,withYAxis:!0,withDots:!0,withTooltip:!0,connectNulls:!0,strokeWidth:2,tooltipAnimationDuration:0,fillOpacity:.2,tickLine:"y",strokeDasharray:"5 5",curveType:"monotone",gridAxis:"x",type:"default",splitColors:["green.7","red.7"],orientation:"horizontal"},K=(0,x.V)((t,{textColor:e,gridColor:r})=>({root:{"--chart-text-color":e?(0,v.r)(e,t):void 0,"--chart-grid-color":r?(0,v.r)(r,t):void 0}})),z=(0,k.P9)((t,e)=>{const r=(0,A.Y)("AreaChart",I,t),{classNames:a,className:s,style:x,styles:k,unstyled:z,vars:M,data:W,series:F,withGradient:_,dataKey:Q,withXAxis:T,withYAxis:Y,curveType:G,gridProps:R,withDots:X,tickLine:E,strokeDasharray:H,gridAxis:J,unit:B,yAxisProps:V,xAxisProps:Z,dotProps:q,activeDotProps:U,strokeWidth:tt,tooltipAnimationDuration:et,type:rt,legendProps:at,tooltipProps:it,withLegend:ot,withTooltip:st,areaChartProps:nt,fillOpacity:lt,splitColors:ct,splitOffset:dt,connectNulls:ht,onMouseLeave:pt,orientation:ut,referenceLines:ft,dir:yt,valueFormatter:mt,children:xt,areaProps:vt,xAxisLabel:kt,yAxisLabel:At,withRightYAxis:gt,rightYAxisLabel:Ct,rightYAxisProps:jt,withPointLabels:Pt,gridColor:bt,textColor:Dt,attributes:Nt,...Lt}=r,Ot=(0,g.xd)(),St=(0,o.useId)(),wt=`${St}-split`,$t="none"!==J&&("x"===E||"xy"===E),It="none"!==J&&("y"===E||"xy"===E),Kt=(et||0)>0,zt="boolean"==typeof _?_:"default"===rt,Mt="stacked"===rt||"percent"===rt,[Wt,Ft]=(0,o.useState)(null),_t=null!==Wt,{resolvedClassNames:Qt,resolvedStyles:Tt}=(0,C.Y)({classNames:a,styles:k,props:r}),Yt=(0,j.I)({name:"AreaChart",classes:w.A,props:r,className:s,style:x,classNames:a,styles:k,unstyled:z,attributes:Nt,vars:M,varsResolver:K}),Gt=F.map(t=>{const e=(0,v.r)(t.color,Ot),r=_t&&Wt!==t.name;return(0,o.createElement)(n.G,{...Yt("area"),activeDot:{fill:Ot.white,stroke:e,strokeWidth:2,r:4,...U},dot:{fill:e,fillOpacity:r?0:1,strokeWidth:2,r:4,...q},key:t.name,name:t.name,type:G,dataKey:t.name,fill:"none",strokeWidth:tt,stroke:"none",isAnimationActive:!1,connectNulls:ht,stackId:Mt?"stack-dots":void 0,yAxisId:t.yAxisId||"left",..."function"==typeof vt?vt(t):vt})}),Rt=F.map(t=>{const e=`${St}-${t.color.replace(/[^a-zA-Z0-9]/g,"")}`,r=(0,v.r)(t.color,Ot),a=_t&&Wt!==t.name;return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("defs",{children:(0,i.jsx)(L.s,{color:r,withGradient:zt,id:e,fillOpacity:lt})}),(0,i.jsx)(n.G,{...Yt("area"),activeDot:!1,dot:!1,name:t.name,type:t.curveType??G,dataKey:t.name,fill:"split"===rt?`url(#${wt})`:`url(#${e})`,strokeWidth:tt,stroke:r,isAnimationActive:!1,connectNulls:ht,stackId:Mt?"stack":void 0,fillOpacity:a?0:1,strokeOpacity:a?.5:1,strokeDasharray:t.strokeDasharray,yAxisId:t.yAxisId||"left",label:Pt?(0,i.jsx)(N.x,{valueFormatter:mt}):void 0,..."function"==typeof vt?vt(t):vt})]},t.name)}),Xt=ft?.map((t,e)=>{const r=(0,v.r)(t.color,Ot);return(0,i.jsx)(l.e,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:t.labelPosition??"insideBottomLeft"},...Yt("referenceLine")},e)}),Et="percent"===rt?$:mt,Ht={axisLine:!1,..."vertical"===ut?{dataKey:Q,type:"category"}:{type:"number"},tickLine:!!It&&{stroke:"currentColor"},allowDecimals:!0,unit:B,tickFormatter:"vertical"===ut?void 0:Et,...Yt("axis")};return(0,i.jsx)(P.a,{ref:e,...Yt("root"),onMouseLeave:t=>{Ft(null),pt?.(t)},dir:yt||"ltr",...Lt,children:(0,i.jsx)(c.u,{...Yt("container"),children:(0,i.jsxs)(d.Q,{data:W,stackOffset:"percent"===rt?"expand":void 0,layout:ut,margin:{bottom:kt?30:void 0,left:At?10:void 0,right:At?5:void 0},...nt,children:[Xt,ot&&(0,i.jsx)(h.s,{verticalAlign:"top",content:t=>(0,i.jsx)(b._,{payload:t.payload,onHighlight:Ft,legendPosition:at?.verticalAlign||"top",classNames:Qt,styles:Tt,series:F,attributes:Nt}),...at}),(0,i.jsx)(p.d,{strokeDasharray:H,vertical:"y"===J||"xy"===J,horizontal:"x"===J||"xy"===J,...Yt("grid"),...R}),(0,i.jsxs)(u.W,{hide:!T,..."vertical"===ut?{type:"number"}:{dataKey:Q},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!$t&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===ut?Et:void 0,...Yt("axis"),...Z,children:[kt&&(0,i.jsx)(f.J,{position:"insideBottom",offset:-20,fontSize:12,...Yt("axisLabel"),children:kt}),Z?.children]}),(0,i.jsxs)(y.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!Y,...Ht,...V,children:[At&&(0,i.jsx)(f.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Yt("axisLabel"),children:At}),V?.children]}),(0,i.jsxs)(y.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!gt,...Ht,...jt,children:[Ct&&(0,i.jsx)(f.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Yt("axisLabel"),children:Ct}),V?.children]}),st&&(0,i.jsx)(m.m,{animationDuration:et,isAnimationActive:Kt,position:"vertical"===ut?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:H},content:({label:t,payload:e,labelFormatter:r})=>(0,i.jsx)(D.I,{label:r&&e?r(t,e):t,payload:e,unit:B,classNames:Qt,styles:Tt,series:F,valueFormatter:mt,attributes:Nt}),...it}),"split"===rt&&(0,i.jsx)("defs",{children:(0,i.jsx)(O,{colors:ct,id:wt,offset:dt??S({data:W,series:F}),fillOpacity:lt})}),Rt,X&&Gt,xt]})})})});z.classes=w.A,z.displayName="@mantine/charts/AreaChart",r(9319);var M=r(3837),W=r(7479),F=r(8734);const _=function(t){var e=t.setProps,r=t.loading_state,i=(t.clickData,t.hoverData,t.clickSeriesName,t.hoverSeriesName,t.series),n=t.highlightHover,l=void 0!==n&&n,c=t.areaChartProps,d=t.activeDotProps,h=t.areaProps,p=t.data,u=t.dataKey,f=(0,a.Tt)(t,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","series","highlightHover","areaChartProps","activeDotProps","areaProps","data","dataKey"]),y=(0,o.useState)(null),m=y[0],x=y[1],v=l&&null!==m,k=(0,o.useRef)(null),A=function(t){(0,M.$Q)(t)&&(k.current=t.name)},g=function(t){if((0,M.$Q)(t)){var e=t.name;k.current=e,x(e)}},C=function(){x(null)},j=(0,a.Cl)((0,a.Cl)({},c),{onClick:function(t){(0,M.$Q)(t)&&e({clickSeriesName:k.current,clickData:(0,M.X$)(t)}),k.current=null},onMouseOver:function(t){(0,M.$Q)(t)&&e({hoverSeriesName:k.current,hoverData:(0,M.X$)(t)}),k.current=null}});return s().createElement(z,(0,a.Cl)({"data-dash-is-loading":(0,W.A_)(r)||void 0},(0,F.s)("AreaChart",f),{data:p,dataKey:u,areaChartProps:j,series:i,activeDotProps:(0,a.Cl)((0,a.Cl)({},d),{onClick:function(t,e){(0,M.$Q)(t)&&(k.current=e.dataKey)},onMouseOver:function(t,e){if((0,M.$Q)(t)){var r=e.dataKey;k.current=r,x(r)}},onMouseOut:C}),areaProps:function(t){var e=v&&m!==t.name,r=(0,a.Cl)((0,a.Cl)({},h),{onClick:A,onMouseOver:g,onMouseOut:C});return e&&(r.fillOpacity=.1,r.strokeOpacity=.2),r}}))}}}]);
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[247],{7980:(t,e,r)=>{r.r(e),r.d(e,{default:()=>_});var a=r(1635),i=r(4848),o=r(295),s=r.n(o),n=r(4124),l=r(7158),c=r(4653),d=r(300),h=r(7018),p=r(9107),u=r(7984),f=r(1706),y=r(3495),m=r(8687),x=r(9396),v=r(6344),k=r(2412),A=r(6100),g=r(602),C=r(9274),j=r(6904),P=r(8424),b=r(6585),D=r(5849),N=r(9133),L=r(8498),O=r(1072);function S({offset:t,id:e,colors:r,fillOpacity:a}){const o=(0,g.xd)();return(0,i.jsxs)("linearGradient",{id:e,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,i.jsx)("stop",{offset:t,stopColor:(0,v.r)(r[0],o),stopOpacity:a??.2}),(0,i.jsx)("stop",{offset:t,stopColor:(0,v.r)(r[1],o),stopOpacity:a??.2})]})}function w({data:t,series:e}){return 1===e.length?function({data:t,dataKey:e}){const r=Math.max(...t.map(t=>t[e])),a=Math.min(...t.map(t=>t[e]));return r<=0?0:a>=0?1:r/(r-a)}({data:t,dataKey:e[0].name}):.5}function $(t){return`${(100*t).toFixed(0)}%`}S.displayName="@mantine/charts/AreaSplit";const I={withXAxis:!0,withYAxis:!0,withDots:!0,withTooltip:!0,connectNulls:!0,strokeWidth:2,tooltipAnimationDuration:0,fillOpacity:.2,tickLine:"y",strokeDasharray:"5 5",curveType:"monotone",gridAxis:"x",type:"default",splitColors:["green.7","red.7"],orientation:"horizontal"},K=(0,x.V)((t,{textColor:e,gridColor:r})=>({root:{"--chart-text-color":e?(0,v.r)(e,t):void 0,"--chart-grid-color":r?(0,v.r)(r,t):void 0}})),z=(0,k.P9)((t,e)=>{const r=(0,A.Y)("AreaChart",I,t),{classNames:a,className:s,style:x,styles:k,unstyled:z,vars:M,data:W,series:F,withGradient:_,dataKey:Q,withXAxis:T,withYAxis:Y,curveType:G,gridProps:R,withDots:X,tickLine:E,strokeDasharray:H,gridAxis:J,unit:B,yAxisProps:V,xAxisProps:Z,dotProps:q,activeDotProps:U,strokeWidth:tt,tooltipAnimationDuration:et,type:rt,legendProps:at,tooltipProps:it,withLegend:ot,withTooltip:st,areaChartProps:nt,fillOpacity:lt,splitColors:ct,splitOffset:dt,connectNulls:ht,onMouseLeave:pt,orientation:ut,referenceLines:ft,dir:yt,valueFormatter:mt,children:xt,areaProps:vt,xAxisLabel:kt,yAxisLabel:At,withRightYAxis:gt,rightYAxisLabel:Ct,rightYAxisProps:jt,withPointLabels:Pt,gridColor:bt,textColor:Dt,attributes:Nt,...Lt}=r,Ot=(0,g.xd)(),St=(0,o.useId)(),wt=`${St}-split`,$t="none"!==J&&("x"===E||"xy"===E),It="none"!==J&&("y"===E||"xy"===E),Kt=(et||0)>0,zt="boolean"==typeof _?_:"default"===rt,Mt="stacked"===rt||"percent"===rt,[Wt,Ft]=(0,o.useState)(null),_t=null!==Wt,{resolvedClassNames:Qt,resolvedStyles:Tt}=(0,C.Y)({classNames:a,styles:k,props:r}),Yt=(0,j.I)({name:"AreaChart",classes:N.A,props:r,className:s,style:x,classNames:a,styles:k,unstyled:z,attributes:Nt,vars:M,varsResolver:K}),Gt=F.map(t=>{const e=(0,v.r)(t.color,Ot),r=_t&&Wt!==t.name;return(0,o.createElement)(n.G,{...Yt("area"),activeDot:{fill:Ot.white,stroke:e,strokeWidth:2,r:4,...U},dot:{fill:e,fillOpacity:r?0:1,strokeWidth:2,r:4,...q},key:t.name,name:t.name,type:G,dataKey:t.name,fill:"none",strokeWidth:tt,stroke:"none",isAnimationActive:!1,connectNulls:ht,stackId:Mt?"stack-dots":void 0,yAxisId:t.yAxisId||"left",..."function"==typeof vt?vt(t):vt})}),Rt=F.map(t=>{const e=`${St}-${t.color.replace(/[^a-zA-Z0-9]/g,"")}`,r=(0,v.r)(t.color,Ot),a=_t&&Wt!==t.name;return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("defs",{children:(0,i.jsx)(O.s,{color:r,withGradient:zt,id:e,fillOpacity:lt})}),(0,i.jsx)(n.G,{...Yt("area"),activeDot:!1,dot:!1,name:t.name,type:t.curveType??G,dataKey:t.name,fill:"split"===rt?`url(#${wt})`:`url(#${e})`,strokeWidth:tt,stroke:r,isAnimationActive:!1,connectNulls:ht,stackId:Mt?"stack":void 0,fillOpacity:a?0:1,strokeOpacity:a?.5:1,strokeDasharray:t.strokeDasharray,yAxisId:t.yAxisId||"left",label:Pt?(0,i.jsx)(L.x,{valueFormatter:mt}):void 0,..."function"==typeof vt?vt(t):vt})]},t.name)}),Xt=ft?.map((t,e)=>{const r=(0,v.r)(t.color,Ot);return(0,i.jsx)(l.e,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:t.labelPosition??"insideBottomLeft"},...Yt("referenceLine")},e)}),Et="percent"===rt?$:mt,Ht={axisLine:!1,..."vertical"===ut?{dataKey:Q,type:"category"}:{type:"number"},tickLine:!!It&&{stroke:"currentColor"},allowDecimals:!0,unit:B,tickFormatter:"vertical"===ut?void 0:Et,...Yt("axis")};return(0,i.jsx)(P.a,{ref:e,...Yt("root"),onMouseLeave:t=>{Ft(null),pt?.(t)},dir:yt||"ltr",...Lt,children:(0,i.jsx)(c.u,{...Yt("container"),children:(0,i.jsxs)(d.Q,{data:W,stackOffset:"percent"===rt?"expand":void 0,layout:ut,margin:{bottom:kt?30:void 0,left:At?10:void 0,right:At?5:void 0},...nt,children:[Xt,ot&&(0,i.jsx)(h.s,{verticalAlign:"top",content:t=>(0,i.jsx)(b._,{payload:t.payload,onHighlight:Ft,legendPosition:at?.verticalAlign||"top",classNames:Qt,styles:Tt,series:F,attributes:Nt}),...at}),(0,i.jsx)(p.d,{strokeDasharray:H,vertical:"y"===J||"xy"===J,horizontal:"x"===J||"xy"===J,...Yt("grid"),...R}),(0,i.jsxs)(u.W,{hide:!T,..."vertical"===ut?{type:"number"}:{dataKey:Q},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!$t&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===ut?Et:void 0,...Yt("axis"),...Z,children:[kt&&(0,i.jsx)(f.J,{position:"insideBottom",offset:-20,fontSize:12,...Yt("axisLabel"),children:kt}),Z?.children]}),(0,i.jsxs)(y.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!Y,...Ht,...V,children:[At&&(0,i.jsx)(f.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Yt("axisLabel"),children:At}),V?.children]}),(0,i.jsxs)(y.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!gt,...Ht,...jt,children:[Ct&&(0,i.jsx)(f.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Yt("axisLabel"),children:Ct}),V?.children]}),st&&(0,i.jsx)(m.m,{animationDuration:et,isAnimationActive:Kt,position:"vertical"===ut?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:H},content:({label:t,payload:e,labelFormatter:r})=>(0,i.jsx)(D.I,{label:r&&e?r(t,e):t,payload:e,unit:B,classNames:Qt,styles:Tt,series:F,valueFormatter:mt,attributes:Nt}),...it}),"split"===rt&&(0,i.jsx)("defs",{children:(0,i.jsx)(S,{colors:ct,id:wt,offset:dt??w({data:W,series:F}),fillOpacity:lt})}),Rt,X&&Gt,xt]})})})});z.classes=N.A,z.displayName="@mantine/charts/AreaChart",r(9319);var M=r(3837),W=r(7479),F=r(8734);const _=function(t){var e=t.setProps,r=t.loading_state,i=(t.clickData,t.hoverData,t.clickSeriesName,t.hoverSeriesName,t.series),n=t.highlightHover,l=void 0!==n&&n,c=t.areaChartProps,d=t.activeDotProps,h=t.areaProps,p=t.data,u=t.dataKey,f=(0,a.Tt)(t,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","series","highlightHover","areaChartProps","activeDotProps","areaProps","data","dataKey"]),y=(0,o.useState)(null),m=y[0],x=y[1],v=l&&null!==m,k=(0,o.useRef)(null),A=function(t){(0,M.$Q)(t)&&(k.current=t.name)},g=function(t){if((0,M.$Q)(t)){var e=t.name;k.current=e,x(e)}},C=function(){x(null)},j=(0,a.Cl)((0,a.Cl)({},c),{onClick:function(t){(0,M.$Q)(t)&&e({clickSeriesName:k.current,clickData:(0,M.X$)(t)}),k.current=null},onMouseOver:function(t){(0,M.$Q)(t)&&e({hoverSeriesName:k.current,hoverData:(0,M.X$)(t)}),k.current=null}});return s().createElement(z,(0,a.Cl)({"data-dash-is-loading":(0,W.A_)(r)||void 0},(0,F.s)("AreaChart",f),{data:p,dataKey:u,areaChartProps:j,series:i,activeDotProps:(0,a.Cl)((0,a.Cl)({},d),{onClick:function(t,e){(0,M.$Q)(t)&&(k.current=e.dataKey)},onMouseOver:function(t,e){if((0,M.$Q)(t)){var r=e.dataKey;k.current=r,x(r)}},onMouseOut:C}),areaProps:function(t){var e=v&&m!==t.name,r=(0,a.Cl)((0,a.Cl)({},h),{onClick:A,onMouseOver:g,onMouseOut:C});return e&&(r.fillOpacity=.1,r.strokeOpacity=.2),r}}))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[811],{7758:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Y});var a=r(1635),i=r(4848),o=r(295),s=r.n(o),l=r(1222),n=r(2050),c=r(5614),d=r(7158),u=r(4653),h=r(8327),p=r(7984),f=r(3495),m=r(5894),x=(0,h.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:p.W},{axisType:"yAxis",AxisComp:f.h}],formatAxisMap:m.pr}),y=r(7018),v=r(1706),k=r(9107),b=r(8687),g=r(9396),A=r(6344),C=r(2412),P=r(6100),S=r(1101),L=r(9274),j=r(2837),w=r(4791),N=r(6585),D=r(5849),z=r(9133);function B(t){return`${(100*t).toFixed(0)}%`}const F={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},I=(0,g.V)((t,{textColor:e,gridColor:r,cursorFill:a,barLabelColor:i})=>({root:{"--chart-text-color":e?(0,A.r)(e,t):void 0,"--chart-grid-color":r?(0,A.r)(r,t):void 0,"--chart-cursor-fill":a?(0,A.r)(a,t):void 0,"--chart-bar-label-color":i?(0,A.r)(i,t):void 0}})),O=(0,C.P9)((t,e)=>{const r=(0,P.Y)("BarChart",F,t),{classNames:a,className:s,style:h,styles:m,unstyled:g,vars:C,data:O,withLegend:T,legendProps:$,series:_,onMouseLeave:K,dataKey:Y,withTooltip:M,withXAxis:E,withYAxis:W,gridAxis:Q,tickLine:R,xAxisProps:X,yAxisProps:H,unit:J,tooltipAnimationDuration:G,strokeDasharray:V,gridProps:q,tooltipProps:Z,referenceLines:U,fillOpacity:tt,barChartProps:et,type:rt,orientation:at,dir:it,valueFormatter:ot,children:st,barProps:lt,xAxisLabel:nt,yAxisLabel:ct,withBarValueLabel:dt,valueLabelProps:ut,withRightYAxis:ht,rightYAxisLabel:pt,rightYAxisProps:ft,minBarSize:mt,maxBarWidth:xt,mod:yt,getBarColor:vt,gridColor:kt,textColor:bt,attributes:gt,...At}=r,Ct=(0,S.xd)(),Pt="none"!==Q&&("x"===R||"xy"===R),St="none"!==Q&&("y"===R||"xy"===R),[Lt,jt]=(0,o.useState)(null),wt=null!==Lt,Nt="stacked"===rt||"percent"===rt,Dt="percent"===rt?B:ot,{resolvedClassNames:zt,resolvedStyles:Bt}=(0,L.Y)({classNames:a,styles:m,props:r}),Ft="waterfall"===rt?function(t,e){let r=0,a=0;return t.map(t=>{if(t.standalone)for(const r in t)"number"==typeof t[r]&&r!==e&&(t[r]=[0,t[r]]);else for(const i in t)"number"==typeof t[i]&&i!==e&&(a+=t[i],t[i]=[r,a],r=a);return t})}(O,Y):O,It=(0,j.I)({name:"BarChart",classes:z.A,props:r,className:s,style:h,classNames:a,styles:m,unstyled:g,attributes:gt,vars:C,varsResolver:I}),Ot=_.map(t=>{const e=(0,A.r)(t.color,Ct),r=wt&&Lt!==t.name;return(0,o.createElement)(l.y,{...It("bar"),key:t.name,name:t.name,dataKey:t.name,fill:e,stroke:e,isAnimationActive:!1,fillOpacity:r?.1:tt,strokeOpacity:r?.2:0,stackId:Nt?"stack":t.stackId||void 0,yAxisId:t.yAxisId||"left",minPointSize:mt,..."function"==typeof lt?lt(t):lt},Ft.map((r,a)=>{const o=r.color?(0,A.r)(r.color,Ct):"function"==typeof vt?(0,A.r)(vt(r[t.name],t),Ct):function(t,e){return"function"==typeof t?t(e).fill:t?.fill}(lt,t)||e;return(0,i.jsx)(n.f,{fill:o},`cell-${a}`)}),dt&&(0,i.jsx)(c.Z,{position:"vertical"===at?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:t=>Dt?.(t),..."function"==typeof ut?ut(t):ut}))}),Tt=U?.map((t,e)=>{const r=(0,A.r)(t.color,Ct);return(0,i.jsx)(d.e,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:t.labelPosition??"insideBottomLeft"},...It("referenceLine")},e)}),$t={axisLine:!1,..."vertical"===at?{dataKey:Y,type:"category"}:{type:"number"},tickLine:!!St&&{stroke:"currentColor"},allowDecimals:!0,unit:J,tickFormatter:"vertical"===at?void 0:Dt,...It("axis")};return(0,i.jsx)(w.a,{ref:e,...It("root"),onMouseLeave:t=>{jt(null),K?.(t)},dir:it||"ltr",mod:[{orientation:at},yt],...At,children:(0,i.jsx)(u.u,{...It("container"),children:(0,i.jsxs)(x,{data:Ft,stackOffset:"percent"===rt?"expand":void 0,layout:at,maxBarSize:xt,margin:{bottom:nt?30:void 0,left:ct?10:void 0,right:ct?5:void 0},...et,children:[T&&(0,i.jsx)(y.s,{verticalAlign:"top",content:t=>(0,i.jsx)(N._,{payload:t.payload,onHighlight:jt,legendPosition:$?.verticalAlign||"top",classNames:zt,styles:Bt,series:_,showColor:"waterfall"!==rt,attributes:gt}),...$}),(0,i.jsxs)(p.W,{hide:!E,..."vertical"===at?{type:"number"}:{dataKey:Y},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Pt&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===at?Dt:void 0,...It("axis"),...X,children:[nt&&(0,i.jsx)(v.J,{position:"insideBottom",offset:-20,fontSize:12,...It("axisLabel"),children:nt}),X?.children]}),(0,i.jsxs)(f.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!W,...$t,...H,children:[ct&&(0,i.jsx)(v.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...It("axisLabel"),children:ct}),H?.children]}),(0,i.jsxs)(f.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!ht,...$t,...ft,children:[pt&&(0,i.jsx)(v.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...It("axisLabel"),children:pt}),H?.children]}),(0,i.jsx)(k.d,{strokeDasharray:V,vertical:"y"===Q||"xy"===Q,horizontal:"x"===Q||"xy"===Q,...It("grid"),...q}),M&&(0,i.jsx)(b.m,{animationDuration:G,isAnimationActive:0!==G,position:"vertical"===at?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:V,fill:"var(--chart-cursor-fill)"},content:({label:t,payload:e,labelFormatter:r})=>(0,i.jsx)(D.I,{label:r&&e?r(t,e):t,payload:e,type:"waterfall"===rt?"scatter":void 0,unit:J,classNames:zt,styles:Bt,series:_,valueFormatter:ot,attributes:gt}),...Z}),Ot,Tt,st]})})})});O.displayName="@mantine/charts/BarChart",O.classes=z.A,r(9319);var T=r(3837),$=r(7479),_=r(8734),K=function(t){return t.toString()};const Y=function(t){var e=t.setProps,r=t.loading_state,i=(t.clickData,t.hoverData,t.barChartProps),l=(t.clickSeriesName,t.hoverSeriesName,t.barProps),n=t.highlightHover,c=void 0!==n&&n,d=t.valueFormatter,u=t.series,h=t.data,p=t.dataKey,f=(0,a.Tt)(t,["setProps","loading_state","clickData","hoverData","barChartProps","clickSeriesName","hoverSeriesName","barProps","highlightHover","valueFormatter","series","data","dataKey"]),m=(0,o.useState)(null),x=m[0],y=m[1],v=c&&null!==x,k=(0,o.useRef)(null),b=function(t){(0,T.$Q)(t)&&(k.current=t.tooltipPayload[0].name)},g=function(t){if((0,T.$Q)(t)){var e=t.tooltipPayload[0].name;k.current=e,y(e)}},A=function(){y(null)},C=(0,a.Cl)((0,a.Cl)({},i),{onClick:function(t){(0,T.$Q)(t)&&e({clickSeriesName:k.current,clickData:(0,T.X$)(t)}),k.current=null},onMouseOver:function(t){(0,T.$Q)(t)&&e({hoverSeriesName:k.current,hoverData:(0,T.X$)(t)}),k.current=null}});return s().createElement(O,(0,a.Cl)({"data-dash-is-loading":(0,$.A_)(r)||void 0},(0,_.s)("BarChart",f),{data:h,dataKey:p,series:u,barChartProps:C,barProps:function(t){var e=v&&x!==t.name,r=(0,a.Cl)((0,a.Cl)({},l),{onClick:b,onMouseOver:g,onMouseOut:A});return e&&(r.fillOpacity=.1,r.strokeOpacity=.2),r},valueFormatter:(0,_.q)(d)||K}))}}}]);
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[811],{7758:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Y});var a=r(1635),i=r(4848),o=r(295),s=r.n(o),l=r(1222),n=r(2050),c=r(5614),d=r(7158),u=r(4653),h=r(708),p=r(7984),f=r(3495),m=r(5894),x=(0,h.gu)({chartName:"BarChart",GraphicalChild:l.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:p.W},{axisType:"yAxis",AxisComp:f.h}],formatAxisMap:m.pr}),y=r(7018),v=r(1706),k=r(9107),b=r(8687),g=r(9396),A=r(6344),C=r(2412),P=r(6100),S=r(602),L=r(9274),j=r(6904),w=r(8424),N=r(6585),D=r(5849),z=r(9133);function B(t){return`${(100*t).toFixed(0)}%`}const F={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},I=(0,g.V)((t,{textColor:e,gridColor:r,cursorFill:a,barLabelColor:i})=>({root:{"--chart-text-color":e?(0,A.r)(e,t):void 0,"--chart-grid-color":r?(0,A.r)(r,t):void 0,"--chart-cursor-fill":a?(0,A.r)(a,t):void 0,"--chart-bar-label-color":i?(0,A.r)(i,t):void 0}})),O=(0,C.P9)((t,e)=>{const r=(0,P.Y)("BarChart",F,t),{classNames:a,className:s,style:h,styles:m,unstyled:g,vars:C,data:O,withLegend:T,legendProps:$,series:_,onMouseLeave:K,dataKey:Y,withTooltip:M,withXAxis:E,withYAxis:W,gridAxis:Q,tickLine:R,xAxisProps:X,yAxisProps:H,unit:J,tooltipAnimationDuration:G,strokeDasharray:V,gridProps:q,tooltipProps:Z,referenceLines:U,fillOpacity:tt,barChartProps:et,type:rt,orientation:at,dir:it,valueFormatter:ot,children:st,barProps:lt,xAxisLabel:nt,yAxisLabel:ct,withBarValueLabel:dt,valueLabelProps:ut,withRightYAxis:ht,rightYAxisLabel:pt,rightYAxisProps:ft,minBarSize:mt,maxBarWidth:xt,mod:yt,getBarColor:vt,gridColor:kt,textColor:bt,attributes:gt,...At}=r,Ct=(0,S.xd)(),Pt="none"!==Q&&("x"===R||"xy"===R),St="none"!==Q&&("y"===R||"xy"===R),[Lt,jt]=(0,o.useState)(null),wt=null!==Lt,Nt="stacked"===rt||"percent"===rt,Dt="percent"===rt?B:ot,{resolvedClassNames:zt,resolvedStyles:Bt}=(0,L.Y)({classNames:a,styles:m,props:r}),Ft="waterfall"===rt?function(t,e){let r=0,a=0;return t.map(t=>{if(t.standalone)for(const r in t)"number"==typeof t[r]&&r!==e&&(t[r]=[0,t[r]]);else for(const i in t)"number"==typeof t[i]&&i!==e&&(a+=t[i],t[i]=[r,a],r=a);return t})}(O,Y):O,It=(0,j.I)({name:"BarChart",classes:z.A,props:r,className:s,style:h,classNames:a,styles:m,unstyled:g,attributes:gt,vars:C,varsResolver:I}),Ot=_.map(t=>{const e=(0,A.r)(t.color,Ct),r=wt&&Lt!==t.name;return(0,o.createElement)(l.y,{...It("bar"),key:t.name,name:t.name,dataKey:t.name,fill:e,stroke:e,isAnimationActive:!1,fillOpacity:r?.1:tt,strokeOpacity:r?.2:0,stackId:Nt?"stack":t.stackId||void 0,yAxisId:t.yAxisId||"left",minPointSize:mt,..."function"==typeof lt?lt(t):lt},Ft.map((r,a)=>{const o=r.color?(0,A.r)(r.color,Ct):"function"==typeof vt?(0,A.r)(vt(r[t.name],t),Ct):function(t,e){return"function"==typeof t?t(e).fill:t?.fill}(lt,t)||e;return(0,i.jsx)(n.f,{fill:o},`cell-${a}`)}),dt&&(0,i.jsx)(c.Z,{position:"vertical"===at?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:t=>Dt?.(t),..."function"==typeof ut?ut(t):ut}))}),Tt=U?.map((t,e)=>{const r=(0,A.r)(t.color,Ct);return(0,i.jsx)(d.e,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:t.labelPosition??"insideBottomLeft"},...It("referenceLine")},e)}),$t={axisLine:!1,..."vertical"===at?{dataKey:Y,type:"category"}:{type:"number"},tickLine:!!St&&{stroke:"currentColor"},allowDecimals:!0,unit:J,tickFormatter:"vertical"===at?void 0:Dt,...It("axis")};return(0,i.jsx)(w.a,{ref:e,...It("root"),onMouseLeave:t=>{jt(null),K?.(t)},dir:it||"ltr",mod:[{orientation:at},yt],...At,children:(0,i.jsx)(u.u,{...It("container"),children:(0,i.jsxs)(x,{data:Ft,stackOffset:"percent"===rt?"expand":void 0,layout:at,maxBarSize:xt,margin:{bottom:nt?30:void 0,left:ct?10:void 0,right:ct?5:void 0},...et,children:[T&&(0,i.jsx)(y.s,{verticalAlign:"top",content:t=>(0,i.jsx)(N._,{payload:t.payload,onHighlight:jt,legendPosition:$?.verticalAlign||"top",classNames:zt,styles:Bt,series:_,showColor:"waterfall"!==rt,attributes:gt}),...$}),(0,i.jsxs)(p.W,{hide:!E,..."vertical"===at?{type:"number"}:{dataKey:Y},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Pt&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===at?Dt:void 0,...It("axis"),...X,children:[nt&&(0,i.jsx)(v.J,{position:"insideBottom",offset:-20,fontSize:12,...It("axisLabel"),children:nt}),X?.children]}),(0,i.jsxs)(f.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!W,...$t,...H,children:[ct&&(0,i.jsx)(v.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...It("axisLabel"),children:ct}),H?.children]}),(0,i.jsxs)(f.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!ht,...$t,...ft,children:[pt&&(0,i.jsx)(v.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...It("axisLabel"),children:pt}),H?.children]}),(0,i.jsx)(k.d,{strokeDasharray:V,vertical:"y"===Q||"xy"===Q,horizontal:"x"===Q||"xy"===Q,...It("grid"),...q}),M&&(0,i.jsx)(b.m,{animationDuration:G,isAnimationActive:0!==G,position:"vertical"===at?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:V,fill:"var(--chart-cursor-fill)"},content:({label:t,payload:e,labelFormatter:r})=>(0,i.jsx)(D.I,{label:r&&e?r(t,e):t,payload:e,type:"waterfall"===rt?"scatter":void 0,unit:J,classNames:zt,styles:Bt,series:_,valueFormatter:ot,attributes:gt}),...Z}),Ot,Tt,st]})})})});O.displayName="@mantine/charts/BarChart",O.classes=z.A,r(9319);var T=r(3837),$=r(7479),_=r(8734),K=function(t){return t.toString()};const Y=function(t){var e=t.setProps,r=t.loading_state,i=(t.clickData,t.hoverData,t.barChartProps),l=(t.clickSeriesName,t.hoverSeriesName,t.barProps),n=t.highlightHover,c=void 0!==n&&n,d=t.valueFormatter,u=t.series,h=t.data,p=t.dataKey,f=(0,a.Tt)(t,["setProps","loading_state","clickData","hoverData","barChartProps","clickSeriesName","hoverSeriesName","barProps","highlightHover","valueFormatter","series","data","dataKey"]),m=(0,o.useState)(null),x=m[0],y=m[1],v=c&&null!==x,k=(0,o.useRef)(null),b=function(t){(0,T.$Q)(t)&&(k.current=t.tooltipPayload[0].name)},g=function(t){if((0,T.$Q)(t)){var e=t.tooltipPayload[0].name;k.current=e,y(e)}},A=function(){y(null)},C=(0,a.Cl)((0,a.Cl)({},i),{onClick:function(t){(0,T.$Q)(t)&&e({clickSeriesName:k.current,clickData:(0,T.X$)(t)}),k.current=null},onMouseOver:function(t){(0,T.$Q)(t)&&e({hoverSeriesName:k.current,hoverData:(0,T.X$)(t)}),k.current=null}});return s().createElement(O,(0,a.Cl)({"data-dash-is-loading":(0,$.A_)(r)||void 0},(0,_.s)("BarChart",f),{data:h,dataKey:p,series:u,barChartProps:C,barProps:function(t){var e=v&&x!==t.name,r=(0,a.Cl)((0,a.Cl)({},l),{onClick:b,onMouseOver:g,onMouseOut:A});return e&&(r.fillOpacity=.1,r.strokeOpacity=.2),r},valueFormatter:(0,_.q)(d)||K}))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[0],{7626:(t,a,e)=>{e.r(a),e.d(a,{default:()=>B});var r=e(1635),s=e(4848),o=e(4653),i=e(9853),n=e(7984),l=e(3495),c=e(1658),d=e(8687),u=e(1915),h=e(4999),p=e(7826),y=e(9396),m=e(6344),v=e(2412),x=e(6100),f=e(1101),b=e(2837),g=e(4791),k=e(9133);function C(t,a){const e=t.map(t=>t[a]);return[Math.min(...e),Math.max(...e)]}function j({active:t,payload:a,getStyles:e,dataKey:r,valueFormatter:o}){if(t&&a&&a.length){const t=a[0]&&a[0].payload;return(0,s.jsx)("div",{...e("tooltip"),children:(0,s.jsxs)(h.Y,{justify:"space-between",children:[(0,s.jsx)(p.E,{fz:"sm",children:t[r.x]}),(0,s.jsx)(p.E,{fz:"sm",children:o?o(t[r.z]):t[r.z]})]})})}return null}const z={color:"blue.6",withTooltip:!0},P=(0,y.V)((t,{textColor:a,gridColor:e})=>({root:{"--chart-text-color":a?(0,m.r)(a,t):void 0,"--chart-grid-color":e?(0,m.r)(e,t):void 0}})),A=(0,v.P9)((t,a)=>{const e=(0,x.Y)("BubbleChart",z,t),{classNames:r,className:h,style:p,styles:y,unstyled:v,vars:A,data:D,xAxisProps:K,yAxisProps:_,zAxisProps:w,tooltipProps:N,scatterProps:B,color:S,label:E,withTooltip:F,dataKey:L,range:M,valueFormatter:T,attributes:Q,...R}=e,W=(0,f.xd)(),Y=(0,b.I)({name:"BubbleChart",classes:k.A,props:e,className:h,style:p,classNames:r,styles:y,unstyled:v,attributes:Q,vars:A,varsResolver:P}),$=E?void 0:{width:0};return(0,s.jsx)(g.a,{ref:a,...Y("root"),...R,children:(0,s.jsx)(o.u,{children:(0,s.jsxs)(i.t,{children:[(0,s.jsx)(n.W,{type:"category",dataKey:L.x,interval:0,tick:{fontSize:12,fill:"currentColor"},tickLine:{transform:"translate(0, -6)",stroke:"currentColor"},stroke:"currentColor",...Y("axis"),...K}),(0,s.jsx)(l.h,{type:"number",dataKey:L.y,height:10,...$,tick:!1,tickLine:!1,axisLine:!1,label:{value:E,position:"insideRight",fontSize:12,fill:"currentColor"},...Y("axis"),..._}),(0,s.jsx)(c.K,{type:"number",dataKey:L.z,domain:C(D,L.z),range:M,...w}),F&&(0,s.jsx)(d.m,{animationDuration:100,isAnimationActive:!1,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:"3 3"},content:t=>(0,s.jsx)(j,{dataKey:L,active:t.active,payload:t.payload,getStyles:Y,valueFormatter:T}),...N}),(0,s.jsx)(u.X,{data:D,fill:(0,m.r)(S,W),isAnimationActive:!1,...B})]})})})});A.displayName="@mantine/charts/BubbleChart",A.classes=k.A,e(9319);var D=e(295),K=e.n(D),_=e(3837),w=e(7479),N=e(8734);const B=function(t){var a=t.setProps,e=t.loading_state,s=(t.clickData,t.hoverData,t.scatterProps),o=t.data,i=t.dataKey,n=t.range,l=(0,r.Tt)(t,["setProps","loading_state","clickData","hoverData","scatterProps","data","dataKey","range"]),c=(0,r.Cl)((0,r.Cl)({},s),{onClick:function(t){(0,_.$Q)(t)&&a({clickData:(0,_.zD)(t)})},onMouseOver:function(t){(0,_.$Q)(t)&&a({hoverData:(0,_.zD)(t)})}});return K().createElement(A,(0,r.Cl)({"data-dash-is-loading":(0,w.A_)(e)||void 0},(0,N.s)("BubbleChart",l),{data:o,dataKey:i,range:n,scatterProps:c}))}}}]);
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[0],{7626:(t,a,e)=>{e.r(a),e.d(a,{default:()=>B});var r=e(1635),s=e(4848),o=e(4653),i=e(9853),n=e(7984),l=e(3495),c=e(1658),d=e(8687),u=e(1915),h=e(4999),p=e(7826),y=e(9396),m=e(6344),v=e(2412),x=e(6100),f=e(602),b=e(6904),g=e(8424),k=e(9133);function C(t,a){const e=t.map(t=>t[a]);return[Math.min(...e),Math.max(...e)]}function j({active:t,payload:a,getStyles:e,dataKey:r,valueFormatter:o}){if(t&&a&&a.length){const t=a[0]&&a[0].payload;return(0,s.jsx)("div",{...e("tooltip"),children:(0,s.jsxs)(h.Y,{justify:"space-between",children:[(0,s.jsx)(p.E,{fz:"sm",children:t[r.x]}),(0,s.jsx)(p.E,{fz:"sm",children:o?o(t[r.z]):t[r.z]})]})})}return null}const z={color:"blue.6",withTooltip:!0},P=(0,y.V)((t,{textColor:a,gridColor:e})=>({root:{"--chart-text-color":a?(0,m.r)(a,t):void 0,"--chart-grid-color":e?(0,m.r)(e,t):void 0}})),A=(0,v.P9)((t,a)=>{const e=(0,x.Y)("BubbleChart",z,t),{classNames:r,className:h,style:p,styles:y,unstyled:v,vars:A,data:D,xAxisProps:K,yAxisProps:_,zAxisProps:w,tooltipProps:N,scatterProps:B,color:S,label:E,withTooltip:F,dataKey:L,range:M,valueFormatter:T,attributes:Q,...R}=e,W=(0,f.xd)(),Y=(0,b.I)({name:"BubbleChart",classes:k.A,props:e,className:h,style:p,classNames:r,styles:y,unstyled:v,attributes:Q,vars:A,varsResolver:P}),$=E?void 0:{width:0};return(0,s.jsx)(g.a,{ref:a,...Y("root"),...R,children:(0,s.jsx)(o.u,{children:(0,s.jsxs)(i.t,{children:[(0,s.jsx)(n.W,{type:"category",dataKey:L.x,interval:0,tick:{fontSize:12,fill:"currentColor"},tickLine:{transform:"translate(0, -6)",stroke:"currentColor"},stroke:"currentColor",...Y("axis"),...K}),(0,s.jsx)(l.h,{type:"number",dataKey:L.y,height:10,...$,tick:!1,tickLine:!1,axisLine:!1,label:{value:E,position:"insideRight",fontSize:12,fill:"currentColor"},...Y("axis"),..._}),(0,s.jsx)(c.K,{type:"number",dataKey:L.z,domain:C(D,L.z),range:M,...w}),F&&(0,s.jsx)(d.m,{animationDuration:100,isAnimationActive:!1,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:"3 3"},content:t=>(0,s.jsx)(j,{dataKey:L,active:t.active,payload:t.payload,getStyles:Y,valueFormatter:T}),...N}),(0,s.jsx)(u.X,{data:D,fill:(0,m.r)(S,W),isAnimationActive:!1,...B})]})})})});A.displayName="@mantine/charts/BubbleChart",A.classes=k.A,e(9319);var D=e(295),K=e.n(D),_=e(3837),w=e(7479),N=e(8734);const B=function(t){var a=t.setProps,e=t.loading_state,s=(t.clickData,t.hoverData,t.scatterProps),o=t.data,i=t.dataKey,n=t.range,l=(0,r.Tt)(t,["setProps","loading_state","clickData","hoverData","scatterProps","data","dataKey","range"]),c=(0,r.Cl)((0,r.Cl)({},s),{onClick:function(t){(0,_.$Q)(t)&&a({clickData:(0,_.zD)(t)})},onMouseOver:function(t){(0,_.$Q)(t)&&a({hoverData:(0,_.zD)(t)})}});return K().createElement(A,(0,r.Cl)({"data-dash-is-loading":(0,w.A_)(e)||void 0},(0,N.s)("BubbleChart",l),{data:o,dataKey:i,range:n,scatterProps:c}))}}}]);