This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,116 +1,129 @@
/* Metro module 15725; source: modules/provisional_accounts/MessageSessionMetadataManager.tsx; dependencies: [6, 7, 15, 17, 18, 661, 683, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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 */;
let value = AutomaticLifecycleManager;
value = _fun120763(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/MessageSessionMetadataManager.tsx');
(FileImportTrackerModule).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;
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 {
authorized_application_ids = a0.authorized_application_ids;
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 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;
return (_isNativeReflectConstruct_120760_isNativeReflectConstruct = function() {
return !!result;
})();
}
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]);
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 MessageSessionMetadataManager2 = MessageSessionMetadataManager;
Inherits(MessageSessionMetadataManager2, a0);
return CreateClass(MessageSessionMetadataManager2, [{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 items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_5(MessageSessionMetadataManager);
binding = env1_4;
if (_isNativeReflectConstruct_120760()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_5(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {MESSAGE_CREATE: MESSAGE_CREATE_120765, MESSAGE_UPDATE: MESSAGE_UPDATE_120766};
return value;
function MessageSessionMetadataManagerMESSAGE_CREATE(a0) { // fn#120765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:687, owner: MessageSessionMetadataManager.MESSAGE_CREATE, offset: 0x0215627f, size: 23 bytes, params: 2, frame: 11
return env0_0.handleMessageCreate(a0);
}
function MessageSessionMetadataManagerMESSAGE_UPDATE(a0) { // fn#120766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15933:730, owner: MessageSessionMetadataManager.MESSAGE_UPDATE, offset: 0x021562dd, size: 23 bytes, params: 2, frame: 11
return env0_0.handleMessageUpdate(a0);
}
}
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 object;
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;
object = {};
id = a0.id;
object.message_id = id;
object.channel_id = a0.channel_id;
author = a0.author;
id = author == null ? value2 : author.id;
object.author_id = id;
object.authorized_application_ids = this._getAuthorizedApplicationIds(a0.session_metadata);
Reflect.apply(track, defaultImport, [MESSAGE_DISPATCH_SESSION_METADATA_FOUND, object]);
}
}
}
}
global.__d(_fun120759, 15725, [6, 7, 15, 17, 18, 661, 683, 4860,
2]) /* metro module 15725, dependencies: [6, 7, 15, 17, 18, 661, 683, 4860, 2] */;
@@ -1,26 +1,30 @@
/* Metro module 10351; source: modules/provisional_accounts/hooks/useProvisionalAccountApplication.tsx; dependencies: [5242, 566, 6777, 2] */
import GameRelationshipStore from '../../game_relationships/GameRelationshipStore.tsx'; /* Metro dependency 5242 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseGetOrFetchApplicationsModule from '../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
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');
(FileImportTrackerModule).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 useStateFromStores = FluxModule.useStateFromStores;
return (UseGetOrFetchApplicationsModule).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;
}
}
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;
}
}
global.__d(_fun80215, 10351, [5242, 566, 6777, 2]) /* metro module 10351, dependencies: [5242, 566, 6777, 2] */;
@@ -1,53 +1,59 @@
/* Metro module 10350; source: modules/provisional_accounts/hooks/useProvisionalAccountExplanationText.tsx; dependencies: [31, 661, 10351, 1244, 1948, 2] */
import UseProvisionalAccountApplication from './useProvisionalAccountApplication.tsx'; /* Metro dependency 10351 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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 ReactModule.useMemo(_fun80213,
[(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 = (IndexNativeModule).intl;
var format;
const t = (IndexNativeModule).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);
}
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);
}
global.__d(_fun80211, 10350, [31, 661, 10351, 1244, 1948,
2]) /* metro module 10350, dependencies: [31, 661, 10351, 1244, 1948, 2] */;
@@ -1,13 +1,20 @@
/* Metro module 10348; source: modules/provisional_accounts/native/ProvisionalAccountExplainer.tsx; dependencies: [31, 27, 33, 4501, 697, 10349, 10350, 6239, 4573, 1244, 7684, 6815, 2] */
import UserProfileCard from '../../user_profile/native/UserProfileCard.tsx'; /* Metro dependency 6815 */
import ApplicationIconAndName from '../../user_profile/native/ApplicationIconAndName.tsx'; /* Metro dependency 10349 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as CardNativeModule from '../../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
import * as CircleErrorIconModule from '../../../design/components/Icon/native/redesign/generated/CircleErrorIcon.tsx'; /* Metro dependency 7684 */
import * as UseProvisionalAccountExplanationTextModule from '../hooks/useProvisionalAccountExplanationText.tsx'; /* Metro dependency 10350 */
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 = {};
@@ -19,65 +26,69 @@ function _fun80202(global, require, importDefault, importAll, module, exports, d
object.header = object3;
return object;
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/provisional_accounts/native/ProvisionalAccountExplainer.tsx');
(FileImportTrackerModule).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 (UseProvisionalAccountExplanationTextModule).useProvisionalAccountExplanationText({userId: userId,
renderApplicationName: ReactModule.useCallback(_fun80204, [iconSize, textVariant])});
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} />)(ApplicationIconAndName);
}
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}
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 = (CardNativeModule).Card;
const items2 = [styles.chatContainer, style];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Iyka0U = (IndexNativeModule).t.Iyka0U;
const text = (
<Text variant="text-sm/semibold" color="text-default">
{Reflect.apply(string, intl, [Iyka0U])}
</Text>
</Card>
);
}
);
const CircleErrorIcon = (CircleErrorIconModule).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 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
const value2 = useNativeProvisionalAccountExplainerText({userId: userId, iconSize: iconSize,
textVariant: 'text-md/semibold'});
object = {style: style};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Iyka0U = (IndexNativeModule).t.Iyka0U;
object.title = Reflect.apply(string, intl, [Iyka0U]);
const CircleErrorIcon = (CircleErrorIconModule).CircleErrorIcon;
object.titleIcon = <CircleErrorIcon size="xs" color="text-default" />;
const Text = (TextModule).Text;
return (
<UserProfileCard {...object}>
<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 */);
}
global.__d(_fun80202, 10348, [31, 27, 33, 4501, 697, 10349, 10350, 6239, 4573, 1244, 7684, 6815,
2]) /* metro module 10348, dependencies: [31, 27, 33, 4501, 697, 10349, 10350, 6239, 4573, 1244, 7684, 6815, 2] */;
@@ -1,34 +1,51 @@
/* Metro module 12120; source: modules/provisional_accounts/native/ProvisionalAccountNoCallAllowed.tsx; dependencies: [31, 661, 33, 4501, 4500, 7684, 1244, 1948, 4500, 2] */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as CircleErrorIconModule from '../../../design/components/Icon/native/redesign/generated/CircleErrorIcon.tsx'; /* Metro dependency 7684 */
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');
ReactModule;
const env0_5 = (CreateStylesModule).createStyles({header: {alignSelf: 'center'}});
(FileImportTrackerModule).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 = (AlertModalNativeModule).AlertModal;
const object = {};
const CircleErrorIcon = (CircleErrorIconModule).CircleErrorIcon;
object.header = <CircleErrorIcon size="lg" style={styles.header} />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.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 = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const SLAYER_PROVISIONAL_ACCOUNTS = HelpdeskArticles.SLAYER_PROVISIONAL_ACCOUNTS;
object.content = Reflect.apply(format, intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL,
defaultImport, [SLAYER_PROVISIONAL_ACCOUNTS])}]);
const AlertActions = (AlertModalNativeModule).AlertActions;
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
object.actions = (
<AlertActions>
<AlertActionButton
variant="secondary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
key="got-it"
/>
</AlertActions>
);
return <AlertModal {...object} />;
}
}
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} />;
}
global.__d(_fun93032, 12120, [31, 661, 33, 4501, 4500, 7684, 1244, 1948, 4500,
2]) /* metro module 12120, dependencies: [31, 661, 33, 4501, 4500, 7684, 1244, 1948, 4500, 2] */;