1import{p as K}from"./CuFcpNLf.js";import{p as Q,d as f,r as g,s as t,j as U,l as h,v as _,a as i,b as V,m as $,k as X,u as Y,f as A,ao as C,ap as H,t as q,e as z,c as x}from"./B1WHINfF.js";import{j as Z,k as ee,i as b,d as te,L as ae,B as M,h as N,$ as se,O as re}from"./BN74xd1h.js";import{L as oe}from"./CQp28Pph.js";import{I as ie}from"./DLgM7UYK.js";import{L as ne,H as ce,M as le,N as de,P as pe}from"./DRYewUB4.js";import{W as me}from"./CejxIsLD.js";import{I as ue}from"./BjNnHQJm.js";import{I as ve}from"./B2vZl5L9.js";var fe=x("<!> <!>",1),ge=x("<!> <!> <!> <!>",1),he=x('<div><div class="flex items-center justify-start max-lg:gap-3"><!></div> <div class="flex items-center justify-end max-sm:gap-1 sm:gap-2 lg:gap-2"><!> <!> <!> <!> <!> <!></div></div>');function Pe(R,W){Q(W,!0);const y=()=>$(te,"$isAuthenticated",m),I=()=>$(se,"$t",m),F=()=>$(re,"$setting",m),[m,G]=X();let n=Y(()=>K.url.searchParams.get("q")||"");const O=ae(async()=>{var e;((e=h(n))==null?void 0:e.trim())!==""?_(`/search/?q=${h(n)}`):_("search")},500);var c=he();Z(c,1,ee(["header-type-4-wrapper z-60 flex h-full w-full items-center justify-between px-3 pt-4 pb-2"]),"svelte-byvjax");var u=f(c),S=f(u);oe(S,{}),g(u);var j=t(u,2),k=f(j);{var T=e=>{var a=fe(),r=A(a);M(r,{class:"btn-secondary text-base",size:"md",onclick:()=>N({active:!0,tab:"login"}),children:(s,o)=>{C();var v=H();q(p=>z(v,p),[()=>I()("login")]),i(s,v)},$$slots:{default:!0}});var l=t(r,2);{var d=s=>{M(s,{class:"btn-primary text-base",onclick:()=>N({active:!0,tab:"register"}),children:(o,v)=>{C();var p=H();q(J=>z(p,J),[()=>I()("register")]),i(o,p)},$$slots:{default:!0}})};b(l,s=>{var o;(o=F())!=null&&o.enableRegister&&s(d)})}i(e,a)};b(k,e=>{y()||e(T)})}var L=t(k,2);ie(L,{id:"inputSearch",class:"input-primary search-button-pc w-auto max-lg:hidden",type:"text",placeholder:"searchGame",input:()=>O(),get value(){return h(n)},set value(a){U(n,a)},after:a=>{ue(a,{icon:"mdi:search",class:"text-[1.715em]"})},$$slots:{after:!0}});var P=t(L,2);{var D=e=>{var a=ge(),r=A(a);me(r,{});var l=t(r,2);le(l,{});var d=t(l,2);de(d,{position:"right"});var s=t(d,2);pe(s,{position:"right"}),i(e,a)};b(P,e=>{y()&&e(D)})}var w=t(P,2);ve(w,{icon:"mdi:search",bgColor:"var(--input)",class:"btn-search btn-search--mb rounded-lg lg:hidden",onclick:()=>_("/search")});var B=t(w,2);ne(B,{class:"max-sm:hidden"});var E=t(B,2);ce(E,{position:"right",class:"hamburger-icon lg:hidden"}),g(j),g(c),i(R,c),V(),G()}export{Pe 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.