Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,52 @@
|
||||
/* Metro module 14651; source: modules/premium/powerups/hooks/useGuildPowerupOnToggle.tsx; dependencies: [57, 31, 12307, 2] */
|
||||
function _fun110680(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14848:6, offset: 0x02382770, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/hooks/useGuildPowerupOnToggle.tsx');
|
||||
exports.default = useGuildPowerupOnToggle;
|
||||
}
|
||||
|
||||
function useGuildPowerupOnToggle(a0, a1) { // fn#110681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14848:221, offset: 0x023827f5, size: 143 bytes, params: 3, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const binding = env0_3;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_2;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
var env0_2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [undefined]), 2);
|
||||
const property2 = value[0];
|
||||
var env0_3 = value[1];
|
||||
const object2 = {isLoading: property, error: property2};
|
||||
object2.onToggle = binding.useCallback(_fun110682, [a0, a1]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun110682(a0) { // fn#110682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14848:398, offset: 0x02382884, size: 159 bytes, params: 2, frame: 15
|
||||
if (require == null) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const guildPowerupsActionCreatorsModule = require(12307) /* metro dependency 12307: GuildPowerupsActionCreators */;
|
||||
const r3 = a0 ? guildPowerupsActionCreatorsModule.enablePowerupForGuild : guildPowerupsActionCreatorsModule.disablePowerupForGuild;
|
||||
env0_2(true);
|
||||
env0_3(undefined);
|
||||
let value = r3(env0_0, require.skuId);
|
||||
value = value.catch(_fun110683);
|
||||
return value.finally(_fun110684);
|
||||
}
|
||||
|
||||
function _fun110683(a0) { // fn#110683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14848:550, offset: 0x02382923, size: 52 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_3;
|
||||
const body = a0.body;
|
||||
value = undefined;
|
||||
binding((body == null ? value : body.message) ?? value);
|
||||
throw a0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user