decord/source/stores/native/AlertStore.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

40 lines
1 KiB
TypeScript

// Module ID: 11638
// Function ID: 11639
// Name: AlertStore
// Dependencies: [504, 573, 2]
// Module 11638 (AlertStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
let c0 = null;
let closure_1 = -1;
let c2 = null;
const Store = initializeDefault.Store;
class AlertStore extends Store {
}
const prototype = AlertStore.prototype;
prototype["getAlert"] = function getAlert() {
return c0;
};
prototype["getAlertKey"] = function getAlertKey() {
return "alert-store-" + closure_1;
};
prototype["isAlertDismissable"] = function isAlertDismissable() {
return c2;
};
AlertStore.displayName = "AlertStore";
const alertStore = new AlertStore(DispatcherDefault, {
ALERT_OPEN: function handleOpen(arg0) {
closure_1 = closure_1 + 1;
({ alert: c0, isDismissable: c2 } = arg0);
},
ALERT_CLOSE: function handleClose() {
c0 = null;
c2 = null;
}
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/native/AlertStore.tsx");
export default alertStore;