decord/alpha/source/modules/links/native/handleContentLinking.tsx

168 lines
5.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 9645
// Function ID: 9646
// Name: handleContentLinking
2026-10-09 10:00:15 +00:00
// Dependencies: [5, 6139, 1085, 5941, 6943, 1112, 9646, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 9645 (handleContentLinking)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import PostConnectionCallbackStore from "PostConnectionCallbackStore" /* 6139 */;
2026-10-03 08:58:59 +00:00
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let obj = function _handleContentLinking() {
obj = _asyncToGenerator(async function(arg0, value) {
let c0;
let c1;
let c2;
let c3;
let c4;
2026-10-06 11:16:32 +00:00
let tmp44;
2026-10-03 08:58:59 +00:00
let closure_0 = arg0;
if (c4 === 2) {
c4 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
2026-07-29 08:29:29 +00:00
} else {
2026-10-05 08:00:40 +00:00
return { value: "IconComponent", done: null };
2026-10-03 08:58:59 +00:00
}
} else {
try {
let safe;
let navigationReplace;
let waitForConnection;
let closure_9;
let skipMessageFetch;
2026-10-06 11:16:32 +00:00
let isAppStartupNavigation;
2026-10-03 08:58:59 +00:00
c4 = 2;
if (0 === c3) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
2026-10-03 08:58:59 +00:00
const obj4 = { value, done: true };
return obj4;
2026-07-29 08:29:29 +00:00
} else {
2026-10-03 08:58:59 +00:00
let closure_1 = tmp;
c0 = undefined;
c1 = undefined;
c2 = undefined;
({ guildId: c0, channelId: c1, navigationSettings: c2, messageId: c3, summaryId: c4 } = closure_0);
safe = undefined;
navigationReplace = undefined;
waitForConnection = undefined;
closure_9 = undefined;
skipMessageFetch = undefined;
2026-10-06 11:16:32 +00:00
isAppStartupNavigation = undefined;
2026-10-03 08:58:59 +00:00
c3 = 1;
c4 = 1;
2026-10-09 10:00:15 +00:00
return { value: "Set", done: true };
2026-07-29 08:29:29 +00:00
}
} else {
2026-10-03 08:58:59 +00:00
if (1 === c3) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
2026-10-03 08:58:59 +00:00
const obj6 = { value, done: true };
return obj6;
} else {
const obj12 = closure_130_1(closure_130_2[3]);
obj12.popAll();
safe = c2.safe;
navigationReplace = c2.navigationReplace;
const tmp6 = undefined === navigationReplace || navigationReplace;
navigationReplace = tmp6;
waitForConnection = c2.waitForConnection;
const tmp10 = undefined === waitForConnection || waitForConnection;
closure_9 = tmp10;
skipMessageFetch = c2.skipMessageFetch;
2026-10-06 11:16:32 +00:00
isAppStartupNavigation = c2.isAppStartupNavigation;
const tmp15 = closure_9;
if (tmp15) {
2026-10-03 08:58:59 +00:00
if (closure_130_6 != null) {
closure_130_6();
}
const self = this;
const self2 = this;
const promise = new Promise((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
2026-10-06 11:16:32 +00:00
function l() {
2026-10-03 08:58:59 +00:00
const error = new Error("superseded");
return closure_1(error);
}
closure_4(() => {
c6 = null;
closure_0();
});
});
c3 = 2;
c4 = 1;
const obj7 = { value: promise, done: false };
return obj7;
}
}
} else {
if (2 === c3) {
if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
const obj8 = { value, done: true };
return obj8;
}
} else if (arg0 === 1) {
c4 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 3;
obj = { value, done: true };
return obj;
}
2026-10-06 11:16:32 +00:00
const tmp32 = null != c1 && null != c4;
if (tmp32) {
2026-10-03 08:58:59 +00:00
const obj5 = closure_130_1(closure_130_2[6]);
obj5.setSelectedSummary(c1, c4);
}
c4 = 3;
2026-10-05 08:00:40 +00:00
return { value: "IconComponent", done: null };
}
2026-10-03 08:58:59 +00:00
if (safe) {
2026-10-06 11:16:32 +00:00
const obj9 = { navigationReplace, openChannel: true, skipMessageFetch, isAppStartupNavigation };
2026-10-03 08:58:59 +00:00
c3 = 3;
c4 = 1;
2026-10-06 11:16:32 +00:00
const obj10 = { value: tmp44(closure_130_5.CHANNEL(c0, c1, c3), obj9), done: false };
tmp44 = closure_130_1(closure_130_2[4]);
2026-10-03 08:58:59 +00:00
return obj10;
} else {
2026-10-06 11:16:32 +00:00
const obj11 = { navigationReplace, openChannel: true, skipMessageFetch, isAppStartupNavigation };
2026-10-03 08:58:59 +00:00
const obj3 = closure_130_0(closure_130_2[5]);
obj3.transitionTo(closure_130_5.CHANNEL(c0, c1, c3), obj11);
}
2026-07-29 08:29:29 +00:00
}
2026-10-06 11:16:32 +00:00
} catch (tmp59) {
2026-10-03 08:58:59 +00:00
c4 = 3;
2026-10-06 11:16:32 +00:00
throw tmp59;
2026-07-29 08:29:29 +00:00
}
}
2026-10-03 08:58:59 +00:00
});
return obj(...arguments);
};
2026-10-03 08:58:59 +00:00
PostConnectionCallbackStore.addPostConnectionCallback;
const Routes = Constants.Routes;
2026-07-23 10:11:24 +00:00
let c6 = null;
const result = size.fileFinishedImporting("modules/links/native/handleContentLinking.tsx");
2026-07-20 16:05:17 +00:00
export default function handleContentLinking() {
2026-10-03 08:58:59 +00:00
return obj(...arguments);
2026-07-20 16:05:17 +00:00
};