2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 16995
|
|
|
|
|
// Function ID: 16996
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: ToastStore
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [504, 573, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 16995 (ToastStore)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initializeDefault from "initialize" /* 504 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c0 = null;
|
2026-08-24 06:08:38 +00:00
|
|
|
const Store = initializeDefault.Store;
|
2026-07-29 08:29:29 +00:00
|
|
|
class ToastStore extends Store {
|
|
|
|
|
constructor() {
|
|
|
|
|
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
applyArgumentsResult.getContent = function getContent() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return _null;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
ToastStore.displayName = "ToastStore";
|
2026-09-10 05:38:07 +00:00
|
|
|
const toastStore = new ToastStore(DispatcherDefault, {
|
2026-07-20 16:05:17 +00:00
|
|
|
TOAST_OPEN: function handleOpen(toastProps) {
|
|
|
|
|
toastProps = toastProps.toastProps;
|
|
|
|
|
let key;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (_null != null) {
|
|
|
|
|
key = _null.key;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (key === toastProps.key) {
|
|
|
|
|
return false;
|
2026-09-10 05:38:07 +00:00
|
|
|
} else {
|
|
|
|
|
_null = toastProps;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
TOAST_CLOSE: function handleClose() {
|
2026-08-24 06:08:38 +00:00
|
|
|
c0 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/toast/native/ToastStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default toastStore;
|