decord/source/modules/quests/native/BountiesModal/BountiesAutoScrollOverlayNuxGradient.tsx
2026-08-05 07:35:12 +00:00

54 lines
2.1 KiB
TypeScript

// Module ID: 14169
// Function ID: 14170
// Name: BountiesAutoScrollOverlayNuxGradient
// Dependencies: [19, 17, 21, 712, 4116, 4256, 4259, 4676, 2]
// Exports: default
// Module 14169 (BountiesAutoScrollOverlayNuxGradient)
import noop from "noop";
import { StyleSheet } from "get ActivityIndicator";
import jsxProd from "jsxProd";
let c5;
let closure_6;
const require = arg1;
({ jsx: c5, jsxs: closure_6 } = jsxProd);
const BRAND_500 = require("Themes").unsafe_rawColors.BRAND_500;
let closure_8 = { code: "function BountiesAutoScrollOverlayNuxGradientTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
let result = require("jsxProd").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesAutoScrollOverlayNuxGradient.tsx");
export default function BountiesAutoScrollOverlayNuxGradient(active) {
active = active.active;
let sharedValue;
let obj = active(4116);
sharedValue = obj.useSharedValue(0);
const items = [active, sharedValue];
const effect = React.useEffect(() => {
let num = 0;
if (active) {
num = 1;
}
const result = sharedValue.set(active(outer1_2[5]).withTiming(num, active(outer1_2[6]).timingSlow));
}, items);
let obj1 = active(4116);
const fn = function _() {
return { opacity: sharedValue.get() };
};
fn.__closure = { opacity: sharedValue };
fn.__workletHash = 17406907036861;
fn.__initData = closure_8;
const animatedStyle = obj1.useAnimatedStyle(fn);
obj = { style: items1, pointerEvents: "none", children: null };
items1 = [StyleSheet.absoluteFillObject, animatedStyle];
obj = { style: StyleSheet.absoluteFillObject, colors: null, locations: null, start: null, end: null };
const items2 = ["" + BRAND_500 + "80", "" + BRAND_500 + "00"];
obj[1] = items2;
obj[2] = [0, 1];
obj[3] = { x: 0.5, y: 1 };
obj[4] = { x: 0.5, y: 0 };
const items3 = [callback(sharedValue(4676), obj), ];
obj1 = { style: StyleSheet.absoluteFillObject, colors: ["rgba(0,0,0,0.4)", "rgba(0,0,0,0)"], locations: [0, 0.5], start: { x: 0.5, y: 1 }, end: { x: 0.5, y: 0 } };
items3[1] = callback(sharedValue(4676), obj1);
obj[2] = items3;
return callback2(sharedValue(4116).View, obj);
};