decord/source/__polyfill/06xxx/module_6912.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

84 lines
2.6 KiB
JavaScript

// Module ID: 6912
// Function ID: 6913
// Dependencies: [19, 17, 21, 6913, 6733, 6729]
// Module 6912
import jsxProd from "jsxProd" /* 21 */;
import value2 from "value2" /* 6729 */;
import _mod6913 from "module_6913" /* 6913 */;
import noop_mod from "module_19" /* 19 */;
import get_ActivityIndicator from "module_17" /* 17 */;
let noop = noop_mod;
({ useMemo: c2, useRef: c3 } = noop);
let noop = noop_mod;
({ StatusBar: closure_4, View: hasOwnProperty } = get_ActivityIndicator);
const jsx = jsxProd.jsx;
const memoResult = noop.memo(function BottomSheetHostingContainerComponent(bottomInset) {
({ containerHeight: require, containerOffset: dependencyMap, topInset } = bottomInset);
if (topInset === undefined) {
topInset = 0;
}
let num = bottomInset.bottomInset;
if (num === undefined) {
num = 0;
}
let flag = bottomInset.shouldCalculateHeight;
if (flag === undefined) {
flag = true;
}
const detached = bottomInset.detached;
const style = bottomInset.style;
const tmp = num(null);
const ref = tmp;
let items = [style, detached, topInset, num];
const tmp2 = topInset(() => {
const items = [style, _mod6913.styles.container, ];
const rect = { top: topInset, bottom: num, overflow: null };
let str = "hidden";
if (detached) {
str = "visible";
}
rect.overflow = str;
items[2] = rect;
return items;
}, items);
const obj2 = { ref: tmp, pointerEvents: "box-none", onLayout: null, style: null, collapsable: true, children: null };
let stableCallback;
if (flag) {
stableCallback = obj.useStableCallback(function handleLayoutEvent(nativeEvent) {
const height = nativeEvent.nativeEvent.layout.height;
height.value = height;
const current = ref.current;
if (current != null) {
current.measure((arg0, arg1, arg2, arg3, arg4, arg5) => {
if (value.value) {
num = arg5;
let num2 = arg5;
if (arg5 == null) {
num2 = 0;
}
const rect = { top: num2, left: 0, right: 0, bottom: null };
if (num == null) {
num = 0;
}
let num3 = currentHeight.currentHeight;
const sum = num + height;
if (num3 == null) {
num3 = 0;
}
rect.bottom = Math.max(0, value2.WINDOW_HEIGHT - (sum + num3));
tmp.value = rect;
}
});
}
});
}
obj2.onLayout = stableCallback;
obj2.style = tmp2;
obj2.children = bottomInset.children;
return ref(style, obj2);
});
memoResult.displayName = "BottomSheetHostingContainer";
export const BottomSheetHostingContainer = memoResult;