vendor: 922 bytes, lines 1-49
1(self["webpackChunktexttoimg_ai"] = self["webpackChunktexttoimg_ai"] || []).push([[9212],{ 2 3/***/ 6426: 4/***/ ((module) => { 5 6 7module.exports = function () { 8 var selection = document.getSelection(); 9 if (!selection.rangeCount) { 10 return function () {}; 11 } 12 var active = document.activeElement; 13 14 var ranges = []; 15 for (var i = 0; i < selection.rangeCount; i++) { 16 ranges.push(selection.getRangeAt(i)); 17 } 18 19 switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML 20 case 'INPUT': 21 case 'TEXTAREA': 22 active.blur(); 23 break; 24 25 default: 26 active = null; 27 break; 28 } 29 30 selection.removeAllRanges(); 31 return function () { 32 selection.type === 'Caret' && 33 selection.removeAllRanges(); 34 35 if (!selection.rangeCount) { 36 ranges.forEach(function(range) { 37 selection.addRange(range); 38 }); 39 } 40 41 active && 42 active.focus(); 43 }; 44}; 45 46 47/***/ }) 48 49}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.