Commit dee252cd by FE

share modify

parent 66b17ab7
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1228:function(e,t,a){},1285:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),r=a(8),l=a(9),m=a(0),d=a.n(m),h=a(16),u=a(722),p=a(1222),y=a.n(p),E=a(28),_=a(3),b=(a(1228),a(1229),a(1230),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(_.c)("id"),"&type=").concat(Object(_.c)("type"),"&ques=").concat(Object(_.c)("ques"),"&from=python")})},a.initPageStatus=function(){"barcode"===Object(_.c)("from")&&a.setState({entryMode:0}),"python"===Object(_.c)("from")&&a.setState({entryMode:2}),"1"===Object(_.c)("type")&&a.setState({isShare:!0}),"2"===Object(_.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(_.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(_.c)("id")||10;_.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare,o=n.entryMode;if(_.b.isWeixin){t.push("/pythonShare?id=".concat(Object(_.c)("id"),"&type=").concat(Object(_.c)("type"),"&ques=").concat(Object(_.c)("ques"),"&from=python")),a.setState({entryMode:1});var s="",i=a.formatTitle(e);0===o||c||(s="\u6211\u5728".concat(e.course_name,"\u7684").concat(i,"\u9047\u5230\u4e86\u56f0\u96be")),0!==o&&c&&(s="\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines)),Object(_.i)({title:s,desc:i,link:encodeURI(location.href),imgUrl:e.course_img})}},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({entryMode:2})},a.state={isWechat:_.b.isWeixin,isShare:!0,type:"1",entryMode:0,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.command,s=e.isCopy,i=e.data;return d.a.createElement(d.a.Fragment,null,d.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),d.a.createElement(S,{isWechat:t,isShare:a,isExecute:n,entryMode:c,isCopy:s,command:o,data:i,labelName:this.formatTitle(i),handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(m.Component));function f(e){return d.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function S(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,r=e.data,l=r.head_img,m=r.nickname,p=r.code_lines,y=r.code,E=r.result,_=(r.ques_name,r.course_name),b=r.course_id,S=(r.video_name,e.handleToSend),N=e.copyToSuccess,v=e.handleToExecute,T=e.handleToHide;return d.a.createElement("div",{className:"python-container"},1===c&&t&&d.a.createElement("div",{className:"python-popup",onClick:T},d.a.createElement("div",{className:"python-header"},d.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),d.a.createElement("i",{className:"iconfont iconyindao"}))),d.a.createElement("div",{className:"python-content"},d.a.createElement("div",{className:"python-user"},d.a.createElement("div",{className:"python-user__portrait"},d.a.createElement("img",{src:l,alt:""})),d.a.createElement("h2",{className:"python-user__id"},m),0===c&&a&&d.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",d.a.createElement("span",null,"\u3010",i,"\u3011")),0!==c&&a&&d.a.createElement("p",{className:"python-user__desc"},"\u5728",d.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",d.a.createElement("br",null),i),0===c&&!a&&d.a.createElement("p",{className:"python-user__desc"},"\u5728",d.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),0!==c&&!a&&d.a.createElement("p",{className:"python-user__desc"},"\u5728",d.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",d.a.createElement("br",null),d.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),d.a.createElement("h4",{className:"python-code__title"},0!==c&&a&&!t?"\u8fd9\u662fTa\u7684\u7b2c".concat(p,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),d.a.createElement("div",{className:"python-code__content"},d.a.createElement(f,{code:0!==c&&a&&!t?y:E})),d.a.createElement("h4",{className:"python-code__title"},0!==c&&a&&!t?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),d.a.createElement("div",{className:"python-code__content"},0!==c&&a&&!t?d.a.createElement(f,{code:n?E:""}):d.a.createElement(f,{code:y}),0!==c&&a&&!t&&!n&&d.a.createElement("button",{className:"python-button python-button__execute",onClick:v},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&d.a.createElement("button",{className:"python-button python-button__study",onClick:S},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&d.a.createElement(u.CopyToClipboard,{text:s,onCopy:N},d.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&d.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),0!==c&&d.a.createElement(h.b,{className:"python-button python-button__study",to:"/python?id=".concat(b)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=b}}]);
//# sourceMappingURL=51.3298534c.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/pythonShare/index.js"],"names":["PythonClass","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCommand","setState","command","concat","API","m","getParam","initPageStatus","entryMode","isShare","type","handleFetchInfo","id","http","get","home","params","then","res","_res$data","data","code","handleToSend","history","_this$state","state","browser","isWeixin","push","title","labelName","formatTitle","course_name","code_lines","wxShare","desc","link","encodeURI","location","href","imgUrl","course_img","ques_name","video_name","copyToSuccess","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","isCopy","handleToExecute","isExecute","handleToHide","isWechat","_this$state2","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","arrow","PythonContent","Component","SelfAceEditor","react_ace__WEBPACK_IMPORTED_MODULE_10___default","mode","theme","readOnly","showPrintMargin","value","style","width","height","_props$data","head_img","nickname","result","course_id","className","onClick","src","alt","react_copy_to_clip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UAAU,sBAAoC,IAAdpE,GAAmBC,IAAY2C,EAAU,2BAAS,gBACtFE,EAAAR,EAAAS,cAAA,OAAKqB,UAAU,wBAEG,IAAdpE,GAAmBC,IAAY2C,EAC7BE,EAAAR,EAAAS,cAACM,EAAD,CAAexC,KAAM6B,EAAWwB,EAAS,KACzCpB,EAAAR,EAAAS,cAACM,EAAD,CAAexC,KAAMA,IAGR,IAAdb,GAAmBC,IAAY2C,IAAaF,GAC7CI,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,uCAAuCC,QAAS5B,GAAlE,8BAMW,IAAdzC,GAAmB4C,GACpBE,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,qCAAqCC,QAASvD,GAC7Db,EAAS,iCAAU,wCAKP,IAAdD,IAAoB4C,IAAaJ,GAClCM,EAAAR,EAAAS,cAACyB,EAAA,gBAAD,CACEC,KAAM/E,EACNgF,OAAQtC,GAERU,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,sCACfnE,EAAS,iCAAU,yCAMT,IAAdD,IAAoB4C,GAAYJ,GACjCM,EAAAR,EAAAS,cAAA,KAAGqB,UAAU,sBAAb,oGAIc,IAAdpE,GACA8C,EAAAR,EAAAS,cAAC4B,EAAA,EAAD,CAAMP,UAAU,qCAAqCQ,GAAE,cAAAjF,OAAgBwE,IAAvE,mCAMOpF","file":"mrstatic/js/51.3298534c.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport {CopyToClipboard} from 'react-copy-to-clipboard';\nimport AceEditor from 'react-ace';\nimport { Toast } from \"antd-mobile\"\nimport {HeaderBar} from '@/common';\nimport { browser, http, getParam, wxShare } from '@/utils';\nimport './index.scss';\nimport 'ace-builds/src-noconflict/mode-python';\nimport 'ace-builds/src-noconflict/theme-dracula';\n\nclass PythonClass extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isWechat: browser.isWeixin,\n isShare: true,\n type: '1', // 1:课后习题,2:课堂习题\n entryMode: 0, // 0:扫码页,1:落地页,2:直接进入\n isExecute: false,\n isCopy: false,\n command: '',\n data: {}\n }\n }\n\n componentDidMount() {\n this.handleFetchInfo();\n this.initPageStatus();\n this.initCommand();\n }\n\n initCommand = () => {\n this.setState({\n command: `${API.m}/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&from=python`\n })\n }\n\n initPageStatus = () => {\n if(getParam('from') === 'barcode') {\n this.setState({\n entryMode: 0\n });\n }\n if(getParam('from') === 'python') {\n this.setState({\n entryMode: 2\n });\n }\n if(getParam('type') === '1') {\n this.setState({\n isShare: true\n });\n }\n if(getParam('type') === '2') {\n this.setState({\n isShare: false\n });\n }\n this.setState({\n type: getParam('ques') || '1'\n });\n }\n\n handleFetchInfo = () => {\n const id = getParam('id') || 10;\n // http.get(`${API.home}/web/python/share/help/${id}`).then(res => {\n http.get(`${API.home}/m/it/share/show`, {\n params: {\n id\n }\n }).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n data,\n });\n }\n })\n }\n\n handleToSend = (params) => {\n const { history } = this.props;\n const { isShare, entryMode } = this.state;\n if(browser.isWeixin) {\n history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&from=python`);\n this.setState({\n entryMode: 1\n });\n let title = '';\n let labelName = this.formatTitle(params);\n if(entryMode !== 0 && !isShare) {\n title = `我在${params.course_name}的${labelName}遇到了困难`;\n }\n if(entryMode !== 0 && isShare) {\n title = `我已在【${params.course_name}】上运行了行代码了${params.code_lines}`\n }\n wxShare({\n title,\n desc: labelName,\n link: encodeURI(location.href),\n imgUrl: params.course_img,\n });\n }\n }\n\n formatTitle = (params) => {\n const { type } = this.state;\n if(type === '1') {\n return `练习-${params.ques_name}`;\n }\n if(type === '2') {\n return `课堂-${params.video_name}`;\n }\n }\n\n copyToSuccess = () => {\n Toast.info('已复制链接,快去粘贴发给好友吧~');\n this.setState({\n isCopy: true\n });\n }\n\n handleToExecute = () => {\n this.setState({\n isExecute: true\n });\n }\n\n handleToHide = () => {\n this.setState({\n entryMode: 2\n });\n }\n\n render() {\n const { isWechat, isShare, isExecute, entryMode, command, isCopy, data } = this.state;\n return (\n <>\n <HeaderBar\n title='Python基础语法'\n arrow={true}\n home={true}\n />\n <PythonContent\n isWechat={isWechat}\n isShare={isShare}\n isExecute={isExecute}\n entryMode={entryMode}\n isCopy={isCopy}\n command={command}\n data={data}\n labelName={this.formatTitle(data)}\n handleToExecute={this.handleToExecute}\n handleToSend={this.handleToSend}\n copyToSuccess={this.copyToSuccess}\n handleToHide={this.handleToHide}\n />\n </>\n );\n }\n}\n\nfunction SelfAceEditor(props) {\n return (\n <AceEditor \n mode=\"python\"\n theme=\"dracula\"\n readOnly={true}\n showPrintMargin={false}\n value={props.code}\n style={{\n width: '100%',\n height: '100%'\n }}\n />\n )\n}\n\nfunction PythonContent(props) {\n const { \n isWechat, \n isShare, \n isExecute, \n entryMode, \n isCopy, \n command, \n labelName,\n data: { head_img, nickname, code_lines, code, result, ques_name, course_name, course_id, video_name },\n handleToSend, \n copyToSuccess, \n handleToExecute,\n handleToHide\n } = props;\n\n return (\n <div className=\"python-container\">\n\n {/* 微信 */}\n {\n // (entryMode === 0 && isWechat) && \n // <div className=\"python-header\">\n // <p className=\"python-wechat__title\">请点击右上角分享</p>\n // <i className=\"iconfont iconyindao\"></i>\n // </div>\n }\n\n {/* 非微信 */}\n {\n // (entryMode === 0 && !isWechat) && \n // <div className=\"python-header\">\n // <p className=\"python-wechat__title\">\n // {isShare? '快分享给好友吧' : '快发给好友求助吧'}\n // </p>\n // </div>\n }\n\n {\n (entryMode === 1 && isWechat) && \n <div className=\"python-popup\" onClick={handleToHide}>\n <div className=\"python-header\">\n <p className=\"python-wechat__title\">请点击右上角分享</p>\n <i className=\"iconfont iconyindao\"></i>\n </div>\n </div>\n }\n <div className=\"python-content\">\n <div className=\"python-user\">\n <div className=\"python-user__portrait\">\n <img src={head_img} alt=\"\"/>\n </div>\n <h2 className=\"python-user__id\">{nickname}</h2>\n\n {/* 分享 */}\n {\n (entryMode === 0 && isShare) &&\n <p className=\"python-user__desc\">\n 完成了\n <span>【{labelName}】</span>\n </p>\n }\n {\n (entryMode !== 0 && isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>完成了<br />\n {labelName}\n </p>\n }\n\n {/* 求助 */}\n {\n (entryMode === 0 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{labelName}】</span>\n 遇到了困难\n </p>\n }\n {\n (entryMode !== 0 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>的<br />\n <span>{labelName}</span>遇到了困难\n </p>\n }\n </div>\n <h4 className=\"python-code__title\">\n {entryMode !== 0 && isShare && !isWechat? `这是Ta的第${code_lines}行代码` : '运行结果'}\n </h4>\n <div className=\"python-code__content\">\n <SelfAceEditor code={entryMode !== 0 && isShare && !isWechat? code : result} />\n </div>\n <h4 className=\"python-code__title\">{entryMode !== 0 && isShare && !isWechat? '运行结果' : '代码'}</h4>\n <div className=\"python-code__content\">\n {\n entryMode !== 0 && isShare && !isWechat\n ? <SelfAceEditor code={isExecute? result : ''} />\n : <SelfAceEditor code={code} />\n }\n {\n (entryMode !== 0 && isShare && !isWechat && !isExecute) &&\n <button className=\"python-button python-button__execute\" onClick={handleToExecute}>运行看看</button>\n }\n </div>\n </div>\n\n {\n (entryMode === 0 && isWechat) &&\n <button className=\"python-button python-button__study\" onClick={handleToSend}>\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n }\n\n {\n (entryMode === 0 && !isWechat && !isCopy) &&\n <CopyToClipboard\n text={command}\n onCopy={copyToSuccess}\n >\n <button className=\"python-button python-button__study\">\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n </CopyToClipboard>\n }\n\n {\n (entryMode === 0 && !isWechat && isCopy) &&\n <p className=\"python-button__tip\">已复制链接,快去粘贴发给好友吧~</p>\n }\n\n {\n entryMode !== 0 &&\n <Link className=\"python-button python-button__study\" to={`/python?id=${course_id}`}>我也要学Python</Link>\n }\n </div>\n );\n}\n\nexport default PythonClass;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1228:function(e,t,a){},1285:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),l=a(8),r=a(9),d=a(0),m=a.n(d),u=a(16),h=a(722),p=a(1222),y=a.n(p),E=a(28),_=a(3),b=(a(1228),a(1229),a(1230),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(_.c)("id"),"&type=").concat(Object(_.c)("type"),"&ques=").concat(Object(_.c)("ques"),"&origin=python")})},a.initPageStatus=function(){"barcode"===Object(_.c)("origin")&&a.setState({entryMode:0}),"python"===Object(_.c)("origin")&&a.setState({entryMode:1}),"1"===Object(_.c)("type")&&a.setState({isShare:!0}),"2"===Object(_.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(_.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(_.c)("id")||10;_.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare,o=n.entryMode;if(_.b.isWeixin){t.push("/pythonShare?id=".concat(Object(_.c)("id"),"&type=").concat(Object(_.c)("type"),"&ques=").concat(Object(_.c)("ques"),"&origin=python")),a.setState({isGuide:!0,entryMode:1});var s="",i=a.formatTitle(e);0===o||c||(s="\u6211\u5728".concat(e.course_name,"\u7684").concat(i,"\u9047\u5230\u4e86\u56f0\u96be")),0!==o&&c&&(s="\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines)),Object(_.i)({title:s,desc:i,link:encodeURI(location.href),imgUrl:e.course_img})}},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({isGuide:!1})},a.state={isWechat:_.b.isWeixin,isShare:!0,type:"1",entryMode:0,isGuide:!1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.command,s=e.isCopy,i=e.isGuide,l=e.data;return m.a.createElement(m.a.Fragment,null,m.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),m.a.createElement(f,{isWechat:t,isShare:a,isExecute:n,entryMode:c,isGuide:i,isCopy:s,command:o,data:l,labelName:this.formatTitle(l),handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return m.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,l=e.isGuide,r=e.data,d=r.head_img,p=r.nickname,y=r.code_lines,E=r.code,_=r.result,b=r.course_name,f=r.course_id,N=e.handleToSend,v=e.copyToSuccess,T=e.handleToExecute,O=e.handleToHide;return m.a.createElement("div",{className:"python-container"},1===c&&t&&l&&m.a.createElement("div",{className:"python-popup",onClick:O},m.a.createElement("div",{className:"python-header"},m.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),m.a.createElement("i",{className:"iconfont iconyindao"}))),m.a.createElement("div",{className:"python-content"},m.a.createElement("div",{className:"python-user"},m.a.createElement("div",{className:"python-user__portrait"},m.a.createElement("img",{src:d,alt:""})),m.a.createElement("h2",{className:"python-user__id"},p),0===c&&a&&m.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",m.a.createElement("span",null,"\u3010",i,"\u3011")),0!==c&&a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",b,"\u3011"),"\u5b8c\u6210\u4e86",m.a.createElement("br",null),i),0===c&&!a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),0!==c&&!a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",b,"\u3011"),"\u7684",m.a.createElement("br",null),m.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),m.a.createElement("h4",{className:"python-code__title"},0!==c&&a&&!t?"\u8fd9\u662fTa\u7684\u7b2c".concat(y,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),m.a.createElement("div",{className:"python-code__content"},m.a.createElement(S,{code:0!==c&&a&&!t?E:_})),m.a.createElement("h4",{className:"python-code__title"},0!==c&&a&&!t?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),m.a.createElement("div",{className:"python-code__content"},0!==c&&a&&!t?m.a.createElement(S,{code:n?_:""}):m.a.createElement(S,{code:E}),0!==c&&a&&!t&&!n&&m.a.createElement("button",{className:"python-button python-button__execute",onClick:T},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&m.a.createElement("button",{className:"python-button python-button__study",onClick:N},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&m.a.createElement(h.CopyToClipboard,{text:s,onCopy:v},m.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&m.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),0!==c&&m.a.createElement(u.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=b}}]);
//# sourceMappingURL=51.d802c6ea.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/pythonShare/index.js"],"names":["PythonClass","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCommand","setState","command","concat","API","m","getParam","initPageStatus","entryMode","isShare","type","handleFetchInfo","id","http","get","home","params","then","res","_res$data","data","code","handleToSend","history","_this$state","state","browser","isWeixin","push","isGuide","title","labelName","formatTitle","course_name","code_lines","wxShare","desc","link","encodeURI","location","href","imgUrl","course_img","ques_name","video_name","copyToSuccess","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","isCopy","handleToExecute","isExecute","handleToHide","isWechat","_this$state2","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","arrow","PythonContent","Component","SelfAceEditor","react_ace__WEBPACK_IMPORTED_MODULE_10___default","mode","theme","readOnly","showPrintMargin","value","style","width","height","_props$data","head_img","nickname","result","course_id","className","onClick","src","alt","react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_9__","text","onCopy","react_router_dom__WEBPACK_IMPORTED_MODULE_8__","to"],"mappings":"2PAWMA,uCAEJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBRQ,YAAc,WACZP,EAAKQ,SAAS,CACZC,QAAO,GAAAC,OAAKC,IAAIC,EAAT,oBAAAF,OAA6BG,YAAS,MAAtC,UAAAH,OAAoDG,YAAS,QAA7D,UAAAH,OAA6EG,YAAS,QAAtF,qBAvBQb,EA2BnBc,eAAiB,WACW,YAAvBD,YAAS,WACVb,EAAKQ,SAAS,CACZO,UAAW,IAGW,WAAvBF,YAAS,WACVb,EAAKQ,SAAS,CACZO,UAAW,IAGS,MAArBF,YAAS,SACVb,EAAKQ,SAAS,CACZQ,SAAS,IAGW,MAArBH,YAAS,SACVb,EAAKQ,SAAS,CACZQ,SAAS,IAGbhB,EAAKQ,SAAS,CACZS,KAAMJ,YAAS,SAAW,OAjDXb,EAqDnBkB,gBAAkB,WAChB,IAAMC,EAAKN,YAAS,OAAS,GAE7BO,IAAKC,IAAL,GAAAX,OAAYC,IAAIW,KAAhB,oBAAwC,CACtCC,OAAQ,CACNJ,QAEDK,KAAK,SAAAC,GAAO,IAAAC,EACUD,EAAIE,KAAnBC,EADKF,EACLE,KAAMD,EADDD,EACCC,KACF,MAATC,GACD5B,EAAKQ,SAAS,CACZmB,YAhEW3B,EAsEnB6B,aAAe,SAACN,GAAW,IACjBO,EAAY9B,EAAKD,MAAjB+B,QADiBC,EAEM/B,EAAKgC,MAA5BhB,EAFiBe,EAEjBf,QAASD,EAFQgB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,4BAEvEqB,EAAAR,EAAAS,cAAA,OAAKqB,UAAU,wBACbtB,EAAAR,EAAAS,cAACM,EAAD,CAAezC,KAAoB,IAAdb,GAAmBC,IAAY4C,EAAUhC,EAAOsD,KAEvEpB,EAAAR,EAAAS,cAAA,MAAIqB,UAAU,sBAAoC,IAAdrE,GAAmBC,IAAY4C,EAAU,2BAAS,gBACtFE,EAAAR,EAAAS,cAAA,OAAKqB,UAAU,wBAEG,IAAdrE,GAAmBC,IAAY4C,EAC7BE,EAAAR,EAAAS,cAACM,EAAD,CAAezC,KAAM8B,EAAWwB,EAAS,KACzCpB,EAAAR,EAAAS,cAACM,EAAD,CAAezC,KAAMA,IAGR,IAAdb,GAAmBC,IAAY4C,IAAaF,GAC7CI,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,uCAAuCC,QAAS5B,GAAlE,8BAMW,IAAd1C,GAAmB6C,GACpBE,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,qCAAqCC,QAASxD,GAC7Db,EAAS,iCAAU,wCAKP,IAAdD,IAAoB6C,IAAaJ,GAClCM,EAAAR,EAAAS,cAACyB,EAAA,gBAAD,CACEC,KAAMhF,EACNiF,OAAQtC,GAERU,EAAAR,EAAAS,cAAA,UAAQqB,UAAU,sCACfpE,EAAS,iCAAU,yCAMT,IAAdD,IAAoB6C,GAAYJ,GACjCM,EAAAR,EAAAS,cAAA,KAAGqB,UAAU,sBAAb,oGAIc,IAAdrE,GACA+C,EAAAR,EAAAS,cAAC4B,EAAA,EAAD,CAAMP,UAAU,qCAAqCQ,GAAE,cAAAlF,OAAgByE,IAAvE,mCAMOrF","file":"mrstatic/js/51.d802c6ea.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport {CopyToClipboard} from 'react-copy-to-clipboard';\nimport AceEditor from 'react-ace';\nimport { Toast } from \"antd-mobile\"\nimport {HeaderBar} from '@/common';\nimport { browser, http, getParam, wxShare } from '@/utils';\nimport './index.scss';\nimport 'ace-builds/src-noconflict/mode-python';\nimport 'ace-builds/src-noconflict/theme-dracula';\n\nclass PythonClass extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isWechat: browser.isWeixin,\n isShare: true,\n type: '1', // 1:课后习题,2:课堂习题\n entryMode: 0, // 0:扫码页,1:落地页\n isGuide: false, // 是否展示引导\n isExecute: false,\n isCopy: false,\n command: '',\n data: {}\n }\n }\n\n componentDidMount() {\n this.handleFetchInfo();\n this.initPageStatus();\n this.initCommand();\n }\n\n initCommand = () => {\n this.setState({\n command: `${API.m}/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`\n })\n }\n\n initPageStatus = () => {\n if(getParam('origin') === 'barcode') {\n this.setState({\n entryMode: 0\n });\n }\n if(getParam('origin') === 'python') {\n this.setState({\n entryMode: 1\n });\n }\n if(getParam('type') === '1') {\n this.setState({\n isShare: true\n });\n }\n if(getParam('type') === '2') {\n this.setState({\n isShare: false\n });\n }\n this.setState({\n type: getParam('ques') || '1'\n });\n }\n\n handleFetchInfo = () => {\n const id = getParam('id') || 10;\n // http.get(`${API.home}/web/python/share/help/${id}`).then(res => {\n http.get(`${API.home}/m/it/share/show`, {\n params: {\n id\n }\n }).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n data,\n });\n }\n })\n }\n\n handleToSend = (params) => {\n const { history } = this.props;\n const { isShare, entryMode } = this.state;\n if(browser.isWeixin) {\n history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`);\n this.setState({\n isGuide: true,\n entryMode: 1\n });\n let title = '';\n let labelName = this.formatTitle(params);\n if(entryMode !== 0 && !isShare) {\n title = `我在${params.course_name}的${labelName}遇到了困难`;\n }\n if(entryMode !== 0 && isShare) {\n title = `我已在【${params.course_name}】上运行了行代码了${params.code_lines}`\n }\n wxShare({\n title,\n desc: labelName,\n link: encodeURI(location.href),\n imgUrl: params.course_img,\n });\n }\n }\n\n formatTitle = (params) => {\n const { type } = this.state;\n if(type === '1') {\n return `练习-${params.ques_name}`;\n }\n if(type === '2') {\n return `课堂-${params.video_name}`;\n }\n }\n\n copyToSuccess = () => {\n Toast.info('已复制链接,快去粘贴发给好友吧~');\n this.setState({\n isCopy: true\n });\n }\n\n handleToExecute = () => {\n this.setState({\n isExecute: true\n });\n }\n\n handleToHide = () => {\n this.setState({\n isGuide: false\n });\n }\n\n render() {\n const { isWechat, isShare, isExecute, entryMode, command, isCopy, isGuide, data } = this.state;\n return (\n <>\n <HeaderBar\n title='Python基础语法'\n arrow={true}\n home={true}\n />\n <PythonContent\n isWechat={isWechat}\n isShare={isShare}\n isExecute={isExecute}\n entryMode={entryMode}\n isGuide={isGuide}\n isCopy={isCopy}\n command={command}\n data={data}\n labelName={this.formatTitle(data)}\n handleToExecute={this.handleToExecute}\n handleToSend={this.handleToSend}\n copyToSuccess={this.copyToSuccess}\n handleToHide={this.handleToHide}\n />\n </>\n );\n }\n}\n\nfunction SelfAceEditor(props) {\n return (\n <AceEditor \n mode=\"python\"\n theme=\"dracula\"\n readOnly={true}\n showPrintMargin={false}\n value={props.code}\n style={{\n width: '100%',\n height: '100%'\n }}\n />\n )\n}\n\nfunction PythonContent(props) {\n const { \n isWechat, \n isShare, \n isExecute, \n entryMode, \n isCopy, \n command, \n labelName,\n isGuide,\n data: { head_img, nickname, code_lines, code, result, course_name, course_id },\n handleToSend, \n copyToSuccess, \n handleToExecute,\n handleToHide\n } = props;\n\n return (\n <div className=\"python-container\">\n\n {/* 微信 */}\n {\n // (entryMode === 0 && isWechat) && \n // <div className=\"python-header\">\n // <p className=\"python-wechat__title\">请点击右上角分享</p>\n // <i className=\"iconfont iconyindao\"></i>\n // </div>\n }\n\n {/* 非微信 */}\n {\n // (entryMode === 0 && !isWechat) && \n // <div className=\"python-header\">\n // <p className=\"python-wechat__title\">\n // {isShare? '快分享给好友吧' : '快发给好友求助吧'}\n // </p>\n // </div>\n }\n\n {\n (entryMode === 1 && isWechat && isGuide) && \n <div className=\"python-popup\" onClick={handleToHide}>\n <div className=\"python-header\">\n <p className=\"python-wechat__title\">请点击右上角分享</p>\n <i className=\"iconfont iconyindao\"></i>\n </div>\n </div>\n }\n <div className=\"python-content\">\n <div className=\"python-user\">\n <div className=\"python-user__portrait\">\n <img src={head_img} alt=\"\"/>\n </div>\n <h2 className=\"python-user__id\">{nickname}</h2>\n\n {/* 分享 */}\n {\n (entryMode === 0 && isShare) &&\n <p className=\"python-user__desc\">\n 完成了\n <span>【{labelName}】</span>\n </p>\n }\n {\n (entryMode !== 0 && isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>完成了<br />\n {labelName}\n </p>\n }\n\n {/* 求助 */}\n {\n (entryMode === 0 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{labelName}】</span>\n 遇到了困难\n </p>\n }\n {\n (entryMode !== 0 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>的<br />\n <span>{labelName}</span>遇到了困难\n </p>\n }\n </div>\n <h4 className=\"python-code__title\">\n {entryMode !== 0 && isShare && !isWechat? `这是Ta的第${code_lines}行代码` : '运行结果'}\n </h4>\n <div className=\"python-code__content\">\n <SelfAceEditor code={entryMode !== 0 && isShare && !isWechat? code : result} />\n </div>\n <h4 className=\"python-code__title\">{entryMode !== 0 && isShare && !isWechat? '运行结果' : '代码'}</h4>\n <div className=\"python-code__content\">\n {\n entryMode !== 0 && isShare && !isWechat\n ? <SelfAceEditor code={isExecute? result : ''} />\n : <SelfAceEditor code={code} />\n }\n {\n (entryMode !== 0 && isShare && !isWechat && !isExecute) &&\n <button className=\"python-button python-button__execute\" onClick={handleToExecute}>运行看看</button>\n }\n </div>\n </div>\n\n {\n (entryMode === 0 && isWechat) &&\n <button className=\"python-button python-button__study\" onClick={handleToSend}>\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n }\n\n {\n (entryMode === 0 && !isWechat && !isCopy) &&\n <CopyToClipboard\n text={command}\n onCopy={copyToSuccess}\n >\n <button className=\"python-button python-button__study\">\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n </CopyToClipboard>\n }\n\n {\n (entryMode === 0 && !isWechat && isCopy) &&\n <p className=\"python-button__tip\">已复制链接,快去粘贴发给好友吧~</p>\n }\n\n {\n entryMode !== 0 &&\n <Link className=\"python-button python-button__study\" to={`/python?id=${course_id}`}>我也要学Python</Link>\n }\n </div>\n );\n}\n\nexport default PythonClass;"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],d=r[1],f=r[2],s=0,l=[];s<i.length;s++)a=i[s],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={35:0},o={35:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"946beb19",2:"1133c967",3:"ac8fad1f",4:"08739942",5:"2a913483",6:"127d35ae",7:"400393b7",8:"fed92c83",9:"1bd3da48",10:"17af9370",11:"08739942",12:"31d6cfe0",13:"83a999aa",14:"31d6cfe0",15:"68a25070",16:"ccebc534",17:"6d7d1b77",18:"6e885738",19:"887eb690",20:"affb05d7",21:"32a9cccc",22:"0800b4f0",23:"39fb77c8",24:"0ce3fd3d",25:"2e5f43c4",26:"e8363b32",27:"633b10a8",29:"841d0cfb",30:"dc74ab02",31:"9e810405",32:"ce85cb83",33:"7558403e",34:"11408886",36:"efa1dd44",37:"cde549fc",38:"62b8863b",39:"4fbf61d8",40:"ffd8be6c",41:"b3755c1b",43:"31d6cfe0",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"bacf914e"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=(u=c[d]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===n||f===o))return r()}var s=document.getElementsByTagName("style");for(d=0;d<s.length;d++){var u;if((f=(u=s[d]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"6fda6719",2:"0fac390d",3:"8c1cc18f",4:"e2fb033f",5:"cf95b372",6:"8163d312",7:"141c61f5",8:"f5ca4969",9:"0076a47c",10:"5cac77c0",11:"28851ee3",12:"dae94c7e",13:"6def7194",14:"78f26106",15:"e6c3479b",16:"0a7db7f8",17:"1d558834",18:"c519a5df",19:"58cf523e",20:"fe6680a0",21:"3af378d7",22:"f19da7b8",23:"60ea5af3",24:"2b77f2be",25:"b854048e",26:"81d0dda3",27:"e26f1759",29:"d820f269",30:"287030d0",31:"c8f59d6b",32:"b2af75ba",33:"89577d91",34:"4efff82d",36:"32e22912",37:"9564bc99",38:"b9405c52",39:"d28438a2",40:"4e69a206",41:"cdac3041",43:"f063ef63",44:"346f8d8b",45:"83264ccd",46:"e2b5c822",47:"39c28519",48:"eb589f62",49:"40cd7435",50:"81199908",51:"3298534c"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],f=d.push.bind(d);d.push=r,d=d.slice();for(var s=0;s<d.length;s++)r(d[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.b1026ad7.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],d=r[1],f=r[2],s=0,l=[];s<i.length;s++)a=i[s],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={35:0},o={35:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"946beb19",2:"1133c967",3:"ac8fad1f",4:"08739942",5:"2a913483",6:"127d35ae",7:"400393b7",8:"fed92c83",9:"1bd3da48",10:"17af9370",11:"08739942",12:"31d6cfe0",13:"83a999aa",14:"31d6cfe0",15:"68a25070",16:"ccebc534",17:"6d7d1b77",18:"6e885738",19:"887eb690",20:"affb05d7",21:"32a9cccc",22:"0800b4f0",23:"39fb77c8",24:"0ce3fd3d",25:"2e5f43c4",26:"e8363b32",27:"633b10a8",29:"841d0cfb",30:"dc74ab02",31:"9e810405",32:"ce85cb83",33:"7558403e",34:"11408886",36:"efa1dd44",37:"cde549fc",38:"62b8863b",39:"4fbf61d8",40:"ffd8be6c",41:"b3755c1b",43:"31d6cfe0",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"bacf914e"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=(u=c[d]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===n||f===o))return r()}var s=document.getElementsByTagName("style");for(d=0;d<s.length;d++){var u;if((f=(u=s[d]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"6fda6719",2:"0fac390d",3:"8c1cc18f",4:"e2fb033f",5:"cf95b372",6:"8163d312",7:"141c61f5",8:"f5ca4969",9:"0076a47c",10:"5cac77c0",11:"28851ee3",12:"dae94c7e",13:"6def7194",14:"78f26106",15:"e6c3479b",16:"0a7db7f8",17:"1d558834",18:"c519a5df",19:"58cf523e",20:"fe6680a0",21:"3af378d7",22:"f19da7b8",23:"60ea5af3",24:"2b77f2be",25:"b854048e",26:"81d0dda3",27:"e26f1759",29:"d820f269",30:"287030d0",31:"c8f59d6b",32:"b2af75ba",33:"89577d91",34:"4efff82d",36:"32e22912",37:"9564bc99",38:"b9405c52",39:"d28438a2",40:"4e69a206",41:"cdac3041",43:"f063ef63",44:"346f8d8b",45:"83264ccd",46:"e2b5c822",47:"39c28519",48:"eb589f62",49:"40cd7435",50:"81199908",51:"d802c6ea"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],f=d.push.bind(d);d.push=r,d=d.slice();for(var s=0;s<d.length;s++)r(d[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.bd7f1006.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF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E,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAtH,EAAA4G,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA1H,EAAA8H,EAAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.b1026ad7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t35: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t35: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"a1f55c4b\",\"1\":\"6fda6719\",\"2\":\"0fac390d\",\"3\":\"8c1cc18f\",\"4\":\"e2fb033f\",\"5\":\"cf95b372\",\"6\":\"8163d312\",\"7\":\"141c61f5\",\"8\":\"f5ca4969\",\"9\":\"0076a47c\",\"10\":\"5cac77c0\",\"11\":\"28851ee3\",\"12\":\"dae94c7e\",\"13\":\"6def7194\",\"14\":\"78f26106\",\"15\":\"e6c3479b\",\"16\":\"0a7db7f8\",\"17\":\"1d558834\",\"18\":\"c519a5df\",\"19\":\"58cf523e\",\"20\":\"fe6680a0\",\"21\":\"3af378d7\",\"22\":\"f19da7b8\",\"23\":\"60ea5af3\",\"24\":\"2b77f2be\",\"25\":\"b854048e\",\"26\":\"81d0dda3\",\"27\":\"e26f1759\",\"29\":\"d820f269\",\"30\":\"287030d0\",\"31\":\"c8f59d6b\",\"32\":\"b2af75ba\",\"33\":\"89577d91\",\"34\":\"4efff82d\",\"36\":\"32e22912\",\"37\":\"9564bc99\",\"38\":\"b9405c52\",\"39\":\"d28438a2\",\"40\":\"4e69a206\",\"41\":\"cdac3041\",\"43\":\"f063ef63\",\"44\":\"346f8d8b\",\"45\":\"83264ccd\",\"46\":\"e2b5c822\",\"47\":\"39c28519\",\"48\":\"eb589f62\",\"49\":\"40cd7435\",\"50\":\"81199908\",\"51\":\"3298534c\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"946beb19\",\"2\":\"1133c967\",\"3\":\"ac8fad1f\",\"4\":\"08739942\",\"5\":\"2a913483\",\"6\":\"127d35ae\",\"7\":\"400393b7\",\"8\":\"fed92c83\",\"9\":\"1bd3da48\",\"10\":\"17af9370\",\"11\":\"08739942\",\"12\":\"31d6cfe0\",\"13\":\"83a999aa\",\"14\":\"31d6cfe0\",\"15\":\"68a25070\",\"16\":\"ccebc534\",\"17\":\"6d7d1b77\",\"18\":\"6e885738\",\"19\":\"887eb690\",\"20\":\"affb05d7\",\"21\":\"32a9cccc\",\"22\":\"0800b4f0\",\"23\":\"39fb77c8\",\"24\":\"0ce3fd3d\",\"25\":\"2e5f43c4\",\"26\":\"e8363b32\",\"27\":\"633b10a8\",\"29\":\"841d0cfb\",\"30\":\"dc74ab02\",\"31\":\"9e810405\",\"32\":\"ce85cb83\",\"33\":\"7558403e\",\"34\":\"11408886\",\"36\":\"efa1dd44\",\"37\":\"cde549fc\",\"38\":\"62b8863b\",\"39\":\"4fbf61d8\",\"40\":\"ffd8be6c\",\"41\":\"b3755c1b\",\"43\":\"31d6cfe0\",\"44\":\"976b2058\",\"45\":\"51412fcd\",\"46\":\"31d6cfe0\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"56b04545\",\"50\":\"ce17075b\",\"51\":\"bacf914e\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,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,WAExDtI,OAAAgI,eAAA3G,EAAA,cAAiDiH,OAAA,KAQjDtH,EAAAuH,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAtH,EAAAsH,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAA1I,OAAA2I,OAAA,MAGA,GAFA3H,EAAAmH,EAAAO,GACA1I,OAAAgI,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAtH,EAAA4G,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA1H,EAAA8H,EAAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.bd7f1006.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t35: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t35: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"a1f55c4b\",\"1\":\"6fda6719\",\"2\":\"0fac390d\",\"3\":\"8c1cc18f\",\"4\":\"e2fb033f\",\"5\":\"cf95b372\",\"6\":\"8163d312\",\"7\":\"141c61f5\",\"8\":\"f5ca4969\",\"9\":\"0076a47c\",\"10\":\"5cac77c0\",\"11\":\"28851ee3\",\"12\":\"dae94c7e\",\"13\":\"6def7194\",\"14\":\"78f26106\",\"15\":\"e6c3479b\",\"16\":\"0a7db7f8\",\"17\":\"1d558834\",\"18\":\"c519a5df\",\"19\":\"58cf523e\",\"20\":\"fe6680a0\",\"21\":\"3af378d7\",\"22\":\"f19da7b8\",\"23\":\"60ea5af3\",\"24\":\"2b77f2be\",\"25\":\"b854048e\",\"26\":\"81d0dda3\",\"27\":\"e26f1759\",\"29\":\"d820f269\",\"30\":\"287030d0\",\"31\":\"c8f59d6b\",\"32\":\"b2af75ba\",\"33\":\"89577d91\",\"34\":\"4efff82d\",\"36\":\"32e22912\",\"37\":\"9564bc99\",\"38\":\"b9405c52\",\"39\":\"d28438a2\",\"40\":\"4e69a206\",\"41\":\"cdac3041\",\"43\":\"f063ef63\",\"44\":\"346f8d8b\",\"45\":\"83264ccd\",\"46\":\"e2b5c822\",\"47\":\"39c28519\",\"48\":\"eb589f62\",\"49\":\"40cd7435\",\"50\":\"81199908\",\"51\":\"d802c6ea\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"946beb19\",\"2\":\"1133c967\",\"3\":\"ac8fad1f\",\"4\":\"08739942\",\"5\":\"2a913483\",\"6\":\"127d35ae\",\"7\":\"400393b7\",\"8\":\"fed92c83\",\"9\":\"1bd3da48\",\"10\":\"17af9370\",\"11\":\"08739942\",\"12\":\"31d6cfe0\",\"13\":\"83a999aa\",\"14\":\"31d6cfe0\",\"15\":\"68a25070\",\"16\":\"ccebc534\",\"17\":\"6d7d1b77\",\"18\":\"6e885738\",\"19\":\"887eb690\",\"20\":\"affb05d7\",\"21\":\"32a9cccc\",\"22\":\"0800b4f0\",\"23\":\"39fb77c8\",\"24\":\"0ce3fd3d\",\"25\":\"2e5f43c4\",\"26\":\"e8363b32\",\"27\":\"633b10a8\",\"29\":\"841d0cfb\",\"30\":\"dc74ab02\",\"31\":\"9e810405\",\"32\":\"ce85cb83\",\"33\":\"7558403e\",\"34\":\"11408886\",\"36\":\"efa1dd44\",\"37\":\"cde549fc\",\"38\":\"62b8863b\",\"39\":\"4fbf61d8\",\"40\":\"ffd8be6c\",\"41\":\"b3755c1b\",\"43\":\"31d6cfe0\",\"44\":\"976b2058\",\"45\":\"51412fcd\",\"46\":\"31d6cfe0\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"56b04545\",\"50\":\"ce17075b\",\"51\":\"bacf914e\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
......@@ -87,8 +87,7 @@ class PythonClass extends Component {
if(browser.isWeixin) {
history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`);
this.setState({
isGuide: true,
entryMode: 1
isGuide: true
});
let title = '';
let labelName = this.formatTitle(params);
......@@ -197,31 +196,10 @@ function PythonContent(props) {
handleToExecute,
handleToHide
} = props;
return (
<div className="python-container">
{/* 微信 */}
{
// (entryMode === 0 && isWechat) &&
// <div className="python-header">
// <p className="python-wechat__title">请点击右上角分享</p>
// <i className="iconfont iconyindao"></i>
// </div>
}
{/* 非微信 */}
{
// (entryMode === 0 && !isWechat) &&
// <div className="python-header">
// <p className="python-wechat__title">
// {isShare? '快分享给好友吧' : '快发给好友求助吧'}
// </p>
// </div>
}
{
(entryMode === 1 && isWechat && isGuide) &&
isGuide &&
<div className="python-popup" onClick={handleToHide}>
<div className="python-header">
<p className="python-wechat__title">请点击右上角分享</p>
......@@ -231,9 +209,7 @@ function PythonContent(props) {
}
<div className="python-content">
<div className="python-user">
<div className="python-user__portrait">
<img src={head_img} alt=""/>
</div>
<i className="python-user__portrait" style={{backgroundImage: `url(${head_img})`}}></i>
<h2 className="python-user__id">{nickname}</h2>
{/* 分享 */}
......@@ -245,7 +221,7 @@ function PythonContent(props) {
</p>
}
{
(entryMode !== 0 && isShare) &&
(entryMode === 1 && isShare) &&
<p className="python-user__desc">
<span>{course_name}</span>完成了<br />
......@@ -263,7 +239,7 @@ function PythonContent(props) {
</p>
}
{
(entryMode !== 0 && !isShare) &&
(entryMode === 1 && !isShare) &&
<p className="python-user__desc">
<span>{course_name}</span>的<br />
......@@ -272,20 +248,22 @@ function PythonContent(props) {
}
</div>
<h4 className="python-code__title">
{entryMode !== 0 && isShare && !isWechat? `这是Ta的第${code_lines}行代码` : '运行结果'}
{entryMode === 1 && isShare? `这是Ta的第${code_lines}行代码` : '运行结果'}
</h4>
<div className="python-code__content">
<SelfAceEditor code={entryMode !== 0 && isShare && !isWechat? code : result} />
<SelfAceEditor code={entryMode === 1 && isShare? code : result} />
</div>
<h4 className="python-code__title">{entryMode !== 0 && isShare && !isWechat? '运行结果' : '代码'}</h4>
<h4 className="python-code__title">
{entryMode === 1 && isShare? '运行结果' : '代码'}
</h4>
<div className="python-code__content">
{
entryMode !== 0 && isShare && !isWechat
entryMode === 1 && isShare
? <SelfAceEditor code={isExecute? result : ''} />
: <SelfAceEditor code={code} />
}
{
(entryMode !== 0 && isShare && !isWechat && !isExecute) &&
(entryMode === 1 && isShare && !isExecute) &&
<button className="python-button python-button__execute" onClick={handleToExecute}>运行看看</button>
}
</div>
......@@ -316,7 +294,7 @@ function PythonContent(props) {
}
{
entryMode !== 0 &&
entryMode === 1 &&
<Link className="python-button python-button__study" to={`/python?id=${course_id}`}>我也要学Python</Link>
}
</div>
......
......@@ -56,6 +56,7 @@
border-radius: 50%;
box-sizing: border-box;
background-color: #fff;
background-size: cover;
img {
display: block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment