import{T as l,f as n,g as u,n as o,D as a}from"./ResizeObserver.es.62ab429c.js";const c=(i,e)=>{const s={url:i,action:(e==null?void 0:e.action)||"h5",pageTag:(e==null?void 0:e.pageTag)||1},t=encodeURIComponent(JSON.stringify(s));console.log(t,"query"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${t}`:/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${t}`:l("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},f=i=>{if(n().isApp)if(u.platformType==="STUDENT"){n().ios?window.location.replace(i):(o({api:"openWebView",content:{url:i,orientation:1,isHideTitle:!1}}),o({api:"back"}));return}else u.platformType==="TEACHER"&&a.alert({title:"\u63D0\u793A",message:"\u8BF7\u4F7F\u7528\u9177\u4E50\u79C0\u5B66\u751F\u7AEF\u626B\u7801\u6253\u5F00",confirmButtonColor:"#2dc7aa"}).then(()=>{o({api:"back"})});else c(i)};export{f as i,c as s};
