import{O as v}from"./index-Dqv5IkpS.js";import{K as C,B as _,S as r,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 q="neutral",w=C({__name:"quote-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.quote_statuses)||[],e=_(()=>m.find(t=>p.status===t.code));return(t,N)=>{const V=r("VcChip"),f=r("VcTooltip");return y(),h(f,{class:"quote-status"},{trigger:o(()=>{var n,u,c;return[T(V,{variant:(n=e.value)==null?void 0:n.variant,icon:t.icon??((u=e.value)==null?void 0:u.icon),color:((c=e.value)==null?void 0:c.color)||q,truncate:t.truncate,rounded:""},{default:o(()=>[g("span",null,l(t.displayValue||t.status),1)]),_:1},8,["variant","icon","color","truncate"])]}),content:o(()=>[B(l(t.displayValue||t.status),1)]),_:1})}}});export{w as _};
//# sourceMappingURL=quote-status.vue_vue_type_style_index_0_lang-D0trdr7i.js.map
