decord/source/components_native/common/UntouchableAlert.tsx

52 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 15306
// Function ID: 15307
// Name: UntouchableAlert
// Dependencies: [19, 17, 21, 4606, 4317, 5628, 2]
2026-07-20 16:05:17 +00:00
// Module 15306 (UntouchableAlert)
import ActivityIndicator_ActivityIndicator from "ActivityIndicator/ActivityIndicator" /* 5628 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4606);
let closure_4 = createStyles.createLegacyClassComponentStyles({ container: { flex: 1, alignItems: "center", justifyContent: "center" } });
const PureComponent = noop.PureComponent;
2026-07-29 08:29:29 +00:00
class UntouchableAlert extends PureComponent {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = UntouchableAlert.prototype;
prototype["componentDidMount"] = function componentDidMount() {
const self = this;
if (!this.props.loading) {
self.closeAlert();
}
};
prototype["componentDidUpdate"] = function componentDidUpdate(loading) {
const self = this;
loading = this.props.loading;
if (!tmp) {
self.closeAlert();
}
};
prototype["closeAlert"] = function closeAlert() {
const self = this;
setImmediate(() => {
const props = self.props;
return props.onClose();
});
};
prototype["render"] = function render() {
let tmp2 = null;
if (this.props.loading) {
const obj = { style: tmp.container, children: jsx(ActivityIndicator_ActivityIndicator.ActivityIndicator, {}) };
tmp2 = <View style={tmp.container}>{jsx(ActivityIndicator_ActivityIndicator.ActivityIndicator, {})}</View>;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
};
UntouchableAlert.contextType = fn(4317).ThemeContext;
const size = fn(2);
const result = size.fileFinishedImporting("components_native/common/UntouchableAlert.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default UntouchableAlert;