Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,163 @@
|
||||
/* Metro module 6762; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 6763, 6764] */
|
||||
function _fun53271(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:6, offset: 0x01343eac, size: 310 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['style', 'source', 'autoPlay', 'duration', 'textFiltersAndroid', 'textFiltersIOS', 'resizeMode'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(31) /* metro dependency 31 */;
|
||||
const env0_10 = (require(27) /* metro dependency 27 */).processColor;
|
||||
const env0_11 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun53275(PureComponent);
|
||||
value.defaultProps = {'source': null, 'progress': 0, 'speed': 1, 'loop': true, 'autoPlay': false,
|
||||
'enableMergePathsAndroidForKitKatAndAbove': false, 'enableSafeModeAndroid': false, 'cacheComposition': true,
|
||||
'useNativeLooping': false, 'resizeMode': 'contain', source: undefined, colorFilters: [], textFiltersAndroid: [],
|
||||
textFiltersIOS: []};
|
||||
exports.LottieView = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_53272() { // fn#53272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:303, offset: 0x01343fe2, 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_53272_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun53275(a0) { // fn#53275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:771, offset: 0x01344040, size: 183 bytes, params: 2, frame: 16
|
||||
const closure = LottieView;
|
||||
env0_9(closure, a0);
|
||||
return env0_6(closure, [{key: 'play', value: function(a0, a1) {
|
||||
var value = a0;
|
||||
var value2 = a1;
|
||||
var Commands = require(dependencyMap[9]).Commands;
|
||||
var play = Commands.play;
|
||||
var lottieAnimationViewRef = this.lottieAnimationViewRef;
|
||||
var value4 = -1;
|
||||
Reflect.apply(play, Commands, [lottieAnimationViewRef, value ?? value4, value2 ?? value4]);
|
||||
}}, {key: 'reset', value: function() {
|
||||
var Commands = require(dependencyMap[9]).Commands;
|
||||
Commands.reset(this.lottieAnimationViewRef);
|
||||
}}, {key: 'pause', value: function() {
|
||||
var Commands = require(dependencyMap[9]).Commands;
|
||||
Commands.pause(this.lottieAnimationViewRef);
|
||||
}}, {key: 'resume', value: function() {
|
||||
var Commands = require(dependencyMap[9]).Commands;
|
||||
Commands.resume(this.lottieAnimationViewRef);
|
||||
}}, {key: 'captureRef', value: function(a0) {
|
||||
if (a0 !== null) {
|
||||
this.lottieAnimationViewRef = a0;
|
||||
if (this.props.autoPlay === true) {
|
||||
this.play();
|
||||
}
|
||||
}
|
||||
}}, {key: 'render', value: value_53285}]);
|
||||
}
|
||||
|
||||
function LottieView(a0) { // fn#53276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:783, offset: 0x013440f7, size: 294 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_5(this, LottieView);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_8(LottieView);
|
||||
value = env1_7(this, _isNativeReflectConstruct_53272() ? global.Reflect.construct(value3, items2,
|
||||
env1_8(this).constructor) : value3.apply(this, items2));
|
||||
value.onAnimationFinish = onAnimationFinish_53277;
|
||||
value.onAnimationFailure = onAnimationFailure;
|
||||
value.onAnimationLoaded = onAnimationLoaded;
|
||||
value.play = value.play.bind(value);
|
||||
value.reset = value.reset.bind(value);
|
||||
value.pause = value.pause.bind(value);
|
||||
value.resume = value.resume.bind(value);
|
||||
value.onAnimationFinish = value.onAnimationFinish.bind(value);
|
||||
value.captureRef = value.captureRef.bind(value);
|
||||
a0.hover;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_53285() { // fn#53285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:2084, offset: 0x013443f5, size: 394 bytes, params: 1, frame: 30
|
||||
var environment;
|
||||
const props = this.props;
|
||||
const style = props.style;
|
||||
const source = props.source;
|
||||
const autoPlay = props.autoPlay;
|
||||
const duration = props.duration;
|
||||
const textFiltersAndroid = props.textFiltersAndroid;
|
||||
const textFiltersIOS = props.textFiltersIOS;
|
||||
const resizeMode = props.resizeMode;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(props, env1_3);
|
||||
if (source == null) {
|
||||
global.console.warn('LottieView needs `source` parameter, provided value for source:', source);
|
||||
return null;
|
||||
}
|
||||
const possibleSources = (require(6764) /* metro dependency 6764 */).parsePossibleSources(source);
|
||||
const r15 = duration && possibleSources.sourceJson && source.fr ? global.Math.round(source.op / source.fr * 1000 / duration) : this.props.speed;
|
||||
const colorFilters = this.props.colorFilters;
|
||||
const r18 = colorFilters == null ? value2 : colorFilters.map(function(a0) {
|
||||
var Object = global.Object;
|
||||
var object = {};
|
||||
object.color = processColor(a0.color);
|
||||
return Object.assign({}, a0, object);
|
||||
});
|
||||
value = importDefault(6763) /* metro dependency 6763 */;
|
||||
let Object = global.Object;
|
||||
return ((Component) => <Component {...Object.assign({ref: this.captureRef}, value3, {colorFilters: r18,
|
||||
textFiltersAndroid: textFiltersAndroid, textFiltersIOS: textFiltersIOS, speed: r15, style: style,
|
||||
onAnimationFinish: this.onAnimationFinish, onAnimationFailure: this.onAnimationFailure,
|
||||
onAnimationLoaded: this.onAnimationLoaded, autoPlay: autoPlay, resizeMode: resizeMode},
|
||||
possibleSources)} />)(value);
|
||||
}
|
||||
|
||||
function LottieViewOnAnimationFinish(a0) { // fn#53277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1013, owner: LottieView.onAnimationFinish, offset: 0x0134421d, size: 63 bytes, params: 2, frame: 11
|
||||
let props = env0_0.props;
|
||||
if (props.onAnimationFinish != null) {
|
||||
props = env0_0.props;
|
||||
props.onAnimationFinish(a0.nativeEvent.isCancelled);
|
||||
}
|
||||
}
|
||||
|
||||
function onAnimationFailure(a0) { // fn#53278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1133, owner: LottieView.onAnimationFailure, offset: 0x0134425c, size: 62 bytes, params: 2, frame: 11
|
||||
let props = env0_0.props;
|
||||
if (props.onAnimationFailure != null) {
|
||||
props = env0_0.props;
|
||||
props.onAnimationFailure(a0.nativeEvent.error);
|
||||
}
|
||||
}
|
||||
|
||||
function onAnimationLoaded() { // fn#53279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6940:1248, owner: LottieView.onAnimationLoaded, offset: 0x0134429a, size: 47 bytes, params: 1, frame: 10
|
||||
if (env0_0.props.onAnimationLoaded != null) {
|
||||
env0_0.props.onAnimationLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user