import{_ as c,a as _}from"./StoreLayout.vue_vue_type_script_setup_true_lang-DeGbg6Ly.js";import{d as u,c as a,o as l,a as r,b as s,u as d,m as p,h as n,t,F as m,p as h,j as g,f,P as y}from"./app-DJb_CRLj.js";import{_ as $}from"./SearchList.vue_vue_type_script_setup_true_lang-CyAiOusi.js";import{_ as b}from"./Pagination.vue_vue_type_script_setup_true_lang-9skHAHfw.js";import"./coloris-DdyWondq.js";/* empty css                             */import"./simplebar.min-CZ5saGqI.js";import"./debounce-CDPmhVE8.js";/* empty css              */import"./useToastify-DqLaHt3f.js";import"./useRandomNum-BTw6623a.js";import"./useCopyToClipboard-CrZ6pkmz.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(),a(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),a(m,null,h(e.consignments.data,o=>(l(),a("tr",{key:o.id},[s("td",null,t(o.send_type=="direct"?o.order_uuid:o.uuid),1),s("td",null,[o.status=="sent_to_main_storage"?(l(),a("span",F,t(e.$t("messages.sentence.sent_to_main_storage")),1)):n("",!0),o.status=="direct_sent_to_customer"?(l(),a("span",P,t(e.$t("messages.sentence.direct_sent_to_customer")),1)):n("",!0)]),s("td",S,t(o.order.jalali_updated_at[2]),1),s("td",D,[r(d(y),{href:e.route("seller.orders.show",o.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(),a("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};
