66 lines
4.3 KiB
TypeScript
66 lines
4.3 KiB
TypeScript
/* Metro module 12802; source: design/components/TextInput/native/GhostInput.native.tsx; dependencies: [31, 33, 4501, 4573, 697, 6992, 6986, 7682, 6995, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateStylesModule from '../../Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TextModule from '../../Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as UseTextFieldNativeModule from '../../TextField/native/useTextField.native.tsx'; /* Metro dependency 6986 */
|
|
import * as InputFieldContainerNativeModule from '../../Input/native/InputFieldContainer.native.tsx'; /* Metro dependency 6992 */
|
|
import * as NativeTextInputNativeModule from '../../Input/native/NativeTextInput.native.tsx'; /* Metro dependency 6995 */
|
|
import * as InputNativeModule from '../../Input/native/Input.native.tsx'; /* Metro dependency 7682 */
|
|
|
|
function _fun97661(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:6, offset: 0x0218c54a, size: 171 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const env0_4 = (CreateStylesModule).createStyles(_fun97662);
|
|
(FileImportTrackerModule).fileFinishedImporting('design/components/TextInput/native/GhostInput.native.tsx');
|
|
exports.GhostInput = GhostInput;
|
|
function _fun97662() { // fn#97662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:142, offset: 0x0218c5f5, size: 224 bytes, params: 1, frame: 20
|
|
const value = a0;
|
|
const value2 = a1;
|
|
const r6 = value !== undefined ? value : 'lg';
|
|
const r4 = value2 !== undefined ? value2 : 'default';
|
|
const object2 = {};
|
|
const TextStyleSheet = (TextModule).TextStyleSheet;
|
|
const property = TextStyleSheet['text-md/semibold'];
|
|
copyDataProperties(object2, ({md: property, lg: TextStyleSheet['text-lg/semibold']})[r6], property);
|
|
object2['color'] = r4 === 'error' ? (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
|
object2['minWidth'] = 48;
|
|
return {input: object2, centeredContainerStyle: {alignItems: 'center'}};
|
|
}
|
|
|
|
function GhostInput(a0) { // fn#97663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:522, offset: 0x0218c6d5, size: 355 bytes, params: 2, frame: 22
|
|
const value2 = undefined;
|
|
const value3 = (InputFieldContainerNativeModule).useInputStyles({size: a0.size});
|
|
const styles = useStyles(a0.size, a0.status);
|
|
const isCentered = a0.isCentered;
|
|
const r12 = value2 === isCentered || isCentered;
|
|
const autoFocus = a0.autoFocus;
|
|
const r8 = value2 === autoFocus || autoFocus;
|
|
const {innerRef, inputProps} = (UseTextFieldNativeModule).useTextField(a0,
|
|
value2);
|
|
const Input = (InputNativeModule).Input;
|
|
const inputProps2 = {...a0};
|
|
inputProps2['containerStyle'] = [a0.containerStyle, r12 ? styles.centeredContainerStyle : value2];
|
|
const NativeTextInput = (NativeTextInputNativeModule).NativeTextInput;
|
|
return (
|
|
<Input {...inputProps2}>
|
|
<NativeTextInput
|
|
{...inputProps}
|
|
{...{['ref']: innerRef}}
|
|
{...{['style']: [styles.input]}}
|
|
{...{['placeholderTextColor']: value3.placeholderText.color}}
|
|
{...{['spellCheck']: false}}
|
|
{...{['autoFocus']: r8}}
|
|
/>
|
|
</Input>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun97661, 12802, [31, 33, 4501, 4573, 697, 6992, 6986, 7682, 6995,
|
|
2]) /* metro module 12802, dependencies: [31, 33, 4501, 4573, 697, 6992, 6986, 7682, 6995, 2] */;
|