2026-07-23 10:11:24 +00:00
// Module ID: 4130
2026-07-24 07:16:23 +00:00
// Function ID: 34351
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 27, 4122, 3942, 3842, 477, 689, 3835, 3991, 4131, 4134, 4063, 1324, 2]
2026-07-20 16:05:17 +00:00
// Exports: createAnimatedThemedStyles, createLegacyClassComponentStyles, createNativeStyleProperties, createStyleProperties, createStyles, experimental_createToken, useLegacyClassComponentStyles
2026-07-23 10:11:24 +00:00
// Module 4130 (_createForOfIteratorHelperLoose)
import _slicedToArray from "_slicedToArray" ;
import { processColor } from "get ActivityIndicator" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_6 from "_isNativeReflectConstruct" ;
import set from "_isNativeReflectConstruct" ;
const require = arg1 ;
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function createCacheKey ( arg0 ) {
const items = [ . . . arguments ] ;
return items . join ( "" ) ;
}
function processColorOrThrow ( arg0 ) {
const tmp = processColor ( arg0 ) ;
if ( null == tmp ) {
const _Error = Error ;
const _HermesInternal = HermesInternal ;
const error = new Error ( "Unable to parse color: \"" + arg0 + "\"" ) ;
throw error ;
} else {
return tmp ;
}
}
function parseThemedStyles ( arg0 , enabledExperiments ) {
let contrast ;
let saturation ;
let theme ;
( { theme , saturation , contrast } = enabledExperiments ) ;
let obj = { } ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ tmp ] !== undefined ) {
let tmp32 = tmp8 ;
let obj6 = arg0 [ tmp8 ] ;
let hasOwnPropertyResult = null != obj6 ;
if ( hasOwnPropertyResult ) {
let tmp9 = closure_7 ;
hasOwnPropertyResult = obj6 . hasOwnProperty ( closure_7 ) ;
}
let obj2 = obj6 ;
if ( hasOwnPropertyResult ) {
let tmp11 = closure_7 ;
obj2 = obj6 [ closure_7 ] ( enabledExperiments ) ;
}
if ( null != obj2 ) {
if ( obj2 . hasOwnProperty ( "resolve" ) ) {
obj = { theme } ;
2026-07-23 10:11:24 +00:00
let tmp30 = require ;
2026-07-20 16:05:17 +00:00
let tmp31 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let obj5 = require ( 477 ) /* set */ ;
2026-07-20 16:05:17 +00:00
obj . isAndroid = obj5 . isAndroid ( ) ;
enabledExperiments = enabledExperiments . enabledExperiments ;
let items = enabledExperiments ;
if ( null == enabledExperiments ) {
items = [ ] ;
}
obj . enabledExperiments = items ;
let density = enabledExperiments . density ;
let str4 = "compact" ;
if ( null != density ) {
str4 = density ;
}
obj . density = str4 ;
obj [ tmp8 ] = obj2 . resolve ( obj ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
let tmp12 = importDefault ;
let tmp13 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let internal = importDefault ( 689 ) . internal ;
2026-07-20 16:05:17 +00:00
if ( internal . isSemanticColor ( obj2 ) ) {
2026-07-23 10:11:24 +00:00
let tmp26 = require ;
2026-07-20 16:05:17 +00:00
let tmp27 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let obj3 = require ( 3835 ) /* getSemanticColorContextFromThemeContext */ ;
2026-07-20 16:05:17 +00:00
let tmp29 = importDefault ;
let semanticColorContextFromThemeContext = obj3 . getSemanticColorContextFromThemeContext ( enabledExperiments ) ;
2026-07-23 10:11:24 +00:00
let internal4 = importDefault ( 689 ) . internal ;
2026-07-20 16:05:17 +00:00
obj [ tmp8 ] = internal4 . resolveSemanticColor ( theme , obj2 , semanticColorContextFromThemeContext ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
} else {
if ( tmp2 ) {
let tmp14 = obj2 ;
if ( "string" === typeof obj2 ) {
tmp14 = obj2 ;
let tmp3 = tmp6 ;
let tmp4 = tmp7 ;
if ( "#" === obj2 [ 0 ] ) {
let str3 = "background" ;
if ( "backgroundColor" !== tmp8 ) {
let str = "border" ;
if ( "borderColor" !== tmp8 ) {
let str2 = "generic" ;
if ( "color" === tmp8 ) {
str2 = "text" ;
}
str = str2 ;
}
str3 = str ;
}
let result = obj2 ;
if ( tmp2 ) {
let tmp16 = importDefault ;
let tmp17 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let internal2 = importDefault ( 689 ) . internal ;
2026-07-20 16:05:17 +00:00
result = internal2 . adjustColorSaturation ( obj2 , saturation , str3 ) ;
}
let adjustColorContrastResult = result ;
if ( 1 !== contrast ) {
let tmp19 = importDefault ;
let tmp20 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let internal3 = importDefault ( 689 ) . internal ;
2026-07-20 16:05:17 +00:00
let tmp21 = internal3 ;
let tmp22 = result ;
let tmp23 = contrast ;
let tmp24 = str3 ;
let tmp25 = theme ;
adjustColorContrastResult = internal3 . adjustColorContrast ( result , contrast , str3 , theme ) ;
}
tmp14 = adjustColorContrastResult ;
tmp3 = str3 ;
tmp4 = adjustColorContrastResult ;
}
}
} else {
tmp14 = obj2 ;
}
obj [ tmp8 ] = tmp14 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
}
return obj ;
}
2026-07-23 10:11:24 +00:00
let set = new Set ( [ "backgroundColor" , "borderBottomColor" , "borderColor" , "borderEndColor" , "borderLeftColor" , "borderRightColor" , "borderStartColor" , "borderTopColor" , "color" , "shadowColor" , "shadowOffset" , "shadowOpacity" , "shadowRadius" , "elevation" , "textDecorationColor" , "textShadowColor" , "tintColor" ] ) ;
2026-07-20 16:05:17 +00:00
let closure_7 = Symbol . for ( "dynamicToken" ) ;
2026-07-23 10:11:24 +00:00
let closure_8 = [ "light" , "darker" , "midnight" ] ;
2026-07-20 16:05:17 +00:00
let closure_9 = { code : "function createStylesTsx1(){const{resolvedStyles,withTiming,interpolateColor,themeIndex,stops,timingStandard}=this.__closure;const result={};for(const propertyName in resolvedStyles){const value=resolvedStyles[propertyName];if(Array.isArray(value)){result[propertyName]=withTiming(interpolateColor(themeIndex.get(),stops,value),timingStandard);}else{result[propertyName]=value;}}return result;}" } ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "design/components/Styles/native/createStyles.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const experimental_createToken = function experimental_createToken ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
return { [ closure_7 ] : ( arg0 ) = > callback ( arg0 ) } ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
export const createStyles = function createStyles ( _createForOfIteratorHelperLoose ) {
let closure_0 = _createForOfIteratorHelperLoose ;
const map = new Map ( ) ;
let closure_2 = "function" === typeof _createForOfIteratorHelperLoose ;
2026-07-20 16:05:17 +00:00
return ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let items = [ . . . arguments ] ;
let obj ;
obj = _createForOfIteratorHelperLoose ( table [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
const themeContext = obj . useThemeContext ( ) ;
2026-07-23 10:11:24 +00:00
const tmp2 = outer1_12 ( . . . items , themeContext . key ) ;
const value = themeContext . get ( tmp2 ) ;
2026-07-20 16:05:17 +00:00
if ( null != value ) {
return value ;
} else {
obj = { } ;
const _Object3 = Object ;
2026-07-23 10:11:24 +00:00
if ( obj ) {
2026-07-20 16:05:17 +00:00
const items1 = [ ] ;
HermesBuiltin . arraySpread ( items , 0 ) ;
keys = keys ( HermesBuiltin . apply ( items1 , undefined ) ) ;
} else {
keys = keys ( tmp14 ) ;
}
const _Object = Object ;
const _Object2 = Object ;
Object . defineProperties ( obj , Object . fromEntries ( keys . map ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
let items = [ arg0 , ] ;
2026-07-20 16:05:17 +00:00
const obj = {
2026-07-23 10:11:24 +00:00
configurable : true ,
enumerable : true ,
2026-07-20 16:05:17 +00:00
get ( ) {
2026-07-23 10:11:24 +00:00
if ( obj ) {
2026-07-20 16:05:17 +00:00
const items = [ ] ;
2026-07-23 10:11:24 +00:00
HermesBuiltin . arraySpread ( closure_0 , 0 ) ;
2026-07-20 16:05:17 +00:00
let applyResult = HermesBuiltin . apply ( items , undefined ) ;
} else {
applyResult = tmp2 ;
}
2026-07-23 10:11:24 +00:00
const tmpResult = outer3_14 ( applyResult [ closure_0 ] , outer1_1 ) ;
Object . defineProperty ( outer1_2 , closure_0 , { value : tmpResult , enumerable : true } ) ;
2026-07-20 16:05:17 +00:00
return tmpResult ;
}
} ;
items [ 1 ] = obj ;
return items ;
} ) ) ) ;
2026-07-23 10:11:24 +00:00
const result = themeContext . set ( tmp2 , obj ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
} ;
} ;
2026-07-23 10:11:24 +00:00
export const createLegacyClassComponentStyles = function createLegacyClassComponentStyles ( _createForOfIteratorHelperLoose ) {
let closure_0 = _createForOfIteratorHelperLoose ;
const map = new Map ( ) ;
2026-07-20 16:05:17 +00:00
return ( key ) = > {
2026-07-23 10:11:24 +00:00
const _createForOfIteratorHelperLoose = key ;
const FALLBACK_THEME_CONTEXT_VALUE = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . FALLBACK_THEME_CONTEXT_VALUE ;
const value = obj . get ( key . key ) ;
2026-07-20 16:05:17 +00:00
if ( null != value ) {
return value ;
} else {
2026-07-23 10:11:24 +00:00
obj = { } ;
2026-07-20 16:05:17 +00:00
const _Object = Object ;
2026-07-23 10:11:24 +00:00
const keys = Object . keys ( _createForOfIteratorHelperLoose ) ;
2026-07-20 16:05:17 +00:00
const _Object2 = Object ;
const _Object3 = Object ;
Object . defineProperties ( obj , Object . fromEntries ( keys . map ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
2026-07-20 16:05:17 +00:00
const items = [ arg0 , ] ;
const obj = {
2026-07-23 10:11:24 +00:00
configurable : true ,
enumerable : true ,
2026-07-20 16:05:17 +00:00
get ( ) {
2026-07-23 10:11:24 +00:00
const tmp = outer3_14 ( table [ table ] , table ) ;
Object . defineProperty ( outer1_1 , table , { value : tmp , enumerable : true } ) ;
2026-07-20 16:05:17 +00:00
return tmp ;
}
} ;
items [ 1 ] = obj ;
return items ;
} ) ) ) ;
2026-07-23 10:11:24 +00:00
const result = obj . set ( key . key , obj ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
} ;
} ;
2026-07-23 10:11:24 +00:00
export const useLegacyClassComponentStyles = function useLegacyClassComponentStyles ( _createForOfIteratorHelperLoose ) {
return _createForOfIteratorHelperLoose ( require ( 3842 ) /* ManaContext */ . useThemeContext ( ) ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
export const createStyleProperties = function createStyleProperties ( _createForOfIteratorHelperLoose ) {
let closure_0 = _createForOfIteratorHelperLoose ;
const map = new Map ( ) ;
2026-07-20 16:05:17 +00:00
return ( arg0 ) = > {
const items = [ . . . arguments ] ;
2026-07-23 10:11:24 +00:00
const themeContext = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . useThemeContext ( ) ;
const tmp2 = outer1_12 ( . . . items , themeContext . key ) ;
2026-07-20 16:05:17 +00:00
const value = map . get ( tmp2 ) ;
if ( null != value ) {
return value ;
} else {
2026-07-23 10:11:24 +00:00
if ( "function" === typeof _createForOfIteratorHelperLoose ) {
2026-07-20 16:05:17 +00:00
const items1 = [ ] ;
HermesBuiltin . arraySpread ( items , 0 ) ;
let applyResult = HermesBuiltin . apply ( items1 , undefined ) ;
} else {
2026-07-23 10:11:24 +00:00
applyResult = _createForOfIteratorHelperLoose ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp4Result = outer1_14 ( applyResult , themeContext ) ;
2026-07-20 16:05:17 +00:00
const result = map . set ( tmp2 , tmp4Result ) ;
return tmp4Result ;
}
2026-07-23 10:11:24 +00:00
const obj = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
} ;
} ;
export { processColorOrThrow } ;
2026-07-23 10:11:24 +00:00
export const createNativeStyleProperties = function createNativeStyleProperties ( _createForOfIteratorHelperLoose ) {
let closure_0 = _createForOfIteratorHelperLoose ;
const map = new Map ( ) ;
2026-07-20 16:05:17 +00:00
return ( arg0 , arg1 ) = > {
const substr = [ . . . arguments ] . slice ( ) ;
2026-07-23 10:11:24 +00:00
let obj = _createForOfIteratorHelperLoose ( outer1_2 [ 11 ] ) ;
2026-07-20 16:05:17 +00:00
let gradientPreset = obj . getCustomBackgroundGradient ( ) ;
if ( null == gradientPreset ) {
2026-07-23 10:11:24 +00:00
gradientPreset = outer1_6 . gradientPreset ;
2026-07-20 16:05:17 +00:00
}
let tmp3 = null ;
if ( null != gradientPreset ) {
tmp3 = gradientPreset ;
}
if ( null == tmp3 ) {
const items = [ ] ;
if ( obj3 . isMobileVisualRefreshEnabled ( "createFakeThemedContext" ) ) {
items . push ( "mobile-visual-refresh" ) ;
}
let tmp14 ;
if ( items . length > 0 ) {
tmp14 = items ;
}
obj = { } ;
2026-07-23 10:11:24 +00:00
const merged = Object . assign ( _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . FALLBACK_THEME_CONTEXT_VALUE ) ;
2026-07-20 16:05:17 +00:00
obj [ "flags" ] = 0 ;
2026-07-23 10:11:24 +00:00
obj [ "saturation" ] = outer1_5 . saturation ;
2026-07-20 16:05:17 +00:00
obj [ "theme" ] = arg0 ;
obj [ "enabledExperiments" ] = tmp14 ;
obj [ "gradient" ] = tmp3 ;
const _JSON = JSON ;
obj = { } ;
const json = JSON . stringify ( obj ) ;
const merged1 = Object . assign ( obj ) ;
obj [ "key" ] = json ;
const items1 = [ ] ;
let arraySpreadResult = HermesBuiltin . arraySpread ( substr , 0 ) ;
items1 [ arraySpreadResult ] = obj . key ;
const sum = arraySpreadResult + 1 ;
const applyResult = HermesBuiltin . apply ( items1 , undefined ) ;
const value = map . get ( applyResult ) ;
if ( null != value ) {
return value ;
} else {
let items2 = "function" ;
2026-07-23 10:11:24 +00:00
if ( "function" === typeof _createForOfIteratorHelperLoose ) {
2026-07-20 16:05:17 +00:00
items2 = [ ] ;
arraySpreadResult = HermesBuiltin . arraySpread ( substr , 0 ) ;
let applyResult1 = HermesBuiltin . apply ( items2 , undefined ) ;
} else {
2026-07-23 10:11:24 +00:00
applyResult1 = _createForOfIteratorHelperLoose ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp46Result = outer1_14 ( applyResult1 , obj ) ;
2026-07-20 16:05:17 +00:00
for ( const key10107 in tmp46Result ) {
let tmp48 = key10107 ;
2026-07-23 10:11:24 +00:00
let tmp49 = outer1_13 ;
tmp46Result [ key10107 ] = outer1_13 ( tmp46Result [ key10107 ] ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
const result = map . set ( applyResult , tmp46Result ) ;
return tmp46Result ;
}
2026-07-23 10:11:24 +00:00
obj3 = _createForOfIteratorHelperLoose ( outer1_2 [ 12 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
if ( "light" === tmp3 . theme ) {
2026-07-23 10:11:24 +00:00
let MOBILE_DARK_GRADIENT_THEME_ENABLED = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . ThemeContextFlags . MOBILE_LIGHT_GRADIENT_THEME_ENABLED ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
MOBILE_DARK_GRADIENT_THEME_ENABLED = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . ThemeContextFlags . MOBILE_DARK_GRADIENT_THEME_ENABLED ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) . setThemeFlag ( 0 , MOBILE_DARK_GRADIENT_THEME_ENABLED ) ;
const obj2 = _createForOfIteratorHelperLoose ( outer1_2 [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;
} ;
2026-07-23 10:11:24 +00:00
export const createAnimatedThemedStyles = function createAnimatedThemedStyles ( _createForOfIteratorHelperLoose , items ) {
2026-07-20 16:05:17 +00:00
let arr = items ;
if ( items === undefined ) {
arr = closure_8 ;
}
2026-07-23 10:11:24 +00:00
let _slicedToArray ;
let map ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
2026-07-23 10:11:24 +00:00
let obj = { } ;
2026-07-20 16:05:17 +00:00
for ( const key10008 in arg0 ) {
let tmp3 = key10008 ;
let tmp4 = arg0 [ key10008 ] ;
2026-07-23 10:11:24 +00:00
let tmp5 = items ;
let tmp6 = obj ;
let internal = items ( obj [ 6 ] ) . internal ;
2026-07-20 16:05:17 +00:00
if ( internal . isSemanticColor ( tmp4 ) ) {
let items1 = [ key10008 , tmp4 ] ;
arr = items . push ( items1 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
} else {
obj [ key10008 ] = tmp4 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
2026-07-23 10:11:24 +00:00
_slicedToArray = arr . map ( ( arg0 , arg1 ) = > arg1 ) ;
map = new Map ( ) ;
2026-07-20 16:05:17 +00:00
return ( themeIndex ) = > {
2026-07-23 10:11:24 +00:00
let callback ;
2026-07-20 16:05:17 +00:00
let done ;
2026-07-23 10:11:24 +00:00
let closure_0 = themeIndex ;
obj = arr ( obj [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
const themeContext = obj . useThemeContext ( ) ;
const value = map . get ( themeContext . key ) ;
2026-07-23 10:11:24 +00:00
obj = value ;
2026-07-20 16:05:17 +00:00
let tmp3 = value ;
if ( null == value ) {
obj = { } ;
let enabledExperiments = themeContext . enabledExperiments ;
if ( null == enabledExperiments ) {
enabledExperiments = [ ] ;
}
obj . enabledExperiments = enabledExperiments ;
let num2 = 1 ;
if ( null == themeContext . primaryColor ) {
const saturation = themeContext . saturation ;
let num3 = 1 ;
if ( null != saturation ) {
num3 = saturation ;
}
num2 = num3 ;
}
obj . saturation = num2 ;
let num4 = 1 ;
if ( null == themeContext . primaryColor ) {
const contrast = themeContext . contrast ;
let num5 = 1 ;
if ( null != contrast ) {
num5 = contrast ;
}
num4 = num5 ;
}
obj . contrast = num4 ;
obj = { } ;
const merged = Object . assign ( obj ) ;
function _loop ( arg0 ) {
2026-07-23 10:11:24 +00:00
const themeIndex = arg0 ;
obj [ _slicedToArray ] = themeIndex . map ( ( theme ) = > {
const internal = items ( obj [ 6 ] ) . internal ;
return internal . resolveSemanticColor ( theme , closure_0 , outer1_2 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
2026-07-23 10:11:24 +00:00
const tmp9 = outer1_10 ( obj ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp9 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp10 = callback ;
let tmp11 = callback ( iter . value , 2 ) ;
callback = tmp11 [ 0 ] ;
2026-07-20 16:05:17 +00:00
let _loopResult = _loop ( tmp11 [ 1 ] ) ;
let iter2 = tmp9 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
const result = map . set ( themeContext . key , obj ) ;
tmp3 = obj ;
}
const fn = function _() {
const obj = { } ;
for ( const key10008 in closure_4 ) {
let tmp6 = key10008 ;
2026-07-23 10:11:24 +00:00
let tmp7 = tmp3 ;
let tmp8 = tmp3 [ key10008 ] ;
2026-07-20 16:05:17 +00:00
let _Array = Array ;
if ( Array . isArray ( tmp8 ) ) {
2026-07-23 10:11:24 +00:00
let tmp = arr ;
let tmp2 = obj ;
let obj2 = arr ( obj [ 9 ] ) ;
let obj3 = arr ( obj [ 8 ] ) ;
let tmp3 = themeIndex ;
let tmp4 = outer1_3 ;
let interpolateColorResult = obj3 . interpolateColor ( themeIndex . get ( ) , outer1_3 , tmp8 ) ;
obj [ key10008 ] = obj2 . withTiming ( interpolateColorResult , arr ( obj [ 10 ] ) . timingStandard ) ;
continue ;
2026-07-20 16:05:17 +00:00
} else {
obj [ key10008 ] = tmp8 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
return obj ;
} ;
2026-07-23 10:11:24 +00:00
const obj1 = { resolvedStyles : tmp3 , withTiming : arr ( obj [ 9 ] ) . withTiming , interpolateColor : arr ( obj [ 8 ] ) . interpolateColor , themeIndex , stops : callback , timingStandard : arr ( obj [ 10 ] ) . timingStandard } ;
2026-07-20 16:05:17 +00:00
fn . __closure = obj1 ;
fn . __workletHash = 6815805628278 ;
2026-07-23 10:11:24 +00:00
fn . __initData = outer1_9 ;
return arr ( obj [ 8 ] ) . useAnimatedStyle ( fn ) ;
2026-07-20 16:05:17 +00:00
} ;
} ;