Files
discord-decomp/sources/modules/share/native/ShareFooterLayout.tsx
T
2026-07-27 16:20:00 +03:00

84 lines
5.3 KiB
TypeScript

/* Metro module 9771; source: modules/share/native/ShareFooterLayout.tsx; dependencies: [31, 27, 33, 4501, 697, 5463, 4017, 4577, 4581, 4573, 2] */
function _fun76683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9957:6, offset: 0x01ddfd62, size: 498 bytes, params: 8, frame: 23
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.Fragment;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object5 = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 0};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.gap = PX_12;
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object5.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object5.borderTopWidth = 1;
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderTopColor = BORDER_SUBTLE;
object4.footer = object5;
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.marginHorizontal = -PX_16;
object6.borderBottomWidth = 1;
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object6.borderBottomColor = BORDER_SUBTLE;
object4.footerSeparator = object6;
object4.warningWrapper = {'display': 'flex', 'flexDirection': 'column', 'gap': 8};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.chatRow = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'alignItems': 'flex-end', gap: PX_12};
const env0_7 = Reflect.apply(createStyles, value, [object4]);
object4 = {code: "function ShareFooterLayoutTsx1(){const{withSpring,footerPaddingBottom,ON_PRESS_SPRING}=this.__closure;return{paddingBottom:withSpring(footerPaddingBottom,ON_PRESS_SPRING,'respect-motion-settings')};}"};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/share/native/ShareFooterLayout.tsx');
exports.default = ShareFooterLayout;
}
function ShareFooterLayout({preview, chatInput, sendButton, warningText, avoidKeyboard}) { // fn#76684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9957:1035, offset: 0x01ddff54, size: 508 bytes, params: 2, frame: 28
var object2;
const styles = useStyles();
const value2 = styles.footer.paddingVertical + (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: avoidKeyboard,
includeCustomKeyboardHeight: false}).insets.bottom;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = ShareFooterLayoutF;
object2 = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, footerPaddingBottom: value2};
const ON_PRESS_SPRING = (require(4581) /* metro dependency 4581: springPresets */).ON_PRESS_SPRING;
object2.ON_PRESS_SPRING = ON_PRESS_SPRING;
closure.__closure = object2;
closure.__workletHash = 2871405301293;
closure.__initData = env0_8;
const value3 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View2 style={[styles.footer, value3]}>
{preview != null ? <>{preview}<View style={styles.footerSeparator} /></> : null}
<View style={styles.warningWrapper}>
<View style={styles.chatRow}>
{chatInput}
{sendButton}
</View>
{warningText != null && ((Text) => <Text variant="text-sm/normal" color="text-feedback-warning">{warningText}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</View>
</View2>
);
}
function ShareFooterLayoutF() { // fn#76685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9957:1284, owner: ShareFooterLayout.f, offset: 0x01de0150, size: 77 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(4577) /* metro dependency 4577: spring */;
const withSpring = value.withSpring;
const binding = env0_0;
const ON_PRESS_SPRING = (require(4581) /* metro dependency 4581: springPresets */).ON_PRESS_SPRING;
return {paddingBottom: Reflect.apply(withSpring, value, [binding, ON_PRESS_SPRING, 'respect-motion-settings'])};
}