import{_ as h,s as _,b as p}from"./UserLayout-Ctdac_Wv.js";import{r as m,a,o as n,d as t,f,t as s,F as w,h as b,g as d,j as i,u as k}from"./app-YXLTuzTz.js";const x={class:"table"},v={class:"flex justify-end"},y={key:0},g={class:"flex justify-end"},j={class:"dropdown","data-placement":"bottom-start"},B={class:"dropdown-toggle"},C={class:"dropdown-content w-56"},N={class:"dropdown-list"},V={class:"dropdown-list-item"},$=["href"],A={class:"dropdown-list-item"},D=["onClick"],L=Object.assign({layout:h},{__name:"Show",props:["qaReplies"],setup(r){const{deleteRow:c}=_();return(e,E)=>{const l=m("Icon");return n(),a("table",x,[t("thead",null,[t("tr",null,[t("th",null,s(e.trans("#")),1),t("th",null,s(e.trans("Question")),1),t("th",null,s(e.trans("Answer")),1),t("th",v,s(e.trans("Actions")),1)])]),r.qaReplies.length?(n(),a("tbody",y,[(n(!0),a(w,null,b(r.qaReplies,(o,u)=>(n(),a("tr",{key:o.id},[t("td",null,s(u+1),1),t("td",null,s(o.key),1),t("td",null,s(o.value),1),t("td",null,[t("div",g,[t("div",j,[t("div",B,[d(l,{class:"h-5 text-3xl text-slate-400",icon:"bx:dots-vertical-rounded"})]),t("div",C,[t("ul",N,[t("li",V,[t("a",{class:"dropdown-link",href:e.route("user.auto-reply-datasets.edit",o)},[d(l,{class:"h-5 text-3xl text-slate-400",icon:"bx:edit"}),i(" "+s(e.trans("Edit")),1)],8,$)]),t("li",A,[t("a",{class:"dropdown-link",onClick:F=>k(c)(e.route("user.auto-reply-datasets.destroy",o))},[d(l,{class:"h-5 text-3xl text-slate-400",icon:"bx:trash"}),i(" "+s(e.trans("Delete")),1)],8,D)])])])])])])]))),128))])):(n(),f(p,{key:1,"for-table":"true"}))])}}});export{L as default};
