import{d as C,u as I,e as v,S as P,_ as B}from"./index-a6ee13d3.js";import{H as V,_ as E,j as u,E as x,n as h,i as D,Z as O,f as S,ah as M,o as p,c as U,V as a,P as l,X as _,O as d,Q as w,W as R,R as b,aB as j,u as H,aP as Q}from"./@vue-6dabbe94.js";import{u as W,b as X}from"./vue-router-c1461dfc.js";import{s as y}from"./pinia-b6f74250.js";import"./vue-i18n-b3581196.js";import"./@intlify-ea47d1db.js";import"./source-map-7d7e1c08.js";import"./vue-b1ba6f14.js";import"./js-cookie-edb2da2a.js";import"./@element-plus-64e6e14a.js";import"./nprogress-08a53ce8.js";import"./axios-4a70c6fc.js";import"./qs-c5b6dbf2.js";import"./side-channel-394f276c.js";import"./get-intrinsic-bd2830fd.js";import"./has-symbols-e8f3ca0e.js";import"./has-proto-f7d0b240.js";import"./function-bind-22e7ee79.js";import"./has-26d28e02.js";import"./call-bind-e5c1c8b0.js";import"./object-inspect-8fd4bade.js";import"./element-plus-91d6d961.js";import"./lodash-es-9851428c.js";import"./@vueuse-e129c873.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-f6fdf7b4.js";import"./async-validator-dee29e8b.js";import"./memoize-one-297ddbcb.js";import"./escape-html-b8998962.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-880a26aa.js";import"./mitt-f7ef348c.js";import"./vue-grid-layout-ec2a62c3.js";const Z={class:"layout-parent"},q=V({name:"layoutParentView"}),Ce=V({...q,setup(z){const K=Q(()=>B(()=>import("./iframes-19f65e8f.js"),["assets/js/iframes-19f65e8f.js","assets/js/@vue-6dabbe94.js","assets/js/vue-router-c1461dfc.js"])),o=W(),g=X(),A=C(),L=I(),{keepAliveNames:r,cachedViews:f}=y(A),{themeConfig:m}=y(L),e=E({refreshRouterViewKey:"",iframeRefreshKey:"",keepAliveNameList:[],iframeList:[]}),n=u(()=>m.value.animation),T=u(()=>m.value.isTagsview?f.value:e.keepAliveNameList),c=u(()=>o.meta.isIframe),k=async()=>{g.getRoutes().forEach(t=>{t.meta.isIframe&&(t.meta.isIframeOpen=!1,t.meta.loading=!0,e.iframeList.push({...t}))})};return x(()=>{e.keepAliveNameList=r.value,v.on("onTagsViewRefreshRouterView",t=>{e.keepAliveNameList=r.value.filter(i=>o.name!==i),e.refreshRouterViewKey="",e.iframeRefreshKey="",h(()=>{e.refreshRouterViewKey=t,e.iframeRefreshKey=t,e.keepAliveNameList=r.value})})}),D(()=>{k(),h(()=>{setTimeout(()=>{if(m.value.isCacheTagsView){let t=P.get("tagsViewList")||[];f.value=t.filter(i=>{var s;return(s=i.meta)==null?void 0:s.isKeepAlive}).map(i=>i.name)}},0)})}),O(()=>{v.off("onTagsViewRefreshRouterView",()=>{})}),S(()=>o.fullPath,()=>{e.refreshRouterViewKey=decodeURI(o.fullPath)},{immediate:!0}),(t,i)=>{const s=M("router-view");return p(),U("div",Z,[a(s,null,{default:l(({Component:N})=>[a(_,{name:n.value,mode:"out-in"},{default:l(()=>[(p(),d(j,{include:T.value},[w((p(),d(b(N),{key:e.refreshRouterViewKey,class:"w100"})),[[R,!c.value]])],1032,["include"]))]),_:2},1032,["name"])]),_:1}),a(_,{name:n.value,mode:"out-in"},{default:l(()=>[w(a(H(K),{class:"w100",refreshKey:e.iframeRefreshKey,name:n.value,list:e.iframeList},null,8,["refreshKey","name","list"]),[[R,c.value]])]),_:1},8,["name"])])}}});export{Ce as default};
