decord/source/modules/premium/powerups/native/BoostProgressBarCoachmark.tsx

54 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15493
// Function ID: 15494
2026-07-20 16:05:17 +00:00
// Name: BoostProgressBarCoachmark
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 1388, 21, 4668, 8911, 1236, 2368, 4107, 9351, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15493 (BoostProgressBarCoachmark)
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { ContentDismissActionType } from "ContentDismissActionType" /* 1388 */;
import { jsx } 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
let closure_7 = createCacheKey.createStyles({ riveContainer: { width: 120, height: 80, alignSelf: "center" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/premium/powerups/native/BoostProgressBarCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export default function BoostProgressBarCoachmark(guild) {
guild = guild.guild;
const markAsDismissed = guild.markAsDismissed;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-29 08:29:29 +00:00
let callback;
let callback1;
const tmp = callback();
dependencyMap = tmp;
2026-07-20 16:05:17 +00:00
const items = [markAsDismissed];
2026-07-23 10:11:24 +00:00
callback = callback.useCallback(() => {
2026-08-24 06:08:38 +00:00
markAsDismissed(closure_1_5.USER_DISMISS);
2026-07-20 16:05:17 +00:00
}, items);
const items1 = [guild.id, markAsDismissed];
2026-07-29 08:29:29 +00:00
callback1 = callback.useCallback(() => {
2026-08-24 06:08:38 +00:00
markAsDismissed(closure_1_5.TAKE_ACTION);
markAsDismissed(8911).saveGuild(guild.id, { premiumProgressBarEnabled: true });
2026-07-20 16:05:17 +00:00
}, items1);
const items2 = [callback, callback1, tmp.riveContainer];
2026-07-23 10:11:24 +00:00
const memo = callback.useMemo(() => {
2026-07-29 08:29:29 +00:00
const obj = { title: null, description: null, visible: true, position: "bottom", offsetY: 8, onDismiss: null, renderImgComponent: null, buttonLabel: null, buttonVariant: "primary", onButtonPress: null };
2026-08-24 06:08:38 +00:00
const intl = guild(1236).intl;
obj[0] = intl.string(markAsDismissed(2368).uwV2dH);
const intl2 = guild(1236).intl;
obj[1] = intl2.string(markAsDismissed(2368).MIwlcR);
2026-07-29 08:29:29 +00:00
obj[5] = callback;
obj[6] = function renderImgComponent() {
2026-08-24 06:08:38 +00:00
return closure_1_6(closure_1_4, { style: riveContainer.riveContainer, children: closure_1_6(closure_1_0(closure_1_2[8]).BoostThisServerRive, { stateMachine: "State Machine 1" }) });
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
const intl3 = guild(1236).intl;
obj[7] = intl3.string(guild(1236).t["0CJWP2"]);
2026-07-29 08:29:29 +00:00
obj[9] = callback1;
2026-07-20 16:05:17 +00:00
return obj;
}, items2);
2026-08-24 06:08:38 +00:00
const coachmark = guild(9351).useCoachmark(guild.targetRef, memo);
2026-07-20 16:05:17 +00:00
return null;
};