1import{l as a}from"./index-BU_0VzDK.js";const l=()=>({hasFocus:!1,searchTerm:"",payload:null,init(){const t=this.$el.getAttribute("data-store-id"),e=this.$el.getAttribute("data-uuid");a.FastSimonSDK.initialization({storeID:t,uuid:e,type:"SPA",locale:window.Shopify.locale||document.documentElement.getAttribute("lang"),onReady:()=>{}}),this.$watch("searchTerm",o=>this.handleSearch(o.trim()))},clear(){const t=this.$root.querySelector("input");this.searchTerm="",setTimeout(()=>{this.payload=null,this.hasFocus=!1,t?.blur()},50)},closeMenuDelayFocus(){this.showMobileMenu=!1,setTimeout(()=>{this.$root.querySelector("input")?.focus()},100)},handleSearch(t){if(!t){this.payload=null;return}window.FastSimonSDK?.instantSearch({query:t,callback:e=>{this.payload=e.payload},locale:window.Shopify.locale||document.documentElement.getAttribute("lang")})},submit(){const t=this.$root.getAttribute("data-url"),e=this.searchTerm.trim(),o=window.Shopify.locale||document.documentElement.getAttribute("lang");window.location.href=`${t}?q=${encodeURIComponent(e)}&locale=${o}`}});export{l as default};
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.