1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{78298:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},13379:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},41098:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment")},6909:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V6h16zM4 0h16v2H4zm0 22h16v2H4zm8-10c1.38 0 2.5-1.12 2.5-2.5S13.38 7 12 7 9.5 8.12 9.5 9.5 10.62 12 12 12m0-3.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m5 7.49C17 13.9 13.69 13 12 13s-5 .9-5 2.99V17h10zm-8.19-.49c.61-.52 2.03-1 3.19-1 1.17 0 2.59.48 3.2 1z"}),"ContactsOutlined")},41733:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},77957:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},15398:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},48077:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMarkOutlined")},59994:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay")},11359:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},26033:function(e,t,i){"use strict";var n=i(64836);t.Z=void 0;var r=n(i(64938)),o=i(85893);t.Z=(0,r.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList")},72428:function(e,t,i){"use strict";var n=i(82066),r=i(85893);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},78006:function(e,t,i){"use strict";var n=i(82066),r=i(85893);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},58951:function(e,t,i){"use strict";i.d(t,{Z:function(){return b}});var n=i(63366),r=i(87462),o=i(67294),a=i(86010),s=i(94780),l=i(90948),d=i(71657),c=i(15861),x=i(1588),h=i(34867);function u(e){return(0,h.Z)("MuiDialogContentText",e)}(0,x.Z)("MuiDialogContentText",["root"]);var p=i(85893);let m=["children","className"],g=e=>{let{classes:t}=e,i=(0,s.Z)({root:["root"]},u,t);return(0,r.Z)({},t,i)},f=(0,l.ZP)(c.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"MuiDialogContentText"}),{className:o}=i,s=(0,n.Z)(i,m),l=g(s);return(0,p.jsx)(f,(0,r.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:s,className:(0,a.Z)(l.root,o)},i,{classes:l}))});var b=j},67070:function(e,t,i){"use strict";i(67294);var n=i(82066),r=i(85893);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},56686:function(e,t,i){"use strict";i(67294);var n=i(82066),r=i(85893);t.Z=(0,n.Z)((0,r.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},26117:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return i(69677)}])},84521:function(e,t,i){"use strict";i.d(t,{$M:function(){return x},ES:function(){return c},Hi:function(){return p},Hz:function(){return o},Ii:function(){return s},MA:function(){return h},TH:function(){return l},fu:function(){return d},iR:function(){return m},pB:function(){return r},pn:function(){return a},sx:function(){return g},wE:function(){return u}});var n=i(29474);let r=async e=>{try{let t=await n.ZP.post("/ai/",e);return t.data}catch(e){throw e}},o=async e=>{try{let t=await n.ZP.get("/ai/",{params:e});return t.data}catch(e){throw e}},a=async e=>{try{let t=await n.ZP.get("/ai/interview/".concat(e,"/"));return t.data}catch(e){throw e}},s=e=>n.ZP.post("/ai/",e,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{let t=e.data;return!t||"object"!=typeof t||"interview"in t?t:{interview:t,user:null==t?void 0:t.user}}).catch(e=>{throw e});async function l(e){try{let t=await n.ZP.get("/ai/interview/".concat(e,"/"));return t.data}catch(e){throw e}}let d=e=>n.ZP.post("/ai/question/",e).then(e=>e.data).catch(e=>{throw e});async function c(e,t,i){try{let r=await n.ZP.patch("/ai/question/".concat(t,"/?interview_id=").concat(e),i);return r.data}catch(e){throw e}}async function x(e,t){try{return await n.ZP.delete("/ai/question/".concat(t,"/?interview_id=").concat(e))}catch(e){throw e}}async function h(e){try{let t=await n.ZP.get("/ai/question/?interview_id=".concat(e));return t.data}catch(e){throw e}}async function u(e,t){try{let i="/ai/?page=".concat(e,"&page_size=").concat(t),r=await n.ZP.get(i);return r.data}catch(e){throw e}}async function p(e){try{let t=await n.ZP.get("/ai/".concat(e,"/answers/"));return t.data}catch(e){throw e}}async function m(e){try{return await n.ZP.delete("/ai/interview/".concat(e,"/"))}catch(e){throw e}}async function g(e,t,i){try{let r={transcript_details:t,is_complete:!0};Number.isFinite(i)&&(r.duration=Math.max(1,Math.ceil(i)));let o=await n.ZP.patch("/ai/interview/".concat(e,"/"),r);return o.data}catch(e){throw e}}},34517:function(e,t,i){"use strict";i.d(t,{D:function(){return r},u:function(){return n}});let n=()=>((()=>{let e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://app.partnero.com/js/universal.js?v"+~~(new Date().getTime()/1e6),document.head.appendChild(e),function(e,t,i,n,r,o){function a(){let e={a:arguments,q:[]},t=this.push(e);return"number"!=typeof t?t:a.bind(e.q)}e.__partnerObject=r,a.q=a.q||[],e[r]=e[r]||a.bind(a.q),e[r].q=e[r].q||a.q,o=t.createElement(i);let s=t.getElementsByTagName(i)[0];o.async=1,o.src=n+"?v"+~~(new Date().getTime()/1e6),s.parentNode.insertBefore(o,s)}(window,document,"script","https://app.partnero.com/js/universal.js","po"),window.po("settings","assets_host","https://assets.partnero.com"),window.po("program","TQE6SSJB","load")})(),null),r=()=>((()=>{let e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://app.partnero.com/js/universal.js?v"+~~(new Date().getTime()/1e6),document.head.appendChild(e),function(e,t,i,n,r,o){function a(){let e={a:arguments,q:[]},t=this.push(e);return"number"!=typeof t?t:a.bind(e.q)}e.__partnerObject=r,a.q=a.q||[],e[r]=e[r]||a.bind(a.q),e[r].q=e[r].q||a.q,o=t.createElement(i);let s=t.getElementsByTagName(i)[0];o.async=1,o.src=n+"?v"+~~(new Date().getTime()/1e6),s.parentNode.insertBefore(o,s)}(window,document,"script","https://app.partnero.com/js/universal.js","po"),window.po("settings","assets_host","https://assets.partnero.com"),window.po("program","UNA5HUAG","load")})(),null)},69677:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eg}});var n=i(85893),r=i(67294),o=i(99226),a=i(15861),s=i(83321),l=i(2734),d=i(41796),c=i(63730),x=i(84266),h=i(11163),u=i(67218),p=i(1954),m=i(86886),g=i(87918),f=i(25675),j=i.n(f),b=i(22120);function v(){let e=(0,l.Z)(),t=(0,h.useRouter)(),{t:i}=(0,b.$G)("common"),r=[{key:"video-resume",title:i("Video Resume"),description:i("Answer a few questions on camera and share one polished link with recruiters."),icon:"mdi:video-account",href:"/jobs/create",cta:i("Record")},{key:"mock-interview",title:i("Mock Interview"),description:i("Practise with an AI interviewer and get instant, structured feedback."),icon:"mdi:account-voice",href:"/jobs/createmock",cta:i("Practise")},{key:"resume-builder",title:i("Resume Builder"),description:i("Build an ATS-friendly resume from your profile, a file, or a job description."),icon:"mdi:file-document-outline",href:"/ai-resume-builder",cta:i("Build")},{key:"job-board",title:i("Job Board"),description:i("Track every application across your own stages, from applied to offer."),icon:"mdi:view-column-outline",href:"/job-boards",cta:i("Track")}];return(0,n.jsxs)(o.Z,{sx:{width:"100%",maxWidth:"1360px",mx:"auto",px:{xs:2,md:0},py:4},children:[(0,n.jsxs)(o.Z,{sx:{position:"relative",overflow:"hidden",borderRadius:3,p:{xs:4,md:6},mb:5,color:"common.white",background:"linear-gradient(135deg, ".concat(e.palette.primary.dark," 0%, ").concat(e.palette.primary.main," 60%, ").concat(e.palette.primary.light," 100%)")},children:[(0,n.jsx)(o.Z,{sx:{position:"absolute",top:-90,right:-60,width:260,height:260,borderRadius:"50%",backgroundColor:(0,d.Fq)("#fff",.08)}}),(0,n.jsx)(o.Z,{sx:{position:"absolute",bottom:-110,right:140,width:200,height:200,borderRadius:"50%",backgroundColor:(0,d.Fq)("#fff",.06)}}),(0,n.jsxs)(m.ZP,{container:!0,spacing:4,alignItems:"center",sx:{position:"relative"},children:[(0,n.jsxs)(m.ZP,{item:!0,xs:12,md:7,children:[(0,n.jsx)(g.Z,{label:i("Welcome to XCareer"),size:"small",sx:{mb:3,color:"common.white",fontWeight:600,letterSpacing:.4,backgroundColor:(0,d.Fq)("#fff",.18),"& .MuiChip-label":{px:2}}}),(0,n.jsx)(a.Z,{variant:"h3",sx:{fontWeight:700,color:"common.white",mb:2,fontSize:{xs:"1.75rem",md:"2.5rem"}},children:i("Letâs land you your next role")}),(0,n.jsx)(a.Z,{variant:"h6",sx:{fontWeight:400,color:(0,d.Fq)("#fff",.9),maxWidth:560,mb:4},children:i("Record a video resume, practise interviews with AI, build an ATS-friendly resume, and track every application â all in one place.")}),(0,n.jsxs)(o.Z,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[(0,n.jsx)(s.Z,{size:"large",variant:"contained",onClick:()=>t.push("/jobs/create"),startIcon:(0,n.jsx)(p.JO,{icon:"mdi:video-plus-outline"}
1),sx:{px:4,...x.RZ},children:i("Create your Video Resume")}),(0,n.jsx)(s.Z,{size:"large",variant:"outlined",onClick:()=>t.push("/auto-fill-profile"),startIcon:(0,n.jsx)(p.JO,{icon:"mdi:account-edit-outline"}),sx:{px:3,...x.tX},children:i("Complete your profile")})]})]}),(0,n.jsx)(m.ZP,{item:!0,xs:12,md:5,children:(0,n.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center","& img":{maxWidth:"100%",height:"auto"}},children:(0,n.jsx)(j(),{src:"/images/welcome-image.png",alt:i("Welcome illustration"),width:600,height:500,loading:"eager",priority:!0,style:{width:"100%",maxWidth:420,height:"auto",objectFit:"contain"}})})})]})]}),(0,n.jsxs)(o.Z,{sx:{mb:3},children:[(0,n.jsx)(a.Z,{variant:"h6",sx:{fontWeight:600},children:i("Where would you like to start?")}),(0,n.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:i("Pick any one â you can always come back to the rest.")})]}),(0,n.jsx)(m.ZP,{container:!0,spacing:4,children:r.map(i=>(0,n.jsx)(m.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,n.jsxs)(o.Z,{role:"button",tabIndex:0,onClick:()=>t.push(i.href),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t.push(i.href))},sx:{height:"100%",display:"flex",flexDirection:"column",gap:1.5,p:3,borderRadius:3,cursor:"pointer",border:"1px solid ".concat(e.palette.divider),backgroundColor:"background.paper",transition:"transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease","&:hover, &:focus-visible":{outline:"none",transform:"translateY(-4px)",borderColor:"primary.main",boxShadow:"0 8px 20px ".concat((0,d.Fq)(e.palette.primary.main,.2))}},children:[(0,n.jsx)(o.Z,{sx:{width:48,height:48,borderRadius:2,display:"grid",placeItems:"center",color:"primary.main",backgroundColor:(0,d.Fq)(e.palette.primary.main,.12)},children:(0,n.jsx)(p.JO,{icon:i.icon,fontSize:26})}),(0,n.jsx)(a.Z,{variant:"subtitle1",sx:{fontWeight:600},children:i.title}),(0,n.jsx)(a.Z,{variant:"body2",color:"text.secondary",sx:{flexGrow:1,lineHeight:1.5},children:i.description}),(0,n.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.5,color:"primary.main"},children:[(0,n.jsx)(a.Z,{variant:"body2",sx:{fontWeight:600},children:i.cta}),(0,n.jsx)(p.JO,{icon:"mdi:arrow-right",fontSize:18})]})]})},i.key))})]})}var Z=i(9473),w=i(30966),y=i(93607),k=i(34386),C=i(93946),_=i(98456),R=i(46901),S=i(64666),I=i(37645),T=i(6514),z=i(31425),W=i(77651),L=i(72428),M=i(26033),B=i(78006),P=i(36192),A=i(95785),V=i(32821),D=i(98396),q=i(66242),N=i(44267),H=i(94054),F=i(47312),E=i(18360),O=i(18972),J=i(90629),U=i(90263),Y=i(11359),G=i(77957),Q=i(41733),K=i(15398),X=i(41098);let $=e=>{var t;let{selectedCandidate:i,candidateOptions:r,handleCandidateChange:d,handleCreateLink:c,handleEditClick:x,handleDeleteClick:h,hasRemainingQuestions:u=!1,handleCompleteCVClick:p,remainingQuestionsCount:m=0}=e,g=(0,l.Z)(),f=(0,D.Z)(g.breakpoints.down("sm")),j=r.length>1,{t:v}=(0,b.$G)("video-cv"),Z=(null===(t=r.find(e=>e.id===i))||void 0===t?void 0:t.name)||v("CV");return(0,n.jsx)(q.Z,{sx:{borderRadius:"12px",mx:"auto",width:"100%",maxWidth:"1336px",mb:{xs:2,md:3},mt:{xs:1,md:2},backgroundColor:g.palette.background.paper,boxShadow:g.shadows[2]},elevation:3,children:(0,n.jsx)(N.Z,{sx:{px:{xs:3,sm:4,md:5},py:{xs:2,sm:2},borderTop:"8px solid #12715b"},children:(0,n.jsxs)(o.Z,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2},children:[j?(0,n.jsxs)(H.Z,{size:"small",sx:{minWidth:{xs:"150px",sm:"250px"}},children:[(0,n.jsx)(F.Z,{id:"resume-select-label",children:v("Select Resume")}),(0,n.jsx)(E.Z,{labelId:"resume-select-label",id:"resume-select",value:i,label:v("Select Resume"),onChange:d,sx:{backgroundColor:g.palette.background.paper,color:g.palette.text.primary},children:r.map(e=>(0,n.jsx)(O.Z,{value:e.id,children:e.name},e.id))})]}):(0,n.jsxs)(J.Z,{elevation:0,sx:{display:"flex",alignItems:"center",px:2,py:1,borderRadius:1,backgroundColor:g.palette.background.paper,border:"1px solid ".concat(g.palette.divider),minWidth:{xs:"150px",sm:"250px"}},children:[(0,n.jsx)(K.Z,{sx:{color:g.palette.primary.main,mr:1}}),(0,n.jsx)(a.Z,{variant:"subtitle1",sx:{fontWeight:500,color:g.palette.text.primary},children:Z})]}),(0,n.jsxs)(o.Z,{sx:{display:"flex",gap:2},children:[u&&(0,n.jsx)(n.Fragment,{children:f?(0,n.jsx)(k.Z,{title:v("Complete your Resume"),children:(0,n.jsx)(U.Z,{badgeContent:m,color:"error",children:(0,n.jsx)(s.Z,{variant:"outlined",color:"primary",size:"small",onClick:p,children:(0,n.jsx)(X.Z,{})})})}):(0,n.jsx)(U.Z,{badgeContent:m,color:"error",children:(0,n.jsx)(s.Z,{variant:"outlined",color:"primary",startIcon:(0,n.jsx)(X.Z,{}),onClick:p,children:v("Complete your Resume")})})}),(0,n.jsx)(k.Z,{title:v("Share Link"),children:(0,n.jsx)(s.Z,{variant:"outlined",color:"primary",size:"small",onClick:c,children:(0,n.jsx)(Y.Z,{})})}),(0,n.jsx)(k.Z,{title:v("Edit"),children:(0,n.jsx)(s.Z,{variant:"outlined",color:"primary",size:"small",onClick:x,children:(0,n.jsx)(G.Z,{})})}),(0,n.jsx)(k.Z,{title:v("Delete"),children:(0,n.jsx)(s.Z,{variant:"outlined",color:"error",size:"small",onClick:h,children:(0,n.jsx)(Q.Z,{})})})]})]})})})};var ee=i(26471),et=i(26127),ei=i(23918);i(97740),i(30138),i(10930);var en=i(79136),er=i(84521),eo=i(41664),ea=i.n(eo),es=i(6909),el=i(86501),ed=i(48077),ec=i(97249),ex=i(88833),eh=i(64416);let eu=e=>{let{candidateId:t}=e,i=(0,l.Z)(),d=(0,h.useRouter)(),{t:c}=(0,b.$G)("video-cv"),{settings:x}=(0,ei.r)(),[u,m]=(0,r.useState)([]),[g,f]=(0,r.useState)(null),[j,v]=(0,r.useState)(!0),[Z,w]=(0,r.useState)(!0),[y,D]=(0,r.useState)(!0),[q,N]=(0,r.useState)(null),[H,F]=(0,r.useState)(t||""),[E,O]=(0,r.useState)({page:0,pageSize:10}),[J,U]=(0,r.useState)([]),[Y,G]=(0,r.useState)(0),[Q,K]=(0,r.useState)([]);JSON.parse(localStorage.getItem("userData"));let[X,eo]=(0,r.useState)([]),[eu,ep]=(0,r.useState)(null),[em,eg]=(0,r.useState)(null),ef=[{id:"preferred_location",text:c("My Preferred Working Location"),answer_type:"multiple_choice",options:[{id:"opt1",text:c("Remote"),isSelected:!1},{id:"opt2",text:c("On-Site"),isSelected:!1},{id:"opt3",text:c("Hybrid"),isSelected:!1}]},{id:"availability",text:c("When I'm available to start work"),answer_type:"radio",options:[{id:"opt1",text:c("Immediately"),isSelected:!1},{id:"opt2",text:c("1 Week"),isSelected:!1},{id:"opt3",text:c("2 Weeks"),isSelected:!1},{id:"opt4",text:c("1 Month"),isSelected:!1},{id:"opt5",text:c("3 Months"),isSelected:!1}]}],[ej,eb]=(0,r.useState)(!1),[ev,eZ]=(0,r.useState)(!1),[ew,ey]=(0,r.useState)(!1),[ek,eC]=(0,r.useState)(!1),[e_,eR]=(0,r.useState)(""),[eS,eI]=(0,r.useState)(!1),[eT,ez]=(0,r.useState)(!1),[eW,eL]=(0,r.useState)([]),[eM,eB]=(0,r.useState)(!1),[eP,eA]=(0,r.useState)(null),eV=(e,t)=>{let i=t.replace(/\s+/g," ").trim().toLowerCase();return e.some(e=>{let t=e.replace(/\s+/g," ").trim().toLowerCase();return t===i})},[eD,eq]=(0,r.useState)(!1),[eN,eH]=(0,r.useState)(""),[eF,eE]=(0,r.useState)(!1),[eO,eJ]=(0,r.useState)(!1),[eU,eY]=(0,r.useState)([]),[eG,eQ]=(0,r.useState)(0),[eK,eX]=(0,r.useState)({page:0,pageSize:10}),[e$,e0]=(0,r.useState)(!0);(0,r.useEffect)(()=>{e1()},[]),(0,r.useEffect)(()=>{e2()},[]);let e1=async()=>{try{e0(!0);let e=await (0,ex.VN)();eY(e.slice(0,5)),eQ(e.length)}catch(e){console.error("Error fetching resumes:",e),el.ZP.error("Failed to fetch resumes")}finally{e0(!1)}},e2=async()=>{D(!0);try{let e=await (0,P.DC)();K(e.results.slice(0,5)),D(!1)}catch(e){console.error("Error fetching boards:",e)}},e8=e=>{d.push("/job-boards/".concat(e))};(0,r.useEffect)(()=>{let e=async()=>{try{v(!0);let e=await (0,et.KC)();if(m(e.results),!H&&e.results.length>0){let t=e.results[0].id;F(t);let i=await (0,et.UY)(t),n=i.cv.candidate.id,r=e.results[0];e9(n,r)}N(null)}catch(e){N(c("Failed to load video CVs. Please try again later."))}finally{v(!1)}};e()},[H]),(0,r.useEffect)(()=>{w(!0),(0,er.wE)(E.page+1,E.pageSize).then(e=>{U(e.results.slice(0,5)),G(5),w(!1)}).catch(e=>{console.error(e)})},[E,eO]);let e3=async()=>{1==Y&&E.page>1?O(e=>({...e,page:e.page-1})):1==Y&&1==E.page?window.location.reload():eJ(e=>!e)},e4=[{flex:.15,field:"title",minWidth:170,headerName:c("Resume Title"),renderCell:e=>{let{row:t}
1=e,i=(null==t?void 0:t.title)&&t.title.trim()||"Untitled Resume";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(k.Z,{title:i,children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:i})})})}},{flex:.15,field:"template",minWidth:170,headerName:c("Template"),renderCell:e=>{let{row:t}=e,i={1:"Professional Clean",2:"Professional Clean",3:"Professional Clean",4:"Professional Clean",5:"Professional Clean",6:"Classic"}[null==t?void 0:t.template_id]||"Classic";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:i})})}},{flex:.15,field:"created",minWidth:170,headerName:c("Created at"),renderCell:e=>{let{row:t}=e,i=null==t?void 0:t.created_at,r=i?new Date(i).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"Unknown";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:r})})}},{flex:.15,field:"actions",minWidth:170,headerName:c("Actions"),renderCell:e=>{var t,i;let{row:r}=e,a=null==r?void 0:r.id,l=(null==r?void 0:r.job_title)&&r.job_title.trim()||(null==r?void 0:r.title)&&r.title.trim(),d=l&&((null==r?void 0:null===(t=r.work_experiences)||void 0===t?void 0:t.length)>0||(null==r?void 0:null===(i=r.educations)||void 0===i?void 0:i.length)>0)?"completed":"draft";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:"completed"===d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k.Z,{title:"View Resume",children:(0,n.jsx)(s.Z,{size:"small",variant:"contained",startIcon:(0,n.jsx)(B.Z,{}),onClick:()=>{window.location.href="/resume/view/".concat(a)},children:"View"})}),(0,n.jsx)(k.Z,{title:"Edit Resume",children:(0,n.jsx)(s.Z,{size:"small",variant:"outlined",startIcon:(0,n.jsx)(p.JO,{icon:"mdi:pencil"}),onClick:()=>{window.location.href="/resume/create/".concat(a)},children:"Edit"})})]}):(0,n.jsx)(k.Z,{title:"Continue Building",children:(0,n.jsx)(s.Z,{size:"small",variant:"contained",startIcon:(0,n.jsx)(es.Z,{}),onClick:()=>{window.location.href="/resume/create/".concat(a)},children:"Continue"})})})}}],e6=[{flex:.15,field:"name",minWidth:170,headerName:c("Board Name"),renderCell:e=>{let{row:t}=e,i=(null==t?void 0:t.name)||"Untitled Board";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{variant:"body2",sx:{fontWeight:500,color:"text.primary"},children:i})})}},{flex:.15,field:"stages",minWidth:170,headerName:c("Stages"),renderCell:e=>{var t;let{row:i}=e,r=(null==i?void 0:null===(t=i.stages)||void 0===t?void 0:t.length)||0;return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsxs)(a.Z,{variant:"body2",sx:{color:"text.primary"},children:[r," stage",1!==r?"s":""]})})}},{flex:.15,field:"created_at",minWidth:170,headerName:c("Created at"),renderCell:e=>{let{row:t}=e,i=null==t?void 0:t.created_at,r=i?new Date(i).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"Unknown";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{variant:"body2",sx:{color:"text.primary"},children:r})})}},{flex:.15,field:"actions",minWidth:170,headerName:c("Actions"),renderCell:e=>{let{row:t}=e,i=null==t?void 0:t.id;return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:(0,n.jsx)(k.Z,{title:"View Job Board",children:(0,n.jsx)(s.Z,{size:"small",variant:"contained",startIcon:(0,n.jsx)(p.JO,{icon:"mdi:eye-outline"}),onClick:()=>e8(i),children:"View"})})})}}],e5=[{flex:.15,field:"mock",minWidth:170,headerName:c("Mock Interview Title"),renderCell:e=>{let{row:t}=e,i=((null==t?void 0:t.job_role)||(null==t?void 0:t.job_title)||"").trim()||"(Untitled)",r=null==t?void 0:t.company_name;return(0,n.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0,py:1},children:[(0,n.jsx)(k.Z,{title:r?"".concat(i," \xb7 ").concat(r):i,children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{fontWeight:600,textTransform:"capitalize"},children:i})}),r&&(0,n.jsx)(a.Z,{noWrap:!0,variant:"caption",sx:{color:"text.secondary"},children:r})]})}},{flex:.15,field:"language",minWidth:170,headerName:c("Language"),renderCell:e=>{let{row:t}=e,i=t.language;return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:i})})}},{flex:.15,field:"created",minWidth:170,headerName:c("Created at"),renderCell:e=>{let{row:t}=e,i=((null==t?void 0:t.created_at)||(null==t?void 0:t.interview_created_at)||"").slice(0,10)||"-";return(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:i})})}},{flex:.15,field:"report",minWidth:170,headerName:c("Status"),renderCell:e=>{let{row:t}=e,i=t.id,r=t.generated_report,l=t.interview_completed,d=t.interview_started,x=t.total_questions,h=t.ai_mode;return(0,n.jsx)(n.Fragment,{children:d?(0,n.jsx)(n.Fragment,{children:r?(0,n.jsx)(o.Z,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:(0,n.jsx)(ea(),{href:"/report/".concat(i),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(k.Z,{title:"View Report",children:(0,n.jsx)(s.Z,{size:"large",sx:{position:"relative",right:"8px"},startIcon:(0,n.jsx)(B.Z,{}),children:"View Report"})})})})}):(0,n.jsx)(n.Fragment,{children:l?(0,n.jsx)(k.Z,{title:"Generating Report",children:(0,n.jsx)(_.Z,{size:"28px"})}):(0,n.jsx)(o.Z,{children:(0,n.jsx)(k.Z,{title:"Click Here to Complete your Mock Interview",children:(0,n.jsx)(s.Z,{onClick:()=>{window.open("https://dev.xcareer.co/ai/direct-link/".concat(i,"/"),"_blank")},size:"large",sx:{position:"relative",right:"8px"},startIcon:(0,n.jsx)(es.Z,{}),children:"Complete Interview"})})})})}):(0,n.jsx)(n.Fragment,{children:!1==h&&x<1?(0,n.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(k.Z,{title:"No Questions",children:(0,n.jsx)(s.Z,{size:"large",sx:{position:"relative",right:"8px"},startIcon:(0,n.jsx)(ed.Z,{}),children:"No Questions"})}),(0,n.jsx)(a.Z,{noWrap:!0,sx:{color:"text.secondary",textTransform:"capitalize"},children:(0,n.jsx)(k.Z,{title:c("Delete"),children:(0,n.jsx)(C.Z,{size:"small",children:(0,n.jsx)(p.JO,{onClick:()=>{eH(i),eE(!0)},icon:"mdi:trash-can",style:{fontSize:"24px",color:"red",cursor:"pointer"}})})})})]}):(0,n.jsx)(o.Z,{children:(0,n.jsx)(k.Z,{title:"Click Here to Start your Mock Interview",children:(0,n.jsx)(s.Z,{onClick:()=>{window.open("/ai/interview/".concat(i,"/"),"_blank")},size:"large",sx:{position:"relative",right:"8px"},startIcon:(0,n.jsx)(es.Z,{}),children:"Start Interview"})})})})})}}],e9=async(e,t)=>{let i=localStorage.getItem("userData");if(!i)return;let n=JSON.parse(i),r=n.auto_fill;try{var o,a;let i=await (0,ec.In)(r),n=await (0,et.kL)(e);n.remaining_questions&&n.remaining_questions.length>0?(ez(!0),eL(n.remaining_questions),n.url&&eA(n.url)):(ez(!1),eL([]),eA(null)),n.shareable_link&&ep(n.shareable_link),n.user_name_link&&eg(n.user_name_link);let s=n.video_cv||t,l=s.requirements,d={first_name:(null==i?void 0:i.first_name)||n.candidate.user.first_name,last_name:(null==i?void 0:i.last_name)||n.candidate.user.last_name},x=l.field_order.map(e=>
1d[e]).filter(Boolean).join(" ");f({name:x,title:s.title,professional_title:(1==l.professional_title_state||2==l.professional_title_state)&&(n.candidate.professional_title||(null==i?void 0:i.headline))||c("Professional Title Unavailable"),location:(1==l.address_state||2==l.address_state)&&(n.candidate.address||(null==i?void 0:i.city))||c("Location unavailable"),photo:(null==i?void 0:i.profile_pic)||n.candidate.user.profile_pic||"/images/RandomPersonImage.jpg",email:1===l.email_state||2===l.email_state?n.candidate.email||(null==i?void 0:i.email):null,phone:1===l.phone_number_state||2===l.phone_number_state?n.candidate.mobile_number||(null==i?void 0:i.phone)||c("Phone unavailable"):null,linkedin:(1===l.linkedin_state||2===l.linkedin_state)&&(n.candidate.linkedin||(null==i?void 0:null===(o=i.links)||void 0===o?void 0:o.linkedin))||null,github:(1===l.github_state||2===l.github_state)&&(n.candidate.github||(null==i?void 0:null===(a=i.links)||void 0===a?void 0:a.git_hub))||null,portfolio:(1===l.website_state||2===l.website_state)&&n.candidate.website||null,resume:(1===l.cv_state||2===l.cv_state)&&n.candidate.physical_resume||null});let h=n.answers.map(e=>({id:e.id,question_id:e.question.id,text:e.question.title,duration:e7(e.video_length),videoUrl:e.video_url,thumbnail:eh.v7,answer_type:"video"})),u=[];s.mode_of_work&&s.mode_of_work.length>0&&u.push({id:"preferred_location",text:c("My Preferred Working Location"),answer_type:"multiple_choice",options:[{id:"opt1",text:c("Remote"),isSelected:s.mode_of_work.some(e=>"remote"===e.toLowerCase())},{id:"opt2",text:c("On-Site"),isSelected:s.mode_of_work.some(e=>"on-site"===e.toLowerCase())},{id:"opt3",text:c("Hybrid"),isSelected:s.mode_of_work.some(e=>"hybrid"===e.toLowerCase())}]}),s.joining_time&&s.joining_time.length>0&&u.push({id:"availability",text:c("When I'm available to start work"),answer_type:"radio",options:[{id:"opt1",text:c("Immediately"),isSelected:eV(s.joining_time,"Immediately")},{id:"opt2",text:c("1 Week"),isSelected:eV(s.joining_time,"1 Week")},{id:"opt3",text:c("2 Weeks"),isSelected:eV(s.joining_time,"2 Weeks")},{id:"opt4",text:c("1 Month"),isSelected:eV(s.joining_time,"1 Month")},{id:"opt5",text:c("3 Months"),isSelected:eV(s.joining_time,"3 Months")}]}),eo([...h,...u])}catch(e){console.error("Failed to fetch candidate answers:",e),f({name:t.title,title:"CV from API",location:c("Location unavailable"),photo:"/images/RandomPersonImage.jpg",email:null,phone:c("Phone unavailable"),linkedin:null,github:null,portfolio:null,resume:null}),ep(null),eg(null),ef[0].options.forEach(e=>{e.isSelected=t.mode_of_work.some(t=>t.toLowerCase()===e.text.toLowerCase())}),ef[1].options.forEach(e=>{e.isSelected=t.joining_time.includes(e.text)}),eo(ef),ez(!1),eL([]),eA(null)}},e7=e=>e?"".concat(Math.floor(e/60),":").concat(Math.floor(e%60).toString().padStart(2,"0")):"0:00";(0,r.useEffect)(()=>{if(H&&u.length>0){let e=u.find(e=>e.id===H);e&&te({target:{value:H}})}},[H,u]);let te=async e=>{let t=localStorage.getItem("userData");if(!t)return;let i=JSON.parse(t),n=i.auto_fill,r=e.target.value;ey(!0),F(r);try{var o,a;let e=await (0,ec.In)(n),t=await (0,et.UY)(r),i=t.cv.candidate.id,s=u.find(e=>e.id===r),l=await (0,et.kL)(i);l.shareable_link?ep(l.shareable_link):ep(null),l.user_name_link?eg(l.user_name_link):eg(null);let d=l.video_cv||s,x=d.requirements,h={first_name:(null==e?void 0:e.first_name)||l.candidate.user.first_name,last_name:(null==e?void 0:e.last_name)||l.candidate.user.last_name},p=x.field_order.map(e=>h[e]).filter(Boolean).join(" ");f({name:p,title:d.title,professional_title:(1==x.professional_title_state||2==x.professional_title_state)&&(l.candidate.professional_title||(null==e?void 0:e.headline))||c("Professional Title Unavailable"),location:(1==x.address_state||2==x.address_state)&&(l.candidate.address||(null==e?void 0:e.city))||c("Location unavailable"),photo:(null==e?void 0:e.profile_pic)||l.candidate.user.profile_pic||"/images/RandomPersonImage.jpg",email:1===x.email_state||2===x.email_state?l.candidate.email||(null==e?void 0:e.email):null,phone:1===x.phone_number_state||2===x.phone_number_state?l.candidate.mobile_number||(null==e?void 0:e.phone)||c("Phone unavailable"):null,linkedin:(1===x.linkedin_
1state||2===x.linkedin_state)&&(l.candidate.linkedin||(null==e?void 0:null===(o=e.links)||void 0===o?void 0:o.linkedin))||null,github:(1===x.github_state||2===x.github_state)&&(l.candidate.github||(null==e?void 0:null===(a=e.links)||void 0===a?void 0:a.git_hub))||null,portfolio:(1===x.website_state||2===x.website_state)&&l.candidate.website||null,resume:(1===x.cv_state||2===x.cv_state)&&l.candidate.physical_resume||null});let m=l.answers.map(e=>({id:e.id,question_id:e.question.id,text:e.question.title,duration:e7(e.video_length),videoUrl:e.video_url,thumbnail:eh.v7,answer_type:"video"})),g=[];d.mode_of_work&&d.mode_of_work.length>0&&g.push({id:"preferred_location",text:c("My Preferred Working Location"),answer_type:"multiple_choice",thumbnail:"/images/Predefinedgreensq.svg",options:[{id:"opt1",text:c("Remote"),isSelected:d.mode_of_work.some(e=>"remote"===e.toLowerCase())},{id:"opt2",text:c("On-Site"),isSelected:d.mode_of_work.some(e=>"on-site"===e.toLowerCase())},{id:"opt3",text:c("Hybrid"),isSelected:d.mode_of_work.some(e=>"hybrid"===e.toLowerCase())}]}),d.joining_time&&d.joining_time.length>0&&g.push({id:"availability",text:c("When I'm available to start work"),thumbnail:"/images/Predefinedgreencl.svg",answer_type:"radio",options:[{id:"opt1",text:c("Immediately"),isSelected:eV(d.joining_time,"Immediately")},{id:"opt2",text:c("1 Week"),isSelected:eV(d.joining_time,"1 Week")},{id:"opt3",text:c("2 Weeks"),isSelected:eV(d.joining_time,"2 Weeks")},{id:"opt4",text:c("1 Month"),isSelected:eV(d.joining_time,"1 Month")},{id:"opt5",text:c("3 Months"),isSelected:eV(d.joining_time,"3 Months")}]}),eo([...m,...g]),l.remaining_questions&&l.remaining_questions.length>0?(ez(!0),eL(l.remaining_questions),l.url&&eA(l.url)):(ez(!1),eL([]),eA(null)),ey(!1)}catch(e){console.error("Failed to fetch candidate ID or answers:",e),ey(!1),ep(null),eg(null),ez(!1),eL([]),eA(null)}},tt=()=>{eu?eb(!0):(eR(c("No shareable link available for this candidate.")),eC(!0))},ti=()=>{eb(!1)},tn=()=>{eZ(!0)},tr=()=>{eZ(!1),d.push("/jobs/".concat(H,"/edit"))},to=()=>{eZ(!1)},ta=()=>{eI(!0)},ts=async()=>{try{await (0,et.LS)(H),eI(!1),window.location.reload()}catch(e){console.error("Error deleting CV:",e),eR(c("Failed to delete the CV. Please try again.")),eC(!0)}},tl=()=>{eI(!1)},td=()=>{eB(!0)},tc=()=>{eP?window.open(eP,"_blank"):(eR(c("Interview link not available.")),eC(!0)),eB(!1)},tx=(null==g?void 0:g.name)||c("Candidate");return("".concat(c("Check out")," ").concat(tx).concat(c("'s video CV")),j)?(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:[(0,n.jsx)(_.Z,{}),(0,n.jsx)(a.Z,{variant:"body1",sx:{ml:2},children:c("Loading Candidate data...")})]}):q?(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh",flexDirection:"column"},children:[(0,n.jsx)(R.Z,{severity:"error",sx:{mb:2},children:q}),(0,n.jsx)(s.Z,{variant:"contained",onClick:()=>window.location.reload(),children:c("Try Again")})]}):0===u.length?(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",maxWidth:"1336px",mx:"auto"},children:[(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",width:"100%",marginBottom:"1rem"},children:[(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#212121",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Video Resume"})]}),(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Video Resumes yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first Video Resume to get started"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/jobs/create"),children:c("Create a Video Resume")})]})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",width:"100%"},children:[(0,n.jsx)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"inherit",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),J.length>0?(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Mock Interviews"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",onClick:()=>d.push("/ai-mock-interview"),children:"View All Mock Interviews"})})]}):(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Mock Interviews"})]})}),Z&&(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:[(0,n.jsx)(_.Z,{}),(0,n.jsx)(a.Z,{variant:"body1",sx:{ml:2},children:c("Loading Mock Interviews...")})]}),!Z&&J.length>0?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:J,columns:e5,disableRowSelectionOnClick:!0,getRowId:e=>e.id,hideFooter:!0,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Mock Interviews Yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first Mock Interview to get Started"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/jobs/createmock"),children:c("Create a Mock Interview")})]})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",width:"100%",marginTop:"1rem"},children:[(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"inherit",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),eU.length>0?(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Resume Builder"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",onClick:()=>d.push("/ai-resume-builder"),children:"View All Resumes"})})]}):(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Resume Builder"})]}),e$&&(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:[(0,n.jsx)(_.Z,{}),(0,n.jsx)(a.Z,{variant:"body1",sx:{ml:2},children:c("Loading Resumes...")})]}),!e$&&eU.length>0?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:eU,hideFooter:!0,columns:e4,disableRowSelectionOnClick:!0,getRowId:e=>e.id,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Resumes Created Yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first Resume"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/jobs/createmock"),children:c("Create a Resume")})]})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",width:"100%",marginTop:"1rem"},children:[(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#212121",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),Q.length>0?(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Job Boards"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(ea(),{href:"/job-boards",children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",children:"View All Job Boards"})})})]}):(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Job Boards"})]}),y&&(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"30vh"},children:[(0,n.jsx)(_.Z,{}),(0,n.jsx)(a.Z,{variant:"body1",sx:{ml:2},children:c("Loading Job Boards...")})]}),y||0!=Q.length?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:Q,hideFooter:!0,columns:e6,disableRowSelectionOnClick:!0,getRowId:e=>e.id,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No boards yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first job board to get started"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/job-boards"),children:"Create Your First Board"})]})})]})]}):(0,n.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[(0,n.jsx)(o.Z,{sx:{width:"100%",mb:2},children:(0,n.jsx)($,{selectedCandidate:H,candidateOptions:u.map(e=>({id:e.id,name:e.title})),handleCandidateChange:te,handleCreateLink:tt,handleEditClick:tn,handleDeleteClick:ta,hasRemainingQuestions:eT,handleCompleteCVClick:td,remainingQuestionsCount:eW.length})}),(0,n.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:"20px"},children:[(0,n.jsxs)(o.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:"16px",width:"100%",maxWidth:"1336px",margin:"0 auto"},children:[(0,n.jsx)(o.Z,{sx:{flexShrink:0,width:{xs:"100%",md:"312px"}},children:(0,n.jsx)(A.Z,{candidate:g})}),(0,n.jsx)(o.Z,{sx:{flexGrow:1,minWidth:0,width:"100%"},children:ew?(0,n.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"400px",boxShadow:i.shadows[2],borderRadius:"12px",backgroundColor:i.palette.background.paper},children:[(0,n.jsx)(_.Z,{}),(0,n.jsx)(a.Z,{variant:"body1",sx:{ml:2}
1,children:c("Loading candidate data...")})]}):X.length>0?(0,n.jsx)(V.Z,{questions:X,videoCVId:H},"".concat(H,"-").concat(X.length)):(0,n.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",textAlign:"center",padding:"16px",backgroundColor:i.palette.background.paper,borderRadius:"8px",boxShadow:i.shadows[1]},children:(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",children:c("No questions available for this candidate.")})})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",marginTop:"1rem",maxWidth:"1336px",width:"100%",mx:"auto"},children:[(0,n.jsx)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"inherit",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),J.length>0?(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Mock Interviews"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",onClick:()=>d.push("/ai-mock-interview"),children:"View All Mock Interviews"})})]}):(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Mock Interviews"})]})}),J.length>0?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:J,hideFooter:!0,columns:e5,disableRowSelectionOnClick:!0,getRowId:e=>e.id,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Mock Interviews Yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first Mock Interview to get Started"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/jobs/createmock"),children:c("Create a Mock Interview")})]})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",marginTop:"1rem",maxWidth:"1336px",width:"100%",mx:"auto"},children:[(0,n.jsx)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"inherit",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),eU.length>0?(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Resume Builder"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",onClick:()=>d.push("/ai-resume-builder"),children:"View All Resumes"})})]}):(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Resume Builder"})]})}),eU.length>0?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:eU,columns:e4,disableRowSelectionOnClick:!0,hideFooter:!0,getRowId:e=>e.id,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Resumes Created Yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first Resume"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/jobs/createmock"),children:c("Create a Resume")})]})})]}),(0,n.jsxs)(o.Z,{sx:{boxShadow:"light"===x.mode?"0px 4px 12px rgba(0, 0, 0, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.4)",borderRadius:"8px",width:"100%",marginTop:"1rem",maxWidth:"1336px",mx:"auto"},children:[(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#212121",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,n.jsx)(o.Z,{sx:{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},height:9,bgcolor:"primary.main"}),0==Q.length?(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"10px"},children:"Job Boards"}):(0,n.jsxs)(o.Z,{sx:{backgroundColor:"light"===x.mode?"white":"#1a1a1a",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsx)(a.Z,{sx:{fontSize:"1.7rem",paddingBottom:"1rem",textAlign:"center",position:"relative",top:"12px",marginLeft:"12px","@media (max-width: 500px)":{fontSize:"1.2rem",padding:"7px"}},children:"Job Boards"}),(0,n.jsx)(o.Z,{sx:{textAlign:"right",padding:"1rem","@media (max-width: 500px)":{padding:"7px"}},children:(0,n.jsx)(s.Z,{startIcon:(0,n.jsx)(M.Z,{}),variant:"contained",onClick:()=>d.push("/job-boards"),children:"View All Job Boards"})})]})]}),Q.length>0?(0,n.jsx)(en._,{autoHeight:!0,rowHeight:62,rows:Q,hideFooter:!0,columns:e6,disableRowSelectionOnClick:!0,getRowId:e=>e.id,slotProps:{baseButton:{size:"medium",variant:"tonal"}}}):(0,n.jsx)(o.Z,{children:(0,n.jsxs)(o.Z,{display:"flex",flexDirection:"column",alignItems:"center",py:8,textAlign:"center",children:[(0,n.jsx)(a.Z,{variant:"h5",gutterBottom:!0,fontWeight:"medium",children:"No Job Boards Yet"}),(0,n.jsx)(a.Z,{variant:"body1",color:"text.secondary",paragraph:!0,children:"Create your first job board to get started"}),(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(L.Z,{}),onClick:()=>d.push("/job-boards"),children:"Create Your First Board"})]})})]})]}),(0,n.jsxs)(S.Z,{maxWidth:"xs",fullWidth:!0,onClose:()=>{eH(""),eE(!1)},open:eF,sx:{"& .MuiDialog-paper":{borderRadius:"1.75rem",padding:"0.5rem 1rem"}},children:[(0,n.jsx)(I.Z,{variant:"h5",children:(0,n.jsxs)(o.Z,{sx:{display:"grid",gap:"0.75rem",justifyContent:"center"},children:[(0,n.jsx)(o.Z,{sx:{backgroundColor:"#FFDBDB",borderRadius:"50%",marginInline:"auto",width:"50px",height:"50px",display:"grid",placeContent:"center"},children:(0,n.jsx)(p.JO,{icon:"fluent:warning-20-filled",fontSize:"2rem",color:"#CE4A4B"})}),(0,n.jsx)(a.Z,{variant:"h5",children:c("Delete Mock Interview")})]})}),(0,n.jsx)(T.Z,{children:(0,n.jsxs)(a.Z,{textAlign:"center",children:[c("Are you sure to delete the Mock Interview"),"?"]})}),(0,n.jsxs)(z.Z,{children:[(0,n.jsx)(s.Z,{fullWidth:!0,disabled:eD,sx:{borderRadius:"0.75rem"},onClick:()=>{eE(!1),eH("")},children:c("Keep it")}),(0,n.jsx)(s.Z,{onClick:function(){eq(!0),(0,er.iR)(eN).then(e=>{204===e.status&&(el.ZP.success("Mock Interview Deleted Successfully"),eH(""),eq(!1),eE(!1),e3())})},variant:"contained",color:"error",autoFocus:!0,fullWidth:!0,disabled:eD,startIcon:eD?(0,n.jsx)(_.Z,{size:18,color:"inherit"}):(0,n.jsx)(a.Z,{}),sx:{borderRadius:"0.75rem"},children:c("Delete it")})]})]}),(0,n.jsx)(ee.Z,{open:ej,onClose:ti,shareableLinkFromAPI:eu,usernameLinkFromAPI:em,onUsernameChange:eg,candidateName:tx}),(0,n.jsxs)(S.Z,{open:ev,onClose:to,maxWidth:"xs",fullWidth:!0,children:[(0,n.jsx)(I.Z,{children:c("Edit CV")}),(0,n.jsx)(T.Z,{children:(0,n.jsx)(o.Z,{sx:{my:2},children:(0,n.jsx)(a.Z,{variant:"body1",children:c("You're about to edit this video CV. This will redirect you to the edit section where you can modify the CV details and questions.")})})}),(0,n.jsxs)(z.Z,{children:[(0,n.jsx)(s.Z,{onClick:to,children:c("Cancel")}),(0,n.jsx)(s.Z,{onClick:tr,variant:"contained",color:"primary",children:c("Continue to Edit")})]})]}),(0,n.jsxs)(S.Z,{open:eS,onClose:tl,maxWidth:"xs",fullWidth:!0,children:[(0,n.jsx)(I.Z,{children:c("Delete Video CV")}),(0,n.jsx)(T.Z,{children:(0,n.jsx)(o.Z,{sx:{my:2},children:(0,n.jsx)(a.Z,{variant:"body1",children:c("Are you sure you want to delete this video CV? This action cannot be undone.")})})}),(0,n.jsxs)(z.Z,{children:[(0,n.jsx)(s.Z,{onClick:tl,children:c("Cancel")}),(0,n.jsx)(s.Z,{onClick:ts,variant:"contained",color:"error",children:c("Delete")})]})]}),(0,n.jsxs)(S.Z,{open:eM,onClose:()=>eB(!1),maxWidth:"sm",fullWidth:!0,children:[(0,n.jsx)(I.Z,{children:c("Complete Your Video CV")}),(0,n.jsx)(T.Z,{children:(0,n.jsxs)(o.Z,{sx:{my:2},children:[(0,n.jsx)(a.Z,{variant:"body1",gutterBottom:!0,children:"".concat(c("Your video CV is almost complete! You have")," ").concat(eW.length," ").concat(c("remaining question(s) to answer."))}),(0,n.jsx)(a.Z,{variant:"body1",children:c("Completing all questions will enhance your profile and improve your chances of being noticed by employers.")})]})}),(0,n.jsxs)(z.Z,{children:[(0,n.jsx)(s.Z,{onClick:()=>eB(!1),children:c("Cancel")}),(0,n.jsx)(s.Z,{onClick:tc,variant:"contained",color:"primary",children:c("Go to Interview")})]})]}),(0,n.jsx)(W.Z,{open:ek,autoHideDuration:3e3,onClose:()=>eC(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,n.jsx)(R.Z,{severity:"warning",variant:"filled",children:e_})})]})};var ep=i(32673),em=i(34517);function eg(){let e=(0,Z.I0)(),t=JSON.parse(localStorage.getItem("userData")),i=localStorage.getItem("accessToken"),[p,m]=(0,r.useState)(!1);(0,u.a)();let g=(0,l.Z)(),f=(0,h.useRouter)(),j=((null==t?void 0:t.first_name)||"").trim();(0,r.useEffect)(()=>
1{i&&(document.cookie="accessToken=".concat(i,"; path=/; samesite=Lax"))},[i]);let b=()=>{t&&t.id&&(0,w.Of)(t.id).then(t=>{e((0,y.fs)(t))}).catch(e=>{console.error(e)})};return((0,r.useEffect)(()=>{b()},[]),p)?(0,n.jsx)(v,{}):(0,n.jsxs)(n.Fragment,{children:[(0,ep.NP)(),(0,em.D)(),(0,em.u)(),(0,n.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",width:"100%",mx:"auto",maxWidth:"1400px",p:2,gap:6},children:[(0,n.jsxs)(o.Z,{sx:{position:"relative",overflow:"hidden",borderRadius:3,p:{xs:4,md:5},color:"common.white",background:"linear-gradient(135deg, ".concat(g.palette.primary.dark," 0%, ").concat(g.palette.primary.main," 60%, ").concat(g.palette.primary.light," 100%)")},children:[(0,n.jsx)(o.Z,{sx:{position:"absolute",top:-60,right:-40,width:200,height:200,borderRadius:"50%",backgroundColor:(0,d.Fq)("#fff",.08)}}),(0,n.jsx)(o.Z,{sx:{position:"absolute",bottom:-80,right:110,width:150,height:150,borderRadius:"50%",backgroundColor:(0,d.Fq)("#fff",.06)}}),(0,n.jsxs)(o.Z,{sx:{position:"relative",display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{md:"center"},gap:3},children:[(0,n.jsxs)(o.Z,{children:[(0,n.jsx)(a.Z,{variant:"h4",sx:{fontWeight:700,color:"common.white"},children:j?"Welcome back, ".concat(j):"Welcome back"}),(0,n.jsx)(a.Z,{variant:"body1",sx:{color:(0,d.Fq)("#fff",.9),mt:1},children:"Pick up where you left off, or start something new."})]}),(0,n.jsx)(o.Z,{sx:{display:"flex",gap:1.5,flexWrap:"wrap",width:{xs:"100%",md:"auto"},flexShrink:0},children:[{label:"Video Resume",icon:"mdi:video-account",href:"/jobs/create"},{label:"Mock Interview",icon:"mdi:account-voice",href:"/jobs/createmock"},{label:"Resume",icon:"mdi:file-document-outline",href:"/ai-resume-builder"}].map(e=>(0,n.jsx)(s.Z,{variant:"contained",startIcon:(0,n.jsx)(c.Z,{icon:e.icon}),onClick:()=>f.push(e.href),sx:{flex:{xs:"1 1 100%",sm:"1 1 auto",md:"0 0 auto"},...x.RZ},children:e.label},e.label))})]})]}),(0,n.jsx)(o.Z,{sx:{display:"flex",flexDirection:"column",width:"100%",gap:2},children:(0,n.jsx)(eu,{})})]})]})}},30138:function(){},97740:function(){}},function(e){e.O(0,[6886,3911,6161,6551,5306,9406,4117,4650,7259,3020,9774,2888,179],function(){return e(e.s=26117)}),_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.