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