This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,20 +1,23 @@
/* Metro module 14633; source: modules/premium/powerups/native/hooks/useGuildPowerupColorConfig.tsx; dependencies: [697, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun110606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14830:6, offset: 0x0237f3eb, size: 99 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupColorConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupColorConfig.tsx');
exports.default = useGuildPowerupColorConfig;
}
function useGuildPowerupColorConfig(a0) { // fn#110607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14830:204, offset: 0x0237f44e, size: 120 bytes, params: 2, frame: 13
const object2 = {};
if (a0) {
object2.textColor = 'text-default';
object2.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
} else {
object2.textColor = 'text-muted';
object2.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
function useGuildPowerupColorConfig(a0) { // fn#110607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14830:204, offset: 0x0237f44e, size: 120 bytes, params: 2, frame: 13
const object = {};
if (a0) {
object.textColor = 'text-default';
object.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
} else {
object.textColor = 'text-muted';
object.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
}
return object;
}
return object2;
}
global.__d(_fun110606, 14633, [697, 2]) /* metro module 14633, dependencies: [697, 2] */;
@@ -1,36 +1,41 @@
/* Metro module 14658; source: modules/premium/powerups/native/hooks/useGuildPowerupConfigureCallback.tsx; dependencies: [31, 661, 4080, 14638, 8188, 9112, 44, 2] */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as PowerupsModule from '../../../../../external/discord_common/js/shared/shared-constants/Powerups.tsx'; /* Metro dependency 8188 */
import * as OpenGuildPowerupsBottomSheetModule from '../utils/openGuildPowerupsBottomSheet.tsx'; /* Metro dependency 14638 */
function _fun110714(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:6, offset: 0x02383a5c, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.GuildSettingsSections;
const env0_5 = constantsModule.AnalyticsSections;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupConfigureCallback.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupConfigureCallback.tsx');
exports.default = useGuildPowerupConfigureCallback;
}
function useGuildPowerupConfigureCallback(a0, a1) { // fn#110715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:282, offset: 0x02383af5, size: 60 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return ReactModule.useCallback(_fun110716, [a0, a1.skuId]);
function _fun110716() { // fn#110716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:351, offset: 0x02383b31, size: 214 bytes, params: 1, frame: 18
var defaultImport2;
const value = environment.__proto__;
const defaultImport = ActionSheetActionCreators;
const hideActionSheet = defaultImport.hideActionSheet;
const GUILD_POWERUPS_BOTTOM_SHEET_KEY = (OpenGuildPowerupsBottomSheetModule).GUILD_POWERUPS_BOTTOM_SHEET_KEY;
Reflect.apply(hideActionSheet, defaultImport, [GUILD_POWERUPS_BOTTOM_SHEET_KEY]);
const skuId = require.skuId;
const GUILD_POWERUP_ROLE_COLOR_SKU_ID = (PowerupsModule).GUILD_POWERUP_ROLE_COLOR_SKU_ID;
if (skuId !== GUILD_POWERUP_ROLE_COLOR_SKU_ID) {
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported powerup SKU ID: ' + require.skuId);
} else {
defaultImport2 = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport2.open(env0_0, GuildSettingsSections.ROLES, AnalyticsSections.GUILD_POWERUPS_OVERVIEW_CARD);
}
}
function useGuildPowerupConfigureCallback(a0, a1) { // fn#110715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:282, offset: 0x02383af5, size: 60 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_3.useCallback(_fun110716, [a0, a1.skuId]);
}
function _fun110716() { // fn#110716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:351, offset: 0x02383b31, size: 214 bytes, params: 1, frame: 18
var defaultImport2;
const value = environment.__proto__;
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
const hideActionSheet = defaultImport.hideActionSheet;
const GUILD_POWERUPS_BOTTOM_SHEET_KEY = (require(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */).GUILD_POWERUPS_BOTTOM_SHEET_KEY;
Reflect.apply(hideActionSheet, defaultImport, [GUILD_POWERUPS_BOTTOM_SHEET_KEY]);
const skuId = require.skuId;
const GUILD_POWERUP_ROLE_COLOR_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_ROLE_COLOR_SKU_ID;
if (skuId !== GUILD_POWERUP_ROLE_COLOR_SKU_ID) {
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported powerup SKU ID: ' + require.skuId);
} else {
defaultImport2 = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport2.open(env0_0, GuildSettingsSections.ROLES, AnalyticsSections.GUILD_POWERUPS_OVERVIEW_CARD);
}
}
global.__d(_fun110714, 14658, [31, 661, 4080, 14638, 8188, 9112, 44,
2]) /* metro module 14658, dependencies: [31, 661, 4080, 14638, 8188, 9112, 44, 2] */;
@@ -1,113 +1,141 @@
/* Metro module 14650; source: modules/premium/powerups/native/hooks/useGuildPowerupOnActivate.tsx; dependencies: [31, 1867, 7020, 8259, 14651, 566, 14652, 6771, 12300, 8249, 4080, 14638, 6522, 7021, 5080, 7028, 2] */
import GuildStore from '../../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import ModalActionCreators from '../../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import UseAnalyticsLocations from '../../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import GuildBoostSlotStore from '../../../../../stores/billing/GuildBoostSlotStore.tsx'; /* Metro dependency 7020 */
import UseGuildBoostPurchaseHandler from '../../../../guild_boosting/native/hooks/useGuildBoostPurchaseHandler.tsx'; /* Metro dependency 12300 */
import UseGuildPowerupOnToggle from '../../hooks/useGuildPowerupOnToggle.tsx'; /* Metro dependency 14651 */
import UseAvailableBoostCountForPowerup from '../../hooks/useAvailableBoostCountForPowerup.tsx'; /* Metro dependency 14652 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as PremiumModalModule from '../../../../../components_native/premium/PremiumModal.tsx'; /* Metro dependency 7028 */
import * as GuildBoostingUtilsModule from '../../../../../utils/GuildBoostingUtils.tsx'; /* Metro dependency 8249 */
import * as GuildPowerupsConstantsModule from '../../constants/GuildPowerupsConstants.tsx'; /* Metro dependency 8259 */
function _fun110670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:6, offset: 0x023822f4, size: 185 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildBoostSlotStore = importDefault(7020) /* metro dependency 7020: GuildBoostSlotStore */;
const guildPowerupsConstantsModule = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
const env0_6 = guildPowerupsConstantsModule.BoostPurchaseIntent;
const env0_7 = guildPowerupsConstantsModule.GuildPowerupType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnActivate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnActivate.tsx');
exports.default = useGuildPowerupOnActivate;
}
function useGuildPowerupOnActivate(a0, a1) { // fn#110671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:293, offset: 0x023823ad, size: 281 bytes, params: 3, frame: 23
const env0_0 = a0;
const env0_1 = a1;
const {onToggle, isLoading,
error} = (UseGuildPowerupOnToggle)(a0, a1);
const guild = (FluxModule).useStateFromStores([GuildStore], _fun110672);
const guild2 = guild;
const value3 = (UseAvailableBoostCountForPowerup)(a0, a1);
const analyticsLocations = (UseAnalyticsLocations)().analyticsLocations;
const {shouldUseMobileWebRedirectCheckout,
handleMobileWebRedirectCheckout} = (UseGuildBoostPurchaseHandler)('guild_powerup_activation');
const binding = guild2;
const useCallback = binding.useCallback;
return {onActivate: Reflect.apply(useCallback, binding, [_fun110673, [onToggle, a1, value3, guild,
analyticsLocations, shouldUseMobileWebRedirectCheckout, handleMobileWebRedirectCheckout]]),
isLoading: isLoading, error: error};
function _fun110672() { // fn#110672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:423, offset: 0x01c7958f, size: 27 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_0);
}
function useGuildPowerupOnActivate(a0, a1) { // fn#110671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:293, offset: 0x023823ad, size: 281 bytes, params: 3, frame: 23
const env0_0 = a0;
const env0_1 = a1;
const {onToggle, isLoading,
error} = (importDefault(14651) /* metro dependency 14651: useGuildPowerupOnToggle */)(a0, a1);
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun110672);
const env0_3 = guild;
const value3 = (importDefault(14652) /* metro dependency 14652: useAvailableBoostCountForPowerup */)(a0, a1);
const analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
const {shouldUseMobileWebRedirectCheckout,
handleMobileWebRedirectCheckout} = (importDefault(12300) /* metro dependency 12300: useGuildBoostPurchaseHandler */)('guild_powerup_activation');
const binding = env0_3;
const useCallback = binding.useCallback;
return {onActivate: Reflect.apply(useCallback, binding, [_fun110673, [onToggle, a1, value3, guild,
analyticsLocations, shouldUseMobileWebRedirectCheckout, handleMobileWebRedirectCheckout]]),
isLoading: isLoading, error: error};
}
function _fun110673() { // fn#110673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:635, offset: 0x023824c6, size: 435 bytes, params: 1, frame: 28
var environment;
var r5;
var value2;
var value3;
var moduleValue;
var value4;
var defaultImport;
var moduleValue2;
var object2;
var moduleValue3;
var openTransferModal;
if (guild != null) {
if (require != null) {
if (env0_4 >= require.cost) {
(function() {
onToggle(true);
})();
} else {
value2 = require.cost - env0_4;
value3 = environment.__proto__;
moduleValue = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
value4 = moduleValue.getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
r5 = require.type === GuildPowerupType.LEVEL ? BoostPurchaseIntent.LEVEL : BoostPurchaseIntent.PERK;
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
defaultImport.hideActionSheet((require(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */).GUILD_POWERUPS_BOTTOM_SHEET_KEY);
if (value4.length > 0) {
moduleValue3 = require(6522) /* metro dependency 6522: BoostingActionCreators */;
openTransferModal = moduleValue3.openTransferModal;
object2 = {};
object2.guildBoostSlots = value4.slice(0, value2);
object2.guildId = guild.id;
object2.intent = r5;
object2.onResult = onResult;
Reflect.apply(openTransferModal, moduleValue3, [object2]);
} else if (shouldUseMobileWebRedirectCheckout) {
handleMobileWebRedirectCheckout(analyticsLocations, guild.id);
} else {
moduleValue2 = require(7021) /* metro dependency 7021: GuildBoostPurchasingUtils */;
moduleValue2.launchGuildBoostFlowOrAlert({'page': 'Guild Powerups',
'section': 'Powerup Activation'},
analyticsLocations, _fun110676, _fun110677, _fun110679);
function _fun110673() { // fn#110673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:635, offset: 0x023824c6, size: 435 bytes, params: 1, frame: 28
var environment;
var r5;
var value2;
var value3;
var moduleValue;
var value4;
var defaultImport;
var moduleValue2;
var object;
var moduleValue3;
var openTransferModal;
if (guild != null) {
if (require != null) {
if (env0_4 >= require.cost) {
(function() {
onToggle(true);
})();
} else {
value2 = require.cost - env0_4;
value3 = environment.__proto__;
moduleValue = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
value4 = moduleValue.getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
r5 = require.type === GuildPowerupType.LEVEL ? BoostPurchaseIntent.LEVEL : BoostPurchaseIntent.PERK;
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
defaultImport.hideActionSheet((require(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */).GUILD_POWERUPS_BOTTOM_SHEET_KEY);
if (value4.length > 0) {
moduleValue3 = require(6522) /* metro dependency 6522: BoostingActionCreators */;
openTransferModal = moduleValue3.openTransferModal;
object = {};
object.guildBoostSlots = value4.slice(0, value2);
object.guildId = guild.id;
object.intent = r5;
object.onResult = onResult;
Reflect.apply(openTransferModal, moduleValue3, [object]);
} else if (shouldUseMobileWebRedirectCheckout) {
handleMobileWebRedirectCheckout(analyticsLocations, guild.id);
} else {
moduleValue2 = require(7021) /* metro dependency 7021: GuildBoostPurchasingUtils */;
moduleValue2.launchGuildBoostFlowOrAlert({'page': 'Guild Powerups',
'section': 'Powerup Activation'},
analyticsLocations, _fun110676, _fun110677, _fun110679);
}
}
}
}
function onResult(a0) { // fn#110675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1000, offset: 0x01d4a501, size: 23 bytes, params: 2, frame: 9
if (a0) {
activatePowerup();
}
}
function _fun110676() { // fn#110676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1133, offset: 0x02382679, size: 60 bytes, params: 1, frame: 14
const defaultImport = ModalActionCreators;
const popWithKey = defaultImport.popWithKey;
const PREMIUM_KEY = (PremiumModalModule).PREMIUM_KEY;
return Reflect.apply(popWithKey, defaultImport, [PREMIUM_KEY]);
}
function _fun110677() { // fn#110677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1181, offset: 0x023826b5, size: 164 bytes, params: 1, frame: 19
var environment;
var openTransferModal;
var slice;
var value4;
let value = environment.__proto__.__proto__;
const availableGuildBoostSlots = (GuildBoostingUtilsModule).getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
if (availableGuildBoostSlots.length >= env0_1) {
value = require(6522) /* metro dependency 6522: BoostingActionCreators */;
openTransferModal = value.openTransferModal;
slice = availableGuildBoostSlots.slice;
value4 = environment.__proto__;
Reflect.apply(openTransferModal, value, [{guildBoostSlots: Reflect.apply(slice, availableGuildBoostSlots, [0,
require.cost]), guildId: guild.id, intent: env0_2, onResult: onResult_110678}]);
}
function onResult_110678(a0) { // fn#110678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1348, offset: 0x02382759, size: 23 bytes, params: 2, frame: 9
var value;
if (a0) {
value = environment.__proto__;
activatePowerup();
}
}
}
function _fun110679() { // fn#110679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1379, offset: 0x02382679, size: 60 bytes, params: 1, frame: 14
const defaultImport = ModalActionCreators;
const popWithKey = defaultImport.popWithKey;
const PREMIUM_KEY = (PremiumModalModule).PREMIUM_KEY;
return Reflect.apply(popWithKey, defaultImport, [PREMIUM_KEY]);
}
}
}
}
function _fun110676() { // fn#110676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1133, offset: 0x02382679, size: 60 bytes, params: 1, frame: 14
const defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
const popWithKey = defaultImport.popWithKey;
const PREMIUM_KEY = (require(7028) /* metro dependency 7028: PremiumModal */).PREMIUM_KEY;
return Reflect.apply(popWithKey, defaultImport, [PREMIUM_KEY]);
}
function _fun110677() { // fn#110677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1181, offset: 0x023826b5, size: 164 bytes, params: 1, frame: 19
var environment;
var openTransferModal;
var slice;
var value4;
let value = environment.__proto__.__proto__;
const availableGuildBoostSlots = (require(8249) /* metro dependency 8249: GuildBoostingUtils */).getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
if (availableGuildBoostSlots.length >= env0_1) {
value = require(6522) /* metro dependency 6522: BoostingActionCreators */;
openTransferModal = value.openTransferModal;
slice = availableGuildBoostSlots.slice;
value4 = environment.__proto__;
Reflect.apply(openTransferModal, value, [{guildBoostSlots: Reflect.apply(slice, availableGuildBoostSlots, [0,
require.cost]), guildId: guild.id, intent: env0_2, onResult: onResult_110678}]);
}
}
function onResult_110678(a0) { // fn#110678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1348, offset: 0x02382759, size: 23 bytes, params: 2, frame: 9
var value;
if (a0) {
value = environment.__proto__;
activatePowerup();
}
}
global.__d(_fun110670, 14650, [31, 1867, 7020, 8259, 14651, 566, 14652, 6771, 12300, 8249, 4080, 14638, 6522, 7021,
5080, 7028,
2]) /* metro module 14650, dependencies: [31, 1867, 7020, 8259, 14651, 566, 14652, 6771, 12300, 8249, 4080, 14638, 6522, 7021, 5080, 7028, 2] */;
@@ -1,29 +1,33 @@
/* Metro module 14653; source: modules/premium/powerups/native/hooks/useGuildPowerupOnShowDeactivate.tsx; dependencies: [31, 33, 14654, 1962, 4497, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseAlertStoreNativeModule from '../../../../../design/components/AlertModal/native/useAlertStore.native.tsx'; /* Metro dependency 4497 */
function _fun110693(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:6, offset: 0x02382cb4, size: 157 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = value.lazy(_fun110694);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowDeactivate.tsx');
const env0_4 = ReactModule.lazy(_fun110694);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowDeactivate.tsx');
exports.default = useGuildPowerupOnShowDeactivate;
function _fun110694() { // fn#110694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:130, offset: 0x02382d51, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
}
function useGuildPowerupOnShowDeactivate(a0, a1) { // fn#110695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:275, offset: 0x02382d7e, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_2.useCallback(_fun110696, [a0, a1]);
function _fun110696() { // fn#110696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:343, offset: 0x02382db5, size: 81 bytes, params: 1, frame: 17
const value = environment.__proto__;
UseAlertStoreNativeModule.openAlert('guild-powerups-deactivate-alert',
((Component) => <Component guildId={env0_0} powerup={require} />)(env1_4));
}
}
}
function _fun110694() { // fn#110694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:130, offset: 0x02382d51, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
}
function useGuildPowerupOnShowDeactivate(a0, a1) { // fn#110695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:275, offset: 0x02382d7e, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_2.useCallback(_fun110696, [a0, a1]);
}
function _fun110696() { // fn#110696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:343, offset: 0x02382db5, size: 81 bytes, params: 1, frame: 17
const value = environment.__proto__;
const useAlertStoreNativeModule = require(4497) /* metro dependency 4497: useAlertStoreNative */;
useAlertStoreNativeModule.openAlert('guild-powerups-deactivate-alert',
((Component) => <Component guildId={env0_0} powerup={require} />)(env1_4));
}
global.__d(_fun110693, 14653, [31, 33, 14654, 1962, 4497,
2]) /* metro module 14653, dependencies: [31, 33, 14654, 1962, 4497, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 14637; source: modules/premium/powerups/native/hooks/useGuildPowerupOnShowMore.tsx; dependencies: [31, 14638, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun110621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:6, offset: 0x0237ff1a, size: 117 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowMore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowMore.tsx');
exports.default = useGuildPowerupOnShowMore;
}
function useGuildPowerupOnShowMore(a0, a1) { // fn#110622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:217, offset: 0x0237ff8f, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return ReactModule.useCallback(_fun110623, [a0, a1]);
function _fun110623() { // fn#110623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:279, offset: 0x0237ffc6, size: 66 bytes, params: 1, frame: 13
var value2;
if (require != null) {
value2 = environment.__proto__;
(importDefault(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */)({guildId: env0_0,
powerup: require});
}
}
function useGuildPowerupOnShowMore(a0, a1) { // fn#110622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:217, offset: 0x0237ff8f, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_2.useCallback(_fun110623, [a0, a1]);
}
function _fun110623() { // fn#110623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:279, offset: 0x0237ffc6, size: 66 bytes, params: 1, frame: 13
var value2;
if (require != null) {
value2 = environment.__proto__;
(importDefault(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */)({guildId: env0_0,
powerup: require});
}
}
global.__d(_fun110621, 14637, [31, 14638, 2]) /* metro module 14637, dependencies: [31, 14638, 2] */;
@@ -1,360 +1,377 @@
/* Metro module 14681; source: modules/premium/powerups/native/hooks/useGuildPowerupsCoachmark.tsx; dependencies: [31, 4502, 1867, 8259, 1376, 482, 33, 4501, 697, 566, 4048, 14599, 14598, 14641, 1244, 2256, 14643, 14682, 14640, 8188, 14683, 14684, 14685, 14667, 14686, 8543, 2] */
import GuildStore from '../../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseTheme from '../../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import GuildPowerupsBoostGem from '../GuildPowerupsBoostGem.tsx'; /* Metro dependency 14641 */
import GuildPowerupsImage from '../GuildPowerupsImage.tsx'; /* Metro dependency 14643 */
import GroupAnimatedPng from '../../../../../external/discord_assets/assets/powerups/badge-packs/group-animated.png.js'; /* Metro dependency 14667 */
import Vanity_url_powerup_2xGif from '../../../../../external/discord_assets/assets/premium/powerups/vanity_url_powerup_2x.gif.js'; /* Metro dependency 14684 */
import Guild_tag_badge_packs_wave_two_powerup_2xPng from '../../../../../external/discord_assets/assets/premium/powerups/guild_tag_badge_packs_wave_two_powerup_2x.png.js'; /* Metro dependency 14685 */
import FileUploadStatic2xPng from '../../../../../external/discord_assets/assets/powerups/file-upload-static-2x.png.js'; /* Metro dependency 14686 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as PowerupsModule from '../../../../../external/discord_common/js/shared/shared-constants/Powerups.tsx'; /* Metro dependency 8188 */
import * as GuildPowerupsConstantsModule from '../../constants/GuildPowerupsConstants.tsx'; /* Metro dependency 8259 */
import * as UseCoachmarkNativeModule from '../../../../../design/components/Coachmark/native/useCoachmark.native.tsx'; /* Metro dependency 8543 */
function _fun110802(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:6, offset: 0x023877c7, size: 283 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildPowerupsConstantsModule = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
const env0_6 = guildPowerupsConstantsModule.GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET;
const env0_7 = guildPowerupsConstantsModule.GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET;
const env0_8 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const env0_9 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun110803);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupsCoachmark.tsx');
const env0_11 = (CreateStylesModule).createStyles(_fun110803);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupsCoachmark.tsx');
exports.default = useGuildPowerupsCoachmark;
}
function _fun110803(a0) { // fn#110803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:322, offset: 0x023878e2, size: 164 bytes, params: 2, frame: 17
const object = {height: 120};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.width = 260 - 2 * PX_16;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const LIGHT = ThemeTypes.LIGHT;
return {coachmarkImage: object, coachmarkCover: {resizeMode: 'cover'}, boostGemBackground: {'width': 50,
'height': 50, backgroundColor: a0 !== LIGHT ? '#0000003D' : '#0000001A'}};
}
function useGuildPowerupsCoachmark(a0, a1, a2) { // fn#110804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:661, offset: 0x02387986, size: 235 bytes, params: 4, frame: 23
const env0_0 = a1;
const env0_1 = a2;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun110805, [a1]);
const styles = useStyles((importDefault(4048) /* metro dependency 4048: useTheme */)());
const env0_3 = styles;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const binding = env0_3;
const useMemo = binding.useMemo;
(require(8543) /* metro dependency 8543: useCoachmarkNative */).useCoachmark(a0, Reflect.apply(useMemo, binding,
[_fun110807, [a1, value2, a2, styles, useReducedMotion]]));
}
function _fun110805() { // fn#110805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:741, offset: 0x02387a71, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GuildStore.getGuild(require)?.name;
}
function _fun110807() { // fn#110807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:896, offset: 0x02387a9c, size: 2759 bytes, params: 1, frame: 30
var r6;
var r9;
var powerups;
var value4;
var object7;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object8;
var object13;
var object14;
var object15;
var title;
var length;
var formatToPlainString;
var property;
var object16;
var object17;
var object18;
var object19;
var powerup;
const object20 = {'title': '', 'description': '', 'position': 'bottom', 'visible': false};
let value = '';
object20.onDismiss = function() {
};
if (importDefault != null) {
var closure = function() {
importDefault.markAsDismissed(ContentDismissActionType.TAKE_ACTION);
importDefault(dependencyMap[11])({guildId: require});
};
var closure2 = function() {
importDefault.markAsDismissed(ContentDismissActionType.USER_DISMISS);
};
var type = importDefault.type;
var GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var LEVEL_REACHED = GuildPowerupNotificationPopoutType.LEVEL_REACHED;
if (LEVEL_REACHED === type) {
object19 = {};
copyDataProperties(object19, object20, undefined);
object19['visible'] = true;
object19['renderImgComponent'] = renderImgComponent_110811;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['Zg/m9K'];
powerup = importDefault.powerup;
title = powerup.title;
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
object19['title'] = value;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['1EGXSK'];
powerup = importDefault.powerup;
title = powerup.title;
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
object19['description'] = value;
value = intl.string(t.RzWDqY);
object19['buttonLabel'] = value;
object19['buttonVariant'] = 'primary';
object19['onButtonPress'] = closure;
object19['onDismiss'] = closure2;
return object19;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var PERKS_AVAILABLE = GuildPowerupNotificationPopoutType.PERKS_AVAILABLE;
if (PERKS_AVAILABLE === type) {
object18 = {};
copyDataProperties(object18, object20, undefined);
object18['visible'] = true;
object18['renderImgComponent'] = renderImgComponent_110812;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).QpQBPQ);
object18['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6hn0xF']);
object18['description'] = value;
value = intl.string(t.RzWDqY);
object18['buttonLabel'] = value;
object18['buttonVariant'] = 'primary';
object18['onButtonPress'] = closure;
object18['onDismiss'] = closure2;
return object18;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var PERKS_PURCHASABLE = GuildPowerupNotificationPopoutType.PERKS_PURCHASABLE;
if (PERKS_PURCHASABLE === type) {
powerups = importDefault.powerups;
length = powerups.length;
if (length === 0) {
return object20;
}
length = powerups.length;
if (length >= 3) {
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6Sv+3M'];
object16 = {};
title = powerups[0].title;
object16.perk = title;
title = powerups[1].title;
object16.perk2 = title;
title = powerups[2].title;
object16.perk3 = title;
r9 = Reflect.apply(formatToPlainString, intl, [property, object16]);
} else {
r9 = powerups.length === 2 ? intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).wcQOqC,
{perks: value + powerups[0].title + ' & ' + powerups[1].title}) : intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).ZF8NT6,
{perk: powerups[0].title});
}
object17 = {};
copyDataProperties(object17, object20, undefined);
object17['visible'] = true;
object17['renderImgComponent'] = renderImgComponent_110813;
value = intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).LmpChE,
{guildName: env0_2 ?? value});
object17['title'] = value;
object17['description'] = r9;
value = intl.string(t.RzWDqY);
object17['buttonLabel'] = value;
object17['buttonVariant'] = 'primary';
object17['onButtonPress'] = closure;
object17['onDismiss'] = closure2;
return object17;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var NEW_PERK_AVAILABLE = GuildPowerupNotificationPopoutType.NEW_PERK_AVAILABLE;
if (NEW_PERK_AVAILABLE === type) {
powerups = importDefault.powerups;
value4 = powerups.find(function({skuId}) {
return skuId === require(dependencyMap[19]).GUILD_POWERUP_GUILD_THEME_SKU_ID;
});
if (value4 != null) {
object15 = {};
copyDataProperties(object15, object20, undefined);
object15['visible'] = true;
object15['renderImgComponent'] = renderImgComponent_110815;
object15['title'] = value4.title;
object15['description'] = typeof value4.description !== 'string' ? value : value4.description;
value = intl.string(t.RzWDqY);
object15['buttonLabel'] = value;
object15['buttonVariant'] = 'primary';
object15['onButtonPress'] = closure;
object15['onDismiss'] = closure2;
r6 = object15;
} else if (powerups.find(_fun110816) != null) {
object14 = {};
copyDataProperties(object14, object20, undefined);
object14['visible'] = true;
object14['renderImgComponent'] = renderImgComponent_110817;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).Ygpx4Q);
object14['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).mmNkUA);
object14['description'] = value;
value = intl.string(t.RzWDqY);
object14['buttonLabel'] = value;
object14['buttonVariant'] = 'primary';
object14['onButtonPress'] = closure;
object14['onDismiss'] = closure2;
r6 = object14;
} else if (powerups.find(_fun110818) != null) {
object13 = {};
copyDataProperties(object13, object20, undefined);
object13['visible'] = true;
object13['renderImgComponent'] = renderImgComponent_110819;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
object13['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
object13['description'] = value;
value = intl.string(t.RzWDqY);
object13['buttonLabel'] = value;
object13['buttonVariant'] = 'primary';
object13['onButtonPress'] = closure;
object13['onDismiss'] = closure2;
r6 = object13;
} else if (powerups.find(_fun110820) != null) {
object8 = {};
copyDataProperties(object8, object20, undefined);
object8['visible'] = true;
object8['renderImgComponent'] = renderImgComponent_110821;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
object8['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
object8['description'] = value;
value = intl.string(t.RzWDqY);
object8['buttonLabel'] = value;
object8['buttonVariant'] = 'primary';
object8['onButtonPress'] = closure;
object8['onDismiss'] = closure2;
r6 = object8;
} else if (powerups.find(_fun110822) == null) {
r6 = object20;
} else {
object7 = {};
copyDataProperties(object7, object20, undefined);
object7['visible'] = true;
object7['renderImgComponent'] = renderImgComponent_110823;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).rp0Ff1);
object7['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3L/DZq']);
object7['description'] = value;
value = intl.string(t.RzWDqY);
object7['buttonLabel'] = value;
object7['buttonVariant'] = 'primary';
object7['onButtonPress'] = closure;
object7['onDismiss'] = closure2;
r6 = object7;
}
return r6;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var GAME_SERVER_HOSTING_AVAILABLE = GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_AVAILABLE;
if (GAME_SERVER_HOSTING_AVAILABLE !== type) {
if ((require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_GUILD_ELIGIBLE !== type) {
(require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_ENABLED;
}
}
function _fun110803(a0) { // fn#110803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:322, offset: 0x023878e2, size: 164 bytes, params: 2, frame: 17
const object2 = {height: 120};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.width = 260 - 2 * PX_16;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const LIGHT = ThemeTypes.LIGHT;
return {coachmarkImage: object2, coachmarkCover: {resizeMode: 'cover'}, boostGemBackground: {'width': 50,
'height': 50, backgroundColor: a0 !== LIGHT ? '#0000003D' : '#0000001A'}};
}
return object20;
}
function renderImgComponent_110811() { // fn#110811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:1264, offset: 0x023885cc, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component style={styles.boostGemBackground} gemWidth={30} gemHeight={30} />)(importDefault(14641) /* metro dependency 14641: GuildPowerupsBoostGem */);
}
function useGuildPowerupsCoachmark(a0, a1, a2) { // fn#110804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:661, offset: 0x02387986, size: 235 bytes, params: 4, frame: 23
const env0_0 = a1;
const env0_1 = a2;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun110805, [a1]);
const styles = useStyles((UseTheme)());
const styles2 = styles;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const binding = styles2;
const useMemo = binding.useMemo;
(UseCoachmarkNativeModule).useCoachmark(a0, Reflect.apply(useMemo, binding,
[_fun110807, [a1, value2, a2, styles, useReducedMotion]]));
function _fun110805() { // fn#110805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:741, offset: 0x02387a71, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GuildStore.getGuild(require)?.name;
}
function _fun110807() { // fn#110807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:896, offset: 0x02387a9c, size: 2759 bytes, params: 1, frame: 30
var r6;
var r9;
var powerups;
var value4;
var object;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
var object2;
var object3;
var object4;
var object5;
var title;
var length;
var formatToPlainString;
var property;
var object6;
var object9;
var object10;
var object11;
var powerup;
const object12 = {'title': '', 'description': '', 'position': 'bottom', 'visible': false};
let value = '';
object12.onDismiss = function() {
};
if (importDefault != null) {
var closure = function() {
importDefault.markAsDismissed(ContentDismissActionType.TAKE_ACTION);
importDefault(dependencyMap[11])({guildId: require});
};
var closure2 = function() {
importDefault.markAsDismissed(ContentDismissActionType.USER_DISMISS);
};
var type = importDefault.type;
var GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var LEVEL_REACHED = GuildPowerupNotificationPopoutType.LEVEL_REACHED;
if (LEVEL_REACHED === type) {
object11 = {};
copyDataProperties(object11, object12, undefined);
object11['visible'] = true;
object11['renderImgComponent'] = renderImgComponent_110811;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['Zg/m9K'];
powerup = importDefault.powerup;
title = powerup.title;
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
object11['title'] = value;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['1EGXSK'];
powerup = importDefault.powerup;
title = powerup.title;
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
object11['description'] = value;
value = intl.string(t.RzWDqY);
object11['buttonLabel'] = value;
object11['buttonVariant'] = 'primary';
object11['onButtonPress'] = closure;
object11['onDismiss'] = closure2;
return object11;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var PERKS_AVAILABLE = GuildPowerupNotificationPopoutType.PERKS_AVAILABLE;
if (PERKS_AVAILABLE === type) {
object10 = {};
copyDataProperties(object10, object12, undefined);
object10['visible'] = true;
object10['renderImgComponent'] = renderImgComponent_110812;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).QpQBPQ);
object10['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6hn0xF']);
object10['description'] = value;
value = intl.string(t.RzWDqY);
object10['buttonLabel'] = value;
object10['buttonVariant'] = 'primary';
object10['onButtonPress'] = closure;
object10['onDismiss'] = closure2;
return object10;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var PERKS_PURCHASABLE = GuildPowerupNotificationPopoutType.PERKS_PURCHASABLE;
if (PERKS_PURCHASABLE === type) {
powerups = importDefault.powerups;
length = powerups.length;
if (length === 0) {
return object12;
}
length = powerups.length;
if (length >= 3) {
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6Sv+3M'];
object6 = {};
title = powerups[0].title;
object6.perk = title;
title = powerups[1].title;
object6.perk2 = title;
title = powerups[2].title;
object6.perk3 = title;
r9 = Reflect.apply(formatToPlainString, intl, [property, object6]);
} else {
r9 = powerups.length === 2 ? intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).wcQOqC,
{perks: value + powerups[0].title + ' & ' + powerups[1].title}) : intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).ZF8NT6,
{perk: powerups[0].title});
}
object9 = {};
copyDataProperties(object9, object12, undefined);
object9['visible'] = true;
object9['renderImgComponent'] = renderImgComponent_110813;
value = intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).LmpChE,
{guildName: env0_2 ?? value});
object9['title'] = value;
object9['description'] = r9;
value = intl.string(t.RzWDqY);
object9['buttonLabel'] = value;
object9['buttonVariant'] = 'primary';
object9['onButtonPress'] = closure;
object9['onDismiss'] = closure2;
return object9;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var NEW_PERK_AVAILABLE = GuildPowerupNotificationPopoutType.NEW_PERK_AVAILABLE;
if (NEW_PERK_AVAILABLE === type) {
powerups = importDefault.powerups;
value4 = powerups.find(function({skuId}) {
return skuId === require(dependencyMap[19]).GUILD_POWERUP_GUILD_THEME_SKU_ID;
});
if (value4 != null) {
object5 = {};
copyDataProperties(object5, object12, undefined);
object5['visible'] = true;
object5['renderImgComponent'] = renderImgComponent_110815;
object5['title'] = value4.title;
object5['description'] = typeof value4.description !== 'string' ? value : value4.description;
value = intl.string(t.RzWDqY);
object5['buttonLabel'] = value;
object5['buttonVariant'] = 'primary';
object5['onButtonPress'] = closure;
object5['onDismiss'] = closure2;
r6 = object5;
} else if (powerups.find(_fun110816) != null) {
object4 = {};
copyDataProperties(object4, object12, undefined);
object4['visible'] = true;
object4['renderImgComponent'] = renderImgComponent_110817;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).Ygpx4Q);
object4['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).mmNkUA);
object4['description'] = value;
value = intl.string(t.RzWDqY);
object4['buttonLabel'] = value;
object4['buttonVariant'] = 'primary';
object4['onButtonPress'] = closure;
object4['onDismiss'] = closure2;
r6 = object4;
} else if (powerups.find(_fun110818) != null) {
object3 = {};
copyDataProperties(object3, object12, undefined);
object3['visible'] = true;
object3['renderImgComponent'] = renderImgComponent_110819;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
object3['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
object3['description'] = value;
value = intl.string(t.RzWDqY);
object3['buttonLabel'] = value;
object3['buttonVariant'] = 'primary';
object3['onButtonPress'] = closure;
object3['onDismiss'] = closure2;
r6 = object3;
} else if (powerups.find(_fun110820) != null) {
object2 = {};
copyDataProperties(object2, object12, undefined);
object2['visible'] = true;
object2['renderImgComponent'] = renderImgComponent_110821;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
object2['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
object2['description'] = value;
value = intl.string(t.RzWDqY);
object2['buttonLabel'] = value;
object2['buttonVariant'] = 'primary';
object2['onButtonPress'] = closure;
object2['onDismiss'] = closure2;
r6 = object2;
} else if (powerups.find(_fun110822) == null) {
r6 = object12;
} else {
object = {};
copyDataProperties(object, object12, undefined);
object['visible'] = true;
object['renderImgComponent'] = renderImgComponent_110823;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).rp0Ff1);
object['title'] = value;
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3L/DZq']);
object['description'] = value;
value = intl.string(t.RzWDqY);
object['buttonLabel'] = value;
object['buttonVariant'] = 'primary';
object['onButtonPress'] = closure;
object['onDismiss'] = closure2;
r6 = object;
}
return r6;
}
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
var GAME_SERVER_HOSTING_AVAILABLE = GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_AVAILABLE;
if (GAME_SERVER_HOSTING_AVAILABLE !== type) {
if ((require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_GUILD_ELIGIBLE !== type) {
(require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_ENABLED;
}
}
}
return object12;
function renderImgComponent_110811() { // fn#110811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:1264, offset: 0x023885cc, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component style={styles.boostGemBackground} gemWidth={30} gemHeight={30} />)(GuildPowerupsBoostGem);
}
function renderImgComponent_110812() { // fn#110812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:1754, offset: 0x023885cc, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component style={styles.boostGemBackground} gemWidth={30} gemHeight={30} />)(GuildPowerupsBoostGem);
}
function renderImgComponent_110813() { // fn#110813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:2502, offset: 0x02388612, size: 206 bytes, params: 1, frame: 22
var r6;
var getGuildPowerupBannerImage;
var property;
var value3;
let value = environment.__proto__.__proto__;
let length = powerups.length;
if (length > 1) {
r6 = importDefault(14682) /* metro dependency 14682: level_backgroundPng */;
} else {
value = require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */;
getGuildPowerupBannerImage = value.getGuildPowerupBannerImage;
property = powerups[0];
value3 = environment.__proto__;
value = Reflect.apply(getGuildPowerupBannerImage, value, [property, useReducedMotion, true]);
r6 = value ?? '';
}
length = powerups.length;
value = environment.__proto__;
const stylesBinding = styles;
return (
<GuildPowerupsImage
imageUrl={r6}
isAnimated={length === 1}
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
/>
);
}
function renderImgComponent_110815() { // fn#110815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3124, offset: 0x0238870d, size: 159 bytes, params: 1, frame: 21
const value = environment.__proto__.__proto__;
const r5 = (require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */).getGuildPowerupBannerImage(env0_1,
useReducedMotion, true) ?? (importDefault(14683) /* metro dependency 14683: serverThemePowerupStaticPng */);
const stylesBinding = styles;
return (
<GuildPowerupsImage
imageUrl={r5}
isAnimated={!useReducedMotion}
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
/>
);
}
function _fun110816({skuId}) { // fn#110816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3508, offset: 0x023887ac, size: 45 bytes, params: 2, frame: 12
const VANITY_URL_POWERUP_SKU_ID = (PowerupsModule).VANITY_URL_POWERUP_SKU_ID;
return skuId === VANITY_URL_POWERUP_SKU_ID;
}
function renderImgComponent_110817() { // fn#110817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3594, offset: 0x023887d9, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={Vanity_url_powerup_2xGif} style={styles.coachmarkImage} />)(GuildPowerupsImage);
}
function _fun110818({skuId}) { // fn#110818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3894, offset: 0x02388822, size: 27 bytes, params: 2, frame: 11
return GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET.has(skuId);
}
function renderImgComponent_110819() { // fn#110819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3950, offset: 0x0238883d, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={Guild_tag_badge_packs_wave_two_powerup_2xPng} style={styles.coachmarkImage} />)(GuildPowerupsImage);
}
function _fun110820({skuId}) { // fn#110820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4253, offset: 0x02388886, size: 27 bytes, params: 2, frame: 11
return GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET.has(skuId);
}
function renderImgComponent_110821() { // fn#110821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4309, offset: 0x023888a1, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={GroupAnimatedPng} style={styles.coachmarkImage} />)(GuildPowerupsImage);
}
function _fun110822({skuId}) { // fn#110822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4612, offset: 0x023888ea, size: 45 bytes, params: 2, frame: 12
const GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID = (PowerupsModule).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
return skuId === GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
}
function renderImgComponent_110823() { // fn#110823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4714, offset: 0x02388917, size: 80 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={FileUploadStatic2xPng} isAnimated={false} style={styles.coachmarkImage} />)(GuildPowerupsImage);
}
}
function renderImgComponent_110813() { // fn#110813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:2502, offset: 0x02388612, size: 206 bytes, params: 1, frame: 22
var r6;
var getGuildPowerupBannerImage;
var property;
var value3;
let value = environment.__proto__.__proto__;
const GuildPowerupsImage = importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */;
let length = powerups.length;
if (length > 1) {
r6 = importDefault(14682) /* metro dependency 14682: level_backgroundPng */;
} else {
value = require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */;
getGuildPowerupBannerImage = value.getGuildPowerupBannerImage;
property = powerups[0];
value3 = environment.__proto__;
value = Reflect.apply(getGuildPowerupBannerImage, value, [property, useReducedMotion, true]);
r6 = value ?? '';
}
length = powerups.length;
value = environment.__proto__;
const stylesBinding = styles;
return (
<GuildPowerupsImage
imageUrl={r6}
isAnimated={length === 1}
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
/>
);
}
function renderImgComponent_110815() { // fn#110815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3124, offset: 0x0238870d, size: 159 bytes, params: 1, frame: 21
const value = environment.__proto__.__proto__;
const GuildPowerupsImage = importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */;
const r5 = (require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */).getGuildPowerupBannerImage(env0_1,
useReducedMotion, true) ?? (importDefault(14683) /* metro dependency 14683: serverThemePowerupStaticPng */);
const stylesBinding = styles;
return (
<GuildPowerupsImage
imageUrl={r5}
isAnimated={!useReducedMotion}
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
/>
);
}
function _fun110816({skuId}) { // fn#110816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3508, offset: 0x023887ac, size: 45 bytes, params: 2, frame: 12
const VANITY_URL_POWERUP_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).VANITY_URL_POWERUP_SKU_ID;
return skuId === VANITY_URL_POWERUP_SKU_ID;
}
function renderImgComponent_110817() { // fn#110817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3594, offset: 0x023887d9, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={importDefault(14684) /* metro dependency 14684: vanity_url_powerup_2xGif */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
}
function _fun110818({skuId}) { // fn#110818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3894, offset: 0x02388822, size: 27 bytes, params: 2, frame: 11
return GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET.has(skuId);
}
function renderImgComponent_110819() { // fn#110819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3950, offset: 0x0238883d, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={importDefault(14685) /* metro dependency 14685: guild_tag_badge_packs_wave_two_powerup_2xPng */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
}
function _fun110820({skuId}) { // fn#110820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4253, offset: 0x02388886, size: 27 bytes, params: 2, frame: 11
return GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET.has(skuId);
}
function renderImgComponent_110821() { // fn#110821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4309, offset: 0x023888a1, size: 73 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={importDefault(14667) /* metro dependency 14667: groupAnimatedPng */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
}
function _fun110822({skuId}) { // fn#110822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4612, offset: 0x023888ea, size: 45 bytes, params: 2, frame: 12
const GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
return skuId === GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
}
function renderImgComponent_110823() { // fn#110823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4714, offset: 0x02388917, size: 80 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
return ((Component) => <Component imageUrl={importDefault(14686) /* metro dependency 14686: fileUploadStatic2xPng */} isAnimated={false} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
}
global.__d(_fun110802, 14681, [31, 4502, 1867, 8259, 1376, 482, 33, 4501, 697, 566, 4048, 14599, 14598, 14641, 1244,
2256, 14643, 14682, 14640, 8188, 14683, 14684, 14685, 14667, 14686, 8543,
2]) /* metro module 14681, dependencies: [31, 4502, 1867, 8259, 1376, 482, 33, 4501, 697, 566, 4048, 14599, 14598, 14641, 1244, 2256, 14643, 14682, 14640, 8188, 14683, 14684, 14685, 14667, 14686, 8543, 2] */;
@@ -1,47 +1,53 @@
/* Metro module 14665; source: modules/premium/powerups/native/hooks/usePowerupGroupConfig.tsx; dependencies: [31, 8258, 566, 8188, 1244, 2256, 14666, 14667, 1360, 2] */
import GuildPowerupsStore from '../../GuildPowerupsStore.tsx'; /* Metro dependency 8258 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as GlobalUtilsModule from '../../../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
function _fun110732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:6, offset: 0x02384caf, size: 137 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const guildPowerupsStore = importDefault(8258) /* metro dependency 8258: GuildPowerupsStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/usePowerupGroupConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/hooks/usePowerupGroupConfig.tsx');
exports.default = usePowerupGroupConfig;
}
function usePowerupGroupConfig(a0, a1) { // fn#110733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:223, offset: 0x02384d38, size: 156 bytes, params: 3, frame: 19
const env0_0 = a0;
const env0_1 = a1;
const value2 = undefined;
const value3 = (FluxModule).useStateFromStores([GuildPowerupsStore], _fun110734);
return ReactModule.useMemo(_fun110735, [a1,
(value3 == null ? value2 : value3[(require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_TAG_SKU_ID]) != null]);
function _fun110734() { // fn#110734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:297, offset: 0x02384dd4, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GuildPowerupsStore.getStateForGuild(env0_0)?.unlockedPowerups;
}
function usePowerupGroupConfig(a0, a1) { // fn#110733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:223, offset: 0x02384d38, size: 156 bytes, params: 3, frame: 19
const env0_0 = a0;
const env0_1 = a1;
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildPowerupsStore], _fun110734);
return env0_3.useMemo(_fun110735, [a1,
(value3 == null ? value2 : value3[(require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_TAG_SKU_ID]) != null]);
}
function _fun110735() { // fn#110735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:455, offset: 0x02384e00, size: 308 bytes, params: 1, frame: 20
var object;
var value3;
var value4;
const intl = (IndexNativeModule).intl;
if (require.group === 'guildTagsBadgePacks') {
object = {};
value3 = environment.__proto__;
value4 = undefined;
object.title = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).KC9HRW);
object.description = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).GJiSmP);
object.image = {staticUrl: importDefault(14666) /* metro dependency 14666: groupStaticPng */,
animatedUrl: importDefault(14667) /* metro dependency 14667: groupAnimatedPng */};
object.disabledReason = result ? value4 : intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).lvk1Gc);
object.badge = value4;
object.forceStaticImages = true;
return object;
}
GlobalUtilsModule.assertNever(require.group);
}
function _fun110734() { // fn#110734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:297, offset: 0x02384dd4, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GuildPowerupsStore.getStateForGuild(env0_0)?.unlockedPowerups;
}
function _fun110735() { // fn#110735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:455, offset: 0x02384e00, size: 308 bytes, params: 1, frame: 20
var object2;
var value3;
var value4;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (require.group === 'guildTagsBadgePacks') {
object2 = {};
value3 = environment.__proto__;
value4 = undefined;
object2.title = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).KC9HRW);
object2.description = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).GJiSmP);
object2.image = {staticUrl: importDefault(14666) /* metro dependency 14666: groupStaticPng */,
animatedUrl: importDefault(14667) /* metro dependency 14667: groupAnimatedPng */};
object2.disabledReason = result ? value4 : intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).lvk1Gc);
object2.badge = value4;
object2.forceStaticImages = true;
return object2;
}
const globalUtilsModule = require(1360) /* metro dependency 1360: GlobalUtils */;
globalUtilsModule.assertNever(require.group);
}
global.__d(_fun110732, 14665, [31, 8258, 566, 8188, 1244, 2256, 14666, 14667, 1360,
2]) /* metro module 14665, dependencies: [31, 8258, 566, 8188, 1244, 2256, 14666, 14667, 1360, 2] */;