decord/source/utils/SecondsSliderUtils.tsx

61 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16162
// Function ID: 16163
2026-07-20 16:05:17 +00:00
// Name: getSecondsSliderLabel
2026-08-25 06:04:03 +00:00
// Dependencies: [1236, 3979, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSecondsSliderLabel
2026-08-25 06:04:03 +00:00
// Module 16162 (getSecondsSliderLabel)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import hooksDefault from "hooks" /* 3979 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("utils/SecondsSliderUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getSecondsSliderLabel = function getSecondsSliderLabel(rateLimitPerUser, arg1, intl) {
let flag = arg1;
if (arg1 === undefined) {
flag = true;
}
2026-07-29 08:29:29 +00:00
let stringResult = intl;
if (intl === undefined) {
2026-08-24 06:08:38 +00:00
intl = getSystemLocale.intl;
stringResult = intl.string(getSystemLocale.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
2026-08-25 06:04:03 +00:00
const durationResult = hooksDefault.duration(rateLimitPerUser, "seconds");
2026-07-20 16:05:17 +00:00
if (durationResult.days() > 0) {
2026-08-24 06:08:38 +00:00
const intl6 = getSystemLocale.intl;
let t = getSystemLocale.t;
2026-07-29 08:29:29 +00:00
t = { days: null };
t[0] = durationResult.days();
2026-07-23 10:11:24 +00:00
intl6.formatToPlainString(flag ? t.GBLpQ8 : t["k2UNz+"], t);
2026-07-29 08:29:29 +00:00
const tmp16 = flag ? t.GBLpQ8 : t["k2UNz+"];
2026-07-20 16:05:17 +00:00
} else if (durationResult.hours() > 0) {
2026-08-24 06:08:38 +00:00
const intl5 = getSystemLocale.intl;
let t1 = getSystemLocale.t;
2026-07-29 08:29:29 +00:00
t1 = { hours: null };
t1[0] = durationResult.hours();
2026-07-20 16:05:17 +00:00
intl5.formatToPlainString(flag ? t1.rhY1Rs : t1.xCjYxK, t1);
2026-07-29 08:29:29 +00:00
const tmp13 = flag ? t1.rhY1Rs : t1.xCjYxK;
2026-07-20 16:05:17 +00:00
} else if (durationResult.minutes() > 0) {
2026-08-24 06:08:38 +00:00
const intl4 = getSystemLocale.intl;
let t2 = getSystemLocale.t;
2026-07-29 08:29:29 +00:00
t2 = { minutes: null };
t2[0] = durationResult.minutes();
2026-07-23 10:11:24 +00:00
intl4.formatToPlainString(flag ? t2["XIGt+W"] : t2.iXLF9W, t2);
2026-07-29 08:29:29 +00:00
const tmp10 = flag ? t2["XIGt+W"] : t2.iXLF9W;
2026-07-20 16:05:17 +00:00
} else if (rateLimitPerUser > 0) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
let t3 = getSystemLocale.t;
2026-07-29 08:29:29 +00:00
t3 = { seconds: null };
t3[0] = durationResult.seconds();
2026-07-20 16:05:17 +00:00
intl3.formatToPlainString(flag ? t3.pyvjRp : t3.geSp4K, t3);
2026-07-29 08:29:29 +00:00
const tmp7 = flag ? t3.pyvjRp : t3.geSp4K;
2026-07-20 16:05:17 +00:00
} else {
if (flag) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
stringResult = intl2.string(getSystemLocale.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
return stringResult;
}
};