102 lines
4.3 KiB
JavaScript
102 lines
4.3 KiB
JavaScript
// Metro module 1836 (f1837).
|
|
import * as _Module1606 from "./Module1606";
|
|
const t = function t(a0, a1, a2) {
|
|
return a2 !== 0 ? a1 !== 0 ? _Module1606.interpolate(a0, [0, a1], [0, Math.max(a1 - a2, 0)]) : a0 : a0;
|
|
};
|
|
t.__closure = {
|
|
interpolate: _Module1606.interpolate
|
|
};
|
|
t.__workletHash = 1787304919616;
|
|
t.__initData = {
|
|
code: "function pnpm_helpersTs1(height,targetKeyboardHeight,offset){const{interpolate}=this.__closure;if(offset===0||targetKeyboardHeight===0){return height;}return interpolate(height,[0,targetKeyboardHeight],[0,Math.max(targetKeyboardHeight-offset,0)]);}"
|
|
};
|
|
const n = function n(a0, a1, a2, r5 = false) {
|
|
return r5 ? a0 <= 20 : a0 + a1 >= a2 - 20;
|
|
};
|
|
n.__closure = {
|
|
AT_END_THRESHOLD: 20
|
|
};
|
|
n.__workletHash = 3738364082991;
|
|
n.__initData = {
|
|
code: "function pnpm_helpersTs2(scrollOffset,layoutHeight,contentHeight,inverted=false){const{AT_END_THRESHOLD}=this.__closure;if(inverted){return scrollOffset<=AT_END_THRESHOLD;}return scrollOffset+layoutHeight>=contentHeight-AT_END_THRESHOLD;}"
|
|
};
|
|
const r23 = function(a0, a1) {
|
|
if (a0 !== "always" && a0 !== "persistent") {
|
|
if (a0 === "never") {
|
|
return false;
|
|
}
|
|
if (a0 === "whenAtEnd") {
|
|
return a1;
|
|
}
|
|
return void 0;
|
|
}
|
|
return true;
|
|
};
|
|
r23.__closure = {};
|
|
r23.__workletHash = 14230532945867;
|
|
r23.__initData = {
|
|
code: "function pnpm_helpersTs3(behavior,isAtEnd){switch(behavior){case\"always\":return true;case\"never\":return false;case\"whenAtEnd\":return isAtEnd;case\"persistent\":return true;}}"
|
|
};
|
|
const l = function l(a0, a1, a2, a3, a4) {
|
|
if (a3 <= 0) {
|
|
return 0;
|
|
}
|
|
if (a4) {
|
|
return Math.max(0, Math.min(1, -a0 / a3));
|
|
}
|
|
return Math.max(0, Math.min(1, (a0 + a1 - a2) / a3));
|
|
};
|
|
l.__closure = {};
|
|
l.__workletHash = 10144434118496;
|
|
l.__initData = {
|
|
code: "function pnpm_helpersTs4(scrollOffset,layoutHeight,contentHeight,blankSpace,inverted){if(blankSpace<=0){return 0;}if(inverted){return Math.max(0,Math.min(1,-scrollOffset/blankSpace));}const pastContentEnd=scrollOffset+layoutHeight-contentHeight;return Math.max(0,Math.min(1,pastContentEnd/blankSpace));}"
|
|
};
|
|
const c = function c(a0, a1) {
|
|
return Math.max(0, a0 - a1);
|
|
};
|
|
c.__closure = {};
|
|
c.__workletHash = 7722221146206;
|
|
c.__initData = {
|
|
code: "function pnpm_helpersTs5(blankSpace,extraContentPadding){return Math.max(0,blankSpace-extraContentPadding);}"
|
|
};
|
|
const h = function h(a0, a1) {
|
|
return Math.max(0, a0 - a1);
|
|
};
|
|
h.__closure = {};
|
|
h.__workletHash = 8723258054557;
|
|
h.__initData = {
|
|
code: "function pnpm_helpersTs6(rawEffective,minimumPaddingAbsorbed){return Math.max(0,rawEffective-minimumPaddingAbsorbed);}"
|
|
};
|
|
const r39 = function(a0, a1, a2, a3, a4) {
|
|
const r13 = Math.max(a2 - a3 + (a4 !== void 0 ? a4 : a1), 0);
|
|
return Math.min(Math.max(a0 + a1, 0), r13);
|
|
};
|
|
r39.__closure = {};
|
|
r39.__workletHash = 16148763282691;
|
|
r39.__initData = {
|
|
code: "function pnpm_helpersTs7(offsetBeforeScroll,keyboardHeight,contentHeight,layoutHeight,totalPaddingForMaxScroll){const paddingForMax=totalPaddingForMaxScroll!==undefined?totalPaddingForMaxScroll:keyboardHeight;const maxScroll=Math.max(contentHeight-layoutHeight+paddingForMax,0);return Math.min(Math.max(offsetBeforeScroll+keyboardHeight,0),maxScroll);}"
|
|
};
|
|
const u = function u(a0, a1, a2, a3, a4, a5) {
|
|
const r2 = a5 !== void 0 ? a5 : a1;
|
|
const r7 = Math;
|
|
const r16 = a2 - a3;
|
|
if (a4) {
|
|
return Math.max(Math.min(a0 - a1, r7.max(r16, 0)), -r2);
|
|
}
|
|
const r12 = r7.max(r16 + r2, 0);
|
|
return Math.min(Math.max(a1 + a0, 0), r12);
|
|
};
|
|
u.__closure = {};
|
|
u.__workletHash = 11573218187512;
|
|
u.__initData = {
|
|
code: "function pnpm_helpersTs8(relativeScroll,keyboardHeight,contentHeight,layoutHeight,inverted,totalPaddingForMaxScroll){const paddingForMax=totalPaddingForMaxScroll!==undefined?totalPaddingForMaxScroll:keyboardHeight;if(inverted){const maxScroll=Math.max(contentHeight-layoutHeight,0);return Math.max(Math.min(relativeScroll-keyboardHeight,maxScroll),-paddingForMax);}const maxScroll=Math.max(contentHeight-layoutHeight+paddingForMax,0);return Math.min(Math.max(keyboardHeight+relativeScroll,0),maxScroll);}"
|
|
};
|
|
export { t as getEffectiveHeight };
|
|
export { n as isScrollAtEnd };
|
|
export { r23 as shouldShiftContent };
|
|
export { l as getVisibleMinimumPaddingFraction };
|
|
export { c as getMinimumPaddingAbsorbed };
|
|
export { h as getScrollEffective };
|
|
export { r39 as clampedScrollTarget };
|
|
export { u as computeIOSContentOffset };
|