Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
159 lines
5.2 KiB
TypeScript
159 lines
5.2 KiB
TypeScript
// Module ID: 12340
|
|
// Function ID: 12341
|
|
// Name: useAndroidOrientationSheetResync
|
|
// Dependencies: [19, 558, 568, 1368, 2]
|
|
|
|
// Module 12340 (useAndroidOrientationSheetResync)
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/keyboard/native/useAndroidOrientationSheetResync.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((animatedIndex) => {
|
|
const cResult = animatedIndex(bottomSheetRef[2]).c(8);
|
|
animatedIndex = animatedIndex.animatedIndex;
|
|
bottomSheetRef = animatedIndex.bottomSheetRef;
|
|
const containerHeight = animatedIndex.containerHeight;
|
|
const isYeeted = animatedIndex.isYeeted;
|
|
const snapPoints = animatedIndex.snapPoints;
|
|
containerHeight.useRef(false);
|
|
let num = 0;
|
|
if (animatedIndex.forceMaxHeight) {
|
|
num = 1;
|
|
}
|
|
let _Number = Number;
|
|
if (Array.isArray(snapPoints)) {
|
|
let first = snapPoints[num];
|
|
if (first == null) {
|
|
first = snapPoints[0];
|
|
}
|
|
let _NumberResult = _Number(first);
|
|
} else {
|
|
_NumberResult = _Number(snapPoints);
|
|
}
|
|
closure_6 = _NumberResult;
|
|
if (cResult[0] === animatedIndex) {
|
|
if (cResult[1] === bottomSheetRef) {
|
|
if (cResult[2] === containerHeight) {
|
|
if (cResult[3] === isYeeted) {
|
|
if (cResult[4] === num) {
|
|
if (cResult[5] === _NumberResult) {
|
|
let tmp5 = cResult[6];
|
|
let tmp6 = cResult[7];
|
|
}
|
|
const layoutEffect = containerHeight.useLayoutEffect(tmp5, tmp6);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const fn = function u() {
|
|
if (!isYeeted) {
|
|
if (obj.isAndroid()) {
|
|
if (ref.current) {
|
|
const _Number = Number;
|
|
const NumberResult = Number(containerHeight);
|
|
const _Number2 = Number;
|
|
if (Number.isFinite(NumberResult)) {
|
|
const _Number3 = Number;
|
|
if (Number.isFinite(closure_6)) {
|
|
const _Math = Math;
|
|
const bound = Math.max(0, NumberResult - tmp7);
|
|
let result = bound.set(num);
|
|
let current = bottomSheetRef.current;
|
|
if (current != null) {
|
|
current.setToIndex(tmp10, bound);
|
|
}
|
|
const _requestAnimationFrame = requestAnimationFrame;
|
|
bottomSheetRef = requestAnimationFrame(function apply() {
|
|
const result = animatedIndex.set(num);
|
|
const current = bottomSheetRef.current;
|
|
if (current != null) {
|
|
current.setToIndex(num, bound);
|
|
}
|
|
});
|
|
return () => cancelAnimationFrame(closure_1);
|
|
}
|
|
tmp7 = closure_6;
|
|
}
|
|
} else {
|
|
tmp3.current = true;
|
|
}
|
|
}
|
|
obj = animatedIndex(bottomSheetRef[3]);
|
|
}
|
|
};
|
|
const items = [animatedIndex, bottomSheetRef, containerHeight, isYeeted, num, _NumberResult];
|
|
cResult[0] = animatedIndex;
|
|
cResult[1] = bottomSheetRef;
|
|
cResult[2] = containerHeight;
|
|
cResult[3] = isYeeted;
|
|
cResult[4] = num;
|
|
cResult[5] = _NumberResult;
|
|
cResult[6] = fn;
|
|
cResult[7] = items;
|
|
tmp6 = items;
|
|
tmp5 = fn;
|
|
}) : ((animatedIndex) => {
|
|
animatedIndex = animatedIndex.animatedIndex;
|
|
let bottomSheetRef = animatedIndex.bottomSheetRef;
|
|
const containerHeight = animatedIndex.containerHeight;
|
|
const isYeeted = animatedIndex.isYeeted;
|
|
const snapPoints = animatedIndex.snapPoints;
|
|
c6 = undefined;
|
|
containerHeight.useRef(false);
|
|
let num = 0;
|
|
if (animatedIndex.forceMaxHeight) {
|
|
num = 1;
|
|
}
|
|
let _Number = Number;
|
|
if (Array.isArray(snapPoints)) {
|
|
let first = snapPoints[num];
|
|
if (first == null) {
|
|
first = snapPoints[0];
|
|
}
|
|
let _NumberResult = _Number(first);
|
|
} else {
|
|
_NumberResult = _Number(snapPoints);
|
|
}
|
|
c6 = _NumberResult;
|
|
const items = [animatedIndex, bottomSheetRef, containerHeight, isYeeted, num, _NumberResult];
|
|
const layoutEffect = containerHeight.useLayoutEffect(() => {
|
|
if (!isYeeted) {
|
|
if (obj.isAndroid()) {
|
|
if (ref.current) {
|
|
const _Number = Number;
|
|
const NumberResult = Number(containerHeight);
|
|
const _Number2 = Number;
|
|
if (Number.isFinite(NumberResult)) {
|
|
const _Number3 = Number;
|
|
if (Number.isFinite(c6)) {
|
|
const _Math = Math;
|
|
const bound = Math.max(0, NumberResult - tmp7);
|
|
let result = bound.set(num);
|
|
let current = bottomSheetRef.current;
|
|
if (current != null) {
|
|
current.setToIndex(tmp10, bound);
|
|
}
|
|
const _requestAnimationFrame = requestAnimationFrame;
|
|
bottomSheetRef = requestAnimationFrame(function apply() {
|
|
const result = animatedIndex.set(num);
|
|
const current = bottomSheetRef.current;
|
|
if (current != null) {
|
|
current.setToIndex(num, bound);
|
|
}
|
|
});
|
|
return () => cancelAnimationFrame(closure_1);
|
|
}
|
|
tmp7 = c6;
|
|
}
|
|
} else {
|
|
tmp3.current = true;
|
|
}
|
|
}
|
|
obj = animatedIndex(bottomSheetRef[3]);
|
|
}
|
|
}, items);
|
|
});
|