decord/source/stores/ConnectedAppsStore.tsx

136 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5068
2026-07-27 11:26:19 +00:00
// Function ID: 44004
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 22, 566, 686, 2]
2026-07-25 08:10:48 +00:00
// Module 5068 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import initialize from "initialize";
import dispatcher from "dispatcher";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_7 = {};
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class ConnectedAppsStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, ConnectedAppsStore);
obj = outer1_5(ConnectedAppsStore);
tmp2 = outer1_4;
if (outer1_8()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_5;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(ConnectedAppsStore, Store);
let obj = {
key: "isConnected",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_7[arg0];
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , , ];
obj = {
key: "isChildConnected",
value(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
let someResult = null != arg0;
if (someResult) {
const _Object = Object;
2026-07-23 10:11:24 +00:00
const values = Object.values(outer1_7);
someResult = values.some((parentId) => parentId.parentId === closure_0);
2026-07-20 16:05:17 +00:00
}
return someResult;
}
};
items[1] = obj;
obj = {
key: "connections",
get() {
2026-07-23 10:11:24 +00:00
return ConnectedAppsStore(outer1_1[5]).values(outer1_7);
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "getApplication",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_7[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "getAllConnections",
value() {
2026-07-23 10:11:24 +00:00
return outer1_7;
2026-07-20 16:05:17 +00:00
}
};
return callback(ConnectedAppsStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "ConnectedAppsStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
OVERLAY_INITIALIZE: function handleOverlayInitialize(connectedApps) {
2026-07-23 10:11:24 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(connectedApps.connectedApps);
},
RPC_APP_CONNECTED: function handleAppConnection(application) {
application = application.application;
if (null == application.id) {
return false;
} else {
const id = application.id;
2026-07-23 10:11:24 +00:00
if (null == dependencyMap[id]) {
2026-07-20 16:05:17 +00:00
const obj = { count: 0 };
({ id: obj.id, parentId: obj.parentId, name: obj.name, icon: obj.icon, coverImage: obj.coverImage } = application);
obj.authenticated = false;
2026-07-23 10:11:24 +00:00
dependencyMap[id] = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
dependencyMap[id].count = dependencyMap[id].count + 1;
2026-07-20 16:05:17 +00:00
}
},
RPC_APP_AUTHENTICATED: function handleAppAuthenticated(application) {
application = application.application;
let tmp = null != application.id;
if (tmp) {
2026-07-23 10:11:24 +00:00
tmp = null != dependencyMap[application.id];
2026-07-20 16:05:17 +00:00
}
if (tmp) {
2026-07-23 10:11:24 +00:00
dependencyMap[application.id].authenticated = true;
2026-07-20 16:05:17 +00:00
}
},
RPC_APP_DISCONNECTED: function handleAppDisconnection(application) {
application = application.application;
2026-07-23 10:11:24 +00:00
let tmp3 = null != application.id;
if (tmp3) {
tmp3 = null != dependencyMap[application.id];
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if (tmp3) {
dependencyMap[application.id].count = dependencyMap[application.id].count - 1;
if (0 === dependencyMap[application.id].count) {
2026-07-20 16:05:17 +00:00
const id = application.id;
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
}
}
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/ConnectedAppsStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;