decord/source/utils/SecondsSliderUtils.tsx

53 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15569
// Function ID: 119931
2026-07-20 16:05:17 +00:00
// Name: getSecondsSliderLabel
2026-07-25 08:10:48 +00:00
// Dependencies: [1212, 3713, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSecondsSliderLabel
2026-07-27 11:26:19 +00:00
// Module 15569 (getSecondsSliderLabel)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("utils/SecondsSliderUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getSecondsSliderLabel = function getSecondsSliderLabel(rateLimitPerUser, arg1, intl) {
let flag = arg1;
let stringResult = intl;
if (arg1 === undefined) {
flag = true;
}
if (stringResult === undefined) {
2026-07-23 10:11:24 +00:00
intl = require(1212) /* getSystemLocale */.intl;
stringResult = intl.string(require(1212) /* getSystemLocale */.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
const durationResult = importDefault(3713).duration(rateLimitPerUser, "seconds");
2026-07-20 16:05:17 +00:00
if (durationResult.days() > 0) {
2026-07-23 10:11:24 +00:00
const intl6 = require(1212) /* getSystemLocale */.intl;
let t = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
t = { days: durationResult.days() };
2026-07-23 10:11:24 +00:00
intl6.formatToPlainString(flag ? t.GBLpQ8 : t["k2UNz+"], t);
const tmp28 = flag ? t.GBLpQ8 : t["k2UNz+"];
2026-07-20 16:05:17 +00:00
} else if (durationResult.hours() > 0) {
2026-07-23 10:11:24 +00:00
const intl5 = require(1212) /* getSystemLocale */.intl;
let t1 = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
t1 = { hours: durationResult.hours() };
intl5.formatToPlainString(flag ? t1.rhY1Rs : t1.xCjYxK, t1);
const tmp22 = flag ? t1.rhY1Rs : t1.xCjYxK;
} else if (durationResult.minutes() > 0) {
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
let t2 = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
t2 = { minutes: durationResult.minutes() };
2026-07-23 10:11:24 +00:00
intl4.formatToPlainString(flag ? t2["XIGt+W"] : t2.iXLF9W, t2);
const tmp16 = flag ? t2["XIGt+W"] : t2.iXLF9W;
2026-07-20 16:05:17 +00:00
} else if (rateLimitPerUser > 0) {
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
let t3 = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
t3 = { seconds: durationResult.seconds() };
intl3.formatToPlainString(flag ? t3.pyvjRp : t3.geSp4K, t3);
const tmp10 = flag ? t3.pyvjRp : t3.geSp4K;
} else {
if (flag) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
stringResult = intl2.string(require(1212) /* getSystemLocale */.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
return stringResult;
}
};