Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/* Metro module 12713; source: modules/app_launcher/utils/AppLauncherBadgeUtils.tsx; dependencies: [2] */
|
||||
function _fun97370(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12903:6, offset: 0x0217e0f0, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/utils/AppLauncherBadgeUtils.tsx');
|
||||
exports.getNewestBadgeableVersion = getNewestBadgeableVersion;
|
||||
}
|
||||
|
||||
function getNewestBadgeableVersion({storeState, surface}) { // fn#97371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12903:206, offset: 0x0217e147, size: 238 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var fromDate;
|
||||
var date;
|
||||
var untilDate;
|
||||
var Math;
|
||||
var floor;
|
||||
let Date = global.Date;
|
||||
const value = Date.now();
|
||||
const r1 = storeState.dateRangesForSurfaces?.[surface];
|
||||
if (r1 != null) {
|
||||
Date = global.Date;
|
||||
fromDate = r1.fromDate;
|
||||
date = new Date();
|
||||
if (date.getTime() < value) {
|
||||
Date = global.Date;
|
||||
untilDate = r1.untilDate;
|
||||
date = new Date();
|
||||
if (date.getTime() > value) {
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
Date = global.Date;
|
||||
fromDate = r1.fromDate;
|
||||
date = new Date();
|
||||
date = date.getTime();
|
||||
date = Reflect.apply(floor, Math, [date / 1000]);
|
||||
r0 = date;
|
||||
} else {
|
||||
r0 = 0;
|
||||
}
|
||||
} else {
|
||||
r0 = 0;
|
||||
}
|
||||
} else {
|
||||
r0 = 0;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 9527; source: modules/app_launcher/utils/AppLauncherPlayUtils.tsx; dependencies: [5, 8100, 8101, 4603, 9472, 2] */
|
||||
function _fun74328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:6, offset: 0x01d8a61b, size: 129 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/utils/AppLauncherPlayUtils.tsx');
|
||||
exports.launchActivityInBotDM = function() {
|
||||
return _launchActivityInBotDM.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _launchActivityInBotDM() { // fn#74329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:106, offset: 0x01d8a69c, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun74331).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun74331({appId, botId, analyticsLocations, customId, referrerId, commandOrigin}) { // fn#74331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9713:173, offset: 0x01d8a6e2, size: 301 bytes, params: 2, frame: 23
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var value4 = env2_0(env2_2[1]);
|
||||
if (value4.tryLaunchAsFrame({applicationId: appId})) {
|
||||
env2_0(env2_2[2]).stashPendingFrameLaunch(appId, {isStart: true});
|
||||
return global.Promise.resolve(true);
|
||||
}
|
||||
var value5 = env2_1(env2_2[3]);
|
||||
await value5.openPrivateChannel({recipientIds: botId});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await env2_1(env2_2[4])({targetApplicationId: appId, channelId: undefined,
|
||||
analyticsLocations: analyticsLocations,
|
||||
customId: customId, referrerId: referrerId, commandOrigin: commandOrigin});
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,55 @@
|
||||
/* Metro module 11680; source: modules/app_launcher/utils/useLaunchingActivityButtonState.tsx; dependencies: [31, 1378, 8065, 6777, 566, 8045, 6266, 2] */
|
||||
function _fun89526(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:6, offset: 0x02012385, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/utils/useLaunchingActivityButtonState.tsx');
|
||||
exports.default = useLaunchingActivityButtonState;
|
||||
}
|
||||
|
||||
function useLaunchingActivityButtonState({applicationId, context, launchingComponentId, onSubmissionComplete}) { // fn#89527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:232, offset: 0x0201241e, size: 332 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var r3;
|
||||
var moduleValue4;
|
||||
const value2 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(applicationId);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const launchState = Reflect.apply(useStateFromStores, fluxModule, [[EmbeddedActivitiesStore], function() {
|
||||
return EmbeddedActivitiesStore.getLaunchState(applicationId,
|
||||
context.type !== 'channel' ? undefined : context.channel.id);
|
||||
}]);
|
||||
const moduleValue3 = fluxModule;
|
||||
useStateFromStores = moduleValue3.useStateFromStores;
|
||||
if (value2 == null) {
|
||||
r2 = launchState != null && launchState.isLaunching;
|
||||
r2 = r2 && launchState.componentId === launchingComponentId;
|
||||
r3 = r2;
|
||||
} else {
|
||||
moduleValue4 = require(8045) /* metro dependency 8045: canLaunchFrame */;
|
||||
if (moduleValue4.canLaunchFrame(value2)) {
|
||||
r3 = Reflect.apply(useStateFromStores, moduleValue3, [[FramesStore], function() {
|
||||
return FramesStore.isLaunchingFrame(applicationId);
|
||||
}]);
|
||||
} else {
|
||||
r2 = launchState != null && launchState.isLaunching;
|
||||
r2 = r2 && launchState.componentId === launchingComponentId;
|
||||
r3 = r2;
|
||||
}
|
||||
}
|
||||
const env0_3 = r3;
|
||||
const value7 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(r3);
|
||||
env0_3.useEffect(_fun89530, [r3, value7, onSubmissionComplete]);
|
||||
return {submitting: r3, wasSubmitting: value7 ?? null};
|
||||
}
|
||||
|
||||
function _fun89530() { // fn#89530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:665, offset: 0x020125c4, size: 44 bytes, params: 1, frame: 10
|
||||
if (!env0_3 && env0_4) {
|
||||
if (onSubmissionComplete != null) {
|
||||
onSubmissionComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user