Files
2026-07-28 01:06:53 +03:00

126 lines
6.4 KiB
TypeScript

/* Metro module 6760; source: components_native/common/LottieAnimationView.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 6761, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import ObjectWithoutProperties from '../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module06761 from '../../by-id/module-06761.js'; /* Metro dependency 6761 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun53258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:6, offset: 0x013439ef, size: 303 bytes, params: 8, frame: 19
const env0_2 = ['source', 'style', 'collapsable'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
const PureComponent = value.PureComponent;
value = _fun53262(PureComponent);
value.defaultProps = {'autoPlay': true, 'loop': true, 'collapsable': false};
(FileImportTrackerModule).fileFinishedImporting('components_native/common/LottieAnimationView.tsx');
exports.default = value;
function _isNativeReflectConstruct_53259() { // fn#53259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:236, offset: 0x01343b1e, 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_53259_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun53262(a0) { // fn#53262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:435, offset: 0x01343b7c, size: 160 bytes, params: 2, frame: 16
const LottieAnimationView2 = LottieAnimationView;
Inherits(LottieAnimationView2, a0);
return CreateClass(LottieAnimationView2, [{key: 'play', value: function() {
if (this.animation != null) {
this.animation.play();
}
}}, {key: 'reset', value: function() {
if (this.animation != null) {
this.animation.reset();
}
}}, {key: 'pause', value: function() {
if (this.animation != null) {
this.animation.pause();
}
}}, {key: 'resume', value: function() {
if (this.animation != null) {
this.animation.resume();
}
}}, {key: 'render', value: value_53269}]);
function LottieAnimationView(a0) { // fn#53263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:447, offset: 0x01343c1c, size: 151 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, LottieAnimationView);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_7(LottieAnimationView);
binding = env1_6;
if (_isNativeReflectConstruct_53259()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_7(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.animation = null;
value.setRef = setRef;
return value;
function setRef(a0) { // fn#53264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:716, owner: LottieAnimationView.setRef, offset: 0x01343cb3, size: 20 bytes, params: 2, frame: 2
env0_0.animation = a0;
}
}
function value_53269() { // fn#53269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6938:1120, offset: 0x01343d53, size: 226 bytes, params: 1, frame: 22
const props = this.props;
const source = props.source;
const style = props.style;
const collapsable = props.collapsable;
const value = environment.__proto__;
const binding = env1_3;
const value2 = undefined;
const value3 = binding(props, env1_2);
const r9 = value2 === (typeof source !== 'object' || source.uri ? value2 : global.JSON.stringify(source)) ? value2 : {aspectRatio: source.w / source.h};
return (
<View style={[r9, style]} collapsable={collapsable}>
{((Component) => <Component ref={this.setRef} source={source} style={[r9,
style]} {...value3} />)(Module06761)}
</View>
);
}
}
}
global.__d(_fun53258, 6760, [29, 6, 7, 15, 17, 18, 31, 27, 33, 6761,
2]) /* metro module 6760, dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 6761, 2] */;