import{c as T,q as C,m as u,n as E,C as I,D as A,I as z,z as R,L,w as N,P as O,E as b}from"./_commonjsHelpers.5bb79380.js";import{v as U,d as P,c as n,r as F,b as f}from"./index.ce3b9611.js";const[q,r]=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:q,props:V,emits:["click"],setup(e,{emit:m,slots:i}){const g=I(),s=()=>i.loading?i.loading():n(L,{size:e.loadingSize,type:e.loadingType,class:r("loading")},null),w=()=>{if(e.loading)return s();if(i.icon)return n("div",{class:r("icon")},[i.icon()]);if(e.icon)return n(z,{name:e.icon,class:r("icon"),classPrefix:e.iconPrefix},null)},d=()=>{let t;if(e.loading?t=e.loadingText:t=i.default?i.default():e.text,t)return n("span",{class:r("text")},[t])},a=()=>{const{color:t,plain:p}=e;if(t){const l={color:p?t:"white"};return p||(l.background=t),t.includes("gradient")?l.border=0:l.borderColor=t,l}},c=t=>{e.loading?R(t):e.disabled||(m("click",t),g())};return()=>{const{tag:t,type:p,size:l,block:y,round:j,plain:v,square:k,loading:D,disabled:x,hairline:_,nativeType:B,iconPosition:h}=e,S=[r([p,l,{plain:v,block:y,round:j,square:k,loading:D,disabled:x,hairline:_}]),{[A]:_}];return n(t,{type:B,class:S,style:a(),disabled:x,onClick:c},{default:()=>[n("div",{class:r("content")},[h==="left"&&w(),d(),h==="right"&&w()])]})}}});const et=N(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,ot=P({name:"TheDown",setup(e,{emit:m,expose:i}){const g=(d="student")=>{let a="",c="",t=d;location.origin.indexOf("online.colexiu.com")>-1?t==="student"?(a="https://itunes.apple.com/cn/app/id1626971695?mt=8",c="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk"):t==="teacher"&&(a="https://itunes.apple.com/cn/app/id1626971149?mt=8",c="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk"):t==="student"?(a="https://www.pgyer.com/powy",c="https://www.pgyer.com/70e7"):(a="https://www.pgyer.com/iO0m",c="https://www.pgyer.com/N2U3"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=a:/(Android)/i.test(navigator.userAgent)&&(window.location.href=c)},s=F(!1);return i({downLoadApp:g,toggle:()=>{s.value=!s.value}}),()=>n("div",null,[n(O,{class:o.downPoup,show:s.value,"onUpdate:show":d=>s.value=d},{default:()=>[n("div",{class:o.theDown},[n("div",{class:o.top},[n("img",{src:b,alt:""},null),n("span",{class:o.title},[f("\u4E0B\u8F7D\u9177\u4E50\u79C0APP \u53D1\u73B0\u66F4\u5927\u7684\u4E16\u754C")]),n("img",{style:{transform:"rotateY(180deg)"},src:b,alt:""},null)]),n("img",{class:o.icon,src:$},null),n("div",{class:o.btns},[n("div",{class:[o.btn,o.down],onClick:()=>g()},[f("\u6253\u5F00APP")]),n("div",{class:[o.btn,o.text],onClick:()=>s.value=!1},[f("\u7EE7\u7EED\u6D4F\u89C8")])])])]})])}});export{et as B,ot as T};
