2026-07-20 16:05:17 +00:00
// Module ID: 302
2026-07-29 08:29:29 +00:00
// Function ID: 303
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-29 08:29:29 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 21, 303, 108, 304, 309, 70, 254]
2026-07-20 16:05:17 +00:00
// Module 302 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import nullthrowsDefault from "nullthrows" /* 70 */ ;
import ViewDefault from "View" /* 108 */ ;
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 304 */ ;
import closure _4 from "_objectWithoutProperties" /* 109 */ ;
import closure _5 from "_classCallCheck" /* 41 */ ;
import closure _6 from "_possibleConstructorReturn" /* 93 */ ;
import closure _7 from "_getPrototypeOf" /* 95 */ ;
import importDefaultResult from "_createClass" /* 42 */ ;
import importDefaultResult1 from "_inherits" /* 98 */ ;
import { createRef } from "noop" /* 19 */ ;
import jsxProd from "jsxProd" /* 21 */ ;
import importAllResult from "noop" /* 19 */ ;
import importDefaultResult2 from "get hairlineWidth" /* 254 */ ;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const DrawerLayoutAndroid = 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-07-29 08:29:29 +00:00
let closure _3 = [ "drawerBackgroundColor" , "onDrawerStateChanged" , "renderNavigationView" , "onDrawerOpen" , "onDrawerClose" ] ;
( { jsx : c9 , jsxs : c10 } = jsxProd ) ;
let closure _12 = [ "Idle" , "Dragging" , "Settling" ] ;
class DrawerLayoutAndroid {
constructor ( ) {
self = this ;
items = [ ... arguments ] ;
2026-08-24 06:08:38 +00:00
closure _0 = undefined ;
tmp = closure _5 ( this , closure _0 ) ;
2026-07-29 08:29:29 +00:00
items1 = [ ... items ] ;
2026-08-24 06:08:38 +00:00
tmp2 = closure _7 ;
obj = closure _7 ( closure _0 ) ;
tmp3 = closure _6 ;
2026-07-29 08:29:29 +00:00
if ( _isNativeReflectConstruct ( ) ) {
tmp5 = globalThis ;
_Reflect = Reflect ;
constructResult = Reflect . construct ( obj , items1 , tmp2 ( self ) . constructor ) ;
} else {
constructResult = obj . apply ( self , items1 ) ;
}
tmp3Result = tmp3 ( self , constructResult ) ;
2026-08-24 06:08:38 +00:00
closure _0 = tmp3Result ;
2026-07-29 08:29:29 +00:00
tmp3Result . _nativeRef = createRef ( ) ;
tmp3Result . state = { drawerOpened : false } ;
tmp3Result . _onDrawerSlide = ( arg0 ) => {
2026-08-24 06:08:38 +00:00
if ( store . props . onDrawerSlide ) {
2026-07-29 08:29:29 +00:00
const props = tmp . props ;
props . onDrawerSlide ( arg0 ) ;
}
2026-08-24 06:08:38 +00:00
if ( "on-drag" === store . props . keyboardDismissMode ) {
closure _1 _1 ( closure _1 _2 [ 8 ] ) ( ) ;
2026-07-29 08:29:29 +00:00
}
} ;
tmp3Result . _onDrawerOpen = ( ) => {
2026-08-24 06:08:38 +00:00
store . setState ( { drawerOpened : true } ) ;
if ( store . props . onDrawerOpen ) {
const props = store . props ;
2026-07-29 08:29:29 +00:00
props . onDrawerOpen ( ) ;
}
} ;
tmp3Result . _onDrawerClose = ( ) => {
2026-08-24 06:08:38 +00:00
store . setState ( { drawerOpened : false } ) ;
if ( store . props . onDrawerClose ) {
const props = store . props ;
2026-07-29 08:29:29 +00:00
props . onDrawerClose ( ) ;
}
} ;
tmp3Result . _onDrawerStateChanged = ( arg0 ) => {
2026-08-24 06:08:38 +00:00
if ( store . props . onDrawerStateChanged ) {
2026-07-29 08:29:29 +00:00
const props = tmp . props ;
2026-08-24 06:08:38 +00:00
props . onDrawerStateChanged ( closure _1 _12 [ arg0 . nativeEvent . drawerState ] ) ;
2026-07-29 08:29:29 +00:00
}
} ;
return tmp3Result ;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
importDefaultResult1 ( DrawerLayoutAndroid , importAllResult . Component ) ;
2026-07-29 08:29:29 +00:00
let obj = {
key : "render" ,
value : function render ( ) {
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 , pointerEvents : null , collapsable : false , children : null } ;
items = [ drawerSubview . drawerSubview , { width : self . props . drawerWidth , backgroundColor : str } ] ;
let str2 = "none" ;
const tmp = callback ( props , closure _3 ) ;
if ( self . state . drawerOpened ) {
str2 = "auto" ;
}
obj [ 1 ] = str2 ;
const items1 = [ props . renderNavigationView ( ) , ] ;
let tmp8 = tmp2 ;
if ( tmp2 ) {
obj = { style : null } ;
obj [ 0 ] = tmp7 . drawerStatusBar ;
tmp8 = callback4 ( tmp4 ( 108 ) , obj ) ;
}
items1 [ 1 ] = tmp8 ;
obj [ 3 ] = items1 ;
2026-08-24 06:08:38 +00:00
let tmp3Result = tmp3 ( ViewDefault , obj ) ;
2026-07-29 08:29:29 +00:00
obj = { style : tmp7 . mainSubview , collapsable : false , children : null } ;
let tmp12 = tmp2 ;
let tmp4Result = tmp4 ( 108 ) ;
if ( tmp2 ) {
2026-08-24 06:08:38 +00:00
obj1 = { translucent : true , backgroundColor : null } ;
2026-07-29 08:29:29 +00:00
obj1 [ 1 ] = self . props . statusBarBackgroundColor ;
tmp12 = callback4 ( tmp4 ( 304 ) , obj1 ) ;
}
const items2 = [ tmp12 , , ] ;
if ( tmp2 ) {
const obj2 = { style : null } ;
const items3 = [ tmp7 . statusBar , ] ;
const obj3 = { backgroundColor : null } ;
obj3 [ 0 ] = self . props . statusBarBackgroundColor ;
items3 [ 1 ] = obj3 ;
obj2 [ 0 ] = items3 ;
tmp2 = callback4 ( tmp4 ( 108 ) , obj2 ) ;
}
items2 [ 1 ] = tmp2 ;
items2 [ 2 ] = self . props . children ;
obj [ 2 ] = items2 ;
tmp3Result = tmp3 ( tmp4Result , obj ) ;
const obj4 = { } ;
tmp4Result = tmp4 ( 309 ) ;
const merged = Object . assign ( tmp ) ;
obj4 . ref = self . _nativeRef ;
obj4 . drawerBackgroundColor = str ;
obj4 . drawerWidth = self . props . drawerWidth ;
obj4 . drawerPosition = self . props . drawerPosition ;
obj4 . drawerLockMode = self . props . drawerLockMode ;
const items4 = [ drawerSubview . base , self . props . style ] ;
obj4 . style = items4 ;
( { _onDrawerSlide : obj7 . onDrawerSlide , _onDrawerOpen : obj7 . onDrawerOpen , _onDrawerClose : obj7 . onDrawerClose , _onDrawerStateChanged : obj7 . onDrawerStateChanged } = self ) ;
const items5 = [ tmp3Result , tmp3Result ] ;
obj4 . children = items5 ;
return closure _10 ( tmp4Result , obj4 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} ;
let items = [
obj ,
{
key : "openDrawer" ,
value : function openDrawer ( ) {
const Commands = DrawerLayoutAndroid ( 309 ) . Commands ;
2026-08-24 06:08:38 +00:00
Commands . openDrawer ( nullthrowsDefault ( this . _nativeRef . current ) ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "closeDrawer" ,
value : function closeDrawer ( ) {
const Commands = DrawerLayoutAndroid ( 309 ) . Commands ;
2026-08-24 06:08:38 +00:00
Commands . closeDrawer ( nullthrowsDefault ( this . _nativeRef . current ) ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "blur" ,
value : function blur ( ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . blur ( ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "focus" ,
value : function focus ( ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . focus ( ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "measure" ,
value : function measure ( arg0 ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . measure ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "measureInWindow" ,
value : function measureInWindow ( arg0 ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . measureInWindow ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
key : "measureLayout" ,
value : function measureLayout ( arg0 , arg1 , arg2 ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . measureLayout ( arg0 , arg1 , arg2 ) ;
2026-07-29 08:29:29 +00:00
}
} ,
{
2026-07-20 16:05:17 +00:00
key : "setNativeProps" ,
value : function setNativeProps ( arg0 ) {
2026-08-24 06:08:38 +00:00
nullthrowsDefault ( this . _nativeRef . current ) . setNativeProps ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
] ;
obj = {
key : "positions" ,
get ( ) {
console . warn ( "Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value \"left\" or \"right\"" ) ;
return { Left : "left" , Right : "right" } ;
}
} ;
let items1 = [ obj ] ;
const importDefaultResultResult = importDefaultResult ( DrawerLayoutAndroid , items , items1 ) ;
obj = { base : { flex : 1 , elevation : 16 } , mainSubview : { position : "absolute" , top : 0 , left : 0 , right : 0 , bottom : 0 } , drawerSubview : { position : "absolute" , top : 0 , bottom : 0 } , statusBar : null , drawerStatusBar : null } ;
2026-08-24 06:08:38 +00:00
obj [ 3 ] = { height : _isNativeReflectConstructDefault . currentHeight } ;
let obj1 = { height : _isNativeReflectConstructDefault . currentHeight } ;
obj [ 4 ] = { position : "absolute" , top : 0 , left : 0 , right : 0 , height : _isNativeReflectConstructDefault . currentHeight , backgroundColor : "rgba(0, 0, 0, 0.251)" } ;
2026-07-29 08:29:29 +00:00
let closure _13 = importDefaultResult2 . create ( obj ) ;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult ;