PageSourceSearch

https://ai-agent.buzz/_dash-component-suites/dash_mantine_components/async-DonutChart.js

js ai-agent.buzz collected 2026-09-29 08:54:19 UTC 3,368 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[990],{39043(e,a,t){t.r(a),t.d(a,{default:()=>w});var s=t(31635),l=t(74848),o=t(72050),r=t(44653),i=t(62209),n=t(63161),c=t(78687),d=t(59396),m=t(86344),h=t(88149),p=t(2412),v=t(46100),u=t(602),y=t(36904),b=t(99274),k=t(58424),x=t(45849),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(19319);var j=t(40295),P=t.n(j),S=t(83837),_=t(57479);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))}}}]);

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.