{
  "version": 3,
  "sources": ["../../../src/date/dateHelper.ts"],
  "sourcesContent": ["type MonthNamesProps = {\n    options?: Intl.DateTimeFormatOptions,\n    localeName?: string\n};\n\nexport function getMonthNames(props?: MonthNamesProps) {\n    const {localeName = 'en-EN', options} = props || {}\n    const format = new Intl\n        .DateTimeFormat(localeName, {month: options?.month || 'long', ...options}).format;\n    return Array.from(Array(12).keys())\n        .map((m) => format(new Date(Date.UTC(2021, (m) % 12))));\n}\n\nexport const getMonthOptions = (props?: MonthNamesProps) =>\n    getMonthNames(props).map((name, index) => ({value: index + 1, label: name}))\n\nexport const getLocaleDate = ({localeName, options, date}: MonthNamesProps & { date: Date }) => {\n    return date ? new Intl.DateTimeFormat(localeName, options ?? {\n        month: '2-digit',\n        year: 'numeric',\n        day: '2-digit'\n    }).format(date) : ''\n}"],
  "mappings": "AAKO,SAAS,cAAc,OAAyB;AACnD,QAAM,EAAC,aAAa,SAAS,QAAO,IAAI,SAAS,CAAC;AAClD,QAAM,SAAS,IAAI,KACd,eAAe,YAAY,EAAC,QAAO,mCAAS,UAAS,QAAQ,GAAG,QAAO,CAAC,EAAE;AAC/E,SAAO,MAAM,KAAK,MAAM,EAAE,EAAE,KAAK,CAAC,EAC7B,IAAI,CAAC,MAAM,OAAO,IAAI,KAAK,KAAK,IAAI,MAAO,IAAK,EAAE,CAAC,CAAC,CAAC;AAC9D;AAEO,MAAM,kBAAkB,CAAC,UAC5B,cAAc,KAAK,EAAE,IAAI,CAAC,MAAM,WAAW,EAAC,OAAO,QAAQ,GAAG,OAAO,KAAI,EAAE;AAExE,MAAM,gBAAgB,CAAC,EAAC,YAAY,SAAS,KAAI,MAAwC;AAC5F,SAAO,OAAO,IAAI,KAAK,eAAe,YAAY,WAAW;AAAA,IACzD,OAAO;AAAA,IACP,MAAM;AAAA,IACN,KAAK;AAAA,EACT,CAAC,EAAE,OAAO,IAAI,IAAI;AACtB;",
  "names": []
}
