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