1817 lines
70 KiB
TypeScript
1817 lines
70 KiB
TypeScript
/* Metro module 13675; source: modules/guild_role_subscriptions/GuildRoleSubscriptionsHooks.tsx; dependencies: [5, 57, 31, 4257, 3778, 566, 6845, 6619, 13676, 13677, 11738, 1360, 2] */
|
|
function _fun104400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6, offset: 0x02295471, size: 511 bytes, params: 8, frame: 20
|
|
let env0_0 = require;
|
|
const _arrayLikeToArray_104403 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_6 = importAll(31) /* metro dependency 31 */;
|
|
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
|
|
const guildRoleSubscriptionsStore = importDefault(3778) /* metro dependency 3778: GuildRoleSubscriptionsStore */;
|
|
const env0_9 = (require(3778) /* metro dependency 3778: GuildRoleSubscriptionsStore */).FetchState;
|
|
const env0_10 = [];
|
|
const closure = useFetchListingsForGuild;
|
|
const closure2 = useSubscriptionListingsForGroup;
|
|
const closure3 = useSubscriptionListingsForGuild;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_role_subscriptions/GuildRoleSubscriptionsHooks.tsx');
|
|
exports.useFetchListingsForGuild = closure;
|
|
exports.useCreateSubscriptionGroupListing = useCreateSubscriptionGroupListing;
|
|
exports.useUpdateSubscriptionGroupListing = useUpdateSubscriptionGroupListing;
|
|
exports.useSubscriptionListingsForGroup = closure2;
|
|
exports.useSubscriptionListing = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[5]).useStateFromStores([GuildRoleSubscriptionsStore], _fun104425);
|
|
};
|
|
exports.useSubscriptionGroupListing = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[5]).useStateFromStores([GuildRoleSubscriptionsStore], _fun104427);
|
|
};
|
|
exports.useGroupListingsForGuild = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = require(dependencyMap[8]).useGroupListingsFetchContext('useGroupListingsForGuild');
|
|
return require(dependencyMap[5]).useStateFromStores([GuildRoleSubscriptionsStore], _fun104429);
|
|
};
|
|
exports.useSubscriptionListingsForGuild = closure3;
|
|
exports.useFetchListingsForSubscriptions = useFetchListingsForSubscriptions;
|
|
exports.useDeleteSubscriptionListing = useDeleteSubscriptionListing;
|
|
exports.useArchiveSubscriptionListing = useArchiveSubscriptionListing;
|
|
exports.usePublishSubscriptionListing = usePublishSubscriptionListing;
|
|
exports.useSubscriptionsSettings = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[5]).useStateFromStores([GuildRoleSubscriptionsStore], _fun104451);
|
|
};
|
|
exports.useUpdateSubscriptionsSettings = useUpdateSubscriptionsSettings;
|
|
exports.useDeleteSubscriptionGroupListing = useDeleteSubscriptionGroupListing;
|
|
exports.useFetchSubscriptionsSettings = useFetchSubscriptionsSettings;
|
|
exports.useUpdateSubscriptionsTrial = useUpdateSubscriptionsTrial;
|
|
exports.useSubscriptionTrial = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[5]).useStateFromStores([GuildRoleSubscriptionsStore], _fun104473);
|
|
};
|
|
exports.useSubscriptionTrialsForGroup = function(a0) {
|
|
var value2 = useSubscriptionListingsForGroup(a0);
|
|
var env0_0 = value2;
|
|
return require(dependencyMap[5]).useStateFromStoresArray([GuildRoleSubscriptionsStore], _fun104475, [value2]);
|
|
};
|
|
exports.useSubscriptionTrialsForGuild = function(a0) {
|
|
var value2 = useSubscriptionListingsForGuild(a0);
|
|
var env0_0 = value2;
|
|
return require(dependencyMap[5]).useStateFromStoresArray([GuildRoleSubscriptionsStore], _fun104478, [value2]);
|
|
};
|
|
}
|
|
|
|
function _createForOfIteratorHelperLoose_104401(a0, a1) { // fn#104401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:173, offset: 0x02295670, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun104402;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_104403(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_104403(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_104403(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun104402;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
}
|
|
|
|
function useFetchListingsForGuild(a0) { // fn#104404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:1117, offset: 0x022957e4, size: 293 bytes, params: 2, frame: 24
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const r1 = value !== undefined ? value : {};
|
|
let refetchOnMount = r1.refetchOnMount;
|
|
refetchOnMount = !(refetchOnMount === undefined) && refetchOnMount;
|
|
let includeSoftDeleted = r1.includeSoftDeleted;
|
|
includeSoftDeleted = includeSoftDeleted === undefined || includeSoftDeleted;
|
|
const countryCode = r1.countryCode;
|
|
const dontFetchWhileTrue = r1.dontFetchWhileTrue;
|
|
const env0_6 = undefined;
|
|
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GatewayConnectionStore],
|
|
function() {
|
|
return GatewayConnectionStore.isConnected();
|
|
});
|
|
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore],
|
|
_fun104406);
|
|
const binding = env0_6;
|
|
const value4 = binding.useRef(refetchOnMount);
|
|
binding.useEffect(_fun104407, [value2, a0, includeSoftDeleted, refetchOnMount, countryCode, dontFetchWhileTrue]);
|
|
const value5 = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value4);
|
|
const FETCHED = FetchState.FETCHED;
|
|
return {listingsLoaded: value3 === FETCHED && value5 !== true};
|
|
}
|
|
|
|
function useSubscriptionListingsForGroup(a0) { // fn#104408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:1734, offset: 0x022959d9, size: 125 bytes, params: 2, frame: 19
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const r1 = value !== undefined ? value : {};
|
|
let includeSoftDeleted = r1.includeSoftDeleted;
|
|
includeSoftDeleted = !(includeSoftDeleted === undefined) && includeSoftDeleted;
|
|
let includeUnpublished = r1.includeUnpublished;
|
|
includeUnpublished = includeUnpublished === undefined || includeUnpublished;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildRoleSubscriptionsStore],
|
|
_fun104409, [a0, includeSoftDeleted, includeUnpublished]);
|
|
}
|
|
|
|
function useSubscriptionListingsForGuild(a0) { // fn#104410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:2163, offset: 0x02295b03, size: 101 bytes, params: 2, frame: 15
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const env0_1 = value !== undefined ? value : {'includeSoftDeleted': false, 'sortDeletedListingsLast': false};
|
|
useFetchListingsForGuild(a0);
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildRoleSubscriptionsStore],
|
|
_fun104411);
|
|
}
|
|
|
|
function useCreateSubscriptionGroupListing() { // fn#104414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:2927, offset: 0x02295cac, size: 112 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
return {loading: property, createSubscriptionGroupListing: _fun104415(), error: property2};
|
|
}
|
|
|
|
function useUpdateSubscriptionGroupListing() { // fn#104419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3313, offset: 0x02295dea, size: 127 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
const useCallback = binding.useCallback;
|
|
value = _fun104420();
|
|
value = Reflect.apply(useCallback, binding, [value, []]);
|
|
return {loading: property, updateSubscriptionGroupListing: value, error: property2};
|
|
}
|
|
|
|
function useSubscriptionListing(a0) { // fn#104424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3777, offset: 0x02295f3b, size: 66 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore], _fun104425);
|
|
}
|
|
|
|
function useSubscriptionGroupListing(a0) { // fn#104426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3891, offset: 0x02295fa5, size: 66 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore], _fun104427);
|
|
}
|
|
|
|
function useGroupListingsForGuild(a0) { // fn#104428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4007, offset: 0x0229600f, size: 97 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = (require(13676) /* metro dependency 13676: GroupListingsFetchContext */).useGroupListingsFetchContext('useGroupListingsForGuild');
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore], _fun104429);
|
|
}
|
|
|
|
function useFetchListingsForSubscriptions(a0) { // fn#104430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4288, offset: 0x022960a5, size: 197 bytes, params: 2, frame: 19
|
|
const env0_0 = a0;
|
|
const binding = env0_6;
|
|
const [property, env0_2] = env0_5(binding.useState(false), 2);
|
|
binding.useEffect(_fun104434, [property,
|
|
(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildRoleSubscriptionsStore],
|
|
_fun104432, [binding.useMemo(_fun104431, [a0])])]);
|
|
return {loading: property};
|
|
}
|
|
|
|
function useDeleteSubscriptionListing() { // fn#104438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4720, offset: 0x0229627a, size: 112 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
return {error: property2, submitting: property, deleteSubscriptionListing: _fun104439()};
|
|
}
|
|
|
|
function useArchiveSubscriptionListing() { // fn#104443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5102, offset: 0x022963c6, size: 107 bytes, params: 1, frame: 15
|
|
const value = env0_5((importDefault(11738) /* metro dependency 11738: useRequest */)((importAll(6845) /* metro dependency 6845: GuildRoleSubscriptionsActionCreators */).archiveSubscriptionListing),
|
|
2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
return {error: property2.error, submitting: property2.loading, archiveSubscriptionListing: property};
|
|
}
|
|
|
|
function usePublishSubscriptionListing() { // fn#104444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5292, offset: 0x02296431, size: 124 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
return {error: property2, submitting: property, publishSubscriptionListing: _fun104445(), clearError: clearError};
|
|
}
|
|
|
|
function useSubscriptionsSettings(a0) { // fn#104450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5783, offset: 0x022965c2, size: 66 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore], _fun104451);
|
|
}
|
|
|
|
function useUpdateSubscriptionsSettings() { // fn#104452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5903, offset: 0x0229662e, size: 127 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
const useCallback = binding.useCallback;
|
|
value = _fun104453();
|
|
value = Reflect.apply(useCallback, binding, [value, []]);
|
|
return {loading: property, updateSubscriptionsSettings: value, error: property2};
|
|
}
|
|
|
|
function useDeleteSubscriptionGroupListing() { // fn#104457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6294, offset: 0x0229676f, size: 112 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
return {error: property2, submitting: property, deleteSubscriptionGroupListing: _fun104458()};
|
|
}
|
|
|
|
function useFetchSubscriptionsSettings() { // fn#104462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6679, offset: 0x022968b7, size: 127 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
const useCallback = binding.useCallback;
|
|
value = _fun104463();
|
|
value = Reflect.apply(useCallback, binding, [value, []]);
|
|
return {loading: property, fetchSubscriptionsSettings: value, error: property2};
|
|
}
|
|
|
|
function useUpdateSubscriptionsTrial() { // fn#104467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7058, offset: 0x022969f4, size: 127 bytes, params: 1, frame: 19
|
|
const binding = env0_6;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [false]);
|
|
const binding2 = env0_5;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_0 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
|
const property2 = value[0];
|
|
const env0_1 = value[1];
|
|
const useCallback = binding.useCallback;
|
|
value = _fun104468();
|
|
value = Reflect.apply(useCallback, binding, [value, []]);
|
|
return {loading: property, updateSubscriptionTrial: value, error: property2};
|
|
}
|
|
|
|
function useSubscriptionTrial(a0) { // fn#104472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7432, offset: 0x02296b39, size: 66 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleSubscriptionsStore], _fun104473);
|
|
}
|
|
|
|
function useSubscriptionTrialsForGroup(a0) { // fn#104474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7546, offset: 0x02296ba3, size: 85 bytes, params: 2, frame: 17
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildRoleSubscriptionsStore],
|
|
_fun104475, [useSubscriptionListingsForGroup(a0)]);
|
|
}
|
|
|
|
function useSubscriptionTrialsForGuild(a0) { // fn#104477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7752, offset: 0x02296c59, size: 85 bytes, params: 2, frame: 17
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildRoleSubscriptionsStore],
|
|
_fun104478, [useSubscriptionListingsForGuild(a0)]);
|
|
}
|
|
|
|
function _fun104406() { // fn#104406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:1303, offset: 0x02295909, size: 52 bytes, params: 1, frame: 12
|
|
return env0_0 != null ? GuildRoleSubscriptionsStore.getSubscriptionGroupListingsForGuildFetchState(env0_0) : FetchState.FETCHED;
|
|
}
|
|
|
|
function _fun104407() { // fn#104407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:1406, offset: 0x0229593d, size: 156 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var moduleValue;
|
|
if (env0_0 != null) {
|
|
if (env0_5) {
|
|
if (dontFetchWhileTrue !== true) {
|
|
value2 = environment.__proto__;
|
|
if (refetchOnMount || GuildRoleSubscriptionsStore.getSubscriptionGroupListingsForGuildFetchState(env0_0) === FetchState.NOT_FETCHED) {
|
|
env0_6.current = false;
|
|
moduleValue = importAll(6845) /* metro dependency 6845: GuildRoleSubscriptionsActionCreators */;
|
|
moduleValue.fetchAllSubscriptionListingsDataForGuild(env0_0,
|
|
{includeSoftDeleted: includeSoftDeleted,
|
|
countryCode: countryCode});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun104409() { // fn#104409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:1830, offset: 0x02295a56, size: 173 bytes, params: 1, frame: 18
|
|
var r2;
|
|
var r1;
|
|
var value6;
|
|
var subscriptionListing;
|
|
var soft_deleted;
|
|
var value8;
|
|
var published;
|
|
var value9;
|
|
if (env0_0 == null) {
|
|
return [];
|
|
}
|
|
const subscriptionGroupListing = GuildRoleSubscriptionsStore.getSubscriptionGroupListing(env0_0);
|
|
if (subscriptionGroupListing == null) {
|
|
return [];
|
|
}
|
|
const items2 = [];
|
|
const value4 = _createForOfIteratorHelperLoose_104401(subscriptionGroupListing.subscription_listings_ids);
|
|
const value5 = value4();
|
|
let done = value5.done;
|
|
if (!done) {
|
|
r2 = value5;
|
|
while (true) {
|
|
value6 = r2.value;
|
|
subscriptionListing = GuildRoleSubscriptionsStore.getSubscriptionListing(value6);
|
|
if (subscriptionListing != null) {
|
|
soft_deleted = subscriptionListing.soft_deleted;
|
|
if (!soft_deleted) {
|
|
r1 = soft_deleted;
|
|
continue;
|
|
}
|
|
value8 = !includeSoftDeleted;
|
|
r1 = value8;
|
|
if (r1) {
|
|
break;
|
|
}
|
|
published = subscriptionListing.published;
|
|
if (published) {
|
|
r1 = published;
|
|
continue;
|
|
}
|
|
r1 = includeUnpublished;
|
|
if (r1) {
|
|
items2.push(subscriptionListing);
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
value9 = value4();
|
|
done = value9.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r2 = value9;
|
|
continue;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function _fun104411() { // fn#104411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:2288, offset: 0x02295b68, size: 299 bytes, params: 1, frame: 25
|
|
var environment;
|
|
var r0;
|
|
var r4;
|
|
var r10;
|
|
var r13;
|
|
var value6;
|
|
var subscription_listings_ids;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var subscriptionListing;
|
|
var value11;
|
|
var includeSoftDeleted;
|
|
var value12;
|
|
var soft_deleted;
|
|
var value13;
|
|
var value14;
|
|
var items2;
|
|
const items3 = [];
|
|
let value = environment.__proto__;
|
|
const value4 = _createForOfIteratorHelperLoose_104401(env0_0 != null ? GuildRoleSubscriptionsStore.getSubscriptionGroupListingsForGuild(env0_0) : env1_10);
|
|
const value5 = value4();
|
|
let done = value5.done;
|
|
if (!done) {
|
|
r4 = value5;
|
|
while (true) {
|
|
_createForOfIteratorHelperLoose_104401Binding = _createForOfIteratorHelperLoose_104401;
|
|
value6 = r4.value;
|
|
subscription_listings_ids = value6.subscription_listings_ids;
|
|
value7 = _createForOfIteratorHelperLoose_104401Binding(subscription_listings_ids);
|
|
value8 = value7();
|
|
done = value8.done;
|
|
if (!done) {
|
|
r10 = value8;
|
|
while (true) {
|
|
value9 = r10.value;
|
|
subscriptionListing = GuildRoleSubscriptionsStore.getSubscriptionListing(value9);
|
|
value11 = subscriptionListing == null;
|
|
if (value11) {
|
|
r0 = value11;
|
|
} else {
|
|
includeSoftDeleted = env0_1.includeSoftDeleted;
|
|
value12 = !includeSoftDeleted;
|
|
if (includeSoftDeleted) {
|
|
r13 = value12;
|
|
continue;
|
|
}
|
|
soft_deleted = subscriptionListing.soft_deleted;
|
|
r13 = soft_deleted;
|
|
r0 = r13;
|
|
}
|
|
if (r0) {
|
|
continue;
|
|
}
|
|
items3.push(subscriptionListing);
|
|
value13 = value7();
|
|
done = value13.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r10 = value13;
|
|
continue;
|
|
}
|
|
}
|
|
value14 = value4();
|
|
done = value14.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
r4 = value14;
|
|
continue;
|
|
}
|
|
}
|
|
if (env0_1.includeSoftDeleted) {
|
|
if (env0_1.sortDeletedListingsLast) {
|
|
value = items3.filter(function(a0) {
|
|
return !a0.soft_deleted;
|
|
});
|
|
items2 = [];
|
|
value = arraySpread(items2, value, 0, undefined);
|
|
arraySpread(items2, items3.filter(_fun104413), value, undefined);
|
|
r0 = items2;
|
|
} else {
|
|
r0 = items3;
|
|
}
|
|
} else {
|
|
r0 = items3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun104415() { // fn#104415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3020, offset: 0x02295d1c, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104417);
|
|
return _fun104418;
|
|
}
|
|
|
|
function _fun104420() { // fn#104420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3420, offset: 0x02295e69, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104422);
|
|
return _fun104423;
|
|
}
|
|
|
|
function _fun104425() { // fn#104425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3813, offset: 0x02295f7d, size: 40 bytes, params: 1, frame: 12
|
|
const value2 = null;
|
|
return value2 != env0_0 ? GuildRoleSubscriptionsStore.getSubscriptionListing(env0_0) : value2;
|
|
}
|
|
|
|
function _fun104427() { // fn#104427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3927, offset: 0x02295fe7, size: 40 bytes, params: 1, frame: 12
|
|
const value2 = null;
|
|
return value2 != env0_0 ? GuildRoleSubscriptionsStore.getSubscriptionGroupListing(env0_0) : value2;
|
|
}
|
|
|
|
function _fun104429() { // fn#104429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4123, offset: 0x02296070, size: 53 bytes, params: 1, frame: 12
|
|
return env0_0 == null ? env1_10 : env0_1 ? GuildRoleSubscriptionsStore.getSubscriptionGroupListingsForGuild(env0_0) : env1_10;
|
|
}
|
|
|
|
function _fun104431() { // fn#104431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4349, offset: 0x0229616a, size: 50 bytes, params: 1, frame: 13
|
|
const binding = env0_0;
|
|
const map = binding.map;
|
|
const getRoleSubscriptionPlanId = (require(13677) /* metro dependency 13677: subscriptionUtils */).getRoleSubscriptionPlanId;
|
|
return Reflect.apply(map, binding, [getRoleSubscriptionPlanId]);
|
|
}
|
|
|
|
function _fun104432() { // fn#104432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4441, offset: 0x0229619c, size: 28 bytes, params: 1, frame: 11
|
|
return env0_3.filter(function(a0) {
|
|
return !GuildRoleSubscriptionsStore.getDidFetchListingForSubscriptionPlanId(a0);
|
|
});
|
|
}
|
|
|
|
function _fun104434() { // fn#104434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4532, offset: 0x022961d4, size: 125 bytes, params: 1, frame: 14
|
|
var Promise;
|
|
var all;
|
|
var value;
|
|
let binding = env0_1;
|
|
if (!binding && env0_4.length > 0) {
|
|
env0_2(true);
|
|
Promise = global.Promise;
|
|
all = Promise.all;
|
|
binding = env0_4;
|
|
value = Reflect.apply(all, Promise, [binding.map(_fun104435)]);
|
|
value = value.catch(function() {
|
|
});
|
|
value.then(_fun104437);
|
|
}
|
|
}
|
|
|
|
function _fun104439() { // fn#104439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4813, offset: 0x022962ea, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104441);
|
|
return _fun104442;
|
|
}
|
|
|
|
function _fun104445() { // fn#104445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5385, offset: 0x022964ad, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104447);
|
|
return _fun104448;
|
|
}
|
|
|
|
function _fun104451() { // fn#104451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5819, offset: 0x02296604, size: 42 bytes, params: 1, frame: 12
|
|
return env0_0 != null ? GuildRoleSubscriptionsStore.getSubscriptionSettings(env0_0) : undefined;
|
|
}
|
|
|
|
function _fun104453() { // fn#104453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6010, offset: 0x022966ad, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104455);
|
|
return _fun104456;
|
|
}
|
|
|
|
function _fun104458() { // fn#104458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6387, offset: 0x022967df, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104460);
|
|
return _fun104461;
|
|
}
|
|
|
|
function _fun104463() { // fn#104463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6786, offset: 0x02296936, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104465);
|
|
return _fun104466;
|
|
}
|
|
|
|
function _fun104468() { // fn#104468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7165, offset: 0x02296a73, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_4(_fun104470);
|
|
return _fun104471;
|
|
}
|
|
|
|
function _fun104473() { // fn#104473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7468, offset: 0x02296b7b, size: 40 bytes, params: 1, frame: 12
|
|
const value2 = null;
|
|
return value2 != env0_0 ? GuildRoleSubscriptionsStore.getSubscriptionTrial(env0_0) : value2;
|
|
}
|
|
|
|
function _fun104475() { // fn#104475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7636, offset: 0x02296bf8, size: 69 bytes, params: 1, frame: 13
|
|
const value = env0_0.map(function(a0) {
|
|
return GuildRoleSubscriptionsStore.getSubscriptionTrial(a0.id);
|
|
});
|
|
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
|
}
|
|
|
|
function _fun104478() { // fn#104478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7842, offset: 0x02296cae, size: 69 bytes, params: 1, frame: 13
|
|
const value = env0_0.map(function(a0) {
|
|
return GuildRoleSubscriptionsStore.getSubscriptionTrial(a0.id);
|
|
});
|
|
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
|
}
|
|
|
|
function _fun104413(a0) { // fn#104413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:2710, offset: 0x02295ca1, size: 11 bytes, params: 2, frame: 1
|
|
return a0.soft_deleted;
|
|
}
|
|
|
|
function* _fun104417(a0, a1) { // fn#104417, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3040, offset: 0x02295d4b, size: 159 bytes, params: 3, frame: 17
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var createSubscriptionGroupListing;
|
|
var subscriptionGroupListing;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
exceptionSkip19: while (true) {
|
|
exceptionLanding19: while (true) {
|
|
exceptionSkip15: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
require(true);
|
|
importDefault(null);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
createSubscriptionGroupListing = value4.createSubscriptionGroupListing;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
subscriptionGroupListing = Reflect.apply(createSubscriptionGroupListing, value4, [a0, a1]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
yield subscriptionGroupListing;
|
|
try {
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
if (value6) {
|
|
require(false);
|
|
return value5;
|
|
}
|
|
require(false);
|
|
return value5;
|
|
break exceptionSkip15;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
break exceptionSkip15;
|
|
}
|
|
break exceptionSkip19;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
break exceptionSkip19;
|
|
}
|
|
}
|
|
|
|
function* _fun104422(a0, a1, a2) { // fn#104422, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:3440, offset: 0x02295e98, size: 163 bytes, params: 4, frame: 19
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var updateSubscriptionGroupListing;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
exceptionSkip19: while (true) {
|
|
exceptionLanding19: while (true) {
|
|
exceptionSkip15: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
require(true);
|
|
importDefault(null);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
updateSubscriptionGroupListing = value4.updateSubscriptionGroupListing;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(updateSubscriptionGroupListing, value4, [a0, a1, a2]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
if (value7) {
|
|
require(false);
|
|
return value6;
|
|
}
|
|
require(false);
|
|
return value6;
|
|
break exceptionSkip15;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
break exceptionSkip15;
|
|
}
|
|
break exceptionSkip19;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
break exceptionSkip19;
|
|
}
|
|
}
|
|
|
|
function _fun104435(a0) { // fn#104435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4579, offset: 0x02296251, size: 41 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
return (importAll(6845) /* metro dependency 6845: GuildRoleSubscriptionsActionCreators */).fetchSubscriptionListingForPlan(a0);
|
|
}
|
|
|
|
function* _fun104441(a0, a1, a2) { // fn#104441, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:4833, offset: 0x02296319, size: 173 bytes, params: 4, frame: 20
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var deleteSubscriptionListing;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
exceptionSkip28: while (true) {
|
|
exceptionLanding28: while (true) {
|
|
exceptionSkip22: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
require(true);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
importDefault(null);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
deleteSubscriptionListing = value4.deleteSubscriptionListing;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(deleteSubscriptionListing, value4, [a0, a1, a2]);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
if (value7) {
|
|
require(false);
|
|
return value6;
|
|
}
|
|
require(false);
|
|
return true;
|
|
break exceptionSkip22;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
break exceptionSkip22;
|
|
}
|
|
break exceptionSkip28;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
break exceptionSkip28;
|
|
}
|
|
}
|
|
|
|
async function _fun104447(a0) { // fn#104447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:5405, offset: 0x022964e5, size: 221 bytes, params: 2, frame: 19
|
|
var value;
|
|
var value2;
|
|
var guildId;
|
|
var groupListingId;
|
|
var listingId;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var updateSubscriptionListing;
|
|
var object3;
|
|
var object4;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var error;
|
|
exceptionSkip35: while (true) {
|
|
exceptionLanding35: while (true) {
|
|
exceptionSkip30: while (true) {
|
|
exceptionLanding30: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
guildId = a0.guildId;
|
|
groupListingId = a0.groupListingId;
|
|
listingId = a0.listingId;
|
|
await undefined;
|
|
value = undefined;
|
|
value3 = false;
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
require(true);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
importDefault(null);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
value4 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
updateSubscriptionListing = value5.updateSubscriptionListing;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object3.guildId = guildId;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object3.groupListingId = groupListingId;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object3.listingId = listingId;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object4.published = true;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
object3.data = object4;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
try {
|
|
value6 = Reflect.apply(updateSubscriptionListing, value5, [object3]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
await value6;
|
|
try {
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
if (value8) {
|
|
require(false);
|
|
return value7;
|
|
}
|
|
require(false);
|
|
return true;
|
|
break exceptionSkip30;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
break exceptionSkip30;
|
|
}
|
|
break exceptionSkip35;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
break exceptionSkip35;
|
|
}
|
|
}
|
|
|
|
function* _fun104455(a0, a1) { // fn#104455, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6030, offset: 0x022966dc, size: 147 bytes, params: 3, frame: 17
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var updateSubscriptionsSettings;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
exceptionLanding19: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
require(true);
|
|
importDefault(null);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort18: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reduciblePort18;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
updateSubscriptionsSettings = value4.updateSubscriptionsSettings;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(updateSubscriptionsSettings, value4, [a0, a1]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
if (value7) {
|
|
require(false);
|
|
return value6;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
}
|
|
|
|
function* _fun104460(a0, a1) { // fn#104460, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6407, offset: 0x0229680e, size: 169 bytes, params: 3, frame: 17
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var deleteSubscriptionGroupListing;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
exceptionSkip28: while (true) {
|
|
exceptionLanding28: while (true) {
|
|
exceptionSkip22: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
require(true);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
importDefault(null);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
deleteSubscriptionGroupListing = value4.deleteSubscriptionGroupListing;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(deleteSubscriptionGroupListing, value4, [a0, a1]);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
if (value7) {
|
|
require(false);
|
|
return value6;
|
|
}
|
|
require(false);
|
|
return value6;
|
|
break exceptionSkip22;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding28;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
break exceptionSkip22;
|
|
}
|
|
break exceptionSkip28;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
break exceptionSkip28;
|
|
}
|
|
}
|
|
|
|
function* _fun104465(a0) { // fn#104465, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:6806, offset: 0x02296965, size: 143 bytes, params: 2, frame: 15
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var fetchSubscriptionsSettings;
|
|
var subscriptionsSettings;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
exceptionLanding19: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
require(true);
|
|
importDefault(null);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort18: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reduciblePort18;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
fetchSubscriptionsSettings = value4.fetchSubscriptionsSettings;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
subscriptionsSettings = Reflect.apply(fetchSubscriptionsSettings, value4, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
yield subscriptionsSettings;
|
|
try {
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
if (value6) {
|
|
require(false);
|
|
return value5;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
}
|
|
|
|
function* _fun104470(a0, a1, a2) { // fn#104470, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13872:7185, offset: 0x02296aa2, size: 151 bytes, params: 4, frame: 19
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var updateSubscriptionTrial;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
exceptionLanding19: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
require(true);
|
|
importDefault(null);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort18: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
try {
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
importDefault(error);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
break reduciblePort18;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_3;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
updateSubscriptionTrial = value4.updateSubscriptionTrial;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(updateSubscriptionTrial, value4, [a0, a1, a2]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
if (value7) {
|
|
require(false);
|
|
return value6;
|
|
}
|
|
require(false);
|
|
return undefined;
|
|
}
|
|
require(false);
|
|
throw error;
|
|
}
|
|
|