103 lines
6.2 KiB
JavaScript
103 lines
6.2 KiB
JavaScript
/* Metro module 1790; source: unknown; dependencies: [1614, 1653, 1613] */
|
|
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
|
|
import * as Module01614Module from './module-01614.js'; /* Metro dependency 1614 */
|
|
|
|
function _fun19676(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:6, offset: 0x00eb11cb, size: 227 bytes, params: 8, frame: 20
|
|
var r1;
|
|
var r3;
|
|
const env0_1 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {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}]);}"};
|
|
let value = _fun19677();
|
|
object = {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}]);}"};
|
|
const value2 = _fun19679();
|
|
const shouldBeUseWeb2 = (Module01613Module).shouldBeUseWeb();
|
|
if (shouldBeUseWeb2) {
|
|
if (Module01613Module.isJest()) {
|
|
r3 = function() {
|
|
require(dependencyMap[0]).logger.warn('setNativeProps() is not supported with Jest.');
|
|
};
|
|
} else {
|
|
value = Module01613Module;
|
|
r3 = value.isChromeDebugger() ? setNativePropsChromeDebugger : setNativePropsDefault;
|
|
}
|
|
r1 = r3;
|
|
} else {
|
|
r1 = Module01613Module.isFabric() ? value : value2;
|
|
}
|
|
exports.setNativeProps = r1;
|
|
function _fun19677() { // fn#19677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:482, offset: 0x00eb12ae, size: 101 bytes, params: 1, frame: 15
|
|
const setNativePropsFabric2 = setNativePropsFabric;
|
|
const object = {};
|
|
object.logger = (require(1614) /* metro dependency 1614 */).logger;
|
|
object.processColorsInProps = (require(1653) /* metro dependency 1653 */).processColorsInProps;
|
|
setNativePropsFabric2.__closure = object;
|
|
setNativePropsFabric2.__workletHash = 13825557000530;
|
|
setNativePropsFabric2.__initData = env0_3;
|
|
return setNativePropsFabric2;
|
|
function setNativePropsFabric(a0, a1) { // fn#19678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:499, offset: 0x00eb1313, size: 141 bytes, params: 3, frame: 15
|
|
var value2;
|
|
var binding;
|
|
if (global._WORKLET) {
|
|
value2 = a0();
|
|
(require(1653) /* metro dependency 1653 */).processColorsInProps(a1);
|
|
binding = env1_0;
|
|
binding._updatePropsFabric([{shadowNodeWrapper: value2, updates: a1}]);
|
|
} else {
|
|
(require(1614) /* metro dependency 1614 */).logger.warn('setNativeProps() can only be used on the UI runtime.');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun19679() { // fn#19679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:1412, offset: 0x00eb13a0, size: 101 bytes, params: 1, frame: 15
|
|
const setNativePropsPaper2 = setNativePropsPaper;
|
|
const object = {};
|
|
object.logger = (require(1614) /* metro dependency 1614 */).logger;
|
|
object.processColorsInProps = (require(1653) /* metro dependency 1653 */).processColorsInProps;
|
|
setNativePropsPaper2.__closure = object;
|
|
setNativePropsPaper2.__workletHash = 9895881337862;
|
|
setNativePropsPaper2.__initData = env0_4;
|
|
return setNativePropsPaper2;
|
|
function setNativePropsPaper(a0, a1) { // fn#19680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:1429, offset: 0x00eb1405, size: 181 bytes, params: 3, frame: 16
|
|
var r1;
|
|
var r4;
|
|
var value;
|
|
var value2;
|
|
var viewName;
|
|
var value3;
|
|
var value5;
|
|
var binding;
|
|
if (global._WORKLET) {
|
|
value = undefined;
|
|
value2 = a0();
|
|
viewName = a0.viewName;
|
|
value3 = null;
|
|
r1 = value3 == viewName ? value : viewName.value;
|
|
r4 = value3 != r1 ? r1 : value3;
|
|
value5 = environment.__proto__;
|
|
value = require(1653) /* metro dependency 1653 */;
|
|
value.processColorsInProps(a1);
|
|
binding = env1_0;
|
|
binding._updatePropsPaper([{tag: value2, name: r4, updates: a1}]);
|
|
} else {
|
|
value = environment.__proto__;
|
|
(require(1614) /* metro dependency 1614 */).logger.warn('setNativeProps() can only be used on the UI runtime.');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function setNativePropsChromeDebugger() { // fn#19682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:2024, offset: 0x00eb14ea, size: 48 bytes, params: 1, frame: 12
|
|
(Module01614Module).logger.warn('setNativeProps() is not supported with Chrome Debugger.');
|
|
}
|
|
|
|
function setNativePropsDefault() { // fn#19683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1917:2144, offset: 0x00eb151a, size: 48 bytes, params: 1, frame: 12
|
|
(Module01614Module).logger.warn('setNativeProps() is not supported on this configuration.');
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun19676, 1790, [1614, 1653, 1613]) /* metro module 1790, dependencies: [1614, 1653, 1613] */;
|