{"version":3,"sources":["components/ListTimeItem.jsx","App.jsx","index.js"],"names":["ListTimeItem","props","useState","time","setTime","locationFormatted","setLocationFormatted","useEffect","l","zone","split","moment","utc","Date","now","tz","format","setInterval","newTime","className","replace","excludeTZ","ReactGA","initialize","pageview","window","location","pathname","search","App","theme","setTheme","zones","setZones","noZones","setNoZones","mainTime","setMainTime","mainTZ","setMainTZ","setLocation","mainProcess","useCallback","Promise","resolve","tempZones","i","names","forEach","hours","includes","push","length","then","data","sort","a","b","aTime","bTime","minutes","seconds","curTime","slice","switchTheme","document","documentElement","classList","add","setAttribute","localStorage","setItem","event","category","action","setTimeout","remove","getItem","style","textAlign","map","onClick","xmlns","enableBackground","height","viewBox","width","fill","d","url","marginRight","bgColor","href","target","rel","year","ReactDOM","render","StrictMode","getElementById"],"mappings":"2SAqCeA,MA/Bf,SAAsBC,GAClB,MAAwBC,mBAAS,IAAjC,mBAAOC,EAAP,KAAaC,EAAb,KACA,EAAkDF,mBAAS,IAA3D,mBAAOG,EAAP,KAA0BC,EAA1B,KAkBA,OAhBAC,qBAAU,WACN,IAAIC,EAAIP,EAAMQ,KAAKC,MAAM,KACzBJ,EAAqB,GAAD,OAAIE,EAAE,GAAN,aAAaA,EAAE,KAEnCJ,EAAQO,IAAOC,IAAI,IAAIC,KAAKA,KAAKC,QAAQC,GAAGd,EAAMQ,MAAMO,OAAO,WAQ/DC,aANA,WAEI,IAAIC,EAAUP,IAAOC,IAAI,IAAIC,KAAKA,KAAKC,QAAQC,GAAGd,EAAMQ,MAAMO,OAAO,UACrEZ,EAAQc,KAGY,OACzB,CAACjB,EAAMQ,OAIN,qBAAKU,UAAU,eAAf,SACI,8BAAG,sBAAMA,UAAU,WAAhB,SAA4Bd,EAAkBe,QAAQ,IAAI,OAAY,sBAAMD,UAAU,OAAhB,SAAwBhB,UClBvGkB,EAAY,CACjB,4BACA,gBACA,aACA,MACA,aACA,UACA,YACA,OACA,MACA,OACA,MACA,MACA,KACA,MACA,UACA,UACA,MACA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EACA,sBACCmD,QAASjB,EACT7C,UAAU,aACV+D,MAAM,6BACNC,iBAAiB,gBACjBC,OAAO,OACPC,QAAQ,YACRC,MAAM,OACNC,KAAK,UARN,UAUC,sBAAMA,KAAK,OAAOH,OAAO,KAAKE,MAAM,OACpC,sBAAME,EAAE,oWAGT,sBACCP,QAASjB,EACT7C,UAAU,aACV+D,MAAM,6BACNC,iBAAiB,gBACjBC,OAAO,OACPC,QAAQ,YACRC,MAAM,OACNC,KAAK,UARN,UAUC,sBAAMA,KAAK,OAAOH,OAAO,KAAKE,MAAM,OACpC,sBAAME,EAAE,2+BAGV,uBAAMrE,UAAU,QAAhB,UACC,cAAC,aAAD,CACCsE,IAAI,wCACJX,MAAO,CAAEM,OAAQ,GAAIE,MAAO,GAAII,YAAa,YAE9C,cAAC,aAAD,CACCD,IAAI,kCACJX,MAAO,CAAEM,OAAQ,GAAIE,MAAO,GAAII,YAAa,UAC7CC,QAAmB,SAAV7D,EAAmB,OAAS,OAEtC,cAAC,aAAD,CACC2D,IAAI,yDACJX,MAAO,CAAEM,OAAQ,GAAIE,MAAO,GAAII,YAAa,YAE9C,oBACCE,KAAK,kCACLC,OAAO,SACPC,IAAI,aAHL,0BAKiBnF,IAAOE,KAAKC,OAAOiF,iBCzOxCC,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFjC,SAASkC,eAAe,W","file":"static/js/main.8882f128.chunk.js","sourcesContent":["import React, { useEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types'\r\nimport moment from 'moment-timezone';\r\n\r\nimport './ListTimeItem.css';\r\n\r\nfunction ListTimeItem(props){\r\n const [time, setTime] = useState('');\r\n const [locationFormatted, setLocationFormatted] = useState('');\r\n\r\n useEffect(() => {\r\n var l = props.zone.split('/');\r\n setLocationFormatted(`${l[1]}, ${l[0]}`);\r\n\r\n setTime(moment.utc(new Date(Date.now())).tz(props.zone).format('h:mm a'));\r\n\r\n function updateTime(){\r\n //moment.utc(new Date(Date.now())).tz('Australia/Brisbane').format()\r\n var newTime = moment.utc(new Date(Date.now())).tz(props.zone).format('h:mm a');\r\n setTime(newTime);\r\n }\r\n\r\n setInterval(updateTime, 1000 * 10);\r\n }, [props.zone]);\r\n\r\n\r\n return (\r\n
{locationFormatted.replace('_',' ')}{time}
\r\n\r\n\t\t\t\t\t\t\tIt's 5pm somewhere in the world!\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tIt is currently{\" \"}\r\n\t\t\t\t\t\t\t{mainTime} in:\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tOh No, there are currently no timezones after 5pm and\r\n\t\t\t\t\t\tbefore 7pm. Please allow some time and we will continue\r\n\t\t\t\t\t\tsearching in the background.\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\t\t\t