// Module ID: 144 // Function ID: 145 // Name: set // Dependencies: [114, 145] // Module 144 (set) import renderElement from "renderElement" /* 114 */; import Commands2 from "Commands" /* 145 */; require = arg1; const dependencyMap = arg6; let c2 = null; const set = new Set(); arg5.default = { currentlyFocusedInput() { return c2; }, focusInput(current) { let tmp = closure_2 !== current; if (tmp) { tmp = null != current; } if (tmp) { closure_2 = current; } }, blurInput(current) { let tmp = c2 === current; if (tmp) { tmp = null != current; } if (tmp) { c2 = null; } }, currentlyFocusedField() { return renderElement.findNodeHandle(c2); }, focusField(arg0) { }, blurField(arg0) { }, focusTextInput(self) { if (typeof self !== "number") { if (null != self) { if (closure_2 !== self) { const currentProps = self.currentProps; let editable; if (currentProps != null) { editable = currentProps.editable; } if (false !== editable) { if (tmp4) { closure_2 = self; } const Commands = Commands2.Commands; Commands.focus(self); tmp4 = closure_2 !== self && null != self; } } } } }, blurTextInput(result) { let tmp = typeof result !== "number"; if (typeof result !== "number") { tmp = c2 === result; } if (tmp) { tmp = null != result; } if (tmp) { let tmp4 = c2 === result; if (tmp4) { tmp4 = null != result; } if (tmp4) { c2 = null; } const Commands = Commands2.Commands; Commands.blur(result); } }, registerInput(current) { if (typeof current !== "number") { set.add(current); } }, unregisterInput(current) { if (typeof current !== "number") { set.delete(current); } }, isTextInput(result) { let hasItem = typeof result !== "number"; if (typeof result !== "number") { hasItem = set.has(result); } return hasItem; } };