decord/source/__polyfill/15xxx/module_15117.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

163 lines
5.1 KiB
JavaScript

// Module ID: 15117
// Function ID: 15118
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 17, 21, 15116, 9966]
// Module 15117
import _modDef9966 from "module_9966" /* 9966 */;
import _modDef15116 from "module_15116" /* 15116 */;
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import c3 from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
import noop from "module_19" /* 19 */;
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);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
const AnimatedCircularProgress = ["fill", "prefill"];
get_ActivityIndicator = fn(17);
const Animated = get_ActivityIndicator.Animated;
const Easing = get_ActivityIndicator.Easing;
const jsx = fn(21).jsx;
_isNativeReflectConstruct = Animated.createAnimatedComponent(_modDef15116);
class AnimatedCircularProgress {
constructor(arg0) {
self = this;
closure_0 = global;
tmp = c2(this, AnimatedCircularProgress);
items = [];
items[0] = global;
tmp2 = closure_4;
obj = closure_4(AnimatedCircularProgress);
tmp3 = closure_3;
if (closure_7()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
obj1 = { fillAnimation: null };
value = new hasOwnProperty.Value(global.prefill);
obj1.fillAnimation = value;
tmp3Result.state = obj1;
if (global.onFillChange) {
fillAnimation = tmp3Result.state.fillAnimation;
addListenerResult = fillAnimation.addListener((value) => prefill.onFillChange(value.value));
}
return tmp3Result;
}
}
_inherits(AnimatedCircularProgress, noop.PureComponent);
const entry = {
key: "componentDidMount",
value: function componentDidMount() {
this.animate();
}
};
let items = [
entry,
{
key: "componentDidUpdate",
value: function componentDidUpdate(arg0) {
const self = this;
if (arg0.fill !== this.props.fill) {
self.animate();
}
}
},
{
key: "reAnimate",
value: function reAnimate(arg0, arg1, arg2, arg3) {
const self = this;
closure_1 = arg1;
closure_2 = arg2;
closure_0 = arg3;
const obj = { fillAnimation: null };
value = new Animated.Value(arg0);
obj.fillAnimation = value;
this.setState(obj, () => self.animate(closure_1, closure_2, closure_0));
}
},
{
key: "animate",
value: function animate(arg0, arg1, arg2) {
const self = this;
let fill = arg0;
if (arg0 < 0) {
fill = self.props.fill;
}
let duration = arg1;
if (!arg1) {
duration = self.props.duration;
}
let easing = arg2;
if (!arg2) {
easing = self.props.easing;
}
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: [0, 100], outputRange: null };
const items = [self.props.tintColor, self.props.tintColorSecondary];
obj.outputRange = items;
let tintColor = fillAnimation.interpolate(obj);
} else {
tintColor = self.props.tintColor;
}
return tintColor;
}
},
{
key: "render",
value: function render() {
const props = this.props;
({ fill, prefill } = props);
const obj = {};
const merged = Object.assign(_objectWithoutProperties(props, AnimatedCircularProgress));
obj.fill = this.state.fillAnimation;
obj.tintColor = this.animateColor();
return <_isNativeReflectConstruct />;
}
}
];
const importDefaultResultResult = _createClass(AnimatedCircularProgress, items);
let obj = {};
let merged = Object.assign(_modDef15116.propTypes);
obj.prefill = _modDef9966.number;
obj.duration = _modDef9966.number;
obj.easing = _modDef9966.func;
obj.onAnimationComplete = _modDef9966.func;
obj.useNativeDriver = _modDef9966.bool;
obj.delay = _modDef9966.number;
importDefaultResultResult.propTypes = obj;
importDefaultResultResult.defaultProps = { duration: 500, easing: Easing.out(Easing.ease), prefill: 0, useNativeDriver: false, delay: 0 };
export default importDefaultResultResult;