import{J as M,i as V}from"./index-CL6hUm94.js";import{u as I}from"./context-BAOSbWj-.js";import{V as y,an as N,s as j,D,w as L,c as R,a2 as d,a5 as n,a3 as t,a9 as g,ae as p,S as o,u as s,aa as m,k as q,F as z,aj as E,G as k,ad as f,af as w}from"./vue-DApy1uhY.js";import{b4 as G,b5 as J}from"./antd-B7v2hwFR.js";const P={class:"ant-pro-page-container"},W={flex:"","mt-8px":"","justify-between":""},A={flex:"","items-center":"","my-4px":"","of-hidden":""},H={"text-20px":"","line-height-32px":"","mr-12px":"","mb-0":"",truncate:"","font-600":""},K={key:1,"pt-12px":""},O={flex:"","w-full":""},Q={"flex-auto":""},U={"flex-shrink-0":""},te={__name:"index",props:{title:{type:String,required:!1}},setup(S){const{layoutMenu:$,appStore:B}=M(),{layoutSetting:C}=y(B),{menuDataMap:_}=y($),l=N();function u(){var c;const e=((c=l.meta)==null?void 0:c.originPath)??l.path;return e&&_.value.has(e)?_.value.get(e):{}}const a=j(u());D(()=>{a.value=u()});let r;L(()=>l.path,()=>{r&&(clearTimeout(r),r=void 0),r=setTimeout(()=>{a.value=u()},300)});const{contentWidth:h}=I(),T=R(()=>{const e=["flex flex-col flex-1"];return h.value==="Fluid"?e.push("w-full"):h.value==="Fixed"&&e.push("max-w-1200px w-1200px","mx-auto"),e});function i(e){return V(e)?e():e}return(e,c)=>{const x=G,F=J;return n(),d("div",P,[t("div",{class:w(["bg-[var(--bg-color)]",s(C).multiTab?"pb-16px":"py-16px"]),"px-24px":"","mb-24px":"","mx--24px":"","mt--24px":""},[s(a).hideInBreadcrumb?p("",!0):(n(),g(F,{key:0},{default:m(()=>{var v;return[(v=s(a).matched)!=null&&v.length?(n(!0),d(z,{key:0},E(s(a).matched,b=>(n(),g(x,{key:b.path},{default:m(()=>[k(f(i(b.title)),1)]),_:2},1024))),128)):p("",!0),q(x,null,{default:m(()=>[k(f(i(s(a).title)),1)]),_:1})]}),_:1})),t("div",W,[t("div",A,[o(e.$slots,"title",{},()=>[t("span",H,f(i(S.title??s(a).title)),1)])]),t("div",null,[o(e.$slots,"extra")])]),e.$slots.content||e.$slots.extraContent?(n(),d("div",K,[t("div",O,[t("div",Q,[o(e.$slots,"content")]),t("div",U,[o(e.$slots,"extraContent")])])])):p("",!0),o(e.$slots,"footer")],2),t("div",{class:w(s(T))},[o(e.$slots,"default")],2)])}}};export{te as _};
