import{_ as m,a as u}from"./StoreLayout.vue_vue_type_script_setup_true_lang-B7aW7sSo.js";import{d as p,c as l,o,a as r,b as s,u as i,m as _,h as d,t,F as c,r as h,j as g,f,P as y}from"./app-BidmlC59.js";import{_ as $}from"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import{_ as b}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";/* empty css                             */import"./simplebar.min-hRaQJumN.js";/* empty css              */import"./useToastify-Bhe2cyz3.js";import"./useRandomNum-BTw6623a.js";import"./useCopyToClipboard-CsEpRQpU.js";import"./useNl2br-N6ZYQSPJ.js";const w={class:"container-fluid"},k={class:"orders-list list"},v={class:"card"},C={class:"card-body"},N={class:"orders"},V={class:"table-responsive mb-4"},B={class:"table",style:{"min-width":"1100px"}},j={class:"first-small"},F={key:0,class:"badge bg-danger"},P={key:1,class:"badge bg-danger"},D={class:"lts-05 fs-8"},E={class:"first-small",style:{width:"150px"}},L={key:0,class:"cart-empty"},S={class:"empty-content-icon"},T=["src"],U={class:"empty-content-message text-center"},Y=p({layout:m,__name:"Cancelled",props:{consignments:{},keyword:{}},setup(q){return(e,n)=>(o(),l(c,null,[r(i(_),{title:e.$t("messages.title.cancelled_orders")},null,8,["title"]),s("div",w,[r(u,{title:e.$t("messages.sentence.cancelled_orders"),item:e.$t("messages.word.orders")},null,8,["title","item"]),s("div",k,[s("div",v,[s("div",C,[s("div",N,[r($,{keyword:e.keyword,placeholder:e.$t("messages.sentence.consignment_uuid")+" ..."},null,8,["keyword","placeholder"]),s("div",V,[s("table",B,[s("thead",null,[s("tr",null,[s("th",null,t(e.$t("messages.sentence.order_uuid")),1),s("th",null,t(e.$t("messages.word.status")),1),s("th",null,t(e.$t("messages.sentence.cancelled_date")),1),s("th",j,t(e.$t("messages.word.actions")),1)])]),s("tbody",null,[(o(!0),l(c,null,h(e.consignments.data,a=>(o(),l("tr",{key:a.id},[s("td",null,t(a.send_type=="direct"?a.order_uuid:a.uuid),1),s("td",null,[a.status=="cancelled"?(o(),l("span",F,t(e.$t("messages.word.cancelled")),1)):d("",!0),a.status=="returned"?(o(),l("span",P,t(e.$t("messages.word.returned")),1)):d("",!0)]),s("td",D,t(a.jalali_updated_at[2]),1),s("td",E,[r(i(y),{href:e.route("seller.orders.show",a.id),as:"button",class:"btn btn-sm btn-outline-light pt-1 pb-1 lts-05"},{default:g(()=>[f(t(e.$t("messages.word.details"))+" ",1),n[0]||(n[0]=s("i",{class:"ri-arrow-left-s-fill"},null,-1))]),_:2},1032,["href"])])]))),128))])])]),e.consignments.data.length==0?(o(),l("div",L,[s("div",S,[s("img",{src:e.$page.props.appUrl+"/img/template/orders.svg",alt:""},null,8,T)]),s("div",U,[s("p",null,t(e.$t("messages.sentence.no_items_found")),1)])])):d("",!0),r(b,{links:e.consignments.links},null,8,["links"])])])])])])],64))}});export{Y as default};
