2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 11541
|
|
|
|
|
// Function ID: 89860
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useGuildPowerupRollbackModalConfig
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [31, 1838, 4018, 566, 11542, 4022, 11527, 11529, 1334, 1212, 2231, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 11541 (useGuildPowerupRollbackModalConfig)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/premium/powerups/hooks/useGuildPowerupRollbackModalConfig.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useGuildPowerupRollbackModalConfig(guildId, location) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = guildId;
|
|
|
|
|
let obj = _require(storeRemovalDate[3]);
|
|
|
|
|
let items = [_createForOfIteratorHelperLoose];
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => outer1_4.getGuild(closure_0));
|
|
|
|
|
const tmp2 = importDefault(storeRemovalDate[4])(guildId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let shouldShowFileUploadRollback = null != tmp2 && tmp2;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items1 = [_isNativeReflectConstruct];
|
|
|
|
|
const stateFromStores1 = _require(storeRemovalDate[3]).useStateFromStores(items1, () => outer1_5.getStateForGuild(closure_0));
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp5;
|
|
|
|
|
if (null != stateFromStores1) {
|
|
|
|
|
const allPowerups = stateFromStores1.allPowerups;
|
|
|
|
|
if (null != allPowerups) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp5 = allPowerups[_require(undefined, storeRemovalDate[5]).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID];
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
importDefault = tmp5;
|
|
|
|
|
storeRemovalDate = undefined;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != tmp5) {
|
|
|
|
|
storeRemovalDate = tmp5.storeRemovalDate;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = _require(storeRemovalDate[3]);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (shouldShowFileUploadRollback) {
|
|
|
|
|
shouldShowFileUploadRollback = obj3.useShouldShowFileUploadRollback(guildId, location);
|
|
|
|
|
}
|
|
|
|
|
if (shouldShowFileUploadRollback) {
|
|
|
|
|
shouldShowFileUploadRollback = null != stateFromStores;
|
|
|
|
|
}
|
|
|
|
|
const items2 = [shouldShowFileUploadRollback, tmp5, storeRemovalDate];
|
|
|
|
|
obj = {
|
|
|
|
|
shouldShow: shouldShowFileUploadRollback,
|
2026-07-23 10:11:24 +00:00
|
|
|
modalConfig: shouldShowFileUploadRollback.useMemo(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (shouldShowFileUploadRollback) {
|
|
|
|
|
if (null != tmp5) {
|
|
|
|
|
if (null != storeRemovalDate) {
|
|
|
|
|
const tmp7 = storeRemovalDate(storeRemovalDate[7])(storeRemovalDate);
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { dismissibleContent: guildId(storeRemovalDate[8]).DismissibleContent.FILE_UPLOAD_POWERUP_ROLLBACK_MODAL };
|
|
|
|
|
const intl = guildId(storeRemovalDate[9]).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { dateString: tmp7 };
|
|
|
|
|
const _HermesInternal = HermesInternal;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.header = "" + storeRemovalDate.title + " " + intl.formatToPlainString(storeRemovalDate(storeRemovalDate[10])["6e2ry1"], obj);
|
|
|
|
|
const intl2 = guildId(storeRemovalDate[9]).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { startDate: tmp7, endDate: tmp7, perkName: storeRemovalDate.title, boostCount: storeRemovalDate.cost };
|
|
|
|
|
const items = [intl2.formatToPlainString(storeRemovalDate(storeRemovalDate[10]).jd8fki, obj)];
|
|
|
|
|
obj.bodies = items;
|
|
|
|
|
obj.hasCancelButton = false;
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}, items2)
|
|
|
|
|
};
|
|
|
|
|
return obj;
|
|
|
|
|
};
|