60 lines
3.3 KiB
TypeScript
60 lines
3.3 KiB
TypeScript
/* Metro module 9102; source: design/void/TextInput/native/TextInput.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4002, 477, 4000, 2] */
|
|
function _fun71214(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9287:6, offset: 0x01d19274, size: 327 bytes, params: 8, frame: 23
|
|
var object3;
|
|
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(27) /* metro dependency 27 */).TextInput;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_4 = constantsModule.KeyboardThemes;
|
|
const Fonts = constantsModule.Fonts;
|
|
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
object3 = {};
|
|
const object4 = {'fontSize': 16, 'alignSelf': 'center'};
|
|
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
|
|
object4.fontFamily = PRIMARY_MEDIUM;
|
|
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
|
object4.color = TEXT_DEFAULT;
|
|
object3.input = object4;
|
|
const INPUT_PLACEHOLDER_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_PLACEHOLDER_TEXT_DEFAULT;
|
|
object3.placeholderTextColor = {color: INPUT_PLACEHOLDER_TEXT_DEFAULT};
|
|
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
|
value = value.forwardRef(_fun71215);
|
|
value.displayName = 'VoidTextInput';
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/TextInput/native/TextInput.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _fun71215(a0, a1) { // fn#71215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9287:397, offset: 0x01d193bb, size: 350 bytes, params: 3, frame: 23
|
|
const style = a0.style;
|
|
const value = Object.create(null);
|
|
value.style = 0;
|
|
const value2 = copyDataProperties({}, a0, value, undefined);
|
|
const styles = useStyles();
|
|
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
|
const useThemeContext = sharedModule.useThemeContext;
|
|
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
|
|
const isThemeDark2 = sharedModule.isThemeDark(theme);
|
|
const unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
|
|
const r9 = isThemeDark2 ? unsafe_rawColors.PRIMARY_100 : unsafe_rawColors.PRIMARY_500;
|
|
const items2 = [styles.input, style];
|
|
const r7 = sharedModule.isThemeDark(theme) ? KeyboardThemes.DARK : KeyboardThemes.LIGHT;
|
|
const color = styles.placeholderTextColor.color;
|
|
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
|
return (
|
|
<TextInput
|
|
ref={a1}
|
|
style={items2}
|
|
keyboardAppearance={r7}
|
|
placeholderTextColor={color}
|
|
selectionColor={platformUtilsModule.isAndroid() ? (require(4000) /* metro dependency 4000: ColorUtils */).hexWithOpacity(r9,
|
|
0.5) : r9}
|
|
{...value2}
|
|
/>
|
|
);
|
|
}
|
|
|