Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/* Metro module 6747; source: design/void/Form/native/Form.tsx; dependencies: [31, 27, 33, 4501, 5463, 6748, 2] */
|
||||
function _fun53224(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6925:6, offset: 0x0134241f, size: 257 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).ScrollView;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({form: {flex: 1},
|
||||
redesign: {paddingTop: 16}});
|
||||
const context = value.createContext({isForm: false});
|
||||
value = value.forwardRef(_fun53225);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/Form.tsx');
|
||||
exports.default = value;
|
||||
exports.FormContext = context;
|
||||
}
|
||||
|
||||
function _fun53225({style, children, keyboardShouldPersistTaps, alwaysBounceVertical, contentContainerStyle, onScroll, scrollsToTop, onLayout}, a1) { // fn#53225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6925:253, offset: 0x01342520, size: 325 bytes, params: 3, frame: 27
|
||||
keyboardShouldPersistTaps = keyboardShouldPersistTaps === undefined ? 'never' : keyboardShouldPersistTaps;
|
||||
alwaysBounceVertical = alwaysBounceVertical === undefined || alwaysBounceVertical;
|
||||
const styles = useStyles();
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const value2 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
|
||||
const Provider = env0_7.Provider;
|
||||
return (
|
||||
<Provider value={{isForm: true}}>
|
||||
<ScrollView
|
||||
ref={a1}
|
||||
onLayout={onLayout}
|
||||
scrollsToTop={scrollsToTop}
|
||||
style={[styles.form, style, value2 && styles.redesign]}
|
||||
contentContainerStyle={[{paddingBottom: 38 + insets.bottom}, contentContainerStyle]}
|
||||
contentInset={{top: 0}}
|
||||
automaticallyAdjustContentInsets={false}
|
||||
keyboardShouldPersistTaps={keyboardShouldPersistTaps}
|
||||
alwaysBounceVertical={alwaysBounceVertical}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{children}
|
||||
</ScrollView>
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* Metro module 6751; source: design/void/Form/native/FormArrow.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 1305, 6245, 2] */
|
||||
function _fun53232(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6929:6, offset: 0x01342924, size: 260 bytes, params: 8, frame: 21
|
||||
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;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{wrapper: {'flexDirection': 'row', 'alignItems': 'center'},
|
||||
icon: {'tintColor': null, 'marginRight': -8, 'marginLeft': 8, tintColor: INTERACTIVE_TEXT_DEFAULT}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormArrow.tsx');
|
||||
exports.default = FormArrow;
|
||||
}
|
||||
|
||||
function FormArrow({label, style}) { // fn#53233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6929:313, offset: 0x01342a28, size: 338 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
if (label != null) {
|
||||
return (
|
||||
<View style={styles.wrapper}>
|
||||
{((Text) => <Text maxFontSizeMultiplier={1.5} variant="text-md/medium" color="text-muted">{label}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
|
||||
{((Icon) => <Icon style={[styles.icon,
|
||||
style]} source={importDefault(6245) /* metro dependency 6245 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} />)((require(1305) /* metro dependency 1305: native */).Icon)}
|
||||
</View>
|
||||
);
|
||||
} else {
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
return (
|
||||
<Icon
|
||||
style={[styles.icon, style]}
|
||||
source={importDefault(6245) /* metro dependency 6245 */}
|
||||
size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 7973; source: design/void/Form/native/FormCTA.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 1305, 7974, 6746, 7975, 2] */
|
||||
function _fun63457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:6, offset: 0x01b80462, size: 518 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
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;
|
||||
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.paddingVertical = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.paddingHorizontal = PX_12;
|
||||
object4.form = object6;
|
||||
const object7 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.fontSize = PX_16;
|
||||
object7.lineHeight = 18;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object7.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object7.fontFamily = PRIMARY_SEMIBOLD;
|
||||
object4.title = object7;
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
|
||||
object4.description = {'fontSize': 12, 'lineHeight': 18, color: TEXT_SUBTLE, fontFamily: PRIMARY_MEDIUM};
|
||||
const object8 = {};
|
||||
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
|
||||
object8.width = PX_40;
|
||||
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
|
||||
object8.height = PX_40;
|
||||
object4.icon = object8;
|
||||
object4.completedIcon = {opacity: 0.3};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object4.completedText = {color: TEXT_MUTED};
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCTA.tsx');
|
||||
exports.default = FormCTA;
|
||||
}
|
||||
|
||||
function FormCTA({style, title, titleStyle, subtitle, completed, iconSource, iconStyle, iconContainerStyle, trailing, onPress, onLongPress, variant}) { // fn#63458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:732, offset: 0x01b80668, size: 691 bytes, params: 2, frame: 36
|
||||
var r7;
|
||||
var r0;
|
||||
var RowButton;
|
||||
const closure = renderTrailing;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const r5 = iconSource != null ? <View style={[iconContainerStyle,
|
||||
completed ? styles.completedIcon : null]}>{((Icon) => <Icon style={[styles.icon,
|
||||
iconStyle]} source={iconSource} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.CUSTOM} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)}</View> : null;
|
||||
if (subtitle === undefined) {
|
||||
r7 = null;
|
||||
} else {
|
||||
const SubLabel = (importDefault(6746) /* metro dependency 6746: FormRow */).SubLabel;
|
||||
r7 = <SubLabel style={[styles.description, completed ? styles.completedText : null]} text={subtitle} />;
|
||||
}
|
||||
if (variant === 'row-button') {
|
||||
RowButton = (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
|
||||
r0 = <RowButton arrow={false} onPress={onPress} onLongPress={onLongPress} accessibilityState={{checked: completed}} label={((Label) => <Label style={[styles.title,
|
||||
|
||||
completed ? styles.completedText : undefined,
|
||||
titleStyle]} text={title} />)((importDefault(6746) /* metro dependency 6746: FormRow */).Label)} subLabel={r7} trailing={closure()} icon={r5} />;
|
||||
} else {
|
||||
value = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
value = ((Component) => <Component start end variant={variant} onPress={onPress} onLongPress={onLongPress} DEPRECATED_style={[styles.form,
|
||||
|
||||
style]} accessibilityState={{checked: completed}} label={((Label) => <Label style={[styles.title,
|
||||
completed ? styles.completedText : undefined,
|
||||
titleStyle]} text={title} />)((importDefault(6746) /* metro dependency 6746: FormRow */).Label)} subLabel={r7} trailing={closure()} leading={r5} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function renderTrailing() { // fn#63459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:1060, owner: FormCTA.renderTrailing, offset: 0x01b8091b, size: 117 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var trailingBinding;
|
||||
var value;
|
||||
if (completed) {
|
||||
value = environment.__proto__;
|
||||
const FormCheckbox = (require(7974) /* metro dependency 7974: FormCheckboxNative */).FormCheckbox;
|
||||
value = <FormCheckbox checked />;
|
||||
r0 = value;
|
||||
} else {
|
||||
trailingBinding = trailing;
|
||||
if (trailingBinding != null) {
|
||||
r0 = trailingBinding;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
const Arrow = (importDefault(6746) /* metro dependency 6746: FormRow */).Arrow;
|
||||
value = <Arrow />;
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/* Metro module 7978; source: design/void/Form/native/FormCTAButton.tsx; dependencies: [31, 27, 1309, 661, 33, 4501, 6597, 697, 1305, 6748, 7975, 2] */
|
||||
function _fun63488(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:6, offset: 0x01b81fb3, size: 593 bytes, params: 8, frame: 29
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = FormCTAButton;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.ActivityIndicator;
|
||||
const env0_4 = value.Pressable;
|
||||
value.Platform;
|
||||
value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(1309) /* metro dependency 1309: FormConstants */;
|
||||
const env0_6 = value.ANDROID_FOREGROUND_RIPPLE;
|
||||
const env0_7 = value.getThemedRippleConfig;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.rowButton = {paddingHorizontal: 16};
|
||||
object2.sectionBody = {};
|
||||
object2.button = {'minHeight': 44, 'justifyContent': 'center'};
|
||||
object2.text = {'lineHeight': 44, 'paddingHorizontal': 17, 'textAlign': 'left'};
|
||||
const object6 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
let PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
const CONTROL_BRAND_FOREGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_BRAND_FOREGROUND;
|
||||
copyDataProperties(object6, textStyles(PRIMARY_SEMIBOLD, CONTROL_BRAND_FOREGROUND, 16), undefined);
|
||||
object2.textBrand = object6;
|
||||
const object7 = {};
|
||||
const value3 = textStyles;
|
||||
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
copyDataProperties(object7, value3(PRIMARY_SEMIBOLD, TEXT_FEEDBACK_CRITICAL, 16), undefined);
|
||||
object2.textDanger = object7;
|
||||
const object8 = {};
|
||||
const value4 = textStyles;
|
||||
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
copyDataProperties(object8, value4(PRIMARY_SEMIBOLD, STATUS_WARNING, 16), undefined);
|
||||
object2.textWarning = object8;
|
||||
object2.alignLeft = {textAlign: 'left'};
|
||||
object2.disabled = {opacity: 0.5};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {BRAND: 'brand', DANGER: 'danger', WARNING: 'warning'};
|
||||
closure.Colors = object2;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCTAButton.tsx');
|
||||
exports.default = closure;
|
||||
exports.FormCTAButtonColors = object2;
|
||||
}
|
||||
|
||||
function getCTAButtonColor(a0, a1) { // fn#63489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:844, offset: 0x01b82204, size: 79 bytes, params: 3, frame: 4
|
||||
const BRAND = env0_10.BRAND;
|
||||
if (BRAND === a0) {
|
||||
return a1.textBrand;
|
||||
}
|
||||
const DANGER = env0_10.DANGER;
|
||||
if (DANGER === a0) {
|
||||
return a1.textDanger;
|
||||
}
|
||||
const WARNING = env0_10.WARNING;
|
||||
if (WARNING === a0) {
|
||||
return a1.textWarning;
|
||||
}
|
||||
}
|
||||
|
||||
function FormCTAButton({color = env0_10.BRAND, label, fontSize, alignLeft, disabled, loading, testID, style, onPress}) { // fn#63490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:989, offset: 0x01b82253, size: 516 bytes, params: 2, frame: 26
|
||||
var object2;
|
||||
var RowButton;
|
||||
const r16 = fontSize === undefined ? 16 : fontSize;
|
||||
let r14 = alignLeft !== undefined && alignLeft;
|
||||
let r9 = disabled !== undefined && disabled;
|
||||
const r10 = loading !== undefined && loading;
|
||||
const styles = useStyles();
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const items2 = [styles.text];
|
||||
items2[1] = getCTAButtonColor(color, styles);
|
||||
items2[2] = {fontSize: r16};
|
||||
r14 = r14 && styles.alignLeft;
|
||||
items2[3] = r14;
|
||||
const r12 = r10 ? <ActivityIndicator color={color} /> : <LegacyText style={items2}>{label}</LegacyText>;
|
||||
const binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const value4 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
|
||||
object2 = {};
|
||||
if (value4) {
|
||||
object2.style = styles.rowButton;
|
||||
RowButton = (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
|
||||
r9 = !r9 ? r10 : r9;
|
||||
object2.children = <RowButton label={r12} onPress={onPress} arrow={false} disabled={r9} testID={testID} />;
|
||||
} else {
|
||||
object2.style = [styles.sectionBody, r9 && styles.disabled, style];
|
||||
object2.children = <Pressable testID={testID} accessibilityRole="button" onPress={onPress} style={styles.button} disabled={r9 || r10} android_ripple={getThemedRippleConfig(ANDROID_FOREGROUND_RIPPLE)}>{r12}</Pressable>;
|
||||
}
|
||||
return <View {...object2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 6755; source: design/void/Form/native/FormCheckbox.tsx; dependencies: [31, 33, 4501, 1305, 2] */
|
||||
function _fun53238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6933:6, offset: 0x01342d25, size: 176 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({checkbox: {'width': 22,
|
||||
'height': 22}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckbox.tsx');
|
||||
exports.default = FormCheckbox;
|
||||
}
|
||||
|
||||
function FormCheckbox({selected}) { // fn#53239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6933:258, offset: 0x01342dd5, size: 77 bytes, params: 2, frame: 16
|
||||
const styles = useStyles();
|
||||
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
|
||||
return <Checkbox style={styles.checkbox} selected={selected} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 6745; source: design/void/Form/native/FormCheckboxRow.tsx; dependencies: [31, 33, 4501, 3874, 6746, 6755, 2] */
|
||||
function _fun53216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6923:6, offset: 0x013419f7, size: 176 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({checkboxWrapperStyle: {flexShrink: 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckboxRow.tsx');
|
||||
exports.default = FormCheckboxRow;
|
||||
}
|
||||
|
||||
function FormCheckboxRow(a0) { // fn#53217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6923:267, offset: 0x01341aa7, size: 201 bytes, params: 2, frame: 21
|
||||
const selected = a0.selected;
|
||||
let value = Object.create(null);
|
||||
value.selected = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const styles = useStyles();
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: selected});
|
||||
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
const defaultImportProps = {...value2};
|
||||
defaultImportProps['accessibilityRole'] = accessibilityRole;
|
||||
defaultImportProps['accessibilityState'] = accessibilityState;
|
||||
value = importDefault(6755) /* metro dependency 6755: FormCheckbox */;
|
||||
value = ((Component) => <Component selected={selected} />)(value);
|
||||
defaultImportProps['trailing'] = value;
|
||||
defaultImportProps['trailingWrapperStyle'] = styles.checkboxWrapperStyle;
|
||||
return <FormRow {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 6756; source: design/void/Form/native/FormCheckmark.tsx; dependencies: [31, 33, 6742, 697, 2] */
|
||||
function _fun53240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6934:6, offset: 0x01342e22, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckmark.tsx');
|
||||
exports.default = RowCheckmark;
|
||||
}
|
||||
|
||||
function RowCheckmark({selected}) { // fn#53241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6934:124, offset: 0x01342eaa, size: 90 bytes, params: 2, frame: 17
|
||||
if (selected) {
|
||||
const CheckmarkSmallIcon = (require(6742) /* metro dependency 6742: CheckmarkSmallIcon */).CheckmarkSmallIcon;
|
||||
return <CheckmarkSmallIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500} />;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/* Metro module 1309; source: design/void/Form/native/FormConstants.tsx; dependencies: [1310, 477, 697, 4092, 4002, 2] */
|
||||
function _fun14437(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1436:6, offset: 0x00e06da0, size: 461 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
let value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
const r7 = value ? 32 : 24;
|
||||
let internal = (importDefault(697) /* metro dependency 697: native */).internal;
|
||||
let resolveSemanticColor = internal.resolveSemanticColor;
|
||||
const DARK = (importDefault(697) /* metro dependency 697: native */).themes.DARK;
|
||||
let MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE;
|
||||
value = Reflect.apply(resolveSemanticColor, internal, [DARK, MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE]);
|
||||
internal = (importDefault(697) /* metro dependency 697: native */).internal;
|
||||
resolveSemanticColor = internal.resolveSemanticColor;
|
||||
const LIGHT = (importDefault(697) /* metro dependency 697: native */).themes.LIGHT;
|
||||
MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE;
|
||||
const semanticColor = Reflect.apply(resolveSemanticColor, internal, [LIGHT,
|
||||
MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE]);
|
||||
const env0_5 = (require(4092) /* metro dependency 4092: DeviceUtils */).getSystemVersionMajor();
|
||||
Object = global.Object;
|
||||
const value4 = Object.freeze({foreground: true});
|
||||
Object = global.Object;
|
||||
const env0_6 = Object.freeze({});
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormConstants.tsx');
|
||||
exports.FORM_ROW_VERTICAL_PADDING = r7;
|
||||
exports.RIPPLE_DARK_COLOR = value;
|
||||
exports.RIPPLE_LIGHT_COLOR = semanticColor;
|
||||
exports.ANDROID_FOREGROUND_RIPPLE = value4;
|
||||
exports.TitleStyleType = {DEFAULT: 'default', ANDROID_NO_BORDER: 'no_border',
|
||||
NO_BORDER_OR_MARGIN: 'no_border_or_margin'};
|
||||
exports.getThemedRippleConfig = getThemedRippleConfig;
|
||||
}
|
||||
|
||||
function getThemedRippleConfig({foreground, radius, cornerRadius, borderless, color}) { // fn#14438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1436:811, offset: 0x00e06f6d, size: 265 bytes, params: 2, frame: 20
|
||||
var r6;
|
||||
var r3;
|
||||
var moduleValue2;
|
||||
var binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var Object;
|
||||
var value5;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
r6 = env0_5 >= 23 && foreground;
|
||||
if (color != null) {
|
||||
r3 = color;
|
||||
} else {
|
||||
moduleValue2 = require(4002) /* metro dependency 4002: shared */;
|
||||
r3 = moduleValue2.isThemeLight(ThemeStore.theme) ? env0_4 : env0_3;
|
||||
}
|
||||
value3 = String(r3.toString()) + cornerRadius + radius + r6;
|
||||
binding = env0_7;
|
||||
value4 = binding.get(value3);
|
||||
if (value4 != null) {
|
||||
return value4;
|
||||
}
|
||||
Object = global.Object;
|
||||
value5 = Object.freeze({color: r3, radius: radius, borderless: borderless, cornerRadius: cornerRadius,
|
||||
foreground: r6});
|
||||
binding = env0_7;
|
||||
binding.set(value3, value5);
|
||||
return value5;
|
||||
}
|
||||
return env0_6;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 7331; source: design/void/Form/native/FormDivider.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1357, 3868, 6791, 4000, 6748, 2] */
|
||||
function _fun59033(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7509:6, offset: 0x016df11b, size: 363 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.StyleSheet;
|
||||
value.Platform;
|
||||
const ThemeTypes = (require(661) /* metro dependency 661: Constants */).ThemeTypes;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
|
||||
var object2 = {marginLeft: 0};
|
||||
object2.height = StyleSheet.hairlineWidth;
|
||||
object2.backgroundColor = importDefault(dependencyMap[5]).colors.BORDER_SUBTLE;
|
||||
object2.marginTop = -1 * StyleSheet.hairlineWidth;
|
||||
return {divider: {}, dividerOuter: object2, dividerHasIcon: {marginLeft: 56}};
|
||||
});
|
||||
object2 = {};
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
object2[LIGHT] = BLACK;
|
||||
const DARK = ThemeTypes.DARK;
|
||||
let WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object2[DARK] = WHITE;
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object2[DARKER] = WHITE;
|
||||
const MIDNIGHT = ThemeTypes.MIDNIGHT;
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object2[MIDNIGHT] = WHITE;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormDivider.tsx');
|
||||
exports.default = Divider_59035;
|
||||
exports.DIVIDER_COLORS = object2;
|
||||
}
|
||||
|
||||
function Divider_59035({outer, iconPush, style}) { // fn#59035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7509:643, offset: 0x016df2f8, size: 352 bytes, params: 2, frame: 23
|
||||
var r6;
|
||||
var moduleValue3;
|
||||
outer = !(outer === undefined) && outer;
|
||||
iconPush = !(iconPush === undefined) && iconPush;
|
||||
const styles = useStyles((importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('FormDivider'));
|
||||
const {theme, primaryColor} = (require(3868) /* metro dependency 3868: native */).useThemeContext();
|
||||
const value4 = (require(6791) /* metro dependency 6791: useProfileThemeValuesNative */).useProfileThemeValues(theme);
|
||||
if ((outer ? styles.dividerOuter : styles.divider).backgroundColor != null && primaryColor != null && value4 != null) {
|
||||
moduleValue3 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
r6 = {backgroundColor: moduleValue3.hexOpacityToRgba(env0_8[theme], value4.dividerOpacity)};
|
||||
} else {
|
||||
r6 = null;
|
||||
}
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
return Reflect.apply(useContext, binding,
|
||||
[RedesignCompatContext]) ? null : <View style={[outer ? styles.dividerOuter : styles.divider,
|
||||
iconPush && styles.dividerHasIcon, style, r6]} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 7979; source: design/void/Form/native/FormHint.tsx; dependencies: [31, 27, 33, 4501, 697, 6748, 4573, 1305, 2] */
|
||||
function _fun63491(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8157:6, offset: 0x01b82457, size: 256 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(27) /* metro dependency 27 */).Platform;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{formHintText: {'fontSize': 14, 'marginBottom': 0,
|
||||
color: TEXT_MUTED}, redesignHorizontalPadding: {paddingHorizontal: 12},
|
||||
horizonatalPadding: {paddingHorizontal: 16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormHint.tsx');
|
||||
exports.default = FormHint;
|
||||
}
|
||||
|
||||
function FormHint({inset, style, children}) { // fn#63492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8157:410, offset: 0x01b82557, size: 235 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var LegacyText;
|
||||
var Text;
|
||||
inset = !(inset === undefined) && inset;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
value = !inset;
|
||||
value = <Text variant="text-sm/medium" color="text-muted" style={[inset ? value : styles.redesignHorizontalPadding,
|
||||
|
||||
style]}>{children}</Text>;
|
||||
r0 = value;
|
||||
} else {
|
||||
LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
value = !inset;
|
||||
value = <LegacyText style={[styles.formHintText, inset ? value : styles.horizonatalPadding,
|
||||
style]}>{children}</LegacyText>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 6757; source: design/void/Form/native/FormIcon.tsx; dependencies: [31, 33, 4501, 1305, 2] */
|
||||
function _fun53242(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6935:6, offset: 0x01342f04, size: 177 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {opacity: 0.6}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormIcon.tsx');
|
||||
exports.default = FormIcon;
|
||||
}
|
||||
|
||||
function FormIcon(a0) { // fn#53243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6935:242, offset: 0x01342fb5, size: 223 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
const style = a0.style;
|
||||
const color = a0.color;
|
||||
const themedColor = a0.themedColor;
|
||||
const object2 = {'style': 0, 'color': 0, 'themedColor': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
let value = copyDataProperties({}, a0, object2, undefined);
|
||||
const styles = useStyles();
|
||||
if (themedColor != null) {
|
||||
const ThemedIcon = (require(1305) /* metro dependency 1305: native */).ThemedIcon;
|
||||
value = <ThemedIcon style={[styles.icon, style]} themedColor={themedColor} {...value} />;
|
||||
r0 = value;
|
||||
} else {
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
value = <Icon style={[styles.icon, style]} color={color} {...value} />;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
/* Metro module 7980; source: design/void/Form/native/FormInput.tsx; dependencies: [31, 661, 33, 4501, 697, 477, 3868, 4002, 6748, 7681, 7981, 1305, 2] */
|
||||
function _fun63493(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:6, offset: 0x01b82642, size: 281 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).KeyboardThemes;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {inputViewContainer: {'paddingVertical': 13, 'paddingHorizontal': 15}};
|
||||
const INPUT_PLACEHOLDER_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_PLACEHOLDER_TEXT_DEFAULT;
|
||||
object2.placeholderText = {color: INPUT_PLACEHOLDER_TEXT_DEFAULT};
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
object2.inputText = {color: TEXT_DEFAULT};
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.forwardRef(_fun63494);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormInput.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun63494(a0, a1) { // fn#63494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:364, offset: 0x01b8275b, size: 1185 bytes, params: 3, frame: 44
|
||||
var r0;
|
||||
var r18;
|
||||
var r20;
|
||||
var r1;
|
||||
var moduleValue4;
|
||||
var InputView;
|
||||
var object3;
|
||||
var color;
|
||||
var value26;
|
||||
const onChange = a0.onChange;
|
||||
const keyboardAppearance = a0.keyboardAppearance;
|
||||
const keyboardType = a0.keyboardType;
|
||||
const style = a0.style;
|
||||
const inputTextStyle = a0.inputTextStyle;
|
||||
let value = a0.value;
|
||||
let title = a0.title;
|
||||
const value2 = undefined;
|
||||
title = title === value2 ? '' : title;
|
||||
let helpText = a0.helpText;
|
||||
helpText = helpText === value2 ? '' : helpText;
|
||||
const error = a0.error;
|
||||
let placeholder = a0.placeholder;
|
||||
placeholder = placeholder === value2 ? '' : placeholder;
|
||||
let secureTextEntry = a0.secureTextEntry;
|
||||
secureTextEntry = !(secureTextEntry === value2) && secureTextEntry;
|
||||
let disabled = a0.disabled;
|
||||
disabled = !(disabled === value2) && disabled;
|
||||
let multiline = a0.multiline;
|
||||
multiline = !(multiline === value2) && multiline;
|
||||
let autoFocus = a0.autoFocus;
|
||||
autoFocus = !(autoFocus === value2) && autoFocus;
|
||||
let numberOfLines = a0.numberOfLines;
|
||||
numberOfLines = numberOfLines === value2 ? 1 : numberOfLines;
|
||||
const clearButtonVisibility = a0.clearButtonVisibility;
|
||||
const autoCapitalize = a0.autoCapitalize;
|
||||
const autoCorrect = a0.autoCorrect;
|
||||
const showBorder = a0.showBorder;
|
||||
const r29 = showBorder !== value2 ? showBorder : (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
let showCharactersRemaining = a0.showCharactersRemaining;
|
||||
showCharactersRemaining = !(showCharactersRemaining === value2) && showCharactersRemaining;
|
||||
let enableAndroidSanitizedInputWorkaround = a0.enableAndroidSanitizedInputWorkaround;
|
||||
enableAndroidSanitizedInputWorkaround = !(enableAndroidSanitizedInputWorkaround === value2) && enableAndroidSanitizedInputWorkaround;
|
||||
let allowRedesignTextInput = a0.allowRedesignTextInput;
|
||||
allowRedesignTextInput = allowRedesignTextInput === value2 || allowRedesignTextInput;
|
||||
const object4 = {'onChange': 0, 'keyboardAppearance': 0, 'keyboardType': 0, 'style': 0, 'inputTextStyle': 0,
|
||||
'value': 0, 'title': 0, 'helpText': 0, 'error': 0, 'placeholder': 0, 'secureTextEntry': 0, 'disabled': 0,
|
||||
'multiline': 0, 'autoFocus': 0, 'numberOfLines': 0, 'clearButtonVisibility': 0, 'autoCapitalize': 0,
|
||||
'autoCorrect': 0, 'showBorder': 0, 'showCharactersRemaining': 0, 'enableAndroidSanitizedInputWorkaround': 0,
|
||||
'allowRedesignTextInput': 0};
|
||||
silentSetPrototypeOf(object4, null, undefined);
|
||||
const value15 = copyDataProperties({}, a0, object4, undefined);
|
||||
const env0_2 = value2;
|
||||
const styles = useStyles();
|
||||
const nativeModule = require(3868) /* metro dependency 3868: native */;
|
||||
const useThemeContext = nativeModule.useThemeContext;
|
||||
if (keyboardAppearance != null) {
|
||||
r18 = keyboardAppearance;
|
||||
} else {
|
||||
r0 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(Reflect.apply(useThemeContext,
|
||||
nativeModule,
|
||||
[]).theme) ? KeyboardThemes.DARK : KeyboardThemes.LIGHT;
|
||||
r18 = r0;
|
||||
}
|
||||
let binding = env0_2;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const env0_0 = Reflect.apply(useContext, binding, [RedesignCompatContext]) && allowRedesignTextInput;
|
||||
if (enableAndroidSanitizedInputWorkaround) {
|
||||
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
r20 = !moduleValue4.isAndroid();
|
||||
} else {
|
||||
r20 = !enableAndroidSanitizedInputWorkaround;
|
||||
}
|
||||
const r14 = r20 ? secureTextEntry : !r20;
|
||||
const r17 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'visible-password' : keyboardType;
|
||||
binding = env0_2;
|
||||
const value22 = binding.useRef(null);
|
||||
const value23 = binding.useRef(null);
|
||||
binding.useImperativeHandle(a1, function() {
|
||||
return {isFocused: _fun63496, focus: _fun63497, blur: _fun63498, setText: _fun63499, getText: _fun63500,
|
||||
measure: _fun63501, measureInWindow: _fun63502, measureLayout: _fun63503};
|
||||
});
|
||||
if (r0) {
|
||||
if (multiline) {
|
||||
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
value = <TextArea ref={value22} returnKeyType="default" onChange={onChange} keyboardAppearance={r18} keyboardType={r17} placeholderTextColor={styles.placeholderText.color} placeholder={placeholder} secureTextEntry={r14} isDisabled={disabled} autoFocus={autoFocus} autoCapitalize={autoCapitalize} autoCorrect={autoCorrect} maxLength={value15.maxLength} onEndEditing={value15.onEndEditing} value={value ?? value2} errorMessage={error} />;
|
||||
r1 = value;
|
||||
} else {
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
value = <TextInput ref={value22} returnKeyType="done" onChange={onChange} keyboardAppearance={r18} keyboardType={r17} placeholderTextColor={styles.placeholderText.color} placeholder={placeholder} secureTextEntry={r14} isDisabled={disabled} autoFocus={autoFocus} autoCapitalize={autoCapitalize} autoCorrect={autoCorrect} onEndEditing={value15.onEndEditing} value={value ?? value2} errorMessage={error} />;
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
InputView = (require(1305) /* metro dependency 1305: native */).InputView;
|
||||
object3 = {ref: value23};
|
||||
color = styles.inputText.color;
|
||||
object3.inputTextColor = color;
|
||||
object3.multiline = multiline;
|
||||
object3.returnKeyType = value15.returnKeyType ?? (multiline ? 'default' : 'done');
|
||||
object3.onChangeText = onChange;
|
||||
object3.keyboardAppearance = r18;
|
||||
object3.keyboardType = r17;
|
||||
color = styles.placeholderText.color;
|
||||
object3.placeholderTextColor = color;
|
||||
object3.title = title;
|
||||
object3.helpText = helpText;
|
||||
value26 = '';
|
||||
object3.error = error ?? value26;
|
||||
object3.placeholder = placeholder;
|
||||
object3.secureTextEntry = r14;
|
||||
object3.disabled = disabled;
|
||||
object3.autoFocus = autoFocus;
|
||||
object3.numberOfLines = numberOfLines;
|
||||
object3.autoCapitalize = autoCapitalize;
|
||||
object3.autoCorrect = autoCorrect;
|
||||
object3.showBorder = r29;
|
||||
object3.showCharactersRemaining = showCharactersRemaining;
|
||||
object3.style = [styles.inputViewContainer, style];
|
||||
object3.inputTextStyle = inputTextStyle;
|
||||
object3.value = value ?? value26;
|
||||
object3.clearButtonVisibility = multiline ? (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.NEVER : clearButtonVisibility;
|
||||
copyDataProperties(object3, value15, object4);
|
||||
value = <InputView {...object3} />;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun63495() { // fn#63495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1077, offset: 0x01b82bfc, size: 86 bytes, params: 1, frame: 3
|
||||
return {isFocused: isFocused_63496, focus: focus_63497, blur: blur_63498, setText: setText_63499,
|
||||
getText: getText_63500, measure: measure_63501, measureInWindow: measureInWindow_63502,
|
||||
measureLayout: measureLayout_63503};
|
||||
}
|
||||
|
||||
function isFocused_63496() { // fn#63496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1083, offset: 0x01b82c52, size: 54 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return (env1_0 ? env1_1 : env1_2).current?.isFocused() === true;
|
||||
}
|
||||
|
||||
function focus_63497() { // fn#63497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1168, offset: 0x01b82c88, size: 45 bytes, params: 1, frame: 10
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function blur_63498() { // fn#63498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1222, offset: 0x01b82cb5, size: 45 bytes, params: 1, frame: 10
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.blur();
|
||||
}
|
||||
}
|
||||
|
||||
function setText_63499(a0) { // fn#63499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1278, offset: 0x01b82ce2, size: 49 bytes, params: 2, frame: 11
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.setText(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function getText_63500() { // fn#63500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1337, offset: 0x01b82d13, size: 62 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (env1_0 ? env1_1 : env1_2).current?.getText() ?? '';
|
||||
}
|
||||
|
||||
function measure_63501(a0) { // fn#63501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1426, offset: 0x01b82d51, size: 49 bytes, params: 2, frame: 11
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.measure(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function measureInWindow_63502(a0) { // fn#63502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1493, offset: 0x01b82d82, size: 49 bytes, params: 2, frame: 11
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.measureInWindow(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function measureLayout_63503(a0, a1, a2) { // fn#63503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1566, offset: 0x01b82db3, size: 57 bytes, params: 4, frame: 15
|
||||
const current = (env1_0 ? env1_1 : env1_2).current;
|
||||
if (current != null) {
|
||||
current.measureLayout(a0, a1, a2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 6749; source: design/void/Form/native/FormLabel.tsx; dependencies: [31, 33, 4573, 2] */
|
||||
function _fun53228(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6927:6, offset: 0x01342733, size: 129 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormLabel.tsx');
|
||||
exports.default = FormLabel;
|
||||
}
|
||||
|
||||
function FormLabel({text, numberOfLines, style, accessible, color}) { // fn#53229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6927:199, offset: 0x013427b4, size: 125 bytes, params: 2, frame: 20
|
||||
numberOfLines = numberOfLines === undefined ? 0 : numberOfLines;
|
||||
color = color === undefined ? 'mobile-text-heading-primary' : color;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="heading-md/semibold"
|
||||
color={color}
|
||||
lineClamp={numberOfLines}
|
||||
style={style}
|
||||
maxFontSizeMultiplier={2}
|
||||
accessible={accessible}
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 6752; source: design/void/Form/native/FormRadio.tsx; dependencies: [31, 27, 33, 4501, 6753, 6754, 2] */
|
||||
function _fun53234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6930:6, offset: 0x01342b7a, size: 201 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).Image;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({radio: {'width': 22,
|
||||
'height': 22}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadio.tsx');
|
||||
exports.default = FormRadio;
|
||||
}
|
||||
|
||||
function FormRadio({selected}) { // fn#53235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6930:193, offset: 0x01342c43, size: 86 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return <Image style={styles.radio} source={importDefault(selected ? dependencyMap[4] : dependencyMap[5])} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 7990; source: design/void/Form/native/FormRadioGroup.tsx; dependencies: [31, 27, 33, 6748, 7988, 7330, 2] */
|
||||
function _fun63548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8168:6, offset: 0x01b84d71, size: 170 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadioGroup.tsx');
|
||||
exports.default = FormRadioGroup;
|
||||
}
|
||||
|
||||
function FormRadioGroup(a0) { // fn#63549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8168:234, offset: 0x01b84e1b, size: 375 bytes, params: 2, frame: 28
|
||||
var r0;
|
||||
var items2;
|
||||
const title = a0.title;
|
||||
const hasIcons = a0.hasIcons;
|
||||
const accessibilityLabel = a0.accessibilityLabel;
|
||||
const children = a0.children;
|
||||
let value = a0.value;
|
||||
const hint = a0.hint;
|
||||
const icon = a0.icon;
|
||||
const object2 = {'title': 0, 'hasIcons': 0, 'accessibilityLabel': 0, 'children': 0, 'value': 0, 'hint': 0,
|
||||
'icon': 0};
|
||||
const value2 = null;
|
||||
silentSetPrototypeOf(object2, value2, undefined);
|
||||
const value3 = copyDataProperties({}, a0, object2, undefined);
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
|
||||
value = <View>{((TableRadioGroup) => <TableRadioGroup defaultValue={value} hasIcons={hasIcons} title={title} accessibilityLabel={accessibilityLabel}>{children}</TableRadioGroup>)((require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup)}</View>;
|
||||
items2 = [value];
|
||||
items2[1] = value2 != hint ? <View style={{marginTop: 8}}>{hint}</View> : value2;
|
||||
value = <View style={{'marginBottom': 24, 'marginHorizontal': 12}}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(7330) /* metro dependency 7330: FormSection */;
|
||||
value = ((Component) => <Component title={title} accessibilityRole="radiogroup" accessibilityLabel={title} hint={hint} icon={icon} {...value3}>{children}</Component>)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 7986; source: design/void/Form/native/FormRadioRow.tsx; dependencies: [31, 33, 6748, 3874, 7987, 6746, 6752, 2] */
|
||||
function _fun63525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8164:6, offset: 0x01b83e2b, size: 140 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadioRow.tsx');
|
||||
exports.default = FormRadioRow;
|
||||
}
|
||||
|
||||
function FormRadioRow(a0) { // fn#63526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8164:204, offset: 0x01b83eb7, size: 429 bytes, params: 2, frame: 26
|
||||
var r11;
|
||||
var r0;
|
||||
const selected = a0.selected;
|
||||
let align = a0.align;
|
||||
align = align === undefined ? 'left' : align;
|
||||
const leading = a0.leading;
|
||||
let value = a0.value;
|
||||
const onPress = a0.onPress;
|
||||
const style = a0.style;
|
||||
const object2 = {'selected': 0, 'align': 0, 'leading': 0, 'value': 0, 'onPress': 0, 'style': 0};
|
||||
const value2 = null;
|
||||
silentSetPrototypeOf(object2, value2, undefined);
|
||||
const value3 = copyDataProperties({}, a0, object2, style);
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const value5 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
|
||||
if (value5) {
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
value = <TableRadioRow icon={leading} value={value} legacyCompat_selected={selected} legacyCompat_onPress={onPress} {...value3} />;
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
var valueProps = {...value3};
|
||||
valueProps['style'] = style;
|
||||
valueProps['onPress'] = onPress;
|
||||
valueProps['accessibilityRole'] = accessibilityRole;
|
||||
valueProps['accessibilityState'] = accessibilityState;
|
||||
r11 = align !== 'right' ? value2 : ((Component) => <Component selected={selected} />)(importDefault(6752) /* metro dependency 6752: FormRadio */);
|
||||
valueProps['trailing'] = r11;
|
||||
r11 = align !== 'left' ? leading : ((Component) => <Component selected={selected} />)(importDefault(6752) /* metro dependency 6752: FormRadio */);
|
||||
valueProps['leading'] = r11;
|
||||
value = ((Component) => <Component {...valueProps} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
/* Metro module 6746; source: design/void/Form/native/FormRow.tsx; dependencies: [31, 27, 33, 4501, 697, 6747, 6748, 6238, 6749, 6750, 5278, 6751, 6752, 6755, 6756, 6757, 2] */
|
||||
function _fun53218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:6, offset: 0x01341b70, size: 369 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
value2.Platform;
|
||||
const env0_4 = value2.View;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value3.jsx;
|
||||
const env0_6 = value3.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun53220);
|
||||
value = value.forwardRef(_fun53222);
|
||||
Object = global.Object;
|
||||
value = Object.assign({}, value, {Arrow: importDefault(6751) /* metro dependency 6751: FormArrow */,
|
||||
Label: importDefault(6749) /* metro dependency 6749: FormLabel */,
|
||||
SubLabel: importDefault(6750) /* metro dependency 6750: FormSubLabel */,
|
||||
Radio: importDefault(6752) /* metro dependency 6752: FormRadio */,
|
||||
Checkbox: importDefault(6755) /* metro dependency 6755: FormCheckbox */,
|
||||
Checkmark: importDefault(6756) /* metro dependency 6756: FormCheckmark */,
|
||||
Icon: importDefault(6757) /* metro dependency 6757: FormIcon */});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRow.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function renderCustom(a0) { // fn#53219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:651, offset: 0x01341ce1, size: 55 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
var binding;
|
||||
let value = a0;
|
||||
const value2 = null;
|
||||
if (value2 == value) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
binding = env0_3;
|
||||
if (binding.isValidElement(value)) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = ((Component) => <Component />)(value);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun53220() { // fn#53220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:189, offset: 0x01341d18, size: 189 bytes, params: 1, frame: 16
|
||||
const closure = function() {
|
||||
var value = a0;
|
||||
value = 16 + (value !== undefined ? value : 0);
|
||||
return {paddingHorizontal: value, paddingVertical: value};
|
||||
};
|
||||
const object3 = {};
|
||||
const object5 = {'flexDirection': 'row', 'justifyContent': 'flex-start', 'alignItems': 'center'};
|
||||
copyDataProperties(object5, closure(), undefined);
|
||||
object3.container = object5;
|
||||
object3.label = {'flexShrink': 1, 'flexGrow': 1, 'flexBasis': '30%'};
|
||||
object3.leading = {'flexGrow': 0, 'marginRight': 16};
|
||||
object3.trailing = {'marginLeft': 'auto', 'paddingLeft': 16, 'textAlign': 'right', 'flexShrink': 0};
|
||||
object3.disabled = {opacity: 0.5};
|
||||
const object6 = {};
|
||||
const BORDER_FEEDBACK_CRITICAL = importDefault(dependencyMap[4]).colors.BORDER_FEEDBACK_CRITICAL;
|
||||
object6.borderColor = BORDER_FEEDBACK_CRITICAL;
|
||||
object6.borderWidth = 2;
|
||||
copyDataProperties(object6, closure(-2), dependencyMap);
|
||||
object3.error = object6;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _fun53222({label, leading, onPress, onLongPress, onPressOut, DEPRECATED_style, subLabel, trailing, disabled, hasError, accessible, accessibilityLabel, accessibilityHint, accessibilityRole, accessibilityState, accessibilityActions, onAccessibilityAction, onAccessibilityTap, numberOfLines, style, labelStyle, trailingWrapperStyle, leadingStyle, delayLongPress, start, end, variant}, a1) { // fn#53222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:746, offset: 0x01341df4, size: 993 bytes, params: 3, frame: 47
|
||||
var r29;
|
||||
var r1;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
const env0_3 = trailing;
|
||||
let value = undefined;
|
||||
disabled = !(disabled === value) && disabled;
|
||||
hasError = !(hasError === value) && hasError;
|
||||
accessible = accessible === value || accessible;
|
||||
start = !(start === value) && start;
|
||||
end = !(end === value) && end;
|
||||
const closure = renderInnerView;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
let useContext = binding.useContext;
|
||||
const FormContext = (require(6747) /* metro dependency 6747: Form */).FormContext;
|
||||
const isForm = Reflect.apply(useContext, binding, [FormContext]).isForm;
|
||||
useContext = env0_3.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
variant={variant}
|
||||
start={start}
|
||||
end={end}
|
||||
label={typeof label === 'function' || env0_3.isValidElement(label) ? renderCustom(label) : label}
|
||||
subLabel={typeof subLabel === 'function' || env0_3.isValidElement(subLabel) ? renderCustom(subLabel) : subLabel ?? null}
|
||||
icon={typeof leading === 'function' || env0_3.isValidElement(leading) ? renderCustom(leading) : leading}
|
||||
trailing={typeof trailing === 'function' || env0_3.isValidElement(trailing) ? renderCustom(trailing) : trailing}
|
||||
disabled={disabled}
|
||||
accessible={accessible}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
accessibilityHint={accessibilityHint}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
accessibilityActions={accessibilityActions}
|
||||
onAccessibilityAction={onAccessibilityAction}
|
||||
onAccessibilityTap={onAccessibilityTap}
|
||||
labelLineClamp={numberOfLines}
|
||||
delayLongPress={delayLongPress}
|
||||
onPress={onPress}
|
||||
onLongPress={onLongPress}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const object2 = {disabled: disabled};
|
||||
copyDataProperties(object2, accessibilityState, undefined);
|
||||
if (onPress != null) {
|
||||
var pressableHighlightProps = {ref: a1, style: [styles.container, DEPRECATED_style, style,
|
||||
hasError && styles.error,
|
||||
disabled ? styles.disabled : null], disabled: disabled, accessible: true,
|
||||
accessibilityRole: accessibilityRole ?? 'button', accessibilityState: object2,
|
||||
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
|
||||
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction};
|
||||
r29 = disabled ? value : onAccessibilityTap;
|
||||
pressableHighlightProps.onAccessibilityTap = r29;
|
||||
r29 = disabled ? value : onPress;
|
||||
pressableHighlightProps.onPress = r29;
|
||||
pressableHighlightProps.onLongPress = onLongPress;
|
||||
pressableHighlightProps.onPressOut = onPressOut;
|
||||
pressableHighlightProps.delayLongPress = delayLongPress;
|
||||
pressableHighlightProps.unstable_pressDelay = isForm ? 130 : value;
|
||||
value = <PressableHighlight {...pressableHighlightProps}>{closure()}</PressableHighlight>;
|
||||
r1 = value;
|
||||
} else if (onLongPress != null) {
|
||||
var pressableHighlightProps = {ref: a1, style: [styles.container, DEPRECATED_style, style,
|
||||
hasError && styles.error,
|
||||
disabled ? styles.disabled : null], disabled: disabled, accessible: true,
|
||||
accessibilityRole: accessibilityRole ?? 'button', accessibilityState: object2,
|
||||
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
|
||||
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction};
|
||||
r29 = disabled ? value : onAccessibilityTap;
|
||||
pressableHighlightProps.onAccessibilityTap = r29;
|
||||
r29 = disabled ? value : onPress;
|
||||
pressableHighlightProps.onPress = r29;
|
||||
pressableHighlightProps.onLongPress = onLongPress;
|
||||
pressableHighlightProps.onPressOut = onPressOut;
|
||||
pressableHighlightProps.delayLongPress = delayLongPress;
|
||||
pressableHighlightProps.unstable_pressDelay = isForm ? 130 : value;
|
||||
value = <PressableHighlight {...pressableHighlightProps}>{closure()}</PressableHighlight>;
|
||||
r1 = value;
|
||||
} else {
|
||||
disabled = disabled ? styles.disabled : null;
|
||||
r1 = <View ref={a1} style={[styles.container, DEPRECATED_style, style, hasError && styles.error,
|
||||
disabled]} accessible={accessible} accessibilityRole={accessibilityRole} accessibilityState={object2} accessibilityLabel={accessibilityLabel} accessibilityHint={accessibilityHint} accessibilityActions={accessibilityActions} onAccessibilityAction={onAccessibilityAction} onAccessibilityTap={onAccessibilityTap}>{closure()}</View>;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function renderInnerView() { // fn#53223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:1884, offset: 0x013421d5, size: 586 bytes, params: 1, frame: 25
|
||||
const r13 = typeof label === 'function' || env1_3.isValidElement(label) ? renderCustom(label) : ((Component) => <Component numberOfLines={numberOfLines} text={label} style={labelStyle} />)(importDefault(6749) /* metro dependency 6749: FormLabel */);
|
||||
const r12 = typeof subLabel === 'function' || env1_3.isValidElement(subLabel) ? renderCustom(subLabel) : subLabel != null ? ((Component) => <Component text={subLabel} numberOfLines={numberOfLines} />)(importDefault(6750) /* metro dependency 6750: FormSubLabel */) : null;
|
||||
const r4 = typeof leading === 'function' || env1_3.isValidElement(leading) ? renderCustom(leading) : leading;
|
||||
const r9 = typeof trailing === 'function' || env1_3.isValidElement(trailing) ? renderCustom(trailing) : trailing;
|
||||
const Fragment = env1_3.Fragment;
|
||||
leadingBinding = leading;
|
||||
const value18 = null;
|
||||
const items2 = [value18 != leadingBinding ? <View style={[styles.leading, leadingStyle]}>{r4}</View> : value18];
|
||||
items2[1] = <View style={styles.label}>{r13}{r12}</View>;
|
||||
items2[2] = value18 != trailing ? <View style={[styles.trailing, trailingWrapperStyle]}>{r9}</View> : value18;
|
||||
return (
|
||||
<Fragment>
|
||||
{items2}
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/* Metro module 7330; source: design/void/Form/native/FormSection.tsx; dependencies: [31, 27, 1309, 33, 4501, 697, 6748, 6746, 7331, 6231, 7332, 477, 2] */
|
||||
function _fun59028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:6, offset: 0x016deb6d, size: 335 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
value.StyleSheet;
|
||||
value.Platform;
|
||||
const env0_5 = (require(1309) /* metro dependency 1309: FormConstants */).TitleStyleType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{titledSectionHeader: {'borderTopWidth': 1, 'borderColor': null,
|
||||
'marginTop': 16, borderColor: BORDER_SUBTLE}, titledSectionNoBorder: {marginTop: 24},
|
||||
titledSectionNoBorderOrMargin: {}, emptySectionHeader: {marginTop: 24}, sectionBody: {},
|
||||
sectionBodyIOSBorder: {}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSection.tsx');
|
||||
exports.default = FormSection;
|
||||
}
|
||||
|
||||
function hasTrailingError(a0) { // fn#59029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:465, offset: 0x016decbc, size: 113 bytes, params: 2, frame: 13
|
||||
var props;
|
||||
const property = a0[a0.length - 1];
|
||||
const binding = env0_3;
|
||||
if (binding.isValidElement(property)) {
|
||||
if (property.type === (importDefault(7331) /* metro dependency 7331: FormDivider */)) {
|
||||
return false;
|
||||
}
|
||||
props = property.props;
|
||||
if (props == null) {
|
||||
return false;
|
||||
}
|
||||
props = property.props;
|
||||
return 'error' in props && props.error != null;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function FormSection({icon, children, thinTitle, inset, title, description, accessibilityRole, accessibilityLabel, uppercaseTitle, titleStyleType = TitleStyleType.DEFAULT, titleViewStyle, titleTextStyle, sectionBodyStyle, wrapperStyle, error, hint, hasIcons}) { // fn#59030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:711, offset: 0x016ded2d, size: 857 bytes, params: 2, frame: 39
|
||||
var r20;
|
||||
var moduleValue;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var items4;
|
||||
inset = !(inset === undefined) && inset;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
|
||||
value10 = env0_3.Children.toArray(children);
|
||||
value11 = value10.find(_fun59031);
|
||||
value12 = null;
|
||||
value13 = value12 != value11;
|
||||
value14 = value10.filter(_fun59032);
|
||||
items4 = [<View style={{paddingHorizontal: 12}}>{((TableRowGroup) => <TableRowGroup title={title} hasIcons={value12 == hasIcons ? value13 : hasIcons} hasTrailingText={hasTrailingError(value14)}>{value14}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}</View>];
|
||||
items4[1] = value12 != hint ? <View style={{marginTop: 8}}>{hint}</View> : value12;
|
||||
return (
|
||||
<View style={{marginBottom: 24}}>
|
||||
{items4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const r10 = title != null ? ((Component) => <Component textStyle={titleTextStyle} viewStyle={titleViewStyle} title={'' + title + ' ' + (error != null ? '(' + error + ')' : '')} icon={icon} error={error != null} thinTitle={thinTitle} uppercaseTitle={uppercaseTitle} inset={inset} />)(importDefault(7332) /* metro dependency 7332: FormTitle */) : undefined;
|
||||
const emptySectionHeader = styles.emptySectionHeader;
|
||||
if (r10 == null) {
|
||||
r20 = emptySectionHeader;
|
||||
} else if (TitleStyleType.DEFAULT === titleStyleType) {
|
||||
r20 = styles.titledSectionHeader;
|
||||
} else if (TitleStyleType.ANDROID_NO_BORDER === titleStyleType) {
|
||||
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
r20 = moduleValue.isAndroid() ? styles.titledSectionNoBorder : styles.titledSectionHeader;
|
||||
} else {
|
||||
r20 = TitleStyleType.NO_BORDER_OR_MARGIN !== titleStyleType ? emptySectionHeader : styles.titledSectionNoBorderOrMargin;
|
||||
}
|
||||
return (
|
||||
<View
|
||||
style={[r20, wrapperStyle]}
|
||||
accessibilityRole={accessibilityRole ?? 'list'}
|
||||
accessibilityLabel={accessibilityLabel ?? title}
|
||||
>
|
||||
{r10}
|
||||
{description}
|
||||
<View style={[styles.sectionBody, !inset && styles.sectionBodyIOSBorder, sectionBodyStyle]}>
|
||||
{children}
|
||||
</View>
|
||||
{hint}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun59031(a0) { // fn#59031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:1081, offset: 0x016df086, size: 86 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return env1_3.isValidElement(a0) && a0.type === (importDefault(6746) /* metro dependency 6746: FormRow */) && global.Boolean(a0.props.leading);
|
||||
}
|
||||
|
||||
function _fun59032(a0) { // fn#59032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:1162, offset: 0x016df0dc, size: 63 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
const isValidElement2 = env1_3.isValidElement(a0);
|
||||
return isValidElement2 ? a0.type !== (importDefault(7331) /* metro dependency 7331: FormDivider */) : !!isValidElement2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
/* Metro module 7982; source: design/void/Form/native/FormSelect.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 3874, 5278, 4573, 2] */
|
||||
function _fun63506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:6, offset: 0x01b82fcf, size: 583 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const extractKey = function({value}) {
|
||||
return '' + value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_4 = value.FlatList;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {'minWidth': 95, 'height': 36, 'margin': 4, 'borderRadius': 3, 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'paddingHorizontal': 10, 'borderWidth': null, 'shadowColor': null, 'shadowOffset': null,
|
||||
'shadowOpacity': 0.12, 'shadowRadius': 6};
|
||||
object5.borderWidth = StyleSheet.hairlineWidth;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
object5.shadowColor = BLACK;
|
||||
object5.shadowOffset = {'width': 0, 'height': 2};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object5.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object3.button = object5;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.buttonSelected = {backgroundColor: BACKGROUND_BRAND};
|
||||
const object7 = {};
|
||||
let PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object7.fontFamily = PRIMARY_SEMIBOLD;
|
||||
object7.fontSize = 14;
|
||||
let TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object7.color = TEXT_MUTED;
|
||||
object3.label = object7;
|
||||
const BRAND_100 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_100;
|
||||
object3.labelSelected = {color: BRAND_100};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
const object8 = {};
|
||||
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object8.fontFamily = PRIMARY_SEMIBOLD;
|
||||
object8.fontSize = 13;
|
||||
TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object8.color = TEXT_MUTED;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{row: {'paddingVertical': 12, 'paddingHorizontal': 16},
|
||||
label: object8, optionsWrapper: {'marginHorizontal': -16, 'paddingTop': 20, 'marginTop': -20,
|
||||
'paddingBottom': 8, 'marginBottom': -8}, optionsContainer: {paddingHorizontal: 12}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSelect.tsx');
|
||||
exports.default = FormSelect;
|
||||
}
|
||||
|
||||
function OptionButton({item, selected, onPress}) { // fn#63507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:726, offset: 0x01b83216, size: 312 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
|
||||
const value3 = env0_2.useCallback(function() {
|
||||
if (onPress != null) {
|
||||
onPress(item);
|
||||
}
|
||||
}, [item, onPress]);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const r6 = item.descriptiveLabel ?? item.label;
|
||||
const items2 = [styles.button];
|
||||
items2[1] = selected ? styles.buttonSelected : null;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
accessibilityLabel={r6}
|
||||
style={items2}
|
||||
onPress={value3}
|
||||
>
|
||||
<Text variant="text-sm/semibold" style={selected ? styles.labelSelected : styles.label}>
|
||||
{item.label.toUpperCase()}
|
||||
</Text>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function FormSelect({label, options, value, onChange, onScrollBeginDrag}) { // fn#63510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:1648, offset: 0x01b8338e, size: 264 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.row}>
|
||||
{label != null && ((Text) => <Text style={styles.label} variant="heading-md/medium" accessibilityRole="header">{label.toUpperCase()}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
|
||||
<FlatList
|
||||
style={styles.optionsWrapper}
|
||||
contentContainerStyle={styles.optionsContainer}
|
||||
data={options}
|
||||
extraData={value}
|
||||
keyExtractor={extractKey}
|
||||
renderItem={renderItem_63511}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
horizontal
|
||||
onScrollBeginDrag={onScrollBeginDrag}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function FormSelectRenderItem({item}) { // fn#63511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:2016, owner: FormSelect.renderItem, offset: 0x01b83496, size: 67 bytes, params: 2, frame: 14
|
||||
return (
|
||||
<OptionButton
|
||||
item={item}
|
||||
selected={item.value === value}
|
||||
onPress={onPress_63512}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function renderItemOnPress({value}) { // fn#63512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:2094, owner: FormSelect.renderItem.onPress, offset: 0x01b834d9, size: 39 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
if (onChange == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = onChange(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 7991; source: design/void/Form/native/FormSliderRow.tsx; dependencies: [31, 27, 33, 4501, 6748, 6239, 4573, 7992, 6746, 2] */
|
||||
function _fun63550(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8169:6, offset: 0x01b84f92, size: 246 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({labels: {'flexDirection': 'row',
|
||||
'justifyContent': 'space-between', 'alignItems': 'center'}, slider: {'marginStart': -4, 'marginTop': 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSliderRow.tsx');
|
||||
exports.default = FormSliderRow;
|
||||
}
|
||||
|
||||
function FormSliderRow(a0) { // fn#63551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8169:388, offset: 0x01b85088, size: 387 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var Card;
|
||||
var items3;
|
||||
const label = a0.label;
|
||||
const trailing = a0.trailing;
|
||||
const value = Object.create(null);
|
||||
value.label = 0;
|
||||
value.trailing = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, label);
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const value4 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
|
||||
const styles = useStyles();
|
||||
if (value4) {
|
||||
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
items3 = [<View style={styles.labels}>{((Text) => <Text variant="text-md/semibold" color="mobile-text-heading-primary">{label}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}{trailing}</View>];
|
||||
items3[1] = ((Component) => <Component {...value2} {...{['style']: styles.slider}} />)(importDefault(7992) /* metro dependency 7992 */);
|
||||
r0 = <Card>{items3}</Card>;
|
||||
} else {
|
||||
r0 = <>{((Component) => <Component label={label} trailing={trailing} />)(importDefault(6746) /* metro dependency 6746: FormRow */)}{((Component) => <Component {...value2} />)(importDefault(7992) /* metro dependency 7992 */)}</>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 6750; source: design/void/Form/native/FormSubLabel.tsx; dependencies: [31, 33, 4573, 2] */
|
||||
function _fun53230(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6928:6, offset: 0x01342831, size: 129 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSubLabel.tsx');
|
||||
exports.default = FormSubLabel;
|
||||
}
|
||||
|
||||
function FormSubLabel({text, numberOfLines, style, accessible, color}) { // fn#53231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6928:202, offset: 0x013428b2, size: 114 bytes, params: 2, frame: 19
|
||||
color = color === undefined ? 'text-subtle' : color;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
color={color}
|
||||
variant="text-xs/normal"
|
||||
lineClamp={numberOfLines}
|
||||
style={style}
|
||||
accessible={accessible}
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 7983; source: design/void/Form/native/FormSwitch.tsx; dependencies: [31, 27, 33, 4501, 697, 4048, 4002, 2] */
|
||||
function _fun63513(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8161:6, offset: 0x01b83500, size: 237 bytes, params: 8, frame: 21
|
||||
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 */).Switch;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const REDESIGN_INPUT_CONTROL_SELECTED = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_INPUT_CONTROL_SELECTED;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{switch: {marginVertical: -5},
|
||||
track: {color: REDESIGN_INPUT_CONTROL_SELECTED}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSwitch.tsx');
|
||||
exports.default = FormSwitch_63514;
|
||||
}
|
||||
|
||||
function FormSwitch_63514({value, disabled, style, borderColor, onValueChange, accessible, accessibilityLabel, accessibilityHint, renderIosBackground, tintColor}) { // fn#63514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8161:331, offset: 0x01b835ed, size: 332 bytes, params: 2, frame: 26
|
||||
var r12;
|
||||
var moduleValue;
|
||||
const r7 = value !== undefined && value;
|
||||
const r8 = disabled !== undefined && disabled;
|
||||
const r13 = renderIosBackground !== undefined && renderIosBackground;
|
||||
const styles = useStyles();
|
||||
const value4 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const r14 = tintColor ?? styles.track.color;
|
||||
if (borderColor != null) {
|
||||
r12 = borderColor;
|
||||
} else {
|
||||
moduleValue = require(4002) /* metro dependency 4002: shared */;
|
||||
r12 = moduleValue.isThemeDark(value4) ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400 : undefined;
|
||||
}
|
||||
return (
|
||||
<Switch
|
||||
accessible={accessible}
|
||||
trackColor={{true: r14, false: r12}}
|
||||
ios_backgroundColor={r7 !== false ? undefined : r13 ? r12 : undefined}
|
||||
value={r7}
|
||||
disabled={r8}
|
||||
style={[styles.switch, style]}
|
||||
onValueChange={onValueChange}
|
||||
accessibilityState={{disabled: r8, selected: r7}}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
accessibilityHint={accessibilityHint}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* Metro module 7985; source: design/void/Form/native/FormSwitchRow.tsx; dependencies: [57, 31, 27, 33, 4501, 477, 6746, 6749, 7983, 6748, 6808, 2] */
|
||||
function _fun63518(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:6, offset: 0x01b8398f, size: 238 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({trailing: {'flex': 1,
|
||||
'flexDirection': 'row', 'width': '100%', 'alignItems': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSwitchRow.tsx');
|
||||
exports.default = FormSwitchRowContainer;
|
||||
}
|
||||
|
||||
function FormSwitchRow(a0) { // fn#63519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:255, offset: 0x01b83a7d, size: 619 bytes, params: 2, frame: 36
|
||||
const onValueChange = a0.onValueChange;
|
||||
let value = a0.value;
|
||||
let disabled = a0.disabled;
|
||||
const value2 = undefined;
|
||||
disabled = !(disabled === value2) && disabled;
|
||||
const label = a0.label;
|
||||
const subLabel = a0.subLabel;
|
||||
const accessibilityHint = a0.accessibilityHint;
|
||||
const trailing = a0.trailing;
|
||||
const numberOfLines = a0.numberOfLines;
|
||||
const switchProps = a0.switchProps;
|
||||
const r7 = switchProps !== value2 ? switchProps : {};
|
||||
const object2 = {'onValueChange': 0, 'value': 0, 'disabled': 0, 'label': 0, 'subLabel': 0, 'accessibilityHint': 0,
|
||||
'trailing': 0, 'numberOfLines': 0, 'switchProps': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value4 = copyDataProperties({}, a0, object2, undefined);
|
||||
var env0_3Binding = value2;
|
||||
const styles = useStyles();
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
var [property, env0_3] = env0_3Binding(env0_4.useState(value), 2);
|
||||
env0_4.useEffect(_fun63520, [value]);
|
||||
const r1 = typeof label !== 'string' ? value2 : label;
|
||||
const r12 = r1 != null && typeof subLabel === 'string' ? r1 + (' ' + subLabel) : r1;
|
||||
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
const defaultImportProps = {...value4};
|
||||
defaultImportProps['label'] = <View style={styles.trailing}>{((Component) => <Component numberOfLines={numberOfLines} text={label} />)(importDefault(6749) /* metro dependency 6749: FormLabel */)}{trailing != null && trailing}</View>;
|
||||
defaultImportProps['subLabel'] = subLabel;
|
||||
defaultImportProps['disabled'] = disabled;
|
||||
defaultImportProps['onPress'] = isAndroid2 ? function() {
|
||||
if (onValueChange != null && value != null) {
|
||||
onValueChange(!value);
|
||||
}
|
||||
} : value2;
|
||||
defaultImportProps['accessible'] = true;
|
||||
defaultImportProps['onAccessibilityTap'] = FormSwitchRowOnAccessibilityTap;
|
||||
defaultImportProps['accessibilityRole'] = 'switch';
|
||||
defaultImportProps['accessibilityLabel'] = r12;
|
||||
defaultImportProps['accessibilityState'] = {disabled: disabled, checked: property};
|
||||
defaultImportProps['accessibilityHint'] = accessibilityHint;
|
||||
value = ((Component) => <Component disabled={disabled} value={value} onValueChange={onValueChange} {...r7} />)(importDefault(7983) /* metro dependency 7983: FormSwitch */);
|
||||
defaultImportProps['trailing'] = value;
|
||||
return <FormRow {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
function FormSwitchRowContainer(a0) { // fn#63524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:1110, offset: 0x01b83d7b, size: 176 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var TableSwitchRow;
|
||||
var value;
|
||||
const binding = env0_4;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
|
||||
var viewBindingProps = {style: a0.DEPRECATED_style};
|
||||
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
value = a0.value;
|
||||
value = <View {...viewBindingProps}><TableSwitchRow value={value} onValueChange={a0.onValueChange} {...a0} /></View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = <FormSwitchRow {...a0} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function FormSwitchRowOnAccessibilityTap() { // fn#63522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:797, owner: FormSwitchRow.onAccessibilityTap, offset: 0x01b83d2d, size: 43 bytes, params: 1, frame: 11
|
||||
env0_3(!env0_2);
|
||||
global.setTimeout(_fun63523);
|
||||
}
|
||||
|
||||
function _fun63523() { // fn#63523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:826, offset: 0x01b83d58, size: 35 bytes, params: 1, frame: 11
|
||||
if (onValueChange != null) {
|
||||
onValueChange(!env1_2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 7984; source: design/void/Form/native/FormText.tsx; dependencies: [31, 33, 4501, 6235, 697, 1305, 2] */
|
||||
function _fun63515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:6, offset: 0x01b83739, size: 371 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun63516);
|
||||
object2 = {};
|
||||
const BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
||||
object2.BRAND = {color: BRAND_500};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object2.RED = {color: RED_400};
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
object2.GREEN = {color: GREEN_360};
|
||||
const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
||||
object2.YELLOW = {color: YELLOW_300};
|
||||
const BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
|
||||
object2.LINK = {color: BLUE_345};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object2.WHITE = {color: WHITE};
|
||||
value = value.forwardRef(_fun63517);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormText.tsx');
|
||||
exports.default = value;
|
||||
exports.FormTextColors = object2;
|
||||
}
|
||||
|
||||
function _fun63516(a0) { // fn#63516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:144, offset: 0x01b838ac, size: 94 bytes, params: 2, frame: 14
|
||||
const DARK_PRIMARY_100_LIGHT_PRIMARY_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_100_LIGHT_PRIMARY_500;
|
||||
const value = a0 === 'small';
|
||||
const value2 = 16;
|
||||
return {primary: {color: DARK_PRIMARY_100_LIGHT_PRIMARY_500}, text: {fontSize: value ? 12 : value2,
|
||||
lineHeight: value ? value2 : 22}};
|
||||
}
|
||||
|
||||
function _fun63517({children, size, color, style}, a1) { // fn#63517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:581, offset: 0x01b8390a, size: 133 bytes, params: 3, frame: 19
|
||||
size = size === undefined ? 'medium' : size;
|
||||
const styles = useStyles(size);
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText ref={a1} style={[styles.text, color ?? styles.primary, style]}>
|
||||
{children}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 7332; source: design/void/Form/native/FormTitle.tsx; dependencies: [31, 27, 661, 33, 477, 4501, 697, 1305, 2] */
|
||||
function _fun59036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7510:6, offset: 0x016df458, size: 420 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_2 = value.View;
|
||||
value.Platform;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
const r3 = value ? 48 : 58;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
const r1 = value ? 56 : 48;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {titleWrapper: {'flexDirection': 'row', 'justifyContent': 'space-between', 'paddingTop': 16,
|
||||
'paddingBottom': 16}};
|
||||
object2.horizontalPadding = {paddingHorizontal: 16};
|
||||
object2.thinTitle = {paddingTop: 26};
|
||||
const object3 = {};
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object3.fontFamily = PRIMARY_SEMIBOLD;
|
||||
object3.fontSize = 13;
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
object3.color = TEXT_SUBTLE;
|
||||
object2.titleText = object3;
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object2.error = {color: RED_400};
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormTitle.tsx');
|
||||
exports.default = FormTitle;
|
||||
exports.FORM_TITLE_HEIGHT = r3;
|
||||
exports.THIN_FORM_TITLE_HEIGHT = r1;
|
||||
}
|
||||
|
||||
function FormTitle({title, icon, numberOfLines, uppercaseTitle, thinTitle, error, inset, viewStyle, textStyle}) { // fn#59037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7510:640, offset: 0x016df5fc, size: 281 bytes, params: 2, frame: 26
|
||||
uppercaseTitle = uppercaseTitle === undefined || uppercaseTitle;
|
||||
thinTitle = !(thinTitle === undefined) && thinTitle;
|
||||
error = !(error === undefined) && error;
|
||||
inset = !(inset === undefined) && inset;
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.titleWrapper];
|
||||
thinTitle = thinTitle && styles.thinTitle;
|
||||
items2[1] = thinTitle;
|
||||
items2[2] = !inset && styles.horizontalPadding;
|
||||
items2[3] = viewStyle;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
error = error && styles.error;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<LegacyText
|
||||
style={[styles.titleText, textStyle, error]}
|
||||
numberOfLines={numberOfLines}
|
||||
accessibilityRole="header"
|
||||
>
|
||||
{uppercaseTitle ? title.toUpperCase() : title}
|
||||
</LegacyText>
|
||||
{icon}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 8970; source: design/void/Form/native/FreeFormErrorLabel.tsx; dependencies: [31, 33, 3862, 4002, 4573, 2] */
|
||||
function _fun69917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9155:6, offset: 0x01ce8561, size: 135 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormErrorLabel.tsx');
|
||||
exports.default = Label;
|
||||
}
|
||||
|
||||
function Label({children, style}) { // fn#69918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9155:210, offset: 0x01ce85e8, size: 138 bytes, params: 2, frame: 20
|
||||
env0_2.useEffect(_fun69919, [(require(3862) /* metro dependency 3862: native */).getNodeText(children)]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={style}
|
||||
variant="text-xs/medium"
|
||||
color="text-feedback-critical"
|
||||
>
|
||||
{children}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 8967; source: design/void/Form/native/FreeFormInputGroup.tsx; dependencies: [31, 27, 33, 4501, 477, 6748, 7981, 1305, 8968, 8969, 8970, 4573, 2] */
|
||||
function _fun69905(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9152:6, offset: 0x01ce7963, size: 264 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value2.jsx;
|
||||
const env0_6 = value2.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({label: {marginBottom: 8},
|
||||
input: {'flexGrow': 1, 'marginBottom': 8}, error: {marginBottom: 8}, hint: {marginBottom: 8}});
|
||||
value = value.forwardRef(_fun69906);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormInputGroup.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun69906(a0, a1) { // fn#69906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9152:292, offset: 0x01ce7a6b, size: 823 bytes, params: 3, frame: 35
|
||||
var r10;
|
||||
var r20;
|
||||
var r22;
|
||||
var moduleValue3;
|
||||
const style = a0.style;
|
||||
const label = a0.label;
|
||||
const error = a0.error;
|
||||
let value = a0.value;
|
||||
const hint = a0.hint;
|
||||
const textStyle = a0.textStyle;
|
||||
let enableAndroidSanitizedInputWorkaround = a0.enableAndroidSanitizedInputWorkaround;
|
||||
const value2 = undefined;
|
||||
enableAndroidSanitizedInputWorkaround = !(enableAndroidSanitizedInputWorkaround === value2) && enableAndroidSanitizedInputWorkaround;
|
||||
const secureTextEntry = a0.secureTextEntry;
|
||||
const keyboardType = a0.keyboardType;
|
||||
const accessibilityLabel = a0.accessibilityLabel;
|
||||
const object2 = {'style': 0, 'label': 0, 'error': 0, 'value': 0, 'hint': 0, 'textStyle': 0,
|
||||
'enableAndroidSanitizedInputWorkaround': 0, 'secureTextEntry': 0, 'keyboardType': 0, 'accessibilityLabel': 0};
|
||||
const value4 = null;
|
||||
silentSetPrototypeOf(object2, value4, undefined);
|
||||
const value5 = copyDataProperties({}, a0, object2, undefined);
|
||||
const styles = useStyles();
|
||||
let r5 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
r5 = !r5 ? secureTextEntry : r5;
|
||||
const r6 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'visible-password' : keyboardType;
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
|
||||
const value8 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
|
||||
const value9 = binding.useId();
|
||||
if (value8) {
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
return (
|
||||
<TextInput
|
||||
containerStyle={style}
|
||||
value={value}
|
||||
label={label}
|
||||
errorMessage={error}
|
||||
description={hint}
|
||||
placeholder={value5.placeholder}
|
||||
onChange={value5.onChangeText}
|
||||
isClearable={value5.clearButtonVisibility !== (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT}
|
||||
keyboardType={r6}
|
||||
secureTextEntry={r5}
|
||||
autoCapitalize={value5.autoCapitalize}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const items2 = [value4 != label ? ((Component) => <Component style={styles.label} nativeID={value9}>{label}</Component>)(importDefault(8968) /* metro dependency 8968: FreeFormLabel */) : value4];
|
||||
const FreeFormTextInput = importDefault(8969) /* metro dependency 8969: FreeFormTextInput */;
|
||||
const defaultImport2Props = {...value5};
|
||||
if (value4 != accessibilityLabel) {
|
||||
r22 = accessibilityLabel;
|
||||
} else {
|
||||
if (value4 == label) {
|
||||
r20 = label;
|
||||
} else {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
r20 = moduleValue3.isAndroid() ? value2 : label;
|
||||
}
|
||||
r22 = r20;
|
||||
}
|
||||
defaultImport2Props['accessibilityLabel'] = r22;
|
||||
defaultImport2Props['accessibilityLabelledBy'] = value9;
|
||||
defaultImport2Props['error'] = value4 != error;
|
||||
defaultImport2Props['ref'] = a1;
|
||||
defaultImport2Props['value'] = value;
|
||||
defaultImport2Props['secureTextEntry'] = r5;
|
||||
defaultImport2Props['keyboardType'] = r6;
|
||||
defaultImport2Props['style'] = [styles.input, textStyle];
|
||||
items2[1] = <FreeFormTextInput {...defaultImport2Props} />;
|
||||
if (value4 != error) {
|
||||
value = importDefault(8970) /* metro dependency 8970: FreeFormErrorLabel */;
|
||||
value = ((Component) => <Component style={styles.error}>{error}</Component>)(value);
|
||||
r10 = value;
|
||||
} else {
|
||||
r10 = value4;
|
||||
}
|
||||
items2[2] = r10;
|
||||
items2[3] = value4 != hint ? ((Text) => <Text style={styles.hint} variant="text-xs/medium" color="text-muted">{hint}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value4;
|
||||
return (
|
||||
<View style={style}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 8968; source: design/void/Form/native/FreeFormLabel.tsx; dependencies: [31, 33, 4573, 2] */
|
||||
function _fun69907(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9153:6, offset: 0x01ce7da2, size: 131 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormLabel.tsx');
|
||||
exports.default = FreeFormLabel;
|
||||
}
|
||||
|
||||
function FreeFormLabel({children, style, nativeID}) { // fn#69908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9153:203, offset: 0x01ce7e25, size: 90 bytes, params: 2, frame: 16
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={style}
|
||||
variant="text-sm/semibold"
|
||||
color="text-muted"
|
||||
nativeID={nativeID}
|
||||
>
|
||||
{children}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
/* Metro module 8969; source: design/void/Form/native/FreeFormTextInput.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 1244, 1305, 8523, 44, 2] */
|
||||
function _fun69909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:6, offset: 0x01ce7e7f, size: 497 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value2.TouchableWithoutFeedback;
|
||||
const env0_5 = value2.View;
|
||||
const env0_6 = value2.TouchableOpacity;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value3.jsx;
|
||||
const env0_8 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'backgroundColor': null, 'height': 48, 'borderWidth': 1, 'borderColor': null, 'borderRadius': null,
|
||||
'paddingRight': 6, 'paddingLeft': 12, 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object4.borderColor = BACKGROUND_BASE_LOWEST;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object3.container = object4;
|
||||
object3.onPress = {flexDirection: 'row'};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object3.input = {flex: 1, color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object3.error = {borderColor: RED_400};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object3.closeIcon = {'tintColor': null, 'paddingLeft': 8, 'flexShrink': 0, tintColor: INTERACTIVE_TEXT_DEFAULT};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object3.placeholder = {color: TEXT_MUTED};
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
value = value.forwardRef(_fun69911);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormTextInput.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function ClearButton({onPress}) { // fn#69910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:752, offset: 0x01ce8070, size: 254 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const VkKicb = (require(1244) /* metro dependency 1244: indexNative */).t.VkKicb;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const iconProps = {source: importDefault(8523) /* metro dependency 8523 */, style: styles.closeIcon};
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const MEDIUM = Sizes.MEDIUM;
|
||||
iconProps.size = MEDIUM;
|
||||
return (
|
||||
<PressableOpacity
|
||||
style={{'borderRadius': 20, 'padding': 8}}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={Reflect.apply(string, intl, [VkKicb])}
|
||||
onPress={onPress}
|
||||
hitSlop={{'top': 8, 'bottom': 8, 'right': 8}}
|
||||
>
|
||||
<Icon {...iconProps} />
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun69911(a0, a1) { // fn#69911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:1105, offset: 0x01ce816e, size: 886 bytes, params: 3, frame: 36
|
||||
const style = a0.style;
|
||||
let error = a0.error;
|
||||
const renderLeadingComponent = a0.renderLeadingComponent;
|
||||
const renderTrailingComponent = a0.renderTrailingComponent;
|
||||
const onChangeText = a0.onChangeText;
|
||||
const env0_1 = a0.onFocus;
|
||||
const accessibilityRole = a0.accessibilityRole;
|
||||
const env0_2 = a0.onBlur;
|
||||
const value = a0.value;
|
||||
const onPress = a0.onPress;
|
||||
const env0_3 = onPress;
|
||||
let editable = a0.editable;
|
||||
const value2 = undefined;
|
||||
editable = editable === value2 || editable;
|
||||
const accessibilityLabel = a0.accessibilityLabel;
|
||||
const accessibilityHint = a0.accessibilityHint;
|
||||
let forceAccessibleContainer = a0.forceAccessibleContainer;
|
||||
forceAccessibleContainer = !(forceAccessibleContainer === value2) && forceAccessibleContainer;
|
||||
const clearButtonVisibility = a0.clearButtonVisibility;
|
||||
const r11 = clearButtonVisibility !== value2 ? clearButtonVisibility : (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT;
|
||||
const object2 = {'style': 0, 'error': 0, 'renderLeadingComponent': 0, 'renderTrailingComponent': 0,
|
||||
'onChangeText': 0, 'onFocus': 0, 'accessibilityRole': 0, 'onBlur': 0, 'value': 0, 'onPress': 0, 'editable': 0,
|
||||
'accessibilityLabel': 0, 'accessibilityHint': 0, 'forceAccessibleContainer': 0, 'clearButtonVisibility': 0};
|
||||
const value6 = null;
|
||||
silentSetPrototypeOf(object2, value6, undefined);
|
||||
const value7 = copyDataProperties({}, a0, object2, undefined);
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const value9 = binding.useRef(value6);
|
||||
binding.useImperativeHandle(a1, _fun69912);
|
||||
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
|
||||
const ALWAYS = ClearButtonVisibility.ALWAYS;
|
||||
const r10 = ALWAYS === r11 || ((require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT === r11 ? value6 != value && value !== '' : (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.NEVER !== r11 && value2);
|
||||
(importDefault(44) /* metro dependency 44 */)(!(value6 != onPress && editable),
|
||||
'Cannot have an editable input w/ onPress handler');
|
||||
const value15 = value6 != onPress;
|
||||
const items3 = [styles.container];
|
||||
error = error ? styles.error : value6;
|
||||
items3[1] = error;
|
||||
items3[2] = style;
|
||||
const r1 = value15 ? TouchableOpacity : TouchableWithoutFeedback;
|
||||
const r1Props = {onPress: onPress_69913, style: value15 ? items3 : value6,
|
||||
accessibilityRole: forceAccessibleContainer ? 'button' : value2, accessible: forceAccessibleContainer,
|
||||
accessibilityLabel: forceAccessibleContainer ? accessibilityLabel : value2,
|
||||
accessibilityValue: forceAccessibleContainer ? {text: value} : value2,
|
||||
accessibilityHint: forceAccessibleContainer ? accessibilityHint : value2};
|
||||
const viewBindingProps = {style: value15 ? styles.onPress : items3};
|
||||
const items2 = [value6 == renderLeadingComponent ? value2 : renderLeadingComponent()];
|
||||
const TextInput = (require(1305) /* metro dependency 1305: native */).TextInput;
|
||||
items2[1] = <TextInput pointerEvents={value15 ? 'none' : 'auto'} accessibilityRole={accessibilityRole} accessibilityLabel={accessibilityLabel} ref={value9} editable={editable} style={styles.input} numberOfLines={1} multiline={false} value={value} onChangeText={onChangeText} onFocus={function(a0) {
|
||||
if (onFocus != null) {
|
||||
onFocus(a0);
|
||||
}
|
||||
}} onBlur={function(a0) {
|
||||
if (onBlur != null) {
|
||||
onBlur(a0);
|
||||
}
|
||||
}} placeholderTextColor={styles.placeholder.color} clearButtonMode="never" {...value7} {...{['importantForAccessibility']: editable ? 'yes' : 'no-hide-descendants'}} {...{['accessibilityElementsHidden']: !editable}} />;
|
||||
items2[2] = value6 == renderTrailingComponent ? value2 : renderTrailingComponent();
|
||||
items2[3] = r10 ? <ClearButton onPress={onPress_69916} /> : value6;
|
||||
return ((Component) => <Component {...r1Props}><View {...viewBindingProps}>{items2}</View></Component>)(r1);
|
||||
}
|
||||
|
||||
function onPress_69913() { // fn#69913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:1851, offset: 0x01ce84e4, size: 59 bytes, params: 1, frame: 10
|
||||
var current;
|
||||
if (editable) {
|
||||
current = env0_5.current;
|
||||
if (current != null) {
|
||||
current.focus();
|
||||
}
|
||||
}
|
||||
if (onPress != null) {
|
||||
onPress();
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_69916() { // fn#69916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:2572, offset: 0x01ce853e, size: 35 bytes, params: 1, frame: 12
|
||||
return onChangeText?.('');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 7972; source: design/void/Form/native/index.tsx; dependencies: [2, 6747, 6751, 6755, 6756, 7973, 7978, 7331, 7979, 6757, 7980, 6749, 6752, 6746, 7330, 7982, 6750, 7983, 7984, 7332, 7985, 7986, 6745, 7990, 7991, 8001] */
|
||||
function _fun63456(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8150:6, offset: 0x01b80240, size: 546 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/index.tsx');
|
||||
exports.Form = importDefault(6747) /* metro dependency 6747: Form */;
|
||||
exports.FormArrow = importDefault(6751) /* metro dependency 6751: FormArrow */;
|
||||
exports.FormCheckbox = importDefault(6755) /* metro dependency 6755: FormCheckbox */;
|
||||
exports.FormCheckmark = importDefault(6756) /* metro dependency 6756: FormCheckmark */;
|
||||
exports.FormCTA = importDefault(7973) /* metro dependency 7973: FormCTA */;
|
||||
exports.FormCTAButton = importDefault(7978) /* metro dependency 7978: FormCTAButton */;
|
||||
exports.FormDivider = importDefault(7331) /* metro dependency 7331: FormDivider */;
|
||||
exports.FormHint = importDefault(7979) /* metro dependency 7979: FormHint */;
|
||||
exports.FormIcon = importDefault(6757) /* metro dependency 6757: FormIcon */;
|
||||
exports.FormInput = importDefault(7980) /* metro dependency 7980: FormInput */;
|
||||
exports.FormLabel = importDefault(6749) /* metro dependency 6749: FormLabel */;
|
||||
exports.FormRadio = importDefault(6752) /* metro dependency 6752: FormRadio */;
|
||||
exports.FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
exports.FormSection = importDefault(7330) /* metro dependency 7330: FormSection */;
|
||||
exports.FormSelect = importDefault(7982) /* metro dependency 7982: FormSelect */;
|
||||
exports.FormSubLabel = importDefault(6750) /* metro dependency 6750: FormSubLabel */;
|
||||
exports.FormSwitch = importDefault(7983) /* metro dependency 7983: FormSwitch */;
|
||||
exports.FormText = importDefault(7984) /* metro dependency 7984: FormText */;
|
||||
const FormTextColors = (require(7984) /* metro dependency 7984: FormText */).FormTextColors;
|
||||
exports.FormTextColors = FormTextColors;
|
||||
exports.FormTitle = importDefault(7332) /* metro dependency 7332: FormTitle */;
|
||||
exports.FormSwitchRow = importDefault(7985) /* metro dependency 7985: FormSwitchRow */;
|
||||
exports.FormRadioRow = importDefault(7986) /* metro dependency 7986: FormRadioRow */;
|
||||
exports.FormCheckboxRow = importDefault(6745) /* metro dependency 6745: FormCheckboxRow */;
|
||||
exports.FormRadioGroup = importDefault(7990) /* metro dependency 7990: FormRadioGroup */;
|
||||
exports.FormSliderRow = importDefault(7991) /* metro dependency 7991: FormSliderRow */;
|
||||
exports.FormCardSection = importDefault(8001) /* metro dependency 8001: CardSection */;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user