import{a8 as e,a9 as t,a3 as s}from"./p-e4c4ea35.js";class a{constructor(){this.weekdays=e()}getWeekdayNames(){return t}generateDates(e){const t=e.startDate.toDate(),s=[];for(let a=0;a<e.count;a++)s.push(new Date(t)),t.setDate(t.getDate()+1);return s}generateWeekHead(){return this.weekdays.map((e=>this.getWeekdayNames()[e]))}}class r{constructor(e,t){this._weekdays=e,this._dateItems=t}get weekdays(){return this._weekdays}get dateItems(){return this._dateItems}}class n extends a{generate(e){const t=e.showWeekends;let a=[],n=[];this.generateDates(e).forEach(((e,t)=>{t%7||(a[t/7]=n=[]);const r=s.from(e);n.push(r)}));let c=this.generateWeekHead();return!1===t&&(c=c.slice(1,6),a=a.map((e=>e.slice(1,6)))),new r(c,a)}}export{a as C,n as M,r as a}