2026-08-15 05:55:55 +00:00
// Module ID: 1753
// Function ID: 1754
2026-07-29 08:29:29 +00:00
// Name: configureProps
2026-08-15 05:55:55 +00:00
// Dependencies: [1657, 1667, 1665, 1698, 1658]
2026-07-29 08:29:29 +00:00
// Exports: adaptViewConfig, addWhitelistedNativeProps, addWhitelistedUIProps, configureReanimatedLogger
2026-08-15 05:55:55 +00:00
// Module 1753 (configureProps)
2026-08-24 06:08:38 +00:00
import addLogBoxLog from "addLogBoxLog" /* 1658 */ ;
import _mod1667 from "module_1667" /* 1667 */ ;
import isReanimated3 from "isReanimated3" /* 1698 */ ;
import isJest from "isJest" /* 1657 */ ;
2026-07-29 08:29:29 +00:00
function configureProps ( ) {
2026-08-24 06:08:38 +00:00
for ( const key10008 in _mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST ) {
2026-07-29 08:29:29 +00:00
let tmp8 = key10008 ;
let tmp9 = require ;
let tmp10 = dependencyMap ;
2026-08-24 06:08:38 +00:00
if ( ! ( key10008 in _mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) ) {
2026-07-29 08:29:29 +00:00
continue ;
} else {
let tmp = globalThis ;
let _HermesInternal = HermesInternal ;
let str = "` was whitelisted both as UI and native prop. Please remove it from one of the lists." ;
let str2 = "Property `" ;
let tmp2 = new . target ;
let tmp3 = new . target ;
2026-08-15 05:55:55 +00:00
let reanimatedError = new tmp9 ( 1665 ) . ReanimatedError ( "Property `" + key10008 + "` was whitelisted both as UI and native prop. Please remove it from one of the lists." ) ;
2026-07-29 08:29:29 +00:00
let tmp5 = reanimatedError ;
throw reanimatedError ;
}
}
2026-08-24 06:08:38 +00:00
const keys = Object . keys ( _mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) ;
isReanimated3 . jsiConfigureProps ( keys , Object . keys ( _mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST ) ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
let closure _2 = isJest . shouldBeUseWeb ( ) ;
2026-07-29 08:29:29 +00:00
const set = new Set ( ) ;
configureProps ( ) ;
export { configureProps } ;
export const addWhitelistedNativeProps = function addWhitelistedNativeProps ( arg0 ) {
2026-08-24 06:08:38 +00:00
const merged = Object . assign ( _mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST ) ;
2026-07-29 08:29:29 +00:00
const merged1 = Object . assign ( arg0 ) ;
2026-08-24 06:08:38 +00:00
_mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST = { } ;
if ( Object . keys ( _mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST ) . length !== Object . keys ( _mod1667 . PropsAllowlists . NATIVE _THREAD _PROPS _WHITELIST ) . length ) {
2026-07-29 08:29:29 +00:00
configureProps ( ) ;
}
} ;
export const addWhitelistedUIProps = function addWhitelistedUIProps ( arg0 ) {
2026-08-24 06:08:38 +00:00
const merged = Object . assign ( _mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) ;
2026-07-29 08:29:29 +00:00
const merged1 = Object . assign ( arg0 ) ;
2026-08-24 06:08:38 +00:00
_mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST = { } ;
if ( Object . keys ( _mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) . length !== Object . keys ( _mod1667 . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) . length ) {
2026-07-29 08:29:29 +00:00
configureProps ( ) ;
}
} ;
export const configureReanimatedLogger = function configureReanimatedLogger ( level ) {
2026-08-24 06:08:38 +00:00
addLogBoxLog . updateLoggerConfig ( level ) ;
if ( ! closure _2 ) {
2026-08-15 05:55:55 +00:00
tmp ( 1698 ) . executeOnUIRuntimeSync ( tmp ( 1658 ) . updateLoggerConfig ) ( level ) ;
const tmpResult = tmp ( 1698 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
export const adaptViewConfig = function adaptViewConfig ( viewConfig ) {
const uiViewClassName = viewConfig . uiViewClassName ;
let obj = set ;
if ( ! set . has ( uiViewClassName ) ) {
obj = { } ;
const _Object = Object ;
const keys = Object . keys ( viewConfig . validAttributes ) ;
const item = keys . forEach ( ( arg0 ) => {
if ( ! tmp3 ) {
obj [ arg0 ] = true ;
}
} ) ;
const _Object2 = Object ;
obj = { } ;
2026-08-15 05:55:55 +00:00
const merged = Object . assign ( obj ( 1667 ) . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) ;
2026-07-29 08:29:29 +00:00
const merged1 = Object . assign ( obj ) ;
2026-08-15 05:55:55 +00:00
obj ( 1667 ) . PropsAllowlists . UI _THREAD _PROPS _WHITELIST = obj ;
2026-07-29 08:29:29 +00:00
const _Object3 = Object ;
2026-08-15 05:55:55 +00:00
if ( Object . keys ( obj ( 1667 ) . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) . length !== Object . keys ( obj ( 1667 ) . PropsAllowlists . UI _THREAD _PROPS _WHITELIST ) . length ) {
2026-07-29 08:29:29 +00:00
configureProps ( ) ;
}
obj . add ( uiViewClassName ) ;
}
} ;