544 lines
22 KiB
React
544 lines
22 KiB
React
/* Metro module 372; source: unknown; dependencies: [65, 6, 7, 99, 100, 348, 373, 79] */
|
|
function _fun5518(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:6, offset: 0x00cde345, size: 195 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(65) /* metro dependency 65 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(99) /* metro dependency 99 */;
|
|
const value = importDefault(100) /* metro dependency 100 */;
|
|
const env0_8 = value('nativeID');
|
|
const env0_9 = value('onEnd');
|
|
const env0_10 = value('useNativeDriver');
|
|
exports.default = _fun5519();
|
|
}
|
|
|
|
function _fun5519() { // fn#5519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:206, offset: 0x00cde408, size: 193 bytes, params: 1, frame: 15
|
|
return env0_5(Animation, [{key: 'start', value: value_5521}, {key: 'stop', value: value_5522},
|
|
{key: '__getNativeAnimationConfig', value: function() {
|
|
var Error = global.Error;
|
|
throw new Error('This animation type cannot be offloaded to native');
|
|
}}, {key: '__findAnimatedPropsNodes', value: value_5524}, {key: '__startAnimationIfNative', value: value_5525},
|
|
{key: '__notifyAnimationEnd', value: value_5528}, {key: '__getDebugID', value: function() {
|
|
}}]);
|
|
}
|
|
|
|
function Animation(a0) { // fn#5520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:227, offset: 0x00cde4c9, size: 262 bytes, params: 2, frame: 21
|
|
const value = environment.__proto__;
|
|
let binding = env1_4;
|
|
binding(this, Animation);
|
|
let Object = global.Object;
|
|
let defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [this, env1_8, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
Object.defineProperty(this, env1_9, {writable: true, value: undefined});
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
binding = env1_10;
|
|
Reflect.apply(defineProperty, Object, [this, binding, {writable: true, value: undefined}]);
|
|
const value3 = env1_6(this, binding);
|
|
const defaultImport = importDefault(348) /* metro dependency 348 */;
|
|
value3[binding] = defaultImport.shouldUseNativeDriver(a0);
|
|
this.__active = false;
|
|
this.__isInteraction = a0.isInteraction ?? !env1_6(this, env1_10)[env1_10];
|
|
this.__isLooping = a0.isLooping;
|
|
this.__iterations = a0.iterations ?? 1;
|
|
}
|
|
|
|
function value_5521(a0, a1, a2, a3, {__isNative}) { // fn#5521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:668, offset: 0x00cde5cf, size: 111 bytes, params: 6, frame: 15
|
|
var binding3;
|
|
const value = environment.__proto__;
|
|
let binding = env1_6;
|
|
const binding2 = env1_10;
|
|
if (binding(this, binding2)[binding2]) {
|
|
binding = env1_6;
|
|
binding3 = env1_9;
|
|
binding(this, binding3)[binding3] = a2;
|
|
this.__active = true;
|
|
return undefined;
|
|
}
|
|
if (__isNative !== true) {
|
|
binding = env1_6;
|
|
binding3 = env1_9;
|
|
binding(this, binding3)[binding3] = a2;
|
|
this.__active = true;
|
|
return undefined;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Attempting to run JS driven animation on animated node that has been moved to "native" earlier by starting an animation with `useNativeDriver: true`');
|
|
}
|
|
|
|
function value_5522() { // fn#5522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:950, offset: 0x00cde63e, size: 243 bytes, params: 1, frame: 20
|
|
var property2;
|
|
var defaultImport;
|
|
var API;
|
|
var property3;
|
|
var defaultImport2;
|
|
var error;
|
|
let binding = env1_6;
|
|
const binding2 = env1_8;
|
|
let property = binding(this, binding2)[binding2];
|
|
if (property != null) {
|
|
binding = env1_6;
|
|
var binding3 = env1_8;
|
|
property = binding(this, binding3)[binding3];
|
|
var value2 = '' + property + ':stopAnimation';
|
|
try {
|
|
property2 = dependencyMap[5];
|
|
defaultImport = importDefault(property2);
|
|
API = defaultImport.API;
|
|
API.setWaitingForIdentifier(value2);
|
|
property3 = dependencyMap[5];
|
|
defaultImport2 = importDefault(property3);
|
|
API = defaultImport2.API;
|
|
API.stopAnimation(property);
|
|
} catch (error) {
|
|
API = importDefault(dependencyMap[5]).API;
|
|
API.unsetWaitingForIdentifier(value2);
|
|
throw error;
|
|
}
|
|
API = importDefault(dependencyMap[5]).API;
|
|
API.unsetWaitingForIdentifier(value2);
|
|
}
|
|
this.__active = false;
|
|
}
|
|
|
|
function value_5524(a0) { // fn#5524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:1359, offset: 0x00cde755, size: 134 bytes, params: 2, frame: 22
|
|
var push;
|
|
var apply;
|
|
var binding;
|
|
var __findAnimatedPropsNodes;
|
|
var value2;
|
|
var value3;
|
|
var error;
|
|
const items2 = [];
|
|
if (a0 instanceof (importDefault(373) /* metro dependency 373 */)) {
|
|
items2.push(a0);
|
|
} else {
|
|
var iterator = a0.__getChildren()[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var r3 = iterator;
|
|
var item2 = Reflect.apply(iterator2, r3, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
reducibleJoin3: while (true) {
|
|
if (item2 === undefined) {
|
|
return items2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = push.apply;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_3;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
__findAnimatedPropsNodes = this.__findAnimatedPropsNodes;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(__findAnimatedPropsNodes, this, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = binding(value2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(apply, push, [items2, value3]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r3 = item2;
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop3;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function value_5525(a0) { // fn#5525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:1580, offset: 0x00cde7db, size: 353 bytes, params: 2, frame: 26
|
|
var environment;
|
|
var value;
|
|
var binding;
|
|
var binding2;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value2;
|
|
var API;
|
|
var setWaitingForIdentifier;
|
|
var __getNativeAnimationConfig;
|
|
var value3;
|
|
var __makeNative;
|
|
var platformConfig;
|
|
var binding3;
|
|
var value4;
|
|
var property;
|
|
var defaultImport;
|
|
var generateNewAnimationId;
|
|
var value5;
|
|
var defaultImport2;
|
|
var startAnimatingNode;
|
|
var value6;
|
|
var __getNativeTag;
|
|
var value7;
|
|
var closure;
|
|
var unsetWaitingForIdentifier;
|
|
var error;
|
|
exceptionSkip33: while (true) {
|
|
exceptionLanding33: while (true) {
|
|
exceptionSkip31: while (true) {
|
|
exceptionLanding31: while (true) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
value = environment.__proto__;
|
|
binding = env1_6;
|
|
binding2 = env1_10;
|
|
if (binding(this, binding2)[binding2]) {
|
|
binding = env1_7;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value2 = '' + binding + ':startAnimation';
|
|
env1_7 += 1;
|
|
API = importDefault(dependencyMap[5]).API;
|
|
setWaitingForIdentifier = API.setWaitingForIdentifier;
|
|
Reflect.apply(setWaitingForIdentifier, API, [value2]);
|
|
try {
|
|
try {
|
|
__getNativeAnimationConfig = this.__getNativeAnimationConfig;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value3 = Reflect.apply(__getNativeAnimationConfig, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
__makeNative = a0.__makeNative;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
platformConfig = value3.platformConfig;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(__makeNative, a0, [platformConfig]);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env1_6;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env1_8;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(this, binding3);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
property = dependencyMap[5];
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
defaultImport = importDefault(property);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
generateNewAnimationId = defaultImport.generateNewAnimationId;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(generateNewAnimationId, defaultImport, []);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value4[binding3] = value5;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
property = dependencyMap[5];
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
defaultImport2 = importDefault(property);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
API = defaultImport2.API;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
startAnimatingNode = API.startAnimatingNode;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value6 = binding(this, binding3);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
property = value6[binding3];
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
__getNativeTag = a0.__getNativeTag;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
value7 = Reflect.apply(__getNativeTag, a0, []);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
closure = _fun5526;
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(startAnimatingNode, API, [property, value7, value3, closure]);
|
|
} catch (error) {
|
|
break exceptionLanding31;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
API = importDefault(dependencyMap[5]).API;
|
|
unsetWaitingForIdentifier = API.unsetWaitingForIdentifier;
|
|
Reflect.apply(unsetWaitingForIdentifier, API, [value2]);
|
|
return true;
|
|
}
|
|
return false;
|
|
break exceptionSkip31;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
break exceptionSkip31;
|
|
}
|
|
break exceptionSkip33;
|
|
}
|
|
API = importDefault(dependencyMap[5]).API;
|
|
unsetWaitingForIdentifier = API.unsetWaitingForIdentifier;
|
|
Reflect.apply(unsetWaitingForIdentifier, API, [value2]);
|
|
throw error;
|
|
break exceptionSkip33;
|
|
}
|
|
}
|
|
|
|
function value_5528(a0) { // fn#5528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:2327, offset: 0x00cde9f3, size: 60 bytes, params: 2, frame: 15
|
|
var binding3;
|
|
let binding = env1_6;
|
|
const binding2 = env1_9;
|
|
const property = binding(this, binding2)[binding2];
|
|
if (property != null) {
|
|
binding = env1_6;
|
|
binding3 = env1_9;
|
|
binding(this, binding3)[binding3] = null;
|
|
property(a0);
|
|
}
|
|
}
|
|
|
|
function _fun5526(a0) { // fn#5526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:413:1922, offset: 0x00cde93c, size: 183 bytes, params: 2, frame: 15
|
|
var moduleValue2;
|
|
env0_1.__notifyAnimationEnd(a0);
|
|
const value2 = a0.value;
|
|
if (value2 != null) {
|
|
env0_0.__onAnimatedValueUpdateReceived(value2, a0.offset);
|
|
var moduleValue = importAll(79) /* metro dependency 79 */;
|
|
if (moduleValue.cxxNativeAnimatedEnabled()) {
|
|
moduleValue2 = importAll(79) /* metro dependency 79 */;
|
|
if (moduleValue2.cxxNativeAnimatedRemoveJsSync()) {
|
|
env0_1.__findAnimatedPropsNodes(env0_0).forEach(function(a0) {
|
|
return a0.update();
|
|
});
|
|
return undefined;
|
|
}
|
|
if (env0_1.__isLooping !== true) {
|
|
env0_1.__findAnimatedPropsNodes(env0_0).forEach(_fun5527);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (env0_1.__isLooping !== true) {
|
|
env0_1.__findAnimatedPropsNodes(env0_0).forEach(function(a0) {
|
|
return a0.update();
|
|
});
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|