Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,66 @@
|
||||
/* Metro module 9878; source: stores/native/AlertStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun77465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10064:6, offset: 0x01dfda16, size: 301 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun77469(Store);
|
||||
value.displayName = 'AlertStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {ALERT_OPEN: ALERT_OPEN,
|
||||
ALERT_CLOSE: function() {
|
||||
env0_5 = null;
|
||||
env0_7 = null;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/AlertStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_77466() { // fn#77466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10064:148, offset: 0x01dfdb43, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_77466_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun77469(a0) { // fn#77469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10064:370, offset: 0x01dfdba5, size: 126 bytes, params: 2, frame: 16
|
||||
const closure = AlertStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getAlert', value: value_77471}, {key: 'getAlertKey', value: value_77472},
|
||||
{key: 'isAlertDismissable', value: value_77473}]);
|
||||
}
|
||||
|
||||
function ALERT_OPEN({alert, isDismissable}) { // fn#77474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10064:864, offset: 0x01dfdc44, size: 45 bytes, params: 2, frame: 5
|
||||
env0_6 += 1;
|
||||
}
|
||||
|
||||
function value_77472() { // fn#77472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10064:695, offset: 0x01dfdc23, size: 33 bytes, params: 1, frame: 11
|
||||
return 'alert-store-' + env1_6;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 7030; source: stores/native/AppStateStore.tsx; dependencies: [6, 7, 15, 17, 18, 27, 661, 566, 683, 1962, 694, 2] */
|
||||
function _fun55720(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:6, offset: 0x013af805, size: 360 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(dependencyMap[0]);
|
||||
const env0_1 = importDefault(dependencyMap[1]);
|
||||
const env0_2 = importDefault(dependencyMap[2]);
|
||||
const env0_3 = importDefault(dependencyMap[3]);
|
||||
const env0_4 = importDefault(dependencyMap[4]);
|
||||
const AppState = require(dependencyMap[5]).AppState;
|
||||
const env0_5 = require(dependencyMap[6]).AppStates;
|
||||
let env0_6 = AppState.currentState;
|
||||
const Store = importDefault(dependencyMap[7]).Store;
|
||||
let value = _fun55724(Store);
|
||||
value.displayName = 'AppStateStore';
|
||||
require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths).then(function({addExtraAnalyticsDecorator}) {
|
||||
addExtraAnalyticsDecorator(_fun55729);
|
||||
});
|
||||
value = new value(importDefault(dependencyMap[10]), {APP_STATE_UPDATE: function(a0) {
|
||||
if (currentState === a0.state) {
|
||||
return false;
|
||||
}
|
||||
var property = a0.state;
|
||||
env0_6 = property;
|
||||
if (property === AppStates.ACTIVE) {
|
||||
env0_7 = global.Date.now();
|
||||
}
|
||||
}});
|
||||
require(dependencyMap[11]).fileFinishedImporting('stores/native/AppStateStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_55721() { // fn#55721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:187, offset: 0x013af96d, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_55721_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun55724(a0) { // fn#55724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:414, offset: 0x013af9cb, size: 93 bytes, params: 2, frame: 16
|
||||
const closure = AppStateStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getState', value: function() {
|
||||
return currentState;
|
||||
}}, {key: 'getLastActiveTime', value: value_55727}]);
|
||||
}
|
||||
|
||||
function _fun55728({addExtraAnalyticsDecorator}) { // fn#55728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:858, offset: 0x013afa28, size: 25 bytes, params: 2, frame: 11
|
||||
addExtraAnalyticsDecorator(function(a0) {
|
||||
a0.client_app_state = currentState;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 9156; source: stores/native/DisplayedInviteStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun71794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9341:6, offset: 0x01d2d61c, size: 287 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_4 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_5 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun71798(Store);
|
||||
value.displayName = 'DisplayedInviteStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {DISPLAYED_INVITE_SHOW: function({code,
|
||||
username, deeplinkAttemptId}) {
|
||||
env0_0 = code;
|
||||
env0_6 = username;
|
||||
env0_7 = deeplinkAttemptId;
|
||||
}, DISPLAYED_INVITE_CLEAR: function() {
|
||||
env0_0 = null;
|
||||
env0_7 = null;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/DisplayedInviteStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_71795() { // fn#71795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9341:150, offset: 0x01d2d73b, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_71795_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun71798(a0) { // fn#71798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9341:367, offset: 0x01d2d79d, size: 126 bytes, params: 2, frame: 16
|
||||
const closure = DisplayedInviteStore;
|
||||
env0_5(closure, a0);
|
||||
return env0_2(closure, [{key: 'getDisplayedInviteCode', value: value_71800}, {key: 'getDisplayedUsername',
|
||||
value: value_71801}, {key: 'getDeeplinkAttemptId', value: value_71802}]);
|
||||
}
|
||||
|
||||
function DisplayedInviteStore() { // fn#71799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9341:379, offset: 0x01d2d81b, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_1(this, DisplayedInviteStore);
|
||||
const value3 = env1_4(DisplayedInviteStore);
|
||||
return env1_3(this, _isNativeReflectConstruct_71795() ? global.Reflect.construct(value3, arguments,
|
||||
env1_4(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
/* Metro module 5140; source: stores/native/IAPStore.android.tsx; dependencies: [6, 7, 15, 17, 18, 5141, 482, 5137, 3817, 566, 694, 2] */
|
||||
function _fun45333(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:6, offset: 0x0118c266, size: 587 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = GPLAY_SUBSCRIPTION_SKUS_LOADED;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const constantsModule = require(5141) /* metro dependency 5141: Constants */;
|
||||
const GPlayConnectionState = constantsModule.GPlayConnectionState;
|
||||
const env0_8 = constantsModule.GPlaySkusType;
|
||||
const env0_9 = (require(482) /* metro dependency 482: Constants */).CurrencyCodes;
|
||||
let env0_10 = GPlayConnectionState.DISCONNECTED;
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun45344(Store).displayName = 'IAPStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{GPLAY_UPDATE_CONNECTION_STATE: function(a0) {
|
||||
env0_10 = a0.connectionState;
|
||||
}, GPLAY_FETCH_SUBSCRIPTION_SKUS_START: function() {
|
||||
env0_18 = true;
|
||||
}, GPLAY_SUBSCRIPTION_SKUS_LOADED: closure, GPLAY_FETCH_SUBSCRIPTION_SKUS_FAILED: function() {
|
||||
env0_18 = false;
|
||||
}, GPLAY_FETCH_IN_APP_SKUS_START: function() {
|
||||
env0_17 = true;
|
||||
}, GPLAY_IN_APP_SKUS_LOADED: closure, GPLAY_FETCH_IN_APP_SKUS_FAILED: function() {
|
||||
env0_17 = false;
|
||||
}, GPLAY_VERIFICATION_START: GPLAY_VERIFICATION_START, GPLAY_VERIFICATION_END: GPLAY_VERIFICATION_END,
|
||||
GPLAY_UPDATE_PENDING_DOWNGRADE: function(a0) {
|
||||
env0_15 = a0.pendingDowngrade;
|
||||
}, GPLAY_UPDATE_IS_DOWNGRADING: function(a0) {
|
||||
env0_16 = a0.isDowngrading;
|
||||
}, GPLAY_SET_USER_COUNTRY: function(a0) {
|
||||
env0_19 = a0.countryCode;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/IAPStore.android.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_45334() { // fn#45334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:225, offset: 0x0118c4b1, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_45334_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function updateProduct(a0) { // fn#45337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:505, offset: 0x0118c50f, size: 197 bytes, params: 2, frame: 18
|
||||
const value = a0.currencyCode.toLowerCase();
|
||||
const value2 = a0.price / 100;
|
||||
const r2 = env0_19 !== 'BG' ? (require(5137) /* metro dependency 5137: PriceUtils */).formatSingleCurrencyPrice(value2,
|
||||
value,
|
||||
{convertToMajorUnits: false}) : value === CurrencyCodes.EUR ? (require(5137) /* metro dependency 5137: PriceUtils */).formatDualPriceForBG(value2,
|
||||
{convertToMajorUnits: false}) : (require(5137) /* metro dependency 5137: PriceUtils */).formatSingleCurrencyPrice(value2,
|
||||
value, {convertToMajorUnits: false});
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['price'] = a0.price;
|
||||
object2['currencyCode'] = value;
|
||||
object2['priceString'] = r2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function GPLAY_IN_APP_SKUS_LOADED({skus, skusType}) { // fn#45338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:779, offset: 0x0118c5d4, size: 269 bytes, params: 2, frame: 19
|
||||
var r5;
|
||||
var value5;
|
||||
var value6;
|
||||
var error;
|
||||
var moduleValue;
|
||||
skus.forEach(_fun45339);
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
let binding = env0_12;
|
||||
const r9 = Reflect.apply(from, Array, [binding.values()])?.filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
env0_11 = r9;
|
||||
if (r9 != null) {
|
||||
r9.forEach(function(a0) {
|
||||
var r3;
|
||||
var value = undefined;
|
||||
r3 = a0 == null ? value : a0.offerIds;
|
||||
if (r3 != null) {
|
||||
r3.forEach(_fun45342);
|
||||
}
|
||||
return value;
|
||||
});
|
||||
}
|
||||
try {
|
||||
binding = env0_11;
|
||||
value5 = binding == null;
|
||||
if (value5) {
|
||||
r5 = undefined;
|
||||
} else {
|
||||
value6 = binding.map(updateProduct);
|
||||
r5 = value6;
|
||||
}
|
||||
env0_11 = r5;
|
||||
} catch (error) {
|
||||
moduleValue = require(3817) /* metro dependency 3817: BillingUtils */;
|
||||
moduleValue.captureBillingException(error);
|
||||
}
|
||||
binding = env0_11;
|
||||
if (binding != null) {
|
||||
binding.forEach(_fun45343);
|
||||
}
|
||||
const IN_APP = GPlaySkusType.IN_APP;
|
||||
if (IN_APP !== skusType) {
|
||||
if (GPlaySkusType.SUBSCRIPTION !== skusType) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun45344(a0) { // fn#45344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:1246, offset: 0x0118c743, size: 302 bytes, params: 2, frame: 16
|
||||
const closure = IAPStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getProducts', value: value_45346}, {key: 'getOfferIds', value: value_45347},
|
||||
{key: 'getProduct', value: value_45348}, {key: 'isBusy', value: value_45349}, {key: 'isPurchasingProduct',
|
||||
value: value_45350}, {key: 'isReady', value: function() {
|
||||
return DISCONNECTED === GPlayConnectionState.CONNECTED;
|
||||
}}, {key: 'hasConnectionError', value: function() {
|
||||
return DISCONNECTED === GPlayConnectionState.ERROR;
|
||||
}}, {key: 'getPendingDowngrade', value: value_45353}, {key: 'isFetchingGoogleSkus', value: value_45354},
|
||||
{key: 'isFetchingProducts', value: value_45355}, {key: 'getUserCountry', value: value_45356}]);
|
||||
}
|
||||
|
||||
function GPLAY_VERIFICATION_START({productId}) { // fn#45362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:2697, offset: 0x0118c927, size: 30 bytes, params: 2, frame: 11
|
||||
env0_14.add(productId);
|
||||
}
|
||||
|
||||
function GPLAY_VERIFICATION_END({productId}) { // fn#45363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:2778, offset: 0x0118c945, size: 99 bytes, params: 2, frame: 13
|
||||
const binding = env0_14;
|
||||
if (binding.has(productId)) {
|
||||
env0_14.delete(productId);
|
||||
return undefined;
|
||||
}
|
||||
const Error = global.Error;
|
||||
const value = 'Tried verifying product without initialization: ' + productId;
|
||||
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(value);
|
||||
throw error instanceof Object ? error : value2;
|
||||
}
|
||||
|
||||
function _fun45339(a0) { // fn#45339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:841, offset: 0x0118c6e1, size: 31 bytes, params: 2, frame: 13
|
||||
const binding = env1_12;
|
||||
binding.set(a0.identifier, a0);
|
||||
}
|
||||
|
||||
function _fun45341(a0) { // fn#45341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:957, offset: 0x0118c700, size: 45 bytes, params: 2, frame: 13
|
||||
const value = undefined;
|
||||
const offerIds = a0 == null ? value : a0.offerIds;
|
||||
if (offerIds != null) {
|
||||
offerIds.forEach(_fun45342);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_45348(a0) { // fn#45348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:1610, offset: 0x0118c871, size: 34 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = env1_12.get(a0);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function value_45349() { // fn#45349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:1683, offset: 0x0118c893, size: 27 bytes, params: 1, frame: 3
|
||||
return env1_14.size > 0 || env1_16;
|
||||
}
|
||||
|
||||
function value_45354() { // fn#45354, offset: 0x0118c8dc, size: 16 bytes, params: 1, frame: 3
|
||||
return env1_18 || env1_17;
|
||||
}
|
||||
|
||||
function _fun45342(a0) { // fn#45342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5318:1013, offset: 0x0118c72d, size: 22 bytes, params: 2, frame: 11
|
||||
return env2_13.add(a0);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,86 @@
|
||||
/* Metro module 9590; source: stores/native/MessagePreviewStore.tsx; dependencies: [6, 7, 15, 17, 18, 4625, 22, 566, 694, 2] */
|
||||
function _fun75137(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:6, offset: 0x01da3cf9, size: 301 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun75141(Store);
|
||||
value.displayName = 'MessagePreviewStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{LOAD_MESSAGES_AROUND_SUCCESS: function({around, messages}) {
|
||||
env0_8 = [];
|
||||
messages.forEach(_fun75148);
|
||||
env0_9 = around;
|
||||
}, CLEAR_MESSAGES_AROUND_SUCCESS: function() {
|
||||
env0_8 = null;
|
||||
env0_9 = null;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/MessagePreviewStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_75138() { // fn#75138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:148, offset: 0x01da3e26, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_75138_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun75141(a0) { // fn#75141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:365, offset: 0x01da3e88, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = MessagePreviewStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'messages', get: get_75143}, {key: 'jumpTargetId', get: get_75144},
|
||||
{key: 'getMessage', value: value_75145}]);
|
||||
}
|
||||
|
||||
function LOAD_MESSAGES_AROUND_SUCCESS_75147({around, messages}) { // fn#75147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:952, offset: 0x01da3f63, size: 53 bytes, params: 2, frame: 13
|
||||
env0_8 = [];
|
||||
messages.forEach(_fun75148);
|
||||
}
|
||||
|
||||
function value_75145(a0) { // fn#75145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:778, offset: 0x01da3f02, size: 59 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
return defaultImport.find(env1_8, _fun75146);
|
||||
}
|
||||
|
||||
function _fun75148(a0) { // fn#75148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9776:1032, offset: 0x01da3f98, size: 68 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
var unshift;
|
||||
let value = environment.__proto__;
|
||||
if (env1_8 != null) {
|
||||
binding = env1_8;
|
||||
unshift = binding.unshift;
|
||||
value = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
Reflect.apply(unshift, binding, [value.createMessageRecord(a0)]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* Metro module 10815; source: stores/native/MobileVoiceOverlayStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 683, 477, 1581, 566, 694, 2] */
|
||||
function _fun82988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:6, offset: 0x01f091c6, size: 330 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = isMobileOverlaySupported;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
let value = _fun82993(DeviceSettingsStore);
|
||||
value.displayName = 'MobileVoiceOverlayStore';
|
||||
value.persistKey = 'MobileVoiceOverlayStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{MOBILE_VOICE_OVERLAY_STATE_CHANGED: function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[6]);
|
||||
var MOBILE_OVERLAY_TOGGLED = AnalyticEvents.MOBILE_OVERLAY_TOGGLED;
|
||||
defaultImport.track(MOBILE_OVERLAY_TOGGLED, {enabled: a0.enabled});
|
||||
env0_9 = a0.enabled;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/MobileVoiceOverlayStore.tsx');
|
||||
exports.default = value;
|
||||
exports.isMobileOverlaySupported = closure;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_82989() { // fn#82989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:173, offset: 0x01f09310, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_82989_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function isMobileOverlaySupported() { // fn#82992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:375, offset: 0x01f09372, size: 73 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var value;
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
if (isAndroid2) {
|
||||
value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
||||
value = !value.isMetaQuest();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = isAndroid2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun82993(a0) { // fn#82993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:468, offset: 0x01f093bb, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = MobileVoiceOverlayStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getUserAgnosticState', value: value_82995}, {key: 'initialize', value: function(a0) {
|
||||
var r1;
|
||||
var value = undefined;
|
||||
r1 = a0 == null ? value : a0.enabled;
|
||||
env1_9 = r1 != null && r1;
|
||||
return value;
|
||||
}}, {key: 'getEnabled', value: value_82997}]);
|
||||
}
|
||||
|
||||
function value_82995() { // fn#82995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:823, offset: 0x01f09435, size: 15 bytes, params: 1, frame: 2
|
||||
return {enabled: env1_9};
|
||||
}
|
||||
|
||||
function value_82997() { // fn#82997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11001:962, offset: 0x01f0946c, size: 22 bytes, params: 1, frame: 10
|
||||
return isMobileOverlaySupported() && env1_9;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/* Metro module 5218; source: stores/native/NUFStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 3793, 566, 694, 2] */
|
||||
function _fun46136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:6, offset: 0x011a0d3a, size: 335 bytes, params: 8, frame: 19
|
||||
const closure = function() {
|
||||
env0_7 = false;
|
||||
return handleUpdate();
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun46142(PersistedStore);
|
||||
value.displayName = 'NUFStore';
|
||||
value.persistKey = 'NUFStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CACHE_LOADED: function() {
|
||||
env0_7 = true;
|
||||
}, CACHE_LOADED_LAZY: closure, CONNECTION_OPEN: closure});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/NUFStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_46137() { // fn#46137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:168, offset: 0x011a0e89, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_46137_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function handleUpdate() { // fn#46141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:444, offset: 0x011a0efc, size: 66 bytes, params: 1, frame: 11
|
||||
if (env0_7) {
|
||||
return false;
|
||||
}
|
||||
const value3 = GuildStore.getGuildCount() > 0;
|
||||
let r0 = !(value3 === env0_8) && true;
|
||||
r0 = value3 !== env0_9 || r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun46142(a0) { // fn#46142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:564, offset: 0x011a0f3e, size: 141 bytes, params: 2, frame: 16
|
||||
const closure = NUFStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(RelationshipStore, GuildStore);
|
||||
this.syncWith([RelationshipStore, GuildStore], handleUpdate);
|
||||
}}, {key: 'getState', value: function() {
|
||||
return {};
|
||||
}}, {key: 'showMentionsInNotificationTab', get: get_46146}, {key: 'showQuickSwitcher', get: get_46147}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
/* Metro module 11872; source: stores/native/PushNotificationPermissionStore.tsx; dependencies: [6, 7, 15, 17, 18, 10741, 566, 694, 2] */
|
||||
function _fun91035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:6, offset: 0x020513e0, size: 702 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
object4 = {INIT: 0};
|
||||
object4[0] = 'INIT';
|
||||
object4.REQUESTED = 1;
|
||||
object4[1] = 'REQUESTED';
|
||||
object4.PROMPT_SEEN = 2;
|
||||
object4[2] = 'PROMPT_SEEN';
|
||||
object4.PROMPT_SKIPPED = 3;
|
||||
object4[3] = 'PROMPT_SKIPPED';
|
||||
const object5 = {MESSAGE_SENT: 0};
|
||||
object5[0] = 'MESSAGE_SENT';
|
||||
object5.INVITE_ACCEPTED = 1;
|
||||
object5[1] = 'INVITE_ACCEPTED';
|
||||
object5.FRIEND_REQUEST_SENT = 2;
|
||||
object5[2] = 'FRIEND_REQUEST_SENT';
|
||||
object5.DM_SPACE = 3;
|
||||
object5[3] = 'DM_SPACE';
|
||||
object5.CHANNEL_BANNER = 5;
|
||||
object5[5] = 'CHANNEL_BANNER';
|
||||
object5.POST_REACTION_BANNER = 6;
|
||||
object5[6] = 'POST_REACTION_BANNER';
|
||||
object5.GUILD_OPEN_BOTTOM_SHEET = 7;
|
||||
object5[7] = 'GUILD_OPEN_BOTTOM_SHEET';
|
||||
object5.CALL_DISCONNECT_BOTTOM_SHEET = 8;
|
||||
object5[8] = 'CALL_DISCONNECT_BOTTOM_SHEET';
|
||||
const object6 = {};
|
||||
const INIT = object4.INIT;
|
||||
object6.permissionState = INIT;
|
||||
const MESSAGE_SENT = object5.MESSAGE_SENT;
|
||||
const INVITE_ACCEPTED = object5.INVITE_ACCEPTED;
|
||||
const FRIEND_REQUEST_SENT = object5.FRIEND_REQUEST_SENT;
|
||||
const DM_SPACE = object5.DM_SPACE;
|
||||
const CHANNEL_BANNER = object5.CHANNEL_BANNER;
|
||||
const POST_REACTION_BANNER = object5.POST_REACTION_BANNER;
|
||||
const GUILD_OPEN_BOTTOM_SHEET = object5.GUILD_OPEN_BOTTOM_SHEET;
|
||||
const CALL_DISCONNECT_BOTTOM_SHEET = object5.CALL_DISCONNECT_BOTTOM_SHEET;
|
||||
object6.promptLastSeen = {[MESSAGE_SENT]: null, [INVITE_ACCEPTED]: null, [FRIEND_REQUEST_SENT]: null,
|
||||
[DM_SPACE]: null, [CHANNEL_BANNER]: null, [POST_REACTION_BANNER]: null, [GUILD_OPEN_BOTTOM_SHEET]: null,
|
||||
[CALL_DISCONNECT_BOTTOM_SHEET]: null};
|
||||
const Set = global.Set;
|
||||
let set = new Set([]);
|
||||
object6.eligiblePromptTypes = set;
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
set = _fun91039(DeviceSettingsStore);
|
||||
set.displayName = 'PushNotificationPermissionStore';
|
||||
set.persistKey = 'PushNotificationPermissionStoreKey_1';
|
||||
set.migrations = [_fun91048];
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{PUSH_NOTIFICATION_PERMISSION_SET_STATE: PUSH_NOTIFICATION_PERMISSION_SET_STATE,
|
||||
PUSH_NOTIFICATION_PERMISSION_REACTIVATION_SEEN: PUSH_NOTIFICATION_PERMISSION_REACTIVATION_SEEN,
|
||||
PUSH_NOTIFICATION_PERMISSION_SET_ELIGIBLE: PUSH_NOTIFICATION_PERMISSION_SET_ELIGIBLE,
|
||||
PUSH_NOTIFICATION_AUTHORIZATION_STATUS_UPDATE: function(a0) {
|
||||
env0_11 = a0.authorizationStatus;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/PushNotificationPermissionStore.tsx');
|
||||
exports.default = set;
|
||||
exports.PermissionStateType = object4;
|
||||
exports.PermissionPromptType = object5;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_91036() { // fn#91036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:148, offset: 0x0205169e, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_91036_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun91039(a0) { // fn#91039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:1199, offset: 0x02051700, size: 174 bytes, params: 2, frame: 16
|
||||
const closure = PushNotificationPermissionStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: value_91041}, {key: 'getUserAgnosticState', value: value_91044},
|
||||
{key: 'permissionState', get: get_91045}, {key: 'promptSeen', get: get_91046}, {key: 'authorizationStatus',
|
||||
get: get_91047}]);
|
||||
}
|
||||
|
||||
function _fun91048(a0) { // fn#91048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2378, offset: 0x02051948, size: 244 bytes, params: 2, frame: 15
|
||||
const object3 = {};
|
||||
const binding = env0_9;
|
||||
copyDataProperties(object3, binding, undefined);
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, binding.promptLastSeen, undefined);
|
||||
copyDataProperties(object4, a0.promptLastSeen, undefined);
|
||||
object3['promptLastSeen'] = object4;
|
||||
object3['eligiblePromptTypes'] = a0.eligiblePromptTypes == null ? new global.Set([]) : global.Array.isArray(a0.eligiblePromptTypes) ? new global.Set(a0.eligiblePromptTypes) : a0.eligiblePromptTypes instanceof global.Set ? a0.eligiblePromptTypes : new global.Set([]);
|
||||
return object3;
|
||||
}
|
||||
|
||||
function PUSH_NOTIFICATION_PERMISSION_SET_STATE({permissionState}) { // fn#91049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2712, offset: 0x02051a3c, size: 26 bytes, params: 2, frame: 2
|
||||
env0_10.permissionState = permissionState;
|
||||
}
|
||||
|
||||
function PUSH_NOTIFICATION_PERMISSION_REACTIVATION_SEEN({promptType}) { // fn#91050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2845, offset: 0x02051a56, size: 58 bytes, params: 2, frame: 11
|
||||
const promptLastSeen = env0_10.promptLastSeen;
|
||||
const Date = global.Date;
|
||||
promptLastSeen[promptType] = new Date();
|
||||
return true;
|
||||
}
|
||||
|
||||
function PUSH_NOTIFICATION_PERMISSION_SET_ELIGIBLE({promptType}) { // fn#91051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2986, offset: 0x02051a90, size: 74 bytes, params: 2, frame: 13
|
||||
const binding = env0_10;
|
||||
const Set = global.Set;
|
||||
binding.eligiblePromptTypes = new Set(env0_10.eligiblePromptTypes).add(promptType);
|
||||
return true;
|
||||
}
|
||||
|
||||
function value_91041(a0) { // fn#91041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:1584, offset: 0x020517ae, size: 257 bytes, params: 2, frame: 21
|
||||
let value = a0;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, env1_9, undefined);
|
||||
const value3 = null;
|
||||
copyDataProperties(object3, value3 != value ? value : value3, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, env1_9.promptLastSeen, undefined);
|
||||
const value4 = undefined;
|
||||
copyDataProperties(object4, value3 == value ? value4 : value.promptLastSeen, undefined);
|
||||
object3['promptLastSeen'] = object4;
|
||||
const Set = global.Set;
|
||||
let eligiblePromptTypes = env1_9.eligiblePromptTypes;
|
||||
const items2 = [];
|
||||
const value5 = arraySpread(items2, eligiblePromptTypes, 0, undefined);
|
||||
const value6 = value3 == value;
|
||||
eligiblePromptTypes = value6 ? value4 : value.eligiblePromptTypes;
|
||||
arraySpread(items2, value3 != eligiblePromptTypes ? eligiblePromptTypes : [], value5, value6);
|
||||
value = items2.filter(_fun91042);
|
||||
const value7 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set(value);
|
||||
object3['eligiblePromptTypes'] = set instanceof Object ? set : value7;
|
||||
(importDefault(10741) /* metro dependency 10741: PushNotification */).checkPermissions(_fun91043);
|
||||
return value4;
|
||||
}
|
||||
|
||||
function get_91045() { // fn#91045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2039, offset: 0x02051904, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_10.permissionState;
|
||||
}
|
||||
|
||||
function get_91046() { // fn#91046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:2099, offset: 0x02051913, size: 53 bytes, params: 1, frame: 12
|
||||
const binding = env1_7;
|
||||
const PROMPT_SEEN = binding.PROMPT_SEEN;
|
||||
const items2 = [PROMPT_SEEN];
|
||||
const PROMPT_SKIPPED = binding.PROMPT_SKIPPED;
|
||||
items2[1] = PROMPT_SKIPPED;
|
||||
return items2.includes(env1_10.permissionState);
|
||||
}
|
||||
|
||||
function _fun91042(a0) { // fn#91042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:1818, offset: 0x020518af, size: 22 bytes, params: 2, frame: 2
|
||||
const POST_REACTION_BANNER = env2_8.POST_REACTION_BANNER;
|
||||
return a0 !== POST_REACTION_BANNER;
|
||||
}
|
||||
|
||||
function _fun91043({alert, sound, badge}) { // fn#91043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12058:1878, offset: 0x020518c5, size: 63 bytes, params: 2, frame: 4
|
||||
var value;
|
||||
let r0 = alert || sound;
|
||||
r0 = !r0 ? badge : r0;
|
||||
if (r0) {
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_10.permissionState = env2_7.REQUESTED;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 12950; source: stores/native/ShareStore.tsx; dependencies: [6, 7, 15, 17, 18, 27, 1226, 1379, 1867, 1934, 3969, 1878, 661, 1360, 480, 683, 566, 694, 2] */
|
||||
function _fun98646(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13140:6, offset: 0x021b15d7, size: 475 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
env0_5 = a0.token;
|
||||
return false;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_7 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_8 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_9 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_10 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_11 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_18 = (require(661) /* metro dependency 661: Constants */).AppStates;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun98651(Store);
|
||||
value.displayName = 'ShareStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CHANNEL_SELECT: function(a0) {
|
||||
env0_3 = a0.guildId;
|
||||
env0_4 = a0.channelId;
|
||||
return false;
|
||||
}, LOGOUT: function() {
|
||||
var ShareManager = NativeModules.ShareManager;
|
||||
ShareManager.setSelectedChannel(null, null);
|
||||
ShareManager = NativeModules.ShareManager;
|
||||
ShareManager.setAuthenticationToken(null, importDefault(dependencyMap[15]).getSuperPropertiesBase64());
|
||||
env0_5 = null;
|
||||
return false;
|
||||
}, REGISTER_SUCCESS: closure, LOGIN_SUCCESS: closure, UPDATE_TOKEN: closure, START_SESSION: function() {
|
||||
env0_5 = AuthenticationStore.getToken();
|
||||
return false;
|
||||
}, APP_STATE_UPDATE: APP_STATE_UPDATE_98657});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/native/ShareStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_98647() { // fn#98647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13140:261, offset: 0x021b17b2, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_98647_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun98651(a0) { // fn#98651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13140:511, offset: 0x021b1828, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = ShareStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(AuthenticationStore, ChannelStore, GuildStore, SelectedChannelStore, SelectedGuildStore,
|
||||
UserStore);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function APP_STATE_UPDATE_98657({state}) { // fn#98657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13140:1344, offset: 0x021b199a, size: 398 bytes, params: 2, frame: 22
|
||||
var r6;
|
||||
var r10;
|
||||
var r5;
|
||||
var value2;
|
||||
var guild;
|
||||
var JSON;
|
||||
var stringify;
|
||||
var value5;
|
||||
var object2;
|
||||
var recipients;
|
||||
var value6;
|
||||
var ShareManager;
|
||||
var moduleValue;
|
||||
var setAuthenticationToken;
|
||||
var binding;
|
||||
var defaultImport;
|
||||
const INACTIVE = AppStates.INACTIVE;
|
||||
if (state === INACTIVE) {
|
||||
value2 = null;
|
||||
if (value2 != env0_4) {
|
||||
guild = GuildStore.getGuild(env0_3);
|
||||
r6 = value2 != guild ? global.JSON.stringify(guild) : value2;
|
||||
value5 = ChannelStore.getChannel(SelectedChannelStore.getChannelId());
|
||||
if (value2 != value5) {
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value5.toJS(), undefined);
|
||||
recipients = value5.recipients;
|
||||
r10 = value2 != recipients ? recipients : [];
|
||||
value6 = r10.map(UserStore.getUser);
|
||||
object2['recipients'] = value6.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
r5 = Reflect.apply(stringify, JSON, [object2]);
|
||||
} else {
|
||||
r5 = value2;
|
||||
}
|
||||
NativeModules.ShareManager.setSelectedChannel(r5, r6);
|
||||
}
|
||||
}
|
||||
if (env0_5 != null) {
|
||||
moduleValue = require(480) /* metro dependency 480: AnalyticsUtils */;
|
||||
moduleValue.extendSuperProperties({client_app_state: state});
|
||||
ShareManager = NativeModules.ShareManager;
|
||||
setAuthenticationToken = ShareManager.setAuthenticationToken;
|
||||
binding = env0_5;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
Reflect.apply(setAuthenticationToken, ShareManager, [binding, defaultImport.getSuperPropertiesBase64()]);
|
||||
if (state !== AppStates.INACTIVE) {
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function ShareStore() { // fn#98652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13140:523, offset: 0x021b1870, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_6(this, ShareStore);
|
||||
const value3 = env1_9(ShareStore);
|
||||
return env1_8(this, _isNativeReflectConstruct_98647() ? global.Reflect.construct(value3, arguments,
|
||||
env1_9(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user