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__Innovation__index.async.js

1 line
14 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20680],{43387:function(n,e,t){t.d(e,{Z:function(){return H}});var o=t(87462),i=t(97685),r=t(4942),a=t(45987),c=t(67294),l=t(94184),s=t.n(l),d=t(16397),u=(0,c.createContext)({}),m=t(1413),g=t(71002),y={},M=[];function p(n,e){}function N(n,e){}function f(n,e,t){e||y[t]||(n(!1,t),y[t]=!0)}function j(n,e){f(p,n,e)}j.preMessage=function(n){M.push(n)},j.resetWarned=function(){y={}},j.noteOnce=function(n,e){f(N,n,e)};var h=j;function b(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var v="data-rc-order",Z="rc-util-key",I=new Map;function x(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Z}function C(n){return n.attachTo?n.attachTo:document.querySelector("head")||document.body}function T(n){return"queue"===n?"prependQueue":n?"prepend":"append"}function w(n){return Array.from((I.get(n)||n).children).filter((function(n){return"STYLE"===n.tagName}))}function D(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!b())return null;var t=e.csp,o=e.prepend,i=document.createElement("style");i.setAttribute(v,T(o)),null!=t&&t.nonce&&(i.nonce=null==t?void 0:t.nonce),i.innerHTML=n;var r=C(e),a=r.firstChild;if(o){if("queue"===o){var c=w(r).filter((function(n){return["prepend","prependQueue"].includes(n.getAttribute(v))}));if(c.length)return r.insertBefore(i,c[c.length-1].nextSibling),i}r.insertBefore(i,a)}else r.appendChild(i);return i}function A(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=C(e);return w(t).find((function(t){return t.getAttribute(x(e))===n}))}function z(n,e){var t=I.get(n);if(!t||!function(n,e){if(!n)return!1;if(n.contains)return n.contains(e);for(var t=e;t;){if(t===n)return!0;t=t.parentNode}return!1}(document,t)){var o=D("",e),i=o.parentNode;I.set(n,i),n.removeChild(o)}}function L(n){var e;return null==n||null===(e=n.getRootNode)||void 0===e?void 0:e.call(n)}function k(n){return function(n){return L(n)!==(null==n?void 0:n.ownerDocument)}(n)?L(n):null}function _(n){return"object"===(0,g.Z)(n)&&"string"==typeof n.name&&"string"==typeof n.theme&&("object"===(0,g.Z)(n.icon)||"function"==typeof n.icon)}function Y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(n).reduce((function(e,t){var o=n[t];if("class"===t)e.className=o,delete e.class;else e[t]=o;return e}),{})}function E(n,e,t){return t?c.createElement(n.tag,(0,m.Z)((0,m.Z)({key:e},Y(n.attrs)),t),(n.children||[]).map((function(t,o){return E(t,"".concat(e,"-").concat(n.tag,"-").concat(o))}))):c.createElement(n.tag,(0,m.Z)({key:e},Y(n.attrs)),(n.children||[]).map((function(t,o){return E(t,"".concat(e,"-").concat(n.tag,"-").concat(o))})))}function Q(n){return(0,d.generate)(n)[0]}function O(n){return n?Array.isArray(n)?n:[n]:[]}var S=function(n){var e=(0,c.useContext)(u),t=e.csp,o=e.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";o&&(i=i.replace(/anticon/g,o)),(0,c.useEffect)((function(){var e=k(n.current);!function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};z(C(t),t);var o=A(e,t);if(o){var i,r,a;return null!==(i=t.csp)&&void 0!==i&&i.nonce&&o.nonce!==(null===(r=t.csp)||void 0===r?void 0:r.nonce)&&(o.nonce=null===(a=t.csp)||void 0===a?void 0:a.nonce),o.innerHTML!==n&&(o.innerHTML=n),o}var c=D(n,t);c.setAttribute(x(t),e)}(i,"@ant-design-icons",{prepend:!0,csp:t,attachTo:e})}),[])},W=["icon","className","onClick","style","primaryColor","secondaryColor"],G={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var R=function(n){var e,t,o=n.icon,i=n.className,r=n.onClick,l=n.style,s=n.primaryColor,d=n.secondaryColor,u=(0,a.Z)(n,W),g=c.useRef(),y=G;if(s&&(y={primaryColor:s,secondaryColor:d||Q(s)}),S(g),e=_(o),t="icon should be icon definiton, but got ".concat(o),h(e,"[@ant-design/icons] ".concat(t)),!_(o))return null;var M=o;return M&&"function"==typeof M.icon&&(M=(0,m.Z)((0,m.Z)({},M),{},{icon:M.icon(y.primaryColor,y.secondaryColor)})),E(M.icon,"svg-".concat(M.name),(0,m.Z)((0,m.Z)({className:i,onClick:r,style:l,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:g}))};R.displayName="IconReact",R.getTwoToneColors=function(){return(0,m.Z)({},G)},R.setTwoToneColors=function(n){var e=n.primaryColor,t=n.secondaryColor;G.primaryColor=e,G.secondaryColor=t||Q(e),G.calculated=!!t};var B=R;function F(n){var e=O(n),t=(0,i.Z)(e,2),o=t[0],r=t[1];return B.setTwoToneColors({primaryColor:o,secondaryColor:r})}var J=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];F(d.blue.primary);var P=c.forwardRef((function(n,e){var t,l=n.className,d=n.icon,m=n.spin,g=n.rotate,y=n.tabIndex,M=n.onClick,p=n.twoToneColor,N=(0,a.Z)(n,J),f=c.useContext(u),j=f.prefixCls,h=void 0===j?"anticon":j,b=f.rootClassName,v=s()(b,h,(t={},(0,r.Z)(t,"".concat(h,"-").concat(d.name),!!d.name),(0,r.Z)(t,"".concat(h,"-spin"),!!m||"loading"===d.name),t),l),Z=y;void 0===Z&&M&&(Z=-1);var I=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,x=O(p),C=(0,i.Z)(x,2),T=C[0],w=C[1];return c.createElement("span",(0,o.Z)({role:"img","aria-label":d.name},N,{ref:e,tabIndex:Z,onClick:M,className:v}),c.createElement(B,{icon:d,primaryColor:T,secondaryColor:w,style:I}))}));P.displayName="AntdIcon",P.getTwoToneColor=function(){var n=B.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor},P.setTwoToneColor=F;var H=P},11475:function(n,e,t){t.d(e,{Z:function(){return l}});var o=t(87462),i=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=t(43387),c=function(n,e){return i.createElement(a.Z,(0,o.Z)({},n,{ref:e,icon:r}))};var l=i.forwardRef(c)},78148:function(n,e,t){t.r(e),t.d(e,{default:function(){return N}});var o=t(42122),i=t.n(o),r=t(27424),a=t.n(r),c=t(67294),l=t(88275),s=t(71230),d=t(15746),u=t(68508),m=t(14446),g=t(11475),y=t(71831);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var M=t(59758),p=t(85893),N=(0,l.connect)((function(n){var e=n.user,t=n.loading,o=n.globalSetting,i=n.innovation;return{user:e,globalSetting:o,loading:t.models.index,innovation:i}}))((function(n){n.user;var e=n.globalSetting,t=(n.loading,n.dispatch),o=(n.children,n.innovation),r=(0,l.useLocation)(),N=(0,c.useState)(["my-workspace"]),f=a()(N,2),j=f[0],h=f[1];(0,c.useEffect)((function(){null!=r&&r.pathname&&"/innovation"===r.pathname&&l.history.replace("/innovation/project")}),[r.pathname]);var b=(0,c.useMemo)((function(){var n,t;return{imgSrc:null==e||null===(n=e.setting)||void 0===n?void 0:n.sci_logo,title:null==e||null===(t=e.setting)||void 0===t?void 0:t.sci_title}}),[e]);return(0,p.jsxs)(s.Z,{className:"mt30 mb30 ".concat(y.Z.wrapper),justify:"space-between",children:[(0,p.jsxs)(d.Z,{flex:"200px",children:[(0,p.jsxs)("aside",{className:y.Z.home,children:[(0,p.jsx)("div",{children:(0,p.jsx)("img",{width:20,src:"".concat(M.Z.API_SERVER).concat(b.imgSrc)||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWCAYAAADAQbwGAAAAAXNSR0IArs4c6QAAAqlJREFUOE+llEtIlFEUgL8zvkgXTa2yhxUmLWxSUYJMQkuC0B6S9oKSFLFFZJYFSuUIRaFEr0VWUiRWOkI5IVoRqSiFEVKaCUlZKpVtNHykUXNjnBkd5x+byH97z/nud84955eFaWqjxcJVYBEz+YQenZApwZmqW6kZwuwiIvRI6AGlPIqJS8RfMiTysBYYtgTyUkDvD5/7ofol6AQSoiBQD/3DcMoEb7odapMXSkyuFliaBfnl0NUHcQY4ngIoMFZA41tYFgh5ybDvsg3kXIDE52uBd7Jh93kIXwqHEqGwymaYsxXOVUFbNzhiXNsliae1wKJUqGqGvbFw9j7EhYKvDzS0Q/YmKK2HhEjILdN2X1KKlJpwtjd7QzikxkKBCQyLIcAPhkZBHwDP38GJZLj+BOraXHqoQPZc0hrGr4Rda6DQDMHzYP4cGBkDi4LWT5Cz2WZZ/9aNYUaxUo6mOqYhNwlqWyB5NVx5BCuCwMcb2rshfT3ca4Z4AxQ+mAq0cuTgDa2hcTsYTTY7q+ndJtDpYGc0lDVC1zcwpoCx0o3hsdtOhnbF7AQofwZfBiAsCHZEj0/NOLi9FxbMhW2r4GKtfWzsJVpjJL9Sa2hNSIiAWb4wMGwbExEwBMFsf1s/q1tsF2rG5oz5H1bP4246bcqFWjdA11fysMpTNqX4qRPQ8cxTfwYW4CYQAyz3JCu3mpRGcYInfESRlhojdTWdyq+vj5MCRwGf6cBS8cJtyQpFydBPjqTHyKBzcnmzCkMoEYhyBxXzKxeg0MsvMrZEysPpLExKefm2kq1TFCjwd46Txx2TQAWlI6NkJUWIm4HQ4mvaVLC3N9eAdY5TaXivOkTQ85v9a0PE7Knp7s4bPqh0HRQp+C6dSvlZg0JExv4H5sh5/VUF/BjE6w/jAvG03CiIyQAAAABJRU5ErkJggg=="})}),(0,p.jsx)("div",{className:y.Z.info,children:(0,p.jsx)("div",{children:b.title||"科研创新"})})]}),(0,p.jsxs)(u.Z,{onClick:function(n){t({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}}),l.history.replace("/innovation/".concat(n.key))},mode:"inline",openKeys:j,onOpenChange:function(n){h(n)},selectedKeys:[r.pathname.substring(12)],className:y.Z.menu,children:[(0,p.jsx)(u.Z.Item,{icon:(0,p.jsx)("i",{className:"iconfont icon-xiangmu",style:{marginRight:10}}),children:"项目"},"project"),(0,p.jsx)(u.Z.Item,{icon:(0,p.jsx)("i",{className:"iconfont icon-shujuji",style:{marginRight:10}}),children:"数据集"},"dataset"),(0,p.jsx)(u.Z.Item,{icon:(0,p.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0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wLTEyOCAwWk0yMjQgNTg4LjhhNjQgNjQgMCAxIDAgMTI4IDAgNjQgNjQgMCAxIDAtMTI4IDBaIiBmaWxsPSIjNDY0RjY2Ii8+PHBhdGggZD0ibTE4MS4wNTYgNDk3Ljc5MiAyNC43MDQtNTkuMDcyIDI4OS4yOCAxMjEuMDI0LTI0LjcwNCA1OS4wNzJ6TTU2OS42IDU4OC44VjM3Ny42bDM1Mi0xNDcuMnYyMDQuOGwtMzUyIDE1My42em02NC0xNjYuNHY3MC40bDIyNC0xMDIuNHYtNjRsLTIyNCA5NnptLTY0IDM5MC40di0xOTJsMzUyLTE1My42djE4NS42bC0zNTIgMTYwem02NC0xNDcuMnY1MS4ybDIyNC0xMDguOHYtNDQuOGwtMjI0IDEwMi40eiIgZmlsbD0iIzQ2NEY2NiIvPjwvc3ZnPg==",style:{width:17,height:17,marginRight:10}}),children:"镜像"},"mirror"),(0,p.jsxs)(u.Z.SubMenu,{title:"我的工作台",icon:(0,p.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlPkBmb250LWZhY2V7Zm9udC1mYW1pbHk6ZmVlZGJhY2staWNvbmZvbnQ7c3JjOnVybCgvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfdTY5dzh5aHhkdS53b2ZmMj90PTE2MzAwMzM3NTk5NDQpIGZvcm1hdCgmcXVvdDt3b2ZmMiZxdW90OyksdXJsKC8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmY/dD0xNjMwMDMzNzU5OTQ0KSBmb3JtYXQoJnF1b3Q7d29mZiZxdW90OyksdXJsKC8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LnR0Zj90PTE2MzAwMzM3NTk5NDQpIGZvcm1hdCgmcXVvdDt0cnVldHlwZSZxdW90Oyl9PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTEwMjQgNzMxLjQyOUgwVjBoMTAyNHY3MzEuNDI5ek04Ny43NzEgNjQzLjY1N0g5MzYuMjNWODcuNzcxSDg3Ljc3djU1NS44ODZ6IiBmaWxsPSIjNDY0RjY2Ii8+PHBhdGggZD0iTTIxOS40MjkgMjE5LjQyOUg4MDQuNTdWMzA3LjJIMjE5LjQzem0wIDIxOS40MjhINTEydjg3Ljc3MkgyMTkuNDI5ek04NzcuNzE0IDEwMTYuNjg2SDE0Ni4yODZWNzk3LjI1N2g3MzEuNDI4djIxOS40Mjl6bS02NDMuNjU3LTg3Ljc3Mmg1NTUuODg2Vjg4NS4wM0gyMzQuMDU3djQzLjg4NXoiIGZpbGw9IiM0NjRGNjYiLz48L3N2Zz4=",style:{width:16,height:16,marginRight:10}}),className:y.Z.submenu,children:[(0,p.jsx)(u.Z.Item,{children:"我的项目"},"my-project"),(0,p.jsx)(u.Z.Item,{children:"我的数据集"},"my-dataset"),(0,p.jsx)(u.Z.Item,{children:"我的镜像"},"my-mirror")]},"my-workspace")]})]}),(0,p.jsx)(d.Z,{flex:"1",children:(0,p.jsx)("div",{className:y.Z.content_wrapper,children:(0,p.jsx)(l.Outlet,{})})}),(0,p.jsx)(m.Z,i()(i()({},o.simpleModalProps),{},{onCancel:function(){return t({type:"innovation/closeSimpleModal"})},title:(0,p.jsxs)(s.Z,{align:"middle",children:[(0,p.jsx)(g.Z,{style:{color:"#FF8C29",fontSize:18,marginRight:10}}),o.simpleModalProps.title]}),destroyOnClose:!0,centered:!0,className:"".concat(y.Z.base_modal_style," ").concat(o.simpleModalProps.className),children:o.simpleModalProps.children}))]})}))},71831:function(n,e){e.Z={flex_box_center:"flex_box_center___enTkV",flex_space_between:"flex_space_between___j8LoK",flex_box_vertical_center:"flex_box_vertical_center___BJ6hp",flex_box_center_end:"flex_box_center_end___KZOQH",flex_box_column:"flex_box_column___Tzu7t",wrapper:"wrapper___DnUnJ",content_wrapper:"content_wrapper___F_rCn",base_modal_style:"base_modal_style___vKqRE",menu:"menu___BpwS6",submenu:"submenu___xDr82",link:"link___b9dc8",header:"header___yrRip",title:"title___oWojk",home:"home___D896G",info:"info___n4w60"}}}]);