/* Metro module 8575; source: modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx; dependencies: [31, 33, 4501, 697, 1585, 1599, 4022, 4017, 1583, 676, 4027, 2] */ import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */ import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ConstantsIOSModule from '../../../ConstantsIOS.tsx'; /* Metro dependency 676 */ import * as KeyboardTypesModule from './KeyboardTypes.tsx'; /* Metro dependency 1583 */ import * as Module01599Module from '../../../by-id/module-01599.js'; /* Metro dependency 1599 */ import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as UseKeyboardTypeModule from './useKeyboardType.tsx'; /* Metro dependency 4022 */ import * as Module04027Module from '../../../by-id/module-04027.js'; /* Metro dependency 4027 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ function _fun67845(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:6, offset: 0x01c34353, size: 232 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const createStyles = CreateStylesModule.createStyles; const MOBILE_KEYBOARD_PANEL_BACKGROUND = (Native).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND; const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{keyboardStickyFooter: {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0, 'zIndex': 1, 'flex': 1, backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND}}]); object = {code: "function PortalKeyboardFooterIOSIosTsx1(){const{interpolate,progress,bottom,keyboardType,KeyboardTypes,animatedSheetIndex,height,EXPRESSION_FOOTER_HEIGHT}=this.__closure;const offset=interpolate(progress.get(),[0,1],[0,bottom]);if(keyboardType.get()===KeyboardTypes.EXPRESSION&&animatedSheetIndex.get()>=0){return{transform:[{translateY:height.get()+offset}]};}return{transform:[{translateY:interpolate(animatedSheetIndex.get(),[-1,0],[EXPRESSION_FOOTER_HEIGHT+bottom,0],'clamp')}]};}"}; (FileImportTrackerModule).fileFinishedImporting('modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx'); exports.default = PortalKeyboardFooterIOS; function PortalKeyboardFooterIOS({animatedSheetIndex, portalHostName}) { // fn#67846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:889, offset: 0x01c3443b, size: 433 bytes, params: 2, frame: 28 portalHostName = portalHostName === undefined ? 'expression-footer' : portalHostName; const styles = useStyles(); const bottom = (UseSafeAreaInsetsNative)().bottom; const value2 = (Module01599Module).useReanimatedKeyboardAnimation(); const height = value2.height; const height2 = height; const progress = value2.progress; const value3 = (UseKeyboardTypeModule).useKeyboardTypeSharedValue(); const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; const PortalKeyboardFooterIOSP2 = PortalKeyboardFooterIOSP; const object = {}; object.interpolate = ReanimatedRexportModule.interpolate; object.progress = progress; object.bottom = bottom; object.keyboardType = value3; const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes; object.KeyboardTypes = KeyboardTypes; object.animatedSheetIndex = animatedSheetIndex; object.height = height; const EXPRESSION_FOOTER_HEIGHT = (ConstantsIOSModule).EXPRESSION_FOOTER_HEIGHT; object.EXPRESSION_FOOTER_HEIGHT = EXPRESSION_FOOTER_HEIGHT; PortalKeyboardFooterIOSP2.__closure = object; PortalKeyboardFooterIOSP2.__workletHash = 9642021588244; PortalKeyboardFooterIOSP2.__initData = undefined; const value5 = height2.useMemo(_fun67848, [Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [PortalKeyboardFooterIOSP2]), styles]); const View = (ReanimatedRexport).View; const PortalHost = (Module04027Module).PortalHost; return ( ); function PortalKeyboardFooterIOSP() { // fn#67847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:1151, owner: PortalKeyboardFooterIOS.p, offset: 0x01c345ec, size: 325 bytes, params: 1, frame: 24 var object2; var object4; const EXPRESSION_FOOTER_HEIGHT = (ConstantsIOSModule).EXPRESSION_FOOTER_HEIGHT; var heightBinding; let value = environment.__proto__; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const value4 = reanimatedRexportModule.interpolate(progress.get(), [0, 1], [0, bottom]); const value5 = env0_5.get(); const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes; const EXPRESSION = KeyboardTypes.EXPRESSION; if (value5 !== EXPRESSION) { object4 = {}; value = reanimatedRexportModule; object4.translateY = value.interpolate(animatedSheetIndex.get(), [-1, 0], [EXPRESSION_FOOTER_HEIGHT + bottom, 0], 'clamp'); object2 = {transform: [object4]}; } else if (animatedSheetIndex.get() >= 0) { heightBinding = height; object2 = {transform: [{translateY: heightBinding.get() + value4}]}; } else { object4 = {}; value = require(4017) /* metro dependency 4017: ReanimatedRexport */; object4.translateY = value.interpolate(animatedSheetIndex.get(), [-1, 0], [EXPRESSION_FOOTER_HEIGHT + bottom, 0], 'clamp'); object2 = {transform: [object4]}; } return object2; } function _fun67848() { // fn#67848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8760:1685, offset: 0x01c34731, size: 31 bytes, params: 1, frame: 3 return [styles.keyboardStickyFooter, env0_6]; } } } global.__d(_fun67845, 8575, [31, 33, 4501, 697, 1585, 1599, 4022, 4017, 1583, 676, 4027, 2]) /* metro module 8575, dependencies: [31, 33, 4501, 697, 1585, 1599, 4022, 4017, 1583, 676, 4027, 2] */;