import{a8 as p}from"./index-Vd7lvnU9.js";import{F as C,P as n,_ as V,R as v,a1 as s,a2 as f,a0 as c,X as g,m as r,T as h}from"./vendor-Dd8T34zR.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=r(()=>{const a=new Map;return l.value?.settings?.orders_statuses?.forEach(o=>{a.set(String(o.code).toLowerCase(),o)}),a}),e=r(()=>i.value.get(String(u.status).toLowerCase()));return(a,o)=>{const d=n("VcChip"),m=n("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,c(t.displayValue||t.status),1)]),_:1},8,["variant","color","icon","truncate"])]),content:s(()=>[f(c(t.displayValue||t.status),1)]),_:1})}}});export{w as _};
//# sourceMappingURL=order-status.vue_vue_type_script_setup_true_lang-DVy37N7p.js.map
