decord/beta/source/components_native/common/Notifications.tsx

66 lines
2.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 12564
// Function ID: 12565
2026-10-02 13:37:24 +00:00
// Name: common/Notifications
2026-10-12 16:32:48 +00:00
// Dependencies: [19, 12565, 21, 558, 576, 504, 12584, 2]
2026-10-12 16:32:48 +00:00
// Module 12564 (common/Notifications)
2026-10-01 14:13:23 +00:00
import Fragment from "Fragment" /* 21 */;
2026-10-02 13:37:24 +00:00
import react2 from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import InAppNotificationContainerDefault from "InAppNotificationContainer" /* 12584 */;
2026-10-01 14:13:23 +00:00
import react from "react" /* 19 */;
2026-10-12 16:32:48 +00:00
import InAppNotificationStore from "InAppNotificationStore" /* 12565 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-02 13:37:24 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-01 14:13:23 +00:00
const jsx = Fragment.jsx;
2026-10-12 16:32:48 +00:00
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function Notifications() {
2026-10-02 13:37:24 +00:00
let currentNotification;
let tmp4;
let tmp5;
const obj = react2;
const cResult = obj.c(4);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [InAppNotificationStore];
const fn = function c() {
return currentNotification.getCurrentNotification();
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
const tmpResult = get_initialized;
const stateFromStores = tmpResult.useStateFromStores(tmp4, tmp5);
let tmp8 = null;
if (null != stateFromStores) {
let tmp9;
if (cResult[2] !== stateFromStores) {
const tmp12 = jsx(InAppNotificationContainerDefault, { notification: stateFromStores }, stateFromStores.key);
cResult[2] = stateFromStores;
cResult[3] = tmp12;
tmp9 = tmp12;
} else {
tmp9 = cResult[3];
}
tmp8 = tmp9;
}
return tmp8;
2026-10-12 16:32:48 +00:00
}) : (function Notifications() {
2026-10-01 14:13:23 +00:00
let currentNotification;
const items = [InAppNotificationStore];
2026-10-01 14:13:23 +00:00
const obj = get_initialized;
const stateFromStores = obj.useStateFromStores(items, () => currentNotification.getCurrentNotification());
let tmp3 = null;
if (null != stateFromStores) {
tmp3 = jsx(InAppNotificationContainerDefault, { notification: stateFromStores }, stateFromStores.key);
}
return tmp3;
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("components_native/common/Notifications.tsx");
export default tmp3;