2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 4004
|
|
|
|
|
// Function ID: 4005
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: defaultOnError
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [109, 19, 21, 4005, 4006, 4008, 3986]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: RiveView
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 4004 (defaultOnError)
|
2026-07-29 08:29:29 +00:00
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties";
|
|
|
|
|
import noop from "noop";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
|
|
|
|
|
let c4;
|
|
|
|
|
let c5;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
let closure_2 = ["onError", "hybridRef"];
|
|
|
|
|
({ useEffect: c4, useRef: c5 } = noop);
|
|
|
|
|
function defaultOnError(message) {
|
2026-08-05 07:35:12 +00:00
|
|
|
return console.error("[" + require(4005).RiveErrorType[message.type] + "] " + message.message);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const RiveView = function RiveView(arg0) {
|
|
|
|
|
let hybridRef;
|
|
|
|
|
let onError;
|
2026-08-05 07:35:12 +00:00
|
|
|
let obj = _require(4006);
|
2026-07-29 08:29:29 +00:00
|
|
|
const cResult = obj.c(16);
|
|
|
|
|
if (cResult[0] !== arg0) {
|
|
|
|
|
({ onError, hybridRef } = arg0);
|
|
|
|
|
_require = hybridRef;
|
|
|
|
|
const tmp9 = callback(arg0, closure_2);
|
|
|
|
|
cResult[0] = arg0;
|
|
|
|
|
cResult[1] = onError;
|
|
|
|
|
cResult[2] = tmp9;
|
|
|
|
|
cResult[3] = hybridRef;
|
|
|
|
|
let tmp5 = tmp9;
|
|
|
|
|
let tmp4 = onError;
|
|
|
|
|
} else {
|
|
|
|
|
tmp4 = cResult[1];
|
|
|
|
|
tmp5 = cResult[2];
|
|
|
|
|
_require = cResult[3];
|
|
|
|
|
}
|
|
|
|
|
if (tmp4 == null) {
|
|
|
|
|
tmp4 = defaultOnError;
|
|
|
|
|
}
|
|
|
|
|
const dependencyMap = callback3(null);
|
|
|
|
|
if (cResult[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const fn = function y() {
|
|
|
|
|
return () => {
|
|
|
|
|
if (ref.current) {
|
|
|
|
|
outer1_0(outer1_1[5]).callDispose(tmp.current);
|
|
|
|
|
tmp.current = null;
|
|
|
|
|
const obj = outer1_0(outer1_1[5]);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
const items = [];
|
|
|
|
|
cResult[4] = fn;
|
|
|
|
|
cResult[5] = items;
|
|
|
|
|
let tmp11 = items;
|
|
|
|
|
let tmp10 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
tmp10 = cResult[4];
|
|
|
|
|
tmp11 = cResult[5];
|
|
|
|
|
}
|
|
|
|
|
callback2(tmp10, tmp11);
|
|
|
|
|
if (cResult[6] !== tmp6) {
|
|
|
|
|
const fn2 = function b(current) {
|
|
|
|
|
closure_1.current = current;
|
|
|
|
|
let f;
|
|
|
|
|
if (closure_0 != null) {
|
|
|
|
|
f = obj.f;
|
|
|
|
|
}
|
|
|
|
|
if (f) {
|
|
|
|
|
obj.f(current);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
cResult[6] = tmp6;
|
|
|
|
|
cResult[7] = fn2;
|
|
|
|
|
let tmp13 = fn2;
|
|
|
|
|
} else {
|
|
|
|
|
tmp13 = cResult[7];
|
|
|
|
|
}
|
|
|
|
|
if (cResult[8] !== tmp4) {
|
|
|
|
|
obj = { f: null };
|
|
|
|
|
obj[0] = tmp4;
|
|
|
|
|
cResult[8] = tmp4;
|
|
|
|
|
cResult[9] = obj;
|
|
|
|
|
let tmp14 = obj;
|
|
|
|
|
} else {
|
|
|
|
|
tmp14 = cResult[9];
|
|
|
|
|
}
|
|
|
|
|
if (cResult[10] !== tmp13) {
|
|
|
|
|
obj = { f: null };
|
|
|
|
|
obj[0] = tmp13;
|
|
|
|
|
cResult[10] = tmp13;
|
|
|
|
|
cResult[11] = obj;
|
|
|
|
|
let tmp15 = obj;
|
|
|
|
|
} else {
|
|
|
|
|
tmp15 = cResult[11];
|
|
|
|
|
}
|
|
|
|
|
if (cResult[12] === tmp5) {
|
|
|
|
|
if (cResult[13] === tmp14) {
|
|
|
|
|
if (cResult[14] === tmp15) {
|
|
|
|
|
let tmp16 = cResult[15];
|
|
|
|
|
}
|
|
|
|
|
return tmp16;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const obj1 = {};
|
|
|
|
|
const merged = Object.assign(tmp5);
|
|
|
|
|
obj1.onError = tmp14;
|
|
|
|
|
obj1.hybridRef = tmp15;
|
2026-08-05 07:35:12 +00:00
|
|
|
const tmp18 = jsx(_require(3986).NitroRiveView, {});
|
2026-07-29 08:29:29 +00:00
|
|
|
cResult[12] = tmp5;
|
|
|
|
|
cResult[13] = tmp14;
|
|
|
|
|
cResult[14] = tmp15;
|
|
|
|
|
cResult[15] = tmp18;
|
|
|
|
|
tmp16 = tmp18;
|
|
|
|
|
};
|