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