Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user