index-legacy-7a2ed408.js 35 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-legacy-15eac041.js
  2. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),u=new L(n||[]);return i(a,"_invoke",{value:x(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var p={};function d(){}function m(){}function y(){}var v={};s(v,u,(function(){return this}));var g=Object.getPrototypeOf,A=g&&g(g(V([])));A&&A!==n&&o.call(A,u)&&(v=A);var b=y.prototype=d.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(i,a,u,c){var l=h(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function V(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(E.prototype),s(E.prototype,c,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),s(b,l,"Generator"),s(b,u,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=V,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:V(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy-d6f05f92.js","./Checker-legacy-bc3fd60d.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,p,d,m,y,v,g,A,b,w,E,x,k,S,_,L,V,P,O=document.createElement("style");return O.textContent="._mProtocol_ay5z2_1{font-size:.32rem;padding:.4rem .37333rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1._center_ay5z2_6{display:flex;align-items:center;justify-content:center}._mProtocol_ay5z2_1 ._protocolText_ay5z2_11{color:#f96a33;line-height:.4rem}._mProtocol_ay5z2_1 ._boxStyle_ay5z2_15{background:transparent!important;width:.4rem;height:.4rem;font-size:.4rem;border:transparent!important}._mProtocol_ay5z2_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._mProtocol_ay5z2_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:sub}._mProtocol_ay5z2_1 .van-checkbox__label{line-height:.4rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1 ._protocolContent_ay5z2_37{font-size:.37333rem;padding:.32rem;color:#333;line-height:1.4}\n",document.head.appendChild(O),{setters:[function(t){i=t.c,a=t.d,u=t.a5,c=t.X,l=t.a,s=t.n,f=t.t,h=t.p,p=t.ax,d=t.k,m=t.w,y=t.a2,v=t.af,g=t.a7,A=t.a8,b=t.e,w=t.ac,E=t.h,x=t.D,k=t.A,S=t.I,_=t.V,L=t.S},function(t){V=t.c,P=t.s}],execute:function(){var r=o(i("form"),2),O=r[0],z=r[1],T={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:s,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:f,showErrorMessage:f,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}},C=a({name:O,props:T,emits:["submit","failed"],setup:function(t,e){var r=e.emit,n=e.slots,o=u(p),i=o.children,a=o.linkChildren,s=function(t){return t?i.filter((function(e){return t.includes(e.name)})):i},f=function(e){return"string"==typeof e?function(t){var e=i.find((function(e){return e.name===t}));return e?new Promise((function(t,r){e.validate().then((function(e){e?r(e):t()}))})):Promise.reject()}(e):t.validateFirst?(r=e,new Promise((function(t,e){var n=[];s(r).reduce((function(t,e){return t.then((function(){if(!n.length)return e.validate().then((function(t){t&&n.push(t)}))}))}),Promise.resolve()).then((function(){n.length?e(n):t()}))}))):function(t){return new Promise((function(e,r){var n=s(t);Promise.all(n.map((function(t){return t.validate()}))).then((function(t){(t=t.filter(Boolean)).length?r(t):e()}))}))}(e);var r},d=function(t,e){i.some((function(r){return r.name===t&&(r.$el.scrollIntoView(e),!0)}))},m=function(){return i.reduce((function(t,e){return void 0!==e.name&&(t[e.name]=e.formValue.value),t}),{})},y=function(){var e=m();f().then((function(){return r("submit",e)})).catch((function(n){r("failed",{values:e,errors:n}),t.scrollToError&&n[0].name&&d(n[0].name)}))},v=function(t){h(t),y()};return a({props:t}),c({submit:y,validate:f,getValues:m,scrollToField:d,resetValidation:function(t){"string"==typeof t&&(t=[t]),s(t).forEach((function(t){t.resetValidation()}))},getValidationStatus:function(){return i.reduce((function(t,e){return t[e.name]=e.getValidationStatus(),t}),{})}}),function(){var t;return l("form",{class:z(),onSubmit:v},[null==(t=n.default)?void 0:t.call(n)])}}}),B=(t("F",d(C)),o(i("checkbox-group"),2)),R=B[0],j=B[1],U={max:s,disabled:Boolean,iconSize:s,direction:String,modelValue:v(),checkedColor:String},N=Symbol(R);a({name:R,props:U,emits:["change","update:modelValue"],setup:function(t,e){var r=e.emit,n=e.slots,o=u(N),i=o.children,a=o.linkChildren,s=function(t){return r("update:modelValue",t)};return m((function(){return t.modelValue}),(function(t){return r("change",t)})),c({toggleAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"==typeof t&&(t={checked:t});var e=t,r=e.checked,n=e.skipDisabled,o=i.filter((function(t){return!!t.props.bindGroup&&(t.props.disabled&&n?t.checked.value:null!=r?r:!t.checked.value)})).map((function(t){return t.name}));s(o)}}),y((function(){return t.modelValue})),a({props:t,updateValue:s}),function(){var e;return l("div",{class:j([t.direction])},[null==(e=n.default)?void 0:e.call(n)])}}});var G=o(i("checkbox"),2),H=G[0],Q=G[1],M=g({},V,{bindGroup:f}),X=a({name:H,props:M,emits:["change","update:modelValue"],setup:function(t,e){var r=e.emit,n=e.slots,o=A(N).parent,i=b((function(){return o&&t.bindGroup?-1!==o.props.modelValue.indexOf(t.name):!!t.modelValue})),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!i.value;o&&t.bindGroup?function(e){var r=t.name,n=o.props,i=n.max,a=n.modelValue.slice();if(e)i&&a.length>=+i||a.includes(r)||(a.push(r),t.bindGroup&&o.updateValue(a));else{var u=a.indexOf(r);-1!==u&&(a.splice(u,1),t.bindGroup&&o.updateValue(a))}}(e):r("update:modelValue",e)};return m((function(){return t.modelValue}),(function(t){return r("change",t)})),c({toggle:a,props:t,checked:i}),y((function(){return t.modelValue})),function(){return l(P,E({bem:Q,role:"checkbox",parent:o,checked:i.value,onToggle:a},t),w(n,["default","icon"]))}}}),D=d(X),I="_mProtocol_ay5z2_1",q="_center_ay5z2_6",F="_protocolText_ay5z2_11",Y="_boxStyle_ay5z2_15",K="_protocolContent_ay5z2_37",Z={BUY_ORDER:"《课堂乐器服务协议》",REGISTER:"《课堂乐器注册协议》"};t("O",a({name:"o-protocol",props:{showHeader:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},prototcolType:{type:String,default:"BUY_ORDER"},center:{type:Boolean,default:!1}},data:function(){return{exists:!0,checked:this.modelValue,popupStatus:!1,protocolHTML:"",protocolPopup:null}},mounted:function(){var t=this;return n(e().mark((function r(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.checked=t.checked||t.exists,t.$emit("update:modelValue",t.checked||t.exists)}catch(r){}t.checked=t.modelValue,window.addEventListener("hashchange",t.onHash,!1);case 3:case"end":return e.stop()}}),r)})))()},unmounted:function(){window.removeEventListener("hashchange",this.onHash,!1)},watch:{checked:function(t){this.$emit("update:modelValue",t)},modelValue:function(){this.checked=this.modelValue}},methods:{getContractDetail:function(){var t=this;return n(e().mark((function r(){var n,o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.protocolHTML){e.next=7;break}return e.next=4,x.get("/edu-app/schoolContractTemplate/queryLatestContractTemplate",{params:{contractType:t.prototcolType}});case 4:n=e.sent,o=n.data,t.protocolHTML=o.contractTemplateContent;case 7:t.onPopupClose(),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),r,null,[[0,10]])})))()},onHash:function(){this.popupStatus=!1},onPopupClose:function(){if(this.popupStatus=!this.popupStatus,this.popupStatus){var t=this.$route,e=0;for(var r in t.query)e+=1;var n=window.location.href,o=e>0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(n).concat(o))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var t=this;return l("div",{class:[I,this.center?q:""]},[l(D,{modelValue:this.checked,"onUpdate:modelValue":function(e){return t.checked=e}},{default:function(){return[k("我已阅读并同意")]},icon:function(t){return l(S,{class:Y,name:t.checked?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAn1JREFUSEu9lstPU1EQh79pSwEJKkoMcWeMGl24cGEgCtXNrUSWiIH/waWoSHxENJG/wJ278tClxt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zd7m9zlVs1uBpLZmXnv+5l5+3ZmCoUVl+Lf8Pr9/u3RaPSwWCyuTyaT6/Kpmt+Z+k7Vd1wulw/q9frXNL0rgUEQPJZAR4LNNCHGBQ9V7bZarXeL7C8FCnRTkLdyauMooRO1D51zH7SSb5VK5Yz+4XBY1cpvjcfj+7J5IJsa/SpdtbcE/j5tnv9fACp89yTyXiZrciJke41G47Xq3+duF58EK/V6vSeq9/Uj5ANN7pHC/ClpPQM02EcZXBPgSPW2ZjlMOqQ9KzoV2bwRdFP1L0E3ktAYaGH8LCNW9qrZbD5XPU4DXDYumNNqXyrUTzU+kM5dH17nHWTEOwN2tAwMPSaq1/AMLTRNm6FCBLRsbMuAZNjGIRpd4s800EKzbYwpUB0dtDW496/vDL9FBS00bXzKsI/6iwZOFMobqq/MxkXii/oVzlIYhj9U15RAdxw7CMbqOMwahi6aaPMMy6ljnQYfNXUexWvDcqKzNxbYQfKAJbVhkaXRRuy3qzygCe1q/B3mAZrXVEgnAOONeN4gqzabPFoK6U+S5pQGuz51HsVrwyJpjoFwxOQBS2rDcsrOAzpF5zwrZQ1FE210YTmuBeoINVDjPMsaaGdkDQYsn6W7gATd1ybLeZZJQQtNE4sYEVCbLHeQrgbJJg5PP5H/BpsGWmh2jRGfFrzDLQ0MZLCpzfbFMlB8OYDRQtO0o8nHJz6tVVwxZkLH3UOZtMGsbHaBVruj59TsxQZb+QZ+ZWihyWJ8mVmh79TLXt010UOp7VrQ0YzzvQgnoTzbrSCTq/68du7tP2r9kkP+2pKJAAAAAElFTkSuQmCC"},null)}}),l("span",{onClick:this.getContractDetail,class:F},[Z[this.prototcolType]]),l(_,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[t.showHeader&&l(L,{title:"管乐团平台服务协议"},null),t.popupStatus&&l("div",{id:"mProtocol"},[l("div",{class:K,innerHTML:t.protocolHTML},null)])]}})])}}))}}}))}();
  3. ========
  4. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),u=new L(n||[]);return i(a,"_invoke",{value:k(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var p={};function d(){}function m(){}function y(){}var v={};s(v,u,(function(){return this}));var g=Object.getPrototypeOf,A=g&&g(g(V([])));A&&A!==n&&o.call(A,u)&&(v=A);var b=y.prototype=d.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(i,a,u,c){var l=h(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function k(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function V(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(E.prototype),s(E.prototype,c,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),s(b,l,"Generator"),s(b,u,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=V,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:V(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy-caa3359b.js","./Checker-legacy-d9963d4a.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,p,d,m,y,v,g,A,b,w,E,k,x,S,_,L,V,P,O=document.createElement("style");return O.textContent="._mProtocol_ay5z2_1{font-size:.32rem;padding:.4rem .37333rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1._center_ay5z2_6{display:flex;align-items:center;justify-content:center}._mProtocol_ay5z2_1 ._protocolText_ay5z2_11{color:#f96a33;line-height:.4rem}._mProtocol_ay5z2_1 ._boxStyle_ay5z2_15{background:transparent!important;width:.4rem;height:.4rem;font-size:.4rem;border:transparent!important}._mProtocol_ay5z2_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._mProtocol_ay5z2_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:sub}._mProtocol_ay5z2_1 .van-checkbox__label{line-height:.4rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1 ._protocolContent_ay5z2_37{font-size:.37333rem;padding:.32rem;color:#333;line-height:1.4}\n",document.head.appendChild(O),{setters:[function(t){i=t.c,a=t.d,u=t.a4,c=t.X,l=t.a,s=t.n,f=t.t,h=t.p,p=t.aw,d=t.k,m=t.w,y=t.a2,v=t.ae,g=t.a6,A=t.a7,b=t.e,w=t.ab,E=t.h,k=t.D,x=t.A,S=t.I,_=t.V,L=t.S},function(t){V=t.c,P=t.s}],execute:function(){var r=o(i("form"),2),O=r[0],z=r[1],T={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:s,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:f,showErrorMessage:f,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}},C=a({name:O,props:T,emits:["submit","failed"],setup:function(t,e){var r=e.emit,n=e.slots,o=u(p),i=o.children,a=o.linkChildren,s=function(t){return t?i.filter((function(e){return t.includes(e.name)})):i},f=function(e){return"string"==typeof e?function(t){var e=i.find((function(e){return e.name===t}));return e?new Promise((function(t,r){e.validate().then((function(e){e?r(e):t()}))})):Promise.reject()}(e):t.validateFirst?(r=e,new Promise((function(t,e){var n=[];s(r).reduce((function(t,e){return t.then((function(){if(!n.length)return e.validate().then((function(t){t&&n.push(t)}))}))}),Promise.resolve()).then((function(){n.length?e(n):t()}))}))):function(t){return new Promise((function(e,r){var n=s(t);Promise.all(n.map((function(t){return t.validate()}))).then((function(t){(t=t.filter(Boolean)).length?r(t):e()}))}))}(e);var r},d=function(t,e){i.some((function(r){return r.name===t&&(r.$el.scrollIntoView(e),!0)}))},m=function(){return i.reduce((function(t,e){return void 0!==e.name&&(t[e.name]=e.formValue.value),t}),{})},y=function(){var e=m();f().then((function(){return r("submit",e)})).catch((function(n){r("failed",{values:e,errors:n}),t.scrollToError&&n[0].name&&d(n[0].name)}))},v=function(t){h(t),y()};return a({props:t}),c({submit:y,validate:f,getValues:m,scrollToField:d,resetValidation:function(t){"string"==typeof t&&(t=[t]),s(t).forEach((function(t){t.resetValidation()}))},getValidationStatus:function(){return i.reduce((function(t,e){return t[e.name]=e.getValidationStatus(),t}),{})}}),function(){var t;return l("form",{class:z(),onSubmit:v},[null==(t=n.default)?void 0:t.call(n)])}}}),B=(t("F",d(C)),o(i("checkbox-group"),2)),R=B[0],j=B[1],U={max:s,disabled:Boolean,iconSize:s,direction:String,modelValue:v(),checkedColor:String},N=Symbol(R);a({name:R,props:U,emits:["change","update:modelValue"],setup:function(t,e){var r=e.emit,n=e.slots,o=u(N),i=o.children,a=o.linkChildren,s=function(t){return r("update:modelValue",t)};return m((function(){return t.modelValue}),(function(t){return r("change",t)})),c({toggleAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"==typeof t&&(t={checked:t});var e=t,r=e.checked,n=e.skipDisabled,o=i.filter((function(t){return!!t.props.bindGroup&&(t.props.disabled&&n?t.checked.value:null!=r?r:!t.checked.value)})).map((function(t){return t.name}));s(o)}}),y((function(){return t.modelValue})),a({props:t,updateValue:s}),function(){var e;return l("div",{class:j([t.direction])},[null==(e=n.default)?void 0:e.call(n)])}}});var G=o(i("checkbox"),2),H=G[0],Q=G[1],M=g({},V,{bindGroup:f}),X=a({name:H,props:M,emits:["change","update:modelValue"],setup:function(t,e){var r=e.emit,n=e.slots,o=A(N).parent,i=b((function(){return o&&t.bindGroup?-1!==o.props.modelValue.indexOf(t.name):!!t.modelValue})),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!i.value;o&&t.bindGroup?function(e){var r=t.name,n=o.props,i=n.max,a=n.modelValue.slice();if(e)i&&a.length>=+i||a.includes(r)||(a.push(r),t.bindGroup&&o.updateValue(a));else{var u=a.indexOf(r);-1!==u&&(a.splice(u,1),t.bindGroup&&o.updateValue(a))}}(e):r("update:modelValue",e)};return m((function(){return t.modelValue}),(function(t){return r("change",t)})),c({toggle:a,props:t,checked:i}),y((function(){return t.modelValue})),function(){return l(P,E({bem:Q,role:"checkbox",parent:o,checked:i.value,onToggle:a},t),w(n,["default","icon"]))}}}),D=d(X),I="_mProtocol_ay5z2_1",q="_center_ay5z2_6",F="_protocolText_ay5z2_11",Y="_boxStyle_ay5z2_15",K="_protocolContent_ay5z2_37",Z={BUY_ORDER:"《课堂乐器服务协议》",REGISTER:"《课堂乐器注册协议》"};t("O",a({name:"o-protocol",props:{showHeader:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},prototcolType:{type:String,default:"BUY_ORDER"},center:{type:Boolean,default:!1}},data:function(){return{exists:!0,checked:this.modelValue,popupStatus:!1,protocolHTML:"",protocolPopup:null}},mounted:function(){var t=this;return n(e().mark((function r(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.checked=t.checked||t.exists,t.$emit("update:modelValue",t.checked||t.exists)}catch(r){}t.checked=t.modelValue,window.addEventListener("hashchange",t.onHash,!1);case 3:case"end":return e.stop()}}),r)})))()},unmounted:function(){window.removeEventListener("hashchange",this.onHash,!1)},watch:{checked:function(t){this.$emit("update:modelValue",t)},modelValue:function(){this.checked=this.modelValue}},methods:{getContractDetail:function(){var t=this;return n(e().mark((function r(){var n,o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.protocolHTML){e.next=7;break}return e.next=4,k.get("/edu-app/schoolContractTemplate/queryLatestContractTemplate",{params:{contractType:t.prototcolType}});case 4:n=e.sent,o=n.data,t.protocolHTML=o.contractTemplateContent;case 7:t.onPopupClose(),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),r,null,[[0,10]])})))()},onHash:function(){this.popupStatus=!1},onPopupClose:function(){if(this.popupStatus=!this.popupStatus,this.popupStatus){var t=this.$route,e=0;for(var r in t.query)e+=1;var n=window.location.href,o=e>0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(n).concat(o))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var t=this;return l("div",{class:[I,this.center?q:""]},[l(D,{modelValue:this.checked,"onUpdate:modelValue":function(e){return t.checked=e}},{default:function(){return[x("我已阅读并同意")]},icon:function(t){return l(S,{class:Y,name:t.checked?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAn1JREFUSEu9lstPU1EQh79pSwEJKkoMcWeMGl24cGEgCtXNrUSWiIH/waWoSHxENJG/wJ278tClxtgFCCwgrkw0UaOJr8RHgGAbIgUpY869thZ629uHuXd7ZuabO+c3c0bw+RMvnirCuNWOylmUNkQOgDY5frKE6juEWUQf0xOfEU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UEQPJZAR4LNNCHGBQ9V7bZarXeL7C8FCnRTkLdyauMooRO1D51zH7SSb5VK5Yz+4XBY1cpvjcfj+7J5IJsa/SpdtbcE/j5tnv9fACp89yTyXiZrciJke41G47Xq3+duF58EK/V6vSeq9/Uj5ANN7pHC/ClpPQM02EcZXBPgSPW2ZjlMOqQ9KzoV2bwRdFP1L0E3ktAYaGH8LCNW9qrZbD5XPU4DXDYumNNqXyrUTzU+kM5dH17nHWTEOwN2tAwMPSaq1/AMLTRNm6FCBLRsbMuAZNjGIRpd4s800EKzbYwpUB0dtDW496/vDL9FBS00bXzKsI/6iwZOFMobqq/MxkXii/oVzlIYhj9U15RAdxw7CMbqOMwahi6aaPMMy6ljnQYfNXUexWvDcqKzNxbYQfKAJbVhkaXRRuy3qzygCe1q/B3mAZrXVEgnAOONeN4gqzabPFoK6U+S5pQGuz51HsVrwyJpjoFwxOQBS2rDcsrOAzpF5zwrZQ1FE210YTmuBeoINVDjPMsaaGdkDQYsn6W7gATd1ybLeZZJQQtNE4sYEVCbLHeQrgbJJg5PP5H/BpsGWmh2jRGfFrzDLQ0MZLCpzfbFMlB8OYDRQtO0o8nHJz6tVVwxZkLH3UOZtMGsbHaBVruj59TsxQZb+QZ+ZWihyWJ8mVmh79TLXt010UOp7VrQ0YzzvQgnoTzbrSCTq/68du7tP2r9kkP+2pKJAAAAAElFTkSuQmCC"},null)}}),l("span",{onClick:this.getContractDetail,class:F},[Z[this.prototcolType]]),l(_,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[t.showHeader&&l(L,{title:"管乐团平台服务协议"},null),t.popupStatus&&l("div",{id:"mProtocol"},[l("div",{class:K,innerHTML:t.protocolHTML},null)])]}})])}}))}}}))}();
  5. >>>>>>>> master:dist/assets/index-legacy-7a2ed408.js