48 lines
2.8 KiB
JavaScript
48 lines
2.8 KiB
JavaScript
/* Metro module 6297; source: unknown; dependencies: [1610] */
|
|
import * as Module01610Module from './module-01610.js'; /* Metro dependency 1610 */
|
|
|
|
function _fun49672(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6475:6, offset: 0x01203f8a, size: 130 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const getKeyboardAnimationConfigs2 = getKeyboardAnimationConfigs;
|
|
const Easing = (Module01610Module).Easing;
|
|
getKeyboardAnimationConfigs2.__closure = {Easing: Easing};
|
|
getKeyboardAnimationConfigs2.__workletHash = 10639588577824;
|
|
getKeyboardAnimationConfigs2.__initData = {code: "function pnpm_getKeyboardAnimationConfigsTs1(easing,duration){const{Easing}=this.__closure;switch(easing){case'easeIn':return{easing:Easing.in(Easing.ease),duration:duration};case'easeOut':return{easing:Easing.out(Easing.ease),duration:duration};case'easeInEaseOut':return{easing:Easing.inOut(Easing.ease),duration:duration};case'linear':return{easing:Easing.linear,duration:duration};case'keyboard':return{damping:500,stiffness:1000,mass:3,overshootClamping:true,restDisplacementThreshold:10,restSpeedThreshold:10};}}"};
|
|
exports.getKeyboardAnimationConfigs = getKeyboardAnimationConfigs2;
|
|
function getKeyboardAnimationConfigs(a0, a1) { // fn#49673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6475:634, offset: 0x0120400c, size: 346 bytes, params: 3, frame: 16
|
|
var object;
|
|
const Easing = (require(1610) /* metro dependency 1610 */).Easing;
|
|
if (a0 === 'easeIn') {
|
|
object = {};
|
|
object.easing = Easing.in((require(1610) /* metro dependency 1610 */).Easing.ease);
|
|
object.duration = a1;
|
|
return object;
|
|
}
|
|
if (a0 === 'easeOut') {
|
|
object = {};
|
|
object.easing = Easing.out((require(1610) /* metro dependency 1610 */).Easing.ease);
|
|
object.duration = a1;
|
|
return object;
|
|
}
|
|
if (a0 === 'easeInEaseOut') {
|
|
object = {};
|
|
object.easing = Easing.inOut((require(1610) /* metro dependency 1610 */).Easing.ease);
|
|
object.duration = a1;
|
|
return object;
|
|
}
|
|
if (a0 === 'linear') {
|
|
return {easing: Easing.linear, duration: a1};
|
|
}
|
|
if (a0 === 'keyboard') {
|
|
return {'damping': 500, 'stiffness': 1000, 'mass': 3, 'overshootClamping': true,
|
|
'restDisplacementThreshold': 10,
|
|
'restSpeedThreshold': 10};
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun49672, 6297, [1610]) /* metro module 6297, dependencies: [1610] */;
|