Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

39 lines
1002 B
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: fd0220e4d10052af.701bdafa2d.js
* Module id: 896359
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(358379),
n = e.i(768924),
i = e.i(295085);
function r(e, t) {
return Math.max(100, 100 * Math.ceil((e * t) / 100));
}
function a(e, t) {
let n = e * t;
return (
i.RESPONSIVE_WIDTHS.find((e) => e >= n) ??
i.RESPONSIVE_WIDTHS[i.RESPONSIVE_WIDTHS.length - 1]
);
}
function o(e) {
let i = (0, t.useRef)(window.devicePixelRatio || 2),
o = (0, n.useStore)((t) => r(e, t.transform[2])),
s = a(o, i.current);
return { sizesPx: o, predictedWidth: s, dpr: i.current };
}
e.s([
"computeSizes",
() => r,
"predictSrcsetWidth",
() => a,
"useImageSizes",
() => o,
]);
};
export default moduleFactory;