/* Metro module 8694; source: modules/user_profile/native/UserProfileStackedActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 1585, 6277, 7972, 477, 6275, 5278, 1244, 5284, 4573, 2] */ function _fun68314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:6, offset: 0x01c48888, size: 375 bytes, params: 8, frame: 23 var object2; 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.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object2 = {}; let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.header = {flexDirection: 'row', marginHorizontal: PX_16}; const object4 = {}; let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object4.width = PX_24; PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object4.height = PX_24; object2.headerSpacer = object4; object2.list = {flex: 1}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.contentContainer = {marginHorizontal: PX_16}; object2.divider = {marginLeft: 64}; const env0_6 = Reflect.apply(createStyles, value, [object2]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfileStackedActionSheet.tsx'); exports.default = UserProfileStackedActionSheet; exports.UserProfileStackedActionSheetList = UserProfileStackedActionSheetList; exports.UserProfileStackedActionSheetSectionList = UserProfileStackedActionSheetSectionList; } function UserProfileStackedActionSheet(a0) { // fn#68315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:506, offset: 0x01c489ff, size: 444 bytes, params: 2, frame: 32 var r6; var PressableOpacity; var intl; const title = a0.title; const children = a0.children; const onBack = a0.onBack; const object2 = {'title': 0, 'children': 0, 'onBack': 0}; silentSetPrototypeOf(object2, null, undefined); const value = copyDataProperties({}, a0, object2, undefined); const styles = useStyles(); const value3 = onBack != null; const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet; const bottomSheetProps = {...value}; const items3 = [styles.header]; items3[1] = {justifyContent: value3 ? 'space-between' : 'center'}; if (value3) { PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; r6 = {((ArrowLargeLeftIcon) => )((require(5284) /* metro dependency 5284: ArrowLargeLeftIcon */).ArrowLargeLeftIcon)}; } else { r6 = value3; } const items2 = [r6]; const Text = (require(4573) /* metro dependency 4573: Text */).Text; items2[1] = {title}; items2[2] = value3 && ; bottomSheetProps['header'] = {items2}; return ( {children} ); } function UserProfileStackedActionSheetList(a0) { // fn#68316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:1116, offset: 0x01c48bbb, size: 309 bytes, params: 2, frame: 24 const data = a0.data; const contentContainerStyle = a0.contentContainerStyle; const env0_1 = a0.renderItem; let object = {'data': 0, 'contentContainerStyle': 0, 'renderItem': 0}; silentSetPrototypeOf(object, null, undefined); let value = copyDataProperties({}, a0, object, undefined); const styles = useStyles(); const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom; const BottomSheetFlatList = (require(6277) /* metro dependency 6277 */).BottomSheetFlatList; const bottomSheetFlatListProps = {...value}; bottomSheetFlatListProps['data'] = data; bottomSheetFlatListProps['style'] = styles.list; bottomSheetFlatListProps['ItemSeparatorComponent'] = UserProfileStackedActionSheetListItemSeparatorComponent; object = [styles.contentContainer]; value = require(477) /* metro dependency 477: PlatformUtils */; value = value.isAndroid(); const PX_16 = value ? (importDefault(697) /* metro dependency 697: native */).space.PX_16 : 0; object[1] = {paddingBottom: bottom + PX_16}; object[2] = contentContainerStyle; bottomSheetFlatListProps['contentContainerStyle'] = object; bottomSheetFlatListProps['renderItem'] = function({item, index}) { return renderItem({item: item, index: index, start: index === 0, end: index === data.length - 1}); }; return ; } function UserProfileStackedActionSheetSectionList(a0) { // fn#68319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:1606, offset: 0x01c48d77, size: 155 bytes, params: 2, frame: 18 const contentContainerStyle = a0.contentContainerStyle; const env0_0 = a0.renderItem; const value = Object.create(null); value.contentContainerStyle = 0; value.renderItem = 0; const value2 = copyDataProperties({}, a0, value, undefined); const env0_1 = useStyles(); const BottomSheetSectionList = (require(6277) /* metro dependency 6277 */).BottomSheetSectionList; return ( ); } function UserProfileStackedActionSheetListItemSeparatorComponent() { // fn#68317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:1326, owner: UserProfileStackedActionSheetList.ItemSeparatorComponent, offset: 0x01c48cf0, size: 62 bytes, params: 1, frame: 14 const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider; return ; } function UserProfileStackedActionSheetSectionListItemSeparatorComponent() { // fn#68321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8879:1893, owner: UserProfileStackedActionSheetSectionList.ItemSeparatorComponent, offset: 0x01c48e5e, size: 62 bytes, params: 1, frame: 14 const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider; return ; }