decord/source/modules/premium/powerups/hooks/useGuildPowerupRollbackNotificationConfig.tsx

69 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 11742
// Function ID: 11743
2026-07-20 16:05:17 +00:00
// Name: useGuildPowerupRollbackNotificationConfig
2026-08-05 07:35:12 +00:00
// Dependencies: [4142, 589, 4146, 11743, 1358, 1236, 2287, 11745, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 11742 (useGuildPowerupRollbackNotificationConfig)
2026-07-29 08:29:29 +00:00
import calculateAppliedBoosts from "calculateAppliedBoosts";
2026-07-23 10:11:24 +00:00
const require = arg1;
const result = require("VANITY_URL_POWERUP_SKU_ID").fileFinishedImporting("modules/premium/powerups/hooks/useGuildPowerupRollbackNotificationConfig.tsx");
2026-07-20 16:05:17 +00:00
export default function useGuildPowerupRollbackNotificationConfig(guildId, location) {
2026-07-23 10:11:24 +00:00
const _require = guildId;
2026-07-29 08:29:29 +00:00
let obj = _require(589);
const items = [calculateAppliedBoosts];
2026-07-23 10:11:24 +00:00
const stateFromStores = obj.useStateFromStores(items, () => outer1_3.getStateForGuild(closure_0));
2026-07-29 08:29:29 +00:00
let tmp4;
if (stateFromStores != null) {
2026-08-05 07:35:12 +00:00
tmp4 = stateFromStores.allPowerups[tmp(undefined, 4146).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
const storeRemovalDate = tmp4.storeRemovalDate;
2026-07-20 16:05:17 +00:00
}
let tmp5 = null;
2026-07-29 08:29:29 +00:00
if (tmpResult.useShouldShowFileUploadRollback(guildId, location)) {
2026-07-20 16:05:17 +00:00
tmp5 = null;
if (null != storeRemovalDate) {
let title;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
title = tmp4.title;
2026-07-20 16:05:17 +00:00
}
tmp5 = null;
if (null != title) {
let cost;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
cost = tmp4.cost;
2026-07-20 16:05:17 +00:00
}
tmp5 = null;
if (null != cost) {
2026-07-29 08:29:29 +00:00
obj = { dismissibleContent: null, title: null, description: null };
obj[0] = tmp(1358).DismissibleContent.FILE_UPLOAD_POWERUP_ROLLBACK_NOTIFICATION;
const intl = tmp(1236).intl;
obj = { dateString: null };
2026-08-05 07:35:12 +00:00
obj[0] = importDefault(11745)(storeRemovalDate);
obj[1] = intl.formatToPlainString(importDefault(2287)["6e2ry1"], obj);
2026-07-29 08:29:29 +00:00
const intl2 = tmp(1236).intl;
const obj1 = { startDate: null, endDate: null, perkName: null, boostCount: null };
2026-08-05 07:35:12 +00:00
obj1[0] = importDefault(11745)(storeRemovalDate);
obj1[1] = importDefault(11745)(storeRemovalDate);
2026-07-20 16:05:17 +00:00
let title1;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
title1 = tmp4.title;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[2] = title1;
2026-07-20 16:05:17 +00:00
let cost1;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
cost1 = tmp4.cost;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[3] = cost1;
2026-08-05 07:35:12 +00:00
obj[2] = intl2.formatToPlainString(importDefault(2287).jd8fki, obj1);
2026-07-20 16:05:17 +00:00
tmp5 = obj;
}
}
}
}
return tmp5;
};