import{a1 as B,e as d,J as K,u as g,d as F,U as h,a2 as i,a3 as l,F as C,ae as M,q as b,B as I,ad as p,V as _,k as v,af as V,ar as S,aB as N,o as A,v as D,a6 as E}from"./vue-vendor-CxLCUzY4.js";import O from"./index-C9-yetm4.js";import{bS as $,_ as L,B as w,cK as k,C as Q,aY as q}from"./index-B_2CoVdl.js";import{aL as z}from"./antd-vue-vendor-CDWW6V_M.js";import{useMultipleTabSetting as R}from"./useMultipleTabSetting-DUkfrN4E.js";import{a as G}from"./useContentViewHeight-DlpfApuB.js";import"./useWindowSizeFn-C3WExEpc.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./usePageContext-HMYqek-Q.js";function H(){const e=B(),{currentRoute:r}=e,{getShowMultipleTab:a}=R(),s=$(),c=d(()=>n(K(e.getRoutes()))||[]),u=d(()=>s.getTabList.reduce((o,m)=>(m.meta&&Reflect.has(m.meta,"frameSrc")&&o.push(m.name),o),[]));function n(o){let m=[];for(const P of o){const{meta:{frameSrc:T}={},children:y}=P;T&&m.push(P),y&&y.length&&m.push(...n(y))}return m=z(m,"name"),m}function t(o){return o.name===g(r).name}function f(o){return g(a)?g(u).includes(o):e.currentRoute.value.name===o}return{hasRenderFrame:f,getFramePages:c,showIframe:t,getAllFramePages:n}}const J=F({name:"FrameLayout",components:{FramePage:O},setup(){const{getFramePages:e,hasRenderFrame:r,showIframe:a}=H(),s=d(()=>g(e).length>0);return{getFramePages:e,hasRenderFrame:r,showIframe:a,showFrame:s}}}),U={key:0};function Y(e,r,a,s,c,u){const n=h("FramePage");return e.showFrame?(i(),l("div",U,[(i(!0),l(C,null,M(e.getFramePages,t=>(i(),l(C,{key:t.path},[t.meta.frameSrc&&e.hasRenderFrame(t.name)?b((i(),p(n,{key:0,frameSrc:t.meta.frameSrc},null,8,["frameSrc"])),[[I,e.showIframe(t)]]):_("",!0)],64))),128))])):_("",!0)}const j=L(J,[["render",Y]]);function W({route:e,openCache:r,cacheTabs:a,enableTransition:s,def:c}){if(!s)return;const u=a.includes(e.name),n="fade-slide";let t=n;return r&&(t=u&&e.meta.loaded?n:void 0),t||e.meta.transitionName||c}const X=F({name:"PageLayout",components:{FrameLayout:j},setup(){const{getShowMultipleTab:e}=R(),r=$(),{getOpenKeepAlive:a,getCanEmbedIFramePage:s}=w(),{getBasicTransition:c,getEnableTransition:u}=k(),n=d(()=>g(a)&&g(e)),t=d(()=>g(a)?r.getCachedTabList:[]);return{getTransitionName:W,openCache:n,getEnableTransition:u,getBasicTransition:c,getCaches:t,getCanEmbedIFramePage:s}}});function Z(e,r,a,s,c,u){const n=h("RouterView"),t=h("FrameLayout");return i(),l(C,null,[v(n,null,{default:V(({Component:f,route:o})=>[e.openCache?(i(),p(N,{key:0,include:e.getCaches},[(i(),p(S(f),{key:o.fullPath}))],1032,["include"])):(i(),p(S(f),{key:o.fullPath}))]),_:1}),e.getCanEmbedIFramePage?(i(),p(t,{key:0})):_("",!0)],64)}const x=L(X,[["render",Z]]),ee=F({name:"LayoutContent",components:{PageLayout:x},setup(){const{prefixCls:e}=Q("layout-content"),{getOpenPageLoading:r}=k(),{getLayoutContentMode:a,getPageLoading:s}=w(),u=q().openQianKun;return G(),A(()=>{}),{prefixCls:e,openQianKun:u,getOpenPageLoading:r,getLayoutContentMode:a,getPageLoading:s}}}),te={key:0,id:"content",class:"app-view-box"};function ne(e,r,a,s,c,u){const n=h("PageLayout"),t=D("loading");return b((i(),l("div",{class:E([e.prefixCls,e.getLayoutContentMode])},[v(n),e.openQianKun=="true"?(i(),l("div",te)):_("",!0)],2)),[[t,e.getOpenPageLoading&&e.getPageLoading]])}const le=L(ee,[["render",ne]]);export{le as default};
