import{_ as m}from"./AdminLayout.vue_vue_type_script_setup_true_lang-BCOjo3I6.js";import{d as _,c as l,o as d,a as i,b as s,u as r,m as h,h as u,F as n,r as p,t,j as b,f,P as g}from"./app-BidmlC59.js";import{_ as v}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{_ as y}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 $={class:"container-fluid"},k={class:"user-list list mb-4"},w={class:"card"},C={class:"card-body p-4"},N={class:"table-responsive mb-4"},V={class:"table",style:{"min-width":"900px"}},B=["data-bs-target"],S=["id"],j={class:"modal-dialog modal-dialog-centered"},F={class:"modal-content"},L={style:{direction:"rtl"}},P={class:"modal-header"},D={class:"modal-title lts-05 fs-5"},E={class:"modal-footer"},T={key:0,class:"product-list-empty"},q={class:"lts-05"},Y=_({layout:m,__name:"List",props:{searches:{},keyword:{}},setup(z){return(e,o)=>(d(),l(n,null,[i(r(h),{title:e.$t("messages.title.searches")},null,8,["title"]),s("div",$,[i(y,{title:e.$t("messages.word.searches")},null,8,["title"]),s("div",k,[s("div",w,[s("div",C,[s("div",N,[s("table",V,[o[1]||(o[1]=s("thead",null,[s("tr",null,[s("th",null,"جستجو"),s("th",null,"تعداد"),s("th",{class:"first-small"},[s("i",{class:"ri-settings-4-line"})])])],-1)),s("tbody",null,[(d(!0),l(n,null,p(e.searches.data,(c,a)=>(d(),l("tr",{key:a},[s("td",null,t(a),1),s("td",null,t(c),1),s("td",null,[s("a",{href:"javascript:void(0)","data-bs-toggle":"modal","data-bs-target":"#delete-search-"+a.toString().replace(" ","-"),class:"dropdown-item no-btn text-danger"},t(e.$t("messages.word.delete")),9,B),s("div",{class:"modal fade",id:"delete-search-"+a.toString().replace(" ","-"),tabindex:"-1","aria-hidden":"true"},[s("div",j,[s("div",F,[s("form",L,[s("div",P,[s("div",D,t(e.$t("messages.sentence.are_you_sure_delete_search")),1),o[0]||(o[0]=s("button",{type:"button",class:"btn modal-close","data-bs-dismiss":"modal","aria-label":"Close"},[s("i",{class:"ri-close-line"})],-1))]),s("div",E,[i(r(g),{href:e.route("admin.searches.destroy",a),as:"button",method:"delete",class:"btn btn-danger","data-bs-dismiss":"modal","aria-label":"Close"},{default:b(()=>[f(t(e.$t("messages.word.delete")),1)]),_:2},1032,["href"])])])])])],8,S)])]))),128))])])]),e.searches.data.length==0?(d(),l("div",T,[s("div",q,t(e.$t("messages.sentence.no_items_found")),1)])):u("",!0),i(v,{links:e.searches.links},null,8,["links"])])])])])],64))}});export{Y as default};
