!function(){function t(t,e,n,a,r,o,i){try{var u=t[o](i),s=u.value}catch(c){return void n(c)}u.done?e(s):Promise.resolve(s).then(a,r)}function e(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function u(e){t(i,r,o,u,s,"next",e)}function s(e){t(i,r,o,u,s,"throw",e)}u(void 0)}))}}System.register(["./index-legacy.3d6bb858.js","./manage-center-legacy.26597464.js","./wx_bg-legacy.db85001d.js","./index-legacy.d0a52fe8.js"],(function(t){"use strict";var n,a,r,o,i,u,s,c,d,p,l,f,w,y,g;return{setters:[function(t){n=t.d,a=t.ah,r=t.r,o=t.$,i=t.m,u=t.c,s=t.B,c=t.f,d=t.o},function(t){p=t.s,l=t.t,f=t.m,w=t.a},function(t){y=t.w},function(t){g=t.I}],execute:function(){t("default",n({name:"download",setup:function(){var t=a(),n=r({wxStatus:!1,androidUrl:"",type:"student",buttonText:"下载管乐团学员端"}),m=function(){if(c().weixin)n.wxStatus=!0;else{var t="",e="";location.origin.indexOf("online.lexiaoya.cn")>-1?"student"===n.type?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",e=n.androidUrl):"teacher"===n.type?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E4%BC%B4%E5%AD%A6%E7%AB%AF/id1670584741?uo=4",e=n.androidUrl):"manage"===n.type&&(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4",e=n.androidUrl):"student"===n.type?(t="https://www.pgyer.com/2Wg2",e=n.androidUrl):"teacher"===n.type?(t="https://www.pgyer.com/v5yB",e=n.androidUrl):"manage"===n.type&&(t="https://www.pgyer.com/DGrR",e=n.androidUrl),c().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):c().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=e:d("请用手机或移动设备打开")}};return o(e(regeneratorRuntime.mark((function e(){var a,r,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.query.type,n.type=a||"student",r="android-student","student"===a?(n.buttonText="下载管乐团学员端",r="android-student"):"teacher"===a?(n.buttonText="下载管乐团伴学端",r="android-teacher"):"manage"===a&&(n.buttonText="下载管乐团管理端",r="android-school"),e.prev=4,e.next=7,i.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:r,status:"history"}});case 7:o=e.sent,u=o.data,n.androidUrl=u.downloadUrl,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:document.title=n.buttonText;case 15:case"end":return e.stop()}}),e,null,[[4,12]])})))),function(){return u("div",{class:[w.downloadContainer]},["teacher"!==n.type&&"manage"!==n.type&&u(g,{src:p},null),"teacher"===n.type&&u(g,{src:l},null),"manage"===n.type&&u(g,{src:f},null),u("div",{class:w.buttonGroup},[u(s,{round:!0,size:"large",color:"#FF8057",class:w.btn,onClick:m},{default:function(){return[n.buttonText]}})]),n.wxStatus&&u("div",{class:w.wxpopup,onClick:function(){n.wxStatus=!1}},[u("img",{src:y,alt:""},null)])])}}}))}}}))}();
