Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,108 @@
|
||||
/* Metro module 6786; source: modules/guild_onboarding/native/ProviderConnectionCard.tsx; dependencies: [5, 31, 661, 33, 4048, 4915, 1244, 6787, 683, 4863, 1423, 4002, 1305, 4056, 6785, 2] */
|
||||
function _fun53431(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6964:6, offset: 0x01348e3d, size: 178 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 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_onboarding/native/ProviderConnectionCard.tsx');
|
||||
exports.default = ProviderConnectionCard;
|
||||
}
|
||||
|
||||
function ProviderConnectionCard({connection, guildId, location}) { // fn#53432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6964:258, offset: 0x01348eef, size: 422 bytes, params: 2, frame: 26
|
||||
var r10;
|
||||
var defaultImport;
|
||||
var intl;
|
||||
const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const env0_3 = value3;
|
||||
if (connection.provider_id != null) {
|
||||
defaultImport = importDefault(4915) /* metro dependency 4915: Platforms */;
|
||||
r10 = defaultImport.get(connection.provider_id)?.name;
|
||||
} else {
|
||||
r10 = null;
|
||||
}
|
||||
if (r10 == null) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r10 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.NzCoRx);
|
||||
}
|
||||
const value7 = (require(6787) /* metro dependency 6787: useStartProviderConnection */).useStartProviderConnection(connection.provider_id);
|
||||
const hasConnection = value7.hasConnection;
|
||||
const canConnect = value7.canConnect;
|
||||
const startConnection = value7.startConnection;
|
||||
const env0_4 = startConnection;
|
||||
const loading = value7.loading;
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
return ((Component) => <Component displayName={r10} description={connection.description} icon={binding.useMemo(_fun53435,
|
||||
[connection.provider_id,
|
||||
value3])} isLoading={loading} isConnected={hasConnection} canConnect={canConnect} onConnect={Reflect.apply(useCallback,
|
||||
binding, [env0_3(_fun53434), [startConnection, guildId, connection.provider_id,
|
||||
location]])} />)(importDefault(6785) /* metro dependency 6785: ConnectionCardView */);
|
||||
}
|
||||
|
||||
function* _fun53434() { // fn#53434, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6964:611, offset: 0x0134909e, size: 192 bytes, params: 1, frame: 19
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const binding = env2_1;
|
||||
const binding2 = env2_2;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(binding2[8]);
|
||||
const track = value4.track;
|
||||
const GUILD_ONBOARDING_CONNECTION_CLICKED = env2_5.GUILD_ONBOARDING_CONNECTION_CLICKED;
|
||||
const object2 = {};
|
||||
value = env2_0(binding2[9]);
|
||||
copyDataProperties(object2, value.collectGuildAnalyticsMetadata(importDefault), value);
|
||||
object2['connection_type'] = 'provider';
|
||||
object2['provider_id'] = require.provider_id ?? value3;
|
||||
object2['location'] = dependencyMap;
|
||||
Reflect.apply(track, value4, [GUILD_ONBOARDING_CONNECTION_CLICKED, object2]);
|
||||
yield env1_4('Guild Onboarding');
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun53435() { // fn#53435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6964:878, offset: 0x0134915e, size: 299 bytes, params: 1, frame: 19
|
||||
var icon;
|
||||
var r4;
|
||||
var value3;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var makeSource;
|
||||
var value;
|
||||
const provider_id = connection.provider_id;
|
||||
const value2 = null;
|
||||
if (value2 != provider_id) {
|
||||
value3 = environment.__proto__;
|
||||
value4 = undefined;
|
||||
defaultImport = importDefault(4915) /* metro dependency 4915: Platforms */;
|
||||
value5 = defaultImport.get(connection.provider_id);
|
||||
moduleValue = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
makeSource = moduleValue.makeSource;
|
||||
icon = value2 == value5 ? value4 : value5.icon;
|
||||
if (value2 != icon) {
|
||||
value = (require(4002) /* metro dependency 4002: shared */).isThemeDark(env0_3);
|
||||
icon = value5.icon;
|
||||
r4 = value ? icon.darkPNG : icon.lightPNG;
|
||||
} else {
|
||||
r4 = value2;
|
||||
}
|
||||
value = Reflect.apply(makeSource, moduleValue, [r4]);
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
return (
|
||||
<Icon
|
||||
source={value}
|
||||
style={{'width': 32, 'height': 32}}
|
||||
disableColor
|
||||
/>
|
||||
);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
return <LinkIcon size="lg" color="text-subtle" />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user