{ "version": 3, "sources": ["../../../../javascript/performance/rounds/round_time.js"], "sourcesContent": ["/* Round Time Formating */\n\nwindow.setupTimeAtTimezone = function setupTimeAtTimezone(datetime) { // eslint-disable-line no-unused-vars\n const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n const date = new Date(datetime);\n const options = {\n timeZone: timezone, hour12: true, year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit',\n };\n const playedTime = date.toLocaleString('en-US', options).replace('at ', '').replace('AM', 'am').replace('PM', 'pm');\n $('#round-date-field').text(playedTime);\n};\n\nwindow.setupTimeAtTimezoneAtList = function setupTimeAtTimezoneAtList(roundList) { // eslint-disable-line no-unused-vars\n const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\n roundList.forEach((round) => {\n const [roundId, startedAt] = round;\n const date = new Date(startedAt);\n const options = {\n timeZone: timezone, year: 'numeric', month: 'short', day: 'numeric',\n };\n const playedTime = date.toLocaleString('en-UK', options);\n const fieldName = `#round-date-field-${roundId}`;\n $(fieldName).text(playedTime);\n });\n};\n"], "mappings": "AAEA,OAAO,oBAAsB,SAA6BA,EAAU,CAClE,IAAMC,EAAW,KAAK,eAAe,EAAE,gBAAgB,EAAE,SACnDC,EAAO,IAAI,KAAKF,CAAQ,EACxBG,EAAU,CACd,SAAUF,EAAU,OAAQ,GAAM,KAAM,UAAW,MAAO,OAAQ,IAAK,UAAW,KAAM,UAAW,OAAQ,SAC7G,EACMG,EAAaF,EAAK,eAAe,QAASC,CAAO,EAAE,QAAQ,MAAO,EAAE,EAAE,QAAQ,KAAM,IAAI,EAAE,QAAQ,KAAM,IAAI,EAClH,EAAE,mBAAmB,EAAE,KAAKC,CAAU,CACxC,EAEA,OAAO,0BAA4B,SAAmCC,EAAW,CAC/E,IAAMJ,EAAW,KAAK,eAAe,EAAE,gBAAgB,EAAE,SAEzDI,EAAU,QAASC,GAAU,CAC3B,GAAM,CAACC,EAASC,CAAS,EAAIF,EACvBJ,EAAO,IAAI,KAAKM,CAAS,EACzBL,EAAU,CACd,SAAUF,EAAU,KAAM,UAAW,MAAO,QAAS,IAAK,SAC5D,EACMG,EAAaF,EAAK,eAAe,QAASC,CAAO,EACjDM,EAAY,qBAAqBF,CAAO,GAC9C,EAAEE,CAAS,EAAE,KAAKL,CAAU,CAC9B,CAAC,CACH", "names": ["datetime", "timezone", "date", "options", "playedTime", "roundList", "round", "roundId", "startedAt", "fieldName"] }