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