Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,157 @@
|
||||
/* Metro module 12132; source: modules/guild_instant_invites/native/InstantInvite.tsx; dependencies: [31, 27, 1383, 661, 33, 4501, 6777, 12133, 12134, 4496, 1244, 11905, 1230, 12135, 6239, 4572, 6780, 4573, 8811, 8341, 12139, 12140, 12141, 12144, 12145, 2] */
|
||||
function _fun93150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:6, offset: 0x020a8a2d, size: 316 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(1383) /* metro dependency 1383: ChannelRecord */).createChannelRecordFromInvite;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value2.jsx;
|
||||
const env0_8 = value2.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({creatorWrapper: {'marginLeft': -16,
|
||||
'marginBottom': -16, 'marginTop': 8, 'flex': 1}, gameWrapper: {'flex': 1, 'flexDirection': 'row',
|
||||
'alignItems': 'center', 'gap': 8}, gameText: {flex: 1}});
|
||||
value = value.memo(_fun93151);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInvite.tsx');
|
||||
exports.default = value;
|
||||
exports.LinkedChannelInvite = LinkedChannelInvite;
|
||||
}
|
||||
|
||||
function _fun93151({invite, onInviteRevoked}) { // fn#93151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:398, offset: 0x020a8b69, size: 721 bytes, params: 2, frame: 34
|
||||
const styles = useStyles();
|
||||
const uses = invite.uses;
|
||||
const maxUses = invite.maxUses;
|
||||
const id = invite.guild?.id;
|
||||
const binding = env0_3;
|
||||
const value4 = binding.useMemo(function() {
|
||||
return createChannelRecordFromInvite(invite.channel);
|
||||
}, [invite]);
|
||||
const value5 = (require(12141) /* metro dependency 12141: InstantInviteUtils */).useInviteActions({invite: invite,
|
||||
onInviteRevoked: onInviteRevoked});
|
||||
const value6 = binding.useMemo(function() {
|
||||
return invite.roles.map(_fun93154);
|
||||
}, [invite.roles]);
|
||||
let r5 = value6.length > 0 && id != null;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="text-lg/bold" tabularNumbers>{invite.code}</Text>;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
const items2 = [<Stack direction="horizontal" justify="space-between">{text}<ContextMenu items={value5}>{children}</ContextMenu></Stack>];
|
||||
const InstantInviteDetails = (require(12139) /* metro dependency 12139: InstantInviteCode */).InstantInviteDetails;
|
||||
items2[1] = <InstantInviteDetails channel={value4} expiresAt={invite.getExpiresAt()} />;
|
||||
r5 = r5 && ((Component) => <Component roleIds={value6} guildId={id} />)(importDefault(12144) /* metro dependency 12144: InviteRolesDisplay */);
|
||||
items2[2] = r5;
|
||||
items2[3] = <Stack direction="horizontal" align="flex-end"><View style={styles.creatorWrapper}>{invite.inviter?.id != null ? ((Component) => <Component start end userId={invite.inviter?.id} guildId={id} />)(importDefault(12140) /* metro dependency 12140: DetailedGuildIdentityUserRow */) : null}</View>{((Component) => <Component uses={uses} maxUses={maxUses} />)(importDefault(12145) /* metro dependency 12145: InstantInviteUsesLabel */)}</Stack>;
|
||||
return (
|
||||
<Card>
|
||||
{items2}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function LinkedChannelInvite({channel}) { // fn#93156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:1568, offset: 0x020a8f28, size: 776 bytes, params: 2, frame: 33
|
||||
const env0_3 = undefined;
|
||||
const styles = useStyles();
|
||||
const linked_by = channel.linkedLobby?.linked_by;
|
||||
const value4 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(channel.linkedLobby?.application_id);
|
||||
const value5 = (require(12133) /* metro dependency 12133: LobbyUtils */).useCanUnlinkLobbyChannel(channel);
|
||||
const value7 = (importDefault(12134) /* metro dependency 12134: useShowUnlinkChannelAlert */)(channel.id,
|
||||
value4?.name ?? '');
|
||||
const binding = env0_3;
|
||||
const value9 = binding.useMemo(_fun93158, [channel.guild_id, channel.id, binding.useCallback(_fun93157, [value5,
|
||||
value7])]);
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const GameIcon = importDefault(6780) /* metro dependency 6780: GameIcon */;
|
||||
const GameIconSizes = (require(6780) /* metro dependency 6780: GameIcon */).GameIconSizes;
|
||||
const SIZE_24 = GameIconSizes.SIZE_24;
|
||||
const gameIcon = <GameIcon game={value4} size={SIZE_24} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view = <View style={styles.gameWrapper}>{gameIcon}<Text ellipsizeMode="tail" lineClamp={1} variant="text-lg/bold" style={styles.gameText}>{value4?.name}</Text></View>;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
const items3 = [<Stack direction="horizontal" justify="space-between">{view}<ContextMenu items={value9}>{children_93160}</ContextMenu></Stack>];
|
||||
const InstantInviteDetails = (require(12139) /* metro dependency 12139: InstantInviteCode */).InstantInviteDetails;
|
||||
items3[1] = <InstantInviteDetails channel={channel} />;
|
||||
items3[2] = <Stack direction="horizontal" align="flex-end"><View style={styles.creatorWrapper}>{linked_by != null ? ((Component) => <Component start end userId={linked_by} guildId={channel.guild_id} />)(importDefault(12140) /* metro dependency 12140: DetailedGuildIdentityUserRow */) : null}</View></Stack>;
|
||||
return (
|
||||
<Card>
|
||||
{items3}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93153() { // fn#93153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:613, offset: 0x020a8e56, size: 34 bytes, params: 1, frame: 11
|
||||
return invite.roles.map(function(a0) {
|
||||
return a0.id;
|
||||
});
|
||||
}
|
||||
|
||||
function children(a0) { // fn#93155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:900, offset: 0x020a8e78, size: 176 bytes, params: 2, frame: 21
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const more = (importDefault(12135) /* metro dependency 12135: InstantInviteIcons */).more;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const DEoVWZ = (require(1244) /* metro dependency 1244: indexNative */).t.DEoVWZ;
|
||||
return (
|
||||
<IconButton
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
icon={more}
|
||||
accessibilityLabel={Reflect.apply(string, intl, [DEoVWZ])}
|
||||
ref={ref}
|
||||
{...value2}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93157() { // fn#93157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:1863, offset: 0x020a9230, size: 172 bytes, params: 1, frame: 19
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (env0_1) {
|
||||
env0_2();
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.JmUENg);
|
||||
object2.body = intl.string(t.SrvsML);
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93158() { // fn#93158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12318:2003, offset: 0x020a92dc, size: 213 bytes, params: 1, frame: 17
|
||||
let object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.label = Reflect.apply(string, intl, [t.aW2YlJ]);
|
||||
const ArrowSmallRightIcon = (require(11905) /* metro dependency 11905: ArrowSmallRightIcon */).ArrowSmallRightIcon;
|
||||
object2.IconComponent = ArrowSmallRightIcon;
|
||||
object2.action = function() {
|
||||
var moduleValue = require(dependencyMap[12]);
|
||||
var channelBinding = channel;
|
||||
moduleValue.transitionTo(Routes.CHANNEL(channelBinding.guild_id, channelBinding.id));
|
||||
};
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
string = intl.string;
|
||||
const JmUENg = t.JmUENg;
|
||||
object2.label = Reflect.apply(string, intl, [JmUENg]);
|
||||
object2.iconSource = (importDefault(12135) /* metro dependency 12135: InstantInviteIcons */).revoke;
|
||||
object2.variant = 'destructive';
|
||||
object2.action = env0_3;
|
||||
items2[1] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 12139; source: modules/guild_instant_invites/native/InstantInviteCode.tsx; dependencies: [31, 27, 1383, 3793, 1878, 33, 4501, 697, 6647, 6691, 4572, 4573, 4805, 4076, 1244, 9898, 2] */
|
||||
function _fun93178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12325:6, offset: 0x020a9a1c, size: 325 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = InstantInviteDetails;
|
||||
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 env0_5 = (require(1383) /* metro dependency 1383: ChannelRecord */).createChannelRecordFromInvite;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const TEXT_FEEDBACK_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_POSITIVE;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, channel: {flex: 0},
|
||||
time: {color: TEXT_FEEDBACK_POSITIVE}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInviteCode.tsx');
|
||||
exports.default = InstantInviteCode;
|
||||
exports.InstantInviteDetails = closure;
|
||||
}
|
||||
|
||||
function InstantInviteDetails({channel, expiresAt}) { // fn#93179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12325:316, offset: 0x020a9b61, size: 572 bytes, params: 2, frame: 34
|
||||
var r5;
|
||||
var Stack3;
|
||||
var items3;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const r12 = (require(6647) /* metro dependency 6647: ChannelUtils */).getSimpleChannelIconComponent(channel) ?? (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const value3 = ((Component) => <Component color="icon-subtle" size="xs" />)(r12);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
const stack = <Stack2 direction="horizontal" align="center">{value3}<Text variant="text-md/semibold" color="text-subtle" style={styles.channel} lineClamp={1}>{useChannelNameModule.computeChannelName(channel,
|
||||
UserStore, RelationshipStore, false)}</Text></Stack2>;
|
||||
const value5 = expiresAt != null;
|
||||
if (value5) {
|
||||
Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
items3 = [((ClockIcon) => <ClockIcon size="xs" color="icon-subtle" />)((require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon)];
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items3[1] = <Text variant="text-md/semibold" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aTABYx)}</Text>;
|
||||
value = importDefault(9898) /* metro dependency 9898: CountDown */;
|
||||
items3[2] = ((Component) => <Component style={styles.time} deadline={expiresAt} />)(value);
|
||||
value = <Stack3 direction="horizontal" align="center">{items3}</Stack3>;
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value5;
|
||||
}
|
||||
return (
|
||||
<Stack>
|
||||
{stack}
|
||||
{r5}
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
function InstantInviteCode({invite}) { // fn#93180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12325:1128, offset: 0x020a9d9d, size: 233 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useMemo(function() {
|
||||
return createChannelRecordFromInvite(invite.channel);
|
||||
}, [invite.channel]);
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.flex}>
|
||||
<Stack>
|
||||
<Text variant="text-lg/bold" tabularNumbers>
|
||||
{invite.code}
|
||||
</Text>
|
||||
<InstantInviteDetails channel={value2} expiresAt={invite.getExpiresAt()} />
|
||||
</Stack>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 12135; source: modules/guild_instant_invites/native/InstantInviteIcons.tsx; dependencies: [27, 12136, 12137, 12138, 9177, 2] */
|
||||
function _fun93170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12321:6, offset: 0x020a9889, size: 193 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(27) /* metro dependency 27 */).Platform;
|
||||
Object = global.Object;
|
||||
const freeze = Object.freeze;
|
||||
object2 = {};
|
||||
Object.defineProperty(object2, 'more', {get: function() {
|
||||
return require(dependencyMap[1]);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object2, 'share', {get: function() {
|
||||
return require(dependencyMap[2]);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object2, 'revoke', {get: function() {
|
||||
return require(dependencyMap[3]);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object2, 'copy', {get: function() {
|
||||
return require(dependencyMap[4]);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
const value = Reflect.apply(freeze, Object, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInviteIcons.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 15184; source: modules/guild_instant_invites/native/InstantInviteSelfMeasurer.tsx; dependencies: [31, 27, 33, 4501, 12132, 2] */
|
||||
function _fun116010(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15381:6, offset: 0x02477dae, size: 219 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'position': 'absolute',
|
||||
'opacity': 0}});
|
||||
value = value.memo(InstantInviteSelfMeasurer);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInviteSelfMeasurer.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function InstantInviteSelfMeasurer({containerStyle, item, onMeasured, type}) { // fn#116011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15381:217, offset: 0x02477e89, size: 257 bytes, params: 2, frame: 20
|
||||
var r4;
|
||||
type = type === undefined ? 'height' : type;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useCallback(function(a0) {
|
||||
var property = a0.nativeEvent.layout;
|
||||
onMeasured(type === 'height' ? property.height : property.width);
|
||||
}, [onMeasured, type]);
|
||||
const items2 = [containerStyle];
|
||||
items2[1] = styles.container;
|
||||
if (item.type === 'invite') {
|
||||
value = importDefault(12132) /* metro dependency 12132: InstantInvite */;
|
||||
value = ((Component) => <Component invite={item.data} />)(value);
|
||||
r4 = value;
|
||||
} else {
|
||||
const LinkedChannelInvite = (require(12132) /* metro dependency 12132: InstantInvite */).LinkedChannelInvite;
|
||||
r4 = <LinkedChannelInvite channel={item.data} />;
|
||||
}
|
||||
return (
|
||||
<View
|
||||
style={items2}
|
||||
onLayout={value2}
|
||||
pointerEvents="none"
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
accessibilityElementsHidden
|
||||
accessible={false}
|
||||
>
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 12145; source: modules/guild_instant_invites/native/InstantInviteUsesLabel.tsx; dependencies: [31, 33, 4573, 2] */
|
||||
function _fun93205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12331:6, offset: 0x020aac11, size: 131 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInviteUsesLabel.tsx');
|
||||
exports.default = InstantInviteUsesLabel;
|
||||
}
|
||||
|
||||
function InstantInviteUsesLabel({uses, maxUses, style}) { // fn#93206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12331:226, offset: 0x020aac94, size: 135 bytes, params: 2, frame: 17
|
||||
const r5 = maxUses === 0 ? uses : '' + uses + '/' + maxUses;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="text-md/semibold"
|
||||
color="text-default"
|
||||
style={style}
|
||||
>
|
||||
{'Uses: '}
|
||||
{r5}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
/* Metro module 12141; source: modules/guild_instant_invites/native/InstantInviteUtils.tsx; dependencies: [5, 1379, 1878, 661, 1244, 12135, 12142, 9212, 7147, 6797, 3856, 9151, 8879, 3857, 2] */
|
||||
function _fun93186(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:6, offset: 0x020aa39b, size: 172 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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).InstantInviteSources;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_instant_invites/native/InstantInviteUtils.tsx');
|
||||
exports.useInviteActions = useInviteActions;
|
||||
}
|
||||
|
||||
function useInviteActions({invite, onInviteRevoked}) { // fn#93187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:270, offset: 0x020aa447, size: 398 bytes, params: 2, frame: 21
|
||||
const env0_3 = ChannelStore.getChannel(invite.channel.id)?.isPrivate();
|
||||
let object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const RDE0Sc = t.RDE0Sc;
|
||||
object2.label = Reflect.apply(string, intl, [RDE0Sc]);
|
||||
object2.iconSource = (importDefault(12135) /* metro dependency 12135: InstantInviteIcons */).share;
|
||||
object2.action = action_93188;
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
string = intl.string;
|
||||
const OpuAlK = t.OpuAlK;
|
||||
object2.label = Reflect.apply(string, intl, [OpuAlK]);
|
||||
object2.iconSource = (importDefault(12135) /* metro dependency 12135: InstantInviteIcons */).copy;
|
||||
object2.action = action_93190;
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string(t.v6Yazx);
|
||||
object2.iconSource = (importDefault(12135) /* metro dependency 12135: InstantInviteIcons */).revoke;
|
||||
object2.variant = 'destructive';
|
||||
const env0_2 = env0_3(_fun93192);
|
||||
object2.action = action_93193;
|
||||
items2[2] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useInviteActionsAction() { // fn#93188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:448, owner: useInviteActions.action, offset: 0x020aa5d5, size: 41 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(12142) /* metro dependency 12142 */)(_fun93189);
|
||||
}
|
||||
|
||||
function useInviteActionsAction_93190() { // fn#93190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:822, owner: useInviteActions.action, offset: 0x020aa712, size: 157 bytes, params: 1, frame: 20
|
||||
var moduleValue;
|
||||
var inviteBinding;
|
||||
var moduleValue2;
|
||||
var handleCopy;
|
||||
if (env0_3) {
|
||||
moduleValue2 = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
||||
handleCopy = moduleValue2.handleCopy;
|
||||
inviteBinding = invite;
|
||||
Reflect.apply(handleCopy, moduleValue2, [inviteBinding.code, inviteBinding.channel,
|
||||
InstantInviteSources.GROUP_DM,
|
||||
false]);
|
||||
} else {
|
||||
moduleValue = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
moduleValue.copy((importDefault(7147) /* metro dependency 7147: getInviteURL */)(invite.code));
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentCopiedToClipboard();
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun93192() { // fn#93192, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:1061, offset: 0x020aa7ba, size: 204 bytes, params: 1, frame: 18
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var revokeInvite;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
var binding3;
|
||||
var value9;
|
||||
var open;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var CKsXk3;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort23: while (true) {
|
||||
exceptionLanding22: while (true) {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value9 = binding(binding3[13]);
|
||||
open = value9.open;
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[4]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[4]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
Reflect.apply(open, value9, [{key: 'ERROR_ANOTHER_TRY', content: Reflect.apply(string, intl,
|
||||
[CKsXk3])}]);
|
||||
break reduciblePort23;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
revokeInvite = value3.revokeInvite;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(revokeInvite, value3, [require]);
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
value8 = importDefault == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (value8) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
importDefault(require);
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
break reducibleJoin23;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93189() { // fn#93189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12327:466, offset: 0x020aa5fe, size: 276 bytes, params: 1, frame: 24
|
||||
var r5;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object3;
|
||||
var currentUser;
|
||||
const value2 = undefined;
|
||||
const showShareActionSheetAndroidModule = require(9212) /* metro dependency 9212: showShareActionSheetAndroid */;
|
||||
const showShareActionSheet = showShareActionSheetAndroidModule.showShareActionSheet;
|
||||
const object4 = {};
|
||||
object4.url = env1_3 ? value2 : (importDefault(7147) /* metro dependency 7147: getInviteURL */)(invite.code);
|
||||
if (env1_3) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['+zWvOQ'];
|
||||
object3 = {};
|
||||
currentUser = UserStore.getCurrentUser();
|
||||
object3.username = (currentUser == null ? value2 : currentUser.username) ?? '';
|
||||
object3.link = (importDefault(7147) /* metro dependency 7147: getInviteURL */)(invite.code);
|
||||
r5 = Reflect.apply(formatToPlainString, intl, [property, object3]);
|
||||
} else {
|
||||
r5 = value2;
|
||||
}
|
||||
object4.message = r5;
|
||||
const GROUP_DM = env1_3 ? InstantInviteSources.GROUP_DM : 'Guild Instant Invite';
|
||||
return Reflect.apply(showShareActionSheet, showShareActionSheetAndroidModule, [object4, GROUP_DM]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user