decord/source/65_setRuntimeConfigProvider.js

225 lines
7.4 KiB
JavaScript
Raw Normal View History

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;
};