Module 212408

858 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>o});var i=n(627968);n(64700);var l=n(990078),a=n(985018),r=n(834911);let s=Math.ceil(2*Math.PI*20),o=e=>{let t,n,o,d,{total:c,used:u}=e,A=Math.max(0,Math.min(1,u/c)),h=`${Math.floor(100*A)}%`;return(0,i.jsx)(l.m,{text:a.intl.formatToPlainString(a.t["2eoRMh"],{used:h}),children:(0,i.jsxs)("div",{className:r.iE,role:"progressbar","aria-label":a.intl.formatToPlainString(a.t["2eoRMh"],{used:h}),children:[(0,i.jsxs)("svg",{viewBox:"25 25 50 50",className:r.JW,"aria-hidden":!0,children:[(0,i.jsx)("circle",{className:r.Tp,cx:"50",cy:"50",r:20}),(0,i.jsx)("circle",{className:r.CU,cx:"50",cy:"50",r:20,stroke:(t=Math.round(-85*A+199),n=Math.round(-71*A+208),o=Math.round(-22*A+240),`rgb(${t}, ${n}, ${o})`),strokeDasharray:(d=Math.floor(s*A),`${d}, ${s}`)})]}),(0,i.jsx)("aside",{className:r.Y3,"aria-hidden":!0,children:h})]})})}}