decord/source/5221_hasProperty.js

91 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5221
2026-07-25 08:10:48 +00:00
// Function ID: 45191
2026-07-20 16:05:17 +00:00
// Name: hasProperty
2026-07-23 10:11:24 +00:00
// Dependencies: [65, 31]
2026-07-20 16:05:17 +00:00
// Exports: isFabric, isReact19, isRemoteDebuggingEnabled, isTestEnv, tagMessage, toArray, withPrevAndCurrent
2026-07-23 10:11:24 +00:00
// Module 5221 (hasProperty)
import _toConsumableArray from "_toConsumableArray";
import result from "result";
2026-07-20 16:05:17 +00:00
function hasProperty(global, process) {
return hasOwnProperty.call(global, process);
}
function deepEqual(arg0, arg1) {
if (arg0 === arg1) {
return true;
} else {
if ("object" === typeof tmp) {
if ("object" === typeof tmp2) {
if (null !== tmp) {
if (null !== tmp2) {
const _Object = Object;
const keys = Object.keys(tmp);
const _Object2 = Object;
const keys1 = Object.keys(tmp2);
if (keys.length !== keys1.length) {
return false;
} else {
for (const item10009 of keys) {
let tmp4 = item10009;
let tmp5 = keys1;
if (obj2.includes(item10009)) {
2026-07-23 10:11:24 +00:00
let tmp6 = deepEqual;
2026-07-20 16:05:17 +00:00
let tmp7 = arg0;
let tmp8 = item10009;
let tmp9 = arg1;
}
obj.return();
let flag = false;
return false;
}
return true;
}
const obj2 = keys1;
}
}
}
}
return false;
}
}
export const toArray = function toArray(arg0) {
let tmp = arg0;
if (!Array.isArray(arg0)) {
const items = [arg0];
tmp = items;
}
return tmp;
};
export const withPrevAndCurrent = function withPrevAndCurrent(arg0, arg1) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg1;
const callback = [null];
2026-07-20 16:05:17 +00:00
const items = [];
const item = callback(arg0).forEach((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
const tmp = callback(arr[arg1], arg0);
arr = arr.push(tmp);
2026-07-20 16:05:17 +00:00
arr = items.push(tmp);
});
return items;
};
export { hasProperty };
export const isTestEnv = function isTestEnv() {
return hasProperty(global, "process") && false;
};
export const tagMessage = function tagMessage(arg0) {
return "[react-native-gesture-handler] " + arg0;
};
export const isFabric = function isFabric() {
return !(null == global || !global.nativeFabricUIManager);
};
export const isReact19 = function isReact19() {
2026-07-23 10:11:24 +00:00
version = version.version;
2026-07-20 16:05:17 +00:00
return version.startsWith("19.");
};
export const isRemoteDebuggingEnabled = function isRemoteDebuggingEnabled() {
return !(global.nativeCallSyncHook && !global.__REMOTEDEV__ || global.RN$Bridgeless);
};
export { deepEqual };
export const INT32_MAX = 2147483647;