1import{d as h,ae as f,m as y,b as a,ah as x,cv as C,cr as k,H as q,p as B,r as T,e as S,o as i,f as r,a as M,c as p,g as b,i as m,_ as w}from"./index-CqeTTiYG.js";import{s as F}from"./task-search-DMXG1DJg.js";import{P as L}from"./PromotionSlot-CfyNzVRJ.js";import{_ as N}from"./Empty-D-Tphzle.js";import"./paid-tracking-Bl2FGv6p.js";import"./light-Bdmf2ZXp.js";import"./use-locale-DbkVVvFx.js";import"./enUS-DqAa7fDn.js";const P={class:"main-container search-result-page"},V={class:"result-hero"},$={class:"result-subtitle"},z={class:"query-word"},D=h({__name:"index",setup(E){const o=f(),t=y(""),n=a(()=>x(o.path)),l=a(()=>C(n.value).map(e=>k(e,n.value))),d=a(()=>new Map(l.value.map(e=>[e.slug,e]))),_=e=>({slug:e.slug,title:e.name,subtitle:e.description,avatar:e.icon,link:e.url,path:`/tool/${e.slug}`,recommendation:e.recommended,isFree:e.isFree,pricing:e.pricing,pricingModel:e.pricingModel,supportsChinese:e.supportsChinese,commercial:e.commercial}),c=a(()=>{const e=t.value.trim();return e?F(l.value,e,15,{},n.value).map(s=>d.value.get(s.slug)).filter(s=>!!s).map(_):[]}),u=e=>{t.value=String(e??"").trim()};return q(()=>u(o.query.q)),B(()=>o.query.q,u),(e,s)=>{const v=T("Card"),g=N;return i(),S("div",P,[r("div",V,[s[0]||(s[0]=r("h1",{class:"result-title"},"æç´¢ç»æ",-1)),r("p",$,[r("span",z,m(t.value||"æªè¾å
¥å
³é®è¯"),1),b(" å
±å¹é
"+m(c.value.length)+" 个工å
· ",1)])]),M(L,{placement:"search-featured"}),c.value.length>0?(i(),p(v,{key:0,cardList:c.value,title:"ç¸å
³å·¥å
·æ¨è"},null,8,["cardList"])):(i(),p(g,{key:1,class:"no-results",description:`æ²¡ææ¾å°ä¸â${t.value}âç¸å
³çå·¥å
·`},null,8,["description"]))])}}}),K=w(D,[["__scopeId","data-v-70e287fd"]]);export{K 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.