Files
2026-07-28 01:06:53 +03:00

100 lines
6.4 KiB
TypeScript

/* Metro module 9771; source: modules/share/native/ShareFooterLayout.tsx; dependencies: [31, 27, 33, 4501, 697, 5463, 4017, 4577, 4581, 4573, 2] */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import UseSafeAreaInsetsKeyboardAwareNative from '../../safe_area/useSafeAreaInsetsKeyboardAware.native.tsx'; /* Metro dependency 5463 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as SpringPresetsModule from '../../../design/animation/reanimated/spring/springPresets.tsx'; /* Metro dependency 4581 */
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
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = JsxRuntimeModule;
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;
object = {};
const object2 = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 0};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.paddingHorizontal = PX_16;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.gap = PX_12;
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object2.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object2.borderTopWidth = 1;
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.borderTopColor = BORDER_SUBTLE;
object.footer = object2;
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.marginHorizontal = -PX_16;
object3.borderBottomWidth = 1;
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object3.borderBottomColor = BORDER_SUBTLE;
object.footerSeparator = object3;
object.warningWrapper = {'display': 'flex', 'flexDirection': 'column', 'gap': 8};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.chatRow = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'alignItems': 'flex-end', gap: PX_12};
const env0_7 = Reflect.apply(createStyles, value, [object]);
object = {code: "function ShareFooterLayoutTsx1(){const{withSpring,footerPaddingBottom,ON_PRESS_SPRING}=this.__closure;return{paddingBottom:withSpring(footerPaddingBottom,ON_PRESS_SPRING,'respect-motion-settings')};}"};
(FileImportTrackerModule).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
const styles = useStyles();
const value2 = styles.footer.paddingVertical + (UseSafeAreaInsetsKeyboardAwareNative)({includeKeyboardHeight: avoidKeyboard,
includeCustomKeyboardHeight: false}).insets.bottom;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const ShareFooterLayoutF2 = ShareFooterLayoutF;
object = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, footerPaddingBottom: value2};
const ON_PRESS_SPRING = (SpringPresetsModule).ON_PRESS_SPRING;
object.ON_PRESS_SPRING = ON_PRESS_SPRING;
ShareFooterLayoutF2.__closure = object;
ShareFooterLayoutF2.__workletHash = 2871405301293;
ShareFooterLayoutF2.__initData = env0_8;
const value3 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [ShareFooterLayoutF2]);
const View2 = (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 = (SpringPresetsModule).ON_PRESS_SPRING;
return {paddingBottom: Reflect.apply(withSpring, value, [binding, ON_PRESS_SPRING, 'respect-motion-settings'])};
}
}
}
global.__d(_fun76683, 9771, [31, 27, 33, 4501, 697, 5463, 4017, 4577, 4581, 4573,
2]) /* metro module 9771, dependencies: [31, 27, 33, 4501, 697, 5463, 4017, 4577, 4581, 4573, 2] */;