import{d as o,f as i,h as r,i as u,C as l,G as m,D as s,c as p,V as d,y as f}from"./index-C5GbdPxY.js";import{V as _}from"./VChip-CsS_5IS6.js";const y={key:0,class:"d-flex justify-center align-center"},B=o({__name:"TableEnum",props:{item:{},column:{}},setup(n){const e=n,t=()=>{var a;if((a=e.item[e.column])!=null&&a.color)return e.item[e.column].color;switch(e.item[e.column].id){case"in":case"sale":case"paid":case"order":case"volume":case"tcp":case"cash":return"success";case"out":case"unpaid":case"billing":case"expire":case"refund":return"error";case"adjust":case"cancellation":case"count":case"partially_paid":case"fixed":case"closing_adjust":return"warning";case"pay_in":case"capacity":case"custom":case"circle":case"percent":case"card":return"info";case"pay_out":return"#fd7e14";case"cash_drop":return"#6f42c1";case"tip_in":return"#20c997";case"tip_out":return"#ffb300";case"correction":return"#6c757d";case"takeaway":return"#F7B731";case"dine_in":return"#3867D6";case"pick_up":return"#20BF6B";case"primary":case"square":case"mass":return"primary";case"rectangle":return"secondary";case"cashier":return"#2D9CDB";case"kitchen":return"#F2994A";case"earn":return"#2ECC71";case"redeem":return"#E74C3C";case"bonus":return"#3498DB";default:return"default"}};return(a,c)=>(r(),i(_,{color:t(),size:"small"},{default:u(()=>[a.item[e.column].icon?(r(),l("span",y,[p(d,{icon:a.item[e.column].icon},null,8,["icon"]),c[0]||(c[0]=s("   "))])):m("",!0),s(" "+f(a.item[e.column].name),1)]),_:1},8,["color"]))}});export{B as _};
