1import{d as U,x as z,W as H,o as a,h,i as m,k as t,n as M,m as d,J as N,b as p,a7 as O,D as y,S as R,F as B,r as S,y as x,e as L,_ as A,am as T,z as E,w as j,a as V,j as w,a8 as F,l as C,U as P,ao as K,f as W}from"./QJre-PsH.js";import{u as D}from"./BKGXCE4B.js";import{u as q}from"./ByZjZvJA.js";import{B as J}from"./HDGNBR0W.js";import{S as I,U as G,a as Q,_ as X,K as Y}from"./BZ3sY1_p.js";import{_ as Z,N as ee}from"./CB1eXvq4.js";import{B as te}from"./CHps-Mb2.js";const se={class:"user-notification"},ae={class:"user-notification__menu"},ne={class:"user-notification__content"},oe=U({__name:"UserNotification",setup(f){const s=L(),e=x(!0),n=x([]),g=()=>{e.value=!e.value},b=async()=>{try{const i=new ee(s),{success:l,data:r}=await i.getList(0,1);l&&(n.value=r?.list||[])}catch(i){console.error("[loadMore] Failed to fetch notifications:",i)}finally{g()}};return z(()=>{H(()=>{b()})}),(i,l)=>{const r=Z;return a(),h("div",se,[m(t(M),{emphasis:"low",type:"icon",color:"neutral",rounded:"",icon:"icon-bell-linear",size:"40",class:"user-notification__btn",tag:"nuxt-link","aria-label":"Ø§Ø¹ÙØ§Ù ÙØ§Û Ø¨ÛØª24",to:"/notification"}),d("div",ae,[d("div",{class:N(["user-notification__row",{"!border-none":!n.value.length}])},[l[0]||(l[0]=d("span",{class:"user-notification__title"}," Ø§Ø¹ÙØ§ÙâÙØ§ ",-1)),n.value.length?(a(),p(t(O),{key:0,title:"Ù
Ø´Ø§ÙØ¯Ù ÙÙ
Ù",size:"12","icon-size":"20","end-icon":"icon-left",tag:"nuxt-link",to:"/notification"})):y("",!0)],2),d("div",ne,[e.value?(a(),p(t(R),{key:0,color:"var(--b-brand--icn)",class:"mx-auto mt-[120px]",height:52,width:52})):(a(),h(B,{key:1},[n.value.length?(a(!0),h(B,{key:0},S(n.value.slice(0,4),(c,o)=>(a(),p(r,{key:o,title:c.title,subtitle:c.sub_title||"",description:c.message||"",date:c.created_at,link:c.link||""},null,8,["title","subtitle","description","date","link"]))),128)):(a(),p(t(te),{key:1,title:"Ø§Ø¹ÙØ§ÙÛ ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯",class:"mt-[56px]"}))],64))])])])}}}),ie=A(oe,[["__scopeId","data-v-a7586026"]]);class $ extends T{baseUrl="";constructor(s,e){super(s,e),this.baseUrl=s.public.DOMAIN_PUBLIC_URL}async getBanners(s=2,e){let n=`/api/v2/lite/v3/banners?device_type=${s}`;return e&&(n+=`&count=${e}`),await this.get(this.baseUrl+n)}}const le={key:0,class:"top-banner"},re=["src","alt"],ce=U({__name:"TopBanners",emits:["bannerExisting"],async setup(f,{emit:s}){let e,n;const g=L(),b=E(),{options:i}=D(),l=x(!1),r=C(()=>l.value?((b.breakpoints.mdAndUp?o.value?.desktop?.list:o.value?.mobile?.list)??[]).filter(u=>!!u.image?.trim()):[]),c=s,{data:o}=([e,n]=j(async()=>V("top-banner-fetch-data",async()=>{let v={list:[]},u={list:[]};try{const _=await Promise.allSettled([new $(g,i).getBanners(1),new $(g,i).getBanners(2)]);v=_[0].status==="fulfilled"?_[0].value:{list:[]},u=_[1].status==="fulfilled"?_[1].value:{list:[]}}catch(_){console.log(_)}return{mobile:v,desktop:u}})),e=await e,n(),e);return z(()=>{l.value=!0,c("bannerExisting",r.value.length>0)}),(v,u)=>{const _=F;return t(r)?.length?(a(),h("div",le,[(a(!0),h(B,null,S(t(r),k=>(a(),p(_,{key:k.title,class:"top-banner__link",href:k.link},{default:w(()=>[d("img",{src:k.image,class:"top-banner__image",alt:k.title,width:"1600",height:"128",decoding:"async",loading:"lazy"},null,8,re)]),_:2},1032,["href"]))),128))])):y("",!0)}}}),we=Object.assign(A(ce,[["__scopeId","data-v-ef257dcb"]]),{__name:"TopBanners"});class ue extends T{baseUrl="";constructor(s,e){super(s,e),this.baseUrl=s.public.DOMAIN_PUBLIC_URL}async getMegaMenuCoins(){return await this.get(this.baseUrl+"/api/v2/lite/v3/coins/mega-menu-coins")}}const _e={class:"app-layout-header__user-actions"},de={key:0,class:"app-layout-header__support-notif"},pe={class:"app-layout-header__support"},me={class:"app-layout-header__user-wallet"},he={key:0,class:"app-layout-header__deposit"},ge=U({__name:"AppLayoutHeader",props:{mobileVisibility:{default:"visible"},stickyTop:{type:Boolean,default:!1}},setup(f){const s=f,e=P(),n=K(),g=L(),{options:b}=D(),i=q(),l=C(()=>n.theme);W({htmlAttrs:{class:l}});const{data:r}=V("mega-menu-coins",async()=>{try{const o=await new ue(g,b).getMegaMenuCoins();
1return i.setAllCoinsCount(o?.all_coins_count||""),i.setAllCoinsCountRound(o?.all_coins_count_round||""),o||null}catch(o){return console.error(o),null}}),c=C(()=>({"app-layout-header--hidden-mobile":s.mobileVisibility==="hidden","app-layout-header--hidden-mobile-when-logged-in":s.mobileVisibility==="hidden-when-logged-in"&&e.getIsLogin,"app-layout-header--sticky-top":s.stickyTop}));return(o,v)=>(a(),p(t(Y),{"coins-information":t(r),class:N(["app-layout-header",c.value])},{"item-1":w(({headerSize:u})=>[d("div",_e,[t(e).getIsLogin?(a(),h("div",de,[m(t(ie)),d("div",pe,[m(t(M),{emphasis:"low",type:"icon",color:"neutral",rounded:"",icon:"icon-question",size:"40",class:"app-layout-header__support-btn",tag:"nuxt-link","aria-label":"Ù¾Ø´ØªÛØ¨Ø§ÙÛ Ø¨ÛØª24",to:"/tickets/"}),t(e).getUnreadTickets?(a(),p(t(J),{key:0,type:"sign",size:"md",class:"app-layout-header__support-badge"})):y("",!0)])])):y("",!0),m(t(I),{class:"app-layout-header__mobile-search","ui-mode":"button"}),d("div",me,[t(e).getIsLogin?(a(),p(t(G),{key:0,"header-device":u},null,8,["header-device"])):y("",!0)]),m(t(Q),{"device-size":u},null,8,["device-size"])]),t(e).getIsLogin?(a(),h("div",he,[m(t(X),{"header-size":u},null,8,["header-size"])])):y("",!0)]),"item-2":w(()=>[m(t(I),{class:"app-layout-header__tablet-search","ui-mode":"button"})]),_:1},8,["coins-information","class"]))}}),Ce=Object.assign(A(ge,[["__scopeId","data-v-398de8ed"]]),{__name:"LayoutAppLayoutHeader"});export{Ce as A,we 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.