/* Metro module 8382; source: modules/checkpoint/CheckpointUtils.tsx; dependencies: [4303, 4789, 1244, 8383, 8384, 8385, 8386, 8387, 8388, 8389, 8390, 8391, 8392, 2] */ import CardCassettePng from '../../external/discord_assets/assets/checkpoint/card-cassette.png.js'; /* Metro dependency 8392 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as TimeUtilsModule from '../../external/discord_common/js/packages/time-utils/TimeUtils.tsx'; /* Metro dependency 4303 */ import * as GetTimestampStringModule from '../notification_center/getTimestampString.tsx'; /* Metro dependency 4789 */ function _fun66703(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:6, offset: 0x01c06270, size: 189 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const TimeUnits = (TimeUtilsModule).TimeUnits; const HOURS = TimeUnits.HOURS; items2 = [HOURS]; const MINUTES = TimeUnits.MINUTES; items2[1] = MINUTES; (FileImportTrackerModule).fileFinishedImporting('modules/checkpoint/CheckpointUtils.tsx'); exports.getVoiceDurationString = getVoiceDurationString; exports.getCardAssetUrl = getCardAssetUrl; exports.getCheckpointPowerBarUnits = function(a0) { var Math = global.Math; var Math2 = global.Math; var Math3 = global.Math; var value = Math3.round(a0 / 10); value = Math2.max(value, 1); return Math.min(value, 9); }; function getVoiceDurationString(a0) { // fn#66704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:248, offset: 0x01c0632d, size: 290 bytes, params: 2, frame: 19 const intl = (IndexNativeModule).intl; const {unit, time} = (TimeUtilsModule).getTimeAndUnit(a0, env0_3); const abbreviatedFormatter = (GetTimestampStringModule).getAbbreviatedFormatter(); if (time == null) { return intl.formatToPlainString(abbreviatedFormatter.minutes, {minutes: 0}); } const Math = global.Math; const value4 = Math.round(time); const TimeUnits = (TimeUtilsModule).TimeUnits; const HOURS = TimeUnits.HOURS; return unit === HOURS ? intl.formatToPlainString(abbreviatedFormatter.hours, {hours: value4}) : intl.formatToPlainString(abbreviatedFormatter.minutes, {minutes: value4}); } function getCardAssetUrl(a0) { // fn#66705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8567:627, offset: 0x01c0644f, size: 353 bytes, params: 2, frame: 11 if (a0 === 0) { return importDefault(8383) /* metro dependency 8383: cardPlantPng */; } if (a0 === 1) { return importDefault(8384) /* metro dependency 8384: cardDonutPng */; } if (a0 === 2) { return importDefault(8385) /* metro dependency 8385: cardCapybaraPng */; } if (a0 === 3) { return importDefault(8386) /* metro dependency 8386: cardDiscoPng */; } if (a0 === 4) { return importDefault(8387) /* metro dependency 8387: cardOrigamiPng */; } if (a0 === 5) { return importDefault(8388) /* metro dependency 8388: cardSnailPng */; } if (a0 === 6) { return importDefault(8389) /* metro dependency 8389: cardDuckPng */; } if (a0 === 7) { return importDefault(8390) /* metro dependency 8390: cardBananaPng */; } if (a0 === 8) { return importDefault(8391) /* metro dependency 8391: cardCatPng */; } return CardCassettePng; } } global.__d(_fun66703, 8382, [4303, 4789, 1244, 8383, 8384, 8385, 8386, 8387, 8388, 8389, 8390, 8391, 8392, 2]) /* metro module 8382, dependencies: [4303, 4789, 1244, 8383, 8384, 8385, 8386, 8387, 8388, 8389, 8390, 8391, 8392, 2] */;