Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,58 @@
|
||||
/* Metro module 7682; source: design/components/Input/native/Input.native.tsx; dependencies: [31, 27, 33, 4501, 697, 1244, 4573, 7683, 2] */
|
||||
function _fun61359(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7860:6, offset: 0x01b3ca5d, size: 422 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {flexDirection: 'row'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.marginTop = PX_4;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.marginBottom = PX_4;
|
||||
object3.inputRow = object4;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.labelWrapper = {'marginBottom': null, 'flexDirection': 'row', 'alignItems': 'center', marginBottom: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.label = {marginBottom: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.description = {marginTop: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.error = {marginTop: PX_4, width: 'auto'};
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/Input.native.tsx');
|
||||
exports.Input = Input;
|
||||
}
|
||||
|
||||
function Input({label, labelTrailing, labelId, description, errorMessage, children, containerStyle, required}) { // fn#61360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7860:596, offset: 0x01b3cc03, size: 652 bytes, params: 2, frame: 34
|
||||
var r14;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
if (typeof label !== 'string') {
|
||||
r14 = undefined;
|
||||
} else if (required !== true) {
|
||||
r14 = undefined;
|
||||
} else {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r14 = '' + label + ' (' + intl.string((require(1244) /* metro dependency 1244: indexNative */).t.EkokLy) + ')';
|
||||
}
|
||||
const items3 = [label != null ? labelTrailing != null ? <View style={styles.labelWrapper}>{((Text) => <Text variant="text-sm/semibold" color="text-subtle" nativeID={labelId}>{label}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}{labelTrailing}</View> : ((Text) => <Text variant="text-sm/semibold" color="text-subtle" style={styles.label} nativeID={labelId} accessibilityLabel={r14}>{label}{required ? ((Text) => <Text variant="text-sm/bold" color="text-feedback-critical" {...{'aria-hidden': true}}>{' '}{'*'}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null];
|
||||
items3[1] = <View style={styles.inputRow}>{children}</View>;
|
||||
items3[2] = description != null ? ((Text) => <Text variant="text-xs/medium" color="text-muted" style={styles.description}>{description}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null;
|
||||
items3[3] = errorMessage != null ? ((ErrorText) => <ErrorText style={styles.error}>{errorMessage}</ErrorText>)((require(7683) /* metro dependency 7683: ErrorTextNative */).ErrorText) : null;
|
||||
return (
|
||||
<View style={containerStyle}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,222 @@
|
||||
/* Metro module 6992; source: design/components/Input/native/InputFieldContainer.native.tsx; dependencies: [31, 27, 33, 697, 3860, 4501, 6993, 4573, 4017, 4577, 2] */
|
||||
function _fun55410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7170:6, offset: 0x013a5f3a, size: 344 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = useInputStyles;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
value.Platform;
|
||||
const env0_3 = value.StyleSheet;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = {'mass': 0.5, 'damping': 15, 'stiffness': 200, 'overshootClamping': true};
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun55412);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyleProperties = value.createStyleProperties;
|
||||
object2 = {};
|
||||
const INPUT_BORDER_ERROR_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BORDER_ERROR_DEFAULT;
|
||||
object2.error = INPUT_BORDER_ERROR_DEFAULT;
|
||||
object2.default = 'transparent';
|
||||
const INPUT_BORDER_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BORDER_ACTIVE;
|
||||
object2.focused = INPUT_BORDER_ACTIVE;
|
||||
const env0_9 = Reflect.apply(createStyleProperties, value, [object2]);
|
||||
object2 = {code: "function InputFieldContainerNativeTsx1(){const{status,ringColors,isFocused,withSpring,RING_SPRING_CONFIG}=this.__closure;let borderWidth=0;let borderColor='transparent';if(status!=='default'){borderWidth=2;borderColor=ringColors.error;}else if(isFocused){borderWidth=1;borderColor=ringColors.focused;}return{borderWidth:withSpring(borderWidth,RING_SPRING_CONFIG),borderColor:withSpring(borderColor,RING_SPRING_CONFIG),left:-borderWidth,right:-borderWidth,top:-borderWidth,bottom:-borderWidth};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/InputFieldContainer.native.tsx');
|
||||
exports.useInputStyles = closure;
|
||||
exports.InputFieldContainer = InputFieldContainer;
|
||||
}
|
||||
|
||||
function useInputStyles({size, isRound, isDisabled, grow}) { // fn#55411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7170:236, offset: 0x013a6092, size: 526 bytes, params: 2, frame: 29
|
||||
size = size === undefined ? 'lg' : size;
|
||||
isRound = !(isRound === undefined) && isRound;
|
||||
isDisabled = !(isDisabled === undefined) && isDisabled;
|
||||
grow = grow === undefined || grow;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const value7 = Reflect.apply(useToken, useTokenModule,
|
||||
[size === 'sm' ? (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_RADIUS_SM : size === 'md' ? (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_RADIUS_MD : size !== 'lg' ? undefined : (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_RADIUS_LG]);
|
||||
const moduleValue2 = useTokenModule;
|
||||
useToken = moduleValue2.useToken;
|
||||
const INPUT_FIELD_ROUND_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_ROUND_RADIUS;
|
||||
const r3 = isRound ? Reflect.apply(useToken, moduleValue2, [INPUT_FIELD_ROUND_RADIUS]) : value7;
|
||||
const value9 = useTokenModule.useToken(size === 'sm' ? (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_TEXT_STYLE_SM : size === 'md' ? (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_TEXT_STYLE_MD : size !== 'lg' ? undefined : (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_TEXT_STYLE_LG);
|
||||
const moduleValue4 = useTokenModule;
|
||||
useToken = moduleValue4.useToken;
|
||||
const INPUT_FIELD_PADDING_VERTICAL_SM_IOS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_PADDING_VERTICAL_SM_IOS;
|
||||
return useStyles(size, isDisabled, grow, r3, value9, Reflect.apply(useToken, moduleValue4,
|
||||
[INPUT_FIELD_PADDING_VERTICAL_SM_IOS]));
|
||||
}
|
||||
|
||||
function _fun55412() { // fn#55412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7170:1028, offset: 0x013a62a0, size: 1106 bytes, params: 1, frame: 26
|
||||
var object5;
|
||||
const value = a0;
|
||||
const value2 = a1;
|
||||
const value3 = a2;
|
||||
const value4 = a3;
|
||||
const value5 = a4;
|
||||
const r1 = value !== undefined ? value : 'lg';
|
||||
let r11 = value2 !== undefined ? value2 : false;
|
||||
const r14 = !(value3 !== undefined) || value3;
|
||||
const r7 = value4 !== undefined ? value4 : 12;
|
||||
const r12 = value5 !== undefined ? value5 : 'text-md/medium';
|
||||
const {SM, MD, LG} = (require(6993) /* metro dependency 6993: InputTypesNative */).InputHeights;
|
||||
const property = ({sm: SM, md: MD, lg: LG})[r1];
|
||||
object5 = {};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.sm = PX_8;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.md = PX_12;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.lg = PX_16;
|
||||
const property2 = object5[r1];
|
||||
object5 = {};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.sm = PX_4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.md = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.lg = PX_8;
|
||||
const property3 = object5[r1];
|
||||
object5 = {};
|
||||
const object7 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.paddingHorizontal = PX_8;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object7.paddingVertical = PX_4;
|
||||
object5.sm = object7;
|
||||
const object8 = {};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object8.paddingHorizontal = PX_12;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.paddingVertical = PX_8;
|
||||
object5.md = object8;
|
||||
const object9 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.paddingHorizontal = PX_16;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object9.paddingVertical = PX_8 + 2;
|
||||
object5.lg = object9;
|
||||
const property4 = object5[r1];
|
||||
object5 = {};
|
||||
const value6 = 1;
|
||||
object5.container = {opacity: r11 ? 0.5 : value6, pointerEvents: r11 ? 'none' : 'auto', flexDirection: 'row',
|
||||
flexGrow: r14 ? value6 : 0, alignItems: 'center'};
|
||||
const object13 = {};
|
||||
let colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
const INPUT_BACKGROUND_DEFAULT = colors.INPUT_BACKGROUND_DEFAULT;
|
||||
object13.backgroundColor = INPUT_BACKGROUND_DEFAULT;
|
||||
const INPUT_FIELD_BORDER_WIDTH = (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_BORDER_WIDTH;
|
||||
object13.borderWidth = INPUT_FIELD_BORDER_WIDTH;
|
||||
const INPUT_BORDER_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BORDER_DEFAULT;
|
||||
object13.borderColor = INPUT_BORDER_DEFAULT;
|
||||
object5.background = object13;
|
||||
const INPUT_PLACEHOLDER_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_PLACEHOLDER_TEXT_DEFAULT;
|
||||
object5.placeholderText = {color: INPUT_PLACEHOLDER_TEXT_DEFAULT};
|
||||
object5.minHeight = {minHeight: property};
|
||||
object5.radius = {borderRadius: r7};
|
||||
object5.padding = property4;
|
||||
const object14 = {};
|
||||
const TextStyleSheet = (require(4573) /* metro dependency 4573: Text */).TextStyleSheet;
|
||||
copyDataProperties(object14, TextStyleSheet[r12], importDefault);
|
||||
object14['lineHeight'] = undefined;
|
||||
colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
r11 = r11 ? colors.TEXT_MUTED : colors.TEXT_DEFAULT;
|
||||
object14['color'] = r11;
|
||||
object14['flexGrow'] = value6;
|
||||
object5.text = object14;
|
||||
const object16 = {'position': 'absolute', 'left': 0};
|
||||
copyDataProperties(object16, property4, importDefault);
|
||||
object16['paddingEnd'] = property3;
|
||||
object16['zIndex'] = value6;
|
||||
object16['pointerEvents'] = 'none';
|
||||
object5.leadingText = object16;
|
||||
const object17 = {'position': 'absolute', 'right': 0};
|
||||
copyDataProperties(object17, property4, importDefault);
|
||||
object17['paddingStart'] = property3;
|
||||
object17['zIndex'] = value6;
|
||||
object17['pointerEvents'] = 'none';
|
||||
object5.trailingText = object17;
|
||||
object5.leadingIcon = {'position': 'absolute', 'left': 0, 'top': 0, 'bottom': 0, paddingTop: property2,
|
||||
paddingBottom: property2, paddingStart: property2, paddingEnd: property3, justifyContent: 'center',
|
||||
zIndex: value6, pointerEvents: 'none'};
|
||||
object5.trailingIcon = {'position': 'absolute', 'right': 0, 'top': 0, 'bottom': 0, paddingTop: property2,
|
||||
paddingBottom: property2, paddingStart: property3, paddingEnd: property2, justifyContent: 'center',
|
||||
zIndex: value6, pointerEvents: 'none'};
|
||||
const object18 = {};
|
||||
copyDataProperties(object18, property4, importDefault);
|
||||
object18['borderRightWidth'] = value6;
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
object18['borderRightColor'] = BORDER_STRONG;
|
||||
object5.splitBorder = object18;
|
||||
return object5;
|
||||
}
|
||||
|
||||
function InputFieldContainer(a0) { // fn#55413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7170:3520, offset: 0x013a66f2, size: 402 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
const value2 = env0_9();
|
||||
const isFocused = a0.isFocused;
|
||||
const r7 = isFocused !== undefined && isFocused;
|
||||
const status = a0.status;
|
||||
const r13 = status === undefined ? 'default' : status;
|
||||
const children = a0.children;
|
||||
const value5 = useInputStyles({size: a0.size, isRound: a0.isRound, isDisabled: a0.isDisabled, grow: a0.grow,
|
||||
hasLeadingIcon: a0.leadingIcon != null});
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = InputFieldContainerS;
|
||||
object2 = {status: r13, ringColors: value2, isFocused: r7};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.RING_SPRING_CONFIG = env0_7;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 1037178877006;
|
||||
closure.__initData = env0_10;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const items2 = [value5.container];
|
||||
items2[1] = value5.background;
|
||||
items2[2] = value5.radius;
|
||||
items2[3] = value5.minHeight;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<View2 style={[StyleSheet.absoluteFill, value5.radius, value6]} />
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InputFieldContainerS() { // fn#55414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7170:3795, owner: InputFieldContainer.s, offset: 0x013a6884, size: 148 bytes, params: 1, frame: 19
|
||||
var r1;
|
||||
var r5;
|
||||
var focused;
|
||||
var error;
|
||||
if (env0_2 !== 'default') {
|
||||
error = env0_0.error;
|
||||
r1 = 2;
|
||||
r5 = error;
|
||||
} else if (env0_1) {
|
||||
focused = env0_0.focused;
|
||||
r1 = 1;
|
||||
r5 = focused;
|
||||
} else {
|
||||
r1 = 0;
|
||||
r5 = 'transparent';
|
||||
}
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const binding = env1_7;
|
||||
object2.borderWidth = Reflect.apply(withSpring, springModule, [r1, binding]);
|
||||
object2.borderColor = springModule.withSpring(r5, binding);
|
||||
value = -r1;
|
||||
object2.left = value;
|
||||
object2.right = value;
|
||||
object2.top = value;
|
||||
object2.bottom = value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 6993; source: design/components/Input/native/InputTypes.native.tsx; dependencies: [2] */
|
||||
function _fun55415(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7171:6, offset: 0x013a6918, size: 131 bytes, params: 8, frame: 16
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {SM: 32};
|
||||
object2[32] = 'SM';
|
||||
object2.MD = 40;
|
||||
object2[40] = 'MD';
|
||||
object2.LG = 48;
|
||||
object2[48] = 'LG';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/InputTypes.native.tsx');
|
||||
exports.InputHeights = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Metro module 6995; source: design/components/Input/native/NativeTextInput.native.tsx; dependencies: [31, 27, 1480, 661, 33, 6996, 4594, 4559, 6997, 3868, 3862, 2] */
|
||||
function _fun55418(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:6, offset: 0x013a6c68, size: 264 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useKeyboardBlurring;
|
||||
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.Pressable;
|
||||
const env0_5 = value2.TextInput;
|
||||
const env0_6 = value2.StyleSheet;
|
||||
const env0_7 = value2.View;
|
||||
const subscribeToKeyboardUIStore = importDefault(1480) /* metro dependency 1480: subscribeToKeyboardUIStore */;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).KeyboardThemes;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value3.jsx;
|
||||
const env0_11 = value3.jsxs;
|
||||
value = value.forwardRef(_fun55422);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/NativeTextInput.native.tsx');
|
||||
exports.useKeyboardBlurring = closure;
|
||||
exports.NativeTextInput = value;
|
||||
}
|
||||
|
||||
function useKeyboardBlurring(a0) { // fn#55419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:230, offset: 0x013a6d70, size: 44 bytes, params: 2, frame: 14
|
||||
let env0_0 = a0;
|
||||
env0_3.useEffect(function() {
|
||||
var env0_0 = require(dependencyMap[5]).getKeyboardIsOpen();
|
||||
return subscribeToKeyboardUIStore(_fun55421);
|
||||
}, [a0]);
|
||||
}
|
||||
|
||||
function _fun55422(a0, a1) { // fn#55422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:433, offset: 0x013a6e16, size: 293 bytes, params: 3, frame: 24
|
||||
var r0;
|
||||
const value2 = env0_3.useRef(null);
|
||||
useKeyboardBlurring(value2);
|
||||
const value3 = (importDefault(6997) /* metro dependency 6997: useBottomSheetKeyboardHandling */)(a0);
|
||||
const value4 = useControlledValueProps(a0, value2);
|
||||
const panGestureWrapper = usePanGestureWrapper(value2).panGestureWrapper;
|
||||
const nativeModule = require(3868) /* metro dependency 3868: native */;
|
||||
const useThemeContext = nativeModule.useThemeContext;
|
||||
if (a0.keyboardAppearance == null) {
|
||||
a0.keyboardAppearance = (require(3862) /* metro dependency 3862: native */).isThemeDark(Reflect.apply(useThemeContext,
|
||||
|
||||
nativeModule, []).theme) ? KeyboardThemes.DARK : KeyboardThemes.LIGHT;
|
||||
}
|
||||
const object2 = {};
|
||||
let value = require(3862) /* metro dependency 3862: native */;
|
||||
copyDataProperties(object2, value.mergeProps(a0, value3, value4), undefined);
|
||||
value = require(3862) /* metro dependency 3862: native */;
|
||||
value = value.mergeRefs(value2, a1);
|
||||
object2['ref'] = value;
|
||||
value = <TextInput {...object2} />;
|
||||
if (a0.multiline) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = panGestureWrapper(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55420() { // fn#55420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:275, offset: 0x013a6d9c, size: 57 bytes, params: 1, frame: 13
|
||||
const env0_0 = (require(6996) /* metro dependency 6996: useKeyboardIsOpen */).getKeyboardIsOpen();
|
||||
return subscribeToKeyboardUIStore(_fun55421);
|
||||
}
|
||||
|
||||
function useControlledValueProps({value, defaultValue}, a1) { // fn#55423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:510, offset: 0x013a6f3b, size: 121 bytes, params: 3, frame: 17
|
||||
const env0_0 = a1;
|
||||
env1_3.useEffect(function() {
|
||||
var current = require.current;
|
||||
if (current != null) {
|
||||
current.setNativeProps({text: value ?? defaultValue});
|
||||
}
|
||||
}, [a1, value, defaultValue]);
|
||||
(require(4594) /* metro dependency 4594: useMountEffect */).useMountLayoutEffect(function() {
|
||||
var current = require.current;
|
||||
if (current != null) {
|
||||
current.setNativeProps({text: value});
|
||||
}
|
||||
});
|
||||
return {value: undefined, defaultValue: undefined};
|
||||
}
|
||||
|
||||
function usePanGestureWrapper(a0) { // fn#55426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:814, offset: 0x013a7018, size: 126 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const env0_2 = env1_3.useCallback(_fun55427, [a0]);
|
||||
const env0_3 = env1_3.useMemo(_fun55428, [value2]);
|
||||
return {panGestureWrapper: panGestureWrapper};
|
||||
}
|
||||
|
||||
function _fun55421({systemKeyboardOpen}) { // fn#55421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:324, offset: 0x013a6dd5, size: 65 bytes, params: 2, frame: 11
|
||||
var value3;
|
||||
var current;
|
||||
if (!(systemKeyboardOpen === env0_0 || systemKeyboardOpen)) {
|
||||
value3 = environment.__proto__;
|
||||
current = env1_0.current;
|
||||
if (current != null) {
|
||||
current.blur();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55427() { // fn#55427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:905, offset: 0x013a7096, size: 35 bytes, params: 1, frame: 10
|
||||
return env0_0.current?.focus();
|
||||
}
|
||||
|
||||
function _fun55428() { // fn#55428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:980, offset: 0x013a70b9, size: 51 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
const value = environment.__proto__.__proto__;
|
||||
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
|
||||
object2['display'] = env0_1 ? 'none' : 'flex';
|
||||
return object2;
|
||||
}
|
||||
|
||||
function panGestureWrapper(a0) { // fn#55429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7173:1067, owner: usePanGestureWrapper.panGestureWrapper, offset: 0x013a70ec, size: 145 bytes, params: 2, frame: 21
|
||||
const items2 = [a0];
|
||||
const current = env0_0.current;
|
||||
items2[1] = <Pressable pointerEvents={current != null && current.isFocused() ? 'none' : 'auto'} onPress={env0_2} style={env0_3} />;
|
||||
return (
|
||||
<View style={{'flexBasis': 0, 'flexGrow': 1}}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 6991; source: design/components/Input/native/useInputAttachments.native.tsx; dependencies: [57, 31, 27, 33, 6817, 4573, 1357, 6992, 2] */
|
||||
function _fun55400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:6, offset: 0x013a59e7, size: 242 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = estimateAttachmentWidth;
|
||||
const closure2 = renderInputAttachment;
|
||||
const closure3 = InputAttachmentContainer;
|
||||
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 value = require(27) /* metro dependency 27 */;
|
||||
value.Platform;
|
||||
const env0_5 = value.Pressable;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/useInputAttachments.native.tsx');
|
||||
exports.estimateAttachmentWidth = closure;
|
||||
exports.renderInputAttachment = closure2;
|
||||
exports.InputAttachmentContainer = closure3;
|
||||
exports.useInputAttachments = useInputAttachments;
|
||||
}
|
||||
|
||||
function estimateAttachmentWidth(a0, a1) { // fn#55401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:176, offset: 0x013a5ad9, size: 60 bytes, params: 3, frame: 12
|
||||
return a0 != null ? (require(6817) /* metro dependency 6817: IconSize */).ICON_SIZE.xs + a1 : 0;
|
||||
}
|
||||
|
||||
function renderInputAttachment(a0, a1, a2) { // fn#55402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:254, offset: 0x013a5b15, size: 117 bytes, params: 4, frame: 17
|
||||
const value = null;
|
||||
if (value != a0) {
|
||||
return ((Component) => <Component size="xs" color="input-icon-default" />)(a0);
|
||||
} else if (value != a1) {
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text variant="text-md/normal" style={a2}>
|
||||
{a1}
|
||||
</Text>
|
||||
);
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
function InputAttachmentContainer({content, style, setWidth, pressableProps}) { // fn#55403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:426, offset: 0x013a5b8a, size: 176 bytes, params: 2, frame: 18
|
||||
const value = null;
|
||||
return value == content ? value : value != pressableProps ? <Pressable role="button" {...pressableProps} {...{['style']: InputAttachmentContainerStyle}} {...{['onLayout']: function(a0) {
|
||||
return setWidth(a0.nativeEvent.layout.width);
|
||||
}}}>{content}</Pressable> : <View style={style} onLayout={onLayout_55406}>{content}</View>;
|
||||
}
|
||||
|
||||
function useInputAttachments(a0, a1) { // fn#55407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:1031, offset: 0x013a5ca3, size: 551 bytes, params: 3, frame: 30
|
||||
var object2;
|
||||
const value2 = undefined;
|
||||
const value3 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('useInputAttachments');
|
||||
const inputFieldContainerNativeModule = require(6992) /* metro dependency 6992: InputFieldContainerNative */;
|
||||
const useInputStyles = inputFieldContainerNativeModule.useInputStyles;
|
||||
let leadingIcon = a0.leadingIcon;
|
||||
const value4 = Reflect.apply(useInputStyles, inputFieldContainerNativeModule, [{size: a0.size,
|
||||
hasLeadingIcon: leadingIcon != null, isRefreshEnabled: value3}]);
|
||||
leadingIcon = a0.leadingIcon;
|
||||
const leadingText = a0.leadingText;
|
||||
const leadingPressableProps2 = a0.leadingPressableProps;
|
||||
const trailingIcon = a0.trailingIcon;
|
||||
const trailingText = a0.trailingText;
|
||||
const trailingPressableProps2 = a0.trailingPressableProps;
|
||||
const r19 = (a1 == null ? value2 : a1.leading) ?? renderInputAttachment(leadingIcon, leadingText, value4.text);
|
||||
const r14 = (a1 == null ? value2 : a1.trailing) ?? renderInputAttachment(trailingIcon, trailingText, value4.text);
|
||||
const r16 = leadingIcon != null ? value4.leadingIcon : (a1 == null ? value2 : a1.leading) == null ? value4.leadingText : value4.leadingIcon;
|
||||
const r9 = trailingIcon != null ? value4.trailingIcon : (a1 == null ? value2 : a1.trailing) == null ? value4.trailingText : value4.trailingIcon;
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value7 = Reflect.apply(useState, binding, [_fun55408]);
|
||||
const binding2 = env0_3;
|
||||
const value8 = binding2(value7, 2);
|
||||
const property = value8[0];
|
||||
const property2 = value8[1];
|
||||
useState = binding.useState;
|
||||
const value9 = binding2(Reflect.apply(useState, binding, [_fun55409]), 2);
|
||||
const property3 = value9[0];
|
||||
const property4 = value9[1];
|
||||
object2 = {};
|
||||
object2.leading = <InputAttachmentContainer content={r19} setWidth={property2} pressableProps={(a1 == null ? value2 : a1.leadingPressableProps) ?? leadingPressableProps2} style={r16} />;
|
||||
object2.trailing = <InputAttachmentContainer content={r14} setWidth={property4} pressableProps={(a1 == null ? value2 : a1.trailingPressableProps) ?? trailingPressableProps2} style={r9} />;
|
||||
object2.inputStyle = {marginStart: property === 0 ? value2 : property - value4.padding.paddingHorizontal,
|
||||
marginEnd: property3 === 0 ? value2 : property3 - value4.padding.paddingHorizontal};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function InputAttachmentContainerStyle({pressed}) { // fn#55404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:579, owner: InputAttachmentContainer.style, offset: 0x013a5c3a, size: 69 bytes, params: 2, frame: 4
|
||||
return [style, {pointerEvents: 'auto'}, pressed ? {opacity: 0.2} : undefined];
|
||||
}
|
||||
|
||||
function _fun55408() { // fn#55408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:1631, offset: 0x013a5eca, size: 56 bytes, params: 1, frame: 13
|
||||
const estimateAttachmentWidthBinding = estimateAttachmentWidth;
|
||||
const leadingIconBinding = leadingIcon;
|
||||
const binding = env0_0;
|
||||
return estimateAttachmentWidthBinding(leadingIconBinding,
|
||||
binding.leadingIcon.paddingStart + binding.leadingIcon.paddingEnd);
|
||||
}
|
||||
|
||||
function _fun55409() { // fn#55409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7169:1753, offset: 0x013a5f02, size: 56 bytes, params: 1, frame: 13
|
||||
const estimateAttachmentWidthBinding = estimateAttachmentWidth;
|
||||
const trailingIconBinding = trailingIcon;
|
||||
const binding = env0_0;
|
||||
return estimateAttachmentWidthBinding(trailingIconBinding,
|
||||
binding.trailingIcon.paddingStart + binding.trailingIcon.paddingEnd);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 6987; source: design/components/Input/native/useInputClearButton.native.tsx; dependencies: [31, 27, 33, 1244, 6988, 2] */
|
||||
function _fun55393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7165:6, offset: 0x013a56b3, size: 166 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = useInputClearButtonConfig;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).Pressable;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Input/native/useInputClearButton.native.tsx');
|
||||
exports.useInputClearButton = useInputClearButton;
|
||||
exports.useInputClearButtonConfig = closure;
|
||||
}
|
||||
|
||||
function useInputClearButtonConfig({isClearable, fieldLabel}, a1) { // fn#55394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7165:138, offset: 0x013a5759, size: 273 bytes, params: 3, frame: 18
|
||||
var r3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var object2;
|
||||
if (isClearable) {
|
||||
if (a1.hasValue) {
|
||||
r3 = fieldLabel == null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VkKicb) : fieldLabel !== '' ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['7/UFPj'],
|
||||
|
||||
|
||||
{fieldName: fieldLabel}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VkKicb);
|
||||
object2 = {};
|
||||
object2.content = ((CircleXIcon) => <CircleXIcon size="xs" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon);
|
||||
object2.pressableProps = {onPress: a1.clear, accessibilityLabel: r3, accessibilityRole: 'button',
|
||||
hitSlop: 4};
|
||||
return object2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function useInputClearButton(a0, a1) { // fn#55395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7165:619, offset: 0x013a586a, size: 75 bytes, params: 3, frame: 16
|
||||
const value2 = useInputClearButtonConfig(a0, a1);
|
||||
const value3 = null;
|
||||
return value3 != value2 ? <Pressable {...value2.pressableProps}>{value2.content}</Pressable> : value3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user