// Module ID: 1816 // Function ID: 1817 // Dependencies: [1640, 1679, 1639] // Module 1816 import _mod1640 from "module_1640" /* 1640 */; import _mod1679 from "module_1679" /* 1679 */; import module_1639_mod from "module_1639" /* 1639 */; function setNativePropsFabric(fn, updates) { if (globalThis._WORKLET) { const tmp6 = fn(); _mod1679.processColorsInProps(updates); const obj2 = { shadowNodeWrapper: tmp6, updates }; const items = [obj2]; global._updatePropsFabric(items); } else { const logger = _mod1640.logger; logger.warn("setNativeProps() can only be used on the UI runtime."); } } setNativePropsFabric.__closure = { logger: _mod1640.logger, processColorsInProps: _mod1679.processColorsInProps }; setNativePropsFabric.__workletHash = 13825557000530; setNativePropsFabric.__initData = { code: "function setNativePropsFabric_Pnpm_setNativePropsTs1(animatedRef,updates){const{logger,processColorsInProps}=this.__closure;if(!_WORKLET){logger.warn('setNativeProps() can only be used on the UI runtime.');return;}const shadowNodeWrapper=animatedRef();processColorsInProps(updates);global._updatePropsFabric([{shadowNodeWrapper:shadowNodeWrapper,updates:updates}]);}" }; function setNativePropsPaper(viewName, updates) { if (globalThis._WORKLET) { value = undefined; if (viewName.viewName != null) { value = iter.value; } if (value == null) { value = null; } const tmp5 = viewName(); _mod1679.processColorsInProps(updates); const obj2 = { tag: tmp5, name: value, updates }; const items = [obj2]; global._updatePropsPaper(items); } else { const logger = _mod1640.logger; logger.warn("setNativeProps() can only be used on the UI runtime."); } } let obj = { logger: _mod1640.logger, processColorsInProps: _mod1679.processColorsInProps }; setNativePropsPaper.__closure = { logger: _mod1640.logger, processColorsInProps: _mod1679.processColorsInProps }; setNativePropsPaper.__workletHash = 9895881337862; setNativePropsPaper.__initData = { code: "function setNativePropsPaper_Pnpm_setNativePropsTs2(animatedRef,updates){const{logger,processColorsInProps}=this.__closure;var _viewName$value,_viewName;if(!_WORKLET){logger.warn('setNativeProps() can only be used on the UI runtime.');return;}const tag=animatedRef();const name=(_viewName$value=(_viewName=animatedRef.viewName)===null||_viewName===void 0?void 0:_viewName.value)!==null&&_viewName$value!==void 0?_viewName$value:null;processColorsInProps(updates);global._updatePropsPaper([{tag:tag,name:name,updates:updates}]);}" }; let module_1639 = module_1639_mod; module_1639.shouldBeUseWeb(); let module_1639 = module_1639_mod; if (module_1639) { if (module_1639.isJest()) { function setNativePropsJest() { const logger = _mod1640.logger; logger.warn("setNativeProps() is not supported with Jest."); } } else { const _module2 = module_1639; setNativePropsJest = _module2.isChromeDebugger() ? (function setNativePropsChromeDebugger() { const logger = _mod1640.logger; logger.warn("setNativeProps() is not supported with Chrome Debugger."); }) : (function setNativePropsDefault() { const logger = _mod1640.logger; logger.warn("setNativeProps() is not supported on this configuration."); }); } } else { if (module_1639.isFabric()) { setNativePropsPaper = setNativePropsFabric; } exports.setNativeProps = setNativePropsPaper; }