PageSourceSearch

https://zeno.fm/_nuxt/QdIq0qIy.js

js zeno.fm collected 2026-09-24 08:36:22 UTC 2,224 bytes, 1 lines download raw bytes

1import{k as z,I as N,J as B,h as L,a as R}from"./BEbVkMZM.js";import{E as I,aU as Q,p as S,w as p,L as c,Y as u,a5 as a,P as T,Q as V,bK as C,u as r,T as m,a6 as $,a7 as h,l as x,aw as D}from"./CdF3t0oV.js";import{v as j}from"./D92X5zYB.js";const E={class:"grid grid-cols-1 gap-8"},M={class:"relative w-full"},O={class:"pointer-events-none absolute inset-y-0 inset-s-0 flex items-center pl-5"},P=["id","placeholder"],U={key:0,class:"pt-2 font-monigue text-3xl uppercase md:text-4xl lg:text-5xl"},W={class:"text-zeno-purple"},F=I({__name:"SearchInput",props:{context:{default:"all"}},setup(_){const{t:y}=z(),g=N(),t=Q(),v=B(),i=x(()=>v(t)),f=L(),b=["index","home"].includes(i.value),s=S(t.query.query||""),w=x(()=>{const e=g.isLessThan("md")?"small":"default";return y(`components.search.${_.context}.${e}`)}),q=()=>{s.value=""},k=j(async e=>{const{query:o,...n}=t.query,l=e?{...n,query:e}:Object.keys(n).length?n:void 0,d=b?{path:"/explore/",query:l}:f({name:i.value,params:t.params,query:l});d&&await D(d,{replace:!0})},500);return p(()=>t.query.query,e=>{!s.value.length&&e&&(s.value=e)}),p(s,e=>{k(e)}),(e,o)=>{const n=R;return c(),u("div",E,[a("div",M,[a("div",O,[T(n,{class:"mr-2 text-gray-400",name:"solar:magnifer-linear",size:"16"})]),V(a("input",{id:r(t).name.startsWith("index")?void 0:"search-input","onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l),placeholder:r(w),class:"w-full rounded-full border border-zeno-gray-border bg-zeno-gray-light p-4 ps-12 pe-6 text-sm placeholder:text-zeno-gray sm:text-base md:text-lg",type:"text"},null,8,P),[[C,s.value]]),s.value?(c(),u("button",{key:0,"aria-label":"Clear search",class:"absolute inset-y-0 inset-e-0 flex items-center pr-5",onClick:q},[...o[1]||(o[1]=[a("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M8 6.586L12.95 1.636 14.364 3.05 9.414 8l4.95 4.95-1.414 1.414L8 9.414l-4.95 4.95L1.636 12.95 6.586 8 1.636 3.05 3.05 1.636 8 6.586z",fill:"#999999"})],-1)])])):m("",!0)]),r(t).query?.query&&!r(t).name.startsWith("index")?(c(),u("h2",U,[$(h(e.$t("components.search.results_for"))+" ",1),a("span",W,h(r(t).query.query),1)])):m("",!0)])}}}),A=Object.assign(F,{__name:"SearchInput"});export{A 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.