"use client";
import t from "../../../../_virtual/dayjs.min.js";
import { GanttDimensionsSettings as f } from "../constants/DimensionsSettings.js";
import { GanttConsts as m } from "../constants/GanttConsts.js";
const l = (n, o, e) => {
  const { secondsInPixel: s, unitOfTime: i } = f[n], r = (e || t().unix()) - t.unix(o[0]).startOf(i).unix();
  return Math.round(r / s) - m.TREE_WIDTH;
};
export {
  l as getInitialScrollOffset
};
