decord/source/__polyfill/06xxx/module_6908.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

99 lines
3.6 KiB
JavaScript

// Module ID: 6908
// Function ID: 6909
// Dependencies: [32, 19, 17, 6736, 1636]
// Exports: useBottomSheetContentContainerStyle
// Module 6908
import cancelAnimation from "cancelAnimation" /* 1636 */;
import _slicedToArray from "module_32" /* 32 */;
const require = globalThis.__r;
require = fn;
const noop = fn(19);
({ useMemo: c3, useState: closure_4 } = noop);
get_ActivityIndicator = fn(17);
({ Platform: hasOwnProperty, StyleSheet: metroRequire } = get_ActivityIndicator);
const __initData = { code: "function pnpm_useBottomSheetContentContainerStyleTs1(){const{animatedFooterHeight}=this.__closure;return animatedFooterHeight.get();}" };
const __initData2 = { code: "function pnpm_useBottomSheetContentContainerStyleTs2(result,previousFooterHeight){const{enableFooterMarginAdjustment,runOnJS,setFooterHeight,Platform,animatedContentHeight}=this.__closure;if(!enableFooterMarginAdjustment){return;}runOnJS(setFooterHeight)(result);if(Platform.OS==='web'){if(result&&!previousFooterHeight){const contentHeight=animatedContentHeight.get();animatedContentHeight.set(contentHeight+result);}}}" };
export const useBottomSheetContentContainerStyle = function useBottomSheetContentContainerStyle(flag, contentContainerStyle) {
_require = flag;
dependencyMap = contentContainerStyle;
const tmp = first(animatedFooterHeight(0), 2);
first = tmp[0];
closure_3 = tmp3;
const bottomSheetInternal = require("module_6736").useBottomSheetInternal();
animatedFooterHeight = bottomSheetInternal.animatedFooterHeight;
const animatedContentHeight = bottomSheetInternal.animatedContentHeight;
let items = [contentContainerStyle];
const tmp5 = closure_3(() => {
if (closure_1) {
const _Array = Array;
let applyResult = tmp;
if (Array.isArray(tmp)) {
compose = compose.compose;
const items = [];
HermesBuiltin.arraySpread(tmp, 0);
applyResult = HermesBuiltin.apply(items, compose);
}
let obj = applyResult;
} else {
obj = {};
}
return obj;
}, items);
Platform = tmp5;
const items1 = [first, flag, tmp5];
let obj = require("module_6736");
const tmp6 = closure_3(() => {
if (closure_0) {
let num = 0;
if (tmp) {
num = 0;
if (typeof tmp === "object") {
({ paddingBottom, padding, paddingVertical } = tmp);
if (undefined === paddingBottom) {
if (undefined === paddingVertical) {
num = 0;
if (tmp2) {
num = padding;
}
tmp2 = undefined !== padding && typeof padding === "number";
} else {
num = paddingVertical;
}
} else {
num = paddingBottom;
}
}
}
const items = [tmp, ];
const obj = { paddingBottom: num + first, overflow: "visible" };
items[1] = obj;
return items;
} else {
return tmp;
}
}, items1);
class H {
constructor() {
return animatedFooterHeight.get();
}
}
H.__closure = { animatedFooterHeight };
H.__workletHash = 10172145694310;
H.__initData = __initData;
const fn = function f(arg0, arg1) {
if (closure_0) {
cancelAnimation.runOnJS(closure_3)(arg0);
}
};
const obj2 = require("cancelAnimation");
fn.__closure = { enableFooterMarginAdjustment: flag, runOnJS: require("cancelAnimation").runOnJS, setFooterHeight: tmp[1], Platform, animatedContentHeight };
fn.__workletHash = 1149497927090;
fn.__initData = __initData2;
const items2 = [animatedFooterHeight, animatedContentHeight, flag];
const animatedReaction = obj2.useAnimatedReaction(H, fn, items2);
return tmp6;
};