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