decord/source/utils/SecondsSliderUtils.tsx

57 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 15741
// Function ID: 15742
2026-07-20 16:05:17 +00:00
// Name: getSecondsSliderLabel
2026-08-05 07:35:12 +00:00
// Dependencies: [1236, 3837, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSecondsSliderLabel
2026-08-05 07:35:12 +00:00
// Module 15741 (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;
if (arg1 === undefined) {
flag = true;
}
2026-07-29 08:29:29 +00:00
let stringResult = intl;
if (intl === undefined) {
intl = require(1236) /* getSystemLocale */.intl;
stringResult = intl.string(require(1236) /* getSystemLocale */.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
2026-08-05 07:35:12 +00:00
const durationResult = importDefault(3837).duration(rateLimitPerUser, "seconds");
2026-07-20 16:05:17 +00:00
if (durationResult.days() > 0) {
2026-07-29 08:29:29 +00:00
const intl6 = require(1236) /* getSystemLocale */.intl;
let t = require(1236) /* getSystemLocale */.t;
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-07-29 08:29:29 +00:00
const intl5 = require(1236) /* getSystemLocale */.intl;
let t1 = require(1236) /* getSystemLocale */.t;
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-07-29 08:29:29 +00:00
const intl4 = require(1236) /* getSystemLocale */.intl;
let t2 = require(1236) /* getSystemLocale */.t;
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-07-29 08:29:29 +00:00
const intl3 = require(1236) /* getSystemLocale */.intl;
let t3 = require(1236) /* getSystemLocale */.t;
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-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
stringResult = intl2.string(require(1236) /* getSystemLocale */.t.Yl1D84);
2026-07-20 16:05:17 +00:00
}
return stringResult;
}
};