import{k as m,d as l,u as i,q as v,y as E,z as P,o as n,f as c,r as p,n as t,a as e,G as k,l as N,p as j,M as g,c as h,w as V,X as z,O as C,h as B,j as A,N as O,V as T,g as q}from"./index-b8bd6c45.js";import{i as D,_ as b,E as K}from"./el-button-46177dcd.js";const S=Symbol("breadcrumbKey"),M=m({separator:{type:String,default:"/"},separatorIcon:{type:D}}),G=l({name:"ElBreadcrumb"}),X=l({...G,props:M,setup(d){const a=d,r=i("breadcrumb"),o=v();return E(S,a),P(()=>{const s=o.value.querySelectorAll(`.${r.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,u)=>(n(),c("div",{ref_key:"breadcrumb",ref:o,class:t(e(r).b()),"aria-label":"Breadcrumb",role:"navigation"},[p(s.$slots,"default")],2))}});var F=b(X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const H=m({to:{type:k([String,Object]),default:""},replace:{type:Boolean,default:!1}}),J=l({name:"ElBreadcrumbItem"}),L=l({...J,props:H,setup(d){const a=d,r=N(),o=j(S,void 0),s=i("breadcrumb"),u=r.appContext.config.globalProperties.$router,I=v(),$=()=>{!a.to||!u||(a.replace?u.replace(a.to):u.push(a.to))};return(f,Y)=>{var y,_;return n(),c("span",{class:t(e(s).e("item"))},[g("span",{ref_key:"link",ref:I,class:t([e(s).e("inner"),e(s).is("link",!!f.to)]),role:"link",onClick:$},[p(f.$slots,"default")],2),(y=e(o))!=null&&y.separatorIcon?(n(),h(e(K),{key:0,class:t(e(s).e("separator"))},{default:V(()=>[(n(),h(z(e(o).separatorIcon)))]),_:1},8,["class"])):(n(),c("span",{key:1,class:t(e(s).e("separator")),role:"presentation"},C((_=e(o))==null?void 0:_.separator),3))],2)}}});var w=b(L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ee=B(F,{BreadcrumbItem:w}),re=A(w),Q=m({header:{type:String,default:""},bodyStyle:{type:k([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),R=l({name:"ElCard"}),U=l({...R,props:Q,setup(d){const a=i("card");return(r,o)=>(n(),c("div",{class:t([e(a).b(),e(a).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(n(),c("div",{key:0,class:t(e(a).e("header"))},[p(r.$slots,"header",{},()=>[O(C(r.header),1)])],2)):T("v-if",!0),g("div",{class:t([e(a).e("body"),r.bodyClass]),style:q(r.bodyStyle)},[p(r.$slots,"default")],6)],2))}});var W=b(U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ae=B(W);export{ae as E,re as a,ee as b};
