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A,CAAC4I,IAGfmB,EAAgBD,EACpB,UAACtG,OAAAA,CACCC,SAAU7C,CAAAA,EAAAA,EAAAA,EAAAA,CAAMA,CAACkJ,EAAuB,uBACpCd,EAAAA,KAAAA,EAAAA,EAAgBJ,eAAe,CAA/BI,SAEHpI,CAAAA,EAAAA,EAAAA,EAAAA,CAAMA,CAACkJ,EAAuB,kBAE/B,KAEEE,EAAiBC,CAAAA,EAAAA,EAAAA,CAAAA,CAAEA,CACvB,aACAnB,GAAaH,GAAmB,yBAE5BuB,QAAevB,EAAAA,KAAAA,EAAAA,EAAiBwB,KAAK,CAAC,GAAYf,EAAOgB,MAAM,EAErE,MACE,WAACC,MAAAA,CAAId,UAAWS,YACJ,aAATnB,GACCC,GACAH,GACAA,EAAgBQ,MAAM,CAAG,GACzBe,GACE,UAACZ,OAAAA,CAAKC,UAAU,kCACbZ,EAAgB2B,GAAG,CAAC,CAAC3B,EAAiBT,IACrC,UAACqC,EAAAA,CAAUA,CAAAA,CACThB,UAAU,oBAET,GAAGZ,EAAgByB,MAAM,CAC1BI,KAAM,CAAEC,SAAS,CAAK,GAFjBvC,MAOf,UAACwC,IAAAA,CAAEnB,UAAU,4BACD,eAATV,EACCgB,EACEhB,eACF,iCAAE,aAAWkB,KAEb,iCACIlB,CAAS,YAATA,GAA+B,aAATA,CAAS,CAAS,EAC1CgB,EACE,iCAAE,aACWA,EACVZ,GAAoBc,EAAgB,KAAO,OAE5C,KACM,aAATlB,GAAuBI,EACtB,iCAAE,MAAIA,EAAiB,OACrB,KACHc,EACC,iCACY,aAATlB,GAAuBI,EACpB,OACA,aAAc,IACjBc,EACAF,EAA2B,IAAM,MAElC,YAMhB,gECzJO,SAAStI,EAAQnC,CAAI,EAG1B,MAFcC,CAAAA,EAAAA,EAAAA,CAAAA,CAAMA,CAACD,GACImC,OAAO,EAElC","sources":["webpack://_N_E/../design-system/node_modules/date-fns/getYear.mjs","webpack://_N_E/../design-system/node_modules/date-fns/getMonth.mjs","webpack://_N_E/../design-system/src/utils/date-format.ts","webpack://_N_E/../design-system/src/components/primitives/byline/byline.scss?360c","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.mjs","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN/_lib/formatLong.mjs","webpack://_N_E/../design-system/node_modules/date-fns/isSameWeek.mjs","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.mjs","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN/_lib/localize.mjs","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN/_lib/match.mjs","webpack://_N_E/../design-system/node_modules/date-fns/locale/zh-CN.mjs","webpack://_N_E/../design-system/src/components/primitives/byline/byline.tsx","webpack://_N_E/../design-system/node_modules/date-fns/getDate.mjs"],"sourcesContent":["import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The year\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\nexport function getYear(date) {\n return toDate(date).getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default getYear;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The month index (0-11)\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\nexport function getMonth(date) {\n const _date = toDate(date);\n const month = _date.getMonth();\n return month;\n}\n\n// Fallback for modularized imports:\nexport default getMonth;\n","import { getYear, getMonth, getDate, format } from \"date-fns\";\nimport { zhCN } from \"date-fns/locale\";\n\nexport function convertToDate(dateString?: string) {\n if (!dateString) return;\n\n try {\n const date = new Date(dateString);\n // check if is valid date\n if (!isNaN(date.getTime())) return date;\n } catch (e) {\n console.error(e);\n }\n}\n\n// Convert from YYYY-MM-DD (contentful date field format) to MM/DD/YYYY\n// See https://stackoverflow.com/questions/7556591/is-the-javascript-date-object-always-one-day-off\nexport function reformatDateString(input = \"\") {\n const dateOnlyPattern = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n const dateTimePattern = /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})Z$/;\n if (!input?.match(dateOnlyPattern) && !input?.match(dateTimePattern)) {\n return input;\n }\n let reformattedDate;\n if (input?.match(dateOnlyPattern)) {\n reformattedDate = input.replace(dateOnlyPattern, \"$2/$3/$1\");\n } else if (input?.match(dateTimePattern)) {\n reformattedDate = input.replace(dateTimePattern, \"$2/$3/$1\");\n }\n return reformattedDate;\n}\n\n// Return date string formatted as \"LLL d, yyyy\"\n// Example: Jan 1, 2024\nexport function formatDate(dateString?: string, isChinese = false) {\n if (!dateString) return;\n const date = convertToDate(reformatDateString(dateString));\n const locale = isChinese ? zhCN : undefined;\n const formatOptions = { locale };\n const dateFormat = isChinese ? \"yyyy年M月d日\" : \"LLL d, yyyy\";\n\n return date ? format(date, dateFormat, formatOptions) : undefined;\n}\n\n/**\n * HBS Marketing & Communications mandates date range strings do not duplicate\n * month or year when both start and end dates share the same month or year.\n *\n * @param startDateString - Start of a date range\n * @param endDateString - End of a date range\n * @returns The human readable string representation of the date range\n */\nexport function stringDateRange(\n startDateString: string | undefined,\n endDateString: string | undefined,\n isChinese = false,\n): string {\n if (!startDateString || !endDateString) return \"\";\n const startDate = convertToDate(reformatDateString(startDateString));\n const endDate = convertToDate(reformatDateString(endDateString));\n\n if (!startDate || !endDate) return \"\";\n\n const delimeter = \" – \";\n const locale = isChinese ? zhCN : undefined;\n const formatOptions = { locale };\n const dateFormat = isChinese ? \"yyyy年M月d日\" : \"LLL d, yyyy\";\n\n // A range range with different years should display both dates in full.\n // Example: Jan 1, 2023 - Feb 29, 2024\n if (getYear(startDate) !== getYear(endDate)) {\n return (\n format(startDate, dateFormat, formatOptions) +\n delimeter +\n format(endDate, dateFormat, formatOptions)\n );\n }\n\n // A range with different months in the same year should not duplicate the year.\n // Example: Jan 1 - Feb 29, 2024\n if (getMonth(startDate) !== getMonth(endDate)) {\n const startDateFormat = isChinese ? \"yyyy年M月d日\" : \"LLL d\";\n const endDateFormat = isChinese ? \"M月d日\" : \"LLL d, yyyy\";\n return (\n format(startDate, startDateFormat, formatOptions) +\n delimeter +\n format(endDate, endDateFormat, formatOptions)\n );\n }\n\n // A range with different days in the same month should not duplicate the month.\n // Example: Jan 1 - 9, 2024, YYYY年MM月DD — DD日\n if (getDate(startDate) !== getDate(endDate)) {\n const startDateFormat = isChinese ? \"yyyy年M月d\" : \"LLL d\";\n const endDateFormat = isChinese ? \"d日\" : \"d, yyyy\";\n return (\n format(startDate, startDateFormat, formatOptions) +\n delimeter +\n format(endDate, endDateFormat, formatOptions)\n );\n }\n\n // It looks like we have the same day in this date range.\n // Example: Jan 1, 2024\n return format(startDate, dateFormat, formatOptions);\n}\n\nexport function timeSince(date?: Date) {\n if (!date) return \"never\";\n const seconds = Math.floor((new Date().getTime() - date.getTime()) / 1000);\n\n let interval = seconds / 31536000;\n\n if (interval > 1) {\n return Math.floor(interval) + \" years ago\";\n }\n interval = seconds / 2592000;\n if (interval > 1) {\n return Math.floor(interval) + \" months ago\";\n }\n interval = seconds / 86400;\n if (interval > 1) {\n return Math.floor(interval) + \" days ago\";\n }\n interval = seconds / 3600;\n if (interval > 1) {\n return Math.floor(interval) + \" hours ago\";\n }\n interval = seconds / 60;\n if (interval > 1) {\n return Math.floor(interval) + \" minutes ago\";\n }\n return Math.floor(seconds) + \" seconds ago\";\n}\n","// extracted by mini-css-extract-plugin","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"不到 1 秒\",\n other: \"不到 {{count}} 秒\",\n },\n\n xSeconds: {\n one: \"1 秒\",\n other: \"{{count}} 秒\",\n },\n\n halfAMinute: \"半分钟\",\n\n lessThanXMinutes: {\n one: \"不到 1 分钟\",\n other: \"不到 {{count}} 分钟\",\n },\n\n xMinutes: {\n one: \"1 分钟\",\n other: \"{{count}} 分钟\",\n },\n\n xHours: {\n one: \"1 小时\",\n other: \"{{count}} 小时\",\n },\n\n aboutXHours: {\n one: \"大约 1 小时\",\n other: \"大约 {{count}} 小时\",\n },\n\n xDays: {\n one: \"1 天\",\n other: \"{{count}} 天\",\n },\n\n aboutXWeeks: {\n one: \"大约 1 个星期\",\n other: \"大约 {{count}} 个星期\",\n },\n\n xWeeks: {\n one: \"1 个星期\",\n other: \"{{count}} 个星期\",\n },\n\n aboutXMonths: {\n one: \"大约 1 个月\",\n other: \"大约 {{count}} 个月\",\n },\n\n xMonths: {\n one: \"1 个月\",\n other: \"{{count}} 个月\",\n },\n\n aboutXYears: {\n one: \"大约 1 年\",\n other: \"大约 {{count}} 年\",\n },\n\n xYears: {\n one: \"1 年\",\n other: \"{{count}} 年\",\n },\n\n overXYears: {\n one: \"超过 1 年\",\n other: \"超过 {{count}} 年\",\n },\n\n almostXYears: {\n one: \"将近 1 年\",\n other: \"将近 {{count}} 年\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", String(count));\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return result + \"内\";\n } else {\n return result + \"前\";\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.mjs\";\n\nconst dateFormats = {\n full: \"y'年'M'月'd'日' EEEE\",\n long: \"y'年'M'月'd'日'\",\n medium: \"yyyy-MM-dd\",\n short: \"yy-MM-dd\",\n};\n\nconst timeFormats = {\n full: \"zzzz a h:mm:ss\",\n long: \"z a h:mm:ss\",\n medium: \"a h:mm:ss\",\n short: \"a h:mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} {{time}}\",\n long: \"{{date}} {{time}}\",\n medium: \"{{date}} {{time}}\",\n short: \"{{date}} {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","import { startOfWeek } from \"./startOfWeek.mjs\";\n\n/**\n * The {@link isSameWeek} function options.\n */\n\n/**\n * @name isSameWeek\n * @category Week Helpers\n * @summary Are the given dates in the same week (and month and year)?\n *\n * @description\n * Are the given dates in the same week (and month and year)?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same week (and month and year)\n *\n * @example\n * // Are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))\n * //=> true\n *\n * @example\n * // If week starts with Monday,\n * // are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {\n * weekStartsOn: 1\n * })\n * //=> false\n *\n * @example\n * // Are 1 January 2014 and 1 January 2015 in the same week?\n * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))\n * //=> false\n */\nexport function isSameWeek(dateLeft, dateRight, options) {\n const dateLeftStartOfWeek = startOfWeek(dateLeft, options);\n const dateRightStartOfWeek = startOfWeek(dateRight, options);\n\n return +dateLeftStartOfWeek === +dateRightStartOfWeek;\n}\n\n// Fallback for modularized imports:\nexport default isSameWeek;\n","import { isSameWeek } from \"../../../isSameWeek.mjs\";\n\nfunction checkWeek(date, baseDate, options) {\n const baseFormat = \"eeee p\";\n\n if (isSameWeek(date, baseDate, options)) {\n return baseFormat; // in same week\n } else if (date.getTime() > baseDate.getTime()) {\n return \"'下个'\" + baseFormat; // in next week\n }\n return \"'上个'\" + baseFormat; // in last week\n}\n\nconst formatRelativeLocale = {\n lastWeek: checkWeek, // days before yesterday, maybe in this week or last week\n yesterday: \"'昨天' p\",\n today: \"'今天' p\",\n tomorrow: \"'明天' p\",\n nextWeek: checkWeek, // days after tomorrow, maybe in this week or next week\n other: \"PP p\",\n};\n\nexport const formatRelative = (token, date, baseDate, options) => {\n const format = formatRelativeLocale[token];\n\n if (typeof format === \"function\") {\n return format(date, baseDate, options);\n }\n\n return format;\n};\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\nconst eraValues = {\n narrow: [\"前\", \"公元\"],\n abbreviated: [\"前\", \"公元\"],\n wide: [\"公元前\", \"公元\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"第一季\", \"第二季\", \"第三季\", \"第四季\"],\n wide: [\"第一季度\", \"第二季度\", \"第三季度\", \"第四季度\"],\n};\n\nconst monthValues = {\n narrow: [\n \"一\",\n \"二\",\n \"三\",\n \"四\",\n \"五\",\n \"六\",\n \"七\",\n \"八\",\n \"九\",\n \"十\",\n \"十一\",\n \"十二\",\n ],\n\n abbreviated: [\n \"1月\",\n \"2月\",\n \"3月\",\n \"4月\",\n \"5月\",\n \"6月\",\n \"7月\",\n \"8月\",\n \"9月\",\n \"10月\",\n \"11月\",\n \"12月\",\n ],\n\n wide: [\n \"一月\",\n \"二月\",\n \"三月\",\n \"四月\",\n \"五月\",\n \"六月\",\n \"七月\",\n \"八月\",\n \"九月\",\n \"十月\",\n \"十一月\",\n \"十二月\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"日\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\"],\n short: [\"日\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\"],\n abbreviated: [\"周日\", \"周一\", \"周二\", \"周三\", \"周四\", \"周五\", \"周六\"],\n\n wide: [\"星期日\", \"星期一\", \"星期二\", \"星期三\", \"星期四\", \"星期五\", \"星期六\"],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"上\",\n pm: \"下\",\n midnight: \"凌晨\",\n noon: \"午\",\n morning: \"早\",\n afternoon: \"下午\",\n evening: \"晚\",\n night: \"夜\",\n },\n abbreviated: {\n am: \"上午\",\n pm: \"下午\",\n midnight: \"凌晨\",\n noon: \"中午\",\n morning: \"早晨\",\n afternoon: \"中午\",\n evening: \"晚上\",\n night: \"夜间\",\n },\n wide: {\n am: \"上午\",\n pm: \"下午\",\n midnight: \"凌晨\",\n noon: \"中午\",\n morning: \"早晨\",\n afternoon: \"中午\",\n evening: \"晚上\",\n night: \"夜间\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"上\",\n pm: \"下\",\n midnight: \"凌晨\",\n noon: \"午\",\n morning: \"早\",\n afternoon: \"下午\",\n evening: \"晚\",\n night: \"夜\",\n },\n abbreviated: {\n am: \"上午\",\n pm: \"下午\",\n midnight: \"凌晨\",\n noon: \"中午\",\n morning: \"早晨\",\n afternoon: \"中午\",\n evening: \"晚上\",\n night: \"夜间\",\n },\n wide: {\n am: \"上午\",\n pm: \"下午\",\n midnight: \"凌晨\",\n noon: \"中午\",\n morning: \"早晨\",\n afternoon: \"中午\",\n evening: \"晚上\",\n night: \"夜间\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, options) => {\n const number = Number(dirtyNumber);\n\n switch (options?.unit) {\n case \"date\":\n return number.toString() + \"日\";\n case \"hour\":\n return number.toString() + \"时\";\n case \"minute\":\n return number.toString() + \"分\";\n case \"second\":\n return number.toString() + \"秒\";\n default:\n return \"第 \" + number.toString();\n }\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.mjs\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.mjs\";\n\nconst matchOrdinalNumberPattern = /^(第\\s*)?\\d+(日|时|分|秒)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(前)/i,\n abbreviated: /^(前)/i,\n wide: /^(公元前|公元)/i,\n};\nconst parseEraPatterns = {\n any: [/^(前)/i, /^(公元)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^第[一二三四]刻/i,\n wide: /^第[一二三四]刻钟/i,\n};\nconst parseQuarterPatterns = {\n any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,\n abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\\d|1[12])月/i,\n wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^一/i,\n /^二/i,\n /^三/i,\n /^四/i,\n /^五/i,\n /^六/i,\n /^七/i,\n /^八/i,\n /^九/i,\n /^十(?!(一|二))/i,\n /^十一/i,\n /^十二/i,\n ],\n\n any: [\n /^一|1/i,\n /^二|2/i,\n /^三|3/i,\n /^四|4/i,\n /^五|5/i,\n /^六|6/i,\n /^七|7/i,\n /^八|8/i,\n /^九|9/i,\n /^十(?!(一|二))|10/i,\n /^十一|11/i,\n /^十二|12/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[一二三四五六日]/i,\n short: /^[一二三四五六日]/i,\n abbreviated: /^周[一二三四五六日]/i,\n wide: /^星期[一二三四五六日]/i,\n};\nconst parseDayPatterns = {\n any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i],\n};\n\nconst matchDayPeriodPatterns = {\n any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^上午?/i,\n pm: /^下午?/i,\n midnight: /^午夜/i,\n noon: /^[中正]午/i,\n morning: /^早上/i,\n afternoon: /^下午/i,\n evening: /^晚上?/i,\n night: /^凌晨/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { formatDistance } from \"./zh-CN/_lib/formatDistance.mjs\";\nimport { formatLong } from \"./zh-CN/_lib/formatLong.mjs\";\nimport { formatRelative } from \"./zh-CN/_lib/formatRelative.mjs\";\nimport { localize } from \"./zh-CN/_lib/localize.mjs\";\nimport { match } from \"./zh-CN/_lib/match.mjs\";\n\n/**\n * @category Locales\n * @summary Chinese Simplified locale.\n * @language Chinese Simplified\n * @iso-639-2 zho\n * @author Changyu Geng [@KingMario](https://github.com/KingMario)\n * @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)\n * @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)\n * @author Carney Wu [@cubicwork](https://github.com/cubicwork)\n * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)\n */\nexport const zhCN = {\n code: \"zh-CN\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4,\n },\n};\n\n// Fallback for modularized imports:\nexport default zhCN;\n","import \"./byline.scss\";\n\nimport cn from \"clsx\";\nimport { format } from \"date-fns\";\nimport {\n MediaAssetProps,\n MediaAsset,\n} from \"design-system/components/primitives/media-asset/media-asset\";\nimport {\n convertToDate,\n reformatDateString,\n} from \"design-system/utils/date-format\";\nimport { EditAttributes } from \"design-system/types/types\";\nimport { Link } from \"design-system/components/primitives/link/link\";\n\nexport interface BylineAuthor {\n name: string;\n link?: string;\n avatar?: MediaAssetProps;\n\n editAttributes?: {\n name?: EditAttributes;\n };\n}\n\nexport interface BylineProps {\n authors?: Array;\n featuredAuthors?: Array;\n\n type?: \"Authors\" | \"Featured\" | \"PeopleOnly\" | \"ShowAll\" | \"DateOnly\";\n publicationDate?: string; // \"YYYY-MM-DD\"\n headshots?: boolean;\n disableLinks?: boolean;\n\n editAttributes?: {\n publicationDate?: EditAttributes;\n };\n}\n\n/**\n * ## See it in use on...\n * - An [article page](/story/example-pages-article-pages-kitchen-sink--story)\n *\n * - **`id: P-008-000-05`**\n */\nexport function Byline({\n authors,\n featuredAuthors,\n publicationDate,\n type = \"Authors\",\n headshots,\n disableLinks = false,\n editAttributes,\n}: BylineProps) {\n const firstAuthor = authors?.[0];\n const firstFeatured = featuredAuthors?.[0];\n\n const formattedAuthors =\n firstAuthor &&\n firstAuthor.name?.length < 50 && // TODO: fix temperory if statement to hide really long names coming from legacy queries\n authors.map((person, i) => (\n \n {person.link && !disableLinks ? (\n {person.name}\n ) : (\n \n )}\n {i !== authors.length - 1 && (\n <>\n {authors.length !== 2 ? \",\" : \"\"}{\" \"}\n {authors.length > 1 && i === authors.length - 2 && \"and\"}{\" \"}\n \n )}\n \n ));\n\n const formattedFeaturedAuthors =\n firstFeatured &&\n firstFeatured.name?.length < 50 && // TODO: fix temperory if statement to hide really long names coming from legacy queries\n featuredAuthors.map((person, i) => (\n \n {\" \"}\n {person.link && !disableLinks ? (\n {person.name}\n ) : (\n person.name\n )}\n {i !== featuredAuthors.length - 1 && (\n <>\n {featuredAuthors.length !== 2 ? \",\" : \"\"}{\" \"}\n {featuredAuthors.length > 1 &&\n i === featuredAuthors.length - 2 &&\n \"and\"}{\" \"}\n \n )}\n \n ));\n\n const parsedPublicationDate = convertToDate(\n reformatDateString(publicationDate),\n );\n\n const formattedDate = parsedPublicationDate ? (\n \n {format(parsedPublicationDate, \"LLLL d, yyyy\")}\n \n ) : null;\n\n const componentClass = cn(\n \"hbs-byline\",\n headshots && featuredAuthors && \"hbs-byline--headshots\",\n );\n const hasHeadImage = featuredAuthors?.every((person) => person.avatar);\n\n return (\n
\n {type !== \"DateOnly\" &&\n headshots &&\n featuredAuthors &&\n featuredAuthors.length > 0 &&\n hasHeadImage && (\n \n {featuredAuthors.map((featuredAuthors, index) => (\n \n ))}\n \n )}\n

\n {type === \"PeopleOnly\" ? (\n formattedFeaturedAuthors\n ) : type === \"DateOnly\" ? (\n <>Published {formattedDate}\n ) : (\n <>\n {(type === \"ShowAll\" || type === \"Featured\") &&\n formattedFeaturedAuthors ? (\n <>\n Featuring {formattedFeaturedAuthors}\n {formattedAuthors || formattedDate ? \". \" : \" \"}\n \n ) : null}\n {type !== \"Featured\" && formattedAuthors ? (\n <>By {formattedAuthors} \n ) : null}\n {formattedDate ? (\n <>\n {type !== \"Featured\" && formattedAuthors\n ? \" on \"\n : \"Published \"}{\" \"}\n {formattedDate}\n {formattedFeaturedAuthors ? \".\" : \"\"}\n \n ) : null}\n \n )}\n

\n
\n );\n}\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getDate\n * @category Day Helpers\n * @summary Get the day of the month of the given date.\n *\n * @description\n * Get the day of the month of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The day of month\n *\n * @example\n * // Which day of the month is 29 February 2012?\n * const result = getDate(new Date(2012, 1, 29))\n * //=> 29\n */\nexport function getDate(date) {\n const _date = toDate(date);\n const dayOfMonth = _date.getDate();\n return dayOfMonth;\n}\n\n// Fallback for modularized imports:\nexport default getDate;\n"],"names":["getYear","date","toDate","getFullYear","getMonth","convertToDate","dateString","Date","isNaN","getTime","e","console","error","reformatDateString","reformattedDate","input","dateOnlyPattern","dateTimePattern","match","replace","formatDate","isChinese","locale","zhCN","undefined","format","dateFormat","formatOptions","stringDateRange","startDateString","endDateString","startDate","endDate","delimeter","startDateFormat","endDateFormat","getDate","timeSince","seconds","Math","floor","interval","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","xHours","aboutXHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatLong","buildFormatLongFn","formats","full","long","medium","short","defaultWidth","time","dateTime","dateTimeFormats","checkWeek","baseDate","options","baseFormat","dateLeft","isSameWeek","dateRight","dateLeftStartOfWeek","startOfWeek","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","localize","ordinalNumber","dirtyNumber","number","Number","unit","toString","era","buildLocalizeFn","values","narrow","abbreviated","wide","quarter","argumentCallback","month","monthValues","day","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","formattingValues","defaultFormattingWidth","code","formatDistance","token","count","result","tokenValue","String","addSuffix","comparison","formatRelative","buildMatchPatternFn","matchPattern","matchOrdinalNumberPattern","parsePattern","parseOrdinalNumberPattern","valueCallback","parseInt","value","buildMatchFn","matchPatterns","matchEraPatterns","defaultMatchWidth","parsePatterns","parseEraPatterns","defaultParseWidth","matchQuarterPatterns","any","index","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","weekStartsOn","Byline","firstAuthor","firstFeatured","authors","featuredAuthors","publicationDate","type","headshots","disableLinks","editAttributes","formattedAuthors","name","length","person","i","span","className","link","Link","href","dangerouslySetInnerHTML","__html","formattedFeaturedAuthors","parsedPublicationDate","formattedDate","componentClass","cn","hasHeadImage","every","avatar","div","map","MediaAsset","hide","caption","p"],"sourceRoot":"","ignoreList":[0,1,4,5,6,7,8,9,10,12]}