decord/beta/source/modules/vibegrations/lib/vibegrationsProjectMenuItems.tsx

53 lines
1.8 KiB
TypeScript
Raw Normal View History

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