"use strict";const e=require("react/jsx-runtime"),A=require("recharts");function z(a){return function(j){const{cx:n=0,cy:r=0,midAngle:l=0,innerRadius:v=0,outerRadius:t=0,startAngle:d=0,endAngle:u=0,fill:c="var(--dataviz-cat-1)",payload:i,percent:g=0,value:m=0}=j;if(!i)return e.jsx("g",{});const y=Math.PI/180,h=Math.sin(-y*l),s=Math.cos(-y*l),R=n+(t+10)*s,S=r+(t+10)*h,f=n+(t+30)*s,p=r+(t+30)*h,o=f+(s>=0?1:-1)*22,x=p,$=s>=0?"start":"end";return e.jsxs("g",{children:[e.jsx("text",{x:n,y:r,dy:-10,textAnchor:"middle",fill:"var(--text-primary)",style:{fontSize:"14px",fontWeight:"bold"},children:a.getLabel(i)}),e.jsx("text",{x:n,y:r,dy:10,textAnchor:"middle",fill:"var(--text-secondary)",style:{fontSize:"12px"},children:a.getValueText(m,i)}),e.jsx(A.Sector,{cx:n,cy:r,innerRadius:v,outerRadius:t,startAngle:d,endAngle:u,fill:c}),e.jsx(A.Sector,{cx:n,cy:r,startAngle:d,endAngle:u,innerRadius:t+6,outerRadius:t+10,fill:c}),e.jsx("path",{d:`M${R},${S}L${f},${p}L${o},${x}`,stroke:c,fill:"none"}),e.jsx("circle",{cx:o,cy:x,r:2,fill:c,stroke:"none"}),e.jsx("text",{x:o+(s>=0?1:-1)*12,y:x,textAnchor:$,fill:"var(--text-primary)",style:{fontSize:"12px"},children:`${(g*100).toFixed(0)}%`})]})}}exports.createActiveShapeRenderer=z;
//# sourceMappingURL=renderActiveShape-bvoKZVtw.js.map
