Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,148 @@
|
||||
/* Metro module 1840; source: unknown; dependencies: [1610] */
|
||||
function _fun19960(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1967:6, offset: 0x00ebad2d, size: 513 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = getEffectiveHeight;
|
||||
const object = {};
|
||||
object.interpolate = (require(1610) /* metro dependency 1610 */).interpolate;
|
||||
closure.__closure = object;
|
||||
closure.__workletHash = 1787304919616;
|
||||
closure.__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 closure2 = function(a0, a1, a2) {
|
||||
var r0;
|
||||
var value;
|
||||
if (arguments.length > 3) {
|
||||
if (arguments[3] === undefined) {
|
||||
value = a0 + a1;
|
||||
value = value >= a2 - 20;
|
||||
r0 = value;
|
||||
} else if (arguments[3]) {
|
||||
r0 = a0 <= 20;
|
||||
} else {
|
||||
value = a0 + a1;
|
||||
value = value >= a2 - 20;
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
value = a0 + a1;
|
||||
value = value >= a2 - 20;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
closure2.__closure = {AT_END_THRESHOLD: 20};
|
||||
closure2.__workletHash = 3738364082991;
|
||||
closure2.__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 closure3 = function(a0, a1) {
|
||||
if (a0 === 'always') {
|
||||
return true;
|
||||
}
|
||||
if (a0 === 'persistent') {
|
||||
return true;
|
||||
}
|
||||
if (a0 === 'never') {
|
||||
return false;
|
||||
}
|
||||
if (a0 === 'whenAtEnd') {
|
||||
return a1;
|
||||
}
|
||||
};
|
||||
closure3.__closure = {};
|
||||
closure3.__workletHash = 14230532945867;
|
||||
closure3.__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 closure4 = function(a0, a1, a2, a3, a4) {
|
||||
var Math;
|
||||
if (a3 <= 0) {
|
||||
return 0;
|
||||
}
|
||||
if (a4) {
|
||||
return global.Math.max(0, global.Math.min(1, -a0 / a3));
|
||||
}
|
||||
var value = a0 + a1 - a2;
|
||||
Math = global.Math;
|
||||
var Math2 = global.Math;
|
||||
return Math.max(0, Math2.min(1, value / a3));
|
||||
};
|
||||
closure4.__closure = {};
|
||||
closure4.__workletHash = 10144434118496;
|
||||
closure4.__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 closure5 = function(a0, a1) {
|
||||
var Math = global.Math;
|
||||
return Math.max(0, a0 - a1);
|
||||
};
|
||||
closure5.__closure = {};
|
||||
closure5.__workletHash = 7722221146206;
|
||||
closure5.__initData = {code: 'function pnpm_helpersTs5(blankSpace,extraContentPadding){return Math.max(0,blankSpace-extraContentPadding);}'};
|
||||
const closure6 = function(a0, a1) {
|
||||
var Math = global.Math;
|
||||
return Math.max(0, a0 - a1);
|
||||
};
|
||||
closure6.__closure = {};
|
||||
closure6.__workletHash = 8723258054557;
|
||||
closure6.__initData = {code: 'function pnpm_helpersTs6(rawEffective,minimumPaddingAbsorbed){return Math.max(0,rawEffective-minimumPaddingAbsorbed);}'};
|
||||
const closure7 = function(a0, a1, a2, a3, a4) {
|
||||
var value = a1;
|
||||
var value2 = a4;
|
||||
var r4 = value2 === undefined ? value : value2;
|
||||
var Math = global.Math;
|
||||
var value3 = Math.max(a2 - a3 + r4, 0);
|
||||
Math = global.Math;
|
||||
var Math2 = global.Math;
|
||||
return Math.min(Math2.max(a0 + value, 0), value3);
|
||||
};
|
||||
closure7.__closure = {};
|
||||
closure7.__workletHash = 16148763282691;
|
||||
closure7.__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 closure8 = computeIOSContentOffset;
|
||||
closure8.__closure = {};
|
||||
closure8.__workletHash = 11573218187512;
|
||||
closure8.__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);}'};
|
||||
exports.getEffectiveHeight = closure;
|
||||
exports.isScrollAtEnd = closure2;
|
||||
exports.shouldShiftContent = closure3;
|
||||
exports.getVisibleMinimumPaddingFraction = closure4;
|
||||
exports.getMinimumPaddingAbsorbed = closure5;
|
||||
exports.getScrollEffective = closure6;
|
||||
exports.clampedScrollTarget = closure7;
|
||||
exports.computeIOSContentOffset = closure8;
|
||||
}
|
||||
|
||||
function getEffectiveHeight(a0, a1, a2) { // fn#19961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1967:378, offset: 0x00ebaf2e, size: 113 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var moduleValue;
|
||||
let value = a0;
|
||||
if (a2 === 0) {
|
||||
r0 = value;
|
||||
} else if (a1 === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
moduleValue = require(1610) /* metro dependency 1610 */;
|
||||
value = moduleValue.interpolate(value, [0, a1], [0, global.Math.max(a1 - a2, 0)]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function computeIOSContentOffset(a0, a1, a2, a3, a4, a5) { // fn#19968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1967:3489, offset: 0x00ebb117, size: 151 bytes, params: 7, frame: 23
|
||||
var value5;
|
||||
let value = a1;
|
||||
const value2 = a5;
|
||||
const r0 = value2 === undefined ? value : value2;
|
||||
let Math = global.Math;
|
||||
let max = Math.max;
|
||||
const value3 = a2 - a3;
|
||||
if (a4) {
|
||||
value5 = Reflect.apply(max, Math, [value3, 0]);
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
value = global.Math.min(a0 - value, value5);
|
||||
return Reflect.apply(max, Math, [value, -r0]);
|
||||
}
|
||||
const value4 = Reflect.apply(max, Math, [value3 + r0, 0]);
|
||||
Math = global.Math;
|
||||
const min = Math.min;
|
||||
const Math2 = global.Math;
|
||||
return Reflect.apply(min, Math, [Math2.max(value + a0, 0), value4]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user