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