// Module ID: 4411 // Function ID: 4412 // Dependencies: [32, 19, 4393, 4406, 4401] // Exports: useRiveColor // Module 4411 import c from "c" /* 4393 */; import _mod4406 from "module_4406" /* 4406 */; import _slicedToArray from "module_32" /* 32 */; const RiveColor2 = tmp(4401); require = fn; fn(19).useCallback; const f30716 = (colorProperty, arg1) => colorProperty.colorProperty(arg1); export const useRiveColor = function useRiveColor(FillColor, instance) { const cResult = c.c(8); const tmp4 = _slicedToArray(_mod4406.useRiveProperty(instance, FillColor, f30716), 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; };