Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
// Module ID: 12729
|
|
// Function ID: 12730
|
|
// Name: getBoostRowMessageText
|
|
// Dependencies: [1115, 2429, 12724, 2]
|
|
// Exports: default
|
|
|
|
// Module 12729 (getBoostRowMessageText)
|
|
import util from "util" /* 1115 */;
|
|
import _modDef2429 from "module_2429" /* 2429 */;
|
|
import getBoostLifecyclePhase from "getBoostLifecyclePhase" /* 12724 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/utils/getBoostRowMessageText.tsx");
|
|
|
|
export default function getBoostRowMessageText(phase) {
|
|
phase = phase.phase;
|
|
if ("gave" === phase) {
|
|
const intl3 = util.intl;
|
|
return intl3.string(_modDef2429.plwH8d);
|
|
} else if ("expiring" === phase) {
|
|
const intl2 = util.intl;
|
|
let endsAt = phase.boost.endsAt;
|
|
if (endsAt == null) {
|
|
const _Date = Date;
|
|
endsAt = new Date(phase.sortKey + getBoostLifecyclePhase.BOOST_EXPIRING_DISPLAY_WINDOW_MS);
|
|
}
|
|
const obj = { date: endsAt };
|
|
return intl2.formatToPlainString(_modDef2429.vct4l8, obj);
|
|
} else if ("expired" === phase) {
|
|
const intl = util.intl;
|
|
return intl.string(_modDef2429.hSXjlI);
|
|
}
|
|
};
|