/* Metro module 8433; source: modules/polls/chat/useFormattedExpirationLabel.tsx; dependencies: [3738, 1244, 2] */ 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 closure = formatExpirationLabel; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/useFormattedExpirationLabel.tsx'); exports.default = useFormattedExpirationLabel; exports.formatExpirationLabel = closure; } 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 = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const value2 = (importDefault(3738) /* metro dependency 3738 */)(); 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); } }