Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* Metro module 7084; source: modules/applications/message_embed/utils/activityBookmarkUtils.tsx; dependencies: [1471, 2] */
|
||||
function _fun56523(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7262:6, offset: 0x013ca7f5, size: 97 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/message_embed/utils/activityBookmarkUtils.tsx');
|
||||
exports.extractActivityBookmarkParams = extractActivityBookmarkParams;
|
||||
}
|
||||
|
||||
function extractActivityBookmarkParams(a0) { // fn#56524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7262:224, offset: 0x013ca856, size: 182 bytes, params: 2, frame: 16
|
||||
const value = undefined;
|
||||
const value2 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
|
||||
const object2 = {};
|
||||
object2.referrerId = (value2 == null ? value : value2.searchParams.get('referrer_id')) ?? value;
|
||||
object2.customId = (value2 == null ? value : value2.searchParams.get('custom_id')) ?? value;
|
||||
object2.linkId = (value2 == null ? value : value2.searchParams.get('link_id')) ?? value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 9466; source: modules/applications/message_embed/utils/getPlayInContext.tsx; dependencies: [1378, 1934, 566, 9467, 2] */
|
||||
function _fun73611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9652:6, offset: 0x01d72f43, size: 145 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/message_embed/utils/getPlayInContext.tsx');
|
||||
exports.usePlayInContext = usePlayInContext;
|
||||
exports.getPlayInContext = getPlayInContext;
|
||||
}
|
||||
|
||||
function usePlayInContext(a0) { // fn#73612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9652:230, offset: 0x01d72fd4, size: 288 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const channelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedChannelStore],
|
||||
function() {
|
||||
return SelectedChannelStore.getChannelId();
|
||||
});
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
||||
_fun73614);
|
||||
const compositeInstanceId = value3 == null ? value2 : value3.compositeInstanceId;
|
||||
const location = value3 == null ? value2 : value3.location;
|
||||
const currentEmbeddedActivity = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
||||
function() {
|
||||
return EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
|
||||
});
|
||||
let value = require(9467) /* metro dependency 9467: getEmbeddedActivityLaunchability */;
|
||||
value = value.useEmbeddedActivityLaunchability(channelId);
|
||||
const EmbeddedActivityLaunchability = (require(9467) /* metro dependency 9467: getEmbeddedActivityLaunchability */).EmbeddedActivityLaunchability;
|
||||
const CAN_LAUNCH = EmbeddedActivityLaunchability.CAN_LAUNCH;
|
||||
return {currentChannelId: channelId, instanceId: compositeInstanceId, instanceLocation: location,
|
||||
isCurrentlyInInstance: compositeInstanceId != null && (currentEmbeddedActivity == null ? value2 : currentEmbeddedActivity.compositeInstanceId) === compositeInstanceId,
|
||||
canLaunchInChannel: value === CAN_LAUNCH};
|
||||
}
|
||||
|
||||
function getPlayInContext(a0, a1) { // fn#73617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9652:900, offset: 0x01d7317d, size: 328 bytes, params: 3, frame: 18
|
||||
var r2;
|
||||
const EmbeddedActivityLaunchability = (require(9467) /* metro dependency 9467: getEmbeddedActivityLaunchability */).EmbeddedActivityLaunchability;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
const r8 = value ?? SelectedChannelStore.getChannelId();
|
||||
if (r8 == null) {
|
||||
return {'currentChannelId': null, 'instanceId': null, 'instanceLocation': null, 'isCurrentlyInInstance': false,
|
||||
'canLaunchInChannel': false};
|
||||
}
|
||||
if (r8 != null) {
|
||||
value = require(9467) /* metro dependency 9467: getEmbeddedActivityLaunchability */;
|
||||
value = value.getEmbeddedActivityLaunchabilityForChannel(r8);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = EmbeddedActivityLaunchability.NO_CHANNEL;
|
||||
}
|
||||
const value2 = undefined;
|
||||
const CAN_LAUNCH = EmbeddedActivityLaunchability.CAN_LAUNCH;
|
||||
const value4 = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(r8).filter(_fun73618);
|
||||
const r6 = value4.length > 0 ? value4[0] : value2;
|
||||
const compositeInstanceId = r6 == null ? value2 : r6.compositeInstanceId;
|
||||
const location = r6 == null ? value2 : r6.location;
|
||||
value = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
|
||||
return {currentChannelId: r8, instanceId: compositeInstanceId, instanceLocation: location,
|
||||
isCurrentlyInInstance: compositeInstanceId != null && (value == null ? value2 : value.compositeInstanceId) === compositeInstanceId,
|
||||
canLaunchInChannel: r2 === CAN_LAUNCH};
|
||||
}
|
||||
|
||||
function _fun73614() { // fn#73614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9652:354, offset: 0x01d73107, size: 78 bytes, params: 1, frame: 13
|
||||
if (channelId == null) {
|
||||
return null;
|
||||
}
|
||||
let value = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(channelId);
|
||||
value = value.filter(_fun73615);
|
||||
return value.length > 0 ? value[0] : undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user