Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
51 lines
1.9 KiB
TypeScript
51 lines
1.9 KiB
TypeScript
// Module ID: 16988
|
|
// Function ID: 16989
|
|
// Name: vibegrationsProjectMenuItems
|
|
// Dependencies: [1115, 3678, 2]
|
|
// Exports: previewMenuItems
|
|
|
|
// Module 16988 (vibegrationsProjectMenuItems)
|
|
import util from "util" /* 1115 */;
|
|
import _modDef3678 from "module_3678" /* 3678 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/vibegrations/lib/vibegrationsProjectMenuItems.tsx");
|
|
|
|
export const previewMenuItems = function previewMenuItems(canRefresh) {
|
|
({ offers, connectPending } = canRefresh);
|
|
const items = [];
|
|
if (canRefresh.canRefresh) {
|
|
const obj = { id: "preview-refresh", label: null, kind: "refresh", disabled: null };
|
|
const intl = util.intl;
|
|
obj.label = intl.string(_modDef3678["8oRfMw"]);
|
|
obj.disabled = tmp;
|
|
items.push(obj);
|
|
}
|
|
const iter = offers[Symbol.iterator]();
|
|
const nextResult = iter.next();
|
|
while (iter !== undefined) {
|
|
let connection = nextResult.connection;
|
|
if ("authorize" === nextResult.offer) {
|
|
let obj2 = { id: null, label: null, kind: "connect", connectionType: null, disabled: null };
|
|
let _HermesInternal = HermesInternal;
|
|
obj2.id = "preview-connect-" + connection.type;
|
|
let intl2 = util.intl;
|
|
let obj3 = { label: connection.label };
|
|
obj2.label = intl2.formatToPlainString(_modDef3678.JXACNA, obj3);
|
|
obj2.connectionType = connection.type;
|
|
obj2.disabled = connectPending.has(connection.type);
|
|
let obj4 = obj2;
|
|
} else {
|
|
obj4 = { id: null, label: null, kind: "connect", connectionType: null, disabled: true };
|
|
let _HermesInternal2 = HermesInternal;
|
|
obj4.id = "preview-connect-" + connection.type;
|
|
let intl3 = util.intl;
|
|
let obj5 = { label: connection.label };
|
|
obj4.label = intl3.formatToPlainString(_modDef3678.JMd7xW, obj5);
|
|
obj4.connectionType = connection.type;
|
|
}
|
|
let arr3 = items.push(obj4);
|
|
continue;
|
|
}
|
|
return items;
|
|
};
|