2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 346
|
2026-07-29 08:29:29 +00:00
|
|
|
// Function ID: 347
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 347, 312, 349, 108, 253, 411, 254]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 346 (_isNativeReflectConstruct)
|
2026-07-29 08:29:29 +00:00
|
|
|
import _classCallCheck from "_classCallCheck";
|
2026-07-23 10:11:24 +00:00
|
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
2026-07-29 08:29:29 +00:00
|
|
|
import importDefaultResult from "_createClass";
|
|
|
|
|
import importDefaultResult1 from "_inherits";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
import importAllResult from "noop";
|
|
|
|
|
import { default as _default } from "getConstants";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
const Modal = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
2026-07-29 08:29:29 +00:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
let closure_0 = !callResult;
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
return _isNativeReflectConstruct();
|
|
|
|
|
} catch (err) {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let c8 = 0;
|
|
|
|
|
class Modal {
|
|
|
|
|
constructor(arg0) {
|
|
|
|
|
self = this;
|
|
|
|
|
tmp = _isNativeReflectConstruct(this, Modal);
|
|
|
|
|
items = [];
|
|
|
|
|
items[0] = global;
|
|
|
|
|
tmp2 = _isNativeReflectConstruct;
|
|
|
|
|
obj = _isNativeReflectConstruct(Modal);
|
|
|
|
|
tmp3 = _isNativeReflectConstruct;
|
|
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
|
|
tmp5 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
|
|
|
|
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
|
|
|
|
|
} else {
|
|
|
|
|
constructResult = obj.apply(self, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp3Result = tmp3(self, constructResult);
|
|
|
|
|
tmp7 = +c8;
|
|
|
|
|
c8 = tmp7 + 1;
|
|
|
|
|
tmp3Result._identifier = tmp7;
|
|
|
|
|
obj = { isRendered: true === global.visible };
|
|
|
|
|
tmp3Result.state = obj;
|
|
|
|
|
return tmp3Result;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
importDefaultResult1(Modal, require("noop").Component);
|
|
|
|
|
let items = [
|
|
|
|
|
{
|
|
|
|
|
key: "componentDidMount",
|
|
|
|
|
value: function componentDidMount() {
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "componentWillUnmount",
|
|
|
|
|
value: function componentWillUnmount() {
|
|
|
|
|
if (this._eventSubscription) {
|
|
|
|
|
const _eventSubscription = this._eventSubscription;
|
|
|
|
|
_eventSubscription.remove();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "componentDidUpdate",
|
|
|
|
|
value: function componentDidUpdate(visible) {
|
|
|
|
|
const self = this;
|
|
|
|
|
let tmp = false === visible.visible;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = true === self.props.visible;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp) {
|
|
|
|
|
self.setState({ isRendered: true });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "_shouldShowModal",
|
|
|
|
|
value: function _shouldShowModal() {
|
|
|
|
|
return true === this.props.visible;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "render",
|
|
|
|
|
value: function render() {
|
|
|
|
|
const self = this;
|
|
|
|
|
if (this._shouldShowModal()) {
|
|
|
|
|
let obj = {};
|
|
|
|
|
if (true === self.props.transparent) {
|
|
|
|
|
obj.backgroundColor = "transparent";
|
|
|
|
|
} else if (null != self.props.backdropColor) {
|
|
|
|
|
obj.backgroundColor = self.props.backdropColor;
|
|
|
|
|
}
|
|
|
|
|
let presentationStyle = self.props.presentationStyle;
|
|
|
|
|
if (!presentationStyle) {
|
|
|
|
|
let str2 = "fullScreen";
|
|
|
|
|
if (true === self.props.transparent) {
|
|
|
|
|
str2 = "overFullScreen";
|
|
|
|
|
}
|
|
|
|
|
presentationStyle = str2;
|
|
|
|
|
}
|
|
|
|
|
obj = { animationType: null, presentationStyle: null, transparent: null, hardwareAccelerated: null, onRequestClose: null, onShow: null, onDismiss: null, ref: null, visible: null, statusBarTranslucent: null, navigationBarTranslucent: null, identifier: null, style: null, onStartShouldSetResponder: null, supportedOrientations: null, onOrientationChange: null, allowSwipeDismissal: null, testID: null, children: null };
|
|
|
|
|
obj[0] = self.props.animationType || "none";
|
|
|
|
|
obj[1] = presentationStyle;
|
|
|
|
|
obj[2] = self.props.transparent;
|
|
|
|
|
obj[3] = self.props.hardwareAccelerated;
|
|
|
|
|
obj[4] = self.props.onRequestClose;
|
|
|
|
|
obj[5] = self.props.onShow;
|
|
|
|
|
obj[6] = function onDismiss() {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
obj[7] = self.props.modalRef;
|
|
|
|
|
obj[8] = self.props.visible;
|
|
|
|
|
obj[9] = self.props.statusBarTranslucent;
|
|
|
|
|
obj[10] = self.props.navigationBarTranslucent;
|
|
|
|
|
obj[11] = self._identifier;
|
|
|
|
|
obj[12] = closure_10.modal;
|
|
|
|
|
obj[13] = self._shouldSetResponder;
|
|
|
|
|
obj[14] = self.props.supportedOrientations;
|
|
|
|
|
obj[15] = self.props.onOrientationChange;
|
|
|
|
|
obj[16] = self.props.allowSwipeDismissal;
|
|
|
|
|
obj[17] = self.props.testID;
|
|
|
|
|
obj = { children: null };
|
|
|
|
|
const obj1 = { value: null, children: null };
|
|
|
|
|
const obj2 = { style: null, collapsable: false, children: null };
|
|
|
|
|
const items = [closure_10.container, self.props.style, obj];
|
|
|
|
|
obj2[0] = items;
|
|
|
|
|
obj2[2] = self.props.children;
|
|
|
|
|
obj1[1] = jsx(Modal(108).default, { style: null, collapsable: false, children: null });
|
|
|
|
|
obj[0] = jsx(Modal(349).default.Context.Provider, { value: null, children: null });
|
|
|
|
|
obj[18] = jsx(importDefault(312).VirtualizedListContextResetter, { children: null });
|
|
|
|
|
return jsx(importDefault(347), { children: null });
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "_shouldSetResponder",
|
|
|
|
|
value: function _shouldSetResponder() {
|
|
|
|
|
return true;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
const importDefaultResultResult = importDefaultResult(Modal, items);
|
|
|
|
|
let c9 = importDefaultResultResult;
|
|
|
|
|
importDefaultResultResult.defaultProps = { visible: true, hardwareAccelerated: false };
|
|
|
|
|
importDefaultResultResult.contextType = require("RootTagContext").RootTagContext;
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "componentDidMount",
|
|
|
|
|
value: function componentDidMount() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let str = "left";
|
|
|
|
|
if (_default.getConstants().isRTL) {
|
|
|
|
|
str = "right";
|
|
|
|
|
}
|
|
|
|
|
class Wrapper {
|
|
|
|
|
constructor(arg0) {
|
|
|
|
|
obj = {};
|
|
|
|
|
merged = Object.assign(Object.assign(global, Object.create(null)));
|
|
|
|
|
obj.modalRef = global.ref;
|
|
|
|
|
return jsx(Modal, obj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let closure_10 = require("get hairlineWidth").default.create({ modal: { position: "absolute" }, container: { [str]: 0, top: 0, flex: 1, backgroundColor: "white" } });
|
|
|
|
|
Wrapper.displayName = "Modal";
|
|
|
|
|
Wrapper.Context = require("get VirtualizedList").VirtualizedListContextResetter;
|
|
|
|
|
|
|
|
|
|
export default Wrapper;
|