// Module ID: 13898 // Function ID: 13899 // Name: _isNativeReflectConstruct // Dependencies: [41, 42, 93, 95, 98, 19, 17, 21] // Module 13898 (_isNativeReflectConstruct) import StorybookSwitcher from "_classCallCheck" /* 41 */; import _createClass from "_createClass" /* 42 */; import closure_1 from "_possibleConstructorReturn" /* 93 */; import closure_2 from "_getPrototypeOf" /* 95 */; import _inherits from "_inherits" /* 98 */; import noop from "noop" /* 19 */; import closure_4 from "get ActivityIndicator" /* 17 */; import closure_5 from "jsxProd" /* 21 */; 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); } closure_0 = !callResult; _isNativeReflectConstruct = function _isNativeReflectConstruct() { return closure_0; }; return _isNativeReflectConstruct(); } catch (err) { } } if (typeof WeakMap === "function") { const _WeakMap = WeakMap; const weakMap = new WeakMap(); const _WeakMap2 = WeakMap; const weakMap1 = new WeakMap(); } if (!noop) { let obj = Object.create(null); obj[0] = noop; let value = obj; if (null !== noop) { if (typeof noop === "object") { if (!weakMap) { value = obj; const keys = Object.keys(); if (keys !== undefined) { value = obj; while (keys[tmp] !== undefined) { let tmp21 = tmp12; let tmp22 = "default" !== tmp12; if (!tmp22) { if (!tmp22) { continue; } else { let _Object = Object; let ownPropertyDescriptor = defineProperty; if (defineProperty) { let _Object2 = Object; ownPropertyDescriptor = Object.getOwnPropertyDescriptor(noop, tmp12); } if (!ownPropertyDescriptor) { obj[tmp12] = noop[tmp12]; continue; } else { let definePropertyResult1 = defineProperty(obj, tmp12, ownPropertyDescriptor); continue; } continue; } continue; } else { let hasOwnProperty = {}.hasOwnProperty; let call = hasOwnProperty.call; let tmp13 = typeof call === "unknown" ? hasOwnProperty(tmp12) : call(noop, tmp12); } } } } else if (weakMap.has(noop)) { value = weakMap.get(noop); } else { const result = weakMap.set(noop, obj); } } else { value = obj; } } } else { value = noop; } class StorybookSwitcher { constructor(arg0) { self = this; tmp = StorybookSwitcher(this, closure_0); items = []; items[0] = global; tmp2 = closure_2; obj = closure_2(closure_0); tmp3 = closure_1; if (_isNativeReflectConstruct()) { tmp5 = globalThis; _Reflect = Reflect; constructResult = Reflect.construct(obj, items, tmp2(self).constructor); } else { constructResult = obj.apply(self, items); } tmp3Result = tmp3(self, constructResult); closure_0 = tmp3Result; tmp3Result.state = { showStorybook: false }; emitter = global.emitter; onResult = emitter.on("storybook", (showStorybook) => { state.setState({ showStorybook }); }); return tmp3Result; } } _inherits(StorybookSwitcher, value.Component); obj = { key: "render", value: function render() { let children = this.props.children; const obj = { style: { flex: 1 }, children: null }; if (this.state.showStorybook) { children = ; } obj[1] = children; return {null}; } }; let items = [obj]; export default _createClass(StorybookSwitcher, items);