decord/stable/source/modules/vibegrations/lib/VibegrationsDuration.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

61 lines
2.1 KiB
TypeScript

// Module ID: 17039
// Function ID: 17040
// Name: VibegrationsDuration
// Dependencies: [1115, 3710, 2]
// Exports: describeDuration, describeTurnDuration
// Module 17039 (VibegrationsDuration)
import util from "util" /* 1115 */;
import _modDef3710 from "module_3710" /* 3710 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsDuration.tsx");
export const describeDuration = function describeDuration(durationMs) {
const bound = Math.max(1, Math.round(durationMs / 1000));
if (bound < 60) {
const intl3 = util.intl;
const obj = { count: bound };
return intl3.formatToPlainString(_modDef3710.RsOwXc, obj);
} else {
const _Math2 = Math;
const rounded = Math.round(bound / 60);
if (rounded < 60) {
const intl2 = util.intl;
const obj2 = { count: rounded };
let formatToPlainStringResult = intl2.formatToPlainString(_modDef3710["z+U4YX"], obj2);
} else {
const intl = util.intl;
const time = { hours: null, minutes: null };
const _Math = Math;
time.hours = Math.floor(rounded / 60);
time.minutes = rounded % 60;
formatToPlainStringResult = intl.formatToPlainString(_modDef3710["7Q/vz0"], time);
}
return formatToPlainStringResult;
}
};
export const describeTurnDuration = function describeTurnDuration(durationMs) {
const bound = Math.max(1, Math.round(durationMs / 1000));
if (bound < 60) {
const intl3 = util.intl;
const obj = { count: bound };
return intl3.formatToPlainString(_modDef3710["49T8W0"], obj);
} else {
const _Math2 = Math;
const rounded = Math.round(bound / 60);
if (rounded < 60) {
const intl2 = util.intl;
const obj2 = { count: rounded };
let formatToPlainStringResult = intl2.formatToPlainString(_modDef3710.NkZO2t, obj2);
} else {
const intl = util.intl;
const time = { hours: null, minutes: null };
const _Math = Math;
time.hours = Math.floor(rounded / 60);
time.minutes = rounded % 60;
formatToPlainStringResult = intl.formatToPlainString(_modDef3710["2qYUUZ"], time);
}
return formatToPlainStringResult;
}
};