import{_ as m}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as _,q as p,c as o,o as a,a as l,b as s,u as h,m as u,h as n,t as i,F as d,p as f,g}from"./app-DJb_CRLj.js";import{_ as w}from"./Files.vue_vue_type_script_setup_true_lang-CRYWsXWh.js";import{_ as v}from"./FilterList.vue_vue_type_script_setup_true_lang-CCLhEmVl.js";import"./simplebar.min-CZ5saGqI.js";import"./debounce-CDPmhVE8.js";import"./useToastify-DqLaHt3f.js";import"./coloris-DdyWondq.js";/* empty css                             *//* empty css              */import"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import"./useCopyToClipboard-CrZ6pkmz.js";import"./useRandomNum-BTw6623a.js";const b={class:"container-fluid"},$={class:"product-list list mb-4"},y={class:"card"},k={class:"card-body"},V={class:"d-flex fw-bold fs-6 lts-05 mb-3"},B={class:"table-responsive mb-4"},D={class:"table",style:{"min-width":"900px"}},N={class:"first-small"},C={class:"first-small white-space-nowrap"},F={class:"first-small white-space-nowrap"},j=["src","alt"],q=["href"],A={key:0,class:"ri-star-s-fill vip-product"},E={class:"first-small white-space-nowrap"},L={class:"first-small white-space-nowrap"},S={key:0,class:"product-list-empty"},z={class:"lts-05"},Z=_({layout:m,__name:"Articles",props:{articlesVisit:{}},setup(G){return(t,r)=>{const c=p("tooltip");return a(),o(d,null,[l(h(u),{title:t.$t("messages.title.articles_statistics")},null,8,["title"]),s("div",b,[l(w,{title:t.$t("messages.sentence.articles_statistics")},null,8,["title"]),s("div",$,[s("div",y,[s("div",k,[s("div",V,i(t.$t("messages.sentence.x_most_viewed_articles",{count:"20"})),1),r[0]||(r[0]=s("div",{class:"border mb-3"},null,-1)),l(v,{filters:{visit_today:t.$t("messages.word.today"),visit_week:t.$t("messages.word.week"),visit_month:t.$t("messages.word.month")}},null,8,["filters"]),s("div",B,[s("table",D,[s("thead",null,[s("tr",null,[s("th",N,i(t.$t("messages.word.image")),1),s("th",null,i(t.$t("messages.word.title")),1),s("th",C,i(t.$t("messages.word.view")),1),s("th",F,i(t.$t("messages.word.last_update")),1)])]),s("tbody",null,[(a(!0),o(d,null,f(t.articlesVisit,e=>(a(),o("tr",{key:e.id},[s("td",null,[s("img",{class:"br-10",width:"35",height:"35",src:e.get_image.url,alt:e.get_image.alt},null,8,j)]),g((a(),o("td",null,[s("a",{class:"product-title product-title-min-300",href:t.route("blog.articles.show",e.slug),target:"_blank"},i(e.title),9,q),e.editor_choice?(a(),o("i",A)):n("",!0)])),[[c,e.editor_choice?t.$t("messages.sentence.editor_choice"):null,void 0,{top:!0}]]),s("td",E,i(e.get_formatted_view_count),1),s("td",L,i(e.jalali_updated_at[2]),1)]))),128))])])]),t.articlesVisit.length==0?(a(),o("div",S,[s("div",z,i(t.$t("messages.sentence.no_items_found")),1)])):n("",!0)])])])])],64)}}});export{Z as default};
