decord/source/modules/reanimated/native/cheapWorkletShallowEqual.tsx

64 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8729
// Function ID: 8730
2026-07-20 16:05:17 +00:00
// Name: cheapWorkletShallowEqual
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-29 08:29:29 +00:00
// Exports: cheapWorkletArrayShallowEqual, cheapWorkletShallowEqual
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 8729 (cheapWorkletShallowEqual)
import set from "set" /* 2 */;
2026-07-29 08:29:29 +00:00
function cheapWorkletShallowEqual(safeAreaState, current) {
if (safeAreaState === current) {
return true;
} else {
if (null != safeAreaState) {
if (null != current) {
for (const key10005 in arg0) {
let tmp3 = key10005;
if (arg0[key10005] === arg1[key10005]) {
continue;
} else {
let flag = false;
return false;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return true;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
cheapWorkletShallowEqual.__closure = {};
cheapWorkletShallowEqual.__workletHash = 760221372005;
cheapWorkletShallowEqual.__initData = { code: "function cheapWorkletShallowEqual_cheapWorkletShallowEqualTsx1(a,b){if(a===b)return true;if(a==null||b==null)return false;for(const key in a){if(a[key]!==b[key])return false;}return true;}" };
function cheapWorkletArrayShallowEqual(activeIndex, arg1) {
if (activeIndex === arg1) {
return true;
} else {
if (null != activeIndex) {
if (null != arg1) {
if (activeIndex.length !== arg1.length) {
return false;
} else {
let num = 0;
if (0 < activeIndex.length) {
while (activeIndex[num] === arg1[num]) {
num = num + 1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return true;
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
return false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
cheapWorkletArrayShallowEqual.__closure = {};
cheapWorkletArrayShallowEqual.__workletHash = 3679738010781;
cheapWorkletArrayShallowEqual.__initData = { code: "function cheapWorkletArrayShallowEqual_cheapWorkletShallowEqualTsx2(a,b){if(a===b)return true;if(a==null||b==null)return false;if(a.length!==b.length)return false;for(let i=0;i<a.length;i++){if(a[i]!==b[i])return false;}return true;}" };
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/reanimated/native/cheapWorkletShallowEqual.tsx");
2026-07-29 08:29:29 +00:00
export { cheapWorkletShallowEqual };
export { cheapWorkletArrayShallowEqual };