decord/source/__polyfill/04xxx/module_4390.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

50 lines
1.3 KiB
JavaScript

// Module ID: 4390
// Function ID: 4391
// Dependencies: [17, 65]
// Exports: callback, getHostComponent
// Module 4390
import _mod17 from "module_17" /* 17 */;
import _modAll65 from "module_65" /* 65 */;
const Platform = _mod17.Platform;
export const getHostComponent = function getHostComponent(RiveView, arg1) {
closure_0 = arg1;
if (null == _modAll65) {
const _Error = Error;
const error = new Error("NativeComponentRegistry is not available on android!");
throw error;
} else {
return _modAll65.get(RiveView, () => {
const tmp = closure_0();
const validAttributes = tmp.validAttributes;
(function wrapValidAttributes(validAttributes) {
const keys = Object.keys(validAttributes);
for (const item10009 of keys) {
let obj = {
diff(arg0, arg1) {
return arg0 !== arg1;
},
process(arg0) {
return arg0;
}
};
arg0[item10009] = obj;
continue;
}
return validAttributes;
})(validAttributes);
tmp.validAttributes = validAttributes;
return tmp;
});
}
};
export const callback = function callback(f) {
let tmp = f;
if (typeof f === "function") {
const obj = { f };
tmp = obj;
}
return tmp;
};