import{g as e}from"./index-mv7arXuk.js";import{B as t,g as o,m as a,H as r,L as i,P as s,u as n,d as u}from"./vue-vendor-DZekML78.js";import"./element-plus-DSMJnpwa.js";import"./utils-cPVb2Haz.js";const c={ref:"container",class:"w-full h-[calc(100vh-88px)]"},l=["src"],d=t({name:"WarmFlow"}),m=t({...d,setup(t,{expose:d}){const{proxy:m}=o(),f=u(""),p=()=>{window.onmessage=e=>{if("close"===e.data.method)!function(){const e={path:"/workflow/processDefinition",query:{activeName:m.$route.query.activeName}};m.$tab.closeOpenPage(e)}()}},h=async(t,o)=>{const a=`http://wuyeapi.bugtc.com/warm-flow-ui/index.html?id=${t}&onlyDesignShow=true`;f.value=a+"&Authorization=Bearer "+e()+"&clientid=e5cd7e4891bf95d1d19206ce24a7b32e"};return a(()=>{p(),h(m.$route.query.definitionId,m.$route.query.disabled)}),d({open:h}),(e,t)=>(r(),i("div",c,[s("iframe",{ref:"iframe",src:n(f),frameborder:"0",height:"100%",style:{height:"100%",width:"inherit"}},null,8,l)],512))}});export{m as default};
