2026-07-20 16:05:17 +00:00
// Module ID: 42
// Function ID: 1296
// Name: get
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 43, 45, 107, 44, 111, 46]
2026-07-20 16:05:17 +00:00
// Exports: getWithFallback_DEPRECATED, setRuntimeConfigProvider, unstable_hasStaticViewConfig
// Module 42 (get)
2026-07-23 10:11:24 +00:00
import "result" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function get ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
importAll ( 43 ) . register ( arg0 , ( ) => {
2026-07-20 16:05:17 +00:00
let native ;
let verify ;
let tmp ;
2026-07-23 10:11:24 +00:00
if ( null != outer1 _5 ) {
tmp = outer1 _5 ( RNBridgeless ) ;
2026-07-20 16:05:17 +00:00
}
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
const obj = { native : ! RNBridgeless . RN$Bridgeless , verify : false } ;
2026-07-20 16:05:17 +00:00
tmp = obj ;
}
( { native , verify } = tmp ) ;
if ( native ) {
2026-07-23 10:11:24 +00:00
let viewConfig = outer1 _2 ( outer1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-20 16:05:17 +00:00
if ( null == viewConfig ) {
2026-07-23 10:11:24 +00:00
viewConfig = callback ( outer1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj3 = callback ( outer1 _4 [ 3 ] ) ;
2026-07-20 16:05:17 +00:00
}
let viewConfig1 = viewConfig ;
} else {
2026-07-23 10:11:24 +00:00
viewConfig1 = callback ( outer1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
2026-07-20 16:05:17 +00:00
if ( null == viewConfig1 ) {
2026-07-23 10:11:24 +00:00
viewConfig1 = outer1 _2 ( outer1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj2 = callback ( outer1 _4 [ 3 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1 _2 ( outer1 _4 [ 4 ] ) ( null != viewConfig1 , "NativeComponentRegistry.get: both static and native view config are missing for native component \"%s\"." , RNBridgeless ) ;
2026-07-20 16:05:17 +00:00
if ( verify ) {
let tmp20 = viewConfig1 ;
if ( ! native ) {
2026-07-23 10:11:24 +00:00
tmp20 = outer1 _2 ( outer1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-20 16:05:17 +00:00
}
if ( null == tmp20 ) {
return viewConfig1 ;
} else {
let viewConfig2 = viewConfig1 ;
if ( native ) {
2026-07-23 10:11:24 +00:00
viewConfig2 = callback ( outer1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj4 = callback ( outer1 _4 [ 3 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const validateResult = outer1 _3 ( outer1 _4 [ 5 ] ) . validate ( RNBridgeless , tmp20 , viewConfig2 ) ;
2026-07-20 16:05:17 +00:00
if ( "invalid" === validateResult . type ) {
const _console = console ;
2026-07-23 10:11:24 +00:00
console . error ( outer1 _3 ( outer1 _4 [ 5 ] ) . stringifyValidationResult ( RNBridgeless , validateResult ) ) ;
const obj6 = outer1 _3 ( outer1 _4 [ 5 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj5 = outer1 _3 ( outer1 _4 [ 5 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
return viewConfig1 ;
} ) ;
return arg0 ;
}
export function setRuntimeConfigProvider ( arg0 ) {
2026-07-23 10:11:24 +00:00
if ( undefined === closure _5 ) {
closure _5 = arg0 ;
}
2026-07-20 16:05:17 +00:00
}
export { get } ;
export const getWithFallback _DEPRECATED = function getWithFallback _DEPRECATED ( arg0 , arg1 ) {
if ( null == callback ) {
class FallbackNativeComponent {
constructor ( arg0 ) {
return null ;
}
}
2026-07-23 10:11:24 +00:00
importDefault ( 44 ) ( null == callback , "Unexpected invocation!" ) ;
2026-07-20 16:05:17 +00:00
if ( null != obj . getViewManagerConfig ( arg0 ) ) {
get ( arg0 , arg1 ) ;
return arg0 ;
}
2026-07-23 10:11:24 +00:00
obj = importDefault ( 46 ) ;
2026-07-20 16:05:17 +00:00
} else if ( null != callback ( arg0 ) ) {
get ( arg0 , arg1 ) ;
return arg0 ;
}
class FallbackNativeComponent {
constructor ( arg0 ) {
return null ;
}
}
FallbackNativeComponent . displayName = "Fallback(" + arg0 + ")" ;
return FallbackNativeComponent ;
} ;
export const unstable _hasStaticViewConfig = function unstable _hasStaticViewConfig ( arg0 ) {
let tmp ;
if ( null != callback ) {
tmp = callback ( arg0 ) ;
}
if ( null == tmp ) {
const obj = { native : true } ;
tmp = obj ;
}
return ! tmp . native ;
} ;