2026-07-29 08:29:29 +00:00
// Module ID: 65
// Function ID: 66
// Name: setRuntimeConfigProvider
// Dependencies: [19, 66, 67, 103, 38, 107, 68]
// Exports: get, getWithFallback_DEPRECATED, setRuntimeConfigProvider, unstable_hasStaticViewConfig
// Module 65 (setRuntimeConfigProvider)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */ ;
import _modDef38 from "module_38" /* 38 */ ;
import mapAll from "map" /* 66 */ ;
2026-07-29 08:29:29 +00:00
const require = arg1 ;
2026-08-24 06:08:38 +00:00
noopAll ;
2026-07-29 08:29:29 +00:00
export function setRuntimeConfigProvider ( arg0 ) {
if ( undefined === closure _5 ) {
closure _5 = arg0 ;
}
}
export const get = function get ( arg0 , arg1 ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
closure _1 = arg1 ;
mapAll . register ( arg0 , ( ) => {
2026-07-29 08:29:29 +00:00
let tmpResult ;
2026-08-24 06:08:38 +00:00
if ( closure _1 _5 != null ) {
2026-07-29 08:29:29 +00:00
tmpResult = tmp ( RNBridgeless ) ;
}
if ( tmpResult == null ) {
const obj = { native : null , verify : false } ;
obj [ 0 ] = ! RNBridgeless . RN$Bridgeless ;
tmpResult = obj ;
}
( { native , verify } = tmpResult ) ;
if ( native ) {
2026-08-24 06:08:38 +00:00
let viewConfig = closure _1 _2 ( closure _1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig == null ) {
viewConfig = callback ( tmp12 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj3 = callback ( tmp12 [ 3 ] ) ;
}
let viewConfig1 = viewConfig ;
let tmp6 = tmp12 ;
} else {
2026-08-24 06:08:38 +00:00
tmp6 = closure _1 _4 ;
viewConfig1 = callback ( closure _1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig1 == null ) {
2026-08-24 06:08:38 +00:00
viewConfig1 = closure _1 _2 ( tmp6 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const obj2 = callback ( closure _1 _4 [ 3 ] ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
closure _1 _2 ( tmp6 [ 4 ] ) ( null != viewConfig1 , "NativeComponentRegistry.get: both static and native view config are missing for native component \"%s\"." , RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( verify ) {
let tmp20 = viewConfig1 ;
if ( ! native ) {
2026-08-24 06:08:38 +00:00
tmp20 = closure _1 _2 ( tmp6 [ 2 ] ) ( tmp18 ) ;
2026-07-29 08:29:29 +00:00
}
if ( null == tmp20 ) {
return viewConfig1 ;
} else {
let viewConfig2 = viewConfig1 ;
if ( native ) {
viewConfig2 = callback ( tmp6 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj4 = callback ( tmp6 [ 3 ] ) ;
}
2026-08-24 06:08:38 +00:00
const validateResult = closure _1 _3 ( tmp6 [ 5 ] ) . validate ( tmp18 , tmp20 , viewConfig2 ) ;
2026-07-29 08:29:29 +00:00
if ( "invalid" === validateResult . type ) {
const _console = console ;
console . error ( tmp24 ( tmp6 [ 5 ] ) . stringifyValidationResult ( tmp18 , validateResult ) ) ;
const tmp24Result = tmp24 ( tmp6 [ 5 ] ) ;
}
2026-08-24 06:08:38 +00:00
const obj5 = closure _1 _3 ( tmp6 [ 5 ] ) ;
tmp24 = closure _1 _3 ;
2026-07-29 08:29:29 +00:00
}
}
return viewConfig1 ;
} ) ;
return arg0 ;
} ;
export const getWithFallback _DEPRECATED = function getWithFallback _DEPRECATED ( arg0 , arg1 ) {
if ( null == callback ) {
2026-08-24 06:08:38 +00:00
_modDef38 ( null == callback , "Unexpected invocation!" ) ;
2026-07-29 08:29:29 +00:00
class FallbackNativeComponent {
constructor ( arg0 ) {
return null ;
}
}
if ( null != obj2 . getViewManagerConfig ( arg0 ) ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
closure _1 = arg1 ;
mapAll . register ( arg0 , ( ) => {
2026-07-29 08:29:29 +00:00
let tmpResult ;
2026-08-24 06:08:38 +00:00
if ( closure _1 _5 != null ) {
2026-07-29 08:29:29 +00:00
tmpResult = tmp ( RNBridgeless ) ;
}
if ( tmpResult == null ) {
const obj = { native : null , verify : false } ;
obj [ 0 ] = ! RNBridgeless . RN$Bridgeless ;
tmpResult = obj ;
}
( { native , verify } = tmpResult ) ;
if ( native ) {
2026-08-24 06:08:38 +00:00
let viewConfig = closure _1 _2 ( closure _1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig == null ) {
viewConfig = callback ( tmp12 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj3 = callback ( tmp12 [ 3 ] ) ;
}
let viewConfig1 = viewConfig ;
let tmp6 = tmp12 ;
} else {
2026-08-24 06:08:38 +00:00
tmp6 = closure _1 _4 ;
viewConfig1 = callback ( closure _1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig1 == null ) {
2026-08-24 06:08:38 +00:00
viewConfig1 = closure _1 _2 ( tmp6 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const obj2 = callback ( closure _1 _4 [ 3 ] ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
closure _1 _2 ( tmp6 [ 4 ] ) ( null != viewConfig1 , "NativeComponentRegistry.get: both static and native view config are missing for native component \"%s\"." , RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( verify ) {
let tmp20 = viewConfig1 ;
if ( ! native ) {
2026-08-24 06:08:38 +00:00
tmp20 = closure _1 _2 ( tmp6 [ 2 ] ) ( tmp18 ) ;
2026-07-29 08:29:29 +00:00
}
if ( null == tmp20 ) {
return viewConfig1 ;
} else {
let viewConfig2 = viewConfig1 ;
if ( native ) {
viewConfig2 = callback ( tmp6 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj4 = callback ( tmp6 [ 3 ] ) ;
}
2026-08-24 06:08:38 +00:00
const validateResult = closure _1 _3 ( tmp6 [ 5 ] ) . validate ( tmp18 , tmp20 , viewConfig2 ) ;
2026-07-29 08:29:29 +00:00
if ( "invalid" === validateResult . type ) {
const _console = console ;
console . error ( tmp24 ( tmp6 [ 5 ] ) . stringifyValidationResult ( tmp18 , validateResult ) ) ;
const tmp24Result = tmp24 ( tmp6 [ 5 ] ) ;
}
2026-08-24 06:08:38 +00:00
const obj5 = closure _1 _3 ( tmp6 [ 5 ] ) ;
tmp24 = closure _1 _3 ;
2026-07-29 08:29:29 +00:00
}
}
return viewConfig1 ;
} ) ;
return arg0 ;
}
} else if ( null != callback ( arg0 ) ) {
closure _0 = arg0 ;
closure _1 = arg1 ;
2026-08-24 06:08:38 +00:00
mapAll . register ( arg0 , ( ) => {
2026-07-29 08:29:29 +00:00
let tmpResult ;
2026-08-24 06:08:38 +00:00
if ( closure _1 _5 != null ) {
2026-07-29 08:29:29 +00:00
tmpResult = tmp ( RNBridgeless ) ;
}
if ( tmpResult == null ) {
const obj = { native : null , verify : false } ;
obj [ 0 ] = ! RNBridgeless . RN$Bridgeless ;
tmpResult = obj ;
}
( { native , verify } = tmpResult ) ;
if ( native ) {
2026-08-24 06:08:38 +00:00
let viewConfig = closure _1 _2 ( closure _1 _4 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig == null ) {
viewConfig = callback ( tmp12 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj3 = callback ( tmp12 [ 3 ] ) ;
}
let viewConfig1 = viewConfig ;
let tmp6 = tmp12 ;
} else {
2026-08-24 06:08:38 +00:00
tmp6 = closure _1 _4 ;
viewConfig1 = callback ( closure _1 _4 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
2026-07-29 08:29:29 +00:00
if ( viewConfig1 == null ) {
2026-08-24 06:08:38 +00:00
viewConfig1 = closure _1 _2 ( tmp6 [ 2 ] ) ( RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const obj2 = callback ( closure _1 _4 [ 3 ] ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
closure _1 _2 ( tmp6 [ 4 ] ) ( null != viewConfig1 , "NativeComponentRegistry.get: both static and native view config are missing for native component \"%s\"." , RNBridgeless ) ;
2026-07-29 08:29:29 +00:00
if ( verify ) {
let tmp20 = viewConfig1 ;
if ( ! native ) {
2026-08-24 06:08:38 +00:00
tmp20 = closure _1 _2 ( tmp6 [ 2 ] ) ( tmp18 ) ;
2026-07-29 08:29:29 +00:00
}
if ( null == tmp20 ) {
return viewConfig1 ;
} else {
let viewConfig2 = viewConfig1 ;
if ( native ) {
viewConfig2 = callback ( tmp6 [ 3 ] ) . createViewConfig ( callback ( ) ) ;
const obj4 = callback ( tmp6 [ 3 ] ) ;
}
2026-08-24 06:08:38 +00:00
const validateResult = closure _1 _3 ( tmp6 [ 5 ] ) . validate ( tmp18 , tmp20 , viewConfig2 ) ;
2026-07-29 08:29:29 +00:00
if ( "invalid" === validateResult . type ) {
const _console = console ;
console . error ( tmp24 ( tmp6 [ 5 ] ) . stringifyValidationResult ( tmp18 , validateResult ) ) ;
const tmp24Result = tmp24 ( tmp6 [ 5 ] ) ;
}
2026-08-24 06:08:38 +00:00
const obj5 = closure _1 _3 ( tmp6 [ 5 ] ) ;
tmp24 = closure _1 _3 ;
2026-07-29 08:29:29 +00:00
}
}
return viewConfig1 ;
} ) ;
class FallbackNativeComponent {
constructor ( arg0 ) {
return null ;
}
}
2026-08-24 06:08:38 +00:00
let obj = mapAll ;
2026-07-29 08:29:29 +00:00
}
class FallbackNativeComponent {
constructor ( arg0 ) {
return null ;
}
}
FallbackNativeComponent . displayName = "Fallback(" + arg0 + ")" ;
return FallbackNativeComponent ;
} ;
export const unstable _hasStaticViewConfig = function unstable _hasStaticViewConfig ( arg0 ) {
let obj ;
if ( closure _5 != null ) {
obj = tmp ( arg0 ) ;
}
if ( obj == null ) {
obj = { native : true } ;
}
return ! obj . native ;
} ;