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