mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
2.5 KiB
Plaintext
1 line
2.5 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = isSelectionValid;\n /**\n * Copyright (c) Nicolas Gallagher\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 function isSelectionValid() {\n var selection = window.getSelection();\n var string = selection.toString();\n var anchorNode = selection.anchorNode;\n var focusNode = selection.focusNode;\n var isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n return string.length >= 1 && string !== '\\n' && isTextNode;\n }\n});","lineCount":23,"map":[[6,2,1,0],[7,0,2,0],[8,0,3,0],[9,0,4,0],[10,0,5,0],[11,0,6,0],[12,0,7,0],[13,0,8,0],[15,2,10,15],[15,11,10,24,"isSelectionValid"],[15,27,10,40,"isSelectionValid"],[15,28,10,40],[15,30,10,43],[16,4,11,2],[16,8,11,6,"selection"],[16,17,11,15],[16,20,11,18,"window"],[16,26,11,24],[16,27,11,25,"getSelection"],[16,39,11,37],[16,40,11,38],[16,41,11,39],[17,4,12,2],[17,8,12,6,"string"],[17,14,12,12],[17,17,12,15,"selection"],[17,26,12,24],[17,27,12,25,"toString"],[17,35,12,33],[17,36,12,34],[17,37,12,35],[18,4,13,2],[18,8,13,6,"anchorNode"],[18,18,13,16],[18,21,13,19,"selection"],[18,30,13,28],[18,31,13,29,"anchorNode"],[18,41,13,39],[19,4,14,2],[19,8,14,6,"focusNode"],[19,17,14,15],[19,20,14,18,"selection"],[19,29,14,27],[19,30,14,28,"focusNode"],[19,39,14,37],[20,4,15,2],[20,8,15,6,"isTextNode"],[20,18,15,16],[20,21,15,19,"anchorNode"],[20,31,15,29],[20,35,15,33,"anchorNode"],[20,45,15,43],[20,46,15,44,"nodeType"],[20,54,15,52],[20,59,15,57,"window"],[20,65,15,63],[20,66,15,64,"Node"],[20,70,15,68],[20,71,15,69,"TEXT_NODE"],[20,80,15,78],[20,84,15,82,"focusNode"],[20,93,15,91],[20,97,15,95,"focusNode"],[20,106,15,104],[20,107,15,105,"nodeType"],[20,115,15,113],[20,120,15,118,"window"],[20,126,15,124],[20,127,15,125,"Node"],[20,131,15,129],[20,132,15,130,"TEXT_NODE"],[20,141,15,139],[21,4,16,2],[21,11,16,9,"string"],[21,17,16,15],[21,18,16,16,"length"],[21,24,16,22],[21,28,16,26],[21,29,16,27],[21,33,16,31,"string"],[21,39,16,37],[21,44,16,42],[21,48,16,46],[21,52,16,50,"isTextNode"],[21,62,16,60],[22,2,17,0],[23,0,17,1],[23,3]],"functionMap":{"names":["<global>","isSelectionValid"],"mappings":"AAA;eCS"}},"type":"js/module"}]} |