{"version":3,"names":["valueToPercent","value","min","max"],"sources":["value-to-percent.ts"],"sourcesContent":["/**\n * Computes the filled percentage of `[min, max]` that `value` represents.\n *\n * Returns `0` when `min === max` so the indicator collapses cleanly rather\n * than producing `NaN` (which would blank out the `width` style). Mirrors\n * Base UI React's helper.\n */\nexport function valueToPercent(\n\tvalue: number,\n\tmin: number,\n\tmax: number,\n): number {\n\tif (max === min) return 0;\n\treturn ((value - min) * 100) / (max - min);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,cAAcA,CAC7BC,KAAa,EACbC,GAAW,EACXC,GAAW,EACF;EACT,IAAIA,GAAG,KAAKD,GAAG,EAAE,OAAO,CAAC;EACzB,OAAQ,CAACD,KAAK,GAAGC,GAAG,IAAI,GAAG,IAAKC,GAAG,GAAGD,GAAG,CAAC;AAC3C","ignoreList":[]}