2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 12689
|
|
|
|
|
// Function ID: 12690
|
2026-08-10 06:55:34 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 17, 21, 4212]
|
2026-08-10 06:55:34 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 12689 (_isNativeReflectConstruct)
|
|
|
|
|
import noopDefault from "noop" /* 19 */;
|
|
|
|
|
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 { jsx } from "jsxProd" /* 21 */;
|
2026-08-10 06:55:34 +00:00
|
|
|
|
2026-08-13 17:34:28 +00:00
|
|
|
const BackButton = arg1;
|
2026-08-10 06:55:34 +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-08-10 06:55:34 +00:00
|
|
|
return closure_0;
|
2026-08-24 06:08:38 +00:00
|
|
|
};
|
2026-08-10 06:55:34 +00:00
|
|
|
return _isNativeReflectConstruct();
|
|
|
|
|
} catch (err) {
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-13 17:34:28 +00:00
|
|
|
require("get ActivityIndicator").BackHandler;
|
|
|
|
|
class BackButton {
|
2026-08-10 06:55:34 +00:00
|
|
|
constructor() {
|
|
|
|
|
self = this;
|
|
|
|
|
items = [...arguments];
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = undefined;
|
|
|
|
|
tmp = closure_2(this, closure_0);
|
2026-08-10 06:55:34 +00:00
|
|
|
items1 = [...items];
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp2 = closure_4;
|
|
|
|
|
obj = closure_4(closure_0);
|
|
|
|
|
tmp3 = closure_3;
|
2026-08-10 06:55:34 +00:00
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
|
|
tmp5 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
|
|
|
|
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
|
|
|
|
|
} else {
|
|
|
|
|
constructResult = obj.apply(self, items1);
|
|
|
|
|
}
|
|
|
|
|
tmp3Result = tmp3(self, constructResult);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = tmp3Result;
|
2026-08-13 17:34:28 +00:00
|
|
|
tmp3Result.handleBack = () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let flag = 0 !== closure_0.history.index;
|
2026-08-13 17:34:28 +00:00
|
|
|
if (flag) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const history = closure_0.history;
|
2026-08-13 17:34:28 +00:00
|
|
|
history.goBack();
|
|
|
|
|
flag = true;
|
2026-08-10 06:55:34 +00:00
|
|
|
}
|
2026-08-13 17:34:28 +00:00
|
|
|
return flag;
|
2026-08-10 06:55:34 +00:00
|
|
|
};
|
|
|
|
|
return tmp3Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefaultResult1(BackButton, noopDefault.Component);
|
2026-08-13 17:34:28 +00:00
|
|
|
let items = [
|
|
|
|
|
{
|
|
|
|
|
key: "componentDidMount",
|
|
|
|
|
value: function componentDidMount() {
|
|
|
|
|
const listener = BackHandler.addEventListener("hardwareBackPress", this.handleBack);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "componentWillUnmount",
|
|
|
|
|
value: function componentWillUnmount() {
|
|
|
|
|
const removed = BackHandler.removeEventListener("hardwareBackPress", this.handleBack);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "render",
|
|
|
|
|
value: function render() {
|
|
|
|
|
const self = this;
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(self(4212).__HistoryContext.Consumer, {
|
2026-08-13 17:34:28 +00:00
|
|
|
children(history) {
|
|
|
|
|
self.history = history;
|
|
|
|
|
return self.props.children || null;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2026-08-10 06:55:34 +00:00
|
|
|
}
|
2026-08-13 17:34:28 +00:00
|
|
|
];
|
2026-08-10 06:55:34 +00:00
|
|
|
|
2026-08-13 17:34:28 +00:00
|
|
|
export default importDefaultResult(BackButton, items);
|