Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/04/e9601db32d0e849558666359d10f185f0900523bf86f2b19ed237a1d17319fdb7eb761
T
2025-10-24 02:40:54 +00:00

1 line
5.5 KiB
Plaintext

{"dependencies":[{"name":"@babel/runtime/helpers/interopRequireDefault","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"kslwqCIsh6ew+I1KeA1rlVRjsAk=","exportNames":["*"]}},{"name":"../../exports/UIManager","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":11,"column":0,"index":235},"end":{"line":11,"column":48,"index":283}}],"key":"T/vWYjlvrKciCNPz1Vnh/vAWL08=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n var _interopRequireDefault = require(_dependencyMap[0], \"@babel/runtime/helpers/interopRequireDefault\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = void 0;\n var _UIManager = _interopRequireDefault(require(_dependencyMap[1], \"../../exports/UIManager\"));\n /**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n /**\n * This class is responsible for coordinating the \"focused\"\n * state for TextInputs. All calls relating to the keyboard\n * should be funneled through here\n */\n var TextInputState = {\n /**\n * Internal state\n */\n _currentlyFocusedNode: null,\n /**\n * Returns the ID of the currently focused text field, if one exists\n * If no text field is focused it returns null\n */\n currentlyFocusedField() {\n if (document.activeElement !== this._currentlyFocusedNode) {\n this._currentlyFocusedNode = null;\n }\n return this._currentlyFocusedNode;\n },\n /**\n * @param {Object} TextInputID id of the text field to focus\n * Focuses the specified text field\n * noop if the text field was already focused\n */\n focusTextInput(textFieldNode) {\n if (textFieldNode !== null) {\n this._currentlyFocusedNode = textFieldNode;\n if (document.activeElement !== textFieldNode) {\n _UIManager.default.focus(textFieldNode);\n }\n }\n },\n /**\n * @param {Object} textFieldNode id of the text field to focus\n * Unfocuses the specified text field\n * noop if it wasn't focused\n */\n blurTextInput(textFieldNode) {\n if (textFieldNode !== null) {\n this._currentlyFocusedNode = null;\n if (document.activeElement === textFieldNode) {\n _UIManager.default.blur(textFieldNode);\n }\n }\n }\n };\n var _default = exports.default = TextInputState;\n});","lineCount":66,"map":[[7,2,11,0],[7,6,11,0,"_UIManager"],[7,16,11,0],[7,19,11,0,"_interopRequireDefault"],[7,41,11,0],[7,42,11,0,"require"],[7,49,11,0],[7,50,11,0,"_dependencyMap"],[7,64,11,0],[8,2,1,0],[9,0,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[18,2,13,0],[19,0,14,0],[20,0,15,0],[21,0,16,0],[22,0,17,0],[23,2,18,0],[23,6,18,4,"TextInputState"],[23,20,18,18],[23,23,18,21],[24,4,19,2],[25,0,20,0],[26,0,21,0],[27,4,22,2,"_currentlyFocusedNode"],[27,25,22,23],[27,27,22,25],[27,31,22,29],[28,4,23,2],[29,0,24,0],[30,0,25,0],[31,0,26,0],[32,4,27,2,"currentlyFocusedField"],[32,25,27,23,"currentlyFocusedField"],[32,26,27,23],[32,28,27,26],[33,6,28,4],[33,10,28,8,"document"],[33,18,28,16],[33,19,28,17,"activeElement"],[33,32,28,30],[33,37,28,35],[33,41,28,39],[33,42,28,40,"_currentlyFocusedNode"],[33,63,28,61],[33,65,28,63],[34,8,29,6],[34,12,29,10],[34,13,29,11,"_currentlyFocusedNode"],[34,34,29,32],[34,37,29,35],[34,41,29,39],[35,6,30,4],[36,6,31,4],[36,13,31,11],[36,17,31,15],[36,18,31,16,"_currentlyFocusedNode"],[36,39,31,37],[37,4,32,2],[37,5,32,3],[38,4,33,2],[39,0,34,0],[40,0,35,0],[41,0,36,0],[42,0,37,0],[43,4,38,2,"focusTextInput"],[43,18,38,16,"focusTextInput"],[43,19,38,17,"textFieldNode"],[43,32,38,30],[43,34,38,32],[44,6,39,4],[44,10,39,8,"textFieldNode"],[44,23,39,21],[44,28,39,26],[44,32,39,30],[44,34,39,32],[45,8,40,6],[45,12,40,10],[45,13,40,11,"_currentlyFocusedNode"],[45,34,40,32],[45,37,40,35,"textFieldNode"],[45,50,40,48],[46,8,41,6],[46,12,41,10,"document"],[46,20,41,18],[46,21,41,19,"activeElement"],[46,34,41,32],[46,39,41,37,"textFieldNode"],[46,52,41,50],[46,54,41,52],[47,10,42,8,"UIManager"],[47,28,42,17],[47,29,42,18,"focus"],[47,34,42,23],[47,35,42,24,"textFieldNode"],[47,48,42,37],[47,49,42,38],[48,8,43,6],[49,6,44,4],[50,4,45,2],[50,5,45,3],[51,4,46,2],[52,0,47,0],[53,0,48,0],[54,0,49,0],[55,0,50,0],[56,4,51,2,"blurTextInput"],[56,17,51,15,"blurTextInput"],[56,18,51,16,"textFieldNode"],[56,31,51,29],[56,33,51,31],[57,6,52,4],[57,10,52,8,"textFieldNode"],[57,23,52,21],[57,28,52,26],[57,32,52,30],[57,34,52,32],[58,8,53,6],[58,12,53,10],[58,13,53,11,"_currentlyFocusedNode"],[58,34,53,32],[58,37,53,35],[58,41,53,39],[59,8,54,6],[59,12,54,10,"document"],[59,20,54,18],[59,21,54,19,"activeElement"],[59,34,54,32],[59,39,54,37,"textFieldNode"],[59,52,54,50],[59,54,54,52],[60,10,55,8,"UIManager"],[60,28,55,17],[60,29,55,18,"blur"],[60,33,55,22],[60,34,55,23,"textFieldNode"],[60,47,55,36],[60,48,55,37],[61,8,56,6],[62,6,57,4],[63,4,58,2],[64,2,59,0],[64,3,59,1],[65,2,59,2],[65,6,59,2,"_default"],[65,14,59,2],[65,17,59,2,"exports"],[65,24,59,2],[65,25,59,2,"default"],[65,32,59,2],[65,35,60,15,"TextInputState"],[65,49,60,29],[66,0,60,29],[66,3]],"functionMap":{"names":["<global>","TextInputState.currentlyFocusedField","TextInputState.focusTextInput","TextInputState.blurTextInput"],"mappings":"AAA;EC0B;GDK;EEM;GFO;EGM;GHO"}},"type":"js/module"}]}