decord/source/stores/native/AlertStore.tsx

41 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 11616
// Function ID: 11617
// Name: AlertStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 11616 (AlertStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = null;
let closure_1 = -1;
2026-07-29 08:29:29 +00:00
let c2 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class AlertStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = AlertStore.prototype;
prototype["getAlert"] = function getAlert() {
return c0;
};
prototype["getAlertKey"] = function getAlertKey() {
return "alert-store-" + closure_1;
2026-07-29 08:29:29 +00:00
};
prototype["isAlertDismissable"] = function isAlertDismissable() {
return c2;
};
AlertStore.displayName = "AlertStore";
const alertStore = new AlertStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
ALERT_OPEN: function handleOpen(arg0) {
2026-07-29 08:29:29 +00:00
closure_1 = closure_1 + 1;
({ alert: c0, isDismissable: c2 } = arg0);
2026-07-20 16:05:17 +00:00
},
ALERT_CLOSE: function handleClose() {
2026-08-24 06:08:38 +00:00
c0 = null;
c2 = null;
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/native/AlertStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default alertStore;