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

99 lines
6.1 KiB
TypeScript

/* Metro module 14872; source: modules/icymi/native/ReplyRow.tsx; dependencies: [31, 27, 33, 14815, 697, 5278, 4573, 7950, 2] */
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ReactionIconModule from '../../../design/components/Icon/native/redesign/generated/ReactionIcon.tsx'; /* Metro dependency 7950 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:6, offset: 0x023cee9e, size: 202 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
const env0_6 = (CreateICYMIStylesModule).createICYMIStyles(_fun112520);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ReplyRow.tsx');
exports.ContentInventoryReplyRow = ContentInventoryReplyRow;
function _fun112520(a0) { // fn#112520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:175, offset: 0x023cef68, size: 515 bytes, params: 2, frame: 17
const object = {};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object.separator = {height: 1, backgroundColor: BORDER_SUBTLE, marginBottom: a0.margin, width: '100%'};
const object3 = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'flexDirection': 'row'};
object3.marginHorizontal = a0.margin;
object3.marginBottom = a0.margin;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.gap = PX_12;
object.container = object3;
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object.buttonContainer = {'flexGrow': 1, 'flexBasis': 0, height: PX_40};
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.gap = PX_12;
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object5.height = PX_40;
object.feedbackContainer = object5;
object.icon = {'width': 20, 'height': 20};
const BUTTON_OUTLINE_PRIMARY_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.BUTTON_OUTLINE_PRIMARY_TEXT;
object.feedbackButtonIcon = {tintColor: BUTTON_OUTLINE_PRIMARY_TEXT};
const object7 = {flex: 1};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.input = object7;
const REDESIGN_CHAT_INPUT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHAT_INPUT_BACKGROUND;
object.contentInventoryPressable = {'borderRadius': 20, 'width': '100%', 'minHeight': 40, 'backgroundColor': null,
'justifyContent': 'center', backgroundColor: REDESIGN_CHAT_INPUT_BACKGROUND};
const object9 = {'marginLeft': null, 'marginRight': 10, 'paddingVertical': null, 'flexDirection': 'row',
'alignItems': 'center'};
object9.marginLeft = a0.margin;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.paddingVertical = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object9.gap = PX_4;
object.contentInventoryContainer = object9;
object.contentInventoryText = {flexShrink: 1};
object.replyContainer = {'flexDirection': 'row', 'alignItems': 'center', marginLeft: a0.inset, marginTop: a0.margin};
return object;
}
function ContentInventoryReplyRow({reactText, onReply}) { // fn#112521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:1340, offset: 0x023cf16b, size: 267 bytes, params: 2, frame: 24
const value2 = env0_6();
const replyContainer = value2.replyContainer;
const PressableOpacity = (PressablesModule).PressableOpacity;
const contentInventoryPressable = value2.contentInventoryPressable;
const contentInventoryContainer = value2.contentInventoryContainer;
const Text = (TextModule).Text;
const text = (
<Text
variant="text-md/medium"
color="input-placeholder-text-default"
lineClamp={1}
style={value2.contentInventoryText}
>
{reactText}
</Text>
);
const ReactionIcon = (ReactionIconModule).ReactionIcon;
return (
<View style={replyContainer}>
<PressableOpacity
accessibilityRole="button"
onPress={onReply}
style={contentInventoryPressable}
accessibilityLabel={reactText}
pointerEvents="box-only"
>
<View style={contentInventoryContainer}>
{text}
<ReactionIcon style={value2.icon} size="custom" />
</View>
</PressableOpacity>
</View>
);
}
}
global.__d(_fun112519, 14872, [31, 27, 33, 14815, 697, 5278, 4573, 7950,
2]) /* metro module 14872, dependencies: [31, 27, 33, 14815, 697, 5278, 4573, 7950, 2] */;