|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[209],{"4YB9":
|
|
|
/*!******************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/RankingSetting/challenge-nav.tsx ***!
|
|
|
\******************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";var n=a(/*! react */"q1tI"),r=a.n(n),l=a(/*! umi */"Ty5D"),o=a(/*! umi */"55Ip");a(/*! ./challenge-nav.less */"W1YM");t.a=function(e){var t=e.activeIndex,a=Object(l.i)(),i=a.id,c=a.challengesId,u=Object(n.useMemo)((function(){return[{name:"1、本关任务",url:"/shixuns/".concat(i,"/challenges/").concat(c,"/editcheckpoint")},{name:"2、评测设置",url:"/shixuns/".concat(i,"/challenges/").concat(c,"/tab=2")},{name:"3、参考答案",url:"/shixuns/".concat(i,"/challenges/").concat(c,"/tab=3")},{name:"4、关卡排行榜",url:"/shixuns/".concat(i,"/challenges/").concat(c,"/tab=4")}]}),[i,c]);return r.a.createElement("ul",{className:"challenge-nav"},u.map((function(e,a){return t===a?r.a.createElement("li",{key:e.url}," ",r.a.createElement("a",{className:"active"},e.name)," "):r.a.createElement("li",{key:e.url}," ",r.a.createElement(o.a,{to:e.url},e.name)," ")})))}},"55Ip":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
|
/*! exports used: Link, NavLink */function(e,t,a){"use strict";a.d(t,"a",(function(){return h})),a.d(t,"b",(function(){return E}));var n=a(/*! react-router */"Ty5D"),r=a(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),l=a(/*! react */"q1tI"),o=a.n(l),i=a(/*! history */"YS25"),c=(a(/*! prop-types */"17x9"),a(/*! @babel/runtime/helpers/esm/extends */"wx14")),u=a(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),s=a(/*! tiny-invariant */"9R94");o.a.Component;o.a.Component;var m=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?Object(i.c)(e,null,null,t):e},p=function(e){return e},d=o.a.forwardRef;void 0===d&&(d=p);var v=d((function(e,t){var a=e.innerRef,n=e.navigate,r=e.onClick,l=Object(u.a)(e,["innerRef","navigate","onClick"]),i=l.target,s=Object(c.a)({},l,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||i&&"_self"!==i||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return s.ref=p!==d&&t||a,o.a.createElement("a",s)}));var h=d((function(e,t){var a=e.component,r=void 0===a?v:a,l=e.replace,i=e.to,h=e.innerRef,b=Object(u.a)(e,["component","replace","to","innerRef"]);return o.a.createElement(n.e.Consumer,null,(function(e){e||Object(s.a)(!1);var a=e.history,n=f(m(i,e.location),e.location),u=n?a.createHref(n):"",v=Object(c.a)({},b,{href:u,navigate:function(){var t=m(i,e.location);(l?a.replace:a.push)(t)}});return p!==d?v.ref=t||h:v.innerRef=h,o.a.createElement(r,v)}))})),b=function(e){return e},g=o.a.forwardRef;void 0===g&&(g=b);var E=g((function(e,t){var a=e["aria-current"],r=void 0===a?"page":a,l=e.activeClassName,i=void 0===l?"active":l,p=e.activeStyle,d=e.className,v=e.exact,E=e.isActive,y=e.location,_=e.sensitive,x=e.strict,O=e.style,j=e.to,w=e.innerRef,k=Object(u.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement(n.e.Consumer,null,(function(e){e||Object(s.a)(!1);var a=y||e.location,l=f(m(j,a),a),u=l.pathname,N=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=N?Object(n.f)(a.pathname,{path:N,exact:v,sensitive:_,strict:x}):null,S=!!(E?E(C,a):C),I=S?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(d,i):d,P=S?Object(c.a)({},O,{},p):O,T=Object(c.a)({"aria-current":S&&r||null,className:I,style:P,to:l},k);return b!==g?T.ref=t||w:T.innerRef=w,o.a.createElement(h,T)}))}))},"7ixt":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/placements.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: placements, default */
|
|
|
/*! exports used: placements */function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n={adjustX:1,adjustY:1},r=[0,0],l={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}}},"9ZNV":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./src/components/FixedButton/index.tsx ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: FixedButton */
|
|
|
/*! exports used: FixedButton */function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var n=a(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends */"0Owb"),r=(a(/*! antd/es/button/style */"+L6B"),a(/*! antd/es/button */"2/Rp")),l=a(/*! react */"q1tI"),o=a.n(l),i=a(/*! ./index.less?modules */"UUDw"),c=a.n(i),u=a(/*! classnames */"TSYQ"),s=a.n(u),m=function(e){var t=e.cancelText,a=void 0===t?"取消":t,l=e.okText,i=void 0===l?"确定":l,u=e.loading,m=void 0!==u&&u,f=e.hasOkBtn,p=void 0===f||f,d=e.okButtonProps,v=void 0===d?{}:d,h=e.onCancel,b=void 0===h?function(){}:h,g=e.onOk,E=void 0===g?function(){}:g,y=e.className,_=void 0===y?"":y;return o.a.createElement("div",{className:s()(c.a.buttonFixed,_)},o.a.createElement("div",{className:c.a.buttonWrap},o.a.createElement(r.a,{size:"large",className:"".concat(c.a.button," mr20"),onClick:b},a),p&&o.a.createElement(r.a,Object(n.a)({size:"large",type:"primary",className:"".concat(c.a.button," mr20"),loading:m,onClick:E},v),i)))}},"9oiH":
|
|
|
/*!************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/EditPracticeSetting/index.less?modules ***!
|
|
|
\************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={flex_box_center:"flex_box_center___UNxlt",flex_space_between:"flex_space_between___abxYk",flex_box_vertical_center:"flex_box_vertical_center___1Fq8s",flex_box_center_end:"flex_box_center_end___2HPgu",flex_box_column:"flex_box_column___RtE2X",bg:"bg___kbF9N",flexRow:"flexRow___g11Yg",flexRowCenter:"flexRowCenter___MAFSp",flexJustifyCenter:"flexJustifyCenter___2Gxyz",flexAlignEnd:"flexAlignEnd___1HS2d",flexAlingCenter:"flexAlingCenter___3LONA",flexAlignCenter:"flexAlignCenter___17DP1",flexColumn:"flexColumn___1D4TK",formWrap:"formWrap___X08wR",titleWrap:"titleWrap___2BiOW",fieldWrap:"fieldWrap___20iAg",mdWrap:"mdWrap___2Lc7M",backgroundFa:"backgroundFa___nxT_l",button:"button___1jUUP",icons:"icons___1yTLC",navBar:"navBar___3EVT7",active:"active___2VYxv",tipWrap:"tipWrap___mWunb",tip:"tip___2ACur",width300:"width300___g1fLL",popover:"popover___1-hNb",groupWrap:"groupWrap___3RkDx",radioStyle:"radioStyle___3-LJq",formCustom:"formCustom___1ecG0"}},BU3w:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: injectCSS, updateCSS */
|
|
|
/*! exports used: updateCSS */function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(/*! ./canUseDom */"MNnm");function r(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function l(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(n.a)())return null;var l,o=document.createElement("style");(null===(t=a.csp)||void 0===t?void 0:t.nonce)&&(o.nonce=null===(l=a.csp)||void 0===l?void 0:l.nonce);o.innerHTML=e;var i=r(a),c=i.firstChild;return a.prepend&&i.prepend?i.prepend(o):a.prepend&&c?i.insertBefore(o,c):i.appendChild(o),o}var o=new Map;function i(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r(a);if(!o.has(n)){var i=l("",a),c=i.parentNode;o.set(n,c),c.removeChild(i)}var u=Array.from(o.get(n).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(u){var s,m,f;if((null===(s=a.csp)||void 0===s?void 0:s.nonce)&&u.nonce!==(null===(m=a.csp)||void 0===m?void 0:m.nonce))u.nonce=null===(f=a.csp)||void 0===f?void 0:f.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var p=l(e,a);return p["rc-util-key"]=t,p}},CJF0:
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/components/EditHead/index.tsx ***!
|
|
|
\***************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a(/*! antd/es/row/style */"14J3");var n=a(/*! antd/es/row */"BMrR"),r=(a(/*! antd/es/button/style */"+L6B"),a(/*! antd/es/button */"2/Rp")),l=(a(/*! antd/es/col/style */"jCWc"),a(/*! antd/es/col */"kPKH")),o=a(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */"PpiC"),i=a(/*! react */"q1tI"),c=a.n(i),u=a(/*! umi */"Ty5D"),s=a(/*! umi */"9kvl"),m=a(/*! umi */"55Ip"),f=a(/*! @/components/ImagesIcon */"lzim"),p=a(/*! ./index.less?modules */"nZ20"),d=a.n(p);t.a=Object(s.a)((function(e){var t=e.shixunsDetail,a=e.newCourse,n=e.loading;return{shixunsDetail:t,newCourse:a,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t,a,i,p,v=e.shixunsDetail,h=(e.dispatch,e.loading,e.match,e.data),b=void 0===h?{}:h,g=e.title,E=(Object(o.a)(e,["shixunsDetail","dispatch","loading","match","data","title"]),Object(u.i)()),y=!((null===(t=v.detail)||void 0===t?void 0:t.identity)>4||void 0===(null===(a=v.detail)||void 0===a?void 0:a.identity)||2===(null===(i=v.detail)||void 0===i?void 0:i.shixun_status)||1===(null===(p=v.detail)||void 0===p?void 0:p.shixun_status));return c.a.createElement("aside",{className:"bg-white mb10 pl20 pr20 ".concat(d.a.wrap)},c.a.createElement(n.a,{gutter:[20,20],align:"middle"},c.a.createElement(l.a,{flex:1},c.a.createElement("span",{className:d.a.icons},c.a.createElement("img",{src:f.f,width:"14"})),c.a.createElement("span",{className:"font16"},"第 ",null==b?void 0:b.position," 关:",g)),c.a.createElement(l.a,null,(null==b?void 0:b.prev_challenge)&&c.a.createElement(r.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var e,t=0===b.prev_challenge.st?"/editcheckpoint":"/editquestion",a="/shixuns/".concat(E.id,"/challenges/").concat(null==b||null===(e=b.prev_challenge)||void 0===e?void 0:e.id).concat(t);s.d.replace(a)}},"上一关"),b.next_challenge&&c.a.createElement(r.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var e,t=0===b.next_challenge.st?"/editcheckpoint":"/editquestion",a="/shixuns/".concat(E.id,"/challenges/").concat(null==b||null===(e=b.next_challenge)||void 0===e?void 0:e.id).concat(t);s.d.replace(a)}},"下一关"),y&&c.a.createElement(r.a,{type:"primary"},c.a.createElement(m.a,{to:"/shixuns/".concat(E.id,"/challenges/newquestion")},"新增选择题任务")),y&&c.a.createElement(r.a,{type:"primary",className:"ml5"},c.a.createElement(m.a,{to:"/shixuns/".concat(E.id,"/challenges/new")},"新增实践任务")),c.a.createElement(r.a,{type:"primary",className:"ml5"},c.a.createElement(m.a,{to:"/shixuns/".concat(E.id,"/challenges")},"返回")))))}))},Gytx:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/shallowequal/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),c=0;c<l.length;c++){var u=l[c];if(!i(u))return!1;var s=e[u],m=t[u];if(!1===(r=a?a.call(n,s,m,u):void 0)||void 0===r&&s!==m)return!1}return!0}},LdHM:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: Option, OptGroup, default */
|
|
|
/*! exports used: OptGroup, Option, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.d(t,"b",(function(){return _})),a.d(t,"a",(function(){return O}));var n=a("1OyB"),r=a("vuIU"),l=a("Ji7U"),o=a("LK+K"),i=a("q1tI"),c=a("rePB"),u=a("Ff2n"),s=a("ODXe"),m=a("4IlW"),f=a("bX4T"),p=a("YrtM"),d=a("TSYQ"),v=a.n(d),h=a("+nKL"),b=a("8OUc"),g=i.forwardRef((function(e,t){var a=e.prefixCls,n=e.id,r=e.flattenOptions,l=e.childrenAsData,o=e.values,d=e.searchValue,g=e.multiple,E=e.defaultActiveFirstOption,y=e.height,_=e.itemHeight,x=e.notFoundContent,O=e.open,j=e.menuItemSelectedIcon,w=e.virtual,k=e.onSelect,N=e.onToggleOpen,C=e.onActiveValue,S=e.onScroll,I=e.onMouseEnter,P="".concat(a,"-item"),T=Object(p.a)((function(){return r}),[O,r],(function(e,t){return t[0]&&e[1]!==t[1]})),A=i.useRef(null),R=function(e){e.preventDefault()},z=function(e){A.current&&A.current.scrollTo({index:e})},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=T.length,n=0;n<a;n+=1){var r=(e+n*t+a)%a,l=T[r],o=l.group,i=l.data;if(!o&&!i.disabled)return r}return-1},V=i.useState((function(){return F(0)})),D=Object(s.a)(V,2),W=D[0],H=D[1],M=function(e){H(e);var t=T[e];t?C(t.data.value,e):C(null,-1)};i.useEffect((function(){M(!1!==E?F(0):-1)}),[T.length,d]),i.useEffect((function(){var e=setTimeout((function(){if(!g&&O&&1===o.size){var e=Array.from(o)[0],t=T.findIndex((function(t){return t.data.value===e}));M(t),z(t)}}));return function(){return clearTimeout(e)}}),[O]);var L=function(e){void 0!==e&&k(e,{selected:!o.has(e)}),g||N(!1)};if(i.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case m.a.UP:case m.a.DOWN:var a=0;if(t===m.a.UP?a=-1:t===m.a.DOWN&&(a=1),0!==a){var n=F(W+a,a);z(n),M(n)}break;case m.a.ENTER:var r=T[W];r&&!r.data.disabled?L(r.data.value):L(void 0),O&&e.preventDefault();break;case m.a.ESC:N(!1)}},onKeyUp:function(){},scrollTo:function(e){z(e)}}})),0===T.length)return i.createElement("div",{role:"listbox",id:"".concat(n,"_list"),className:"".concat(P,"-empty"),onMouseDown:R},x);function B(e){var t=T[e];if(!t)return null;var a=t.data||{},r=a.value,c=a.label,u=a.children,s=Object(f.a)(a,!0),m=l?u:c;return t?i.createElement("div",Object.assign({"aria-label":"string"==typeof m?m:null},s,{key:e,role:"option",id:"".concat(n,"_list_").concat(e),"aria-selected":o.has(r)}),r):null}return i.createElement(i.Fragment,null,i.createElement("div",{role:"listbox",id:"".concat(n,"_list"),style:{height:0,width:0,overflow:"hidden"}},B(W-1),B(W),B(W+1)),i.createElement(h.a,{itemKey:"key",ref:A,data:T,height:y,itemHeight:_,fullHeight:!1,onMouseDown:R,onScroll:S,virtual:w,onMouseEnter:I},(function(e,t){var a,n=e.group,r=e.groupOption,s=e.data,m=s.label,f=s.key;if(n)return i.createElement("div",{className:v()(P,"".concat(P,"-group"))},void 0!==m?m:f);var p=s.disabled,d=s.value,h=s.title,g=s.children,E=s.style,y=s.className,_=Object(u.a)(s,["disabled","value","title","children","style","className"]),x=o.has(d),O="".concat(P,"-option"),w=v()(P,O,y,(a={},Object(c.a)(a,"".concat(O,"-grouped"),r),Object(c.a)(a,"".concat(O,"-active"),W===t&&!p),Object(c.a)(a,"".concat(O,"-disabled"),p),Object(c.a)(a,"".concat(O,"-selected"),x),a)),k=l?g:m,N=!j||"function"==typeof j||x;return i.createElement("div",Object.assign({},_,{"aria-selected":x,className:w,title:h,onMouseMove:function(){W===t||p||M(t)},onClick:function(){p||L(d)},style:E}),i.createElement("div",{className:"".concat(O,"-content")},k||d),i.isValidElement(j)||x,N&&i.createElement(b.a,{className:"".concat(P,"-option-state"),customizeIcon:j,customizeIconProps:{isSelected:x}},x?"✓":null))})))}));g.displayName="OptionList";var E=g,y=function(){return null};y.isSelectOption=!0;var _=y,x=function(){return null};x.isSelectOptGroup=!0;var O=x,j=a("VTBJ"),w=a("Zm9Q");function k(e){var t=e.key,a=e.props,n=a.children,r=a.value,l=Object(u.a)(a,["children","value"]);return Object(j.a)({key:t,value:void 0!==r?r:t,children:n},l)}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(w.a)(e).map((function(e,a){if(!i.isValidElement(e)||!e.type)return null;var n=e.type.isSelectOptGroup,r=e.key,l=e.props,o=l.children,c=Object(u.a)(l,["children"]);return t||!n?k(e):Object(j.a)(Object(j.a)({key:"__RC_SELECT_GRP__".concat(null===r?a:r,"__"),label:r},c),{},{options:N(o)})})).filter((function(e){return e}))}var C=a("2Qr1"),S=a("qNPg"),I=a("U8pU"),P=a("Kwbf"),T=a("WKfj");var A=function(e){var t=e.mode,a=e.options,n=e.children,r=e.backfill,l=e.allowClear,o=e.placeholder,c=e.getInputElement,u=e.showSearch,s=e.onSearch,m=e.defaultOpen,f=e.autoFocus,p=e.labelInValue,d=e.value,v=e.inputValue,h=e.optionLabelProp,b="multiple"===t||"tags"===t,g=void 0!==u?u:b||"combobox"===t,E=a||N(n);if(Object(P.a)("tags"!==t||E.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var y=E.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(P.a)(!y,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)("combobox"!==t||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)("combobox"===t||!r,"`backfill` only works with `combobox` mode."),Object(P.a)("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),Object(P.b)("combobox"!==t||!c||!l||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),s&&!g&&"combobox"!==t&&"tags"!==t&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!m||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=d){var _=Object(T.d)(d);Object(P.a)(!p||_.every((function(e){return"object"===Object(I.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!b||Array.isArray(d),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){var x=null;Object(w.a)(n).some((function(e){if(!i.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(w.a)(e.props.children).every((function(t){return!(i.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(x=t.type,!1)})):(x=t,!0))})),x&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),Object(P.a)(void 0===v,"`inputValue` is deprecated, please use `searchValue` instead.")}},R=Object(S.a)({prefixCls:"rc-select",components:{optionList:E},convertChildrenToData:N,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:A,fillOptionsWithMissingValue:C.a}),z=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){var e;return Object(n.a)(this,a),(e=t.apply(this,arguments)).selectRef=i.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(r.a)(a,[{key:"render",value:function(){return i.createElement(R,Object.assign({ref:this.selectRef},this.props))}}]),a}(i.Component);z.Option=_,z.OptGroup=O;var F=z;t.c=F},M06Q:
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/EditPracticeSetting/components/SelectFilePathModal/index.less?modules ***!
|
|
|
\*******************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={wrap:"wrap___DotYX",content:"content___XZOQk",mainPathWrap:"mainPathWrap___3GJIi",colorBlue:"colorBlue___34ph7"}},OLES:
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/index.js + 2 modules ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tooltip/es/placements.js because of ./node_modules/antd/es/tooltip/placements.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-trigger/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";var n=a("U8pU"),r=a("VTBJ"),l=a("Ff2n"),o=a("q1tI"),i=a("uciX"),c=a("7ixt"),u=function(e){var t=e.overlay,a=e.prefixCls,n=e.id,r=e.overlayInnerStyle;return o.createElement("div",{className:"".concat(a,"-inner"),id:n,role:"tooltip",style:r},"function"==typeof t?t():t)},s=Object(o.forwardRef)((function(e,t){var a=e.overlayClassName,s=e.trigger,m=void 0===s?["hover"]:s,f=e.mouseEnterDelay,p=void 0===f?0:f,d=e.mouseLeaveDelay,v=void 0===d?.1:d,h=e.overlayStyle,b=e.prefixCls,g=void 0===b?"rc-tooltip":b,E=e.children,y=e.onVisibleChange,_=e.afterVisibleChange,x=e.transitionName,O=e.animation,j=e.placement,w=void 0===j?"right":j,k=e.align,N=void 0===k?{}:k,C=e.destroyTooltipOnHide,S=void 0!==C&&C,I=e.defaultVisible,P=e.getTooltipContainer,T=e.overlayInnerStyle,A=Object(l.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=Object(o.useRef)(null);Object(o.useImperativeHandle)(t,(function(){return R.current}));var z=Object(r.a)({},A);"visible"in e&&(z.popupVisible=e.visible);var F=!1,V=!1;if("boolean"==typeof S)F=S;else if(S&&"object"===Object(n.a)(S)){var D=S.keepParent;F=!0===D,V=!1===D}return o.createElement(i.a,Object.assign({popupClassName:a,prefixCls:g,popup:function(){var t=e.arrowContent,a=void 0===t?null:t,n=e.overlay,r=e.id;return[o.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},a),o.createElement(u,{key:"content",prefixCls:g,id:r,overlay:n,overlayInnerStyle:T})]},action:m,builtinPlacements:c.a,popupPlacement:w,ref:R,popupAlign:N,getPopupContainer:P,onPopupVisibleChange:y,afterPopupVisibleChange:_,popupTransitionName:x,popupAnimation:O,defaultPopupVisible:I,destroyPopupOnHide:F,autoDestroy:V,mouseLeaveDelay:v,popupStyle:h,mouseEnterDelay:p},z),E)}));t.a=s},UUDw:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./src/components/FixedButton/index.less?modules ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},W1YM:
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/RankingSetting/challenge-nav.less ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t),a.d(t,"ResizableTextArea",(function(){return A}));var n=a("wx14"),r=a("1OyB"),l=a("vuIU"),o=a("Ji7U"),i=a("LK+K"),c=a("q1tI"),u=a("VTBJ"),s=a("rePB"),m=a("Zm9Q"),f=(a("Kwbf"),a("c+Xe")),p=a("m+aA"),d=a("bdgK"),v=new Map;var h=new d.default((function(e){e.forEach((function(e){var t,a=e.target;null===(t=v.get(a))||void 0===t||t.forEach((function(e){return e(a)}))}))}));var b=function(e){Object(o.a)(a,e);var t=Object(i.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(l.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(c.Component),g=c.createContext(null);function E(e){var t=e.children,a=e.disabled,n=c.useRef(null),r=c.useRef(null),l=c.useContext(g),o=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=c.isValidElement(t)&&Object(f.c)(t),s=i?t.ref:null,m=c.useMemo((function(){return Object(f.a)(s,n)}),[s,n]),d=c.useRef(e);d.current=e;var E=c.useCallback((function(e){var t=d.current,a=t.onResize,n=t.data,r=e.getBoundingClientRect(),i=r.width,c=r.height,s=e.offsetWidth,m=e.offsetHeight,f=Math.floor(i),p=Math.floor(c);if(o.current.width!==f||o.current.height!==p||o.current.offsetWidth!==s||o.current.offsetHeight!==m){var v={width:f,height:p,offsetWidth:s,offsetHeight:m};o.current=v;var h=s===Math.round(i)?i:s,b=m===Math.round(c)?c:m,g=Object(u.a)(Object(u.a)({},v),{},{offsetWidth:h,offsetHeight:b});null==l||l(g,e,n),a&&Promise.resolve().then((function(){a(g,e)}))}}),[]);return c.useEffect((function(){var e,t,l=Object(p.a)(n.current)||Object(p.a)(r.current);return l&&!a&&(e=l,t=E,v.has(e)||(v.set(e,new Set),h.observe(e)),v.get(e).add(t)),function(){return function(e,t){v.has(e)&&(v.get(e).delete(t),v.get(e).size||(h.unobserve(e),v.delete(e)))}(l,E)}}),[n.current,a]),c.createElement(b,{ref:r},i?c.cloneElement(t,{ref:m}):t)}function y(e){var t=e.children;return Object(m.a)(t).map((function(t,a){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(a);return c.createElement(E,Object(n.a)({},e,{key:r}),t)}))}y.Collection=function(e){var t=e.children,a=e.onBatchResize,n=c.useRef(0),r=c.useRef([]),l=c.useContext(g),o=c.useCallback((function(e,t,o){n.current+=1;var i=n.current;r.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){i===n.current&&(null==a||a(r.current),r.current=[])})),null==l||l(e,t,o)}),[a,l]);return c.createElement(g.Provider,{value:o},t)};var _,x=y,O=a("bT9E"),j=a("TSYQ"),w=a.n(j),k="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],C={};function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&C[a])return C[a];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),l=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),i=N.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),c={sizingStyle:i,paddingSize:l,borderSize:o,boxSizing:r};return t&&a&&(C[a]=c),c}var I,P=a("Gytx"),T=a.n(P);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(I||(I={}));var A=function(e){Object(o.a)(a,e);var t=Object(i.a)(a);function a(e){var l;return Object(r.a)(this,a),(l=t.call(this,e)).nextFrameActionId=void 0,l.resizeFrameId=void 0,l.textArea=void 0,l.saveTextArea=function(e){l.textArea=e},l.handleResize=function(e){var t=l.state.resizeStatus,a=l.props,n=a.autoSize,r=a.onResize;t===I.NONE&&("function"==typeof r&&r(e),n&&l.resizeOnNextFrame())},l.resizeOnNextFrame=function(){cancelAnimationFrame(l.nextFrameActionId),l.nextFrameActionId=requestAnimationFrame(l.resizeTextarea)},l.resizeTextarea=function(){var e=l.props.autoSize;if(e&&l.textArea){var t=e.minRows,a=e.maxRows,n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_||((_=document.createElement("textarea")).setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),e.getAttribute("wrap")?_.setAttribute("wrap",e.getAttribute("wrap")):_.removeAttribute("wrap");var r=S(e,t),l=r.paddingSize,o=r.borderSize,i=r.boxSizing,c=r.sizingStyle;_.setAttribute("style","".concat(c,";").concat(k)),_.value=e.value||e.placeholder||"";var u,s=Number.MIN_SAFE_INTEGER,m=Number.MAX_SAFE_INTEGER,f=_.scrollHeight;if("border-box"===i?f+=o:"content-box"===i&&(f-=l),null!==a||null!==n){_.value=" ";var p=_.scrollHeight-l;null!==a&&(s=p*a,"border-box"===i&&(s=s+l+o),f=Math.max(s,f)),null!==n&&(m=p*n,"border-box"===i&&(m=m+l+o),u=f>m?"":"hidden",f=Math.min(m,f))}return{height:f,minHeight:s,maxHeight:m,overflowY:u,resize:"none"}}(l.textArea,!1,t,a);l.setState({textareaStyles:n,resizeStatus:I.RESIZING},(function(){cancelAnimationFrame(l.resizeFrameId),l.resizeFrameId=requestAnimationFrame((function(){l.setState({resizeStatus:I.RESIZED},(function(){l.resizeFrameId=requestAnimationFrame((function(){l.setState({resizeStatus:I.NONE}),l.fixFirefoxAutoScroll()}))}))}))}))}},l.renderTextArea=function(){var e=l.props,t=e.prefixCls,a=void 0===t?"rc-textarea":t,r=e.autoSize,o=e.onResize,i=e.className,m=e.disabled,f=l.state,p=f.textareaStyles,d=f.resizeStatus,v=Object(O.a)(l.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),h=w()(a,i,Object(s.a)({},"".concat(a,"-disabled"),m));"value"in v&&(v.value=v.value||"");var b=Object(u.a)(Object(u.a)(Object(u.a)({},l.props.style),p),d===I.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(x,{onResize:l.handleResize,disabled:!(r||o)},c.createElement("textarea",Object(n.a)({},v,{className:h,style:b,ref:l.saveTextArea})))},l.state={textareaStyles:{},resizeStatus:I.NONE},l}return Object(l.a)(a,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&T()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(c.Component),R=function(e){Object(o.a)(a,e);var t=Object(i.a)(a);function a(e){var n;Object(r.a)(this,a),(n=t.call(this,e)).resizableTextArea=void 0,n.focus=function(){n.resizableTextArea.textArea.focus()},n.saveTextArea=function(e){n.resizableTextArea=e},n.handleChange=function(e){var t=n.props.onChange;n.setValue(e.target.value,(function(){n.resizableTextArea.resizeTextarea()})),t&&t(e)},n.handleKeyDown=function(e){var t=n.props,a=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&a&&a(e),r&&r(e)};var l=void 0===e.value||null===e.value?e.defaultValue:e.value;return n.state={value:l},n}return Object(l.a)(a,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(A,Object(n.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),a}(c.Component);t.default=R},Yczt:
|
|
|
/*!***************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/EditPracticeSetting/index.tsx + 1 modules ***!
|
|
|
\***************************************************************************************/
|
|
|
/*! exports provided: PracticeFileType, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Detail/Challenges/EditPracticeSetting/components/SelectFilePathModal/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Detail/Challenges/EditPracticeSetting/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/FixedButton/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Detail/Challenges/RankingSetting/challenge-nav.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Shixuns/Detail/Challenges/components/EditHead/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/shixuns.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/popover/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/popover/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/select/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t),a.d(t,"PracticeFileType",(function(){return n}));a("+L6B");var n,r=a("2/Rp"),l=(a("5Dmo"),a("3S7+")),o=(a("Q9mQ"),a("diRs")),i=(a("7Kak"),a("9yH6")),c=(a("sRBo"),a("kaz8")),u=(a("miYZ"),a("tsqr")),s=a("oBTY"),m=a("jrin"),f=a("k1fw"),p=a("9og8"),d=(a("y8nQ"),a("Vl3Y")),v=a("tJVT"),h=a("PpiC"),b=(a("5NDa"),a("5rEg")),g=(a("OaEy"),a("2fM7")),E=a("WmNS"),y=a.n(E),_=a("q1tI"),x=a.n(_),O=a("9kvl"),j=a("Lyp1"),w=a("HBuW"),k=a("9oiH"),N=a.n(k),C=a("9ZNV"),S=(a("2qtc"),a("kLXV")),I=a("Ty5D"),P=a("M06Q"),T=a.n(P),A=function(e){return null!=e&&e.length?e.filter((function(e,t){return 0!==t})).map((function(e){return e.val})).join("").substr(1):""},R=Object(O.a)((function(e){var t=e.shixunsDetail,a=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){var t=e.shixunsDetail,a=(e.globalSetting,e.loading,e.dispatch),r=e.fileType,l=e.path,o=e.onFinish,i=void 0===o?function(){}:o,c=Object(I.i)(),u=Object(_.useState)(""),s=Object(v.a)(u,2),m=s[0],d=s[1],h=Object(_.useState)([]),g=Object(v.a)(h,2),E=g[0],O=g[1],j=Object(_.useState)([]),w=Object(v.a)(j,2),k=w[0],N=w[1],C=[n.OriginalPicturePath,n.ExpectPicturePath,n.PicturePath].includes(r);Object(_.useEffect)((function(){"EditPracticeSetting-SelectFilePath"===t.actionTabs.key&&(d(l||""),P())}),[t.actionTabs.key]);var P=function(){var e=Object(p.a)(y.a.mark((function e(){var t,n,r,l=arguments;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:"",e.next=3,a({type:"shixunsDetail/getRepository",payload:{id:c.id,path:t}});case 3:null!=(n=e.sent)&&n.trees&&(r=n.trees.map((function(e){return Object(f.a)(Object(f.a)({},e),{name:e.name,val:e.name})})),N(r||[]));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=Object(p.a)(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i(m),z();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){d(""),O([]),N([]),a({type:"shixunsDetail/setActionTabs",payload:{}})},F=A(E);return x.a.createElement(S.a,{centered:!0,title:"文件路径",closable:!1,keyboard:!1,visible:"EditPracticeSetting-SelectFilePath"===t.actionTabs.key,onOk:R,onCancel:z},x.a.createElement("div",{className:T.a.wrap},x.a.createElement("div",{className:T.a.content},x.a.createElement("div",{className:T.a.mainPathWrap},!(null==E||!E.length)&&E.map((function(e,t){return x.a.createElement("a",{key:t,onClick:function(){return function(e,t){var a=E.filter((function(e,a){return a<=t}));O(a);var n=A(a);C&&d(n),P(n)}(0,t)}},e.val)}))),!(null==k||!k.length)&&k.map((function(e,t){return"tree"===e.type?x.a.createElement("a",{key:t,onClick:function(){return function(e){if("tree"===e.type){E.length?E.push({val:"/".concat(e.val),path:e.val}):E.push({val:"根目录",path:""},{val:"/".concat(e.val),path:e.val}),O(E);var t=A(E);C&&d(t),P(t)}}(e)}},x.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(T.a.colorBlue)}),F?"".concat(F,"/"):F,e.name):x.a.createElement("a",{key:t,onClick:function(){return function(e){var t=A(E),a="".concat(t?"".concat(t,"/"):t).concat(e);r===n.Path?(null==m||!m.includes("".concat(a,";")))&&d("".concat(m).concat(a,";")):r===n.ExecPath&&d(a)}("".concat(e.name))}},x.a.createElement("i",{className:"iconfont icon-zuoye ".concat(T.a.colorBlue)}),F?"".concat(F,"/"):F,e.name)}))),x.a.createElement("label",{className:"mt5"},"选中的新建文件夹目录:"),x.a.createElement(b.a,{placeholder:"请输入新文件夹名/子文件夹名。(如:src/step1)",value:m,onChange:function(e){return d(e.target.value)}})))})),z=a("CJF0"),F=a("4YB9"),V=g.a.Option,D=b.a.TextArea;!function(e){e.Path="path",e.ExecPath="exec_path",e.OriginalPicturePath="original_picture_path",e.ExpectPicturePath="expect_picture_path",e.PicturePath="picture_path"}(n||(n={}));t.default=Object(O.a)((function(e){var t=e.shixunsDetail,a=e.newCourse,n=e.loading;return{shixunsDetail:t,newCourse:a,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t,a,E,k,S=e.shixunsDetail,I=e.dispatch,P=(e.loading,e.match),T=(Object(h.a)(e,["shixunsDetail","dispatch","loading","match"]),d.a.useForm()),A=Object(v.a)(T,1)[0],W=Object(_.useState)({}),H=Object(v.a)(W,2),M=H[0],L=H[1],B=Object(_.useState)({}),q=Object(v.a)(B,2),Y=q[0],G=q[1],U=Object(_.useState)([]),K=Object(v.a)(U,2),J=K[0],Z=K[1],X=Object(_.useState)(),Q=Object(v.a)(X,2),$=Q[0],ee=Q[1];Object(_.useEffect)((function(){return I({type:"globalSetting/footerToggle",payload:!1}),function(){I({type:"globalSetting/footerToggle",payload:!0})}}),[]),Object(_.useEffect)((function(){te()}),[]);var te=function(){var e=Object(p.a)(y.a.mark((function e(){var t;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(w.G)({id:P.params.id,challengeId:P.params.challengesId,tab:1});case 2:(t=e.sent)&&(G(t),ae(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(e){A.setFieldsValue(Object(f.a)({},e)),L(Object(f.a)({},e));var t=e.test_sets.length?e.test_sets:[{hidden:0,input:"",output:"",score:100}];Z(t)},ne=function(e){I({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}}),ee(e)},re=function(e){var t=Math.floor(100/e.length),a=t+100%e.length;e=e.map((function(n,r){return r===e.length-1?Object(f.a)(Object(f.a)({},n),{},{score:a}):Object(f.a)(Object(f.a)({},n),{},{score:t})})),Z(e)},le=function(){var e=Object(p.a)(y.a.mark((function e(t){var a,n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=J.map((function(e){return e.score})),n=a.reduce((function(e,t){return e+t}),0),!t.test_set_score||100===n||null==J||!J.length){e.next=5;break}return u.b.info("测试集的评分占比之和必须等于100"),e.abrupt("return");case 5:return e.next=7,Object(w.Lb)(Object(f.a)(Object(f.a)({},P.params),{},{tab:1,challenge:Object(f.a)(Object(f.a)(Object(f.a)({},t),{test_set_rules_expression:0===t.test_set_rules?null:t.test_set_rules_expression}),{},{shixunfileexpectpicturepath:t.original_picture_path,shixunfilestandardpicturepath:t.expect_picture_path}),test_set:J}));case 7:e.sent.status>=0&&O.d.replace("/shixuns/".concat(P.params.id,"/challenges/").concat(P.params.challengesId,"/tab=3"));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return x.a.createElement("section",{className:N.a.bg},x.a.createElement(z.a,{data:Y,title:"实践题"}),x.a.createElement(d.a,{form:A,className:N.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){L(Object(f.a)({},t)),"test_set_score"in e&&e.test_set_score&&(A.setFieldsValue({test_set_average:!0}),re(J)),"test_set_average"in e&&e.test_set_average&&re(J)},onFinish:le,initialValues:{test_set_rules:0}},x.a.createElement(F.a,{activeIndex:1}),x.a.createElement("div",{className:N.a.fieldWrap},x.a.createElement("div",{className:N.a.tipWrap},"请先上传本关任务的所有代码文件、标准图片等所有必要的文件到",x.a.createElement("a",{href:"/shixuns/".concat(P.params.id,"/repository"),target:"_blank",className:N.a.tip},"版本库")),(null===(t=S.detail)||void 0===t?void 0:t.identity)<3&&x.a.createElement(d.a.Item,{label:"开启虚拟仿真:"},x.a.createElement(d.a.Item,{name:"unity_3d",noStyle:!0,valuePropName:"checked"},x.a.createElement(c.a,{disabled:2===(null===(a=S.detail)||void 0===a?void 0:a.shixun_status)})),x.a.createElement("span",{className:"pl10 font14 c-light-black"},"(选中则给学员的实践任务启动Unity3D界面)")),M.unity_3d&&(null===(E=S.detail)||void 0===E?void 0:E.identity)<3&&x.a.createElement(x.a.Fragment,null,x.a.createElement(d.a.Item,{name:"unity_3d_routes",label:"路径:",rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(b.a,{disabled:2===(null===(k=S.detail)||void 0===k?void 0:k.shixun_status),placeholder:"请选择版本库中的代码文件。例: src/step1/HelloWorld.java"})),x.a.createElement(d.a.Item,{name:"with_code_file",label:"是否需要代码评测:"},x.a.createElement(i.a.Group,null,x.a.createElement(i.a,{value:!0},"是"),x.a.createElement(i.a,{value:!1},"否"))),M.with_code_file?x.a.createElement(d.a.Item,{name:"unity_3d_result",label:"评测结果是否由 Unity3D 决定:"},x.a.createElement(i.a.Group,null,x.a.createElement(i.a,{value:!0},"是"),x.a.createElement(i.a,{value:!1},"否"))):null),M.with_code_file&&x.a.createElement(x.a.Fragment,null,x.a.createElement(d.a.Item,{name:"exec_time",label:x.a.createElement("div",null,"评测时长限制 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(程序评测运行时间限制时长,单位:秒)")),rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(b.a,{placeholder:"请输入评测时长",className:N.a.width300})),x.a.createElement(d.a.Item,{label:x.a.createElement("div",null,"评测效果展现方式 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(学员评测本关任务时,查看效果页上需要展现的文件类型)"))},x.a.createElement(d.a.Item,{name:"show_type",noStyle:!0,rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(g.a,{size:"large",style:{width:"300px"}},x.a.createElement(V,{value:-1},"无"),x.a.createElement(V,{value:1},"图片"),x.a.createElement(V,{value:2},"apk/exe"),x.a.createElement(V,{value:3},"txt"),x.a.createElement(V,{value:4},"html"),x.a.createElement(V,{value:5},"mp3"),x.a.createElement(V,{value:6},"mp4"))),x.a.createElement(o.a,{overlayClassName:N.a.popover,placement:"bottomLeft",content:x.a.createElement("p",{className:"font12"},"图片:处理或输出图片类型的任务,请选填此项",x.a.createElement("br",null),"可以通过设置图片路径和学员答案文件路径,展示代码对应的图片效果",x.a.createElement("br",null),x.a.createElement("br",null),"apk/exe:写可执行文件的任务,请选填此项",x.a.createElement("br",null),"可以通过设置学员答案文件路径,展示二维码以供扫码下载",x.a.createElement("br",null),x.a.createElement("br",null),"txt:输出txt文档类型的任务,请选填此项",x.a.createElement("br",null),"可以通过学员答案文件路径设置,展示txt文件内容",x.a.createElement("br",null),x.a.createElement("br",null),"html:web类型的任务,请选填此项",x.a.createElement("br",null),"可以通过Web路由设置,展示html效果预览页",x.a.createElement("br",null),x.a.createElement("br",null),"mp3/mp4:mp3/mp4文件类型的任务,请选填此项",x.a.createElement("br",null),"可以通过学员答案文件路径设置,展示mp3/mp4文件内容",x.a.createElement("br",null),x.a.createElement("br",null)),trigger:"click"},x.a.createElement(j.a,{className:"ml5 font14"}))),x.a.createElement(d.a.Item,{name:"path",label:x.a.createElement("div",null,"学员任务文件 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(该文件将直接显示给学生,需要学生在其中填写代码)")),rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(b.a,{placeholder:"请选择版本库中的代码文件。例: src/step1/HelloWorld.java",onClick:function(){return ne(n.Path)}})),x.a.createElement(d.a.Item,{name:"exec_path",label:x.a.createElement("div",null,"评测执行文件 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(若执行平台脚本,请输入学员任务文件路径;若使用自己设计的脚本测试学生代码,请输入设计的脚本文件路径)")),rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(b.a,{placeholder:"请选择版本库中的代码文件。例:src/step1/HelloWorldTest.java",onClick:function(){return ne(n.ExecPath)}})),4===M.show_type&&(M.web_route||(null==Y?void 0:Y.has_web_route))&&x.a.createElement(d.a.Item,{name:"web_route",label:x.a.createElement("div",null,"Web路由 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(请注意将服务器程序的端口号映射到8080端口)"))},x.a.createElement(b.a,{placeholder:"网站类型实训,请填写Web路由地址。例:java/mypage"})),(1===M.show_type||5===M.show_type||6===M.show_type)&&x.a.createElement(d.a.Item,{name:"original_picture_path",label:x.a.createElement("div",null,"待处理文件路径 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(该路径下的文件将在学员评测本关任务时,作为原始文件显示在查看效果页,供学员参考;请注意与程序文件所在文件夹分开)"))},x.a.createElement(b.a,{placeholder:"请选择版本库中存储了待处理文件(图片/MP3等)的路径。例:src/step1/sourcefiles",onClick:function(){return ne(n.OriginalPicturePath)}})),(1===M.show_type||5===M.show_type||6===M.show_type)&&x.a.createElement(d.a.Item,{name:"expect_picture_path",label:x.a.createElement("div",null,"标准答案文件路径 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(该路径下的文件将在学员评测本关任务时,作为参考答案显示在查看效果页,供学员参考;请注意与程序文件所在文件夹分开)"))},x.a.createElement(b.a,{placeholder:"请选择版本库中存储了标准答案文件(图片/MP3等)的路径。例:src/step1/expectedfiles",onClick:function(){return ne(n.ExpectPicturePath)}})),-1!==M.show_type&&x.a.createElement(d.a.Item,{name:"picture_path",label:x.a.createElement("div",null,"学员答案文件路径 ",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(学员评测本关任务时生成的文件将保存在该路径下,并作为实际输出显示在查看效果页,供学员确认;请注意与程序文件所在文件夹分开)"))},x.a.createElement(b.a,{placeholder:"请在版本库中指定用来保存学员代码实际输出结果的路径。例:src/step1/outputfiles",onClick:function(){return ne(n.PicturePath)}})),x.a.createElement("div",{className:"font16 mb20"},"测试集和系统评分规则"),x.a.createElement(d.a.Item,{className:N.a.formCustom,name:"test_set_score",label:"得分规范:"},x.a.createElement(i.a.Group,null,x.a.createElement(i.a,{value:!1,className:N.a.radioStyle},"通过全部测试集",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(学员评测,仅当所有测试集都正确时,才获得一次性奖励)")),x.a.createElement(i.a,{value:!0,className:N.a.radioStyle},"通过部分测试集",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(学员评测,当至少有一组测试集正确时,即可获得其对应比例的奖励)")))),M.test_set_score&&x.a.createElement(d.a.Item,{className:N.a.formCustom,name:"test_set_average",label:"系统评分占比:"},x.a.createElement(i.a.Group,null,x.a.createElement(i.a,{value:!0},"均分比例"),x.a.createElement(i.a,{value:!1},"自定义比例"))),x.a.createElement(d.a.Item,{className:N.a.formCustom,name:"ignore_space",label:"空格处理:",valuePropName:"checked"},x.a.createElement(c.a,{className:"ml35"},"忽略首尾空格")),x.a.createElement("div",{className:N.a.flexRowCenter},x.a.createElement(d.a.Item,{className:N.a.formCustom,name:"test_set_rules",label:"结果处理:"},x.a.createElement(i.a.Group,{className:"ml25"},x.a.createElement(i.a,{value:0},"文本对比"),x.a.createElement(i.a,{value:1},"表达式匹配"))),1===M.test_set_rules&&x.a.createElement(x.a.Fragment,null,x.a.createElement(d.a.Item,{name:"test_set_rules_expression",rules:[{required:!0,message:"必填项:不能为空"}]},x.a.createElement(b.a,{style:{width:"600px",height:"35px"},placeholder:"适用于输出结果动态变化的程序"})),x.a.createElement(o.a,{overlayClassName:N.a.popover,placement:"bottomLeft",content:x.a.createElement("p",{className:"font12"},"使用示例1:实际输出与预期输出的相对误差在0.01以内,可使用以下表达式:",x.a.createElement("br",null),"(actual-expect)/expect <= 0.01",x.a.createElement("br",null),"使用示例2:实际输出结果包含某段字符串hello,可使用以下表达式:",x.a.createElement("br",null),"string.contains(actual, “hello”)",x.a.createElement("br",null),x.a.createElement("br",null),"若需要对输出结果中每个元素进行操作,可使用list集合",x.a.createElement("br",null),"示例参考:假设程序实际输出为:100 1000 10000;预期输出为:100.01 1000.02 10000.05",x.a.createElement("br",null),"评测要求:实际输出列表中元素与预期输出列表中对应元素相对误差在0.01 之内,可使以下表达式:",x.a.createElement("br",null),"list.forEach( 'math.abs( (actualElem-expectElem)/expectElem ) <= 0.01 ' )",x.a.createElement("br",null),x.a.createElement("br",null),x.a.createElement("a",{href:"https://www.educoder.net/forums/4346",target:"_blank",style:{background:"#0152d9",color:"#fff"}},"点击查看详情说明"),x.a.createElement("br",null)),trigger:"click"},x.a.createElement(j.a,{className:"ml5 mb16 font14"})))),J.map((function(e,t){return x.a.createElement("div",{className:N.a.groupWrap,key:t},x.a.createElement("div",{className:"".concat(N.a.flexRow," ").concat(N.a.flexAlingCenter," font16")},x.a.createElement("span",{className:"mr10"},"组",t+1),M.test_set_score&&x.a.createElement(x.a.Fragment,null,x.a.createElement(b.a,{style:{width:"230px"},className:"ml5 mr5",value:e.score,type:"number",onChange:function(e){var a=J.map((function(a,n){return n===t?Object(f.a)(Object(f.a)({},a),{},{score:e.target.value?Number(e.target.value):0}):a})),n={test_set_average:!1};L(Object(f.a)(Object(f.a)({},M),n)),A.setFieldsValue(n),Z(a)}}),"%"),x.a.createElement(c.a,{className:"font14 ml5",checked:1===e.hidden,onChange:function(e){var a=J.map((function(a,n){return n===t?Object(f.a)(Object(f.a)({},a),{},{hidden:e.target.checked?1:0}):a}));Z(a)}},"隐藏(选中则对学员隐藏本测试集内容)"),x.a.createElement("div",{className:"tr flex1"},0!==t&&x.a.createElement(l.a,{placement:"bottom",title:"删除"},x.a.createElement("i",{className:"iconfont icon-shanchu_Hover font16 c-red current",onClick:function(){var e=J.filter((function(e,a){return a!==t}));re(e)}})))),x.a.createElement(D,{className:"mt10",rows:5,placeholder:"输入",value:e.input,onChange:function(e){var a=J.map((function(a,n){return n===t?Object(f.a)(Object(f.a)({},a),{},{input:e.target.value}):a}));Z(a)}}),x.a.createElement(D,{className:"mt10",rows:5,placeholder:"预期输出",value:e.output,onChange:function(e){var a=J.map((function(a,n){return n===t?Object(f.a)(Object(f.a)({},a),{},{output:e.target.value}):a}));Z(a)}}),x.a.createElement("div",{className:"mt10"},x.a.createElement("span",{className:"font14"},"匹配规则:"),x.a.createElement(i.a.Group,{value:e.match_rule,onChange:function(e){var a=J.map((function(a,n){return n===t?Object(f.a)(Object(f.a)({},a),{},{match_rule:e.target.value}):a}));Z(a)}},x.a.createElement(i.a,{value:"full"},"完全匹配",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(实际输出与预期输出完全相同)")),x.a.createElement(i.a,{value:"last"},"末尾匹配",x.a.createElement("span",{className:"pl10 font12 c-light-black"},"(实际输出的末尾内容与预期输出完全相同)")))))})),x.a.createElement(r.a,{type:"primary",ghost:!0,className:"mt10",onClick:function(){var e=[].concat(Object(s.a)(J),[{hidden:0,input:"",output:"",score:0}]);A.getFieldValue("test_set_average")?re(e):Z(e)}},"新增测试集"),x.a.createElement("p",{className:"mt10 pl10 font12 c-light-black"},"温馨提示:公开测试集和隐藏测试集结合使用,可以降低作弊的机率;隐藏测试集,在“提交评测”时也将被系统自动检测"))),x.a.createElement(d.a.Item,{noStyle:!0},x.a.createElement(C.a,{okButtonProps:{htmlType:"submit"},onCancel:function(){return O.d.push("/shixuns/".concat(P.params.id,"/challenges"))}}))),x.a.createElement(R,{fileType:$,path:null==M?void 0:M[$],onFinish:function(e){return t=e,a=Object(m.a)({},$,t),A.setFieldsValue(a),void L(Object(f.a)(Object(f.a)({},M),a));var t,a}}))}))},ZpRC:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";function n(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function l(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var a=getComputedStyle(e,null);return r(a.overflowY,t)||r(a.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function o(e,t,a,n,r,l,o,i){return l<e&&o>t||l>e&&o<t?0:l<=e&&i<=a||o>=t&&i>=a?l-e-n:o>t&&i<a||l<e&&i>a?o-t+r:0}var i=function(e,t){var a=window,r=t.scrollMode,i=t.block,c=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,m="function"==typeof u?u:function(e){return e!==u};if(!n(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],d=e;n(d)&&m(d);){if((d=d.parentElement)===f){p.push(d);break}null!=d&&d===document.body&&l(d)&&!l(document.documentElement)||null!=d&&l(d,s)&&p.push(d)}for(var v=a.visualViewport?a.visualViewport.width:innerWidth,h=a.visualViewport?a.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,E=e.getBoundingClientRect(),y=E.height,_=E.width,x=E.top,O=E.right,j=E.bottom,w=E.left,k="start"===i||"nearest"===i?x:"end"===i?j:x+y/2,N="center"===c?w+_/2:"end"===c?O:w,C=[],S=0;S<p.length;S++){var I=p[S],P=I.getBoundingClientRect(),T=P.height,A=P.width,R=P.top,z=P.right,F=P.bottom,V=P.left;if("if-needed"===r&&x>=0&&w>=0&&j<=h&&O<=v&&x>=R&&j<=F&&w>=V&&O<=z)return C;var D=getComputedStyle(I),W=parseInt(D.borderLeftWidth,10),H=parseInt(D.borderTopWidth,10),M=parseInt(D.borderRightWidth,10),L=parseInt(D.borderBottomWidth,10),B=0,q=0,Y="offsetWidth"in I?I.offsetWidth-I.clientWidth-W-M:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-H-L:0;if(f===I)B="start"===i?k:"end"===i?k-h:"nearest"===i?o(g,g+h,h,H,L,g+k,g+k+y,y):k-h/2,q="start"===c?N:"center"===c?N-v/2:"end"===c?N-v:o(b,b+v,v,W,M,b+N,b+N+_,_),B=Math.max(0,B+g),q=Math.max(0,q+b);else{B="start"===i?k-R-H:"end"===i?k-F+L+G:"nearest"===i?o(R,F,T,H,L+G,k,k+y,y):k-(R+T/2)+G/2,q="start"===c?N-V-W:"center"===c?N-(V+A/2)+Y/2:"end"===c?N-z+M+Y:o(V,z,A,W,M+Y,N,N+_,_);var U=I.scrollLeft,K=I.scrollTop;k+=K-(B=Math.max(0,Math.min(K+B,I.scrollHeight-T+G))),N+=U-(q=Math.max(0,Math.min(U+q,I.scrollWidth-A+Y)))}C.push({el:I,top:B,left:q})}return C};function c(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var a=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(a?[]:i(e,t));if(!a){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,r=e.top,l=e.left;n.scroll&&a?n.scroll({top:r,left:l,behavior:t}):(n.scrollTop=r,n.scrollLeft=l)}))}(i(e,n),n.behavior)}}},bT9E:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(e,t){var a=Object(n.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete a[e]})),a}},nZ20:
|
|
|
/*!************************************************************************************!*\
|
|
|
!*** ./src/pages/Shixuns/Detail/Challenges/components/EditHead/index.less?modules ***!
|
|
|
\************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={icons:"icons___3O80F"}}}]); |