decord/source/components_native/common/UntouchableAlert.tsx

53 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14689
// Function ID: 14690
2026-07-29 08:29:29 +00:00
// Name: componentDidMount
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 4108, 5929, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 14689 (componentDidMount)
import ActivityIndicator from "ActivityIndicator" /* 5929 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
let closure_4 = createCacheKey.createLegacyClassComponentStyles({ container: { flex: 1, alignItems: "center", justifyContent: "center" } });
2026-08-24 06:08:38 +00:00
const PureComponent = importAllResult.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: null, children: null };
obj[0] = tmp.container;
2026-08-24 06:08:38 +00:00
obj[1] = jsx(ActivityIndicator.ActivityIndicator, {});
2026-07-29 08:29:29 +00:00
tmp2 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
};
UntouchableAlert.contextType = require("ManaContext").ThemeContext;
2026-08-24 06:08:38 +00:00
const result = require("set").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;