PageSourceSearch

https://1000paths.ai/path-app-v2/assets/negotiate-B3mO3v-7.js

js 1000paths.ai collected 2026-10-05 11:46:56 UTC 15,784 bytes, 1 lines download raw bytes

1import{I as f,ag as R,i as P,y as $,r as c,j as e,S as p,E as x,$ as j,s as O,Z as w,a0 as W,a3 as y,O as o,Q as d,W as g,ao as q,ap as Y,al as _,a7 as F,aq as U,a8 as z,Y as D,ar as H}from"./index-CEBZ7Z96.js";import{T as k}from"./target-BhBTdixO.js";import{L as G}from"./lock-xEMIM1JF.js";import{C as V}from"./copy-BZ5KC7_i.js";const Z=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Q=f("arrow-right",Z);const X=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],J=f("dollar-sign",X);const K=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],N=f("shield",K);function S({text:a}){const[r,n]=c.useState(!1);return e.jsxs("div",{className:"mt-3 bg-slate-900 rounded-xl p-4 relative group border border-slate-700",children:[e.jsxs("p",{className:"text-sm text-slate-100 leading-relaxed pr-12 font-mono",children:["“",a,"”"]}),e.jsx("button",{onClick:()=>{navigator.clipboard.writeText(a),n(!0),setTimeout(()=>n(!1),2e3)},className:"absolute top-3 right-3 p-1.5 rounded-lg bg-slate-700 hover:bg-slate-600 text-slate-300 transition-colors",title:"Copy to clipboard",children:r?e.jsx(F,{className:"w-3.5 h-3.5 text-emerald-400"}):e.jsx(V,{className:"w-3.5 h-3.5"})})]})}function ee({title:a,icon:r,script:n}){const[i,h]=c.useState(!1);return e.jsxs("div",{className:"border border-border rounded-xl overflow-hidden",children:[e.jsxs("button",{onClick:()=>h(m=>!m),className:"w-full flex items-center gap-3 p-4 text-left hover:bg-muted/30 transition-colors",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-50 flex items-center justify-center shrink-0 text-blue-600",children:r}),e.jsx("span",{className:"font-medium text-sm flex-1",children:a}),i?e.jsx(U,{className:"w-4 h-4 text-muted-foreground shrink-0"}):e.jsx(z,{className:"w-4 h-4 text-muted-foreground shrink-0"})]}),e.jsx(D,{children:i&&e.jsx(w.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:e.jsx("div",{className:"px-4 pb-4",children:e.jsx(S,{text:n})})})})]})}const v=[{id:"applied",label:"Applied",sub:"Stay quiet on comp"},{id:"interviewing",label:"Interviewing",sub:"Build rapport, gather intel"},{id:"verbal",label:"Verbal Offer",sub:"← Raise comp HERE",highlight:!0},{id:"negotiating",label:"Negotiation Window",sub:"Your leverage peak",active:!0},{id:"written",label:"Written Offer",sub:"Harder to renegotiate"}];function te(){return e.jsx("div",{className:"overflow-x-auto pb-2",children:e.jsx("div",{className:"flex items-start gap-0 min-w-[560px]",children:v.map((a,r)=>e.jsxs("div",{className:"flex items-center flex-1",children:[e.jsxs("div",{className:"flex flex-col items-center flex-1 min-w-0",children:[e.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center border-2 mb-2 shrink-0 ${a.active?"bg-blue-50 border-blue-200 text-white":a.highlight?"bg-emerald-500 border-emerald-500 text-white":"bg-muted border-border text-muted-foreground"}`,children:a.highlight?e.jsx(k,{className:"w-4 h-4"}):a.active?e.jsx(H,{className:"w-4 h-4"}):e.jsx("span",{className:"text-xs font-bold",children:r+1})}),e.jsx("span",{className:`text-xs font-semibold text-center leading-tight ${a.highlight?"text-emerald-700":a.active?"text-blue-600":"text-foreground"}`,children:a.label}),e.jsx("span",{className:`text-xs text-center leading-tight mt-0.5 ${a.highlight?"text-emerald-600 font-medium":"text-muted-foreground"}`,children:a.sub})]}),r<v.length-1&&e.jsx("div",{className:`h-0.5 flex-shrink-0 w-6 mb-6 ${r===1?"bg-emerald-300":"bg-border"}`})]},a.id))})})}function le(){const{id:a}=R(),[,r]=P(),{user:n}=$(),[i,h]=c.useState(null),[m,T]=c.useState(!0),[u,C]=c.useState(null),I=n?.plan==="max"||n?.plan==="admin";if(c.useEffect(()=>{a&&fetch(`/api/opportunity/${a}`,{credentials:"include"}).then(s=>{if(!s.ok)throw new Error("Not found");return s.json()}).then(s=>h(s)).catch(()=>C("Analysis not found")).finally(()=>T(!1))},[a]),m)return e.jsx("div",{className:"flex items-center justify-center py-24",children:e.jsx("div",{className:"w-8 h-8 border-2 border-blue-200 border-t-transparent roun
1ded-full animate-spin"})});if(u||!i)return e.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-6",children:[e.jsx(p,{backLabel:"Back to opportunities",testId:"negotiate-header"}),e.jsx(x,{tag:"Negotiate",headline:u?"We couldn't load this analysis.":"Analysis not found.",helper:u?"Try again in a moment, or head back to your opportunities.":"It may have been removed or never existed.",variant:"error",cta:{label:"Back to opportunities",onClick:()=>r("/moves")},testId:"negotiate-error"})]});const t=i.compensationIntelligence;if(!(i.analysisDepth==="max")||!t)return e.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-8",children:[e.jsx(p,{backLabel:"Back to opportunities",testId:"negotiate-header"}),e.jsx(x,{tag:"Negotiate",headline:"Negotiation Suite is on 1000paths Max.",helper:"This analysis was run without Max. Re-analyze on Max to get your personalized negotiation suite.",variant:"notice",cta:{label:"Upgrade to Max",onClick:()=>r("/pricing")},secondary:{label:"Back to analysis",onClick:()=>r(`/opportunity/${a}`)},testId:"negotiate-needs-max"})]});const A=t.confidence==="high"?"Market data matched (LCA + BLS)":t.confidence==="medium"?"BLS benchmark only — calibrated by signals":"No benchmark — estimated from signals",M=t.confidence==="high"?"bg-emerald-50 text-emerald-700 border-emerald-200":t.confidence==="medium"?"bg-amber-50 text-amber-700 border-amber-200":"bg-gray-50 text-gray-600 border-gray-200",L=[{id:"theyNameFirst",title:"They name a number first",icon:e.jsx(j,{className:"w-4 h-4"}),script:t.whatToSayScenarios?.theyNameFirst??`"Thank you — I appreciate you sharing that. I want to make sure we land on something that reflects the scope of this role and the value I'd bring. Can you share the full budgeted range? That would help me understand the opportunity."`},{id:"theyAskYourSalary",title:"They ask your current salary or expectations",icon:e.jsx(k,{className:"w-4 h-4"}),script:t.whatToSayScenarios?.theyAskYourSalary??`"I'd rather focus on what this role warrants based on the scope and responsibilities — and what the market looks like for someone at this level. What's the budgeted range for the position?"`},{id:"theyPushBack",title:"They push back on your counter",icon:e.jsx(N,{className:"w-4 h-4"}),script:t.whatToSayScenarios?.theyPushBack??`"I understand there are constraints. I want to make this work — could we look at total compensation? Whether that's a signing bonus, equity refresh, or other elements, I want to make sure we're solving this together."`},{id:"theyFirmOffer",title:'They say "the offer is firm"',icon:e.jsx(O,{className:"w-4 h-4"}),script:t.whatToSayScenarios?.theyFirmOffer??`"I hear you. I genuinely want to join — and I want to start the relationship right. Even if base is fixed, is there any flexibility on the signing bonus or equity? I'd like to find a path forward that works for both of us."`}];return e.jsxs(w.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"max-w-2xl mx-auto px-4 py-6 space-y-6",children:[e.jsx(p,{backLabel:"Back to opportunities",testId:"negotiate-header"}),e.jsx("div",{className:"flex items-start justify-between gap-3",children:e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"flex items-center gap-2 mb-0.5",children:e.jsxs(W,{variant:"outline",className:"gap-1 text-blue-600 border-blue-200 bg-blue-50 text-xs font-bold",children:[e.jsx(y,{className:"w-3 h-3"})," MAX"]})}),e.jsx("h1",{className:"text-xl font-bold text-foreground truncate",children:"Negotiation Suite"}),(i.jobTitle||i.jobCompany)&&e.jsxs("p",{className:"text-sm text-muted-foreground truncate",children:[i.jobTitle,i.jobTitle&&i.jobCompany?" · ":"",i.jobCompany]})]})}),!I&&e.jsx(o,{className:"border-blue-200 bg-blue-50/60 rounded-2xl",children:e.jsxs(d,{className:"p-5 flex items-start gap-3",children:[e.jsx(G,{className:"w-5 h-5 text-blue-600 mt-0.5 shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-blue-600 mb-1",children:"You're viewing a 1000paths Max analysis"}),e.jsx("p",{className:"text-xs text-blue-600 mb-3",children:"This negotiation suite was generated on a 1000paths Ma
1x account. Upgrade to run new analyses and get the full suite for every role."}),e.jsxs(g,{size:"sm",onClick:()=>r("/pricing"),className:"bg-blue-50 hover:bg-blue-50 text-white gap-1.5",children:[e.jsx(y,{className:"w-3.5 h-3.5"})," Upgrade to 1000paths Max"]})]})]})}),e.jsx(o,{className:"rounded-2xl border-blue-200",children:e.jsxs(d,{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4 gap-3",children:[e.jsxs("h2",{className:"text-base font-bold flex items-center gap-2",children:[e.jsx(J,{className:"w-5 h-5 text-blue-600 shrink-0"}),"Market Position"]}),t.confidence&&e.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold border shrink-0 ${M}`,children:A})]}),t.marketRangeEstimate&&e.jsxs("div",{className:"mb-4 p-4 bg-gradient-to-br from-blue-600 to-blue-700 rounded-xl text-white",children:[e.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-blue-600 mb-1.5",children:"Your Target Range"}),e.jsx("div",{className:"text-xl font-black leading-tight",children:t.marketRangeEstimate})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground font-medium mb-2 uppercase tracking-wide",children:"Market Percentile Reference"}),e.jsxs("div",{className:"relative h-8 bg-muted rounded-full overflow-hidden",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 bg-gradient-to-r from-muted-foreground/20 via-blue-200 to-blue-700 rounded-full",style:{width:"90%"}}),e.jsxs("div",{className:"absolute inset-y-0 flex items-center w-full px-3 justify-between pointer-events-none",children:[e.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:"p25"}),e.jsx("span",{className:"text-xs font-semibold text-blue-600",children:"p50"}),e.jsx("span",{className:"text-xs font-semibold text-blue-600",children:"p75"}),e.jsx("span",{className:"text-xs font-semibold text-blue-600",children:"p90"})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1.5 italic",children:"Anchor your ask at or above the 75th percentile — the p50 is the floor, not the target."})]}),t.dataSignals&&t.dataSignals.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground font-medium mb-2 uppercase tracking-wide",children:"Data Sources Used"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.dataSignals.map((s,l)=>e.jsx("span",{className:"text-xs px-2 py-0.5 bg-blue-50 text-blue-600 border border-blue-200 rounded-full",children:s},l))})]}),t.methodologyAttribution&&e.jsx("p",{className:"text-xs text-muted-foreground/70 italic mt-4 pt-3 border-t border-border/60 leading-relaxed",children:t.methodologyAttribution})]})}),e.jsx(o,{className:"rounded-2xl",children:e.jsxs(d,{className:"p-6",children:[e.jsxs("h2",{className:"text-base font-bold flex items-center gap-2 mb-4",children:[e.jsx(N,{className:"w-5 h-5 text-blue-600 shrink-0"}),"Your Leverage Dossier"]}),t.candidateLeverage&&t.candidateLeverage.length>0?e.jsx("div",{className:"space-y-3",children:t.candidateLeverage.map((s,l)=>{const[B,...E]=s.split(" — "),b=E.join(" — ");return e.jsx("div",{className:"border border-border rounded-xl p-4 bg-card hover:border-blue-200 transition-colors",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-50 text-blue-600 text-xs font-bold flex items-center justify-center shrink-0 mt-0.5",children:l+1}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-foreground leading-snug",children:b?B:s}),b&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:b})]})]})},l)})}):e.jsx(x,{compact:!0,tag:"§ No leverage points",headline:"This analysis didn't surface leverage points.",helper:"Re-run the negotiation analysis if the role or comp band changed.",testId:"empty-leverage-points"})]})}),e.jsx(o,{className:"rounded-2xl",children:e.jsxs(d,{className:"p-6",children:[e.jsxs("h2",{className:"text-base font-bold flex items-center gap-2 mb-4",children:[e.jsx(q,{className:"w-5 h-5 text-blue-600 shrink-0"}),"Negotiation Playbook"]}),t.playbookSteps&&t.playbookSteps.length>0?e.jsx("div",{className:"space-y-4",children:t.playbookSteps.map(s=>e.jsxs("div",{className:"border border-border rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 bg-muted/30 border-b border-border",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-blue-50 text-white text-xs font-bold flex items-center justify-center shrink-0",children:s.step}),e.jsx("span",{className:"font-semibold text-sm",children:s.title})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-1",children:s.action}),s.sayThis&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-xs text-muted-foreground font-semibold uppercase tracking-wide mt-3 mb-1",children:"Say this:"}),e.jsx(S,{text:s.sayThis})]})]})]},s.step))}):t.negotiationPlaybook?e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-foreground leading-relaxed",children:t.negotiationPlaybook}),t.whatNotToSay&&t.whatNotToSay.length>0&&e.jsxs("div",{className:"mt-4 pt-4 border-t border-border",children:[e.jsx("div",{className:"text-xs text-red-600 font-semibold uppercase tracking-wide mb-2",children:"What NOT to say"}),e.jsx("ul",{className:"space-y-1.5",children:t.whatNotToSay.map((s,l)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-red-800",children:[e.jsx("span",{className:"w-4 h-4 rounded-full bg-red-100 text-red-600 text-xs font-bold flex items-center justify-center shrink-0 mt-0.5",children:"✕"}),s]},l))})]})]}):e.jsx(x,{compact:!0,tag:"§ No playbook",headline:"This analysis didn't generate a playbook.",helper:"Re-run the negotiation analysis if the role or comp band changed.",testId:"empty-negotiation-
1playbook"})]})}),e.jsx(o,{className:"rounded-2xl",children:e.jsxs(d,{className:"p-6",children:[e.jsxs("h2",{className:"text-base font-bold flex items-center gap-2 mb-4",children:[e.jsx(j,{className:"w-5 h-5 text-blue-600 shrink-0"}),"What to Say When..."]}),e.jsx("div",{className:"space-y-3",children:L.map(s=>e.jsx(ee,{title:s.title,icon:s.icon,script:s.script},s.id))})]})}),e.jsx(o,{className:"rounded-2xl",children:e.jsxs(d,{className:"p-6",children:[e.jsxs("h2",{className:"text-base font-bold flex items-center gap-2 mb-4",children:[e.jsx(Y,{className:"w-5 h-5 text-blue-600 shrink-0"}),"Timing Tracker"]}),e.jsx(te,{}),t.timingAdvice&&e.jsxs("div",{className:"mt-4 pt-4 border-t border-border",children:[e.jsx("div",{className:"text-xs text-muted-foreground font-semibold uppercase tracking-wide mb-2",children:"For This Role Specifically"}),e.jsx("p",{className:"text-sm text-foreground leading-relaxed",children:t.timingAdvice})]})]})}),e.jsxs("div",{className:"flex gap-3 pb-8",children:[e.jsxs(g,{variant:"ghost",onClick:()=>r(`/opportunity/${a}`),className:"gap-2",children:[e.jsx(_,{className:"w-4 h-4"})," Back to Analysis"]}),e.jsxs(g,{onClick:()=>r("/resume-tailor"),className:"flex-1 gap-2",children:["Tailor Resume ",e.jsx(Q,{className:"w-4 h-4"})]})]})]})}export{le 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.