import{I as l}from"./logo-1.1c5bc018.js";import{d as g,o as _,r as m,c as t,b as n,F as f,e as h,u as v}from"./index.ce3b9611.js";import{P as C,I as F}from"./_commonjsHelpers.5bb79380.js";import{B as k}from"./index.f357c296.js";import{i as A,a as x}from"./utils.e748d7c8.js";const y="_wx_bg_53wkw_1",S="_theFooterApp_53wkw_12",T="_appContent_53wkw_52",P="_top_53wkw_55",b="_des_53wkw_66",E="_content_53wkw_72",L="_item_53wkw_75",D="_tag_53wkw_89",I="_description_53wkw_97",U="_title_53wkw_100",$="_itemLogo_53wkw_107",e={wx_bg:y,theFooterApp:S,appContent:T,top:P,des:b,content:E,item:L,tag:D,description:I,title:U,itemLogo:$},B=""+new URL("wx_bg.7fc6518a.png",import.meta.url).href,[r,a]=h(!1),z=g({name:"TheFooterApp",setup(){const u=v(),c=()=>{u.name=="index"&&a(!0)};_(()=>{c()});const p=[{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"}],i=m(!1),d=o=>{if(A()||x()){i.value=!0;return}const w={url:"",action:"h5",pageTag:1};try{const s=encodeURIComponent(JSON.stringify(w));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}`):/(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}`)}catch{}};return()=>t(f,null,[i.value&&t("div",{class:e.wx_bg},[t("img",{src:B},null)]),t("div",{class:e.theFooterApp,onClick:()=>a(!0)},[t("img",{class:e.img,src:l},null),t("span",null,[n("\u6253\u5F00APP\u770B\u6D77\u91CF\u70ED\u95E8\u4E50\u8C31")])]),t(C,{position:"bottom",round:!0,show:r.value,"onUpdate:show":o=>r.value=o,onClose:()=>i.value=!1},{default:()=>[t("div",{class:e.appContent},[t("div",{class:e.top},[t("span",null,[n("\u6253\u5F00\u65B9\u5F0F")]),t("div",{class:e.des,onClick:()=>a(!1)},[t("span",null,[n("\u7EE7\u7EED\u4F7F\u7528\u6D4F\u89C8\u5668")]),t(F,{name:"play",size:10},null)])]),t("div",{class:e.content},[p.map(o=>t("div",{class:e.item},[t("img",{class:e.itemLogo,src:l,alt:""},null),t("div",{class:e.description},[t("div",{class:e.title},[o.title,o.tag&&t("span",{class:e.tag},[o.tag])]),t("div",{class:e.des},[o.des])]),t(k,{round:!0,type:"primary",onClick:()=>d(o.type)},{default:()=>[n("\u6253\u5F00")]})]))])])]})])}});export{z as T};
