Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
// Module ID: 16761
|
|
// Function ID: 16762
|
|
// Name: VibegrationsRestorePanelOp
|
|
// Dependencies: [1115, 3591, 2]
|
|
// Exports: restoreEnvironmentLabel, restorePanelEnvironments, restorePanelStatusForEnvironment, restorePointOriginLabel
|
|
|
|
// Module 16761 (VibegrationsRestorePanelOp)
|
|
import util from "util" /* 1115 */;
|
|
import _modDef3591 from "module_3591" /* 3591 */;
|
|
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(_modDef3591.h4zhWL);
|
|
} else if ("undo" === origin) {
|
|
const intl2 = util.intl;
|
|
return intl2.string(_modDef3591["c/tNny"]);
|
|
} else {
|
|
const intl = util.intl;
|
|
return intl.string(_modDef3591["jViU+0"]);
|
|
}
|
|
};
|
|
export const restoreEnvironmentLabel = function restoreEnvironmentLabel(item) {
|
|
const intl = util.intl;
|
|
if ("preview" === item) {
|
|
let prop = _modDef3591["/kYdZe"];
|
|
} else {
|
|
prop = _modDef3591["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" };
|
|
}
|
|
};
|