// Module ID: 12028 // Function ID: 12029 // Name: useGuildPowerupRollbackNotificationConfig // Dependencies: [4334, 589, 4338, 12029, 1373, 1236, 2401, 12031, 2] // Exports: default // Module 12028 (useGuildPowerupRollbackNotificationConfig) import messagesProxyDefault from "messagesProxy" /* 2401 */; import getGuildPowerupFormattedDateStringDefault from "getGuildPowerupFormattedDateString" /* 12031 */; import closure_3 from "calculateAppliedBoosts" /* 4334 */; const require = arg1; const result = require("set").fileFinishedImporting("modules/premium/powerups/hooks/useGuildPowerupRollbackNotificationConfig.tsx"); export default function useGuildPowerupRollbackNotificationConfig(guildId, location) { const _require = guildId; let obj = _require(589); const items = [closure_3]; const stateFromStores = obj.useStateFromStores(items, () => closure_1_3.getStateForGuild(closure_0)); let tmp4; if (stateFromStores != null) { tmp4 = stateFromStores.allPowerups[tmp(undefined, 4338).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID]; } if (tmp4 != null) { const storeRemovalDate = tmp4.storeRemovalDate; } let tmp5 = null; if (tmpResult.useShouldShowFileUploadRollback(guildId, location)) { tmp5 = null; if (null != storeRemovalDate) { let title; if (tmp4 != null) { title = tmp4.title; } tmp5 = null; if (null != title) { let cost; if (tmp4 != null) { cost = tmp4.cost; } tmp5 = null; if (null != cost) { obj = { dismissibleContent: null, title: null, description: null }; obj[0] = tmp(1373).DismissibleContent.FILE_UPLOAD_POWERUP_ROLLBACK_NOTIFICATION; const intl = tmp(1236).intl; obj = { dateString: null }; obj[0] = getGuildPowerupFormattedDateStringDefault(storeRemovalDate); obj[1] = intl.formatToPlainString(messagesProxyDefault["6e2ry1"], obj); const intl2 = tmp(1236).intl; obj1 = { startDate: null, endDate: null, perkName: null, boostCount: null }; obj1[0] = getGuildPowerupFormattedDateStringDefault(storeRemovalDate); obj1[1] = getGuildPowerupFormattedDateStringDefault(storeRemovalDate); let title1; if (tmp4 != null) { title1 = tmp4.title; } obj1[2] = title1; let cost1; if (tmp4 != null) { cost1 = tmp4.cost; } obj1[3] = cost1; obj[2] = intl2.formatToPlainString(messagesProxyDefault.jd8fki, obj1); tmp5 = obj; } } } } return tmp5; };