/* Metro module 14220; source: modules/mfa/native/components/ClipboardCopyInput.tsx; dependencies: [5, 31, 27, 7030, 661, 33, 4501, 566, 8994, 5459, 6797, 7981, 2] */ function _fun107527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:6, offset: 0x022ffaad, size: 264 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importAll(31) /* metro dependency 31 */; const env0_5 = (require(27) /* metro dependency 27 */).View; const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */; const env0_7 = (require(661) /* metro dependency 661: Constants */).AppStates; const env0_8 = (require(33) /* metro dependency 33 */).jsx; const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({inputContainer: {'flexDirection': 'column', 'alignSelf': 'stretch'}}); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mfa/native/components/ClipboardCopyInput.tsx'); exports.default = ClipboardCopyInput; } function ClipboardCopyInput({label, placeholder, isValidClipboardCode, maxLength, onChangeCode, error, textContentType, autoComplete, keyboardType, isDisabled, autoFocus}) { // fn#107528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:358, offset: 0x022ffbb5, size: 403 bytes, params: 2, frame: 32 autoFocus = autoFocus === undefined || autoFocus; const styles = useStyles(); const binding = env0_4; let env0_0 = binding.useRef(null); const value2 = binding.useRef(null); binding.useEffect(function() { var env0_0 = _fun107531; if (state === AppStates.ACTIVE) { _fun107536(); } }, [(require(566) /* metro dependency 566: flux */).useStateFromStores([AppStateStore], function() { return AppStateStore.getState(); }), (importDefault(8994) /* metro dependency 8994: useStableCallback */)(isValidClipboardCode), (importDefault(8994) /* metro dependency 8994: useStableCallback */)(onChangeCode)]); const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput; return ( ); } function _fun107530() { // fn#107530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:688, offset: 0x022ffd48, size: 54 bytes, params: 1, frame: 10 const stateBinding = state; const ACTIVE = AppStates.ACTIVE; if (stateBinding === ACTIVE) { (function() { return _run.apply(this, arguments); })(); } } function _run() { // fn#107531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:693, offset: 0x022ffd7e, size: 53 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__.__proto__; return env2_3(_fun107533).apply(this, arguments); } function* _fun107533() { // fn#107533, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:724, offset: 0x022ffdbe, size: 240 bytes, params: 1, frame: 16 var environment; if (true) { var Promise = global.Promise; var promise = new Promise(function(a0) { return (0, global.setTimeout)(a0, 500); }); yield promise; if (false) { return undefined; } Promise = global.Promise; promise = new Promise(_fun107535); yield promise; if (false) { return undefined; } promise = environment.__proto__.__proto__.__proto__.__proto__; promise = env4_0(env4_2[10]); var getString = promise.getString; yield Reflect.apply(getString, promise, []); if (false) { return undefined; } promise = promise.trim(); var current = require.current; if (promise !== current) { require.current = promise; if (env3_3(promise)) { current = importDefault.current; if (current != null) { current.setText(promise); } } } } } function _fun107535(a0) { // fn#107535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14417:803, offset: 0x022ffec9, size: 41 bytes, params: 2, frame: 11 const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; return env5_0(env5_2[9]).runAfterInteractions(a0); }