import{O as v}from"./index-Dqv5IkpS.js";import{K as C,B as _,S as u,P as h,M as y,T as o,X as B,W as l,V as T,U as g}from"./vendor-bSWkQivH.js";const N="neutral",D=C({__name:"order-status",props:{status:{},displayValue:{},icon:{},truncate:{type:Boolean,default:!0}},setup(i){var a,s;const p=i,{themeContext:d}=v(),m=((s=(a=d.value)==null?void 0:a.settings)==null?void 0:s.orders_statuses)||[],e=_(()=>m.find(t=>p.status===t.code));return(t,S)=>{const V=u("VcChip"),f=u("VcTooltip");return y(),h(f,{class:"order-status"},{trigger:o(()=>{var n,r,c;return[T(V,{variant:(n=e.value)==null?void 0:n.variant,color:((r=e.value)==null?void 0:r.color)||N,icon:t.icon??((c=e.value)==null?void 0:c.icon),truncate:t.truncate,rounded:""},{default:o(()=>[g("span",null,l(t.displayValue||t.status),1)]),_:1},8,["variant","color","icon","truncate"])]}),content:o(()=>[B(l(t.displayValue||t.status),1)]),_:1})}}});export{D as _};
//# sourceMappingURL=order-status.vue_vue_type_script_setup_true_lang-pcb7u1Q9.js.map
