"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const c=12;function g(t){switch(t){case"fr_CA":return"fr-CA";case"en_CA":default:return"en-CA"}}function f(t,e,a="long"){const n=g(e),r=new Date(new Date().getFullYear(),t);return new Intl.DateTimeFormat(n,{month:a}).format(r)}function s(t,e){return new Date(e,t,0,4).getDate()}function i(t,e){return Array.from({length:s(t+1,e)},(n,r)=>r+1).map(n=>{const r=new Date(e,t,n);return r.setHours(0,0,0,0),r})}function o(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function l(t){return o(new Date,t)}function m(t,e){t.setHours(0,0,0,0);const a=new Date(t);return new Date(a.setDate(a.getDate()-e))}function y(t,e){return new Date(t,e,1)}function h(t,e){return new Date(t,e+1,0)}function w(t,e){e.setHours(0,0,0,0);const a=new Date(t.start.setHours(0,0,0,0)),n=new Date(t.end.setHours(0,0,0,0));return e>=a&&e<=n}function A(t,e,a){const n=t.getDate(),r=n<10?`0${n}`:n,u=t.getMonth()+1,D=t.getFullYear();switch(a){case"select":return`${r}/${u}/${D}`;case"chip":default:return new Intl.DateTimeFormat(e==="fr_CA"?"fr-CA":"en-CA",{dateStyle:"medium"}).format(t)}}exports.YEARS_TO_DISPLAY=c;exports.formatDate=A;exports.getDays=i;exports.getDaysInMonth=s;exports.getFirstDayOfMonth=y;exports.getIsSameDay=o;exports.getIsToday=l;exports.getLastDayOfMonth=h;exports.getMonthName=f;exports.isInDateRange=w;exports.subDays=m;
