1"use strict";(self.webpackChunkadmin_app2=self.webpackChunkadmin_app2||[]).push([[1424],{17809(e,t,n){var a=n(20561),i=n(74848);const r=(0,a.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");n.d(t,["A",0,r])},31424(e,t,n){n.r(t),n.d(t,{default:()=>v});var a=n(32816),i=n(49555),r=n(92207),l=n.n(r),s=n(44914),o=n(7327),d=n.n(o),c=n(72876),u=n(17809),p=n(45896).A.instance;function f(e){return g.apply(this,arguments)}function g(){return(g=(0,a.A)(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,p.get(t);case 1:return n=e.sent,e.abrupt("return",n.data);case 2:throw e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}n(42941);var h=n(74848);const v=function(){var e=(0,s.useState)([]),t=(0,i.A)(e,2),n=t[0],r=t[1],o=(0,s.useState)(null),p=(0,i.A)(o,2),g=p[0],v=(p[1],(0,s.useState)(!1)),m=(0,i.A)(v,2),_=m[0],x=m[1],A=(0,s.useState)(null),b=(0,i.A)(A,2),j=b[0],N=b[1];(0,s.useEffect)(function(){var e=function(){var e=(0,a.A)(l().mark(function e(){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,f("/v1/challenge/result");case 1:t=e.sent,r(t.data||[]),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();e()},[]);var S=function(){x(!1),N(null)};return g?(0,h.jsx)("div",{children:g}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("main",{id:"main",className:"position-relative",children:(0,h.jsxs)("div",{className:"relative-pos challange-event",children:[(0,h.jsx)(d(),{title:"Challenge Events",columns:[{title:"Name",field:"name"},{title:"Start Date",field:"start_date"},{title:"End Date",field:"end_date"},{title:"Time Duration",field:"time_duration"},{title:"Total No of Questions",field:"total_no_of_questions",render:function(e){return e.total_no_of_questions||"N/A"}},{title:"Passing Score",field:"passing_score",render:function(e){return e.passing_score||"N/A"}},{title:"Total Number of Students",field:"TotalNumberOfStudents"},{title:"Actions",render:function(e){return(0,h.jsx)("a",{onClick:function(){return N(e),void x(!0)},style:{color:e.candidateList.length>0?"#ed502e":"gray",cursor:e.candidateList.length>0?"pointer":"default",textDecoration:(e.candidateList.length,"none")},disabled:0===e.candidateList.length,className:e.candidateList.length>0?"link-active":"link-disabled",children:e.candidateList.length>0?"View Results":"No Results"})}}],data:n,options:{actionsColumnIndex:-1,pageSize:10,paging:(null==n?void 0:n.length)>=10,paginationType:"stepped",sorting:!0,draggable:!1}}),(0,h.jsxs)(c.Dialog,{open:_,onClose:S,maxWidth:"md",fullWidth:!0,children:[(0,h.jsx)(c.DialogTitle,{children:(0,h.jsx)(c.Button,{edge:"end",color:"inherit",onClick:S,"aria-label":"close",style:{position:"absolute",right:8,top:8},children:(0,h.jsx)(u.A,{})})}),(0,h.jsx)(c.DialogContent,{dividers:!0,children:j?(0,h.jsx)(d(),{title:"Challenge Results",columns:[{title:"Name",field:"candidate_data.name",render:function(e){var t;return(null===(t=e.candidate_data)||void 0===t?void 0:t.name)||"Unknown"}},{title:"Email ID",field:"candidate_data.email_id",render:function(e){var t;return(null===(t=e.candidate_data)||void 0===t?void 0:t.email_id)||"No Email"}},{title:"Total Score",field:"total_score.$numberDecimal",render:function(e){var t;return(null===(t=e.total_score)||void 0===t?void 0:t.$numberDecimal)||"N/A"}},{title:"Passing Score",field:"passing_score.$numberDecimal",render:function(e){var t;return(null===(t=e.passing_score)||void 0===t?void 0:t.$numberDecimal)||"N/A"}},{title:"Passing Status",field:"passing_status",render:function(e){return e.passing_status||"N/A"}}],data:j.candidateList,options:{paging:!0,sorting:!0,paginationType:"stepped",pageSize:10,draggable:!1}}):(0,h.jsx)(c.Typography,{children:"No Challenge Selected"})}),(0,h.jsx)(c.DialogActions,{children:(0,h.jsx)(c.Button,{onClick:S,color:"primary",children:"Close"})})]})]})})})}}}]);
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.