Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
76 lines
3.2 KiB
JavaScript
76 lines
3.2 KiB
JavaScript
// Module ID: 6946
|
|
// Function ID: 6947
|
|
// Dependencies: [19, 17, 21, 1636, 6740, 6733, 6729, 6756]
|
|
|
|
// Module 6946
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import value2 from "value2" /* 6729 */;
|
|
import LegacyBaseButton from "LegacyBaseButton" /* 6756 */;
|
|
import noop_mod from "module_19" /* 19 */;
|
|
import cancelAnimation from "cancelAnimation" /* 1636 */;
|
|
|
|
let noop = noop_mod;
|
|
({ useContext: c2, useMemo: c3, memo } = noop);
|
|
let noop = noop_mod;
|
|
const jsx = jsxProd.jsx;
|
|
let closure_5 = cancelAnimation.createAnimatedComponent(_mod17.RefreshControl);
|
|
const __initData = { 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.assign({ onRefresh: 0, scrollableGesture: 0 }));
|
|
let iter;
|
|
const tmp4 = iter(scrollableGesture(6740).BottomSheetDraggableContext);
|
|
dependencyMap = tmp4;
|
|
const bottomSheetInternal = scrollableGesture(6733).useBottomSheetInternal();
|
|
iter = bottomSheetInternal.animatedScrollableState;
|
|
if (!tmp4) {
|
|
if (bottomSheetInternal.enableContentPanningGesture) {
|
|
throw "'BottomSheetRefreshControl' cannot be used out of the BottomSheet!";
|
|
}
|
|
}
|
|
const obj = scrollableGesture(6733);
|
|
const fn = function f() {
|
|
return { enabled: iter.value === value2.SCROLLABLE_STATE.UNLOCKED };
|
|
};
|
|
const tmp2Result = scrollableGesture(1636);
|
|
fn.__closure = { animatedScrollableState: iter, SCROLLABLE_STATE: scrollableGesture(6729).SCROLLABLE_STATE };
|
|
fn.__workletHash = 8403038560398;
|
|
fn.__initData = __initData;
|
|
let items = [iter.value];
|
|
const animatedProps = tmp2Result.useAnimatedProps(fn, items);
|
|
const items1 = [tmp4, scrollableGesture];
|
|
const tmp7 = closure_3(() => {
|
|
let result;
|
|
if (closure_1) {
|
|
const Gesture = LegacyBaseButton.Gesture;
|
|
const NativeResult = Gesture.Native();
|
|
const simultaneousWithExternalGesture = NativeResult.simultaneousWithExternalGesture;
|
|
const items = [];
|
|
HermesBuiltin.arraySpread(scrollableGesture.toGestureArray(), HermesBuiltin.arraySpread(closure_1.toGestureArray(), 0));
|
|
const arraySpreadResult = HermesBuiltin.arraySpread(closure_1.toGestureArray(), 0);
|
|
result = HermesBuiltin.apply(items, NativeResult).shouldCancelWhenOutside(true);
|
|
const applyResult = HermesBuiltin.apply(items, NativeResult);
|
|
}
|
|
return result;
|
|
}, items1);
|
|
if (tmp7) {
|
|
const obj3 = { gesture: tmp7, children: null };
|
|
const obj4 = {};
|
|
const merged1 = Object.assign(merged);
|
|
obj4.onRefresh = onRefresh;
|
|
obj4.animatedProps = animatedProps;
|
|
obj3.children = tmp8(closure_5, obj4);
|
|
let tmp8Result = tmp8(tmp2(6756).GestureDetector, obj3);
|
|
} else {
|
|
const obj5 = {};
|
|
const merged2 = Object.assign(merged);
|
|
obj5.onRefresh = onRefresh;
|
|
obj5.animatedProps = animatedProps;
|
|
tmp8Result = tmp8(closure_5, obj5);
|
|
}
|
|
return tmp8Result;
|
|
});
|
|
memoResult.displayName = "BottomSheetRefreshControl";
|
|
|
|
export default memoResult;
|