Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+108
View File
@@ -0,0 +1,108 @@
/* 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&&strippedMax<strippedValue){newValue=strippedMax;}else if(strippedMin!==undefined&&strippedMin>strippedValue){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<config.min){logger.warn(\'Wrong config was provided to withClamp. Min value is bigger than max\');}animationToClamp.onStart(animationToClamp,(animationBeforeClamped===null||animationBeforeClamped===void 0?void 0:animationBeforeClamped.current)||value,now,animationBeforeClamped);}const callback=function(finished){if(animationToClamp.callback){animationToClamp.callback(finished);}};return{isHigherOrder:true,onFrame:clampOnFrame,onStart:onStart,current:animationToClamp.current,callback:callback,previousAnimation:null,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}'};
const closure = withClamp;
const object = {};
object.defineAnimation = (require(1650) /* metro dependency 1650 */).defineAnimation;
object.recognizePrefixSuffix = (require(1650) /* metro dependency 1650 */).recognizePrefixSuffix;
object.logger = (require(1614) /* metro dependency 1614 */).logger;
const getReduceMotionForAnimation = (require(1650) /* metro dependency 1650 */).getReduceMotionForAnimation;
object.getReduceMotionForAnimation = getReduceMotionForAnimation;
closure.__closure = object;
closure.__workletHash = 2452826107198;
closure.__initData = {code: 'function pnpm_clampTs1(config,_animationToClamp){const{defineAnimation,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_animationToClamp,function(){\'worklet\';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&&strippedMax<strippedValue){newValue=strippedMax;}else if(strippedMin!==undefined&&strippedMin>strippedValue){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<config.min){logger.warn(\'Wrong config was provided to withClamp. Min value is bigger than max\');}animationToClamp.onStart(animationToClamp,(animationBeforeClamped===null||animationBeforeClamped===void 0?void 0:animationBeforeClamped.current)||value,now,animationBeforeClamped);}const callback=function(finished){if(animationToClamp.callback){animationToClamp.callback(finished);}};return{isHigherOrder:true,onFrame:clampOnFrame,onStart:onStart,current:animationToClamp.current,callback:callback,previousAnimation:null,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};});}'};
exports.withClamp = closure;
}
function withClamp(a0, a1) { // fn#18401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1810:4314, offset: 0x00e8adfa, size: 168 bytes, params: 3, frame: 21
const env0_0 = a0;
const env0_1 = a1;
const moduleValue = require(1650) /* metro dependency 1650 */;
const defineAnimation = moduleValue.defineAnimation;
const closure = pnpm_clampTs2;
const object2 = {_animationToClamp: a1, config: a0};
object2.recognizePrefixSuffix = moduleValue.recognizePrefixSuffix;
object2.logger = (require(1614) /* metro dependency 1614 */).logger;
const getReduceMotionForAnimation = moduleValue.getReduceMotionForAnimation;
object2.getReduceMotionForAnimation = getReduceMotionForAnimation;
closure.__closure = object2;
closure.__workletHash = 9293031098818;
closure.__initData = env0_2;
return Reflect.apply(defineAnimation, moduleValue, [a1, closure]);
}
function pnpm_clampTs2() { // fn#18402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1810:4379, owner: withClamp.pnpm_clampTs2, offset: 0x00e8aea2, size: 281 bytes, params: 1, frame: 16
var environment;
var strippedValue;
var value3;
var moduleValue2;
var value4;
var moduleValue3;
const r3 = typeof require === 'function' ? require() : require;
const env0_0 = r3;
const min = env0_0.min;
const value2 = undefined;
if (value2 !== min) {
value3 = environment.__proto__;
moduleValue2 = require(1650) /* metro dependency 1650 */;
strippedValue = moduleValue2.recognizePrefixSuffix(env0_0.min).strippedValue;
}
if (value2 !== env0_0.max) {
value4 = environment.__proto__;
moduleValue3 = require(1650) /* metro dependency 1650 */;
strippedValue = moduleValue3.recognizePrefixSuffix(env0_0.max).strippedValue;
}
const object2 = {isHigherOrder: true, onFrame: onFrame, onStart: onStart_18404};
object2.current = r3.current;
object2.callback = callback_18405;
object2.previousAnimation = null;
object2.reduceMotion = (require(1650) /* metro dependency 1650 */).getReduceMotionForAnimation(env0_0.reduceMotion);
return object2;
}
function pnpm_clampTs2OnFrame(a0, a1) { // fn#18403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1810:4619, owner: withClamp.pnpm_clampTs2.onFrame, offset: 0x00e8afbb, size: 279 bytes, params: 3, frame: 19
var r3;
var value;
const value2 = env0_0.onFrame(env0_0, a1);
if (env0_0.current === undefined) {
value = environment.__proto__.__proto__;
(require(1614) /* metro dependency 1614 */).logger.warn("Error inside 'withClamp' animation, the inner animation has invalid current value");
return true;
}
const moduleValue = require(1650) /* metro dependency 1650 */;
const value4 = moduleValue.recognizePrefixSuffix(env0_0.current);
const prefix = value4.prefix;
const strippedValue2 = value4.strippedValue;
const suffix = value4.suffix;
const r7 = strippedValue === undefined ? strippedValue === undefined ? strippedValue2 : strippedValue > 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;
}