27 lines
1.3 KiB
JavaScript
27 lines
1.3 KiB
JavaScript
/* Metro module 6295; source: unknown; dependencies: [] */
|
|
function _fun49668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6473:6, offset: 0x01203ce4, size: 94 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const closure = function(a0, a1) {
|
|
var r0;
|
|
var property;
|
|
var value = a0;
|
|
if (typeof value !== 'string') {
|
|
r0 = value;
|
|
} else {
|
|
property = global.Number;
|
|
value = value.split('%');
|
|
value = property(value[0]) * a1;
|
|
value /= 100;
|
|
r0 = value;
|
|
}
|
|
return global.Math.max(0, a1 - r0);
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 14612470006791;
|
|
closure.__initData = {code: "function pnpm_normalizeSnapPointTs1(snapPoint,containerHeight){let normalizedSnapPoint=snapPoint;if(typeof normalizedSnapPoint==='string'){normalizedSnapPoint=Number(normalizedSnapPoint.split('%')[0])*containerHeight/100;}return Math.max(0,containerHeight-normalizedSnapPoint);}"};
|
|
exports.normalizeSnapPoint = closure;
|
|
}
|
|
|
|
global.__d(_fun49668, 6295, []) /* metro module 6295 */;
|