import{d as m,c as r,o,b as e,t as a,F as l,a as i,u as n,P as d,j as u,f as h}from"./app-BidmlC59.js";const g={class:"author card shadow-1 mb-4"},c={class:"card-body flex-grow-1"},p={class:"author--avatar"},_=["src","alt"],f=["src","alt"],b={key:2,class:"author--badge"},y={key:3,class:"author--badge"},v={key:4,class:"author--badge"},w={key:5,class:"author--badge"},k={class:"author--meta"},$={class:"author--name"},B={class:"author--description mb-3"},N={class:"author--name"},V={class:"author--description mb-3"},j={class:"autor--meta-details"},z={class:"social"},A=["href"],C=["href"],D=m({__name:"ArticleAuthor",props:{user:{}},setup(F){return(s,t)=>(o(),r("div",g,[e("div",c,[e("div",p,[s.user.seller?(o(),r("img",{key:0,class:"shadow-1 mb-2",width:"100",height:"100",src:s.user.store.get_logo,alt:s.user.store.name,loading:"lazy"},null,8,_)):(o(),r("img",{key:1,class:"shadow-1 mb-2",width:"100",height:"100",src:s.user.get_avatar,alt:s.user.get_name,loading:"lazy"},null,8,f)),s.user.type=="owner"?(o(),r("div",b,a(s.$t("messages.word.owner")),1)):s.user.type=="admin"?(o(),r("div",y,a(s.user.role),1)):s.user.seller?(o(),r("div",v,a(s.$t("messages.word.seller")),1)):(o(),r("div",w,a(s.$t("messages.word.author")),1))]),e("div",k,[s.user.seller?(o(),r(l,{key:0},[e("div",$,[i(n(d),{href:s.route("blog.articles.index",{profile:s.user.store.uuid}),style:{"text-decoration":"none"}},{default:u(()=>[e("span",null,a(s.user.store.name),1)]),_:1},8,["href"])]),e("p",B,a(s.user.store.bio),1)],64)):(o(),r(l,{key:1},[e("div",N,[i(n(d),{href:s.route("blog.articles.index",{profile:s.user.username}),style:{"text-decoration":"none"}},{default:u(()=>[e("span",null,a(s.user.get_name),1)]),_:1},8,["href"])]),e("p",V,a(s.user.bio),1)],64)),e("div",j,[e("ul",null,[e("li",null,[h(a(s.$t("messages.word.published"))+": ",1),e("span",null,a(s.user.articles_count),1)]),t[0]||(t[0]=e("li",{class:"divider"},null,-1)),e("li",null,[h(a(s.$t("messages.sentence.register_date"))+": ",1),e("span",null,a(s.user.jalali_created_at[0]),1)])]),e("div",z,[e("a",{href:s.user.get_social.instagram},t[1]||(t[1]=[e("i",{class:"ri-instagram-fill instagram"},null,-1)]),8,A),e("a",{href:s.user.get_social.telegram},t[2]||(t[2]=[e("i",{class:"ri-send-plane-2-fill telegram"},null,-1)]),8,C)])])])])]))}});export{D as _};
