153 lines
8.1 KiB
JavaScript
153 lines
8.1 KiB
JavaScript
/* Metro module 1694; source: unknown; dependencies: [6, 7, 15, 17, 18, 1682, 1681] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import * as BaseAnimationBuilderModule from './module-01681-BaseAnimationBuilder.js'; /* Metro dependency 1681 */
|
|
import * as Module01682Module from './module-01682.js'; /* Metro dependency 1682 */
|
|
|
|
function _fun18477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:6, offset: 0x00e8dde2, size: 180 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const BaseAnimationBuilder = (BaseAnimationBuilderModule).BaseAnimationBuilder;
|
|
exports.ComplexAnimationBuilder = _fun18481(BaseAnimationBuilder);
|
|
function _isNativeReflectConstruct_18478() { // fn#18478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:148, offset: 0x00e8de96, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_18478_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun18481(a0) { // fn#18481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:373, offset: 0x00e8def4, size: 535 bytes, params: 2, frame: 28
|
|
const ComplexAnimationBuilder2 = ComplexAnimationBuilder;
|
|
Inherits(ComplexAnimationBuilder2, a0);
|
|
return CreateClass(ComplexAnimationBuilder2, [{key: 'easing', value: function(a0) {
|
|
this.easingV = a0;
|
|
return this;
|
|
}}, {key: 'rotate', value: function(a0) {
|
|
this.rotateV = a0;
|
|
return this;
|
|
}}, {key: 'springify', value: function(a0) {
|
|
this.durationV = a0;
|
|
this.type = require(dependencyMap[5]).withSpring;
|
|
return this;
|
|
}}, {key: 'dampingRatio', value: function(a0) {
|
|
this.dampingRatioV = a0;
|
|
return this;
|
|
}}, {key: 'damping', value: function(a0) {
|
|
this.dampingV = a0;
|
|
return this;
|
|
}}, {key: 'mass', value: function(a0) {
|
|
this.massV = a0;
|
|
return this;
|
|
}}, {key: 'stiffness', value: function(a0) {
|
|
this.stiffnessV = a0;
|
|
return this;
|
|
}}, {key: 'overshootClamping', value: function(a0) {
|
|
this.overshootClampingV = a0;
|
|
return this;
|
|
}}, {key: 'restDisplacementThreshold', value: function(a0) {
|
|
this.restDisplacementThresholdV = a0;
|
|
return this;
|
|
}}, {key: 'restSpeedThreshold', value: function(a0) {
|
|
this.restSpeedThresholdV = a0;
|
|
return this;
|
|
}}, {key: 'withInitialValues', value: function(a0) {
|
|
this.initialValues = a0;
|
|
return this;
|
|
}}, {key: 'getAnimationAndConfig', value: value_18494}], [{key: 'easing', value: function(a0) {
|
|
return this.createInstance().easing(a0);
|
|
}}, {key: 'rotate', value: function(a0) {
|
|
return this.createInstance().rotate(a0);
|
|
}}, {key: 'springify', value: function(a0) {
|
|
return this.createInstance().springify(a0);
|
|
}}, {key: 'dampingRatio', value: function(a0) {
|
|
return this.createInstance().dampingRatio(a0);
|
|
}}, {key: 'damping', value: function(a0) {
|
|
return this.createInstance().damping(a0);
|
|
}}, {key: 'mass', value: function(a0) {
|
|
return this.createInstance().mass(a0);
|
|
}}, {key: 'stiffness', value: function(a0) {
|
|
return this.createInstance().stiffness(a0);
|
|
}}, {key: 'overshootClamping', value: function(a0) {
|
|
return this.createInstance().overshootClamping(a0);
|
|
}}, {key: 'restDisplacementThreshold', value: function(a0) {
|
|
return this.createInstance().restDisplacementThreshold(a0);
|
|
}}, {key: 'restSpeedThreshold', value: function(a0) {
|
|
return this.createInstance().restSpeedThreshold(a0);
|
|
}}, {key: 'withInitialValues', value: function(a0) {
|
|
return this.createInstance().withInitialValues(a0);
|
|
}}]);
|
|
function ComplexAnimationBuilder() { // fn#18482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:385, offset: 0x00c7f278, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_2(this, ComplexAnimationBuilder);
|
|
const value3 = env1_5(ComplexAnimationBuilder);
|
|
return env1_4(this, _isNativeReflectConstruct_18478() ? global.Reflect.construct(value3, arguments,
|
|
env1_5(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_18494() { // fn#18494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:1692, offset: 0x00e8e1c9, size: 373 bytes, params: 1, frame: 26
|
|
const withTiming = (Module01682Module).withTiming;
|
|
const maybeSetConfigValue2 = maybeSetConfigValue;
|
|
const durationV = this.durationV;
|
|
const easingV = this.easingV;
|
|
const rotateV = this.rotateV;
|
|
const r2 = this.type || withTiming;
|
|
const dampingV = this.dampingV;
|
|
const dampingRatioV = this.dampingRatioV;
|
|
const massV = this.massV;
|
|
const stiffnessV = this.stiffnessV;
|
|
const overshootClampingV = this.overshootClampingV;
|
|
const restDisplacementThresholdV = this.restDisplacementThresholdV;
|
|
const restSpeedThresholdV = this.restSpeedThresholdV;
|
|
if (r2 === withTiming) {
|
|
maybeSetConfigValue2(easingV, 'easing');
|
|
}
|
|
[{variableName: 'damping', value: dampingV}, {variableName: 'dampingRatio', value: dampingRatioV},
|
|
{variableName: 'mass', value: massV}, {variableName: 'stiffness', value: stiffnessV},
|
|
{variableName: 'overshootClamping', value: overshootClampingV}, {variableName: 'restDisplacementThreshold',
|
|
value: restDisplacementThresholdV}, {variableName: 'restSpeedThreshold', value: restSpeedThresholdV},
|
|
{variableName: 'duration', value: durationV}, {variableName: 'rotate', value: rotateV}].forEach(function(a0) {
|
|
maybeSetConfigValue(a0.value, a0.variableName);
|
|
});
|
|
return [r2, {}];
|
|
function maybeSetConfigValue(a0, a1) { // fn#18495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1821:1981, owner: value_18494.maybeSetConfigValue, offset: 0x00e8e33e, size: 24 bytes, params: 3, frame: 3
|
|
if (a0) {
|
|
env0_0[a1] = a0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun18477, 1694, [6, 7, 15, 17, 18, 1682,
|
|
1681]) /* metro module 1694, dependencies: [6, 7, 15, 17, 18, 1682, 1681] */;
|