import{C as m,ak as p,ci as v,D as _,K as f,aD as d,M as g,O as k,am as C,u as x,E as l,N as B,Q as D,P as V,R as h}from"./vendor-BGtMsOoo.js";const y={class:"account-navigation-item__text"},E=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,N)=>{var n,s;const u=B("VcIcon");return l(),_("div",{class:C(["account-navigation-item",{"account-navigation-item--active":x(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[D(u,{size:"sm",class:"account-navigation-item__icon",name:(c=t.value)==null?void 0:c.icon},null,8,["name"]),V("span",y,h(o.formatTextFunction((i=t.value)==null?void 0:i.title)),1)]}),_:1},8,["to"])),d(o.$slots,"default")],2)}}});export{E as _};
//# sourceMappingURL=account-navigation-item.vue_vue_type_script_setup_true_lang-BXhNrOOe.js.map
