2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 16395
|
|
|
|
|
// Function ID: 16396
|
2026-09-29 21:26:22 +00:00
|
|
|
// Name: VibegrationsStatusLabels
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [3718, 1127, 5372, 2]
|
|
|
|
|
// Exports: connectionLabel, isRecallingLine, recallingLine, runesUsedLabels, thinkingLine
|
2026-09-29 21:26:22 +00:00
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 16395 (VibegrationsStatusLabels)
|
|
|
|
|
import intl4 from "intl" /* 1127 */;
|
|
|
|
|
import _modDef3718 from "module_3718" /* 3718 */;
|
|
|
|
|
import VibegrationsTypes from "VibegrationsTypes" /* 5372 */;
|
2026-09-29 21:26:22 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
function thinkingLabel(restoring) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let activity;
|
|
|
|
|
let compacting;
|
|
|
|
|
let ivvYHP;
|
2026-09-29 21:26:22 +00:00
|
|
|
({ activity, compacting } = restoring);
|
|
|
|
|
if (compacting === undefined) {
|
|
|
|
|
compacting = false;
|
|
|
|
|
}
|
|
|
|
|
let flag = restoring.restoring;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
let flag2 = restoring.recalling;
|
2026-09-29 21:26:22 +00:00
|
|
|
if (flag2 === undefined) {
|
|
|
|
|
flag2 = false;
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
let flag3 = restoring.controlling;
|
|
|
|
|
if (flag3 === undefined) {
|
|
|
|
|
flag3 = false;
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
const tmp = null != activity && "end" !== activity.phase;
|
|
|
|
|
if (flag3) {
|
|
|
|
|
ivvYHP = _modDef3718.ivvYHP;
|
2026-09-29 21:26:22 +00:00
|
|
|
} else if (flag) {
|
2026-10-06 22:12:49 +00:00
|
|
|
ivvYHP = _modDef3718.aFffp2;
|
|
|
|
|
} else if (flag2) {
|
|
|
|
|
ivvYHP = items[0];
|
2026-09-29 21:26:22 +00:00
|
|
|
} else {
|
2026-10-06 22:12:49 +00:00
|
|
|
const tmp4 = _modDef3718;
|
|
|
|
|
if (compacting) {
|
|
|
|
|
ivvYHP = tmp4["0vH/5G"];
|
|
|
|
|
} else {
|
|
|
|
|
ivvYHP = tmp ? tmp4.Ly7F7x : tmp4.QDGuNS;
|
|
|
|
|
}
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
return ivvYHP;
|
|
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
const items = [_modDef3718.krnkPq, _modDef3718["8oUm/J"], _modDef3718["6Ea4dF"], _modDef3718.fQx5qC, _modDef3718["phXeK/"]];
|
2026-09-29 21:26:22 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsStatusLabels.tsx");
|
|
|
|
|
|
|
|
|
|
export const INDICATOR_PASS_MS = 1000;
|
|
|
|
|
export const INDICATOR_PASS_STAGGER_MS = 1800;
|
2026-10-06 22:12:49 +00:00
|
|
|
export const RECALLING_LINES = items;
|
|
|
|
|
export const recallingLine = function recallingLine(current) {
|
|
|
|
|
const intl = intl4.intl;
|
|
|
|
|
return intl.string(items[current % items.length]);
|
|
|
|
|
};
|
|
|
|
|
export const isRecallingLine = function isRecallingLine(current) {
|
|
|
|
|
let closure_0 = current;
|
|
|
|
|
return items.some((item) => {
|
|
|
|
|
const intl = intl4.intl;
|
|
|
|
|
return intl.string(item) === current;
|
|
|
|
|
});
|
|
|
|
|
};
|
2026-09-29 21:26:22 +00:00
|
|
|
export const connectionLabel = function connectionLabel(stateFromStores6) {
|
|
|
|
|
if ("connecting" === stateFromStores6) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl3 = intl4.intl;
|
|
|
|
|
return intl3.string(_modDef3718.W7oyuf);
|
2026-09-29 21:26:22 +00:00
|
|
|
} else if ("closed" === stateFromStores6) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl2 = intl4.intl;
|
|
|
|
|
return intl2.string(_modDef3718["yBmS+I"]);
|
2026-09-29 21:26:22 +00:00
|
|
|
} else if ("failed" === stateFromStores6) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl = intl4.intl;
|
|
|
|
|
return intl.string(_modDef3718.eE60xI);
|
2026-09-29 21:26:22 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export { thinkingLabel };
|
|
|
|
|
export const thinkingLine = function thinkingLine(restoring) {
|
2026-10-06 22:12:49 +00:00
|
|
|
const intl = intl4.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
return intl.string(thinkingLabel(restoring));
|
|
|
|
|
};
|
|
|
|
|
export const runesUsedLabels = function runesUsedLabels(projectUsage) {
|
2026-10-06 22:12:49 +00:00
|
|
|
let formatToPlainString;
|
|
|
|
|
let intl2;
|
|
|
|
|
let obj3;
|
|
|
|
|
let v4PFO2p;
|
|
|
|
|
const obj = VibegrationsTypes;
|
|
|
|
|
const runesFromUsdResult = obj.runesFromUsd(projectUsage.cost_usd);
|
|
|
|
|
const obj2 = { text: formatToPlainString(v4PFO2p, obj3), aria: intl2.formatToPlainString(_modDef3718["7SZZvj"], obj4) };
|
|
|
|
|
const intl = intl4.intl;
|
|
|
|
|
formatToPlainString = intl.formatToPlainString;
|
|
|
|
|
obj3 = { runes: runesFromUsdResult.toLocaleString() };
|
|
|
|
|
v4PFO2p = _modDef3718["4PFO2p"];
|
|
|
|
|
intl2 = intl4.intl;
|
2026-09-29 21:26:22 +00:00
|
|
|
return obj2;
|
|
|
|
|
};
|