UNPKG

686 BSource Map (JSON)View Raw
1{"version":3,"file":"normalize-weekday.js","sourceRoot":"","sources":["../../../src/calendar/helpers/normalize-weekday.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,cAAsB,EACtB,cAAuB;IAEvB,MAAM,CAAC,GAAG,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,CAAC;IAEnD,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import { toValidWeekday } from './to-valid-weekday.js';\n\nexport function normalizeWeekday(\n weekDay: number,\n firstDayOfWeek: number,\n showWeekNumber: boolean\n): number {\n const x = toValidWeekday(weekDay - firstDayOfWeek);\n\n return showWeekNumber ? 1 + x : x;\n}\n"]}
\No newline at end of file