2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 11585
|
|
|
|
|
// Function ID: 90039
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useGuildPowerupExpiringNotificationsConfig
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [11586, 11587, 1212, 2621, 4022, 2231, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 11585 (useGuildPowerupExpiringNotificationsConfig)
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("getSystemLocale").fileFinishedImporting("modules/premium/powerups/hooks/useGuildPowerupExpiringNotificationsConfig.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useGuildPowerupExpiringNotificationsConfig(arg0) {
|
2026-07-27 11:26:19 +00:00
|
|
|
let arr = importDefault(11586)(arg0);
|
|
|
|
|
const arr2 = importDefault(11587)(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (arr.length > 0 || arr2.length > 0) {
|
|
|
|
|
let stringResult;
|
|
|
|
|
if (arr2.length > 0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
2026-07-25 08:10:48 +00:00
|
|
|
stringResult = intl.string(importDefault(2621)["B3OfL/"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items = [];
|
|
|
|
|
let arraySpreadResult = HermesBuiltin.arraySpread(arr.map((title) => title.title), 0);
|
|
|
|
|
if (null != stringResult) {
|
|
|
|
|
const items1 = [stringResult];
|
|
|
|
|
let items2 = items1;
|
|
|
|
|
} else {
|
|
|
|
|
items2 = [];
|
|
|
|
|
}
|
|
|
|
|
arraySpreadResult = HermesBuiltin.arraySpread(items2, arraySpreadResult);
|
|
|
|
|
const items3 = [];
|
2026-07-23 10:11:24 +00:00
|
|
|
if (arr.some((skuId) => skuId.skuId === outer1_0(outer1_2[4]).VANITY_URL_POWERUP_SKU_ID)) {
|
|
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
2026-07-25 08:10:48 +00:00
|
|
|
arr = items3.push(intl2.string(importDefault(2231).Sfr0Jw));
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (arr2.length > 0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl3 = require(1212) /* getSystemLocale */.intl;
|
2026-07-25 08:10:48 +00:00
|
|
|
arr = items3.push(intl3.string(importDefault(2621).wiungr));
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let obj = { shouldShow: tmp, expiringPowerups: arr, expiringPowerupNames: items, warnings: items3 };
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
|
|
|
|
obj = { shouldShow: false, expiringPowerups: [], expiringPowerupNames: [], warnings: [] };
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
};
|