decord/source/__polyfill/06xxx/module_6724.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

47 lines
1.8 KiB
JavaScript

// Module ID: 6724
// Function ID: 6725
// Dependencies: [19, 6707, 6716]
// Exports: useScrollableSetter
// Module 6724
import normalizeSnapPoint from "normalizeSnapPoint" /* 6716 */;
import noop from "module_19" /* 19 */;
const require = globalThis.__r;
({ useCallback: c2, useEffect: c3 } = noop);
export const useScrollableSetter = (arg0, value, arg2, value3) => {
_require = arg0;
dependencyMap = value;
value2 = arg2;
let tmp = arg4;
if (arg4 === undefined) {
tmp = value3;
}
const bottomSheetInternal = require("module_6707").useBottomSheetInternal();
const animatedScrollableType = bottomSheetInternal.animatedScrollableType;
const animatedScrollableContentOffsetY = bottomSheetInternal.animatedScrollableContentOffsetY;
const isContentHeightFixed = bottomSheetInternal.isContentHeightFixed;
const isScrollableRefreshable = bottomSheetInternal.isScrollableRefreshable;
const setScrollableRef = bottomSheetInternal.setScrollableRef;
const removeScrollableRef = bottomSheetInternal.removeScrollableRef;
const items = [arg0, value, value3, animatedScrollableType, animatedScrollableContentOffsetY, arg2, isScrollableRefreshable, isContentHeightFixed, setScrollableRef, removeScrollableRef];
tmp(value2(() => {
animatedScrollableContentOffsetY.value = value2.value;
animatedScrollableType.value = value;
isScrollableRefreshable.value = value3;
isContentHeightFixed.value = false;
const findNodeHandleResult = normalizeSnapPoint.findNodeHandle(ref.current);
if (findNodeHandleResult) {
const obj2 = { id: findNodeHandleResult, node: ref };
setScrollableRef(obj2);
} else {
const _console = console;
console.warn("Couldn't find the scrollable node handle id!");
}
return () => {
removeScrollableRef(ref);
};
}, items));
};