You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Video__Detail__id.9e86bd...

5 lines
102 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[235,14],{"1ZF9":function(Me,Se,u){Me.exports=u.p+"static/Authorize.cc9c212f.png"},"96GE":function(Me,Se,u){"use strict";u.r(Se),u.d(Se,"formatQuery",function(){return ct});var rt=u("T2oS"),ze=u("W9HT"),Ne=u("k1fw"),nt=u("PpiC"),ce=u("q1tI"),v=u.n(ce),ue=u("9kvl"),at=u("JqQi"),ot=u.n(at),pe=u("5Dmo"),je=u("3S7+"),De=u("+L6B"),he=u("2/Rp"),Xe=u("pC0b"),xe=u("GzdX"),Ge=u("9og8"),Ie=u("tJVT"),Ve=u("nUhQ"),Le=u.n(Ve),oe=u("2qtc"),Re=u("kLXV"),qe=u("7Kak"),de=u("9yH6"),_e=u("miYZ"),ae=u("tsqr"),We=u("5NDa"),re=u("5rEg"),Ke=u("Ty5D"),K=u("sWEp"),He=u.n(K),Pe=u("qdXH");function Je(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Je=function(){return _};var _={},M=Object.prototype,P=M.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},Ee=typeof Symbol=="function"?Symbol:{},ve=Ee.iterator||"@@iterator",ke=Ee.asyncIterator||"@@asyncIterator",ge=Ee.toStringTag||"@@toStringTag";function U(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{U({},"")}catch(r){U=function(t,n,o){return t[n]=o}}function Ue(r,e,t,n){var o=e&&e.prototype instanceof ee?e:ee,a=Object.create(o.prototype),i=new H(n||[]);return G(a,"_invoke",{value:x(r,t,i)}),a}function ye(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}_.wrap=Ue;var C={};function ee(){}function R(){}function O(){}var z={};U(z,ve,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(j([])));A&&A!==M&&P.call(A,ve)&&(z=A);var X=O.prototype=ee.prototype=Object.create(z);function fe(r){["next","throw","return"].forEach(function(e){U(r,e,function(t){return this._invoke(e,t)})})}function ie(r,e){function t(o,a,i,c){var d=ye(r[o],r,a);if(d.type!=="throw"){var B=d.arg,k=B.value;return k&&typeof k=="object"&&P.call(k,"__await")?e.resolve(k.__await).then(function(V){t("next",V,i,c)},function(V){t("throw",V,i,c)}):e.resolve(k).then(function(V){B.value=V,i(B)},function(V){return t("throw",V,i,c)})}c(d.arg)}var n;G(this,"_invoke",{value:function(a,i){function c(){return new e(function(d,B){t(a,i,d,B)})}return n=n?n.then(c,c):c()}})}function x(r,e,t){var n="suspendedStart";return function(o,a){if(n==="executing")throw new Error("Generator is already running");if(n==="completed"){if(o==="throw")throw a;return se()}for(t.method=o,t.arg=a;;){var i=t.delegate;if(i){var c=le(i,t);if(c){if(c===C)continue;return c}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n==="suspendedStart")throw n="completed",t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n="executing";var d=ye(r,e,t);if(d.type==="normal"){if(n=t.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:t.done}}d.type==="throw"&&(n="completed",t.method="throw",t.arg=d.arg)}}}function le(r,e){var t=e.method,n=r.iterator[t];if(n===void 0)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=void 0,le(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),C;var o=ye(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,C;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,C):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function F(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function J(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(F,this),this.reset(!0)}function j(r){if(r){var e=r[ve];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(P.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:se}}function se(){return{value:void 0,done:!0}}return R.prototype=O,G(X,"constructor",{value:O,configurable:!0}),G(O,"constructor",{value:R,configurable:!0}),R.displayName=U(O,ge,"GeneratorFunction"),_.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},_.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,O):(r.__proto__=O,U(r,ge,"GeneratorFunction")),r.prototype=Object.create(X),r},_.awrap=function(r){return{__await:r}},fe(ie.prototype),U(ie.prototype,ke,function(){return this}),_.AsyncIterator=ie,_.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new ie(Ue(r,e,t,n),o);return _.isGeneratorFunction(e)?a:a.next().then(function(i){return i.done?i.value:a.next()})},fe(X),U(X,ge,"Generator"),U(X,ve,function(){return this}),U(X,"toString",function(){return"[object Generator]"}),_.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},_.values=j,H.prototype={constructor:H,reset:function(e){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(J),!e)for(var t in this)t.charAt(0)==="t"&&P.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(B,k){return i.type="throw",i.arg=e,t.next=B,k&&(t.method="next",t.arg=void 0),!!k}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var c=P.call(a,"catchLoc"),d=P.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&P.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),J(n),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;J(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=void 0),C}},_}var Ze=re.a.Search,te=function(M){var P,G=M.videoDetail,Ee=M.globalSetting,ve=M.loading,ke=M.dispatch,ge=Object(nt.a)(M,["videoDetail","globalSetting","loading","dispatch"]),U=Object(Ke.m)(),Ue=Object(Ke.l)(),ye=Object(ce.useState)([]),C=Object(Ie.a)(ye,2),ee=C[0],R=C[1],O=Object(ce.useState)(""),z=Object(Ie.a)(O,2),I=z[0],A=z[1],X=Object(ce.useState)(),fe=Object(Ie.a)(X,2),ie=fe[0],x=fe[1],le=Object(ce.useState)(!1),F=Object(Ie.a)(le,2),J=F[0],H=F[1],j=Object(ce.useState)(!1),se=Object(Ie.a)(j,2),r=se[0],e=se[1];Object(ce.useEffect)(function(){G.actionTabs.key==="Banner-SendToClass"&&t()},[G.actionTabs.key]);var t=function(){var i=Object(Ge.a)(Je().mark(function c(){var d,B;return Je().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(Pe.h)({});case 2:if(B=V.sent,!(B==null||((d=B.courses)===null||d===void 0)?void 0:d.length)){V.next=8;break}R((B==null?void 0:B.courses)||[]),e(!0),V.next=11;break;case 8:return a(),ae.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),V.abrupt("return");case 11:case"end":return V.stop()}},c)}));return function(){return i.apply(this,arguments)}}(),n=function(c){R(ee==null?void 0:ee.map(function(d){return Object(Ne.a)(Object(Ne.a)({},d),{},{hide:!d.course_name.includes(c)})}))},o=function(){var i=Object(Ge.a)(Je().mark(function c(){var d;return Je().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(ie){k.next=3;break}return H(!0),k.abrupt("return");case 3:return k.next=5,Object(Pe.n)({id:U.videoId,course_id:ie});case 5:d=k.sent,(d==null?void 0:d.status)===0&&(ae.b.success("\u53D1\u9001\u6210\u529F"),a(),ue.c===null||ue.c===void 0||ue.c.replace("/classrooms/".concat(ie,"/shixun_homework")));case 7:case"end":return k.stop()}},c)}));return function(){return i.apply(this,arguments)}}(),a=function(){A(""),x(null),H(!1),ke({type:"videoDetail/setActionTabs",payload:{}}),e(!1)};return v.a.createElement(Re.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:r,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:o,onCancel:a},v.a.createElement("div",{className:He.a.wrap},v.a.createElement("div",{className:"mb10"},v.a.createElement(Ze,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:I,onChange:function(c){return A(c.target.value)},onSearch:function(c){A(c),n(c)}})),v.a.createElement("div",{className:He.a.radioWrap},v.a.createElement(de.a.Group,{value:ie,onChange:function(c){x(c.target.value),H(!1)}},ee==null||((P=ee.filter(function(i){return!(i==null?void 0:i.hide)}))===null||P===void 0)?void 0:P.map(function(i,c){return v.a.createElement(de.a,{className:He.a.radio,value:i.course_id,key:c},i.course_name)}))),J&&v.a.createElement("div",{className:He.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),v.a.createElement("div",{className:He.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},me=Object(ue.a)(function(_){var M=_.videoDetail,P=_.loading,G=_.globalSetting;return{videoDetail:M,globalSetting:G,loading:P.models.index}})(te),w=u("sBCT"),N=u("1vsH"),h=u("NLgs"),l=u("Awhp"),f=u("KrTs"),E=u("O3gP"),g=u("lrIw"),D=u("oBTY"),W=u("eoI0"),ne=u.n(W),Z=u("HBuW");function Oe(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Oe=function(){return _};var _={},M=Object.prototype,P=M.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},Ee=typeof Symbol=="function"?Symbol:{},ve=Ee.iterator||"@@iterator",ke=Ee.asyncIterator||"@@asyncIterator",ge=Ee.toStringTag||"@@toStringTag";function U(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{U({},"")}catch(r){U=function(t,n,o){return t[n]=o}}function Ue(r,e,t,n){var o=e&&e.prototype instanceof ee?e:ee,a=Object.create(o.prototype),i=new H(n||[]);return G(a,"_invoke",{value:x(r,t,i)}),a}function ye(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}_.wrap=Ue;var C={};function ee(){}function R(){}function O(){}var z={};U(z,ve,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(j([])));A&&A!==M&&P.call(A,ve)&&(z=A);var X=O.prototype=ee.prototype=Object.create(z);function fe(r){["next","throw","return"].forEach(function(e){U(r,e,function(t){return this._invoke(e,t)})})}function ie(r,e){function t(o,a,i,c){var d=ye(r[o],r,a);if(d.type!=="throw"){var B=d.arg,k=B.value;return k&&typeof k=="object"&&P.call(k,"__await")?e.resolve(k.__await).then(function(V){t("next",V,i,c)},function(V){t("throw",V,i,c)}):e.resolve(k).then(function(V){B.value=V,i(B)},function(V){return t("throw",V,i,c)})}c(d.arg)}var n;G(this,"_invoke",{value:function(a,i){function c(){return new e(function(d,B){t(a,i,d,B)})}return n=n?n.then(c,c):c()}})}function x(r,e,t){var n="suspendedStart";return function(o,a){if(n==="executing")throw new Error("Generator is already running");if(n==="completed"){if(o==="throw")throw a;return se()}for(t.method=o,t.arg=a;;){var i=t.delegate;if(i){var c=le(i,t);if(c){if(c===C)continue;return c}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n==="suspendedStart")throw n="completed",t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n="executing";var d=ye(r,e,t);if(d.type==="normal"){if(n=t.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:t.done}}d.type==="throw"&&(n="completed",t.method="throw",t.arg=d.arg)}}}function le(r,e){var t=e.method,n=r.iterator[t];if(n===void 0)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=void 0,le(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),C;var o=ye(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,C;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,C):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function F(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function J(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(F,this),this.reset(!0)}function j(r){if(r){var e=r[ve];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(P.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:se}}function se(){return{value:void 0,done:!0}}return R.prototype=O,G(X,"constructor",{value:O,configurable:!0}),G(O,"constructor",{value:R,configurable:!0}),R.displayName=U(O,ge,"GeneratorFunction"),_.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},_.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,O):(r.__proto__=O,U(r,ge,"GeneratorFunction")),r.prototype=Object.create(X),r},_.awrap=function(r){return{__await:r}},fe(ie.prototype),U(ie.prototype,ke,function(){return this}),_.AsyncIterator=ie,_.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new ie(Ue(r,e,t,n),o);return _.isGeneratorFunction(e)?a:a.next().then(function(i){return i.done?i.value:a.next()})},fe(X),U(X,ge,"Generator"),U(X,ve,function(){return this}),U(X,"toString",function(){return"[object Generator]"}),_.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},_.values=j,H.prototype={constructor:H,reset:function(e){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(J),!e)for(var t in this)t.charAt(0)==="t"&&P.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(B,k){return i.type="throw",i.arg=e,t.next=B,k&&(t.method="next",t.arg=void 0),!!k}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var c=P.call(a,"catchLoc"),d=P.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&P.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),J(n),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;J(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=void 0),C}},_}var be=function(M){var P,G,Ee=M.videoDetail,ve=M.dispatch,ke=ve===void 0?function(){}:ve,ge=M.visible,U=M.onClose,Ue=U===void 0?function(){}:U,ye=Ee.queryParams,C=Ee.queryParams,ee=C.subject_id,R=C.videoId,O={videoId:R},z=Object(ce.useState)(0),I=Object(Ie.a)(z,2),A=I[0],X=I[1],fe=Object(ce.useState)(""),ie=Object(Ie.a)(fe,2),x=ie[0],le=ie[1],F=Object(ce.useState)([]),J=Object(Ie.a)(F,2),H=J[0],j=J[1],se=Object(ce.useState)([]),r=Object(Ie.a)(se,2),e=r[0],t=r[1];Object(ce.useEffect)(function(){var c,d,B=((c=Ee.detail)===null||c===void 0||((d=c.video_item)===null||d===void 0)?void 0:d.schools)||[];X((B==null?void 0:B.length)?1:0),t(B)},[(P=Ee.detail)===null||P===void 0||((G=P.video_item)===null||G===void 0)?void 0:G.schools]);var n=function(){var c=Object(Ge.a)(Oe().mark(function d(B){var k;return Oe().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,Object(Z.L)({q:B});case 2:k=lt.sent,k&&j(k.shools_name||[]);case 4:case"end":return lt.stop()}},d)}));return function(B){return c.apply(this,arguments)}}(),o=function(d){if(e.includes(d)){ae.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}le(""),t([].concat(Object(D.a)(e),[d]))},a=function(){var c=Object(Ge.a)(Oe().mark(function d(){var B;return Oe().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!(A===1&&!(e==null?void 0:e.length))){V.next=2;break}return V.abrupt("return",ae.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return V.next=4,Object(Pe.a)(Object(Ne.a)(Object(Ne.a)({},ye),{},{id:O.videoId,schools:A===0?[]:e,is_public:!(A===2)}));case 4:B=V.sent,(B==null?void 0:B.status)===0&&(ae.b.success("\u8BBE\u7F6E\u6210\u529F"),i());case 6:case"end":return V.stop()}},d)}));return function(){return c.apply(this,arguments)}}(),i=function(){Ue(),ke({type:"videoDetail/getVideoDetail",payload:Object(Ne.a)(Object(Ne.a)({},ye),{},{id:O.videoId})})};return v.a.createElement(Re.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:ne.a.modal,visible:ge,onOk:a,onCancel:i},v.a.createElement(v.a.Fragment,null,v.a.createElement(de.a.Group,{value:A,onChange:function(d){return X(d.target.value)}},v.a.createElement(de.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),v.a.createElement(de.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09")),v.a.createElement(de.a,{value:2},"\u4E0D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u4E0D\u53EF\u89C1\uFF09"))),A===1&&v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"mt10"},v.a.createElement(g.a,{showSearch:!0,className:ne.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:x,onChange:function(d){le(d),n(d)},onSelect:o,options:H==null?void 0:H.map(function(c){return{value:c}})})),v.a.createElement("div",{className:"mt10"},e==null?void 0:e.map(function(c,d){return v.a.createElement(f.a,{count:v.a.createElement("span",{className:ne.a.delete,onClick:function(){return t(e.filter(function(k){return k!==c}))}},"x"),className:"mt10 mr20 current",key:d},v.a.createElement(he.a,{type:"primary",ghost:!0},c))})))))},Ce=be;function we(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */we=function(){return _};var _={},M=Object.prototype,P=M.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},Ee=typeof Symbol=="function"?Symbol:{},ve=Ee.iterator||"@@iterator",ke=Ee.asyncIterator||"@@asyncIterator",ge=Ee.toStringTag||"@@toStringTag";function U(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{U({},"")}catch(r){U=function(t,n,o){return t[n]=o}}function Ue(r,e,t,n){var o=e&&e.prototype instanceof ee?e:ee,a=Object.create(o.prototype),i=new H(n||[]);return G(a,"_invoke",{value:x(r,t,i)}),a}function ye(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}_.wrap=Ue;var C={};function ee(){}function R(){}function O(){}var z={};U(z,ve,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(j([])));A&&A!==M&&P.call(A,ve)&&(z=A);var X=O.prototype=ee.prototype=Object.create(z);function fe(r){["next","throw","return"].forEach(function(e){U(r,e,function(t){return this._invoke(e,t)})})}function ie(r,e){function t(o,a,i,c){var d=ye(r[o],r,a);if(d.type!=="throw"){var B=d.arg,k=B.value;return k&&typeof k=="object"&&P.call(k,"__await")?e.resolve(k.__await).then(function(V){t("next",V,i,c)},function(V){t("throw",V,i,c)}):e.resolve(k).then(function(V){B.value=V,i(B)},function(V){return t("throw",V,i,c)})}c(d.arg)}var n;G(this,"_invoke",{value:function(a,i){function c(){return new e(function(d,B){t(a,i,d,B)})}return n=n?n.then(c,c):c()}})}function x(r,e,t){var n="suspendedStart";return function(o,a){if(n==="executing")throw new Error("Generator is already running");if(n==="completed"){if(o==="throw")throw a;return se()}for(t.method=o,t.arg=a;;){var i=t.delegate;if(i){var c=le(i,t);if(c){if(c===C)continue;return c}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n==="suspendedStart")throw n="completed",t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n="executing";var d=ye(r,e,t);if(d.type==="normal"){if(n=t.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:t.done}}d.type==="throw"&&(n="completed",t.method="throw",t.arg=d.arg)}}}function le(r,e){var t=e.method,n=r.iterator[t];if(n===void 0)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=void 0,le(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),C;var o=ye(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,C;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,C):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function F(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function J(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(F,this),this.reset(!0)}function j(r){if(r){var e=r[ve];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(P.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:se}}function se(){return{value:void 0,done:!0}}return R.prototype=O,G(X,"constructor",{value:O,configurable:!0}),G(O,"constructor",{value:R,configurable:!0}),R.displayName=U(O,ge,"GeneratorFunction"),_.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},_.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,O):(r.__proto__=O,U(r,ge,"GeneratorFunction")),r.prototype=Object.create(X),r},_.awrap=function(r){return{__await:r}},fe(ie.prototype),U(ie.prototype,ke,function(){return this}),_.AsyncIterator=ie,_.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new ie(Ue(r,e,t,n),o);return _.isGeneratorFunction(e)?a:a.next().then(function(i){return i.done?i.value:a.next()})},fe(X),U(X,ge,"Generator"),U(X,ve,function(){return this}),U(X,"toString",function(){return"[object Generator]"}),_.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},_.values=j,H.prototype={constructor:H,reset:function(e){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(J),!e)for(var t in this)t.charAt(0)==="t"&&P.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(B,k){return i.type="throw",i.arg=e,t.next=B,k&&(t.method="next",t.arg=void 0),!!k}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var c=P.call(a,"catchLoc"),d=P.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&P.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),J(n),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;J(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=void 0),C}},_}var y=function(M){var P=M.user,G=M.videoDetail,Ee=M.globalSetting,ve=M.loading,ke=M.dispatch,ge=Object(nt.a)(M,["user","videoDetail","globalSetting","loading","dispatch"]),U=G.queryParams,Ue=G.queryParams,ye=Ue.subject_id,C=Ue.videoId,ee={videoId:C},R=Object(ce.useState)(),O=Object(Ie.a)(R,2),z=O[0],I=O[1],A=Object(ce.useState)(),X=Object(Ie.a)(A,2),fe=X[0],ie=X[1],x=Object(ce.useState)(!1),le=Object(Ie.a)(x,2),F=le[0],J=le[1],H=function(){ke({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},j=function(){var t=Object(Ge.a)(we().mark(function n(){var o,a,i;return we().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(((o=P.userInfo)===null||o===void 0?void 0:o.admin)||((a=P.userInfo)===null||a===void 0?void 0:a.is_teacher)&&Object(h.d)())){d.next=6;break}return d.next=3,Object(Pe.g)(Object(Ne.a)({id:ee.videoId},U));case 3:i=d.sent,ie(i==null?void 0:i.video_item),I(!0);case 6:case"end":return d.stop()}},n)}));return function(){return t.apply(this,arguments)}}(),se=function(){var t=Object(Ge.a)(we().mark(function n(o){var a;return we().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Object(Pe.m)(Object(Ne.a)(Object(Ne.a)({},o),{},{id:ee.videoId},U));case 2:return a=c.sent,(a==null?void 0:a.status)===0&&(I(!1),ke({type:"videoDetail/getVideoDetail",payload:Object(Ne.a)({id:ee.videoId},U)})),c.abrupt("return",a);case 5:case"end":return c.stop()}},n)}));return function(o){return t.apply(this,arguments)}}(),r=G.detail||{},e=r.video_item;return v.a.createElement("aside",{className:Le.a.banner},v.a.createElement("aside",{className:Le.a.wrap},v.a.createElement("p",{className:Le.a.title},e==null?void 0:e.name),v.a.createElement("div",{className:Le.a.contentWrap},v.a.createElement("span",{className:"font14 c-white"},v.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),v.a.createElement("span",null,(e==null?void 0:e.study_video_items_count)||0),v.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),v.a.createElement(xe.a,{allowHalf:!0,value:Object(N.v)(e==null?void 0:e.star),disabled:!0,className:Le.a.rating})),v.a.createElement("div",null,(e==null?void 0:e.can_edit)&&v.a.createElement(he.a,{className:"".concat(Le.a.button," ").concat(Le.a.buttonTransparent," mr15"),onClick:function(){return J(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(e==null?void 0:e.can_edit)&&v.a.createElement(he.a,{className:"".concat(Le.a.button," ").concat(Le.a.buttonTransparent," mr15"),onClick:j},"\u7F16\u8F91"),v.a.createElement(je.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},v.a.createElement(he.a,{className:"".concat(Le.a.button," ").concat(Le.a.buttonTransparent," mr15"),onClick:H},"\u53D1\u9001\u81F3"))))),v.a.createElement(me,null),v.a.createElement(w.a,{editData:fe,visible:z,onCancel:function(){return I(!1)},onOk:se}),v.a.createElement(Ce,{dispatch:ke,videoDetail:G,visible:F,onClose:function(){return J(!1)}}))},s=Object(ue.a)(function(_){var M=_.user,P=_.videoDetail,G=_.loading,Ee=_.globalSetting;return{user:M,videoDetail:P,globalSetting:Ee,loading:G}})(y),p=u("R9oj"),T=u("ECub"),q=u("sRBo"),$=u("kaz8"),Te=u("J66h"),Ae=u("hgre"),Fe=u("9Bee"),et=u("vZDz"),$e=u.n(et),b=u("9VGf");function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return _};var _={},M=Object.prototype,P=M.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},Ee=typeof Symbol=="function"?Symbol:{},ve=Ee.iterator||"@@iterator",ke=Ee.asyncIterator||"@@asyncIterator",ge=Ee.toStringTag||"@@toStringTag";function U(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{U({},"")}catch(r){U=function(t,n,o){return t[n]=o}}function Ue(r,e,t,n){var o=e&&e.prototype instanceof ee?e:ee,a=Object.create(o.prototype),i=new H(n||[]);return G(a,"_invoke",{value:x(r,t,i)}),a}function ye(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}_.wrap=Ue;var C={};function ee(){}function R(){}function O(){}var z={};U(z,ve,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(j([])));A&&A!==M&&P.call(A,ve)&&(z=A);var X=O.prototype=ee.prototype=Object.create(z);function fe(r){["next","throw","return"].forEach(function(e){U(r,e,function(t){return this._invoke(e,t)})})}function ie(r,e){function t(o,a,i,c){var d=ye(r[o],r,a);if(d.type!=="throw"){var B=d.arg,k=B.value;return k&&typeof k=="object"&&P.call(k,"__await")?e.resolve(k.__await).then(function(V){t("next",V,i,c)},function(V){t("throw",V,i,c)}):e.resolve(k).then(function(V){B.value=V,i(B)},function(V){return t("throw",V,i,c)})}c(d.arg)}var n;G(this,"_invoke",{value:function(a,i){function c(){return new e(function(d,B){t(a,i,d,B)})}return n=n?n.then(c,c):c()}})}function x(r,e,t){var n="suspendedStart";return function(o,a){if(n==="executing")throw new Error("Generator is already running");if(n==="completed"){if(o==="throw")throw a;return se()}for(t.method=o,t.arg=a;;){var i=t.delegate;if(i){var c=le(i,t);if(c){if(c===C)continue;return c}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n==="suspendedStart")throw n="completed",t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n="executing";var d=ye(r,e,t);if(d.type==="normal"){if(n=t.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:t.done}}d.type==="throw"&&(n="completed",t.method="throw",t.arg=d.arg)}}}function le(r,e){var t=e.method,n=r.iterator[t];if(n===void 0)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=void 0,le(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),C;var o=ye(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,C;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,C):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function F(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function J(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(F,this),this.reset(!0)}function j(r){if(r){var e=r[ve];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(P.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:se}}function se(){return{value:void 0,done:!0}}return R.prototype=O,G(X,"constructor",{value:O,configurable:!0}),G(O,"constructor",{value:R,configurable:!0}),R.displayName=U(O,ge,"GeneratorFunction"),_.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},_.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,O):(r.__proto__=O,U(r,ge,"GeneratorFunction")),r.prototype=Object.create(X),r},_.awrap=function(r){return{__await:r}},fe(ie.prototype),U(ie.prototype,ke,function(){return this}),_.AsyncIterator=ie,_.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new ie(Ue(r,e,t,n),o);return _.isGeneratorFunction(e)?a:a.next().then(function(i){return i.done?i.value:a.next()})},fe(X),U(X,ge,"Generator"),U(X,ve,function(){return this}),U(X,"toString",function(){return"[object Generator]"}),_.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},_.values=j,H.prototype={constructor:H,reset:function(e){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(J),!e)for(var t in this)t.charAt(0)==="t"&&P.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(B,k){return i.type="throw",i.arg=e,t.next=B,k&&(t.method="next",t.arg=void 0),!!k}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var c=P.call(a,"catchLoc"),d=P.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&P.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),J(n),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;J(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=void 0),C}},_}var L=function(M){var P=M.videoDetail,G=M.globalSetting,Ee=M.loading,ve=M.dispatch,ke=Object(nt.a)(M,["videoDetail","globalSetting","loading","dispatch"]),ge=P.queryParams,U=P.selectParams,Ue=P.videoList,ye=ge.subject_id,C=ge.videoId,ee=U.checkBoxValue,R=U.radioValue,O={videoId:C},z={query:ge},I=Object(ce.useRef)(),A=Object(ce.useRef)(),X=Object(ce.useRef)(),fe=Object(ce.useRef)(5),ie=P.detail||{},x=ie.video_item;Object(b.a)(Object(Ge.a)(m().mark(function t(){return m().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!A.current){o.next=5;break}return console.log("videoRef lastUpdatedTime: ",I.current.getLastUpdatedTime()),console.log(I.current),o.next=5,le();case 5:case"end":return o.stop()}},t)})),fe.current*1e3);var le=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=n?{is_f:1}:{};return Object(Pe.o)(Object(Ne.a)(Object(Ne.a)({},o),{id:O.videoId,point:I.current.getLastUpdatedTime(),total:I.current.getDuration()}))},F=function(n){return console.log("handlLogWatchHistory: ",n),n.ed==="1"&&(A.current=!1,le(!0)),!A.current&&!n.ed&&(A.current=!0,fe.current=I.current.getDuration()<=5?1:5,le()),ve({type:"userDetail/logWatchHistory",payload:n})},J=function(){A.current=!1},H=function(){A.current=!0},j=function(){X.current=5,Re.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:v.a.createElement("div",{className:"tc font14"},v.a.createElement(xe.a,{defaultValue:X.current,onChange:function(o){return X.current=o},className:$e.a.modalRating})),onOk:function(){var n=Object(Ge.a)(m().mark(function a(){var i;return m().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Object(Pe.l)({id:O.videoId,star:X.current});case 2:i=d.sent,i.status===0&&ve({type:"videoDetail/getVideoDetail",payload:Object(Ne.a)({id:O.videoId},ct(z.query))});case 4:case"end":return d.stop()}},a)}));function o(){return n.apply(this,arguments)}return o}()})},se=function(n){var o=window.filterVideoSign,a=o.findIndex(function(V){return V.id===C}),i=a===o.length-1;if(i)return;var c=o[a+1].id,d=o[a+1].can_view,B=o[a+1].link,k=o[a+1].is_public;if(window.checkBoxValue){if(B){window.open(B);return}if(!d){Re.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!k){Re.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}ve({type:"videoDetail/handleList",payload:{videoId:c}}),window.videoTimer=setTimeout(function(){n.current.play()},2e3)}},r=function(n,o){if(n==="checkBox"){var a=o.target.checked;window.checkBoxValue=a,ve({type:"videoDetail/setSelectValue",payload:{radioValue:R,checkBoxValue:a}});return}ve({type:"videoDetail/setSelectValue",payload:{checkBoxValue:ee,radioValue:o.target.value}})},e=function(){var n=Ue.findIndex(function(a){return a.id===C}),o=n===Ue.length-1;return o?v.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):v.a.createElement($.a,{onChange:function(i){r("checkBox",i)},checked:ee},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return v.a.createElement("aside",{className:$e.a.contentWrap},v.a.createElement("aside",{className:$e.a.wrap},v.a.createElement("header",null,(x==null?void 0:x.description)&&v.a.createElement("span",{className:$e.a.introName},"\u7B80\u4ECB"),Object(N.F)(x==null?void 0:x.my_star)?v.a.createElement(he.a,{type:"primary",ghost:!0,onClick:j},"\u8BC4\u5206"):v.a.createElement("span",null,v.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),v.a.createElement(xe.a,{value:x==null?void 0:x.my_star,disabled:!0,className:$e.a.rating}))),v.a.createElement("div",{className:"mt20"},v.a.createElement(Fe.a,{value:(x==null?void 0:x.description)||""})),!(x==null?void 0:x.can_edit)&&!(x==null?void 0:x.is_public)?v.a.createElement(T.a,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):v.a.createElement(Ae.a,{ref:I,startTime:x==null?void 0:x.last_point,src:(x==null?void 0:x.is_link)?x==null?void 0:x.link:(x==null?void 0:x.play_url)&&Te.Base64.decode(x==null?void 0:x.play_url),videoId:x==null?void 0:x.video_id,logWatchHistory:F,handlePause:J,handlePlay:H,videoSpeed:R,handlePlayEnded:se}),!(x==null?void 0:x.can_edit)&&!(x==null?void 0:x.is_public)?null:v.a.createElement("div",{className:$e.a.footer},v.a.createElement("div",{className:$e.a.checkBox},e()),v.a.createElement("div",{className:$e.a.radioGroup},v.a.createElement(de.a.Group,{onChange:function(n){r("radio",n)},value:R},v.a.createElement(de.a,{value:1},"1.0X"),v.a.createElement(de.a,{value:1.5},"1.5X"),v.a.createElement(de.a,{value:2},"2.0X"))))))},Y=Object(ue.a)(function(_){var M=_.videoDetail,P=_.loading,G=_.globalSetting;return{videoDetail:M,globalSetting:G,loading:P}})(L),Q=u("MRWH"),S=u.n(Q),Be=u("V0Rq"),Qe=u("m3rI");function Ye(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ye=function(){return _};var _={},M=Object.prototype,P=M.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},Ee=typeof Symbol=="function"?Symbol:{},ve=Ee.iterator||"@@iterator",ke=Ee.asyncIterator||"@@asyncIterator",ge=Ee.toStringTag||"@@toStringTag";function U(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{U({},"")}catch(r){U=function(t,n,o){return t[n]=o}}function Ue(r,e,t,n){var o=e&&e.prototype instanceof ee?e:ee,a=Object.create(o.prototype),i=new H(n||[]);return G(a,"_invoke",{value:x(r,t,i)}),a}function ye(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}_.wrap=Ue;var C={};function ee(){}function R(){}function O(){}var z={};U(z,ve,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(j([])));A&&A!==M&&P.call(A,ve)&&(z=A);var X=O.prototype=ee.prototype=Object.create(z);function fe(r){["next","throw","return"].forEach(function(e){U(r,e,function(t){return this._invoke(e,t)})})}function ie(r,e){function t(o,a,i,c){var d=ye(r[o],r,a);if(d.type!=="throw"){var B=d.arg,k=B.value;return k&&typeof k=="object"&&P.call(k,"__await")?e.resolve(k.__await).then(function(V){t("next",V,i,c)},function(V){t("throw",V,i,c)}):e.resolve(k).then(function(V){B.value=V,i(B)},function(V){return t("throw",V,i,c)})}c(d.arg)}var n;G(this,"_invoke",{value:function(a,i){function c(){return new e(function(d,B){t(a,i,d,B)})}return n=n?n.then(c,c):c()}})}function x(r,e,t){var n="suspendedStart";return function(o,a){if(n==="executing")throw new Error("Generator is already running");if(n==="completed"){if(o==="throw")throw a;return se()}for(t.method=o,t.arg=a;;){var i=t.delegate;if(i){var c=le(i,t);if(c){if(c===C)continue;return c}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n==="suspendedStart")throw n="completed",t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n="executing";var d=ye(r,e,t);if(d.type==="normal"){if(n=t.done?"completed":"suspendedYield",d.arg===C)continue;return{value:d.arg,done:t.done}}d.type==="throw"&&(n="completed",t.method="throw",t.arg=d.arg)}}}function le(r,e){var t=e.method,n=r.iterator[t];if(n===void 0)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=void 0,le(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),C;var o=ye(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,C;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,C):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function F(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function J(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(F,this),this.reset(!0)}function j(r){if(r){var e=r[ve];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(P.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:se}}function se(){return{value:void 0,done:!0}}return R.prototype=O,G(X,"constructor",{value:O,configurable:!0}),G(O,"constructor",{value:R,configurable:!0}),R.displayName=U(O,ge,"GeneratorFunction"),_.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===R||(e.displayName||e.name)==="GeneratorFunction")},_.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,O):(r.__proto__=O,U(r,ge,"GeneratorFunction")),r.prototype=Object.create(X),r},_.awrap=function(r){return{__await:r}},fe(ie.prototype),U(ie.prototype,ke,function(){return this}),_.AsyncIterator=ie,_.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new ie(Ue(r,e,t,n),o);return _.isGeneratorFunction(e)?a:a.next().then(function(i){return i.done?i.value:a.next()})},fe(X),U(X,ge,"Generator"),U(X,ve,function(){return this}),U(X,"toString",function(){return"[object Generator]"}),_.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},_.values=j,H.prototype={constructor:H,reset:function(e){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(J),!e)for(var t in this)t.charAt(0)==="t"&&P.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(B,k){return i.type="throw",i.arg=e,t.next=B,k&&(t.method="next",t.arg=void 0),!!k}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var c=P.call(a,"catchLoc"),d=P.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&P.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),J(n),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;J(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=void 0),C}},_}var tt=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:v.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:v.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:v.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:v.a.createElement("i",{className:"iconfont icon-kongbai font20"})}],it=function(M){var P=M.dispatch,G=M.videoDetail,Ee=M.user,ve=Object(nt.a)(M,["dispatch","videoDetail","user"]),ke=G.queryParams,ge=G.stages,U=G.videoList,Ue=G.cust_seq,ye=ke.subject_id,C=ke.videoId,ee=ke.course_id;Object(ce.useEffect)(function(){P(ye?{type:"videoDetail/getStageData",payload:{subject_id:ye}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:ee}})},[]);var R=function(){var le=Object(Ge.a)(Ye().mark(function F(J,H){var j;return Ye().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(P({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!H){r.next=7;break}return r.next=4,Object(Z.z)({id:J});case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,Object(Z.A)({id:J});case 9:r.t0=r.sent;case 10:if(j=r.t0,P({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((j==null?void 0:j.game_identifier)||(j==null?void 0:j.identifier))){r.next=15;break}return Object(N.I)(H?"/tasks/".concat(j==null?void 0:j.identifier,"/jupyter"):"/tasks/".concat(j.game_identifier)),r.abrupt("return");case 15:(j==null?void 0:j.status)===2?z(j==null?void 0:j.message):(j==null?void 0:j.status)===3&&O(j==null?void 0:j.message);case 16:case"end":return r.stop()}},F)}));return function(J,H){return le.apply(this,arguments)}}(),O=function(F){Re.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:v.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",F,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},z=function le(F){var J;F=((J=F)===null||J===void 0?void 0:J.includes(".json"))?F:"".concat(F,".json"),Re.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:v.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var H=Object(Ge.a)(Ye().mark(function se(){var r,e;return Ye().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(Be.O)({url:F});case 2:if(r=n.sent,r){n.next=5;break}return n.abrupt("return");case 5:return ae.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),n.next=8,Object(Z.A)({id:r.shixun_identifier});case 8:if(e=n.sent,!(e==null?void 0:e.game_identifier)){n.next=12;break}return Object(N.I)("/tasks/".concat(e.game_identifier)),n.abrupt("return");case 12:(e==null?void 0:e.status)===2?le(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&O(e==null?void 0:e.message);case 13:case"end":return n.stop()}},se)}));function j(){return H.apply(this,arguments)}return j}()})},I=G.detail||{},A=I.video_item,X=function(F){if((F==null?void 0:F.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);var J=F.id,H=F.item_type,j=F.identifier,se=F.is_jupyter,r=F.url,e=F.link;if(H==="VideoItem"&&!e){var t,n;if(!((t=Ee.userInfo)===null||t===void 0?void 0:t.admin)&&!((n=Ee.userInfo)===null||n===void 0?void 0:n.business)&&!F.can_view){Re.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!A.can_edit&&!F.is_public){Re.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}P({type:"videoDetail/handleList",payload:{videoId:J}});return}if(H==="VideoItem"&&!!e){F.link&&Object(Pe.o)({is_f:1,id:F.id,point:0,total:0}),window.open(e);return}if(H==="Shixun"){R(j,se);return}window.open(Qe.a.IMG_SERVER+r)},fe=function(F){var J=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],H=["","\u5341","\u767E","\u5343","\u4E07"];F=parseInt(F);var j=function(t){for(var n=t.toString().split("").reverse(),o="",a=0;a<n.length;a++)o=(a==0&&n[a]==0||a>0&&n[a]==0&&n[a-1]==0?"":J[n[a]]+(n[a]==0?H[0]:H[a]))+o;return o},se=Math.floor(F/1e4),r=F%1e4;return r.toString().length<4&&(r="0"+r),se?j(se)+"\u4E07"+j(r):j(F)},ie=function(F,J,H,j){var se=F.name,r=F.item_type,e=F.id,t="".concat(J+1,"-").concat(H+1,"-").concat(j+1),n=tt.find(function(i){return i.type===r}).icon,o=r==="VideoItem"?S.a.brght:S.a.gray,a=C===e?"".concat(o," ").concat(S.a.active):o;return v.a.createElement("div",{key:t,onClick:function(){return X(F)},className:a,style:{paddingLeft:52}},v.a.createElement("span",{className:S.a.s1},n),!!Ue&&v.a.createElement("span",{className:S.a.s2},t),v.a.createElement("span",{className:S.a.s3},"\u203B ",se))},x=function(F,J,H){var j=F.name,se=F.item_type,r=F.id,e=F.children,t="".concat(J+1,"-").concat(H+1),n=tt.find(function(i){return i.type===se}).icon,o=se==="VideoItem"?S.a.brght:S.a.gray,a=C===r?"".concat(o," ").concat(S.a.active):o;return v.a.createElement(ce.Fragment,{key:t},v.a.createElement("div",{onClick:function(){return X(F)},className:a},v.a.createElement("span",{className:S.a.s1},n),!!Ue&&v.a.createElement("span",{className:S.a.s2},t),v.a.createElement("span",{className:S.a.s3},"\u203B ",j)),!!e.length&&e.map(function(i,c){return ie(i,J,H,c)}))};return v.a.createElement("aside",{className:S.a.list},ge.map(function(le,F){var J=le.stage_name,H=le.shixuns_list,j=H===void 0?[]:H,se=le.items,r=se===void 0?[]:se,e=Object(D.a)(r);return v.a.createElement("aside",{key:F,className:S.a.box},v.a.createElement("div",{className:S.a.title},fe(F+1),"\u3001",J),e.map(function(t,n){return x(t,F,n)}),F!==ge.length-1&&v.a.createElement("div",{className:S.a.line}))}))},ut=Object(ue.a)(function(_){var M=_.user,P=_.videoDetail,G=_.loading,Ee=_.globalSetting;return{user:M,videoDetail:P,globalSetting:Ee,loading:G}})(it),ct=function(M){var P=M.subject_id;return{subject_id:P,course_id:P}},st=function(M){var P=M.videoDetail,G=M.globalSetting,Ee=M.loading,ve=M.dispatch,ke=Object(nt.a)(M,["videoDetail","globalSetting","loading","dispatch"]),ge=P.queryParams,U=ge.subject_id,Ue=ge.videoId,ye={videoId:Ue},C={query:ge};return Object(ce.useEffect)(function(){if(console.log("\u9A8C\u8BC1\u6D4B\u8BD5\u73AF\u5883"),!ye.videoId)return;ve({type:"videoDetail/getVideoDetail",payload:Object(Ne.a)(Object(Ne.a)({},ge),{},{id:ye.videoId})})},[ye.videoId]),Object(ce.useEffect)(function(){},[P]),v.a.createElement(ze.a,{spinning:!1},v.a.createElement("section",{className:ot.a.bg},v.a.createElement(s,null),v.a.createElement("div",{className:ot.a.container},v.a.createElement(ut,null),v.a.createElement(Y,null))))},dt=Se.default=Object(ue.a)(function(_){var M=_.videoDetail,P=_.loading,G=_.globalSetting;return{videoDetail:M,globalSetting:G,loading:P}})(st)},"9Bee":function(Me,Se,u){"use strict";var rt=u("k1fw"),ze=u("q1tI"),Ne=u.n(ze),nt=u("vg9a"),ce=u("tJVT"),v=u("DlQD"),ue=u.n(v),at=u("rUJ1");function ot(w,N){var h=w.match(/^(\s+)(?:```)/);if(h===null)return N;var l=h[1];return N.split(`
`).map(function(f){var E=f.match(/^\s+/);if(E===null)return f;var g=Object(ce.a)(E,1),D=g[0];return D.length>=l.length?f.slice(l.length):f}).join(`
`)}var pe=[],je=["<ul>"],De=new ue.a.Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){pe.length=0,je=["<ul>"]}var xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ge(w,N,h,l){if(N>=w.length||w[N].level<=h)return N;var f=w[N];l.push("<li><a href='#"+f.anchor+"'>"+f.text+"</a>"),N++;var E=[];return N=Ge(w,N,f.level,E),E.length>0&&(l.push("<ul>"),E.forEach(function(g){l.push(g)}),l.push("</ul>")),l.push("</li>"),N=Ge(w,N,h,l),N}function Ie(){return Ge(pe,0,0,je),je.push("</ul>"),je.join("")}var Ve={heading:function(N){var h=he.exec(N);if(h)return{type:"heading",raw:h[0],depth:h[1].length,text:h[2]}},fences:function(N){var h=this.rules.block.fences.exec(N);if(h){var l=h[0],f=ot(l,h[3]||""),E=h[2]?h[2].trim():h[2];if(["latex","katex","math"].indexOf(E)>=0){var g=Re(),D=f;f=g,qe[g]={type:"block",expression:D}}return{type:"code",raw:l,lang:E,text:f}}}},Le=/(?:\${2})([^\n`]+?)(?:\${2})/gi,oe=0,Re=function(){return"__special_katext_id_".concat(oe++,"__")},qe={};function de(){return qe}function _e(){oe=0,qe={}}function ae(w){return w=w.replace(Le,function(N,h){var l=Re();return qe[l]={type:"inline",expression:h},l}),w}var We=De.listitem;De.listitem=function(w){return We(ae(w))};var re=De.paragraph;De.paragraph=function(w){return re(ae(w))};var Ke=De.tablecell;De.tablecell=function(w,N){return Ke(ae(w),N)},De.code=function(w,N,h){var l=(N||"").match(/\S*/)[0];return l?["latex","katex","math"].indexOf(l)>=0?"<p class='editormd-tex'>".concat(w,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(N,'">').concat(h?w:Object(at.escape)(w,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(h?w:Object(at.escape)(w,!0))+"</code></pre>"},De.heading=function(w,N,h){var l=this.options.headerPrefix+h.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return pe.push({anchor:l,level:N,text:w}),"<h"+N+' id="'+l+'">'+w+"</h"+N+">"},ue.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),ue.a.use({tokenizer:Ve,renderer:De});var K=ue.a,He=u("SJMd"),Pe=u("m3rI"),Je=u("Oy/b"),Ze=/<pre[^>]*>/g;function te(w){var N=document.createElement("div");return N.innerHTML=w,N.childNodes.length===0?"":N.childNodes[0].nodeValue}var me=Se.a=function(w){var N=w.value,h=N===void 0?"":N,l=w.className,f=w.showTextOnly,E=w.showLines,g=w.style,D=g===void 0?{}:g,W=String(h),ne=Object(ze.useMemo)(function(){try{var Ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,we=/\"\/api\/attachments\/|\"\/attachments\/download\//g,y=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;W=W.replace(Ce,"("+Pe.a.API_SERVER+"/api/attachments/").replace(we,'"'+Pe.a.API_SERVER+"/api/attachments/").replace(y,'"'+Pe.a.API_SERVER+"/files/uploads/")}catch(q){}var s=K(W);setTimeout(function(){return be()},300);var p=de();if(W.match(/\[TOC\]/)&&(s=s.replace("<p>[TOC]</p>",Ie()),Xe()),s=s.replace(/(__special_katext_id_\d+__)/g,function(q,$){var Te=p[$],Ae=Te.type,Fe=Te.expression;return Object(Je.renderToString)(te(Fe)||"",{displayMode:Ae==="block",throwOnError:!1,output:"html"})}),s=s.replace(/▁/g,"\u2581\u2581\u2581"),_e(),f){var T=document.createElement("div");return T.innerHTML=s,T.innerText}return s},[W]),Z=Object(ze.useRef)();xe.WebkitLineClamp=E,E&&(D=Object(rt.a)(Object(rt.a)({},D),xe));function Oe(Ce){var we=Ce.target;if(we.tagName.toUpperCase()==="A"){var y=we.getAttribute("href");if(y.startsWith("#")){Ce.preventDefault();var s=document.getElementById(y.replace("#",""));s&&s.scrollIntoView(!0)}}}var be=function(){};return Object(ze.useEffect)(function(){if(Z.current&&ne&&(ne.match(Ze)&&window.PR.prettyPrint()),Z.current)return Z.current.addEventListener("click",Oe),function(){Z.current.removeEventListener("click",Oe),_e(),Xe()}},[ne,Z.current,Oe]),Ne.a.createElement(Ne.a.Fragment,null,Ne.a.createElement("div",{ref:Z,style:Object(rt.a)({},D),className:"".concat(l||""," markdown-body "),dangerouslySetInnerHTML:{__html:ne}}))}},"9VGf":function(Me,Se,u){"use strict";u.d(Se,"a",function(){return Ne});var rt=u("q1tI"),ze=u.n(rt);function Ne(nt,ce){var v=Object(rt.useRef)();Object(rt.useEffect)(function(){v.current=nt}),Object(rt.useEffect)(function(){function ue(){v.current()}if(ce!==null){var at=setInterval(ue,ce);return function(){return clearInterval(at)}}},[ce])}},JqQi:function(Me,Se,u){Me.exports={bg:"bg___31owl",container:"container___2NGOo"}},MRWH:function(Me,Se,u){Me.exports={flex_box_center:"flex_box_center___30XbU",flex_space_between:"flex_space_between___3jfWA",flex_box_vertical_center:"flex_box_vertical_center___27kWs",flex_box_center_end:"flex_box_center_end___1RoAS",flex_box_column:"flex_box_column____3Jvr",list:"list___2NJ_T",box:"box___36KCF",title:"title___Kd2ce",gray:"gray___14ob6",brght:"brght___GgzyD",s1:"s1___IhDpz",s2:"s2___3hR0s",s3:"s3___23SCF",active:"active___2_5D5",line:"line___3Croa"}},NLgs:function(Me,Se,u){"use strict";u.d(Se,"e",function(){return Ge}),u.d(Se,"f",function(){return Ie}),u.d(Se,"d",function(){return Le}),u.d(Se,"c",function(){return oe}),u.d(Se,"a",function(){return Re}),u.d(Se,"b",function(){return qe});var rt=u("miYZ"),ze=u("tsqr"),Ne=u("9og8"),nt=u("2qtc"),ce=u("kLXV"),v=u("q1tI"),ue=u.n(v),at=u("9kvl"),ot=u("xKgJ"),pe=u("1vsH"),je=u("RCxd"),De=u("mOS8"),he=u.n(De),Xe=u("m3rI");function xe(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xe=function(){return de};var de={},_e=Object.prototype,ae=_e.hasOwnProperty,We=Object.defineProperty||function(y,s,p){y[s]=p.value},re=typeof Symbol=="function"?Symbol:{},Ke=re.iterator||"@@iterator",K=re.asyncIterator||"@@asyncIterator",He=re.toStringTag||"@@toStringTag";function Pe(y,s,p){return Object.defineProperty(y,s,{value:p,enumerable:!0,configurable:!0,writable:!0}),y[s]}try{Pe({},"")}catch(y){Pe=function(p,T,q){return p[T]=q}}function Je(y,s,p,T){var q=s&&s.prototype instanceof me?s:me,$=Object.create(q.prototype),Te=new be(T||[]);return We($,"_invoke",{value:W(y,p,Te)}),$}function Ze(y,s,p){try{return{type:"normal",arg:y.call(s,p)}}catch(T){return{type:"throw",arg:T}}}de.wrap=Je;var te={};function me(){}function w(){}function N(){}var h={};Pe(h,Ke,function(){return this});var l=Object.getPrototypeOf,f=l&&l(l(Ce([])));f&&f!==_e&&ae.call(f,Ke)&&(h=f);var E=N.prototype=me.prototype=Object.create(h);function g(y){["next","throw","return"].forEach(function(s){Pe(y,s,function(p){return this._invoke(s,p)})})}function D(y,s){function p(q,$,Te,Ae){var Fe=Ze(y[q],y,$);if(Fe.type!=="throw"){var et=Fe.arg,$e=et.value;return $e&&typeof $e=="object"&&ae.call($e,"__await")?s.resolve($e.__await).then(function(b){p("next",b,Te,Ae)},function(b){p("throw",b,Te,Ae)}):s.resolve($e).then(function(b){et.value=b,Te(et)},function(b){return p("throw",b,Te,Ae)})}Ae(Fe.arg)}var T;We(this,"_invoke",{value:function($,Te){function Ae(){return new s(function(Fe,et){p($,Te,Fe,et)})}return T=T?T.then(Ae,Ae):Ae()}})}function W(y,s,p){var T="suspendedStart";return function(q,$){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(q==="throw")throw $;return we()}for(p.method=q,p.arg=$;;){var Te=p.delegate;if(Te){var Ae=ne(Te,p);if(Ae){if(Ae===te)continue;return Ae}}if(p.method==="next")p.sent=p._sent=p.arg;else if(p.method==="throw"){if(T==="suspendedStart")throw T="completed",p.arg;p.dispatchException(p.arg)}else p.method==="return"&&p.abrupt("return",p.arg);T="executing";var Fe=Ze(y,s,p);if(Fe.type==="normal"){if(T=p.done?"completed":"suspendedYield",Fe.arg===te)continue;return{value:Fe.arg,done:p.done}}Fe.type==="throw"&&(T="completed",p.method="throw",p.arg=Fe.arg)}}}function ne(y,s){var p=s.method,T=y.iterator[p];if(T===void 0)return s.delegate=null,p==="throw"&&y.iterator.return&&(s.method="return",s.arg=void 0,ne(y,s),s.method==="throw")||p!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+p+"' method")),te;var q=Ze(T,y.iterator,s.arg);if(q.type==="throw")return s.method="throw",s.arg=q.arg,s.delegate=null,te;var $=q.arg;return $?$.done?(s[y.resultName]=$.value,s.next=y.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,te):$:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,te)}function Z(y){var s={tryLoc:y[0]};1 in y&&(s.catchLoc=y[1]),2 in y&&(s.finallyLoc=y[2],s.afterLoc=y[3]),this.tryEntries.push(s)}function Oe(y){var s=y.completion||{};s.type="normal",delete s.arg,y.completion=s}function be(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(Z,this),this.reset(!0)}function Ce(y){if(y){var s=y[Ke];if(s)return s.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var p=-1,T=function q(){for(;++p<y.length;)if(ae.call(y,p))return q.value=y[p],q.done=!1,q;return q.value=void 0,q.done=!0,q};return T.next=T}}return{next:we}}function we(){return{value:void 0,done:!0}}return w.prototype=N,We(E,"constructor",{value:N,configurable:!0}),We(N,"constructor",{value:w,configurable:!0}),w.displayName=Pe(N,He,"GeneratorFunction"),de.isGeneratorFunction=function(y){var s=typeof y=="function"&&y.constructor;return!!s&&(s===w||(s.displayName||s.name)==="GeneratorFunction")},de.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,N):(y.__proto__=N,Pe(y,He,"GeneratorFunction")),y.prototype=Object.create(E),y},de.awrap=function(y){return{__await:y}},g(D.prototype),Pe(D.prototype,K,function(){return this}),de.AsyncIterator=D,de.async=function(y,s,p,T,q){q===void 0&&(q=Promise);var $=new D(Je(y,s,p,T),q);return de.isGeneratorFunction(s)?$:$.next().then(function(Te){return Te.done?Te.value:$.next()})},g(E),Pe(E,He,"Generator"),Pe(E,Ke,function(){return this}),Pe(E,"toString",function(){return"[object Generator]"}),de.keys=function(y){var s=Object(y),p=[];for(var T in s)p.push(T);return p.reverse(),function q(){for(;p.length;){var $=p.pop();if($ in s)return q.value=$,q.done=!1,q}return q.done=!0,q}},de.values=Ce,be.prototype={constructor:be,reset:function(s){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(Oe),!s)for(var p in this)p.charAt(0)==="t"&&ae.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=void 0)},stop:function(){this.done=!0;var s=this.tryEntries[0].completion;if(s.type==="throw")throw s.arg;return this.rval},dispatchException:function(s){if(this.done)throw s;var p=this;function T(et,$e){return Te.type="throw",Te.arg=s,p.next=et,$e&&(p.method="next",p.arg=void 0),!!$e}for(var q=this.tryEntries.length-1;q>=0;--q){var $=this.tryEntries[q],Te=$.completion;if($.tryLoc==="root")return T("end");if($.tryLoc<=this.prev){var Ae=ae.call($,"catchLoc"),Fe=ae.call($,"finallyLoc");if(Ae&&Fe){if(this.prev<$.catchLoc)return T($.catchLoc,!0);if(this.prev<$.finallyLoc)return T($.finallyLoc)}else if(Ae){if(this.prev<$.catchLoc)return T($.catchLoc,!0)}else{if(!Fe)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return T($.finallyLoc)}}}},abrupt:function(s,p){for(var T=this.tryEntries.length-1;T>=0;--T){var q=this.tryEntries[T];if(q.tryLoc<=this.prev&&ae.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var $=q;break}}$&&(s==="break"||s==="continue")&&$.tryLoc<=p&&p<=$.finallyLoc&&($=null);var Te=$?$.completion:{};return Te.type=s,Te.arg=p,$?(this.method="next",this.next=$.finallyLoc,te):this.complete(Te)},complete:function(s,p){if(s.type==="throw")throw s.arg;return s.type==="break"||s.type==="continue"?this.next=s.arg:s.type==="return"?(this.rval=this.arg=s.arg,this.method="return",this.next="end"):s.type==="normal"&&p&&(this.next=p),te},finish:function(s){for(var p=this.tryEntries.length-1;p>=0;--p){var T=this.tryEntries[p];if(T.finallyLoc===s)return this.complete(T.completion,T.afterLoc),Oe(T),te}},catch:function(s){for(var p=this.tryEntries.length-1;p>=0;--p){var T=this.tryEntries[p];if(T.tryLoc===s){var q=T.completion;if(q.type==="throw"){var $=q.arg;Oe(T)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(s,p,T){return this.delegate={iterator:Ce(s),resultName:p,nextLoc:T},this.method==="next"&&(this.arg=void 0),te}},de}var Ge=function(_e){return!!(Ie(_e)&&Ve())},Ie=function(_e){return Object(ot.p)()?!0:(_e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},Ve=function(){var _e,ae=Object(at.b)()._store.getState(),We=ae.user;return((_e=We.userInfo)===null||_e===void 0?void 0:_e.profile_completed)?!0:(ce.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:ue.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){at.c.push("/account/profile/edit")}}),!1)},Le=function(){var _e,ae=Object(at.b)()._store.getState(),We=ae.user;return((_e=We.userInfo)===null||_e===void 0?void 0:_e.professional_certification)?!0:(ce.a.confirm({title:"\u63D0\u793A",centered:!0,content:ue.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(pe.I)("/account/certification")}}),!1)},oe=function(){return Object(ot.a)()?!0:(ce.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:ue.a.createElement("div",{className:"tc",style:{marginLeft:-38}},ue.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),ue.a.createElement("img",{src:Object(ot.t)()?u("WdTA"):"".concat(Xe.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),ue.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(ot.t)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(pe.I)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},Re=function(_e,ae){return _e?!0:(ce.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ue.a.createElement("div",null,ue.a.createElement("p",null,ae||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),ue.a.createElement("div",{style:{marginLeft:"110px"}},ue.a.createElement("img",{src:u("1ZF9"),width:200}),ue.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(pe.I)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},qe=function(_e){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",We=Object(at.b)()._store.getState(),re=We.shixunsDetail.detail;return(re==null?void 0:re.public)===2||(re==null?void 0:re.public)===1||(re==null?void 0:re.shixun_status)===3?(ce.a.info({centered:!0,icon:ue.a.createElement(je.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ue.a.createElement("div",{className:"tc",style:{marginLeft:-38}},ue.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ue.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(re==null?void 0:re.public)===2?"\u5DF2\u516C\u5F00":(re==null?void 0:re.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",ae,"\u3002"),ue.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ue.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:he.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(re==null?void 0:re.shixun_status)===2?(ce.a.confirm({centered:!0,icon:ue.a.createElement(je.a,null),title:"\u63D0\u793A",content:ue.a.createElement("div",null,ue.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",ae,"\u3002"),ue.a.createElement("br",null),ue.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){ce.a.confirm({width:440,centered:!0,icon:ue.a.createElement(je.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var K=Object(Ne.a)(xe().mark(function Pe(){var Je;return xe().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,_e({type:"shixunsDetail/cancelRelease",payload:{id:re==null?void 0:re.identifier}});case 2:Je=te.sent,Je.status!==401&&(ze.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_e({type:"shixunsDetail/getShixunsDetail",payload:{id:re==null?void 0:re.identifier}}),_e({type:"practiceSetting/getCommonData",payload:{id:re==null?void 0:re.identifier}}));case 4:case"end":return te.stop()}},Pe)}));function He(){return K.apply(this,arguments)}return He}()})}}),!0):!1}},WdTA:function(Me,Se,u){Me.exports=u.p+"static/studnetqun.a5754d96.png"},eoI0:function(Me,Se,u){Me.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(Me,Se,u){"use strict";var rt=u("9og8"),ze=u("q1tI"),Ne=u.n(ze),nt=u("GUcZ"),ce=u("pWdF");function v(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return pe};var pe={},je=Object.prototype,De=je.hasOwnProperty,he=Object.defineProperty||function(h,l,f){h[l]=f.value},Xe=typeof Symbol=="function"?Symbol:{},xe=Xe.iterator||"@@iterator",Ge=Xe.asyncIterator||"@@asyncIterator",Ie=Xe.toStringTag||"@@toStringTag";function Ve(h,l,f){return Object.defineProperty(h,l,{value:f,enumerable:!0,configurable:!0,writable:!0}),h[l]}try{Ve({},"")}catch(h){Ve=function(f,E,g){return f[E]=g}}function Le(h,l,f,E){var g=l&&l.prototype instanceof qe?l:qe,D=Object.create(g.prototype),W=new me(E||[]);return he(D,"_invoke",{value:Pe(h,f,W)}),D}function oe(h,l,f){try{return{type:"normal",arg:h.call(l,f)}}catch(E){return{type:"throw",arg:E}}}pe.wrap=Le;var Re={};function qe(){}function de(){}function _e(){}var ae={};Ve(ae,xe,function(){return this});var We=Object.getPrototypeOf,re=We&&We(We(w([])));re&&re!==je&&De.call(re,xe)&&(ae=re);var Ke=_e.prototype=qe.prototype=Object.create(ae);function K(h){["next","throw","return"].forEach(function(l){Ve(h,l,function(f){return this._invoke(l,f)})})}function He(h,l){function f(g,D,W,ne){var Z=oe(h[g],h,D);if(Z.type!=="throw"){var Oe=Z.arg,be=Oe.value;return be&&typeof be=="object"&&De.call(be,"__await")?l.resolve(be.__await).then(function(Ce){f("next",Ce,W,ne)},function(Ce){f("throw",Ce,W,ne)}):l.resolve(be).then(function(Ce){Oe.value=Ce,W(Oe)},function(Ce){return f("throw",Ce,W,ne)})}ne(Z.arg)}var E;he(this,"_invoke",{value:function(D,W){function ne(){return new l(function(Z,Oe){f(D,W,Z,Oe)})}return E=E?E.then(ne,ne):ne()}})}function Pe(h,l,f){var E="suspendedStart";return function(g,D){if(E==="executing")throw new Error("Generator is already running");if(E==="completed"){if(g==="throw")throw D;return N()}for(f.method=g,f.arg=D;;){var W=f.delegate;if(W){var ne=Je(W,f);if(ne){if(ne===Re)continue;return ne}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(E==="suspendedStart")throw E="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);E="executing";var Z=oe(h,l,f);if(Z.type==="normal"){if(E=f.done?"completed":"suspendedYield",Z.arg===Re)continue;return{value:Z.arg,done:f.done}}Z.type==="throw"&&(E="completed",f.method="throw",f.arg=Z.arg)}}}function Je(h,l){var f=l.method,E=h.iterator[f];if(E===void 0)return l.delegate=null,f==="throw"&&h.iterator.return&&(l.method="return",l.arg=void 0,Je(h,l),l.method==="throw")||f!=="return"&&(l.method="throw",l.arg=new TypeError("The iterator does not provide a '"+f+"' method")),Re;var g=oe(E,h.iterator,l.arg);if(g.type==="throw")return l.method="throw",l.arg=g.arg,l.delegate=null,Re;var D=g.arg;return D?D.done?(l[h.resultName]=D.value,l.next=h.nextLoc,l.method!=="return"&&(l.method="next",l.arg=void 0),l.delegate=null,Re):D:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,Re)}function Ze(h){var l={tryLoc:h[0]};1 in h&&(l.catchLoc=h[1]),2 in h&&(l.finallyLoc=h[2],l.afterLoc=h[3]),this.tryEntries.push(l)}function te(h){var l=h.completion||{};l.type="normal",delete l.arg,h.completion=l}function me(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(Ze,this),this.reset(!0)}function w(h){if(h){var l=h[xe];if(l)return l.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var f=-1,E=function g(){for(;++f<h.length;)if(De.call(h,f))return g.value=h[f],g.done=!1,g;return g.value=void 0,g.done=!0,g};return E.next=E}}return{next:N}}function N(){return{value:void 0,done:!0}}return de.prototype=_e,he(Ke,"constructor",{value:_e,configurable:!0}),he(_e,"constructor",{value:de,configurable:!0}),de.displayName=Ve(_e,Ie,"GeneratorFunction"),pe.isGeneratorFunction=function(h){var l=typeof h=="function"&&h.constructor;return!!l&&(l===de||(l.displayName||l.name)==="GeneratorFunction")},pe.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,_e):(h.__proto__=_e,Ve(h,Ie,"GeneratorFunction")),h.prototype=Object.create(Ke),h},pe.awrap=function(h){return{__await:h}},K(He.prototype),Ve(He.prototype,Ge,function(){return this}),pe.AsyncIterator=He,pe.async=function(h,l,f,E,g){g===void 0&&(g=Promise);var D=new He(Le(h,l,f,E),g);return pe.isGeneratorFunction(l)?D:D.next().then(function(W){return W.done?W.value:D.next()})},K(Ke),Ve(Ke,Ie,"Generator"),Ve(Ke,xe,function(){return this}),Ve(Ke,"toString",function(){return"[object Generator]"}),pe.keys=function(h){var l=Object(h),f=[];for(var E in l)f.push(E);return f.reverse(),function g(){for(;f.length;){var D=f.pop();if(D in l)return g.value=D,g.done=!1,g}return g.done=!0,g}},pe.values=w,me.prototype={constructor:me,reset:function(l){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(te),!l)for(var f in this)f.charAt(0)==="t"&&De.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var f=this;function E(Oe,be){return W.type="throw",W.arg=l,f.next=Oe,be&&(f.method="next",f.arg=void 0),!!be}for(var g=this.tryEntries.length-1;g>=0;--g){var D=this.tryEntries[g],W=D.completion;if(D.tryLoc==="root")return E("end");if(D.tryLoc<=this.prev){var ne=De.call(D,"catchLoc"),Z=De.call(D,"finallyLoc");if(ne&&Z){if(this.prev<D.catchLoc)return E(D.catchLoc,!0);if(this.prev<D.finallyLoc)return E(D.finallyLoc)}else if(ne){if(this.prev<D.catchLoc)return E(D.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<D.finallyLoc)return E(D.finallyLoc)}}}},abrupt:function(l,f){for(var E=this.tryEntries.length-1;E>=0;--E){var g=this.tryEntries[E];if(g.tryLoc<=this.prev&&De.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var D=g;break}}D&&(l==="break"||l==="continue")&&D.tryLoc<=f&&f<=D.finallyLoc&&(D=null);var W=D?D.completion:{};return W.type=l,W.arg=f,D?(this.method="next",this.next=D.finallyLoc,Re):this.complete(W)},complete:function(l,f){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&f&&(this.next=f),Re},finish:function(l){for(var f=this.tryEntries.length-1;f>=0;--f){var E=this.tryEntries[f];if(E.finallyLoc===l)return this.complete(E.completion,E.afterLoc),te(E),Re}},catch:function(l){for(var f=this.tryEntries.length-1;f>=0;--f){var E=this.tryEntries[f];if(E.tryLoc===l){var g=E.completion;if(g.type==="throw"){var D=g.arg;te(E)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(l,f,E){return this.delegate={iterator:w(l),resultName:f,nextLoc:E},this.method==="next"&&(this.arg=void 0),Re}},pe}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ue(pe,je){return pe-je}function at(pe){pe.sort(ue);for(var je=0,De=0;De<pe.length-1;De++){var he=Math.abs(pe[De+1]-pe[De]);he<21&&(je+=he)}return je}var ot=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;Se.a=Object(ze.forwardRef)(function(pe,je){var De,he=pe.src,Xe=pe.videoId,xe=pe.logWatchHistory,Ge=pe.courseId,Ie=Ge===void 0?null:Ge,Ve=pe.startTime,Le=pe.handlePause,oe=Le===void 0?function(){}:Le,Re=pe.handlePlay,qe=Re===void 0?function(){}:Re,de=pe.handlePlayEnded,_e=de===void 0?function(){}:de,ae=pe.videoSpeed,We=ae===void 0?1:ae,re=he==null||((De=he.split("."))===null||De===void 0)?void 0:De.pop(),Ke=re==="flv",K=Object(ze.useRef)(),He=navigator.userAgent.toLowerCase().match(ot),Pe=He?He[0]:"pc",Je=Object(ze.useRef)(!1),Ze=0,te=0,me=0,w=null,N=!1,h=20,l=1,f=!1,E=!1,g=[];Object(ze.useImperativeHandle)(je,function(){return{getLastUpdatedTime:function(){return K.current.currentTime},getDuration:function(){return K.current.duration}}});var D=Object(ze.useCallback)(function(W){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z={point:K.current.currentTime};w?(Z.log_id=w,Z.watch_duration=at(g),Z.total_duration=te):(Ie?(Z.video_id=parseInt(Xe,10),Z.course_id=Ie):Z.video_id=Xe,Z.duration=Ze,Z.device=Pe),ne&&(Z.ed="1");function Oe(){return be.apply(this,arguments)}function be(){return be=Object(rt.a)(v().mark(function Ce(){var we;return v().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return f=!0,s.next=3,xe(Z);case 3:we=s.sent,w=we,f=!1,W&&W();case 7:case"end":return s.stop()}},Ce)})),be.apply(this,arguments)}Oe()},[Xe,Ie]);return Object(ze.useEffect)(function(){var W=null;return nt.a.isSupported&&Ke&&he&&(he==null?void 0:he.indexOf(".m3u8"))<0?(W=nt.a.createPlayer({type:"flv",volume:.8,cors:!0,url:he,muted:!1}),K.current&&(W.attachMediaElement(K.current),W.load())):K.current.setAttribute("src",he),function(){W&&(W.unload(),W.pause(),W.destroy(),W=null)}},[K,Ke,he]),Object(ze.useEffect)(function(){function W(){qe(),Ve&&!Je.current&&(K.current.currentTime=Ve),Je.current=!0,g.push(K.current.currentTime),N||(N=!0,D())}function ne(){return Z.apply(this,arguments)}function Z(){return Z=Object(rt.a)(v().mark(function s(){return v().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:g.push(K.current.currentTime),D(function(){w=null,me=0,N=!1,f=!1,E=!1,g=[],te=0,l=1},!0);case 2:case"end":return T.stop()}},s)})),Z.apply(this,arguments)}function Oe(){if(!E){var s=K.current.currentTime,p=s-me;Math.abs(p)<10?(te+=Math.abs(p),me=s,f||te-l*h>=0&&(l++,g.push(me),D())):(me=s,D())}}function be(){E=!0}function Ce(){K.current.playing&&g.push(K.current.currentTime,me),me=K.current.currentTime,E=!1}function we(){Ze=K.current.duration,Ze<=20&&(h=Ze/3),K.current.addEventListener("play",W)}function y(){oe()}return K.current.addEventListener("canplay",we),K.current.addEventListener("ended",ne),K.current.addEventListener("seeking",be),K.current.addEventListener("seeked",Ce),K.current.addEventListener("timeupdate",Oe),K.current.addEventListener("pause",y),function(){K.current.removeEventListener("canplay",we),K.current.removeEventListener("play",W),K.current.removeEventListener("ended",ne),K.current.removeEventListener("seeking",be),K.current.removeEventListener("seeked",Ce),K.current.removeEventListener("timeupdate",Oe),K.current.removeEventListener("pause",y),K.current.playing&&(g.push(me,K.current.currentTime),D())}},[K,he]),Object(ze.useEffect)(function(){if(K.current.onended=function(){_e(K)},K.current.oncontextmenu=function(){return!1},K.current.playbackRate=We,he.indexOf(".m3u8")>-1){if(K.current.canPlayType("application/vnd.apple.mpegurl"))K.current.src=he;else if(ce.a.isSupported()){var W=new ce.a;W.loadSource(he),W.attachMedia(K.current)}}},[he,We]),Ne.a.createElement("video",{ref:K,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})})},kwm0:function(Me,Se,u){Me.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj"}},mOS8:function(Me,Se,u){Me.exports=u.p+"static/403Qrcode.6c17b6f4.png"},nUhQ:function(Me,Se,u){Me.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},sBCT:function(Me,Se,u){"use strict";var rt=u("DZo9"),ze=u("8z0m"),Ne=u("+L6B"),nt=u("2/Rp"),ce=u("MXD1"),v=u("CFYs"),ue=u("9og8"),at=u("2qtc"),ot=u("kLXV"),pe=u("miYZ"),je=u("tsqr"),De=u("y8nQ"),he=u("Vl3Y"),Xe=u("tJVT"),xe=u("k1fw"),Ge=u("oBTY"),Ie=u("5NDa"),Ve=u("5rEg"),Le=u("q1tI"),oe=u.n(Le),Re=u("Ty5D"),qe=u("55Ip"),de=u("9kvl"),_e=u("kwm0"),ae=u.n(_e),We=u("Aky1"),re=u("h/US"),Ke=u("m3rI");function K(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */K=function(){return te};var te={},me=Object.prototype,w=me.hasOwnProperty,N=Object.defineProperty||function(b,m,L){b[m]=L.value},h=typeof Symbol=="function"?Symbol:{},l=h.iterator||"@@iterator",f=h.asyncIterator||"@@asyncIterator",E=h.toStringTag||"@@toStringTag";function g(b,m,L){return Object.defineProperty(b,m,{value:L,enumerable:!0,configurable:!0,writable:!0}),b[m]}try{g({},"")}catch(b){g=function(L,Y,Q){return L[Y]=Q}}function D(b,m,L,Y){var Q=m&&m.prototype instanceof Z?m:Z,S=Object.create(Q.prototype),Be=new Fe(Y||[]);return N(S,"_invoke",{value:q(b,L,Be)}),S}function W(b,m,L){try{return{type:"normal",arg:b.call(m,L)}}catch(Y){return{type:"throw",arg:Y}}}te.wrap=D;var ne={};function Z(){}function Oe(){}function be(){}var Ce={};g(Ce,l,function(){return this});var we=Object.getPrototypeOf,y=we&&we(we(et([])));y&&y!==me&&w.call(y,l)&&(Ce=y);var s=be.prototype=Z.prototype=Object.create(Ce);function p(b){["next","throw","return"].forEach(function(m){g(b,m,function(L){return this._invoke(m,L)})})}function T(b,m){function L(Q,S,Be,Qe){var Ye=W(b[Q],b,S);if(Ye.type!=="throw"){var tt=Ye.arg,it=tt.value;return it&&typeof it=="object"&&w.call(it,"__await")?m.resolve(it.__await).then(function(ut){L("next",ut,Be,Qe)},function(ut){L("throw",ut,Be,Qe)}):m.resolve(it).then(function(ut){tt.value=ut,Be(tt)},function(ut){return L("throw",ut,Be,Qe)})}Qe(Ye.arg)}var Y;N(this,"_invoke",{value:function(S,Be){function Qe(){return new m(function(Ye,tt){L(S,Be,Ye,tt)})}return Y=Y?Y.then(Qe,Qe):Qe()}})}function q(b,m,L){var Y="suspendedStart";return function(Q,S){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(Q==="throw")throw S;return $e()}for(L.method=Q,L.arg=S;;){var Be=L.delegate;if(Be){var Qe=$(Be,L);if(Qe){if(Qe===ne)continue;return Qe}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y==="suspendedStart")throw Y="completed",L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y="executing";var Ye=W(b,m,L);if(Ye.type==="normal"){if(Y=L.done?"completed":"suspendedYield",Ye.arg===ne)continue;return{value:Ye.arg,done:L.done}}Ye.type==="throw"&&(Y="completed",L.method="throw",L.arg=Ye.arg)}}}function $(b,m){var L=m.method,Y=b.iterator[L];if(Y===void 0)return m.delegate=null,L==="throw"&&b.iterator.return&&(m.method="return",m.arg=void 0,$(b,m),m.method==="throw")||L!=="return"&&(m.method="throw",m.arg=new TypeError("The iterator does not provide a '"+L+"' method")),ne;var Q=W(Y,b.iterator,m.arg);if(Q.type==="throw")return m.method="throw",m.arg=Q.arg,m.delegate=null,ne;var S=Q.arg;return S?S.done?(m[b.resultName]=S.value,m.next=b.nextLoc,m.method!=="return"&&(m.method="next",m.arg=void 0),m.delegate=null,ne):S:(m.method="throw",m.arg=new TypeError("iterator result is not an object"),m.delegate=null,ne)}function Te(b){var m={tryLoc:b[0]};1 in b&&(m.catchLoc=b[1]),2 in b&&(m.finallyLoc=b[2],m.afterLoc=b[3]),this.tryEntries.push(m)}function Ae(b){var m=b.completion||{};m.type="normal",delete m.arg,b.completion=m}function Fe(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(Te,this),this.reset(!0)}function et(b){if(b){var m=b[l];if(m)return m.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var L=-1,Y=function Q(){for(;++L<b.length;)if(w.call(b,L))return Q.value=b[L],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return Y.next=Y}}return{next:$e}}function $e(){return{value:void 0,done:!0}}return Oe.prototype=be,N(s,"constructor",{value:be,configurable:!0}),N(be,"constructor",{value:Oe,configurable:!0}),Oe.displayName=g(be,E,"GeneratorFunction"),te.isGeneratorFunction=function(b){var m=typeof b=="function"&&b.constructor;return!!m&&(m===Oe||(m.displayName||m.name)==="GeneratorFunction")},te.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,be):(b.__proto__=be,g(b,E,"GeneratorFunction")),b.prototype=Object.create(s),b},te.awrap=function(b){return{__await:b}},p(T.prototype),g(T.prototype,f,function(){return this}),te.AsyncIterator=T,te.async=function(b,m,L,Y,Q){Q===void 0&&(Q=Promise);var S=new T(D(b,m,L,Y),Q);return te.isGeneratorFunction(m)?S:S.next().then(function(Be){return Be.done?Be.value:S.next()})},p(s),g(s,E,"Generator"),g(s,l,function(){return this}),g(s,"toString",function(){return"[object Generator]"}),te.keys=function(b){var m=Object(b),L=[];for(var Y in m)L.push(Y);return L.reverse(),function Q(){for(;L.length;){var S=L.pop();if(S in m)return Q.value=S,Q.done=!1,Q}return Q.done=!0,Q}},te.values=et,Fe.prototype={constructor:Fe,reset:function(m){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(Ae),!m)for(var L in this)L.charAt(0)==="t"&&w.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=void 0)},stop:function(){this.done=!0;var m=this.tryEntries[0].completion;if(m.type==="throw")throw m.arg;return this.rval},dispatchException:function(m){if(this.done)throw m;var L=this;function Y(tt,it){return Be.type="throw",Be.arg=m,L.next=tt,it&&(L.method="next",L.arg=void 0),!!it}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var S=this.tryEntries[Q],Be=S.completion;if(S.tryLoc==="root")return Y("end");if(S.tryLoc<=this.prev){var Qe=w.call(S,"catchLoc"),Ye=w.call(S,"finallyLoc");if(Qe&&Ye){if(this.prev<S.catchLoc)return Y(S.catchLoc,!0);if(this.prev<S.finallyLoc)return Y(S.finallyLoc)}else if(Qe){if(this.prev<S.catchLoc)return Y(S.catchLoc,!0)}else{if(!Ye)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return Y(S.finallyLoc)}}}},abrupt:function(m,L){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&w.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var S=Q;break}}S&&(m==="break"||m==="continue")&&S.tryLoc<=L&&L<=S.finallyLoc&&(S=null);var Be=S?S.completion:{};return Be.type=m,Be.arg=L,S?(this.method="next",this.next=S.finallyLoc,ne):this.complete(Be)},complete:function(m,L){if(m.type==="throw")throw m.arg;return m.type==="break"||m.type==="continue"?this.next=m.arg:m.type==="return"?(this.rval=this.arg=m.arg,this.method="return",this.next="end"):m.type==="normal"&&L&&(this.next=L),ne},finish:function(m){for(var L=this.tryEntries.length-1;L>=0;--L){var Y=this.tryEntries[L];if(Y.finallyLoc===m)return this.complete(Y.completion,Y.afterLoc),Ae(Y),ne}},catch:function(m){for(var L=this.tryEntries.length-1;L>=0;--L){var Y=this.tryEntries[L];if(Y.tryLoc===m){var Q=Y.completion;if(Q.type==="throw"){var S=Q.arg;Ae(Y)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(m,L,Y){return this.delegate={iterator:et(m),resultName:L,nextLoc:Y},this.method==="next"&&(this.arg=void 0),ne}},te}var He=Ve.a.TextArea,Pe=1024,Je=function(me,w){var N,h=w.payload||{},l=h.uploadInfo,f=l===void 0?{}:l;switch(w.type){case"addVideo":return{videoList:[].concat(Object(Ge.a)(me.videoList),[{name:f.file.name,size:f.file.size,type:f.file.type,fileHash:f.fileHash,state:f.state,videoId:f.videoId,loaded:f.loaded||0,title:""}])};case"removeVideo":return{videoList:me.videoList.filter(function(E){return E.name!==w.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:me.videoList.map(function(E){return E.name===w.payload.uploadInfo.file.name?Object(xe.a)(Object(xe.a)({},E),{loaded:w.payload.progressPercent,videoId:f.videoId,fileHash:f.fileHash}):E})};case"updateTitle":return{videoList:(N=me.videoList)===null||N===void 0?void 0:N.map(function(E){return E.name===w.payload.item.name?Object(xe.a)(Object(xe.a)({},E),{title:w.payload.title}):E})};default:return{videoList:[]}}},Ze=function(me){var w,N=me.user,h=me.globalSetting,l=me.loading,f=me.dispatch,E=me.visible,g=me.editData,D=me.onCancel,W=D===void 0?function(){}:D,ne=me.onOk,Z=ne===void 0?function(){}:ne,Oe=Object(Re.m)(),be=he.a.useForm(),Ce=Object(Xe.a)(be,1),we=Ce[0],y=Object(Le.useReducer)(Je,{videoList:[]}),s=Object(Xe.a)(y,2),p=s[0],T=s[1],q=Object(Le.useState)(!1),$=Object(Xe.a)(q,2),Te=$[0],Ae=$[1],Fe=Object(Le.useRef)(),et=Object(Le.useState)(),$e=Object(Xe.a)(et,2),b=$e[0],m=$e[1],L=Object(Le.useState)(!1),Y=Object(Xe.a)(L,2),Q=Y[0],S=Y[1],Be=Object(Le.useState)(!1),Qe=Object(Xe.a)(Be,2),Ye=Qe[0],tt=Qe[1],it=Object(Le.useState)([]),ut=Object(Xe.a)(it,2),ct=ut[0],st=ut[1],dt=Object(Le.useState)([]),_=Object(Xe.a)(dt,2),M=_[0],P=_[1];Object(Le.useEffect)(function(){if(!g)return;S(g.is_link),m(g.link),!g.is_link&&T({type:"addVideo",payload:{uploadInfo:{file:{name:g.file_name},videoId:g.video_id,loaded:100}}}),we.setFieldsValue({name:g.name,description:g.description,attachment_id:g==null?void 0:g.attachment_id})},[g]);var G=function(){var R=document.getElementById("fileUpload");R.value=""},Ee=function(R){var O;S(!1);var z=R.target.files[0];if(!z){G();return}var I=z.name.toLowerCase();if(I&&I.indexOf(".avi")==-1&&I.indexOf(".flv")==-1&&I.indexOf(".f4v")==-1&&I.indexOf(".m4v")==-1&&I.indexOf(".mov")==-1&&I.indexOf(".mp4")==-1&&I.indexOf(".rmvb")==-1&&I.indexOf(".swf")==-1&&I.indexOf(".webm")==-1&&I.indexOf(".wmv")==-1){je.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),G();return}if(z.size>Pe*1024*1024){je.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),G();return}if((O=p.videoList)===null||O===void 0?void 0:O.find(function(A){return A.name===z.name})){je.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),G();return}ke(z)},ve=function(R,O){ot.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:oe.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",O?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){G(),T({type:"removeVideo",payload:{name:R}})}})},ke=function(R){var O,z='{"Vod":{}}';if(Ae(!0),Fe.current){Fe.current.addFile(R,null,null,null,z);return}Object(We.a)((O=N.userInfo)===null||O===void 0?void 0:O.login,{create:!Fe,addFileSuccess:function(A){T({type:"addVideo",payload:{uploadInfo:A}})},onUploadProgress:function(A,X,fe){var ie=Math.ceil(fe*100);T({type:"updateProgress",payload:{uploadInfo:A,progressPercent:ie}}),G()},onUploadFailed:function(A){je.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(A){Ae(!1)},onUploadSucceed:function(A){Ae(!1)},onUploadError:function(A){Ae(!1)},gotUploader:function(A){A.addFile(R,null,null,null,z),Fe.current=A}})},ge=function(){var ee=Object(ue.a)(K().mark(function R(){var O,z,I,A;return K().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,we.validateFields();case 2:if(!(!Q&&!((O=p.videoList)===null||O===void 0?void 0:O.length)||Q&&!b)){fe.next=5;break}return je.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),fe.abrupt("return");case 5:tt(!0),I=Q?{link:b}:{video_id:(z=p.videoList)===null||z===void 0?void 0:z[0].videoId};debugger;return fe.next=10,Z(Object(xe.a)(Object(xe.a)({},I),{name:we.getFieldValue("name"),attachment_id:we.getFieldValue("attachment_id"),description:we.getFieldValue("description")}));case 10:A=fe.sent,tt(!1),A.id&&U();case 13:case"end":return fe.stop()}},R)}));return function(){return ee.apply(this,arguments)}}(),U=function(){we.resetFields(),T({type:"removeAll"}),m(null),S(null)},Ue=function(){W(),U()},ye={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:Ke.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(R){P([])},onChange:function(R){var O=R.file.status;if(O!=="uploading",O==="removed"&&st(R.fileList),O==="done"){var z,I,A;st(R==null||((z=R.fileList)===null||z===void 0)?void 0:z.slice(-1)),T({type:"addVideo",payload:{uploadInfo:{videoId:R==null||((I=R.fileList[0])===null||I===void 0||((A=I.response)===null||A===void 0))?void 0:A.id,loaded:100,file:Object(xe.a)({},R==null?void 0:R.fileList[0])}}}),S(!1),je.b.success("".concat(R.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else O==="error"&&je.b.error("".concat(R.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(R){var O=R.size/1024/1024<1e3;return O||je.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),O}},C=function(){var R,O,z,I,A,X,fe,ie,x,le,F,J;return oe.a.createElement(oe.a.Fragment,null,!Q&&!!((R=p.videoList)===null||R===void 0?void 0:R.length)&&oe.a.createElement("div",{className:ae.a.fileProgress},((O=p.videoList)===null||O===void 0||((z=O[0])===null||z===void 0)?void 0:z.loaded)==100?oe.a.createElement("div",{className:"".concat(ae.a.videoName," font14")},(I=p.videoList)===null||I===void 0||((A=I[0])===null||A===void 0)?void 0:A.name):oe.a.createElement(v.a,{style:{width:"80%"},percent:(X=p.videoList)===null||X===void 0||((fe=X[0])===null||fe===void 0)?void 0:fe.loaded,status:((ie=p.videoList)===null||ie===void 0||((x=ie[0])===null||x===void 0)?void 0:x.loaded)==100?"normal":"active"}),oe.a.createElement("div",{className:ae.a.fileCancel,onClick:function(){var j,se,r,e;return ve((j=p.videoList)===null||j===void 0||((se=j[0])===null||se===void 0)?void 0:se.name,((r=p.videoList)===null||r===void 0||((e=r[0])===null||e===void 0)?void 0:e.loaded)==100)}},((le=p.videoList)===null||le===void 0||((F=le[0])===null||F===void 0)?void 0:F.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((J=p.videoList)===null||J===void 0?void 0:J.length)&&oe.a.createElement("div",{className:ae.a.uploadWrap},oe.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},oe.a.createElement(ze.a,ye,oe.a.createElement(nt.a,{className:ae.a.upload,disabled:(M==null?void 0:M.length)>0},oe.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),oe.a.createElement("label",{className:"".concat(ae.a.upload," ").concat(ae.a.uploadLink),onClick:function(){return S(!0)}},oe.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Q&&oe.a.createElement(Ve.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:b,onChange:function(j){return m(j.target.value)}}))};return oe.a.createElement(ot.a,{centered:!0,maskClosable:!1,title:g?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:ae.a.modal,visible:E,confirmLoading:Ye,onOk:ge,onCancel:Ue},oe.a.createElement(he.a,{form:we},oe.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Ee,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),oe.a.createElement(he.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},oe.a.createElement(Ve.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),oe.a.createElement(he.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:ae.a.contentItem},C()),oe.a.createElement(he.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},oe.a.createElement(re.a,{getFileProgress:function(R){if(R.file.status==="uploading"){tt(!0);return}R.file.status==="done"&&tt(!1)}})),oe.a.createElement(he.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},oe.a.createElement(He,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),oe.a.createElement("div",{className:"c-grey-999"},oe.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),oe.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",oe.a.createElement(qe.Link,{to:"/users/".concat((w=N.userInfo)===null||w===void 0?void 0:w.login,"/videos/protocol"),target:"_blank",className:ae.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),oe.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),oe.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),oe.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};Se.a=Object(de.a)(function(te){var me=te.user,w=te.loading,N=te.globalSetting;return{user:me,globalSetting:N,loading:w}})(Ze)},sWEp:function(Me,Se,u){Me.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(Me,Se,u){Me.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);