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

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9075
// Function ID: 9076
2026-08-04 08:36:32 +00:00
// Name: showSharePreparingModal
2026-08-25 06:04:03 +00:00
// Dependencies: [9073, 4611, 9076, 2009, 2]
2026-08-04 08:36:32 +00:00
// Exports: showSharePreparingModal
2026-08-25 06:04:03 +00:00
// Module 9075 (showSharePreparingModal)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import SHARE_PREPARING_MODAL_KEY2 from "SHARE_PREPARING_MODAL_KEY" /* 9073 */;
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]);
}
};
};