decord/source/346__isNativeReflectConstruct.js

189 lines
6.2 KiB
JavaScript
Raw Normal View History

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-08-24 06:08:38 +00:00
import get_VirtualizedListDefault from "get VirtualizedList" /* 312 */;
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 347 */;
import closure_3 from "_classCallCheck" /* 41 */;
import closure_4 from "_possibleConstructorReturn" /* 93 */;
import closure_5 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import importDefaultResult1 from "_inherits" /* 98 */;
import { jsx } from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
import { default as _default } from "getConstants" /* 411 */;
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);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
let closure_8 = 0;
2026-07-29 08:29:29 +00:00
class Modal {
constructor(arg0) {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_3(this, Modal);
2026-07-29 08:29:29 +00:00
items = [];
items[0] = global;
2026-08-24 06:08:38 +00:00
tmp2 = closure_5;
obj = closure_5(Modal);
tmp3 = closure_4;
2026-07-29 08:29:29 +00:00
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);
2026-08-24 06:08:38 +00:00
tmp7 = +closure_8;
closure_8 = tmp7 + 1;
2026-07-29 08:29:29 +00:00
tmp3Result._identifier = tmp7;
obj = { isRendered: true === global.visible };
tmp3Result.state = obj;
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
importDefaultResult1(Modal, importAllResult.Component);
2026-07-29 08:29:29 +00:00
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 };
2026-08-24 06:08:38 +00:00
obj1 = { value: null, children: null };
2026-07-29 08:29:29 +00:00
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 });
2026-08-24 06:08:38 +00:00
obj[18] = jsx(get_VirtualizedListDefault.VirtualizedListContextResetter, { children: null });
return jsx(__INTERNAL_VIEW_CONFIGDefault, { children: null });
2026-07-29 08:29:29 +00:00
} 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;
2026-08-24 06:08:38 +00:00
return jsx(closure_9, obj);
2026-07-29 08:29:29 +00:00
}
}
let closure_10 = require("get hairlineWidth").default.create({ modal: { position: "absolute" }, container: { [str]: 0, top: 0, flex: 1, backgroundColor: "white" } });
Wrapper.displayName = "Modal";
2026-08-24 06:08:38 +00:00
Wrapper.Context = get_VirtualizedListDefault.VirtualizedListContextResetter;
2026-07-29 08:29:29 +00:00
export default Wrapper;