import{d as n,f as i,h as t,i as l,C as d,G as u,D as c,c as m,V as p,y as f}from"./index-C5GbdPxY.js";import{V as g}from"./VChip-CsS_5IS6.js";const V={key:0,class:"d-flex justify-center align-center"},C=n({__name:"TableStatus",props:{item:{}},setup(r){const e=r,o=()=>{if(e.item.status.color)return e.item.status.color;switch(e.item.status.id){case"received":case"open":case"completed":case"served":case"available":return"success";case"cancelled":case"revoked":case"expired":case"refunded":return"error";case"pending":case"preparing":case"reserved":return"warning";case"partially_received":case"closed":case"confirmed":case"ready":case"cleaning":case"used":case"occupied":return"info";default:return"default"}};return(s,a)=>(t(),i(g,{color:o(),size:"small"},{default:l(()=>[s.item.status.icon?(t(),d("span",V,[m(p,{icon:s.item.status.icon},null,8,["icon"]),a[0]||(a[0]=c("   "))])):u("",!0),c(" "+f(s.item.status.name),1)]),_:1},8,["color"]))}});export{C as _};
