"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../localization/index.cjs");function n(e,t=null){return new Intl.DateTimeFormat(t||o.DialtoneLocalization.getPreferredLocale(),{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}function i(e,t=null){return new Intl.DateTimeFormat(t||o.DialtoneLocalization.getPreferredLocale(),{year:"numeric",month:"long",day:"numeric"}).format(e)}function m(e,t=null,r=!0){const a=r?{weekday:"short",year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"short",day:"numeric"};return new Intl.DateTimeFormat(t||o.DialtoneLocalization.getPreferredLocale(),a).format(e)}function l(e,t=null,r=!1){const a=r?"short":"long";return new Intl.DateTimeFormat(t||o.DialtoneLocalization.getPreferredLocale(),{month:a,day:"numeric"}).format(e)}function u(e,t=null){return new Intl.DateTimeFormat(t||o.DialtoneLocalization.getPreferredLocale(),{year:"2-digit",month:"2-digit",day:"2-digit"}).format(e)}const c={formatLong:n,formatMedium:i,formatShort:m,formatNoYear:l,formatNumerical:u};exports.default=c;exports.formatLong=n;exports.formatMedium=i;exports.formatNoYear=l;exports.formatNumerical=u;exports.formatShort=m;
//# sourceMappingURL=formatUtils.cjs.map
