import{d as r,x as l,a as t,C as d,R as n,E as u}from"./index-74aaacd7.js";import{s as c,a as o,w as p}from"./student-center-0b9ea657.js";import{I as w}from"./index-418977f3.js";const x=r({name:"download",setup(){const e=l({wxStatus:!1}),i=()=>{if(n().weixin){e.wxStatus=!0;return}let s="",a="";location.origin.indexOf("kt.colexiu.com")>-1?(s="https://apps.apple.com/us/app/%E9%9F%B3%E4%B9%90%E6%95%B0%E5%AD%97%E8%AF%BE%E5%A0%82/id6452725878",a="https://appstore.ks3-cn-beijing.ksyuncs.com/kt_cooleshow_student.apk"):(s="https://www.pgyer.com/dzRRNN",a="https://www.pgyer.com/2meenh"),n().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?s&&(window.location.href=s):/(Android)/i.test(navigator.userAgent)?window.location.href=a:u("请用手机或移动设备打开")};return()=>t("div",{class:[o.downloadContainer]},[t(w,{src:c},null),t("div",{class:o.buttonGroup},[t(d,{round:!0,size:"large",class:o.btn,onClick:i},null)]),e.wxStatus&&t("div",{class:o.wxpopup,onClick:()=>{e.wxStatus=!1}},[t("img",{src:p,alt:""},null)])])}});export{x as default};