decord/source/modules/vibegrations/lib/VibegrationsWorkerTickets.tsx

51 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 16680
// Function ID: 16681
// Name: VibegrationsWorkerTickets
// Dependencies: [5, 1074, 1272, 16681, 2]
2026-09-02 09:53:35 +00:00
// Exports: mintRemixTicket, mintWorkerTicket
// Module 16680 (VibegrationsWorkerTickets)
import HTTPUtils from "HTTPUtils" /* 1272 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-09-02 09:53:35 +00:00
require = fn;
function mintTicket() {
2026-09-02 09:53:35 +00:00
const self = this;
const apply = closure_5.apply;
2026-09-02 09:53:35 +00:00
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
let closure_5 = async function _mintTicket(url) {
c4 = 0;
c5 = 0;
return (async (arg0, value) => {
closure_3 = tmp5;
closure_2 = tmp2;
const HTTP = HTTPUtils.HTTP;
await HTTP.post({ url, rejectWithError: true });
const body = value.body;
const obj7 = { ticket: body.ticket, baseUrl: null };
const vibegrationsTunnelWorkerOrigin = closure_131_0(closure_131_1[3]).getVibegrationsTunnelWorkerOrigin();
url = vibegrationsTunnelWorkerOrigin;
if (vibegrationsTunnelWorkerOrigin == null) {
url = body.url;
}
obj7.baseUrl = url;
return obj7;
})();
};
const Endpoints = fn(1074).Endpoints;
const size = fn(2);
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsWorkerTickets.tsx");
2026-09-02 09:53:35 +00:00
export const mintWorkerTicket = function mintWorkerTicket(arg0) {
return mintTicket(Endpoints.VIBEGRATIONS_PROJECT_WS_TICKET(arg0));
2026-09-02 09:53:35 +00:00
};
export const mintRemixTicket = function mintRemixTicket(arg0) {
return mintTicket(Endpoints.VIBEGRATIONS_PROJECT_REMIX_TICKET(arg0));
2026-09-02 09:53:35 +00:00
};