import{a3 as m}from"./index-BZco6cza.js";import{F as C,m as s,P as n,_ as V,R as v,a1 as o,a2 as _,a0 as r,X as f,T as g}from"./vendor-DJC-2VPc.js";const h="neutral",w=C({__name:"order-status",props:{status:{},displayValue:{},icon:{},truncate:{type:Boolean,default:!0}},setup(c){const u=c,{themeContext:l}=m(),p=s(()=>{const t=new Map;return l.value?.settings?.orders_statuses?.forEach(a=>{t.set(String(a.code).toLowerCase(),a)}),t}),e=s(()=>p.value.get(String(u.status).toLowerCase()));return(t,a)=>{const i=n("VcChip"),d=n("VcTooltip");return v(),V(d,{class:"order-status"},{trigger:o(()=>[f(i,{variant:e.value?.variant,color:e.value?.color||h,icon:t.icon??e.value?.icon,truncate:t.truncate,rounded:""},{default:o(()=>[g("span",null,r(t.displayValue||t.status),1)]),_:1},8,["variant","color","icon","truncate"])]),content:o(()=>[_(r(t.displayValue||t.status),1)]),_:1})}}});export{w as _};
//# sourceMappingURL=order-status.vue_vue_type_script_setup_true_lang-D-VgT1ID.js.map
