import{d as V,O as E,i as b,s as d,a5 as D,h as O,t as j,a3 as M,Y as S,c as i,X as U,I as w,B as y,j as W,a7 as X,k as Y,W as q,l as z,o as n,a as F,b as f,y as p,x as h,a8 as G,u as s,w as R,v as g,r as H,T as k,P as J,_ as Q}from"./index.ecaf1036.js";const Z={class:"layout-parent"},$=V({name:"layoutParentView"}),ee=V({...$,setup(se){const K=E(()=>J(()=>import("./iframes.f03360d0.js"),["assets/iframes.f03360d0.js","assets/index.ecaf1036.js","assets/index.319ce9dc.css"])),A=b(),{themeConfig:u}=d(A),T=D(),{keepAliveNames:m,cachedViews:_}=d(T),e=O({refreshRouterViewKey:"",iframeRefreshKey:"",keepAliveNameList:[],iframeList:[]}),{refreshRouterViewKey:L,iframeRefreshKey:N,iframeList:C}=j(e),a=M(),l=S(),I=i(()=>(console.log("key11",a.fullPath),a.fullPath)),c=i(()=>u.value.animation),P=i(()=>u.value.isTagsview?_.value:e.keepAliveNameList),v=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 U(()=>{e.keepAliveNameList=m.value,w.on("onTagsViewRefreshRouterView",t=>{e.keepAliveNameList=m.value.filter(o=>a.name!==o),e.refreshRouterViewKey="",e.iframeRefreshKey="",y(()=>{e.refreshRouterViewKey=t,e.iframeRefreshKey=t,e.keepAliveNameList=m.value})})}),W(()=>{x(),y(()=>{setTimeout(()=>{if(u.value.isCacheTagsView){let t=X.get("tagsViewList")||[];_.value=t.filter(o=>{var r;return(r=o.meta)==null?void 0:r.isKeepAlive}).map(o=>o.name)}},0)})}),Y(()=>{w.off("onTagsViewRefreshRouterView",()=>{})}),q(()=>a.fullPath,()=>{e.refreshRouterViewKey=decodeURI(a.fullPath)},{immediate:!0}),(t,o)=>{const r=z("router-view");return n(),F("div",Z,[(n(),f(r,{key:s(I)},{default:p(({Component:B})=>[h(k,{name:s(c),mode:"out-in"},{default:p(()=>[(n(),f(G,{include:s(P)},[R((n(),f(H(B),{key:s(L),class:"w100"})),[[g,!s(v)]])],1032,["include"]))]),_:2},1032,["name"])]),_:1})),h(k,{name:s(c),mode:"out-in",persisted:""},{default:p(()=>[R(h(s(K),{class:"w100",refreshKey:s(N),name:s(c),list:s(C)},null,8,["refreshKey","name","list"]),[[g,s(v)]])]),_:1},8,["name"])])}}}),ae=Q(ee,[["__file","/data/jenkins/workspace/pay.ws.baibaodun.com.cn/src/layout/routerView/parent.vue"]]);export{ae as default};