decord/source/5242_MountRegistry.js

85 lines
2.4 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5242
2026-07-27 11:26:19 +00:00
// Function ID: 45270
2026-07-20 16:05:17 +00:00
// Name: MountRegistry
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 5242 (MountRegistry)
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
const tmp2 = (() => {
2026-07-20 16:05:17 +00:00
class MountRegistry {
constructor() {
tmp = MountRegistry(this, MountRegistry);
return;
}
}
let obj = {
key: "addMountListener",
value: function addMountListener(arg0) {
2026-07-23 10:11:24 +00:00
let _classCallCheck = arg0;
2026-07-20 16:05:17 +00:00
const self = this;
2026-07-23 10:11:24 +00:00
let mountListeners = this.mountListeners;
2026-07-20 16:05:17 +00:00
mountListeners.add(arg0);
return () => {
const mountListeners = self.mountListeners;
2026-07-23 10:11:24 +00:00
mountListeners.delete(_classCallCheck);
2026-07-20 16:05:17 +00:00
};
}
};
const items = [obj, , , , , ];
obj = {
key: "addUnmountListener",
value: function addUnmountListener(arg0) {
2026-07-23 10:11:24 +00:00
let _classCallCheck = arg0;
2026-07-20 16:05:17 +00:00
const self = this;
2026-07-23 10:11:24 +00:00
let unmountListeners = this.unmountListeners;
2026-07-20 16:05:17 +00:00
unmountListeners.add(arg0);
return () => {
const unmountListeners = self.unmountListeners;
2026-07-23 10:11:24 +00:00
unmountListeners.delete(_classCallCheck);
2026-07-20 16:05:17 +00:00
};
}
};
items[1] = obj;
obj = {
key: "gestureHandlerWillMount",
2026-07-23 10:11:24 +00:00
value: function gestureHandlerWillMount(outer1_0) {
let _classCallCheck = outer1_0;
2026-07-20 16:05:17 +00:00
const mountListeners = this.mountListeners;
2026-07-23 10:11:24 +00:00
const item = mountListeners.forEach((arg0) => arg0(_classCallCheck));
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "gestureHandlerWillUnmount",
value: function gestureHandlerWillUnmount(self) {
2026-07-23 10:11:24 +00:00
let _classCallCheck = self;
2026-07-20 16:05:17 +00:00
const unmountListeners = this.unmountListeners;
2026-07-23 10:11:24 +00:00
const item = unmountListeners.forEach((arg0) => arg0(_classCallCheck));
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "gestureWillMount",
value: function gestureWillMount(arg0) {
2026-07-23 10:11:24 +00:00
let _classCallCheck = arg0;
2026-07-20 16:05:17 +00:00
const mountListeners = this.mountListeners;
2026-07-23 10:11:24 +00:00
const item = mountListeners.forEach((arg0) => arg0(_classCallCheck));
2026-07-20 16:05:17 +00:00
}
};
items[5] = {
key: "gestureWillUnmount",
value: function gestureWillUnmount(nextResult) {
2026-07-23 10:11:24 +00:00
let _classCallCheck = nextResult;
2026-07-20 16:05:17 +00:00
const unmountListeners = this.unmountListeners;
2026-07-23 10:11:24 +00:00
const item = unmountListeners.forEach((arg0) => arg0(_classCallCheck));
2026-07-20 16:05:17 +00:00
}
};
return callback(MountRegistry, null, items);
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
tmp2.mountListeners = new Set();
const set = new Set();
tmp2.unmountListeners = new Set();
export const MountRegistry = tmp2;