/* Metro module 1683; source: unknown; dependencies: [1650, 1614] */ function _fun18400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1810:6, offset: 0x00e8ad29, size: 209 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = {code: 'function pnpm_clampTs2(){const{_animationToClamp,config,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;const animationToClamp=typeof _animationToClamp===\'function\'?_animationToClamp():_animationToClamp;const strippedMin=config.min===undefined?undefined:recognizePrefixSuffix(config.min).strippedValue;const strippedMax=config.max===undefined?undefined:recognizePrefixSuffix(config.max).strippedValue;function clampOnFrame(animation,now){const finished=animationToClamp.onFrame(animationToClamp,now);if(animationToClamp.current===undefined){logger.warn("Error inside \'withClamp\' animation, the inner animation has invalid current value");return true;}else{const{prefix:prefix,strippedValue:strippedValue,suffix:suffix}=recognizePrefixSuffix(animationToClamp.current);let newValue;if(strippedMax!==undefined&&strippedMaxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current===\'number\'?newValue:""+(prefix===undefined?\'\':prefix)+newValue+(suffix===undefined?\'\':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.maxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current===\'number\'?newValue:""+(prefix===undefined?\'\':prefix)+newValue+(suffix===undefined?\'\':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.max strippedValue2 ? strippedValue : strippedValue2 : strippedValue < strippedValue2 ? strippedValue : strippedValue === undefined ? strippedValue2 : strippedValue > strippedValue2 ? strippedValue : strippedValue2; if (typeof env0_0.current === 'number') { r3 = r7; } else { value = ''; value = value + (prefix === undefined ? value : prefix) + r7 + (suffix === undefined ? value : suffix); r3 = value; } a0.current = r3; return value2; } function pnpm_clampTs2OnStart(a0, a1, a2, a3) { // fn#18404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1810:5033, owner: withClamp.pnpm_clampTs2.onStart, offset: 0x00e8b0d2, size: 203 bytes, params: 5, frame: 19 var value8; const value = a1; a0.current = value; a0.previousAnimation = env0_0; const value3 = undefined; const previousAnimation = a3 == null ? value3 : a3.previousAnimation; if (value3 !== env1_0.max && value3 !== env1_0.min && env1_0.max < env1_0.min) { value8 = environment.__proto__.__proto__; (require(1614) /* metro dependency 1614 */).logger.warn('Wrong config was provided to withClamp. Min value is bigger than max'); } const binding = env0_0; binding.onStart(env0_0, (previousAnimation == null ? value3 : previousAnimation.current) || value, a2, previousAnimation); return value3; }