import{_ as c,a as _}from"./StoreLayout.vue_vue_type_script_setup_true_lang-B7aW7sSo.js";import{d as u,c as o,o as l,a as r,b as s,u as d,m as p,h as n,t,F as m,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"},N={class:"card-body"},V={class:"orders"},B={class:"table-responsive mb-4"},C={class:"table",style:{"min-width":"1100px"}},j={class:"first-small"},F={key:0,class:"badge bg-success"},P={key:1,class:"badge bg-success"},S={class:"lts-05 fs-8"},D={class:"first-small",style:{width:"150px"}},E={key:0,class:"cart-empty"},L={class:"empty-content-icon"},T=["src"],U={class:"empty-content-message text-center"},Y=u({layout:c,__name:"Sent",props:{consignments:{},keyword:{}},setup(q){return(e,i)=>(l(),o(m,null,[r(d(p),{title:e.$t("messages.title.sent_orders")},null,8,["title"]),s("div",w,[r(_,{title:e.$t("messages.word.sent"),item:e.$t("messages.word.orders")},null,8,["title","item"]),s("div",k,[s("div",v,[s("div",N,[s("div",V,[r($,{keyword:e.keyword,placeholder:e.$t("messages.sentence.consignment_uuid")+" ..."},null,8,["keyword","placeholder"]),s("div",B,[s("table",C,[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.send_date")),1),s("th",j,t(e.$t("messages.word.actions")),1)])]),s("tbody",null,[(l(!0),o(m,null,h(e.consignments.data,a=>(l(),o("tr",{key:a.id},[s("td",null,t(a.send_type=="direct"?a.order_uuid:a.uuid),1),s("td",null,[a.status=="sent_to_main_storage"?(l(),o("span",F,t(e.$t("messages.sentence.sent_to_main_storage")),1)):n("",!0),a.status=="direct_sent_to_customer"?(l(),o("span",P,t(e.$t("messages.sentence.direct_sent_to_customer")),1)):n("",!0)]),s("td",S,t(a.jalali_updated_at[2]),1),s("td",D,[r(d(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),i[0]||(i[0]=s("i",{class:"ri-arrow-left-s-fill"},null,-1))]),_:2},1032,["href"])])]))),128))])])]),e.consignments.data.length==0?(l(),o("div",E,[s("div",L,[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)])])):n("",!0),r(b,{links:e.consignments.links},null,8,["links"])])])])])])],64))}});export{Y as default};
