import{eventType as e,objectType as t}from"../_util/type.mjs";import{getPropsSlot as n}from"../_util/props-util/index.mjs";import r from"../config-provider/hooks/useConfigInject.mjs";import i from"../_util/vue-types/index.mjs";import a from"../dropdown/dropdown.mjs";import{createVNode as o,defineComponent as s}from"vue";import{DownOutlined as c}from"@antsoo-lib/icons";var l=()=>({prefixCls:String,href:String,separator:i.any,dropdownProps:t(),overlay:i.any,onClick:e()}),u=s({compatConfig:{MODE:3},name:`ABreadcrumbItem`,inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:l(),slots:Object,setup(e,{slots:t,attrs:i,emit:s}){let{prefixCls:l}=r(`breadcrumb`,e),u=(r,i)=>{let s=n(t,e,`overlay`);return s?o(a,{...e.dropdownProps,overlay:s,placement:`bottom`},{default:()=>[o(`span`,{class:`${i}-overlay-link`},[r,o(c,null,null)])]}):r},d=e=>{s(`click`,e)};return()=>{let r=n(t,e,`separator`)??`/`,a=n(t,e),{class:s,style:c,...f}=i,p;return p=e.href===void 0?o(`span`,{class:`${l.value}-link`,onClick:d,...f},[a]):o(`a`,{class:`${l.value}-link`,onClick:d,...f},[a]),p=u(p,l.value),a==null?null:o(`li`,{class:s,style:c},[p,r&&o(`span`,{class:`${l.value}-separator`},[r])])}}});export{l as breadcrumbItemProps,u as default};