dash_mantine_components 1.3.0 → 2.1.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 +1285 -422
- package/package.json +21 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[211],{
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[211],{7738:(e,a,s)=>{s.r(a),s.d(a,{default:()=>w});var l=s(1635),n=s(166),o=s(4848),t=s(295),c=s.n(t),d=s(2412),i=s(6100),r=s(2837),h=s(9274),p=s(6076),u=s(4791),f=s(2923),m=s(1617),g=s(1838);function C({fileIcon:e,fileName:a,getFileIcon:s,className:l,style:n}){return e?(0,o.jsx)("span",{className:l,style:n,children:e}):s&&a?(0,o.jsx)("span",{className:l,style:n,children:s(a)}):null}var y=s(8596);const N={},b=(0,d.P9)(((e,a)=>{const s=(0,i.Y)("CodeHighlightTabs",N,e),{classNames:l,className:n,style:c,styles:d,unstyled:b,vars:x,defaultActiveTab:v,activeTab:_,onTabChange:E,defaultExpanded:w,expanded:j,onExpandedChange:k,code:A,getFileIcon:L,withCopyButton:T,withExpandButton:I,withBorder:B,radius:H,maxCollapsedHeight:S,copyLabel:P,copiedLabel:F,expandCodeLabel:V,collapseCodeLabel:X,background:Y,controls:Z,codeColorScheme:q,...z}=s,M=(0,r.I)({name:"CodeHighlightTabs",classes:y.A,props:s,className:n,style:c,classNames:l,styles:d,unstyled:b,vars:x}),[O,R]=(0,m.Z)({defaultValue:v,value:_,finalValue:0,onChange:E}),[U,D]=(0,m.Z)({defaultValue:w,value:j,finalValue:!0,onChange:k}),{resolvedClassNames:G,resolvedStyles:J}=(0,h.Y)({classNames:l,styles:d,props:s});if((0,t.useEffect)((()=>{O>=A.length&&R(A.length-1)}),[O,A]),A.length<=0)return null;const K=A[O]||{code:"",language:"tsx",fileName:""},Q=A.map(((e,a)=>(0,t.createElement)(p.N,{...M("file"),key:e.fileName,mod:{active:a===O},onClick:()=>R(a),"data-color-scheme":q},(0,o.jsx)(C,{fileIcon:e.icon,getFileIcon:L,fileName:e.fileName,...M("fileIcon")},"file-icon"),(0,o.jsx)("span",{children:e.fileName},"file-name"))));return(0,o.jsxs)(u.a,{ref:a,...M("root"),...z,children:[(0,o.jsx)(f.F,{type:"never",dir:"ltr",offsetScrollbars:!1,...M("filesScrollarea"),children:(0,o.jsx)("div",{...M("files"),children:Q})}),(0,o.jsx)(g.q,{code:K.code,language:K.language,expanded:U,onExpandedChange:D,withCopyButton:T,withExpandButton:I,withBorder:B,radius:H,maxCollapsedHeight:S,copiedLabel:F,copyLabel:P,expandCodeLabel:V,collapseCodeLabel:X,background:Y,controls:Z,codeColorScheme:q,__withOffset:!0,__staticSelector:"CodeHighlightTabs",classNames:G,styles:J})]})}));b.displayName="@mantine/code-highlight/CodeHighlightTabs",b.classes=y.A,s(1994),s(2480);var x=s(7479),v=s(9203),_=s(4245),E=function(e){e.setProps;var a=e.loading_state,s=e.code,o=(e.className,(0,l.Tt)(e,["setProps","loading_state","code","className"])),t=(0,x.z5)(),d=[];return Array.isArray(s)?s.forEach((function(e,a){d.push((0,x.P9)(e,["icon"],(0,v.A)(t)?[]:(0,l.fX)((0,l.fX)([],t,!0),["props","code",a],!1)))})):d.push((0,x.P9)(s,["icon"],(0,v.A)(t)?[]:(0,l.fX)((0,l.fX)([],t,!0),["props","code"],!1))),c().createElement(n.M4,{adapter:_.R},c().createElement(b,(0,l.Cl)({"data-dash-is-loading":(0,x.A_)(a)||void 0,code:d,className:"dmc-code"},o)))};E.dashChildrenUpdate=!0;const w=E}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[857],{
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[857],{8061:(e,t,o)=>{o.r(t),o.d(t,{default:()=>B});var i=o(1635),r=o(4848),a=o(295),s=o.n(a),l=o(6279),n=o(4124),c=o(1222),d=o(5614),p=o(7158),u=o(4653),h=o(8327),m=o(1915),y=o(7984),x=o(3495),v=o(1658),f=o(5894),k=(0,h.gu)({chartName:"ComposedChart",GraphicalChild:[l.N,n.G,c.y,m.X],axisComponents:[{axisType:"xAxis",AxisComp:y.W},{axisType:"yAxis",AxisComp:x.h},{axisType:"zAxis",AxisComp:v.K}],formatAxisMap:f.pr}),A=o(7018),P=o(1706),C=o(9107),g=o(8687),b=o(9396),D=o(6344),N=o(2412),S=o(6100),L=o(1101),j=o(9274),w=o(2837),O=o(4791),z=o(6585),I=o(5849),W=o(8498),T=o(9133);const F={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone"},K=(0,b.V)(((e,{textColor:t,gridColor:o})=>({root:{"--chart-text-color":t?(0,D.r)(t,e):void 0,"--chart-grid-color":o?(0,D.r)(o,e):void 0}}))),M=(0,N.P9)(((e,t)=>{const o=(0,S.Y)("CompositeChart",F,e),{classNames:i,className:s,style:h,styles:m,unstyled:v,vars:f,data:b,withLegend:N,legendProps:M,series:$,onMouseLeave:_,dataKey:Y,withTooltip:B,withXAxis:Q,withYAxis:E,gridAxis:X,tickLine:G,xAxisProps:R,yAxisProps:H,unit:J,tooltipAnimationDuration:q,strokeDasharray:V,gridProps:Z,tooltipProps:U,referenceLines:ee,withDots:te,dotProps:oe,activeDotProps:ie,strokeWidth:re,connectNulls:ae,curveType:se,dir:le,valueFormatter:ne,children:ce,lineProps:de,xAxisLabel:pe,yAxisLabel:ue,withRightYAxis:he,rightYAxisLabel:me,rightYAxisProps:ye,withPointLabels:xe,areaProps:ve,barProps:fe,withBarValueLabel:ke,minBarSize:Ae,maxBarWidth:Pe,composedChartProps:Ce,...ge}=o,be=(0,L.xd)(),De="none"!==X&&("x"===G||"xy"===G),Ne="none"!==X&&("y"===G||"xy"===G),[Se,Le]=(0,a.useState)(null),je=null!==Se,{resolvedClassNames:we,resolvedStyles:Oe}=(0,j.Y)({classNames:i,styles:m,props:o}),ze=(0,w.I)({name:"CompositeChart",classes:T.A,props:o,className:s,style:h,classNames:i,styles:m,unstyled:v,vars:f,varsResolver:K}),Ie=$.map((e=>{const t=(0,D.r)(e.color,be),o=je&&Se!==e.name;return"line"===e.type?(0,a.createElement)(l.N,{...ze("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!te&&{fillOpacity:o?0:1,strokeOpacity:o?0:1,strokeWidth:1,fill:t,stroke:t,...oe},activeDot:!!te&&{fill:"var(--mantine-color-white)",stroke:t,...ie},fill:t,stroke:t,strokeWidth:re,isAnimationActive:!1,fillOpacity:o?0:1,strokeOpacity:o?.5:1,connectNulls:ae,type:se,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,r.jsx)(W.x,{valueFormatter:ne}):void 0,..."function"==typeof de?de(e):de}):"area"===e.type?(0,a.createElement)(n.G,{...ze("area"),key:e.name,name:e.name,type:se,dataKey:e.name,fill:t,strokeWidth:re,stroke:t,isAnimationActive:!1,connectNulls:ae,dot:!!te&&{fillOpacity:o?0:1,strokeOpacity:o?0:1,strokeWidth:1,fill:t,stroke:t,...oe},activeDot:!!te&&{fill:be.white,stroke:t,strokeWidth:2,r:4,...ie},fillOpacity:o?0:.2,strokeOpacity:o?.5:1,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,r.jsx)(W.x,{valueFormatter:ne}):void 0,..."function"==typeof ve?ve(e):ve}):"bar"===e.type?(0,a.createElement)(c.y,{...ze("bar"),key:e.name,name:e.name,dataKey:e.name,fill:t,stroke:t,isAnimationActive:!1,fillOpacity:o?.1:1,strokeOpacity:o?.2:0,yAxisId:e.yAxisId||"left",minPointSize:Ae,..."function"==typeof fe?fe(e):fe},ke&&(0,r.jsx)(d.Z,{position:"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:ne})):null})),We=ee?.map(((e,t)=>{const o=(0,D.r)(e.color,be);return(0,r.jsx)(p.e,{stroke:e.color?o:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?o:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...ze("referenceLine")},t)})),Te={axisLine:!1,type:"number",tickLine:!!Ne&&{stroke:"currentColor"},allowDecimals:!0,unit:J,tickFormatter:ne,...ze("axis")};return(0,r.jsx)(O.a,{ref:t,...ze("root"),onMouseLeave:e=>{Le(null),_?.(e)},dir:le||"ltr",...ge,children:(0,r.jsx)(u.u,{...ze("container"),children:(0,r.jsxs)(k,{data:b,maxBarSize:Pe,margin:{bottom:pe?30:void 0,left:ue?10:void 0,right:ue?5:void 0},...Ce,children:[N&&(0,r.jsx)(A.s,{verticalAlign:"top",content:e=>(0,r.jsx)(z._,{payload:e.payload,onHighlight:Le,legendPosition:M?.verticalAlign||"top",classNames:we,styles:Oe,series:$}),...M}),(0,r.jsxs)(y.W,{hide:!Q,dataKey:Y,tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!De&&{stroke:"currentColor"},minTickGap:5,...ze("axis"),...R,children:[pe&&(0,r.jsx)(P.J,{position:"insideBottom",offset:-20,fontSize:12,...ze("axisLabel"),children:pe}),R?.children]}),(0,r.jsxs)(x.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!E,...Te,...H,children:[ue&&(0,r.jsx)(P.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...ze("axisLabel"),children:ue}),H?.children]}),(0,r.jsxs)(x.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!he,...Te,...ye,children:[me&&(0,r.jsx)(P.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...ze("axisLabel"),children:me}),H?.children]}),(0,r.jsx)(C.d,{strokeDasharray:V,vertical:"y"===X||"xy"===X,horizontal:"x"===X||"xy"===X,...ze("grid"),...Z}),B&&(0,r.jsx)(g.m,{animationDuration:q,isAnimationActive:0!==q,position:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:V},content:({label:e,payload:t})=>(0,r.jsx)(I.I,{label:e,payload:t,unit:J,classNames:we,styles:Oe,series:$,valueFormatter:ne}),...U}),Ie,We,ce]})})})}));M.displayName="@mantine/charts/CompositeChart",M.classes=T.A,o(9319);var $=o(3837),_=o(7479),Y=o(8734);const B=function(e){var t=e.setProps,o=e.loading_state,r=(e.clickData,e.hoverData,e.highlightHover),l=void 0!==r&&r,n=(e.hoverSeriesName,e.clickSeriesName,e.composedChartProps),c=e.barProps,d=e.lineProps,p=e.areaProps,u=e.activeDotProps,h=e.valueFormatter,m=e.tooltipProps,y=(0,i.Tt)(e,["setProps","loading_state","clickData","hoverData","highlightHover","hoverSeriesName","clickSeriesName","composedChartProps","barProps","lineProps","areaProps","activeDotProps","valueFormatter","tooltipProps"]),x=(0,a.useState)(null),v=x[0],f=x[1],k=l&&null!==v,A=(0,a.useRef)(null),P=function(e){var t,o,i;(0,$.$Q)(e)&&(A.current=null!==(i=null===(o=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===o?void 0:o.name)&&void 0!==i?i:e.name)},C=function(e){var t,o,i;if((0,$.$Q)(e)){var r=null!==(i=null===(o=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===o?void 0:o.name)&&void 0!==i?i:e.name;A.current=r,f(r)}},g=function(){f(null)},b=function(e,t){var o=null,r=k&&v!==e.name;return"bar"===t?o=null!=c?c:{}:"area"===t?o=null!=p?p:{}:"line"===t&&(o=null!=d?d:{}),r&&(o.fillOpacity=.1,o.strokeOpacity=.2),(0,i.Cl)((0,i.Cl)({},o),{onClick:P,onMouseOver:C,onMouseOut:g})},D=(0,i.Cl)((0,i.Cl)({},n),{onClick:function(e){(0,$.$Q)(e)&&t({clickSeriesName:A.current,clickData:(0,$.X$)(e)}),A.current=null},onMouseOver:function(e){(0,$.$Q)(e)&&t({hoverSeriesName:A.current,hoverData:(0,$.X$)(e)}),A.current=null}});return s().createElement(M,(0,i.Cl)({"data-dash-is-loading":(0,_.A_)(o)||void 0,composedChartProps:D,barProps:function(e){return b(e,"bar")},lineProps:function(e){return b(e,"line")},areaProps:function(e){return b(e,"area")},activeDotProps:(0,i.Cl)((0,i.Cl)({},u),{onClick:function(e,t){(0,$.$Q)(e)&&(A.current=t.dataKey)},onMouseOver:function(e,t){if((0,$.$Q)(e)){var o=t.dataKey;A.current=o,f(o)}},onMouseOut:g}),valueFormatter:(0,Y.q)(h),tooltipProps:(0,Y.q)(m)},y))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[990],{
|
|
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(9669),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(1101),y=t(2837),k=t(9274),x=t(4791),b=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).toFixed(0)}%`:"function"==typeof s?s(a):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:S,tooltipAnimationDuration:P,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,...V}=t,q=(0,u.xd)(),G=(0,y.I)({name:"DonutChart",classes:f,props:t,className:d,style:h,classNames:s,styles:p,unstyled:D,vars:N,varsResolver:A}),{resolvedClassNames:H,resolvedStyles:J}=(0,k.Y)({classNames:s,styles:p,props:t}),U=j.map(((e,a)=>(0,l.jsx)(o.f,{fill:(0,m.r)(e.color,q),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I},a)));return(0,l.jsx)(x.a,{ref:a,size:T,...G("root"),...V,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:U}),Y&&(0,l.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",...G("label"),children:Y}),S&&(0,l.jsx)(c.m,{animationDuration:P,isAnimationActive:!1,content:({payload:e})=>(0,l.jsx)(b.I,{payload:j,classNames:H,styles:J,type:"radial",segmentId:"segment"===Q?e?.[0]?.name:void 0,valueFormatter:K}),..._}),B]})})})}));N.displayName="@mantine/charts/DonutChart",N.classes=f,t(9319);var j=t(295),S=t.n(j),P=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,P.$Q)(e)){var t=(0,P.jz)(e);a({clickData:t,clickSeriesName:t.name})}},onMouseOver:function(e){if((0,P.$Q)(e)){var t=(0,P.jz)(e);a({hoverData:t,hoverSeriesName:t.name})}}});return S().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],{
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[298],{1355:(e,s,a)=>{a.r(s),a.d(s,{default:()=>k});var n=a(1635),t=a(166),i=a(4848),l=a(9396),o=a(6344),d=a(6324),c=a(2412),r=a(6100),h=a(2837),g=a(1838),m=a(8596);const u={},p=(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}}))),v=(0,c.P9)(((e,s)=>{const a=(0,r.Y)("InlineCodeHighlight",u,e),{classNames:n,className:t,style:l,styles:o,unstyled:d,vars:c,...v}=a,C=(0,h.I)({name:"InlineCodeHighlight",classes:m.A,props:a,className:t,style:l,classNames:n,styles:o,unstyled:d,vars:c,varsResolver:p,rootSelector:"inlineCodeHighlight"});return(0,i.jsx)(g.q,{...v,ref:s,...C("inlineCodeHighlight"),__inline:!0})}));v.displayName="@mantine/code-highlight/InlineCodeHighlight",v.classes=m.A,a(1994);var C=a(295),_=a.n(C),N=a(7479),y=a(4245);const k=function(e){e.setProps;var s=e.loading_state,a=(e.className,(0,n.Tt)(e,["setProps","loading_state","className"]));return _().createElement(t.M4,{adapter:y.R},_().createElement(v,(0,n.Cl)({"data-dash-is-loading":(0,N.A_)(s)||void 0,className:"dmc-code"},a)))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[436],{
|
|
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(8327),h=i(7984),p=i(3495),u=i(5894),x=(0,d.gu)({chartName:"LineChart",GraphicalChild:n.N,axisComponents:[{axisType:"xAxis",AxisComp:h.W},{axisType:"yAxis",AxisComp:p.h}],formatAxisMap:u.pr}),m=i(7018),y=i(1706),f=i(9107),v=i(8687),g=i(9396),k=i(6344),A=i(2412),C=i(6100),P=i(1101),D=i(9274),L=i(2837),N=i(4791),b=i(6284),j=i(6585),S=i(5849),w=i(8498),O=i(9133);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"}]},z=(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}}))),F=(0,A.P9)(((e,t)=>{const i=(0,C.Y)("LineChart",$,e),{classNames:r,className:s,style:d,styles:u,unstyled:g,vars:A,data:F,withLegend:I,legendProps:M,series:T,onMouseLeave:W,dataKey:_,withTooltip:Y,withXAxis:K,withYAxis:Q,gridAxis:R,tickLine:X,xAxisProps:B,yAxisProps:E,unit:G,tooltipAnimationDuration:H,strokeDasharray:J,gridProps:q,tooltipProps:V,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:pe,yAxisLabel:ue,type:xe,gradientStops:me,withRightYAxis:ye,rightYAxisLabel:fe,rightYAxisProps:ve,withPointLabels:ge,...ke}=i,Ae=(0,P.xd)(),Ce="none"!==R&&("x"===X||"xy"===X),Pe="none"!==R&&("y"===X||"xy"===X),[De,Le]=(0,a.useState)(null),Ne=null!==De,{resolvedClassNames:be,resolvedStyles:je}=(0,D.Y)({classNames:r,styles:u,props:i}),Se=(0,L.I)({name:"LineChart",classes:O.A,props:i,className:s,style:d,classNames:r,styles:u,unstyled:g,vars:A,varsResolver:z}),we=`line-chart-gradient-${(0,b.B)()}`,Oe=me?.map((e=>(0,o.jsx)("stop",{offset:`${e.offset}%`,stopColor:(0,k.r)(e.color,Ae)},e.color))),$e=T.map((e=>{const t=(0,k.r)(e.color,Ae),i=Ne&&De!==e.name;return(0,a.createElement)(n.N,{...Se("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!Z&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:"gradient"===xe?"var(--mantine-color-gray-7)":t,stroke:"gradient"===xe?"white":t,...ee},activeDot:!!Z&&{fill:"gradient"===xe?"var(--mantine-color-gray-7)":t,stroke:"gradient"===xe?"white":t,...te},fill:t,stroke:"gradient"===xe?`url(#${we})`:t,strokeWidth:ie,isAnimationActive:!1,fillOpacity:i?0:ae,strokeOpacity:i?.5:ae,connectNulls:oe,type:se,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:ge?(0,o.jsx)(w.x,{valueFormatter:ce}):void 0,..."function"==typeof he?he(e):he})})),ze=U?.map(((e,t)=>{const i=(0,k.r)(e.color,Ae);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"},...Se("referenceLine")},t)})),Fe={axisLine:!1,..."vertical"===ne?{dataKey:_,type:"category"}:{type:"number"},tickLine:!!Pe&&{stroke:"currentColor"},allowDecimals:!0,unit:G,tickFormatter:"vertical"===ne?void 0:ce,...Se("axis")};return(0,o.jsx)(N.a,{ref:t,...Se("root"),onMouseLeave:e=>{Le(null),W?.(e)},dir:le||"ltr",...ke,children:(0,o.jsx)(c.u,{...Se("container"),children:(0,o.jsxs)(x,{data:F,layout:ne,margin:{bottom:pe?30:void 0,left:ue?10:void 0,right:ue?5:void 0},...re,children:["gradient"===xe&&(0,o.jsx)("defs",{children:(0,o.jsx)("linearGradient",{id:we,x1:"0",y1:"0",x2:"0",y2:"1",children:Oe})}),I&&(0,o.jsx)(m.s,{verticalAlign:"top",content:e=>(0,o.jsx)(j._,{payload:e.payload,onHighlight:Le,legendPosition:M?.verticalAlign||"top",classNames:be,styles:je,series:T,showColor:"gradient"!==xe}),...M}),(0,o.jsxs)(h.W,{hide:!K,..."vertical"===ne?{type:"number"}:{dataKey:_},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Ce&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===ne?ce:void 0,...Se("axis"),...B,children:[pe&&(0,o.jsx)(y.J,{position:"insideBottom",offset:-20,fontSize:12,...Se("axisLabel"),children:pe}),B?.children]}),(0,o.jsxs)(p.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!Q,...Fe,...E,children:[ue&&(0,o.jsx)(y.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Se("axisLabel"),children:ue}),E?.children]}),(0,o.jsxs)(p.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!ye,...Fe,...ve,children:[fe&&(0,o.jsx)(y.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Se("axisLabel"),children:fe}),E?.children]}),(0,o.jsx)(f.d,{strokeDasharray:J,vertical:"y"===R||"xy"===R,horizontal:"x"===R||"xy"===R,...Se("grid"),...q}),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})=>(0,o.jsx)(S.I,{label:e,payload:t,unit:G,classNames:be,styles:je,series:T,valueFormatter:ce,showColor:"gradient"!==xe}),...V}),$e,ze,de]})})})}));F.displayName="@mantine/charts/LineChart",F.classes=O.A,i(9319);var I=i(3837),M=i(7479),T=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.highlightHover,l=void 0!==n&&n,c=e.lineChartProps,d=e.activeDotProps,h=e.lineProps,p=e.valueFormatter,u=e.tooltipProps,x=(0,r.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","series","highlightHover","lineChartProps","activeDotProps","lineProps","valueFormatter","tooltipProps"]),m=(0,a.useState)(null),y=m[0],f=m[1],v=l&&null!==y,g=(0,a.useRef)(null),k=function(e){(0,I.$Q)(e)&&(g.current=e.name)},A=function(e){if((0,I.$Q)(e)){var t=e.name;g.current=t,f(t)}},C=function(){f(null)},P=(0,r.Cl)((0,r.Cl)({},c),{onClick:function(e){(0,I.$Q)(e)&&t({clickSeriesName:g.current,clickData:(0,I.X$)(e)}),g.current=null},onMouseOver:function(e){(0,I.$Q)(e)&&t({hoverSeriesName:g.current,hoverData:(0,I.X$)(e)}),g.current=null}});return s().createElement(F,(0,r.Cl)({"data-dash-is-loading":(0,M.A_)(i)||void 0,lineChartProps:P,series:o,activeDotProps:(0,r.Cl)((0,r.Cl)({},d),{onClick:function(e,t){(0,I.$Q)(e)&&(g.current=t.dataKey)},onMouseOver:function(e,t){if((0,I.$Q)(e)){var i=t.dataKey;g.current=i,f(i)}},onMouseOut:C}),lineProps:function(e){var t=v&&y!==e.name,i=(0,r.Cl)((0,r.Cl)({},h),{onClick:k,onMouseOver:A,onMouseOut:C});return t&&(i.fillOpacity=.1,i.strokeOpacity=.2),i},valueFormatter:(0,T.q)(p),tooltipProps:(0,T.q)(u)},x))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{
|
|
1
|
+
"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{5962:(e,a,t)=>{t.r(a),t.d(a,{default:()=>_});var s=t(1635),o=t(4848),l=t(9669),i=t(4653),r=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(1101),y=t(2837),x=t(9274),k=t(4791),b=t(5849),f={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:a,labelColor:t,withLabels:s,size:o,labelsPosition: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&&"outside"===l?(0,h.D)(o+80):(0,h.D)(o)}}))),P=(e,a,t,s)=>"percent"===e?`${(100*t).toFixed(0)}%`:"function"==typeof s?s(a):a,N=(e,a)=>({cx:t,cy:s,midAngle:l,innerRadius:i,outerRadius:r,value:n,percent:c})=>{const d=Math.PI/180,m=i+.5*(r-i),h=t+m*Math.cos(-l*d),p=s+m*Math.sin(-l*d);return(0,o.jsx)("text",{x:h,y:p,textAnchor:h>t?"start":"end",dominantBaseline:"central",className:f.label,children:P(e,n,c,a)})},C=(e,a)=>({x:t,y:s,cx:l,cy:i,percent:r,value:n})=>(0,o.jsx)("text",{x:t,y:s,cx:l,cy:i,textAnchor:t>l?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:(0,o.jsx)("tspan",{x:t,children:P(e,n,r,a)})}),j=(0,p.P9)(((e,a)=>{const t=(0,v.Y)("PieChart",g,e),{classNames:s,className:d,style:h,styles:p,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,...V}=t,q=(0,u.xd)(),G=(0,y.I)({name:"PieChart",classes:f,props:t,className:d,style:h,classNames:s,styles:p,unstyled:P,vars:j,varsResolver:A}),{resolvedClassNames:H,resolvedStyles:J}=(0,x.Y)({classNames:s,styles:p,props:t}),U=D.map(((e,a)=>(0,o.jsx)(l.f,{fill:(0,m.r)(e.color,q),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I},a)));return(0,o.jsx)(k.a,{ref:a,size:T,...G("root"),...V,children:(0,o.jsx)(i.u,{children:(0,o.jsxs)(r.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:U}),S&&(0,o.jsx)(c.m,{animationDuration:w,isAnimationActive:!1,content:({payload:e})=>(0,o.jsx)(b.I,{payload:D,classNames:H,styles:J,type:"radial",segmentId:"segment"===$?e?.[0]?.name:void 0,valueFormatter:E}),...z}),Q]})})})}));j.displayName="@mantine/charts/PieChart",j.classes=f,t(9319);var D=t(295),S=t.n(D),w=t(3837),z=t(7479);const _=function(e){var a=e.setProps,t=e.loading_state,o=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.pieProps),l=(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 t=(0,w.jz)(e);a({clickData:t,clickSeriesName:t.name})}},onMouseOver:function(e){if((0,w.$Q)(e)){var t=(0,w.jz)(e);a({hoverData:t,hoverSeriesName:t.name})}}});return S().createElement(j,(0,s.Cl)({"data-dash-is-loading":(0,z.A_)(t)||void 0,pieProps:i},l))}}}]);
|
|
@@ -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}},45579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Pe});var n=r(31635),o=r(74848),a=r(40295),i=r.n(a),s=r(16473),c=r(69843),l=r.n(c),u=r(68090),p=r.n(u),y=r(56170),d=r.n(y),f=r(2404),m=r.n(f),v=r(1882),h=r.n(v),b=r(34164),g=r(59744),P=r(59938),O=r(14040),x=r(63036),j=r(20852),A=r(66613),w=r(86069),E=r(5614),k=r(94501),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(44653),J=r(28327),B=r(10433),F=r(62864),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(78687),ne=r(97018),oe=r(59396),ae=r(86344),ie=r(2412),se=r(46100),ce=r(1101),le=r(52837),ue=r(99274),pe=r(14791),ye=r(6585),de=r(45849),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,...I}=r,_=(0,ce.xd)(),T=(0,le.I)({name:"RadarChart",classes:fe,props:r,className:i,style:s,classNames:n,styles:c,unstyled:l,vars:u,varsResolver:ve}),[L,M]=(0,a.useState)(null),{resolvedClassNames:K,resolvedStyles:J}=(0,ue.Y)({classNames:n,styles:c,props:r}),V=y.map(((e,t)=>(0,o.jsx)(W,{name:e.name,dataKey:e.name,stroke:(0,ae.r)(e.strokeColor||e.color,_),fill:(0,ae.r)(e.color,_),fillOpacity:L?L===e.name?e.opacity||.4:.05:e.opacity||.4,dot:!!D&&{fillOpacity:1,strokeOpacity:0,strokeWidth:1,fill:(0,ae.r)(e.color,_),stroke:(0,ae.r)(e.color,_),...C},activeDot:!!D&&{fill:(0,ae.r)(e.color,_),stroke:(0,ae.r)(e.color,_),...R},strokeOpacity:L?L===e.name?1:.1:1,isAnimationActive:!1,..."function"==typeof v?v(e):v},t)));return(0,o.jsx)(pe.a,{ref:t,...T("root"),...I,children:(0,o.jsx)(Z.u,{...T("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:K,styles:J,series:y}),...O}),V,S&&(0,o.jsx)(ne.s,{verticalAlign:"bottom",content:e=>(0,o.jsx)(ye._,{payload:e.payload,onHighlight:M,legendPosition:N?.verticalAlign||"bottom",classNames:K,styles:J,series:y,centered:!0}),...N}),k]})})})}));he.displayName="@mantine/charts/RadarChart",he.classes=fe,r(19319);var be=r(83837),ge=r(57479);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))}},56170:(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(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,...I}=r,_=(0,ce.xd)(),T=(0,le.I)({name:"RadarChart",classes:fe,props:r,className:i,style:s,classNames:n,styles:c,unstyled:l,vars:u,varsResolver:ve}),[L,M]=(0,a.useState)(null),{resolvedClassNames:K,resolvedStyles:J}=(0,ue.Y)({classNames:n,styles:c,props:r}),V=y.map(((e,t)=>(0,o.jsx)(W,{name:e.name,dataKey:e.name,stroke:(0,ae.r)(e.strokeColor||e.color,_),fill:(0,ae.r)(e.color,_),fillOpacity:L?L===e.name?e.opacity||.4:.05:e.opacity||.4,dot:!!D&&{fillOpacity:1,strokeOpacity:0,strokeWidth:1,fill:(0,ae.r)(e.color,_),stroke:(0,ae.r)(e.color,_),...C},activeDot:!!D&&{fill:(0,ae.r)(e.color,_),stroke:(0,ae.r)(e.color,_),...R},strokeOpacity:L?L===e.name?1:.1:1,isAnimationActive:!1,..."function"==typeof v?v(e):v},t)));return(0,o.jsx)(pe.a,{ref:t,...T("root"),...I,children:(0,o.jsx)(Z.u,{...T("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:K,styles:J,series:y}),...O}),V,S&&(0,o.jsx)(ne.s,{verticalAlign:"bottom",content:e=>(0,o.jsx)(ye._,{payload:e.payload,onHighlight:M,legendPosition:N?.verticalAlign||"bottom",classNames:K,styles:J,series:y,centered:!0}),...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)}}]);
|