decord/source/modules/quests/native/BountiesModal/BountiesModalProgress.tsx

94 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14447
// Function ID: 14448
2026-07-20 16:05:17 +00:00
// Name: BountiesModalProgress
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 17, 21, 4668, 712, 4119, 4671, 4674, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14447 (BountiesModalProgress)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ StyleSheet: c5, View: closure_6 } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
({ jsx: error, jsxs: closure_8 } = jsxProd);
2026-07-29 08:29:29 +00:00
let closure_9 = createCacheKey.createStyles(() => {
let obj = { progressContainer: { height: 4 }, progressTrack: null, progressBar: null, progressBarGlowLayer: null };
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(absoluteFillObject.absoluteFillObject);
2026-08-24 06:08:38 +00:00
obj.borderRadius = ThemesDefault.radii.round;
obj.backgroundColor = ThemesDefault.colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
2026-07-29 08:29:29 +00:00
obj.opacity = 0.54;
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj = { position: "absolute", height: "100%", left: 0, bottom: 0, borderRadius: ThemesDefault.radii.round, backgroundColor: ThemesDefault.unsafe_rawColors.GREEN_300, shadowOffset: { width: 0, height: 0 }, shadowRadius: 8, shadowOpacity: 1, elevation: 4, shadowColor: "#30C773" };
2026-07-29 08:29:29 +00:00
obj[2] = obj;
2026-08-24 06:08:38 +00:00
obj[3] = { position: "absolute", height: "100%", left: 0, bottom: 0, borderRadius: ThemesDefault.radii.round, backgroundColor: ThemesDefault.unsafe_rawColors.GREEN_300, shadowOffset: { width: 0, height: 0 }, shadowRadius: 12, shadowOpacity: 1, elevation: 8, shadowColor: ThemesDefault.unsafe_rawColors.GREEN_300 };
2026-07-20 16:05:17 +00:00
return obj;
});
let closure_10 = { code: "function BountiesModalProgressTsx1(){const{withTiming,visible,timingFast}=this.__closure;return{opacity:withTiming(visible?1:0,timingFast)};}" };
let closure_11 = { code: "function BountiesModalProgressTsx2(){const{withTiming,progress,shouldSkipAnimation,timingNone,timingFast}=this.__closure;return{width:withTiming(progress*100+\"%\",shouldSkipAnimation?timingNone:timingFast,'animate-always')};}" };
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModalProgress.tsx");
2026-07-20 16:05:17 +00:00
export default function BountiesModalProgress(progress) {
progress = progress.progress;
const visible = progress.visible;
2026-07-29 08:29:29 +00:00
let first;
2026-07-20 16:05:17 +00:00
const tmp = callback4();
2026-07-23 10:11:24 +00:00
let tmp2 = callback(React.useState(false), 2);
2026-07-29 08:29:29 +00:00
first = tmp2[0];
2026-07-20 16:05:17 +00:00
const tmp4 = callback(React.useState(progress), 2);
const first1 = tmp4[0];
if (progress !== first1) {
tmp4[1](progress);
tmp2[1](progress < first1);
}
2026-07-23 10:11:24 +00:00
let obj = progress(first[6]);
2026-07-20 16:05:17 +00:00
class O {
constructor() {
2026-07-29 08:29:29 +00:00
tmp = progress;
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
obj = progress(closure_2[7]);
2026-07-20 16:05:17 +00:00
num = 0;
if (visible) {
num = 1;
}
2026-07-29 08:29:29 +00:00
obj = { opacity: obj.withTiming(num, tmp(tmp2[8]).timingFast) };
2026-07-20 16:05:17 +00:00
return obj;
}
}
2026-07-23 10:11:24 +00:00
obj = { withTiming: progress(first[7]).withTiming, visible, timingFast: progress(first[8]).timingFast };
2026-07-20 16:05:17 +00:00
O.__closure = obj;
O.__workletHash = 5158131592262;
O.__initData = closure_10;
const animatedStyle = obj.useAnimatedStyle(O);
2026-07-23 10:11:24 +00:00
let obj2 = progress(first[6]);
2026-07-20 16:05:17 +00:00
class B {
constructor() {
2026-08-24 06:08:38 +00:00
obj = progress(closure_2[7]);
2026-07-20 16:05:17 +00:00
result = 100 * progress;
2026-08-24 06:08:38 +00:00
tmp2 = progress(closure_2[8]);
obj = { width: obj.withTiming(`${tmp}%`, closure_2 ? tmp2.timingNone : tmp2.timingFast, "animate-always") };
2026-07-20 16:05:17 +00:00
return obj;
}
}
2026-07-23 10:11:24 +00:00
obj = { withTiming: progress(first[7]).withTiming, progress, shouldSkipAnimation: first, timingNone: progress(first[8]).timingNone, timingFast: progress(first[8]).timingFast };
2026-07-20 16:05:17 +00:00
B.__closure = obj;
B.__workletHash = 15586067343237;
B.__initData = closure_11;
const animatedStyle1 = obj2.useAnimatedStyle(B);
2026-08-24 06:08:38 +00:00
obj1 = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.progressContainer, progress.style, animatedStyle];
2026-07-20 16:05:17 +00:00
obj2 = { style: tmp.progressTrack };
const items1 = [callback2(closure_6, obj2), , ];
const items2 = [tmp.progressBarGlowLayer, animatedStyle1];
2026-07-23 10:11:24 +00:00
items1[1] = callback2(visible(first[6]).View, { style: items2 });
2026-07-20 16:05:17 +00:00
const items3 = [tmp.progressBar, animatedStyle1];
2026-07-23 10:11:24 +00:00
items1[2] = callback2(visible(first[6]).View, { style: items3 });
2026-07-29 08:29:29 +00:00
obj1[1] = items1;
2026-07-23 10:11:24 +00:00
return callback3(visible(first[6]).View, obj1);
2026-07-20 16:05:17 +00:00
};
export const PROGRESS_BAR_HEIGHT = 4;