import{d as l,k as c,O as m,w as _,r as u,o as f,c as d,a as h,z as g,u as v}from"./vue.1703796278973.js";import{L as x,T as $}from"./comm.1703796278973.js";import{g as y}from"./apply.1703796278973.js";import{_ as U}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./system.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const b=["src"],k=l({__name:"index",setup(w){const a=c(""),n=m(),i=async(t,r)=>{const e=await y(t);let s=r;if(e.status===200)if(e.result.page.routeType==="hash"&&(s=`${r}`),e.result.provider==="internal-standalone"){const o=`${e.result.page.baseUrl}/api/application/sso/${t}/login?redirect=${s}?layout=false`;a.value=o}else if(e.result.provider==="internal-integrated"){const o=`${e.result.page.baseUrl}?X-Access-Token=${x.get($)}`;a.value=o}else{const o=`${e.result.page.baseUrl}/${s}`;a.value=o}};return _(()=>{var r,e,s;const t=(r=n.matched)==null?void 0:r[0];if((e=t==null?void 0:t.meta)!=null&&e.isApp){const o=(s=n.path.split("/"))==null?void 0:s[1],p=n.path.split("/").slice(2).join("/");i(o,p)}}),(t,r)=>{const e=u("page-container");return f(),d(e,null,{default:h(()=>[g("iframe",{src:v(a),frameBorder:"0",style:{width:"100%",height:"calc(100vh - 140px)"}},null,8,b)]),_:1})}}});const H=U(k,[["__scopeId","data-v-3c4b3f33"]]);export{H as default};
