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

97 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13996
// Function ID: 107131
2026-07-20 16:05:17 +00:00
// Name: BountiesModalProgress
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 27, 33, 4131, 689, 3992, 4132, 4135, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 13996 (BountiesModalProgress)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_5;
let closure_6;
let closure_7;
let closure_8;
const require = arg1;
({ StyleSheet: closure_5, View: closure_6 } = get_ActivityIndicator);
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
let closure_9 = _createForOfIteratorHelperLoose.createStyles(() => {
2026-07-20 16:05:17 +00:00
let obj = { progressContainer: { height: 4 } };
obj = {};
const merged = Object.assign(absoluteFillObject.absoluteFillObject);
2026-07-23 10:11:24 +00:00
obj["borderRadius"] = importDefault(689).radii.round;
obj["backgroundColor"] = importDefault(689).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
2026-07-20 16:05:17 +00:00
obj["opacity"] = 0.54;
obj.progressTrack = obj;
2026-07-23 10:11:24 +00:00
obj = { position: "absolute", height: "100%", left: 0, bottom: 0, borderRadius: importDefault(689).radii.round, backgroundColor: importDefault(689).unsafe_rawColors.GREEN_300, shadowOffset: { width: 0, height: 0 }, shadowRadius: 8, shadowOpacity: 1, elevation: 4, shadowColor: "#30C773" };
2026-07-20 16:05:17 +00:00
obj.progressBar = obj;
2026-07-23 10:11:24 +00:00
const obj1 = { position: "absolute", height: "100%", left: 0, bottom: 0, borderRadius: importDefault(689).radii.round, backgroundColor: importDefault(689).unsafe_rawColors.GREEN_300, shadowOffset: { width: 0, height: 0 }, shadowRadius: 12, shadowOpacity: 1, elevation: 8, shadowColor: importDefault(689).unsafe_rawColors.GREEN_300 };
obj.progressBarGlowLayer = obj1;
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-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").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;
const tmp = callback4();
2026-07-23 10:11:24 +00:00
let tmp2 = callback(React.useState(false), 2);
2026-07-20 16:05:17 +00:00
const first = tmp2[0];
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() {
obj = {};
2026-07-23 10:11:24 +00:00
obj2 = progress(outer1_2[7]);
2026-07-20 16:05:17 +00:00
num = 0;
if (visible) {
num = 1;
}
2026-07-23 10:11:24 +00:00
obj.opacity = obj2.withTiming(num, progress(outer1_2[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() {
obj = {};
2026-07-23 10:11:24 +00:00
obj2 = progress(outer1_2[7]);
2026-07-20 16:05:17 +00:00
result = 100 * progress;
2026-07-23 10:11:24 +00:00
tmp2 = progress(outer1_2[8]);
2026-07-20 16:05:17 +00:00
obj.width = obj2.withTiming(`${tmp}%`, closure_2 ? tmp2.timingNone : tmp2.timingFast, "animate-always");
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);
const obj1 = { style: items };
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-20 16:05:17 +00:00
obj1.children = 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;