import{_ as d}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as m,c as n,o,a,b as s,u,m as _,h as p,t as e,F as i,r as f,f as h}from"./app-BidmlC59.js";import{_ as g}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{_ as c}from"./Files.vue_vue_type_script_setup_true_lang-RfZgjaKd.js";import"./simplebar.min-hRaQJumN.js";import"./useToastify-Bhe2cyz3.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";/* empty css                             *//* empty css              */import"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import"./useCopyToClipboard-CsEpRQpU.js";import"./useRandomNum-BTw6623a.js";const w={class:"container-fluid"},k={class:"user-list list mb-4"},$={class:"card"},b={class:"card-body"},v={class:"d-inline-flex alert alert-light lts-05 fs-8 mb-3"},y={class:"table-responsive mb-4"},V={class:"table",style:{"min-width":"900px"}},N=["href"],B=["href"],C={key:1},F={class:"lts-05"},T={key:0,class:"product-list-empty"},j={class:"lts-05"},M=m({layout:d,__name:"TrackingView",props:{statistics:{}},setup(D){return(t,r)=>(o(),n(i,null,[a(u(_),{title:t.$t("messages.title.view_statistics")},null,8,["title"]),s("div",w,[a(c,{title:t.$t("messages.sentence.tracking_view")},null,8,["title"]),s("div",k,[s("div",$,[s("div",b,[s("span",v,e(t.$t("messages.sentence.msg_id_145856")),1),s("div",y,[s("table",V,[s("thead",null,[s("tr",null,[s("th",null,e(t.$t("messages.word.url")),1),s("th",null,e(t.$t("messages.word.user")),1),r[0]||(r[0]=s("th",null,"IP",-1)),s("th",null,e(t.$t("messages.word.platform")),1),s("th",null,e(t.$t("messages.word.section")),1),s("th",null,e(t.$t("messages.word.operation_system")),1),s("th",null,e(t.$t("messages.word.browser")),1),s("th",null,e(t.$t("messages.word.date")),1)])]),s("tbody",null,[(o(!0),n(i,null,f(t.statistics.data,l=>(o(),n("tr",{key:l.id},[s("td",null,[s("a",{href:t.$page.props.appUrl+l.url,class:"link text-info fw-bold fs-8 lts-05",target:"_blank"},[h(e(t.$t("messages.sentence.viewed_link"))+" ",1),r[1]||(r[1]=s("i",{class:"ri-external-link-line fw-normal fs-8 ms-1"},null,-1))],8,N)]),s("td",null,[l.get_user.type=="user"?(o(),n("a",{key:0,href:t.route("admin.users.show",l.get_user.id),class:"link fw-normal lts-05"},e(l.get_user.name),9,B)):(o(),n("span",C,e(l.get_user.name),1))]),s("td",null,e(l.ip),1),s("td",null,e(l.get_platform),1),s("td",F,e(l.get_service),1),s("td",null,e(l.os),1),s("td",null,e(l.browser),1),s("td",null,e(l.jalali_created_at[2]),1)]))),128))])])]),t.statistics.data.length==0?(o(),n("div",T,[s("div",j,e(t.$t("messages.sentence.no_items_found")),1)])):p("",!0),a(g,{links:t.statistics.links},null,8,["links"])])])])])],64))}});export{M as default};
