decord/source/14481__isNativeReflectConstruct.js

167 lines
5.3 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14481
// Function ID: 14482
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 17, 21, 14480, 12436]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 14481 (_isNativeReflectConstruct)
import noopDefault from "noop" /* 19 */;
import emptyFunctionDefault from "emptyFunction" /* 12436 */;
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 14480 */;
import closure_1 from "_objectWithoutProperties" /* 109 */;
import closure_2 from "_classCallCheck" /* 41 */;
import closure_3 from "_possibleConstructorReturn" /* 93 */;
import closure_4 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import importDefaultResult1 from "_inherits" /* 98 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-29 08:29:29 +00:00
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-04 21:03:28 +00:00
const AnimatedCircularProgress = ["fill", "prefill"];
const Animated = get_ActivityIndicator.Animated;
const Easing = get_ActivityIndicator.Easing;
2026-08-24 06:08:38 +00:00
let closure_8 = Animated.createAnimatedComponent(_isNativeReflectConstructDefault);
2026-08-04 21:03:28 +00:00
class AnimatedCircularProgress {
constructor(arg0) {
2026-07-29 08:29:29 +00:00
self = this;
2026-08-04 21:03:28 +00:00
closure_0 = global;
2026-08-24 06:08:38 +00:00
tmp = closure_2(this, closure_0);
2026-08-04 21:03:28 +00:00
items = [];
items[0] = global;
2026-08-24 06:08:38 +00:00
tmp2 = closure_4;
obj = closure_4(closure_0);
tmp3 = closure_3;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
2026-08-04 21:03:28 +00:00
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-04 21:03:28 +00:00
constructResult = obj.apply(self, items);
2026-07-29 08:29:29 +00:00
}
tmp3Result = tmp3(self, constructResult);
2026-08-04 21:03:28 +00:00
obj = { fillAnimation: null };
value = new Animated.Value(global.prefill);
obj[0] = value;
tmp3Result.state = obj;
if (global.onFillChange) {
fillAnimation = tmp3Result.state.fillAnimation;
addListenerResult = fillAnimation.addListener((value) => prefill.onFillChange(value.value));
}
2026-07-29 08:29:29 +00:00
return tmp3Result;
}
}
2026-08-24 06:08:38 +00:00
importDefaultResult1(AnimatedCircularProgress, noopDefault.PureComponent);
2026-07-29 08:29:29 +00:00
let obj = {
2026-08-04 21:03:28 +00:00
key: "componentDidMount",
value: function componentDidMount() {
this.animate();
2026-07-29 08:29:29 +00:00
}
};
let items = [
obj,
{
2026-08-04 21:03:28 +00:00
key: "componentDidUpdate",
value: function componentDidUpdate(arg0) {
const self = this;
if (arg0.fill !== this.props.fill) {
self.animate();
2026-07-29 08:29:29 +00:00
}
}
},
{
2026-08-04 21:03:28 +00:00
key: "reAnimate",
value: function reAnimate(arg0, arg1, arg2, arg3) {
2026-07-29 08:29:29 +00:00
const self = this;
2026-08-24 06:08:38 +00:00
closure_1 = arg1;
closure_2 = arg2;
closure_0 = arg3;
2026-08-04 21:03:28 +00:00
const obj = { fillAnimation: null };
const value = new Animated.Value(arg0);
obj[0] = value;
2026-08-24 06:08:38 +00:00
this.setState(obj, () => self.animate(closure_1, closure_2, closure_0));
2026-08-04 21:03:28 +00:00
}
},
{
key: "animate",
value: function animate(arg0, arg1, arg2) {
const self = this;
let fill = arg0;
if (arg0 < 0) {
fill = self.props.fill;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
let duration = arg1;
if (!arg1) {
duration = self.props.duration;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
let easing = arg2;
if (!arg2) {
easing = self.props.easing;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
const timingResult = Animated.timing(self.state.fillAnimation, { useNativeDriver: self.props.useNativeDriver, toValue: fill, easing, duration, delay: self.props.delay });
timingResult.start(self.props.onAnimationComplete);
return timingResult;
}
},
{
key: "animateColor",
value: function animateColor() {
const self = this;
if (this.props.tintColorSecondary) {
const fillAnimation = self.state.fillAnimation;
const obj = { inputRange: null, outputRange: null };
obj[0] = [0, 100];
const items = [self.props.tintColor, self.props.tintColorSecondary];
obj[1] = items;
let tintColor = fillAnimation.interpolate(obj);
} else {
tintColor = self.props.tintColor;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
return tintColor;
}
},
{
key: "render",
value: function render() {
const props = this.props;
({ fill, prefill } = props);
const obj = {};
const merged = Object.assign(callback(props, AnimatedCircularProgress));
obj.fill = this.state.fillAnimation;
obj.tintColor = this.animateColor();
2026-08-24 06:08:38 +00:00
return <closure_8 />;
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-04 21:03:28 +00:00
const importDefaultResultResult = importDefaultResult(AnimatedCircularProgress, items);
obj = {};
2026-08-24 06:08:38 +00:00
let merged = Object.assign(_isNativeReflectConstructDefault.propTypes);
obj.prefill = emptyFunctionDefault.number;
obj.duration = emptyFunctionDefault.number;
obj.easing = emptyFunctionDefault.func;
obj.onAnimationComplete = emptyFunctionDefault.func;
obj.useNativeDriver = emptyFunctionDefault.bool;
obj.delay = emptyFunctionDefault.number;
2026-07-29 08:29:29 +00:00
importDefaultResultResult.propTypes = obj;
2026-08-04 21:03:28 +00:00
obj = { duration: 500, easing: Easing.out(Easing.ease), prefill: 0, useNativeDriver: false, delay: 0 };
importDefaultResultResult.defaultProps = obj;
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;