Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/* Metro module 8242; source: modules/stickers/native/NativeLottieView.tsx; dependencies: [31, 27, 33, 477, 8243, 116, 2] */
|
||||
function _fun65895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:6, offset: 0x01be487d, size: 322 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(31) /* metro dependency 31 */;
|
||||
const env0_0 = value.useEffect;
|
||||
const env0_1 = value.useRef;
|
||||
const env0_2 = importDefault(31) /* metro dependency 31 */;
|
||||
const requireNativeComponent = (require(27) /* metro dependency 27 */).requireNativeComponent;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
if (Reflect.apply((require(477) /* metro dependency 477: PlatformUtils */).isAndroid, value, [])) {
|
||||
value = importDefault(8243) /* metro dependency 8243: LottieNodeNativeComponent */;
|
||||
} else {
|
||||
value = requireNativeComponent('NativeLottieNode');
|
||||
}
|
||||
const env0_5 = (importDefault(116) /* metro dependency 116 */)({supportedCommands: ['setup']});
|
||||
object2 = {LOOP: 0};
|
||||
object2[0] = 'LOOP';
|
||||
object2.STILL = 1;
|
||||
object2[1] = 'STILL';
|
||||
object2.ONCE = 2;
|
||||
object2[2] = 'ONCE';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/NativeLottieView.tsx');
|
||||
exports.default = _default_65896;
|
||||
exports.NativeLottieRenderMode = object2;
|
||||
}
|
||||
|
||||
function _default_65896({asset, url, width, height, opacity, renderMode = env0_6.LOOP, animating, accessibilityLabel}) { // fn#65896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:377, offset: 0x01be49bf, size: 241 bytes, params: 2, frame: 23
|
||||
opacity = opacity === undefined ? 1 : opacity;
|
||||
animating = animating === undefined || animating;
|
||||
const value2 = undefined.useRef(null);
|
||||
const env0_3 = useRef({asset: asset, url: url, width: width, height: height, animating: animating,
|
||||
accessibilityLabel: accessibilityLabel});
|
||||
useEffect(_fun65897);
|
||||
useEffect(_fun65898, [renderMode]);
|
||||
return ((Component) => <Component ref={value2} style={{width: width, height: height, opacity: opacity}} />)(env0_4);
|
||||
}
|
||||
|
||||
function _fun65898() { // fn#65898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8427:611, offset: 0x01be4ac5, size: 202 bytes, params: 1, frame: 25
|
||||
var value5;
|
||||
var binding;
|
||||
var {asset, url, width, height, animating, accessibilityLabel} = env0_3.current;
|
||||
var {asset, url, width, height, renderMode, animating, accessibilityLabel} = {asset: assetBinding, url: urlBinding,
|
||||
width: widthBinding, height: heightBinding, renderMode: env0_0, animating: animatingBinding,
|
||||
accessibilityLabel: accessibilityLabelBinding};
|
||||
if (urlBinding !== '' && widthBinding !== 0 && heightBinding !== 0) {
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_5;
|
||||
binding.setup(env0_1.current, assetBinding, urlBinding, widthBinding, heightBinding, renderMode,
|
||||
animatingBinding,
|
||||
accessibilityLabelBinding);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/* Metro module 10970; source: modules/stickers/native/Sticker.tsx; dependencies: [31, 27, 1310, 33, 4785, 4643, 1244, 8242, 10971, 5475, 4002, 6740, 6741, 2] */
|
||||
function _fun84022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11156:6, offset: 0x01f3482e, size: 193 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getStickerAssetUrl_84023;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).PixelRatio;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/Sticker.tsx');
|
||||
exports.default = _default_84024;
|
||||
exports.getStickerAssetUrl = closure;
|
||||
}
|
||||
|
||||
function getStickerAssetUrl_84023(a0, a1, a2) { // fn#84023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11156:149, offset: 0x01f348ef, size: 258 bytes, params: 4, frame: 19
|
||||
var r1;
|
||||
var moduleValue;
|
||||
var getStickerAssetUrl;
|
||||
var object2;
|
||||
const format_type = a0.format_type;
|
||||
var value;
|
||||
const StickerFormat = (require(4785) /* metro dependency 4785: StickersTypes */).StickerFormat;
|
||||
const LOTTIE = StickerFormat.LOTTIE;
|
||||
if (format_type === LOTTIE) {
|
||||
value = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
value = value.getStickerAssetUrl(a0);
|
||||
r1 = value;
|
||||
} else if (a0.format_type === StickerFormat.APNG) {
|
||||
value = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
value = value.getStickerAssetUrl(a0, {isPreview: !a2, size: a1});
|
||||
r1 = value;
|
||||
} else {
|
||||
moduleValue = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
getStickerAssetUrl = moduleValue.getStickerAssetUrl;
|
||||
object2 = {isPreview: !a2};
|
||||
object2.size = PixelRatio.getPixelSizeForLayoutSize(a1);
|
||||
r1 = Reflect.apply(getStickerAssetUrl, moduleValue, [a0, object2]);
|
||||
}
|
||||
return r1 ?? '';
|
||||
}
|
||||
|
||||
function _default_84024({sticker, size, animated, opaque}) { // fn#84024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11156:476, offset: 0x01f349f1, size: 691 bytes, params: 2, frame: 25
|
||||
var moduleValue;
|
||||
var id;
|
||||
var moduleValue2;
|
||||
var defaultImport;
|
||||
var moduleValue3;
|
||||
var NativeLottieView;
|
||||
var NativeLottieRenderMode;
|
||||
animated = animated === undefined || animated;
|
||||
opaque = opaque === undefined || opaque;
|
||||
const r7 = opaque ? 1 : 0.3;
|
||||
const stickerAssetUrl_84023 = getStickerAssetUrl_84023(sticker, size, animated);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const rk6pOw = (require(1244) /* metro dependency 1244: indexNative */).t.rk6pOw;
|
||||
let object2 = {};
|
||||
object2.stickerName = sticker.name;
|
||||
const value3 = Reflect.apply(formatToPlainString, intl, [rk6pOw, object2]);
|
||||
let format_type = sticker.format_type;
|
||||
const StickerFormat = (require(4785) /* metro dependency 4785: StickersTypes */).StickerFormat;
|
||||
const LOTTIE = StickerFormat.LOTTIE;
|
||||
if (format_type === LOTTIE) {
|
||||
NativeLottieView = importDefault(8242) /* metro dependency 8242: NativeLottieView */;
|
||||
var defaultImport2Props = {url: stickerAssetUrl_84023, asset: sticker.id ?? '', width: size, height: size,
|
||||
opacity: r7};
|
||||
NativeLottieRenderMode = (require(8242) /* metro dependency 8242: NativeLottieView */).NativeLottieRenderMode;
|
||||
defaultImport2Props.renderMode = animated ? NativeLottieRenderMode.LOOP : NativeLottieRenderMode.STILL;
|
||||
defaultImport2Props.accessibilityLabel = value3;
|
||||
return <NativeLottieView {...defaultImport2Props} />;
|
||||
}
|
||||
format_type = sticker.format_type;
|
||||
const APNG = StickerFormat.APNG;
|
||||
if (format_type !== APNG) {
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImportProps = {resizeMode: 'contain', style: {height: size, width: size, opacity: r7}};
|
||||
moduleValue3 = require(4002) /* metro dependency 4002: shared */;
|
||||
defaultImportProps.placeholder = moduleValue3.isThemeDark(ThemeStore.theme) ? importDefault(6740) /* metro dependency 6740 */ : importDefault(6741) /* metro dependency 6741 */;
|
||||
defaultImportProps.source = {uri: stickerAssetUrl_84023};
|
||||
defaultImportProps.accessible = true;
|
||||
defaultImportProps.accessibilityLabel = value3;
|
||||
return ((Component) => <Component {...defaultImportProps} />)(defaultImport);
|
||||
}
|
||||
if ('type' in sticker) {
|
||||
moduleValue = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (moduleValue.isGuildSticker(sticker)) {
|
||||
object2 = {};
|
||||
object2.style = {height: size, width: size, opacity: r7};
|
||||
object2.url = stickerAssetUrl_84023;
|
||||
id = sticker.id;
|
||||
moduleValue2 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
object2.name = '' + id + '.' + moduleValue2.getStickerExtensionFromFormatType(sticker.format_type);
|
||||
object2.accessibilityLabel = value3;
|
||||
return ((Component) => <Component {...object2} />)(importDefault(10971) /* metro dependency 10971: NativeAPNGView */);
|
||||
}
|
||||
defaultImport = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImportProps = {resizeMode: 'contain', style: {height: size, width: size, opacity: r7}};
|
||||
moduleValue3 = require(4002) /* metro dependency 4002: shared */;
|
||||
defaultImportProps.placeholder = moduleValue3.isThemeDark(ThemeStore.theme) ? importDefault(6740) /* metro dependency 6740 */ : importDefault(6741) /* metro dependency 6741 */;
|
||||
defaultImportProps.source = {uri: stickerAssetUrl_84023};
|
||||
defaultImportProps.accessible = true;
|
||||
defaultImportProps.accessibilityLabel = value3;
|
||||
return ((Component) => <Component {...defaultImportProps} />)(defaultImport);
|
||||
}
|
||||
return ((Component) => <Component style={{height: size, width: size,
|
||||
opacity: r7}} url={stickerAssetUrl_84023} name={'' + sticker.id + '.' + (require(4643) /* metro dependency 4643: StickersUtils */).getStickerExtensionFromFormatType(sticker.format_type)} accessibilityLabel={value3} />)(importDefault(10971) /* metro dependency 10971: NativeAPNGView */);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 11067; source: modules/stickers/native/StickerOptionsActionSheet.tsx; dependencies: [31, 33, 6797, 3856, 4080, 6805, 6231, 6238, 4056, 1244, 2] */
|
||||
function _fun84745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11253:6, offset: 0x01f55fb5, size: 142 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(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerOptionsActionSheet.tsx');
|
||||
exports.default = StickerOptionsActionSheet;
|
||||
}
|
||||
|
||||
function StickerOptionsActionSheet({stickerUrl}) { // fn#84746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11253:218, offset: 0x01f56043, size: 244 bytes, params: 2, frame: 23
|
||||
const value2 = env0_3.useCallback(_fun84747, [stickerUrl]);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object = {};
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
object.icon = <LinkIcon />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const B1ubHx = (require(1244) /* metro dependency 1244: indexNative */).t.B1ubHx;
|
||||
object.label = Reflect.apply(string, intl, [B1ubHx]);
|
||||
object.onPress = value2;
|
||||
return (
|
||||
<ActionSheet>
|
||||
<TableRowGroup hasIcons>
|
||||
<TableRow {...object} />
|
||||
</TableRowGroup>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 11061; source: modules/stickers/native/StickerPackBanner.tsx; dependencies: [31, 27, 33, 4643, 2] */
|
||||
function _fun84685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11247:6, offset: 0x01f53280, size: 162 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 value = require(27) /* metro dependency 27 */;
|
||||
const env0_2 = value.Image;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPackBanner.tsx');
|
||||
exports.default = _default_84686;
|
||||
}
|
||||
|
||||
function _default_84686({containerStyle, style, stickerPack}) { // fn#84686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11247:156, offset: 0x01f53322, size: 132 bytes, params: 2, frame: 19
|
||||
const stickerPackBannerAssetUrl = (require(4643) /* metro dependency 4643: StickersUtils */).getStickerPackBannerAssetUrl(stickerPack,
|
||||
1024);
|
||||
return stickerPackBannerAssetUrl == null ? null : <View style={containerStyle}><Image source={{uri: stickerPackBannerAssetUrl}} style={style} resizeMode="contain" /></View>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/* Metro module 11057; source: modules/stickers/native/StickerPackDetailActionSheet.tsx; dependencies: [57, 31, 11028, 661, 6276, 33, 4501, 1478, 1585, 22, 683, 6275, 11058, 11062, 6515, 6277, 11063, 5278, 10970, 2] */
|
||||
function _fun84670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:6, offset: 0x01f525e8, size: 370 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const stickerPickerConstantsModule = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const env0_5 = stickerPickerConstantsModule.MIN_MARGIN;
|
||||
const env0_6 = stickerPickerConstantsModule.STICKER_SIZE;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_8 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value3.jsx;
|
||||
const env0_10 = value3.Fragment;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({focusedStickerPreviewContainer: {'position': 'absolute',
|
||||
'left': 0, 'top': 0, 'height': '100%', 'width': '100%', 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'backgroundColor': 'rgba(0, 0, 0, 0.85)'}, header: {'marginHorizontal': 16, 'marginVertical': 8,
|
||||
'backgroundColor': 'transparent', height: undefined}, stickers: {'paddingHorizontal': 16, 'marginBottom': 16},
|
||||
popoutContainer: {'position': 'absolute', 'bottom': 50}});
|
||||
value = value.memo(StickerPackDetailActionSheet);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPackDetailActionSheet.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheet({stickerPack, analyticsPopoutType, onClose}) { // fn#84671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:659, offset: 0x01f5275a, size: 882 bytes, params: 2, frame: 35
|
||||
var r5;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
var env0_3 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_5 = value5[1];
|
||||
const env0_6 = binding.useRef(null);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value7 = Reflect.apply(floor, Math, [Math2.min(ACTION_SHEET_MAX_WIDTH, width) / (STICKER_SIZE + MIN_MARGIN)]);
|
||||
let defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const value8 = defaultImport.chunk(stickerPack.stickers, value7);
|
||||
const env0_8 = binding.useRef(onClose);
|
||||
const closure = onClose_84673;
|
||||
binding.useEffect(_fun84675, [onClose]);
|
||||
binding.useEffect(function() {
|
||||
return _fun84677;
|
||||
}, []);
|
||||
binding.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[10]);
|
||||
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
defaultImport.track(OPEN_POPOUT, {type: analyticsPopoutType, sticker_pack_id: stickerPack.id});
|
||||
}, [analyticsPopoutType, stickerPack.id]);
|
||||
const jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object = {'scrollable': true, 'startExpanded': true, 'handleDisabled': true};
|
||||
const StickerPackHeader = importDefault(11058) /* metro dependency 11058: StickerPackHeader */;
|
||||
const stickerPackInformationPopoutModule = require(11062) /* metro dependency 11062: StickerPackInformationPopout */;
|
||||
const stickerPackHeader = <StickerPackHeader stickerPack={stickerPack} style={styles.header} onPress={stickerPackInformationPopoutModule.doesStickerPackHavePopoutInformation(stickerPack) ? closure : undefined} withBanner withDescription />;
|
||||
const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar;
|
||||
object.header = <>{stickerPackHeader}<ActionSheetHeaderBar variant="floating" /></>;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const bottomSheet = <BottomSheet {...object}><BottomSheetScrollView style={styles.stickers} contentContainerStyle={{paddingBottom: 32 + bottom}}>{value8.map(_fun84679)}</BottomSheetScrollView></BottomSheet>;
|
||||
const r7 = property != null && ((PressableOpacity) => <PressableOpacity accessibilityRole="none" style={styles.focusedStickerPreviewContainer} onPress={onPress_84680}>{((Component) => <Component sticker={property} size={128} />)(importDefault(10970) /* metro dependency 10970: Sticker */)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity);
|
||||
if (property2) {
|
||||
value = importDefault(11062) /* metro dependency 11062: StickerPackInformationPopout */;
|
||||
value = ((Component) => <Component stickerPack={stickerPack} style={styles.popoutContainer} onClose={closure} />)(value);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = property2;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{bottomSheet}
|
||||
{r7}
|
||||
{r5}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheetOnClose() { // fn#84673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1026, owner: StickerPackDetailActionSheet.onClose, offset: 0x01f52acc, size: 104 bytes, params: 1, frame: 14
|
||||
if (env0_6.current != null) {
|
||||
global.clearTimeout(env0_6.current);
|
||||
}
|
||||
const binding = env0_4;
|
||||
env0_5(!binding);
|
||||
if (!binding) {
|
||||
env0_6.current = global.setTimeout(_fun84674, 4000);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84675() { // fn#84675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1150, offset: 0x01f52b34, size: 21 bytes, params: 1, frame: 2
|
||||
env0_8.current = onClose;
|
||||
}
|
||||
|
||||
function _fun84676() { // fn#84676, offset: 0x01f52b49, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun84677;
|
||||
}
|
||||
|
||||
function _fun84679(a0, a1) { // fn#84679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1781, offset: 0x01f52bc5, size: 84 bytes, params: 3, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(11063) /* metro dependency 11063: StickerPickerListRow */;
|
||||
const binding = env0_7;
|
||||
return ((Component) => <Component containerWidth={binding} stickers={a0} rowSize={binding} onPressSticker={StickerPackDetailActionSheetOnPressSticker} nativeRow={false} key={a1} />)(value);
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheetOnPress() { // fn#84680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:2002, owner: StickerPackDetailActionSheet.onPress, offset: 0x01f52c19, size: 18 bytes, params: 1, frame: 11
|
||||
return env0_3(null);
|
||||
}
|
||||
|
||||
function _fun84677() { // fn#84677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1191, offset: 0x01f52b54, size: 38 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return env1_8.current?.();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Metro module 11058; source: modules/stickers/native/StickerPackHeader.tsx; dependencies: [31, 27, 11028, 33, 4501, 697, 4573, 4643, 1305, 11059, 11060, 1244, 11061, 5278, 2] */
|
||||
function _fun84681(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11244:6, offset: 0x01f52c2b, size: 543 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const {PADDING_HORIZONTAL, PADDING_VERTICAL} = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value3.jsx;
|
||||
const env0_5 = value3.jsxs;
|
||||
const env0_6 = value3.Fragment;
|
||||
const value4 = 2 * PADDING_VERTICAL;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {paddingTop: PADDING_VERTICAL, paddingHorizontal: PADDING_HORIZONTAL, height: 36 + value4,
|
||||
justifyContent: 'center', overflow: 'hidden'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.section = object4;
|
||||
object3.label = {flex: -1};
|
||||
object3.header = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
|
||||
object3.bannerContainer = {'aspectRatio': 3.824074074074074, 'marginVertical': -8, 'width': '100%'};
|
||||
object3.banner = {height: '100%'};
|
||||
object3.headline = {'height': 20, 'flex': 1, 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const object6 = {'marginLeft': 8, 'height': 16, 'width': 16, 'borderRadius': null, 'backgroundColor': null,
|
||||
'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.backgroundColor = BORDER_SUBTLE;
|
||||
object3.iconContainer = object6;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object3.icon = {color: INTERACTIVE_TEXT_DEFAULT};
|
||||
object3.animatedIcon = {'position': 'relative', 'left': 1};
|
||||
object3.premiumIcon = {'position': 'relative', 'left': -1};
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
value = value.memo(_fun84682);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPackHeader.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun84682({stickerPack, style, onPress, withBanner, withDescription}) { // fn#84682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11244:979, offset: 0x01f52e4a, size: 938 bytes, params: 2, frame: 37
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
withBanner = !(withBanner === undefined) && withBanner;
|
||||
withDescription = !(withDescription === undefined) && withDescription;
|
||||
const styles = useStyles();
|
||||
let jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text style={styles.label} lineClamp={1} variant="text-md/bold" color="mobile-text-heading-primary">{stickerPack.name}</Text>;
|
||||
const r17 = (require(4643) /* metro dependency 4643: StickersUtils */).isStickerPackAnimated(stickerPack) && <View style={styles.iconContainer}><Icon source={importDefault(11059) /* metro dependency 11059 */} style={styles.animatedIcon} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.EXTRA_SMALL} color={styles.icon.color} /></View>;
|
||||
const iconProps = {source: importDefault(11060) /* metro dependency 11060 */, style: styles.premiumIcon};
|
||||
const Icon3 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon3.Sizes;
|
||||
const EXTRA_SMALL = Sizes.EXTRA_SMALL;
|
||||
iconProps.size = EXTRA_SMALL;
|
||||
iconProps.color = styles.icon.color;
|
||||
const view = <View style={styles.header}><View style={styles.headline}>{text}{r17}<View style={styles.iconContainer}><Icon {...iconProps} /></View></View></View>;
|
||||
const r8 = withDescription && stickerPack.description != null && <Text variant="text-sm/medium">{stickerPack.description}</Text>;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const fragment = <>{view}{r8}<Text lineClamp={1} variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0S3JpO'],
|
||||
{numStickers: stickerPack.stickers.length})}</Text></>;
|
||||
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const items3 = [withBanner && ((Component) => <Component stickerPack={stickerPack} containerStyle={styles.bannerContainer} style={styles.banner} />)(importDefault(11061) /* metro dependency 11061: StickerPackBanner */)];
|
||||
items3[1] = onPress != null ? ((PressableOpacity) => <PressableOpacity style={[styles.section,
|
||||
style]} onPress={onPress} accessibilityRole="header">{fragment}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity) : <View style={[styles.section,
|
||||
style]}>{fragment}</View>;
|
||||
return (
|
||||
<>
|
||||
{items3}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 11062; source: modules/stickers/native/StickerPackInformationPopout.tsx; dependencies: [31, 27, 33, 4501, 697, 4643, 1244, 4573, 5278, 2] */
|
||||
function _fun84687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11248:6, offset: 0x01f533a6, size: 445 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_2 = value.View;
|
||||
const env0_3 = value.FlatList;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'backgroundColor': null, 'width': '90%', 'marginHorizontal': '5%', 'padding': 16};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object.shadowColor = BLACK;
|
||||
object.shadowOffset = {'width': 2, 'height': 2};
|
||||
object.shadowOpacity = 0.25;
|
||||
object.shadowRadius = 5;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{informationContainer: object,
|
||||
headerContainer: {'flexDirection': 'row', 'justifyContent': 'space-between', 'marginBottom': 8},
|
||||
informationHeader: {lineHeight: 20}, informationContentContainer: {flexDirection: 'row'},
|
||||
informationContent: {lineHeight: 20}, informationContentDescription: {'flex': 1, 'marginLeft': 5}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPackInformationPopout.tsx');
|
||||
exports.default = _default_84689;
|
||||
exports.doesStickerPackHavePopoutInformation = function(a0) {
|
||||
return generateListData(a0).length > 0;
|
||||
};
|
||||
}
|
||||
|
||||
function generateListData(a0) { // fn#84688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11248:708, offset: 0x01f53563, size: 129 bytes, params: 2, frame: 17
|
||||
var push;
|
||||
var object2;
|
||||
var intl;
|
||||
const items2 = [];
|
||||
const stickersUtilsModule = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (stickersUtilsModule.isStickerPackAnimated(a0)) {
|
||||
push = items2.push;
|
||||
object2 = {key: 'animated'};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.W11rMa);
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _default_84689({stickerPack, onClose, style}) { // fn#84689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11248:849, offset: 0x01f535e4, size: 465 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const value2 = generateListData(stickerPack);
|
||||
const items2 = [styles.informationContainer, style];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const XDm6yN = (require(1244) /* metro dependency 1244: indexNative */).t.XDm6yN;
|
||||
const text = <Text style={styles.informationHeader} variant="text-md/semibold" color="mobile-text-heading-primary">{Reflect.apply(format,
|
||||
intl, [XDm6yN, {stickerPackName: stickerPack.name}])}</Text>;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<View style={styles.headerContainer}>
|
||||
{text}
|
||||
<PressableOpacity
|
||||
onPress={onClose}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
>
|
||||
<Text variant="text-md/bold" color="text-brand">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
</Text>
|
||||
</PressableOpacity>
|
||||
</View>
|
||||
<FlatList data={value2} renderItem={renderItem_84690} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_84689RenderItem({item}) { // fn#84690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11248:1458, owner: _default_84689.renderItem, offset: 0x01f537b5, size: 198 bytes, params: 2, frame: 22
|
||||
const value = environment.__proto__;
|
||||
const stylesBinding = styles;
|
||||
const informationContentContainer = stylesBinding.informationContentContainer;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={informationContentContainer}>
|
||||
<Text
|
||||
style={stylesBinding.informationContent}
|
||||
variant="text-md/medium"
|
||||
color="text-default"
|
||||
>
|
||||
{'•'}
|
||||
</Text>
|
||||
<Text
|
||||
style={[stylesBinding.informationContent, stylesBinding.informationContentDescription]}
|
||||
variant="text-md/medium"
|
||||
color="text-default"
|
||||
>
|
||||
{item.description}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/* Metro module 11048; source: modules/stickers/native/StickerPicker.tsx; dependencies: [57, 31, 27, 1878, 6583, 3832, 661, 33, 4501, 697, 683, 11049, 11051, 566, 6771, 6789, 11032, 690, 11055, 6943, 4643, 11056, 7882, 6796, 11065, 6984, 1244, 11075, 11076, 11081, 2] */
|
||||
function _fun84543(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:6, offset: 0x01f4f02f, size: 435 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.View;
|
||||
const env0_6 = value2.ActivityIndicator;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */;
|
||||
const STICKER_SEARCH_HEADER_HEIGHT = (require(3832) /* metro dependency 3832: StickersConstants */).STICKER_SEARCH_HEADER_HEIGHT;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.AnalyticEvents;
|
||||
const env0_10 = constantsModule.AnalyticsPages;
|
||||
const env0_11 = constantsModule.AnalyticsSections;
|
||||
const env0_12 = constantsModule.UpsellTypes;
|
||||
const env0_13 = constantsModule.ChatInputComponentViewedTypes;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value4.jsx;
|
||||
const env0_15 = value4.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const env0_16 = Reflect.apply(createStyles, createStylesModule, [{container: {flex: 1},
|
||||
header: {paddingVertical: PX_8}, loadingIndicator: {'alignItems': 'center', 'justifyContent': 'center',
|
||||
'flex': 1}, emptyState: {'marginTop': null, 'alignItems': 'center', 'justifyContent': 'center', 'flex': 1,
|
||||
marginTop: STICKER_SEARCH_HEADER_HEIGHT}}]);
|
||||
value = value.memo(StickerPicker);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPicker.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function StickerPicker({bottomSheetRef, bottomSheetIndex, channel, paddingTop, onPressSticker, stickerFormats, inPortalKeyboard}) { // fn#84544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:612, offset: 0x01f4f1e2, size: 1014 bytes, params: 2, frame: 49
|
||||
var r10;
|
||||
var SearchField;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
(require(11049) /* metro dependency 11049: StickersHooks */).useFetchStickerPacks();
|
||||
const value3 = (require(11051) /* metro dependency 11051: StickersUtils */).useStickerCategories(channel);
|
||||
const hasLoadedStickerPacks = (require(566) /* metro dependency 566: flux */).useStateFromStores([StickersStore],
|
||||
function() {
|
||||
return StickersStore.hasLoadedStickerPacks;
|
||||
});
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [0]);
|
||||
const binding2 = env0_3;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const STICKER_PICKER = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).STICKER_PICKER;
|
||||
const analyticsLocations = defaultImport(STICKER_PICKER).analyticsLocations;
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property3 = value7[0];
|
||||
var env0_4 = value7[1];
|
||||
const {safeAreaStyle,
|
||||
safeAreaBottomKeyboardAware} = (importDefault(11032) /* metro dependency 11032: useExpressionPickerInsets */)({hasCategories: true});
|
||||
const value9 = binding.useCallback(_fun84546, []);
|
||||
binding.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[10]);
|
||||
var CHAT_INPUT_COMPONENT_VIEWED = AnalyticEvents.CHAT_INPUT_COMPONENT_VIEWED;
|
||||
var channelBinding = channel;
|
||||
defaultImport.track(CHAT_INPUT_COMPONENT_VIEWED, {type: ChatInputComponentViewedTypes.STICKER,
|
||||
channel_id: channelBinding.id, guild_id: channelBinding.guild_id});
|
||||
}, [channel.id, channel.guild_id]);
|
||||
const value10 = binding.useCallback(_fun84549, [channel, onPressSticker, analyticsLocations]);
|
||||
const value11 = binding.useCallback(function() {
|
||||
var channelBinding = channel;
|
||||
var defaultImport = importDefault(dependencyMap[10]);
|
||||
var CHAT_INPUT_COMPONENT_VIEWED = AnalyticEvents.CHAT_INPUT_COMPONENT_VIEWED;
|
||||
defaultImport.track(CHAT_INPUT_COMPONENT_VIEWED, {type: ChatInputComponentViewedTypes.STICKER_SEARCH,
|
||||
channel_id: channelBinding.id, guild_id: channelBinding.guild_id});
|
||||
}, [channel]);
|
||||
const defaultImport3 = importDefault(6796) /* metro dependency 6796: TidaWebformExperiment */;
|
||||
const useExperiment = defaultImport3.useExperiment;
|
||||
const tidaWebformEnabled = Reflect.apply(useExperiment, defaultImport3, [{location: 'StickerPicker'},
|
||||
{autoTrackExposure: false}]).tidaWebformEnabled;
|
||||
const value12 = binding.useCallback(_fun84551, [channel]);
|
||||
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
if (value3.length === 0) {
|
||||
r10 = null;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.header};
|
||||
SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r10 = <View {...viewBinding2Props}><SearchField size="md" placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dt5h1C)} onChange={value9} onFocus={value11} isRound /></View>;
|
||||
}
|
||||
return (
|
||||
<AnalyticsLocationProvider value={analyticsLocations}>
|
||||
<View style={styles.container}>
|
||||
{r10}
|
||||
{hasLoadedStickerPacks ? value3.length === 0 ? <View style={styles.emptyState}>{((Component) => <Component />)(importDefault(11075) /* metro dependency 11075: StickerPickerEmptyState */)}</View> : ((Component) => <Component bottomSheetRef={bottomSheetRef} bottomSheetIndex={bottomSheetIndex} setCategoryIndex={property2} onPressSticker={value10} onLongPressStickerDetail={tidaWebformEnabled ? value12 : undefined} insetBottom={safeAreaBottomKeyboardAware} insetTop={paddingTop} channel={channel} stickerFormats={stickerFormats} searchResults={property3} inPortalKeyboard={inPortalKeyboard} />)(importDefault(11076) /* metro dependency 11076: StickerPickerList */) : <ActivityIndicator animating size="large" style={styles.loadingIndicator} />}
|
||||
{((Component) => <Component categories={value3} categoryIndex={property} style={safeAreaStyle} />)(importDefault(11081) /* metro dependency 11081: StickerPickerCategories */)}
|
||||
</View>
|
||||
</AnalyticsLocationProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84546(a0) { // fn#84546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:1130, offset: 0x01f4f5e7, size: 110 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var value;
|
||||
var binding;
|
||||
if (a0 === '') {
|
||||
value = environment.__proto__;
|
||||
value = require(690) /* metro dependency 690: ReactBatchUpdatesNative */;
|
||||
value.batchUpdates(_fun84547);
|
||||
} else {
|
||||
binding = env0_4;
|
||||
value = environment.__proto__;
|
||||
value = require(11055) /* metro dependency 11055: StickersSearchUtils */;
|
||||
binding(value.searchAllStickers(a0));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84549(a0) { // fn#84549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:1383, offset: 0x01f4f6cb, size: 477 bytes, params: 2, frame: 21
|
||||
var object2;
|
||||
var value5;
|
||||
var defaultImport2;
|
||||
const stickerSendability = (require(6943) /* metro dependency 6943: StickerSendability */).getStickerSendability(a0,
|
||||
UserStore.getCurrentUser(), channel);
|
||||
const StickerSendability = (require(6943) /* metro dependency 6943: StickerSendability */).StickerSendability;
|
||||
const SENDABLE = StickerSendability.SENDABLE;
|
||||
if (stickerSendability === SENDABLE) {
|
||||
onPressSticker(a0);
|
||||
} else {
|
||||
var SENDABLE_WITH_PREMIUM = StickerSendability.SENDABLE_WITH_PREMIUM;
|
||||
if (stickerSendability !== SENDABLE_WITH_PREMIUM) {
|
||||
return undefined;
|
||||
}
|
||||
var moduleValue2 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (moduleValue2.isStandardSticker(a0)) {
|
||||
value5 = StickersStore.getStickerPack(a0.pack_id);
|
||||
if (value5 == null) {
|
||||
return undefined;
|
||||
}
|
||||
defaultImport2 = importDefault(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */;
|
||||
object2 = {};
|
||||
object2.analyticsLocation = {page: channel.guild_id != null ? AnalyticsPages.GUILD_CHANNEL : AnalyticsPages.DM_CHANNEL};
|
||||
object2.analyticsPopoutType = (require(11056) /* metro dependency 11056: openStickerPackDetailActionSheet */).AnalyticsPopoutType.STICKER_PACK_DETAIL;
|
||||
object2.stickerPack = value5;
|
||||
defaultImport2(object2);
|
||||
return undefined;
|
||||
}
|
||||
var moduleValue3 = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
if (moduleValue3.isGuildSticker(a0)) {
|
||||
(importDefault(7882) /* metro dependency 7882: PremiumUpsellUtils */).handleShowUpsellAlert({initialUpsellKey: UpsellTypes.GLOBAL_STICKER,
|
||||
|
||||
|
||||
analyticsLocation: {page: channel.guild_id != null ? AnalyticsPages.GUILD_CHANNEL : AnalyticsPages.DM_CHANNEL,
|
||||
|
||||
|
||||
section: AnalyticsSections.STICKER_PICKER_UPSELL}, analyticsLocations: analyticsLocations});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84551(a0) { // fn#84551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:2304, offset: 0x01f4f901, size: 59 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(require(11065) /* metro dependency 11065: showStickerDetailActionSheet */).showStickerDetailActionSheet({renderableSticker: a0,
|
||||
channel: channel});
|
||||
}
|
||||
|
||||
function _fun84547() { // fn#84547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11234:1164, offset: 0x01f4f655, size: 29 bytes, params: 1, frame: 12
|
||||
env1_2(0);
|
||||
env1_4(null);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
/* Metro module 11081; source: modules/stickers/native/StickerPickerCategories.tsx; dependencies: [57, 31, 27, 1867, 11052, 661, 1346, 33, 4501, 697, 3829, 4643, 4785, 683, 5278, 1305, 1423, 6819, 10970, 4081, 4082, 8667, 8668, 8671, 1244, 11082, 2] */
|
||||
function _fun84824(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:6, offset: 0x01f58b48, size: 550 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_7 = (require(11052) /* metro dependency 11052: StickerPickerStore */).useStickerPickerStore;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.AnalyticEvents;
|
||||
const env0_9 = constantsModule.AnalyticsPages;
|
||||
const env0_10 = constantsModule.CATEGORY_ICON_RIPPLE_CONFIG;
|
||||
const CATEGORY_ICON_SIZE = constantsModule.CATEGORY_ICON_SIZE;
|
||||
const EXPRESSION_FOOTER_HEIGHT = constantsModule.EXPRESSION_FOOTER_HEIGHT;
|
||||
const NODE_SIZE = constantsModule.NODE_SIZE;
|
||||
const env0_13 = (require(1346) /* metro dependency 1346: ExpressionPickerConstants */).ExpressionPickerViewType;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value3.jsx;
|
||||
const env0_15 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.list = {flex: 1, height: EXPRESSION_FOOTER_HEIGHT};
|
||||
object2.item = {height: EXPRESSION_FOOTER_HEIGHT, width: EXPRESSION_FOOTER_HEIGHT, justifyContent: 'center',
|
||||
alignItems: 'center'};
|
||||
object2.itemInner = {'justifyContent': 'center', 'alignItems': 'center', height: NODE_SIZE, width: NODE_SIZE,
|
||||
borderRadius: NODE_SIZE / 2};
|
||||
object2.fadedItem = {opacity: 0.5};
|
||||
const INTERACTIVE_BACKGROUND_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_ACTIVE;
|
||||
object2.activeItem = {opacity: 1, backgroundColor: INTERACTIVE_BACKGROUND_ACTIVE};
|
||||
object2.guildIcon = {height: CATEGORY_ICON_SIZE, width: CATEGORY_ICON_SIZE, borderRadius: CATEGORY_ICON_SIZE / 2};
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object2.guildItemPlaceholder = {backgroundColor: BACKGROUND_MOD_MUTED};
|
||||
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const env0_17 = value.memo(_fun84825);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerCategories.tsx');
|
||||
exports.default = _default_84827;
|
||||
}
|
||||
|
||||
function _fun84825({category, onPressCategory, index, isActive}) { // fn#84825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:826, offset: 0x01f58d6e, size: 768 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
var r7;
|
||||
var Icon;
|
||||
var moduleValue2;
|
||||
const styles = useStyles();
|
||||
const AnimateStickers = (require(3829) /* metro dependency 3829: UserSettings */).AnimateStickers;
|
||||
const shouldAnimateSticker2 = (require(4643) /* metro dependency 4643: StickersUtils */).shouldAnimateSticker(AnimateStickers.useSetting(),
|
||||
false);
|
||||
const type = category.type;
|
||||
const StickerCategoryTypes = (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes;
|
||||
const GUILD = StickerCategoryTypes.GUILD;
|
||||
const r16 = type !== GUILD ? null : GuildStore.getGuild(category.id);
|
||||
const value6 = env0_4.useCallback(_fun84826, [category, r16, index, onPressCategory]);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
object2 = {androidRippleConfig: CATEGORY_ICON_RIPPLE_CONFIG, accessibilityRole: 'tab',
|
||||
accessibilityLabel: category.name, accessibilityState: {selected: isActive},
|
||||
disabled: category.stickers.length === 0, onPress: category.stickers.length > 0 ? value6 : undefined,
|
||||
style: styles.item};
|
||||
const items2 = [styles.itemInner];
|
||||
items2[1] = isActive ? styles.activeItem : styles.fadedItem;
|
||||
if (category.icon != null) {
|
||||
Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
var iconProps = {style: styles.guildIcon,
|
||||
disableColor: category.type === (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes.PACK};
|
||||
moduleValue2 = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
iconProps.source = moduleValue2.makeSource(category.icon);
|
||||
r7 = <Icon {...iconProps} />;
|
||||
} else {
|
||||
r7 = category.type === (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes.GUILD ? ((Component) => <Component guild={r16} loadingStyle={styles.guildItemPlaceholder} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.XSMALL} style={styles.guildIcon} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : ((Component) => <Component sticker={'previewSticker' in category && category.previewSticker != null ? category.previewSticker : category.stickers[0]} animated={shouldAnimateSticker2 && isActive} size={CATEGORY_ICON_SIZE} />)(importDefault(10970) /* metro dependency 10970: Sticker */);
|
||||
}
|
||||
return (
|
||||
<PressableOpacity {...object2}>
|
||||
<View style={items2}>
|
||||
{r7}
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_84827({categories, categoryIndex, style}) { // fn#84827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2070, offset: 0x01f5916a, size: 853 bytes, params: 2, frame: 30
|
||||
var PressableOpacity;
|
||||
var object;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const env0_2 = binding.useRef(undefined);
|
||||
const value2 = binding.useRef(null);
|
||||
const env0_3 = value2;
|
||||
const value3 = binding.useMemo(function() {
|
||||
return [categories.length];
|
||||
}, [categories]);
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
const env0_5 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value6[0];
|
||||
const env0_7 = value6[1];
|
||||
const value7 = useStickerPickerStore(function(a0) {
|
||||
return a0.setPackToScrollTo;
|
||||
});
|
||||
binding.useEffect(_fun84830, [categories]);
|
||||
binding.useEffect(_fun84832, [categoryIndex]);
|
||||
const value8 = binding.useCallback(_fun84833, [property, property2]);
|
||||
const value9 = binding.useCallback(_fun84834, [value8]);
|
||||
const value10 = binding.useCallback(_fun84835, [categories, value7]);
|
||||
const value11 = binding.useCallback(_fun84836, [property, value10]);
|
||||
const value12 = binding.useCallback(_fun84837, [value8]);
|
||||
const value13 = binding.useCallback(_fun84838, [categories, categoryIndex, value10]);
|
||||
const value14 = (importDefault(8667) /* metro dependency 8667: useExpressionPickerCategoriesPlaceholderConfig */)();
|
||||
const ExpressionPickerCategories = importDefault(8668) /* metro dependency 8668: ExpressionPickerCategories */;
|
||||
const FastestListAndroid = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
|
||||
const STICKER = ExpressionPickerViewType.STICKER;
|
||||
const fastestListAndroid = <FastestListAndroid estimatedListSize="windowSize" horizontal itemSize={EXPRESSION_FOOTER_HEIGHT} keyboardShouldPersistTaps="always" listId={STICKER} onLayout={value12} onScroll={value9} placeholderConfig={value14} ref={value2} scrollReporting="callbacks" sections={value3} renderItem={value13} showsHorizontalScrollIndicator={false} style={styles.list} />;
|
||||
let r5 = property != null && property2;
|
||||
if (r5) {
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
object = {onPress: value11, accessibilityRole: 'button'};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rzCcjK);
|
||||
r5 = <PressableOpacity {...object}><View style={[styles.item,
|
||||
styles.fadedItem]}>{((Icon) => <Icon style={styles.guildIcon} source={importDefault(11082) /* metro dependency 11082 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</View></PressableOpacity>;
|
||||
}
|
||||
return (
|
||||
<ExpressionPickerCategories portalHostName="expression-footer" style={style}>
|
||||
{fastestListAndroid}
|
||||
{r5}
|
||||
</ExpressionPickerCategories>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84826() { // fn#84826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:1060, offset: 0x01f5906e, size: 252 bytes, params: 1, frame: 18
|
||||
var id;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var EXPRESSION_PICKER_CATEGORY_SELECTED;
|
||||
var object2;
|
||||
const type = category.type;
|
||||
const value3 = undefined;
|
||||
const StickerCategoryTypes = (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes;
|
||||
const PACK = StickerCategoryTypes.PACK;
|
||||
if (!(type !== PACK && category.type !== StickerCategoryTypes.GUILD)) {
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
EXPRESSION_PICKER_CATEGORY_SELECTED = AnalyticEvents.EXPRESSION_PICKER_CATEGORY_SELECTED;
|
||||
object2 = {};
|
||||
object2.location = {page: AnalyticsPages.EXPRESSION_PICKER};
|
||||
object2.tab = ExpressionPickerViewType.STICKER;
|
||||
id = category.id;
|
||||
object2.sticker_pack_id = id;
|
||||
id = env0_3 == null ? value3 : env0_3.id;
|
||||
object2.guild_id = id;
|
||||
Reflect.apply(track, defaultImport, [EXPRESSION_PICKER_CATEGORY_SELECTED, object2]);
|
||||
}
|
||||
return onPressCategory == null ? value3 : onPressCategory(index);
|
||||
}
|
||||
|
||||
function _fun84830() { // fn#84830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2318, offset: 0x01f594bf, size: 48 bytes, params: 1, frame: 12
|
||||
const index = categories.findIndex(function({type}) {
|
||||
return type === require(dependencyMap[12]).StickerCategoryTypes.PACK;
|
||||
});
|
||||
if (index >= 0) {
|
||||
env0_5(index);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84832() { // fn#84832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2422, offset: 0x01f59522, size: 132 bytes, params: 1, frame: 12
|
||||
var categoryIndexBinding;
|
||||
var value2;
|
||||
var value3;
|
||||
if (env0_2.current != null) {
|
||||
if (env0_3.current != null) {
|
||||
categoryIndexBinding = categoryIndex;
|
||||
value2 = environment.__proto__;
|
||||
value3 = categoryIndexBinding * EXPRESSION_FOOTER_HEIGHT;
|
||||
if (value3 > env0_2.current.end || value3 < env0_2.current.start) {
|
||||
env0_3.current.scrollToLocation({'section': 0, 'item': null, 'animated': false, item: categoryIndex});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84833() { // fn#84833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2600, offset: 0x01f595a6, size: 97 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var binding2;
|
||||
var value4;
|
||||
if (env0_4 != null && env0_2.current != null) {
|
||||
binding = env0_7;
|
||||
binding2 = env0_4;
|
||||
value4 = environment.__proto__;
|
||||
binding(binding2 * EXPRESSION_FOOTER_HEIGHT > env0_2.current.end - (env0_6 ? 0 : EXPRESSION_FOOTER_HEIGHT));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84834(a0) { // fn#84834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2686, offset: 0x01f59607, size: 93 bytes, params: 2, frame: 12
|
||||
env0_2.current = {start: a0.nativeEvent.contentOffset.x,
|
||||
end: a0.nativeEvent.contentOffset.x + a0.nativeEvent.layoutMeasurement.width};
|
||||
env0_9();
|
||||
}
|
||||
|
||||
function _fun84835(a0) { // fn#84835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2838, offset: 0x01f59664, size: 88 bytes, params: 2, frame: 14
|
||||
env0_8(categories[a0].id);
|
||||
const hapticUtilsNativeModule = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
const triggerHapticFeedback = hapticUtilsNativeModule.triggerHapticFeedback;
|
||||
const IMPACT_LIGHT = (importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT;
|
||||
Reflect.apply(triggerHapticFeedback, hapticUtilsNativeModule, [IMPACT_LIGHT]);
|
||||
}
|
||||
|
||||
function _fun84836() { // fn#84836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2941, offset: 0x01f596bc, size: 43 bytes, params: 1, frame: 12
|
||||
if (env0_4 != null) {
|
||||
env0_10(env0_4);
|
||||
env0_7(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84837(a0) { // fn#84837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:2994, offset: 0x01f596e7, size: 74 bytes, params: 2, frame: 11
|
||||
if (env0_2.current == null) {
|
||||
env0_2.current = {start: 0, end: a0.nativeEvent.layout.width};
|
||||
env0_9();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84838(a0, a1) { // fn#84838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11267:3096, offset: 0x01f59731, size: 67 bytes, params: 3, frame: 15
|
||||
return ((Component) => <Component category={categories[a1]} index={a1} isActive={a1 === categoryIndex} onPressCategory={env0_10} />)(env1_17);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 11028; source: modules/stickers/native/StickerPickerConstants.tsx; dependencies: [1346, 4785, 2] */
|
||||
function _fun84448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11214:6, offset: 0x01f4a9e1, size: 294 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1346) /* metro dependency 1346: ExpressionPickerConstants */;
|
||||
const PADDING_VERTICAL = value.PADDING_VERTICAL;
|
||||
const PADDING_HORIZONTAL = value.PADDING_HORIZONTAL;
|
||||
const MIN_MARGIN = value.MIN_MARGIN;
|
||||
value = 2 * PADDING_VERTICAL;
|
||||
const StickerFormat = (require(4785) /* metro dependency 4785: StickersTypes */).StickerFormat;
|
||||
const GIF = StickerFormat.GIF;
|
||||
items = [GIF];
|
||||
const PNG = StickerFormat.PNG;
|
||||
items[1] = PNG;
|
||||
const APNG = StickerFormat.APNG;
|
||||
items[2] = APNG;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerConstants.tsx');
|
||||
exports.PADDING_HORIZONTAL = PADDING_HORIZONTAL;
|
||||
exports.PADDING_VERTICAL = PADDING_VERTICAL;
|
||||
exports.MIN_MARGIN = MIN_MARGIN;
|
||||
exports.STICKER_SIZE = 64;
|
||||
exports.LABEL_HEIGHT = 16;
|
||||
exports.BUTTON_HEIGHT = 32;
|
||||
exports.ROW_HEIGHT = 64 + value;
|
||||
exports.STICKER_NUDGE_RESULTS_CAP = 4;
|
||||
exports.STICKER_PICKER_PADDING = 100;
|
||||
exports.STICKER_SCROLL_LOAD_DELAY_MS = 250;
|
||||
exports.STICKER_SCROLL_LOAD_DELAY_AFTER_HEIGHT_CHANGE_MS = 750;
|
||||
exports.STICKER_FORMATS = items;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/* Metro module 11075; source: modules/stickers/native/StickerPickerEmptyState.tsx; dependencies: [57, 31, 27, 6583, 3832, 661, 1880, 33, 4501, 11049, 10970, 6771, 6789, 566, 683, 4573, 1244, 5278, 4081, 4082, 4578, 5475, 7938, 11069, 2] */
|
||||
function _fun84775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:6, offset: 0x01f56f0f, size: 419 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */;
|
||||
const env0_7 = (require(3832) /* metro dependency 3832: StickersConstants */).EMPTY_STATE_STICKERS;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.AnalyticsSections;
|
||||
const env0_10 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumUpsellTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {'marginBottom': 8,
|
||||
'textAlign': 'center'}, blurb: {'lineHeight': 18, 'textAlign': 'center', 'marginBottom': 12},
|
||||
premiumButton: {'marginTop': 20, 'alignSelf': 'center', 'paddingLeft': 5, 'paddingRight': 10, 'flexGrow': 0},
|
||||
nitroWheel: {width: 32}, stickersRow: {'flexDirection': 'row', 'alignSelf': 'center'},
|
||||
sticker: {paddingHorizontal: 2}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerEmptyState.tsx');
|
||||
exports.default = _default_84777;
|
||||
}
|
||||
|
||||
function EmptyStateSticker({sticker, isFocused}) { // fn#84776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:617, offset: 0x01f570b2, size: 115 bytes, params: 2, frame: 17
|
||||
return ((Component) => <Component sticker={sticker} size={60} animated={(require(11049) /* metro dependency 11049: StickersHooks */).useShouldAnimateSticker(isFocused)} key={sticker?.id} />)(importDefault(10970) /* metro dependency 10970: Sticker */);
|
||||
}
|
||||
|
||||
function _default_84777() { // fn#84777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:766, offset: 0x01f57125, size: 679 bytes, params: 1, frame: 27
|
||||
const styles = useStyles();
|
||||
(require(11049) /* metro dependency 11049: StickersHooks */).useFetchStickerPacks();
|
||||
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const EMPTY_STATE = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).EMPTY_STATE;
|
||||
const analyticsLocations = defaultImport(EMPTY_STATE).analyticsLocations;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([StickersStore], _fun84778);
|
||||
const binding = env0_4;
|
||||
const [env0_2, env0_3] = env0_3Binding(binding.useState(null), 2);
|
||||
binding.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[14]);
|
||||
var PREMIUM_UPSELL_VIEWED = AnalyticEvents.PREMIUM_UPSELL_VIEWED;
|
||||
defaultImport.track(PREMIUM_UPSELL_VIEWED, {type: PremiumUpsellTypes.EMPTY_STICKER_PICKER_UPSELL,
|
||||
source: {section: AnalyticsSections.EMPTY_STICKER_PICKER_UPSELL}, location_stack: analyticsLocations});
|
||||
}, [analyticsLocations]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const HEm04J = (require(1244) /* metro dependency 1244: indexNative */).t.HEm04J;
|
||||
const items2 = [<Text style={styles.header} accessibilityRole="header" variant="heading-lg/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [HEm04J])}</Text>];
|
||||
string = intl.string;
|
||||
const FnNud4 = (require(1244) /* metro dependency 1244: indexNative */).t.FnNud4;
|
||||
items2[1] = <Text style={styles.blurb} variant="text-sm/medium" color="text-default">{Reflect.apply(string, intl,
|
||||
[FnNud4])}</Text>;
|
||||
items2[2] = <View style={styles.stickersRow}>{value2.map(_fun84782)}</View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[3] = <View style={styles.premiumButton}><Button icon={((Component) => <Component source={importDefault(7938) /* metro dependency 7938 */} style={styles.nitroWheel} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */)} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pj0XBN)} variant="active" size="sm" onPress={function() {
|
||||
return importDefault(dependencyMap[23])({section: AnalyticsSections.EXPRESSION_PICKER});
|
||||
}} /></View>;
|
||||
return (
|
||||
<View>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84778() { // fn#84778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:908, offset: 0x01f573cc, size: 45 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return EMPTY_STATE_STICKERS.map(function(a0) {
|
||||
return StickersStore.getStickerById(a0);
|
||||
}).filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun84782(a0) { // fn#84782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:1543, offset: 0x01f57471, size: 145 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessible={false}
|
||||
onLongPress={onLongPress_84783}
|
||||
style={styles.sticker}
|
||||
key={a0 == null ? value2 : a0.id}
|
||||
>
|
||||
<EmptyStateSticker sticker={a0} isFocused={env0_2 === a0.id} />
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function onLongPress_84783() { // fn#84783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11261:1601, offset: 0x01f57502, size: 84 bytes, params: 1, frame: 14
|
||||
const hapticUtilsNativeModule = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
const triggerHapticFeedback = hapticUtilsNativeModule.triggerHapticFeedback;
|
||||
const IMPACT_LIGHT = (importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT;
|
||||
Reflect.apply(triggerHapticFeedback, hapticUtilsNativeModule, [IMPACT_LIGHT]);
|
||||
env1_3(env0_0.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,319 @@
|
||||
/* Metro module 11076; source: modules/stickers/native/StickerPickerList.tsx; dependencies: [57, 31, 27, 6583, 11052, 11028, 33, 4501, 697, 1305, 11077, 4573, 1244, 4785, 8577, 566, 11078, 11063, 22, 7700, 11079, 8671, 5466, 2] */
|
||||
function _fun84785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:6, offset: 0x01f57587, size: 565 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */;
|
||||
const env0_7 = (require(11052) /* metro dependency 11052: StickerPickerStore */).useStickerPickerStore;
|
||||
const stickerPickerConstantsModule = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const env0_8 = stickerPickerConstantsModule.STICKER_SCROLL_LOAD_DELAY_MS;
|
||||
const env0_9 = stickerPickerConstantsModule.STICKER_SCROLL_LOAD_DELAY_AFTER_HEIGHT_CHANGE_MS;
|
||||
const env0_10 = stickerPickerConstantsModule.STICKER_SIZE;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value3.jsx;
|
||||
const env0_12 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object2.listPlaceholder = {color: BACKGROUND_MOD_MUTED};
|
||||
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object2.section = {'justifyContent': 'center', 'overflow': 'hidden', backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
|
||||
const MOBILE_EXPRESSION_PICKER_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_EXPRESSION_PICKER_BACKGROUND_DEFAULT;
|
||||
object2.sectionSticker = {backgroundColor: MOBILE_EXPRESSION_PICKER_BACKGROUND_DEFAULT};
|
||||
const object3 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null,
|
||||
'marginLeft': 12, 'marginRight': 12};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object3.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object2.nsfwContainer = object3;
|
||||
object2.nsfwText = {'marginLeft': 4, 'textAlign': 'center'};
|
||||
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const env0_14 = value.memo(_fun84786);
|
||||
const env0_15 = value.memo(_fun84787);
|
||||
const env0_16 = value.memo(_fun84788);
|
||||
value = value.memo(_fun84789);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerList.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun84786({height}) { // fn#84786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:859, offset: 0x01f577bc, size: 272 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.nsfwContainer];
|
||||
items2[1] = {height: height};
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const iconProps = {source: importDefault(11077) /* metro dependency 11077 */};
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const SMALL = Sizes.SMALL;
|
||||
iconProps.size = SMALL;
|
||||
const icon = <Icon {...iconProps} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{icon}
|
||||
<Text
|
||||
style={styles.nsfwText}
|
||||
variant="text-sm/normal"
|
||||
color="interactive-text-active"
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uy25Qz)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84787({height, label, sectionStyle}) { // fn#84787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:1170, offset: 0x01f578cc, size: 135 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.section, sectionStyle];
|
||||
items2[2] = {height: height};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Text
|
||||
lineClamp={1}
|
||||
color="interactive-text-default"
|
||||
variant="heading-sm/semibold"
|
||||
>
|
||||
{label}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84789({bottomSheetRef, bottomSheetIndex, setCategoryIndex, searchResults, onPressSticker, onLongPressStickerDetail, insetBottom, insetTop, channel, inPortalKeyboard, stickerFormats}) { // fn#84789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:1461, offset: 0x01f5797c, size: 1227 bytes, params: 2, frame: 41
|
||||
var r0;
|
||||
const StickerFormat = (require(4785) /* metro dependency 4785: StickersTypes */).StickerFormat;
|
||||
var FastestListAndroid;
|
||||
var intl;
|
||||
const env0_3 = onPressSticker;
|
||||
const env0_4 = onLongPressStickerDetail;
|
||||
insetBottom = insetBottom === undefined ? 0 : insetBottom;
|
||||
insetTop = insetTop === undefined ? 0 : insetTop;
|
||||
inPortalKeyboard = !(inPortalKeyboard === undefined) && inPortalKeyboard;
|
||||
const r9 = stickerFormats !== undefined ? stickerFormats : [StickerFormat.PNG, StickerFormat.APNG,
|
||||
StickerFormat.LOTTIE, StickerFormat.GIF];
|
||||
const binding = env0_4;
|
||||
const value7 = binding.useRef(null);
|
||||
const styles = useStyles();
|
||||
const [property, env0_10] = env0_3(binding.useState(null), 2);
|
||||
const value10 = (importDefault(8577) /* metro dependency 8577: useExpressionPickerListWidthNative */)(inPortalKeyboard);
|
||||
const hasLoadedStickerPacks = (require(566) /* metro dependency 566: flux */).useStateFromStores([StickersStore],
|
||||
function() {
|
||||
return StickersStore.hasLoadedStickerPacks;
|
||||
});
|
||||
const value12 = binding.useMemo(function() {
|
||||
var env0_0 = {scrollTo: -1};
|
||||
var env0_1 = _fun84793;
|
||||
return {scroll: _fun84794, cancel: _fun84796};
|
||||
}, [setCategoryIndex, useStickerPickerStore(function(a0) {
|
||||
return a0.setPackToScrollTo;
|
||||
}), bottomSheetRef]);
|
||||
const value13 = (importDefault(11078) /* metro dependency 11078: useStickerPickerListData */)({channel: channel,
|
||||
containerWidth: value10, searchResults: searchResults, stickerFormats: r9});
|
||||
const sections = value13.sections;
|
||||
const sectionHeights = value13.sectionHeights;
|
||||
const sectionSize = value13.sectionSize;
|
||||
const sectionFooterSize = value13.sectionFooterSize;
|
||||
const sectionLabels = value13.sectionLabels;
|
||||
const rowsBySection = value13.rowsBySection;
|
||||
const rowHeight = value13.rowHeight;
|
||||
const rowSize = value13.rowSize;
|
||||
binding.useEffect(_fun84797, [inPortalKeyboard, bottomSheetIndex, hasLoadedStickerPacks,
|
||||
value13.packToScrollToIndex, value12]);
|
||||
const value14 = binding.useCallback(_fun84799, [sectionLabels, sectionSize, styles.sectionSticker]);
|
||||
const value15 = binding.useCallback(_fun84800, [sectionFooterSize]);
|
||||
const value16 = binding.useCallback(_fun84801, [channel, value10, property, onLongPressStickerDetail,
|
||||
onPressSticker, rowHeight, rowSize, rowsBySection]);
|
||||
const {onScroll, setCategory} = binding.useMemo(_fun84802, [setCategoryIndex, sectionHeights]);
|
||||
const value18 = binding.useMemo(_fun84805, [styles, rowSize]);
|
||||
binding.useEffect(function() {
|
||||
return _fun84807;
|
||||
}, [setCategory]);
|
||||
binding.useEffect(function() {
|
||||
return _fun84809;
|
||||
}, [value12]);
|
||||
if (searchResults?.length === 0) {
|
||||
r0 = ((Component) => <Component inActionSheet insetTop={insetTop} insetBottom={insetBottom} />)(importDefault(11079) /* metro dependency 11079: StickerPickerListEmptyState */);
|
||||
} else {
|
||||
FastestListAndroid = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <FastestListAndroid accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nf1s3u)} estimatedListSize={(require(5466) /* metro dependency 5466: useCustomKeyboardHeight */).getCustomKeyboardHeight()} inActionSheet insetEnd={insetBottom} insetStart={insetTop} itemSize={rowHeight} keyboardShouldPersistTaps="always" listId="sticker-picker-list" onScroll={onScroll} placeholderConfig={value18} renderItem={value16} renderSectionHeader={value14} renderSectionFooter={value15} ref={value7} scrollReporting="callbacks" sections={sections} sectionHeaderSize={sectionSize} sectionFooterSize={sectionFooterSize} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun84792() { // fn#84792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:1972, offset: 0x01f57e61, size: 58 bytes, params: 1, frame: 3
|
||||
const object = {scrollTo: -1};
|
||||
return {scroll: scroll, cancel: function() {
|
||||
return scrollToCancel;
|
||||
}};
|
||||
}
|
||||
|
||||
function _fun84797() { // fn#84797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2566, offset: 0x01f57f71, size: 144 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var binding;
|
||||
var scroll;
|
||||
if (packToScrollToIndex != null && hasLoadedStickerPacks) {
|
||||
if (inPortalKeyboard) {
|
||||
if (bottomSheetIndex.get() < 1) {
|
||||
binding = env0_14;
|
||||
scroll = binding.scroll;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(scroll, binding, [{index: packToScrollToIndex,
|
||||
delay: STICKER_SCROLL_LOAD_DELAY_AFTER_HEIGHT_CHANGE_MS, expand: true}]);
|
||||
} else {
|
||||
binding = env0_14;
|
||||
scroll = binding.scroll;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(scroll, binding, [{index: packToScrollToIndex, delay: STICKER_SCROLL_LOAD_DELAY_MS}]);
|
||||
}
|
||||
} else {
|
||||
binding = env0_14;
|
||||
scroll = binding.scroll;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(scroll, binding, [{index: packToScrollToIndex, delay: STICKER_SCROLL_LOAD_DELAY_MS}]);
|
||||
}
|
||||
}
|
||||
return _fun84798;
|
||||
}
|
||||
|
||||
function _fun84799(a0) { // fn#84799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2717, offset: 0x01f58016, size: 64 bytes, params: 2, frame: 14
|
||||
return ((Component) => <Component label={sectionLabels[a0]} sectionStyle={styles.sectionSticker} height={sectionSize} />)(env1_15);
|
||||
}
|
||||
|
||||
function _fun84800() { // fn#84800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2836, offset: 0x01f58056, size: 34 bytes, params: 1, frame: 13
|
||||
return ((Component) => <Component height={sectionFooterSize} />)(env1_16);
|
||||
}
|
||||
|
||||
function _fun84801(a0, a1) { // fn#84801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2879, offset: 0x01f58078, size: 246 bytes, params: 3, frame: 18
|
||||
let property = rowsBySection[a0];
|
||||
if (property != null) {
|
||||
var type = property.type;
|
||||
var StickerPickerSectionType = (require(11078) /* metro dependency 11078: useStickerPickerListData */).StickerPickerSectionType;
|
||||
var STICKERS = StickerPickerSectionType.STICKERS;
|
||||
if (STICKERS === type) {
|
||||
property = property.stickersByRow[a1];
|
||||
return ((Component) => <Component containerWidth={env0_11} stickers={property} rowSize={rowSize} onPressSticker={onPressSticker} onLongPressStickerDetail={onLongPressStickerDetail} focusedSticker={env0_9} setFocusedSticker={env0_10} channel={channel} />)(importDefault(11063) /* metro dependency 11063: StickerPickerListRow */);
|
||||
}
|
||||
StickerPickerSectionType = (require(11078) /* metro dependency 11078: useStickerPickerListData */).StickerPickerSectionType;
|
||||
var NSFW = StickerPickerSectionType.NSFW;
|
||||
if (NSFW === type) {
|
||||
return ((Component) => <Component height={rowHeight} />)(env1_14);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun84802() { // fn#84802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:3282, offset: 0x01f5816e, size: 74 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.debounce(function(a0) {
|
||||
var r3;
|
||||
var r4;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
var sectionHeightsBinding = sectionHeights;
|
||||
var value2 = 0;
|
||||
if (value2 < sectionHeightsBinding.length) {
|
||||
if (a0 >= sectionHeights[value2]) {
|
||||
r3 = value2;
|
||||
r4 = value2;
|
||||
while (true) {
|
||||
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
if (!(value4 < sectionHeights.length)) {
|
||||
r2 = value3;
|
||||
break;
|
||||
}
|
||||
if (a0 >= sectionHeights[value4]) {
|
||||
r3 = value4;
|
||||
r4 = value3;
|
||||
continue;
|
||||
}
|
||||
r2 = value3;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
r2 = value2;
|
||||
}
|
||||
} else {
|
||||
r2 = value2;
|
||||
}
|
||||
setCategoryIndex(r2);
|
||||
}, 100);
|
||||
return {onScroll: onScroll_84804, setCategory: value};
|
||||
}
|
||||
|
||||
function _fun84805() { // fn#84805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:3596, offset: 0x01f58273, size: 222 bytes, params: 1, frame: 19
|
||||
const object = {};
|
||||
const FastestListPropsPlaceholderType = (require(7700) /* metro dependency 7700: FastestListPropsPlaceholder */).FastestListPropsPlaceholderType;
|
||||
let SHAPE = FastestListPropsPlaceholderType.SHAPE;
|
||||
object.type = SHAPE;
|
||||
object.colorHex = styles.listPlaceholder.color;
|
||||
object.shape = 'rect';
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object.paddingVertical = PX_4;
|
||||
SHAPE = FastestListPropsPlaceholderType.SHAPE;
|
||||
return {sectionHeader: object, sectionItem: {type: SHAPE, colorHex: styles.listPlaceholder.color, shape: 'circle',
|
||||
shapeCount: rowSize, width: STICKER_SIZE, height: STICKER_SIZE}};
|
||||
}
|
||||
|
||||
function _fun84806() { // fn#84806, offset: 0x01f58351, size: 11 bytes, params: 1, frame: 1
|
||||
return function() {
|
||||
return setCategory.cancel();
|
||||
};
|
||||
}
|
||||
|
||||
function _fun84808() { // fn#84808, offset: 0x01f5836f, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun84809;
|
||||
}
|
||||
|
||||
function scrollToCancel() { // fn#84793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2012, offset: 0x01f57e9b, size: 30 bytes, params: 1, frame: 11
|
||||
return global.clearTimeout(env0_0.scrollTo);
|
||||
}
|
||||
|
||||
function scroll({index, delay, expand}) { // fn#84794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2055, offset: 0x01f57eb9, size: 115 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var value2;
|
||||
var current;
|
||||
const env0_0 = index;
|
||||
scrollToCancel();
|
||||
if (expand) {
|
||||
value2 = environment.__proto__;
|
||||
current = bottomSheetRef.current;
|
||||
if (current != null) {
|
||||
current.expandActionSheet();
|
||||
}
|
||||
}
|
||||
env0_0.scrollTo = global.setTimeout(_fun84795, delay);
|
||||
setCategoryIndex(index);
|
||||
}
|
||||
|
||||
function _fun84798() { // fn#84798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2664, offset: 0x01f58001, size: 21 bytes, params: 1, frame: 9
|
||||
env1_14.cancel();
|
||||
}
|
||||
|
||||
function onScroll_84804(a0) { // fn#84804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:3389, offset: 0x01f5821c, size: 87 bytes, params: 2, frame: 12
|
||||
env0_0(a0.nativeEvent.contentOffset.y);
|
||||
a0.nativeEvent.layoutMeasurement.height;
|
||||
a0.nativeEvent.contentOffset.y;
|
||||
a0.nativeEvent.contentSize.height;
|
||||
}
|
||||
|
||||
function _fun84795() { // fn#84795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11262:2182, offset: 0x01f57f2c, size: 69 bytes, params: 1, frame: 14
|
||||
const current = env2_7.current;
|
||||
if (current != null) {
|
||||
current.scrollToLocation({'section': null, 'item': 0, 'animated': true, section: index});
|
||||
}
|
||||
env2_13(null);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 11079; source: modules/stickers/native/StickerPickerListEmptyState.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6277, 1305, 1244, 11080, 2] */
|
||||
function _fun84820(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11265:6, offset: 0x01f58878, size: 311 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
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 */).ScrollView;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).EXPRESSION_FOOTER_HEIGHT;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {emptyStateContainer: {'padding': 0, 'flex': 1}};
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
object2.emptyStateBody = {color: TEXT_SUBTLE};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.emptyStateImage = {marginBottom: PX_8, marginTop: 0};
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(StickerPickerListEmptyState);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerListEmptyState.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function StickerPickerListEmptyState({inActionSheet, insetTop, insetBottom}) { // fn#84821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11265:367, offset: 0x01f589af, size: 298 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useMemo(function() {
|
||||
return {marginBottom: insetBottom + EXPRESSION_FOOTER_HEIGHT, marginTop: insetTop, flex: 1};
|
||||
}, [insetBottom, insetTop]);
|
||||
const r2 = inActionSheet ? (require(6277) /* metro dependency 6277 */).BottomSheetScrollView : ScrollView;
|
||||
const RefreshEmptyState = (require(1305) /* metro dependency 1305: native */).RefreshEmptyState;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return ((Component) => <Component contentContainerStyle={value2} keyboardShouldPersistTaps="always"><RefreshEmptyState body={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jyiGfc)} bodyStyle={styles.emptyStateBody} containerStyle={styles.emptyStateContainer} imageStyle={styles.emptyStateImage} source={importDefault(11080) /* metro dependency 11080 */} titleStyle={{marginBottom: 0}} /></Component>)(r2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,415 @@
|
||||
/* Metro module 11063; source: modules/stickers/native/StickerPickerListRow.tsx; dependencies: [57, 31, 27, 1878, 3832, 11028, 1346, 33, 4501, 477, 3829, 4081, 4082, 4643, 6943, 4785, 10970, 11064, 1216, 5278, 2] */
|
||||
function _fun84692(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:6, offset: 0x01f53899, size: 331 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(3832) /* metro dependency 3832: StickersConstants */).StickerAnimationSettings;
|
||||
const {ROW_HEIGHT, STICKER_SIZE} = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const env0_8 = (require(1346) /* metro dependency 1346: ExpressionPickerConstants */).PADDING_VERTICAL;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({row: {'height': null,
|
||||
'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between', 'overflow': 'hidden',
|
||||
height: ROW_HEIGHT}, stickerImage: {height: STICKER_SIZE, width: STICKER_SIZE}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerListRow.tsx');
|
||||
exports.default = StickerPickerListRow;
|
||||
}
|
||||
|
||||
function StickerPickerListRow(a0) { // fn#84693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:435, offset: 0x01f539e4, size: 784 bytes, params: 2, frame: 36
|
||||
var environment;
|
||||
var r2;
|
||||
var r0;
|
||||
var containerWidth;
|
||||
var stickers;
|
||||
var rowSize;
|
||||
var onPressSticker;
|
||||
var onLongPressStickerDetail;
|
||||
var focusedSticker;
|
||||
var setFocusedSticker;
|
||||
var channel;
|
||||
var nativeRow;
|
||||
var value;
|
||||
var isAndroid;
|
||||
var styles;
|
||||
var AnimateStickers;
|
||||
var useSetting;
|
||||
var closure;
|
||||
var items2;
|
||||
var value2;
|
||||
var value3;
|
||||
var jsxRuntimeEnv0_9Binding;
|
||||
var row;
|
||||
var value4;
|
||||
var property;
|
||||
var push;
|
||||
var StickerFormat;
|
||||
var PNG;
|
||||
var value5;
|
||||
var value6;
|
||||
var property2;
|
||||
var property3;
|
||||
var property4;
|
||||
var object;
|
||||
var id;
|
||||
var name;
|
||||
var format_type;
|
||||
var moduleValue;
|
||||
var getStickerAssetUrl;
|
||||
var value7;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var object6;
|
||||
var defaultImport2;
|
||||
var error;
|
||||
var addBreadcrumb;
|
||||
var object8;
|
||||
var length;
|
||||
var filter;
|
||||
var value9;
|
||||
var map;
|
||||
exceptionSkip35: while (true) {
|
||||
exceptionLanding35: while (true) {
|
||||
containerWidth = a0.containerWidth;
|
||||
stickers = a0.stickers;
|
||||
var env0_0 = stickers;
|
||||
rowSize = a0.rowSize;
|
||||
onPressSticker = a0.onPressSticker;
|
||||
var env0_1 = onPressSticker;
|
||||
onLongPressStickerDetail = a0.onLongPressStickerDetail;
|
||||
var env0_2 = onLongPressStickerDetail;
|
||||
focusedSticker = a0.focusedSticker;
|
||||
var env0_3 = focusedSticker;
|
||||
setFocusedSticker = a0.setFocusedSticker;
|
||||
var env0_4 = setFocusedSticker;
|
||||
channel = a0.channel;
|
||||
var env0_5 = channel;
|
||||
nativeRow = a0.nativeRow;
|
||||
reducibleJoin2: while (true) {
|
||||
if (nativeRow !== undefined) {
|
||||
r2 = nativeRow;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value = environment;
|
||||
value = require(dependencyMap[9]);
|
||||
isAndroid = value.isAndroid;
|
||||
value = Reflect.apply(isAndroid, value, []);
|
||||
r2 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
var env0_6 = undefined;
|
||||
var env0_7 = undefined;
|
||||
var env0_8 = undefined;
|
||||
var env0_9 = undefined;
|
||||
var env0_10 = undefined;
|
||||
var env0_11 = undefined;
|
||||
var env0_12 = undefined;
|
||||
value = environment;
|
||||
styles = useStyles();
|
||||
env0_6 = styles;
|
||||
AnimateStickers = require(dependencyMap[10]).AnimateStickers;
|
||||
useSetting = AnimateStickers.useSetting;
|
||||
env0_7 = Reflect.apply(useSetting, AnimateStickers, []);
|
||||
env0_8 = function(a0) {
|
||||
require(dependencyMap[11]).triggerHapticFeedback(importDefault(dependencyMap[12]).IMPACT_LIGHT);
|
||||
if (onPressSticker != null) {
|
||||
onPressSticker(a0);
|
||||
}
|
||||
};
|
||||
env0_9 = handleOnLongPressSticker;
|
||||
closure = rowTraits;
|
||||
env0_10 = closure;
|
||||
items2 = [];
|
||||
if (r2) {
|
||||
value4 = 0;
|
||||
if (value4 < rowSize) {
|
||||
r0 = value4;
|
||||
reducibleLoop7: while (true) {
|
||||
property = stickers[r0];
|
||||
if (property !== undefined) {
|
||||
value5 = closure(property);
|
||||
value6 = env0_3(value5, 3);
|
||||
property2 = value6[value4];
|
||||
property3 = value6[1];
|
||||
property4 = value6[2];
|
||||
push = items2.push;
|
||||
object = {};
|
||||
id = property.id;
|
||||
object.stickerId = id;
|
||||
name = property.name;
|
||||
object.stickerName = name;
|
||||
format_type = property.format_type;
|
||||
object.stickerType = format_type;
|
||||
moduleValue = require(dependencyMap[16]);
|
||||
getStickerAssetUrl = moduleValue.getStickerAssetUrl;
|
||||
object.stickerUrl = Reflect.apply(getStickerAssetUrl, moduleValue, [property, STICKER_SIZE,
|
||||
property2]);
|
||||
object.stickerAnimated = property2;
|
||||
object.stickerDisabled = property4;
|
||||
object.stickerOpaque = property3;
|
||||
Reflect.apply(push, items2, [object]);
|
||||
} else {
|
||||
push = items2.push;
|
||||
StickerFormat = require(dependencyMap[15]).StickerFormat;
|
||||
PNG = StickerFormat.PNG;
|
||||
Reflect.apply(push, items2, [{'stickerId': null, 'stickerName': '', 'stickerType': null,
|
||||
'stickerUrl': '',
|
||||
'stickerAnimated': false, 'stickerDisabled': true, 'stickerOpaque': false,
|
||||
stickerType: PNG}]);
|
||||
}
|
||||
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
||||
if (value7 < rowSize) {
|
||||
r0 = value7;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
break reducibleLoop7;
|
||||
}
|
||||
}
|
||||
try {
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
property = dependencyMap[17];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
defaultImport = importDefault(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
row = styles.row;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object2.style = row;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object6 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object6.rowContentWidth = containerWidth;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object6.rowContentPaddingVertical = PADDING_VERTICAL;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object6.itemSize = STICKER_SIZE;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object6.items = items2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object2.rowData = object6;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
closure = onPressSticker;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object2.onPressSticker = closure;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
closure = onLongPressSticker_84702;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
object2.onLongPressSticker = closure;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
defaultImport2 = ((Component) => <Component {...object2} />)(defaultImport);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
return defaultImport2;
|
||||
}
|
||||
env0_11 = items2;
|
||||
closure = StickerPickerListRow_loop;
|
||||
value2 = 0;
|
||||
env0_12 = value2;
|
||||
if (value2 < rowSize) {
|
||||
r2 = value2;
|
||||
reducibleLoop4: while (true) {
|
||||
closure();
|
||||
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
env0_12 = value3;
|
||||
if (value3 < rowSize) {
|
||||
r2 = value3;
|
||||
continue reducibleLoop4;
|
||||
}
|
||||
break reducibleLoop4;
|
||||
}
|
||||
}
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
row = styles.row;
|
||||
return (
|
||||
<View style={row}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
break exceptionSkip35;
|
||||
}
|
||||
value = importDefault(dependencyMap[18]);
|
||||
addBreadcrumb = value.addBreadcrumb;
|
||||
object8 = {};
|
||||
length = items2.length;
|
||||
object8.itemLength = length;
|
||||
filter = items2.filter;
|
||||
value9 = Reflect.apply(filter, items2, [_fun84704]);
|
||||
map = value9.map;
|
||||
object8.items = Reflect.apply(map, value9, [_fun84705]);
|
||||
Reflect.apply(addBreadcrumb, value, [{'message': 'Error in StickerPickerListRowNativeComponent',
|
||||
'category': 'sticker', data: object8}]);
|
||||
throw error;
|
||||
break exceptionSkip35;
|
||||
}
|
||||
}
|
||||
|
||||
function handleOnLongPressSticker(a0) { // fn#84695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:800, owner: StickerPickerListRow.handleOnLongPressSticker, offset: 0x01f53d49, size: 217 bytes, params: 2, frame: 17
|
||||
var moduleValue;
|
||||
var value4;
|
||||
var moduleValue2;
|
||||
if (onLongPressStickerDetail != null) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue2 = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
moduleValue2.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
|
||||
onLongPressStickerDetail(a0);
|
||||
} else {
|
||||
var AnimateStickers = (require(3829) /* metro dependency 3829: UserSettings */).AnimateStickers;
|
||||
var setting = AnimateStickers.getSetting();
|
||||
var ANIMATE_ON_INTERACTION = StickerAnimationSettings.ANIMATE_ON_INTERACTION;
|
||||
if (setting === ANIMATE_ON_INTERACTION) {
|
||||
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
|
||||
if (setFocusedSticker != null) {
|
||||
setFocusedSticker(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function rowTraits(a0) { // fn#84696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:1037, owner: StickerPickerListRow.rowTraits, offset: 0x01f53e22, size: 167 bytes, params: 2, frame: 21
|
||||
var r3;
|
||||
var moduleValue2;
|
||||
var isSendableSticker;
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const stickersUtilsModule = require(4643) /* metro dependency 4643: StickersUtils */;
|
||||
const items2 = [stickersUtilsModule.shouldAnimateSticker(env0_7,
|
||||
a0.id === (focusedSticker == null ? value2 : focusedSticker.id))];
|
||||
const value4 = channel == null;
|
||||
if (value4) {
|
||||
r3 = value4;
|
||||
} else {
|
||||
moduleValue2 = require(6943) /* metro dependency 6943: StickerSendability */;
|
||||
isSendableSticker = moduleValue2.isSendableSticker;
|
||||
value = UserStore.getCurrentUser();
|
||||
value = Reflect.apply(isSendableSticker, moduleValue2, [a0, value, channel]);
|
||||
r3 = value;
|
||||
}
|
||||
items2[1] = r3;
|
||||
items2[2] = onPressSticker == null;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function StickerPickerListRow_loop() { // fn#84697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:1198, owner: StickerPickerListRow._loop, offset: 0x01f53ec9, size: 306 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
var binding;
|
||||
var push;
|
||||
var value5;
|
||||
const property = stickers[env0_12];
|
||||
if (property === undefined) {
|
||||
binding = env0_11;
|
||||
push = binding.push;
|
||||
value5 = environment.__proto__;
|
||||
Reflect.apply(push, binding, [<View style={styles.stickerImage} key={env0_12} />]);
|
||||
return 1;
|
||||
}
|
||||
const value4 = env1_3(rowTraits(property), 3);
|
||||
const property2 = value4[0];
|
||||
const property3 = value4[1];
|
||||
const property4 = value4[2];
|
||||
binding = env0_11;
|
||||
push = binding.push;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
Reflect.apply(push, binding,
|
||||
[<PressableOpacity accessibilityRole="button" accessibilityLabel={property.name} style={styles.stickerImage} disabled={property4} onPress={onPress_84698} onLongPress={onLongPress_84699} key={property.id}>{((Component) => <Component sticker={property} size={STICKER_SIZE} animated={property2} opaque={property3} key={env0_12} />)(importDefault(10970) /* metro dependency 10970: Sticker */)}</PressableOpacity>]);
|
||||
}
|
||||
|
||||
function StickerPickerListRowOnPressSticker(a0) { // fn#84700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:2210, owner: StickerPickerListRow.onPressSticker, offset: 0x01f53ffb, size: 55 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const value2 = stickers.find(_fun84701);
|
||||
if (value2 != null) {
|
||||
handleOnPressSticker(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function StickerPickerListRowOnLongPressSticker(a0) { // fn#84702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:2317, owner: StickerPickerListRow.onLongPressSticker, offset: 0x01f54053, size: 55 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const value2 = stickers.find(_fun84703);
|
||||
if (value2 != null) {
|
||||
handleOnLongPressSticker(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84704(a0) { // fn#84704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:2568, offset: 0x01f5408a, size: 43 bytes, params: 2, frame: 4
|
||||
let r0 = a0.stickerId == null || a0.stickerName == null;
|
||||
r0 = !r0 ? a0.stickerUrl == null : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun84705({stickerId, stickerName, stickerUrl}) { // fn#84705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:2637, offset: 0x01f540b5, size: 40 bytes, params: 2, frame: 3
|
||||
return {stickerId: stickerId, stickerName: stickerName, stickerUrl: stickerUrl};
|
||||
}
|
||||
|
||||
function _fun84701({id}) { // fn#84701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11249:2228, offset: 0x01f54032, size: 33 bytes, params: 2, frame: 2
|
||||
return id === env0_0.nativeEvent.stickerId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 11052; source: modules/stickers/native/StickerPickerStore.tsx; dependencies: [629, 690, 2] */
|
||||
function _fun84652(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11238:6, offset: 0x01f5211e, size: 117 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {packToScrollTo: null, setPackToScrollTo: _fun84654};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPickerStore.tsx');
|
||||
exports.useStickerPickerStore = value;
|
||||
}
|
||||
|
||||
function _fun84653(a0) { // fn#84653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11238:114, offset: 0x01f52193, size: 32 bytes, params: 2, frame: 3
|
||||
const env0_0 = a0;
|
||||
return {packToScrollTo: null, setPackToScrollTo: setPackToScrollTo};
|
||||
}
|
||||
|
||||
function setPackToScrollTo(a0) { // fn#84654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11238:157, offset: 0x01f521b3, size: 54 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
return (require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun84655);
|
||||
}
|
||||
|
||||
function _fun84655() { // fn#84655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11238:182, offset: 0x01f521e9, size: 25 bytes, params: 1, frame: 11
|
||||
env1_0(_fun84656);
|
||||
}
|
||||
|
||||
function _fun84656(a0) { // fn#84656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11238:190, offset: 0x01f52202, size: 36 bytes, params: 2, frame: 4
|
||||
const value = a0;
|
||||
return value.packToScrollTo === env1_0 ? value : {packToScrollTo: env1_0};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Metro module 11051; source: modules/stickers/native/StickersUtils.tsx; dependencies: [31, 27, 1867, 1878, 11052, 661, 1346, 11049, 4785, 11053, 11054, 1583, 2] */
|
||||
function _fun84642(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:6, offset: 0x01f51cd6, size: 284 bytes, params: 8, frame: 19
|
||||
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 */).NativeModules;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(11052) /* metro dependency 11052: StickerPickerStore */).useStickerPickerStore;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).GuildNSFWContentLevel;
|
||||
const env0_9 = (require(1346) /* metro dependency 1346: ExpressionPickerConstants */).ExpressionPickerViewType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickersUtils.tsx');
|
||||
exports.useStickerCategories = useStickerCategories;
|
||||
exports.preloadSticker = function({hash, url, width, height, frames, callback}) {
|
||||
var NativeLottieUtils = NativeModules.NativeLottieUtils;
|
||||
NativeLottieUtils.preload(hash, url, width, height, frames, callback);
|
||||
};
|
||||
exports.dropPreloadedSticker = function(a0) {
|
||||
var NativeLottieUtils = NativeModules.NativeLottieUtils;
|
||||
NativeLottieUtils.dropPreload(a0);
|
||||
};
|
||||
exports.openStickerPickerToPackId = openStickerPickerToPackId;
|
||||
}
|
||||
|
||||
function useStickerCategories(a0) { // fn#84643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:348, offset: 0x01f51df2, size: 120 bytes, params: 2, frame: 16
|
||||
return env0_3.useMemo(_fun84644, [GuildStore.getGuilds(),
|
||||
(require(11049) /* metro dependency 11049: StickersHooks */).useStickerPackCategories(a0),
|
||||
UserStore.getCurrentUser()]);
|
||||
}
|
||||
|
||||
function openStickerPickerToPackId(a0, a1) { // fn#84650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:1087, offset: 0x01f52080, size: 68 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
useStickerPickerStore.getState().setPackToScrollTo(a1);
|
||||
global.setTimeout(_fun84651, 1);
|
||||
}
|
||||
|
||||
function _fun84644() { // fn#84644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:449, offset: 0x01f51e6a, size: 62 bytes, params: 1, frame: 12
|
||||
let value = env0_0.filter(function(a0) {
|
||||
return a0.stickers.length > 0;
|
||||
});
|
||||
value = value.filter(_fun84646);
|
||||
return value.map(_fun84647);
|
||||
}
|
||||
|
||||
function _fun84651() { // fn#84651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:1141, offset: 0x01f520c4, size: 90 bytes, params: 1, frame: 15
|
||||
var openCustomKeyboard;
|
||||
var object2;
|
||||
const current = env0_0.current;
|
||||
if (current != null) {
|
||||
openCustomKeyboard = current.openCustomKeyboard;
|
||||
object2 = {};
|
||||
value = environment.__proto__;
|
||||
object2.type = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.EXPRESSION;
|
||||
object2.context = ExpressionPickerViewType.STICKER;
|
||||
Reflect.apply(openCustomKeyboard, current, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84646({id, type}) { // fn#84646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:496, offset: 0x01f51ebe, size: 160 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const property = env1_2[id];
|
||||
const StickerCategoryTypes = (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes;
|
||||
const GUILD = StickerCategoryTypes.GUILD;
|
||||
let r0 = type !== GUILD || env1_1 != null && env1_1.nsfwAllowed;
|
||||
r0 = !r0 ? property == null : r0;
|
||||
r0 = !r0 ? property.nsfwLevel !== GuildNSFWContentLevel.AGE_RESTRICTED && property.nsfwLevel !== GuildNSFWContentLevel.EXPLICIT : r0;
|
||||
return !!r0;
|
||||
}
|
||||
|
||||
function _fun84647(a0) { // fn#84647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11237:667, offset: 0x01f51f5e, size: 192 bytes, params: 2, frame: 16
|
||||
var r2;
|
||||
var object2;
|
||||
let type = a0.type;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const StickerCategoryTypes = (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes;
|
||||
const FAVORITE = StickerCategoryTypes.FAVORITE;
|
||||
if (type === FAVORITE) {
|
||||
r2 = a0.type === StickerCategoryTypes.FAVORITE ? importDefault(11053) /* metro dependency 11053 */ : importDefault(11054) /* metro dependency 11054 */;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0, 8);
|
||||
object2['icon'] = r2;
|
||||
return object2;
|
||||
}
|
||||
type = a0.type;
|
||||
const RECENT = StickerCategoryTypes.RECENT;
|
||||
if (type === RECENT) {
|
||||
r2 = a0.type === StickerCategoryTypes.FAVORITE ? importDefault(11053) /* metro dependency 11053 */ : importDefault(11054) /* metro dependency 11054 */;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0, 8);
|
||||
object2['icon'] = r2;
|
||||
return object2;
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 11056; source: modules/stickers/native/openStickerPackDetailActionSheet.tsx; dependencies: [661, 683, 4080, 11057, 1962, 2] */
|
||||
function _fun84668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11242:6, offset: 0x01f5249e, size: 168 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/openStickerPackDetailActionSheet.tsx');
|
||||
exports.default = openStickerPackDetailActionSheet;
|
||||
exports.AnalyticsPopoutType = {EXPRESSION_SUGGESTIONS: 'Sticker Pack Detail Sheet (Expression Suggestions Popout)',
|
||||
STICKER_PACK_DETAIL: 'Sticker Pack Detail Sheet',
|
||||
STICKER_PACK_UPSELL: 'Sticker Pack Detail Sheet (Sticker Upsell Popout)'};
|
||||
}
|
||||
|
||||
function openStickerPackDetailActionSheet({analyticsLocation, analyticsPopoutType, stickerPack}) { // fn#84669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11242:462, offset: 0x01f52546, size: 162 bytes, params: 2, frame: 21
|
||||
const defaultImport = importDefault(dependencyMap[1]);
|
||||
const track = defaultImport.track;
|
||||
const STICKER_PACK_VIEW_ALL = AnalyticEvents.STICKER_PACK_VIEW_ALL;
|
||||
Reflect.apply(track, defaultImport, [STICKER_PACK_VIEW_ALL, {location: analyticsLocation,
|
||||
sticker_pack_id: stickerPack.id}]);
|
||||
const defaultImport2 = importDefault(dependencyMap[2]);
|
||||
const openLazy = defaultImport2.openLazy;
|
||||
let value = require(dependencyMap[4]);
|
||||
value = value(dependencyMap[3], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport2, [value, 'StickerPackDetailActionSheet', {stickerPack: stickerPack,
|
||||
analyticsPopoutType: analyticsPopoutType}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/* Metro module 11070; source: modules/stickers/native/premium/StickersPremiumUpsellAlert.tsx; dependencies: [31, 27, 5140, 661, 1880, 33, 11071, 1244, 697, 11072, 11073, 4501, 1305, 4573, 694, 7037, 7942, 1478, 6771, 4596, 683, 5080, 7028, 1962, 5278, 8160, 11074, 2] */
|
||||
function _fun84760(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:6, offset: 0x01f564d5, size: 742 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const env0_6 = value.ScrollView;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.AnalyticsSections;
|
||||
const env0_10 = value.AnalyticsObjects;
|
||||
value = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_11 = value.SubscriptionPlans;
|
||||
const env0_12 = value.NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
object2 = {icon: importDefault(11071) /* metro dependency 11071 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.uAfKTe);
|
||||
}};
|
||||
const PREMIUM_PERK_PURPLE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PREMIUM_PERK_PURPLE;
|
||||
object2.color = PREMIUM_PERK_PURPLE;
|
||||
const items2 = [object2];
|
||||
items2[1] = {icon: importDefault(11072) /* metro dependency 11072 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.aVSVBO,
|
||||
{numFreeGuildSubscriptions: NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM});
|
||||
}};
|
||||
object2 = {icon: importDefault(11073) /* metro dependency 11073 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.pqHIf7);
|
||||
}};
|
||||
const PREMIUM_PERK_GREEN = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PREMIUM_PERK_GREEN;
|
||||
object2.color = PREMIUM_PERK_GREEN;
|
||||
items2[2] = object2;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.alert = {paddingTop: 18};
|
||||
object2.shortHeightAlert = {height: 500};
|
||||
object2.content = {alignItems: 'center'};
|
||||
object2.closeContainer = {'flexDirection': 'row-reverse', 'width': '100%', 'marginBottom': 16};
|
||||
object2.description = {'textAlign': 'center', 'lineHeight': 20};
|
||||
const object3 = {'backgroundColor': null, 'borderRadius': null, 'marginTop': 16, 'marginBottom': 0,
|
||||
'paddingHorizontal': 12, 'paddingVertical': 8, 'width': '100%'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.perks = object3;
|
||||
const PRIMARY_560 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_560;
|
||||
object2.perkRow = {'paddingVertical': 10, 'borderBottomColor': null, 'borderBottomWidth': 1, 'flexDirection': 'row',
|
||||
'alignItems': 'center', borderBottomColor: PRIMARY_560};
|
||||
object2.lastPerkRow = {borderBottomWidth: 0};
|
||||
object2.perkIcon = {'width': 24, 'marginRight': 20};
|
||||
object2.perkText = {'lineHeight': 20, 'flexShrink': 1};
|
||||
object2.imageHeader = {marginBottom: 12};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/premium/StickersPremiumUpsellAlert.tsx');
|
||||
exports.default = _default_84765;
|
||||
}
|
||||
|
||||
function PerkRow({perk, isLastPerk}) { // fn#84764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1378, offset: 0x01f56887, size: 238 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.perkRow];
|
||||
items2[1] = isLastPerk ? styles.lastPerkRow : undefined;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const icon = <Icon style={styles.perkIcon} source={perk.icon} disableColor={perk.color == null} color={perk.color} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{icon}
|
||||
<Text
|
||||
style={styles.perkText}
|
||||
variant="text-md/medium"
|
||||
color="interactive-text-active"
|
||||
>
|
||||
{perk.description()}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_84765({onClose, analyticsLocation}) { // fn#84765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1699, offset: 0x01f56975, size: 814 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
env0_3.useEffect(_fun84766, []);
|
||||
const defaultImport = importDefault(7942) /* metro dependency 7942: usePremiumPlanPrice */;
|
||||
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
|
||||
const priceString = defaultImport(PREMIUM_MONTH_TIER_2)?.priceString;
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
const env0_1 = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.f3Pet9);
|
||||
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
|
||||
const GREEN = ButtonColors.GREEN;
|
||||
object2.confirmColor = GREEN;
|
||||
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o3Tnif);
|
||||
object2.onConfirm = onConfirm;
|
||||
object2.onClose = onClose;
|
||||
object2.onCancel = onClose;
|
||||
object2.style = [styles.alert, height <= 580 ? styles.shortHeightAlert : null];
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const view = <View style={styles.closeContainer}><PressableOpacity accessibilityRole="button" accessibilityLabel="close" onPress={onClose}><Icon source={importDefault(8160) /* metro dependency 8160 */} /></PressableOpacity></View>;
|
||||
const items3 = [<Image source={importDefault(11074) /* metro dependency 11074 */} style={styles.imageHeader} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const format = intl.format;
|
||||
const TBsJfQ = (require(1244) /* metro dependency 1244: indexNative */).t.TBsJfQ;
|
||||
items3[1] = <Text style={styles.description} variant="text-md/medium">{Reflect.apply(format, intl, [TBsJfQ,
|
||||
{monthlyPrice: priceString ?? '$...'}])}</Text>;
|
||||
items3[2] = <View style={styles.perks}>{env0_15.map(_fun84770)}</View>;
|
||||
return (
|
||||
<Alert {...object2}>
|
||||
{view}
|
||||
<ScrollView>
|
||||
<View style={styles.content} onStartShouldSetResponder={function() {
|
||||
return true;
|
||||
}}>
|
||||
{items3}
|
||||
</View>
|
||||
</ScrollView>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84766() { // fn#84766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1758, offset: 0x01f56ca3, size: 66 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
if (!IAPStoreAndroid.isReady()) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun84767);
|
||||
}
|
||||
}
|
||||
|
||||
function _default_84765OnConfirm() { // fn#84768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:2118, owner: _default_84765.onConfirm, offset: 0x01f56d0a, size: 177 bytes, params: 1, frame: 21
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[20]);
|
||||
const track = defaultImport.track;
|
||||
const PREMIUM_PROMOTION_OPENED = AnalyticEvents.PREMIUM_PROMOTION_OPENED;
|
||||
const object = {};
|
||||
copyDataProperties(object, analyticsLocation, undefined);
|
||||
const STICKER_PREMIUM_TIER_2_UPSELL_MODAL = AnalyticsSections.STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
object['section'] = STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
|
||||
object['object'] = BUTTON_CTA;
|
||||
Reflect.apply(track, defaultImport, [PREMIUM_PROMOTION_OPENED, {location: object}]);
|
||||
const defaultImport2 = importDefault(dependencyMap[21]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[23]);
|
||||
value = value(dependencyMap[22], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {analyticsLocations: analyticsLocations}]);
|
||||
}
|
||||
|
||||
function _fun84770(a0, a1) { // fn#84770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:2872, offset: 0x01f56dbb, size: 60 bytes, params: 3, frame: 16
|
||||
return (
|
||||
<PerkRow
|
||||
perk={a0}
|
||||
isLastPerk={a1 === env1_15.length - 1}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84767() { // fn#84767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1791, offset: 0x01f56ce5, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(7037) /* metro dependency 7037: BillingActionCreators */).loadProducts();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Metro module 11069; source: modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx; dependencies: [5, 31, 661, 33, 683, 6847, 4223, 4496, 11070, 1962, 2] */
|
||||
function _fun84752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:6, offset: 0x01f56264, size: 197 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 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.AnalyticEvents;
|
||||
const env0_5 = constantsModule.AnalyticsSections;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx');
|
||||
exports.default = function() {
|
||||
return _openStickersPremiumUpsellAlert.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _openStickersPremiumUpsellAlert() { // fn#84753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:181, offset: 0x01f56329, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun84755).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun84755(a0) { // fn#84755, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:266, offset: 0x01f56366, size: 228 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
if (true) {
|
||||
var env0_0 = a0;
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
var value3 = binding(binding2[4]);
|
||||
var track = value3.track;
|
||||
var OPEN_MODAL = env2_4.OPEN_MODAL;
|
||||
var STICKER_PREMIUM_TIER_2_UPSELL_MODAL = env2_5.STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
Reflect.apply(track, value3, [OPEN_MODAL, {type: STICKER_PREMIUM_TIER_2_UPSELL_MODAL, location: a0}]);
|
||||
var Promise = global.Promise;
|
||||
var all = Promise.all;
|
||||
binding = env2_0;
|
||||
items = [binding(binding2[5]).fetchPremiumSubscriptionPlans()];
|
||||
var value5 = binding(binding2[6]);
|
||||
items[1] = value5.fetchPaymentSources();
|
||||
yield Reflect.apply(all, Promise, [items]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = env2_1(env2_2[7]);
|
||||
value.openLazy({importer: importer_84756});
|
||||
}
|
||||
}
|
||||
|
||||
function importer_84756() { // fn#84756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:481, offset: 0x01f5644a, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_0;
|
||||
const binding2 = env3_2;
|
||||
value = binding(binding2[9]);
|
||||
value = value(binding2[8], binding2.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
return _fun84758;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun84757({default: env0_0}) { // fn#84757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:513, offset: 0x01f5648a, size: 23 bytes, params: 2, frame: 2
|
||||
return _fun84758;
|
||||
}
|
||||
|
||||
function _fun84758(a0) { // fn#84758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:528, offset: 0x01f564a1, size: 52 bytes, params: 2, frame: 14
|
||||
const binding = env5_6;
|
||||
const binding2 = env0_0;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['analyticsLocation'] = env2_0;
|
||||
return binding(binding2, object2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 11065; source: modules/stickers/native/showStickerDetailActionSheet.tsx; dependencies: [4080, 11066, 1962, 2] */
|
||||
function _fun84708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11251:6, offset: 0x01f541c3, size: 116 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/showStickerDetailActionSheet.tsx');
|
||||
exports.hideStickerDetailActionSheet = hideStickerDetailActionSheet;
|
||||
exports.showStickerDetailActionSheet = showStickerDetailActionSheet;
|
||||
}
|
||||
|
||||
function hideStickerDetailActionSheet() { // fn#84709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11251:249, offset: 0x01f54237, size: 43 bytes, params: 1, frame: 12
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('sticker_detail_action_sheet');
|
||||
}
|
||||
|
||||
function showStickerDetailActionSheet(a0) { // fn#84710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11251:348, offset: 0x01f54262, size: 82 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'sticker_detail_action_sheet', a0]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
/* Metro module 11078; source: modules/stickers/native/useStickerPickerListData.tsx; dependencies: [31, 11052, 11028, 1346, 11051, 22, 1244, 4785, 8581, 2] */
|
||||
function _fun84811(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:6, offset: 0x01f583c0, size: 261 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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(11052) /* metro dependency 11052: StickerPickerStore */).useStickerPickerStore;
|
||||
const stickerPickerConstantsModule = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const LABEL_HEIGHT = stickerPickerConstantsModule.LABEL_HEIGHT;
|
||||
const env0_5 = stickerPickerConstantsModule.MIN_MARGIN;
|
||||
const env0_6 = stickerPickerConstantsModule.ROW_HEIGHT;
|
||||
const env0_7 = stickerPickerConstantsModule.STICKER_SIZE;
|
||||
const PADDING_VERTICAL = (require(1346) /* metro dependency 1346: ExpressionPickerConstants */).PADDING_VERTICAL;
|
||||
object2 = {STICKERS: 0};
|
||||
object2[0] = 'STICKERS';
|
||||
object2.NSFW = 1;
|
||||
object2[1] = 'NSFW';
|
||||
const env0_9 = LABEL_HEIGHT + 2 * PADDING_VERTICAL;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/useStickerPickerListData.tsx');
|
||||
exports.default = useStickerPickerListData;
|
||||
exports.StickerPickerSectionType = object2;
|
||||
}
|
||||
|
||||
function useStickerPickerListData({channel, containerWidth, searchResults, stickerFormats}) { // fn#84812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:417, offset: 0x01f584c5, size: 148 bytes, params: 2, frame: 18
|
||||
const value2 = (require(11051) /* metro dependency 11051: StickersUtils */).useStickerCategories(channel);
|
||||
return value2.useMemo(_fun84814, [containerWidth, value2, stickerFormats, searchResults,
|
||||
useStickerPickerStore(function(a0) {
|
||||
return a0.packToScrollTo;
|
||||
})]);
|
||||
}
|
||||
|
||||
function _fun84814() { // fn#84814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:597, offset: 0x01f58564, size: 305 bytes, params: 1, frame: 25
|
||||
var push;
|
||||
var items5;
|
||||
var intl;
|
||||
const Math = global.Math;
|
||||
var value;
|
||||
const value4 = Math.floor((containerWidth - MIN_MARGIN) / (STICKER_SIZE + MIN_MARGIN));
|
||||
const items3 = [];
|
||||
const items2 = [];
|
||||
const items4 = [];
|
||||
const env0_3 = items4;
|
||||
const env0_4 = undefined;
|
||||
const closure = pushCategory_84815;
|
||||
let searchResultsBinding = searchResults;
|
||||
if (searchResultsBinding != null) {
|
||||
searchResultsBinding = searchResults;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
closure(searchResultsBinding,
|
||||
intl.string((require(1244) /* metro dependency 1244: indexNative */).t['zkoeq/']));
|
||||
} else {
|
||||
env0_3.map(_fun84817);
|
||||
push = items2.push;
|
||||
value = ((a0) => {
|
||||
var env0_0 = 0;
|
||||
return a0.map(_fun84819);
|
||||
})(items3);
|
||||
items5 = [];
|
||||
arraySpread(items5, value, 0, undefined);
|
||||
apply(push, items5, items2, undefined);
|
||||
}
|
||||
return {sections: items3, sectionHeights: items2, sectionSize: env1_9, sectionFooterSize: 12, sectionLabels: [],
|
||||
rowHeight: ROW_HEIGHT, rowSize: value4, rowsBySection: items4, packToScrollToIndex: env0_4};
|
||||
}
|
||||
|
||||
function pushCategory_84815(a0) { // fn#84815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:674, offset: 0x01f58695, size: 223 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
var value2;
|
||||
var binding;
|
||||
var push;
|
||||
var value4;
|
||||
let value = a1;
|
||||
const r3 = value !== undefined ? value : '';
|
||||
if (a2 === true) {
|
||||
binding = env0_3;
|
||||
push = binding.push;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
Reflect.apply(push, binding, [{type: env2_8.NSFW, stickersByRow: []}]);
|
||||
binding = env0_1;
|
||||
binding.push(1);
|
||||
} else {
|
||||
value = a0.filter(function(a0) {
|
||||
return stickerFormats.includes(a0.format_type);
|
||||
});
|
||||
value2 = environment.__proto__.__proto__;
|
||||
value = (importDefault(22) /* metro dependency 22 */).chunk(value, env0_0);
|
||||
binding = env0_3;
|
||||
binding.push({type: env2_8.STICKERS, stickersByRow: value});
|
||||
binding = env0_1;
|
||||
binding.push(value.length);
|
||||
}
|
||||
env0_2.push(r3);
|
||||
}
|
||||
|
||||
function _fun84817(a0, a1) { // fn#84817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:969, offset: 0x01f58790, size: 141 bytes, params: 3, frame: 16
|
||||
var r4;
|
||||
let value = environment.__proto__;
|
||||
if (env1_4 === a0.id) {
|
||||
env0_4 = a1;
|
||||
}
|
||||
const type = a0.type;
|
||||
value = environment.__proto__.__proto__;
|
||||
const StickerCategoryTypes = (require(4785) /* metro dependency 4785: StickersTypes */).StickerCategoryTypes;
|
||||
const GUILD = StickerCategoryTypes.GUILD;
|
||||
const value2 = type === GUILD;
|
||||
if (value2) {
|
||||
value = require(8581) /* metro dependency 8581: AgeGateUtils */;
|
||||
value = value.shouldNSFWGateGuild(a0.id);
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value2;
|
||||
}
|
||||
pushCategory_84815(a0.stickers, a0.name, r4);
|
||||
}
|
||||
|
||||
function getSectionHeights(a0) { // fn#84818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:1125, offset: 0x01f5881d, size: 30 bytes, params: 2, frame: 11
|
||||
return a0.map(_fun84819);
|
||||
}
|
||||
|
||||
function _fun84819(a0, a1) { // fn#84819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11264:1177, offset: 0x01f5883b, size: 61 bytes, params: 3, frame: 5
|
||||
var value;
|
||||
if (a1 !== 0) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = a0 * ROW_HEIGHT + env3_9;
|
||||
value = value + 12 + env0_0;
|
||||
env0_0 = value;
|
||||
} else {
|
||||
if (a0 === 0) {
|
||||
return 0;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = a0 * ROW_HEIGHT + env3_9;
|
||||
value = value + 12 + env0_0;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user