Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,69 @@
|
||||
/* Metro module 14649; source: modules/premium/powerups/hooks/useCanGuildPowerupBeToggled.tsx; dependencies: [31, 8258, 8259, 566, 14635, 1244, 2256, 2] */
|
||||
function _fun110664(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14846:6, offset: 0x0238202a, size: 159 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 */;
|
||||
const env0_5 = (require(8259) /* metro dependency 8259: GuildPowerupsConstants */).PowerupActiveStatusType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/hooks/useCanGuildPowerupBeToggled.tsx');
|
||||
exports.default = useCanGuildPowerupBeToggled;
|
||||
}
|
||||
|
||||
function useCanGuildPowerupBeToggled(a0, a1, a2) { // fn#110665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14846:256, offset: 0x023820c9, size: 172 bytes, params: 4, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const stateForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildPowerupsStore],
|
||||
_fun110666);
|
||||
return stateForGuild.useMemo(_fun110667, [stateForGuild, a1.skuId, a1.dependencies, a2,
|
||||
(importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(a0, a1).type]);
|
||||
}
|
||||
|
||||
function _fun110667() { // fn#110667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14846:399, offset: 0x02382175, size: 339 bytes, params: 1, frame: 21
|
||||
var r3;
|
||||
var r1;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var value;
|
||||
if (stateForGuild == null) {
|
||||
return {disabled: true, reason: undefined};
|
||||
}
|
||||
const type = env0_4.type;
|
||||
const LEVEL_ACTIVATED = PowerupActiveStatusType.LEVEL_ACTIVATED;
|
||||
if (type === LEVEL_ACTIVATED) {
|
||||
return {disabled: true, reason: undefined};
|
||||
}
|
||||
stateForGuildBinding = stateForGuild;
|
||||
const allPowerups = stateForGuildBinding.allPowerups;
|
||||
const r7 = importDefault ? global.Object.values(stateForGuildBinding.unlockedPowerups).find(_fun110668)?.sku_id : require.dependencies.find(function(a0) {
|
||||
return unlockedPowerups[a0] == null;
|
||||
});
|
||||
const object2 = {disabled: r7 != null};
|
||||
const value7 = undefined;
|
||||
if (r7 != null) {
|
||||
if (allPowerups[r7] != null) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
value = importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */;
|
||||
r3 = importDefault ? value.vCEBiS : value['1B8AZr'];
|
||||
property = allPowerups[r7];
|
||||
value = Reflect.apply(formatToPlainString, intl, [r3, {perk: property == null ? value7 : property.title}]);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value7;
|
||||
}
|
||||
} else {
|
||||
r1 = value7;
|
||||
}
|
||||
object2.reason = r1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun110668({sku}) { // fn#110668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14846:598, offset: 0x023822c8, size: 44 bytes, params: 2, frame: 3
|
||||
const dependent_sku_id = sku?.dependent_sku_id;
|
||||
value = environment.__proto__;
|
||||
return dependent_sku_id === require.skuId;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user