decord/source/3940_getHostComponent.js
2026-07-31 08:44:05 +00:00

50 lines
1.4 KiB
JavaScript

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