import{N as M}from"./nuxt-icon.1d15911d.js";import{a4 as k,aE as s,u as n,v as e,M as L,bI as N,bL as V,q as _,bW as x,bw as Z,bc as t,I as o,bx as i,b3 as u,t as A,F,aP as I,H as T,ao as z}from"./entry.da00db99.js";import{_ as D}from"./nuxt-link.69d7ce27.js";import{_ as q}from"./Icon.a2cc8086.js";import{_ as P}from"./client-only.72557137.js";import{u as W,a as E}from"./date-time-formatter.a1f03d93.js";import"./index.27c5d98a.js";const H={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 60 60"},O=e("g",{fill:"#fff","clip-path":"url(#i-1351680175__a)"},[e("path",{d:"M41.675 32.825C45.1 35.15 47.5 38.3 47.5 42.5V50h10v-7.5c0-5.45-8.925-8.675-15.825-9.675ZM37.5 30c5.525 0 10-4.475 10-10s-4.475-10-10-10c-1.175 0-2.275.25-3.325.6a14.95 14.95 0 0 1 0 18.8c1.05.35 2.15.6 3.325.6ZM22.5 30c5.525 0 10-4.475 10-10s-4.475-10-10-10-10 4.475-10 10 4.475 10 10 10Zm0-15c2.75 0 5 2.25 5 5s-2.25 5-5 5-5-2.25-5-5 2.25-5 5-5ZM22.5 32.5c-6.675 0-20 3.35-20 10V50h40v-7.5c0-6.65-13.325-10-20-10Zm15 12.5h-30v-2.475c.5-1.8 8.25-5.025 15-5.025s14.5 3.225 15 5V45Z"})],-1),G=e("defs",null,[e("clipPath",{id:"i-1351680175__a"},[e("path",{fill:"#fff",d:"M0 0h60v60H0z"})])],-1),Q=[O,G];function j(v,l){return s(),n("svg",H,[...Q])}const J={render(){return k(M,{icon:{render:j},name:"blog"})}},K={class:"content__wrapper"},R={class:"menu__header"},U={class:"header__title"},X={key:0,class:"toggle__btn"},Y=e("div",{class:"divider sub"},null,-1),ee={class:"collapse-content menu__content"},te={class:"menu menu-compact"},oe=e("br",null,null,-1),se={class:"text-white/50 text-xs font-normal"},ue=L({__name:"SidebarBlog",async setup(v){let l,m;const B=N(),r=W(),d=V();let c={};const{formatIOSStringToManyDayLeft:S}=E();_(()=>c);const p=_(()=>d.menuToggle.blog),g=_(()=>{if(x.size(r.getSortBlogList))return r.getSortBlogList.slice(0,3)});return[l,m]=Z(()=>r.getBlogPromotionList()),await l,m(),B.socialMode?c={name:"leaderboards",query:{category:"Social",type:"All",status:"Current&Future",sortBy:"Weight"}}:c={name:"leaderboards",query:{category:"All",type:"All",status:"Current&Future",sortBy:"Weight"}},(w,h)=>{const C=J,f=D,b=q,$=P;return s(),n("div",K,[e("ul",{class:z(["menu menu-compact",t(p)?"collapse-close":"collapse-open"])},[e("li",R,[e("div",{class:"header__link",onClick:h[0]||(h[0]=a=>t(d).toggleMenu("blog"))},[o(f,{class:"sub__link",to:"/blog"},{default:i(()=>[o(C),e("span",U,u(w.$t("menu_blog")),1)]),_:1}),t(x).size(t(g))>0?(s(),n("div",X,[o(b,{name:t(p)?"material-symbols:expand-more":"material-symbols:expand-less"},null,8,["name"])])):A("",!0)])]),Y,e("li",ee,[e("ul",te,[(s(!0),n(F,null,I(t(g),(a,y)=>(s(),n("li",{key:y},[o(f,{to:`/blog/${a.slug}`},{default:i(()=>[o(b,{class:"icon",name:`material-symbols:counter-${y+1}`},null,8,["name"]),e("span",null,[T(u(a.title),1),oe,o($,null,{default:i(()=>[e("span",se,u(t(S)(a.publishedAt)),1)]),_:2},1024)])]),_:2},1032,["to"])]))),128))])])],2)])}}});export{ue as default};