// Module ID: 5069 // Function ID: 5070 // Name: CheckpointUtils // Dependencies: [4865, 5070, 1115, 5071, 5072, 5073, 5074, 5075, 5076, 5077, 5078, 5079, 5080, 2] // Exports: getCardAssetUrl, getCheckpointPowerBarUnits, getVoiceDurationString // Module 5069 (CheckpointUtils) import TimeUtils from "TimeUtils" /* 4865 */; import getTimestampString from "getTimestampString" /* 5070 */; import _modDef5071 from "module_5071" /* 5071 */; import _modDef5072 from "module_5072" /* 5072 */; import _modDef5073 from "module_5073" /* 5073 */; import _modDef5074 from "module_5074" /* 5074 */; import _modDef5075 from "module_5075" /* 5075 */; import _modDef5076 from "module_5076" /* 5076 */; import _modDef5077 from "module_5077" /* 5077 */; import _modDef5078 from "module_5078" /* 5078 */; import _modDef5079 from "module_5079" /* 5079 */; import _modDef5080 from "module_5080" /* 5080 */; import size from "module_2" /* 2 */; const items = [TimeUtils.TimeUnits.HOURS, TimeUtils.TimeUnits.MINUTES]; const result = size.fileFinishedImporting("modules/checkpoint/2025/CheckpointUtils.tsx"); export const getVoiceDurationString = function getVoiceDurationString(totalVoiceMinutes) { const timeAndUnit = TimeUtils.getTimeAndUnit(totalVoiceMinutes, items); ({ time, unit } = timeAndUnit); const time2 = getTimestampString.getAbbreviatedFormatter(); if (null == time) { const intl3 = tmp(1115).intl; return intl3.formatToPlainString(time2.minutes, { minutes: 0 }); } else { const _Math = Math; const rounded = Math.round(time); if (unit === tmp(4865).TimeUnits.HOURS) { const intl2 = tmp(1115).intl; const obj3 = { hours: rounded }; let formatToPlainStringResult = intl2.formatToPlainString(time2.hours, obj3); } else { const intl = tmp(1115).intl; const obj4 = { minutes: rounded }; formatToPlainStringResult = intl.formatToPlainString(time2.minutes, obj4); } return formatToPlainStringResult; } }; export const getCardAssetUrl = function getCardAssetUrl(cardId) { if (0 === cardId) { return _modDef5071; } else if (1 === cardId) { return _modDef5072; } else if (2 === cardId) { return _modDef5073; } else if (3 === cardId) { return _modDef5074; } else if (4 === cardId) { return _modDef5075; } else if (5 === cardId) { return _modDef5076; } else if (6 === cardId) { return _modDef5077; } else if (7 === cardId) { return _modDef5078; } else if (8 === cardId) { return _modDef5079; } else { return _modDef5080; } }; export const getCheckpointPowerBarUnits = function getCheckpointPowerBarUnits(checkpointData) { return Math.min(Math.max(Math.round(checkpointData / 10), 1), 9); };