!function(){function e(e,a,t,n,r,o,i){try{var c=e[o](i),s=c.value}catch(l){return void t(l)}c.done?a(s):Promise.resolve(s).then(n,r)}function a(a){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=a.apply(t,n);function c(a){e(i,r,o,c,s,"next",a)}function s(a){e(i,r,o,c,s,"throw",a)}c(void 0)}))}}var t=document.createElement("style");t.innerHTML='._btnHeader_qv2f4_1{display:flex;align-items:center;height:var(--van-nav-bar-height)}._btnHeader_qv2f4_1 ._iconBack_qv2f4_6{position:relative;padding-left:var(--van-padding-md);font-size:.53333rem;color:#fff;z-index:9}._saveShareImage_qv2f4_13{position:relative;min-height:100vh;overflow:hidden}._saveShareImage_qv2f4_13:before{content:" ";background:linear-gradient(134deg,#ff906c 0%,#ff602d 100%);position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}._previewSection_qv2f4_28{z-index:-1;position:absolute;left:0;right:0;top:0}._topImage_qv2f4_35{position:absolute;top:0;left:0;right:0}._shareContaienr_qv2f4_41{position:relative;margin:5.65333rem .58667rem 0;padding-top:1.33333rem;padding-bottom:.61333rem;background:#ffffff;border-radius:.48rem;text-align:center}._shareContaienr_qv2f4_41._orchestraContainer_qv2f4_50{margin-top:4.48rem;padding-top:.53333rem}._shareContaienr_qv2f4_41._orchestraContainer_qv2f4_50 ._schoolName_qv2f4_54{font-size:.53333rem;font-weight:500;color:#f67146;line-height:.74667rem}._shareContaienr_qv2f4_41 ._schoolLogo_qv2f4_60{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_qv2f4_41 ._schoolName_qv2f4_54{font-size:.45333rem;font-weight:500;color:#000;line-height:.64rem;padding:0 .8rem}._shareContaienr_qv2f4_41 ._shareType_qv2f4_80{font-size:.4rem;padding:.21333rem 0 .53333rem;color:#000;line-height:.56rem}._shareContaienr_qv2f4_41 ._shareType_qv2f4_80 span{color:#f67146}._shareContaienr_qv2f4_41 ._qrcodeSection_qv2f4_89{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+jFkVksrIxt9333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+fT9s/y+d6jyflmy2c+ej5+6eUEkZ3ifLPkS9lE4kcPMGv0KcX59PM59KlmIkW/2Q3Op5uvYZN85+7oD4/z6ebzZLM77MtxlfPp5luVzfaxxvn+Pt8a5+N8iTjffOF8nE8b55svnI/zaftv+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_qv2f4_41 ._memo_qv2f4_97{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_qv2f4_41 ._endTime_qv2f4_109{font-size:.34667rem;color:#666;line-height:.48rem}._shareContaienr_qv2f4_41 ._endTime_qv2f4_109 span{color:#ff8057}._btnGroup_qv2f4_117{margin:.8rem .58667rem .53333rem;display:flex;align-items:center}._btnGroup_qv2f4_117 ._icon_qv2f4_6{font-size:1.01333rem;margin-left:-.16rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1{background:rgba(255,255,255,.4);border-radius:1.04rem;border:.02667rem solid #ff6e00;font-size:.42667rem;color:#fff;line-height:.58667rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1+._btn_qv2f4_1{margin-left:.34667rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1 .van-button__text{display:flex;align-items:center}\n',document.head.appendChild(t),System.register(["./index-legacy.47bc1690.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.c270e4c4.js","./orchestra-top_bg-legacy.faca911a.js","./index-legacy.697c501a.js","./index-legacy.0ebc214d.js"],(function(e){"use strict";var t,n,r,o,i,c,s,l,u,f,m,p,d,v,g,h,_,A,b,y,q,w,x,k,R;return{setters:[function(e){t=e.d,n=e.ah,r=e.ag,o=e.r,i=e.$,c=e.m,s=e.c,l=e.aj,u=e.F,f=e.q,m=e.B,p=e.a5,d=e.bf,v=e.e,g=e.o,h=e.bq,_=e.p,A=e.bD,b=e.bE,y=e.g},function(e){q=e.h},function(e){w=e.O},function(e){x=e.o},function(e){k=e.O},function(e){R=e.I}],execute:function(){var C="_saveShareImage_qv2f4_13",M="_previewSection_qv2f4_28",D="_topImage_qv2f4_35",F="_shareContaienr_qv2f4_41",Z="_orchestraContainer_qv2f4_50",L="_schoolName_qv2f4_54",z="_schoolLogo_qv2f4_60",T="_shareType_qv2f4_80",V="_qrcodeSection_qv2f4_89",B="_memo_qv2f4_97",S="_endTime_qv2f4_109",j="_btnGroup_qv2f4_117",E="_icon_qv2f4_6",N="_btn_qv2f4_1",U="./assets/teacher-top_bg.aed1eb2a.png",I="./assets/manage-top_bg.d67ca762.png",K="./assets/logo@2x.f7671d6b.png";e("default",t({name:"save-share-image",setup:function(){var e=n();r();var t=o({type:e.query.type,height:0,paramValue:2,schoolName:"",schoolId:"",url:null,schoolLogo:"",loading:!1,name:""}),J=o({saveLoading:!1,image:null,shareLoading:!1}),G=function(){var e=a(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!J.saveLoading){e.next=2;break}return e.abrupt("return");case 2:J.saveLoading=!0,J.image?X():(t=document.getElementById("preview-container"),q(t,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=a(regeneratorRuntime.mark((function e(a){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.toDataURL("image/png"),J.image=t,X();case 3:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}()).catch((function(){d(),J.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){if(!J.shareLoading)if(J.shareLoading=!0,J.image)O();else{var e=document.getElementById("preview-container");q(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=a(regeneratorRuntime.mark((function e(a){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.toDataURL("image/png"),J.image=t,O();case 3:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}()).catch((function(){d(),J.shareLoading=!1}))}},O=function(){var e=J.image;setTimeout((function(){J.shareLoading=!1}),100),e&&v({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=a(regeneratorRuntime.mark((function e(){var a,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){J.saveLoading=!1}),100),e.next=4,_({api:"savePicture",content:{base64:J.image}});case 4:"success"===(null==(t=e.sent)||null===(a=t.content)||void 0===a?void 0:a.status)?A("保存成功"):b("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=a(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=(y.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.next=4,c.get("/api-school/school/detail/".concat(a),{});case 4:n=e.sent,t.schoolName=n.data.name,t.schoolId=n.data.id,t.schoolLogo=n.data.logo?n.data.logo+"@base@tag=imgScale&w=570?t="+ +new Date:"","teacher"===t.type?t.url=location.origin+"/orchestra-school/#/companion-teacher-register?id="+n.data.id+"&name="+n.data.name+"&t="+ +new Date:"manage"===t.type&&(t.url=location.origin+"/orchestra-school/#/manage-teacher-register?id="+n.data.id+"&name="+n.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)}}(),W=function(){var n=a(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,c.get("/api-school/orchestra/detail/"+e.query.id);case 3:n=a.sent,t.schoolName=n.data.name,t.schoolId=n.data.id,t.schoolLogo=n.data.schoolLogo+"@base@tag=imgScale&w=570?t="+ +new Date,t.url=window.location.origin+"/orchestra-student/#/preApply?id="+e.query.id,a.next=12;break;case 10:a.prev=10,a.t0=a.catch(0);case 12:case"end":return a.stop()}}),a,null,[[0,10]])})));return function(){return n.apply(this,arguments)}}();return i(a(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"teacher"===t.type?t.name="乐团伴学老师注册":"manage"===t.type?t.name="乐团管理老师注册":"orchestra"===t.type&&(t.name="乐团报名"),document.title=t.name,e.prev=2,e.next=5,c.get("/api-school/open/paramConfig/queryByParamName",{requestType:"form",params:{paramName:"qr_code_expire_hours"}});case 5:a=e.sent,n=a.data,t.paramValue=n.paramValue,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(2);case 12:"orchestra"===t.type?W():Y();case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))),function(){return s("div",{class:[C]},[s(k,{position:"top",onGetHeight:function(e){t.height=e}},{default:function(){return[s(l,{title:t.name},null)]}}),"teacher"===t.type&&s(R,{src:U,class:D,style:{top:t.height+"px"}},null),"manage"===t.type&&s(R,{src:I,class:D,style:{top:t.height+"px"}},null),"orchestra"===t.type&&s(R,{src:x,class:D,style:{top:t.height+"px"}},null),s("div",{class:[F,"orchestra"===t.type&&Z]},["orchestra"!==t.type?s(u,null,[s("img",{class:[z],src:t.schoolLogo||K,crossorigin:"anonymous",style:{objectFit:"cover"}},null),s("div",{class:L},[t.schoolName]),s("div",{class:T},[f("邀请您成为"),s("span",null,["teacher"===t.type&&"乐团伴学老师","manage"===t.type&&"乐团管理老师"])])]):s(u,null,[s("div",{class:L},[f("乐团报名")]),s("div",{class:T},[t.schoolName])]),s("div",{class:V},[s(w,{text:t.url,logoSize:"small",size:"100%"},null)]),s("div",{class:B},[f("扫描上方二维码完成资料填写")]),"orchestra"!==t.type&&s("div",{class:S},[f("二维码将在"),s("span",null,[t.paramValue,f("小时后")]),f("失效,请及时登记")])]),s("div",{class:j},[s(m,{class:N,round:!0,block:!0,onClick:G},{default:function(){return[s(p,{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:E},null),f("保存图片")]}}),s(m,{class:N,round:!0,block:!0,onClick:H},{default:function(){return[s(p,{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:E},null),f("分享到微信")]}})]),!t.loading&&s("div",{class:[C,M],style:{top:t.height+"px"},id:"preview-container"},["teacher"===t.type&&s(R,{src:U,class:D},null),"manage"===t.type&&s(R,{src:I,class:D},null),"orchestra"===t.type&&s(R,{src:x,class:D},null),s("div",{class:[F,"orchestra"===t.type&&Z]},["orchestra"!==t.type?s(u,null,[s("img",{class:[z],src:t.schoolLogo||K,crossorigin:"anonymous",style:{objectFit:"cover"}},null),s("div",{class:L},[t.schoolName]),s("div",{class:T},[f("邀请您成为"),s("span",null,["teacher"===t.type&&"乐团伴学老师","manage"===t.type&&"乐团管理老师"])])]):s(u,null,[s("div",{class:L},[f("乐团报名")]),s("div",{class:T},[t.schoolName])]),s("div",{class:V},[s(w,{text:t.url,logoSize:"small",size:"100%"},null)]),s("div",{class:B},[f("扫描上方二维码完成资料填写")]),"orchestra"!==t.type&&s("div",{class:S},[f("二维码将在"),s("span",null,[t.paramValue,f("小时后")]),f("失效,请及时登记")])])])])}}}))}}}))}();