import{a3 as m}from"./index-GCDRvGOr.js";import{M as V,E as s,U as n,R as C,O as v,V as a,Z as f,Y as r,X as _,W as g}from"./vendor-CsGITfgk.js";const h="neutral",B=V({__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(o=>{t.set(String(o.code).toLowerCase(),o)}),t}),e=s(()=>p.value.get(String(u.status).toLowerCase()));return(t,o)=>{const i=n("VcChip"),d=n("VcTooltip");return v(),C(d,{class:"order-status"},{trigger:a(()=>[_(i,{variant:e.value?.variant,color:e.value?.color||h,icon:t.icon??e.value?.icon,truncate:t.truncate,rounded:""},{default:a(()=>[g("span",null,r(t.displayValue||t.status),1)]),_:1},8,["variant","color","icon","truncate"])]),content:a(()=>[f(r(t.displayValue||t.status),1)]),_:1})}}});export{B as _};
//# sourceMappingURL=order-status.vue_vue_type_script_setup_true_lang-B5RHNRau.js.map
