https://www.codingjr.online/_next/static/chunks/pages/panel/ai_interview_results-38e575f8fab82389.js
1void 0===Promise.withResolvers&&(Promise.withResolvers=function(){let e,t;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[881],{10737:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/panel/ai_interview_results",function(){return i(22301)}])},51996:function(e,t,i){"use strict";var r=i(85893);t.Z=e=>{let{className:t,stroke:i}=e;return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,r.jsx)("circle",{cx:"5",cy:"12",r:"2",stroke:i,strokeWidth:"1.5"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"2",stroke:i,strokeWidth:"1.5"}),(0,r.jsx)("circle",{cx:"19",cy:"12",r:"2",stroke:i,strokeWidth:"1.5"})]})}},22301:function(e,t,i){"use strict";i.r(t);var r=i(85893),n=i(51996),a=i(41382),s=i(88057),o=i(68089),c=i(73237),l=i(87066),u=i(47041);i(18159);var d=i(32333),m=i(41664),h=i.n(m),g=i(11163),f=i(67294),p=i(9473);let w=()=>{let[e,t]=(0,f.useState)([]),[i,a]=(0,f.useState)(void 0),[m,w]=(0,f.useState)(1),v=[10,20,30,50,100],[y,b]=(0,f.useState)(v[0]),[x,j]=(0,f.useState)(!1),[N,_]=(0,f.useState)(null),[k,T]=(0,f.useState)(!1),S=(0,o.CG)(e=>e.userData),H=(0,p.I0)(),E=(0,g.useRouter)();(0,f.useEffect)(()=>{H((0,c.Iw)("Interview Results"))},[H]),(0,f.useEffect)(()=>{S&&C(m,y)},[S]);let R=(e,t,i)=>({serial_no:i+t+1,id:e.id,created_at:new Date(e.created_at).toLocaleString("en-US",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),email:e.email,name:e.name,mobile:e.mobile}),C=async(e,i)=>{j(!0);try{let r="".concat(s._n,"/admin/interviewer?page=").concat(e,"&limit=").concat(i),n=await l.Z.get(r,{headers:{Authorization:"Bearer ".concat((0,u.getCookie)("token"))}});if(200===n.status){let r=n.data.data.map((t,r)=>R(t,r,(e-1)*i));t(r),a(n.data.total_count)}else t([])}catch(e){if(l.Z.isAxiosError(e)){if(e.response)switch(e.response.status){case 400:case 404:break;case 401:setTimeout(()=>{E.push("/sign_in")},2500);return}else e.request}}finally{j(!1)}};return x?(0,r.jsx)("div",{className:"fixed inset-0 flex items-center justify-center panel ",children:(0,r.jsx)("span",{className:"inline-block h-12 w-12 animate-spin rounded-full border-4 border-primary border-t-transparent align-middle"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:" h-full w-full ",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center p-6 rounded-lg bg-brand/10",children:[(0,r.jsxs)("div",{className:"mb-4 md:mb-0",children:[(0,r.jsx)("div",{"data-test":"resume-builder-dashboard-user-name-text",className:"text-xl font-bold leading-7",children:"AI Interview Results"}),(0,r.jsx)("div",{className:"mt-2 text-sm font-normal leading-5",children:"Curie: Elevate your interview experience with AI precision!"})]}),(0,r.jsx)("button",{className:"text-white btn bg-primary mt-4 md:mt-0",onClick:()=>E.push("/ai_interview"),children:"Take Interview"})]}),(0,r.jsx)("div",{className:"datatables py-6",children:(0,r.jsx)(d.w,{noRecordsText:"No results match your search query",highlightOnHover:!0,className:"table-hover whitespace-nowrap",records:e,columns:[{accessor:"serial_no",title:"#"},{accessor:"created_at",title:"Created At"},{accessor:"name",title:"Name"},{accessor:"email",title:"Email"},{accessor:"mobile",title:"Mobile"},{accessor:"actions",title:"Actions",render:e=>(0,r.jsxs)("div",{className:"flex items-center relative",children:[(0,r.jsx)("div",{onClick:()=>{_(e.id),T(!k)},className:"group mr-2 cursor-pointer rounded-[2em] border-[2px] border-primary px-[.5rem] py-[.25rem] hover:bg-primary hover:text-white",children:(0,r.jsx)(n.Z,{stroke:"currentColor",className:"h-[16px] rotate-90 text-primary group-hover:text-white"})}),N===e.id&&(0,r.jsx)("div",{className:"".concat(k?"visible":"invisible"," absolute z-[5] translate-y-10 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5"),children:(0,r.jsx)("div",{className:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu",onClick:()=>
1T(!1),children:(0,r.jsx)(h(),{href:"/ai_interview/result?id=".concat(e.id),className:"block px-4 py-2 text-sm text-gray-500 hover:bg-gray-100 cursor-pointer",role:"menuitem",target:"_blank",rel:"noopener noreferrer",children:"View"})})})]})}],totalRecords:i,recordsPerPage:y,page:m,onPageChange:async e=>{w(e),await C(e,y)},recordsPerPageOptions:v,onRecordsPerPageChange:async e=>{w(1),b(e),await C(1,e)},minHeight:200,paginationText:e=>{let{from:t,to:i,totalRecords:r}=e;return"Showing ".concat(t," to ").concat(i," of ").concat(r," entries")}})})]})})};w.getLayout=e=>(0,r.jsx)(a.Z,{children:e}),t.default=w},29244:function(e,t,i){"use strict";var r=i(67294);function n(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){let t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function a(e,t,i){0===t&&!i&&(null==e?void 0:e.style)&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}let s={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function o(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}let c=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],l=r.forwardRef((e,t)=>{let{animateOpacity:i=!1,animationStateClasses:l={},applyInlineTransitions:u=!0,children:d,className:m="",contentClassName:h,delay:g=0,disableDisplayNone:f=!1,duration:p=500,easing:w="ease",height:v,onHeightAnimationEnd:y,onHeightAnimationStart:b,style:x,contentRef:j}=e,N=Object.assign({},e);
1c.forEach(e=>{delete N[e]});let _=(0,r.useRef)(v),k=(0,r.useRef)(null),T=(0,r.useRef)(),S=(0,r.useRef)(),H=(0,r.useRef)(Object.assign(Object.assign({},s),l)),E="undefined"!=typeof window,R=(0,r.useRef)(!!E&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion)").matches),C=R.current?0:g,A=R.current?0:p,P=v,O="visible";"number"==typeof v?(P=v<0?0:v,O="hidden"):n(P)&&(P="0%"===v?0:v,O="hidden");let[Z,$]=(0,r.useState)(P),[I,D]=(0,r.useState)(O),[W,z]=(0,r.useState)(!1),[F,M]=(0,r.useState)(o(H.current,v));(0,r.useEffect)(()=>{a(k.current,Z,f)},[]),(0,r.useEffect)(()=>{if(v!==_.current&&k.current){var e;let t,i;e=k.current,0===_.current&&(null==e?void 0:e.style)&&(e.style.display=""),k.current.style.overflow="hidden";let r=k.current.offsetHeight;k.current.style.overflow="";let s=A+C,c="hidden",l="auto"===_.current;"number"==typeof v?i=t=v<0?0:v:n(v)?i=t="0%"===v?0:v:(t=r,i="auto",c=void 0),l&&(i=t,t=r);let u=[H.current.animating,("auto"===_.current||v<_.current)&&H.current.animatingUp,("auto"===v||v>_.current)&&H.current.animatingDown,0===i&&H.current.animatingToHeightZero,"auto"===i&&H.current.animatingToHeightAuto,"number"==typeof i&&i>0?H.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),d=o(H.current,i);$(t),D("hidden"),z(!l),M(u),clearTimeout(S.current),clearTimeout(T.current),l?(S.current=setTimeout(()=>{$(i),D(c),z(!0),null==b||b(i)},50),T.current=setTimeout(()=>{z(!1),M(d),a(k.current,i,f),null==y||y(i)},s)):(null==b||b(t),S.current=setTimeout(()=>{$(i),D(c),z(!1),M(d),"auto"!==v&&a(k.current,t,f),null==y||y(t)},s))}return _.current=v,()=>{clearTimeout(S.current),clearTimeout(T.current)}},[v]);let U=Object.assign(Object.assign({},x),{height:Z,overflow:I||(null==x?void 0:x.overflow)});W&&u&&(U.transition=`height ${A}ms ${w} ${C}ms`,(null==x?void 0:x.transition)&&(U.transition=`${x.transition}, ${U.transition}`),U.WebkitTransition=U.transition);let q={};i&&(q.transition=`opacity ${A}ms ${w} ${C}ms`,q.WebkitTransition=q.transition,0===Z&&(q.opacity=0));let B=void 0!==N["aria-hidden"]?N["aria-hidden"]:0===v;return r.createElement("div",Object.assign({},N,{"aria-hidden":B,className:`${F} ${m}`,style:U,ref:t}),r.createElement("div",{className:h,style:q,ref:e=>{k.current=e,j&&(j.current=e)}},d))});t.Z=l}},function(e){e.O(0,[7847,1623,3598,1964,9332,4750,6768,5652,2685,2333,3778,8159,6133,1382,2888,9774,179],function(){return e(e.s=10737)}),_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.