import{V as s}from"./VChip-CsS_5IS6.js";import{d as c,f as n,G as i,h as l,i as m,D as u,y as p}from"./index-C5GbdPxY.js";const _=c({__name:"RoleBadge",props:{role:{}},setup(a){const t=a,o=()=>{var e;switch((e=t.role)==null?void 0:e.name){case"super_admin":return"#e53935";case"admin":return"#1e88e5";case"manager":return"#00acc1";case"waiter":return"#43a047";case"cashier":return"#fb8c00";case"kitchen":return"#8e24aa";case"admin_branch":return"#05c46b";case"customer":return"#6c5ce7";default:return"#757575"}};return(e,d)=>e.role?(l(),n(s,{key:0,color:o(),size:"x-small",style:{"font-size":"10px"},"text-color":"white"},{default:m(()=>{var r;return[u(p((r=e.role)==null?void 0:r.display_name),1)]}),_:1},8,["color"])):i("",!0)}});export{_};
