const useDaysPeriod = (count) => {
  const fa = "۰۱۲۳۴۵۶۷۸۹";
  const en = "0123456789";
  const toEnglish = (str) => str.replace(/[۰-۹]/g, (d) => en[fa.indexOf(d)]);
  const dayFormatter = new Intl.DateTimeFormat("fa-IR-u-ca-persian", {
    weekday: "long"
  });
  const fullDateFormatter = new Intl.DateTimeFormat("fa-IR-u-ca-persian", {
    day: "numeric",
    month: "long",
    year: "numeric"
  });
  const yearFmt = new Intl.DateTimeFormat("fa-IR-u-ca-persian", { year: "numeric" });
  const monthFmt = new Intl.DateTimeFormat("fa-IR-u-ca-persian", { month: "2-digit" });
  const dayFmt = new Intl.DateTimeFormat("fa-IR-u-ca-persian", { day: "2-digit" });
  const result = [];
  for (let i = 1; i <= count; i++) {
    const d = /* @__PURE__ */ new Date();
    d.setDate(d.getDate() + i);
    const isHoliday = d.getDay() === 5;
    const year = toEnglish(yearFmt.format(d));
    const month = toEnglish(monthFmt.format(d));
    const day = toEnglish(dayFmt.format(d));
    const dateString = `${year}/${month}/${day}`;
    result.push({
      day: dayFormatter.format(d),
      full: toEnglish(fullDateFormatter.format(d)),
      holiday: isHoliday,
      date: dateString
    });
  }
  return result;
};
export {
  useDaysPeriod as u
};
