decord/source/7067_memo.js
2026-08-24 06:08:38 +00:00

77 lines
3.1 KiB
JavaScript

// Module ID: 7067
// Function ID: 7068
// Name: memo
// Dependencies: [19, 17, 21, 1654, 7002, 6995, 6991, 6408]
// Module 7067 (memo)
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import noopDefault from "noop" /* 19 */;
import jsxProd from "jsxProd" /* 21 */;
import cancelAnimationDefault from "cancelAnimation" /* 1654 */;
import noop from "noop" /* 19 */;
({ useContext: obj1, useMemo: c3, memo } = noop);
noopDefault;
const jsx = jsxProd.jsx;
let closure_5 = cancelAnimationDefault.createAnimatedComponent(get_ActivityIndicator.RefreshControl);
let closure_6 = { code: "function pnpm_BottomSheetRefreshControlAndroidTsx1(){const{animatedScrollableState,SCROLLABLE_STATE}=this.__closure;return{enabled:animatedScrollableState.value===SCROLLABLE_STATE.UNLOCKED};}" };
const memoResult = memo(function BottomSheetRefreshControlComponent(arg0) {
({ onRefresh, scrollableGesture } = arg0);
const merged = Object.assign(arg0, Object.create(null));
dependencyMap = undefined;
let iter;
const tmp4 = iter(scrollableGesture(7002).BottomSheetDraggableContext);
dependencyMap = tmp4;
let obj = scrollableGesture(6995);
const bottomSheetInternal = obj.useBottomSheetInternal();
iter = bottomSheetInternal.animatedScrollableState;
if (!tmp4) {
if (bottomSheetInternal.enableContentPanningGesture) {
throw "'BottomSheetRefreshControl' cannot be used out of the BottomSheet!";
}
}
const fn = function f() {
return { enabled: iter.value === scrollableGesture(6991).SCROLLABLE_STATE.UNLOCKED };
};
obj = { animatedScrollableState: iter, SCROLLABLE_STATE: tmp2(6991).SCROLLABLE_STATE };
fn.__closure = obj;
fn.__workletHash = 8403038560398;
fn.__initData = closure_6;
let items = [iter.value];
const animatedProps = scrollableGesture(1654).useAnimatedProps(fn, items);
const items1 = [tmp4, scrollableGesture];
const tmp7 = callback(() => {
let result;
if (dependencyMap) {
const Gesture = scrollableGesture(6408).Gesture;
const NativeResult = Gesture.Native();
const simultaneousWithExternalGesture = NativeResult.simultaneousWithExternalGesture;
const items = [];
let arraySpreadResult = HermesBuiltin.arraySpread(dependencyMap.toGestureArray(), 0);
arraySpreadResult = HermesBuiltin.arraySpread(scrollableGesture.toGestureArray(), arraySpreadResult);
result = HermesBuiltin.apply(items, NativeResult).shouldCancelWhenOutside(true);
const applyResult = HermesBuiltin.apply(items, NativeResult);
}
return result;
}, items1);
if (tmp7) {
obj = { gesture: null, children: null };
obj[0] = tmp7;
obj1 = {};
const merged1 = Object.assign(merged);
obj1.onRefresh = onRefresh;
obj1.animatedProps = animatedProps;
obj[1] = tmp8(closure_5, obj1);
let tmp8Result = tmp8(tmp2(6408).GestureDetector, obj);
} else {
const obj2 = {};
const merged2 = Object.assign(merged);
obj2.onRefresh = onRefresh;
obj2.animatedProps = animatedProps;
tmp8Result = tmp8(closure_5, obj2);
}
return tmp8Result;
});
memoResult.displayName = "BottomSheetRefreshControl";
export default memoResult;