/* Metro module 8433; source: modules/polls/chat/useFormattedExpirationLabel.tsx; dependencies: [3738, 1244, 2] */ import Module03738 from '../../../by-id/module-03738.js'; /* Metro dependency 3738 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ function _fun66976(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:6, offset: 0x01c1136e, size: 120 bytes, params: 8, frame: 19 const env0_0 = require; const formatExpirationLabel2 = formatExpirationLabel; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/useFormattedExpirationLabel.tsx'); exports.default = useFormattedExpirationLabel; exports.formatExpirationLabel = formatExpirationLabel2; function formatExpirationLabel(a0) { // fn#66977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:43, offset: 0x01c113e6, size: 294 bytes, params: 2, frame: 19 const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; const value2 = (Module03738)(); if (a0 <= value2) { return undefined; } const value3 = a0.diff(value2, 'days'); if (value3 > 1) { return intl.formatToPlainString(t.dex68a, {days: value3}); } const value4 = a0.diff(value2, 'hours'); if (value4 > 1) { return intl.formatToPlainString(t.BWqf0c, {hours: value4}); } return intl.formatToPlainString(t['3SLXAz'], {minutes: a0.diff(value2, 'minutes')}); } function useFormattedExpirationLabel(a0) { // fn#66978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:544, offset: 0x01c1150c, size: 29 bytes, params: 2, frame: 11 if (a0 != null) { return formatExpirationLabel(a0); } } } global.__d(_fun66976, 8433, [3738, 1244, 2]) /* metro module 8433, dependencies: [3738, 1244, 2] */;