import{K as m,ao as p,c7 as v,L as _,P as f,aw as d,R as g,T as k,aq as C,b as V,M as l,S as x,V as B,U as h,W as y}from"./vendor-bSWkQivH.js";const F={class:"account-navigation-item__text"},z=m({__name:"account-navigation-item",props:{item:{},formatTextFunction:{type:Function,default:a=>a??""}},setup(a){var e;const t=p(a,"item"),{isActive:r}=v({to:((e=t.value)==null?void 0:e.route)??{}});return(o,T)=>{var n,s;const u=x("VcIcon");return l(),_("div",{class:C(["account-navigation-item",{"account-navigation-item--active":V(r)}])},[(l(),f(g((n=t.value)!=null&&n.route?"router-link":"a"),{to:(s=t.value)==null?void 0:s.route,class:"account-navigation-item__link"},{default:k(()=>{var c,i;return[B(u,{size:"sm",class:"account-navigation-item__icon",name:(c=t.value)==null?void 0:c.icon},null,8,["name"]),h("span",F,y(o.formatTextFunction((i=t.value)==null?void 0:i.title)),1)]}),_:1},8,["to"])),d(o.$slots,"default")],2)}}});export{z as _};
//# sourceMappingURL=account-navigation-item.vue_vue_type_script_setup_true_lang-DTA7PgWI.js.map
