PageSourceSearch

https://www.resumefreepro.com/assets/extension-connect-screen-xtboUWjF.js

js resumefreepro.com collected 2026-10-01 23:46:06 UTC 9,343 bytes, 1 lines download raw bytes

1import{j as e}from"./animation-vendor-DM9NoQ8i.js";import{r as c}from"./redux-vendor-D-J5X8g1.js";import{d as k,R as y}from"./routes-C9XFjxRc.js";import{L as N}from"./logo-DpLHEgWh.js";import{u as F,C as E}from"./editor-thCL1Uub.js";import{S as C,M as S}from"./auth-modal-rsQ65lP1.js";import{a as x,d as I,f as R}from"./use-auth-listener-DmdI3kCz.js";import{f as L,k as T}from"./index-DKkw8J_7.js";import{trackEvent as B}from"./analytics-B5bovHSi.js";import{f as O,y as b,U as W,n as w,q as D,F as M,z as P}from"./icons-vendor-D9UUiJ3N.js";import"./className-eRD5igEx.js";import"./utils-vendor-v3JLwDjO.js";import"./index-ldQP_Rvc.js";import"./button-QUcm8SfM.js";import"./dialog-BHMTmEym.js";import"./contact-modal-rVijDz-4.js";import"./firebase-vendor-BqpthRBP.js";import"./firebase-config-JWmoEzIa.js";import"./api-services-DU1tQrP6.js";import"./alertify-services-BBsku4al.js";import"./device-detect-Dab6wIyq.js";import"./analytics-vendor-Z1tTTUF2.js";import"./editor-vendor-BDHtE-4n.js";import"./templates-iBcA2cnB.js";import"./use-import-gate-5UA8Wxyg.js";import"./pricing-data-DxxV_0QL.js";import"./api-constants-7I-_EE0T.js";import"./use-quota-wall-DF-JxTvm.js";import"./pdf-upload-modal-NEiEM8Cj.js";import"./linkedin-import-modal-CsTGh_2c.js";import"./use-mobile-detection-M--V_cSR.js";import"./sentry-vendor-DMXgzOuK.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="0687045b-2fcd-41a5-8376-fab941fd8545",t._sentryDebugIdIdentifier="sentry-dbid-0687045b-2fcd-41a5-8376-fab941fd8545")}catch{}const U=()=>{var t;return(t=window.chrome)==null?void 0:t.runtime},A=[{icon:e.jsx(D,{className:"h-[18px] w-[18px]"}),text:"1-click cold emails on LinkedIn hiring posts"},{icon:e.jsx(M,{className:"h-[18px] w-[18px]"}),text:"Written from your real resume — attached automatically"},{icon:e.jsx(P,{className:"h-[18px] w-[18px]"}),text:"Notice period and details filled in for you"}],z=c.memo(()=>{const[,t]=k(),a=x(L),o=x(T),h=x(s=>{var i;return(i=s.auth_store.user)==null?void 0:i.email}),[r,n]=c.useState("checking"),l=c.useRef(!1),u=c.useRef(!1);c.useEffect(()=>{o||u.current||(u.current=!0,B("ext_connect_page_viewed",{source:new URLSearchParams(window.location.search).get("source")||"direct",is_authenticated:a,surface:"website"}))},[o,a]);const m=c.useCallback(async()=>{n("connecting");const s=U();if(!(s!=null&&s.sendMessage)){n("no_extension");return}let i=null;try{i=await I(!0)}catch{i=null}if(!i){n("error");return}s.sendMessage(F,{type:"RFP_CONNECT",idToken:i},p=>{if(s.lastError||!p){n("no_extension");return}if(!p.ok){n("error");return}R(1,1).then(d=>{var g,j;const v=((j=(g=d==null?void 0:d.data)==null?void 0:g.pagination)==null?void 0:j.total)??1;n(v>0?"connected":"no_resume")}).catch(()=>{n("connected")})})},[]);c.useEffect(()=>{if(!o){if(!a){l.current=!1,n("login");return}l.current||(l.current=!0,m())}},[o,a,m]);const f=()=>{l.current=!0,m()},_=e.jsxs("div",{className:"flex items-center justify-center gap-2.5",children:[e.jsx(N,{className:"h-9 w-9"}),e.jsxs("span",{className:"text-[19px]",style:{fontFamily:"'Bricolage Grotesque', sans-serif",fontWeight:700},children:[e.jsx("span",{className:"text-gray-900",children:"ResumeFree"}),e.jsx("span",{style:{color:"#FF6B6B"},children:"Pro"})]})]});return r==="login"?e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50 p-4",children:e.jsxs("div",{className:"w-full max-w-[880px] overflow-hidden rounded-2xl bg-white shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_12px_32px_rgba(0,0,0,0.08)] md:flex",children:[e.jsxs("div",{className:"flex flex-col justify-center gap-6 bg-[#FFF6F5] p-8 md:w-[46%] md:p-10",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(N,{className:"h-9 w-9"}),e.jsxs("span",{className:"text-[19px]",style:{fontFamily:"'Bricolage Grotesque', sans-serif",fontWeight:700},children:[e.jsx("span",{className:"text-gray-900",children:"ResumeFree"}),e.jsx("span",{style:{color:"#FF6B6B"},children:"Pro"})]})]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Connect your LinkedIn extension"}),e.jsx("p",{className:"mt-1.5 text-sm text-gray-500",children:"One login unlocks everything — on the website and inside the extension."})]}),e.jsx("div",{className:"space-y-4",children:A.map(s=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg bg-white text-[#FF6B6B] shadow-sm",children:s.icon}),e.jsx("span",{className:"text-sm text-gray-700",children:s.text})]},s.text))})]}),e.jsxs("div",{className:"flex flex-col justify-center p-8 md:w-[54%] md:p-10",children:[e.jsxs("div",{className:"mb-6 text-center",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Log in to connect"}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"New here? The same form creates your account."})]}),e.jsx(C,{authSource:"extension_connect"}),e.jsxs("div",{className:"relative my-6",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-gray-200"})}),e.jsx("div",{className:"relative flex justify-center",children:e.jsx("span",{className:"bg-white px-3 text-xs font-medium uppercase tracking-wide text-gray-400",children:"or continue with email"})})]}),e.jsx(S,{authSource:"extension_connect",continuePath:y.EXTENSION_CONNECT})]})]})}):e.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-gray-50 p-4",children:e.jsxs("div",{className:"flex w-full max-w-[420px] flex-col items-center gap-6 rounded-2xl bg-white px-8 py-12 text-center shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_12px_32px_rgba(0,0,0,0.08)]",children:[_,(r==="checking"||r==="connecting")&&e.jsxs(e.Fragment,{children:[e.jsx(O,{className:"h-8 w-8 animate-spin text-[#FF6B6B]"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:r==="checking"?"Checking your session…":"Connecting your extension…"}),r==="connecting"&&h&&e.jsxs("p",{className:"mt-1 text-sm text-gray-500",children:["Signed in as ",h]})]})]}),r==="connected"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-emerald-50",children:e.jsx(b,{className:"text-emerald-600",size:30,strokeWidth:1.5})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:"Extension connected!"}),e.jsx("p",{className:"mt-1.5 text-sm text-gray-500",children:"Continue in the extension tab to finish setup. You can close this page."})]})]}),r==="no_resume"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-emerald-50",children:e.jsx(b,{className:"text-emerald-600",size:30,strokeWidth:1.5})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:"Connected! Now add your resume"}),e.jsxs("p",{className:"mt-1.5 text-sm text-gray-500",children:["Your cold emails are written"," ",e.jsx("span",{className:"font-medium text-gray-700",children:"from your resume"})," ","— import it to get started."]})]}),e.jsxs("button",{onClick:()=>t(y.DOCUMENTS),className:"flex h-11 w-full items-center justify-center gap-2 rounded-lg bg-primary text-sm font-medium text-white transition-all duration-150 hover:bg-primary/90",children:[e.jsx(W,{className:"h-4 w-4"}),"Import or build your resume"]}),e.jsx("p",{className:"text-xs text-gray-400",children:"Import a PDF, import from LinkedIn, or build from scratch — then return to the extension tab."})]}),r==="no_extension"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-amber-50",children:e.jsx(w,{className:"text-amber-600",
1size:28,strokeWidth:1.5})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:"Extension not installed"}),e.jsx("p",{className:"mt-1.5 text-sm text-gray-500",children:"Install the ResumeFreePro extension for LinkedIn first, then reopen this page."})]}),e.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"flex h-11 w-full items-center justify-center rounded-lg bg-gray-900 text-sm font-medium text-white transition-all duration-150 hover:bg-gray-800",children:"Get it on the Chrome Web Store"}),e.jsx("button",{onClick:f,className:"text-sm font-medium text-gray-500 hover:text-gray-700",children:"I've installed it — retry"})]}),r==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-amber-50",children:e.jsx(w,{className:"text-amber-600",size:28,strokeWidth:1.5})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:"Couldn't connect"}),e.jsx("p",{className:"mt-1.5 text-sm text-gray-500",children:"Something went wrong while linking your account."})]}),e.jsx("button",{onClick:f,className:"flex h-11 w-full items-center justify-center rounded-lg bg-primary text-sm font-medium text-white transition-all duration-150 hover:bg-primary/90",children:"Try again"})]})]})})});z.displayName="ExtensionConnectScreen";export{z 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.