70 lines
4.0 KiB
TypeScript
70 lines
4.0 KiB
TypeScript
/* Metro module 8997; source: design/components/SplitTextInput/native/SplitTextField.native.tsx; dependencies: [31, 27, 33, 6992, 6986, 6987, 6991, 6994, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
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 UseTextFieldNativeModule from '../../TextField/native/useTextField.native.tsx'; /* Metro dependency 6986 */
|
|
import * as UseInputClearButtonNativeModule from '../../Input/native/useInputClearButton.native.tsx'; /* Metro dependency 6987 */
|
|
import * as InputFieldContainerNativeModule from '../../Input/native/InputFieldContainer.native.tsx'; /* Metro dependency 6992 */
|
|
import * as BaseTextFieldNativeModule from '../../TextField/native/BaseTextField.native.tsx'; /* Metro dependency 6994 */
|
|
|
|
function _fun70052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9182:6, offset: 0x01cec3d1, size: 173 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
value = value.forwardRef(_fun70053);
|
|
(FileImportTrackerModule).fileFinishedImporting('design/components/SplitTextInput/native/SplitTextField.native.tsx');
|
|
exports.SplitTextField = value;
|
|
function _fun70053(a0, a1) { // fn#70053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9182:169, offset: 0x01cec47e, size: 454 bytes, params: 3, frame: 27
|
|
var r7;
|
|
var moduleValue5;
|
|
const value2 = undefined;
|
|
const value3 = (InputFieldContainerNativeModule).useInputStyles({size: a0.size,
|
|
isRound: a0.isRound});
|
|
const value4 = (UseTextFieldNativeModule).useTextField(a0, a1);
|
|
const innerRef = value4.innerRef;
|
|
const inputProps = value4.inputProps;
|
|
const value5 = (UseInputClearButtonNativeModule).useInputClearButtonConfig(a0,
|
|
value4.state);
|
|
const value6 = null;
|
|
const {trailing,
|
|
inputStyle} = (require(6991) /* metro dependency 6991: useInputAttachmentsNative */).useInputAttachments(a0,
|
|
value6 != value5 ? {trailing: value5.content, trailingPressableProps: value5.pressableProps} : value2);
|
|
if (value6 != a0.leadingText) {
|
|
if (a0.leadingText.length > 0) {
|
|
var viewBindingProps = {style: value3.splitBorder};
|
|
var pressableBindingProps = {style: function(a0) {
|
|
return [a0.pressed ? {opacity: 0.2} : undefined];
|
|
}, ...a0.leadingPressableProps};
|
|
moduleValue5 = require(6991) /* metro dependency 6991: useInputAttachmentsNative */;
|
|
r7 = (
|
|
<View {...viewBindingProps}>
|
|
<Pressable {...pressableBindingProps}>
|
|
{moduleValue5.renderInputAttachment(value2, a0.leadingText, value3.text)}
|
|
</Pressable>
|
|
</View>
|
|
);
|
|
} else {
|
|
r7 = value6;
|
|
}
|
|
} else {
|
|
r7 = value6;
|
|
}
|
|
const BaseTextField = (BaseTextFieldNativeModule).BaseTextField;
|
|
return (
|
|
<BaseTextField
|
|
{...inputProps}
|
|
{...{['ref']: innerRef}}
|
|
{...{['leading']: r7}}
|
|
{...{['trailing']: trailing}}
|
|
{...{['inputStyle']: inputStyle}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun70052, 8997, [31, 27, 33, 6992, 6986, 6987, 6991, 6994,
|
|
2]) /* metro module 8997, dependencies: [31, 27, 33, 6992, 6986, 6987, 6991, 6994, 2] */;
|