192 lines
13 KiB
JavaScript
192 lines
13 KiB
JavaScript
/* Metro module 1646; source: unknown; dependencies: [1613, 1635, 1647, 1649, 1617] */
|
|
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
|
|
import * as Module01617Module from './module-01617.js'; /* Metro dependency 1617 */
|
|
import * as Module01635Module from './module-01635.js'; /* Metro dependency 1635 */
|
|
|
|
function _fun17967(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:6, offset: 0x00e7c2aa, size: 220 bytes, params: 8, frame: 15
|
|
const env0_1 = require;
|
|
const env0_3 = (Module01613Module).isAndroid();
|
|
let object = {code: 'function startObservingProgress_Pnpm_animationsManagerTs1(tag,sharedValue,animationType){const{LayoutAnimationType,TAG_OFFSET}=this.__closure;const isSharedTransition=animationType===LayoutAnimationType.SHARED_ELEMENT_TRANSITION;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value,isSharedTransition);});}'};
|
|
const env0_5 = _fun17968();
|
|
object = {code: 'function stopObservingProgress_Pnpm_animationsManagerTs2(tag,sharedValue,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);}'};
|
|
const env0_7 = _fun17971();
|
|
object = {code: 'function createLayoutAnimationManager_Pnpm_animationsManagerTs3(){const{LayoutAnimationType,makeMutableUI,stopObservingProgress,withStyleAnimation,startObservingProgress,IS_ANDROID}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();const startActually=function(tag,type,yogaValues,config){if(type===LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS){global.ProgressTransitionRegister.onTransitionStart(tag,yogaValues);return;}const style=config(yogaValues);let currentAnimation=style.animations;const previousAnimation=currentAnimationForTag.get(tag);if(previousAnimation){currentAnimation={...previousAnimation,...style.animations};}currentAnimationForTag.set(tag,currentAnimation);let value=mutableValuesForTag.get(tag);if(value===undefined){value=makeMutableUI(style.initialValues);mutableValuesForTag.set(tag,value);}else{stopObservingProgress(tag,value);value._value=style.initialValues;}const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);const shouldRemoveView=type===LayoutAnimationType.EXITING;stopObservingProgress(tag,value,shouldRemoveView);}style.callback&&style.callback(finished===undefined?false:finished);};startObservingProgress(tag,value,type);value.value=animation;};let start;if(IS_ANDROID){start=function(tag,type,yogaValues,config){return requestAnimationFrame(function(){startActually(tag,type,yogaValues,config);});};}else{start=startActually;}return{start:start,stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}stopObservingProgress(tag,value);}};}'};
|
|
value = _fun17973();
|
|
const runOnUIImmediately = Module01617Module.runOnUIImmediately;
|
|
const pnpm_animationsManagerTs42 = pnpm_animationsManagerTs4;
|
|
pnpm_animationsManagerTs42.__closure = {createLayoutAnimationManager: value};
|
|
pnpm_animationsManagerTs42.__workletHash = 11408639565737;
|
|
pnpm_animationsManagerTs42.__initData = {code: 'function pnpm_animationsManagerTs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}'};
|
|
Reflect.apply(runOnUIImmediately, Module01617Module, [pnpm_animationsManagerTs42])();
|
|
function _fun17968() { // fn#17968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:444, offset: 0x00e7c386, size: 90 bytes, params: 1, frame: 14
|
|
const startObservingProgress2 = startObservingProgress;
|
|
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
|
|
startObservingProgress2.__closure = {LayoutAnimationType: LayoutAnimationType, TAG_OFFSET: 1000000000};
|
|
startObservingProgress2.__workletHash = 15816248532180;
|
|
startObservingProgress2.__initData = env0_4;
|
|
return startObservingProgress2;
|
|
function startObservingProgress(a0, a1, a2) { // fn#17969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:461, offset: 0x00e7c3e0, size: 93 bytes, params: 4, frame: 15
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = environment.__proto__;
|
|
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
|
|
const SHARED_ELEMENT_TRANSITION = LayoutAnimationType.SHARED_ELEMENT_TRANSITION;
|
|
const result = a2 === SHARED_ELEMENT_TRANSITION;
|
|
a1.addListener(a0 + 1000000000, _fun17970);
|
|
function _fun17970() { // fn#17970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:583, offset: 0x00e7c43d, size: 44 bytes, params: 1, frame: 15
|
|
const binding = env2_0;
|
|
binding._notifyAboutProgress(env0_0, require.value, result);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17971() { // fn#17971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:987, offset: 0x00e7c469, size: 57 bytes, params: 1, frame: 3
|
|
const stopObservingProgress2 = stopObservingProgress;
|
|
stopObservingProgress2.__closure = {TAG_OFFSET: 1000000000};
|
|
stopObservingProgress2.__workletHash = 8517596296348;
|
|
stopObservingProgress2.__initData = env0_6;
|
|
return stopObservingProgress2;
|
|
function stopObservingProgress(a0, a1) { // fn#17972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:1004, offset: 0x00e7c4a2, size: 80 bytes, params: 3, frame: 16
|
|
const r3 = arguments.length > 2 && arguments[2] !== undefined && arguments[2];
|
|
a1.removeListener(a0 + 1000000000);
|
|
value = environment.__proto__;
|
|
env1_0._notifyAboutEnd(a0, r3);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17973() { // fn#17973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2914, offset: 0x00e7c4f2, size: 156 bytes, params: 1, frame: 15
|
|
const createLayoutAnimationManager2 = createLayoutAnimationManager;
|
|
const object = {};
|
|
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
|
|
object.LayoutAnimationType = LayoutAnimationType;
|
|
object.makeMutableUI = (require(1647) /* metro dependency 1647 */).makeMutableUI;
|
|
object.stopObservingProgress = env0_7;
|
|
object.withStyleAnimation = (require(1649) /* metro dependency 1649 */).withStyleAnimation;
|
|
object.startObservingProgress = env0_5;
|
|
object.IS_ANDROID = env0_3;
|
|
createLayoutAnimationManager2.__closure = object;
|
|
createLayoutAnimationManager2.__workletHash = 8526874600063;
|
|
createLayoutAnimationManager2.__initData = env0_8;
|
|
return createLayoutAnimationManager2;
|
|
function createLayoutAnimationManager() { // fn#17974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2931, offset: 0x00e7c58e, size: 106 bytes, params: 1, frame: 11
|
|
var environment;
|
|
let Map = global.Map;
|
|
let map = new Map();
|
|
Map = global.Map;
|
|
map = new Map();
|
|
const startActually2 = startActually;
|
|
map = environment.__proto__;
|
|
return {start: env1_3 ? function(a0, a1, a2, a3) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
var env0_3 = a3;
|
|
return global.requestAnimationFrame(_fun17978);
|
|
} : startActually2, stop: stop_17979};
|
|
function startActually(a0, a1, a2, a3) { // fn#17975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2997, owner: createLayoutAnimationManager.startActually, offset: 0x00e7c5f8, size: 334 bytes, params: 5, frame: 23
|
|
var r8;
|
|
var r2;
|
|
var value2;
|
|
var animations;
|
|
var binding;
|
|
var value4;
|
|
var value6;
|
|
var moduleValue;
|
|
var mutableUI;
|
|
var value7;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
|
|
const SHARED_ELEMENT_TRANSITION_PROGRESS = LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS;
|
|
if (a1 !== SHARED_ELEMENT_TRANSITION_PROGRESS) {
|
|
value2 = a3(a2);
|
|
animations = value2.animations;
|
|
binding = env0_0;
|
|
value4 = binding.get(a0);
|
|
r8 = value4 ? global.Object.assign({}, value4, value2.animations) : animations;
|
|
binding = env0_0;
|
|
binding.set(a0, r8);
|
|
binding = env0_1;
|
|
value6 = binding.get(a0);
|
|
if (value6 === undefined) {
|
|
moduleValue = require(1647) /* metro dependency 1647 */;
|
|
mutableUI = moduleValue.makeMutableUI(value2.initialValues);
|
|
env0_1.set(a0, mutableUI);
|
|
r2 = mutableUI;
|
|
} else {
|
|
env2_7(a0, value6);
|
|
value6._value = value2.initialValues;
|
|
r2 = value6;
|
|
}
|
|
value7 = (require(1649) /* metro dependency 1649 */).withStyleAnimation(r8);
|
|
value7.callback = callback_17976;
|
|
env2_5(a0, r2, a1);
|
|
r2.value = value7;
|
|
} else {
|
|
env2_0.ProgressTransitionRegister.onTransitionStart(a0, a2);
|
|
}
|
|
function startActuallyCallback(a0) { // fn#17976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3349, owner: createLayoutAnimationManager.startActually.callback, offset: 0x00e7c746, size: 151 bytes, params: 2, frame: 18
|
|
var value2;
|
|
var binding;
|
|
var binding2;
|
|
var value4;
|
|
var EXITING;
|
|
const value = a0;
|
|
if (value) {
|
|
value2 = environment.__proto__;
|
|
binding = env1_0;
|
|
binding2 = env0_0;
|
|
binding.delete(binding2);
|
|
binding = env1_1;
|
|
binding.delete(binding2);
|
|
value4 = environment.__proto__.__proto__.__proto__;
|
|
EXITING = (require(1635) /* metro dependency 1635 */).LayoutAnimationType.EXITING;
|
|
binding = env3_7;
|
|
binding(binding2, env0_3, require === EXITING);
|
|
}
|
|
if (env0_2.callback) {
|
|
binding = env0_2;
|
|
binding.callback(value !== undefined && value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createLayoutAnimationManagerStart(a0, a1, a2, a3) { // fn#17977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3577, owner: createLayoutAnimationManager.start, offset: 0x00e7c7dd, size: 52 bytes, params: 5, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
return global.requestAnimationFrame(_fun17978);
|
|
function _fun17978() { // fn#17978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3631, offset: 0x00e7c811, size: 36 bytes, params: 1, frame: 17
|
|
startActually(env0_0, require, importDefault, importAll);
|
|
}
|
|
|
|
}
|
|
|
|
function createLayoutAnimationManagerStop(a0) { // fn#17979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3664, owner: createLayoutAnimationManager.stop, offset: 0x00e7c835, size: 42 bytes, params: 2, frame: 13
|
|
var value2;
|
|
const value = env0_1.get(a0);
|
|
if (value) {
|
|
value2 = environment.__proto__.__proto__;
|
|
env2_7(a0, value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function pnpm_animationsManagerTs4() { // fn#17980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:4166, offset: 0x00e7c85f, size: 27 bytes, params: 1, frame: 10
|
|
env0_0.LayoutAnimationsManager = env0_9();
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun17967, 1646, [1613, 1635, 1647, 1649,
|
|
1617]) /* metro module 1646, dependencies: [1613, 1635, 1647, 1649, 1617] */;
|