{
  "version": 3,
  "sources": ["today_core.js"],
  "sourcesContent": ["// @ts-check\n/*\n * static/js/today_core.js \u2014 can the map go back to today? (SNOW-1165)\n *\n * The map can show any day of the season, and most people, most of the time,\n * are on today. Its date control carries a \"Today\" half that is always shown\n * and enabled only when there is somewhere to go back from; this file holds\n * that one decision, so it is tested without a DOM:\n *\n *   - ``canGoToToday`` \u2014 true when the page knows today and the map is on a\n *     different day, or on no day at all. With no today to go to (no\n *     ``data-today``) there is nothing to press for.\n *\n * \"Today\" is the page's ``#season-scrubber[data-today]``, never the browser\n * clock (SNOW-793). A cached page rendered yesterday therefore calls\n * yesterday today; that case is the stale-day notice's (SNOW-920), not this.\n */\n(function () {\n  'use strict';\n\n  /**\n   * Whether \"Today\" has anywhere to take the map.\n   *\n   * @param {string | null | undefined} date The day the map is showing.\n   * @param {string | null | undefined} today The page's today.\n   * @returns {boolean}\n   */\n  function canGoToToday(date, today) {\n    if (!today) return false;\n    return date !== today;\n  }\n\n  window.pwaTodayCore = Object.freeze({\n    canGoToToday: canGoToToday,\n  });\n})();\n"],
  "mappings": "CAiBC,UAAY,CACX,aASA,SAASA,EAAaC,EAAMC,EAAO,CACjC,OAAKA,EACED,IAASC,EADG,EAErB,CAEA,OAAO,aAAe,OAAO,OAAO,CAClC,aAAcF,CAChB,CAAC,CACH,GAAG",
  "names": ["canGoToToday", "date", "today"]
}
