import{I as c}from"./logo-1.1c5bc018.js";import{d as h,r as p,o as v,c as e,b as i,F as A,e as C,u as F}from"./index.3718c0a8.js";import{P as k,I as x}from"./index.2b675c4f.js";import{B as T,T as y}from"./index.e03f08ff.js";import{i as S,a as P}from"./utils.e748d7c8.js";const b="_wx_bg_53wkw_1",L="_theFooterApp_53wkw_12",E="_appContent_53wkw_52",D="_top_53wkw_55",I="_des_53wkw_66",U="_content_53wkw_72",$="_item_53wkw_75",B="_tag_53wkw_89",R="_description_53wkw_97",N="_title_53wkw_100",O="_itemLogo_53wkw_107",t={wx_bg:b,theFooterApp:L,appContent:E,top:D,des:I,content:U,item:$,tag:B,description:R,title:N,itemLogo:O},V=""+new URL("wx_bg.7fc6518a.png",import.meta.url).href,[d,a]=C(!1),j=h({name:"TheFooterApp",setup(){const g=F(),n=p(),w=()=>{g.name=="index"&&a(!0)};v(()=>{w(),window.addEventListener("error",o=>{console.log(o),console.log(o.message),console.log(o.lineno),console.log(o.colno),console.log(o.error),o.preventDefault()},!0)});const _=[{title:"\u9177\u4E50\u79C0",des:"\u5B66\u4E60\u6D77\u91CF\u4F18\u8D28\u4E50\u8C31",tag:"\u63A8\u8350",type:"ColexiuStudent"},{title:"\u9177\u4E50\u79C0\u5B66\u9662",des:"\u6211\u8981\u63D0\u4F9B\u4F18\u8D28\u5185\u5BB9",tag:"",type:"ColexiuTeacher"}],l=p(!1),m=o=>{var r,u;if(S()||P()){l.value=!0;return}const f={url:"",action:"h5",pageTag:1};try{const s=encodeURIComponent(JSON.stringify(f));o=="ColexiuStudent"?/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${s}`:/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${s}`:(console.log("\u{1F680} ",n.value),(r=n.value)==null||r.downLoadApp("student")):/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuTeacher://linkUrl=${s}`:/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiuteacher://html:8888/SplashActivity?url=${s}`:(console.log("\u{1F680} ",n.value),(u=n.value)==null||u.downLoadApp("teacher"))}catch(s){console.log(s)}};return()=>e(A,null,[l.value&&e("div",{class:t.wx_bg},[e("img",{src:V},null)]),e("div",{class:t.theFooterApp,onClick:()=>a(!0)},[e("img",{class:t.img,src:c},null),e("span",null,[i("\u6253\u5F00APP\u770B\u6D77\u91CF\u70ED\u95E8\u4E50\u8C31")])]),e(k,{position:"bottom",round:!0,show:d.value,"onUpdate:show":o=>d.value=o,onClose:()=>l.value=!1},{default:()=>[e("div",{class:t.appContent},[e("div",{class:t.top},[e("span",null,[i("\u6253\u5F00\u65B9\u5F0F")]),e("div",{class:t.des,onClick:()=>a(!1)},[e("span",null,[i("\u7EE7\u7EED\u4F7F\u7528\u6D4F\u89C8\u5668")]),e(x,{name:"play",size:10},null)])]),e("div",{class:t.content},[_.map(o=>e("div",{class:t.item},[e("img",{class:t.itemLogo,src:c,alt:""},null),e("div",{class:t.description},[e("div",{class:t.title},[o.title,o.tag&&e("span",{class:t.tag},[o.tag])]),e("div",{class:t.des},[o.des])]),e(T,{round:!0,type:"primary",onClick:()=>m(o.type)},{default:()=>[i("\u6253\u5F00")]})]))])])]}),e(y,{ref:n},null)])}});export{j as T};
