PageSourceSearch

https://getbadge.app/assets/Home-Z6JNghsm.js

js getbadge.app collected 2026-10-04 23:00:45 UTC 23,988 bytes, 3 lines download raw bytes

1import{a,w as Pe,v as Le,t as Ne}from"./chunk-LFPYN7LY-DOVomWd4.js";import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{u as Ee}from"./index-QPiJHbmZ.js";import{u as He,a as T,s as Q}from"./requests-dqPv5jI2.js";import{u as be,T as t,t as De,J as Je}from"./nextPage-DhESyp5X.js";import{u as Ue}from"./useAinaNudges-DtveOeCm.js";import{R as Oe}from"./RequireAuth-CeFbsajq.js";import{F as ye,S as Ge,T as he,a as Ye,b as ue,c as qe,d as xe,e as Me,f as Xe,g as Qe}from"./AppScreen-D_AGWSKN.js";import{G as B}from"./GradientButton-DLYM-lbB.js";import{A as Ve}from"./AinaAvatar-CJrPeP5V.js";import{B as je}from"./BottomSheet-Ds7TdJoI.js";import{A as fe}from"./AinaStrip-DtsmUsy7.js";import{j as Ze,a as Ke,F as et,b as tt}from"./jobFormat-CKJkmqQc.js";import{S as ot}from"./whatsappSupport-D4mgc6zK.js";import{E as me}from"./ErrorBanner-DdUs01fI.js";import{l as h}from"./analytics-Goc4IYkO.js";import"./module-QZZgjtq8.js";import"./SignUpSheet-BzP5DuOO.js";import"./TextInput-KTbm_3uR.js";import"./OtpBoxes-DSucrdxn.js";import"./metaPixel-9lrpYhDq.js";import"./bagde-logo-384-trans-DFT_xsgO.js";import"./useFitText-85iZ5ecK.js";import"./AinaAvatar-CLG8Zoi6.js";const ke=({title:i,say:n,expression:r="neutral",highlighted:p=!1})=>e.jsxs("div",{style:{display:"flex",gap:9,alignItems:"flex-start",width:"100%"},children:[e.jsx(Ve,{size:p?44:40,expression:r,pulse:p}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[i&&e.jsx("div",{style:{fontSize:12,fontWeight:800,color:"#fff"},children:i}),n&&e.jsx("div",{style:{fontSize:16,lineHeight:"24px",color:"var(--sk-aina-text)",marginTop:i?3:0},children:n}),e.jsx("div",{style:{fontSize:10,color:"rgba(255,255,255,0.55)",marginTop:2},children:"Aina"})]})]}),it=({task:i,nudge:n,onCta:r,onSkip:p,onKnowMore:u,busy:c})=>{const[d,x]=a.useState(!1),l=be(),m=i.rewards_left??i.reward_given??0,b=i.rendered_title||i.title||"",v=i.rendered_cta||i.cta_text||"Continue",j=()=>{u==null||u(),x(!0)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:n?{borderRadius:14,background:"#0d2418",padding:"14px 16px",boxShadow:"0 6px 10px rgba(0,0,0,0.45)"}:{background:"rgba(0,0,0,0.30)",border:`1px solid ${t.hair2}`,borderRadius:16,padding:"14px 16px"},children:e.jsxs("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[n?e.jsx(ke,{title:b,say:n.text,expression:n.expression,highlighted:!0}):e.jsx("div",{className:"taskBannerEyebrow",style:{color:"rgba(255,255,255,0.75)",fontSize:11,fontWeight:700,letterSpacing:2.5,textTransform:"uppercase",lineHeight:"16px",width:"100%"},children:i.reward_given?`Boost your trust score by +${i.reward_given} points`:i.rendered_description||i.description}),e.jsxs("div",{className:"taskBannerCta",style:{width:"100%",marginTop:24},children:[e.jsx(B,{title:v,shimmer:!0,onPress:r,loading:c,style:{marginTop:0}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:20},children:[i.is_skippable&&p&&e.jsx("button",{type:"button",onClick:()=>p(i),style:{marginRight:"auto",background:"none",border:0,color:t.darkgrey,fontSize:14,textDecoration:"underline",padding:0,cursor:"pointer",fontFamily:t.font},children:"Skip"}),e.jsxs("button",{type:"button",onClick:j,style:{background:t.gold,borderRadius:l?10:8,padding:l?"5px 10px":"4px 8px",border:0,fontFamily:t.mono,fontSize:l?14.4:12,fontWeight:700,color:"#131818",cursor:"pointer"},children:["+",m]}),e.jsx("button",{type:"button",onClick:j,style:{marginLeft:10,color:t.text,opacity:.7,fontSize:12,fontWeight:500,textDecoration:"underline",background:"none",border:0,padding:0,cursor:"pointer",fontFamily:t.font},children:"Know more"})]})]})]})}),e.jsxs(je,{open:d,onClose:()=>x(!1),children:[e.jsx("div",{style:{fontSize:20,fontWeight:700,color:t.text,marginBottom:16},children:"Reward Points"}),e.jsx("div",{style:{fontSize:16,fontWeight:500,lineHeight:"22px",color:t.text,marginBottom:12,whiteSpace:"pre-line"},children:`Trust score reflects your current credibility on Badge. A higher trust score increases your visibility to recruiters and hiring managers.
2
3Completing this action will boost your trust score by up to ${i.reward_given||0} points. If you're giving feedback to someone, your trust score will increase based on the quality of the feedback you provide.`}),e.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:e.jsx(B,{title:"Got it",size:"small",fullWidth:!1,onPress:()=>x(!1)})})]})]})},U=({job:i,trustScore:n,teachingApply:r=!1,shimmer:p=!1,onOpen:u,style:c,width:d="72%"})=>{const x=!i.eligible,l=Number(i.min_trust_score)||0,m=l-(Number(n)||0),b=x&&m>0&&m<=5,v=l>0?Math.max(0,Math.min(100,n/l*100)):0,j=x?b?{background:"#0e2316",borderColor:"rgba(255,215,0,0.45)",boxShadow:"0 0 10px rgba(255,215,0,0.30)"}:r?{border:"1.5px solid rgba(255,215,0,0.6)"}:{opacity:.75}:{background:"#0e2316",borderColor:"rgba(30,215,96,0.55)",boxShadow:"0 0 10px rgba(30,215,96,0.35)"},_=Ze(i),$=Ke(i);return e.jsxs("div",{role:"button",tabIndex:0,className:"dashJobCard",onClick:()=>u(i),onKeyDown:C=>{C.key==="Enter"&&u(i)},style:{flex:"0 0 auto",width:d,borderRadius:16,background:t.c06,border:`1px solid ${t.hair}`,padding:16,color:t.text,cursor:"pointer",fontFamily:t.font,display:"flex",flexDirection:"column",...j,...c},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx("span",{style:{width:44,height:44,borderRadius:12,background:"rgba(30,215,96,0.14)",display:"grid",placeItems:"center",color:"#3ee58a",fontSize:22,fontWeight:800,flex:"0 0 auto",overflow:"hidden"},children:i.company_logo_url?e.jsx("img",{src:i.company_logo_url,alt:"",style:{width:28,height:28,borderRadius:4,objectFit:"contain"}}):(i.company_name||"?").trim().charAt(0).toUpperCase()}),e.jsxs("div",{style:{flex:1,marginLeft:16,minWidth:0},children:[e.jsx("div",{style:{fontSize:16,fontWeight:700,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:i.title}),e.jsx("div",{style:{fontSize:13,fontWeight:500,color:t.darkgrey,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:i.company_name})]})]}),e.jsxs("div",{style:{margin:"8px 0 16px",flex:1},children:[_&&e.jsxs("div",{style:{display:"flex",alignItems:"center",marginTop:4,fontSize:13,fontWeight:500,color:t.darkgrey},children:[e.jsx(et,{style:{width:16,height:16,color:t.darkgrey,marginRight:8}}),_]}),$&&e.jsxs("div",{style:{display:"flex",alignItems:"center",marginTop:4,fontSize:13,fontWeight:700,color:t.secondary,fontFamily:t.mono},children:[e.jsx(tt,{style:{width:16,height:16,color:t.secondary,marginRight:8}}),$]})]}),x&&!r?e.jsxs("div",{children:[e.jsxs("div",{className:"dashJobUnlockRow",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:6},children:[e.jsxs("span",{style:{display:"flex",alignItems:"center",fontSize:12,fontWeight:600,whiteSpace:"nowrap"},children:[e.jsx(ye,{style:{width:14,height:14,color:t.darkgrey,marginRight:6,flex:"0 0 auto"}}),"Unlocks at ",e.jsx("span",{style:{fontFamily:t.mono,marginLeft:4},children:l})]}),m>0&&e.jsxs("span",{style:{color:t.gold,fontSize:12,fontFamily:t.mono,fontWeight:700,whiteSpace:"nowrap"},children:[m," pts away"]})]}),e.jsx("div",{style:{height:6,borderRadius:3,background:"rgba(255,255,255,0.12)",overflow:"hidden"},children:e.jsx("div",{style:{width:`${v}%`,height:"100%",borderRadius:3,background:t.gold}})})]}):e.jsx("span",{onClick:C=>{C.stopPropagation(),u(i)},style:{display:"block",marginTop:"auto"}
3,children:e.jsx(B,{title:"Apply",size:"small",variant:r?"primary":"secondary",shimmer:r&&p,onPress:()=>{},style:{marginTop:0}})})]})},R=({title:i,icon:n,onPress:r,locked:p,badge:u,iconUrl:c,style:d})=>e.jsxs("button",{type:"button",onClick:r,style:{width:"48%",background:t.c06,border:`1px solid ${t.hair}`,borderRadius:16,padding:"14px 12px",display:"flex",flexDirection:"column",alignItems:"center",color:t.text,position:"relative",opacity:p?.6:1,cursor:"pointer",fontFamily:t.font,...d},children:[e.jsxs("span",{style:{width:56,height:56,borderRadius:14,background:"rgba(30,215,96,0.14)",display:"grid",placeItems:"center",position:"relative"},children:[c?e.jsx("img",{src:c,alt:"",style:{width:48,height:48,objectFit:"contain"}}):e.jsx(n,{style:{width:32,height:32,color:t.secondary,opacity:p?.3:1}}),p&&e.jsx("span",{style:{position:"absolute",top:-5,right:-5,background:t.primary,borderRadius:10,padding:4,display:"grid",placeItems:"center",boxShadow:"0 2px 2px rgba(0,0,0,0.25)"},children:e.jsx(ye,{style:{width:14,height:14,color:"#fff"}})})]}),e.jsx("span",{style:{fontSize:14,fontWeight:600,marginTop:8,textAlign:"center",opacity:p?.5:1},children:i}),!!u&&e.jsx("span",{style:{position:"absolute",top:8,right:10,minWidth:18,height:18,borderRadius:9,padding:"0 5px",background:t.gold,color:"#131818",fontSize:10,fontWeight:700,display:"grid",placeItems:"center"},children:u})]}),st=({label:i,emoji:n="🎉",delay:r=500,visibleDuration:p=5e3,height:u=40,onPress:c})=>{const[d,x]=a.useState("hidden");if(a.useEffect(()=>{const m=setTimeout(()=>{try{const _=new Audio("/audio/levelup.mp3");_.volume=1,_.play().catch(()=>{})}catch{}},1e3),b=setTimeout(()=>x("in"),r),v=setTimeout(()=>x("out"),r+p),j=setTimeout(()=>x("gone"),r+p+500);return()=>{clearTimeout(m),clearTimeout(b),clearTimeout(v),clearTimeout(j)}},[r,p]),d==="gone")return null;const l=d==="in";return e.jsxs("button",{type:"button",onClick:()=>{x("gone"),c==null||c()},"aria-live":"polite",style:{position:"fixed",top:50,left:"50%",zIndex:999,height:u,padding:"0 12px",border:0,cursor:"pointer",borderRadius:25,background:t.gold,boxShadow:`0 0 15px ${t.gold}`,overflow:"hidden",display:"flex",alignItems:"center",gap:4,fontFamily:t.font,transform:`translateX(calc(-50% + ${l?0:200}px))`,opacity:l?1:0,transition:l?"transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out":"transform 500ms ease-in, opacity 500ms ease-in"},children:[e.jsx("span",{"aria-hidden":!0,style:{position:"absolute",top:0,bottom:0,left:0,width:"100%",background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent)",animation:l?"seekerBadgeShimmer 1.5s linear infinite":"none",pointerEvents:"none"}}),e.jsx("span",{style:{position:"relative",color:"#000",fontWeight:700,fontSize:14},children:i}),n&&e.jsx("span",{style:{position:"relative",fontSize:16,marginTop:-3},children:n}),e.jsx("style",{children:"@keyframes seekerBadgeShimmer { from { transform: translateX(-150px) } to { transform: translateX(150px) } } @media (prefers-reduced-motion: reduce) { [aria-live] span { animation: none !important } }"})]})},O={fontSize:11,fontWeight:700,letterSpacing:2.5,textTransform:"uppercase",color:"rgba(255,255,255,0.75)"},nt=()=>{var pe,ge;const i=Le(),n=Ee(),r=He(),p=Ne(),u=be(),c=(r==null?void 0:r.userId)||"",[d,x]=a.useState(null),[l,m]=a.useState((r==null?void 0:r.trustScore)??60),[b,v]=a.useState((r==null?void 0:r.firstName)??""),[j,_]=a.useState([]),[$,C]=a.useState(!0),[A,ve]=a.useState({ready:[],almost_there:[],aim_higher:[]}),[w,V]=a.useState(!0),[_e,we]=a.useState([]),[G,Y]=a.useState(0),[Se,Te]=a.useState(!1),[Z,q]=a.useState(null),[P,L]=a.useState(0),[K,I]=a.useState(!1),[Re,ee]=a.useState(!1),[te,oe]=a.useState(null);a.useEffect(()=>{var s;const o=(s=p.state)==null?void 0:s.trustScoreChange;o&&o.change&&(oe(o),i(p.pathname,{replace:!0,state:null}))},[]);const{forSlot:ie,hasEffect:N,ack:se}=Ue("DashboardScreen"),y=ie("below_locked_jobs"),z=ie("task_banner"),ne=(y&&y.effects.hide||[]).includes("task_banner"),W=a.useCallback(async()=>{var o;if(c){try{const f=(await T.user.detailsById(c)).data;f.trust_score!=null&&m(f.trust_score),f.jwt_token&&Q.patch({jwt:f.jwt_token,trustScore:f.trust_score??void 0})}catch{}try{const s=await T.user.profileById(c);x(s.data);const f=((o=s.data.basic_details)==null?void 0:o.first_name)||s.data.first_name||"";
3f&&(v(f),Q.patch({firstName:f})),s.data.trust_score!=null&&m(s.data.trust_score)}catch{}try{C(!0);const s=await T.user.tasks(c);_(s.data.tasks||[])}catch{}finally{C(!1)}try{V(!0);const s=await T.jobs.candidateList();ve({ready:s.data.ready||[],almost_there:s.data.almost_there||[],aim_higher:s.data.aim_higher||[]}),s.data.trust_score!=null&&m(s.data.trust_score)}catch{q("Could not load jobs. Please try again.")}finally{V(!1)}try{const s=await T.jobs.applications();we(s.data.applications||[]),Y(s.data.unseen_count||0)}catch{}finally{Te(!0)}}},[c]);a.useEffect(()=>{W(),h(n,"home_viewed",{})},[W]),a.useEffect(()=>{const o=()=>document.visibilityState==="visible"&&W();return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[W]);const k=a.useMemo(()=>j.find(o=>o.status==="active")||null,[j]),g=A.ready,F=a.useMemo(()=>[...A.almost_there,...A.aim_higher],[A]),E=_e.length,M=!w&&Se&&g.length>0&&E===0,S=(d==null?void 0:d.feature_locks)||{};a.useEffect(()=>{if(!(!M||!c))try{const o=`jobsUnlockedSeen_${c}`,s=Number(localStorage.getItem(o))||0;g.length>s&&(localStorage.setItem(o,String(g.length)),L(g.length-s),h(n,"jobs_unlocked_shown",{count:g.length-s}))}catch{}},[M,g.length,c]);const H=(o,s=!1)=>{h(n,s?"spotlight_apply_tapped":"dashboard_job_card",{job_id:o.job_id,eligible:o.eligible}),y&&o.eligible===!1&&se(y.key,"locked_job_opened"),i(`/jobs/${o.job_id}`)},re=o=>{const s=g[0];s&&(h(n,o,{job_id:s.job_id}),L(0),i(`/jobs/${s.job_id}`))},Ce=async()=>{k&&(h(n,"banner_cta",{task_id:k.id,target:k.target}),z&&z.completion_event==="task_cta_tapped"&&se(z.key,"task_cta_tapped"),k.target!=="notificationAccess"&&i(De(k.target,{taskId:k.id})))},Ie=async o=>{ee(!0);try{await T.user.skipTask(c,o.id),await W()}catch{}finally{ee(!1)}},ze=!!z&&N("task_banner","highlight","task_banner"),ae=$?e.jsx("div",{style:{background:"rgba(0,0,0,0.30)",border:`1px solid ${t.hair2}`,borderRadius:16,padding:"14px 16px",minHeight:96}}):M?e.jsx("div",{children:e.jsx("div",{style:{borderRadius:14,background:"#0d2418",border:"1px solid rgba(30,215,96,0.55)",padding:"14px 16px",boxShadow:"0 6px 10px rgba(0,0,0,0.45)"},children:e.jsxs("div",{style:{paddingTop:6},children:[e.jsx(ke,{title:"Apply to your first job",say:`Your Trust Score is ${l}. ${g.length} ${g.length===1?"job is":"jobs are"} open for you now. Pick one and apply.`,expression:"celebrate",highlighted:!0}),e.jsx("div",{className:"taskBannerCta",style:{marginTop:20},children:e.jsx(B,{shimmer:!0,title:`Apply to ${g[0].title}`,onPress:()=>re("banner_apply_first"),style:{marginTop:0}})})]})})}):k?e.jsx(it,{task:k,nudge:ze?z:null,onCta:Ce,onSkip:Ie,busy:Re}):null,le=o=>e.jsx("div",{style:{display:"flex",gap:12,overflowX:"auto",padding:"0 16px 6px",scrollbarWidth:"none"},children:o}),D=(o,s)=>e.jsxs("div",{style:u?{display:"flex",alignItems:"baseline",justifyContent:"space-between",margin:"0 0 14px"}:{display:"flex",flexDirection:"column",alignItems:"flex-start",margin:"0 16px 16px"},children:[e.jsx("span",{style:O,children:o}),e.jsx("button",{type:"button",onClick:()=>{h(n,s,{}),i(Je)},style:{fontSize:11,fontWeight:700,letterSpacing:1,textTransform:"uppercase",color:t.primary,marginTop:u?0:8,background:"none",border:0,padding:0,cursor:"pointer",fontFamily:t.font},children:"See all →"})]}),We=N("below_locked_jobs","dim","content_below"),J=N("below_locked_jobs","highlight","first_locked_job")?(pe=F[0])==null?void 0:pe.job_id:null,de=N("below_locked_jobs","shimmer","first_locked_job_apply"),X={display:"flex",flexWrap:"wrap",justifyContent:"space-between",rowGap:12,padding:"0 16px",marginBottom:12},Fe=o=>w?[0,1,2].map(s=>e.jsx("div",{style:{height:168,borderRadius:16,background:t.c06}},s)):g.slice(0,o).map(s=>e.jsx(U,{job:s,trustScore:l,onOpen:H,width:"auto"},s.job_id)),Be=o=>F.slice(0,o).map(s=>e.jsx(U,{job:s,trustScore:l,teachingApply:J===s.job_id,shimmer:de,onOpen:f=>H(f,J===f.job_id),width:"auto"},s.job_id)),ce={display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:14},$e=e.jsxs("div",{style:{minHeight:"100vh",background:t.background,backgroundImage:t.gradient,backgroundAttachment:"fixed",color:t.text,fontFamily:t.font},children:[e.jsx(Ge,{active:"home",featureLocks:S,applicationCount:E,unseen:G,profilePhotoUrl:d==null?void 0:d.profile_photo_url,onNav:o=>{o==="applications"&&Y(0),h(n,"header_nav",{item:o})}}),e.jsxs("div",{style:{maxWidth:1120,margin:"0 auto",padding:"28px 20px 60px"},children:[e.jsx(me,{message:Z,onDismiss:()=>q(null)}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,marginBottom:12},children:[e.jsx("span",{style:{fontSize:16,fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:b?`Hi, ${b}`:"Hi there"}),e.jsx(he,{score:l,onPress:()=>{h(n,"trust_score_hero",{trustScore:l}),i("/badge/next")}})]}),!ne&&ae,(w||g.length>0)&&e.jsxs("div",{style:{marginTop:28},children:[D("Jobs for you","dashboard_jobs_see_all"),e.jsx("div",{style:ce,children:Fe(3)})]}),!w&&F.length>0&&e.jsxs("div",{style:{marginTop:28},children:[D(g.length===0?"Unlock jobs with a higher Trust Score":"Unlock more with a higher Trust Score","dashboard_locked_jobs_see_all"),y&&e.jsx("div",{style:{margin:"0 0 14px"},children:e.jsx(fe,{text:y.text,expression:y.expression,style:{margin:0,background:"#0f2b1d",boxShadow:"0 6px 10px rgba(0,0,0,0.45)"}})}),e.jsx("div",{style:ce,children:Be(6)})]})]})]}),Ae=e.jsx("div",{style:{minHeight:"100vh",background:t.background,backgroundImage:t.gradient,backgroundAttachment:"fixed",color:t.text,fontFamily:t.font},children:e.jsxs("div",{style:{maxWidth:420,margin:"0 auto",padding:"18px 0 24px"},children:[e.jsx(me,{message:Z,onDismiss:()=>q(null)}),e.jsxs("div",{style:{background:t.c06,borderRadius:16,padding:"16px 16px 0",boxShadow:"0 4px 8px rgba(255,255,255,0.12)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[e.jsx("span",{style:{fontSize:16,fontWeight:700,letterSpacing:-.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:12},children:b?`Hi, ${b}`:"Hi there"}),e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:14,position:"relative"},children:[e.jsx(he,{score:l,onPress:()=>{h(n,"trust_score_hero",{trustScore:l}),i("/badge/next")}}),e.jsx("button",{type:"button","aria-label":"Notifications",onClick:()=>i("/notifications"),style:{background:"none",border:0,padding:2,cursor:"pointer"},children:e.jsx(Ye,{style:{width:22,height:22,color:t.secondary}})}),e.jsx("button",{type:"button","aria-label":"Account",onClick:()=>I(o=>!o),style:{width:36,height:36,borderRadius:18,background:t.secondary,border:0,display:"grid",placeItems:"center",cursor:"pointer",overflow:"hidden",padding:0},children:d!=null&&d.profile_photo_url?e.jsx("img",{src:d.profile_photo_url,alt:"",style:{width:36,height:36,objectFit:"cover"}}):e.jsx(ue,{style:{width:26,height:26,color:"#0d2418"}})}),K&&e.jsx("div",{style:{position:"absolute",top:44,right:0,background:"#fff",borderRadius:8,minWidth:180,boxShadow:"0 2px 3.84px rgba(0,0,0,0.25)",zIndex:1001,overflow:"hidden"},children:[{label:"My Profile",color:"#000",go:()=>{I(!1),h(n,"menu_my_profile",{}),i("/profile")}},{label:"Logout",color:"#000",go:async()=>{try{await T.user.logout(c)}catch{}Q.clear(),i("/")}},{label:"Chat with us",color:"#000",go:()=>{I(!1),window.open(ot,"_blank","noopener,noreferrer")}},{label:"Delete Account",color:"#ff4444",go:()=>{I(!1),i("/delete-account")}}].map((o,s,f)=>e.jsx("button",{type:"button",onClick:o.go,style:{display:"block",width:"100%",textAlign:"left",padding:"12px 16px",background:"none",border:0,borderBottom:s<f.length-1?"1px solid #e0e0e0":0,fontSize:16,color:o.color,cursor:"pointer",fontFamily:t.font},children:o.label},o.label))})]})]}),!ne&&e.jsx("div",{style:{paddingBottom:12},children:ae})]}),(w||g.length>0)&&e.jsxs("div",{style:{marginTop:24},children:[D("Jobs for you","dashboard_jobs_see_all"),le(w?[0,1].map(o=>e.jsx("div",{style:{flex:"0 0 auto",width:"72%",height:168,borderRadius:16,background:t.c06}},o)):g.map(o=>e.jsx(U,{job:o,trustScore:l,onOpen:H,width:"72%"},o.job_id)))]}),!w&&F.length>0&&e.jsxs("div",{style:{marginTop:24},children:[y&&e.jsxs("div",{style:{margin:"0 16px 16px"},children:[e.jsx(fe,{text:y.text,expression:y.expression,style:{margin:0,background:"#0f2b1d",boxShadow:"0 6px 10px rgba(0,0,0,0.45)"}}),e.jsx("div",{style:{width:14,height:14,marginTop:-8,marginLeft:28,transform:"rotate(45deg)",background:"#0f2b1d",borderRight:"1px solid rgba(70,229,161,0.35)",borderBottom:"1px solid rgba(70,229,161,0.35)"}})]}),D(g.length===0?"Unlock jobs with a higher Trust Score":"Unlock more with a higher Trust Score","dashboard_locked_jobs_see_all"),le(F.map(o=>e.jsx(U,{job:o,trustScore:l,teachingApply:J===o.job_id,shimmer:de,onOpen:s=>H(s,J===s.job_id),width:"72%"},o.job_id)))]}),e.jsxs("div",{style:{marginTop:24,opacity:We?.7:1},children:[e.jsx("div",{style:{...O,margin:"0 16px 16px"},children:"Give and collect feedback"}),e.jsxs("div",{style:X,children:[e.jsx(R,{title:"Give feedback",icon:qe,onPress:()=>{h(n,"quick_give_feedback",{}),i("/review/pick")}}),e.jsx(R,{title:"Invite people for feedback",icon:xe,onPress:()=>{h(n,"quick_invite_feedback",{}),i("/invite")}})]}),e.jsx("div",{style:{...O,margin:"24px 16px 16px"},children:"Feedback Management"}),e.jsxs("div",{style:X,children:[e.jsx(R,{title:"Invites for feedback",icon:xe,onPress:()=>{h(n,"invites_for_feedback",{}),i("/invite")}}),e.jsx(R,{title:"Manage your feedback",icon:Me,locked:!!S.manageReviews,onPress:()=>{h(n,"manage_feedback",{locked:!!S.manageReviews}),S.manageReviews||i("/feedback")}})]}),e.jsx("div",{style:{...O,margin:"24px 16px 16px"},children:"Growth"}),e.jsxs("div",{style:X,children:[e.jsx(R,{title:"Your Badge",icon:Xe,iconUrl:(ge=d==null?void 0:d.milestone)==null?void 0:ge.badge_icon_url,onPress:()=>{h(n,"your_badge",{}),i("/badge")}}),e.jsx(R,{title:"Your profile",icon:ue,locked:!!S.yourProfile,onPress:()=>{h(n,"your_profile",{locked:!!S.yourProfile}),S.yourProfile||i("/profile")}}),E>0&&e.jsx(R,{title:"My applications",icon:Qe,badge:G,onPress:()=>{h(n,"my_applications",{count:E,unseen:G}),Y(0),i("/applications")}})]})]})]})});return e.jsxs(e.Fragment,{children:[u?$e:Ae,te&&e.jsx(st,{label:`+${te.change} Trust Score`,emoji:"🎉",delay:500,visibleDuration:5e3,height:40,onPress:()=>oe(null)}),e.jsxs(je,{open:P>0,onClose:()=>L(0),children:[e.jsx("div",{style:{fontSize:44,textAlign:"center"},children:"🎉"}),e.jsx("div",{style:{fontSize:22,textAlign:"center",marginTop:8,fontWeight:800,color:t.text},children:`You unlocked ${P} ${P===1?"job":"jobs"}`}),e.jsx("div",{style:{fontSize:13,lineHeight:"20px",textAlign:"center",margin:"6px 0 14px",fontWeight:500,color:t.darkgrey},children:`Your Trust Score reached ${l}. You can apply to ${P===1?"this job":"these jobs"} now.`}),g.slice(0,3).map(o=>e.jsxs("div",{style:{display:"flex",alignItems:"center",border:"1px solid var(--sk-job-card-open-border)",background:"var(--sk-job-card-open-bg)",borderRadius:12,padding:"10px 12px",marginBottom:8},children:[e.jsx("span",{style:{width:44,height:44,borderRadius:12,background:"var(--sk-job-logo-bg)",display:"grid",placeItems:"center",color:"var(--sk-job-logo-text)",fontSize:22,fontWeight:800},children:(o.company_name||"?")[0].toUpperCase()}),e.jsxs("div",{style:{flex:1,minWidth:0,marginLeft:12},children:[e.jsx("div",{style:{fontSize:14,fontWeight:700,color:t.text,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.title}),e.jsx("div",{style:{fontSize:12,marginTop:2,fontWeight:500,color:t.darkgrey},children:o.company_name})]})]}
3,o.job_id)),e.jsx(B,{title:"Apply now",onPress:()=>re("jobs_unlocked_apply"),style:{marginTop:8}}),e.jsx("button",{type:"button",onClick:()=>L(0),style:{display:"block",margin:"14px auto 0",background:"none",border:0,color:t.text,fontSize:14,fontWeight:500,textDecoration:"underline",cursor:"pointer",fontFamily:t.font},children:"Later"})]}),K&&e.jsx("div",{onClick:()=>I(!1),style:{position:"fixed",inset:0,background:"#ffffff1A",zIndex:1e3}})]})},rt=()=>e.jsx(Oe,{children:e.jsx(nt,{})}),Wt=Pe(rt);export{Wt as default};

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.