Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
62 lines
1.6 KiB
JavaScript
62 lines
1.6 KiB
JavaScript
// Module ID: 4412
|
|
// Function ID: 4413
|
|
// Dependencies: [32, 19, 4394, 4407, 4402]
|
|
// Exports: useRiveColor
|
|
|
|
// Module 4412
|
|
import c from "c" /* 4394 */;
|
|
import _mod4407 from "module_4407" /* 4407 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
const RiveColor2 = tmp(4402);
|
|
require = fn;
|
|
fn(19).useCallback;
|
|
const f30817 = (colorProperty, arg1) => colorProperty.colorProperty(arg1);
|
|
|
|
export const useRiveColor = function useRiveColor(FillColor, instance) {
|
|
const cResult = c.c(8);
|
|
const tmp4 = _slicedToArray(_mod4407.useRiveProperty(instance, FillColor, f30817), 3);
|
|
[tmp5, tmp6] = tmp4;
|
|
require = tmp6;
|
|
if (cResult[0] !== tmp5) {
|
|
let fromIntResult;
|
|
if (undefined !== tmp5) {
|
|
let RiveColor = RiveColor2.RiveColor;
|
|
fromIntResult = RiveColor.fromInt(tmp5);
|
|
}
|
|
cResult[0] = tmp5;
|
|
cResult[1] = fromIntResult;
|
|
let tmp8 = fromIntResult;
|
|
} else {
|
|
tmp8 = cResult[1];
|
|
}
|
|
if (cResult[2] !== tmp6) {
|
|
const fn = function p(str) {
|
|
let fromHexStringResult = str;
|
|
if (typeof str === "string") {
|
|
const RiveColor = RiveColor2.RiveColor;
|
|
fromHexStringResult = RiveColor.fromHexString(str);
|
|
}
|
|
tmp6(fromHexStringResult.toInt());
|
|
};
|
|
cResult[2] = tmp6;
|
|
cResult[3] = fn;
|
|
let tmp10 = fn;
|
|
} else {
|
|
tmp10 = cResult[3];
|
|
}
|
|
if (cResult[4] === tmp4[2]) {
|
|
if (cResult[5] === tmp10) {
|
|
if (cResult[6] === tmp8) {
|
|
let tmp11 = cResult[7];
|
|
}
|
|
return tmp11;
|
|
}
|
|
}
|
|
const obj3 = { value: tmp8, setValue: tmp10, error: tmp4[2] };
|
|
cResult[4] = tmp4[2];
|
|
cResult[5] = tmp10;
|
|
cResult[6] = tmp8;
|
|
cResult[7] = obj3;
|
|
tmp11 = obj3;
|
|
};
|