1"use strict";(self.webpackChunknextleap=self.webpackChunknextleap||[]).push([[2899,7864],{2081:(e,t)=>{var n;t.O=void 0,function(e){e.DAY="DAY",e.WEEK="WEEK"}(n||(t.O=n={}))},4130:(e,t,n)=>{n.d(t,{$4:()=>A,Bm:()=>h,CZ:()=>D,Lg:()=>d,VI:()=>l,WB:()=>u,dq:()=>E,jo:()=>p,pp:()=>s,ro:()=>a,tJ:()=>i,vp:()=>c});var r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function s(e){var t=new Date(e),n=t.getMonth(),s=t.getDate(),a=t.getDay();return"".concat(r[a],", ").concat(o[n]," ").concat(s)}function a(e){var t=new Date(e),n=t.getMonth(),r=t.getDate(),s=t.getFullYear();return"".concat(r," ").concat(o[n],", ").concat(s)}function i(e){var t=new Date(e),n=t.getMonth(),r=t.getDate();return"".concat(o[n]," ").concat(r)}function c(e){var t=new Date(e),n=t.getMonth();return"".concat(o[n]," ").concat(t.getFullYear())}function l(e){var t=new Date(e),n=t.getMonth(),r=t.getDate();return"".concat(r," ").concat(o[n])}function u(e){return new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})}function d(e){var t=new Date(e),n=t.getMonth(),r=t.getDate(),s=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0});return"".concat(o[n]," ").concat(r,", ").concat(s)}function E(e){var t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(e),r=n.getMonth(),s=n.getDate(),a=n.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!0});return"".concat(o[r]," ").concat(s,", ").concat(a," (").concat(t,")")}function p(e,t){var n=new Date(e),s=new Date(t),a=n.getMonth(),i=n.getDate(),c=s.getMonth(),l=s.getDate(),u=a==c&&l-i==1,d=(u?"".concat(r[n.getDay()],", "):"")+"".concat(o[a]," ").concat(i),E=(u?"".concat(r[s.getDay()],", "):"")+"".concat(o[c]," ").concat(l),p=u?"&":"-";return"".concat(d," ").concat(p," ").concat(E)}function h(e,t){var n=new Date(e),r=new Date(t),s=n.getMonth(),a=n.getDate(),i="".concat(o[s]," ").concat(a),c=r.getMonth(),l=r.getDate(),u="".concat(o[c]," ").concat(l);return"".concat(i," - ").concat(u)}function D(e){return e.setHours(0,0,0,0).valueOf()}function A(e){var t=new Date(e),n=t.getMonth(),r=t.getDate();return"".concat(r," ").concat(o[n])}},31763:(e,t)=>{var n;t.R=void 0,function(e){e.SINGLE_VALUE="SINGLE_VALUE",e.MULTI_VALUE="MULTI_VALUE",e.DATE_RANGE="DATE_RANGE",e.DATE_RANGE_DROPDOWN="DATE_RANGE_DROPDOWN",e.SEARCHABLE_SINGLE_VALUE="SEARCHABLE_SINGLE_VALUE",e.SEARCHABLE_MULTI_VALUE="SEARCHABLE_MULTI_VALUE",e.CALENDAR="CALENDAR"}(n||(t.R=n={}))},32195:(e,t)=>{var n;t.c=void 0,function(e){e.DROPDOWN="DROPDOWN",e.SEARCHABLE_DROPDOWN="SEARCHABLE_DROPDOWN",e.INLINE="INLINE",e.TAB_CARD="TAB_CARD"}(n||(t.c=n={}))},54086:(e,t)=>{var n;t.F=void 0,function(e){e.DROPDOWN="DROPDOWN",e.SEARCHABLE_DROPDOWN="SEARCHABLE_DROPDOWN",e.MULTI_SELECT="MULTI_SELECT"}(n||(t.F=n={}))},58095:(e,t,n)=>{n.d(t,{Q:()=>d});var r=n(89379),o=n(65043),s=n(56443),a=n(86805),i=n(66894),c=n(11447),l=n(97902),u=n(70579);class d extends o.PureComponent{render(){return this.renderRunResponseView()}_renderCodeAnswers(e,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{style:(0,r.A)((0,r.A)({color:t},this.props.pageContext.pageStyle.body2),{},{fontWeight:500,marginTop:24,marginBottom:8}),children:"Your Answer"}),(0,u.jsx)("div",{style:{width:"100%",display:"flex",rowGap:16,flexDirection:"column"},children:e.map(((e,t)=>e.type===i.w.STRING?(0,u.jsx)("div",{children:e.data||""},t):this._renderTableData(e,t)))})]})}_renderTableData(e,t){return 0===e.headers.length?(0,u.jsx)("div",{style:(0,r.A)((0,r.A)({},this.props.pageContext.pageStyle.body2),{},{fontWeight:500,marginBottom:8}
1),children:"No Records found"}):(0,u.jsx)(c.o,{dataId:t+"",columnHeaders:e.headers.map((e=>({accessor:e,header:e,type:l.d.TEXT,showByDefault:!0,isSortable:!1,hidden:!1}))),rows:e.rows.map((e=>e.map((e=>({type:"TEXT",value:{text:e||"NULL"}}))))),pageContext:this.props.pageContext,dispatchAction:()=>{}})}_renderError(e){return(0,u.jsx)("div",{style:(0,r.A)((0,r.A)({color:"#D73939",background:"#FAE7E7"},this.props.pageContext.pageStyle.body2),{},{padding:20,marginTop:12,whiteSpace:"pre-wrap",width:"100%",borderRadius:8}),children:e})}_getRejectedHeadline(e){if(e.errorStatus)switch(e.errorStatus){case a.j.COMPILER_ERROR:return"Compile Error";case a.j.TIME_LIMIT_EXCEEDED:return"Time Limit Exceeded";case a.j.WRONG_ANSWER:return"Incorrect Answer";case a.j.RUNTIME_ERROR:return"Something went wrong! Please try again."}return"Incorrect Answer"}renderRunResponseView(){const e=this.props.response;switch(e.status){case s.z.ACCEPTED:return(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)("div",{style:(0,r.A)((0,r.A)({color:"#0A7D41"},this.props.pageContext.pageStyle.body1),{},{fontWeight:500}),children:"Solution Accepted"}),e.codeAnswer&&this._renderCodeAnswers(e.codeAnswer,"#0A7D41")]});case s.z.REJECTED:return(0,u.jsxs)("div",{style:{width:"100%"},className:"problem-result-view",children:[(0,u.jsx)("div",{style:(0,r.A)((0,r.A)({color:"#D73939"},this.props.pageContext.pageStyle.body1),{},{fontWeight:500,marginBottom:20}),children:this._getRejectedHeadline(e)}),e.stderr&&this._renderError(e.stderr),e.compileOutput&&this._renderError(e.compileOutput),e.codeAnswer&&this._renderCodeAnswers(e.codeAnswer,"#D73939")]});default:return null}}}},66894:(e,t)=>{var n;t.w=void 0,function(e){e.STRING="string",e.TABLE="table"}(n||(t.w=n={}))},70569:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(89379),o=(n(65043),n(92143)),s=n(53869),a=n(56443),i=n(58095),c=n(70579);class l extends o.Ay{constructor(e){super(e),this.pollingInterval=void 0,this._isMounted=!1,this._checkStatus=()=>{var e,t;const n=o.Ay.getPageVolatileData(this.props,s.j.EDITOR_COMPILER);n&&n.response&&(null===(e=n.response.result)||void 0===e?void 0:e.status)!==a.z.ACCEPTED&&(null===(t=n.response.result)||void 0===t?void 0:t.status)!==a.z.REJECTED||this._stopPolling(),!0===this._isMounted&&null!==n&&void 0!==n&&n.response&&this.setState({response:null===n||void 0===n?void 0:n.response})},this._stopPolling=()=>{void 0!==this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=void 0)},this.state=l.getDerivedStateFromProps(e,{})}static getDerivedStateFromProps(e,t){const n=o.Ay.getPageVolatileData(e,s.j.EDITOR_COMPILER);if(n){return{response:n}}return t}
1getWidgetName(){return"Problem Submission Status"}componentDidMount(){void 0===this.pollingInterval&&(this.pollingInterval=setInterval(this._checkStatus,2e3)),this._isMounted=!0}componentWillUnmount(){this._stopPolling(),this._isMounted=!1}renderContent(e){var t,n,o;if(null===(t=this.state)||void 0===t||!t.response||null===(n=this.state)||void 0===n||!n.response.result)return null;switch(null===(o=this.state.response.result)||void 0===o?void 0:o.status){case a.z.CREATED:case a.z.QUEUED:case a.z.RUNNING:return(0,c.jsxs)("div",{className:"problem-submission-status-parent",children:[(0,c.jsx)("div",{style:(0,r.A)((0,r.A)({},this.props.pageContext.pageStyle.heading4),{},{fontWeight:500}),children:"Submission Successful. Evaluation in progress"}),(0,c.jsx)("div",{className:"problem-submission-status-loader",children:(0,c.jsx)("div",{className:"loader-line"})})]});case a.z.REJECTED:case a.z.ACCEPTED:return(0,c.jsx)(i.Q,{pageContext:this.props.pageContext,response:this.state.response.result})}}}},78622:(e,t)=>{var n;t.C=void 0,function(e){e.LEFT="LEFT",e.RIGHT="RIGHT",e.CENTER="CENTER"}(n||(t.C=n={}))},96014:(e,t)=>{var n;t.R=void 0,function(e){e.INLINE="INLINE",e.RIGHT_ALIGN_MODAL="RIGHT_ALIGN_MODAL"}(n||(t.R=n={}))},96161:(e,t)=>{var n;t.Q=void 0,function(e){e.ABSOLUTE="ABSOLUTE",e.PERCENTAGE="PERCENTAGE"}(n||(t.Q=n={}))},97902:(e,t)=>{var n;t.d=void 0,function(e){e.DROPDOWN="DROPDOWN",e.TEXT="TEXT",e.DATE="DATE",e.NUMBER="NUMBER",e.MORE_ACTION="MORE_ACTION",e.LINK="LINK",e.DOT_TEXT="DOT_TEXT",e.BAR="BAR",e.SEGMENTED_BAR="SEGMENTED_BAR"}(n||(t.d=n={}))}}]); 2//# sourceMappingURL=2899.6d1664a6.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.