Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,54 @@
|
||||
/* Metro module 9523; source: modules/quests/utils/MobileQuestVideoWatchCtaCopy.tsx; dependencies: [7116, 1244, 2] */
|
||||
function _fun74303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9709:6, offset: 0x01d896a8, size: 128 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = formatWatchRemainingDurationShort;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/utils/MobileQuestVideoWatchCtaCopy.tsx');
|
||||
exports.formatWatchRemainingDurationShort = closure;
|
||||
exports.getVideoQuestWatchCtaText = function(a0) {
|
||||
var value = a0.percentComplete > 0;
|
||||
var value3 = formatWatchRemainingDurationShort(a0);
|
||||
var intl = require(dependencyMap[1]).intl;
|
||||
var formatToPlainString = intl.formatToPlainString;
|
||||
var t = require(dependencyMap[1]).t;
|
||||
return value ? Reflect.apply(formatToPlainString, intl, [t['pF/deA'],
|
||||
{durationShort: value3}]) : Reflect.apply(formatToPlainString, intl, [t.CHrvqg, {durationShort: value3}]);
|
||||
};
|
||||
exports.getVideoQuestWatchCtaAccessibilityLabel = getVideoQuestWatchCtaAccessibilityLabel;
|
||||
}
|
||||
|
||||
function formatWatchRemainingDurationShort(a0) { // fn#74304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9709:43, offset: 0x01d89728, size: 219 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object2;
|
||||
var PHhTXX;
|
||||
const remainingTaskTime = (require(7116) /* metro dependency 7116: QuestTaskUtils */).getRemainingTaskTime(a0);
|
||||
const value4 = 60 * remainingTaskTime.minutes + remainingTaskTime.seconds;
|
||||
if (value4 >= 60) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
PHhTXX = t.PHhTXX;
|
||||
object2 = {};
|
||||
object2.count = global.Math.round(value4 / 60);
|
||||
r0 = Reflect.apply(formatToPlainString, intl, [PHhTXX, object2]);
|
||||
} else {
|
||||
r0 = intl.formatToPlainString(t.rUfeQx, {count: value4});
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getVideoQuestWatchCtaAccessibilityLabel(a0) { // fn#74306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9709:832, offset: 0x01d8987d, size: 364 bytes, params: 2, frame: 20
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value = a0.percentComplete > 0;
|
||||
const {minutes, seconds} = (require(7116) /* metro dependency 7116: QuestTaskUtils */).getRemainingTaskTime(a0);
|
||||
const r5 = minutes > 0 && seconds > 0 ? intl.formatToPlainString(t['lW/66D'], {minutes: minutes,
|
||||
seconds: seconds}) : minutes > 0 ? intl.formatToPlainString(t['SxnF/O'],
|
||||
{count: minutes}) : intl.formatToPlainString(t['0BZpdi'], {count: seconds});
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
return value ? Reflect.apply(formatToPlainString, intl, [t['ch+yrN'],
|
||||
{remainTime: r5}]) : Reflect.apply(formatToPlainString, intl, [t.Bwc5Dg, {remainTime: r5}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user