1import{l as $,m as j,c,Y as w,r as A,cv as B,cz as I,cy as V,a2 as g,o as l,a as _,w as q,v as z,q as s,b as S,a3 as P,z as r,e as U,x,cf as D,i as E,G as F,_ as L}from"./C0evU36K.js";const N=["aria-label"],Q=["aria-label","placeholder"],T=["aria-label"],h="search",G=$({__name:"VSearchInput",props:{theme:{type:[Boolean,null]}},setup(d){const p=j(),u=c(()=>{var a;const e=(a=p.query)==null?void 0:a.search,n=Array.isArray(e)?e[0]:e;return decodeURIComponent(n||"")});w(u,e=>o.value=e);const o=A(u.value),i=c(()=>!!o.value),m=()=>o.value=null,f=B(),b=I();function y(){typeof o.value=="string"&&f.push({path:b("search"),query:{[h]:encodeURIComponent(o.value.trim())}})}const v=d,{themeClass:k}=V({props:v}),t=g(),C=c(()=>[t.root,i.value&&t["root--filled"],k.value]);function M(){E("search_start")}return(e,n)=>{const a=F;return l(),_("form",{class:r(s(C)),role:"search","aria-label":e.$t("search_in_website"),action:"",onSubmit:D(y,["prevent"])},[q(S("input",{"onUpdate:modelValue":n[0]||(n[0]=R=>P(o)?o.value=R:null),spellcheck:"false","aria-label":e.$t("search"),class:r(s(t).input),name:h,placeholder:e.$t("search"),minlength:"3",required:"",type:"search",onFocusOnce:M},null,42,Q),[[z,s(o)]]),s(i)?(l(),_("button",{key:0,"aria-label":e.$t("clear_selection"),class:r([s(t).icon,"normalize-button"]),onMousedown:m},[U(a,{name:"close"})],42,T)):(l(),x(a,{key:1,name:"search","aria-hidden":"true",class:r(s(t).icon)},null,8,["class"]))],42,N)}}}),H="_root_3jdeb_48",O="_input_3jdeb_78",Y="_icon_3jdeb_104",J={root:H,"root--theme-light":"_root--theme-light_3jdeb_60","root--theme-dark":"_root--theme-dark_3jdeb_67","root--filled":"_root--filled_3jdeb_74",input:O,icon:Y},K={$style:J},X=L(G,[["__cssModules",K]]);export{X 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.