decord/source/modules/vibegrations/lib/VibegrationsRestorePanelOp.tsx
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

56 lines
1.9 KiB
TypeScript

// Module ID: 16914
// Function ID: 16915
// Name: VibegrationsRestorePanelOp
// Dependencies: [1115, 3676, 2]
// Exports: restoreEnvironmentLabel, restorePanelEnvironments, restorePanelStatusForEnvironment, restorePointOriginLabel
// Module 16914 (VibegrationsRestorePanelOp)
import util from "util" /* 1115 */;
import _modDef3676 from "module_3676" /* 3676 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsRestorePanelOp.tsx");
export const RESTORE_WINDOW_DAYS = 30;
export const restorePointOriginLabel = function restorePointOriginLabel(origin) {
if ("auto_deploy" === origin) {
const intl3 = util.intl;
return intl3.string(_modDef3676.h4zhWL);
} else if ("undo" === origin) {
const intl2 = util.intl;
return intl2.string(_modDef3676["c/tNny"]);
} else {
const intl = util.intl;
return intl.string(_modDef3676["jViU+0"]);
}
};
export const restoreEnvironmentLabel = function restoreEnvironmentLabel(item) {
const intl = util.intl;
if ("preview" === item) {
let prop = _modDef3676["/kYdZe"];
} else {
prop = _modDef3676["1/CVzo"];
}
return intl.string(prop);
};
export function restorePanelEnvironments(installScope) {
return "user" === installScope ? ["stable"] : ["preview", "stable"];
}
export const restorePanelStatusForEnvironment = function restorePanelStatusForEnvironment(phase, arg1) {
if ("busy" === phase.phase) {
if ("restore" !== phase.kind) {
let obj3 = { kind: "none" };
}
obj3 = { kind: "pending" };
} else {
if ("settled" === phase.phase) {
if (phase.environment === arg1) {
({ tone: obj2.tone, text: obj2.text } = phase);
let obj = { kind: "notice", tone: null, text: null };
const obj5 = { kind: "notice", tone: null, text: null };
}
return obj;
}
obj = { kind: "none" };
}
};