decord/source/modules/share/native/showSharePreparingModal.tsx

49 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 8296
// Function ID: 8297
2026-08-04 08:36:32 +00:00
// Name: showSharePreparingModal
// Dependencies: [8294, 4731, 8297, 2008, 2]
2026-08-04 08:36:32 +00:00
// Exports: showSharePreparingModal
// Module 8296 (showSharePreparingModal)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import SHARE_PREPARING_MODAL_KEY2 from "SHARE_PREPARING_MODAL_KEY" /* 8294 */;
2026-08-04 08:36:32 +00:00
2026-08-24 06:08:38 +00:00
const SHARE_PREPARING_MODAL_KEY = SHARE_PREPARING_MODAL_KEY2.SHARE_PREPARING_MODAL_KEY;
const result = set.fileFinishedImporting("modules/share/native/showSharePreparingModal.tsx");
2026-08-04 08:36:32 +00:00
export const showSharePreparingModal = function showSharePreparingModal(onCancel) {
onCancel = onCancel.onCancel;
let timeout;
2026-08-24 06:08:38 +00:00
c1 = false;
2026-08-04 08:36:32 +00:00
timeout = setTimeout(() => {
let obj = callback(paths[1]);
obj = {
onCancel() {
if (!c1) {
c1 = true;
const _clearTimeout = clearTimeout;
clearTimeout(closure_2);
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[1]).popWithKey(closure_1_3);
2026-08-04 08:36:32 +00:00
callback();
2026-08-24 06:08:38 +00:00
const obj = closure_1_1(closure_1_2[1]);
2026-08-04 08:36:32 +00:00
}
}
};
2026-08-24 06:08:38 +00:00
obj.pushLazy(onCancel(paths[3])(paths[2], paths.paths), obj, closure_1_3, { animation: "fade", presentation: "transparentModal" }).then(() => {
2026-08-04 08:36:32 +00:00
if (closure_1) {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[1]).popWithKey(closure_1_3);
const obj = closure_1_1(closure_1_2[1]);
2026-08-04 08:36:32 +00:00
}
});
}, 1000);
return () => {
if (!callback) {
callback = true;
const _clearTimeout = clearTimeout;
clearTimeout(paths);
2026-08-24 06:08:38 +00:00
callback(paths[1]).popWithKey(closure_1_3);
2026-08-04 08:36:32 +00:00
const obj = callback(paths[1]);
}
};
};