!function(){function e(e,n,a,r,t,o,i){try{var c=e[o](i),s=c.value}catch(d){return void a(d)}c.done?n(s):Promise.resolve(s).then(r,t)}function n(n){return function(){var a=this,r=arguments;return new Promise((function(t,o){var i=n.apply(a,r);function c(n){e(i,t,o,c,s,"next",n)}function s(n){e(i,t,o,c,s,"throw",n)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML='._saveShareImage_1dnid_1{position:relative;min-height:100vh;overflow:hidden}._saveShareImage_1dnid_1:before{content:" ";background:linear-gradient(134deg,#ff906c 0%,#ff602d 100%);position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}._previewSection_1dnid_16{z-index:-1;position:absolute;left:0;right:0;top:0}._topImage_1dnid_23{position:absolute;top:0;left:0;right:0}._shareContaienr_1dnid_29{position:relative;margin:5.65333rem .58667rem 0;padding-top:1.33333rem;padding-bottom:.61333rem;background:#ffffff;border-radius:.48rem;text-align:center}._shareContaienr_1dnid_29._orchestraContainer_1dnid_38{margin-top:4.48rem;padding-top:.53333rem}._shareContaienr_1dnid_29._orchestraContainer_1dnid_38 ._schoolName_1dnid_42{font-size:.53333rem;font-weight:500;color:#f67146;line-height:.74667rem}._shareContaienr_1dnid_29 ._schoolLogo_1dnid_48{position:absolute;left:50%;top:0;margin-top:-1.01333rem;margin-left:-1.01333rem;width:2.02667rem;height:2.02667rem;border-radius:50%;overflow:hidden;border:.08rem solid #fff;background-color:#fff}._shareContaienr_1dnid_29 ._schoolName_1dnid_42{font-size:.45333rem;font-weight:500;color:#000;line-height:.64rem;padding:0 .8rem}._shareContaienr_1dnid_29 ._shareType_1dnid_68{font-size:.4rem;padding:.21333rem 0 .53333rem;color:#000;line-height:.56rem}._shareContaienr_1dnid_29 ._shareType_1dnid_68 span{color:#f67146}._shareContaienr_1dnid_29 ._qrcodeSection_1dnid_77{width:3.46667rem;height:3.46667rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAAE8CAMAAABuLi0JAAAA/FBMVEUAAAD////////////Z2dnY2NjZ2dnY2NjZ2dna2trf39/a2tra2trZ2dna2trZ2dna2tra2trc3Nze3t7a2tra2tra2tra2tra2tra2trb29vs7Oza2tra2trZ2dnb29va2tr////////b29v////a2tra2trt7e3d3d3Z2dna2trZ2dn////a2tra2tra2tr////////////////a2tra2tra2tr////Z2dn////////////a2tr////Z2dna2tra2tr////////////////Z2dn////h4eHY2Nj////////////////////////////////////Z2dn8/PzmZWJ/AAAAUXRSTlMA7LG29CZRuf5fBOR862P7PTAYEqNX1I6BRikIxPawBsHmvbCidE0eDu5uavDQubN6ZF8y2J6X9t/X08/Ixr6lh25nWVM2JAyllZSOiYBHQi3EpmOeAAAHMElEQVR42uzaWU/qQBjG8UdP1dICLWUXEVRkcVfcox6FuMVoMu/3/zAnJtMFmMI0OVfl/V2VhKt/ZqbTThFjLV89rdiGSRHOZbaBFDo8diiOadiV02p+DQnUr2xSa6ew31/SYF/VoaVYsyleFmlTJk12rbg4XtWgeS6RNqekzaguCJjP0XxNpM0xJZDLI57XpkUqSJttSqTtIUbdH3pLtfatUzK5OpQOTVropIXUuaZkzEMo1FT/bBoRg+N9CymU2RoYcZomzaphRpYmVarlQh8M/UK5Wlm0hOUnKg+eN8EiNp8HFGHmMcF1KGRk38GmvGcNCjkuIoo2hbY9MAVvm0J2Ub33cQ7AYhw4FNhDoEsBow4Wq25QoAupcUu+pgs2h9sk323DH5PkM7tgc3VN8slVrmWTrwa2QI18dgu/MuR7SOVDxX/2QL4MfrVJcgpgCxUcktoA0DNJKoFpKJFk9gDsB7/4QU3LpknSPoANkp7AtDyRtAFYRrgSKlnD0Vdn9c+SWe18jYYWlDIkGRYKJJkeFH46R2JpHXV+oOCZJBVQnneKMb4XS+5+jFkVksrIxt9333YFE7tv8ffeLK7DyynjJZ62UUfj2Dfz12HJPCadCSadYVI+nLF74Tye8C1Y4Dvmu469cNu3jqhzwSLO1UfDGzH5hjeCRdwMk+Szln7DMu3eSpDvRbApL/r5GjuCTdlpaOcbCTZjpJ3vU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ftv+TYClmBDM99lwBJcaubbDFiCzaR8LTnmIb0ELMELpLxs1kJOjg6ko4AlOILkyGY5nMkxDakbsARdSGnZ7Cwcc1BuAjbmBoo6senwHBegDAI2ZgClEN4XGTkKH1KVN78xG1VIvpDNMjANOaegPARsxAOUlCxmmAgXv1so5lXAYq5MKLfh2gd01OmtQHk/D1jE+TuUijq7HQBdEbl7efdLdoSEe1d08aEpH90MQocBUw4RyriyVzP+JaRrcL9p9XBN8bu2YZFUQsRwN2AfdoeIKJFkNfBphySxhYgn/vXyYfMJEVuCpB25JV+QVPcQNVz6BeZqiCivTtJFVSUlxSgj5q29xL/uv7XfEFM2SNmC0iLF3cGI48Fr+/vSab8OjjGi75LSQihrUWjdB0vgr1PIyiLCcylkdJ7BRjx3DAq5HmIcQRHb9xWwiMq9TRHCwYg0xRWK+UwPDL1MvliguDTGlGicqBsR23sdEwsoVds2JqkLGldCgr6gqfYbWDinNBvRR6KyTVOlsWhWaTZ2GRP4TZrmBIumRTNp+pjMselrdSyaPZqB7eBL2aKxZG/fAWkzillMky1ZS/Xty5Mmq5SFlvLppIK1KhbOnVa70zJmsOIUDwqWISjCPUkvYD2gv+fSJMKwCgdFZwXJfgJ+cPco4Ts4hgAAAABJRU5ErkJggg==) no-repeat center center;background-size:contain;margin:0 auto;padding:.37333rem}._shareContaienr_1dnid_29 ._memo_1dnid_85{display:inline-block;margin:.45333rem 0 .29333rem;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:.58667rem;padding:.16rem .42667rem}._shareContaienr_1dnid_29 ._endTime_1dnid_97{font-size:.34667rem;color:#666;line-height:.48rem}._shareContaienr_1dnid_29 ._endTime_1dnid_97 span{color:#ff8057}._btnGroup_1dnid_105{margin:.8rem .58667rem .53333rem;display:flex;align-items:center}._btnGroup_1dnid_105 ._icon_1dnid_112{font-size:1.01333rem;margin-left:-.16rem}._btnGroup_1dnid_105 ._btn_1dnid_105{background:rgba(255,255,255,.4);border-radius:1.04rem;border:.02667rem solid #ff6e00;font-size:.42667rem;color:#fff;line-height:.58667rem}._btnGroup_1dnid_105 ._btn_1dnid_105+._btn_1dnid_105{margin-left:.34667rem}._btnGroup_1dnid_105 ._btn_1dnid_105 .van-button__text{display:flex;align-items:center}\n',document.head.appendChild(a),System.register(["./index-legacy.48c8d62c.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.08748cd4.js","./index-legacy.0e0de364.js"],(function(e){"use strict";var a,r,t,o,i,c,s,d,l,u,m,p,g,h,f,v,A,_,b,y,w,x;return{setters:[function(e){a=e.d,r=e.aV,t=e.r,o=e.$,i=e.m,c=e.c,s=e.F,d=e.q,l=e.B,u=e.a5,m=e.be,p=e.k,g=e.o,h=e.bl,f=e.p,v=e.bz,A=e.bA,_=e.f},function(e){b=e.h},function(e){y=e.o,w=e.O},function(e){x=e.I}],execute:function(){var k="_saveShareImage_1dnid_1",R="_previewSection_1dnid_16",C="_topImage_1dnid_23",M="_shareContaienr_1dnid_29",F="_orchestraContainer_1dnid_38",D="_schoolName_1dnid_42",Z="_schoolLogo_1dnid_48",L="_shareType_1dnid_68",V="_qrcodeSection_1dnid_77",T="_memo_1dnid_85",z="_endTime_1dnid_97",S="_btnGroup_1dnid_105",B="_icon_1dnid_112",N="_btn_1dnid_105",E="./assets/teacher-top_bg.aed1eb2a.png",j="./assets/manage-top_bg.d67ca762.png",U="./assets/logo@2x.f7671d6b.png";e("default",a({name:"save-share-image",setup:function(){var e=r(),a=t({type:e.query.type,paramValue:2,schoolName:"",schoolId:"",url:null,schoolLogo:"",loading:!1}),I=t({saveLoading:!1,image:null,shareLoading:!1}),K=function(){var e=n(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!I.saveLoading){e.next=2;break}return e.abrupt("return");case 2:I.saveLoading=!0,I.image?X():(a=document.getElementById("preview-container"),b(a,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=n(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.toDataURL("image/png"),I.image=a,X();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(){m(),I.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){if(!I.shareLoading)if(I.shareLoading=!0,I.image)G();else{var e=document.getElementById("preview-container");b(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=n(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.toDataURL("image/png"),I.image=a,G();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(){m(),I.shareLoading=!1}))}},G=function(){var e=I.image;setTimeout((function(){I.shareLoading=!1}),100),e&&p({api:"shareTripartite",content:{title:"",desc:"",image:e,video:"",type:"image",shareType:"wechat"}},(function(e){e&&e.content&&g(e.content.message||(e.content.status?"分享成功":"分享失败"))}))},X=function(){var e=n(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){I.saveLoading=!1}),100),e.next=4,f({api:"savePicture",content:{base64:I.image}});case 4:"success"===(null==(a=e.sent)||null===(n=a.content)||void 0===n?void 0:n.status)?v("保存成功"):A("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=n(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(_.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.next=4,i.get("/api-school/school/detail/".concat(n),{});case 4:r=e.sent,a.schoolName=r.data.name,a.schoolId=r.data.id,a.schoolLogo=r.data.logo?r.data.logo+"@base@tag=imgScale&w=570?t="+ +new Date:"","teacher"===a.type?a.url=location.origin+"/orchestra-school/#/companion-teacher-register?id="+r.data.id+"&name="+r.data.name+"&t="+ +new Date:"manage"===a.type&&(a.url=location.origin+"/orchestra-school/#/manage-teacher-register?id="+r.data.id+"&name="+r.data.name+"&t="+ +new Date),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){var r=n(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,i.get("/api-school/orchestra/detail/"+e.query.id);case 3:r=n.sent,a.schoolName=r.data.name,a.schoolId=r.data.id,a.schoolLogo=r.data.schoolLogo+"@base@tag=imgScale&w=570?t="+ +new Date,a.url=window.location.origin+"/orchestra-student/#/preApply?id="+e.query.id,n.next=12;break;case 10:n.prev=10,n.t0=n.catch(0);case 12:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(){return r.apply(this,arguments)}}();return o(n(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"teacher"===a.type?document.title="乐团伴学指导注册":"manage"===a.type?document.title="乐团管理老师注册":"orchestra"===a.type&&(document.title="乐团报名"),e.prev=1,e.next=4,i.get("/api-school/open/paramConfig/queryByParamName",{requestType:"form",params:{paramName:"qr_code_expire_hours"}});case 4:n=e.sent,r=n.data,a.paramValue=r.paramValue,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(1);case 11:"orchestra"===a.type?Y():O();case 12:case"end":return e.stop()}}),e,null,[[1,9]])})))),function(){return c("div",{class:[k]},["teacher"===a.type&&c(x,{src:E,class:C},null),"manage"===a.type&&c(x,{src:j,class:C},null),"orchestra"===a.type&&c(x,{src:y,class:C},null),c("div",{class:[M,"orchestra"===a.type&&F]},["orchestra"!==a.type?c(s,null,[c("img",{class:[Z],src:a.schoolLogo||U,crossorigin:"anonymous",style:{objectFit:"cover"}},null),c("div",{class:D},[a.schoolName]),c("div",{class:L},[d("邀请您成为"),c("span",null,["teacher"===a.type&&"乐团伴学指导","manage"===a.type&&"乐团管理老师"])])]):c(s,null,[c("div",{class:D},[d("乐团报名")]),c("div",{class:L},[a.schoolName])]),c("div",{class:V},[c(w,{text:a.url,logoSize:"small",size:"100%"},null)]),c("div",{class:T},[d("扫描上方二维码完成资料填写")]),"orchestra"!==a.type&&c("div",{class:z},[d("二维码将在"),c("span",null,[a.paramValue,d("小时后")]),d("失效,请及时登记")])]),c("div",{class:S},[c(l,{class:N,round:!0,block:!0,onClick:K},{default:function(){return[c(u,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAAilBMVEUAAAD////////////+/v7////+/v7////////////////////////+/v7////////////////////////////////////9/f3////////////////////////////////+/v7////+/v7////////////////////////////////9/f3////+/v4G95Y1AAAALXRSTlMACTZV8QX86k7KKSUN+c+lcEgc4Na8m5I1Mi0T8+3awb+3sYp5Z1tDPCIZhYJUHFgjAAABR0lEQVRYw+3V15KDIBiG4d8ERGNJjy3Z9LrL/d/epgzjEfqhHGV4D5F5BkZQcrlcLhcev+cDXcXMiBqNmWxKZA/YmviyLRaglgTyp9gefYkkYgQbS6wTYHEGYiGA3SXYGsDyejo7Di+rRKt57dhAqhbvw1kIG1gSfQYCG9hejcwtYJkaWVrAxmoktYCpIx5ZeZsreuVtrWByPyA+TWVfTKXuvBWsVo9RfFvawZJAfVD6bDNcbl6X9Erv+KEHlo6ewJ8vcvXQ23bG5tXncj5JVRx2xFiN1FULI6zllzGbd8EmmgmRMMdWpKvcmGIhJ22BKXalhhaGWEUNHQyxiBpKDbFf0neThlgyGeq6CAMMCMUKGOPt2Ay1GAEJENshWAZiZwR7MMj64YQU+IDFSsKaivZ1lYQWn8J106p2Z05Gedo4uVwu15f3D+OJ24iJRosgAAAAAElFTkSuQmCC",class:B},null),d("保存图片")]}}),c(l,{class:N,round:!0,block:!0,onClick:J},{default:function(){return[c(u,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA/fnsCBD06NLazbkW46eVj2A4CwXVycSim4AxKCHdroiEeWdUShluPhzui3VyW0K9tX3v38nzcAAAAfJJREFUWMPt1dmWojAUBdATBkFBUMBZy3meuqrP/39bVzehRRdE0HpkP90sQibuJahUKpVKCaOz19A1alZj0B7jHZvhB9M6ZxcvMlsaH2lHE6+4NpnFuqC8o2AOP0JJfeb7ZaCUFlWmKGNFyfbqTIje1JLhEcWZ8iWxBKIpY7UrEHbkgwCFzRlr4NtaNvr4dpKNLooydMY+0lv+TE/DHQpaM9F3MelQGoYIdEqDFz6lsAT/0+KhLMefzRcoyGG++mKMyXr7NV+0AwMF2PlDrTDym5Q0px3hmTpzDMKdI5jWPBlQ6zKT1jZago/sEZQ8ZhFt186eAypbZlm4HWYSSyhMRNavIuoyh1iVzA0xHiZn7hxkZDkyhw8u8gWCj6abmqzXEKYdF5uJsFegHnw+WicL+wIQx/7teDXV0owG79UMO0kFE5t6vDIXZtJvCYXNB+90TUFJ79Zk9LuXRPSgsu8wzRtRqQElc8qUwY5KdTzxyZv+iEpdPNHkjWMKqvSh9m9jljxjHR2qXKDmk82tAYxXp1lrFs6poBtQs5rLdJe9xnxnqI2XEe7MFIkRoSTDzt3kBKVt6sxUC/CCfeZoeoCXhIOMO2CCV617fODhDUFfp1T7m9GHCG8ZXxaz1rA9Alxf4xU/ZuK18IP2qFQqlUoBfwBY2/iSCspkkQAAAABJRU5ErkJggg==",class:B},null),d("分享到微信")]}})]),!a.loading&&c("div",{class:[k,R],id:"preview-container"},["teacher"===a.type&&c(x,{src:E,class:C},null),"manage"===a.type&&c(x,{src:j,class:C},null),"orchestra"===a.type&&c(x,{src:y,class:C},null),c("div",{class:[M,"orchestra"===a.type&&F]},["orchestra"!==a.type?c(s,null,[c("img",{class:[Z],src:a.schoolLogo||U,crossorigin:"anonymous",style:{objectFit:"cover"}},null),c("div",{class:D},[a.schoolName]),c("div",{class:L},[d("邀请您成为"),c("span",null,["teacher"===a.type&&"乐团伴学指导","manage"===a.type&&"乐团管理老师"])])]):c(s,null,[c("div",{class:D},[d("乐团报名")]),c("div",{class:L},[a.schoolName])]),c("div",{class:V},[c(w,{text:a.url,logoSize:"small",size:"100%"},null)]),c("div",{class:T},[d("扫描上方二维码完成资料填写")]),"orchestra"!==a.type&&c("div",{class:z},[d("二维码将在"),c("span",null,[a.paramValue,d("小时后")]),d("失效,请及时登记")])])])])}}}))}}}))}();