import{_ as m,f as r,o as t,g as n,i as e,h as _,w as v,t as a,p as f,l as k,m as $,v as y,F as b,k as w,A as C}from"./app-ff872a97.js";const B={props:["conversation"]},x={class:"row px-3 align-center py-2"},N={class:"col-sm-12 col-md-4 pb-0 pb-md-2"},P={class:"d-flex align-center"},Q=["src"],V={class:"ml-3"},F={class:"col-sm-12 col-md-8"},q={class:"d-flex align-center"},z={key:0,class:"custom-new-badge"};function E(s,c,o,g,p,h){const i=r("v-avatar"),l=r("router-link");return t(),n("div",x,[e("div",N,[e("div",P,[_(i,{size:"60"},{default:v(()=>[e("img",{src:o.conversation.receiver_image,class:"border border-4",onError:c[0]||(c[0]=d=>s.imageFallback(d))},null,40,Q)]),_:1}),e("div",V,[e("h5",null,a(o.conversation.receiver_name),1),e("div",null,a(o.conversation.latest_message_time),1)])])]),e("div",F,[e("div",q,[e("div",null,[e("h4",null,[_(l,{to:"/user/product-query/"+o.conversation.slug,class:"text-dark"},{default:v(()=>[f(a(o.conversation.title)+" ",1),o.conversation.sender_viewed==0?(t(),n("span",z,"("+a(s.$t("new"))+")",1)):k("",!0)]),_:1},8,["to"])]),e("div",null,a(o.conversation.latest_message.message),1)])])])])}const A=m(B,[["render",E]]),D={data:()=>({loading:!1}),components:{ConversationBox:A},computed:{...$("app",["getProductQuerries"])}},G={class:"ps-lg-7 pt-4"},L={class:"fs-24 fw-700 opacity-80 mb-5 mt-3"},S={key:0},T={class:"text-center"},j={key:1},H={key:1,class:"text-center"};function I(s,c,o,g,p,h){const i=r("ConversationBox"),l=r("v-card");return t(),n("div",G,[e("h1",L,a(s.$t("my_querries")),1),s.loading?(t(),n("div",S,[e("div",T,[e("div",null,a(s.$t("loading_please_wait")),1)])])):(t(),n("div",j,[s.getProductQuerries.length>0?(t(),y(l,{key:0},{default:v(()=>[(t(!0),n(b,null,w(s.getProductQuerries,(d,u)=>(t(),n("div",{key:u,class:C(["py-2",{"border-bottom":u+1!=s.getProductQuerries.length}])},[_(i,{conversation:d},null,8,["conversation"])],2))),128))]),_:1})):(t(),n("div",H,[e("div",null,a(s.$t("no_conversation_found")),1)]))]))])}const K=m(D,[["render",I]]);export{K as default};
