import{U as a,aG as e,bD as s,x as t,ag as i,aT as l,a1 as c,Z as n,d as r,e as o,a7 as d,g as b,a6 as u,an as m,h as p,j as v,k as f,m as k,p as g,n as x,am as h,f as y,a8 as $,ap as _,_ as j,u as S,al as H}from"./index.286e9b79.js";import{E as B}from"./divider.948c4b18.js";const E=a({icon:{type:e,default:()=>s},title:String,content:{type:String,default:""}}),w=["aria-label"],A=t({name:"ElPageHeader"});const C=_($(t({...A,props:E,emits:{back:()=>!0},setup(a,{emit:e}){const s=i(),{t:t}=l(),$=c("page-header"),_=n((()=>[$.b(),{[$.m("has-breadcrumb")]:!!s.breadcrumb,[$.m("has-extra")]:!!s.extra,[$.is("contentful")]:!!s.default}]));function j(){e("back")}return(a,e)=>(r(),o("div",{class:d(b(_))},[a.$slots.breadcrumb?(r(),o("div",{key:0,class:d(b($).e("breadcrumb"))},[u(a.$slots,"breadcrumb")],2)):m("v-if",!0),p("div",{class:d(b($).e("header"))},[p("div",{class:d(b($).e("left"))},[p("div",{class:d(b($).e("back")),role:"button",tabindex:"0",onClick:j},[a.icon||a.$slots.icon?(r(),o("div",{key:0,"aria-label":a.title||b(t)("el.pageHeader.title"),class:d(b($).e("icon"))},[u(a.$slots,"icon",{},(()=>[a.icon?(r(),v(b(g),{key:0},{default:f((()=>[(r(),v(k(a.icon)))])),_:1})):m("v-if",!0)]))],10,w)):m("v-if",!0),p("div",{class:d(b($).e("title"))},[u(a.$slots,"title",{},(()=>[x(h(a.title||b(t)("el.pageHeader.title")),1)]))],2)],2),y(b(B),{direction:"vertical"}),p("div",{class:d(b($).e("content"))},[u(a.$slots,"content",{},(()=>[x(h(a.content),1)]))],2)],2),a.$slots.extra?(r(),o("div",{key:0,class:d(b($).e("extra"))},[u(a.$slots,"extra")],2)):m("v-if",!0)],2),a.$slots.default?(r(),o("div",{key:1,class:d(b($).e("main"))},[u(a.$slots,"default")],2)):m("v-if",!0)],2))}}),[["__file","page-header.vue"]])),D={class:"head-card-box"},F={class:"text-large font-600 mr-3"},G=j({__name:"page-header",props:{title:String,back:Function,style:String},emits:["change","click"],setup(a,{emit:e}){const s=S(),t=a,i=null!=t.jump?t.back:()=>{s.back()};return(a,e)=>{const s=C;return r(),o("div",{class:"head-card",style:H(t.style)},[p("div",D,[y(s,{icon:"ArrowLeft",onBack:b(i)},{content:f((()=>[p("span",F,h(t.title),1)])),_:1},8,["onBack"])])],4)}}},[["__scopeId","data-v-e3208322"]]);export{G as _};
