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.abee1d...

1 line
96 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[231],{"1ZF9":function(t,e,n){t.exports=n.p+"static/Authorize.cc9c212f.png"},"96GE":function(t,e,n){"use strict";n.r(e),n.d(e,"formatQuery",(function(){return st}));n("T2oS");var r=n("W9HT"),o=n("k1fw"),a=n("PpiC"),i=n("q1tI"),c=n.n(i),l=n("9kvl"),u=n("JqQi"),s=n.n(u),f=(n("5Dmo"),n("3S7+")),d=(n("+L6B"),n("2/Rp")),h=(n("pC0b"),n("GzdX")),v=n("9og8"),p=n("tJVT"),m=n("nUhQ"),y=n.n(m),g=(n("2qtc"),n("kLXV")),b=(n("7Kak"),n("9yH6")),w=(n("miYZ"),n("tsqr")),_=(n("5NDa"),n("5rEg")),E=n("Ty5D"),x=n("sWEp"),L=n.n(x),O=n("qdXH");function j(){j=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:k(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(P([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=N(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function N(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var k=_["a"].Search,N=function(t){var e,n=t.videoDetail,r=(t.globalSetting,t.loading,t.dispatch),u=(Object(a["a"])(t,["videoDetail","globalSetting","loading","dispatch"]),Object(E["m"])()),s=(Object(E["l"])(),Object(i["useState"])([])),f=Object(p["a"])(s,2),d=f[0],h=f[1],m=Object(i["useState"])(""),y=Object(p["a"])(m,2),_=y[0],x=y[1],N=Object(i["useState"])(),S=Object(p["a"])(N,2),T=S[0],I=S[1],P=Object(i["useState"])(!1),G=Object(p["a"])(P,2),F=G[0],D=G[1],C=Object(i["useState"])(!1),V=Object(p["a"])(C,2),q=V[0],A=V[1];Object(i["useEffect"])((function(){"Banner-SendToClass"===n.actionTabs.key&&R()}),[n.actionTabs.key]);var R=function(){var t=Object(v["a"])(j().mark((function t(){var e,n;return j().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(O["h"])({});case 2:if(n=t.sent,!(null===n||void 0===n||null===(e=n.courses)||void 0===e?void 0:e.length)){t.next=8;break}h((null===n||void 0===n?void 0:n.courses)||[]),A(!0),t.next=11;break;case 8:return B(),w["b"].info("\u60a8\u5f53\u524d\u6ca1\u6709\u7ba1\u7406\u4efb\u4f55\u8bfe\u5802\uff0c\u4e0d\u53ef\u53d1\u9001"),t.abrupt("return");case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=function(t){h(null===d||void 0===d?void 0:d.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{hide:!e.course_name.includes(t)})})))},Y=function(){var t=Object(v["a"])(j().mark((function t(){var e;return j().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(T){t.next=3;break}return D(!0),t.abrupt("return");case 3:return t.next=5,Object(O["n"])({id:u.videoId,course_id:T});case 5:e=t.sent,0===(null===e||void 0===e?void 0:e.status)&&(w["b"].success("\u53d1\u9001\u6210\u529f"),B(),null===l["c"]||void 0===l["c"]||l["c"].replace("/classrooms/".concat(T,"/shixun_homework")));case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),B=function(){x(""),I(null),D(!1),r({type:"videoDetail/setActionTabs",payload:{}}),A(!1)};return c.a.createElement(g["a"],{centered:!0,keyboard:!1,closable:!1,title:"\u53d1\u9001\u81f3\u8bfe\u5802",visible:q,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Y,onCancel:B},c.a.createElement("div",{className:L.a.wrap},c.a.createElement("div",{className:"mb10"},c.a.createElement(k,{placeholder:"\u8f93\u5165\u8bfe\u5802\u540d\u79f0\u7684\u5173\u952e\u5b57\u8fdb\u884c\u641c\u7d22",value:_,onChange:function(t){return x(t.target.value)},onSearch:function(t){x(t),W(t)}})),c.a.createElement("div",{className:L.a.radioWrap},c.a.createElement(b["a"].Group,{value:T,onChange:function(t){I(t.target.value),D(!1)}},null===d||void 0===d||null===(e=d.filter((function(t){return!(null===t||void 0===t?void 0:t.hide)})))||void 0===e?void 0:e.map((function(t,e){return c.a.createElement(b["a"],{className:L.a.radio,value:t.course_id,key:e},t.course_name)})))),F&&c.a.createElement("div",{className:L.a.colorFF0000},"\u8bf7\u9009\u62e9\u4f60\u8981\u53d1\u9001\u7684\u8bfe\u5802"),c.a.createElement("div",{className:L.a.title},"\u6e29\u99a8\u63d0\u793a\uff1a\u5f53\u524d\u89c6\u9891\u9879\u76ee\u5c06\u4f1a\u53d1\u9001\u5230\u6307\u5b9a\u8bfe\u5802")))},S=Object(l["a"])((function(t){var e=t.videoDetail,n=t.loading,r=t.globalSetting;return{videoDetail:e,globalSetting:r,loading:n.models.index}}))(N),T=n("sBCT"),I=n("1vsH"),P=n("NLgs"),G=(n("Awhp"),n("KrTs")),F=(n("O3gP"),n("lrIw")),D=n("oBTY"),C=n("eoI0"),V=n.n(C),q=n("HBuW");function A(){A=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(r||[]);return o(i,"_invoke",{value:j(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var R=function(t){var e,n,r=t.videoDetail,a=t.dispatch,l=void 0===a?function(){}:a,u=t.visible,s=t.onClose,f=void 0===s?function(){}:s,h=r.queryParams,m=r.queryParams,y=(m.subject_id,m.videoId),_={videoId:y},E=Object(i["useState"])(0),x=Object(p["a"])(E,2),L=x[0],j=x[1],k=Object(i["useState"])(""),N=Object(p["a"])(k,2),S=N[0],T=N[1],I=Object(i["useState"])([]),P=Object(p["a"])(I,2),C=P[0],R=P[1],W=Object(i["useState"])([]),Y=Object(p["a"])(W,2),B=Y[0],U=Y[1];Object(i["useEffect"])((function(){var t,e,n=(null===(t=r.detail)||void 0===t||null===(e=t.video_item)||void 0===e?void 0:e.schools)||[];j((null===n||void 0===n?void 0:n.length)?1:0),U(n)}),[null===(e=r.detail)||void 0===e||null===(n=e.video_item)||void 0===n?void 0:n.schools]);var H=function(){var t=Object(v["a"])(A().mark((function t(e){var n;return A().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(q["L"])({q:e});case 2:n=t.sent,n&&R(n.shools_name||[]);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),M=function(t){B.includes(t)?w["b"].info("\u8bf7\u52ff\u6307\u5b9a\u76f8\u540c\u7684\u5355\u4f4d"):(T(""),U([].concat(Object(D["a"])(B),[t])))},z=function(){var t=Object(v["a"])(A().mark((function t(){var e;return A().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(1!==L||(null===B||void 0===B?void 0:B.length)){t.next=2;break}return t.abrupt("return",w["b"].info("\u8bf7\u9009\u62e9\u6307\u5b9a\u5355\u4f4d\u516c\u5f00"));case 2:return t.next=4,Object(O["a"])(Object(o["a"])(Object(o["a"])({},h),{},{id:_.videoId,schools:0===L?[]:B,is_public:2!==L}));case 4:e=t.sent,0===(null===e||void 0===e?void 0:e.status)&&(w["b"].success("\u8bbe\u7f6e\u6210\u529f"),J());case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),J=function(){f(),l({type:"videoDetail/getVideoDetail",payload:Object(o["a"])(Object(o["a"])({},h),{},{id:_.videoId})})};return c.a.createElement(g["a"],{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8bbe\u7f6e",width:530,className:V.a.modal,visible:u,onOk:z,onCancel:J},c.a.createElement(c.a.Fragment,null,c.a.createElement(b["a"].Group,{value:L,onChange:function(t){return j(t.target.value)}},c.a.createElement(b["a"],{value:0},"\u5bf9\u6240\u6709\u5355\u4f4d\u516c\u5f00",c.a.createElement("span",null,"\uff08\u9009\u4e2d\u540e\uff0c\u5bf9\u6240\u6709\u7528\u6237\u53ef\u89c1\uff09")),c.a.createElement(b["a"],{value:1},"\u5bf9\u6307\u5b9a\u5355\u4f4d\u516c\u5f00",c.a.createElement("span",null,"\uff08\u9009\u4e2d\u540e\uff0c\u4ec5\u5bf9\u4e0b\u65b9\u6307\u5b9a\u5355\u4f4d\u7528\u6237\u53ef\u89c1\uff09")),c.a.createElement(b["a"],{value:2},"\u4e0d\u516c\u5f00",c.a.createElement("span",null,"\uff08\u9009\u4e2d\u540e\uff0c\u5bf9\u6240\u6709\u7528\u6237\u4e0d\u53ef\u89c1\uff09"))),1===L&&c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"mt10"},c.a.createElement(F["a"],{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8bf7\u8f93\u5165\u5e76\u9009\u62e9\u5355\u4f4d\u540d\u79f0",value:S,onChange:function(t){T(t),H(t)},onSelect:M,options:null===C||void 0===C?void 0:C.map((function(t){return{value:t}}))})),c.a.createElement("div",{className:"mt10"},null===B||void 0===B?void 0:B.map((function(t,e){return c.a.createElement(G["a"],{count:c.a.createElement("span",{className:V.a.delete,onClick:function(){return U(B.filter((function(e){return e!==t})))}},"x"),className:"mt10 mr20 current",key:e},c.a.createElement(d["a"],{type:"primary",ghost:!0},t))}))))))},W=R;function Y(){Y=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(r||[]);return o(i,"_invoke",{value:j(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var B=function(t){var e=t.user,n=t.videoDetail,r=(t.globalSetting,t.loading,t.dispatch),l=(Object(a["a"])(t,["user","videoDetail","globalSetting","loading","dispatch"]),n.queryParams),u=n.queryParams,s=(u.subject_id,u.videoId),m={videoId:s},g=Object(i["useState"])(),b=Object(p["a"])(g,2),w=b[0],_=b[1],E=Object(i["useState"])(),x=Object(p["a"])(E,2),L=x[0],j=x[1],k=Object(i["useState"])(!1),N=Object(p["a"])(k,2),G=N[0],F=N[1],D=function(){r({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},C=function(){var t=Object(v["a"])(Y().mark((function t(){var n,r,a;return Y().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!((null===(n=e.userInfo)||void 0===n?void 0:n.admin)||(null===(r=e.userInfo)||void 0===r?void 0:r.is_teacher)&&Object(P["d"])())){t.next=6;break}return t.next=3,Object(O["g"])(Object(o["a"])({id:m.videoId},l));case 3:a=t.sent,j(null===a||void 0===a?void 0:a.video_item),_(!0);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),V=function(){var t=Object(v["a"])(Y().mark((function t(e){var n;return Y().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(O["m"])(Object(o["a"])(Object(o["a"])({},e),{},{id:m.videoId},l));case 2:return n=t.sent,0===(null===n||void 0===n?void 0:n.status)&&(_(!1),r({type:"videoDetail/getVideoDetail",payload:Object(o["a"])({id:m.videoId},l)})),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),q=n.detail||{},A=q.video_item;return c.a.createElement("aside",{className:y.a.banner},c.a.createElement("aside",{className:y.a.wrap},c.a.createElement("p",{className:y.a.title},null===A||void 0===A?void 0:A.name),c.a.createElement("div",{className:y.a.contentWrap},c.a.createElement("span",{className:"font14 c-white"},c.a.createElement("span",{className:"mr10"},"\u5b66\u4e60\u4eba\u6570\uff1a"),c.a.createElement("span",null,(null===A||void 0===A?void 0:A.study_video_items_count)||0),c.a.createElement("span",{className:"ml100 mr10"},"\u5b66\u5458\u8bc4\u5206\uff1a"),c.a.createElement(h["a"],{allowHalf:!0,value:Object(I["x"])(null===A||void 0===A?void 0:A.star),disabled:!0,className:y.a.rating})),c.a.createElement("div",null,(null===A||void 0===A?void 0:A.can_edit)&&c.a.createElement(d["a"],{className:"".concat(y.a.button," ").concat(y.a.buttonTransparent," mr15"),onClick:function(){return F(!0)}},"\u6743\u9650\u8bbe\u7f6e"),(null===A||void 0===A?void 0:A.can_edit)&&c.a.createElement(d["a"],{className:"".concat(y.a.button," ").concat(y.a.buttonTransparent," mr15"),onClick:C},"\u7f16\u8f91"),c.a.createElement(f["a"],{title:"\u53ef\u5c06\u672c\u89c6\u9891\u53d1\u9001\u81f3\u6211\u7684\u8bfe\u5802\u4e2d\u7684\u89c6\u9891\u680f\u76ee",placement:"bottom"},c.a.createElement(d["a"],{className:"".concat(y.a.button," ").concat(y.a.buttonTransparent," mr15"),onClick:D},"\u53d1\u9001\u81f3"))))),c.a.createElement(S,null),c.a.createElement(T["a"],{editData:L,visible:w,onCancel:function(){return _(!1)},onOk:V}),c.a.createElement(W,{dispatch:r,videoDetail:n,visible:G,onClose:function(){return F(!1)}}))},U=Object(l["a"])((function(t){var e=t.user,n=t.videoDetail,r=t.loading,o=t.globalSetting;return{user:e,videoDetail:n,globalSetting:o,loading:r}}))(B),H=(n("R9oj"),n("ECub")),M=(n("sRBo"),n("kaz8")),z=n("J66h"),J=n("hgre"),X=n("9Bee"),Q=n("vZDz"),Z=n.n(Q),K=n("9VGf");function $(){$=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(r||[]);return o(i,"_invoke",{value:j(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var tt=function(t){var e=t.videoDetail,n=(t.globalSetting,t.loading,t.dispatch),r=(Object(a["a"])(t,["videoDetail","globalSetting","loading","dispatch"]),e.queryParams),l=e.selectParams,u=e.videoList,s=(r.subject_id,r.videoId),f=l.checkBoxValue,p=l.radioValue,m={videoId:s},y={query:r},w=Object(i["useRef"])(),_=Object(i["useRef"])(),E=Object(i["useRef"])(),x=Object(i["useRef"])(5),L=e.detail||{},j=L.video_item;Object(K["a"])(Object(v["a"])($().mark((function t(){return $().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!_.current){t.next=5;break}return console.log("videoRef lastUpdatedTime: ",w.current.getLastUpdatedTime()),console.log(w.current),t.next=5,k();case 5:case"end":return t.stop()}}),t)}))),1e3*x.current);var k=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?{is_f:1}:{};return Object(O["o"])(Object(o["a"])(Object(o["a"])({},e),{id:m.videoId,point:w.current.getLastUpdatedTime(),total:w.current.getDuration()}))},N=function(t){return console.log("handlLogWatchHistory: ",t),"1"===t.ed&&(_.current=!1,k(!0)),_.current||t.ed||(_.current=!0,x.current=w.current.getDuration()<=5?1:5,k()),n({type:"userDetail/logWatchHistory",payload:t})},S=function(){_.current=!1},T=function(){_.current=!0},P=function(){E.current=5,g["a"].confirm({width:600,centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",title:"\u8bf7\u7ed9\u672c\u89c6\u9891\u8bc4\u5206",content:c.a.createElement("div",{className:"tc font14"},c.a.createElement(h["a"],{defaultValue:E.current,onChange:function(t){return E.current=t},className:Z.a.modalRating})),onOk:function(){var t=Object(v["a"])($().mark((function t(){var e;return $().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(O["l"])({id:m.videoId,star:E.current});case 2:e=t.sent,0===e.status&&n({type:"videoDetail/getVideoDetail",payload:Object(o["a"])({id:m.videoId},st(y.query))});case 4:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()})},G=function(t){var e=window.filterVideoSign,r=e.findIndex((function(t){return t.id===s})),o=r===e.length-1;if(!o){var a=e[r+1].id,i=e[r+1].can_view,l=e[r+1].link,u=e[r+1].is_public;if(window.checkBoxValue){if(l)return void window.open(l);if(!i)return void g["a"].info({centered:!0,width:400,okText:"\u77e5\u9053\u5566",icon:null,content:c.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")});if(!u)return void g["a"].info({centered:!0,width:400,okText:"\u77e5\u9053\u5566",icon:null,content:c.a.createElement("div",{className:"tc font14"},"\u4e0b\u4e00\u6761\u89c6\u9891\u6682\u672a\u516c\u5f00\uff0c\u656c\u8bf7\u671f\u5f85")});n({type:"videoDetail/handleList",payload:{videoId:a}}),window.videoTimer=setTimeout((function(){t.current.play()}),2e3)}}},F=function(t,e){if("checkBox"===t){var r=e.target.checked;return window.checkBoxValue=r,void n({type:"videoDetail/setSelectValue",payload:{radioValue:p,checkBoxValue:r}})}n({type:"videoDetail/setSelectValue",payload:{checkBoxValue:f,radioValue:e.target.value}})},D=function(){var t=u.findIndex((function(t){return t.id===s})),e=t===u.length-1;return e?c.a.createElement("div",null,"\u5f53\u524d\u5df2\u662f\u6700\u540e\u4e00\u4e2a\u89c6\u9891"):c.a.createElement(M["a"],{onChange:function(t){F("checkBox",t)},checked:f},"\u81ea\u52a8\u64ad\u653e\u4e0b\u4e00\u4e2a\u89c6\u9891")};return c.a.createElement("aside",{className:Z.a.contentWrap},c.a.createElement("aside",{className:Z.a.wrap},c.a.createElement("header",null,(null===j||void 0===j?void 0:j.description)&&c.a.createElement("span",{className:Z.a.introName},"\u7b80\u4ecb"),Object(I["I"])(null===j||void 0===j?void 0:j.my_star)?c.a.createElement(d["a"],{type:"primary",ghost:!0,onClick:P},"\u8bc4\u5206"):c.a.createElement("span",null,c.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8bc4\u5206\uff1a"),c.a.createElement(h["a"],{value:null===j||void 0===j?void 0:j.my_star,disabled:!0,className:Z.a.rating}))),c.a.createElement("div",{className:"mt20"},c.a.createElement(X["a"],{value:(null===j||void 0===j?void 0:j.description)||""})),(null===j||void 0===j?void 0:j.can_edit)||(null===j||void 0===j?void 0:j.is_public)?c.a.createElement(J["a"],{ref:w,startTime:null===j||void 0===j?void 0:j.last_point,src:(null===j||void 0===j?void 0:j.is_link)?null===j||void 0===j?void 0:j.link:(null===j||void 0===j?void 0:j.play_url)&&z["Base64"].decode(null===j||void 0===j?void 0:j.play_url),videoId:null===j||void 0===j?void 0:j.video_id,logWatchHistory:N,handlePause:S,handlePlay:T,videoSpeed:p,handlePlayEnded:G}):c.a.createElement(H["a"],{description:"\u5f53\u524d\u89c6\u9891\u6682\u672a\u516c\u5f00\uff0c\u656c\u8bf7\u671f\u5f85"}),(null===j||void 0===j?void 0:j.can_edit)||(null===j||void 0===j?void 0:j.is_public)?c.a.createElement("div",{className:Z.a.footer},c.a.createElement("div",{className:Z.a.checkBox},D()),c.a.createElement("div",{className:Z.a.radioGroup},c.a.createElement(b["a"].Group,{onChange:function(t){F("radio",t)},value:p},c.a.createElement(b["a"],{value:1},"1.0X"),c.a.createElement(b["a"],{value:1.5},"1.5X"),c.a.createElement(b["a"],{value:2},"2.0X")))):null))},et=Object(l["a"])((function(t){var e=t.videoDetail,n=t.loading,r=t.globalSetting;return{videoDetail:e,globalSetting:r,loading:n}}))(tt),nt=n("MRWH"),rt=n.n(nt),ot=n("V0Rq"),at=n("m3rI");function it(){it=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(r||[]);return o(i,"_invoke",{value:j(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new O(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var ct=[{name:"\u5b9e\u8df5\u9879\u76ee",type:"Shixun",icon:c.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89c6\u9891\u9879\u76ee",type:"VideoItem",icon:c.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5b66\u8bfe\u4ef6",type:"Attachment",icon:c.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})},{name:"\u7a7a\u76ee\u5f55",type:"StageCatalog",icon:c.a.createElement("i",{className:"iconfont icon-kongbai font20"})}],lt=function(t){var e=t.dispatch,n=t.videoDetail,r=t.user,o=(Object(a["a"])(t,["dispatch","videoDetail","user"]),n.queryParams),l=n.stages,u=(n.videoList,n.cust_seq),s=o.subject_id,f=o.videoId,d=o.course_id;Object(i["useEffect"])((function(){e(s?{type:"videoDetail/getStageData",payload:{subject_id:s}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:d}})}),[]);var h=function(){var t=Object(v["a"])(it().mark((function t(n,r){var o;return it().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff0c\u8bf7\u7a0d\u540e..."}}),!r){t.next=7;break}return t.next=4,Object(q["z"])({id:n});case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,Object(q["A"])({id:n});case 9:t.t0=t.sent;case 10:if(o=t.t0,e({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(null===o||void 0===o?void 0:o.game_identifier)&&!(null===o||void 0===o?void 0:o.identifier)){t.next=15;break}return Object(I["L"])(r?"/tasks/".concat(null===o||void 0===o?void 0:o.identifier,"/jupyter"):"/tasks/".concat(o.game_identifier)),t.abrupt("return");case 15:2===(null===o||void 0===o?void 0:o.status)?m(null===o||void 0===o?void 0:o.message):3===(null===o||void 0===o?void 0:o.status)&&p(null===o||void 0===o?void 0:o.message);case 16:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),p=function(t){g["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:c.a.createElement("div",{className:"tc font16"},"\u76ee\u524d\u8be5\u5b9e\u8df5\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",t,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01")})},m=function t(e){var n;e=(null===(n=e)||void 0===n?void 0:n.includes(".json"))?e:"".concat(e,".json"),g["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:c.a.createElement("div",{className:"tc font16"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!"),onOk:function(){var n=Object(v["a"])(it().mark((function n(){var r,o;return it().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(ot["P"])({url:e});case 2:if(r=n.sent,r){n.next=5;break}return n.abrupt("return");case 5:return w["b"].success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.next=8,Object(q["A"])({id:r.shixun_identifier});case 8:if(o=n.sent,!(null===o||void 0===o?void 0:o.game_identifier)){n.next=12;break}return Object(I["L"])("/tasks/".concat(o.game_identifier)),n.abrupt("return");case 12:2===(null===o||void 0===o?void 0:o.status)?t(null===o||void 0===o?void 0:o.message):3===(null===o||void 0===o?void 0:o.status)&&p(null===o||void 0===o?void 0:o.message);case 13:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},y=n.detail||{},b=y.video_item,_=function(t){if("StageCatalog"!==(null===t||void 0===t?void 0:t.item_type)){clearTimeout(window.videoTimer);var n,o,a=t.id,i=t.item_type,l=t.identifier,u=t.is_jupyter,s=t.url,f=t.link;if("VideoItem"===i&&!f)return(null===(n=r.userInfo)||void 0===n?void 0:n.admin)||(null===(o=r.userInfo)||void 0===o?void 0:o.business)||t.can_view?b.can_edit||t.is_public?void e({type:"videoDetail/handleList",payload:{videoId:a}}):void g["a"].info({centered:!0,width:400,okText:"\u77e5\u9053\u5566",icon:null,content:c.a.createElement("div",{className:"tc font14"},"\u5f53\u524d\u89c6\u9891\u6682\u672a\u516c\u5f00\uff0c\u656c\u8bf7\u671f\u5f85")}):void g["a"].info({centered:!0,width:400,okText:"\u77e5\u9053\u5566",icon:null,content:c.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")});if("VideoItem"===i&&f)return t.link&&Object(O["o"])({is_f:1,id:t.id,point:0,total:0}),void window.open(f);"Shixun"!==i?window.open(at["a"].IMG_SERVER+s):h(l,u)}},E=function(t){var e=["\u96f6","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],n=["","\u5341","\u767e","\u5343","\u4e07"];t=parseInt(t);var r=function(t){for(var r=t.toString().split("").reverse(),o="",a=0;a<r.length;a++)o=(0==a&&0==r[a]||a>0&&0==r[a]&&0==r[a-1]?"":e[r[a]]+(0==r[a]?n[0]:n[a]))+o;return o},o=Math.floor(t/1e4),a=t%1e4;return a.toString().length<4&&(a="0"+a),o?r(o)+"\u4e07"+r(a):r(t)},x=function(t,e,n,r){var o=t.name,a=t.item_type,i=t.id,l="".concat(e+1,"-").concat(n+1,"-").concat(r+1),s=ct.find((function(t){return t.type===a})).icon,d="VideoItem"===a?rt.a.brght:rt.a.gray,h=f===i?"".concat(d," ").concat(rt.a.active):d;return c.a.createElement("div",{key:l,onClick:function(){return _(t)},className:h,style:{paddingLeft:52}},c.a.createElement("span",{className:rt.a.s1},s),!!u&&c.a.createElement("span",{className:rt.a.s2},l),c.a.createElement("span",{className:rt.a.s3},"\u203b ",o))},L=function(t,e,n){var r=t.name,o=t.item_type,a=t.id,l=t.children,s="".concat(e+1,"-").concat(n+1),d=ct.find((function(t){return t.type===o})).icon,h="VideoItem"===o?rt.a.brght:rt.a.gray,v=f===a?"".concat(h," ").concat(rt.a.active):h;return c.a.createElement(i["Fragment"],{key:s},c.a.createElement("div",{onClick:function(){return _(t)},className:v},c.a.createElement("span",{className:rt.a.s1},d),!!u&&c.a.createElement("span",{className:rt.a.s2},s),c.a.createElement("span",{className:rt.a.s3},"\u203b ",r)),!!l.length&&l.map((function(t,r){return x(t,e,n,r)})))};return c.a.createElement("aside",{className:rt.a.list},l.map((function(t,e){var n=t.stage_name,r=(t.shixuns_list,t.items),o=void 0===r?[]:r,a=Object(D["a"])(o);return c.a.createElement("aside",{key:e,className:rt.a.box},c.a.createElement("div",{className:rt.a.title},E(e+1),"\u3001",n),a.map((function(t,n){return L(t,e,n)})),e!==l.length-1&&c.a.createElement("div",{className:rt.a.line}))})))},ut=Object(l["a"])((function(t){var e=t.user,n=t.videoDetail,r=t.loading,o=t.globalSetting;return{user:e,videoDetail:n,globalSetting:o,loading:r}}))(lt),st=function(t){var e=t.subject_id;return{subject_id:e,course_id:e}},ft=function(t){var e=t.videoDetail,n=(t.globalSetting,t.loading,t.dispatch),l=(Object(a["a"])(t,["videoDetail","globalSetting","loading","dispatch"]),e.queryParams),u=(l.subject_id,l.videoId),f={videoId:u};return Object(i["useEffect"])((function(){console.log("\u9a8c\u8bc1\u6d4b\u8bd5\u73af\u5883"),f.videoId&&n({type:"videoDetail/getVideoDetail",payload:Object(o["a"])(Object(o["a"])({},l),{},{id:f.videoId})})}),[f.videoId]),Object(i["useEffect"])((function(){var t,n;document.title=(null===(t=e.detail)||void 0===t||null===(n=t.video_item)||void 0===n?void 0:n.name)||"EduCoder"}),[e]),c.a.createElement(r["a"],{spinning:!1},c.a.createElement("section",{className:s.a.bg},c.a.createElement(U,null),c.a.createElement("div",{className:s.a.container},c.a.createElement(ut,null),c.a.createElement(et,null))))};e["default"]=Object(l["a"])((function(t){var e=t.videoDetail,n=t.loading,r=t.globalSetting;return{videoDetail:e,globalSetting:r,loading:n}}))(ft)},"9VGf":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("q1tI");function o(t,e){var n=Object(r["useRef"])();Object(r["useEffect"])((function(){n.current=t})),Object(r["useEffect"])((function(){function t(){n.current()}if(null!==e){var r=setInterval(t,e);return function(){return clearInterval(r)}}}),[e])}},JqQi:function(t,e,n){t.exports={bg:"bg___31owl",container:"container___2NGOo"}},MRWH:function(t,e,n){t.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(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"f",(function(){return y})),n.d(e,"d",(function(){return b})),n.d(e,"c",(function(){return w})),n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return E}));n("miYZ");var r=n("tsqr"),o=n("9og8"),a=(n("2qtc"),n("kLXV")),i=n("q1tI"),c=n.n(i),l=n("9kvl"),u=n("xKgJ"),s=n("1vsH"),f=n("RCxd"),d=n("mOS8"),h=n.n(d),v=n("m3rI");function p(){p=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:k(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",m="completed",y={};function g(){}function b(){}function w(){}var _={};u(_,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(P([])));x&&x!==n&&r.call(x,i)&&(_=x);var L=w.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=N(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function N(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new j(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(L),u(L,l,"Generator"),u(L,i,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}var m=function(t){return!(!y(t)||!g())},y=function(t){return!!Object(u["p"])()||(t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},g=function(){var t,e=Object(l["b"])()._store.getState(),n=e.user;return!!(null===(t=n.userInfo)||void 0===t?void 0:t.profile_completed)||(a["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:c.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(){l["c"].push("/account/profile/edit")}}),!1)},b=function(){var t,e=Object(l["b"])()._store.getState(),n=e.user;return!!(null===(t=n.userInfo)||void 0===t?void 0:t.professional_certification)||(a["a"].confirm({title:"\u63d0\u793a",centered:!0,content:c.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(s["L"])("/account/certification")}}),!1)},w=function(){return!!Object(u["a"])()||(a["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.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"),c.a.createElement("img",{src:Object(u["t"])()?n("WdTA"):"".concat(v["a"].IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),c.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a",Object(u["t"])()?"693542422":"612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},_=function(t,e){return!!t||(a["a"].confirm({centered:!0,zIndex:1e4,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("p",null,e||"\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"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:n("1ZF9"),width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7fa4\u53f7\uff1a","714336072"))),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},E=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(l["b"])()._store.getState(),i=n.shixunsDetail.detail;return 2===(null===i||void 0===i?void 0:i.public)||1===(null===i||void 0===i?void 0:i.public)||3===(null===i||void 0===i?void 0:i.shixun_status)?(a["a"].info({centered:!0,icon:c.a.createElement(f["a"],{style:{color:"#faad14"}}),width:460,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u7684\u72b6\u6001\u4e3a",2===(null===i||void 0===i?void 0:i.public)?"\u5df2\u516c\u5f00":1===(null===i||void 0===i?void 0:i.public)?"\u5f85\u5ba1\u6838":"\u5df2\u5173\u95ed","\uff0c",e,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uff0c\u8bf7\u8054\u7cfb\u5e73\u53f0\u7ba1\u7406\u5458\u8fdb\u884c\u6280\u672f\u652f\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:h.a,alt:"\u4e8c\u7ef4\u7801",width:160})),okText:"\u6211\u77e5\u9053\u4e86"}),!0):2===(null===i||void 0===i?void 0:i.shixun_status)&&(a["a"].confirm({centered:!0,icon:c.a.createElement(f["a"],null),title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u5df2\u53d1\u5e03\uff0c",e,"\u3002"),c.a.createElement("br",null),c.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(){a["a"].confirm({width:440,centered:!0,icon:c.a.createElement(f["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 e=Object(o["a"])(p().mark((function e(){var n;return p().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/cancelRelease",payload:{id:null===i||void 0===i?void 0:i.identifier}});case 2:n=e.sent,401!==n.status&&(r["b"].success("\u64a4\u9500\u53d1\u5e03\u6210\u529f\u3002\u5b9e\u8bad\u56de\u5230\u672a\u53d1\u5e03\u7684\u72b6\u6001\u3002"),t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===i||void 0===i?void 0:i.identifier}}),t({type:"practiceSetting/getCommonData",payload:{id:null===i||void 0===i?void 0:i.identifier}}));case 4:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})}}),!0)}},WdTA:function(t,e,n){t.exports=n.p+"static/studnetqun.a5754d96.png"},eoI0:function(t,e,n){t.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(t,e,n){"use strict";var r=n("9og8"),o=n("q1tI"),a=n.n(o),i=n("GUcZ"),c=n("pWdF");function l(){l=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:k(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",v="suspendedYield",p="executing",m="completed",y={};function g(){}function b(){}function w(){}var _={};s(_,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(P([])));x&&x!==n&&r.call(x,i)&&(_=x);var L=w.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=N(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?m:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function N(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new j(f(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(L),s(L,u,"Generator"),s(L,i,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function u(t,e){return t-e}function s(t){t.sort(u);for(var e=0,n=0;n<t.length-1;n++){var r=Math.abs(t[n+1]-t[n]);r<21&&(e+=r)}return e}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});var f=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;e["a"]=Object(o["forwardRef"])((function(t,e){var n,u=t.src,d=t.videoId,h=t.logWatchHistory,v=t.courseId,p=void 0===v?null:v,m=t.startTime,y=t.handlePause,g=void 0===y?function(){}:y,b=t.handlePlay,w=void 0===b?function(){}:b,_=t.handlePlayEnded,E=void 0===_?function(){}:_,x=t.videoSpeed,L=void 0===x?1:x,O=null===u||void 0===u||null===(n=u.split("."))||void 0===n?void 0:n.pop(),j="flv"===O,k=Object(o["useRef"])(),N=navigator.userAgent.toLowerCase().match(f),S=N?N[0]:"pc",T=Object(o["useRef"])(!1),I=0,P=0,G=0,F=null,D=!1,C=20,V=1,q=!1,A=!1,R=[];Object(o["useImperativeHandle"])(e,(function(){return{getLastUpdatedTime:function(){return k.current.currentTime},getDuration:function(){return k.current.duration}}}));var W=Object(o["useCallback"])((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={point:k.current.currentTime};function o(){return a.apply(this,arguments)}function a(){return a=Object(r["a"])(l().mark((function e(){var r;return l().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return q=!0,e.next=3,h(n);case 3:r=e.sent,F=r,q=!1,t&&t();case 7:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}F?(n["log_id"]=F,n["watch_duration"]=s(R),n["total_duration"]=P):(p?(n["video_id"]=parseInt(d,10),n["course_id"]=p):n["video_id"]=d,n["duration"]=I,n["device"]=S),e&&(n["ed"]="1"),o()}),[d,p]);return Object(o["useEffect"])((function(){var t=null;return i["a"].isSupported&&j&&u&&(null===u||void 0===u?void 0:u.indexOf(".m3u8"))<0?(t=i["a"].createPlayer({type:"flv",volume:.8,cors:!0,url:u,muted:!1}),k.current&&(t.attachMediaElement(k.current),t.load())):k.current.setAttribute("src",u),function(){t&&(t.unload(),t.pause(),t.destroy(),t=null)}}),[k,j,u]),Object(o["useEffect"])((function(){function t(){w(),m&&!T.current&&(k.current.currentTime=m),T.current=!0,R.push(k.current.currentTime),D||(D=!0,W())}function e(){return n.apply(this,arguments)}function n(){return n=Object(r["a"])(l().mark((function t(){return l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:R.push(k.current.currentTime),W((function(){F=null,G=0,D=!1,q=!1,A=!1,R=[],P=0,V=1}),!0);case 2:case"end":return t.stop()}}),t)}))),n.apply(this,arguments)}function o(){if(!A){var t=k.current.currentTime,e=t-G;Math.abs(e)<10?(P+=Math.abs(e),G=t,q||P-V*C>=0&&(V++,R.push(G),W())):(G=t,W())}}function a(){A=!0}function i(){k.current.playing&&R.push(k.current.currentTime,G),G=k.current.currentTime,A=!1}function c(){I=k.current.duration,I<=20&&(C=I/3),k.current.addEventListener("play",t)}function u(){g()}return k.current.addEventListener("canplay",c),k.current.addEventListener("ended",e),k.current.addEventListener("seeking",a),k.current.addEventListener("seeked",i),k.current.addEventListener("timeupdate",o),k.current.addEventListener("pause",u),function(){k.current.removeEventListener("canplay",c),k.current.removeEventListener("play",t),k.current.removeEventListener("ended",e),k.current.removeEventListener("seeking",a),k.current.removeEventListener("seeked",i),k.current.removeEventListener("timeupdate",o),k.current.removeEventListener("pause",u),k.current.playing&&(R.push(G,k.current.currentTime),W())}}),[k,u]),Object(o["useEffect"])((function(){if(k.current.onended=function(){E(k)},k.current.oncontextmenu=function(){return!1},k.current.playbackRate=L,u.indexOf(".m3u8")>-1)if(k.current.canPlayType("application/vnd.apple.mpegurl"))k.current.src=u;else if(c["a"].isSupported()){var t=new c["a"];t.loadSource(u),t.attachMedia(k.current)}}),[u,L]),a.a.createElement("video",{ref:k,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})}))},kwm0:function(t,e,n){t.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(t,e,n){t.exports=n.p+"static/403Qrcode.6c17b6f4.png"},nUhQ:function(t,e,n){t.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(t,e,n){"use strict";n("DZo9");var r=n("8z0m"),o=(n("+L6B"),n("2/Rp")),a=(n("MXD1"),n("CFYs")),i=n("9og8"),c=(n("2qtc"),n("kLXV")),l=(n("miYZ"),n("tsqr")),u=(n("y8nQ"),n("Vl3Y")),s=n("tJVT"),f=n("k1fw"),d=n("oBTY"),h=(n("5NDa"),n("5rEg")),v=n("q1tI"),p=n.n(v),m=n("Ty5D"),y=n("55Ip"),g=n("9kvl"),b=n("kwm0"),w=n.n(b),_=n("Aky1"),E=n("h/US"),x=n("m3rI");function L(){L=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:k(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(P([])));E&&E!==n&&r.call(E,i)&&(w=E);var x=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,n,r){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=N(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function N(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,N(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new j(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var O=h["a"].TextArea,j=1024,k=function(t,e){var n,r=e.payload||{},o=r.uploadInfo,a=void 0===o?{}:o;switch(e.type){case"addVideo":return{videoList:[].concat(Object(d["a"])(t.videoList),[{name:a.file.name,size:a.file.size,type:a.file.type,fileHash:a.fileHash,state:a.state,videoId:a.videoId,loaded:a.loaded||0,title:""}])};case"removeVideo":return{videoList:t.videoList.filter((function(t){return t.name!==e.payload.name}))};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:t.videoList.map((function(t){return t.name===e.payload.uploadInfo.file.name?Object(f["a"])(Object(f["a"])({},t),{loaded:e.payload.progressPercent,videoId:a.videoId,fileHash:a.fileHash}):t}))};case"updateTitle":return{videoList:null===(n=t.videoList)||void 0===n?void 0:n.map((function(t){return t.name===e.payload.item.name?Object(f["a"])(Object(f["a"])({},t),{title:e.payload.title}):t}))};default:return{videoList:[]}}},N=function(t){var e,n=t.user,d=(t.globalSetting,t.loading,t.dispatch,t.visible),g=t.editData,b=t.onCancel,N=void 0===b?function(){}:b,S=t.onOk,T=void 0===S?function(){}:S,I=(Object(m["m"])(),u["a"].useForm()),P=Object(s["a"])(I,1),G=P[0],F=Object(v["useReducer"])(k,{videoList:[]}),D=Object(s["a"])(F,2),C=D[0],V=D[1],q=Object(v["useState"])(!1),A=Object(s["a"])(q,2),R=(A[0],A[1]),W=Object(v["useRef"])(),Y=Object(v["useState"])(),B=Object(s["a"])(Y,2),U=B[0],H=B[1],M=Object(v["useState"])(!1),z=Object(s["a"])(M,2),J=z[0],X=z[1],Q=Object(v["useState"])(!1),Z=Object(s["a"])(Q,2),K=Z[0],$=Z[1],tt=Object(v["useState"])([]),et=Object(s["a"])(tt,2),nt=(et[0],et[1]),rt=Object(v["useState"])([]),ot=Object(s["a"])(rt,2),at=ot[0],it=ot[1];Object(v["useEffect"])((function(){g&&(X(g.is_link),H(g.link),!g.is_link&&V({type:"addVideo",payload:{uploadInfo:{file:{name:g.file_name},videoId:g.video_id,loaded:100}}}),G.setFieldsValue({name:g.name,description:g.description,attachment_id:null===g||void 0===g?void 0:g.attachment_id}))}),[g]);var ct=function(){var t=document.getElementById("fileUpload");t.value=""},lt=function(t){var e;X(!1);var n=t.target.files[0];if(n){var r=n.name.toLowerCase();return r&&-1==r.indexOf(".avi")&&-1==r.indexOf(".flv")&&-1==r.indexOf(".f4v")&&-1==r.indexOf(".m4v")&&-1==r.indexOf(".mov")&&-1==r.indexOf(".mp4")&&-1==r.indexOf(".rmvb")&&-1==r.indexOf(".swf")&&-1==r.indexOf(".webm")&&-1==r.indexOf(".wmv")?(l["b"].info("\u4e0d\u652f\u6301\u7684\u89c6\u9891\u683c\u5f0f"),void ct()):n.size>1024*j*1024?(l["b"].info("\u89c6\u9891\u5927\u5c0f\u8d85\u8fc71G"),void ct()):(null===(e=C.videoList)||void 0===e?void 0:e.find((function(t){return t.name===n.name})))?(l["b"].info("\u4f60\u4e0d\u80fd\u4e0a\u4f20\u540c\u4e00\u4e2a\u89c6\u9891\u6587\u4ef6\u540d\u79f0\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u3002"),void ct()):void st(n)}ct()},ut=function(t,e){c["a"].confirm({title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:p.a.createElement("div",{className:"tc"},"\u60a8\u786e\u8ba4\u8981",e?"\u5220\u9664":"\u53d6\u6d88\u4e0a\u4f20","\u8be5\u89c6\u9891\u5417\uff1f"),onOk:function(){ct(),V({type:"removeVideo",payload:{name:t}})}})},st=function(t){var e,r='{"Vod":{}}';R(!0),W.current?W.current.addFile(t,null,null,null,r):Object(_["a"])(null===(e=n.userInfo)||void 0===e?void 0:e.login,{create:!W,addFileSuccess:function(t){V({type:"addVideo",payload:{uploadInfo:t}})},onUploadProgress:function(t,e,n){var r=Math.ceil(100*n);V({type:"updateProgress",payload:{uploadInfo:t,progressPercent:r}}),ct()},onUploadFailed:function(t){l["b"].info("\u89c6\u9891\u4e91\u670d\u52a1\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u3002")},onUploadEnd:function(t){R(!1)},onUploadSucceed:function(t){R(!1)},onUploadError:function(t){R(!1)},gotUploader:function(e){e.addFile(t,null,null,null,r),W.current=e}})},ft=function(){var t=Object(i["a"])(L().mark((function t(){var e,n,r,o;return L().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,G.validateFields();case 2:if((J||(null===(e=C.videoList)||void 0===e?void 0:e.length))&&(!J||U)){t.next=5;break}return l["b"].info("\u8bf7\u5148\u4e0a\u4f20\u89c6\u9891\u6216\u8005\u6dfb\u52a0\u5916\u94fe"),t.abrupt("return");case 5:return $(!0),r=J?{link:U}:{video_id:null===(n=C.videoList)||void 0===n?void 0:n[0].videoId},t.next=10,T(Object(f["a"])(Object(f["a"])({},r),{name:G.getFieldValue("name"),attachment_id:G.getFieldValue("attachment_id"),description:G.getFieldValue("description")}));case 10:o=t.sent,$(!1),o.id&&dt();case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),dt=function(){G.resetFields(),V({type:"removeAll"}),H(null),X(null)},ht=function(){N(),dt()},vt={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:x["a"].API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(t){it([])},onChange:function(t){var e,n,r,o=t.file.status;("removed"===o&&nt(t.fileList),"done"===o)?(nt(null===t||void 0===t||null===(e=t.fileList)||void 0===e?void 0:e.slice(-1)),V({type:"addVideo",payload:{uploadInfo:{videoId:null===t||void 0===t||null===(n=t.fileList[0])||void 0===n||null===(r=n["response"])||void 0===r?void 0:r.id,loaded:100,file:Object(f["a"])({},null===t||void 0===t?void 0:t.fileList[0])}}}),X(!1),l["b"].success("".concat(t.file.name," \u6587\u4ef6\u4e0a\u4f20\u6210\u529f"))):"error"===o&&l["b"].error("".concat(t.file.name," \u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"))},beforeUpload:function(t){var e=t.size/1024/1024<1e3;return e||l["b"].info("\u6587\u4ef6\u5927\u5c0f\u5fc5\u987b\u5c0f\u4e8e150MB"),e}},pt=function(){var t,e,n,i,c,l,u,s,f,d,v,m;return p.a.createElement(p.a.Fragment,null,!J&&!!(null===(t=C.videoList)||void 0===t?void 0:t.length)&&p.a.createElement("div",{className:w.a.fileProgress},100==(null===(e=C.videoList)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.loaded)?p.a.createElement("div",{className:"".concat(w.a.videoName," font14")},null===(i=C.videoList)||void 0===i||null===(c=i[0])||void 0===c?void 0:c.name):p.a.createElement(a["a"],{style:{width:"80%"},percent:null===(l=C.videoList)||void 0===l||null===(u=l[0])||void 0===u?void 0:u.loaded,status:100==(null===(s=C.videoList)||void 0===s||null===(f=s[0])||void 0===f?void 0:f.loaded)?"normal":"active"}),p.a.createElement("div",{className:w.a.fileCancel,onClick:function(){var t,e,n,r;return ut(null===(t=C.videoList)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.name,100==(null===(n=C.videoList)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.loaded))}},100===(null===(d=C.videoList)||void 0===d||null===(v=d[0])||void 0===v?void 0:v.loaded)?"\u5220\u9664":"\u53d6\u6d88\u4e0a\u4f20")),!(null===(m=C.videoList)||void 0===m?void 0:m.length)&&p.a.createElement("div",{className:w.a.uploadWrap},p.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},p.a.createElement(r["a"],vt,p.a.createElement(o["a"],{className:w.a.upload,disabled:(null===at||void 0===at?void 0:at.length)>0},p.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4e0a\u4f20\u89c6\u9891"))),p.a.createElement("label",{className:"".concat(w.a.upload," ").concat(w.a.uploadLink),onClick:function(){return X(!0)}},p.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6dfb\u52a0\u5916\u94fe")),J&&p.a.createElement(h["a"],{className:"mt5",placeholder:"\u8bf7\u8f93\u5165\u89c6\u9891\u94fe\u63a5",value:U,onChange:function(t){return H(t.target.value)}}))};return p.a.createElement(c["a"],{centered:!0,maskClosable:!1,title:g?"\u7f16\u8f91\u89c6\u9891\u9879\u76ee":"\u65b0\u5efa\u89c6\u9891\u9879\u76ee",width:740,className:w.a.modal,visible:d,confirmLoading:K,onOk:ft,onCancel:ht},p.a.createElement(u["a"],{form:G},p.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:lt,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),p.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u540d\u79f0",name:"name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9879\u76ee\u540d\u79f0"}]},p.a.createElement(h["a"],{maxLength:40,placeholder:"\u8bf7\u8f93\u5165\u4e0d\u8d85\u8fc740\u5b57\u7684\u9879\u76ee\u540d\u79f0"})),p.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u5185\u5bb9",name:"content",className:w.a.contentItem},pt()),p.a.createElement(u["a"].Item,{name:"attachment_id",label:"\u4e0a\u4f20\u5c01\u9762\u56fe:"},p.a.createElement(E["a"],{getFileProgress:function(t){"uploading"!==t.file.status?"done"===t.file.status&&$(!1):$(!0)}})),p.a.createElement(u["a"].Item,{label:"\u9879\u76ee\u7b80\u4ecb",name:"description",className:"ml8"},p.a.createElement(O,{rows:5,maxLength:800,placeholder:"\u8bf7\u8f93\u5165\u672c\u89c6\u9891\u7b80\u4ecb\uff0c\u6700\u591a\u4e0d\u8d85\u8fc7800\u5b57"})),p.a.createElement("div",{className:"c-grey-999"},p.a.createElement("div",null,"\u6ce8\u610f\uff1a"),p.a.createElement("div",null,"1\u3001\u4e0a\u4f20\u89c6\u9891\uff0c\u5373\u8868\u793a\u60a8\u5df2\u540c\u610f",p.a.createElement(y["Link"],{to:"/users/".concat(null===(e=n.userInfo)||void 0===e?void 0:e.login,"/videos/protocol"),target:"_blank",className:w.a.colorBlue},"\u4e0a\u4f20\u5185\u5bb9\u534f\u8bae"),"\uff0c\u4e0d\u5f97\u4e0a\u4f20\u672a\u7ecf\u4ed6\u4eba\u6388\u6743\u7684\u4f5c\u54c1\uff1b"),p.a.createElement("div",null,"2\u3001\u4e0d\u652f\u6301\u65ad\u70b9\u7eed\u4f20\uff0c\u6587\u4ef6\u5927\u5c0f\u8bf7\u52ff\u8d85\u8fc71G\uff1b"),p.a.createElement("div",null,"3\u3001\u652f\u6301\u6587\u4ef6\u683c\u5f0f\uff1aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uff1b"),p.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"))))};e["a"]=Object(g["a"])((function(t){var e=t.user,n=t.loading,r=t.globalSetting;return{user:e,globalSetting:r,loading:n}}))(N)},sWEp:function(t,e,n){t.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(t,e,n){t.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);