PageSourceSearch

https://www.portail-autoentrepreneur.fr/account/app/_nuxt/SidebarNavItem-DlJ5JOnn.js

js portail-autoentrepreneur.fr collected 2026-09-25 03:04:31 UTC 3,008 bytes, 1 lines download raw bytes

1import{d as _,ca as g,c as a,aR as b,fF as x,n as h}from"./client-DejcwEYL.js";import{r as k}from"./useListingStore-Da_tAMVk.js";const y=_({__name:"SidebarNavItem",props:{item:{default:()=>({})},access:{type:Boolean,default:!0}},setup(r){const e=r,t=g(),o=a(()=>{var i;return(i=e.item.tag)!=null?i:"NuxtLink"}),c=a(()=>{const{link:i,nestedRoutes:n}=e.item,s=t.name;if(!i||!s)return!1;const p=s===i.name,f=s.startsWith("".concat(i.name,"-")),v=n?.some(l=>{var m;return((m=l?.to)==null?void 0:m.name)===s});return p||f||v}),u=a(()=>{var i;return((i=e.item.link)==null?void 0:i.name)==="incorporate"});function d(i){var n;if(e.item.action){i.preventDefault(),e.item.action();return}const s=(n=e.item.link)!=null&&n.name?x[e.item.link.name]:void 0;s&&k(s)}return{__sfc:!0,props:e,route:t,componentName:o,isActiveRoute:c,isIncorporate:u,handleClick:d,MpBadge:b}}});var C=function(){var e=this,t=e._self._c,o=e._self._setupProxy;return t(o.componentName,{tag:"component",staticClass:"nav-item relative flex min-h-8 cursor-pointer flex-nowrap items-center gap-2 border-none bg-transparent px-3 py-1 no-underline select-none hover:group-[.ff-solo]:bg-neutral-50 focus-visible:group-[.ff-solo]:bg-neutral-50",class:{"--active":o.isActiveRoute},attrs:{to:e.item.link??"",target:e.item.external?"_blank":"_self"},on:{click:o.handleClick},nativeOn:{click:function(c){return o.handleClick.apply(null,arguments)}}},[e.item.defaultIcon?t("MpIcon",{staticClass:"link-icon grow-0",class:[e.item.iconColor,{"--active":o.isActiveRoute}],attrs:{icon:o.isActiveRoute?e.item.activeIcon:e.item.defaultIcon,size:"lg"}}
1):e._e(),t("div",{staticClass:"nav-item__content flex grow items-center justify-between"},[t("div",{staticClass:"flex grow justify-between font-[family-name:var(--theme-sidebar-font)] text-ellipsis"},[e._v(" "+e._s(e.item.text)+" ")]),t("div",[e.item.notifications&&e.item.notifications>0?t("div",{staticClass:"ms-1 flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full border border-solid border-[color:var(--theme-sidebar-notifications-border-color,var(--color-purple-500))] bg-[var(--theme-sidebar-notifications-bg,var(--color-purple-100))] text-center text-xs/[18px] font-semibold text-[color:var(--theme-sidebar-notifications-color,var(--color-purple-500))]"},[e._v(" "+e._s(e.item.notifications)+" ")]):e.access?e.item.badge?t(o.MpBadge,{staticClass:"ms-1",attrs:{text:e.item.badge.text,color:e.item.badge.color,size:"sm"}}):e.item.isNew?t(o.MpBadge,{staticClass:"ms-1",attrs:{text:"Nouv.",color:"purple",size:"sm"}}):e.item.isBeta?t(o.MpBadge,{staticClass:"ms-1",attrs:{text:"Beta",color:"gray",size:"sm"}}
1):e._e():t("MpIcon",{staticClass:"ms-1 justify-self-end text-[color:var(--theme-sidebar-locked-icon-color,var(--color-yellow-400))]",attrs:{icon:"material-symbols-light:bolt-rounded",size:"lg"}}),o.isIncorporate?t("MpIcon",{attrs:{icon:"ph:arrow-square-right",size:"sm",theme:"primary"}}):e._e()],1)])],1)},I=[],N=h(y,C,I,!1,null,"966d3aef");const M=N.exports;export{M as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.