PageSourceSearch

http://spectraguru.org/static/js/ProgressBar.BtQV66eX.js

js spectraguru.org collected 2026-10-05 22:02:42 UTC 1,399 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{at as n,g as r,lt as i,nt as a,rt as o,tt as s,x as c}from"./Tooltip.J-aaVqsl.js";import{n as l,t as u}from"./useLabel.lVVixOvu.js";import{t as d}from"./useNumberFormatter.CDGMCuzz.js";function f(e){let{value:t=0,minValue:n=0,maxValue:a=100,valueLabel:o,isIndeterminate:s,formatOptions:l={style:`percent`}}=e,f=c(e,{labelable:!0}),{labelProps:p,fieldProps:m}=u({...e,labelElementType:`span`});t=r(t,n,a);let h=a-n,g=h===0?0:(t-n)/h,_=d(l);if(!s&&!o){let e=l.style===`percent`?g:t;o=_.format(e)}return{progressBarProps:i(f,{...m,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":a,"aria-valuetext":s?void 0:o,role:`progressbar`}),labelProps:p}}var p=e(t(),1),m=(0,p.createContext)(null),h=(0,p.forwardRef)(function(e,t){[e,t]=s(e,t,m);let{value:u=0,minValue:d=0,maxValue:h=100,isIndeterminate:g=!1}=e;u=r(u,d,h);let[_,v]=o(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:y,labelProps:b}=f({...e,label:v}),x=h-d,S;g||(S=x===0?0:(u-d)/x*100);let C=a({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:S,valueText:y[`aria-valuetext`],isIndeterminate:g}}),w=c(e,{global:!0});return p.createElement(n.div,{...i(w,C,y),ref:t,slot:e.slot||void 0},p.createElement(l.Provider,{value:{...b,ref:_,elementType:`span`}},C.children))});export{m as n,h as t};

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.