import{_ as c}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CE8oEe4m.js";import{d as u,c as d,o as i,a,b as s,u as n,m as _,h as p,t as e,F as r,p as h,f as m,j as g,P as f}from"./app-DJb_CRLj.js";import{_ as b}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import{_ as v}from"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import{_ as w}from"./Files.vue_vue_type_script_setup_true_lang-CRYWsXWh.js";import"./simplebar.min-CZ5saGqI.js";import"./debounce-CDPmhVE8.js";import"./useToastify-DqLaHt3f.js";import"./coloris-DdyWondq.js";/* empty css                             *//* empty css              */import"./useCopyToClipboard-CrZ6pkmz.js";import"./useRandomNum-BTw6623a.js";import"./FilterList.vue_vue_type_script_setup_true_lang-CCLhEmVl.js";const y={class:"container-fluid"},$={class:"user-list list mb-4"},k={class:"card"},L={class:"card-body"},C={class:"table-responsive mb-4"},T={class:"table",style:{"min-width":"900px"}},H=["href"],M=["innerHTML"],N=["innerHTML"],V={class:"dropdown"},j={class:"dropdown-menu shadow-smooth-2"},B=["data-bs-target"],F=["id"],P={class:"modal-dialog modal-dialog-centered"},D={class:"modal-content"},E={style:{direction:"rtl"}},S={class:"modal-header"},q={class:"modal-title lts-05 fs-5"},z={class:"modal-footer"},A={key:0,class:"product-list-empty"},G={class:"lts-05"},os=u({layout:c,__name:"List",props:{tags:{},keyword:{}},setup(I){return(t,l)=>(i(),d(r,null,[a(n(_),{title:t.$t("messages.title.product_tag_list")},null,8,["title"]),s("div",y,[a(w,{title:t.$t("messages.sentence.product_tag_list")},null,8,["title"]),s("div",$,[s("div",k,[s("div",L,[a(v,{keyword:t.keyword,placeholder:t.$t("messages.sentence.tag_title")+" ..."},null,8,["keyword","placeholder"]),s("div",C,[s("table",T,[s("thead",null,[s("tr",null,[s("th",null,e(t.$t("messages.word.title")),1),s("th",null,e(t.$t("messages.sentence.product_count")),1),s("th",null,e(t.$t("messages.word.view")),1),s("th",null,e(t.$t("messages.word.date")),1),l[0]||(l[0]=s("th",{class:"first-small"},[s("i",{class:"ri-settings-4-line"})],-1))])]),s("tbody",null,[(i(!0),d(r,null,h(t.tags.data,o=>(i(),d("tr",{key:o.id},[s("td",null,[s("a",{href:t.route("main.products.index",{tag:o.slug}),target:"_blank",class:"link fw-normal"},e(o.title),9,H)]),s("td",{innerHTML:o.products_count},null,8,M),s("td",{innerHTML:o.view_count},null,8,N),s("td",null,e(o.jalali_created_at[2]),1),s("td",V,[l[3]||(l[3]=s("i",{class:"ri-more-2-fill","data-bs-toggle":"dropdown"},null,-1)),s("div",j,[s("ul",null,[s("li",null,[s("a",{class:"dropdown-item lts-05",href:"javascript:void(0)","data-bs-toggle":"modal","data-bs-target":"#remove-tag-"+o.id},[l[1]||(l[1]=s("i",{class:"ri-delete-bin-line"},null,-1)),m(" "+e(t.$t("messages.word.delete")),1)],8,B)])])]),s("div",{class:"modal fade",id:"remove-tag-"+o.id,tabindex:"-1","aria-hidden":"true"},[s("div",P,[s("div",D,[s("form",E,[s("div",S,[s("div",q,e(t.$t("messages.sentence.are_you_sure_delete_tag")),1),l[2]||(l[2]=s("button",{type:"button",class:"btn modal-close","data-bs-dismiss":"modal","aria-label":"Close"},[s("i",{class:"ri-close-line"})],-1))]),s("div",z,[a(n(f),{as:"button",href:t.route("admin.product.tags.destroy",o.slug),method:"delete",class:"btn btn-sm btn-danger px-3","data-bs-dismiss":"modal","aria-label":"Close"},{default:g(()=>[m(e(t.$t("messages.word.delete")),1)]),_:2},1032,["href"])])])])])],8,F)])]))),128))])])]),t.tags.data.length==0?(i(),d("div",A,[s("div",G,e(t.$t("messages.sentence.no_items_found")),1)])):p("",!0),a(b,{links:t.tags.links},null,8,["links"])])])])])],64))}});export{os as default};
