{
  "version": 3,
  "sources": ["../../src/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.ts"],
  "sourcesContent": ["import BigNumber from 'bignumber.js';\n\nexport const getHumanReadableTokenExpirationTime = (milliseconds: number) => {\n  const seconds = new BigNumber(milliseconds)\n    .dividedBy(1000)\n    .integerValue(BigNumber.ROUND_FLOOR);\n\n  const minutes = new BigNumber(seconds)\n    .dividedBy(60)\n    .integerValue(BigNumber.ROUND_FLOOR);\n\n  const hours = new BigNumber(minutes)\n    .dividedBy(60)\n    .integerValue(BigNumber.ROUND_FLOOR);\n\n  const overOneHour = hours.modulo(60).isGreaterThan(1);\n  const overOneMinute = minutes.modulo(60).isGreaterThan(1);\n  const underOneMinute = minutes.modulo(60).isLessThan(1);\n\n  if (overOneHour) {\n    return `${hours} hours`;\n  }\n\n  if (overOneMinute) {\n    return `${minutes} minutes`;\n  }\n\n  if (underOneMinute) {\n    return 'less than 1 minute';\n  }\n\n  return `${minutes} minute`;\n};\n"],
  "mappings": "AAAA,OAAOA,MAAe,eAEf,IAAMC,EAAuCC,GAAyB,CAC3E,IAAMC,EAAU,IAAIH,EAAUE,CAAY,EACvC,UAAU,GAAI,EACd,aAAaF,EAAU,WAAW,EAE/BI,EAAU,IAAIJ,EAAUG,CAAO,EAClC,UAAU,EAAE,EACZ,aAAaH,EAAU,WAAW,EAE/BK,EAAQ,IAAIL,EAAUI,CAAO,EAChC,UAAU,EAAE,EACZ,aAAaJ,EAAU,WAAW,EAE/BM,EAAcD,EAAM,OAAO,EAAE,EAAE,cAAc,CAAC,EAC9CE,EAAgBH,EAAQ,OAAO,EAAE,EAAE,cAAc,CAAC,EAClDI,EAAiBJ,EAAQ,OAAO,EAAE,EAAE,WAAW,CAAC,EAEtD,OAAIE,EACK,GAAGD,CAAK,SAGbE,EACK,GAAGH,CAAO,WAGfI,EACK,qBAGF,GAAGJ,CAAO,SACnB",
  "names": ["BigNumber", "getHumanReadableTokenExpirationTime", "milliseconds", "seconds", "minutes", "hours", "overOneHour", "overOneMinute", "underOneMinute"]
}
