decord/source/components_native/common/LottieAnimationView.tsx

128 lines
3.5 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5453
2026-07-27 11:26:19 +00:00
// Function ID: 46618
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 5454, 2]
// Module 5453 (_isNativeReflectConstruct)
import _objectWithoutProperties from "_objectWithoutProperties";
import result from "result";
import getActivityIndicator from "get ActivityIndicator";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
import importAllResult from "result";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let closure_2 = ["source", "style", "collapsable"];
const tmp3 = ((PureComponent) => {
2026-07-20 16:05:17 +00:00
class LottieAnimationView {
constructor(arg0) {
self = this;
items = [...arguments];
2026-07-23 10:11:24 +00:00
tmp = outer1_4(this, apply);
2026-07-20 16:05:17 +00:00
items1 = [...items];
2026-07-23 10:11:24 +00:00
obj = outer1_7(apply);
tmp2 = outer1_6;
if (outer1_11()) {
2026-07-20 16:05:17 +00:00
tmp4 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp5 = outer1_7;
constructResult = Reflect.construct(obj, items1, outer1_7(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj.apply(self, items1);
}
tmp2Result = tmp2(self, constructResult);
2026-07-23 10:11:24 +00:00
apply = tmp2Result;
2026-07-20 16:05:17 +00:00
tmp2Result.animation = null;
tmp2Result.setRef = (animation) => {
2026-07-23 10:11:24 +00:00
closure_0.animation = animation;
2026-07-20 16:05:17 +00:00
};
return tmp2Result;
}
}
callback2(LottieAnimationView, PureComponent);
let obj = {
key: "play",
value() {
if (null != this.animation) {
const animation = this.animation;
animation.play();
}
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , , , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "reset",
value() {
if (null != this.animation) {
const animation = this.animation;
animation.reset();
}
}
};
items[1] = obj;
obj = {
key: "pause",
value() {
if (null != this.animation) {
const animation = this.animation;
animation.pause();
}
}
};
items[2] = obj;
items[3] = {
key: "resume",
value() {
if (null != this.animation) {
const animation = this.animation;
animation.resume();
}
}
};
items[4] = {
key: "render",
value() {
let source;
let style;
const props = this.props;
({ source, style } = props);
let json;
if ("object" === typeof source) {
if (!source.uri) {
const _JSON = JSON;
json = JSON.stringify(source);
}
}
let tmp4;
if (undefined !== json) {
let obj = { aspectRatio: source.w / source.h };
tmp4 = obj;
}
obj = { style: items, collapsable: props.collapsable };
2026-07-23 10:11:24 +00:00
items = [tmp4, style];
2026-07-20 16:05:17 +00:00
obj = { ref: this.setRef, source, style: items1 };
2026-07-23 10:11:24 +00:00
items1 = [tmp4, style];
const tmp = outer1_3(props, outer1_2);
2026-07-20 16:05:17 +00:00
const merged = Object.assign(tmp);
2026-07-23 10:11:24 +00:00
obj.children = outer1_10(LottieAnimationView(outer1_1[9]), obj);
return outer1_10(outer1_9, obj);
2026-07-20 16:05:17 +00:00
}
};
return callback(LottieAnimationView, items);
2026-07-23 10:11:24 +00:00
})(require("result").PureComponent);
tmp3.defaultProps = { autoPlay: true, loop: true, collapsable: false };
let result = require("_defineProperties").fileFinishedImporting("components_native/common/LottieAnimationView.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;