/* Metro module 11784; source: modules/messages/native/DMMessageStickerGreeting.tsx; dependencies: [5, 57, 31, 27, 6583, 4814, 1878, 33, 4501, 697, 3963, 3860, 4000, 3857, 11785, 11786, 7067, 1244, 566, 671, 3995, 11787, 11050, 4017, 4504, 1305, 11049, 4589, 5278, 10970, 4573, 4578, 2] */ function _fun90262(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11970:6, offset: 0x020320b3, size: 339 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const env0_5 = importAll(31) /* metro dependency 31 */; const env0_6 = (require(27) /* metro dependency 27 */).View; const stickersStore = importDefault(6583) /* metro dependency 6583: StickersStore */; const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; const env0_12 = value.Fragment; const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90263); const GradientPercentage = (require(3963) /* metro dependency 3963: ClientThemesUtils */).GradientPercentage; const env0_14 = GradientPercentage.END; object = {code: "function DMMessageStickerGreetingTsx1(){const{styles,isRendered,hasInputText,hasMessages,HEIGHT_COMPACT,HEIGHT_FULL,withDelay,withTiming,STANDARD_EASING}=this.__closure;const gradientOverlayOffset=styles.gradient.height;const hasHeight=isRendered&&!hasInputText;const heightExpanded=(hasMessages?HEIGHT_COMPACT:HEIGHT_FULL)-1;const targetHeight=hasHeight?heightExpanded+gradientOverlayOffset:0;const targetMargin=hasHeight?-gradientOverlayOffset:0;const generateAnimationConfig=function(value){return withDelay(300,withTiming(value,{easing:STANDARD_EASING,duration:250}));};return{justifyContent:'flex-end',overflow:'hidden',marginTop:generateAnimationConfig(targetMargin),height:generateAnimationConfig(targetHeight)};}"}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/DMMessageStickerGreeting.tsx'); exports.default = DMMessageStickerGreeting; } function _fun90263(a0) { // fn#90263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11970:235, offset: 0x02032206, size: 207 bytes, params: 2, frame: 15 const value = a0; const object2 = {}; object2.container = {'backgroundColor': null, 'alignItems': 'center', 'paddingHorizontal': 16, 'paddingBottom': 16, 'paddingTop': 8, backgroundColor: value ?? (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER}; object2.stickerContainer = {paddingBottom: 16}; const object3 = {'flexDirection': 'row', 'backgroundColor': null, 'justifyContent': 'center', 'alignItems': 'center', 'gap': 8, 'height': 48, 'paddingHorizontal': 16}; const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST; object3.backgroundColor = BACKGROUND_BASE_LOWEST; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl; object2.toastContainer = object3; object2.toastContent = {lineHeight: 20}; object2.gradient = {'position': 'absolute', 'right': 0, 'left': 0, 'top': 0, 'height': 30}; return object2; } function DMMessageStickerGreeting({channel, hasInputText}) { // fn#90264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11970:1610, offset: 0x020322d5, size: 1339 bytes, params: 2, frame: 38 var r0; var r9; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var View2; var object3; var PressableOpacity; var items3; const clientThemesUtilsModule = require(3963) /* metro dependency 3963: ClientThemesUtils */; const useGradientValue = clientThemesUtilsModule.useGradientValue; const styles = useStyles(Reflect.apply(useGradientValue, clientThemesUtilsModule, [END])); const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore], _fun90265); const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() { return UserStore.getUser(channel.getRecipientId()); }); const value7 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.m0zYbV, {username: (importDefault(3995) /* metro dependency 3995: UserUtils */).useName(user) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y1Wu2f)}); const value8 = (require(11787) /* metro dependency 11787: useShowConvoStarterInDM */).useShowConvoStarterInDM(channel); const value9 = (require(566) /* metro dependency 566: flux */).useStateFromStores([StickersStore], _fun90268, [value8]); undefined.useEffect(_fun90269, [value8]); const value10 = useHandleWavePress(channel); const {isRendered, setIsRendered} = useIsRendered(); const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; const closure = DMMessageStickerGreetingX; object = {styles: styles, isRendered: isRendered, hasInputText: hasInputText, hasMessages: value3, HEIGHT_COMPACT: 72, HEIGHT_FULL: 180}; object.withDelay = reanimatedRexportModule.withDelay; object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming; const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING; object.STANDARD_EASING = STANDARD_EASING; closure.__closure = object; closure.__workletHash = 14002474476449; closure.__initData = env0_15; const value12 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); const value14 = (require(3860) /* metro dependency 3860: useToken */).useToken(clientThemesUtilsModule.useGradientValue(END) ?? (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER); object = [(require(4000) /* metro dependency 4000: ColorUtils */).hexWithOpacity(value14, 0), value14]; const value16 = (require(11049) /* metro dependency 11049: StickersHooks */).useShouldAnimateSticker(false); if (value8) { View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; object3 = {style: value12, onLayout: setIsRendered}; object = [((Component) => )(importDefault(4589) /* metro dependency 4589 */)]; var viewBindingProps = {style: styles.container}; if (value3) { PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; var pressableOpacityProps2 = {style: styles.toastContainer, accessibilityRole: 'button', accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pJObYI), onPress: value10}; items3 = [value9 != null ? ((Component) => )(importDefault(10970) /* metro dependency 10970: Sticker */) : null]; items3[1] = ((Text) => {value7})((require(4573) /* metro dependency 4573: Text */).Text); r9 = {items3}; } else { r9 = <>{value9 != null ? {((Component) => )(importDefault(10970) /* metro dependency 10970: Sticker */)} : null}{((Button) =>