decord/alpha/source/modules/quests/native/PremiumRewardGradient.tsx
github-actions 1224ea86fd chore: update source for alpha 348.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-26 08:31:33 +00:00

103 lines
4.6 KiB
TypeScript

// Module ID: 14695
// Function ID: 14696
// Name: PremiumRewardGradient
// Dependencies: [19, 17, 21, 4836, 4683, 576, 4531, 4767, 4686, 5293, 5976, 2]
// Exports: default
// Module 14695 (PremiumRewardGradient)
import nativeDefault from "native" /* 576 */;
import useToken from "useToken" /* 4531 */;
import design_shared from "design/shared" /* 4686 */;
import useThemeDefault from "useTheme" /* 4767 */;
import LinearGradientDefault from "LinearGradient" /* 5293 */;
import _modDef5976 from "module_5976" /* 5976 */;
import noop from "module_19" /* 19 */;
require = fn;
function PremiumRewardFillGradient(arg0) {
({ children, style } = arg0);
const tmp = closure_8();
const token = useToken.useToken(nativeDefault.colors.EXPRESSIVE_GRADIENT_NITRO_PINK_START);
const token1 = useToken.useToken(nativeDefault.colors.EXPRESSIVE_GRADIENT_NITRO_PINK_END);
let items = [token, token1];
const memo = noop.useMemo(() => {
const items = [token, token1];
return items;
}, items);
const tmp5 = closure_13();
const transparentBlack = tmp5.transparentBlack;
const opaqueBlack = tmp5.opaqueBlack;
const transparentWhite = tmp5.transparentWhite;
const opaqueWhite = tmp5.opaqueWhite;
const tmp6 = useThemeDefault();
const isThemeDarkResult = design_shared.isThemeDark(tmp6);
c4 = isThemeDarkResult;
let items1 = [transparentBlack, opaqueBlack, transparentWhite, opaqueWhite, isThemeDarkResult];
const obj4 = { style: null, children: null };
const items2 = [tmp.wrapper, style];
obj4.style = items2;
const memo1 = noop.useMemo(() => {
if (c4) {
const items = [transparentBlack, opaqueBlack];
let items1 = items;
} else {
items1 = [transparentWhite, opaqueWhite];
}
return items1;
}, items1);
const items3 = [timestampProducer(LinearGradientDefault, { style: tmp.fill, colors: memo, start, end, pointerEvents: "none" }), timestampProducer(LinearGradientDefault, { style: tmp.fill, colors: memo1, start: start2, end: end2, pointerEvents: "none" }), children];
obj4.children = items3;
return React5(hasOwnProperty, obj4);
}
function PremiumRewardGlowGradient(arg0) {
({ children, style } = arg0);
const tmp = closure_8();
const token = useToken.useToken(nativeDefault.colors.EXPRESSIVE_GRADIENT_NITRO_PINK_START);
const token1 = useToken.useToken(nativeDefault.colors.EXPRESSIVE_GRADIENT_NITRO_PINK_END);
let items = [token, token1];
const memo = noop.useMemo(() => {
const items = [token, token1];
return items;
}, items);
const tmp7 = useThemeDefault();
const isThemeDarkResult = design_shared.isThemeDark(tmp7);
const obj4 = { style: null, children: null };
const items1 = [tmp.wrapper, style];
obj4.style = items1;
const items2 = [tmp.glow, ];
let glowLight = !isThemeDarkResult;
const tmp10 = hasOwnProperty;
const tmp9 = React5;
if (!isThemeDarkResult) {
glowLight = tmp.glowLight;
}
const obj5 = { style: items2, maskElement: timestampProducer(LinearGradientDefault, { style: React4.absoluteFill, colors: ["transparent", "black"], start: start2, end: end2 }), children: timestampProducer(LinearGradientDefault, { style: React4.absoluteFill, colors: memo, start, end }) };
items2[1] = glowLight;
const items3 = [timestampProducer(_modDef5976, obj5), children];
obj4.children = items3;
return tmp9(tmp10, obj4);
}
get_ActivityIndicator = fn(17);
({ StyleSheet: closure_4, View: hasOwnProperty } = get_ActivityIndicator);
const jsxProd = fn(21);
({ jsx: metroRequire, jsxs: closure_7 } = jsxProd);
let createStyles = fn(4836);
let closure_8 = createStyles.createStyles({ wrapper: { position: "relative", overflow: "hidden" }, fill: { position: "absolute", left: 0, right: 0, bottom: 0, height: "100%" }, glow: { position: "absolute", left: 0, right: 0, bottom: 0, height: "50%" }, glowLight: { opacity: 0.5 } });
const start = { x: 0, y: 0.5 };
const end = { x: 1, y: 0.5 };
const start2 = { x: 0.5, y: 0 };
const end2 = { x: 0.5, y: 1 };
fn(4683);
const ColorUtils = fn(4683);
const hexOpacityToRgbaResult = ColorUtils.hexOpacityToRgba("#000000", 0);
createStyles = fn(4836);
let closure_13 = createStyles.createStyleProperties({ transparentBlack: hexOpacityToRgbaResult, opaqueBlack: nativeDefault.colors.BLACK, transparentWhite: ColorUtils.hexOpacityToRgba("#FFFFFF", 0), opaqueWhite: nativeDefault.colors.WHITE });
const size = fn(2);
const result = size.fileFinishedImporting("modules/quests/native/PremiumRewardGradient.tsx");
export default function QuestPremiumRewardGradientWrapper(visible) {
if (!visible.visible) {
const obj = { style: tmp, children: tmp2 };
return tmp3(hasOwnProperty, obj);
}
};