2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 16353
|
|
|
|
|
// Function ID: 16354
|
2026-09-29 21:26:22 +00:00
|
|
|
// Name: VibegrationsTaskOutcome
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [1127, 3718, 16352, 2]
|
2026-09-29 21:26:22 +00:00
|
|
|
// Exports: describeTaskOutcome, taskTitle
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 16353 (VibegrationsTaskOutcome)
|
|
|
|
|
import intl7 from "intl" /* 1127 */;
|
|
|
|
|
import _modDef3718 from "module_3718" /* 3718 */;
|
|
|
|
|
import VibegrationsDuration from "VibegrationsDuration" /* 16352 */;
|
2026-09-29 21:26:22 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsTaskOutcome.tsx");
|
|
|
|
|
|
|
|
|
|
export const taskTitle = function taskTitle(task) {
|
|
|
|
|
if (null != task.labelText) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let labelText;
|
2026-09-29 21:26:22 +00:00
|
|
|
if ("" !== task.labelText) {
|
2026-10-06 22:12:49 +00:00
|
|
|
labelText = task.labelText;
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
return labelText;
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl = intl7.intl;
|
|
|
|
|
labelText = intl.string(_modDef3718.MdXWEK);
|
2026-09-29 21:26:22 +00:00
|
|
|
};
|
|
|
|
|
export const describeTaskOutcome = function describeTaskOutcome(task) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let obj;
|
|
|
|
|
let obj2;
|
|
|
|
|
let obj6;
|
2026-09-29 21:26:22 +00:00
|
|
|
if (null != task.labelText) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let str2;
|
2026-09-29 21:26:22 +00:00
|
|
|
if ("" !== task.labelText) {
|
2026-10-06 22:12:49 +00:00
|
|
|
str2 = task.labelText;
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
const items = [str2.charAt(0), str2.charAt(1)];
|
|
|
|
|
[obj, obj2] = items;
|
|
|
|
|
let sum = str2;
|
|
|
|
|
if (obj === obj.toLocaleUpperCase()) {
|
|
|
|
|
sum = str2;
|
|
|
|
|
if (obj2 === obj2.toLocaleLowerCase()) {
|
|
|
|
|
const toLocaleLowerCaseResult = obj.toLocaleLowerCase();
|
2026-10-06 22:12:49 +00:00
|
|
|
sum = toLocaleLowerCaseResult + str2.slice(1);
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const status = task.status;
|
|
|
|
|
if ("failed" === status) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl6 = intl7.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
const obj3 = { task: sum };
|
2026-10-06 22:12:49 +00:00
|
|
|
return intl6.formatToPlainString(_modDef3718["5uv8y0"], obj3);
|
2026-09-29 21:26:22 +00:00
|
|
|
} else if ("cancelled" === status) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl5 = intl7.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
const obj4 = { task: sum };
|
2026-10-06 22:12:49 +00:00
|
|
|
return intl5.formatToPlainString(_modDef3718["oEzDO/"], obj4);
|
2026-09-29 21:26:22 +00:00
|
|
|
} else if ("done" === status) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let formatToPlainStringResult;
|
2026-09-29 21:26:22 +00:00
|
|
|
if (null != task.durationMs) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl4 = intl7.intl;
|
|
|
|
|
const formatToPlainString = intl4.formatToPlainString;
|
|
|
|
|
const obj5 = { task: sum, duration: obj6.describeDuration(task.durationMs) };
|
|
|
|
|
const vuv9bT = _modDef3718.vuv9bT;
|
|
|
|
|
obj6 = VibegrationsDuration;
|
|
|
|
|
formatToPlainStringResult = formatToPlainString(vuv9bT, obj5);
|
2026-09-29 21:26:22 +00:00
|
|
|
} else {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl3 = intl7.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
const obj7 = { task: sum };
|
2026-10-06 22:12:49 +00:00
|
|
|
formatToPlainStringResult = intl3.formatToPlainString(_modDef3718.KS49RN, obj7);
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
return formatToPlainStringResult;
|
|
|
|
|
} else {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl2 = intl7.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
const obj8 = { task: sum };
|
2026-10-06 22:12:49 +00:00
|
|
|
return intl2.formatToPlainString(_modDef3718.KS49RN, obj8);
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl = intl7.intl;
|
|
|
|
|
str2 = intl.string(_modDef3718.MdXWEK);
|
2026-09-29 21:26:22 +00:00
|
|
|
};
|