Build 545032stable
Module 453384
1,494 characters · in fd6ac4a9d9530d5d.jsDependencies
Source Raw
function(s,a,e){e.d(a,{A:()=>p});var r=e(627968),t=e(64700),i=e(503698),l=e.n(i),c=e(873174),n=e(717421),o=e(834730),d=e(398025),h=e(419367),m=e(375708),k=e(337689);let x="var(--background-mod-strong)",p=t.forwardRef((s,a)=>{let{percentComplete:e,size:i=42,style:p="default",overlayText:u,overlayTextVariant:g="text-lg/medium",children:f}=s,{strokeWidth:v}="small"===p?{strokeWidth:3}:{strokeWidth:4},N=i/2,j=i/2-v/2,y=2*Math.PI*j,b=y-e*y,w=t.useMemo(()=>({strokeDasharray:`${y} ${y}`,strokeDashoffset:b}),[y,b]),{progressTextAnimation:W}=(0,n.z)({progressTextAnimation:+(null!=u&&1!==e),config:h.N}),q=Math.round(100*e);return(0,r.jsxs)("div",{className:k.A7,ref:a,style:{width:i,height:i,padding:v+2},role:"progressbar","aria-valuenow":q,"aria-valuemin":0,"aria-valuemax":100,"aria-label":m.intl.formatToPlainString(m.t.Gj8Jqn,{percent:q}),children:[(0,r.jsxs)("div",{className:k.vW,children:[f,(0,r.jsxs)(c.animated.div,{style:{opacity:(0,d.a)(W),inset:v},className:l()(k.rD,k.qk),children:[(0,r.jsx)("div",{className:l()(k.rD,k.LU)}),(0,r.jsx)(o.E,{variant:g,color:"text-strong",className:k.l_,children:u})]})]}),(0,r.jsxs)("svg",{className:k.hr,height:i,width:i,children:[(0,r.jsx)("circle",{className:k.qB,strokeWidth:v,fill:"transparent",r:j,cx:N,cy:N,stroke:x}),(0,r.jsx)("circle",{className:k.qB,strokeWidth:v,fill:"transparent",r:j,cx:N,cy:N,stroke:x}),(0,r.jsx)("circle",{className:k.qB,strokeWidth:v,fill:"transparent",r:j,cx:N,cy:N,stroke:"rgba(98, 196, 101, 1)",style:w})]})]})})}