1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4063],{4522:(e,t,l)=>{"use strict";l.d(t,{zY:()=>i.A,iv:()=>n.A,Tk:()=>o,Wh:()=>u,ji:()=>p,Mb:()=>x});var i=l(91816),n=l(38845),s=l(23798),r=l(35243),a=l(39811);let o=e=>{let{label:t,value:l,title:i,hint:n,testId:o}=e;return(0,s.jsxs)(r.A,{"data-testid":o,sx:{border:"1px solid",borderColor:"divider",borderRadius:"10px",px:1.5,py:1,minWidth:0,bgcolor:"background.paper"},children:[(0,s.jsx)(a.A,{sx:{fontFamily:'"Fragment Mono", monospace',fontSize:"0.6rem",letterSpacing:"0.1em",textTransform:"uppercase",color:"text.secondary",display:"block",mb:.25},children:t}),(0,s.jsx)(a.A,{title:i,"data-testid":o?"".concat(o,"-value"):void 0,sx:{fontSize:"0.95rem",fontWeight:600,fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l}),n&&(0,s.jsx)(a.A,{variant:"caption",color:"text.secondary",noWrap:!0,display:"block",children:n})]})};var d=l(17999),c=l(84201);function x(e,t){switch(t){case"info":return e.palette.info.main;case"success":return e.palette.success.dark;case"warning":return e.palette.warning.main;case"error":return e.palette.error.main;default:return e.palette.text.secondary}}let u=e=>{let{label:t,tone:l,pulsing:i=!1,size:n="medium"}=e,o=(0,d.A)(),u=x(o,l),p="small"===n;return(0,s.jsxs)(r.A,{sx:{display:"inline-flex",alignItems:"center",gap:.75,px:p?1:1.25,py:p?.35:.5,borderRadius:999,flexShrink:0,border:"1px solid ".concat((0,c.X4)(u,.4)),bgcolor:(0,c.X4)(u,"dark"===o.palette.mode?.16:.09)},children:[(0,s.jsx)(r.A,{sx:{width:p?7:8,height:p?7:8,borderRadius:"50%",bgcolor:u,"@keyframes editorialStatusPulse":{"0%":{opacity:1},"50%":{opacity:.35},"100%":{opacity:1}},animation:i?"editorialStatusPulse 1.6s ease-in-out infinite":"none"}}),(0,s.jsx)(a.A,{variant:"caption",sx:{fontWeight:600,color:u,lineHeight:1,fontSize:p?"0.68rem":void 0,whiteSpace:"nowrap"},children:t})]})};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"eyebrow";return{fontFamily:'"Fragment Mono", monospace',fontSize:"eyebrow"===e?"0.68rem":"0.62rem",letterSpacing:"0.12em",textTransform:"uppercase",color:"text.secondary"}}},5661:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)([(0,n.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7M7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9"},"0"),(0,n.jsx)("circle",{cx:"12",cy:"9",r:"2.5"},"1")],"LocationOnOutlined")},12321:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0-8 5-8-5zm0 12H4V8l8 5 8-5z"}),"EmailOutlined")},13592:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded")},14495:(e,t,l)=>{"use strict";l.d(t,{A7:()=>a,MT:()=>d,Qb:()=>o});var i=l(23798),n=l(35243),s=l(39811),r=l(4522);let a=e=>{let{children:t}=e;return(0,i.jsx)(n.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"170px 1fr"},rowGap:1,columnGap:2,alignItems:"baseline"},children:t})},o=e=>{let{label:t,value:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{component:"span",sx:(0,r.ji)("tag"),children:t}),(0,i.jsx)(s.A,{variant:"body2",sx:{color:"Not provided"===l?"text.disabled":"text.primary"},children:l})]})},d=e=>{let{label:t,children:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{component:"span",sx:(0,r.ji)("tag"),children:t}),(0,i.jsx)(n.A,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:l})]})}},33900:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var i=l(23798),n=l(35243),s=l(39811),r=l(5240),a=l(88135),o=l(5720);l(21462);let d=e=>{let{id:t,title:l,badge:d,onEdit:c,onAdd:x,editTestId:u,addTestId:p,children:h}=e;return(0,i.jsxs)(n.A,{id:t,sx:{bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"10px",p:{xs:2.5,md:3},scrollMarginTop:64},children:[(0,i.jsxs)(n.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[(0,i.jsxs)(n.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,i.jsx)(s.A,{variant:"h6",children:l}),d]}),(0,i.jsxs)(n.A,{children:[x&&(0,i.jsx)(r.A,{size:"small",onClick:x,"data-testid":p,"aria-label":"Add ".concat(l),children:(0,i.jsx)(o.A,{fontSize:"small"})}),c&&(0,i.jsx)(r.A,{size:"small",onClick:c,"data-testid":u,"aria-label":"Edit ".concat(l),children:(0,i.jsx)(a.A,{fontSize:"small"})})]})]}),h]})}},38845:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(23798),n=l(35243),s=l(39811);let r=e=>
1{let{icon:t,title:l,subtitle:r,meta:a,disableContentPadding:o,children:d}=e;return(0,i.jsxs)(n.A,{sx:{bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"10px",overflow:"hidden"},children:[l&&(0,i.jsxs)(n.A,{sx:{display:"flex",alignItems:"center",gap:1.5,px:{xs:2,md:2.5},py:1.5,borderBottom:"1px solid",borderColor:"divider"},children:[t&&(0,i.jsx)(n.A,{sx:{width:34,height:34,borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,bgcolor:e=>"dark"===e.palette.mode?"rgba(245, 239, 230, 0.08)":"#f1e9df",color:"text.primary","& svg":{fontSize:18}},children:t}),(0,i.jsxs)(n.A,{sx:{flex:1,minWidth:0},children:[(0,i.jsx)(s.A,{sx:{fontWeight:600,lineHeight:1.3},noWrap:!0,children:l}),r&&(0,i.jsx)(s.A,{variant:"caption",color:"text.secondary",noWrap:!0,display:"block",children:r})]}),a&&(0,i.jsx)(n.A,{sx:{display:"flex",alignItems:"center",gap:.75,flexShrink:0},children:a})]}),(0,i.jsx)(n.A,{sx:o?void 0:{px:{xs:2,md:2.5},py:{xs:2,md:2.5}},children:d})]})}},46287:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language")},48764:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},51221:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var i=l(21462),n=l(71623),s=l(42432),r=l(71160),a=l(38340),o=l(76805),d=l(39811),c=l(6766),x=l(44778);function u(e){return(0,x.Ay)("MuiDialogContentText",e)}(0,c.A)("MuiDialogContentText",["root"]);var p=l(23798);let h=(0,a.Ay)(d.A,{shouldForwardProp:e=>(0,r.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m=i.forwardRef(function(e,t){let l=(0,o.b)({props:e,name:"MuiDialogContentText"}),{children:i,className:r,...a}=l,d=(e=>{let{classes:t}=e,l=(0,s.A)({root:["root"]},u,t);return{...t,...l}})(a);return(0,p.jsx)(h,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:a,className:(0,n.A)(d.root,r),...l,classes:d})})},57550:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return l(74186)}])},74186:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>eR});var i=l(23798),n=l(21462),s=l(40568),r=l(35243),a=l(94917),o=l(39811),d=l(24731),c=l(99420),x=l(46254),u=l(48764),p=l(5661),h=l(12321),m=l(27705);let j=(0,m.A)((0,i.jsx)("path",{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79zm9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75zM7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1"}),"PhoneOutlined");var b=l(96843),A=l(82226),v=l(46287),f=l(73287),g=l(11499),y=l(41444),_=l(19339),C=l(76971),w=l(3330),S=l(88067),k=l(69433),W=l(1618),z=l(84201),I=l(13592),L=l(90470),M=l(89577),E=l.n(M);let T={bgcolor:"background.paper",borderRadius:"10px",p:2.5,border:"1px solid",borderColor:"divider"},R={height:8,borderRadius:"999px",bgcolor:"action.hover","& .MuiLinearProgress-bar":{bgcolor:"primary.main",borderRadius:"999px"}},N=e=>{var t;let{percent:l,checks:n,firstIncompleteId:s,onContinue:a}=e,d=n.filter(e=>!e.done),c=0===d.length,x=d.slice(0,3),u=null==(t=d[0])?void 0:t.label;return c?(0,i.jsxs)(r.A,{"data-testid":"profile-completion-card",sx:e=>({...T,bgcolor:(0,z.X4)(e.palette.success.dark,"dark"===e.palette.mode?.14:.08),borderColor:(0,z.X4)(e.palette.success.dark,.35)}),children:[(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"flex-start",ga
1p:1.25,mb:1.75},children:[(0,i.jsx)(I.A,{sx:{color:"success.dark",mt:.1,fontSize:26}}),(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{variant:"subtitle1",sx:{lineHeight:1.3},children:"Your profile is complete"}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:"You're set up for stronger job matches."})]})]}),(0,i.jsx)(r.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:"100% complete"})}),(0,i.jsx)(k.A,{variant:"determinate",value:100,sx:{...R,mb:2}}),(0,i.jsx)(W.A,{component:E(),href:"/dashboard",fullWidth:!0,variant:"contained",children:"Browse jobs"})]}):(0,i.jsxs)(r.A,{"data-testid":"profile-completion-card",sx:T,children:[(0,i.jsx)(o.A,{variant:"subtitle1",sx:{lineHeight:1.3,mb:.5},children:"Finish your profile"}),(0,i.jsxs)(o.A,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:[l,"% complete \xb7 ",d.length," left to improve matching"]}),(0,i.jsx)(k.A,{variant:"determinate",value:l,sx:{...R,mb:d.length?1.25:2}}),x.length>0&&(0,i.jsxs)(r.A,{sx:{mb:1.75},children:[x.map((e,t)=>(0,i.jsxs)(r.A,{component:"button",type:"button",onClick:()=>a(e.id),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:1,py:1,px:0,bgcolor:"transparent",border:0,borderBottom:t===x.length-1?0:"1px solid",borderColor:"divider",cursor:"pointer",textAlign:"left",font:"inherit",color:"text.primary","&:hover .gap-label":{textDecoration:"underline"}},children:[(0,i.jsxs)(o.A,{className:"gap-label",variant:"body2",children:["Add ",e.label]}),(0,i.jsx)(L.A,{sx:{fontSize:20,color:"text.secondary"}})]},"".concat(e.id,"-").concat(e.label))),d.length>3&&(0,i.jsxs)(o.A,{variant:"caption",color:"text.secondary",children:["+",d.length-3," more"]})]}),(0,i.jsx)(W.A,{fullWidth:!0,variant:"contained",onClick:()=>s&&a(s),children:u?"Add ".concat(u):"Continue"})]})};var D=l(33900),F=l(14495),P=l(4522),H=l(3484);let Q=()=>{var e;let{status:t}=(0,H.I)(),l=!!(null==t?void 0:t.paired),n=!!(null==t?void 0:t.online);return(0,i.jsxs)(D.A,{id:"computer",title:"Computer",children:[l?(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{variant:"body2",sx:{color:"text.secondary",mb:2},children:"Queued applications fill in Chrome on this paired computer."}),(0,i.jsxs)(F.A7,{children:[(0,i.jsx)(F.Qb,{label:"Name",value:(null==t?void 0:t.device_name)||"This computer"}),(0,i.jsx)(F.MT,{label:"Status",children:(0,i.jsx)(P.Wh,{label:n?"Online":"Offline",tone:n?"success":"warning",size:"small",pulsing:n})}),(0,i.jsx)(F.Qb,{label:"Last seen",value:function(e){if(!e)return"Never";let t=new Date(e);return Number.isNaN(t.getTime())?"Never":t.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}(null!=(e=null==t?void 0:t.last_seen_at)?e:null)})]})]}):(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{variant:"body1",sx:{fontWeight:600,mb:.75},children:"Pair a computer so applications fill in your Chrome."}),(0,i.jsxs)(o.A,{variant:"body2",sx:{color:"text.secondary"},children:["Install the HiAir CLI, run ",(0,i.jsx)(r.A,{component:"code",children:"hiair login"}),", then"," ",(0,i.jsx)(r.A,{component:"code",children:"hiair apply"})," (or"," ",(0,i.jsx)(r.A,{component:"code",children:"hiair service install"})," on a Mac)."]})]}),(0,i.jsx)(W.A,{component:E(),href:"/cli",variant:l?"outlined":"contained",size:"small",sx:{mt:2.5,textTransform:"none"},"data-testid":"computer-manage",children:l?"Manage computer":"Set up computer"})]})};var O=l(5240),U=l(88135),q=l(45448);let B=e=>{let{items:t,emptyLabel:l,onEdit:n,onDelete:s}=e;return t.length?(0,i.jsx)(r.A,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:t.map((e,l)=>{var a;return(0,i.jsxs)(r.A,{sx:{display:"flex",gap:2},children:[(0,i.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:16,pt:.5},children:[(0,i.jsx)(r.A,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:"primary.main"}}),l<t.length-1&&(0,i.jsx)(r.A,{sx:{width:2,flex:1,bgcolor:"divider",mt:.5,minHeight:24}})]}),(0,i.jsxs)(r.A,{sx:{flex:1,minWidth:0},children:[(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{sx:{fontWeight:500},children:e.title}),e.subtitle&&(0,i.jsx)(o.A,{color:"text.secondary",children:e.subt
1itle}),e.meta&&(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:e.meta})]}),(0,i.jsxs)(r.A,{sx:{flexShrink:0},children:[n&&(0,i.jsx)(O.A,{size:"small",onClick:()=>n(e.id),"aria-label":"Edit entry",children:(0,i.jsx)(U.A,{fontSize:"small"})}),s&&(0,i.jsx)(O.A,{size:"small",onClick:()=>s(e.id),"aria-label":"Delete entry",children:(0,i.jsx)(q.A,{fontSize:"small"})})]})]}),(null==(a=e.bullets)?void 0:a.length)?(0,i.jsx)(r.A,{component:"ul",sx:{m:0,mt:1,pl:2.5},children:e.bullets.map(e=>(0,i.jsx)(o.A,{component:"li",variant:"body2",sx:{mb:.5},children:e},e))}):null]})]},e.id)})}):(0,i.jsx)(r.A,{"data-testid":"timeline-empty",sx:{px:2,py:2.5,textAlign:"center",border:"1px dashed",borderColor:"divider",borderRadius:"10px"},children:(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:l})})};var V=l(37338),G=l(93547),X=l(34295),Y=l(56268),J=l(65396),Z=l(13854);let K=e=>{let{open:t,user:l,onClose:s}=e,{save:r,saving:a}=(0,S.c)(),[o,d]=(0,n.useState)(""),[c,x]=(0,n.useState)(""),[u,p]=(0,n.useState)(""),[h,m]=(0,n.use
1State)(""),[j,b]=(0,n.useState)(""),[A,v]=(0,n.useState)(""),[f,g]=(0,n.useState)(""),[y,_]=(0,n.useState)(!1);(0,n.useEffect)(()=>{t&&(d(l.first_name||""),x(l.last_name||""),p(l.email||""),m(l.phone||""),b(l.linkedin_url||""),v(l.github_url||""),g(l.website_url||""),_(!1))},[t,l]);let C=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u.trim()),w=async()=>{if(!o.trim()||!c.trim()||!C)return void _(!0);try{await r({first_name:o.trim(),last_name:c.trim(),email:u.trim(),phone:h.trim()||null,github_url:A.trim()||null,website_url:f.trim()||null,linkedin_url:j.trim()||null}),s()}catch(e){}};return(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",children:[(0,i.jsx)(G.A,{children:"Edit personal info"}),(0,i.jsx)(X.A,{children:(0,i.jsxs)(Y.A,{spacing:2,sx:{mt:1},children:[(0,i.jsx)(J.A,{label:"First name",value:o,onChange:e=>d(e.target.value),error:y&&!o.trim(),helperText:y&&!o.trim()?"Required":" ","data-testid":"profile-first-name"}),(0,i.jsx)(J.A,{label:"Last name",value:c,onChange:e=>x(e.target.value),error:y&&!c.trim(),helperText:y&&!c.trim()?"Required":" ","data-testid":"profile-last-name"}),(0,i.jsx)(J.A,{label:"Email",type:"email",value:u,onChange:e=>p(e.target.value),error:y&&!C,helperText:y&&!C?"Enter a valid email":"Used on job applications","data-testid":"profile-email"}),(0,i.jsx)(J.A,{label:"Phone",value:h,onChange:e=>m(e.target.value)}),(0,i.jsx)(J.A,{label:"LinkedIn URL",value:j,onChange:e=>b(e.target.value)}),(0,i.jsx)(J.A,{label:"GitHub URL",value:A,onChange:e=>v(e.target.value)}),(0,i.jsx)(J.A,{label:"Website",value:f,onChange:e=>g(e.target.value)})]})}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:w,disabled:a,"data-testid":"save-personal",children:a?"Savingâ¦":"Save"})]})]})};var $=l(33381),ee=l(57073),et=l(27567),el=l(22511),ei=l(19702),en=l(33535);let es=l(81234).$L.OM.fF,er=e=>{let{open:t,user:l,onClose:s}=e,{save:a,saving:d}
1=(0,S.c)(),[c,u]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),[m,j]=(0,n.useState)(["Full-time"]),[b,A]=(0,n.useState)(w.oL),[v,f]=(0,n.useState)(!0),[g,y]=(0,n.useState)(null);(0,n.useEffect)(()=>{var e,i;t&&(u(l.job_function||""),h(l.job_function_category||""),j((null==(e=l.job_types)?void 0:e.length)?l.job_types:["Full-time"]),A(l.location||w.oL),f(l.open_to_remote),y(null!=(i=l.salary_expectation)?i:null))},[t,l]);let C=async()=>{c.trim()&&m.length&&(await a({job_function:c.trim(),job_function_category:p||null,job_types:m,location:b.trim()||w.oL,open_to_remote:v,salary_expectation:g}),s())};return(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",children:[(0,i.jsx)(G.A,{children:"Edit job preferences"}),(0,i.jsx)(X.A,{children:(0,i.jsxs)(Y.A,{spacing:2.5,sx:{mt:1},children:[(0,i.jsx)(ei.A,{value:c,category:p,onChange:(e,t)=>{u(e),h(t)}}),(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{sx:{fontWeight:500,mb:1},children:"Job type"}),(0,i.jsx)(r.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:es.map(e=>(0,i.jsx)(x.A,{label:e,clickable:!0,color:m.includes(e)?"primary":"default",variant:m.includes(e)?"filled":"outlined",onClick:()=>(e=>{j(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e)},e))})]}),(0,i.jsx)(en.A,{value:b,onChange:A}),(0,i.jsx)($.A,{control:(0,i.jsx)(ee.A,{checked:v,onChange:e=>f(e.target.checked)}),label:(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.5},children:["Open to remote",(0,i.jsx)(et.A,{title:"Include roles that can be done remotely, even if you also picked a city.",children:(0,i.jsx)(el.A,{fontSize:"small",color:"action"})})]})}),(0,i.jsx)(_.Ay,{value:g,onChange:y})]})}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:C,disabled:d||!c.trim()||!m.length||null!=g&&!(0,_.Rx)(g),"data-testid":"save-preferences",children:d?"Savingâ¦":"Save"})]})]})},ea=(0,m.A)((0,i.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined");var eo=l(10177),ed=l(29814),ec=l(96295),ex=l(82779),eu=l(93180),ep=l(28744),eh=l(46382),em=l(91117),ej=l(41050);let eb=e=>{let{open:t,initialFile:l,onClose:s,onUploaded:d}=e,[c,x]=(0,n.useState)(null),[u,p]=(0,n.useState)(!0),{upload:h,stage:m,error:j,setError:b}=(0,em.g)(),A="idle"!==m;(0,n.useEffect)(()=>{t&&(x(l),p(!0),b(""))},[t,l,b]);let v=async()=>{if(!c)return;let e=await h(c,{applyToProfile:u});e&&d(e.notice)};return(0,i.jsxs)(V.A,{open:t,onClose:A?void 0:s,fullWidth:!0,maxWidth:"sm","data-testid":"resume-dialog",children:[(0,i.jsx)(G.A,{children:c?"Upload this resume":"Upload a resume"}),(0,i.jsxs)(X.A,{children:[j&&(0,i.jsx)(a.A,{severity:"error",sx:{mb:2},onClose:()=>b(""),"data-testid":"resume-error",children:j}),(0,i.jsxs)(Y.A,{spacing:3,sx:{mt:1},children:[(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(W.A,{variant:"outlined",component:"label",disabled:A,sx:{textTransform:"none"},"data-testid":"resume-pick-file",children:[c?"Choose a different file":"Choose a file",(0,i.jsx)("input",{hidden:!0,type:"file",accept:w.Fh,"data-testid":"profile-resume-upload",onChange:e=>{var t,l;let i=null!=(l=null==(t=e.target.files)?void 0:t[0])?l:null;e.target.value="",i&&(b(""),x(i))}})]}),c?(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:1,mt:1.5},"data-testid":"resume-selected-file",children:[(0,i.jsx)(f.A,{color:"action",fontSize:"small"}),(0,i.jsx)(o.A,{sx:{fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.name}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:(0,ej.v7)(c.size)})]}):(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",sx:{mt:1.5},children:"PDF or Word document, up to 8MB"})]}),(0,i.jsxs)(ed.A,{disabled:A,children:[(0,i.jsx)(ec.A,{sx:{mb:.5,color:"text.primary",fontWeight:500},children:"Also update my saved profile from this resume?"}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Yes replaces your experience, education and skills with what the resume says. Your name and contact details are only filled in where they are blank. Either way we read the resume so it is ready to edit when we apply for you."}),(0,i.jsxs)(ex.A,{row:!0,value:u?"yes":"no",onChange:e=>p("yes"===e.target.value),"data-testid":"resume-apply-choice",children:[(0,i.jsx)($.A,{value:"yes",control:(0,i.jsx)(eu.A,{}),label:"Yes, update it"}),(0,i.jsx)($.A,{value:"no",control:(0,i.jsx)(eu.A,{}),label:"No, just save the file"})]})]})]})]}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,disabled:A,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:v,disabled:A||!c,startIcon:A?(0,i.jsx)(ep.A,{size:16,color:"inherit"}):void 0,"data-testid":"resume-save",children:"parsing"===m?"Reading your resumeâ¦":A?"Uploadingâ¦":"Upload"})]}),(0,i.jsx)(eh.G,{loading:A})]})};var eA=l(51221),ev=l(59670);let ef=e=>{let{open:t,user:l,onClose:s}=e,{save:r,saving:a}
1=(0,S.c)(),[d,c]=(0,n.useState)("");(0,n.useEffect)(()=>{t&&c((0,ej.G6)(l))},[t,l]);let x=(0,ej.FR)(l.resume_url),u=(0,ej.t5)(d),p="".concat(u||(0,ej.tF)(l)).concat(x),h=async()=>{try{await r({resume_file_name:u||null}),s()}catch(e){}};return(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm","data-testid":"resume-name-dialog",children:[(0,i.jsx)(G.A,{children:"Edit resume file name"}),(0,i.jsxs)(X.A,{children:[(0,i.jsx)(eA.A,{sx:{mb:2},children:"This is the file name employers see when we upload your resume for you."}),(0,i.jsxs)(Y.A,{spacing:1.5,sx:{mt:1},children:[(0,i.jsx)(J.A,{label:"File name",value:d,onChange:e=>c(e.target.value),inputProps:{maxLength:ej.y1},InputProps:{endAdornment:(0,i.jsx)(ev.A,{position:"end",children:x})},helperText:"Leave blank to use your name.","data-testid":"resume-name-input"}),(0,i.jsxs)(o.A,{variant:"body2",color:"text.secondary",children:["Uploads as"," ",(0,i.jsx)(o.A,{component:"span",variant:"body2",sx:{fontWeight:500},children:p})]})]})]}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:h,disabled:a,"data-testid":"save-resume-name",children:a?"Savingâ¦":"Save"})]})]})},eg=(e,t)=>"".concat(e," ").concat(t).concat(1===e?"":"s"),ey=e=>{let{user:t}=e,[l,s]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),[x,u]=(0,n.use
1State)(null),[p,h]=(0,n.useState)(!1),[m,j]=(0,n.useState)(""),b=t.resume_url,A=t.resume_document,v=A?(0,ej.CW)(A):null,g=e=>{j(""),u(e),s(!0)};return(0,i.jsxs)(D.A,{id:"resume",title:"Resume",children:[m&&(0,i.jsx)(a.A,{severity:"success",sx:{mb:2},onClose:()=>j(""),"data-testid":"resume-notice",children:m}),b&&(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:1.5,p:1.5,mb:2,borderRadius:"10px",border:1,borderColor:"divider"},children:[(0,i.jsx)(f.A,{color:"action"}),(0,i.jsxs)(r.A,{sx:{minWidth:0,flex:1},children:[(0,i.jsx)(o.A,{sx:{fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"resume-file-name",children:(0,ej.g9)(t)}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:"The name employers see when we apply on your behalf"}),(0,i.jsxs)(o.A,{variant:"body2",color:"text.secondary",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"resume-stored-file-name",children:["Uploaded from ",(0,ej.zk)(b)]})]}),(0,i.jsx)(et.A,{title:"Edit file name",children:(0,i.jsx)(O.A,{size:"small",onClick:()=>c(!0),"data-testid":"edit-resume-name",children:(0,i.jsx)(U.A,{fontSize:"small"})})}),(0,i.jsx)(W.A,{component:"a",href:b,target:"_blank",rel:"noreferrer",size:"small",children:"View"})]}),A&&v&&(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,p:1.5,mb:2,borderRadius:"10px",border:1,borderColor:"divider",bgcolor:"action.hover"},"data-testid":"resume-document-summary",children:[(0,i.jsx)(ea,{color:"action",fontSize:"small",sx:{mt:.25}}),(0,i.jsxs)(r.A,{sx:{minWidth:0},children:[(0,i.jsx)(o.A,{sx:{fontWeight:500},children:"Ready to edit while applying"}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:[eg(v.roles,"role"),eg(v.bullets,"bullet"),eg(v.skills,"skill")].join(" \xb7 ")}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary","data-testid":"resume-document-source",children:"upload"===A.source?"Built from your uploaded file, so it may differ from the profile below.":"Built from your saved profile below."})]})]}),(0,i.jsxs)(r.A,{onClick:()=>g(null),onDragOver:e=>{e.preventDefault(),h(!0)},onDragLeave:()=>h(!1),onDrop:e=>{e.preventDefault(),h(!1);let t=e.dataTransfer.files[0];t&&g(t)},"data-testid":"resume-dropzone",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1,p:3,borderRadius:"10px",border:"1px dashed",borderColor:p?"primary.main":"divider",bgcolor:p?"action.hover":"transparent",cursor:"pointer",textAlign:"center",transition:"border-color 120ms, background-color 120ms"},children:[(0,i.jsx)(eo.A,{color:"action"}),(0,i.jsx)(o.A,{sx:{fontWeight:500},children:b?"Drop a new resume here":"Drop your resume here"}),(0,i.jsx)(W.A,{variant:"outlined","data-testid":"resume-browse",children:b?"Replace resume":"Upload resume"}),(0,i.jsx)(o.A,{variant:"body2",color:"text.secondary",children:"PDF or Word document, up to 8MB"})]}),(0,i.jsx)(eb,{open:l,initialFile:x,onClose:()=>s(!1),onUploaded:e=>{s(!1),j(e)}}),(0,i.jsx)(ef,{open:d,user:t,onClose:()=>c(!1)})]})};var e_=l(92168),eC=l(25897);let ew=()=>{let e=(0,s.useRouter)(),[t,l]=(0,n.useState)(!1),[r,o]=(0,n.useState)(""),d=async()=>{if(!e_.j2.currentUser)return void o("You have been signed out. Please sign in again.");l(!0),o("");try{await (0,eC.k)(e_.j2.currentUser),await e.push("/auth/verify-email")}catch(e){var t;o(null!=(t=null==e?void 0:e.message)?t:"Could not send the verification email. Please try again."),l(!1)}};return(0,i.jsx)(a.A,{severity:"warning",sx:{mb:2},"data-testid":"verify-email-nudge",action:(0,i.jsx)(W.A,{color:"inherit",size:"small",onClick:d,disabled:t,"data-testid":"verify-email-nudge-action",children:t?(0,i.jsx)(ep.A,{size:16,color:"inherit"}):"Verify email"}),children:r||"Verify your email to secure your account and keep getting application updates."})};var eS=l(70754),ek=l(84076);let eW=e=>{let{open:t,skills:l,onClose:s,onSave:a,saving:o}=e,[d,c]=(0,n.useState)([]),[u,p]=(0,n.useState)("");return(0,n.useEffect)(()=>{t&&(c(l),p(""))},[t,l]),(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",children:[(0,i.jsx)(G.A,{children:"Edit skills"}),(0,i.jsxs)(X.A,{children:[(0,i.jsx)(J.A,{label:"Add a skill",value:u,onChange:e=>p(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),(()=>{let e=u.trim();if(!e||d.some(t=>t.toLowerCase()===e.toLowerCase()))return p("");c([...d,e]),p("")})())},fullWidth:!0,sx:{mt:1},helperText:"Press Enter to add"}),(0,i.jsx)(r.A,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:2},children:d.map(e=>(0,i.jsx)(x.A,{label:e,onDelete:()=>c(d.filter(t=>t!==e))},e))})]}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:()=>a(d).then(s),disabled:o,children:o?"Savingâ¦":"Save"})]})]})};var ez=l(11463);let eI=e=>{let{open:t,user:l,onClose:s}=e,{save:r,saving:a}
1=(0,S.c)(),[d,c]=(0,n.useState)(""),[x,u]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),[m,j]=(0,n.useState)(""),[b,A]=(0,n.useState)(""),[v,f]=(0,n.useState)(""),[g,y]=(0,n.useState)(""),[_,C]=(0,n.useState)("");(0,n.useEffect)(()=>{t&&(c(l.eeo_gender||""),u(l.eeo_hispanic_or_latino||""),h(l.eeo_race||""),j(l.eeo_disability||""),A(l.eeo_veteran||""),f(l.eeo_lgbtq||""),y(l.eeo_sexual_orientation||""),C(l.eeo_pronouns||""))},[t,l]);let k=async()=>{await r({eeo_gender:d||null,eeo_hispanic_or_latino:x||null,eeo_race:p||null,eeo_disability:m||null,eeo_veteran:b||null,eeo_lgbtq:v||null,eeo_sexual_orientation:g||null,eeo_pronouns:_||null}),s()};return(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",children:[(0,i.jsx)(G.A,{children:"Equal employment"}),(0,i.jsxs)(X.A,{children:[(0,i.jsx)(o.A,{color:"text.secondary",sx:{mt:1,mb:2},children:"These answers are voluntary and are never used for job matching."}),(0,i.jsxs)(Y.A,{spacing:2,children:[(0,i.jsxs)(J.A,{select:!0,label:"Gender",value:d,onChange:e=>c(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.ZM.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Hispanic or Latino",value:x,onChange:e=>u(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.zY.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Race / ethnicity",value:p,onChange:e=>h(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.vx.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Disability",value:m,onChange:e=>j(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.Cp.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Veteran status",value:b,onChange:e=>A(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.nf.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"LGBTQ+",value:v,onChange:e=>f(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.K.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Sexual orientation",value:g,onChange:e=>y(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.tF.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]}),(0,i.jsxs)(J.A,{select:!0,label:"Pronouns",value:_,onChange:e=>C(e.target.value),children:[(0,i.jsx)(ez.A,{value:"",children:"Not provided"}),w.XT.map(e=>(0,i.jsx)(ez.A,{value:e,children:e},e))]})]})]}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:k,disabled:a,children:a?"Savingâ¦":"Save"})]})]})},eL=e=>{let{open:t,user:l,onClose:s}=e,{save:r,saving:a}
1=(0,S.c)(),[d,c]=(0,n.useState)(""),[x,u]=(0,n.useState)("");(0,n.useEffect)(()=>{t&&(c(l.authorized_to_work_us||""),u(l.requires_visa_sponsorship||""))},[t,l]);let p=async()=>{await r({authorized_to_work_us:d||null,requires_visa_sponsorship:x||null}),s()};return(0,i.jsxs)(V.A,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",children:[(0,i.jsx)(G.A,{children:"Work eligibility"}),(0,i.jsxs)(X.A,{children:[(0,i.jsx)(o.A,{color:"text.secondary",sx:{mt:1,mb:2},children:"Applications ask these often. Save them once and we will reuse them when you apply."}),(0,i.jsxs)(Y.A,{spacing:3,children:[(0,i.jsxs)(ed.A,{children:[(0,i.jsx)(ec.A,{sx:{mb:1,color:"text.primary",fontWeight:500},children:w.yo}),(0,i.jsx)(ex.A,{row:!0,value:d,onChange:e=>c(e.target.value),children:w.pN.map(e=>(0,i.jsx)($.A,{value:e,control:(0,i.jsx)(eu.A,{}),label:e},e))})]}),(0,i.jsxs)(ed.A,{children:[(0,i.jsx)(ec.A,{sx:{mb:1,color:"text.primary",fontWeight:500},children:w._o}),(0,i.jsx)(ex.A,{row:!0,value:x,onChange:e=>u(e.target.value),children:w.pN.map(e=>(0,i.jsx)($.A,{value:e,control:(0,i.jsx)(eu.A,{}),label:e},e))})]})]})]}),(0,i.jsxs)(Z.A,{sx:{px:3,pb:2},children:[(0,i.jsx)(W.A,{onClick:s,children:"Cancel"}),(0,i.jsx)(W.A,{variant:"contained",onClick:p,disabled:a,"data-testid":"save-eligibility",children:a?"Savingâ¦":"Save"})]})]})};function eM(e){var t;null==(t=document.getElementById(e))||t.scrollIntoView({behavior:"smooth",block:"start"})}function eE(e){return(null==e?void 0:e.trim())||"Not provided"}let eT=()=>{var e,t,l;let m=(0,s.useRouter)(),{role:k,marketplaceUser:W}=(0,y.Z2)(),{save:z,saving:I,error:L,setError:M}=(0,S.c)();(0,n.useEffect)(()=>{if(!m.isReady)return;let e="string"==typeof m.query.inbox?m.query.inbox:"";(e||m.asPath.endsWith("#inbox"))&&m.replace("/settings".concat(e?"?inbox=".concat(encodeURIComponent(e)):"","#inbox"))},[m.isReady,m.query.inbox,m.asPath,m]);
1let[E,T]=(0,n.useState)(w.Xs[0].id),[R,P]=(0,n.useState)(!1),[H,O]=(0,n.useState)(!1),[U,q]=(0,n.useState)(!1),[V,G]=(0,n.useState)(null),[X,Y]=(0,n.useState)(!1),[J,Z]=(0,n.useState)(null),[$,ee]=(0,n.useState)(!1),[et,el]=(0,n.useState)(!1),[ei,en]=(0,n.useState)(!1),es=(0,n.useMemo)(()=>W?(0,C.Mv)(W):null,[W]);if(!W)return(0,i.jsx)(g.A,{role:k,children:(0,i.jsx)(r.A,{sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:(0,i.jsx)(r.A,{sx:{maxWidth:720,mx:"auto",p:3},children:(0,i.jsx)(a.A,{severity:"info",children:"Sign in to view your profile."})})})});let ea=W.educations||[],eo=W.experiences||[],ed=W.skills||[],ec=async e=>{await z({educations:e})},ex=async e=>{await z({experiences:e})},eu=e=>({school_name:e.school_name,degree:e.degree,major:e.major,start_date:e.start_date,end_date:e.end_date,currently_attending:e.currently_attending}),ep=e=>({company_name:e.company_name,job_title:e.job_title,employment_type:e.employment_type,job_location:e.job_location,start_date:e.start_date,end_date:e.end_date,currently_working:e.currently_working,description:e.description}),eh=[{icon:(0,i.jsx)(p.A,{fontSize:"small"}),label:W.location||"Location not provided",missing:!W.location},{icon:(0,i.jsx)(h.A,{fontSize:"small"}),label:W.email||"Email not provided",missing:!W.email},{icon:(0,i.jsx)(j,{fontSize:"small"}),label:W.phone||"Phone not provided",missing:!W.phone},{icon:(0,i.jsx)(b.A,{fontSize:"small"}),label:W.linkedin_url||"LinkedIn not provided",missing:!W.linkedin_url},{icon:(0,i.jsx)(A.A,{fontSize:"small"}),label:W.github_url||"GitHub not provided",missing:!W.github_url},{icon:(0,i.jsx)(v.A,{fontSize:"small"}),label:W.website_url||"Website not provided",missing:!W.website_url}];return(0,i.jsx)(g.A,{role:k,children:(0,i.jsxs)(r.A,{sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:[(0,i.jsxs)(r.A,{sx:{maxWidth:1120,mx:"auto",px:{xs:2,md:3},py:3},children:[(0,i.jsx)(r.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{component:"span",sx:{fontFamily:'"Fragment Mono", monospace',fontSize:"0.68rem",letterSpacing:"0.12em",textTransform:"uppercase",color:"text.secondary",display:"block",mb:.5},children:"Your details"}),(0,i.jsx)(o.A,{variant:"h4",children:"Profile"})]})}),(0,i.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.75,color:"text.secondary",mb:2},children:[(0,i.jsx)(u.A,{sx:{fontSize:16}}),(0,i.jsx)(o.A,{variant:"body2",children:"Your profile data is kept private and secure."})]}),L&&(0,i.jsx)(a.A,{severity:"error",sx:{mb:2},onClose:()=>M(""),children:L}),W.email_verification_pending&&(0,i.jsx)(ew,{}),(0,i.jsx)(r.A,{sx:{position:"sticky",top:0,zIndex:20,bgcolor:"background.default",pb:1,mb:2},children:(0,i.jsx)(d.A,{value:E,onChange:(e,t)=>
1{T(t),eM(t)},variant:"scrollable",scrollButtons:"auto",sx:{bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"10px",minHeight:48,"& .MuiTab-root":{textTransform:"none"}},children:w.Xs.map(e=>(0,i.jsx)(c.A,{value:e.id,label:e.label},e.id))})}),(0,i.jsxs)(r.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 300px"},gap:2.5,alignItems:"start"},children:[(0,i.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,i.jsxs)(D.A,{id:"personal",title:"Personal info",onEdit:()=>P(!0),editTestId:"edit-personal",children:[(0,i.jsx)(o.A,{variant:"h5",sx:{mb:2},"data-testid":"profile-display-name",children:(0,C.ZB)(W)}),(0,i.jsx)(r.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:eh.map(e=>(0,i.jsx)(x.A,{icon:e.icon,label:e.label,variant:"outlined",sx:{maxWidth:"100%","& .MuiChip-label":{overflow:"hidden",textOverflow:"ellipsis"},...e.missing&&{borderStyle:"dashed",color:"text.disabled","& .MuiChip-icon":{color:"text.disabled"}}}},e.label))})]}),(0,i.jsx)(ey,{user:W}),(0,i.jsx)(Q,{}),(0,i.jsx)(D.A,{id:"preferences",title:"Job preferences",onEdit:()=>O(!0),editTestId:"edit-preferences",children:(0,i.jsxs)(F.A7,{children:[(0,i.jsx)(F.Qb,{label:"Job function",value:W.job_function||"Not provided"}),(0,i.jsx)(F.Qb,{label:"Job types",value:(W.job_types||[]).join(", ")||"Not provided"}),(0,i.jsx)(F.Qb,{label:"Location",value:W.location||"Not provided"}),(0,i.jsx)(F.Qb,{label:"Open to remote",value:W.open_to_remote?"Yes":"No"}),(0,i.jsx)(F.Qb,{label:"Expected salary",value:(0,_.Q0)(W.salary_expectation)})]})}),(0,i.jsx)(D.A,{id:"eligibility",title:"Work eligibility",onEdit:()=>en(!0),editTestId:"edit-eligibility",children:(0,i.jsx)(r.A,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[{question:w.yo,answer:eE(W.authorized_to_work_us)},{question:w._o,answer:eE(W.requires_visa_sponsorship)}].map(e=>{let{question:t,answer:l}=e;return(0,i.jsxs)(r.A,{sx:{borderLeft:"2px solid",borderColor:"divider",pl:1.5},children:[(0,i.jsx)(o.A,{variant:"body2",sx:{fontWeight:600,mb:.25},children:t}),(0,i.jsx)(o.A,{variant:"body2",sx:{color:"Not provided"===l?"text.disabled":"text.secondary"},children:l})]},t)})})}),(0,i.jsx)(D.A,{id:"education",title:"Education",onAdd:()=>{G(null),q(!0)},addTestId:"add-education",children:(0,i.jsx)(B,{emptyLabel:"Add your education to improve job matching.",onEdit:e=>{let t=ea.find(t=>t.id===e);t&&(G(t),q(!0))},onDelete:async e=>{await ec(ea.filter(t=>t.id!==e).map(eu))},items:ea.map(e=>({id:e.id,title:e.school_name,subtitle:[e.degree,e.major].filter(Boolean).join(" in "),meta:(0,C.tX)(e.start_date,e.end_date,e.currently_attending)}))})}),(0,i.jsx)(D.A,{id:"experience",title:"Work experience",onAdd:()=>{Z(null),Y(!0)},addTestId:"add-experience",children:(0,i.jsx)(B,{emptyLabel:"Add work experience so employers can see your background.",onEdit:e=>{let t=eo.find(t=>t.id===e);t&&(Z(t),Y(!0))},onDelete:async e=>{await ex(eo.filter(t=>t.id!==e).map(ep))},items:eo.map(e=>({id:e.id,title:e.job_title||e.company_name,subtitle:[e.company_name,e.employment_type,e.job_location].filter(Boolean).join(" \xb7 "),meta:(0,C.tX)(e.start_date,e.end_date,e.currently_working),bullets:e.description}))})}),(0,i.jsx)(D.A,{id:"skills",title:"Skills",onEdit:()=>ee(!0),editTestId:"edit-skills",children:ed.length?(0,i.jsx)(r.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:ed.map(e=>(0,i.jsx)(x.A,{label:e},e))}):(0,i.jsx)(o.A,{color:"text.secondary",children:"Add skills to help us match you to the right roles."})}),(0,i.jsx)(D.A,{id:"eeo",title:"Equal employment",onEdit:()=>el(!0),children:(0,i.jsxs)(F.A7,{children:[(0,i.jsx)(F.Qb,{label:"Gender",value:eE(W.eeo_gender)}),(0,i.jsx)(F.Qb,{label:"Hispanic or Latino",value:eE(W.eeo_hispanic_or_latino)}),(0,i.jsx)(F.Qb,{label:"Race / ethnicity",value:eE(W.eeo_race)}),(0,i.jsx)(F.Qb,{label:"Disability",value:eE(W.eeo_disability)}),(0,i.jsx)(F.Qb,{label:"Veteran status",value:eE(W.eeo_veteran)}),(0,i.jsx)(F.Qb,{label:"LGBTQ+",value:eE(W.eeo_lgbtq)}),(0,i.jsx)(F.Qb,{label:"Sexual orientation",value:eE(W.eeo_sexual_orientation)}),(0,i.jsx)(F.Qb,{label:"Pronouns",value:eE(W.eeo_pronouns)})]})})]}),(0,i.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",gap:2,position:{md:"sticky"},top:{md:128}},children:[(0,i.jsx)(N,{percent:null!=(e=null==es?void 0:es.percent)?e:0,checks:null!=(t=null==es?void 0:es.checks)?t
1:[],firstIncompleteId:null!=(l=null==es?void 0:es.firstIncompleteId)?l:null,onContinue:eM}),(0,i.jsxs)(r.A,{sx:{bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"10px",p:2},children:[(0,i.jsxs)(r.A,{onClick:()=>{T("resume"),eM("resume")},sx:{display:"flex",alignItems:"center",gap:1.5,py:1,color:"inherit",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)(f.A,{}),(0,i.jsx)(o.A,{sx:{fontWeight:500},children:W.resume_url?"Manage my resume":"Upload a resume"})]}),(0,i.jsxs)(r.A,{component:W.linkedin_url?"a":"div",href:W.linkedin_url||void 0,target:W.linkedin_url?"_blank":void 0,rel:W.linkedin_url?"noreferrer":void 0,onClick:W.linkedin_url?void 0:()=>P(!0),sx:{display:"flex",alignItems:"center",gap:1.5,py:1,color:"inherit",textDecoration:"none",cursor:"pointer"},children:[(0,i.jsx)(b.A,{}),(0,i.jsx)(o.A,{sx:{fontWeight:500},children:W.linkedin_url?"View LinkedIn":"Add LinkedIn URL"})]})]})]})]})]}),(0,i.jsx)(K,{open:R,user:W,onClose:()=>P(!1)}),(0,i.jsx)(er,{open:H,user:W,onClose:()=>O(!1)}),(0,i.jsx)(eS.A,{open:U,initial:V,saving:I,onClose:()=>{q(!1),G(null)},onSave:async e=>{let t=V?ea.map(t=>t.id===V.id?e:eu(t)):[...ea.map(eu),e];await ec(t)}}),(0,i.jsx)(ek.A,{open:X,initial:J,saving:I,onClose:()=>{Y(!1),Z(null)},onSave:async e=>{let t=J?eo.map(t=>t.id===J.id?e:ep(t)):[...eo.map(ep),e];await ex(t)}}),(0,i.jsx)(eW,{open:$,skills:ed,saving:I,onClose:()=>ee(!1),onSave:async e=>{await z({skills:e})}}),(0,i.jsx)(eL,{open:ei,user:W,onClose:()=>en(!1)}),(0,i.jsx)(eI,{open:et,user:W,onClose:()=>el(!1)})]})})};function eR(){return(0,i.jsx)(eT,{})}},82226:(e,t,l)=>{"use strict";l.d(t,{A:()=>s}),l(21462);var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},88067:(e,t,l)=>{"use strict";l.d(t,{c:()=>a});var i=l(21462),n=l(12226),s=l(41444),r=l(32758);function a(){let{refreshMarketplaceUser:e}=(0,s.Z2)(),[t,l]=(0,i.useState)(!1),[a,o]=(0,i.useState)("");return{save:async t=>{l(!0),o("");try{await (0,r.ND)(t),await e()}catch(e){throw o(function(e){if(n.A.isAxiosError(e)){var t,l;let i=null==(l=e.response)||null==(t=l.data)?void 0:t.detail;if("string"==typeof i&&i.trim())return i}return e instanceof Error&&e.message?e.message:"Could not save your profile"}(e)),e}finally{l(!1)}},saving:t,error:a,setError:o}}},90470:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},91816:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(23798),n=l(35243),s=l(39811);let r=e=>{let{eyebrow:t,title:l,description:r,actions:a,aside:o}=e;return(0,i.jsxs)(n.A,{sx:{mb:{xs:1.5,sm:2}},children:[(0,i.jsx)(s.A,{component:"span",sx:{fontFamily:'"Fragment Mono", monospace',fontSize:"0.68rem",letterSpacing:"0.12em",textTransform:"uppercase",color:"text.secondary",display:"block",mb:.5},children:t}),(0,i.jsxs)(n.A,{sx:{display:"flex",alignItems:"flex-start",gap:1.5},children:[(0,i.jsx)(s.A,{variant:"h4",sx:{flex:1,minWidth:0,mb:r?{xs:.5,sm:1}:0,fontSize:{xs:"1.75rem",sm:void 0}},children:l}),o&&(0,i.jsx)(n.A,{sx:{display:"flex",alignItems:"center",gap:.75,pt:.75,flexShrink:0},children:o})]}),r&&(0,i.jsx)(s.A,{variant:"body2",color:"text.secondary",children:r}),a&&(0,i.jsx)(n.A,{sx:{display:"flex",alignItems:"center",gap:{xs:1,sm:1.5},mt:{xs:1.5,sm:2},flexWrap:"wrap"},children:a})]})}},96843:(e,t,l)=>{"use strict";l.d(t,{A:()=>s}),l(21462);var i=l(27705),n=l(23798);let s=(0,i.A)((0,n.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn")}},e=>{e.O(0,[9577,7114,6889,1734,7127,6062,7567,6254,4856,877,3717,3493,4028,4245,9433,6614,7835,1499,6430,636,6593,8792],()=>e(e.s=57550)),_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.