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