Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,614 @@
|
||||
/* Metro module 11066; source: modules/stickers/native/StickerDetailActionSheet.tsx; dependencies: [5, 57, 31, 27, 1867, 1878, 6583, 11028, 661, 6276, 33, 4501, 477, 697, 11049, 8633, 8635, 4080, 4573, 1244, 11050, 3857, 566, 1478, 683, 11063, 4578, 11065, 11051, 11056, 3802, 6796, 3829, 4643, 11067, 1962, 4863, 6593, 11068, 7007, 10970, 8638, 7954, 11069, 7972, 8641, 6766, 6275, 2] */
|
||||
function _fun84711(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:6, offset: 0x01f542b4, size: 833 bytes, params: 8, frame: 25
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = 0;
|
||||
const env0_3 = importDefault(dependencyMap[value]);
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const value2 = importAll(31) /* metro dependency 31 */;
|
||||
const value3 = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value3.View;
|
||||
const env0_7 = value3.ActivityIndicator;
|
||||
const env0_8 = value3.Pressable;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */;
|
||||
const stickerPickerConstantsModule = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const env0_12 = stickerPickerConstantsModule.PADDING_HORIZONTAL;
|
||||
const env0_13 = stickerPickerConstantsModule.MIN_MARGIN;
|
||||
const env0_14 = stickerPickerConstantsModule.STICKER_SIZE;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_15 = constantsModule.AnalyticsPages;
|
||||
const env0_16 = constantsModule.AnalyticsSections;
|
||||
const env0_17 = constantsModule.AnalyticEvents;
|
||||
const env0_18 = constantsModule.GuildFeatures;
|
||||
const env0_19 = constantsModule.UserSettingsSections;
|
||||
const env0_20 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
const value6 = require(33) /* metro dependency 33 */;
|
||||
const env0_21 = value6.jsx;
|
||||
const env0_22 = value6.Fragment;
|
||||
const env0_23 = value6.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {};
|
||||
const value8 = 16;
|
||||
object5.padding = value8;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object5.paddingBottom = platformUtilsModule.isAndroid() ? value8 : value;
|
||||
object3.content = object5;
|
||||
object3.description = {'lineHeight': 18, 'marginTop': 4};
|
||||
object3.guildEmojiTopContainer = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.buttonContainer = {marginTop: PX_12};
|
||||
object3.guildEmojiDescription = {'paddingLeft': 16, 'flex': 1};
|
||||
const object6 = {marginLeft: value};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginBottom = PX_16;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.backgroundColor = BORDER_SUBTLE;
|
||||
object3.divider = object6;
|
||||
object3.moreMenuIcon = {'height': 32, 'width': 32, 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.favoriteContainer = {paddingTop: PX_4};
|
||||
object3.starIcon = {'height': 32, 'width': 32};
|
||||
const ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
|
||||
object3.starIconSelected = {tintColor: ICON_FEEDBACK_WARNING};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object3.starIconUnselected = {tintColor: INTERACTIVE_TEXT_DEFAULT};
|
||||
const env0_24 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
value = value2.memo(StickerDetailActionSheet);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerDetailActionSheet.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function StandardStickerDetail({sticker, channel, chatInputRef}) { // fn#84712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:1205, offset: 0x01f545f5, size: 405 bytes, params: 2, frame: 22
|
||||
const env0_2 = useStyles();
|
||||
const pack_id = sticker.pack_id;
|
||||
const env0_4 = sticker.name;
|
||||
const stickerPack = (require(566) /* metro dependency 566: flux */).useStateFromStores([StickersStore], function() {
|
||||
return StickersStore.getStickerPack(pack_id);
|
||||
});
|
||||
const env0_5 = stickerPack;
|
||||
const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([StickersStore], function() {
|
||||
return StickersStore.isPremiumPack(pack_id);
|
||||
});
|
||||
(require(11049) /* metro dependency 11049: StickersHooks */).useFetchStickerPack(pack_id);
|
||||
const value2 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width - 2 * PADDING_HORIZONTAL;
|
||||
const Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const env0_8 = Reflect.apply(floor, Math, [Math2.min(ACTION_SHEET_MAX_WIDTH,
|
||||
value2 - MIN_MARGIN) / (STICKER_SIZE + MIN_MARGIN)]);
|
||||
const binding = env0_5;
|
||||
binding.useEffect(_fun84716, [binding.useMemo(function() {
|
||||
return {page: channel.guild_id != null ? AnalyticsPages.GUILD_CHANNEL : AnalyticsPages.DM_CHANNEL,
|
||||
section: AnalyticsSections.STICKER_POPOUT};
|
||||
}, [channel.guild_id]), stickerPack]);
|
||||
return stickerPack == null ? <ActivityIndicator size="large" /> : _fun84717(stickerPack);
|
||||
}
|
||||
|
||||
function GuildStickerDetail({sticker, channel}) { // fn#84719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:2575, offset: 0x01f54b2c, size: 2343 bytes, params: 2, frame: 41
|
||||
var object5;
|
||||
var r0;
|
||||
var r10;
|
||||
var r8;
|
||||
var r28;
|
||||
var r11;
|
||||
var r17;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value18;
|
||||
var string;
|
||||
var value20;
|
||||
var value21;
|
||||
var value23;
|
||||
var value24;
|
||||
var value26;
|
||||
var value27;
|
||||
var jsxRuntimeEnv0_22Binding;
|
||||
var items8;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items2;
|
||||
var items3;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var items4;
|
||||
var object2;
|
||||
var items5;
|
||||
var object3;
|
||||
var jsxRuntimeEnv0_22Binding2;
|
||||
var items6;
|
||||
var ExpressionGuildDetails;
|
||||
var jsxRuntimeEnv0_22Binding3;
|
||||
var items7;
|
||||
var object4;
|
||||
var env0_5Binding = undefined;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
let binding = env0_5Binding;
|
||||
const [property, env0_3] = undefined(binding.useState(null), 2);
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(sticker.guild_id);
|
||||
});
|
||||
const value5 = guild != null;
|
||||
var [property2,
|
||||
env0_5] = undefined(env0_5Binding.useState(!(guild == null || guild.features.has(GuildFeatures.DISCOVERABLE))),
|
||||
2);
|
||||
const canUseCustomStickersEverywhere2 = (importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseCustomStickersEverywhere(UserStore.getCurrentUser());
|
||||
const defaultImport2 = importDefault(6796) /* metro dependency 6796: TidaWebformExperiment */;
|
||||
const useExperiment = defaultImport2.useExperiment;
|
||||
const tidaWebformEnabled = Reflect.apply(useExperiment, defaultImport2, [{location: 'StickerDetailActionSheet'},
|
||||
{autoTrackExposure: false}]).tidaWebformEnabled;
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
const value12 = DeveloperMode.useSetting();
|
||||
const {isFavorite, handleFavorite} = _fun84721(sticker.id);
|
||||
let r6 = tidaWebformEnabled && value12;
|
||||
const stickerAssetUrl = (require(4643) /* metro dependency 4643: StickersUtils */).getStickerAssetUrl(sticker);
|
||||
binding = env0_5Binding;
|
||||
const value15 = binding.useCallback(_fun84727, [stickerAssetUrl]);
|
||||
const useMemo = binding.useMemo;
|
||||
let guild_id = channel.guild_id;
|
||||
const env0_7 = Reflect.apply(useMemo, binding, [function() {
|
||||
return {page: channel.guild_id != null ? AnalyticsPages.GUILD_CHANNEL : AnalyticsPages.DM_CHANNEL,
|
||||
section: AnalyticsSections.STICKER_POPOUT};
|
||||
}, [guild_id]]);
|
||||
const useRef = binding.useRef;
|
||||
object5 = {};
|
||||
let getGuildId = channel.getGuildId;
|
||||
object5.guild_id = Reflect.apply(getGuildId, channel, []);
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
copyDataProperties(object5, appAnalyticsUtilsModule.collectChannelAnalyticsMetadata(channel), sticker);
|
||||
const current = Reflect.apply(useRef, binding, [object5]).current;
|
||||
binding.useEffect(_fun84729, [sticker.id, property2]);
|
||||
guild_id = sticker.guild_id;
|
||||
getGuildId = channel.getGuildId;
|
||||
const value16 = guild_id === Reflect.apply(getGuildId, channel, []);
|
||||
const value17 = property != null;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (canUseCustomStickersEverywhere2) {
|
||||
string = intl.string;
|
||||
r10 = value5 ? value16 ? Reflect.apply(string, intl, [t.fZ0DiG]) : Reflect.apply(string, intl,
|
||||
[t['1f6D9m']]) : value17 ? Reflect.apply(string, intl, [t.yHmoR9]) : Reflect.apply(string, intl,
|
||||
[t.vZaScH]);
|
||||
r0 = 'Custom Sticker Popout';
|
||||
r8 = false;
|
||||
r28 = r10;
|
||||
} else if (value5) {
|
||||
string = intl.string;
|
||||
if (value16) {
|
||||
value26 = Reflect.apply(string, intl, [t.jNphpt]);
|
||||
value27 = true;
|
||||
r0 = 'Custom Sticker Popout (Upsell)';
|
||||
r8 = value27;
|
||||
r28 = value26;
|
||||
} else {
|
||||
value23 = Reflect.apply(string, intl, [t.lyD5ZW]);
|
||||
value24 = true;
|
||||
r0 = 'Custom Sticker Popout (Upsell)';
|
||||
r8 = value24;
|
||||
r28 = value23;
|
||||
}
|
||||
} else if (value17) {
|
||||
value20 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IuXYch);
|
||||
value21 = true;
|
||||
r0 = 'Custom Sticker Popout (Upsell)';
|
||||
r8 = value21;
|
||||
r28 = value20;
|
||||
} else {
|
||||
value18 = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.hGWuxU,
|
||||
{openPremiumSettings: openPremiumSettings});
|
||||
r0 = 'Custom Sticker Popout (Soft Upsell)';
|
||||
r8 = false;
|
||||
r28 = value18;
|
||||
}
|
||||
let r20 = !r8 && !value5 && value17;
|
||||
binding = env0_5Binding;
|
||||
const env0_9 = binding.useRef({popoutAnalyticsConfig: current, popoutType: r0});
|
||||
binding.useEffect(_fun84735);
|
||||
binding.useEffect(_fun84736, [property2]);
|
||||
if (property2) {
|
||||
jsxRuntimeEnv0_22Binding = jsxRuntimeEnv0_22;
|
||||
var viewBindingProps2 = {style: styles.guildEmojiTopContainer};
|
||||
items8 = [((Component) => <Component sticker={sticker} size={48} />)(importDefault(10970) /* metro dependency 10970: Sticker */)];
|
||||
var viewBindingProps3 = {style: styles.guildEmojiDescription};
|
||||
items2 = [<Text variant="heading-md/extrabold" color="mobile-text-heading-primary">{sticker.name}</Text>];
|
||||
items2[1] = <Text style={styles.description} variant="text-sm/medium">{r28}</Text>;
|
||||
items8[1] = <View {...viewBindingProps3}>{items2}</View>;
|
||||
r11 = r6 && stickerAssetUrl != null;
|
||||
r11 = r11 && <Pressable accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PdRCRg)} style={styles.moreMenuIcon} onPress={value15}>{((MoreHorizontalIcon) => <MoreHorizontalIcon color={(importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT} />)((require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon)}</Pressable>;
|
||||
items8[2] = r11;
|
||||
items3 = [<View {...viewBindingProps2}>{items8}</View>];
|
||||
if (r8) {
|
||||
var viewBindingProps = {style: styles.buttonContainer};
|
||||
items4 = [<Button variant="experimental_premium-primary" icon={((NitroWheelIcon) => <NitroWheelIcon color="white" />)((require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['gl/XHJ'])} onPress={onPress_84737} />];
|
||||
object2 = {};
|
||||
object2.height = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = <View style={object2} />;
|
||||
r8 = <View {...viewBindingProps}>{items4}</View>;
|
||||
}
|
||||
items3[1] = r8;
|
||||
if (r20) {
|
||||
var viewBindingProps = {style: styles.buttonContainer};
|
||||
items5 = [<Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.riu2R5)} onPress={onPress_84738} />];
|
||||
object3 = {};
|
||||
object3.height = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items5[1] = <View style={object3} />;
|
||||
r8 = <View {...viewBindingProps}>{items5}</View>;
|
||||
} else {
|
||||
r8 = r20;
|
||||
}
|
||||
items3[2] = r8;
|
||||
r8 = guild != null || property != null;
|
||||
if (r8) {
|
||||
jsxRuntimeEnv0_22Binding2 = jsxRuntimeEnv0_22;
|
||||
items6 = [((FormDivider) => <FormDivider style={styles.divider} />)((require(7972) /* metro dependency 7972: native */).FormDivider)];
|
||||
ExpressionGuildDetails = importDefault(8641) /* metro dependency 8641: ExpressionGuildDetails */;
|
||||
var defaultImport4Props = {guild: property ?? guild, showingJoinGuildCta: r20, hasJoinedGuild: value5};
|
||||
string = intl.string;
|
||||
r20 = value5 ? Reflect.apply(string, intl, [t.kx6pEG]) : Reflect.apply(string, intl, [t.pDE7Gb]);
|
||||
defaultImport4Props.title = r20;
|
||||
items6[1] = <ExpressionGuildDetails {...defaultImport4Props} />;
|
||||
r8 = <>{items6}</>;
|
||||
}
|
||||
items3[3] = r8;
|
||||
r6 = r6 && value5;
|
||||
if (r6) {
|
||||
jsxRuntimeEnv0_22Binding3 = jsxRuntimeEnv0_22;
|
||||
items7 = [((FormDivider) => <FormDivider style={styles.divider} />)((require(7972) /* metro dependency 7972: native */).FormDivider)];
|
||||
var viewBindingProps = {style: styles.favoriteContainer};
|
||||
object4 = {};
|
||||
string = intl.string;
|
||||
r17 = isFavorite ? Reflect.apply(string, intl, [t.XhzKyF]) : Reflect.apply(string, intl, [t.kWmiPW]);
|
||||
object4.text = r17;
|
||||
value = 'primary';
|
||||
r17 = isFavorite ? 'tertiary' : value;
|
||||
object4.variant = r17;
|
||||
object4.size = 'md';
|
||||
object4.onPress = handleFavorite;
|
||||
items7[1] = <View {...viewBindingProps}><Button {...object4} /></View>;
|
||||
value = <>{items7}</>;
|
||||
r6 = value;
|
||||
}
|
||||
items3[4] = r6;
|
||||
value = <>{items3}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function UnavailableStickerDetail({renderableSticker, channel}) { // fn#84740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:7035, offset: 0x01f55a44, size: 758 bytes, params: 2, frame: 32
|
||||
const styles = useStyles();
|
||||
const canUseCustomStickersEverywhere2 = (importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseCustomStickersEverywhere(UserStore.getCurrentUser());
|
||||
const env0_1 = env0_5.useMemo(function() {
|
||||
return {page: channel.guild_id != null ? AnalyticsPages.GUILD_CHANNEL : AnalyticsPages.DM_CHANNEL,
|
||||
section: AnalyticsSections.STICKER_POPOUT};
|
||||
}, [channel.guild_id]);
|
||||
const defaultImport2 = importDefault(6796) /* metro dependency 6796: TidaWebformExperiment */;
|
||||
const useExperiment = defaultImport2.useExperiment;
|
||||
const tidaWebformEnabled = Reflect.apply(useExperiment, defaultImport2, [{location: 'StickerDetailActionSheet'},
|
||||
{autoTrackExposure: false}]).tidaWebformEnabled;
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
let r5 = tidaWebformEnabled && DeveloperMode.useSetting();
|
||||
const stickerAssetUrl = (require(4643) /* metro dependency 4643: StickersUtils */).getStickerAssetUrl(renderableSticker);
|
||||
const value5 = env0_5.useCallback(_fun84742, [stickerAssetUrl]);
|
||||
const items2 = [((Component) => <Component sticker={renderableSticker} size={48} />)(importDefault(10970) /* metro dependency 10970: Sticker */)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="heading-md/extrabold" color="mobile-text-heading-primary">{renderableSticker.name}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <View style={styles.guildEmojiDescription}>{text}<TextWithIOSLinkWorkaround style={styles.description} variant="text-sm/medium">{canUseCustomStickersEverywhere2 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vZaScH) : intl.format((require(1244) /* metro dependency 1244: indexNative */).t.hGWuxU,
|
||||
{openPremiumSettings: openPremiumSettings})}</TextWithIOSLinkWorkaround></View>;
|
||||
r5 = r5 && stickerAssetUrl != null && <Pressable accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PdRCRg)} style={styles.moreMenuIcon} onPress={value5}>{((MoreHorizontalIcon) => <MoreHorizontalIcon color={(importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT} />)((require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon)}</Pressable>;
|
||||
items2[2] = r5;
|
||||
return (
|
||||
<View style={styles.guildEmojiTopContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function StickerDetailActionSheet({renderableSticker, channel, chatInputRef}) { // fn#84744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:8425, offset: 0x01f55e48, size: 365 bytes, params: 2, frame: 23
|
||||
var r0;
|
||||
var r6;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
const styles = useStyles();
|
||||
const value3 = env0_4((require(11049) /* metro dependency 11049: StickersHooks */).useStickerForRenderableSticker(renderableSticker,
|
||||
true), 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
const activityIndicator = <ActivityIndicator size="large" />;
|
||||
if (property != null) {
|
||||
if (property == null) {
|
||||
r6 = activityIndicator;
|
||||
} else {
|
||||
moduleValue2 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (moduleValue2.isStandardSticker(property)) {
|
||||
r0 = <StandardStickerDetail sticker={property} channel={channel} chatInputRef={chatInputRef} />;
|
||||
} else {
|
||||
moduleValue3 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
r0 = moduleValue3.isGuildSticker(property) ? <GuildStickerDetail sticker={property} channel={channel} /> : activityIndicator;
|
||||
}
|
||||
r6 = r0;
|
||||
}
|
||||
} else if (property2) {
|
||||
r6 = <UnavailableStickerDetail renderableSticker={renderableSticker} channel={channel} />;
|
||||
} else if (property == null) {
|
||||
r6 = activityIndicator;
|
||||
} else {
|
||||
moduleValue2 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (moduleValue2.isStandardSticker(property)) {
|
||||
r0 = <StandardStickerDetail sticker={property} channel={channel} chatInputRef={chatInputRef} />;
|
||||
} else {
|
||||
moduleValue3 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
r0 = moduleValue3.isGuildSticker(property) ? <GuildStickerDetail sticker={property} channel={channel} /> : activityIndicator;
|
||||
}
|
||||
r6 = r0;
|
||||
}
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
return (
|
||||
<BottomSheet startExpanded>
|
||||
<View style={styles.content}>
|
||||
{r6}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84716() { // fn#84716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:1625, offset: 0x01f54809, size: 97 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (stickerPack != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.OPEN_POPOUT, {location: env0_9, type: 'Sticker Upsell Sheet',
|
||||
sticker_pack_id: stickerPack.id});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84717(a0) { // fn#84717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:1769, offset: 0x01f5486a, size: 518 bytes, params: 2, frame: 26
|
||||
var r7;
|
||||
var object;
|
||||
const env0_0 = a0;
|
||||
let binding = env0_6;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r13 = binding ? Reflect.apply(format, intl, [t.auckXz, {stickerPackName: a0.name}]) : Reflect.apply(format,
|
||||
intl, [t.OzB6e3, {stickerPackName: a0.name}]);
|
||||
const jsxRuntimeEnv1_22Binding = jsxRuntimeEnv1_22;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text variant="heading-md/extrabold" color="mobile-text-heading-primary">{name}</Text>];
|
||||
items2[1] = <Text style={styles.description} variant="text-sm/medium">{r13}</Text>;
|
||||
const StickerPickerListRow = importDefault(11063) /* metro dependency 11063: StickerPickerListRow */;
|
||||
const stickers = a0.stickers;
|
||||
const slice = stickers.slice;
|
||||
binding = env0_8;
|
||||
items2[2] = <StickerPickerListRow containerWidth={env0_7} stickers={Reflect.apply(slice, stickers, [0,
|
||||
binding])} rowSize={binding} />;
|
||||
if (env0_6) {
|
||||
object = {};
|
||||
object.height = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
r7 = <View style={object} />;
|
||||
} else {
|
||||
r7 = null;
|
||||
}
|
||||
items2[3] = r7;
|
||||
items2[4] = env0_6 && ((Button) => <Button variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GPy3Ar)} onPress={onPress_84718} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button);
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84721(a0) { // fn#84721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:3022, offset: 0x01f55473, size: 159 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(11049) /* metro dependency 11049: StickersHooks */).useFavoriteStickerIds().includes(a0);
|
||||
const binding = env1_5;
|
||||
let useCallback = binding.useCallback;
|
||||
value = Reflect.apply(useCallback, binding, [_fun84722, [styles]]);
|
||||
useCallback = binding.useCallback;
|
||||
return {isFavorite: value3, handleFavorite: Reflect.apply(useCallback, binding, [_fun84723, [value3, a0, value]]),
|
||||
renderStarIcon: value};
|
||||
}
|
||||
|
||||
function _fun84727() { // fn#84727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:3868, offset: 0x01f55720, size: 113 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_6 != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[17]);
|
||||
defaultImport.openLazy(require(dependencyMap[35])(dependencyMap[34], dependencyMap.paths),
|
||||
'StickerOptionsActionSheet', {stickerUrl: env0_6}, 'stack');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84729() { // fn#84729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:4201, offset: 0x01f557da, size: 31 bytes, params: 1, frame: 10
|
||||
if (!env0_4) {
|
||||
_fun84730()();
|
||||
}
|
||||
}
|
||||
|
||||
function GuildStickerDetailOpenPremiumSettings() { // fn#84734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:4951, owner: GuildStickerDetail.openPremiumSettings, offset: 0x01f55880, size: 165 bytes, params: 1, frame: 18
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const PREMIUM_PROMOTION_OPENED = AnalyticEvents.PREMIUM_PROMOTION_OPENED;
|
||||
Reflect.apply(track, defaultImport2, [PREMIUM_PROMOTION_OPENED, {location_page: env0_7.page,
|
||||
location_section: env0_7.section}]);
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const PREMIUM = UserSettingsSections.PREMIUM;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: PREMIUM, params: {analyticsLocation: env0_7}}]);
|
||||
}
|
||||
|
||||
function _fun84736() { // fn#84736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:5325, offset: 0x01f5593a, size: 97 bytes, params: 1, frame: 15
|
||||
var defaultImport;
|
||||
var track;
|
||||
var OPEN_POPOUT;
|
||||
var object2;
|
||||
const {popoutAnalyticsConfig, popoutType} = env0_9.current;
|
||||
if (env0_4) {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
object2 = {type: popoutType};
|
||||
copyDataProperties(object2, popoutAnalyticsConfig, popoutType);
|
||||
Reflect.apply(track, defaultImport, [OPEN_POPOUT, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function GuildStickerDetailOnPress() { // fn#84737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:6167, owner: GuildStickerDetail.onPress, offset: 0x01f5599b, size: 39 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(11069) /* metro dependency 11069: openStickersPremiumUpsellAlert */)(env0_7);
|
||||
}
|
||||
|
||||
function GuildStickerDetailOnPress_84738() { // fn#84738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:6346, owner: GuildStickerDetail.onPress, offset: 0x01f559c2, size: 85 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var id;
|
||||
var value;
|
||||
if (env0_2 != null) {
|
||||
id = env0_2.id;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value = value.joinGuild(id);
|
||||
value.then(_fun84739);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84742() { // fn#84742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:7460, offset: 0x01f55d3a, size: 113 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[17]);
|
||||
defaultImport.openLazy(require(dependencyMap[35])(dependencyMap[34], dependencyMap.paths),
|
||||
'StickerOptionsActionSheet', {stickerUrl: env0_2}, 'stack');
|
||||
}
|
||||
}
|
||||
|
||||
function UnavailableStickerDetailOpenPremiumSettings() { // fn#84743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:8001, owner: UnavailableStickerDetail.openPremiumSettings, offset: 0x01f55dab, size: 157 bytes, params: 1, frame: 18
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const PREMIUM_PROMOTION_OPENED = AnalyticEvents.PREMIUM_PROMOTION_OPENED;
|
||||
const binding = env0_1;
|
||||
Reflect.apply(track, defaultImport2, [PREMIUM_PROMOTION_OPENED, {location_page: binding.page,
|
||||
location_section: binding.section}]);
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const PREMIUM = UserSettingsSections.PREMIUM;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: PREMIUM, params: {analyticsLocation: binding}}]);
|
||||
}
|
||||
|
||||
function onPress_84718() { // fn#84718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:2324, offset: 0x01f54a70, size: 188 bytes, params: 1, frame: 18
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var value4;
|
||||
const AnalyticsPopoutType = (require(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */).AnalyticsPopoutType;
|
||||
let value = environment.__proto__.__proto__;
|
||||
(require(11065) /* metro dependency 11065: showStickerDetailActionSheet */).hideStickerDetailActionSheet();
|
||||
if (env0_0 == null) {
|
||||
defaultImport = importDefault(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */;
|
||||
value4 = environment.__proto__;
|
||||
defaultImport({analyticsLocation: env1_9, analyticsPopoutType: AnalyticsPopoutType.STICKER_PACK_UPSELL,
|
||||
stickerPack: env0_0});
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
if (env1_6) {
|
||||
if (chatInputRef != null) {
|
||||
value = require(11051) /* metro dependency 11051: StickersUtils */;
|
||||
value.openStickerPickerToPackId(chatInputRef, pack_id);
|
||||
} else {
|
||||
defaultImport = importDefault(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */;
|
||||
value4 = environment.__proto__;
|
||||
defaultImport({analyticsLocation: env1_9, analyticsPopoutType: AnalyticsPopoutType.STICKER_PACK_UPSELL,
|
||||
stickerPack: env0_0});
|
||||
}
|
||||
} else {
|
||||
defaultImport = importDefault(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */;
|
||||
value4 = environment.__proto__;
|
||||
defaultImport({analyticsLocation: env1_9, analyticsPopoutType: AnalyticsPopoutType.STICKER_PACK_UPSELL,
|
||||
stickerPack: env0_0});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84722(a0) { // fn#84722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:3100, offset: 0x01f55512, size: 138 bytes, params: 2, frame: 15
|
||||
const object2 = {};
|
||||
const stylesBinding = styles;
|
||||
copyDataProperties(object2, stylesBinding.starIcon, undefined);
|
||||
if (a0) {
|
||||
copyDataProperties(object2, stylesBinding.starIconSelected, undefined);
|
||||
} else {
|
||||
copyDataProperties(object2, stylesBinding.starIconUnselected, undefined);
|
||||
}
|
||||
return ((Component) => <Component style={object2} />)(a0 ? (require(8633) /* metro dependency 8633: StarIcon */).StarIcon : (require(8635) /* metro dependency 8635: StarOutlineIcon */).StarOutlineIcon);
|
||||
}
|
||||
|
||||
function _fun84723() { // fn#84723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:3279, offset: 0x01f5559c, size: 216 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const closure = content_84724;
|
||||
const binding = env0_2;
|
||||
const stickersActionCreatorsModule = require(11050) /* metro dependency 11050: StickersActionCreators */;
|
||||
if (binding) {
|
||||
stickersActionCreatorsModule.unfavoriteSticker(env0_0);
|
||||
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
value.open({key: 'STICKER_UNFAVORITED', icon: icon_84725, content: closure});
|
||||
} else {
|
||||
stickersActionCreatorsModule.favoriteSticker(env0_0);
|
||||
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
value.open({key: 'STICKER_FAVORITED', icon: icon_84726, content: closure});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84730() { // fn#84730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:4212, offset: 0x01f557f9, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_3(_fun84732);
|
||||
return fetchDiscoverableGuild;
|
||||
}
|
||||
|
||||
function _fun84739() { // fn#84739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:6402, offset: 0x01f55a17, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value.transitionToGuildSync(id);
|
||||
}
|
||||
|
||||
function content_84724() { // fn#84724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:3323, offset: 0x01f55674, size: 154 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const binding = env1_2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return (
|
||||
<Text style={{'marginLeft': 8, 'marginTop': 2}} variant="text-md/bold">
|
||||
{binding ? Reflect.apply(string, intl, [t.in1rga]) : Reflect.apply(string, intl, [t.mE2e8A])}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function* _fun84732() { // fn#84732, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11252:4232, offset: 0x01f55828, size: 88 bytes, params: 1, frame: 13
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
yield env4_1(env4_2[38])(require.id);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
env3_3(value);
|
||||
env3_5(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user