1import{d as I,r as h,l as g,v as C,e as y,g as $,p as B,c as _,o as u,a as t,j as D,k as n,w as l,X as L,u as e,b as E,t as i,A as N,_ as S}from"./w7OlQP-1.js";import{_ as j}from"./D8wZDWdq.js";import{a as P,_ as A}from"./C6UxIsRt.js";import{r as M}from"./gngKSwJU.js";import{_ as O}from"./DlAUqK2U.js";import"./DzsGp8l1.js";const R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16.414'%20height='16.414'%20viewBox='0%200%2016.414%2016.414'%3e%3cg%20id='Icon_feather-search'%20data-name='Icon%20feather-search'%20transform='translate(1%201)'%3e%3cpath%20id='Path_52'%20data-name='Path%2052'%20d='M16.944,10.722A6.222,6.222,0,1,1,10.722,4.5,6.222,6.222,0,0,1,16.944,10.722Z'%20transform='translate(-4.5%20-4.5)'%20fill='none'%20stroke='%23009841'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_53'%20data-name='Path%2053'%20d='M28.358,28.358l-3.383-3.383'%20transform='translate(-14.358%20-14.358)'%20fill='none'%20stroke='%23009841'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/svg%3e",T={class:"flex flex-col"},U={class:"mobile-appbar"},V={class:"flex"},H={key:0,class:"flex items-center gap-2 mr-[5px]"},G={class:"flex flex-col justify-end items-end"},W={class:"balance"},X={class:"curency"},Y={class:"deposit btn"},Z={key:1,class:"flex gap-[2px] items-center ml-1"},q={class:"btn h-[34px] px-[13px]"},z={class:"login"},F={class:"register"},J={class:"flex items-center gap-1"},K={class:"flex items-center text-white/80"},Q={class:"flex items-start justify-end"},tt={class:"flex items-center text-white/80"},et={key:0,class:"search"},st={class:"flex items-center gap-3"},ot=I({__name:"Header",setup(nt){const{formateBalance:v}=N(),x=h(!1),c=g(),p=E();C();const{toggleRightDrawer:r}=B(),a=h(!1);y(()=>{x.value=c.accessToken!==null,window.addEventListener("click",m)}),$(()=>{window.removeEventListener("click",m)});function m(o){r.value&&o.target&&!o.target.closest("#rightDrawerID")&&(r.value=!1),a.value&&o.target&&!o.target.closest("#searchContentID")&&(a.value=!1)}return(o,s)=>{const k=L,d=j,b=A,w=S;return u(),_("div",T,[t("div",U,[n(d,{to:"/","data-testId":"logo-btn"},{default:l(()=>[n(k,{src:e(p).public.MOBILE_LOGO,fetchpriority:"low",class:"logo",alt:"Logo"},null,8,["src"])]),_:1}),t("div",V,[e(c).accessToken!==void 0&&e(c).accessToken!==null&&e(c).accessToken!==""?(u(),_("div",H,[t("div",G,[t("span",W,i(e(v)(e(g)().balance,2)),1),t("span",X,i(e(p).public.CURRENCY),1)]),n(d,{to:"/deposit","data-testId":"deposit-btn"},{default:l(()=>[t("button",Y,i(o.$t("deposit")),1)]),_:1})])):(u(),_("div",Z,[n(d,{to:"/login","data-testId":"login-btn"},{default:l(()=>[t("button",q,[t("span",z,i(o.$t("login")),1)])]),_:1}),n(d,{to:"/sign-up",class:"px-1","data-testId":"sign-up-btn"},{default:l(()=>[t("button",F,i(o.$t("register")),1)]),_:1})])),t("div",J,[t("button",{onClick:s[0]||(s[0]=f=>a.value=!e(a)),id:"searchContentID","a-testId":"openSearch-btn"},[...s[3]||(s[3]=[t("img",{src:R,class:"px-[1px] mr-[10px]",alt:"search-icon"},null,-1)])]),t("div",K,[t("div",Q,[t("div",tt,[t("button",{type:"button",class:"relative rounded-md",onClick:s[1]||(s[1]=f=>r.value=!e(r))},[...s[4]||(s[4]=[t("img",{src:P,id:"rightDrawerID",alt:"menu",class:"menu-icon"},null,-1)])])])])])])])]),e(a)?(u(),_("div",et,[t("div",st,[n(b),n(w,null,{default:l(()=>[t("button",{onClick:s[2]||(s[2]=f=>a.value=!1),"data-testId":"close-btn"},[n(e(M),{class:"close-search-icon"})])]),_:1})])])):D("",!0)])}}}),_t=O(ot,[["__scopeId","data-v-83e9217f"]]);export{_t 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.