import{d as V,O as D,u as E,s as d,U as M,a as O,t as U,Q as S,$ as b,D as i,P as F,F as w,x as R,o as Q,a0 as Y,b as $,Y as j,c as q,f as n,g as z,M as c,m as h,l as p,a1 as G,e as s,w as g,v as y,N as H,T as K,_ as J}from"./index.3a30a18d.js";const W={class:"layout-parent"},X=V({name:"layoutParentView"}),se=V({...X,setup(Z){const k=D(()=>J(()=>import("./iframes.ef9ee511.js"),["iframes.ef9ee511.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),A=E(),{themeConfig:m}=d(A),T=M(),{keepAliveNames:u,cachedViews:v}=d(T),e=O({refreshRouterViewKey:"",iframeRefreshKey:"",keepAliveNameList:[],iframeList:[]}),{refreshRouterViewKey:L,iframeRefreshKey:N,iframeList:C}=U(e),a=S(),l=b(),I=i(()=>(console.log("key11",a.fullPath),a.fullPath)),f=i(()=>m.value.animation),P=i(()=>m.value.isTagsview?v.value:e.keepAliveNameList),_=i(()=>a.meta.isIframe),x=async()=>{console.log("router11",l.getRoutes()),console.log(l.getRoutes()),l.getRoutes().forEach(t=>{t.meta.isIframe&&(t.meta.isIframeOpen=!1,t.meta.loading=!0,e.iframeList.push({...t}))})};return F(()=>{e.keepAliveNameList=u.value,w.on("onTagsViewRefreshRouterView",t=>{e.keepAliveNameList=u.value.filter(o=>a.name!==o),e.refreshRouterViewKey="",e.iframeRefreshKey="",R(()=>{e.refreshRouterViewKey=t,e.iframeRefreshKey=t,e.keepAliveNameList=u.value})})}),Q(()=>{x(),R(()=>{setTimeout(()=>{if(m.value.isCacheTagsView){let t=Y.get("tagsViewList")||[];v.value=t.filter(o=>{var r;return(r=o.meta)==null?void 0:r.isKeepAlive}).map(o=>o.name)}},0)})}),$(()=>{w.off("onTagsViewRefreshRouterView",()=>{})}),j(()=>a.fullPath,()=>{e.refreshRouterViewKey=decodeURI(a.fullPath)},{immediate:!0}),(t,o)=>{const r=q("router-view");return n(),z("div",W,[(n(),c(r,{key:s(I)},{default:h(({Component:B})=>[p(K,{name:s(f),mode:"out-in"},{default:h(()=>[(n(),c(G,{include:s(P)},[g((n(),c(H(B),{key:s(L),class:"w100"})),[[y,!s(_)]])],1032,["include"]))]),_:2},1032,["name"])]),_:1})),p(K,{name:s(f),mode:"out-in"},{default:h(()=>[g(p(s(k),{class:"w100",refreshKey:s(N),name:s(f),list:s(C)},null,8,["refreshKey","name","list"]),[[y,s(_)]])]),_:1},8,["name"])])}}});export{se as default};