1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7012],{7012:function(e,t,n){window.enableVoiceRecognition=async function(e,t,o,i){var r;let a=(await Promise.resolve().then(n.bind(n,9715))).default,c=(await n.e(7815).then(n.bind(n,7815))).default;window.jQuery=n(5943),window.$=window.jQuery,function(n){n(document).ready(function(){var r=!0,s=window.chrome,l=window.navigator,u=l.vendor,d=void 0!==window.opr,g=l.userAgent.indexOf("Edg")>-1;null!=s&&"Google Inc."===u&&!1===d&&!1===g||(e({label:"Voice Typing",disabled:!0,icon:c}),o(!1),t("no-support")),void 0!=window.navigator.brave&&"isBrave"==window.navigator.brave.isBrave.name&&(e({label:"Voice Typing",disabled:!0,icon:c}),o(!1),t("no-support"));try{var v=new webkitSpeechRecognition}catch(e){var v=Object}var f=!1;v.continuous=!1,v.interimResults=!0,v.lang=i;var h="",p=n("#input-field"),b="input-field";function w(e){e.preventDefault()}n("#voice-type--button").click(function(){if(f){v.stop(),f=!1,n("#voice-type--button").removeClass("bg-red-400").addClass("bg-primary"),p.unbind("keydown",w);return}f=!0,e({label:"End Listening",disabled:!1,bgColor:"var(--opq-orange-20)"}),o(!0),p.focus(),p.keydown(w),v.start()}),v.onerror=function(n){"not-allowed"==n.error&&(r=!1,e({label:"Voice Typing",disabled:!0,icon:c}),o(!1),t("no-permission"))},v.onresult=function(e){!function(e){var t=p.getCursorPosition()-h.length,n=["ൻറ","ൻറാ","ൻറി","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ","ൻറàµ"],o=["à´¨àµà´±","à´¨àµà´±à´¾","à´¨àµà´±à´¿","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ","à´¨àµà´±àµ"];p.val(p.val().replace(h,"")),h="",p.setCursorPosition(t);for(var i=e.resultIndex;i<e.results.length;++i)if(e.results[i].isFinal){for(var r=e.results[i][0].transcript+" ",i=0;i<n.length;i++)r=r.replace(RegExp(n[i],"g"),o[i]);insertAtCaret(b,r)}else isFinished=!1,insertAtCaret(b,e.results[i][0].transcript+"â"),h+=e.results[i][0].transcript+"â"}(e)},v.onend=function(){r&&e({label:"Voice Typing",icon:a,disabled:!1,bgColor:"var(--clr-white)"}),o(!1),f=!1,p.unbind("keydown",w)}})}(jQuery),r=jQuery,insertAtCaret=function(e,t){var n=document.getElementById(e),o=n.scrollTop,i=0,r=n.selectionStart||"0"==n.selectionStart?"ff":!!document.selection&&"ie";if("ie"==r){n.focus();var a=document.selection.createRange();a.moveStart("character",-n.value.length),i=a.text.length}else"ff"==r&&(i=n.selectionStart);var c=n.value.substring(0,i),s=n.value.substring(i,n.value.length);n.value=c+t+s,i+=t.length,"ie"==r?(n.focus(),(a=document.selection.createRange()).moveStart("character",-n.value.length),a.moveStart("character",i),a.moveEnd("character",0),a.select()):"ff"==r&&(n.selectionStart=i,n.selectionEnd=i,n.focus()),n.scrollTop=o},r.fn.getCursorPosition=function(){var e=r(this).get(0),t=0;if("selectionStart"in e)t=e.selectionStart;else if("selection"in document){e.focus();var n=document.selection.createRange(),o=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t=n.text.length-o}return t},r.fn.setCursorPosition=function(e){if(r(this).get(0).setSelectionRange)r(this).get(0).setSelectionRange(e,e);else if(r(this).get(0).createTextRange){var t=r(this).get(0).createTextRange();t.collapse(!0),t.moveEnd("character",e),t.moveStart("character",e),t.select()}}}}}]); 2//# sourceMappingURL=7012.2f6d30983fe31f77.js.map
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.