PageSourceSearch

https://argo9.com/_app/immutable/nodes/38.CCL-j0IS.js

js argo9.com collected 2026-10-08 10:14:24 UTC 3,911 bytes, 1 lines download raw bytes

1import{$ as e,A as t,B as n,E as r,G as i,K as a,N as o,Q as s,Y as c,Z as l,_t as u,at as d,d as f,et as p,f as m,ft as h,gt as g,j as _,k as v,nt as y,ot as b,pt as x,q as S,tt as C,u as w,x as T}from"../chunks/Bi9yU5aV.js";import"../chunks/xihTtKlq.js";var E=o(`<meta name="description" content="아르고나인 블로그 글을 검색합니다."/> <meta property="og:type" content="website"/> <meta property="og:title" content="검색 | 아르고나인"/> <meta property="og:description" content="아르고나인 블로그 글을 검색합니다."/> <link rel="canonical" href="https://argo9.com/search"/> <meta property="og:url" content="https://argo9.com/search"/>`,1),D=o(`<div class="search-empty svelte-e12qt1"><p>블로그 글의 제목과 본문을 검색합니다.</p> <p class="search-empty-hint svelte-e12qt1">두 글자 이상 입력하세요. 전체 글은 <a href="/blog" class="svelte-e12qt1">블로그 →</a></p></div>`),O=o(`<p class="search-posts-empty svelte-e12qt1"> </p>`),k=o(`<span class="search-post-excerpt svelte-e12qt1"> </span>`),A=o(`<li><a class="search-post-item svelte-e12qt1"><span class="search-post-board svelte-e12qt1"> </span> <span class="search-post-title svelte-e12qt1"> </span> <!></a></li>`),j=o(`<p class="search-posts-more svelte-e12qt1"><a href="/blog" class="svelte-e12qt1">블로그에서 더 보기 →</a></p>`),M=o(`<ul class="search-post-list svelte-e12qt1"></ul> <!>`,1),N=o(`<section class="search-posts svelte-e12qt1"><div class="search-posts-head svelte-e12qt1"><h2 class="search-posts-title svelte-e12qt1">게시글</h2> <span class="search-count svelte-e12qt1"> </span></div> <!></section>`),P=o(`<div class="search-page svelte-e12qt1"><div class="search-hero svelte-e12qt1"><h1 class="search-title svelte-e12qt1">SEARCH</h1> <div class="search-bar-wrap svelte-e12qt1"><svg class="search-icon svelte-e12qt1" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg> <input type="text" class="search-input svelte-e12qt1" placeholder="블로그 글 검색 — 제목, 본문…"/></div></div> <div class="search-body svelte-e12qt1"><!></div></div>`);function F(o,F){x(F,!0);let I=y(``),L=y(p([])),R=y(0),z=y(!1),B=null;S(()=>{let e=n(I).trim();if(B&&clearTimeout(B),e.length<2){C(L,[],!0),C(R,0),C(z,!1);return}return C(z,!0),B=setTimeout(async()=>{try{let t=(await(await fetch(`https://argo9.com/api/search?q=${encodeURIComponent(e)}&type=posts&limit=10`)).json())?.results?.posts??{};
1C(L,Array.isArray(t.items)?t.items:[],!0),C(R,Number(t.total??n(L).length)||0,!0)}catch{C(L,[],!0),C(R,0)}finally{C(z,!1)}},300),()=>{B&&clearTimeout(B)}});function V(e){return(e||``).replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim()}var H=P();T(`e12qt1`,e=>{var t=E();g(10),i(()=>{c.title=`검색 | 아르고나인`}),_(e,t)});var U=l(H),W=e(l(U),2),G=e(l(W),2);f(G),b(G,!0),u(W),u(U);var K=e(U,2),q=l(K),J=e=>{_(e,D())},Y=d(()=>n(I).trim().length<2),X=i=>{var o=N(),c=l(o),d=e(l(c),2),f=l(d,!0);u(d),u(c);var p=e(c,2),h=e=>{var r=O(),i=l(r);u(r),a(()=>t(i,`"${n(I)??``}" 게시글 검색 결과가 없습니다.`)),_(e,r)},g=i=>{var o=M(),c=s(o);r(c,21,()=>n(L),e=>e.id,(r,i)=>{var o=A(),s=l(o),c=l(s),d=l(c,!0);u(c);var f=e(c,2),p=l(f,!0);u(f);var h=e(f,2),g=e=>{var r=k(),o=l(r,!0);u(r),a(e=>t(o,e),[()=>V(n(i).excerpt).slice(0,120)]),_(e,r)};v(h,e=>{n(i).excerpt&&e(g)}),u(s),u(o),a(()=>{m(s,`href`,n(i).url||`/blog`),t(d,n(i).board?.name||`게시판`),t(p,n(i).title)}),_(r,o)}),u(c);var d=e(c,2),f=e=>{_(e,j())};v(d,e=>{n(R)>n(L).length&&e(f)}),_(i,o)};v(p,e=>{!n(z)&&n(L).length===0?e(h):e(g,-1)}),u(o),a(e=>t(f,e),[()=>n(z)?`검색 중…`:`${n(R).toLocaleString()}건`]),_(i,o)};v(q,e=>{n(Y)?e(J):e(X,-1)}),u(K),u(H),w(G,()=>n(I),e=>C(I,e)),_(o,H),h()}export{F as component};

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.