1import{u as w}from"./HvrdWXTy.js";import{d as y,r as b,w as _,Q as k,e as n,f as t,A as C,L as B,G as F,F as M,x as K,g as L,h as S,i as l,t as q}from"./mnP6rLnQ.js";const A={class:"flex flex-col gap-5 sm:gap-7"},N={class:"flex w-full items-center"},V={key:0,class:"flex flex-1 gap-2 sm:gap-3 flex-wrap"},D=["onClick"],E=y({__name:"LiveSearch",props:{search:{},hiddeKeyWords:{type:Boolean}},async setup(d){let s,i;const{hiddeKeyWords:p,search:c}=d,e=b("");c&&(e.value=c);const{livePostsTagsNew:h}=w(),{data:m}=([s,i]=_(()=>h()),s=await s,i(),s),f=m.value,x=k(),u=(r=!1)=>{x.push({path:"/live",query:{q:e.value,t:r}}),e.value=""},v=r=>{e.value=r,u(!0)};return(r,o)=>(l(),n("div",A,[t("form",{onSubmit:F(u,["prevent"])},[t("div",N,[C(t("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a),placeholder:"Kerko...",class:"pt-search-input flex flex-1 bg-white text-sm text-gray-400 border-0 outline-0 px-2 py-1 font-book"},null,512),[[B,e.value]]),o[1]||(o[1]=t("button",{type:"submit","aria-label":"searchButton",class:"bg-white hover:bg-gray-100 w-7 h-7 flex items-center justify-center"},[t("svg",{width:"14",height:"14",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M6.6283 7.0949L10.0005 10.5283M7.33526 4.26541C7.33526 6.08422 5.94548 7.55865 4.2311 7.55865C2.51673 7.55865 1.12695 6.08422 1.12695 4.26541C1.12695 2.4466 2.51673 0.972168 4.2311 0.972168C5.94548 0.972168 7.33526 2.4466 7.33526 4.26541Z",stroke:"#9F9F9F","stroke-width":"0.876573","stroke-linecap":"round"})])],-1))])],32),p?S("",!0):(l(),n("div",V,[(l(!0),n(M,null,K(L(f).slice(0,12),(a,g)=>(l(),n("div",{class:"border border-gray-300 px-2 uppercase text-sm sm:text-sm text-black-100 dark:text-gray-100 font-franklinMedium bg-white cursor-pointer hover:border-red-20 hover:bg-gray-50",key:g,onClick:T=>v(a.slug)}," #"+q(a.name),9,D))),128))]))]))}});export{E as _};
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.