decord/source/stores/LayerStore.tsx

91 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 11536
// Function ID: 89850
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 566, 686, 2]
2026-07-24 07:16:23 +00:00
// Module 11536 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import set from "set";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let dispatcher = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return dispatcher;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
function handlePopAllLayers() {
let closure_5 = [];
}
let closure_5 = [];
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class LayerStore {
constructor() {
self = this;
tmp = LayerStore(this, LayerStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(LayerStore);
tmp2 = outer1_2;
if (outer1_6()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(LayerStore, Store);
let obj = {
key: "hasLayers",
value() {
2026-07-23 10:11:24 +00:00
return outer1_5.length > 0;
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, ];
obj = {
key: "getLayers",
value() {
2026-07-23 10:11:24 +00:00
return outer1_5;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
return callback(LayerStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "LayerStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
LAYER_PUSH: function handleAddLayer(component) {
component = component.component;
2026-07-23 10:11:24 +00:00
if (items.indexOf(component) >= 0) {
2026-07-20 16:05:17 +00:00
return false;
} else {
2026-07-23 10:11:24 +00:00
items = [];
const arraySpreadResult = HermesBuiltin.arraySpread(items, 0);
2026-07-20 16:05:17 +00:00
items[arraySpreadResult] = component;
const sum = arraySpreadResult + 1;
}
},
LAYER_POP: function handleRemoveLayer() {
if (0 === arr.length) {
return false;
} else {
2026-07-23 10:11:24 +00:00
arr = arr.slice(0, -1);
2026-07-20 16:05:17 +00:00
}
},
LAYER_POP_ALL: handlePopAllLayers,
LOGOUT: handlePopAllLayers,
NOTIFICATION_CLICK: handlePopAllLayers
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/LayerStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;