Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,116 @@
|
||||
/* Metro module 15725; source: modules/provisional_accounts/MessageSessionMetadataManager.tsx; dependencies: [6, 7, 15, 17, 18, 661, 683, 4860, 2] */
|
||||
function _fun120759(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:6, offset: 0x02534fd1, size: 248 bytes, params: 8, frame: 19
|
||||
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 env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun120763(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/MessageSessionMetadataManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_120760() { // fn#120760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:173, offset: 0x025350c9, 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_120760_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun120763(a0) { // fn#120763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:376, offset: 0x0253512b, size: 149 bytes, params: 2, frame: 16
|
||||
const closure = MessageSessionMetadataManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'handleMessageCreate', value: function({message}) {
|
||||
this._trackIfSessionMetadataExists(message);
|
||||
}}, {key: 'handleMessageUpdate', value: function({message}) {
|
||||
this._trackIfSessionMetadataExists(message);
|
||||
}}, {key: '_getAuthorizedApplicationIds', value: function(a0) {
|
||||
var authorized_application_ids;
|
||||
var error;
|
||||
try {
|
||||
authorized_application_ids = a0.authorized_application_ids;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return authorized_application_ids;
|
||||
}}, {key: '_trackIfSessionMetadataExists', value: value_120770}]);
|
||||
}
|
||||
|
||||
function MessageSessionMetadataManager(a0) { // fn#120764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:388, offset: 0x025351c0, size: 164 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, MessageSessionMetadataManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(MessageSessionMetadataManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_120760()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {MESSAGE_CREATE: MESSAGE_CREATE_120765, MESSAGE_UPDATE: MESSAGE_UPDATE_120766};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_120770(a0) { // fn#120770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:1187, offset: 0x0253528f, size: 136 bytes, params: 2, frame: 18
|
||||
var id;
|
||||
var value;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var MESSAGE_DISPATCH_SESSION_METADATA_FOUND;
|
||||
var object2;
|
||||
var author;
|
||||
if (a0.session_metadata != null) {
|
||||
value = environment.__proto__;
|
||||
value2 = undefined;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
MESSAGE_DISPATCH_SESSION_METADATA_FOUND = AnalyticEvents.MESSAGE_DISPATCH_SESSION_METADATA_FOUND;
|
||||
object2 = {};
|
||||
id = a0.id;
|
||||
object2.message_id = id;
|
||||
object2.channel_id = a0.channel_id;
|
||||
author = a0.author;
|
||||
id = author == null ? value2 : author.id;
|
||||
object2.author_id = id;
|
||||
object2.authorized_application_ids = this._getAuthorizedApplicationIds(a0.session_metadata);
|
||||
Reflect.apply(track, defaultImport, [MESSAGE_DISPATCH_SESSION_METADATA_FOUND, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 10351; source: modules/provisional_accounts/hooks/useProvisionalAccountApplication.tsx; dependencies: [5242, 566, 6777, 2] */
|
||||
function _fun80215(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10537:6, offset: 0x01e718bf, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/hooks/useProvisionalAccountApplication.tsx');
|
||||
exports.default = useProvisionalAccountApplication;
|
||||
}
|
||||
|
||||
function useProvisionalAccountApplication(a0) { // fn#80216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10537:221, offset: 0x01e71931, size: 89 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(Reflect.apply(useStateFromStores,
|
||||
fluxModule, [[GameRelationshipStore], _fun80217]));
|
||||
}
|
||||
|
||||
function _fun80217() { // fn#80217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10537:304, offset: 0x01e7198a, size: 51 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = GameRelationshipStore.getGameRelationshipsForUser(env0_0);
|
||||
if (value.length !== 0) {
|
||||
return value[0].applicationId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 10350; source: modules/provisional_accounts/hooks/useProvisionalAccountExplanationText.tsx; dependencies: [31, 661, 10351, 1244, 1948, 2] */
|
||||
function _fun80211(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10536:6, offset: 0x01e716cd, size: 143 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/hooks/useProvisionalAccountExplanationText.tsx');
|
||||
exports.useProvisionalAccountExplanationText = useProvisionalAccountExplanationText;
|
||||
}
|
||||
|
||||
function useProvisionalAccountExplanationText({userId, renderApplicationName}) { // fn#80212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10536:281, offset: 0x01e7175c, size: 90 bytes, params: 2, frame: 16
|
||||
return env0_3.useMemo(_fun80213,
|
||||
[(importDefault(10351) /* metro dependency 10351: useProvisionalAccountApplication */)(userId),
|
||||
renderApplicationName]);
|
||||
}
|
||||
|
||||
function _fun80213() { // fn#80213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10536:398, offset: 0x01e717b6, size: 245 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var rSUACb;
|
||||
var defaultImport2;
|
||||
var value;
|
||||
if (env0_1 != null) {
|
||||
value = environment.__proto__;
|
||||
format = intl.format;
|
||||
rSUACb = t.rSUACb;
|
||||
defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
value = Reflect.apply(format, intl, [rSUACb,
|
||||
{helpdeskArticle: defaultImport2.getArticleURL(HelpdeskArticles.SLAYER_PROVISIONAL_ACCOUNTS),
|
||||
applicationName: applicationName}]);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
format = intl.format;
|
||||
property = t['q+N8L6'];
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
value = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport.getArticleURL(HelpdeskArticles.SLAYER_PROVISIONAL_ACCOUNTS)}]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function applicationName() { // fn#80214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10536:533, offset: 0x01e718ab, size: 20 bytes, params: 1, frame: 11
|
||||
return renderApplicationName(env1_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 10348; source: modules/provisional_accounts/native/ProvisionalAccountExplainer.tsx; dependencies: [31, 27, 33, 4501, 697, 10349, 10350, 6239, 4573, 1244, 7684, 6815, 2] */
|
||||
function _fun80202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10534:6, offset: 0x01e7105a, size: 229 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
var object = {};
|
||||
var object2 = {};
|
||||
object2.backgroundColor = importDefault(dependencyMap[4]).colors.BACKGROUND_MOD_MUTED;
|
||||
object2.gap = importDefault(dependencyMap[4]).space.PX_8;
|
||||
object.chatContainer = object2;
|
||||
var object3 = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object3.gap = importDefault(dependencyMap[4]).space.PX_4;
|
||||
object.header = object3;
|
||||
return object;
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/native/ProvisionalAccountExplainer.tsx');
|
||||
exports.ChatProvisionalAccountExplainerCard = ChatProvisionalAccountExplainerCard;
|
||||
exports.UserProfileProvisionalAccountExplainerCard = UserProfileProvisionalAccountExplainerCard;
|
||||
}
|
||||
|
||||
function useNativeProvisionalAccountExplainerText({userId, iconSize, textVariant}) { // fn#80203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10534:345, offset: 0x01e7113f, size: 113 bytes, params: 2, frame: 17
|
||||
return (require(10350) /* metro dependency 10350: useProvisionalAccountExplanationText */).useProvisionalAccountExplanationText({userId: userId,
|
||||
renderApplicationName: env0_3.useCallback(_fun80204, [iconSize, textVariant])});
|
||||
}
|
||||
|
||||
function ChatProvisionalAccountExplainerCard({style, userId, iconSize}) { // fn#80206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10534:749, offset: 0x01e7126d, size: 354 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const value2 = useNativeProvisionalAccountExplainerText({userId: userId, iconSize: iconSize,
|
||||
textVariant: 'text-sm/semibold'});
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const items2 = [styles.chatContainer, style];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Iyka0U = (require(1244) /* metro dependency 1244: indexNative */).t.Iyka0U;
|
||||
const text = <Text variant="text-sm/semibold" color="text-default">{Reflect.apply(string, intl, [Iyka0U])}</Text>;
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
return (
|
||||
<Card style={items2}>
|
||||
<View style={styles.header}>
|
||||
{text}
|
||||
<CircleErrorIcon size="xs" color="text-default" />
|
||||
</View>
|
||||
<Text variant="text-sm/normal" color="text-default">
|
||||
{value2}
|
||||
</Text>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function UserProfileProvisionalAccountExplainerCard({style, userId, iconSize}) { // fn#80207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10534:1322, offset: 0x01e713cf, size: 242 bytes, params: 2, frame: 20
|
||||
var object2;
|
||||
const value2 = useNativeProvisionalAccountExplainerText({userId: userId, iconSize: iconSize,
|
||||
textVariant: 'text-md/semibold'});
|
||||
const UserProfileCard = importDefault(6815) /* metro dependency 6815: UserProfileCard */;
|
||||
object2 = {style: style};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Iyka0U = (require(1244) /* metro dependency 1244: indexNative */).t.Iyka0U;
|
||||
object2.title = Reflect.apply(string, intl, [Iyka0U]);
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
object2.titleIcon = <CircleErrorIcon size="xs" color="text-default" />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<UserProfileCard {...object2}>
|
||||
<Text variant="text-md/normal" color="text-default">
|
||||
{value2}
|
||||
</Text>
|
||||
</UserProfileCard>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80204(a0) { // fn#80204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10534:453, offset: 0x01e711b0, size: 73 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component application={a0} textVariant={textVariant} iconSize={iconSize} key={a0.id} />)(importDefault(10349) /* metro dependency 10349: ApplicationIconAndName */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 12120; source: modules/provisional_accounts/native/ProvisionalAccountNoCallAllowed.tsx; dependencies: [31, 661, 33, 4501, 4500, 7684, 1244, 1948, 4500, 2] */
|
||||
function _fun93032(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12306:6, offset: 0x020a3b0f, size: 203 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {alignSelf: 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/native/ProvisionalAccountNoCallAllowed.tsx');
|
||||
exports.default = ProvisionalAccountNoCallAllowed;
|
||||
}
|
||||
|
||||
function ProvisionalAccountNoCallAllowed() { // fn#93033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12306:314, offset: 0x020a3bda, size: 369 bytes, params: 1, frame: 25
|
||||
const styles = useStyles();
|
||||
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
||||
const object2 = {};
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
object2.header = <CircleErrorIcon size="lg" style={styles.header} />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['vh+Zpq']);
|
||||
const format = intl.format;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['tx08s+'];
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const SLAYER_PROVISIONAL_ACCOUNTS = HelpdeskArticles.SLAYER_PROVISIONAL_ACCOUNTS;
|
||||
object2.content = Reflect.apply(format, intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL,
|
||||
defaultImport, [SLAYER_PROVISIONAL_ACCOUNTS])}]);
|
||||
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
|
||||
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
|
||||
object2.actions = <AlertActions><AlertActionButton variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} key="got-it" /></AlertActions>;
|
||||
return <AlertModal {...object2} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user