2026-07-20 16:05:17 +00:00
// Module ID: 293
// Function ID: 4493
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 294, 112, 295, 300, 48, 253]
2026-07-20 16:05:17 +00:00
// Module 293 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _objectWithoutProperties from "_objectWithoutProperties" ;
import result from "result" ;
import closure _6 from "jsxProd" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import { createRef } from "result" ;
import jsxProd from "jsxProd" ;
import importAllResult from "result" ;
let closure _11 ;
let closure _12 ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct ( ) {
let closure _0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) => {
} ) ) ;
function _isNativeReflectConstruct ( ) {
return closure _0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
let closure _3 = [ "drawerBackgroundColor" , "onDrawerStateChanged" , "renderNavigationView" , "onDrawerOpen" , "onDrawerClose" ] ;
( { jsx : closure _11 , jsxs : closure _12 } = jsxProd ) ;
let closure _13 = [ "Idle" , "Dragging" , "Settling" ] ;
let tmp4 = ( ( Component ) => {
2026-07-20 16:05:17 +00:00
class DrawerLayoutAndroid {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1 _5 ( this , apply ) ;
2026-07-20 16:05:17 +00:00
length = arguments . length ;
array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
items = [ ] ;
combined = items . concat ( array ) ;
2026-07-23 10:11:24 +00:00
obj = outer1 _8 ( apply ) ;
tmp4 = outer1 _7 ;
if ( outer1 _15 ( ) ) {
2026-07-20 16:05:17 +00:00
items1 = combined ;
if ( ! combined ) {
items1 = [ ] ;
}
2026-07-23 10:11:24 +00:00
tmp6 = outer1 _8 ;
constructResult = Reflect . construct ( obj , items1 , outer1 _8 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj . apply ( self , combined ) ;
}
tmp4Result = tmp4 ( self , constructResult ) ;
2026-07-23 10:11:24 +00:00
apply = tmp4Result ;
tmp4Result . _nativeRef = outer1 _10 ( ) ;
2026-07-20 16:05:17 +00:00
tmp4Result . state = { drawerOpened : false } ;
tmp4Result . _onDrawerSlide = ( arg0 ) => {
if ( tmp4Result . props . onDrawerSlide ) {
const props = tmp4Result . props ;
props . onDrawerSlide ( arg0 ) ;
}
if ( "on-drag" === tmp4Result . props . keyboardDismissMode ) {
2026-07-23 10:11:24 +00:00
outer2 _1 ( outer2 _2 [ 8 ] ) ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
tmp4Result . _onDrawerOpen = ( ) => {
tmp4Result . setState ( { drawerOpened : true } ) ;
if ( tmp4Result . props . onDrawerOpen ) {
const props = tmp4Result . props ;
props . onDrawerOpen ( ) ;
}
} ;
tmp4Result . _onDrawerClose = ( ) => {
tmp4Result . setState ( { drawerOpened : false } ) ;
if ( tmp4Result . props . onDrawerClose ) {
const props = tmp4Result . props ;
props . onDrawerClose ( ) ;
}
} ;
tmp4Result . _onDrawerStateChanged = ( arg0 ) => {
if ( tmp4Result . props . onDrawerStateChanged ) {
const props = tmp4Result . props ;
2026-07-23 10:11:24 +00:00
props . onDrawerStateChanged ( outer2 _13 [ arg0 . nativeEvent . drawerState ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
return tmp4Result ;
}
}
callback2 ( DrawerLayoutAndroid , Component ) ;
let obj = {
key : "render" ,
value : function render ( ) {
let onDrawerClose ;
let onDrawerOpen ;
let onDrawerStateChanged ;
const self = this ;
const props = this . props ;
const drawerBackgroundColor = props . drawerBackgroundColor ;
let str = "white" ;
if ( undefined !== drawerBackgroundColor ) {
str = drawerBackgroundColor ;
}
( { onDrawerStateChanged , onDrawerOpen , onDrawerClose } = props ) ;
let tmp2 = null != self . props . statusBarBackgroundColor ;
let obj = { style : items } ;
2026-07-23 10:11:24 +00:00
items = [ outer1 _14 . drawerSubview , ] ;
2026-07-20 16:05:17 +00:00
obj = { width : self . props . drawerWidth , backgroundColor : str } ;
items [ 1 ] = obj ;
let str2 = "none" ;
2026-07-23 10:11:24 +00:00
const tmp = outer1 _4 ( props , outer1 _3 ) ;
const tmp3 = outer1 _12 ;
2026-07-20 16:05:17 +00:00
if ( self . state . drawerOpened ) {
str2 = "auto" ;
}
obj . pointerEvents = str2 ;
obj . collapsable = false ;
const items1 = [ props . renderNavigationView ( ) , ] ;
let tmp5 = tmp2 ;
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
obj = { style : outer1 _14 . drawerStatusBar } ;
tmp5 = outer1 _11 ( outer1 _1 ( outer1 _2 [ 9 ] ) , obj ) ;
2026-07-20 16:05:17 +00:00
}
items1 [ 1 ] = tmp5 ;
obj . children = items1 ;
2026-07-23 10:11:24 +00:00
const tmp4 = outer1 _1 ( outer1 _2 [ 9 ] ) ;
const obj1 = { style : outer1 _14 . mainSubview , collapsable : false } ;
2026-07-20 16:05:17 +00:00
let tmp13 = tmp2 ;
2026-07-23 10:11:24 +00:00
const tmp11 = outer1 _12 ;
const tmp3Result = tmp3 ( outer1 _1 ( outer1 _2 [ 9 ] ) , obj ) ;
2026-07-20 16:05:17 +00:00
if ( tmp2 ) {
const obj2 = { translucent : true , backgroundColor : self . props . statusBarBackgroundColor } ;
2026-07-23 10:11:24 +00:00
tmp13 = outer1 _11 ( outer1 _1 ( outer1 _2 [ 10 ] ) , obj2 ) ;
2026-07-20 16:05:17 +00:00
}
const items2 = [ tmp13 , , ] ;
if ( tmp2 ) {
const obj3 = { } ;
2026-07-23 10:11:24 +00:00
const items3 = [ outer1 _14 . statusBar , ] ;
2026-07-20 16:05:17 +00:00
const obj4 = { backgroundColor : self . props . statusBarBackgroundColor } ;
items3 [ 1 ] = obj4 ;
obj3 . style = items3 ;
2026-07-23 10:11:24 +00:00
tmp2 = outer1 _11 ( outer1 _1 ( outer1 _2 [ 9 ] ) , obj3 ) ;
2026-07-20 16:05:17 +00:00
}
items2 [ 1 ] = tmp2 ;
items2 [ 2 ] = self . props . children ;
obj1 . children = items2 ;
2026-07-23 10:11:24 +00:00
const tmp12 = outer1 _1 ( outer1 _2 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
const obj5 = { ref : self . _nativeRef , drawerBackgroundColor : str , drawerWidth : self . props . drawerWidth , drawerPosition : self . props . drawerPosition , drawerLockMode : self . props . drawerLockMode } ;
2026-07-23 10:11:24 +00:00
const items4 = [ outer1 _14 . base , self . props . style ] ;
2026-07-20 16:05:17 +00:00
obj5 . style = items4 ;
( { _onDrawerSlide : obj8 . onDrawerSlide , _onDrawerOpen : obj8 . onDrawerOpen , _onDrawerClose : obj8 . onDrawerClose , _onDrawerStateChanged : obj8 . onDrawerStateChanged } = self ) ;
2026-07-23 10:11:24 +00:00
const items5 = [ tmp11 ( outer1 _1 ( outer1 _2 [ 9 ] ) , obj1 ) , tmp3Result ] ;
2026-07-20 16:05:17 +00:00
obj5 . children = items5 ;
2026-07-23 10:11:24 +00:00
const tmp11Result = tmp11 ( outer1 _1 ( outer1 _2 [ 9 ] ) , obj1 ) ;
return outer1 _12 ( outer1 _1 ( outer1 _2 [ 11 ] ) , Object . assign ( { } , tmp , obj5 ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "openDrawer" ,
value : function openDrawer ( ) {
2026-07-23 10:11:24 +00:00
const Commands = DrawerLayoutAndroid ( outer1 _2 [ 11 ] ) . Commands ;
Commands . openDrawer ( outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "closeDrawer" ,
value : function closeDrawer ( ) {
2026-07-23 10:11:24 +00:00
const Commands = DrawerLayoutAndroid ( outer1 _2 [ 11 ] ) . Commands ;
Commands . closeDrawer ( outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "blur" ,
value : function blur ( ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . blur ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "focus" ,
value : function focus ( ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . focus ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 5 ] = {
key : "measure" ,
value : function measure ( arg0 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . measure ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 6 ] = {
key : "measureInWindow" ,
value : function measureInWindow ( arg0 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . measureInWindow ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 7 ] = {
key : "measureLayout" ,
value : function measureLayout ( arg0 , arg1 , arg2 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . measureLayout ( arg0 , arg1 , arg2 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "setNativeProps" ,
value : function setNativeProps ( arg0 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( outer1 _2 [ 12 ] ) ( this . _nativeRef . current ) . setNativeProps ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
let items1 = [
2026-07-20 16:05:17 +00:00
{
key : "positions" ,
get ( ) {
console . warn ( "Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value \"left\" or \"right\"" ) ;
2026-07-23 10:11:24 +00:00
return { Left : "left" , Right : "right" } ;
2026-07-20 16:05:17 +00:00
}
}
] ;
return callback ( DrawerLayoutAndroid , items , items1 ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "result" ) . Component ) ;
let obj = { base : { flex : 1 , elevation : 16 } , mainSubview : { position : "absolute" , top : 0 , left : 0 , right : 0 , bottom : 0 } , drawerSubview : { position : "absolute" , top : 0 , bottom : 0 } } ;
obj = { height : require ( "_isNativeReflectConstruct" ) . currentHeight } ;
2026-07-20 16:05:17 +00:00
obj . statusBar = obj ;
2026-07-23 10:11:24 +00:00
let obj1 = { position : "absolute" , top : 0 , left : 0 , right : 0 , height : require ( "_isNativeReflectConstruct" ) . currentHeight , backgroundColor : "rgba(0, 0, 0, 0.251)" } ;
2026-07-21 22:01:30 +00:00
obj . drawerStatusBar = obj1 ;
2026-07-23 10:11:24 +00:00
let closure _14 = require ( "setStyleAttributePreprocessor" ) . create ( obj ) ;
2026-07-20 16:05:17 +00:00
export default tmp4 ;