63 lines
1.6 KiB
JavaScript
63 lines
1.6 KiB
JavaScript
// Metro module 144 (f145).
|
|
import { findNodeHandle } from "./Module114";
|
|
import { Commands } from "./Module145";
|
|
let c144_2 = null;
|
|
let c144_3 = new Set();
|
|
export default {
|
|
currentlyFocusedInput: function currentlyFocusedInput() {
|
|
return c144_2;
|
|
},
|
|
focusInput: function focusInput(a0) {
|
|
if (c144_2 !== a0 && a0 != null) {
|
|
c144_2 = a0;
|
|
}
|
|
},
|
|
blurInput: function blurInput(a0) {
|
|
if (c144_2 === a0 && a0 != null) {
|
|
c144_2 = null;
|
|
}
|
|
},
|
|
currentlyFocusedField: function currentlyFocusedField() {
|
|
return findNodeHandle(c144_2);
|
|
},
|
|
focusField: function focusField(a0) {},
|
|
blurField: function blurField(a0) {},
|
|
focusTextInput: function focusTextInput(a0) {
|
|
L12: {
|
|
if (typeof a0 !== "number" && a0 != null) {
|
|
if (c144_2 !== a0) {
|
|
if (a0.currentProps?.editable !== false) {
|
|
if (c144_2 !== a0 && a0 != null) {
|
|
c144_2 = a0;
|
|
}
|
|
Commands.focus(a0);
|
|
break L12;
|
|
}
|
|
}
|
|
return void 0;
|
|
}
|
|
}
|
|
},
|
|
blurTextInput: function blurTextInput(a0) {
|
|
if ((typeof a0 !== "number" ? c144_2 === a0 : typeof a0 !== "number") && a0 != null) {
|
|
if (c144_2 === a0 && a0 != null) {
|
|
c144_2 = null;
|
|
}
|
|
Commands.blur(a0);
|
|
}
|
|
},
|
|
registerInput: function registerInput(a0) {
|
|
if (typeof a0 !== "number") {
|
|
c144_3.add(a0);
|
|
}
|
|
},
|
|
unregisterInput: function unregisterInput(a0) {
|
|
if (typeof a0 !== "number") {
|
|
c144_3.delete(a0);
|
|
}
|
|
},
|
|
isTextInput: function isTextInput(a0) {
|
|
return typeof a0 !== "number" ? c144_3.has(a0) : typeof a0 !== "number";
|
|
}
|
|
};
|