// Module ID: 11715 // Function ID: 11716 // Name: useGuildPowerupRollbackNotificationConfig // Dependencies: [4265, 589, 4269, 11716, 1377, 1236, 2368, 11718, 2] // Exports: default // Module 11715 (useGuildPowerupRollbackNotificationConfig) import messagesProxyDefault from "messagesProxy" /* 2368 */; import getGuildPowerupFormattedDateStringDefault from "getGuildPowerupFormattedDateString" /* 11718 */; import closure_3 from "calculateAppliedBoosts" /* 4265 */; 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, 4269).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(1377).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; };