// Module ID: 5508 // Function ID: 46925 // Name: Divider // Dependencies: [] // Exports: UserProfileCardRows, UserProfileFormRow, default // Module 5508 (Divider) let CARD_ROWS_COLUMN_GAP; let CARD_ROWS_ICON_SIZE; function Divider() { return callback(View, { style: callback2().rowDivider }); } let closure_3 = importAll(dependencyMap[0]); const View = arg1(dependencyMap[1]).View; const tmp2 = arg1(dependencyMap[2]); ({ CARD_ROWS_COLUMN_GAP, CARD_ROWS_ICON_SIZE, CARD_ROWS_ICON_SIZE_VARIANT: closure_5 } = tmp2); ({ jsx: closure_6, jsxs: closure_7, Fragment: closure_8 } = arg1(dependencyMap[3])); let obj = arg1(dependencyMap[4]); obj = {}; obj = { 0: "", 0: true, 0: true, marginBottom: importDefault(dependencyMap[5]).space.PX_12, gap: importDefault(dependencyMap[5]).space.PX_4 }; obj.title = obj; const obj1 = { Text: null, applicationId: "\u{1F469}\u{1F3FC}\u200D\u{1F9B1}", message: true, gap: importDefault(dependencyMap[5]).space.PX_4 }; obj.titleContent = obj1; obj.text = { flexShrink: 1 }; const tmp3 = arg1(dependencyMap[3]); obj.rowDivider = { borderBottomWidth: 1, borderBottomColor: importDefault(dependencyMap[5]).colors.BORDER_SUBTLE, marginLeft: CARD_ROWS_ICON_SIZE + CARD_ROWS_COLUMN_GAP, marginRight: -tmp2.CARD_PADDING }; obj.row = { "Bool(false)": false, "Bool(false)": false }; const obj3 = { : null, : "\u{1F43F}\uFE0F", columnGap: CARD_ROWS_COLUMN_GAP }; obj.rowLabel = obj3; obj.rowLabelText = { flex: 1, lineHeight: CARD_ROWS_ICON_SIZE }; obj.rowSublabel = { marginHorizontal: CARD_ROWS_ICON_SIZE + CARD_ROWS_COLUMN_GAP }; let closure_9 = obj.createStyles(obj); const obj2 = { borderBottomWidth: 1, borderBottomColor: importDefault(dependencyMap[5]).colors.BORDER_SUBTLE, marginLeft: CARD_ROWS_ICON_SIZE + CARD_ROWS_COLUMN_GAP, marginRight: -tmp2.CARD_PADDING }; const result = arg1(dependencyMap[10]).fileFinishedImporting("modules/user_profile/native/UserProfileCard.tsx"); export default function UserProfileCard(arg0) { let children; let style; let title; let titleIcon; let titleStyle; let trailingAction; ({ title, trailingAction } = arg0); let obj = {}; ({ titleIcon, titleStyle, children, style } = arg0); Object.setPrototypeOf(null); const merged = Object.assign(arg0, obj); const tmp3 = callback2(); const tmp4 = importDefault(dependencyMap[9])("UserProfileCard"); obj = { style }; const merged1 = Object.assign(merged); let tmp9Result = null != title || null != trailingAction; if (tmp9Result) { obj = {}; const items = [tmp3.title, titleStyle]; obj.style = items; let tmp12Result = null != title; if (tmp12Result) { const obj1 = { style: tmp3.titleContent }; const obj2 = { style: tmp3.text, accessibilityRole: "header" }; let str2 = "text-sm/semibold"; if (tmp4) { str2 = "text-sm/medium"; } obj2.variant = str2; let str3 = "text-default"; if (tmp4) { str3 = "text-strong"; } obj2.color = str3; obj2.lineClamp = 1; obj2.children = title; const items1 = [closure_6(arg1(dependencyMap[7]).Text, obj2), titleIcon]; obj1.children = items1; tmp12Result = closure_7(View, obj1); const tmp12 = closure_7; const tmp13 = View; const tmp14 = closure_6; } const items2 = [tmp12Result, trailingAction]; obj.children = items2; tmp9Result = closure_7(View, obj); const tmp10 = View; const tmp9 = closure_7; } const items3 = [tmp9Result, children]; obj["children"] = items3; return closure_7(View, obj); }; export const UserProfileFormRow = function UserProfileFormRow(arg0) { let arrow; let disabled; let hint; let icon; let isDestructive; let label; let labelColor; let onPress; let sublabel; ({ label, sublabel, hint, isDestructive, labelColor, arrow } = arg0); ({ icon, disabled, onPress } = arg0); if (arrow === undefined) { arrow = false; } const tmp = callback2(); let str; if (isDestructive) { str = "text-feedback-critical"; } let str2 = "mobile-text-heading-primary"; if (isDestructive) { str2 = "text-feedback-critical"; } let obj = { style: tmp.row, accessibilityRole: "button", accessibilityLabel: label, disabled, onPress }; obj = { style: tmp.rowLabel }; obj = { size: closure_5, color: str }; const items = [callback(icon, obj), , , ]; const obj1 = { variant: "text-md/semibold" }; if (null != labelColor) { str2 = labelColor; } obj1.color = str2; obj1.style = tmp.rowLabelText; obj1.children = label; items[1] = callback(arg1(dependencyMap[7]).Text, obj1); let tmp5 = null != hint; if (tmp5) { const obj2 = { size: closure_5, color: str }; tmp5 = callback(hint, obj2); } items[2] = tmp5; if (arrow) { const obj3 = { size: "sm" }; arrow = callback(arg1(dependencyMap[8]).ChevronSmallRightIcon, obj3); } items[3] = arrow; obj.children = items; const items1 = [closure_7(View, obj), ]; let tmp11 = null != sublabel; if (tmp11) { const obj4 = { style: tmp.rowSublabel, children: sublabel }; tmp11 = callback(View, obj4); } items1[1] = tmp11; obj.children = items1; return closure_7(arg1(dependencyMap[6]).PressableOpacity, obj); }; export const UserProfileCardRows = function UserProfileCardRows(children) { let closure_0 = importDefault(dependencyMap[9])("UserProfileCardRows"); const Children = React.Children; return callback(closure_8, { children: Children.map(children.children, (arg0, arg1) => { const obj = {}; let tmp2 = null; if (!closure_0) { tmp2 = null; if (0 !== arg1) { tmp2 = callback(closure_10, {}); } } const items = [tmp2, arg0]; obj.children = items; return closure_7(React.Fragment, obj, arg1); }) }); };