2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 4474
|
|
|
|
|
// Function ID: 4475
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: handleConnectionInfoChange
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [676, 589, 1474, 709, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 4474 (handleConnectionInfoChange)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import initializeDefault from "initialize" /* 589 */;
|
|
|
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
|
|
|
import awaitOnlineDefault from "awaitOnline" /* 1474 */;
|
|
|
|
|
import ME from "ME" /* 676 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
function handleConnectionInfoChange(type) {
|
|
|
|
|
if (null != type.type) {
|
2026-08-24 06:08:38 +00:00
|
|
|
UNKNOWN = type.type;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
UNKNOWN = NetworkConnectionTypes.UNKNOWN;
|
|
|
|
|
}
|
|
|
|
|
let UNKNOWN2 = type.effectiveSpeed;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (UNKNOWN2 == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
UNKNOWN2 = NetworkConnectionSpeeds.UNKNOWN;
|
|
|
|
|
}
|
|
|
|
|
const serviceProvider = type.serviceProvider;
|
2026-07-29 08:29:29 +00:00
|
|
|
networkStoreClass.emitChange();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
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-29 08:29:29 +00:00
|
|
|
let c6 = null;
|
2026-08-24 06:08:38 +00:00
|
|
|
const Store = initializeDefault.Store;
|
2026-07-29 08:29:29 +00:00
|
|
|
class NetworkStoreClass extends Store {
|
|
|
|
|
}
|
|
|
|
|
const prototype = NetworkStoreClass.prototype;
|
|
|
|
|
prototype["initialize"] = function initialize() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const networkInformation = awaitOnlineDefault.getNetworkInformation();
|
2026-07-29 08:29:29 +00:00
|
|
|
networkInformation.then(handleConnectionInfoChange);
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = awaitOnlineDefault;
|
|
|
|
|
awaitOnlineDefault.addChangeCallback(handleConnectionInfoChange);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
prototype["getType"] = function getType() {
|
|
|
|
|
return UNKNOWN;
|
|
|
|
|
};
|
|
|
|
|
prototype["getEffectiveConnectionSpeed"] = function getEffectiveConnectionSpeed() {
|
|
|
|
|
return UNKNOWN;
|
|
|
|
|
};
|
|
|
|
|
prototype["getServiceProvider"] = function getServiceProvider() {
|
|
|
|
|
return c6;
|
|
|
|
|
};
|
|
|
|
|
NetworkStoreClass.displayName = "NetworkStore";
|
2026-08-24 06:08:38 +00:00
|
|
|
const networkStoreClass = new NetworkStoreClass(dispatcherDefault, {});
|
|
|
|
|
const result = set.fileFinishedImporting("stores/NetworkStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default networkStoreClass;
|