import{_ as g,i as E,z as H,E as _}from"./base-60afcd29.js";import{b as k,i as C,d as u,u as h,c as $,o,v as i,n as a,e as s,r as l,J as n,f as z,h as S,a1 as D,x as d,y as w,a as f,w as N,g as V,z as b,A as y}from"./index-6f5315ad.js";import{a as B}from"./config-provider-338f87a0.js";const T=k({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:C(String),default:"solid"}}),I=u({name:"ElDivider"}),A=u({...I,props:T,setup(m){const p=m,r=h("divider"),c=$(()=>r.cssVar({"border-style":p.borderStyle}));return(e,v)=>(o(),i("div",{class:a([s(r).b(),s(r).m(e.direction)]),style:z(s(c)),role:"separator"},[e.$slots.default&&e.direction!=="vertical"?(o(),i("div",{key:0,class:a([s(r).e("text"),s(r).is(e.contentPosition)])},[l(e.$slots,"default")],2)):n("v-if",!0)],6))}});var J=g(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const L=S(J),j=k({icon:{type:E,default:()=>H},title:String,content:{type:String,default:""}}),q={back:()=>!0},F=["aria-label"],G=u({name:"ElPageHeader"}),K=u({...G,props:j,emits:q,setup(m,{emit:p}){const r=D(),{t:c}=B(),e=h("page-header"),v=$(()=>[e.b(),{[e.m("has-breadcrumb")]:!!r.breadcrumb,[e.m("has-extra")]:!!r.extra,[e.is("contentful")]:!!r.default}]);function P(){p("back")}return(t,O)=>(o(),i("div",{class:a(s(v))},[t.$slots.breadcrumb?(o(),i("div",{key:0,class:a(s(e).e("breadcrumb"))},[l(t.$slots,"breadcrumb")],2)):n("v-if",!0),d("div",{class:a(s(e).e("header"))},[d("div",{class:a(s(e).e("left"))},[d("div",{class:a(s(e).e("back")),role:"button",tabindex:"0",onClick:P},[t.icon||t.$slots.icon?(o(),i("div",{key:0,"aria-label":t.title||s(c)("el.pageHeader.title"),class:a(s(e).e("icon"))},[l(t.$slots,"icon",{},()=>[t.icon?(o(),f(s(_),{key:0},{default:N(()=>[(o(),f(V(t.icon)))]),_:1})):n("v-if",!0)])],10,F)):n("v-if",!0),d("div",{class:a(s(e).e("title"))},[l(t.$slots,"title",{},()=>[b(y(t.title||s(c)("el.pageHeader.title")),1)])],2)],2),w(s(L),{direction:"vertical"}),d("div",{class:a(s(e).e("content"))},[l(t.$slots,"content",{},()=>[b(y(t.content),1)])],2)],2),t.$slots.extra?(o(),i("div",{key:0,class:a(s(e).e("extra"))},[l(t.$slots,"extra")],2)):n("v-if",!0)],2),t.$slots.default?(o(),i("div",{key:1,class:a(s(e).e("main"))},[l(t.$slots,"default")],2)):n("v-if",!0)],2))}});var M=g(K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const W=S(M);export{W as E};
