decord/source/stores/CertifiedDeviceStore.tsx

177 lines
4.8 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4201
2026-07-24 07:16:23 +00:00
// Function ID: 36093
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4191, 587, 22, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4201 (_isNativeReflectConstruct)
import Storage from "Storage";
import apply from "apply";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import { DeviceTypes } from "DesktopSources";
const require = arg1;
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 getOrElse(arg0, arg1, arg2) {
let tmp = arg1;
2026-07-23 10:11:24 +00:00
if (null != table2[arg0]) {
2026-07-20 16:05:17 +00:00
tmp = arg2(tmp2);
}
return tmp;
}
function updateDevicesForApplication(applicationId, devices) {
2026-07-23 10:11:24 +00:00
if (null != table[applicationId]) {
2026-07-20 16:05:17 +00:00
const item = arr.forEach((id) => {
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
return id.id;
});
}
2026-07-23 10:11:24 +00:00
table[applicationId] = devices;
2026-07-20 16:05:17 +00:00
const item1 = devices.forEach((id) => {
2026-07-23 10:11:24 +00:00
outer1_10[id.id] = id;
2026-07-20 16:05:17 +00:00
return id;
});
}
let closure_9 = {};
let closure_10 = {};
2026-07-23 10:11:24 +00:00
let c11 = 0;
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class CertifiedDeviceStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_3(this, CertifiedDeviceStore);
obj = outer1_6(CertifiedDeviceStore);
tmp2 = outer1_5;
if (outer1_12()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_6(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(CertifiedDeviceStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
const Storage = CertifiedDeviceStore(outer1_2[6]).Storage;
2026-07-20 16:05:17 +00:00
const value = Storage.get("CertifiedDeviceStore");
if (null != value) {
2026-07-23 10:11:24 +00:00
let item = outer1_1(outer1_2[7]).forEach(value, (arr) => {
2026-07-20 16:05:17 +00:00
const item = arr.forEach((type) => {
if (tmp) {
type.hardwareMute = false;
}
});
2026-07-23 10:11:24 +00:00
outer2_14(arg1, arr);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const arr = outer1_1(outer1_2[7]);
2026-07-20 16:05:17 +00:00
}
}
};
const items = [obj, , , , , , , , , , , ];
obj = {
key: "isCertified",
value(arg0) {
2026-07-23 10:11:24 +00:00
return null != outer1_10[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "getCertifiedDevice",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_10[arg0];
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "getCertifiedDeviceName",
value(arg0, arg1) {
let combined = arg1;
const certifiedDevice = this.getCertifiedDevice(arg0);
if (null != certifiedDevice) {
const _HermesInternal = HermesInternal;
combined = "" + certifiedDevice.vendor.name + " " + certifiedDevice.model.name;
}
return combined;
}
};
items[4] = {
key: "getCertifiedDeviceByType",
value(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
return outer1_1(outer1_2[7]).find(outer1_10, (type) => type.type === closure_0);
2026-07-20 16:05:17 +00:00
}
};
items[5] = {
key: "isHardwareMute",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, false, (type) => type.type === outer2_8.AUDIO_INPUT && type.hardwareMute);
2026-07-20 16:05:17 +00:00
}
};
items[6] = {
key: "hasEchoCancellation",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, false, (type) => type.type === outer2_8.AUDIO_INPUT && type.echoCancellation);
2026-07-20 16:05:17 +00:00
}
};
items[7] = {
key: "hasNoiseSuppression",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, false, (type) => type.type === outer2_8.AUDIO_INPUT && type.noiseSuppression);
2026-07-20 16:05:17 +00:00
}
};
items[8] = {
key: "hasAutomaticGainControl",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, false, (type) => type.type === outer2_8.AUDIO_INPUT && type.automaticGainControl);
2026-07-20 16:05:17 +00:00
}
};
items[9] = {
key: "getVendor",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, null, (vendor) => vendor.vendor);
2026-07-20 16:05:17 +00:00
}
};
items[10] = {
key: "getModel",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_13(arg0, null, (model) => model.model);
2026-07-20 16:05:17 +00:00
}
};
items[11] = {
key: "getRevision",
value() {
2026-07-23 10:11:24 +00:00
return outer1_11;
2026-07-20 16:05:17 +00:00
}
};
return callback(CertifiedDeviceStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "CertifiedDeviceStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
CERTIFIED_DEVICES_SET: function handleSetCertifiedDevices(applicationId) {
updateDevicesForApplication(applicationId.applicationId, applicationId.devices);
2026-07-23 10:11:24 +00:00
const Storage = require(587) /* Storage */.Storage;
2026-07-20 16:05:17 +00:00
const result = Storage.set("CertifiedDeviceStore", closure_9);
closure_11 = closure_11 + 1;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/CertifiedDeviceStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;