import{h as a,a7 as e}from"./element-plus.DhcJM-BD.js";import{o as s,A as t,B as r,D as l,H as i,K as n,u,I as p,J as o,X as d,dZ as f,r as c,c as m,t as v}from"./.pnpm.DGfAnZKL.js";import{g as h}from"./index.D0FKZcEF.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./codemirror.CR5zRbyM.js";const _={class:"internal-app-container"},q={class:"internal-app-content"},V=["src"],j={key:0,class:"loading-overlay"},w=y(s({name:"InternalApp",inheritAttrs:!1,__name:"InternalApp",setup(s){const y=f(),w=h(),g=c(),A=c(!0),I=m(()=>y.query.url),P=m(()=>y.query.appName);function b(){A.value=!1}return t(()=>y.query.url,a=>{a&&g.value&&(A.value=!0,g.value.src=a)}),r(()=>{P.value&&l(()=>{const a=w.visitedViews.find(a=>a.path===y.path);a&&a.title!==P.value&&w.updateVisitedView({...a,title:P.value,fullPath:y.fullPath,query:y.query})})}),t(()=>P.value,a=>{if(a){const e=w.visitedViews.find(a=>a.path===y.path);e&&w.updateVisitedView({...e,title:a,fullPath:y.fullPath,query:y.query})}}),(s,t)=>{const r=a;return v(),i("div",_,[n("div",q,[n("iframe",{ref_key:"iframeRef",ref:g,src:u(I),class:"internal-app-iframe",frameborder:"0",allowfullscreen:"",onLoad:b},null,40,V),u(A)?(v(),i("div",j,[p(r,{class:"loading-icon"},{default:o(()=>[p(u(e))]),_:1}),t[0]||(t[0]=n("span",null,"加载中...",-1))])):d("",!0)])])}}}),[["__scopeId","data-v-0b2eb54d"]]);export{w as default};