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