1"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{95962(e,t,a){a.r(t),a.d(t,{default:()=>_});var s=a(31635),o=a(74848),r=a(72050),i=a(44653),l=a(62209),n=a(63161),c=a(78687),d=a(59396),m=a(86344),p=a(88149),h=a(2412),u=a(46100),v=a(602),y=a(36904),b=a(99274),f=a(58424),x=a(45849),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(19319);var D=a(40295),S=a.n(D),w=a(83837),z=a(57479);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))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.