import { createPlugin as n } from "../core/index.mjs";
import { ListView as i } from "./internal.mjs";
import { n as t, x as o } from "../core/internal-common.mjs";
const r = {
  listDayFormat: a,
  listDaySideFormat: a,
  noEventsClassNames: t,
  noEventsContent: t,
  noEventsDidMount: t,
  noEventsWillUnmount: t
  // noEventsText is defined in base options
};
function a(e) {
  return e === !1 ? null : o(e);
}
var y = n({
  name: "@fullcalendar/list",
  optionRefiners: r,
  views: {
    list: {
      component: i,
      buttonTextKey: "list",
      listDayFormat: { month: "long", day: "numeric", year: "numeric" }
      // like "January 1, 2016"
    },
    listDay: {
      type: "list",
      duration: { days: 1 },
      listDayFormat: { weekday: "long" }
      // day-of-week is all we need. full date is probably in headerToolbar
    },
    listWeek: {
      type: "list",
      duration: { weeks: 1 },
      listDayFormat: { weekday: "long" },
      listDaySideFormat: { month: "long", day: "numeric", year: "numeric" }
    },
    listMonth: {
      type: "list",
      duration: { month: 1 },
      listDaySideFormat: { weekday: "long" }
      // day-of-week is nice-to-have
    },
    listYear: {
      type: "list",
      duration: { year: 1 },
      listDaySideFormat: { weekday: "long" }
      // day-of-week is nice-to-have
    }
  }
});
export {
  y as default
};
