Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,43 @@
|
||||
/* Metro module 7214; source: modules/messages/native/burst_reactions/BurstReactionAnimation.tsx; dependencies: [31, 4502, 33, 4501, 7172, 566, 7215, 6760, 2] */
|
||||
function _fun57703(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7392:6, offset: 0x016b3cb3, size: 196 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({content: {width: '100%'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/BurstReactionAnimation.tsx');
|
||||
exports.default = BurstReactionAnimation;
|
||||
}
|
||||
|
||||
function BurstReactionAnimation(a0) { // fn#57704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7392:287, offset: 0x016b3d77, size: 337 bytes, params: 2, frame: 26
|
||||
const channelId = a0.channelId;
|
||||
const messageId = a0.messageId;
|
||||
const emoji = a0.emoji;
|
||||
const isFullscreen = a0.isFullscreen;
|
||||
const onComplete = a0.onComplete;
|
||||
let withFadeOut = a0.withFadeOut;
|
||||
withFadeOut = withFadeOut === undefined || withFadeOut;
|
||||
const object2 = {'channelId': 0, 'messageId': 0, 'emoji': 0, 'isFullscreen': 0, 'onComplete': 0, 'withFadeOut': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, emoji);
|
||||
const styles = useStyles();
|
||||
const value3 = require(dependencyMap[4]).useBurstReactionAnimationSource({emoji: emoji, messageId: messageId,
|
||||
channelId: channelId, isFullscreen: isFullscreen});
|
||||
const useReducedMotion = require(dependencyMap[5]).useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
if (value3 == null) {
|
||||
return null;
|
||||
}
|
||||
const defaultImport = importDefault(withFadeOut ? dependencyMap[6] : dependencyMap[7]);
|
||||
const object4 = {};
|
||||
if (withFadeOut) {
|
||||
object4.onComplete = onComplete;
|
||||
} else {
|
||||
object4.onAnimationFinish = onComplete;
|
||||
}
|
||||
return ((Component) => <Component style={styles.content} loop={false} speed={useReducedMotion ? 0.5 : 1.2} {...value} {...object4} {...{['source']: value3}} />)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,239 @@
|
||||
/* Metro module 15265; source: modules/messages/native/burst_reactions/BurstReactionAnimationContainer.tsx; dependencies: [57, 31, 27, 1376, 33, 4501, 697, 7172, 4081, 4082, 694, 4017, 4504, 10357, 1365, 1305, 7214, 4573, 1244, 3868, 2] */
|
||||
function _fun116710(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:6, offset: 0x024945dc, size: 526 bytes, params: 8, frame: 25
|
||||
var object5;
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.TouchableOpacity;
|
||||
const env0_6 = value.View;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object5 = {};
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object6['backgroundColor'] = BLACK;
|
||||
const BACKDROP_OPACITY = (require(7172) /* metro dependency 7172: BurstReactionEffectUtils */).BACKDROP_OPACITY;
|
||||
object6['opacity'] = BACKDROP_OPACITY;
|
||||
object5.background = object6;
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object7['flex'] = 1;
|
||||
object7['alignItems'] = 'center';
|
||||
object7['justifyContent'] = 'center';
|
||||
object5.fill = object7;
|
||||
object5.dismissTextContainer = {'position': 'absolute', 'bottom': 48, 'zIndex': 1};
|
||||
const object8 = {'backgroundColor': null, 'borderRadius': null, 'position': 'absolute', 'bottom': -600,
|
||||
'height': 700, 'width': 700};
|
||||
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
||||
object8.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object5.dismissTextBackground = object8;
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object5]);
|
||||
object5 = {code: "function BurstReactionAnimationContainerTsx1(){const{animationData,showAnimation,withTiming,runOnJS,handleComponentFinish}=this.__closure;if(animationData==null){return{opacity:0};}if(!showAnimation){return{opacity:withTiming(0,{duration:300},'respect-motion-settings',function(finished){if(finished)runOnJS(handleComponentFinish)();})};}return{opacity:withTiming(1,{duration:300})};}"};
|
||||
object5 = {code: 'function BurstReactionAnimationContainerTsx2(finished){const{runOnJS,handleComponentFinish}=this.__closure;if(finished)runOnJS(handleComponentFinish)();}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/BurstReactionAnimationContainer.tsx');
|
||||
exports.default = BurstReactionAnimationContainer;
|
||||
}
|
||||
|
||||
function BurstReactionAnimationContainerInner() { // fn#116711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1252, offset: 0x024947ea, size: 404 bytes, params: 1, frame: 24
|
||||
const closure = handleComponentFinish;
|
||||
const env0_0 = useStyles();
|
||||
const binding = env0_4Binding;
|
||||
const value2 = null;
|
||||
const [property, env0_2] = env0_3(binding.useState(value2), 2);
|
||||
var [property2, env0_4] = env0_3(env0_4Binding.useState(false), 2);
|
||||
const env0_5 = env0_4Binding.useRef(false);
|
||||
env0_4Binding.useEffect(_fun116714, []);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure3 = BurstReactionAnimationContainerInnerY;
|
||||
const object2 = {animationData: property, showAnimation: property2};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object2.handleComponentFinish = closure;
|
||||
closure3.__closure = object2;
|
||||
closure3.__workletHash = 12044515783370;
|
||||
closure3.__initData = env0_12;
|
||||
const env0_6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure3]);
|
||||
return value2 == property ? value2 : ((Component) => <Component contentTypes={[(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.SUPER_REACTIONS_MOBILE_FULLSCREEN_TAP_TO_DISMISS]}>{children_116719}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
|
||||
}
|
||||
|
||||
function BurstReactionAnimationContainer() { // fn#116723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:3458, offset: 0x02494e5f, size: 98 bytes, params: 1, frame: 17
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const DARKER = (importDefault(697) /* metro dependency 697: native */).themes.DARKER;
|
||||
return (
|
||||
<ThemeContextProvider theme={DARKER}>
|
||||
<BurstReactionAnimationContainerInner />
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function handleComponentFinish() { // fn#116712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1407, owner: BurstReactionAnimationContainerInner.handleComponentFinish, offset: 0x0249497e, size: 35 bytes, params: 1, frame: 11
|
||||
if (env0_5.current === false) {
|
||||
env0_2(null);
|
||||
}
|
||||
}
|
||||
|
||||
function handleAnimationFinish(a0) { // fn#116713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1464, owner: BurstReactionAnimationContainerInner.handleAnimationFinish, offset: 0x024949a1, size: 41 bytes, params: 2, frame: 13
|
||||
env0_4(false);
|
||||
env0_5.current = false;
|
||||
if (a0 != null) {
|
||||
a0();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116714() { // fn#116714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1543, offset: 0x024949ca, size: 65 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const closure = handleEffectReceived;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('BURST_REACTION_EFFECT_SEND', closure);
|
||||
return _fun116716;
|
||||
}
|
||||
|
||||
function BurstReactionAnimationContainerInnerY() { // fn#116717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1920, owner: BurstReactionAnimationContainerInner.y, offset: 0x02494abe, size: 201 bytes, params: 1, frame: 23
|
||||
var environment;
|
||||
var r0;
|
||||
var binding;
|
||||
var object4;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var withTiming;
|
||||
var object5;
|
||||
var closure;
|
||||
var object6;
|
||||
if (env0_1 == null) {
|
||||
r0 = {opacity: 0};
|
||||
} else {
|
||||
binding = env0_3;
|
||||
object4 = {};
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue.withTiming;
|
||||
object5 = {duration: 300};
|
||||
if (binding) {
|
||||
object4.opacity = Reflect.apply(withTiming, moduleValue, [1, object5]);
|
||||
r0 = object4;
|
||||
} else {
|
||||
closure = yN;
|
||||
object6 = {};
|
||||
object6.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
||||
object6.handleComponentFinish = handleComponentFinish;
|
||||
closure.__closure = object6;
|
||||
closure.__workletHash = 9326347209552;
|
||||
closure.__initData = env1_13;
|
||||
object4.opacity = Reflect.apply(withTiming, moduleValue, [0, object5, 'respect-motion-settings', closure]);
|
||||
r0 = object4;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BurstReactionAnimationContainerInnerChildren({visibleContent, markAsDismissed}) { // fn#116719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:2608, owner: BurstReactionAnimationContainerInner.children, offset: 0x02494bbf, size: 603 bytes, params: 2, frame: 34
|
||||
var environment;
|
||||
var r15;
|
||||
var r11;
|
||||
var BurstReactionAnimation;
|
||||
var binding;
|
||||
var jsxRuntimeEnv1_9Binding;
|
||||
var Text;
|
||||
var object2;
|
||||
var intl;
|
||||
const value = environment.__proto__;
|
||||
const OverlayView = (require(1305) /* metro dependency 1305: native */).OverlayView;
|
||||
const object4 = {};
|
||||
let stylesBinding = styles;
|
||||
let fill = stylesBinding.fill;
|
||||
object4.style = fill;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items3 = [stylesBinding.fill, env0_6];
|
||||
const object5 = {};
|
||||
const BACKDROP_OPACITY = (require(7172) /* metro dependency 7172: BurstReactionEffectUtils */).BACKDROP_OPACITY;
|
||||
object5.activeOpacity = BACKDROP_OPACITY;
|
||||
object5.onPress = function() {
|
||||
handleAnimationFinish(_fun116721);
|
||||
};
|
||||
object5.style = stylesBinding.fill;
|
||||
const items2 = [<View style={stylesBinding.background} />];
|
||||
fill = stylesBinding.fill;
|
||||
if (env0_3) {
|
||||
BurstReactionAnimation = importDefault(7214) /* metro dependency 7214: BurstReactionAnimation */;
|
||||
binding = env0_1;
|
||||
r15 = <BurstReactionAnimation isFullscreen channelId={binding.channelId} messageId={binding.messageId} emoji={binding.emoji} loop={false} withFadeOut={false} onComplete={function() {
|
||||
handleAnimationFinish();
|
||||
}} />;
|
||||
} else {
|
||||
r15 = null;
|
||||
}
|
||||
items2[1] = <View style={fill}>{r15}</View>;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const SUPER_REACTIONS_MOBILE_FULLSCREEN_TAP_TO_DISMISS = DismissibleContent.SUPER_REACTIONS_MOBILE_FULLSCREEN_TAP_TO_DISMISS;
|
||||
const value6 = visibleContent === SUPER_REACTIONS_MOBILE_FULLSCREEN_TAP_TO_DISMISS;
|
||||
if (value6) {
|
||||
jsxRuntimeEnv1_9Binding = jsxRuntimeEnv1_9;
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
object2 = {};
|
||||
stylesBinding = styles;
|
||||
object2.style = stylesBinding.dismissTextContainer;
|
||||
object2.variant = 'text-sm/medium';
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r11 = <><Text {...object2}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.QpPMih)}</Text><View style={stylesBinding.dismissTextBackground} /></>;
|
||||
} else {
|
||||
r11 = value6;
|
||||
}
|
||||
items2[2] = r11;
|
||||
return (
|
||||
<OverlayView {...object4}>
|
||||
<View2 style={items3}>
|
||||
<TouchableOpacity {...object5}>
|
||||
{items2}
|
||||
</TouchableOpacity>
|
||||
</View2>
|
||||
</OverlayView>
|
||||
);
|
||||
}
|
||||
|
||||
function handleEffectReceived({channelId, emoji, messageId}) { // fn#116715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1548, offset: 0x02494a0b, size: 127 bytes, params: 2, frame: 14
|
||||
env1_2({channelId: channelId, emoji: emoji, messageId: messageId});
|
||||
env1_4(true);
|
||||
env1_5.current = true;
|
||||
const hapticUtilsNativeModule = require(4081) /* metro dependency 4081: HapticUtilsNative */;
|
||||
const triggerHapticFeedback = hapticUtilsNativeModule.triggerHapticFeedback;
|
||||
const IMPACT_HEAVY = (importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_HEAVY;
|
||||
Reflect.apply(triggerHapticFeedback, hapticUtilsNativeModule, [IMPACT_HEAVY]);
|
||||
}
|
||||
|
||||
function _fun116716() { // fn#116716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:1798, offset: 0x02494a8a, size: 52 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.unsubscribe('BURST_REACTION_EFFECT_SEND', handleEffectReceived);
|
||||
}
|
||||
|
||||
function yN(a0) { // fn#116718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:2083, owner: BurstReactionAnimationContainerInner.y.n, offset: 0x02494b87, size: 56 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
var runOnJS;
|
||||
var value2;
|
||||
if (a0) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
runOnJS = value.runOnJS;
|
||||
value2 = environment.__proto__;
|
||||
Reflect.apply(runOnJS, value, [handleComponentFinish])();
|
||||
}
|
||||
}
|
||||
|
||||
function childrenOnPress_116720() { // fn#116720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15462:2789, owner: BurstReactionAnimationContainerInner.children.onPress, offset: 0x02494e1a, size: 25 bytes, params: 1, frame: 11
|
||||
handleAnimationFinish(function() {
|
||||
return markAsDismissed(ContentDismissActionType.UNKNOWN);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 7213; source: modules/messages/native/burst_reactions/BurstReactionAnimationPreview.tsx; dependencies: [31, 33, 7152, 7214, 2] */
|
||||
function _fun57701(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7391:6, offset: 0x016b3bb1, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/BurstReactionAnimationPreview.tsx');
|
||||
exports.default = BurstReactionAnimationPreview;
|
||||
}
|
||||
|
||||
function BurstReactionAnimationPreview({channelId, emoji, messageId, reactionType}) { // fn#57702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7391:235, offset: 0x016b3c39, size: 122 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
var value;
|
||||
const ReactionTypes = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes;
|
||||
const BURST = ReactionTypes.BURST;
|
||||
if (reactionType !== BURST) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = importDefault(7214) /* metro dependency 7214: BurstReactionAnimation */;
|
||||
value = ((Component) => <Component isFullscreen channelId={channelId} messageId={messageId} emoji={emoji} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,128 @@
|
||||
/* Metro module 7215; source: modules/messages/native/burst_reactions/FadeOutLottieAnimation.tsx; dependencies: [57, 31, 4502, 33, 4501, 566, 4017, 4504, 6760, 2] */
|
||||
function _fun57706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7393:6, offset: 0x016b3ed7, size: 248 bytes, params: 8, frame: 20
|
||||
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 accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({content: {width: '100%'}});
|
||||
object = {code: "function FadeOutLottieAnimationTsx1(){const{isAnimationComplete,isFadeOut,withTiming,runOnJS,setIsFadeOut}=this.__closure;if(!isAnimationComplete){return{opacity:1};}if(isFadeOut){return{opacity:withTiming(0,{duration:300},'respect-motion-settings',function(finished){if(finished)runOnJS(setIsFadeOut)(false);})};}return{opacity:0};}"};
|
||||
object = {code: 'function FadeOutLottieAnimationTsx2(finished){const{runOnJS,setIsFadeOut}=this.__closure;if(finished)runOnJS(setIsFadeOut)(false);}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/FadeOutLottieAnimation.tsx');
|
||||
exports.default = FadeOutLottieAnimation;
|
||||
}
|
||||
|
||||
function FadeOutLottieAnimation(a0) { // fn#57707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7393:787, offset: 0x016b3fcf, size: 441 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
var r0;
|
||||
var View;
|
||||
const env0_0 = a0.onComplete;
|
||||
let value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.onComplete = 0;
|
||||
const value3 = copyDataProperties({}, a0, value2, undefined);
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value5 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value6 = binding2(value5, 2);
|
||||
const property = value6[0];
|
||||
const value7 = 1;
|
||||
const env0_2 = value6[value7];
|
||||
useState = binding.useState;
|
||||
const value8 = binding2(Reflect.apply(useState, binding, [true]), 2);
|
||||
const property2 = value8[0];
|
||||
const property3 = value8[value7];
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
let closure = _fun57709;
|
||||
binding.useEffect(closure, []);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
closure = FadeOutLottieAnimationT;
|
||||
object2 = {isAnimationComplete: property, isFadeOut: property2};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object2.setIsFadeOut = property3;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 1137618554665;
|
||||
closure.__initData = env0_8;
|
||||
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
if (property) {
|
||||
if (property2) {
|
||||
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
object2 = {style: value9};
|
||||
value = importDefault(6760) /* metro dependency 6760: LottieAnimationView */;
|
||||
value = <View {...object2}>{((Component) => <Component style={styles.content} speed={useReducedMotion ? 0.5 : value7} onAnimationFinish={onAnimationFinish} {...value3} />)(value)}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
object2 = {style: value9};
|
||||
value = importDefault(6760) /* metro dependency 6760: LottieAnimationView */;
|
||||
value = <View {...object2}>{((Component) => <Component style={styles.content} speed={useReducedMotion ? 0.5 : value7} onAnimationFinish={onAnimationFinish} {...value3} />)(value)}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function FadeOutLottieAnimationT() { // fn#57710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7393:1056, owner: FadeOutLottieAnimation.T, offset: 0x016b419a, size: 194 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var withTiming;
|
||||
var closure;
|
||||
var object2;
|
||||
const binding = env0_1;
|
||||
const object4 = {};
|
||||
if (binding) {
|
||||
if (env0_3) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue.withTiming;
|
||||
closure = TT_57711;
|
||||
object2 = {};
|
||||
object2.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
||||
object2.setIsFadeOut = env0_4;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 14133863353798;
|
||||
closure.__initData = env1_9;
|
||||
object4.opacity = Reflect.apply(withTiming, moduleValue, [0, {duration: 300}, 'respect-motion-settings',
|
||||
closure]);
|
||||
} else {
|
||||
object4.opacity = 0;
|
||||
}
|
||||
} else {
|
||||
object4.opacity = 1;
|
||||
}
|
||||
return object4;
|
||||
}
|
||||
|
||||
function onAnimationFinish(a0) { // fn#57712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7393:1599, owner: FadeOutLottieAnimation.onAnimationFinish, offset: 0x016b4297, size: 42 bytes, params: 2, frame: 12
|
||||
if (onComplete != null) {
|
||||
onComplete(a0);
|
||||
}
|
||||
env0_2(true);
|
||||
}
|
||||
|
||||
function TT_57711(a0) { // fn#57711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7393:1152, owner: FadeOutLottieAnimation.T.t, offset: 0x016b425c, size: 59 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
var runOnJS;
|
||||
var value2;
|
||||
if (a0) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
runOnJS = value.runOnJS;
|
||||
value2 = environment.__proto__;
|
||||
value = Reflect.apply(runOnJS, value, [env1_4]);
|
||||
value(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 8573; source: modules/messages/native/burst_reactions/SuperReactionLocalImageAnimation.tsx; dependencies: [31, 33, 7172, 7215, 2] */
|
||||
function _fun67838(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8758:6, offset: 0x01c33ca0, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/SuperReactionLocalImageAnimation.tsx');
|
||||
exports.default = SuperReactionLocalImageAnimation;
|
||||
}
|
||||
|
||||
function SuperReactionLocalImageAnimation(a0) { // fn#67839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8758:238, offset: 0x01c33d2a, size: 154 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
const localImageSource = a0.localImageSource;
|
||||
const animationSource = a0.animationSource;
|
||||
let value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.localImageSource = 0;
|
||||
value2.animationSource = 0;
|
||||
const value3 = copyDataProperties({}, a0, value2, animationSource);
|
||||
const value5 = (require(7172) /* metro dependency 7172: BurstReactionEffectUtils */).useSuperReactionAnimationSourceFromLocalImage({animationSource: animationSource,
|
||||
localImageSource: localImageSource});
|
||||
if (value == value5) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(7215) /* metro dependency 7215: FadeOutLottieAnimation */;
|
||||
value = ((Component) => <Component loop source={value5} {...value3} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Metro module 8565; source: modules/messages/native/burst_reactions/SuperReactionUpsellActionSheet.tsx; dependencies: [31, 27, 1878, 661, 33, 1365, 8566, 8567, 8568, 8569, 8570, 8571, 8572, 4501, 697, 6771, 566, 3802, 5080, 7028, 1962, 7940, 22, 8573, 7183, 8574, 1244, 7172, 1305, 4080, 2] */
|
||||
function _fun67825(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8750:6, offset: 0x01c3354a, size: 523 bytes, params: 8, frame: 22
|
||||
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 StyleSheet = value.StyleSheet;
|
||||
const env0_4 = value.View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticsPages;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const env0_8 = DismissibleContent.SUPER_REACTIONS_COACHMARK_MOBILE;
|
||||
object = [require(8566) /* metro dependency 8566 */, require(8567) /* metro dependency 8567 */,
|
||||
require(8568) /* metro dependency 8568 */, require(8569) /* metro dependency 8569 */,
|
||||
require(8567) /* metro dependency 8567 */, require(8570) /* metro dependency 8570 */,
|
||||
require(8571) /* metro dependency 8571 */, require(8572) /* metro dependency 8572 */];
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object = {};
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
|
||||
object3['flex'] = 1;
|
||||
object3['alignItems'] = 'center';
|
||||
object3['justifyContent'] = 'center';
|
||||
object3['top'] = -150;
|
||||
object.fill = object3;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object.nitroIcon = {'tintColor': null, 'width': 32, 'height': 32, 'marginVertical': -8, 'marginRight': -4,
|
||||
tintColor: WHITE};
|
||||
object.description = {paddingHorizontal: 16};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/burst_reactions/SuperReactionUpsellActionSheet.tsx');
|
||||
exports.default = SuperReactionCoachmarkActionSheet;
|
||||
}
|
||||
|
||||
function SuperReactionCoachmarkActionSheet({onDismiss}) { // fn#67826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8750:690, offset: 0x01c33755, size: 512 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
var PremiumUpsellTooltipActionSheet;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object3;
|
||||
const styles = useStyles();
|
||||
const env0_1 = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const object4 = {};
|
||||
const PREMIUM_UPSELL_BURST_REACTIONS = AnalyticsPages.PREMIUM_UPSELL_BURST_REACTIONS;
|
||||
object4.page = PREMIUM_UPSELL_BURST_REACTIONS;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const isPremium2 = (require(3802) /* metro dependency 3802: PremiumUtils */).isPremium(currentUser);
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
if (isPremium2) {
|
||||
r0 = null;
|
||||
} else {
|
||||
PremiumUpsellTooltipActionSheet = importDefault(8574) /* metro dependency 8574: PremiumUpsellTooltipActionSheet */;
|
||||
var premiumUpsellTooltipActionSheetProps = {title: intl.string(t.Wfl5zp)};
|
||||
object3 = {};
|
||||
object3.backdropOpacity = (require(7172) /* metro dependency 7172: BurstReactionEffectUtils */).BACKDROP_OPACITY;
|
||||
object3.backdropChildren = Reflect.apply(useMemo, binding, [_fun67828, [styles]]);
|
||||
premiumUpsellTooltipActionSheetProps.backdropProps = object3;
|
||||
premiumUpsellTooltipActionSheetProps.description = intl.string(t.eikz43);
|
||||
premiumUpsellTooltipActionSheetProps.descriptionStyle = styles.description;
|
||||
premiumUpsellTooltipActionSheetProps.dismissibleContent = SUPER_REACTIONS_COACHMARK_MOBILE;
|
||||
premiumUpsellTooltipActionSheetProps.primaryButtonText = intl.string(t.sEAnVH);
|
||||
premiumUpsellTooltipActionSheetProps.primaryButtonIcon = primaryButtonIcon;
|
||||
premiumUpsellTooltipActionSheetProps.onPrimaryButtonPress = onPrimaryButtonPress;
|
||||
premiumUpsellTooltipActionSheetProps.secondaryButtonText = intl.string(t.TulDPl);
|
||||
premiumUpsellTooltipActionSheetProps.onDismiss = onDismiss;
|
||||
r0 = <PremiumUpsellTooltipActionSheet {...premiumUpsellTooltipActionSheetProps} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun67828() { // fn#67828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8750:929, offset: 0x01c33955, size: 144 bytes, params: 1, frame: 18
|
||||
const binding = env1_9;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
return (
|
||||
<View style={styles.fill}>
|
||||
{((Component) => <Component localImageSource={binding[defaultImport.random(0,
|
||||
binding.length - 1)]} animationSource={require(7183) /* metro dependency 7183 */} />)(importDefault(8573) /* metro dependency 8573: SuperReactionLocalImageAnimation */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function primaryButtonIcon() { // fn#67829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8750:1403, owner: SuperReactionCoachmarkActionSheet.primaryButtonIcon, offset: 0x01c339e5, size: 62 bytes, params: 1, frame: 14
|
||||
const NitroWheel = (require(1305) /* metro dependency 1305: native */).NitroWheel;
|
||||
return <NitroWheel style={styles.nitroIcon} />;
|
||||
}
|
||||
|
||||
function onPrimaryButtonPress() { // fn#67830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8750:1471, owner: SuperReactionCoachmarkActionSheet.onPrimaryButtonPress, offset: 0x01c33a23, size: 147 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
importDefault(dependencyMap[29]).hideActionSheet();
|
||||
const defaultImport2 = importDefault(dependencyMap[18]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[20]);
|
||||
value = value(dependencyMap[19], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
object2.analyticsLocation = env0_2;
|
||||
object2.analyticsLocations = analyticsLocations;
|
||||
const PremiumFeatureCardOrder = require(dependencyMap[21]).PremiumFeatureCardOrder;
|
||||
const TIER_2_LEADING = PremiumFeatureCardOrder.TIER_2_LEADING;
|
||||
object2.premiumFeatureCardOrder = TIER_2_LEADING;
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, object2]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user