-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfull.js.map
1 lines (1 loc) · 3.22 KB
/
full.js.map
1
{"version":3,"file":"full.js","sources":["../../src/full.js"],"sourcesContent":["/*\n * weekstart\n * https://github.com/gamtiq/weekstart\n */\n\n/**\n * Library to get first day of week.\n * \n * Uses data from {@link module:fullLangRegionMap fullLangRegionMap.js} and\n * {@link module:regionDayMap regionDayMap.js}.\n * \n * @module full\n */\n\nimport * as api from './api';\nimport langRegionMap from './fullLangRegionMap';\nimport regionDayMap from './regionDayMap';\n\n/**\n * Return first day of week for country/region code.\n *\n * Based on data from:\n * - [https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json](https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json)\n * - [http://www.unicode.org/cldr/charts/28/supplemental/territory_information.html](http://www.unicode.org/cldr/charts/28/supplemental/territory_information.html)\n * - [https://www.iso.org/iso-3166-country-codes.html](https://www.iso.org/iso-3166-country-codes.html)\n *\n * @example\n * getWeekStartByRegion('PNG'); // 1\n * getWeekStartByRegion('qa'); // 6\n * getWeekStartByRegion(462); // 5\n *\n * @param {number | string} regionCode\n * ISO 3166 Alpha-2, Alpha-3 or numeric code.\n * @return {number}\n * Code of first day of week for the given country/region code:\n * 0 - Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday.\n * @alias module:full.getWeekStartByRegion\n * @see module:api.getWeekStartByRegion\n */\nexport function getWeekStartByRegion(regionCode) {\n return api.getWeekStartByRegion(regionCode, regionDayMap);\n}\n\n/**\n * Return first day of week for locale identifier.\n *\n * Based on data from:\n * - [http://www.unicode.org/cldr/charts/28/supplemental/territory_language_information.html](http://www.unicode.org/cldr/charts/28/supplemental/territory_language_information.html)\n * - [http://www.unicode.org/cldr/charts/28/supplemental/language_territory_information.html](http://www.unicode.org/cldr/charts/28/supplemental/language_territory_information.html)\n * - [http://www.unicode.org/cldr/charts/28/supplemental/territory_information.html](http://www.unicode.org/cldr/charts/28/supplemental/territory_information.html)\n * - [http://www.unicode.org/reports/tr35/tr35.html#Unicode_Language_and_Locale_Identifiers](http://www.unicode.org/reports/tr35/tr35.html#Unicode_Language_and_Locale_Identifiers)\n *\n * @example\n * getWeekStartByLocale('no'); // 1\n * getWeekStartByLocale('PA_arab'); // 0\n * getWeekStartByLocale('fr-DZ'); // 6\n *\n * @param {string} locale\n * Locale identifier.\n * @return {number}\n * Code of first day of week for the given locale identifier:\n * 0 - Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday.\n * @alias module:full.getWeekStartByLocale\n * @see module:api.getWeekStartByLocale\n */\nexport function getWeekStartByLocale(locale) {\n return api.getWeekStartByLocale(locale, langRegionMap, regionDayMap);\n}\n"],"names":["getWeekStartByRegion","api.getWeekStartByRegion","getWeekStartByLocale","api.getWeekStartByLocale"],"mappings":";;;;AAuCO,SAASA,uBAAqB,YAAY;IAC7C,OAAOC,oBAAA,CAAyB,YAAY;;;AAyBhD,AAAO,SAASC,uBAAqB,QAAQ;IACzC,OAAOC,oBAAA,CAAyB,QAAQ,eAAe;;;;;"}