dash_mantine_components 2.4.0 → 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.
- package/dash_mantine_components/async-AreaChart.js +1 -1
- package/dash_mantine_components/async-BarChart.js +1 -1
- package/dash_mantine_components/async-BubbleChart.js +1 -1
- package/dash_mantine_components/async-CodeHighlight.js +1 -1
- package/dash_mantine_components/async-CodeHighlightTabs.js +1 -1
- package/dash_mantine_components/async-CompositeChart.js +1 -1
- package/dash_mantine_components/async-DonutChart.js +1 -1
- package/dash_mantine_components/async-InlineCodeHighlight.js +1 -1
- package/dash_mantine_components/async-LineChart.js +1 -1
- package/dash_mantine_components/async-PieChart.js +1 -1
- package/dash_mantine_components/async-RadarChart.js +1 -1
- package/dash_mantine_components/async-RichTextEditor.js +1 -1
- package/dash_mantine_components/async-ScatterChart.js +1 -1
- package/dash_mantine_components/async-Sparkline.js +1 -1
- package/dash_mantine_components/dash_mantine_components-charts-shared.js +1 -1
- package/dash_mantine_components/dash_mantine_components.js +1 -1
- package/dash_mantine_components/proptypes.js +9725 -9634
- package/package.json +27 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[857],{8061:(e,t,i)=>{i.r(t),i.d(t,{default:()=>
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[857],{8061:(e,t,i)=>{i.r(t),i.d(t,{default:()=>F});var r=i(1635),o=i(4848),a=i(295),s=i.n(a),n=i(6279),l=i(4124),c=i(1222),d=i(5614),p=i(7158),u=i(4653),h=i(708),m=i(1915),y=i(7984),x=i(3495),f=i(1658),v=i(5894),k=(0,h.gu)({chartName:"ComposedChart",GraphicalChild:[n.N,l.G,c.y,m.X],axisComponents:[{axisType:"xAxis",AxisComp:y.W},{axisType:"yAxis",AxisComp:x.h},{axisType:"zAxis",AxisComp:f.K}],formatAxisMap:v.pr}),A=i(7018),C=i(1706),P=i(9107),b=i(8687),g=i(9396),D=i(6344),N=i(2412),S=i(6100),L=i(602),j=i(9274),w=i(6904),O=i(8424),z=i(6585),I=i(5849),W=i(9133),K=i(8498);const T={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone"},M=(0,g.V)((e,{textColor:t,gridColor:i})=>({root:{"--chart-text-color":t?(0,D.r)(t,e):void 0,"--chart-grid-color":i?(0,D.r)(i,e):void 0}})),$=(0,N.P9)((e,t)=>{const i=(0,S.Y)("CompositeChart",T,e),{classNames:r,className:s,style:h,styles:m,unstyled:f,vars:v,data:g,withLegend:N,legendProps:$,series:_,onMouseLeave:Y,dataKey:B,withTooltip:F,withXAxis:Q,withYAxis:E,gridAxis:X,tickLine:G,xAxisProps:R,yAxisProps:H,unit:J,tooltipAnimationDuration:V,strokeDasharray:Z,gridProps:q,tooltipProps:U,referenceLines:ee,withDots:te,dotProps:ie,activeDotProps:re,strokeWidth:oe,connectNulls:ae,curveType:se,dir:ne,valueFormatter:le,children:ce,lineProps:de,xAxisLabel:pe,yAxisLabel:ue,withRightYAxis:he,rightYAxisLabel:me,rightYAxisProps:ye,withPointLabels:xe,areaProps:fe,barProps:ve,withBarValueLabel:ke,minBarSize:Ae,maxBarWidth:Ce,composedChartProps:Pe,attributes:be,...ge}=i,De=(0,L.xd)(),Ne="none"!==X&&("x"===G||"xy"===G),Se="none"!==X&&("y"===G||"xy"===G),[Le,je]=(0,a.useState)(null),we=null!==Le,{resolvedClassNames:Oe,resolvedStyles:ze}=(0,j.Y)({classNames:r,styles:m,props:i}),Ie=(0,w.I)({name:"CompositeChart",classes:W.A,props:i,className:s,style:h,classNames:r,styles:m,unstyled:f,attributes:be,vars:v,varsResolver:M}),We=_.map(e=>{const t=(0,D.r)(e.color,De),i=we&&Le!==e.name;return"line"===e.type?(0,a.createElement)(n.N,{...Ie("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!te&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:t,stroke:t,...ie},activeDot:!!te&&{fill:"var(--mantine-color-white)",stroke:t,...re},fill:t,stroke:t,strokeWidth:oe,isAnimationActive:!1,fillOpacity:i?0:1,strokeOpacity:i?.5:1,connectNulls:ae,type:se,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,o.jsx)(K.x,{valueFormatter:le}):void 0,..."function"==typeof de?de(e):de}):"area"===e.type?(0,a.createElement)(l.G,{...Ie("area"),key:e.name,name:e.name,type:se,dataKey:e.name,fill:t,strokeWidth:oe,stroke:t,isAnimationActive:!1,connectNulls:ae,dot:!!te&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:t,stroke:t,...ie},activeDot:!!te&&{fill:De.white,stroke:t,strokeWidth:2,r:4,...re},fillOpacity:i?0:.2,strokeOpacity:i?.5:1,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,o.jsx)(K.x,{valueFormatter:le}):void 0,..."function"==typeof fe?fe(e):fe}):"bar"===e.type?(0,a.createElement)(c.y,{...Ie("bar"),key:e.name,name:e.name,dataKey:e.name,fill:t,stroke:t,isAnimationActive:!1,fillOpacity:i?.1:1,strokeOpacity:i?.2:0,yAxisId:e.yAxisId||"left",minPointSize:Ae,..."function"==typeof ve?ve(e):ve},ke&&(0,o.jsx)(d.Z,{position:"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:e=>le?.(e)})):null}),Ke=ee?.map((e,t)=>{const i=(0,D.r)(e.color,De);return(0,o.jsx)(p.e,{stroke:e.color?i:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?i:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...Ie("referenceLine")},t)}),Te={axisLine:!1,type:"number",tickLine:!!Se&&{stroke:"currentColor"},allowDecimals:!0,unit:J,tickFormatter:le,...Ie("axis")};return(0,o.jsx)(O.a,{ref:t,...Ie("root"),onMouseLeave:e=>{je(null),Y?.(e)},dir:ne||"ltr",...ge,children:(0,o.jsx)(u.u,{...Ie("container"),children:(0,o.jsxs)(k,{data:g,maxBarSize:Ce,margin:{bottom:pe?30:void 0,left:ue?10:void 0,right:ue?5:void 0},...Pe,children:[N&&(0,o.jsx)(A.s,{verticalAlign:"top",content:e=>(0,o.jsx)(z._,{payload:e.payload,onHighlight:je,legendPosition:$?.verticalAlign||"top",classNames:Oe,styles:ze,series:_,attributes:be}),...$}),(0,o.jsxs)(y.W,{hide:!Q,dataKey:B,tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Ne&&{stroke:"currentColor"},minTickGap:5,...Ie("axis"),...R,children:[pe&&(0,o.jsx)(C.J,{position:"insideBottom",offset:-20,fontSize:12,...Ie("axisLabel"),children:pe}),R?.children]}),(0,o.jsxs)(x.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!E,...Te,...H,children:[ue&&(0,o.jsx)(C.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Ie("axisLabel"),children:ue}),H?.children]}),(0,o.jsxs)(x.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!he,...Te,...ye,children:[me&&(0,o.jsx)(C.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Ie("axisLabel"),children:me}),H?.children]}),(0,o.jsx)(P.d,{strokeDasharray:Z,vertical:"y"===X||"xy"===X,horizontal:"x"===X||"xy"===X,...Ie("grid"),...q}),F&&(0,o.jsx)(b.m,{animationDuration:V,isAnimationActive:0!==V,position:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:Z},content:({label:e,payload:t,labelFormatter:i})=>(0,o.jsx)(I.I,{label:i&&t?i(e,t):e,payload:t,unit:J,classNames:Oe,styles:ze,series:_,valueFormatter:le,attributes:be}),...U}),We,Ke,ce]})})})});$.displayName="@mantine/charts/CompositeChart",$.classes=W.A,i(9319);var _=i(3837),Y=i(7479),B=i(8734);const F=function(e){var t=e.setProps,i=e.loading_state,o=(e.clickData,e.hoverData,e.highlightHover),n=void 0!==o&&o,l=(e.hoverSeriesName,e.clickSeriesName,e.composedChartProps),c=e.barProps,d=e.lineProps,p=e.areaProps,u=e.activeDotProps,h=e.series,m=e.data,y=e.dataKey,x=(0,r.Tt)(e,["setProps","loading_state","clickData","hoverData","highlightHover","hoverSeriesName","clickSeriesName","composedChartProps","barProps","lineProps","areaProps","activeDotProps","series","data","dataKey"]),f=(0,a.useState)(null),v=f[0],k=f[1],A=n&&null!==v,C=(0,a.useRef)(null),P=function(e){var t,i,r;(0,_.$Q)(e)&&(C.current=null!==(r=null===(i=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===i?void 0:i.name)&&void 0!==r?r:e.name)},b=function(e){var t,i,r;if((0,_.$Q)(e)){var o=null!==(r=null===(i=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===i?void 0:i.name)&&void 0!==r?r:e.name;C.current=o,k(o)}},g=function(){k(null)},D=function(e,t){var i=null,o=A&&v!==e.name;return"bar"===t?i=null!=c?c:{}:"area"===t?i=null!=p?p:{}:"line"===t&&(i=null!=d?d:{}),o&&(i.fillOpacity=.1,i.strokeOpacity=.2),(0,r.Cl)((0,r.Cl)({},i),{onClick:P,onMouseOver:b,onMouseOut:g})},N=(0,r.Cl)((0,r.Cl)({},l),{onClick:function(e){(0,_.$Q)(e)&&t({clickSeriesName:C.current,clickData:(0,_.X$)(e)}),C.current=null},onMouseOver:function(e){(0,_.$Q)(e)&&t({hoverSeriesName:C.current,hoverData:(0,_.X$)(e)}),C.current=null}});return s().createElement($,(0,r.Cl)({"data-dash-is-loading":(0,Y.A_)(i)||void 0},(0,B.s)("CompositeChart",x),{data:m,dataKey:y,series:h,composedChartProps:N,barProps:function(e){return D(e,"bar")},lineProps:function(e){return D(e,"line")},areaProps:function(e){return D(e,"area")},activeDotProps:(0,r.Cl)((0,r.Cl)({},u),{onClick:function(e,t){(0,_.$Q)(e)&&(C.current=t.dataKey)},onMouseOver:function(e,t){if((0,_.$Q)(e)){var i=t.dataKey;C.current=i,k(i)}},onMouseOut:g})}))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[990],{9043:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var s=t(1635),
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[990],{9043:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var s=t(1635),l=t(4848),o=t(2050),r=t(4653),i=t(2209),n=t(3161),c=t(8687),d=t(9396),m=t(6344),h=t(8149),p=t(2412),v=t(6100),u=t(602),y=t(6904),b=t(9274),k=t(8424),x=t(5849),f={root:"m_a410e613",label:"m_ddb0bfe3"};const g={withTooltip:!0,withLabelsLine:!0,paddingAngle:0,thickness:20,size:160,strokeWidth:1,startAngle:0,endAngle:360,labelsType:"value",tooltipDataSource:"all"},A=(0,d.V)((e,{strokeColor:a,labelColor:t,withLabels:s,size:l})=>({root:{"--chart-stroke-color":a?(0,m.r)(a,e):void 0,"--chart-labels-color":t?(0,m.r)(t,e):void 0,"--chart-size":s?(0,h.D)(l+80):(0,h.D)(l)}})),D=(e,a,t,s)=>"percent"===e?`${(100*(t||0)).toFixed(0)}%`:"function"==typeof s?s(a||0):a,C=(e,a)=>({x:t,y:s,cx:o,cy:r,percent:i,value:n})=>(0,l.jsx)("text",{x:t,y:s,cx:o,cy:r,textAnchor:t>o?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:(0,l.jsx)("tspan",{x:t,children:D(e,n,i,a)})}),N=(0,p.P9)((e,a)=>{const t=(0,v.Y)("DonutChart",g,e),{classNames:s,className:d,style:h,styles:p,unstyled:D,vars:N,data:j,withTooltip:P,tooltipAnimationDuration:S,tooltipProps:_,pieProps:w,paddingAngle:z,withLabels:L,withLabelsLine:F,size:T,thickness:W,strokeWidth:I,startAngle:R,endAngle:$,tooltipDataSource:Q,chartLabel:Y,children:B,pieChartProps:E,valueFormatter:K,strokeColor:M,labelsType:O,attributes:V,cellProps:q,...G}=t,H=(0,u.xd)(),J=(0,y.I)({name:"DonutChart",classes:f,props:t,className:d,style:h,classNames:s,styles:p,unstyled:D,attributes:V,vars:N,varsResolver:A}),{resolvedClassNames:U,resolvedStyles:X}=(0,b.Y)({classNames:s,styles:p,props:t}),Z=j.map((e,a)=>(0,l.jsx)(o.f,{fill:(0,m.r)(e.color,H),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I,..."function"==typeof q?q(e):q},a));return(0,l.jsx)(k.a,{ref:a,size:T,...J("root"),...G,children:(0,l.jsx)(r.u,{children:(0,l.jsxs)(i.r,{...E,children:[(0,l.jsx)(n.F,{data:j,innerRadius:T/2-W,outerRadius:T/2,dataKey:"value",isAnimationActive:!1,paddingAngle:z,startAngle:R,endAngle:$,label:!!L&&C(O||"value",K),labelLine:!!F&&{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1},...w,children:Z}),Y&&(0,l.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",...J("label"),children:Y}),P&&(0,l.jsx)(c.m,{animationDuration:S,isAnimationActive:!1,content:({payload:e})=>(0,l.jsx)(x.I,{payload:j,classNames:U,styles:X,type:"radial",segmentId:"segment"===Q?e?.[0]?.name:void 0,valueFormatter:K,attributes:V}),..._}),B]})})})});N.displayName="@mantine/charts/DonutChart",N.classes=f,t(9319);var j=t(295),P=t.n(j),S=t(3837),_=t(7479);const w=function(e){var a=e.setProps,t=e.loading_state,l=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.pieProps),o=(0,s.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","pieProps"]),r=(0,s.Cl)((0,s.Cl)({},l),{onClick:function(e){if((0,S.$Q)(e)){var t=(0,S.jz)(e);a({clickData:t,clickSeriesName:t.name})}},onMouseOver:function(e){if((0,S.$Q)(e)){var t=(0,S.jz)(e);a({hoverData:t,hoverSeriesName:t.name})}}});return P().createElement(N,(0,s.Cl)({"data-dash-is-loading":(0,_.A_)(t)||void 0,pieProps:r},o))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[298],{1355:(e,s,a)=>{a.r(s),a.d(s,{default:()=>y});var t=a(1635),n=a(166),i=a(4848),l=a(9396),o=a(6344),d=a(6324),r=a(2412),c=a(6100),h=a(
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[298],{1355:(e,s,a)=>{a.r(s),a.d(s,{default:()=>y});var t=a(1635),n=a(166),i=a(4848),l=a(9396),o=a(6344),d=a(6324),r=a(2412),c=a(6100),h=a(6904),g=a(8596),m=a(2238);const u=(0,l.V)((e,{background:s,radius:a})=>({inlineCodeHighlight:{"--ch-background":s?(0,o.r)(s,e):void 0,"--ch-radius":void 0!==a?(0,d.nJ)(a):void 0}})),p=(0,r.P9)((e,s)=>{const a=(0,c.Y)("InlineCodeHighlight",null,e),{classNames:t,className:n,style:l,styles:o,unstyled:d,vars:r,attributes:p,...v}=a,C=(0,h.I)({name:"InlineCodeHighlight",classes:g.A,props:a,className:n,style:l,classNames:t,styles:o,unstyled:d,attributes:p,vars:r,varsResolver:u,rootSelector:"inlineCodeHighlight"});return(0,i.jsx)(m.q,{...v,ref:s,...C("inlineCodeHighlight"),__inline:!0})});p.displayName="@mantine/code-highlight/InlineCodeHighlight",p.classes=g.A,a(1994);var v=a(295),C=a.n(v),_=a(7479),N=a(8948);const y=function(e){e.setProps;var s=e.loading_state,a=(e.className,(0,t.Tt)(e,["setProps","loading_state","className"]));return C().createElement(n.M4,{adapter:N.R},C().createElement(p,(0,t.Cl)({"data-dash-is-loading":(0,_.A_)(s)||void 0,className:"dmc-code"},a)))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[436],{9970:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r=i(1635),o=i(4848),a=i(295),s=i.n(a),n=i(6279),l=i(7158),c=i(4653),d=i(
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[436],{9970:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r=i(1635),o=i(4848),a=i(295),s=i.n(a),n=i(6279),l=i(7158),c=i(4653),d=i(708),h=i(7984),u=i(3495),p=i(5894),y=(0,d.gu)({chartName:"LineChart",GraphicalChild:n.N,axisComponents:[{axisType:"xAxis",AxisComp:h.W},{axisType:"yAxis",AxisComp:u.h}],formatAxisMap:p.pr}),x=i(7018),m=i(1706),f=i(9107),v=i(8687),g=i(9396),k=i(6344),C=i(2412),A=i(6100),P=i(602),b=i(9274),L=i(6904),D=i(8424),N=i(6284),j=i(6585),S=i(5849),w=i(9133),O=i(8498);const $={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},K=(0,g.V)((e,{textColor:t,gridColor:i})=>({root:{"--chart-text-color":t?(0,k.r)(t,e):void 0,"--chart-grid-color":i?(0,k.r)(i,e):void 0}})),T=(0,C.P9)((e,t)=>{const i=(0,A.Y)("LineChart",$,e),{classNames:r,className:s,style:d,styles:p,unstyled:g,vars:C,data:T,withLegend:z,legendProps:I,series:M,onMouseLeave:W,dataKey:_,withTooltip:Y,withXAxis:F,withYAxis:Q,gridAxis:R,tickLine:X,xAxisProps:B,yAxisProps:E,unit:G,tooltipAnimationDuration:H,strokeDasharray:J,gridProps:V,tooltipProps:q,referenceLines:U,withDots:Z,dotProps:ee,activeDotProps:te,strokeWidth:ie,lineChartProps:re,connectNulls:oe,fillOpacity:ae,curveType:se,orientation:ne,dir:le,valueFormatter:ce,children:de,lineProps:he,xAxisLabel:ue,yAxisLabel:pe,type:ye,gradientStops:xe,withRightYAxis:me,rightYAxisLabel:fe,rightYAxisProps:ve,withPointLabels:ge,attributes:ke,gridColor:Ce,...Ae}=i,Pe=(0,P.xd)(),be="none"!==R&&("x"===X||"xy"===X),Le="none"!==R&&("y"===X||"xy"===X),[De,Ne]=(0,a.useState)(null),je=null!==De,{resolvedClassNames:Se,resolvedStyles:we}=(0,b.Y)({classNames:r,styles:p,props:i}),Oe=(0,L.I)({name:"LineChart",classes:w.A,props:i,className:s,style:d,classNames:r,styles:p,unstyled:g,attributes:ke,vars:C,varsResolver:K}),$e=`line-chart-gradient-${(0,N.B)()}`,Ke=xe?.map(e=>(0,o.jsx)("stop",{offset:`${e.offset}%`,stopColor:(0,k.r)(e.color,Pe)},e.color)),Te=M.map(e=>{const t=(0,k.r)(e.color,Pe),i=je&&De!==e.name;return(0,a.createElement)(n.N,{...Oe("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!Z&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:"gradient"===ye?"var(--mantine-color-gray-7)":t,stroke:"gradient"===ye?"white":t,...ee},activeDot:!!Z&&{fill:"gradient"===ye?"var(--mantine-color-gray-7)":t,stroke:"gradient"===ye?"white":t,...te},fill:t,stroke:"gradient"===ye?`url(#${$e})`:t,strokeWidth:ie,isAnimationActive:!1,fillOpacity:i?0:ae,strokeOpacity:i?.5:ae,connectNulls:oe,type:e.curveType??se,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:ge?(0,o.jsx)(O.x,{valueFormatter:ce}):void 0,..."function"==typeof he?he(e):he})}),ze=U?.map((e,t)=>{const i=(0,k.r)(e.color,Pe);return(0,o.jsx)(l.e,{stroke:e.color?i:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?i:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...Oe("referenceLine")},t)}),Ie={axisLine:!1,..."vertical"===ne?{dataKey:_,type:"category"}:{type:"number"},tickLine:!!Le&&{stroke:"currentColor"},allowDecimals:!0,unit:G,tickFormatter:"vertical"===ne?void 0:ce,...Oe("axis")};return(0,o.jsx)(D.a,{ref:t,...Oe("root"),onMouseLeave:e=>{Ne(null),W?.(e)},dir:le||"ltr",...Ae,children:(0,o.jsx)(c.u,{...Oe("container"),children:(0,o.jsxs)(y,{data:T,layout:ne,margin:{bottom:ue?30:void 0,left:pe?10:void 0,right:pe?5:void 0},...re,children:["gradient"===ye&&(0,o.jsx)("defs",{children:(0,o.jsx)("linearGradient",{id:$e,x1:"0",y1:"0",x2:"0",y2:"1",children:Ke})}),z&&(0,o.jsx)(x.s,{verticalAlign:"top",content:e=>(0,o.jsx)(j._,{payload:e.payload,onHighlight:Ne,legendPosition:I?.verticalAlign||"top",classNames:Se,styles:we,series:M,showColor:"gradient"!==ye,attributes:ke}),...I}),(0,o.jsxs)(h.W,{hide:!F,..."vertical"===ne?{type:"number"}:{dataKey:_},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!be&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===ne?ce:void 0,...Oe("axis"),...B,children:[ue&&(0,o.jsx)(m.J,{position:"insideBottom",offset:-20,fontSize:12,...Oe("axisLabel"),children:ue}),B?.children]}),(0,o.jsxs)(u.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!Q,...Ie,...E,children:[pe&&(0,o.jsx)(m.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Oe("axisLabel"),children:pe}),E?.children]}),(0,o.jsxs)(u.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!me,...Ie,...ve,children:[fe&&(0,o.jsx)(m.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Oe("axisLabel"),children:fe}),E?.children]}),(0,o.jsx)(f.d,{strokeDasharray:J,vertical:"y"===R||"xy"===R,horizontal:"x"===R||"xy"===R,...Oe("grid"),...V}),Y&&(0,o.jsx)(v.m,{animationDuration:H,isAnimationActive:0!==H,position:"vertical"===ne?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:J},content:({label:e,payload:t,labelFormatter:i})=>(0,o.jsx)(S.I,{label:i&&t?i(e,t):e,payload:t,unit:G,classNames:Se,styles:we,series:M,valueFormatter:ce,showColor:"gradient"!==ye,attributes:ke}),...q}),Te,ze,de]})})})});T.displayName="@mantine/charts/LineChart",T.classes=w.A,i(9319);var z=i(3837),I=i(7479),M=i(8734);const W=function(e){var t=e.setProps,i=e.loading_state,o=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.series),n=e.data,l=e.dataKey,c=e.highlightHover,d=void 0!==c&&c,h=e.lineChartProps,u=e.activeDotProps,p=e.lineProps,y=(0,r.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","series","data","dataKey","highlightHover","lineChartProps","activeDotProps","lineProps"]),x=(0,a.useState)(null),m=x[0],f=x[1],v=d&&null!==m,g=(0,a.useRef)(null),k=function(e){(0,z.$Q)(e)&&(g.current=e.name)},C=function(e){if((0,z.$Q)(e)){var t=e.name;g.current=t,f(t)}},A=function(){f(null)},P=(0,r.Cl)((0,r.Cl)({},h),{onClick:function(e){(0,z.$Q)(e)&&t({clickSeriesName:g.current,clickData:(0,z.X$)(e)}),g.current=null},onMouseOver:function(e){(0,z.$Q)(e)&&t({hoverSeriesName:g.current,hoverData:(0,z.X$)(e)}),g.current=null}});return s().createElement(T,(0,r.Cl)({"data-dash-is-loading":(0,I.A_)(i)||void 0},(0,M.s)("LineChart",y),{data:n,dataKey:l,lineChartProps:P,series:o,activeDotProps:(0,r.Cl)((0,r.Cl)({},u),{onClick:function(e,t){(0,z.$Q)(e)&&(g.current=t.dataKey)},onMouseOver:function(e,t){if((0,z.$Q)(e)){var i=t.dataKey;g.current=i,f(i)}},onMouseOut:A}),lineProps:function(e){var t=v&&m!==e.name,i=(0,r.Cl)((0,r.Cl)({},p),{onClick:k,onMouseOver:C,onMouseOut:A});return t&&(i.fillOpacity=.1,i.strokeOpacity=.2),i}}))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{5962:(e,a
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{5962:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var s=a(1635),o=a(4848),r=a(2050),i=a(4653),l=a(2209),n=a(3161),c=a(8687),d=a(9396),m=a(6344),p=a(8149),h=a(2412),u=a(6100),v=a(602),y=a(6904),b=a(9274),f=a(8424),x=a(5849),k={root:"m_cd8943fd"};const g={withTooltip:!1,withLabelsLine:!0,paddingAngle:0,size:160,strokeWidth:1,startAngle:0,endAngle:360,tooltipDataSource:"all",labelsPosition:"outside",labelsType:"value"},A=(0,d.V)((e,{strokeColor:t,labelColor:a,withLabels:s,size:o,labelsPosition:r})=>({root:{"--chart-stroke-color":t?(0,m.r)(t,e):void 0,"--chart-labels-color":a?(0,m.r)(a,e):void 0,"--chart-size":s&&"outside"===r?(0,p.D)(o+80):(0,p.D)(o)}})),P=(e,t,a,s)=>"percent"===e&&"number"==typeof a?`${(100*a).toFixed(0)}%`:"function"==typeof s&&"number"==typeof t?s(t):t,N=(e,t)=>({cx:a,cy:s,midAngle:r,innerRadius:i,outerRadius:l,value:n,percent:c})=>{const d=Math.PI/180,m=i+.5*(l-i),p=a+m*Math.cos(-(r||0)*d),h=s+m*Math.sin(-(r||0)*d);return(0,o.jsx)("text",{x:p,y:h,textAnchor:p>a?"start":"end",dominantBaseline:"central",className:k.label,children:P(e,n,c,t)})},C=(e,t)=>({x:a,y:s,cx:r,cy:i,percent:l,value:n})=>(0,o.jsx)("text",{x:a,y:s,cx:r,cy:i,textAnchor:a>r?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:(0,o.jsx)("tspan",{x:a,children:P(e,n,l,t)})}),j=(0,h.P9)((e,t)=>{const a=(0,u.Y)("PieChart",g,e),{classNames:s,className:d,style:p,styles:h,unstyled:P,vars:j,data:D,withTooltip:S,tooltipAnimationDuration:w,tooltipProps:z,pieProps:_,paddingAngle:L,withLabels:F,withLabelsLine:R,size:T,strokeWidth:I,startAngle:M,endAngle:W,tooltipDataSource:$,children:Q,pieChartProps:Y,labelsPosition:B,valueFormatter:E,labelsType:K,strokeColor:O,attributes:V,cellProps:q,...G}=a,H=(0,v.xd)(),J=(0,y.I)({name:"PieChart",classes:k,props:a,className:d,style:p,classNames:s,styles:h,unstyled:P,attributes:V,vars:j,varsResolver:A}),{resolvedClassNames:U,resolvedStyles:X}=(0,b.Y)({classNames:s,styles:h,props:a}),Z=D.map((e,t)=>(0,o.jsx)(r.f,{fill:(0,m.r)(e.color,H),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I,..."function"==typeof q?q(e):q},t));return(0,o.jsx)(f.a,{ref:t,size:T,...J("root"),...G,children:(0,o.jsx)(i.u,{children:(0,o.jsxs)(l.r,{...Y,children:[(0,o.jsx)(n.F,{data:D,innerRadius:0,outerRadius:T/2,dataKey:"value",isAnimationActive:!1,paddingAngle:L,startAngle:M,endAngle:W,label:!!F&&("inside"===B?N(K||"value",E):C(K||"value",E)),labelLine:!(!R||"outside"!==B)&&{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1},..._,children:Z}),S&&(0,o.jsx)(c.m,{animationDuration:w,isAnimationActive:!1,content:({payload:e})=>(0,o.jsx)(x.I,{payload:D,classNames:U,styles:X,type:"radial",segmentId:"segment"===$?e?.[0]?.name:void 0,valueFormatter:E,attributes:V}),...z}),Q]})})})});j.displayName="@mantine/charts/PieChart",j.classes=k,a(9319);var D=a(295),S=a.n(D),w=a(3837),z=a(7479);const _=function(e){var t=e.setProps,a=e.loading_state,o=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.pieProps),r=(0,s.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","pieProps"]),i=(0,s.Cl)((0,s.Cl)({},o),{onClick:function(e){if((0,w.$Q)(e)){var a=(0,w.jz)(e);t({clickData:a,clickSeriesName:a.name})}},onMouseOver:function(e){if((0,w.$Q)(e)){var a=(0,w.jz)(e);t({hoverData:a,hoverSeriesName:a.name})}}});return S().createElement(j,(0,s.Cl)({"data-dash-is-loading":(0,z.A_)(a)||void 0,pieProps:i},r))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[926],{912:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},5579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Pe});var n=r(1635),o=r(4848),a=r(295),i=r.n(a),s=r(6473),c=r(9843),l=r.n(c),u=r(8090),p=r.n(u),y=r(6170),d=r.n(y),f=r(2404),m=r.n(f),v=r(1882),h=r.n(v),b=r(4164),g=r(9744),P=r(9938),O=r(4040),x=r(3036),j=r(852),A=r(6613),w=r(6069),E=r(5614),k=r(4501),S=["key"];function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){M(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function M(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var W=function(e){function t(){var e,r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return M((r=this,n=t,o=[].concat(i),n=T(n),e=function(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,_()?Reflect.construct(n,o||[],T(r).constructor):n.apply(r,o))),"state",{isAnimationFinished:!1}),M(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),h()(t)&&t()}),M(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),h()(t)&&t()}),M(e,"handleMouseEnter",function(t){var r=e.props.onMouseEnter;r&&r(e.props,t)}),M(e,"handleMouseLeave",function(t){var r=e.props.onMouseLeave;r&&r(e.props,t)}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){var r;if(i().isValidElement(e))r=i().cloneElement(e,t);else if(h()(e))r=e(t);else{var n=t.key,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,S);r=i().createElement(A.c,C({},o,{key:n,className:(0,b.A)("recharts-radar-dot","boolean"!=typeof e?e.className:"")}))}return r}}],(n=[{key:"renderDots",value:function(e){var r=this.props,n=r.dot,o=r.dataKey,a=(0,k.J9)(this.props,!1),s=(0,k.J9)(n,!0),c=e.map(function(e,r){var i=N(N(N({key:"dot-".concat(r),r:3},a),s),{},{dataKey:o,cx:e.x,cy:e.y,index:r,payload:e});return t.renderDotItem(n,i)});return i().createElement(w.W,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,r=this.props,n=r.shape,o=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return t=i().isValidElement(n)?i().cloneElement(n,N(N({},this.props),{},{points:e})):h()(n)?n(N(N({},this.props),{},{points:e})):i().createElement(j.t,C({},(0,k.J9)(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i().createElement(w.W,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,c=t.animationEasing,l=t.animationId,u=this.state.prevPoints;return i().createElement(s.Ay,{begin:o,duration:a,isActive:n,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var n=t.t,o=u&&u.length/r.length,a=r.map(function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var a=(0,g.Dj)(r.x,e.x),i=(0,g.Dj)(r.y,e.y);return N(N({},e),{},{x:a(n),y:i(n)})}var s=(0,g.Dj)(e.cx,e.x),c=(0,g.Dj)(e.cy,e.y);return N(N({},e),{},{x:s(n),y:c(n)})});return e.renderPolygonStatically(a)})}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=e.isRange,o=this.state.prevPoints;return!(r&&t&&t.length)||n||o&&m()(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.className,n=e.points,o=e.isAnimationActive;if(t||!n||!n.length)return null;var a=this.state.isAnimationFinished,s=(0,b.A)("recharts-radar",r);return i().createElement(w.W,{className:s},this.renderPolygon(),(!o||a)&&E.Z.renderCallByParent(this.props,n))}}])&&I(r.prototype,n),o&&I(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.PureComponent);M(W,"displayName","Radar"),M(W,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!P.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),M(W,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,o=e.dataKey,a=e.bandSize,i=r.cx,s=r.cy,c=!1,u=[],y="number"!==r.type&&null!=a?a:0;n.forEach(function(e,n){var a=(0,x.kr)(e,r.dataKey,n),d=(0,x.kr)(e,o),f=r.scale(a)+y,m=Array.isArray(d)?p()(d):d,v=l()(m)?void 0:t.scale(m);Array.isArray(d)&&d.length>=2&&(c=!0),u.push(N(N({},(0,O.IZ)(i,s,v,f)),{},{name:a,value:d,cx:i,cy:s,radius:v,angle:f,payload:e}))});var f=[];return c&&u.forEach(function(e){if(Array.isArray(e.value)){var r=d()(e.value),n=l()(r)?void 0:t.scale(r);f.push(N(N({},e),{},{radius:n},(0,O.IZ)(i,s,n,e.angle)))}else f.push(e)}),{points:u,isRange:c,baseLinePoints:f}});var Z=r(4653),J=r(8327),B=r(433),F=r(2864),G=(0,J.gu)({chartName:"RadarChart",GraphicalChild:W,axisComponents:[{axisType:"angleAxis",AxisComp:B.r},{axisType:"radiusAxis",AxisComp:F.E}],formatAxisMap:O.pr,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),V=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){var n,o,a,i;n=e,o=t,a=r[t],i=function(e){if("object"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),(o="symbol"==Y(i)?i:i+"")in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Q=function(e,t,r,n){var o="";return n.forEach(function(n,a){var i=(0,O.IZ)(t,r,e,n);o+=a?"L ".concat(i.x,",").concat(i.y):"M ".concat(i.x,",").concat(i.y)}),o+="Z"},X=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=H({stroke:"#ccc"},(0,k.J9)(e,!1));return i().createElement("g",{className:"recharts-polar-grid-angle"},a.map(function(e){var a=(0,O.IZ)(t,r,n,e),s=(0,O.IZ)(t,r,o,e);return i().createElement("line",$({},c,{key:"line-".concat(e),x1:a.x,y1:a.y,x2:s.x,y2:s.y}))}))},q=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.index,a=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("circle",$({},a,{className:(0,b.A)("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(o),cx:t,cy:r,r:n}))},U=function(e){var t=e.radius,r=e.index,n=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("path",$({},n,{className:(0,b.A)("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(r),d:Q(t,e.cx,e.cy,e.polarAngles)}))},ee=function(e){var t=e.polarRadius,r=e.gridType;return t&&t.length?i().createElement("g",{className:"recharts-polar-grid-concentric"},t.map(function(t,n){var o=n;return"circle"===r?i().createElement(q,$({key:o},e,{radius:t,index:n})):i().createElement(U,$({key:o},e,{radius:t,index:n}))})):null},te=function(e){var t=e.cx,r=void 0===t?0:t,n=e.cy,o=void 0===n?0:n,a=e.innerRadius,s=void 0===a?0:a,c=e.outerRadius,l=void 0===c?0:c,u=e.gridType,p=void 0===u?"polygon":u,y=e.radialLines,d=void 0===y||y,f=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V);return l<=0?null:i().createElement("g",{className:"recharts-polar-grid"},i().createElement(X,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)),i().createElement(ee,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)))};te.displayName="PolarGrid";var re=r(8687),ne=r(7018),oe=r(9396),ae=r(6344),ie=r(2412),se=r(6100),ce=r(1101),le=r(2837),ue=r(9274),pe=r(4791),ye=r(6585),de=r(5849),fe={root:"m_1f271cf7",container:"m_cf06f58c"};const me={withPolarGrid:!0,withPolarAngleAxis:!0,withPolarRadiusAxis:!1,withTooltip:!1,withDots:!1,tooltipAnimationDuration:0},ve=(0,oe.V)((e,{gridColor:t,textColor:r})=>({root:{"--chart-grid-color":t?(0,ae.r)(t,e):void 0,"--chart-text-color":r?(0,ae.r)(r,e):void 0}})),he=(0,ie.P9)((e,t)=>{const r=(0,se.Y)("RadarChart",me,e),{classNames:n,className:i,style:s,styles:c,unstyled:l,vars:u,data:p,series:y,dataKey:d,gridColor:f,textColor:m,radarProps:v,radarChartProps:h,polarGridProps:b,polarAngleAxisProps:g,polarRadiusAxisProps:P,tooltipProps:O,withPolarGrid:x,withPolarAngleAxis:j,withPolarRadiusAxis:A,withTooltip:w,tooltipAnimationDuration:E,children:k,withLegend:S,withDots:D,dotProps:C,activeDotProps:R,legendProps:N,attributes:I,..._}=r,T=(0,ce.xd)(),L=(0,le.I)({name:"RadarChart",classes:fe,props:r,className:i,style:s,classNames:n,styles:c,unstyled:l,attributes:I,vars:u,varsResolver:ve}),[M,K]=(0,a.useState)(null),{resolvedClassNames:J,resolvedStyles:V}=(0,ue.Y)({classNames:n,styles:c,props:r}),Y=y.map((e,t)=>(0,o.jsx)(W,{name:e.name,dataKey:e.name,stroke:(0,ae.r)(e.strokeColor||e.color,T),fill:(0,ae.r)(e.color,T),fillOpacity:M?M===e.name?e.opacity||.4:.05:e.opacity||.4,dot:!!D&&{fillOpacity:1,strokeOpacity:0,strokeWidth:1,fill:(0,ae.r)(e.color,T),stroke:(0,ae.r)(e.color,T),...C},activeDot:!!D&&{fill:(0,ae.r)(e.color,T),stroke:(0,ae.r)(e.color,T),...R},strokeOpacity:M?M===e.name?1:.1:1,isAnimationActive:!1,..."function"==typeof v?v(e):v},t));return(0,o.jsx)(pe.a,{ref:t,...L("root"),..._,children:(0,o.jsx)(Z.u,{...L("container"),children:(0,o.jsxs)(G,{data:p,...h,children:[x&&(0,o.jsx)(te,{stroke:"var(--chart-grid-color)",...b}),j&&(0,o.jsx)(B.r,{dataKey:d,...g}),A&&(0,o.jsx)(F.E,{stroke:"var(--chart-grid-color)",...P}),w&&(0,o.jsx)(re.m,{animationDuration:E,isAnimationActive:0!==E,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1},content:({label:e,payload:t})=>(0,o.jsx)(de.I,{label:e,payload:t,classNames:J,styles:V,series:y,attributes:I}),...O}),Y,S&&(0,o.jsx)(ne.s,{verticalAlign:"bottom",content:e=>(0,o.jsx)(ye._,{payload:e.payload,onHighlight:K,legendPosition:N?.verticalAlign||"bottom",classNames:J,styles:V,series:y,centered:!0,attributes:I}),...N}),k]})})})});he.displayName="@mantine/charts/RadarChart",he.classes=fe,r(9319);var be=r(3837),ge=r(7479);const Pe=function(e){var t=e.setProps,r=e.loading_state,o=(e.clickData,e.radarChartProps),a=(0,n.Tt)(e,["setProps","loading_state","clickData","radarChartProps"]),s=(0,n.Cl)((0,n.Cl)({},o),{onClick:function(e){(0,be.$Q)(e)&&t({clickData:(0,be.X$)(e)})}});return i().createElement(he,(0,n.Cl)({"data-dash-is-loading":(0,ge.A_)(r)||void 0,radarChartProps:s},a))}},6170:(e,t,r)=>{e.exports=r(912)}}]);
|
|
1
|
+
(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[926],{912:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},5579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Pe});var n=r(1635),o=r(4848),a=r(295),i=r.n(a),s=r(7011),c=r(9843),l=r.n(c),u=r(8090),p=r.n(u),y=r(6170),d=r.n(y),f=r(2404),m=r.n(f),v=r(1882),h=r.n(v),b=r(4164),g=r(9744),P=r(9938),O=r(4040),x=r(3036),j=r(852),A=r(6613),w=r(6069),E=r(5614),k=r(4501),S=["key"];function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){M(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function M(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var W=function(e){function t(){var e,r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return M((r=this,n=t,o=[].concat(i),n=T(n),e=function(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,_()?Reflect.construct(n,o||[],T(r).constructor):n.apply(r,o))),"state",{isAnimationFinished:!1}),M(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),h()(t)&&t()}),M(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),h()(t)&&t()}),M(e,"handleMouseEnter",function(t){var r=e.props.onMouseEnter;r&&r(e.props,t)}),M(e,"handleMouseLeave",function(t){var r=e.props.onMouseLeave;r&&r(e.props,t)}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){var r;if(i().isValidElement(e))r=i().cloneElement(e,t);else if(h()(e))r=e(t);else{var n=t.key,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,S);r=i().createElement(A.c,C({},o,{key:n,className:(0,b.A)("recharts-radar-dot","boolean"!=typeof e?e.className:"")}))}return r}}],(n=[{key:"renderDots",value:function(e){var r=this.props,n=r.dot,o=r.dataKey,a=(0,k.J9)(this.props,!1),s=(0,k.J9)(n,!0),c=e.map(function(e,r){var i=N(N(N({key:"dot-".concat(r),r:3},a),s),{},{dataKey:o,cx:e.x,cy:e.y,index:r,payload:e});return t.renderDotItem(n,i)});return i().createElement(w.W,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,r=this.props,n=r.shape,o=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return t=i().isValidElement(n)?i().cloneElement(n,N(N({},this.props),{},{points:e})):h()(n)?n(N(N({},this.props),{},{points:e})):i().createElement(j.t,C({},(0,k.J9)(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i().createElement(w.W,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,c=t.animationEasing,l=t.animationId,u=this.state.prevPoints;return i().createElement(s.Ay,{begin:o,duration:a,isActive:n,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var n=t.t,o=u&&u.length/r.length,a=r.map(function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var a=(0,g.Dj)(r.x,e.x),i=(0,g.Dj)(r.y,e.y);return N(N({},e),{},{x:a(n),y:i(n)})}var s=(0,g.Dj)(e.cx,e.x),c=(0,g.Dj)(e.cy,e.y);return N(N({},e),{},{x:s(n),y:c(n)})});return e.renderPolygonStatically(a)})}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=e.isRange,o=this.state.prevPoints;return!(r&&t&&t.length)||n||o&&m()(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.className,n=e.points,o=e.isAnimationActive;if(t||!n||!n.length)return null;var a=this.state.isAnimationFinished,s=(0,b.A)("recharts-radar",r);return i().createElement(w.W,{className:s},this.renderPolygon(),(!o||a)&&E.Z.renderCallByParent(this.props,n))}}])&&I(r.prototype,n),o&&I(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.PureComponent);M(W,"displayName","Radar"),M(W,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!P.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),M(W,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,o=e.dataKey,a=e.bandSize,i=r.cx,s=r.cy,c=!1,u=[],y="number"!==r.type&&null!=a?a:0;n.forEach(function(e,n){var a=(0,x.kr)(e,r.dataKey,n),d=(0,x.kr)(e,o),f=r.scale(a)+y,m=Array.isArray(d)?p()(d):d,v=l()(m)?void 0:t.scale(m);Array.isArray(d)&&d.length>=2&&(c=!0),u.push(N(N({},(0,O.IZ)(i,s,v,f)),{},{name:a,value:d,cx:i,cy:s,radius:v,angle:f,payload:e}))});var f=[];return c&&u.forEach(function(e){if(Array.isArray(e.value)){var r=d()(e.value),n=l()(r)?void 0:t.scale(r);f.push(N(N({},e),{},{radius:n},(0,O.IZ)(i,s,n,e.angle)))}else f.push(e)}),{points:u,isRange:c,baseLinePoints:f}});var Z=r(4653),F=r(708),J=r(433),B=r(2864),G=(0,F.gu)({chartName:"RadarChart",GraphicalChild:W,axisComponents:[{axisType:"angleAxis",AxisComp:J.r},{axisType:"radiusAxis",AxisComp:B.E}],formatAxisMap:O.pr,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),V=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){var n,o,a,i;n=e,o=t,a=r[t],i=function(e){if("object"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),(o="symbol"==Y(i)?i:i+"")in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Q=function(e,t,r,n){var o="";return n.forEach(function(n,a){var i=(0,O.IZ)(t,r,e,n);o+=a?"L ".concat(i.x,",").concat(i.y):"M ".concat(i.x,",").concat(i.y)}),o+="Z"},X=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=H({stroke:"#ccc"},(0,k.J9)(e,!1));return i().createElement("g",{className:"recharts-polar-grid-angle"},a.map(function(e){var a=(0,O.IZ)(t,r,n,e),s=(0,O.IZ)(t,r,o,e);return i().createElement("line",$({},c,{key:"line-".concat(e),x1:a.x,y1:a.y,x2:s.x,y2:s.y}))}))},q=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.index,a=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("circle",$({},a,{className:(0,b.A)("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(o),cx:t,cy:r,r:n}))},U=function(e){var t=e.radius,r=e.index,n=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("path",$({},n,{className:(0,b.A)("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(r),d:Q(t,e.cx,e.cy,e.polarAngles)}))},ee=function(e){var t=e.polarRadius,r=e.gridType;return t&&t.length?i().createElement("g",{className:"recharts-polar-grid-concentric"},t.map(function(t,n){var o=n;return"circle"===r?i().createElement(q,$({key:o},e,{radius:t,index:n})):i().createElement(U,$({key:o},e,{radius:t,index:n}))})):null},te=function(e){var t=e.cx,r=void 0===t?0:t,n=e.cy,o=void 0===n?0:n,a=e.innerRadius,s=void 0===a?0:a,c=e.outerRadius,l=void 0===c?0:c,u=e.gridType,p=void 0===u?"polygon":u,y=e.radialLines,d=void 0===y||y,f=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V);return l<=0?null:i().createElement("g",{className:"recharts-polar-grid"},i().createElement(X,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)),i().createElement(ee,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)))};te.displayName="PolarGrid";var re=r(8687),ne=r(7018),oe=r(9396),ae=r(6344),ie=r(2412),se=r(6100),ce=r(602),le=r(6904),ue=r(9274),pe=r(8424),ye=r(6585),de=r(5849),fe={root:"m_1f271cf7",container:"m_cf06f58c"};const me={withPolarGrid:!0,withPolarAngleAxis:!0,withPolarRadiusAxis:!1,withTooltip:!1,withDots:!1,tooltipAnimationDuration:0},ve=(0,oe.V)((e,{gridColor:t,textColor:r})=>({root:{"--chart-grid-color":t?(0,ae.r)(t,e):void 0,"--chart-text-color":r?(0,ae.r)(r,e):void 0}})),he=(0,ie.P9)((e,t)=>{const r=(0,se.Y)("RadarChart",me,e),{classNames:n,className:i,style:s,styles:c,unstyled:l,vars:u,data:p,series:y,dataKey:d,gridColor:f,textColor:m,radarProps:v,radarChartProps:h,polarGridProps:b,polarAngleAxisProps:g,polarRadiusAxisProps:P,tooltipProps:O,withPolarGrid:x,withPolarAngleAxis:j,withPolarRadiusAxis:A,withTooltip:w,tooltipAnimationDuration:E,children:k,withLegend:S,withDots:D,dotProps:C,activeDotProps:R,legendProps:N,attributes:I,..._}=r,T=(0,ce.xd)(),L=(0,le.I)({name:"RadarChart",classes:fe,props:r,className:i,style:s,classNames:n,styles:c,unstyled:l,attributes:I,vars:u,varsResolver:ve}),[M,K]=(0,a.useState)(null),{resolvedClassNames:F,resolvedStyles:V}=(0,ue.Y)({classNames:n,styles:c,props:r}),Y=y.map((e,t)=>(0,o.jsx)(W,{name:e.name,dataKey:e.name,stroke:(0,ae.r)(e.strokeColor||e.color,T),fill:(0,ae.r)(e.color,T),fillOpacity:M?M===e.name?e.opacity||.4:.05:e.opacity||.4,dot:!!D&&{fillOpacity:1,strokeOpacity:0,strokeWidth:1,fill:(0,ae.r)(e.color,T),stroke:(0,ae.r)(e.color,T),...C},activeDot:!!D&&{fill:(0,ae.r)(e.color,T),stroke:(0,ae.r)(e.color,T),...R},strokeOpacity:M?M===e.name?1:.1:1,isAnimationActive:!1,..."function"==typeof v?v(e):v},t));return(0,o.jsx)(pe.a,{ref:t,...L("root"),..._,children:(0,o.jsx)(Z.u,{...L("container"),children:(0,o.jsxs)(G,{data:p,...h,children:[x&&(0,o.jsx)(te,{stroke:"var(--chart-grid-color)",...b}),j&&(0,o.jsx)(J.r,{dataKey:d,...g}),A&&(0,o.jsx)(B.E,{stroke:"var(--chart-grid-color)",...P}),w&&(0,o.jsx)(re.m,{animationDuration:E,isAnimationActive:0!==E,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1},content:({label:e,payload:t,labelFormatter:r})=>(0,o.jsx)(de.I,{label:r&&t?r(e,t):e,payload:t,classNames:F,styles:V,series:y,attributes:I}),...O}),Y,S&&(0,o.jsx)(ne.s,{verticalAlign:"bottom",content:e=>(0,o.jsx)(ye._,{payload:e.payload,onHighlight:K,legendPosition:N?.verticalAlign||"bottom",classNames:F,styles:V,series:y,centered:!0,attributes:I}),...N}),k]})})})});he.displayName="@mantine/charts/RadarChart",he.classes=fe,r(9319);var be=r(3837),ge=r(7479);const Pe=function(e){var t=e.setProps,r=e.loading_state,o=(e.clickData,e.radarChartProps),a=(0,n.Tt)(e,["setProps","loading_state","clickData","radarChartProps"]),s=(0,n.Cl)((0,n.Cl)({},o),{onClick:function(e){(0,be.$Q)(e)&&t({clickData:(0,be.X$)(e)})}});return i().createElement(he,(0,n.Cl)({"data-dash-is-loading":(0,ge.A_)(r)||void 0,radarChartProps:s},a))}},6170:(e,t,r)=>{e.exports=r(912)}}]);
|