You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
775 B

var l=(i,c,e)=>new Promise((s,n)=>{var a=t=>{try{o(e.next(t))}catch(d){n(d)}},r=t=>{try{o(e.throw(t))}catch(d){n(d)}},o=t=>t.done?s(t.value):Promise.resolve(t.value).then(a,r);o((e=e.apply(i,c)).next())});import{X as f,Y as p,Z as u,$ as w}from"./index-f4658ae7.js";function m(i,c=""){const e=window.open(i,"_blank");if(i.includes("EditFlow")&&e){const s=setInterval(function(){return l(this,null,function*(){if(e.closed){clearInterval(s);const n=f();if(n!=null){const a=new w("BP.WF.HttpHandler.WF_Admin_TestingContainer");a.AddPara("Token",n);const r=yield a.DoMethodReturnString("Default_LetAdminerLogin");if(typeof r=="string"&&r.includes("err@")){p.error(r.replace("err@",""));return}const o=u();o.token=n,yield o.getUserInfoAction()}}})},1e3)}}export{m as windowOpen};