decord/source/stores/NetworkStore.tsx

101 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4223
2026-07-27 11:26:19 +00:00
// Function ID: 36865
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 653, 1430, 566, 686, 2]
2026-07-25 08:10:48 +00:00
// Module 4223 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import awaitOnline from "awaitOnline";
import initialize from "initialize";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import ME from "ME";
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();
}
function handleConnectionInfoChange(type) {
if (null != type.type) {
let UNKNOWN = type.type;
} else {
UNKNOWN = NetworkConnectionTypes.UNKNOWN;
}
let UNKNOWN2 = type.effectiveSpeed;
if (null == UNKNOWN2) {
UNKNOWN2 = NetworkConnectionSpeeds.UNKNOWN;
}
const serviceProvider = type.serviceProvider;
tmp3.emitChange();
}
2026-07-23 10:11:24 +00:00
const NetworkConnectionTypes = ME.NetworkConnectionTypes;
const NetworkConnectionSpeeds = ME.NetworkConnectionSpeeds;
2026-07-20 16:05:17 +00:00
let UNKNOWN = NetworkConnectionTypes.UNKNOWN;
UNKNOWN = NetworkConnectionSpeeds.UNKNOWN;
2026-07-23 10:11:24 +00:00
let c11 = null;
let tmp3 = ((Store) => {
2026-07-20 16:05:17 +00:00
class NetworkStoreClass {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, NetworkStoreClass);
obj = outer1_5(NetworkStoreClass);
tmp2 = outer1_4;
if (outer1_13()) {
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(NetworkStoreClass, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
const networkInformation = NetworkStoreClass(outer1_1[6]).getNetworkInformation();
networkInformation.then(outer1_14);
const obj = NetworkStoreClass(outer1_1[6]);
NetworkStoreClass(outer1_1[6]).addChangeCallback(outer1_14);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , ];
obj = {
key: "getType",
value() {
2026-07-23 10:11:24 +00:00
return outer1_9;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "getEffectiveConnectionSpeed",
value() {
2026-07-23 10:11:24 +00:00
return outer1_10;
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "getServiceProvider",
value() {
2026-07-23 10:11:24 +00:00
return outer1_11;
2026-07-20 16:05:17 +00:00
}
};
return callback(NetworkStoreClass, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp3.displayName = "NetworkStore";
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3(require("dispatcher"), {});
let closure_12 = tmp3;
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/NetworkStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;