/* 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] */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
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 BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as NativeModule from '../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
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
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.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.header = {flexDirection: 'row', marginHorizontal: PX_16};
const object3 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.width = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.height = PX_24;
object.headerSpacer = object3;
object.list = {flex: 1};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.contentContainer = {marginHorizontal: PX_16};
object.divider = {marginLeft: 64};
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 object = {'title': 0, 'children': 0, 'onBack': 0};
silentSetPrototypeOf(object, null, undefined);
const value = copyDataProperties({}, a0, object, undefined);
const styles = useStyles();
const value3 = onBack != null;
const BottomSheet = (BottomSheetNativeModule).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 = (TextModule).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 = (UseSafeAreaInsetsNative)().bottom;
const BottomSheetFlatList = (Module06277Module).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 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 = (NativeModule).FormDivider;
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 = (Module06277Module).BottomSheetSectionList;
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 = (NativeModule).FormDivider;
return ;
}
}
}
global.__d(_fun68314, 8694, [31, 27, 33, 4501, 697, 1585, 6277, 7972, 477, 6275, 5278, 1244, 5284, 4573,
2]) /* metro module 8694, dependencies: [31, 27, 33, 4501, 697, 1585, 6277, 7972, 477, 6275, 5278, 1244, 5284, 4573, 2] */;