100 lines
5.5 KiB
TypeScript
100 lines
5.5 KiB
TypeScript
/* Metro module 6517; source: design/components/Layers/native/LayerScope.native.tsx; dependencies: [57, 31, 27, 661, 33, 6518, 6519, 2] */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import UseInitialValue from '../../../../hooks/useInitialValue.tsx'; /* Metro dependency 6518 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as LayerContextNativeModule from './LayerContext.native.tsx'; /* Metro dependency 6519 */
|
|
|
|
function _fun51243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:6, offset: 0x0122cf69, size: 227 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
const env0_5 = value.View;
|
|
const env0_6 = value.StyleSheet;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_8 = value.jsx;
|
|
const env0_9 = value.jsxs;
|
|
(FileImportTrackerModule).fileFinishedImporting('design/components/Layers/native/LayerScope.native.tsx');
|
|
exports.LayerScope = LayerScope;
|
|
function Layer({zIndex}) { // fn#51244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:192, offset: 0x0122d04c, size: 257 bytes, params: 2, frame: 18
|
|
const useContext = ReactModule.useContext;
|
|
const LayerContext = (LayerContextNativeModule).LayerContext;
|
|
const value2 = Reflect.apply(useContext, ReactModule, [LayerContext]);
|
|
const env0_2 = env0_3(ReactModule.useState({}), 2)[1];
|
|
var env0_3 = ReactModule.useRef(null);
|
|
ReactModule.useEffect(_fun51245, [value2]);
|
|
return (
|
|
<View
|
|
style={ReactModule.useMemo(function() {
|
|
var r2;
|
|
var object = {};
|
|
copyDataProperties(object, StyleSheet.absoluteFillObject, r2);
|
|
object['zIndex'] = zIndex;
|
|
return object;
|
|
}, [zIndex])}
|
|
ref={ref_51250}
|
|
onLayout={NOOP}
|
|
pointerEvents="box-none"
|
|
>
|
|
{value2.items.map(_fun51251)}
|
|
</View>
|
|
);
|
|
function _fun51245() { // fn#51245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:319, offset: 0x0122d14d, size: 27 bytes, params: 1, frame: 3
|
|
env0_1.invalidate = invalidate;
|
|
return _fun51247;
|
|
function invalidate() { // fn#51246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:337, offset: 0x0122d168, size: 18 bytes, params: 1, frame: 11
|
|
return env1_2({});
|
|
}
|
|
|
|
function _fun51247() { // fn#51247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:347, offset: 0x0122d17a, size: 24 bytes, params: 1, frame: 2
|
|
env1_1.invalidate = function() {
|
|
return null;
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
function LayerRef(a0) { // fn#51250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:480, owner: Layer.ref, offset: 0x0122d1ba, size: 37 bytes, params: 2, frame: 11
|
|
env0_3.current = a0;
|
|
env0_1.setSurfaceRef(a0);
|
|
}
|
|
|
|
function _fun51251(a0) { // fn#51251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:568, offset: 0x0122d1df, size: 48 bytes, params: 2, frame: 15
|
|
const Fragment = env1_4.Fragment;
|
|
return (
|
|
<Fragment key={a0.key}>
|
|
{a0.component}
|
|
</Fragment>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
function LayerScope({children, zIndex}) { // fn#51252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:718, offset: 0x0122d20f, size: 134 bytes, params: 2, frame: 18
|
|
const value2 = (UseInitialValue)(_fun51253);
|
|
const LayerContext = (LayerContextNativeModule).LayerContext;
|
|
const Provider = LayerContext.Provider;
|
|
return (
|
|
<Provider value={value2}>
|
|
{children}
|
|
<Layer zIndex={zIndex} />
|
|
</Provider>
|
|
);
|
|
function _fun51253() { // fn#51253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6695:776, offset: 0x0122d295, size: 53 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
const LayerContextManager = (LayerContextNativeModule).LayerContextManager;
|
|
value = Object.create(LayerContextManager.prototype, {constructor: {value: LayerContextManager}});
|
|
const layerContextManager = new LayerContextManager();
|
|
return layerContextManager instanceof Object ? layerContextManager : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun51243, 6517, [57, 31, 27, 661, 33, 6518, 6519,
|
|
2]) /* metro module 6517, dependencies: [57, 31, 27, 661, 33, 6518, 6519, 2] */;
|