decord/source/lib/AutomaticLifecycleManager.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

76 lines
2.1 KiB
TypeScript

// Module ID: 7118
// Function ID: 7119
// Name: initialize
// Dependencies: [573, 2]
// Module 7118 (initialize)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("lib/AutomaticLifecycleManager.tsx");
class AutomaticLifecycleManager {
constructor() {
obj = Object.create(new.target.prototype);
obj[1] = {};
map = new Map();
obj[2] = map;
return obj;
}
}
const prototype = AutomaticLifecycleManager.prototype;
prototype["initialize"] = function initialize() {
const self = this;
this.initializedCount = this.initializedCount + 1;
if (this.initializedCount <= 1) {
self._initialize();
const _Object = Object;
const entries = Object.entries(self.actions);
const item = entries.forEach((arg0) => {
[tmp, tmp2] = arg0;
let callback = tmp2;
if (typeof tmp2 !== "function") {
callback = tmp2.callback;
}
const subscription = callback(table[0]).subscribe(tmp, callback);
});
const stores = self.stores;
const item1 = stores.forEach((onChange, addChangeListener) => {
addChangeListener.addChangeListener(onChange);
onChange();
});
}
};
prototype["terminate"] = function terminate(arg0) {
const self = this;
if (this.initializedCount > 0) {
if (arg0) {
self.initializedCount = 0;
} else {
self.initializedCount = self.initializedCount - 1;
}
if (0 === self.initializedCount) {
self._terminate();
const _Object = Object;
const entries = Object.entries(self.actions);
const item = entries.forEach((arg0) => {
[tmp, tmp2] = arg0;
let callback = tmp2;
if (typeof tmp2 !== "function") {
callback = tmp2.callback;
}
callback(table[0]).unsubscribe(tmp, callback);
});
const stores = self.stores;
const item1 = stores.forEach((arg0, removeChangeListener) => {
removeChangeListener.removeChangeListener(arg0);
});
}
}
};
prototype["_initialize"] = function _initialize() {
};
prototype["_terminate"] = function _terminate() {
};
export default AutomaticLifecycleManager;