1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"v1.2790.0"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb0d3894-3877-4e82-bcf1-fded692af2b6",e._sentryDebugIdIdentifier="sentry-dbid-bb0d3894-3877-4e82-bcf1-fded692af2b6")}catch(e){}}();"use strict";(self.webpackChunkresume_io_frontend=self.webpackChunkresume_io_frontend||[]).push([["6958"],{16095:function(e,t,r){r.r(t),r.d(t,{default:function(){return rW}});var i=r(74848),l=r(47767),s=r(11788),a=r(77378),n=r(34346),o=r(38267),d=r(84976),c=r(99701),p=r(24833),u=r(57119),x=r(91779),h=r(65333),m=r(49504),g=r(16466),f=r(67592),j=r(80335),y=r(14649);let b=o.Ay.img(["width:75px;margin-bottom:16px;"]),_=o.Ay.div(["position:absolute;top:0;left:0;width:100%;height:100%;display:grid;place-items:center;padding-bottom:72px;"]),v=o.Ay.div(["margin-top:40px;display:flex;justify-content:center;",""],p.A.Phone` 2 padding: 0 20px; 3 `),A=o.Ay.div(["padding-bottom:200px;position:relative;display:flex;flex-direction:column;margin:auto;",""],p.A.AbovePhone` 4 width: 736px; 5 `),w=o.Ay.div(["height:","px;"],8),k=o.Ay.div(["position:relative;"," "," "," display:flex;align-items:center;",""],e=>e.$clickable?"cursor: pointer;":null,e=>e.$highlight?"filter: saturate(6);":null,e=>"answer"===e.$type&&(0,o.AH)(["& > :first-child{margin-left:auto;}"]),e=>"answer"===e.$type?(0,o.AH)(["cursor:pointer;margin-top:","px;margin-bottom:","px;"],16,16):(0,o.AH)(["margin-top:0;margin-bottom:0;"])),$=(0,o.Ay)(x.Ay)([""," "," "," ",";",";text-align:left;text-wrap:pretty;white-space:normal;text-overflow:wrap;margin-bottom:8px;border-radius:",";padding:"," ",";justify-content:flex-start;box-sizing:border-box;"],e=>e.$selected?(0,o.AH)(["background-color:",";&:hover{background-color:",";}"],c.Jy.Neutral10,c.Jy.Neutral10):"",p.A.AbovePhone` 6 width: 445px; 7 margin: 0 0 8px auto; 8 `,p.A.Phone` 9 width: 100%; 10 margin: 0 0 8px; 11 `,m.Ay.Body,m.BO.Regular,c.Kz.S,c.Kz.XS,c.Kz.M),S=(0,o.Ay)(x.Ay)(["",";border-radius:30px;margin-bottom:8px;",""],m.BO.Regular,p.A.AbovePhone` 12 width: 100px; 13 margin-left: auto; 14`),C=(0,o.AH)(["@-webkit-keyframes fade-in{0%{opacity:0;}100%{opacity:1;}}@keyframes fade-in{0%{opacity:0;}100%{opacity:1;}}-webkit-animation:fade-in 1.2s cubic-bezier(0.39,0.575,0.565,1) both;animation:fade-in 1.2s cubic-bezier(0.39,0.575,0.565,1) both;"]),N=o.Ay.div([""," z-index:2;",""],C,e=>"answer"===e.$type?"margin-top: auto;":null),P=o.Ay.div([""," z-index:1;position:relative;align-items:center;border-radius:16px;background:",";color:",";padding:12px 20px;white-space:pre-wrap;"," "," "," "," ",""],C,e=>"asked"===e.$type?c.Jy.Neutral5:c.Jy.Blue50,e=>"asked"===e.$type?c.Jy.Neutral90:c.Jy.Neutral5,p.A.Phone` 15 max-width: 70vw; 16 `,p.A.AbovePhone` 17 max-width: 70vw; 18 `,e=>e.$hasOneOrTwoWords?(0,o.AH)(["",""],p.A.Desktop` 19 max-width: 100%; 20 `):(0,o.AH)(["",""],p.A.Desktop` 21 max-width: 80%; 22 `),e=>"answer"===e.$type&&(0,o.AH)(["margin-left:0;"]),e=>"asked"===e.$type&&(0,o.AH)(["margin-left:8px;"])),T=o.Ay.div(["color:inherit;"," "," font-family:'TT Commons';word-wrap:break-word;"],m.Ay.Body,m.BO.Regular),E=o.Ay.div([""," display:flex;flex-direction:row;& > img{margin-bottom:auto;}"],C),J=o.Ay.div(["align-items:center;max-width:300px;display:flex;justify-content:flex-end;align-items:flex-end;"]),M=o.Ay.div(["font-family:'TT Commons';word-wrap:break-word;color:var(--Neutral-Neutral-50,#828ba2);"," ",""],m.Ay.Caption,m.BO.Regular),B=(0,o.Ay)(h.aD)(["border-radius:50%;margin-left:16px;"," "," ",""],p.A.Phone` 23 width: 32px; 24 height: 32px; 25 border-radius: 100%; 26 `,p.A.Tablet` 27 width: 32px; 28 height: 32px; 29 border-radius: 100%; 30 `,p.A.AboveTablet` 31 width: 48px; 32 height: 48px; 33 `),O=(0,o.Ay)(x.Ay)(["margin-top:auto;margin-right:4px;height:36px;width:36px;display:flex;padding:var(--2XS,8px);align-items:flex-end;gap:1px;border-radius:var(--Max,10000px);background:var(--neutral-10);:hover{background:var(--neutral-10);}"]),D=o.Ay.div(["position:absolute;bottom:0;",""],e=>"right"===e.$side?(0,o.AH)(["right:-10px;"]):(0,o.AH)(["left:-10px;
33-webkit-transform:scaleX(-1);transform:scaleX(-1);"])),H=o.Ay.div(["z-index:10;background:",";"," "," "," position:fixed;bottom:0;",""],c.Jy.White,p.A.Phone` 34 width: 100%; 35 padding: 0 20px; 36 margin: 0; 37 left: 0; 38 `,p.A.Tablet` 39 width: 100%; 40 padding: 0 20px; 41 margin: 0; 42 left: 0; 43 `,p.A.AboveTablet` 44 width: 736px; 45 `,e=>e.$isMessageEditing&&(0,o.AH)(["",""],p.A.Phone` 46 border-top: 1px solid ${c.Jy.Neutral15}; 47 `)),I=o.Ay.div(["width:100%;display:flex;align-items:flex-end;gap:8px;position:relative;",""],e=>e.$isDashV2&&(0,o.AH)([""," ",""],p.A.Tablet` 48 width: calc(100% - 40px); 49 margin-left: auto; 50 `,p.A.Phone` 51 width: 100%; 52 margin-left: unset; 53 padding-bottom: 10px; 54 `)),L=o.Ay.div(["width:100%;background:",";border:1px solid var(--neutral-15);display:flex;align-items:center;gap:16px;padding:8px 16px 8px 24px;border-radius:32px;transition:all 0.4s ease-out;will-change:padding,border-radius;cursor:text;"," "," ",""],c.Jy.White,p.A.Phone` 55 padding: 12px 16px; 56 `,e=>e.$isButtonVisible&&(0,o.AH)(["",""],p.A.Phone` 57 width: calc(100% - 40px); 58 `),e=>e.$isExpanded&&(0,o.AH)(["padding:16px 16px 16px 24px;border-radius:16px;"])),R=(0,o.Ay)(u.l)(["flex:auto;* > textarea{background:none;overflow:hidden;border:none;padding:0;}* > div{border:none;}& > * > div[in='entered'],div[in='entering'],div[in='exited']{display:none;}"]),z=(0,o.Ay)(j.i)(["height:48px;flex:0 0 48px;",""],p.A.Phone` 59 height: 32px; 60 width: 32px; 61 position: absolute; 62 right: 0px; 63 bottom: 0px; 64 `),K=(0,o.Ay)(x.Ay)(["height:100%;width:100%;border-radius:50%;display:flex;justify-content:center;align-items:center;padding:0;align-self:flex-end;will-change:opacity;transition:opacity 0.2s ease-out;",""],e=>e.$isVisible&&(0,o.AH)(["opacity:0;pointer-events:none;"])),F=o.Ay.div(["display:flex;gap:8px;align-items:center;margin-bottom:12px;",""],p.A.Phone` 65 margin-top: 12px; 66 margin-bottom: 8px; 67 `),q=o.Ay.div(["display:flex;flex-flow:column;"," ",""],p.A.AbovePhone` 68 margin-left: auto; 69 & > button { 70 margin-bottom: 8px; 71 } 72 `,p.A.Phone` 73 display: flex; 74 width: 100%; 75 justify-items: center; 76 flex-direction: column; 77 flex-wrap: nowrap; 78 align-content: center; 79 justify-content: center; 80 align-items: center; 81 `),V=(0,o.Ay)(x.Ay)(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:12px 24px 12px 20px;gap:4px;min-width:272px;min-height:48px;background:",";background-color:",";border-color:",";border-radius:20px;color:",";"," flex:none;order:1;align-self:stretch;flex-grow:0;white-space:wrap;",""],c.Jy.White,c.Jy.White,c.Jy.Neutral15,c.Jy.Neutral90,m.BO.Regular,p.A.Phone` 82 margin: auto; 83 margin-bottom: 8px; 84 width: 100%; 85 `),U=o.Ay.img(["margin-right:5px;"]);(0,o.Ay)(g.A).attrs(()=>({background:`${c.Jy.White}`}))([""]),c.Jy.Neutral15,c.Jy.Neutral15;let X=o.Ay.div(["border:1px solid ",";border-radius:20px;"," margin-bottom:8px;*{cursor:pointer;}cursor:pointer;:hover{background:",";}"],c.Jy.Neutral15,p.A.Phone` 86 margin: auto; 87 width: 100%; 88 padding: 10px; 89 margin-bottom: 8px; 90 `,c.Jy.Neutral5),Y=o.Ay.div(["display:flex;align-items:center;gap:16px;padding:24px 0;z-index:9;",""],e=>e.$isDashV2&&(0,o.AH)([""," ",""],p.A.Tablet` 91 width: calc(100% - 40px); 92 margin-left: auto; 93 `,p.A.Phone` 94 width: 100%; 95 margin-left: unset; 96 `)),W=o.Ay.div(["display:flex;align-items:center;gap:8px;",";color:",";"],m.Ay.Caption,c.Jy.Neutral50),Z=o.Ay.span(["white-space:nowrap;"]),G=o.Ay.span(["",";color:",";"],m.BO.Medium,c.Jy.Neutral80),Q=o.Ay.div(["flex:auto;height:4px;border-radius:2px;overflow:hidden;position:relative;background-color:",";&::after{content:'';position:absolute;left:0;top:0;border-radius:2px;background-color:",";height:100%;width:","%;will-change:width;transition:width 0.2s ease-out;}"],c.Jy.Neutral10,c.Jy.Blue50,e=>e.$progress),ee=o.Ay.div(["display:flex;justify-content:center;align-items:center;text-wrap:nowrap;white-space:normal;"]),et=o.Ay.div(["margin-bottom:8px;"," ",""],p.A.AbovePhone` 97 width: 272px; 98 margin-left: auto; 99 `,p.A.Phone` 100 margin: auto; 101 width: 100%; 102 padding: 10px; 103 `),er=o.Ay.div(["max-width:1120px;margin:0 auto;width:calc(100% - 40px);
103display:flex;flex-flow:column;gap:16px;flex:auto;"]),ei=o.Ay.div(["background-color:",";border-radius:12px;display:flex;gap:4px;padding:4px;"],c.Jy.Neutral5),el=(0,o.Ay)(d.k2)(["",";",";transition:all 0.2s ease-out;background-color:transparent;color:",";padding:8px 12px;border-radius:8px;"," &.active{",";background-color:",";color:",";}",""],m.Ay.Body,m.BO.Regular,c.Jy.Neutral60,p.A.Hover` 104 &:hover { 105 background-color: ${c.Jy.Neutral10}; 106 color: ${c.Jy.Neutral90}; 107 } 108 `,f.A.template.low,c.Jy.White,c.Jy.Neutral90,p.A.Phone` 109 padding: 10px 12px; 110 flex: 1 1 50%; 111 text-align: center; 112 `),es=(0,o.Ay)(y.EK.StatusOffer)(["color:#25b869;"]);r(18111),r(61701),r(30531);var ea=r(96540),en=r(81247),eo=r(33093),ed=r(38221),ec=r.n(ed),ep=r(18509),eu=r(40271),ex=r(57238),eh=r(41193),em=r(36961),eg=r.p+"media/chatbot_avatar80c4d8be719acfef.svg",ef=r(86066),ej=r(42692);let ey=({disabled:e=!1,editMessage:t=null,setEditMessage:r})=>{let[l,s]=(0,ea.useState)(""),[o,d]=(0,ea.useState)(""),[p,u]=(0,ea.useState)(!1),x=(0,en.wA)(),h=(0,ea.useRef)(null),{i18n:m}=(0,a.s)(),{isPhone:g}=(0,ef.e)(),{features:f}=(0,ej.t)();(0,ea.useEffect)(()=>{t&&(s(t.text),h.current?.focus())},[t]),(0,ea.useEffect)(()=>{e||h.current?.focus()},[h,e]),(0,ea.useEffect)(()=>{if(h.current){h.current.style.height="0px";let e=h.current.scrollHeight,t=`${e}px`;h.current.style.height=t,d(t)}},[h,l]),(0,ea.useEffect)(()=>{if(h.current&&o){let{lineHeight:e}=getComputedStyle(h.current);u(o!==e)}},[o,h]);let j=()=>{if(!l)return;let e=l.trim();t&&r?(x(n.o1.saveAnswer({id:t.id,text:e,time:t.time})),r(null)):x(n.o1.saveAnswer({id:String(-1),text:e,time:Date.now()})),s(""),h.current?.focus()},b=(!g||l)&&(0,i.jsx)(z,{timeout:0,children:(0,i.jsx)(K,{disabled:e,onClick:()=>j(),$isVisible:!l,children:(0,i.jsx)(y.Ay.ArrowUp,{color:c.Jy.White})})});return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsxs)(F,{children:[(0,i.jsx)(y.Ay.Edit,{color:c.Jy.Blue50}),t?.text]}),(0,i.jsxs)(I,{$isDashV2:!!f.international||!!f.superApp,children:[(0,i.jsxs)(L,{$isExpanded:p,$isButtonVisible:!!l,onClick:()=>{h.current?.focus()},children:[(0,i.jsx)(R,{rows:1,disabled:e,value:l,placeholder:m.t("builder.career_profile.chat.message_placeholder"),onChange:e=>s(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),j())},ref:h}),!g&&b]}),g&&b]})]})};var eb=r(7350),e_=r.n(eb),ev=r(49646),eA=r.p+"media/sparklese67267150e51da02.svg";let ew=({type:e})=>{let t="answer"===e?c.Jy.Blue50:c.Jy.Neutral5;return(0,i.jsx)(D,{$side:"answer"===e?"right":"left",children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_9110_1953)",children:(0,i.jsx)("path",{d:"M14 9.0001C14 18.9998 18 21.4998 20 23.7498C8 25.9998 2 12.9293 2 3.99981C3.2369 3.99979 3.44921 3.99993 6.00011 3.99979L14 3.99979C14.0014 4.08283 14.0026 4.14248 14.0037 4.18257C14.0092 1.97074 14.0177 4.69902 14.0037 4.18257C14.0017 4.99235 14 6.46431 14 9.0001Z",fill:t})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_9110_1953",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"matrix(-1 0 0 1 24 0)"})})})]})})},ek=({type:e,children:t,avatar:r,last:l,setEditMessage:s,content:a,handleEditTracking:n,amountOfWords:o})=>{let d=(0,i.jsx)(N,{$type:e,children:r}),[c,p]=(0,ea.useState)(!1),u=(0,ea.useCallback)(e_()(e=>{p(e)},600),[]);return(0,i.jsxs)(k,{$type:e,onClick:()=>u(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>setTimeout(()=>u(!1),500),children:[l&&r&&"asked"===e?d:null,c&&"answer"===e&&s&&(t||a)&&(0,i.jsx)(O,{onClick:()=>{s(t||null),n&&n()},children:(0,i.jsx)(ev.qU,{})}),!c&&"answer"===e&&(0,i.jsx)(O,{style:{opacity:0},children:(0,i.jsx)(ev.qU,{})}),!l&&r&&"asked"===e?(0,i.jsx)("div",{style:{height:0,opacity:0},children:d}):null,"asked"===e?(0,i.jsxs)("div",{children:[(0,i.jsxs)(P,{$type:e,$hasOneOrTwoWords:1===o||2===o,children:[a||t&&(0,i.jsx)(T,{children:t.text}),(0,i.jsx)(ew,{type:e})]}),t?.hint&&l&&"asked"===e?(0,i.jsxs)(E,{children:[(0,i.jsx)("img",{src:eA}),(0,i.jsx)(J,{children:(0,i.jsx)(M,{children:t?.hint})})]}):null]}):(0,i.jsxs)(P,{$type:e,$hasOneOrTwoWords:1===o||2===o,children:[a||t&&(0,i.jsx)(T,{children:t.text}),(0,i.jsx)(ew,{type:e})]}),l&&r&&"answer"===e?d:null,!l&&r&&"answer"===e?(0,i.jsx)("div",{style:{opacity:0}
112,children:d}):null]})};r(20116);var e$=r(348);let eS=({noEdit:e,answered:t,asked:r})=>{let l=(0,eh.J)(),{i18n:s}=(0,a.s)(),o=(0,en.wA)(),d=(0,en.d4)(n.Tp.persona),c=(0,ep.N)(ex.Tp.photoUrl),[p,u]=(0,ea.useState)(!1),h=(0,ea.useMemo)(()=>[{type:"job_seeker",text:s.t("builder.career_profile.chat.persona.job_seeker")},{type:"explorer",text:s.t("builder.career_profile.chat.persona.explorer")},{type:"hurdler",text:s.t("builder.career_profile.chat.persona.hurdler")},{type:"starter",text:s.t("builder.career_profile.chat.persona.starter")}],[s]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!1,amountOfWords:2,content:(0,i.jsx)(i.Fragment,{children:s.t("builder.career_profile.chat.greeting",{name:(0,e$.Z)(l?.firstName||"User")})})}),(0,i.jsx)(w,{}),(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!1,content:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s.t("builder.career_profile.chat.intro_text")}})}),(0,i.jsx)(w,{}),(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!r,content:(0,i.jsx)(i.Fragment,{children:s.t("builder.career_profile.chat.persona.intro")})}),(0,i.jsx)(w,{}),(p||!d)&&h.map(e=>(0,i.jsx)($,{onClick:()=>{o(n.o1.setPersona(e.type)),u(!1)},theme:x.Ox.ghost,$selected:e.type===d,children:e.text},`user-persona-option-${e.type.replace(/ /g,"")}`)),!p&&d&&(0,i.jsx)(ek,{type:"answer",avatar:(0,i.jsx)(B,{src:c}),last:!t,content:(0,i.jsx)(i.Fragment,{children:h.find(({type:e})=>e===d)?.text}),setEditMessage:e?void 0:()=>u(!0)})]})};var eC=r(25095),eN=r(80740),eP=r(89123),eT=r(8037),eE=r(64961),eJ=r(13807),eM=r(85922),eB=r(63967),eO=r(94191),eD=r(20374),eH=r(81038),eI=r(13974);let eL=o.Ay.div([""]),eR=o.Ay.div([""," ",""],p.A.AbovePhone`margin: 20px;`,p.A.Phone`margin: 5px;`),ez=o.Ay.div(["display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;&:hover{color:",";}"],c.Jy.Blue50);var eK=ea.memo(({value:e})=>(0,i.jsx)(eI.AE,{children:(0,i.jsx)(eI.qh,{children:(0,i.jsx)(eI.LO,{children:(0,i.jsx)(ez,{children:e})})})}));let eF=ea.forwardRef(({isFirstDocumentFree:e,document:t,miniature:r,...l},s)=>{let n=(0,en.wA)(),[o]=(0,d.ok)(),c=(0,ep.N)(e=>e.panel.trDocuments),p=(0,ep.N)(e=>e.panel.trDocumentsStatus),{i18n:u}=(0,a.s)(),{isPhone:x}=(0,ef.e)(),{id:h,type:m}=t,[g,f]=(0,ea.useState)(null),[j,y]=(0,ea.useState)(null),[,b]=(0,ea.useState)(!1),_=(0,eB.I)(t,{size:x?104:192}),v=m===eT.VC.trDocument?`/${(0,eE.dh)(m)}/${h}`:`/${(0,eE.dh)(m)}/${h}/edit`;return(0,ea.useEffect)(()=>{!g&&c[h]&&f({...c[h]})},[g,c,h]),(0,ea.useEffect)(()=>{y(p[h])},[p,h]),(0,ea.useEffect)(()=>{let e=sessionStorage.getItem(eJ.$C.DOWNLOAD_WHEN_PREMIUM);if(g&&j===eT.Hp.loaded&&e){let e=g?.files?.[0]?.url,t=g?.files?.[0]?.content_type;e&&(n(eJ.o1.download({id:Number(g?.id),type:g?.doc_type,format:t.endsWith("pdf")?eT.hR.tr_pdf:eT.hR.tr_doc,source:"tr_doc",trDocument:g})),sessionStorage.removeItem(eJ.$C.DOWNLOAD_WHEN_PREMIUM),sessionStorage.removeItem(eJ.$C.TR_DOC_ID))}},[n,g,j]),(0,ea.useEffect)(()=>{o.has("isSharing")&&o.has("docId")&&n(eM.o1.openSharingModal(Number(o.get("docId"))))},[]),(0,i.jsx)(eR,{children:(0,i.jsxs)(eH.j8,{...l,ref:s,onMouseOver:()=>{setTimeout(()=>{b(!0)},200)},onMouseOut:()=>{setTimeout(()=>{b(!1)},200)},children:[(0,i.jsx)(eH.Hg,{$miniature:r,as:eL,to:e?"":v,children:(0,i.jsx)(eH.mE,{src:m===eT.VC.trDocument?t?.thumbnail&&t?.thumbnail?.url!==""?t?.thumbnail?.url:eD:_})}),(0,i.jsxs)(eH.N6,{isDisabled:e,children:[(0,i.jsx)(eK,{value:m===eT.VC.trDocument&&t?.title?t?.title:t.name||u.t("builder.dashboard.untitled")}),(0,i.jsxs)(eH.Ar,{children:[u.t("builder.dashboard.updated")," ",(0,eO.k)(t)]})]})]})})});var eq=r.p+"media/admin-menu-icon4f1bd099b04b5dd7.svg",eV=r.p+"media/upload_fileb0d53fe14aa857e3.svg",eU=r.p+"media/document_icon90e1a44c30359631.svg",eX=r(73706),eY=r(9122),eW=(0,ea.memo)(()=>(0,i.jsx)(eY.g7,{children:(0,i.jsx)(eX.A,{})})),eZ=r(41117);let eG=({onClose:e})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(eN.bm,{onClick:e,children:(0,i.jsx)(eN.US,{})})}),eQ=({hideAvatar:e=!1})=>{let t=(0,eh.J)(),r=(0,ep.N)(ex.Tp.photoUrl),l=(0,en.d4)(n.Tp.selectedResume),s=(0,en.d4)(n.Tp.latestResume),{i18n:o}=(0,a.s)(),[d,c]=(0,ea.useState)(!1),[p,u]=(0,ea.useState)(!1),h=(0,en.wA)(),{resumes:m}=(0,eP.U)(),{resumeValidationStatus:g,error:f}=(0,ep.N)(e=>e.resumeEditor.prefillResumeSection),j=g===eT.fA.notStarted,y=g===eT.fA.failed||f,_=(0,en.d4)(n.Tp.selectedResumeText),v=(0,en.d4)(n.Tp.uploadedFilename);if((0,ea.useEffect)(()=>{!s&&m.length&&h(n.o1.setLatestResume(m[m.length-1]))},[m]),(0,ea.useEffect)(()=>{(s||l)&&c(!1)},[s,l]),v&&_||l){let s=v||l?.name||`${t?.firstName} Resume`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!e,content:(0,i.jsx)(i.Fragment,{children:o.t("builder.career_profile.chat.outro.has_resume")})}),(0,i.jsx)(ek,{type:"answer",avatar:(0,i.jsx)(B,{src:r}),last:!0,content:(0,i.jsxs)(ee,{children:[(0,i.jsx)("img",{src:eU,style:{marginRight:"8px"}})," ",(0,i.jsx)("span",{children:s})]})})]})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!0,content:(0,i.jsx)(i.Fragment,{children:o.t("builder.career_profile.chat.outro.has_resume")})}),(0,i.jsx)(w,{}),(0,i.jsx)(w,{}),(0,i.jsxs)(q,{children:[s&&(!p||y)?(0,i.jsx)(X,{onClick:()=>{h(n.o1.setSelectedResume(s)),(0,eo.xP)("click_last_resume",{label:"career_assessment"})},children:(0,i.jsx)(eF,{document:s,isPostPremium:!0,isFirstDocumentFree:!0,miniature:!0})}):null,m.length>1&&(!p||y)&&(0,i.jsxs)(V,{theme:x.Ox.ghost,onClick:()=>{c(!0),(0,eo.xP)("click_select_resume_from_list",{label:"career_assessment"})},children:[(0,i.jsx)(U,{src:eq}),o.t("builder.career_profile.chat.options.select")]}),(!p||y)&&(0,i.jsxs)(V,{theme:x.Ox.ghost,onClick:()=>{u(!0),(0,eo.xP)("click_upload_resume",{label:"career_assessment"})},children:[(0,i.jsx)(U,{src:eV}),o.t("builder.career_profile.chat.options.upload")]}),p&&(0,i.jsx)(et,{children:j?(0,i.jsx)(eW,{}):(0,i.jsx)(eZ.A,{onSubmit:e=>{h(n.o1.parseResume(e))}})})]}),d?(0,i.jsx)(eC.Q,{footer:(0,i.jsx)(i.Fragment,{}),header:(0,i.jsx)(eG,{onClose:()=>c(!1)}),onSelect:e=>{h(n.o1.setSelectedResume(e)),c(!1)}}):null]})};var e0=r(50562);let e1=()=>{let e=(0,l.Zp)(),{i18n:t}=(0,a.s)(),r=()=>{e0.Q.persistPath(window.location.pathname+window.location.search),e("/auth/sign-in",{replace:!0})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!0,content:(0,i.jsx)(i.Fragment,{children:t.t("builder.career_profile.chat.outro.register")})}),(0,i.jsx)(S,{onClick:()=>r(),theme:x.Ox.ghost,children:t.t("builder.sign_in.title")}),(0,i.jsx)(S,{onClick:()=>r(),theme:x.Ox.ghost,children:t.t("builder.sign_in.sign_up")})]})},e2=({percent:e})=>{let{i18n:t}=(0,a.s)(),r=Math.round(e),{features:l}=(0,ej.t)();return(0,i.jsxs)(Y,{$isDashV2:!!l.international||!!l.superApp,children:[(0,i.jsxs)(W,{children:[(0,i.jsx)(es,{}),(0,i.jsxs)(Z,{children:[(0,i.jsxs)(G,{children:[r," %"]}),t.t("builder.career_profile.chat.progressbar.completed")]})]}),(0,i.jsx)(Q,{$progress:r})]})},e4=(0,ea.memo)(({durationMs:e=1500,fill:t=c.Jy.Blue50,stroke:r=c.Jy.Neutral20})=>{let l=`${e}ms`,s="10; 10; 10; 10; 10; 10; 10;",a="3.25";return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("svg",{width:"32",height:"20",viewBox:"0 0 32 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:"6",cy:"10",r:a,fill:t,stroke:r,strokeWidth:"0.5",children:(0,i.jsx)("animate",{attributeName:"cy",values:`10; 7.5; 3.25; 7.5; 10; 10; ${s}
112`,dur:l,repeatCount:"indefinite"})}),(0,i.jsx)("circle",{cx:"16",cy:"10",r:a,fill:t,stroke:r,strokeWidth:"0.5",children:(0,i.jsx)("animate",{attributeName:"cy",values:`10; 10; 7.5; 3.25; 7.5; 10; ${s}`,dur:l,repeatCount:"indefinite"})}),(0,i.jsx)("circle",{cx:"26",cy:"10",r:a,fill:t,stroke:r,strokeWidth:"0.5",children:(0,i.jsx)("animate",{attributeName:"cy",values:`10; 10; 10; 7.5; 3.25; 7.5; ${s}`,dur:l,repeatCount:"indefinite"})})]})})}),e3=(0,ea.memo)(({processingStatus:e,onRetry:t})=>{let{i18n:r}=(0,a.s)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w,{}),(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!1,content:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r.t("builder.career_profile.chat.outro.thank_you_for_takeing_assessment")}})}),(0,i.jsx)(w,{}),e===n.vq.pending&&(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!0,content:(0,i.jsx)(e4,{})}),(0,i.jsx)(w,{}),e===n.vq.success&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!0,content:(0,i.jsx)(i.Fragment,{children:r.t("builder.career_profile.chat.outro.your_results_are_ready")})}),(0,i.jsx)(w,{}),(0,i.jsx)(q,{children:(0,i.jsx)(d.N_,{to:"/career-profile/insights",style:{width:"100%"},children:(0,i.jsx)(V,{theme:x.Ox.ghost,onClick:()=>{(0,eo.xP)("click_view_results",{label:"career_assessment"})},children:r.t("builder.career_profile.chat.options.view_results")})})})]}),(0,i.jsx)(w,{}),(e===n.vq.failure||e===n.vq.retry)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!0,content:(0,i.jsx)(i.Fragment,{children:r.t("builder.career_profile.chat.outro.something_went_wrong")})}),(0,i.jsx)(w,{}),(0,i.jsx)(q,{children:(0,i.jsx)(V,{theme:x.Ox.ghost,onClick:t,children:r.t("builder.career_profile.chat.options.retry")})})]})]})});r(44114);var e5=r(2543),e9=()=>{let e=(0,en.wA)(),t=(0,ep.N)(ex.Tp.photoUrl),r=(0,ep.N)(n.Tp.careerInsightsData),l=(0,ea.useRef)(null),s=(0,eh.J)(),[a,o]=(0,ea.useState)(!1),d=(0,ea.useCallback)(()=>{l.current&&l.current.scrollIntoView({behavior:"smooth",block:"end"})},[]),{questions:c,asked:p,answers:u,persona:x,selectedResumeText:h,setEditMessage:m,disableChat:g,isLoading:f,isChatbotCompleted:j,areAllTextQuestionsAnswered:y,editMessage:k}=(({handleScroll:e})=>{let t=(0,en.wA)(),r=(0,eh.J)(),i=(0,en.d4)(n.Tp.questions),l=(0,en.d4)(n.Tp.asked),s=(0,en.d4)(n.Tp.answers),a=(0,en.d4)(n.Tp.persona),o=(0,en.d4)(n.Tp.fetchQuestionsStatus),d=(0,en.d4)(n.Tp.isDataSentDuringCurrentSession),c=(0,en.d4)(n.Tp.selectedResumeText),p=(0,en.d4)(n.Tp.selectedResume),u=(0,en.d4)(n.Tp.isSyncedWithLocalStorage),x=(0,en.d4)(n.Tp.structuredResumeData),h=i.length===s.length,m=!!(a&&h&&c&&x),[g,f]=(0,ea.useState)(!1),j=[eT.Hp.loading,eT.Hp.notAsked].includes(o);(0,ea.useEffect)(()=>{u&&r&&(o===eT.Hp.notAsked||o===eT.Hp.failed)&&t(n.o1.fetchQuestions())},[u,r,o,t]),(0,ea.useEffect)(()=>{a&&i.length&&o===eT.Hp.loaded&&0===l.length&&(f(!0),setTimeout(()=>{t(n.o1.setAsked([{...i[0],time:Date.now()}])),f(!1)},1e3))},[o,a]),(0,ea.useEffect)(()=>{if(!s.length||h||Number((0,e5.last)(l)?.time)>=Number((0,e5.last)(s)?.time))return;let e=(0,e5.last)(l),r=e?.response,a=i.findIndex(({id:t})=>t===e?.id)+1,o=i[a],d=[];if(r&&d.push({...r,time:Date.now()}),o&&d.push({...o,time:Date.now()+1}),f(!0),d.length>1)for(let e=0;e<d.length;e++)setTimeout(()=>{t(n.o1.setAsked([...l,...(0,e5.take)(d,e+1)])),e===d.length-1&&f(!1)},1800*e||1e3);else t(n.o1.setAsked([...l,...d]))},[s.length,h]),(0,ea.useEffect)(()=>{e()},[s,l,p,a]),(0,ea.useEffect)(()=>{r&&m&&x&&(d||t(n.o1.postChatbotAnswers()))},[m,d]);let[y,b]=(0,ea.useState)(null),_=(0,ea.useMemo)(()=>{if(j||g)return!0;if(y)return!1;if(Number((0,e5.last)(s)?.time)>Number((0,e5.last)(l)?.time))return!0;let e=l.find(({id:e})=>e===(0,e5.last)(i)?.id);return!!e&&!!e?.time&&Number(e?.time)<Number((0,e5.last)(s)?.time)},[s,i,l,y,g,j]);return{questions:i,asked:l,answers:s,persona:a,fetchQuestionsStatus:o,selectedResume:p,selectedResumeText:c,isDataSentDuringCurrentSession:d,setEditMessage:b,disableChat:_,isBotWriting:g,setBotWriting:f,isLoading:j,isChatbotCompleted:m,areAllTextQuestionsAnswered:h,editMessage:y,structuredResumeData:x}})({handleScroll:d}),$=(0,ea.useCallback)(()=>{e(n.o1.postChatbotAnswers())},[e]);(0,em.h)(()=>{(0,eo.xP)("enter_chatbot");let e=ec()(()=>{let e=window.scrollY+window.innerHeight;document.documentElement.scrollHeight-e>100?o(!0):o(!1)},500);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),(0,ea.useEffect)(()=>{let e=new ResizeObserver(()=>{a||d()});return l.current&&e.observe(l.current),()=>{e.disconnect()}},[d,a]);let S=[...p.map((e,t)=>{let r=t>0&&e.text===p[t-1]?.response?.text;return{time:e.time||Date.now(),el:(0,i.jsx)(ek,{type:"asked",avatar:(0,i.jsx)(b,{src:eg,alt:"chatbot avatar"}),last:!y&&!r&&p.length===t+1,amountOfWords:e.text.split(" ").length,children:e},`asked-${e.id}-${t}`)}}),...u.map((e,r)=>({time:e.time||Date.now(),el:(0,i.jsx)(ek,{type:"answer",avatar:(0,i.jsx)(B,{src:t}),last:!j&&u.length===r+1,setEditMessage:g?void 0:m,handleEditTracking:()=>{(0,eo.xP)("click_edit_answer",{question_number:r+1,label:"career_assessment"})},children:e},`answer-${e.id}-${r}`)}))].sort((e,t)=>
112e?.time>=t?.time?1:-1).flatMap(({el:e,time:t})=>[(0,i.jsx)(w,{},`separator-${t}`),e]),C=c.length+2,N=u.length+ +!!h+ +!!x;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(v,{children:(0,i.jsxs)(A,{ref:l,children:[f?(0,i.jsx)(_,{children:(0,i.jsx)(eu.y$,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eS,{noEdit:j,asked:!!p.length,answered:!!u.length}),S]}),!f&&y&&!s?.registeredAt&&(0,i.jsx)(e1,{}),!f&&y&&s?.registeredAt&&(0,i.jsx)(eQ,{hideAvatar:j}),j?(0,i.jsx)(e3,{processingStatus:r?.status,onRetry:$}):null,(0,i.jsxs)(H,{$isMessageEditing:!!k,children:[x&&!y?(0,i.jsx)(ey,{editMessage:k,setEditMessage:m,disabled:g}):null,(0,i.jsx)(e2,{percent:N/C*100})]})]})})})};let e8=(0,o.Ay)(j.i)(["max-width:544px;display:flex;flex-flow:column;gap:32px;margin:0 auto;padding:48px 0;",""],p.A.Phone` 113 gap: 24px; 114 max-width: 100%; 115 padding: 32px 20px; 116 `),e6=o.Ay.div(["display:flex;flex-flow:column;gap:16px;text-align:center;"]),e7=o.Ay.div(["",";",";"],m.Ay.M,m.BO.DemiBold),te=o.Ay.div(["color:",";"],c.Jy.Neutral50),tt=o.Ay.div(["display:flex;flex-flow:column;gap:24px;padding:32px 48px 48px;border-radius:16px;background-color:",";",""],c.Jy.Neutral5,p.A.Phone` 117 gap: 20px; 118 padding: 24px 32px 32px; 119 `),tr=o.Ay.div(["display:flex;gap:12px;"]),ti=o.Ay.div(["white-space:pre-wrap;"]);(0,o.Ay)(x.Ay)(["background-color:#1a91f01a;color:",";"],c.Jy.Blue50);let tl=(0,ea.memo)(({title:e,description:t,textParts:r,snackbarOnCopyText:l,children:s,onCopyClick:n})=>{let o=(0,en.wA)(),{i18n:d}=(0,a.s)(),c=r.join("\n\n");return(0,i.jsxs)(e8,{timeout:0,children:[(0,i.jsxs)(e6,{children:[(0,i.jsx)(e7,{children:e}),(0,i.jsx)(te,{children:t})]}),(0,i.jsxs)(tt,{children:[(0,i.jsxs)(tr,{children:[(0,i.jsxs)(x.Ay,{size:x.Mp.small,theme:x.Ox.secondary,onClick:()=>{(n&&n(),o(eM.o1.setSnackBarOpen({status:!0,type:eM.pN.simple,text:l})),setTimeout(()=>{o(eM.o1.setSnackBarOpen({status:!1,type:eM.pN.simple}))},2e3),navigator.clipboard)?navigator.clipboard.writeText(c):console.warn(`[AssessmentResultSample] 120 Your text is not copied because of local environment. 121 Everything will be ok in prod`)},children:[(0,i.jsx)(y.EK.Copy,{}),"\xa0",d.t("builder.career_profile.text_sample.copy_text")]}),s]}),(0,i.jsx)(ti,{children:c})]})]})}),ts="builder.career_profile.professional_pitch",ta=()=>{let{i18n:e}=(0,a.s)(),t=(0,s.HJ)(),r=(0,eh.J)(),l=(0,en.wA)(),o=(0,ea.useCallback)(()=>{(0,eo.xP)("click_copy_professional_pitch_page")},[]);return(0,em.h)(()=>{(0,eo.xP)("enter_professional_pitch_page"),l(n.o1.setSeenPage("pitch"))}),(0,i.jsx)(tl,{title:e.t(`${ts}.title`),description:e.t(`${ts}.description`,{name:r?.firstName}),textParts:t,snackbarOnCopyText:e.t(`${ts}.snackbar_copy_text`),onCopyClick:o})};var tn=r(87253);let to=(0,o.Ay)(tn.aK)(["width:20px;height:20px;"]),td="builder.career_profile.cover_letter_sample",tc=()=>{let e=(0,en.wA)(),{i18n:t}=(0,a.s)(),r=(0,s.WV)(),l=(0,eh.J)(),o=(0,ea.useCallback)(()=>{(0,eo.xP)("click_copy_cover_letter_sample")},[]);return(0,em.h)(()=>{(0,eo.xP)("enter_cover_letter_sample_page"),e(n.o1.setSeenPage("cover-letter"))}),(0,i.jsx)(tl,{title:t.t(`${td}.title`),description:t.t(`${td}.description`,{name:l?.firstName}),textParts:r,snackbarOnCopyText:t.t(`${td}.snackbar_copy_text`),onCopyClick:o,children:(0,i.jsxs)(x.Ay,{size:x.Mp.small,theme:x.Ox.secondary,onClick:()=>{let t=r.map(e=>`<p>${e}</p>`).join("");e(eE.o1.createDocument({type:eT.VC.coverLetter,details:{content:t}})),(0,eo.xP)("click_open_sample_in_cover_letter_builder")},children:[(0,i.jsx)(to,{name:"ResumeAndCoverLetters"}),"\xa0",t.t(`${td}.open_in_editor`)]})})},tp=(0,o.Ay)(j.i)(["height:500px;width:100%;display:flex;align-items:center;justify-content:center;"]),tu=()=>(0,i.jsx)(tp,{timeout:0,children:(0,i.jsx)(eu.Ay,{})}),tx=({type:e,children:t})=>{let r=(0,en.wA)(),a=(0,s.B_)(),o=(0,ep.N)(n.Tp.fetchCareerInsightsStatus),d=a===n.vq.success,c=o!==eT.Hp.failed&&o!==eT.Hp.loaded;return(0,ea.useEffect)(()=>{c||d||r(n.o1.setCareerInsightsStatusModalType(e))},[c,d,r,e]),c?(0,i.jsx)(tu,{}):d?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(l.C5,{to:"/career-profile/profile",replace:!0})};var th=r(85266),tm=r(61216),tg=r(82159),tf=r(52563),tj=r(83758),ty=r(61623),tb=r.p+"media/meta199ded49930c3f2e.png",t_=r.p+"media/ibm592f715b260f9556.png",tv=r(33386),tA=r(17994);let tw=({onClick:e})=>{let t=(0,ep.N)(ex.Tp.photoUrl);return(0,i.jsx)(tA.x,{Images:(0,i.jsxs)(tv.VI,{children:[(0,i.jsx)(tv.VJ,{}),(0,i.jsx)(tv.R_,{}),(0,i.jsx)(tv.xj,{}),(0,i.jsx)(tv.Dw,{src:tj,alt:"google"}),(0,i.jsx)(tv.aj,{src:tg,alt:"amazon"}),(0,i.jsx)(tv.VG,{src:tb,alt:"meta"}),(0,i.jsx)(tv.yf,{src:t_,alt:"ibm"}),(0,i.jsx)(tv.kh,{src:ty,alt:"microsoft"}),(0,i.jsx)(tv.QR,{src:tf,alt:"apple"}),(0,i.jsx)(tv.sz,{children:(0,i.jsx)(tv.hS,{src:t})})]}),translationKey:"create_profile",onClick:()=>{(0,eo.xP)("click_get_started_career_profile"),e()},CustomContainer:tv.ls,subtitleClassname:"expanded",titleClassname:"
121collapsed"})};var tk=r(45335),t$=r(23630),tS=r(60195),tC=r(4240),tN=r(7908),tP=r(26975),tT=r(57295),tE=r(16071),tJ=r(12330),tM=r(32760);let tB="recommendationsOnboardingWasSeen";var tO=r(95813);let tD="builder.career_profile.profile",tH=o.Ay.div(["display:flex;gap:",";border-radius:",";padding:",";background-color:",";",""],c.Kz.M,c.Kz.S,c.Kz.L,c.Jy.Neutral5,p.A.Phone` 122 flex-flow: column; 123 align-items: center; 124 `),tI=o.Ay.img(["--avatar-size:92px;width:var(--avatar-size);height:var(--avatar-size);flex:0 0 var(--avatar-size);border-radius:50%;"]),tL=o.Ay.div(["display:flex;flex-flow:column;gap:",";align-items:start;"],c.Kz.M),tR=o.Ay.div(["display:flex;flex-flow:column;gap:",";",""],c.Kz.S,p.A.Phone` 125 text-align: center; 126 align-items: center; 127 `),tz=o.Ay.div(["",";",";"],m.Ay.M,m.BO.DemiBold),tK=o.Ay.div(["display:flex;gap:",";align-items:center;"],c.Kz["3XS"]),tF=o.Ay.div(["",";"],m.Ay.Subhead);(0,o.Ay)(tK)(["",";color:",";will-change:color;transition:color 0.2s ease-out;cursor:pointer;",""],m.BO.Medium,c.Jy.Blue50,p.A.Hover` 128 &:hover { 129 color: ${c.Jy.Blue60}; 130 } 131 `);let tq=o.Ay.div(["display:flex;gap:",";"],c.Kz["3XS"]),tV=()=>{let{i18n:e}=(0,a.s)(),t=(0,eh.J)(),r=(0,ep.N)(n.Tp.profilePictureUrl),l=(0,ep.N)(n.Tp.careerProfileData),s=(0,th.pG)(),o=`/career-profile/edit?${s}`;return t&&l&&(0,i.jsxs)(tH,{children:[(0,i.jsx)(tI,{src:r,alt:t.fullName}),(0,i.jsxs)(tL,{children:[(0,i.jsxs)(tR,{children:[(0,i.jsx)(tz,{children:t.fullName}),l.location&&(0,i.jsxs)(tK,{children:[(0,i.jsx)(y.Ay.NewLocation,{}),l.location]}),l.userType&&(0,i.jsx)(tF,{children:e.t(`builder.career_profile.chat.persona.${l.userType}`)})]}),!1===l.newProfile&&(0,i.jsx)(d.N_,{to:o,children:(0,i.jsx)(x.Ay,{theme:x.Ox.secondary,onClick:()=>{(0,eo.xP)("click_edit_profile")},children:(0,i.jsxs)(tq,{children:[(0,i.jsx)(y.Ay.Edit,{}),e.t(`${tD}.edit_my_profile`)]})})})]})]})},tU=o.Ay.div(["display:flex;flex-flow:column;border-radius:",";padding:"," "," ",";gap:",";background-color:",";align-items:center;"],c.Kz.S,c.Kz.L,c.Kz.L,c.Kz.XL,c.Kz.S,c.Jy.Indigo10),tX=o.Ay.div(["max-width:544px;display:flex;flex-flow:column;gap:",";text-align:center;align-items:center;"],c.Kz.XS),tY=o.Ay.img(["height:140px;"]),tW=o.Ay.div(["",";",";color:",";"],m.Ay.Subhead,m.BO.DemiBold,c.Jy.Neutral100),tZ=o.Ay.div(["color:",";"],c.Jy.Neutral60),tG=()=>{let{i18n:e}=(0,a.s)();return(0,i.jsxs)(tU,{children:[(0,i.jsxs)(tX,{children:[(0,i.jsx)(tY,{src:s.Sq,alt:"Career Assessment Banner"}),(0,i.jsx)(tW,{children:e.t(`${tD}.career_assessment_banner.title`)}),(0,i.jsx)(tZ,{children:e.t(`${tD}.career_assessment_banner.description`)})]}),(0,i.jsx)(d.N_,{to:"/career-profile/chat",onClick:()=>
131{(0,eo.xP)("click_get_started_assessment")},children:(0,i.jsx)(x.Ay,{theme:x.Ox.alternative,children:e.t(`${tD}.career_assessment_banner.button_text`)})})]})};r(22489);var tQ=r(77185);let t0=o.Ay.div(["display:flex;flex-flow:column;"]),t1=(0,o.Ay)(t0)(["gap:",";max-width:672px;"],c.Kz.L),t2=(0,o.Ay)(t0)(["gap:",";"],c.Kz.M),t4=o.Ay.div(["",";",";"],m.Ay.S,m.BO.DemiBold),t3=(0,o.Ay)(t0)(["gap:",";"],c.Kz.L),t5=(0,o.Ay)(t0)(["gap:",";"],c.Kz["2XS"]),t9=o.Ay.div(["",";",";"],m.Ay.Subhead,m.BO.Medium),t8=o.Ay.div(["color:",";"],c.Jy.Neutral50),t6=o.Ay.div([""]),t7=o.Ay.div(["display:flex;flex-wrap:wrap;gap:",";"],c.Kz.XS),re=o.Ay.div(["padding:6px 10px;border-radius:",";background-color:",";white-space:nowrap;"],c.Kz["3XS"],c.Jy.Neutral10);var rt=r(1806),rr=r(37431);function ri(e,t){let r=(0,rt.default)(e);return(0,rr.default)(r,t)}let rl=(0,ea.memo)(()=>{let{i18n:e}=(0,a.s)(),{features:t}=(0,ej.t)(),r=(0,ep.N)(n.Tp.careerProfileData),l=e.t(`${tD}.details.date_format`),s=e.t(`${tD}.details.present`),o=r?.workExperiencesAttributes.map(t=>({...t,title:(t.title||t.employer)&&function(e,{title:t,employer:r,city:i}){let l={title:t,employer:r,city:i};return t&&r&&i?e.t(`${tD}.details.work_experience_mask`,l):t&&r?e.t(`${tD}.details.work_experience_mask_title_employer`,l):t&&i?e.t(`${tD}.details.work_experience_mask_title_city`,l):r&&i?e.t(`${tD}.details.work_experience_mask_employer_city`,l):t?e.t(`${tD}.details.work_experience_mask_title`,l):r?e.t(`${tD}.details.work_experience_mask_employer`,l):i?e.t(`${tD}.details.work_experience_mask_city`,l):null}(e,t)})).filter(e=>!!e.title)||[],d=r?.educationsAttributes.map(t=>({...t,title:(t.school||t.degree)&&function(e,{degree:t,school:r,city:i}){let l={degree:t,school:r,city:i};return t&&r&&i?e.t(`${tD}.details.education_mask`,l):t&&r?e.t(`${tD}.details.education_mask_degree_school`,l):t&&i?e.t(`${tD}.details.education_mask_degree_city`,l):r&&i?e.t(`${tD}.details.education_mask_school_city`,l):t?e.t(`${tD}.details.education_mask_degree`,l):r?e.t(`${tD}.details.education_mask_school`,l):i?e.t(`${tD}.details.education_mask_city`,l):null}(e,t)})).filter(e=>!!e.title)||[],c=r?.coursesAttributes.map(t=>({...t,title:(t.course||t.institution)&&function(e,{course:t,institution:r}){let i={course:t,institution:r};return t&&r?e.t(`${tD}.details.courses_mask`,i):t?e.t(`${tD}.details.courses_mask_course`,i):r?e.t(`${tD}.details.courses_mask_institution`,i):null}(e,t)})).filter(e=>!!e.title)||[],p=r?.skillsAttributes.filter(e=>!!e.skill)||[],u=o.length||d.length||c.length||p.length,x=e=>{if(!e.dateFrom)return null;let t=ri(e.dateFrom,l),r=e.dateUntil?ri(e.dateUntil,l):s;return(0,i.jsxs)(t8,{children:[t,"\xa0-\xa0",r]})};return u?(0,i.jsxs)(t1,{children:[o.length?(0,i.jsxs)(t2,{children:[(0,i.jsx)(t4,{children:e.t(`${tD}.details.work_experience_title`)}),(0,i.jsx)(t3,{children:o.map(e=>(0,i.jsxs)(t5,{children:[e.title&&(0,i.jsx)(t9,{children:e.title}),x(e),e.description&&(0,i.jsx)(t6,{dangerouslySetInnerHTML:{__html:e.description}})]},e.id))})]}):null,d.length?(0,i.jsxs)(t2,{children:[(0,i.jsx)(t4,{children:e.t(`${tD}.details.education_title`)}),(0,i.jsx)(t3,{children:d.map(e=>(0,i.jsxs)(t5,{children:[e.title&&(0,i.jsx)(t9,{children:e.title}),x(e),e.description&&(0,i.jsx)(t6,{dangerouslySetInnerHTML:{__html:e.description}})]},e.id))})]}):null,c.length?(0,i.jsxs)(t2,{children:[(0,i.jsx)(t4,{children:e.t(`${tD}.details.courses_title`)}),(0,i.jsx)(t3,{children:c.map(e=>(0,i.jsxs)(t5,{children:[e.title&&(0,i.jsx)(t9,{children:e.title}),x(e)]},e.id))})]}):null,p.length?(0,i.jsxs)(t2,{children:[(0,i.jsx)(t4,{children:e.t(`${tD}.details.skills_title`)}),(0,i.jsx)(t7,{children:p.map(e=>(0,i.jsx)(re,{children:e.skill},e.id))})]}):null,t.learningHub&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t2,{})," ",(0,i.jsx)(t2,{children:(0,i.jsx)(tQ.MX,{})})]})]}):null}),rs=o.Ay.div(["border-radius:",";padding:",";background-color:",";"],c.Kz.S,c.Kz.L,c.Jy.Indigo10),ra=o.Ay.div(["display:flex;flex-flow:column;gap:",";max-width:480px;"],c.Kz["2XS"]),rn=(0,o.Ay)(eu.Ay)(["width:24px;height:24px;"]),ro=o.Ay.div(["display:flex;gap:",";align-items:center;",";",";"],c.Kz.XS,m.Ay.S,m.BO.DemiBold),rd=o.Ay.div(["color:",";b{color:",";",";}"],c.Jy.Neutral60,c.Jy.Neutral90,m.BO.DemiBold),rc=()=>{let{i18n:e}=(0,a.s)(),t=e.t("builder.career_profile.status_modal.processing.subtitle");return(0,i.jsx)(rs,{children:(0,i.jsxs)(ra,{children:[(0,i.jsxs)(ro,{children:[(0,i.jsx)(rn,{}
131),e.t("builder.career_profile.status_modal.processing.title")]}),(0,i.jsx)(rd,{dangerouslySetInnerHTML:{__html:t}})]})})},rp=o.Ay.div(["display:flex;flex-flow:column;border-radius:",";padding:",";background-color:",";gap:",";"],c.Kz.S,c.Kz.L,c.Jy.Indigo10,c.Kz.S),ru=o.Ay.div(["display:flex;flex-flow:column;gap:",";"],c.Kz.XS),rx=o.Ay.div(["display:flex;gap:",";align-items:center;",";",";color:",";"],c.Kz.XS,m.Ay.S,m.BO.DemiBold,c.Jy.Indigo80),rh=o.Ay.div(["color:",";"],c.Jy.Neutral60),rm=o.Ay.div(["display:flex;gap:",";"],c.Kz.S),rg=()=>{let{i18n:e}=(0,a.s)(),t=(0,en.wA)(),r=(0,l.Zp)();return(0,i.jsxs)(rp,{children:[(0,i.jsxs)(ru,{children:[(0,i.jsxs)(rx,{children:[(0,i.jsx)(y.Ay.Error2,{})," ",e.t("builder.career_profile.status_modal.failure.title")]}),(0,i.jsx)(rh,{children:e.t("builder.career_profile.status_modal.failure.subtitle")})]}),(0,i.jsxs)(rm,{children:[(0,i.jsx)(x.Ay,{theme:x.Ox.alternative,onClick:()=>{t(n.o1.postChatbotAnswers())},children:e.t("builder.career_profile.status_modal.try_again")}),(0,i.jsx)(x.Ay,{theme:x.Ox.ghost,onClick:()=>{t(n.o1.setInitialChatState()),r("/career-profile/chat")},children:e.t("builder.career_profile.status_modal.retake_assessment")})]})]})},rf=()=>{let e=(0,eh.J)(),t=(0,en.wA)(),{features:r}=(0,ej.t)(),o=(0,ep.N)(n.Tp.fetchCareerInsightsStatus),d=(0,ep.N)(n.Tp.fetchCareerProfileStatus),c=(0,s.B_)(),p=(0,ep.N)(n.Tp.isCareerAssessmentRequired),{careerProfileData:u}=(0,tT.B)(),[x,h]=(0,ea.useState)(!1),{i18n:m}=(0,a.s)(),[g,f]=(0,ea.useState)(!1),[j,y]=(0,ea.useState)(!1),b=(0,ep.N)(n.Tp.fetchIsNewProfileStatus),_=(0,ep.N)(n.Tp.isNewProfile),v=!!e?.uiStates?.careerProfilePrefilledModalPending,A=(0,l.Zp)(),[w]=(0,tP.p)("was_profile_edited"),k=o===eT.Hp.notAsked||o===eT.Hp.loading||d===eT.Hp.notAsked||d===eT.Hp.loading,$=c===n.vq.pending,S=c===n.vq.failure,C=()=>{t(eE.o1.setUIStatesConfigStatus({career_profile_prefilled_modal_pending:!1})),t(ex.o1.setUIUserState({careerProfilePrefilledModalPending:!1}))};return(0,ea.useEffect)(()=>{u?.newProfile===!0&&b===eT.Hp.notAsked&&t(n.o1.prefillProfile())},[u,t,b]),(0,ea.useEffect)(()=>{let e=null;return u?.newProfile===!1&&w&&!tJ.D.getItem(tB)&&(e=setTimeout(()=>y(!0),3e3)),()=>{e&&clearTimeout(e)}},[u,w]),(0,i.jsxs)(i.Fragment,{children:[k?(0,i.jsx)(tu,{}):(0,i.jsxs)(tO.mc,{timeout:0,children:[e&&u?.newProfile===!1&&(0,i.jsxs)(tO.Y9,{children:[(0,i.jsx)(tV,{}),$?(0,i.jsx)(rc,{}):S?(0,i.jsx)(rg,{}):p?(0,i.jsx)(tG,{}):null]}),_&&(0,i.jsx)(tw,{onClick:()=>h(!0)}),(0,i.jsxs)(tO.Bx,{children:[(0,i.jsx)(tO.fr,{size:"m"}),(0,i.jsxs)(tO.dk,{children:[(0,i.jsx)(th.s3,{type:"insights"}),(0,i.jsxs)(tO.ZD,{to:"/job-search?view=recommendation",children:[(0,i.jsx)(tN.aK,{name:"JobTracker"}),(0,i.jsx)(tN.EY,{children:m.t("builder.career_profile.navigation_links.recommended_jobs")})]}),r.learningHub&&(0,i.jsx)(tE.E,{}),(0,i.jsx)(th.s3,{type:"pitch"}),(0,i.jsx)(th.s3,{type:"cover-letter"})]})]}),(0,i.jsx)(tO.UC,{children:(0,i.jsx)(rl,{})})]}),(0,i.jsx)(tS.Zl,{run:j,steps:[{title:m.t("builder.career_profile.recommendations_joy.title"),placement:"right",disableBeacon:!0,target:"#recommendations",content:void 0}],callback:e=>{["close","skip"].includes(e.action)&&tJ.D.setItem(tB,"true"),"close"===e.action&&A("/job-search?view=recommendation")},skipButtonLabel:m.t("builder.career_profile.recommendations_joy.skip"),finalButtonLabel:m.t("builder.career_profile.recommendations_joy.button"),showSkipOnLast:!0,isStepsCountEnabled:!1}),v&&(0,i.jsx)(tC.f,{onClose:C,onClick:C,eventLabel:"career_profile"}),x&&(0,i.jsx)(tM.m,{setClose:()=>h(!1),includeLocation:!0,eventLabel:"career_profile",showSkip:!0,locationData:{buttonText:m.t("builder.career_profile.creation.target_location.button"),subtitle:m.t("builder.career_profile.creation.target_location.subtitle"),Image:(0,i.jsx)(t$.Ku,{src:tk,alt:"target-location"})},roleData:{buttonText:m.t("builder.career_profile.creation.target_role.button"),subtitle:m.t("builder.career_profile.creation.target_role.subtitle")},handleAfterSave:()=>f(!0)}),g&&(0,i.jsx)(tm.w,{onClose:()=>f(!1),goBack:()=>{f(!1),h(!0)},eventLabel:"career_profile",redirectUrl:"/career-profile/edit?returnUrl=/career-profile/profile?was_profile_edited=true"})]})};r(7588);var rj=r(2404),ry=r.n(rj),rb=r(10494),r_=r(33967),rv=r(62983),rA=r(45112),rw=r(40434);r(51244);var rk=r(77279),r$=r(81187),rS=r(4166),rC=r(112),rN=r(43623),rP=r(11431),rT=r(42039),rE=r(36822),rJ=r(48429),rM=r(56749),rB=r(55030),rO=r(84764),rD=r(8559),rH=r(49595),rI=r(87829),rL=r(72528),rR=r(53177),rz=r(1586),rK=r(96831);let rF="personalDetails",rq="jobPreferences",rV=e=>Object.values(th.IP).includes(e),rU=[rw.X.REMOTE,rw.X.HYBRID,rw.X.ONSITE],rX=()=>{let{i18n:e}=(0,a.s)(),t=(0,eh.J)(),r=(0,en.wA)(),{isPhone:l,isTablet:s}=(0,ef.e)(),[o]=(0,tP.p)(th.YJ.returnUrl),[d]=(0,tP.p)(th.YJ.section),c=(0,ep.N)(n.Tp.fetchCareerProfileStatus),{careerProfileData:p}=(0,tT.B)(),h=(0,ep.N)(rb.Tp.levels),m=(0,ep.N)(rb.Tp.isLoaded),[g,f]=(0,ea.useState)(t?.firstName||""),[j,b]=(0,ea.useState)(t?.lastName||""),{localProfile:_,handleCardAdd:v,handleCardDelete:A,handleCardMove:w,handleCardToggle:k,handleCardUpdate:$,isCardOpen:S,handleSimpleFieldUpdate:C,isTargetRoleDisabled:N,isLocationDisabled:P}=(0,rK.R)(),[T,E]=(0,ea.useState)(_?.targetLocations.length?_.targetLocations[0].formattedName:""),J=(0,ea.useMemo)(()=>_?(0,rR.a)(_,e):[],[_,e]),M=e.currentLocale(),B=[eT.Hp.notAsked,eT.Hp.loading].includes(c)||!m,[O,D]=(0,ea.useState)(!1),H=(0,ep.N)(e=>e.application.isOnline),I=(0,ep.N)(n.Tp.isProfilePhotoUploading),[L,R]=(0,ea.useState)(!1),{features:z}=(0,ej.t)(),K=!!z.jobSearchV2,F=_?.jobLocationTypes??[],q=_?.minYearsExperience??0,V=_?.maxYearsExperience??11,U=_?.
131salaryMin??4e4,X=_?.salaryMax??3e5,Y=!!_?.salaryMustHaveValue,W=_?.minYearsExperience==null&&_?.maxYearsExperience==null,Z=_?.salaryMin==null&&_?.salaryMax==null,[G,Q]=(0,ea.useState)(""),[ee,et]=(0,ea.useState)(!1),[er,ei]=(0,ea.useState)(!1),el=(0,ea.useRef)(null),{current:es}=el,ed=(0,ea.useRef)(null),{current:ec}=ed,[eu,eg]=(0,ea.useState)(""),[ey,eb]=(0,ea.useState)(0),[e_,ev]=(0,ea.useState)(!0),[eA]=(0,rB.M)(rM.wt,[]),[ew,ek]=(0,ea.useState)(),[e$,eS]=(0,ea.useState)(!0);(0,ea.useEffect)(()=>{let e=setTimeout(()=>eg(d||rF),500);return()=>{clearTimeout(e)}},[d]),(0,ea.useEffect)(()=>{(0,rD.an)().then(e=>ek(e)).catch(()=>{})},[]),(0,ea.useEffect)(()=>{let e=()=>{if(!J||!J.length)return;let e=Math.ceil(window.innerHeight+window.scrollY)>=document.documentElement.scrollHeight,t=J[J.length-1];e&&eg(t.id);let r=document.querySelectorAll(".content"),i=r[r.length-1];i&&J.length>1&&eu===t.id&&document.documentElement.scrollHeight-(window.innerHeight+window.scrollY)>i.getBoundingClientRect().height&&eg(J[J.length-2].id)};return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)}},[J,eu]),(0,ea.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&e.target.attributes[1].nodeValue){let t=[rF,rq,...J.map(e=>e.id)].find(t=>t===e.target.attributes[1].nodeValue);!t||eu===t||Math.ceil(window.innerHeight+window.scrollY)>=document.documentElement.scrollHeight||e$||eg(t),ev(!1)}})},{rootMargin:"-30% 0px -70% 0px",threshold:0});return document.querySelectorAll(".content").forEach(t=>e.observe(t)),()=>{e.disconnect()}},[J,eu,e$]),(0,ea.useEffect)(()=>{es&&eu===rF&&eb(es.offsetTop)},[es,eu]),(0,ea.useEffect)(()=>{ec&&eu===rq&&eb(ec.offsetTop)},[ec,eu]),(0,ea.useEffect)(()=>{if(!ec||!rV(eu))return;let e=document.getElementById(eu);e&&eb(e.getBoundingClientRect().top+window.scrollY)},[ec,eu]),(0,ea.useEffect)(()=>{let e=null;(e_||e$)&&(window.scrollTo({top:ey-150,behavior:"auto"}),e$&&(e=setTimeout(()=>eS(!1),1e3)));return()=>{e&&clearTimeout(e)}},[ey,e_,e$]),(0,em.h)(()=>{h&&h.skill||r(rb.o1.fetchEditorPayloadRequest())});let eC=(0,ea.useCallback)(()=>{r(eM.o1.setSnackBarOpen({status:!0,type:eM.pN.success,text:e.t("builder.career_profile.editor.profile_saved")})),setTimeout(()=>r(eM.o1.closeSnackBar()),3e3)},[r,e]),eN=()=>{window.location.href=`/app${o||"/career-profile/profile"}`},eP=(0,ea.useCallback)(()=>{if(!H)return r(eM.o1.setConnectionLostSnackbarOpen(!0));D(e=>!e)},[r,H]),eE=(0,ea.useCallback)(e=>{r(n.o1.updateProfileImage(e)),D(!1),eC()},[r,eC]),eJ=(0,ea.useCallback)(()=>{window.confirm(e.t("builder.resume_editor.delete_photo_confirm"))&&(r(n.o1.deleteProfileImage()),eC())},[e,r,eC]),eB=(0,ea.useMemo)(()=>(0,rJ.V7)(eA),[eA]),eO=(0,ea.useMemo)(()=>{let t=(0,i.jsxs)(i.Fragment,{children:[ew?.formatted,"\xa0",(0,i.jsxs)(t$.xo,{children:["(",e.t("builder.job_search.search_bar.location.near_me"),")"]})]});return(0,rJ.rZ)(e.t,!0,ew,t,eB)},[e,ew,eB]);return B?(0,i.jsx)(rL.mc,{children:(0,i.jsx)(tu,{})}):(0,i.jsxs)(rL.ff,{children:[!s&&(0,i.jsxs)(rL.cZ,{children:[(0,i.jsx)(rL.JP,{isSelected:eu===rF,onClick:()=>{eg(rF),ev(!0)},children:e.t("builder.resume_editor.personal_details")}),(0,i.jsx)(rL.JP,{isSelected:eu===rq||rV(eu),onClick:()=>{eg(rq),ev(!0)},children:e.t(`${rz.$J}.title`)}),J.map(({id:e,title:t})=>(0,i.jsx)(rL.JP,{isSelected:eu===e,onClick:()=>{eg(e),ev(!0)},children:t},e))]}),(0,i.jsx)(rL.mc,{children:(0,i.jsxs)(rL.X5,{children:[(0,i.jsxs)(rL.UC,{children:[(0,i.jsxs)(rL.zY,{children:[e.t(`${rz.rG}.title`),(0,i.jsxs)(rL.MV,{to:"/account",target:"_blank",children:[(0,i.jsx)(y.Ay.Settings2,{}),e.t(`${rz.rG}.account_settings_link`)]})]}),(0,i.jsxs)(rL.nB,{children:[(0,i.jsxs)(rL.E7,{ref:el,className:"content",value:rF,children:[(0,i.jsx)(rk.X3,{children:(0,i.jsx)(r$.A,{isFoldable:!1,title:e.t("builder.resume_editor.personal_details")})}),(0,i.jsxs)(rI.kd,{children:[(0,i.jsx)(rS.A,{children:(0,i.jsx)(rC.A,{children:(0,i.jsx)(rP.A,{imageUrl:p?.profilePicture.blank?"":p?.profilePicture.thumbUrl,isUploading:I,onUpload:eE,onDelete:eJ,onClick:l?null:eP})})}),(0,i.jsxs)(rS.A,{children:[(0,i.jsx)(rC.A,{children:(0,i.jsx)(u.A,{label:e.t("builder.resume_editor.first_name"),value:g,name:"firstName",onChange:e=>f(e.target.value)})}),(0,i.jsx)(rC.A,{children:(0,i.jsx)(u.A,{label:e.t("builder.resume_editor.last_name"),value:j,name:"lastName",onChange:e=>b(e.target.value)})})]}),(0,i.jsxs)(rS.A,{children:[(0,i.jsx)(rC.A,{children:(0,i.jsx)(rN.wc,{highlightedQuery:!0,name:"location",fetchItems:rE.G,value:_?.location||"",onChange:e=>C("location",e.target.value),children:({key:t,...r})=>(0,ea.createElement)(u.A,{...r,key:t,label:e.t("builder.career_profile.editor.location"),placeholder:e.t("builder.career_profile.editor.location_placeholder")})})}),(0,i.jsx)(rC.A,{children:(0,i.jsx)(u.A,{label:e.t("builder.resume_editor.email"),type:"email",value:_?.email||"",name:"email",onChange:e=>C("email",e.target.value)})})]})]})]}),(0,i.jsxs)(rL.Ki,{ref:ed,className:"content",value:rq,children:[(0,i.jsxs)(rk.X3,{children:[(0,i.jsx)(r$.A,{title:e.t(`${rz.$J}.title`),isFoldable:!1}),(0,i.jsx)(rI.SQ,{children:e.t(`${rz.$J}.hint`)})]}),(0,i.jsxs)(rI.kd,{children:[(0,i.jsxs)(rL.b1,{children:[(0,i.jsxs)(rL.h1,{children:[(0,i.jsxs)(rL.vy,{children:[(0,i.jsx)(rL.iM,{}),(0,i.jsx)(rL.Et,{children:e.t(`${rz.$J}.target_role.title`)})]}),(0,i.jsx)(rL.qo,{children:_?.targetRoles.map(e=>(0,i.jsxs)(rL.xd,{children:[(0,i.jsx)(rL.qN,{children:e.standardTitle}),(0,i.jsx)(rL.YP,{onClick:()=>C("targetRoles",_.targetRoles.filter(t=>t.standardTitle!==e.standardTitle))})]},e.standardTitle))})]}),(0,i.jsx)(rL.$_,{$isExpanded:L,children:(0,i.jsx)(rv.Z,{onClear:()=>{Q(""),et(!1),ei(!1)},icon:(0,i.jsx)(rL._r,{}),placeholder:e.t("builder.career_profile.profile.target_role_modal.search_placeholder.job"),name:"occupation",value:G,suggestionParam:"job-titles",suggestionOptions:{limit:10},storageKey:"JOB_TITLE_HISTORY",disabled:N,isJobExpanded:L,showInputAsSuggestion:!0,multiSection:!G.length,onExpand:R,onValueChange:e=>{Q(e),e?.length?et(!0):(et(!1),ei(!1))},onSelectAutosuggestion:e=>{Q(""),C("targetRoles",(0,e5.uniqBy)([..._?.targetRoles||[],{id:null,
131standardTitle:e}],"standardTitle")),et(!1),ei(!1)}})}),er?(0,i.jsx)(rL.ie,{children:e.t("builder.career_profile.profile.target_role_modal.job_error")}):(0,i.jsx)(rL.io,{children:N?e.t("builder.career_profile.profile.target_role_modal.title_disabled"):e.t("builder.career_profile.profile.target_role_message")})]}),(0,i.jsxs)(rL.b1,{children:[(0,i.jsxs)(rL.h1,{children:[(0,i.jsxs)(rL.vy,{children:[(0,i.jsx)(rL.BT,{}),(0,i.jsx)(rL.Et,{children:e.t(`${rz.$J}.selected_location.title`)})]}),(0,i.jsx)(rL.qo,{children:_?.targetLocations.filter(e=>e.formattedName).map(e=>(0,i.jsxs)(rL.xd,{children:[(0,i.jsx)(rL.qN,{children:e.formattedName}),(0,i.jsx)(rL.YP,{onClick:()=>C("targetLocations",_.targetLocations.filter(t=>t.formattedName!==e.formattedName))})]},e.formattedName))})]}),(0,i.jsx)(rL.vk,{value:T||"",placeholder:e.t(`${rz.$J}.selected_location.placeholder`),icon:(0,i.jsx)(rL.tl,{}),defaultSuggestions:eO,getSuggestionValue:e=>e.formatted||e.text,fetchItems:rE.G,clearPreviousSuggestions:!1,onChange:e=>{E(e)},disabled:P,onSuggestionSelected:e=>{let t="near_me"===e.locationType&&ew?ew:e,r=t.formatted||t.text,i={id:t.value&&"Remote"!==t.value?parseInt(t.value):null,formattedName:r};C("targetLocations",(0,e5.uniqBy)([i,..._?.targetLocations||[]],"formattedName")),E("")},withHover:!1}),(0,i.jsx)(rL.io,{children:P?e.t("builder.career_profile.profile.target_role_modal.location_disabled"):e.t("builder.career_profile.profile.target_location_message")})]})]})]}),K&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{id:th.IP.workplaceType,children:[(0,i.jsxs)(rk.X3,{children:[(0,i.jsx)(r$.A,{title:e.t(`${rz.$J}.workplace_type`),isFoldable:!1}),(0,i.jsx)(rI.SQ,{children:e.t(`${rz.$J}.workplace_type_subtitle`)})]}),(0,i.jsx)(rI.kd,{children:(0,i.jsx)(rL.Iy,{children:rU.map(t=>(0,i.jsx)(x.c7,{selected:F.includes(t),onClick:()=>{C("jobLocationTypes",F.includes(t)?F.filter(e=>e!==t):[...F,t])},children:e.t(`${rz.$J}.workplace_type_options.${t}`)},t))})})]}),(0,i.jsxs)("div",{id:th.IP.experienceLevel,children:[(0,i.jsx)(rk.X3,{children:(0,i.jsx)(r$.A,{title:e.t(`${rz.$J}.experience_level`),isFoldable:!1,rightText:(0,i.jsxs)(rL.yC,{children:[(0,i.jsx)("span",{children:e.t(`${rz.$J}.open_to_all`)}),(0,i.jsx)(rA.A,{checked:W,onClick:()=>{W?(C("minYearsExperience",0),C("maxYearsExperience",11)):(C("minYearsExperience",null),C("maxYearsExperience",null))}})]})})}),(0,i.jsx)(rI.kd,{children:(0,i.jsxs)(rL.gc,{children:[(0,i.jsx)(rL.FB,{children:W?e.t(`${rz.$J}.any`):q===V?e.t(`${rz.$J}.experience_value`,{value:q,count:q}):e.t(`${rz.$J}.experience_range`,{min:q,max:V})}),(0,i.jsx)(rL.Sv,{lowValue:q,highValue:V,min:0,max:11,disabled:W,onChange:(e,t)=>
131{C("minYearsExperience",e),C("maxYearsExperience",t)}})]})})]}),(0,i.jsxs)("div",{id:th.IP.salary,children:[(0,i.jsx)(rk.X3,{children:(0,i.jsx)(r$.A,{title:e.t(`${rz.$J}.salary`),isFoldable:!1,rightText:(0,i.jsxs)(rL.yC,{children:[(0,i.jsx)("span",{children:e.t(`${rz.$J}.open_to_all`)}),(0,i.jsx)(rA.A,{checked:Z,onClick:()=>{Z?(C("salaryMin",4e4),C("salaryMax",3e5)):(C("salaryMin",null),C("salaryMax",null))}})]})})}),(0,i.jsx)(rI.kd,{children:(0,i.jsxs)(rL.gc,{children:[(0,i.jsx)(rL.FB,{children:Z?e.t(`${rz.$J}.any`):U===X?e.t(`${rz.$J}.salary_value`,{value:Math.floor(U/1e3)}):e.t(`${rz.$J}.salary_range`,{min:Math.floor(U/1e3),max:Math.floor(X/1e3)})}),(0,i.jsx)(rL.Sv,{lowValue:U,highValue:X,min:4e4,max:3e5,disabled:Z,prefixLabel:"$",suffixLabel:"k",step:1e4,onChange:(e,t)=>{C("salaryMin",e),C("salaryMax",t)}}),(0,i.jsxs)(rL.xZ,{children:[(0,i.jsx)(rA.A,{checked:Y,onClick:()=>C("salaryMustHaveValue",!Y)}),(0,i.jsx)("span",{children:e.t(`${rz.$J}.display_jobs_with_salary_only`)})]}),(0,i.jsxs)(rL.zE,{children:[(0,i.jsx)(rL.iJ,{children:(0,i.jsx)(y.EK.InfoRegular,{})}),(0,i.jsx)("span",{children:e.t(`${rz.$J}.info_strict_filters`)})]})]})})]})]}),(0,i.jsx)(rL.KA,{children:J.map((e,t)=>(0,i.jsx)(r_.iu,{index:t,item:e,levels:h,hideSkillLevel:_?.hideSkillLevel,locale:M,onAdd:v,isCardOpen:S,onCardChange:$,onCardDelete:A,onCardMove:w,onCardToggle:k,updateSimpleField:C,isRecommendedLengthHidden:!0,setContentOffset:eb,triggerScroll:e.id===eu,isFoldable:!1},e.id))})]})]}),(0,i.jsx)(rL.wi,{children:(0,i.jsxs)(rL.Xn,{children:[(0,i.jsx)(x.Ay,{theme:x.Ox.ghost,onClick:()=>{(0,eo.xP)("click_cancel_editing_profile"),(!(()=>
131{if(!_||!p||!t)return!1;let{profilePicture:e,...r}=_,{profilePicture:i,...l}=p,s=!ry()(r,l),a=g!==t.firstName||j!==t.lastName;return s||a})()||window.confirm(e.t("builder.career_profile.editor.exit_warning")))&&(tJ.D.removeItem(rH.zv),eN())},children:e.t(`${rz.rG}.cancel`)}),(0,i.jsx)(x.Ay,{onClick:()=>{if(ei(!1),o?.includes("recommendation")?(0,eo.xP)("click_save_profile",{label:"recommended_jobs"}):(0,eo.xP)("click_save_profile",{label:"career_profile"}),!_)return;if(ee)return void ei(!0);r(n.o1.setIsNewProfile(!1));let e={..._,targetLocations:_.targetLocations.filter(e=>""!==e.formattedName),skillsAttributes:(0,rO.q2)((0,rR.g)(_.skillsAttributes)),coursesAttributes:(0,rO.q2)((0,rR.g)(_.coursesAttributes)),educationsAttributes:(0,rO.q2)((0,rR.g)(_.educationsAttributes)),workExperiencesAttributes:(0,rO.q2)((0,rR.g)(_.workExperiencesAttributes))};tJ.D.removeItem(rH.zv),r(n.o1.updateProfileData(e)),(0,eo.xP)("update_career_profile_data",{source:"career_profile_view",targetRoles:e.targetRoles.map(e=>e.standardTitle).join(";"),targetLocations:e.targetLocations.map(e=>e.formattedName).join(";")}),r(ex.o1.updateUserRequest({firstName:g,lastName:j,email:t?.email})),eN(),eC()},children:e.t(`${rz.rG}.save`)})]})})]})}),O&&!l&&p&&(0,i.jsx)(rT.A,{avatar:p.profilePicture,onSubmit:eE,onClose:eP})]})},rY=({type:e,children:t})=>{let r=(0,eh.J)(),s=(0,en.wA)(),a=r?.hasPremiumFeatures;return(0,ea.useEffect)(()=>{a||s(n.o1.setOpenedPaywallModalType(e))},[a,s,e]),a?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(l.C5,{to:"/career-profile/insights",replace:!0})};var rW=()=>{let{i18n:e}=(0,a.s)(),t=(0,s.B_)()===n.vq.success;return(0,i.jsxs)(l.BV,{children:[(0,i.jsx)(l.qh,{path:"chat",element:(0,i.jsx)(e9,{})}),(0,i.jsx)(l.qh,{path:"pitch",element:(0,i.jsx)(tx,{type:"pitch",children:(0,i.jsx)(rY,{type:"pitch",children:(0,i.jsx)(ta,{})})})}),(0,i.jsx)(l.qh,{path:"cover-letter",element:(0,i.jsx)(tx,{type:"cover-letter",children:(0,i.jsx)(rY,{type:"cover-letter",children:(0,i.jsx)(tc,{})})})}),(0,i.jsx)(l.qh,{path:"edit",element:(0,i.jsx)(rX,{})}),(0,i.jsx)(l.qh,{path:"*",element:(0,i.jsxs)(er,{children:[t?(0,i.jsxs)(ei,{children:[(0,i.jsx)(el,{to:"profile",children:e.t("builder.career_assessment.results.navigation_tabs.my_profile")}),(0,i.jsx)(el,{to:"insights",children:e.t("builder.career_assessment.results.navigation_tabs.career_insights")})]}):null,(0,i.jsxs)(l.BV,{children:[(0,i.jsx)(l.qh,{path:"insights",element:(0,i.jsx)(tx,{type:"insights",children:(0,i.jsx)(s.ih,{})})}),(0,i.jsx)(l.qh,{path:"profile",element:(0,i.jsx)(rf,{})}),(0,i.jsx)(l.qh,{path:"/",element:(0,i.jsx)(l.C5,{to:"profile"})})]})]})})]})}}}]);
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.