import{c as T,q as C,m as u,n as E,D as I,E as A,I as z,z as R,L as F,w as L,P as N,F as b}from"./index.2b675c4f.js";import{v as U,d as P,c as t,r as q,b as w}from"./index.3718c0a8.js";const[O,l]=T("button"),V=U({},C,{tag:u("button"),text:String,icon:String,type:u("default"),size:u("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:u("button"),loadingSize:E,loadingText:String,loadingType:String,iconPosition:u("left")});var Y=P({name:O,props:V,emits:["click"],setup(e,{emit:m,slots:i}){const g=I(),s=()=>i.loading?i.loading():t(F,{size:e.loadingSize,type:e.loadingType,class:l("loading")},null),f=()=>{if(e.loading)return s();if(i.icon)return t("div",{class:l("icon")},[i.icon()]);if(e.icon)return t(z,{name:e.icon,class:l("icon"),classPrefix:e.iconPrefix},null)},c=()=>{let n;if(e.loading?n=e.loadingText:n=i.default?i.default():e.text,n)return t("span",{class:l("text")},[n])},d=()=>{const{color:n,plain:p}=e;if(n){const a={color:p?n:"white"};return p||(a.background=n),n.includes("gradient")?a.border=0:a.borderColor=n,a}},r=n=>{e.loading?R(n):e.disabled||(m("click",n),g())};return()=>{const{tag:n,type:p,size:a,block:j,round:v,plain:y,square:k,loading:D,disabled:x,hairline:h,nativeType:B,iconPosition:_}=e,S=[l([p,a,{plain:y,block:j,round:v,square:k,loading:D,disabled:x,hairline:h}]),{[A]:h}];return t(n,{type:B,class:S,style:d(),disabled:x,onClick:r},{default:()=>[t("div",{class:l("content")},[_==="left"&&f(),c(),_==="right"&&f()])]})}}});const en=L(Y);const G="_downPoup_xc0jj_1",H="_theDown_xc0jj_6",J="_title_xc0jj_6",K="_btns_xc0jj_14",M="_btn_xc0jj_14",Q="_down_xc0jj_1",W="_text_xc0jj_29",X="_icon_xc0jj_33",Z="_top_xc0jj_38",o={downPoup:G,theDown:H,title:J,btns:K,btn:M,down:Q,text:W,icon:X,top:Z},$=""+new URL("icon-down.eb4a3151.png",import.meta.url).href,on=P({name:"TheDown",setup(e,{emit:m,expose:i}){const g=(c="student")=>{let d="",r="",n=c;n==="student"?(d="https://itunes.apple.com/cn/app/id1626971695?mt=8",r="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk"):n==="teacher"&&(d="https://itunes.apple.com/cn/app/id1626971149?mt=8",r="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=d:/(Android)/i.test(navigator.userAgent)?window.location.href=r:n=="student"?window.location.href="https://online.colexiu.com/student/#/download":window.location.href="https://online.colexiu.com/student/#/download?type=teacher"},s=q(!1);return i({downLoadApp:g,toggle:()=>{s.value=!s.value}}),()=>t("div",null,[t(N,{class:o.downPoup,show:s.value,"onUpdate:show":c=>s.value=c},{default:()=>[t("div",{class:o.theDown},[t("div",{class:o.top},[t("img",{src:b,alt:""},null),t("span",{class:o.title},[w("\u4E0B\u8F7D\u9177\u4E50\u79C0APP \u53D1\u73B0\u66F4\u5927\u7684\u4E16\u754C")]),t("img",{style:{transform:"rotateY(180deg)"},src:b,alt:""},null)]),t("img",{class:o.icon,src:$},null),t("div",{class:o.btns},[t("div",{class:[o.btn,o.down],onClick:()=>g()},[w("\u6253\u5F00APP")]),t("div",{class:[o.btn,o.text],onClick:()=>s.value=!1},[w("\u7EE7\u7EED\u6D4F\u89C8")])])])]})])}});export{en as B,on as T};
