import{_ as m}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as p,k as c,W as l,c as n,o as i,a as r,b as t,u,m as _,h as f,t as a,F as d,r as w}from"./app-BidmlC59.js";import{_ as g}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{_ as h}from"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import{_ as k}from"./FilterList.vue_vue_type_script_setup_true_lang-5e2WMwAc.js";import{_ as b}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"./useCopyToClipboard-CsEpRQpU.js";import"./useRandomNum-BTw6623a.js";const y={class:"container-fluid"},v={class:"user-list list mb-4"},L={class:"card"},B={class:"card-body"},M={class:"d-inline-flex alert alert-light lts-05 fs-8 mb-3"},N={class:"table-responsive mb-4"},T={class:"table",style:{"min-width":"900px"}},V=["innerHTML"],C={key:0,class:"product-list-empty"},F={class:"lts-05"},Q=p({layout:m,__name:"List",props:{reports:{},keyword:{}},setup(H){return c(()=>{$(document).on("click",".link-to-target",e=>{let o=$(e.target).attr("target"),s=$(e.target).attr("parameter");o=="user"?l.visit(route("admin.users.show",s),{replace:!1}):o=="brand"?window.open(route("main.brands.show",s),"_blank"):o=="category"?window.open(route("main.products.index",{cat:s}),"_blank"):o=="article_category"?window.open(route("blog.articles.index",{cat:s}),"_blank"):o=="tag"?window.open(route("main.products.index",{tag:s}),"_blank"):o=="article_tag"?window.open(route("blog.articles.index",{tag:s}),"_blank"):o=="product"?window.open(route("main.products.show",s),"_blank"):o=="page"?window.open(route("main.pages.show",s),"_blank"):o=="form"?window.open(route("main.forms.show",s),"_blank"):o=="article"?window.open(route("blog.articles.show",s),"_blank"):o=="ticket"?l.visit(route("admin.tickets.show",s),{replace:!1}):o=="store"&&l.visit(route("admin.stores.show",s),{replace:!1})})}),(e,o)=>(i(),n(d,null,[r(u(_),{title:e.$t("messages.title.reports_history")},null,8,["title"]),t("div",y,[r(b,{title:e.$t("messages.word.reports")},null,8,["title"]),t("div",v,[t("div",L,[t("div",B,[t("span",M,a(e.$t("messages.sentence.msg_id_529936")),1),r(h,{keyword:e.keyword,placeholder:e.$t("messages.sentence.phone_or_username_full")+" ..."},null,8,["keyword","placeholder"]),r(k,{filters:{owner:e.$t("messages.word.owner"),admin:e.$t("messages.word.admin"),seller:e.$t("messages.word.seller"),user:e.$t("messages.word.user")}},null,8,["filters"]),t("div",N,[t("table",T,[t("thead",null,[t("tr",null,[t("th",null,a(e.$t("messages.word.report")),1),t("th",null,a(e.$t("messages.word.date")),1)])]),t("tbody",null,[(i(!0),n(d,null,w(e.reports.data,s=>(i(),n("tr",{key:s.id},[t("td",{innerHTML:s.full_content},null,8,V),t("td",null,a(s.jalali_created_at[2]),1)]))),128))])])]),e.reports.data.length==0?(i(),n("div",C,[t("div",F,a(e.$t("messages.sentence.no_items_found")),1)])):f("",!0),r(g,{links:e.reports.links},null,8,["links"])])])])])],64))}});export{Q as default};
