UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

14 lines (13 loc) 395 B
"use client"; import { millisecondsInWeek as m } from "./constants.js"; import { startOfWeek as a } from "./startOfWeek.js"; import { startOfWeekYear as c } from "./startOfWeekYear.js"; import { toDate as d } from "./toDate.js"; function n(t, e) { const r = d(t, e == null ? void 0 : e.in), f = +a(r, e) - +c(r, e); return Math.round(f / m) + 1; } export { n as default, n as getWeek };