goj/document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/main_008.js

2 lines
122 KiB
JavaScript
Raw Permalink Normal View History

2021-08-24 02:03:45 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1007:function(e,t,n){"use strict";var r=n(2),a=n(3),o=n.n(a),c=n(11),i=n.n(c),s=Array.from(Array(12),(function(e,t){return Object(r.b)("span",{className:"Spinner-blade-12"},t)}));function l(e){var t=e.className,n=e.white,a=e.large;return Object(r.b)("div",{className:i()("Spinner-blade",t,{"Spinner-blade--large":a,"Spinner-blade--white":n}),children:s})}l.propTypes={className:o.a.string,large:o.a.bool,white:o.a.bool};var u=l;t.a=u},1013:function(e,t,n){e.exports=n(369),e.exports.CJKSpace=n(1273).CJKSpace},1017:function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return d}));var r=n(3),a=n.n(r),o=n(1),c=n(11),i=n.n(c),s=n(177),l=n(5),u=function(e){var t=e.title,n=e.subtitle,r=e.attrInfo,a=e.coverUrl,o=e.avatarUrl,c=e.avatarFit;return Object(l.g)("div",null,a&&Object(l.g)("div",{className:"HoverCard-coverContainer"},Object(l.g)("img",{className:"HoverCard-cover",src:a,alt:"cover"})),Object(l.g)("div",{className:i()("HoverCard-titleContainer",{"HoverCard-titleContainer--noAvatar":!a})},o&&Object(l.g)(s.a,{size:68,className:"HoverCard-avatar",url:o,imgFit:c}),Object(l.g)("div",{className:i()("HoverCard-titleText",{"HoverCard-titleText--noAvatar":!o})},Object(l.g)("div",{className:"HoverCard-title"},t),n&&Object(l.g)("div",{className:"HoverCard-subtitle"},n)),r&&Object(l.g)("div",{className:"HoverCard-attrInfo"},r)))};u.propTypes={title:a.a.node,subtitle:a.a.node,attrInfo:a.a.node,coverUrl:a.a.string,avatarUrl:a.a.string,avatarFit:a.a.oneOf(["fill","contain","cover","none","scale-down"])};var d=u,p=n(20),f=n.n(p),h=n(21),b=n.n(h),m=n(22),v=n.n(m),g=n(23),O=n.n(g),j=n(13),y=n.n(j),w=n(33),C=n.n(w),k=n(41),E=n.n(k),R=n(83),M=n.n(R),x=n(375),S=n(138);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return O()(this,n)}}var I=function(e){v()(n,e);var t=T(n);function n(){var e;f()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={opened:!1,placement:null,loaderStyle:null},e.handleOpen=function(t){var n=t.arrowStyle,r=t.placement,a=e.props.onOpen;a&&a(),e.setState({opened:!0,placement:r,loaderStyle:n})},e.handleClose=function(){var t=e.props.onClose;t&&t(),e.setState({opened:!1})},e}return b()(n,[{key:"render",value:function(){var e=M()(this.props,["onOpen","onClose"]),t=e.toggler,n=e.children,r=e.isLoading,a=e.onRef,c=e.size,s=E()(e,["toggler","children","isLoading","onRef","size"]),u=this.state,d=u.opened,p=u.loaderStyle;return Object(l.g)(S.a,C()({noLayer:!0,toggler:Object(l.g)("div",null,t),toggleEvent:"hover",targetClassName:"HoverCard-popoverTarget",placement:"bottom-left",onOpen:this.handleOpen,onClose:this.handleClose},s),Object(l.g)("div",{className:i()("HoverCard-container",{"HoverCard-container--large":"large"===c}),ref:a},r&&Object(l.g)("div",{className:"HoverCard-loading",style:p},Object(l.g)(x.a,null)),Object(l.g)("div",{className:i()("HoverCard",{"HoverCard--isLoading":r||!d})},o.Children.map(n,(function(e){return e&&("string"==typeof e?Object(l.g)("div",{className:"HoverCard-item"},e):Object(o.cloneElement)(e,{className:i()("HoverCard-item",e.props.className)}))})))))}}]),n}(o.Component);I.propTypes={toggler:a.a.node.isRequired,isLoading:a.a.bool,onOpen:a.a.func,onClose:a.a.func,size:a.a.oneOf(["default","large"])},I.defaultProps={margin:16,align:"left",topExcludedHeight:60,size:"default"};var N=I},1023:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),a=n(6),o=n(25),c=n(24),i=Object(a.a)("user",["UPDATE_FOLLOWERS_PIN"]).UPDATE_FOLLOWERS_PIN;function s(e,t,n){return function(a,s){var l=s(),u=l.entities.users,d=l.currentUser,p=u[e];return a(n?Object(o.h)(c.U.blocked,"red"):{
//# sourceMappingURL=main.user-hover-card.a78b4d4fd47ff6778629.js.map