1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5212],{42336:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sme/dashboard",function(){return t(73943)}])},73943:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return w}});var n=t(28598),c=t(23397),i=t(54803),l=t.n(i),a=t(33209),r=t(20480),o=t(39705),d=t(2721),x=t(83844),m=(0,t(98012).Z)((0,n.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),h=t(43920),j=t(90935),p=t(82173),v=t(37734),N=t(92083),u=t.n(N),_=t(60071),b=t.n(_),f=t(82684),g=t(65158),w=()=>{let{showToast:e}=(0,o.p)(),[s,t]=(0,f.useState)(!1),[i,N]=(0,f.useState)(),[_,w]=(0,f.useState)([]),[y,F]=(0,f.useState)(!1),S=async()=>{try{let e=await (await fetch("https://api-hirezy.msvgo.com/assessments/v1/interviews/reports?test=abcd-xyz",{method:"GET",headers:{"Content-Type":"application/json"}})).json();200===e.code?w(null==e?void 0:e.data):console.error("Failed to fetch data. Server returned ".concat(e.code))}catch(e){console.error("Error during fetch:",e)}};(0,f.useEffect)(()=>{S()},[]);let k=e=>{F(!0),N(e.session_id)},E=s=>{let t="".concat(window.location.origin,"/sme/candidate/").concat(s);navigator.clipboard.writeText(t).then(()=>{e({message:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{style:{color:"#23AA17"},children:(0,n.jsx)(d.Z,{})}),"Candidate analysis link copied"]}),variant:"Success",classElm:"upload_resume"})}).catch(e=>{console.error("Failed to copy: ",e)})},C=(e,s)=>{let t=u()(e),n=u()(s),c=u().duration(n.diff(t)),i=c.asSeconds();return"".concat(Math.floor(i/60),"m : ").concat(Math.floor(i%60),"s")};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:l().SalesRepresentative,children:[(0,n.jsx)(r.Z,{}),(0,n.jsx)("div",{className:l().SalesRepresentative_wrap,children:(0,n.jsx)("div",{className:"container mt-5",children:(0,n.jsx)("div",{className:l().tab_wrap,children:(0,n.jsx)("div",{className:l().content,children:(0,n.jsx)("div",{className:"rightside-content",children:(null==_?void 0:_.length)>0?(0,n.jsxs)("div",{className:"table-responsive-xl mb-4",children:[(0,n.jsxs)("table",{className:"table mb-0",children:[(0,n.jsx)("thead",{className:"",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsxs)("div",{className:"row align-items-center",children:[(0,n.jsx)("div",{className:"col-12 text-center mb-2 top-item ".concat(l().top_item)}),(0,n.jsxs)("div",{className:"col-12 text-start pt-2 mb-0 ps-3",children:["Date ",(0,n.jsx)("br",{})," ",(0,n.jsx)("span",{className:l().text_sm,children:(0,n.jsx)("i",{children:"Time"})})]})]})}),(0,n.jsx)("th",{children:(0,n.jsxs)("div",{className:"row align-items-center",children:[(0,n.jsx)("div",{className:"col-12 text-center mb-2 top-item ".concat(l().top_item),children:"Personal Details"}),(0,n.jsx)("div",{className:"col-4 text-start",children:"Name"})]})}),(0,n.jsx)("th",{children:(0,n.jsxs)("div",{className:"row align-items-center justify-content-center",children:[(0,n.jsx)("div",{className:"col-12 mb-2 top-item ".concat(l().top_item),children:"Detailed Analysis"}),(0,n.jsx)("div",{className:"col-12 text-center d-flex align-items-center",children:(0,n.jsxs)("span",{className:"d-inline-block mt-2 ".concat(l().text_sm," "),style:{whiteSpace:"nowrap"},children:[(0,n.jsx)("i",{className:"mb-1 d-inline-block",children:"Total Time(T.T.)"})," ",(0,n.jsx)("br",{}),(0,n.jsx)("i",{children:"Avg. Response Time(A.R.T.)"})]})})]})}),(0,n.jsx)("th",{style:{width:s?"670px":"443px",position:"relative",transition:"all 0.5s"},children:(0,n.jsxs)("div",{className:"row align-items-center pt-2",children:[(0,n.jsxs)("div",{className:"col-12 text-center mb-2 top-item text-center ".concat(l().top_item),children:["Candidate Score \xa0"," ",(0,n.jsx)("i",{children:" ( each out of 10 )"})]}),(0,n.jsx)("div",{className:" text-center ".concat(s?"col-2":"col-4"),children:"Overall"}),(0,n.jsx)("div",{className:" text-center ps-0 pe-0 ".concat(s?"col-2":"col-4"),children:"Explanation"}),s&&(0,n.jsx)("div",{className:"col-8",style:{position:"absolute",right:0},children:(0,n.jsx)("div",{className:l().badge_elm,children:(0,n.jsxs)("div",{className:"row align-items-center text-center w-100",children:[(0,n.jsx)("div",{className:"col-2",children:(0,n.jsxs)("i",{children:["Prompt-",(0,n.jsx)("br",{}),"ness"]})}),(0,n.jsx)("div",{className:"col-2",children:(0,n.jsxs)("i",{children:["Communi-",(0,n.jsx)("br",{}),"cation"]})}),(0,n.jsx)("div",{className:"col-2",children:(0,n.jsxs)("i",{className:"d-flex",children:["Patience & ",(0,n.jsx)("br",{}),"Persistence"]})}),(0,n.jsx)("div",{className:"col-3 ps-0",children:(0,n.jsxs)("i",{children:["Resource",(0,n.jsx)("br",{}),"fulness"]})}),(0,n.jsxs)("div",{className:"col-3 ps-0 d-flex align-items-center gap-2 justify-content-center",children:[(0,n.jsxs)("i",{children:["Involve-",(0,n.jsx)("br",{}),"ment"]}),(0,n.jsx)("span",{role:"button",tabIndex:0,className:"".concat(l().icons),onClick:()=>{t(!s)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&t(!s)},children:(0,n.jsx)(p.Z,{fontSize:"inherit"})})]})]})})}),!s&&(0,n.jsxs)("div",{role:"button",tabIndex:0,className:"col-4 nowrap ps-0 d-flex align-items-center gap-2 justify-content-center",onClick:()=>{t(!s)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&t(!s)},children:["Others"," ",(0,n.jsx)("span",{className:"".concat(l().icons),children:(0,n.jsx)(v.Z,{fontSize:"inherit"})})]})]})}),(0,n.jsx)("th",{children:(0,n.jsxs)("div",{className:"row align-items-center",children:[(0,n.jsx)("div",{className:"col-12 text-center mb-2 top-item text-center ".concat(l().top_item)}),!s&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("div",{className:"col-6 text-center pt-2 mb-0",children:"View report"}),(0,n.jsx)("div",{className:"col-6 text-center pt-2 mb-0",children:"Share Analysis"})]}),s&&(0,n.jsx)("div",{className:" ".concat(s?"col-3 text-center pt-2 mb-0":"col-2 text-center pt-2 mb-0")})]})})]})}),(0,n.jsx)("tbody",{className:"tablebody",children:_&&(null==_?void 0:_.map((e,t)=>{var c,i,a,r,o;return(0,n.jsxs)("tr",{className:l().dirty_row,children:[(0,n.jsx)("td",{className:"",children:(0,n.jsx)("div",{className:"d-flex justify-content-start align-items-center gap-2",children:(0,n.jsxs)("span",{children:[" ",u()(e.created_at).format("DD MMM YY"),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:l().text_sm,children:(0,n.jsx)("i",{className:"text_sm",children:u()(e.created_at).format("hh:mm a")})})]})})}),(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"row Personal_Details align-items-start pt_10",children:[(0,n.jsxs)("div",{className:"col-7 text-start",children:[(null==e?void 0:e.user_name)&&(0,n.jsx)("h5",{children:null==e?void 0:e.user_name}),!(null==e?void 0:e.user_name)&&(0,n.jsx)("h5",{children:(null==e?void 0:e.interview_type)==="1"?"Joe":"Sem"})]})," "]})}),(0,n.jsx)("td",{children:(0,n.jsx)("div",{className:"row align-items-center justify-content-center ",children:(0,n.jsxs)("div",{className:"col-8 text-left",children:[" ",(0,n.jsxs)("span",{className:"d-inline-block mt-2 ".concat(l().text_sm),children:[(0,n.jsxs)("i",{children:["T.T. -"," ",C(null==e?void 0:e.created_at,null==e?void 0:e.end_at)]})," ",(0,n.jsx)("br",{}),(0,n.jsxs)("i",{children:["A.R.T. -"," ",u().utc(u().duration(e.avg_res_time,"seconds").asMilliseconds()).format(e.avg_res_time>3600?"H[h] m[m] s[s]":"m[m] s[s]")]})]})]})})}),(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"row align-items-center pt_10",children:[(0,n.jsxs)("div",{className:" text-center ".concat(s?"col-2":"col-4"),children:[" ",(0,n.jsx)("div",{className:l().cardOverall,style:{backgroundColor:+e.overall_score>6?"#C4E7C1":+e.overall_score>4&&5.9>+e.overall_score?"#FBE6B0":"#FCCBB7",margin:"0 auto"},children:(0,n.jsxs)("b",{children:[" ",e.overall_score," "]})})]}),(0,n.jsxs)("div",{className:" text-center pe-0 ps-0 ".concat(s?"col-2":"col-4"),children:[" ",parseFloat(e.explanation_score).toFixed(2)]}),!s&&(0,n.jsxs)("div",{className:" text-center nowrap ps-0 d-flex align-items-center gap-2 justify-content-center ".concat(s?"col-2":"col-4"),children:[" ",((parseFloat(null!==(c=e.problem_solving_score)&&void 0!==c?c:0)+parseFloat(null!==(i=null==e?void 0:e.communication_score)&&void 0!==i?i:0)+parseFloat(null!==(a=null==e?void 0:e.Patience_persistence_score)&&void 0!==a?a:0)+parseFloat(null!==(r=null==e?void 0:e.resourcefulness_score)&&void 0!==r?r:0)+parseFloat(null!==(o=null==e?void 0:e.engagement_score)&&void 0!==o?o:0))/5).toFixed(1)]}),s&&(0,n.jsx)("div",{className:"col-8",children:(0,n.jsx)("div",{className:l().badge_elm,children:(0,n.jsxs)("div",{className:"row align-items-center text-center",children:[(0,n.jsx)("div",{className:"col-2 pe-0",children:(0,n.jsxs)("i",{children:[" ",parseFloat(e.problem_solving_score).toFixed(2)]})}),(0,n.jsx)("div",{className:"col-2",children:(0,n.jsx)("i",{children:parseFloat(e.communication_score).toFixed(2)})}),(0,n.jsx)("div",{className:"col-2",children:(0,n.jsx)("i",{children:parseFloat(e.Patience_persistence_score).toFixed(2)})}),(0,n.jsx)("div",{className:"col-3 ps-0",children:(0,n.jsxs)("i",{children:[" ",parseFloat(e.resourcefulness_score).toFixed(2)]})}),(0,n.jsx)("div",{className:"col-3 text-start",children:(0,n.jsx)("i",{children:parseFloat(e.engagement_score).toFixed(2)})})]})})})]})}),(0,n.jsx)("td",{className:"t-content pt_10",children:(0,n.jsxs)("div",{className:"row align-items-center",children:[!s&&(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("div",{className:"col-6 text-center pt-2 mb-0",children:(0,n.jsx)("span",{role:"button",tabIndex:0,onClick:()=>k(e),onKeyDown:s=>{("Enter"===s.key||" "===s.key)&&k(e)},className:"".concat(l().iconElm),children:(0,n.jsx)(x.Z,{fontSize:"inherit"})})}),(0,n.jsx)("div",{className:"col-6 text-center pt-2 mb-0",children:(0,n.jsx)("span",{role:"button",tabIndex:0,className:"".concat(l().iconElm),style:{transform:"rotate(132deg)"},onClick:()=>E(e.session_id),onKeyDown:s=>{("Enter"===s.key||" "===s.key)&&E(e.session_id)},children:(0,n.jsx)(m,{fontSize:"inherit"})})})]}),s&&(0,n.jsx)("div",{className:"View_Report ".concat(s?"col-3 text-center pt-2 mb-0 ps-4 pe-0":"col-2 text-center pt-2 mb-0 "),children:(0,n.jsxs)(g.Z,{className:"dropdownElm dropdownElm_filter ".concat(l().dropdown," ").concat(l().dropdown_icon),align:"end",children:[(0,n.jsx)(g.Z.Toggle,{className:" border-0 shadow-none px-2 p-0 rounded mx-0",i
1d:"dropdown-basic",children:(0,n.jsx)("span",{children:(0,n.jsx)(j.Z,{fontSize:"inherit"})})}),(0,n.jsxs)(g.Z.Menu,{className:"px-1 pt-0 rounded-top-0 w-auto",children:[(0,n.jsxs)(g.Z.Item,{onClick:()=>k(e),className:"d-flex align-items-center justify-content-start gap-2 ",children:[(0,n.jsx)("span",{className:"py-2",style:{fontSize:"18px"},children:(0,n.jsx)(x.Z,{fontSize:"inherit"})}),"Report"]}),(0,n.jsxs)(g.Z.Item,{className:"d-flex align-items-center justify-content-start gap-2 py-2",onClick:()=>E(e.session_id),children:[(0,n.jsxs)("span",{style:{fontSize:"18px"},children:[" ",(0,n.jsx)(h.Z,{fontSize:"inherit"})]}),"Share Analysis"]})]})]})})]})})]},t)}))})]}),(0,n.jsx)("div",{className:"pagination-main d-flex justify-content-md-end"})]}):(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsx)(b(),{src:c.Z,alt:"all applicant",style:{height:"400px",width:"400px"}}),(0,n.jsxs)("h5",{style:{fontSize:"20px",fontWeight:"500",lineHeight:"146%"},children:["No candidate has attempted interview yet.",(0,n.jsx)("br",{}),"Send a reminder to candidates shortlisted for Interview"]})]})})})})})})]}),(0,n.jsx)(a.Z,{viewReportModal:y,setViewReportModal:F,sessionId:null!=i?i:"abcd-xyz"})]})}}},function(e){e.O(0,[5762,6245,7691,4434,2083,8757,493,480,1473,9329,3364,7839,9774,2888,179],function(){return e(e.s=42336)}),_N_E=e.O()}]);
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.