(this.webpackJsonp=this.webpackJsonp||[]).push([[101],{"62O4":function(e,t,a){},"E+/Y":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpUrl=void 0;var n,i=(n=a("JGtk"))&&n.__esModule?n:{default:n},l=JSON.parse(localStorage.chromesetting),r=l&&l.common.wiki,u=(0,i.default)(r);t.httpUrl=r,t.default=u},HC66:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=a("cDcd"))&&n.__esModule?n:{default:n},l=a("sYIF");a("62O4"),t.default=function(e){var t=e.height,a=void 0===t?400:t;return i.default.createElement("div",{className:"nodata-panel-wrapper",style:{height:a}},i.default.createElement("div",{className:"nodata-panel"},i.default.createElement("img",{width:"128",src:(0,l.getUrl)("/images/educoder/nodata.png"),alt:"no-data"}),i.default.createElement("p",null,"暂时还没有相关数据哦！")))}},KibE:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/help_bg.d2bb4c18.png"},Vt0K:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,i=!1,l=void 0;try{for(var r,u=e[Symbol.iterator]();!(n=(r=u.next()).done)&&(a.push(r.value),!t||a.length!==t);n=!0);}catch(e){i=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=a("cDcd"),l=d(i),r=d(a("HC66")),u=a("j/6D"),c=d(a("KibE"));function d(e){return e&&e.__esModule?e:{default:e}}a("eKws"),t.default=function(e){var t=e.showNotification,a=(0,i.useState)(null),d=n(a,2),o=d[0],s=d[1],f=(0,i.useState)({}),m=n(f,2),p=m[0],h=m[1],g=(0,i.useState)({}),w=n(g,2),k=w[0],v=w[1],_=-1!==window.location.host.indexOf("50008")||-1!==window.location.host.indexOf("gitlink");return(0,i.useEffect)((function(){(0,u.wikiPages)({owner:_?"CCF-GLCC":"forgetest2",repo:_?"glcc-help":"wiki1",projectId:_?"1403908":"546103"}).then((function(e){e&&"200"===e.message&&Array.isArray(e.data)?(s(e.data),e.data.length&&h(e.data[0])):s([])}))}),[]),(0,i.useEffect)((function(){p.name&&(0,u.getWiki)({owner:_?"CCF-GLCC":"forgetest2",repo:_?"glcc-help":"wiki1",pagename:p.name,projectId:_?"1403908":"546103"}).then((function(e){e&&"200"===e.message?v(e.data):t("加载失败")}))}),[p]),l.default.createElement("div",{className:"glcc_help"},o&&0===o.length?l.default.createElement(r.default,null):l.default.createElement("div",{className:"help_main"},l.default.createElement("div",{className:"menuList"},l.default.createElement("span",{className:"font-18 mb15"},"帮助文档"),o&&o.map((function(e){return l.default.createElement("span",{className:"wiki_title font-15 mb15 "+(e.name===p.name?"active":""),key:e.name,onClick:function(){h(e)}},e.name)}))),l.default.createElement("div",{className:"help_cntent pt10"},l.default.createElement("div",{dangerouslySetInnerHTML:{__html:k&&k.simple_content}}),l.default.createElement("img",{src:c.default,className:"bg",alt:"bg"}))))}},eKws:function(e,t,a){},"j/6D":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wikiPages=function(e){return(0,i.default)({url:"/api/wiki/wikiPages",method:"get",params:e})},t.getWiki=function(e){return(0,i.default)({url:"/api/wiki/getWiki",method:"get",params:e})},t.addWiki=function(e){return(0,i.default)({url:"/api/wiki/createWiki",method:"post",data:e})},t.updateWiki=function(e){return(0,i.default)({url:"/api/wiki/updateWiki",method:"PUT",data:e})},t.deleteWiki=function(e){return(0,i.default)({url:"/api/wiki/deleteWiki",method:"DELETE",data:e})};var n,i=(n=a("E+/Y"))&&n.__esModule?n:{default:n}}}]);