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__Help__Index.7f84167f.asy...

1 line
28 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[118,6,9,12,15],{"1ZF9":function(e,t,n){e.exports=n.p+"static/Authorize.cc9c212f.png"},"2kAv":function(e,t,n){e.exports={wrap:"wrap___CCio_",link:"link___PWIh8"}},"9Bee":function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=(n("vg9a"),n("tJVT")),i=n("DlQD"),c=n.n(i),l=n("rUJ1");function u(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=Object(o["a"])(t,1),a=n[0];return a.length>=r.length?e.slice(r.length):e})).join("\n")}var s=[],f=["<ul>"],h=new c.a.Renderer,d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){s.length=0,f=["<ul>"]}function v(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var a=e[t];r.push("<li><a href='#"+a.anchor+"'>"+a.text+"</a>"),t++;var o=[];return t=v(e,t,a.level,o),o.length>0&&(r.push("<ul>"),o.forEach((function(e){r.push(e)})),r.push("</ul>")),r.push("</li>"),t=v(e,t,n,r),t}function m(){return v(s,0,0,f),f.push("</ul>"),f.join("")}var g={heading:function(e){var t=d.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=u(n,t[3]||""),a=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(a)>=0){var o=w(),i=r;r=o,E[o]={type:"block",expression:i}}return{type:"code",raw:n,lang:a,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,b=0,w=function(){return"__special_katext_id_".concat(b++,"__")},E={};function _(){return E}function x(){b=0,E={}}function k(e){return e=e.replace(y,(function(e,t){var n=w();return E[n]={type:"inline",expression:t},n})),e}var O=h.listitem;h.listitem=function(e){return O(k(e))};var j=h.paragraph;h.paragraph=function(e){return j(k(e))};var L=h.tablecell;h.tablecell=function(e,t){return L(k(e),t)},h.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:Object(l["escape"])(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:Object(l["escape"])(e,!0))+"</code></pre>"},h.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:r,level:t,text:e}),"<h"+t+' id="'+r+'">'+e+"</h"+t+">"},c.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),c.a.use({tokenizer:g,renderer:h});var N=c.a,S=(n("SJMd"),n("m3rI")),I=n("Oy/b"),T=n("Xjjk"),P=n.n(T),q=/<pre[^>]*>/g;function G(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}t["a"]=function(e){var t=e.value,n=void 0===t?"":t,o=e.className,i=e.style,c=void 0===i?{}:i,l=String(n),u=Object(r["useMemo"])((function(){try{var e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,t=/\"\/api\/attachments\/|\"\/attachments\/download\//g,n=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;l=l.replace(e,"("+S["a"].API_SERVER+"/api/attachments/").replace(t,'"'+S["a"].API_SERVER+"/api/attachments/").replace(n,'"'+S["a"].API_SERVER+"/files/uploads/")}catch(o){}l=P()(l);var r=N(l),a=_();return l.match(/\[TOC\]/)&&(r=r.replace("<p>[TOC]</p>",m()),p()),r=r.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var n=a[t],r=n.type,o=n.expression;return Object(I["renderToString"])(G(o)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),r=r.replace(/\u2581/g,"\u2581\u2581\u2581"),x(),r}),[l]),s=Object(r["useRef"])();function f(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}return Object(r["useEffect"])((function(){if(s.current&&u&&u.match(q)&&window.PR.prettyPrint(),s.current)return s.current.addEventListener("click",f),function(){s.current.removeEventListener("click",f),x(),p()}}),[u,s.current,f]),a.a.createElement("div",{ref:s,style:c,className:"".concat(o||""," markdown-body"),dangerouslySetInnerHTML:{__html:u}})}},NLgs:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return v}));n("2qtc");var r=n("kLXV"),a=n("q1tI"),o=n.n(a),i=n("9kvl"),c=n("xKgJ"),l=n("1vsH"),u=n("m3rI"),s=function(e){return!(!f(e)||!h())},f=function(e){return!!Object(c["o"])()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},h=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.profile_completed)||(r["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:o.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(){i["c"].push("/account/profile/edit")}}),!1)},d=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.professional_certification)||(r["a"].confirm({title:"\u63d0\u793a",centered:!0,content:o.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(l["C"])("/account/certification")}}),!1)},p=function(){return!!Object(c["a"])()||(r["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:o.a.createElement("div",{className:"tc"},o.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"),o.a.createElement("img",{src:Object(c["s"])()?n("WdTA"):"".concat(u["a"].IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),o.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a",Object(c["s"])()?"693542422":"612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(l["C"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},v=function(e){return!!e||(r["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:o.a.createElement("div",null,o.a.createElement("p",null,"\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"),o.a.createElement("div",{style:{marginLeft:"110px"}},o.a.createElement("img",{src:n("1ZF9"),width:200}),o.a.createElement("div",{style:{marginLeft:"35px"}},"\u7fa4\u53f7\uff1a","714336072"))),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(l["C"])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},TNY5:function(e,t,n){"use strict";n.r(t);n("cWXX");var r=n("/ezw"),a=(n("14J3"),n("BMrR")),o=(n("jCWc"),n("kPKH")),i=(n("lUTK"),n("BvKs")),c=n("9og8"),l=(n("y8nQ"),n("Vl3Y")),u=n("tJVT"),s=n("PpiC"),f=n("q1tI"),h=n.n(f),d=n("55Ip"),p=n("9kvl"),v=n("ErOA"),m=n("9Bee"),g=n("m3rI"),y=n("zvqp"),b=n.n(y),w=(n("+L6B"),n("2/Rp")),E=(n("7Kak"),n("9yH6")),_=n("k1fw"),x=(n("5NDa"),n("5rEg")),k=n("NLgs"),O=n("2kAv"),j=n.n(O),L=n("1vsH");function N(){N=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(S){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new O(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var f={};function h(){}function d(){}function p(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(r,o,i,c){var l=s(e[r],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,i,c)}),(function(e){a("throw",e,i,c)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return a("throw",e,i,c)}))}c(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return L()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=_(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(y),l(y,c,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var S=x["a"].TextArea,I=function(e){var t=e.user,n=(e.globalSetting,e.loading,e.dispatch),r=(Object(s["a"])(e,["user","globalSetting","loading","dispatch"]),l["a"].useForm()),a=Object(u["a"])(r,1),o=a[0];Object(f["useEffect"])((function(){var e;Object(L["A"])(null===(e=t.userInfo)||void 0===e?void 0:e.login)||Object(k["e"])(n)}),[t.userInfo.login]);var i=function(){var e=Object(c["a"])(N().mark((function e(n){var r,a;return N().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["a"])("/api/helps/feedback.json",{method:"post",body:Object(_["a"])({},n)});case 2:r=e.sent,0===(null===r||void 0===r?void 0:r.status)&&p["c"].push("/messages/".concat(null===(a=t.userInfo)||void 0===a?void 0:a.login,"/message_detail?target_ids=1"));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return h.a.createElement("section",{className:"".concat(j.a.wrap," bg-white pl30 pr30 pt30")},h.a.createElement("div",{className:"c-grey-999 line26"},"\u60f3\u5bf9\u6211\u4eec\u7684\u5e73\u53f0\u63d0\u4f9b\u529f\u80fd\u5efa\u8bae\uff1f",h.a.createElement("br",null),"\u53d1\u73b0\u7f51\u9875\u4e2d\u7684\u95ee\u9898\u6216bug\u60f3\u544a\u8bc9\u6211\u4eec\uff1f",h.a.createElement("br",null),"\u671f\u671b\u4e0e\u6211\u4eec\u5c55\u5f00\u5408\u4f5c\uff1f",h.a.createElement("br",null),"\u5728\u8fd9\u91cc\u628a\u4f60\u60f3\u8bf4\u7684\u4e00\u5207\u544a\u8bc9\u6211\u4eec\u5427\uff1f"),h.a.createElement("div",{className:"c-red-ee4 mt20 mb20"},"* ",h.a.createElement(d["Link"],{to:"/help/help_center",className:"".concat(j.a.link," c-red-ee4")},"\u770b\u770b\u5e2e\u52a9\u4e2d\u5fc3\u662f\u5426\u6709\u4f60\u60f3\u8981\u7684\u7b54\u6848")),h.a.createElement(l["a"],{layout:"vertical",form:o,onFinish:i,initialValues:{question_kind:"\u767b\u5f55\u6ce8\u518c"}},h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u5206\u7c7b\uff1a",name:"question_kind",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(E["a"].Group,null,h.a.createElement(E["a"],{value:"\u767b\u5f55\u6ce8\u518c"},"\u767b\u5f55\u6ce8\u518c"),h.a.createElement(E["a"],{value:"\u4fe1\u606f\u8ba4\u8bc1"},"\u4fe1\u606f\u8ba4\u8bc1"),h.a.createElement(E["a"],{value:"\u5b9e\u8bad\u7f16\u7a0b"},"\u5b9e\u8bad\u7f16\u7a0b"),h.a.createElement(E["a"],{value:"\u5b9e\u8bad\u8bfe\u7a0b"},"\u5b9e\u8bad\u8bfe\u7a0b"),h.a.createElement(E["a"],{value:"\u8bfe\u5802"},"\u8bfe\u5802"),h.a.createElement(E["a"],{value:"\u5176\u5b83"},"\u5176\u5b83"))),h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u9875\u9762\u7f51\u5740\uff1a",name:"url",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(x["a"],{placeholder:"\u53cd\u9988\u5e73\u53f0\u95ee\u9898\uff0c\u8bf7\u540c\u65f6\u586b\u5199\u5bf9\u5e94\u7684\u95ee\u9898\u9875\u9762\u94fe\u63a5\uff0c\u4ee5\u4fbf\u5e73\u53f0\u80fd\u591f\u53ca\u65f6\u8ddf\u8e2a\u89e3\u51b3\uff0c\u8c22\u8c22"})),h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u63cf\u8ff0\uff1a",name:"description",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(S,{rows:4,placeholder:"\u53cd\u9988\u5e73\u53f0\u95ee\u9898\uff0c\u8bf7\u540c\u65f6\u586b\u5199\u5bf9\u5e94\u7684\u95ee\u9898\u9875\u9762\u94fe\u63a5\uff0c\u4ee5\u4fbf\u5e73\u53f0\u80fd\u591f\u53ca\u65f6\u8ddf\u8e2a\u89e3\u51b3\uff0c\u8c22\u8c22"})),h.a.createElement(l["a"].Item,null,h.a.createElement(w["a"],{type:"primary",htmlType:"submit"},"\u63d0\u4ea4"))))},T=Object(p["a"])((function(e){var t=e.user,n=e.loading,r=e.globalSetting;return{user:t,globalSetting:r,loading:n.models.index}}))(I);function P(){P=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(N){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new O(a||[]);return r(i,"_invoke",{value:E(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=u;var f={};function h(){}function d(){}function p(){}var v={};l(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==t&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(r,o,i,c){var l=s(e[r],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,i,c)}),(function(e){a("throw",e,i,c)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return a("throw",e,i,c)}))}c(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return L()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=_(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=s(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(y),l(y,c,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var q=function(e){e.user;var t,n,p,y,w=e.globalSetting,E=(e.loading,e.dispatch,Object(s["a"])(e,["user","globalSetting","loading","dispatch"])),_=Object(f["useState"])({content:"",message:"",status:0,contacts:[],address:"",data:[]}),x=Object(u["a"])(_,2),k=x[0],O=x[1],j=Object(f["useState"])(!0),L=Object(u["a"])(j,2),N=L[0],S=L[1],I=l["a"].useForm(),q=Object(u["a"])(I,1),G=(q[0],[{name:"\u5173\u4e8e\u6211\u4eec",key:"about_us",id:"about"},{name:"\u52a0\u5165\u6211\u4eec",key:"join_us",id:"join_us"},{name:"\u8054\u7cfb\u6211\u4eec",key:"contact_us",id:"contact"},{name:"\u5408\u4f5c\u4f19\u4f34",key:"cooperatives",id:"cooperatives"},{name:"\u670d\u52a1\u534f\u8bae",key:"agreement",id:"agreement"},{name:"\u5e2e\u52a9\u4e2d\u5fc3",key:"help_center",id:"help_center"},{name:"\u610f\u89c1\u53cd\u9988",key:"feedback",id:"feedback"}].filter((function(e){var t;return!(null===w||void 0===w||null===(t=w.setting)||void 0===t?void 0:t.is_local)||"\u5173\u4e8e\u6211\u4eec"!==e.name}))),A=E.match.params,F=function(){var e=Object(c["a"])(P().mark((function e(){var t,n,r,a;return P().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.t0=O,e.next=3,Object(v["a"])("/api/helps/".concat(null===(t=G.filter((function(e){return e.key===A["id"]})))||void 0===t||null===(n=t[0])||void 0===n?void 0:n["id"],".json"),{method:"get"});case 3:e.t1=e.sent,(0,e.t0)(e.t1),S(!1),document.title=null===(r=G.filter((function(e){return e.key===A.id})))||void 0===r||null===(a=r[0])||void 0===a?void 0:a["name"];case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(f["useEffect"])((function(){S(!0),F()}),[A.id]),h.a.createElement("section",null,h.a.createElement("aside",{className:"edu-container mt30"},h.a.createElement(a["a"],{gutter:[20,20]},h.a.createElement(o["a"],null,h.a.createElement(i["a"],{className:b.a.menu,style:{width:174},defaultSelectedKeys:[null===(t=G.filter((function(e){return e.key===A.id})))||void 0===t?void 0:t[0]["key"]],mode:"inline"},G.map((function(e,t){return h.a.createElement(i["a"].Item,{key:e.key},h.a.createElement(d["Link"],{to:"/help/".concat(e.key)},e.name))})))),h.a.createElement(o["a"],{flex:"1"},h.a.createElement("h1",{className:b.a.title},null===(n=G.filter((function(e){return e.key===A.id})))||void 0===n?void 0:n[0]["name"]),h.a.createElement("div",{className:"minH500"},"feedback"===A.id?h.a.createElement(T,null):h.a.createElement(r["a"],{loading:N},h.a.createElement("div",{className:[b.a.content,"bg-white pl30 pr30 pt30"].join(" ")},h.a.createElement(m["a"],{value:k.content||""}),null===(p=k.contacts)||void 0===p?void 0:p.map((function(e,t){return h.a.createElement("ul",{key:t,className:b.a.contcats},h.a.createElement("h1",null,e.type),h.a.createElement("li",null,e.name),h.a.createElement("li",null,h.a.createElement("span",null,"QQ:"),e.qq),h.a.createElement("li",null,h.a.createElement("span",null,"Email:"),e.mail))})),k.address&&h.a.createElement("ul",{className:b.a.contcats},h.a.createElement("h1",null,"\u516c\u53f8\u5730\u5740"),h.a.createElement("li",null,k.address)),null===(y=k.data)||void 0===y?void 0:y.map((function(e,t){var n;return h.a.createElement("div",{className:b.a.cooperatives},h.a.createElement("h1",null,e.name),h.a.createElement(a["a"],{gutter:[10,20]},null===(n=e.values)||void 0===n?void 0:n.map((function(e,t){return h.a.createElement(o["a"],{span:6},h.a.createElement("div",{className:b.a.imgWrp},h.a.createElement("img",{src:g["a"].IMG_SERVER+e.img})))}))))})))))))))};t["default"]=Object(p["a"])((function(e){var t=e.user,n=e.loading,r=e.globalSetting;return{user:t,globalSetting:r,loading:n.models.index}}))(q)},WdTA:function(e,t,n){e.exports=n.p+"static/studnetqun.a5754d96.png"},zvqp:function(e,t,n){e.exports={flex_box_center:"flex_box_center___3si-j",flex_space_between:"flex_space_between___1JkB6",flex_box_vertical_center:"flex_box_vertical_center___298wI",flex_box_center_end:"flex_box_center_end___1kjbU",flex_box_column:"flex_box_column___2_dkP",content:"content___YUEGP",title:"title___1gIWf",menu:"menu___tZhO5",contcats:"contcats___3chvG",cooperatives:"cooperatives___U0UdA",imgWrp:"imgWrp___3N3oq"}}}]);