decord/beta/source/modules/vibegrations/lib/vibegrationsProjectMenuItems.tsx
2026-10-01 14:13:23 +00:00

52 lines
1.8 KiB
TypeScript

// Module ID: 16311
// Function ID: 16312
// Name: vibegrationsProjectMenuItems
// Dependencies: [1115, 3715, 2]
// Exports: previewMenuItems
// Module 16311 (vibegrationsProjectMenuItems)
import intl4 from "intl" /* 1115 */;
import _modDef3715 from "module_3715" /* 3715 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/vibegrations/lib/vibegrationsProjectMenuItems.tsx");
export const previewMenuItems = function previewMenuItems(canRefresh) {
let connectPending;
let intl;
let intl2;
let intl3;
let obj3;
let obj5;
let offers;
({ offers, connectPending } = canRefresh);
const items = [];
if (canRefresh.canRefresh) {
const push = items.push;
const obj = { id: "preview-refresh", label: intl.string(_modDef3715["8oRfMw"]), kind: "refresh", disabled: tmp };
intl = intl4.intl;
push(obj);
}
const iter = offers[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
let obj4;
let connection = nextResult.connection;
let push2 = items.push;
if ("authorize" === nextResult.offer) {
let obj2 = { id: "preview-connect-" + connection.type, label: intl2.formatToPlainString(_modDef3715.JXACNA, obj3), kind: "connect", connectionType: connection.type, disabled: connectPending.has(connection.type) };
let _HermesInternal = HermesInternal;
intl2 = intl4.intl;
obj3 = { label: connection.label };
obj4 = obj2;
} else {
obj4 = { id: "preview-connect-" + connection.type, label: intl3.formatToPlainString(_modDef3715.JMd7xW, obj5), kind: "connect", connectionType: connection.type, disabled: true };
let _HermesInternal2 = HermesInternal;
intl3 = intl4.intl;
obj5 = { label: connection.label };
}
let push2Result = push2(obj4);
continue;
}
return items;
};