1window.Eurus.loadedScript.includes("speech-search.js")||(window.Eurus.loadedScript.push("speech-search.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xSpeechSearch",el=>({recognition:null,isListening:!1,searchInput:null,searchBtn:null,show:!1,initSpeechSearch(){const userAgent=window.navigator.userAgent.toLowerCase();if("webkitSpeechRecognition"in window&&userAgent.indexOf("chrome")>-1&&window.chrome&&userAgent.indexOf("edg/")===-1){this.show=!0,this.recognition=new window.webkitSpeechRecognition,this.recognition.continuous=!1,this.recognition.interimResults=!0;const form=el.closest("form");this.searchInput=form.querySelector(".input-search"),this.searchBtn=form.querySelector(".btn-search"),this.bindEvents()}else this.show=!1},bindEvents(){this.recognition.addEventListener("result",evt=>{if(evt.results){const term=evt.results[0][0].transcript;this.searchInput.value=term,this.searchInput.dispatchEvent(new Event("keyup")),el.blur(),this.searchBtn.focus()}}),this.recognition.addEventListener("audiostart",()=>{this.isListening=!0,el.classList.add("search__speech-listening")}),this.recognition.addEventListener("audioend",()=>{this.isListening=!1,el.classList.remove("search__speech-listening")}),el.addEventListener("click",e=>this.toggleListen(e))},toggleListen(evt){evt.preventDefault(),this.isListening?this.recognition.stop():this.recognition.start()}}))})})); 2//# sourceMappingURL=/cdn/shop/t/15/assets/speech-search.js.map?v=127516146847471927381790235158
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.