1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6319],{76319:function(e,t,o){o.r(t),o.d(t,{default:function(){return J}});var n=o(85893),a=o(67294),s=o(11163),r=o(33299),l=o(86501),i=o(42949),c=o(26460),d=o(6304),u=o(3192),p=o(33058),x=o(63759);let m=(0,x.Z)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),h=(0,x.Z)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);var y=o(62190),b=o(7656);let f=(0,x.Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);var g=o(45544);let v=(0,x.Z)("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var j=o(22954),k=o(86691),w=o(60641),C=o(79613),N=o(2553),S=o(18289);let T=(0,x.Z)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var B=o(43765),F=o(23603),D=o(12779),M=o(37864);let P=(0,x.Z)("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]);var E=o(72278),A=o(71707),O=o(74598),Z=o(67694),L=o(34155);let I="tr_autoapply_fab_pos_v2",R="tr_autoapply_tab",q="tr_autoapply_history_v1";function z(e){try{localStorage.setItem(q,JSON.stringify(e.slice(0,25)))}catch(e){}}function U(e,t,o){return Math.max(t,Math.min(e,o))}function H(e,t){let o=document.elementFromPoint(e,t);return o?o.closest('[data-job-card="true"], [data-job-url]'):null}function J(){let e=(0,s.useRouter)(),{data:t,status:o}=(0,r.useSession)(),{theme:d,mounted:x}=(0,Z.F)(),j="authenticated"===o,k=(0,a.useMemo)(()=>"dark"===d?{panelBg:"#1A1A1B",panelBorder:"#343536",panelText:"#D7DADC",panelTextMuted:"#8C8C8C",panelTextStrong:"#FFFFFF",surface:"#272729",surfaceHover:"#343536",divider:"#343536",tabBg:"#1A1A1B",tabActiveBg:"#272729",inputBg:"#0F0F0F",inputBorder:"#343536",accent:"#FF4500",accentContrast:"#FFFFFF",userBubble:"#FF4500",userBubbleText:"#FFFFFF",assistantBubble:"#272729",assistantBubbleText:"#EAEAEA",errorBg:"#2A0F0F",errorBorder:"#7F1D1D",errorText:"#FCA5A5",successBg:"#0A2A18",successBorder:"#14532D",successText:"#A7F3D0",askBg:"#2A240A",askBorder:"#78350F",askText:"#FDE68A"}:{panelBg:"#FFFFFF",panelBorder:"#E5E7EB",panelText:"#1F2937",panelTextMuted:"#6B7280",panelTextStrong:"#111827",surface:"#F9FAFB",surfaceHover:"#F3F4F6",divider:"#E5E7EB",tabBg:"#F9FAFB",tabActiveBg:"#FFFFFF",inputBg:"#FFFFFF",inputBorder:"#D1D5DB",accent:"#FF4500",accentContrast:"#FFFFFF",userBubble:"#FF4500",userBubbleText:"#FFFFFF",assistantBubble:"#F3F4F6",assistantBubbleText:"#111827",errorBg:"#FEF2F2",errorBorder:"#FECACA",errorText:"#991B1B",successBg:"#ECFDF5",successBorder:"#A7F3D0",successText:"#065F46",askBg:"#FFFBEB",askBorder:"#FDE68A",askText:"#92400E"},[d]),[w,C]=(0,a.useState)(!1),[N,S]=(0,a.useState)(!1),[T,B]=(0,a.useState)(!1),[F,D]=(0,a.useState)("chat"),[M,P]=(0,a.useState)({x:0,y:0}),E=(0,a.useRef)({isDragging:!1,x:0,y:0,startX:0,startY:0,hasMoved:!1}),[A,O]=(0,a.useState)(!1),[L,J]=(0,a.useState)(null),[Q,$]=(0,a.useState)([]),[ee,et]=(0,a.useState)(""),[eo,en]=(0,a.useState)(!1),[ea,es]=(0,a.useState)(null),[er,el]=(0,a.useState)([]),[ei,ec]=(0,a.useState)(null),[ed,eu]=(0,a.useState)(null),[ep,ex]=(0,a.useState)(null),[em,eh]=(0,a.useState)(0),[ey,eb]=(0,a.useState)(null),[ef,eg]=(0,a.useState)(null),[ev,ej]=(0,a.useState)(!1),[ek,ew]=(0,a.useState)(!1),[eC,eN]=(0,a.useState)([]),[eS,eT]=(0,a.useState)(!1);(0,a.useEffect)(()=>{C(!0),P(function(){try{let e=localStorage.getItem(I);if(e){let t=JSON.parse(e);if("number"==typeof t.x&&"number"==typeof t.y)return t}}catch(e){}return{x:24,y:Math.max(100,window.innerHeight-96)}}()),eN(function(){try{let e=localStorage.getItem(q);return e?JSON.parse(e):[]}catch(e){return[]}}());let e=localStorage.getItem(R);("chat"===e||"profile"===e||"history"===e||"settings"===e)&&D(e)},[]),(0,a.useEffect)(()=>{try{localStorage.setItem(R,F)}catch(e){}},[F]),(0,a.useEffect)(()=>{j&&N&&!ef&&!ev&&(ej(!0),fetch("/api/auto-apply/qa-profile",{credentials:"include"}).then(e=>e.json()).then(e=>{(null==e?void 0:e.profile)&&eg(e.profile)}).catch(()=>{}).finally(()=>ej(!1)))},[j,N,ef,ev]),(0,a.useEffect)(()=>{let e="tr-drop-target-active";if(A){if(!document.getElementById("tr-drop-target-style")){let t=document.createElement("style");t.id="tr-drop-target-style",t.textContent="\n .".concat(e," { outline: 2px dashed #F
1F4500 !important; outline-offset: 2px !important; box-shadow: 0 0 0 4px rgba(255,69,0,0.12) !important; transition: box-shadow 0.15s ease !important; }\n .").concat(e,"-hover { outline: 3px solid #FF4500 !important; background-color: rgba(255,69,0,0.08) !important; }\n "),document.head.appendChild(t)}let t=Array.from(document.querySelectorAll('[data-job-card="true"], [data-job-url]'));return t.forEach(t=>t.classList.add(e)),()=>t.forEach(t=>t.classList.remove(e))}},[A]);let eB=(0,a.useCallback)(e=>{e.currentTarget.setPointerCapture(e.pointerId),E.current={isDragging:!0,x:M.x,y:M.y,startX:e.clientX,startY:e.clientY,hasMoved:!1},O(!0)},[M.x,M.y]),eF=(0,a.useCallback)(e=>{let t=E.current;if(!t.isDragging)return;let o=e.clientX-t.startX,n=e.clientY-t.startY;if(!t.hasMoved&&Math.hypot(o,n)>4&&(t.hasMoved=!0),t.hasMoved){P({x:U(t.x+o,8,window.innerWidth-72),y:U(t.y+n,8,window.innerHeight-72)});let a=e.currentTarget,s=a.style.pointerEvents;a.style.pointerEvents="none";let r=H(e.clientX,e.clientY);a.style.pointerEvents=s,J(e=>e===r?e:(e&&e.classList.remove("tr-drop-target-active-hover"),r&&r.classList.add("tr-drop-target-active-hover"),r))}},[]),eD=(0,a.useCallback)(e=>{let t=E.current;if(E.current={...t,isDragging:!1},O(!1),L&&L.classList.remove("tr-drop-target-active-hover"),!t.hasMoved){eM(),J(null);return}let o=e.currentTarget,n=o.style.pointerEvents;o.style.pointerEvents="none";let a=H(e.clientX,e.clientY);o.style.pointerEvents=n,function(e){try{localStorage.setItem(I,JSON.stringify(e))}catch(e){}}({x:M.x,y:M.y}),a?eE(a):null!==document.querySelector('[data-job-card="true"], [data-job-url]')?(0,l.default)("Missed the card â drop me directly on a job listing to load it.",{icon:(0,i.q)("target"),duration:3500}):eA(),J(null)},[M.x,M.y,L]),eM=(0,a.useCallback)(()=>{if("loading"===o){(0,l.default)("Checking your session...");return}if(!j){(0,l.default)("Sign in to use the auto-apply assistant.",{icon:(0,i.q)("lock")}),e.push("/login");return}S(e=>!e),B(!1)},[j,o,e]),eP=e=>$(t=>[...t,{...e,id:"".concat(Date.now(),"-").concat(Math.random())}]),eE=e=>{var t,o,n;if(!j){l.default.error("Please sign in first.");return}let a=e.getAttribute("data-job-title")||(null===(o=e.querySelector('h2,h3,[class*="title"]'))||void 0===o?void 0:null===(t=o.textContent)||void 0===t?void 0:t.trim())||"",s=e.getAttribute("data-job-company")||"",r=e.getAttribute("data-job-url")||"";if(!a&&!r){l.default.error("This card is missing job metadata â try opening the job detail page.");return}let i={title:a,company:s,applyUrl:r,description:(null===(n=e.innerText)||void 0===n?void 0:n.slice(0,2e3))||"",source:"job-card",confidence:.98};es(i),eu(null),ex(null),eh(1),eO({id:"".concat(Date.now()),at:new Date().toISOString(),job:i,actions:[{kind:"scrape",at:new Date().toISOString(),ok:!0}]}),S(!0),D("chat"),$([]),eP({role:"assistant",text:"I found this job:",kind:"job-preview",data:i}),eL(i)},eA=async()=>{if(!j){l.default.error("Please sign in first.");return}S(!0),D("chat"),$([]),eu(null),ex(null),eh(1),eP({role:"assistant",text:"Scanning this page for a job postingâ¦",kind:"status"});let e=window.location.href,t=document.documentElement.outerHTML.slice(0,5e5);try{en(!0);let o=await fetch("/api/auto-apply/scrape-page",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,html:t})}),n=await o.json(),a=null==n?void 0:n.job;if(!a||!a.description||a.description.length<100||a.confidence<.4){eP({role:"assistant",kind:"error",text:"I couldn't confidently extract a job posting from this page. Paste the JD in the chat below and I'll take it from there."});return}es(a),eO({id:"".concat(Date.now()),at:new Date().toISOString(),job:a,actions:[{kind:"scrape",at:new Date().toISOString(),ok:!0}]}),eP({role:"assistant",text:"Got it â ".concat(a.title).concat(a.company?" @ "+a.company:""," (source: ").concat(a.source,", confidence ").concat((100*a.confidence).toFixed(0),"%)."),kind:"job-preview",data:a}),eL(a)}catch(e){eP({role:"assistant",kind:"error",text:"Scrape failed: ".concat((null==e?void 0:e.message)||"unknown error")})}finally{en(!1)}},eO=e=>{eN(t=>{let o=[e,...t].slice(0,25);return z(o),o})},eZ=(e,t)=>{eN(o=>{let n=o.map(o=>o.id===e?{...o,actions:[...o.actions,t]}:o);return z(n),n})},eL=async e=>{eh(2);try{en(!0);let e=await fetch("/api/auto-apply/answer-questions",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({questions:[{id:"work-auth",label:"Are you legally authorized to work in the US?"},{id:"sponsorship",label:"Will you now or in the future require sponsorship?"},{id:"relocation",label:"Are you willing to relocate?"},{id:"salary",label:"What is your salary expectation?"},{id:"notice",label:"What is your notice period (in days)?"},{id:"start",label:"What is your earliest start date?"}]})}
1),t=await e.json(),o=Array.isArray(null==t?void 0:t.results)?t.results:[],n=o.filter(e=>!e.needsHuman&&e.answer),a=o.filter(e=>e.needsHuman);n.length&&eP({role:"assistant",kind:"success",text:"I already know the answer to ".concat(n.length," of the common questions:\n")+n.map(e=>" ⢠".concat(e.label," â ").concat(e.answer)).join("\n")}),a.length?(eP({role:"assistant",kind:"ask-question",text:"I need your help with ".concat(a.length," question").concat(a.length>1?"s":"",". I'll remember your answers for next time.")}),el(a),ec(a[0])):eP({role:"assistant",kind:"success",text:'All set â I have every answer I need. Click "Tailor Resume" to continue.'})}catch(e){eP({role:"assistant",kind:"error",text:"Prep failed: ".concat((null==e?void 0:e.message)||"unknown error")})}finally{en(!1)}},eI=async()=>{if(ea&&!eo){en(!0),eh(3),eP({role:"assistant",kind:"status",text:'Tailoring your resume for "'.concat(ea.title,'"â¦')});try{var e,t,o;let n=await fetch("/api/ai/generate-resume-from-jd",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobDescription:ea.description,forceNewGeneration:!1})}),a=await n.json();if(!n.ok||!(null==a?void 0:a.success)){if(402===n.status)throw Error("You have hit your resume generation limit. Please upgrade or wait for reset.");throw Error((null==a?void 0:a.error)||(null==a?void 0:a.userMessage)||"Resume tailoring failed")}es(e=>e?{...e,matchScore:a.matchScore}:e),eu({resume:a.resume,matchScore:a.matchScore}),eh(4),eZ((null===(e=eC[0])||void 0===e?void 0:e.id)||"",{kind:"tailor",at:new Date().toISOString(),ok:!0}),eP({role:"assistant",kind:"resume-ready",text:"Resume tailored".concat("number"==typeof a.matchScore?" â match score ".concat(Math.round(a.matchScore),"%"):"",'. Click "View & Edit" to open the editor (step 4, already populated â not a new wizard).'),data:{resumeId:(null===(t=a.resume)||void 0===t?void 0:t._id)||(null===(o=a.resume)||void 0===o?void 0:o.id)}})}catch(e){eP({role:"assistant",kind:"error",text:"Tailoring failed: ".concat(null==e?void 0:e.message)}),eh(2)}finally{en(!1)}}},eR=async()=>{if(ea&&!eo){en(!0),eP({role:"assistant",kind:"status",text:'Drafting a cover letter for "'.concat(ea.title,'"â¦')});try{var e;let t=await fetch("/api/ai/generate-cover-letter",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobDescription:ea.description,companyName:ea.company,jobTitle:ea.title})}),o=await t.json();if(!t.ok||!(null==o?void 0:o.success))throw Error((null==o?void 0:o.error)||"Cover letter generation failed");ex(String(o.coverLetter||"")),eP({role:"assistant",kind:"cover-letter-ready",text:"Cover letter ready.\n\n".concat(String(o.coverLetter||"").slice(0,1200)).concat(String(o.coverLetter||"").length>1200?"â¦":""),data:{coverLetter:o.coverLetter}}),eZ((null===(e=eC[0])||void 0===e?void 0:e.id)||"",{kind:"cover-letter",at:new Date().toISOString(),ok:!0})}catch(e){eP({role:"assistant",kind:"error",text:"Cover letter generation failed: ".concat(null==e?void 0:e.message)})}finally{en(!1)}}},eq=async()=>{if(null==ea?void 0:ea.description)try{await navigator.clipboard.writeText(ea.description),l.default.success("JD copied")}catch(e){}},ez=async()=>{let e=ee.trim();if(!e)return;if(et(""),eP({role:"user",text:e}),ei){try{en(!0),await fetch("/api/auto-apply/qa-profile",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:ei.label,answer:e})}),eP({role:"assistant",kind:"success",text:"Saved. I'll use \"".concat(e,'" next time I see this question.')});let t=er.filter(e=>e.id!==ei.id);el(t),ec(t[0]||null),0===t.length&&ea&&eP({role:"assistant",kind:"success",text:"Great â I have everything. Use the quick actions to tailor resume / generate cover letter."})}catch(e){eP({role:"assistant",kind:"error",text:"Couldn't save your answer: ".concat(null==e?void 0:e.message)})}finally{en(!1)}return}if(e.length>300&&!ea){let t={title:"Pasted JD",company:"",description:e,confidence:.7,source:"text"};es(t),eO({id:"".concat(Date.now()),at:new Date().toISOString(),job:t,actions:[{kind:"scrape",at:new Date().toISOString(),ok:!0}]}),eP({role:"assistant",text:"Treating your message as a JD. Let me check which questions I already have answers forâ¦"}),eL(t);return}let t="rag-".concat(Date.now());try{var o;en(!0),$(e=>[...e,{id:t,role:"assistant",text:"",kind:"success"}]),await (0,c.y)({message:e,sessionId:ey,jobContext:ea?{title:ea.title,companyName:ea.
1company,description:null===(o=ea.description)||void 0===o?void 0:o.slice(0,12e3)}:void 0},{onToken:e=>{$(o=>o.map(o=>o.id===t?{...o,text:o.text+(e.delta||"")}:o))},onMeta:e=>{$(o=>o.map(o=>o.id===t?{...o,data:{citations:e.citations,intent:e.intent}}:o))},onDone:e=>{e.sessionId&&eb(e.sessionId),$(o=>o.map(o=>o.id===t?{...o,text:e.reply||o.text,data:{citations:e.citations,intent:e.intent}}:o))},onError:e=>{$(o=>o.map(o=>o.id===t?{...o,kind:"error",text:e}:o))}})}catch(e){$(o=>{let n=o.find(e=>e.id===t);return(null==n?void 0:n.text)?o:[...o.filter(e=>e.id!==t),{role:"assistant",kind:"error",text:(null==e?void 0:e.message)||"Career AI is unavailable. Try again or use the quick actions above."}]})}finally{en(!1)}},eU=async e=>{ew(!0);try{let t=await fetch("/api/auto-apply/qa-profile",{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({commonAnswers:{...(null==ef?void 0:ef.commonAnswers)||{},...e}})}),o=await t.json();(null==o?void 0:o.profile)&&eg(o.profile)}finally{ew(!1)}},eH=async e=>{ew(!0);try{let t=await fetch("/api/auto-apply/qa-profile",{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await t.json();(null==o?void 0:o.profile)&&eg(o.profile)}finally{ew(!1)}},eJ=async e=>{ew(!0);try{await fetch("/api/auto-apply/qa-profile?normalizedQuestion=".concat(encodeURIComponent(e)),{method:"DELETE",credentials:"include"}),eg(t=>({...t,customAnswers:((null==t?void 0:t.customAnswers)||[]).filter(t=>t.normalizedQuestion!==e)}))}finally{ew(!1)}},[e_,eW]=(0,a.useState)("idle"),[eY,eQ]=(0,a.useState)(null),[eV,eX]=(0,a.useState)(null),eG=async()=>{eQ(null),eX(null),eW("checking"),eT(!0);try{let e=await fetch("/api/auto-apply/download-extension?meta=1",{credentials:"include",cache:"no-store"});if(!e.ok){let t=401===e.status?"You need to be signed in to download the extension.":"Server returned ".concat(e.status,". Use the bookmarklet below â it works in every browser.");eW("error"),eQ(t);return}let t={};try{t=await e.json()}catch(e){}let o=t.version&&/^[0-9.]+$/.test(t.version)?t.version:"latest";eX(o),eW("downloading");let n="".concat(t.downloadUrl||"/api/auto-apply/download-extension?v=".concat(encodeURIComponent(o))).concat((t.downloadUrl||"").includes("?")?"&":"?","t=").concat(Date.now()),a=await fetch(n,{credentials:"include",cache:"no-store"});if(!a.ok){let e=a.headers.get("content-type")||"",t="Download failed (HTTP ".concat(a.status,").");if(e.includes("application/json"))try{let e=await a.json();(null==e?void 0:e.error)&&(t=e.error)}catch(e){}eW("error"),eQ(t);return}let s=a.headers.get("x-extension-version")||o;s&&s!==o&&console.warn("[download-extension] version mismatch",{metaVersion:o,shipped:s});let r=await a.blob(),l=URL.createObjectURL(r),i=document.createElement("a");i.href=l,i.download="trueresume-extension-v".concat(s,".zip"),document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(l),1500),eX(s),eW("success")}catch(e){console.error("[download-extension] client error",e),eW("error"),eQ((null==e?void 0:e.message)||"Network error while downloading. Use the bookmarklet â it works without any download.")}};if(!w||!x||"loading"===o||["/login","/signup","/auth/signin","/auth/error","/","/pricing"].includes(e.pathname)&&!j)return null;let eK={position:"fixed",left:M.x,top:M.y,zIndex:9999,width:56,height:56,borderRadius:28,background:"linear-gradient(135deg, #FF4500 0%, #CC3700 100%)",boxShadow:A?"0 12px 32px rgba(255,69,0,0.45)":"0 8px 20px rgba(0,0,0,0.25)",cursor:A?"grabbing":"grab",touchAction:"none",userSelect:"none"};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{"data-testid":"autoapply-fab",role:"button","aria-label":"Auto-apply assistant. Drag me onto a job card, or click to open chat.",style:eK,onPointerDown:eB,onPointerMove:eF,onPointerUp:eD,onPointerCancel:eD,className:"flex items-center justify-center",children:[(0,n.jsx)(u.Z,{className:"w-7 h-7 text-white"}),A&&(0,n.jsx)("span",{className:"absolute left-1/2 -translate-x-1/2 text-[10px] font-bold whitespace-nowrap px-2 py-0.5 rounded",style:{to
1p:-28,backgroundColor:"rgba(0,0,0,0.85)",color:"#fff"},children:"Drop on a job card or any page"})]}),N&&(0,n.jsxs)("div",{"data-testid":"autoapply-panel",className:"fixed z-[9998] rounded-xl flex flex-col overflow-hidden",style:{left:24,bottom:96,width:T?320:440,height:T?56:640,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 120px)",transition:"width 0.15s ease, height 0.15s ease",backgroundColor:k.panelBg,border:"1px solid ".concat(k.panelBorder),color:k.panelText,boxShadow:"dark"===d?"0 25px 50px -12px rgba(0,0,0,0.75)":"0 25px 50px -12px rgba(0,0,0,0.25)"},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-3 py-2.5",style:{background:"linear-gradient(90deg,#FF4500,#CC3700)",color:"#fff",borderBottom:"1px solid ".concat(k.panelBorder)},children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,n.jsx)(p.Z,{className:"w-4 h-4 flex-shrink-0"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("div",{className:"text-sm font-bold truncate",children:"Job Apply Assistant"}),(0,n.jsx)("div",{className:"text-[10px] opacity-90 truncate",children:ea?ea.title+(ea.company?" \xb7 ".concat(ea.company):""):"Drag me onto a job card, drop on any page, or paste a JD."})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("button",{type:"button","aria-label":"Minimize",onClick:()=>B(e=>!e),className:"p-1 rounded hover:bg-white/20",children:T?(0,n.jsx)(m,{className:"w-4 h-4"}):(0,n.jsx)(h,{className:"w-4 h-4"})}),(0,n.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>S(!1),className:"p-1 rounded hover:bg-white/20",children:(0,n.jsx)(y.Z,{className:"w-4 h-4"})})]})]}),!T&&(0,n.jsxs)(n.Fragment,{children:[em>0&&(0,n.jsx)(_,{P:k,step:em}),(0,n.jsxs)("div",{className:"flex",style:{backgroundColor:k.tabBg,borderBottom:"1px solid ".concat(k.panelBorder)},children:[(0,n.jsx)(W,{P:k,active:"chat"===F,onClick:()=>D("chat"),icon:(0,n.jsx)(b.Z,{className:"w-3.5 h-3.5"}),label:"Chat"}),(0,n.jsx)(W,{P:k,active:"profile"===F,onClick:()=>D("profile"),icon:(0,n.jsx)(f,{className:"w-3.5 h-3.5"}),label:"Profile"}),(0,n.jsx)(W,{P:k,active:"history"===F,onClick:()=>D("history"),icon:(0,n.jsx)(g.Z,{className:"w-3.5 h-3.5"}),label:"History",badge:eC.length||void 0}),(0,n.jsx)(W,{P:k,active:"settings"===F,onClick:()=>D("settings"),icon:(0,n.jsx)(v,{className:"w-3.5 h-3.5"}),label:"Settings"})]}),"chat"===F&&(0,n.jsx)(Y,{P:k,messages:Q,input:ee,setInput:et,busy:eo,currentQuestion:ei,onSubmit:ez,currentJob:ea,flowStep:em,hasTailored:!!ed,hasCoverLetter:!!ep,onTailorResume:eI,onGenerateCoverLetter:eR,onOpenEditor:()=>{if(ea){try{let t={jobDescription:ea.description,generatedAt:new Date().toISOString()};(null==ed?void 0:ed.resume)&&(t.resume=ed.resume,t.matchScore=ed.matchScore),ep&&(t.coverLetter=ep),t.resume||t.coverLetter?(sessionStorage.setItem("tr_autoapply_handoff",JSON.stringify(t)),e.push("/create-resume")):e.push({pathname:"/create-resume",query:{jd:ea.description.slice(0,12e3)}})}catch(t){e.push({pathname:"/create-resume",query:{jd:ea.description.slice(0,12e3)}})}S(!1)}},onCopyJD:eq,onStartOver:()=>{es(null),$([]),el([]),ec(null),eu(null),ex(null),eh(0)}}),"profile"===F&&(0,n.jsx)(V,{P:k,profile:ef,loading:ev,saving:ek,onSaveCommon:eU,onDeleteCustom:eJ,onExport:()=>{if(!ef)return;let e=new Blob([JSON.stringify(ef,null,2)],{type:"application/json"}),t=URL.createObjectURL(e),o=document.createElement("a");o.href=t,o.download="trueresume-qa-profile.json",document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(t)}}),"history"===F&&(0,n.jsx)(X,{P:k,items:eC,onOpen:e=>{es(e.job),D("chat"),$([{id:"".concat(Date.now()),role:"assistant",kind:"job-preview",text:"Reopened from history:",data:e.job}])},onClear:()=>{eN([]),z([])}}),"settings"===F&&(0,n.jsx)(G,{P:k,profile:ef,saving:ek,onSave:eH,onInstallExtension:eG})]})]}),eS&&(0,n.jsx)(K,{P:k,state:e_,error:eY,version:eV,onRetry:()=>{eQ(null),eG()},onClose:()=>eT(!1)})]})}function _(e){let{P:t,step:o}=e,s=[{n:1,label:"Scrape"},{n:2,label:"Q&A"},{n:3,label:"Tailor"},{n:4,label:"Done"}];return(0,n.jsx)("div",{className:"px-3 py-2 flex items-center gap-1",style:{backgroundColor:t.surface,borderBottom:"1px solid ".concat(t.divider)},children:s.map((e,r)=>{let l=o>e.n,i=o===e.n,c=l?"#10B981":i?t.accent:t.panelTextMuted,d=i?t.panelTextStrong:t.panelTextMuted;return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)("div",{className:"w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold",style:{backgroundColor:l?c:"transparent",border:"1.5px solid ".concat(c),color:l?"#fff":c},children:l?"â":e.n}),(0,n.jsx)("span",{className:"text-[10px] font-semibold",style:{color:d},children:e.label})]}),r<s.length-1&&(0,n.jsx)("div",{className:"flex-1 h-px mx-1",style:{backgroundColor:o>e.n?"#10B981":t.panelBorder}})]},e.n)})})}function W(e){let{P:t,active:o,onClick:a,icon:s,label:r,badge:l}=e;return(0,n.jsxs)("button",{type:"button",onClick:a,className:"flex-1 flex items-center justify-center gap-1 px-1 py-2 text-[11px] font-semibold transition-colors relative",style:{color:o?t.accent:t.panelTextMuted,backgroundColor:o?t.tabActiveBg:"transparent",borderBottom:o?"2px solid ".concat(t.accent):"2px solid transparent"},children:[s,(0,n.jsx)("span",{children:r}),"number"==typeof l&&(0,n.jsx)("span",{style:{backgroundColor:t.accent,color:t.accentContrast},className:"text-[9px] font-extrabold px-1 py-0.5 rounded-full leading-none",children:l})]})}function Y(e){let t=e.P,o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var e;null===(e=o.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[e.messages]),(0,n.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",style:{backgroundColor:t.panelBg},children:[(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",role:"log","aria-live":"polite","aria-relevant":"additions text",children:[0===e.messages.length&&(0,n.jsxs)("div",{className:"mt-4 mx-1 rounded-xl overflow-hidden text-xs",style:{border:"1px solid ".concat(t.panelBorder)},children:[(0,n.jsx)("div",{className:"px-3 pt-3 pb-2 font-bold text-[13px]",style:{color:t.panelTextStrong,backgroundColor:t.surface},children:"How to use your AI assistant"}),(0,n.jsxs)("div",{className:"grid grid-cols-2",style:{borderTop:"1px solid ".concat(t.panelBorder)},children:[(0,n.jsxs)("div",{className:"p-3 space-y-1.5",style:{borderRight:"1px solid ".concat(t.panelBorder),backgroundColor:t.panelBg},children:[(0,n.jsx)("div",{className:"font-semibold",style:{color:t.panelTextStrong},children:"\uD83E\uDD16 On TrueResume jobs"}),(0,n.jsxs)("div",{style:{color:t.panelTextMuted,lineHeight:1.5},children:[(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"1."}),(0,n.jsxs)("span",{children:["Browse the ",(0,n.jsx)("strong",{children:"Jobs"})," page."]})]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"2."}),(0,n.jsx)("span",{children:"Drag this button onto any job card."})]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"3."}),(0,n.jsx)("span",{children:"Tailor resume & cover letter â you apply on the company site."})]})]})]}),(0,n.jsxs)("div",{className:"p-3 space-y-1.5",style:{backgroundColor:t.panelBg},children:[(0,n.jsx)("div",{className:"font-semibold",style:{color:t.panelTextStrong},children:"\uD83C\uDF10 On external portals"}),(0,n.jsxs)("div",{style:{color:t.panelTextMuted,lineHeight:1.5},children:[(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"1."}),(0,n.jsxs)("span",{children:["Install the ",(0,n.jsx)("strong",{children:"Chrome extension"})," & fill Profile tab here."]})]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"2."}),(0,n.jsx)("span",{children:"Open a job posting, click Apply to reach the form."})]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{children:"3."}),(0,n.jsxs)("span",{children:["Click \uD83C\uDD43 â ",(0,n.jsx)("strong",{children:"Smart Ap
1ply"})," to tailor, fill, and review before you submit."]})]})]})]})]}),(0,n.jsx)("div",{className:"px-3 py-2 text-[10px]",style:{backgroundColor:t.surface,borderTop:"1px solid ".concat(t.panelBorder),color:t.panelTextMuted},children:"\uD83D\uDCA1 Ask me anything about jobs, your profile, or applications â or paste a full job description to start auto-apply."})]}),e.messages.map(e=>{var o,a;let s="user"===e.role,r=s?{backgroundColor:t.userBubble,color:t.userBubbleText}:"error"===e.kind?{backgroundColor:t.errorBg,color:t.errorText,border:"1px solid ".concat(t.errorBorder)}:"success"===e.kind?{backgroundColor:t.successBg,color:t.successText,border:"1px solid ".concat(t.successBorder)}:{backgroundColor:t.assistantBubble,color:t.assistantBubbleText};return(0,n.jsx)("div",{className:"flex ".concat(s?"justify-end":"justify-start"),children:(0,n.jsxs)("div",{className:"max-w-[88%] px-3 py-2 rounded-lg text-[13px] leading-relaxed whitespace-pre-wrap break-words",style:r,children:["job-preview"===e.kind&&e.data?(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"font-bold text-sm",children:e.data.title}),e.data.company&&(0,n.jsxs)("div",{className:"text-xs opacity-80",children:[e.data.company,e.data.location?" \xb7 "+e.data.location:""]}),(0,n.jsxs)("div",{className:"text-xs mt-1 opacity-80",style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:[String(e.data.description).slice(0,240),"â¦"]})]}):"resume-ready"===e.kind?(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(j.Z,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:e.text})]}):"cover-letter-ready"===e.kind?(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(k.Z,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:e.text})]}):e.text,!s&&(null===(a=e.data)||void 0===a?void 0:null===(o=a.citations)||void 0===o?void 0:o.length)>0&&(0,n.jsx)(d.Z,{citations:e.data.citations,mutedColor:t.panelTextMuted,linkColor:t.accent})]})},e.id)}),e.busy&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-xs",style:{color:t.panelTextMuted},children:[(0,n.jsx)(w.Z,{className:"w-3 h-3 animate-spin"})," Workingâ¦"]}),(0,n.jsx)("div",{ref:o})]}),e.currentJob&&!e.currentQuestion&&(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5 px-3 py-2 border-t",style:{borderColor:t.divider,backgroundColor:t.surface},children:[e.hasTailored?(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onOpenEditor,icon:(0,n.jsx)(N.Z,{className:"w-3 h-3"}),label:"View & Edit Resume",primary:!0}):(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onTailorResume,icon:(0,n.jsx)(C.Z,{className:"w-3 h-3"}),label:e.busy?"Tailoringâ¦":"Tailor Resume",primary:!0}),e.hasTailored&&!e.hasCoverLetter&&(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onGenerateCoverLetter,icon:(0,n.jsx)(k.Z,{className:"w-3 h-3"}),label:"Cover Letter"}),e.hasCoverLetter&&(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onOpenEditor,icon:(0,n.jsx)(k.Z,{className:"w-3 h-3"}),label:"View Cover Letter"}),!e.hasTailored&&(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onGenerateCoverLetter,icon:(0,n.jsx)(k.Z,{className:"w-3 h-3"}),label:"Cover Letter Only"}),(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onCopyJD,icon:(0,n.jsx)(S.Z,{className:"w-3 h-3"}),label:"Copy JD"}),(0,n.jsx)(Q,{P:t,disabled:e.busy,onClick:e.onStartOver,icon:(0,n.jsx)(T,{className:"w-3 h-3"}),label:"Start Over"})]}),(0,n.jsxs)("div",{className:"p-2 border-t",style:{backgroundColor:t.surface,borderColor:t.divider},children:[e.currentQuestion&&(0,n.jsxs)("div",{className:"mb-2 px-2 py-1.5 rounded text-[11px] font-semibold flex items-start gap-1.5",style:{backgroundColor:t.askBg,color:t.askText,border:"1px solid ".concat(t.askBorder)},children:[(0,n.jsx)(B.Z,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0"}),(0,n.jsx)("span",{children:e.currentQuestion.label})]}),(0,n.jsxs)("div",{className:"flex items-end gap-2",children:[(0,n.jsx)("textarea",{value:e.input,onChange:t=>e.setInput(t.target.value),onKeyDown:t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),e.onSubmit())},placeholder:e.currentQuestion?"Your answerâ¦":"Paste a JD, ask a question, or just chat.",rows:1,className:"flex-1 resize-none rounded-lg px-3 py-2 text-sm focus:outline-none min-h-[38px] max-h-[120px]",style:{backgroundColor:t.inputBg,color:t.panelTextStrong,border:"1px solid ".concat(t.inputBorder)}}),(0,n.jsx)("button",{type:"button",onClick:e.onSubmit,disabled:e.busy||!e.input.trim(),className:"flex items-center justify-center w-9 h-9 rounded-full disabled:opacity-50",style:{backgroundColor:t.accent,color:t.accentContrast},children:e.busy?(0,n.jsx)(w.Z,{className:"w-4 h-4 animate-spin"}):(0,n.jsx)(F.Z,{className:"w-4 h-4"})})]})]})]})}function Q(e){let{P:t,icon:o,label:a,onClick:s,disabled:r,primary:l}=e;return(0,n.jsxs)("button",{type:"button",onClick:s,disabled:r,className:"flex items-center gap-1 px-2.5 py-1.5 rounded-full text-[11px] font-bold transition-all active:scale-95 disabled:opacity-50",style:l?{backgroundColor:t.accent,color:t.accentContrast}:{backgroundColor:t.surfaceHover,color:t.panelTextStrong,border:"1px solid ".concat(t.panelBorder)},children:[o,a]})}function V(e){var t,o,a;let s=e.P,r=(null===(t=e.profile)||void 0===t?void 0:t.commonAnswers)||{};return(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 space-y-3 text-sm",style:{backgroundColor:s.panelBg,color:s.panelText},children:[(0,n.jsxs)("div",{className:"flex items-start gap-2 rounded-lg px-3 py-2.5",style:{backgroundColor:s.surface,border:"1px solid ".concat(s.successBorder)},children:[(0,n.jsx)("span",{style:{fontSize:16,lineHeight:1},children:"\uD83D\uDD17"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"font-semibold text-xs",style:{color:s.successText},children:"Synced with your browser extension"}),(0,n.jsxs)("div",{className:"text-[11px] mt-0.5 leading-relaxed",style:{color:s.panelTextMuted},children:["Answers saved here power ",(0,n.jsx)("strong",{children:"Smart Ap
1ply"})," on external job portals â name, work auth, screening questions, and anything you teach the assistant are reused automatically."]})]})]}),e.loading&&(0,n.jsxs)("div",{className:"text-center text-xs py-6",style:{color:s.panelTextMuted},children:[(0,n.jsx)(w.Z,{className:"w-4 h-4 animate-spin mx-auto mb-2"})," Loading profileâ¦"]}),!e.loading&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(ee,{P:s,children:"Work Authorization"}),(0,n.jsxs)("button",{type:"button",onClick:e.onExport,className:"text-[10px] font-semibold flex items-center gap-1",style:{color:s.panelTextMuted},children:[(0,n.jsx)(D.Z,{className:"w-3 h-3"})," Export"]})]}),(0,n.jsx)(eo,{P:s,label:"Authorized to work in the US?",value:r.authorizedToWorkUS,onChange:t=>e.onSaveCommon({authorizedToWorkUS:t})}),(0,n.jsx)(eo,{P:s,label:"Require sponsorship now?",value:r.requireSponsorshipNow,onChange:t=>e.onSaveCommon({requireSponsorshipNow:t})}),(0,n.jsx)(eo,{P:s,label:"Require sponsorship in the future?",value:r.requireSponsorshipFuture,onChange:t=>e.onSaveCommon({requireSponsorshipFuture:t})}),(0,n.jsx)(et,{P:s,label:"Country of citizenship",value:r.countryOfCitizenship,onSave:t=>e.onSaveCommon({countryOfCitizenship:t})}),(0,n.jsx)(ee,{P:s,children:"Identity & Contact"}),(0,n.jsx)(et,{P:s,label:"Full name (legal)",value:r.fullName,onSave:t=>e.onSaveCommon({fullName:t})}),(0,n.jsx)(et,{P:s,label:"Phone",value:r.phone,onSave:t=>e.onSaveCommon({phone:t})}),(0,n.jsx)(et,{P:s,label:"Street address",value:r.address,onSave:t=>e.onSaveCommon({address:t})}),(0,n.jsx)(et,{P:s,label:"City",value:r.city,onSave:t=>e.onSaveCommon({city:t})}),(0,n.jsx)(et,{P:s,label:"State / Province",value:r.state,onSave:t=>e.onSaveCommon({state:t})}),(0,n.jsx)(et,{P:s,label:"Postal / ZIP code",value:r.postalCode,onSave:t=>e.onSaveCommon({postalCode:t})}),(0,n.jsx)(et,{P:s,label:"Country",value:r.country,onSave:t=>e.onSaveCommon({country:t})}),(0,n.jsx)(ee,{P:s,children:"Links"}),(0,n.jsx)(et,{P:s,label:"LinkedIn URL",value:r.linkedinUrl,onSave:t=>e.onSaveCommon({linkedinUrl:t})}),(0,n.jsx)(et,{P:s,label:"GitHub URL",value:r.githubUrl,onSave:t=>e.onSaveCommon({githubUrl:t})}),(0,n.jsx)(et,{P:s,label:"Portfolio URL",value:r.portfolioUrl,onSave:t=>e.onSaveCommon({portfolioUrl:t})}),(0,n.jsx)(ee,{P:s,children:"Experience & Compensation"}),(0,n.jsx)(et,{P:s,label:"Years of experience",value:r.yearsOfExperience,onSave:t=>e.onSaveCommon({yearsOfExperience:Number(t)||0})}),(0,n.jsx)(et,{P:s,label:"Salary expectation (min)",value:r.salaryExpectationMin,onSave:t=>e.onSaveCommon({salaryExpectationMin:Number(t)||0})}),(0,n.jsx)(et,{P:s,label:"Salary expectation (max)",value:r.salaryExpectationMax,onSave:t=>e.onSaveCommon({salaryExpectationMax:Number(t)||0})}),(0,n.jsx)(et,{P:s,label:"Notice period (days)",value:r.noticePeriodDays,onSave:t=>e.onSaveCommon({noticePeriodDays:Number(t)||0})}),(0,n.jsx)(ee,{P:s,children:"Preferences"}),(0,n.jsx)(eo,{P:s,label:"Open to relocation",value:r.openToRelocation,onChange:t=>e.onSaveCommon({openToRelocation:t})}),(0,n.jsx)(eo,{P:s,label:"Open to remote",value:r.openToRemote,onChange:t=>e.onSaveCommon({openToRemote:t})}),(0,n.jsx)(eo,{P:s,label:"Open to hybrid",value:r.openToHybrid,onChange:t=>e.onSaveCommon({openToHybrid:t})}),(0,n.jsx)(eo,{P:s,label:"Open to onsite",value:r.openToOnsite,onChange:t=>e.onSaveCommon({openToOnsite:t})}),(0,n.jsx)(ee,{P:s,children:"Learned Answers"}),0===((null===(o=e.profile)||void 0===o?void 0:o.customAnswers)||[]).length&&(0,n.jsx)("p",{className:"text-xs",style:{color:s.panelTextMuted},children:"No learned answers yet. When a portal asks something new during auto-apply, your answer is saved here so the assistant remembers it next time."}),((null===(a=e.profile)||void 0===a?void 0:a.customAnswers)||[]).map(t=>(0,n.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded",style:{backgroundColor:s.surface,border:"1px solid ".concat(s.panelBorder)},children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-xs font-semibold truncate",title:t.question,style:{color:s.panelTextStrong},children:t.question}),(0,n.jsx)("div",{className:"text-xs mt-0.5 break-words",style:{color:s.panelText},children:t.answer}),(0,n.jsxs)("div",{className:"text-[10px] mt-0.5",style:{color:s.panelTextMuted},children:[t.source," \xb7 confidence ",Math.round(100*(t.confidence||0)),"%"]})]}),(0,n.jsx)("button",{type:"button","aria-label":"Delete",onClick:()=>e.onDeleteCustom(t.normalizedQuestion),className:"p-1 rounded",style:{color:s.errorText},children:(0,n.jsx)(M.Z,{className:"w-3.5 h-3.5"})})]},t.normalizedQuestion))]})]})}function X(e){let{P:t,items:o,onOpen:a,onClear:s}=e;return(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 space-y-2 text-sm",style:{backgroundColor:t.panelBg,color:t.panelText},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(ee,{P:t,children:"Recent"}),o.length>0&&(0,n.jsxs)("button",{type:"button",onClick:s,className:"text-[10px] font-semibold flex items-center gap-1",style:{color:t.panelTextMuted},children:[(0,n.jsx)(M.Z,{className:"w-3 h-3"})," Clear"]})]}),0===o.length&&(0,n.jsx)("p",{className:"text-xs",style:{color:t.panelTextMuted},children:"No history yet. Drop the assistant on a job card or page and it will show here."}),o.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>a(e),className:"w-full text-left p-2 rounded transition-colors",style:{backgroundColor:t.surface,border:"1px solid ".concat(t.panelBorder)},children:[(0,n.jsx)("div",{className:"text-xs font-semibold truncate",style:{color:t.panelTextStrong},children:e.job.title}),e.job.company&&(0,n.jsx)("div",{className:"text-[11px] truncate",style:{color:t.panelTextMuted},children:e.job.company}),(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",style:{color:t.panelTextMuted},children:[(0,n.jsx)("span",{children:new Date(e.at).toLocaleStr
1ing()}),e.actions.some(e=>"tailor"===e.kind&&e.ok)&&(0,n.jsx)("span",{style:{color:t.successText},children:"â tailored"}),e.actions.some(e=>"cover-letter"===e.kind&&e.ok)&&(0,n.jsx)("span",{style:{color:t.successText},children:"â cover letter"})]})]},e.id))]})}function G(e){let{P:t,profile:o,saving:a,onSave:s,onInstallExtension:r}=e,l=(null==o?void 0:o.autoSubmit)===!0,i=(null==o?void 0:o.refuseCategories)||[],c=e=>{s({refuseCategories:i.includes(e)?i.filter(t=>t!==e):[...i,e]})};return(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 space-y-4 text-sm",style:{backgroundColor:t.panelBg,color:t.panelText},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(ee,{P:t,children:"Submission Behavior"}),(0,n.jsxs)("label",{className:"flex items-start gap-2 p-2 rounded cursor-pointer",style:{border:"1px solid ".concat(t.panelBorder),backgroundColor:t.surface},children:[(0,n.jsx)("input",{type:"checkbox",checked:l,onChange:e=>s({autoSubmit:e.target.checked}),className:"mt-0.5"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-xs font-semibold",style:{color:t.panelTextStrong},children:"Auto-submit applications"}),(0,n.jsx)("div",{className:"text-[11px]",style:{color:t.panelTextMuted},children:"When ON, the server-side apply agent may submit after filling fields (supported ATS only). The browser extension always stops for your review before submit."})]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(ee,{P:t,children:"Never answer categories"}),(0,n.jsx)("p",{className:"text-[11px] mb-2",style:{color:t.panelTextMuted},children:'Questions in these categories are skipped or answered "Decline to self-identify".'}),["demographics","ssn","salary"].map(e=>(0,n.jsxs)("label",{className:"flex items-center gap-2 p-1.5 text-xs",children:[(0,n.jsx)("input",{type:"checkbox",checked:i.includes(e),onChange:()=>c(e)}),(0,n.jsx)("span",{className:"capitalize",style:{color:t.panelText},children:e})]},e))]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(ee,{P:t,children:"Browser Extension"}),(0,n.jsxs)("div",{className:"mb-3 p-3 rounded",style:{backgroundColor:t.surface,border:"1px solid ".concat(t.panelBorder)},children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold mb-2",style:{color:t.panelTextStrong},children:"When to use each tool"}),(0,n.jsxs)("ul",{className:"text-[11px] list-disc list-inside space-y-1",style:{color:t.panelTextMuted},children:[(0,n.jsx)("li",{children:"The in-app assistant lives inside TrueResume and is best for scraping jobs from the app, tailoring resumes, drafting cover letters, and answering job-specific questions."}),(0,n.jsx)("li",{children:"The browser extension brings Trueresume AI to external application portals and real forms, so you can auto-fill apply pages outside the app."}),(0,n.jsx)("li",{children:"The bookmarklet is the no-install fallback when you want the same assistant without installing the extension."})]})]}),(0,n.jsx)("p",{className:"text-[11px] mb-2",style:{color:t.panelTextMuted},children:"Use this in-app assistant for TrueResume itself. Install the extension only when you need apply-page auto-fill on external portals."}),(0,n.jsxs)("button",{type:"button",onClick:r,className:"inline-flex items-center gap-1.5 px-3 py-2 rounded text-xs font-bold w-full justify-center",style:{backgroundColor:t.accent,color:t.accentContrast},children:[(0,n.jsx)(P,{className:"w-3.5 h-3.5"})," Download & Install Extension"]}),(0,n.jsxs)("p",{className:"text-[10px] mt-2 flex items-start gap-1",style:{color:t.panelTextMuted},children:[(0,n.jsx)(E.Z,{className:"w-3 h-3 mt-0.5 flex-shrink-0"}),"The extension talks to Trueresume using your existing session cookie â no credentials are stored by the extension itself."]}),(0,n.jsxs)("div",{className:"mt-4 pt-3 border-t",style:{borderColor:t.divider},children:[(0,n.jsx)("div",{className:"text-[11px] font-bold mb-1",style:{color:t.panelTextStrong},children:"One-click alternative: Bookmarklet"}),(0,n.jsx)("p",{className:"text-[11px] mb-2",style:{color:t.panelTextMuted},children:"Drag the button below to your bookmarks bar. Click it on any job page to launch the assistant â no install, no permissions, works in every browser."}),(0,n.jsx)($,{P:t})]})]})]})}function K(e){let{P:t,onClose:o,state:s="idle",error:r=null,version:l=null,onRetry:i}=e,c=(0,a.useMemo)(()=>(function(){if("undefined"==typeof navigator)return{name:"browser",isChromium:!1};let e=navigator.userAgent;return/Edg\//.test(e)?{name:"Edge",isChromium:!0}:/OPR\//.test(e)?{name:"Opera",isChromium:!0}:/Brave\//.test(e)||navigator.brave?{name:"Brave",isChromium:!0}:/Chrome\//.test(e)?{name:"Chrome",isChromium:!0}:/Firefox\//.test(e)?{name:"Firefox",isChromium:!1}:/Safari\//.test(e)?{name:"Safari",isChromium:!1}:{name:"browser",isChromium:!1}})(),[]),d="Edge"===c.name?"edge://extensions":"Brave"===c.name?"brave://extensions":"Opera"===c.name?"opera://extensions":"chrome://extensions",u="checking"===s?{color:t.askText,bg:t.askBg,border:t.askBorder,text:"Verifying download endpointâ¦"}:"downloading"===s?{color:t.askText,bg:t.askBg,border:t.askBorder,text:"Download in progress â your browser will save ".concat(l?"trueresume-extension-v".concat(l,".zip"):"trueresume-extension.zip",".")}:"success"===s?{color:t.successText,bg:t.successBg,border:t.successBorder,text:"Download started. Check your Downloads folder.".concat(l?" Build v".concat(l," â verify this number on chrome://extensions/ after loading."):"")}:"error"===s?{color:"#fff",bg:"#7F1D1D",border:"#991B1B",text:r||"Download failed. Use the bookmarklet â it works in every browser."}:null;return(0,n.jsx)("div",{"data-testid":"install-extension-modal",className:"fixed inset-0 z-[10000] flex items-center justify-center p-4",style:{backgroundColor:"rgba(0,0,0,0.6)"},onClick:o,children:(0,n.jsxs)("div",{className:"rounded-xl w-full max-w-md p-5 relative max-h-[90vh] overflow-y-auto",style:{backgroundColor:t.panelBg,border:"1px solid ".concat(t.panelBorder),color:t.panelText},onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{type:"button","aria-label":"Close","data-testid":"close-install-modal",onClick:o,className:"absolute top-2 right-2 p-1 rounded",style:{color:t.panelTextMuted},children:(0,n.jsx)(y.Z,{className:"w-4 h-4"})}),(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,n.jsx)(P,{className:"w-5 h-5",style:{color:t.accent}}),(0,n.jsx)("h3",{className:"text-base font-bold",style:{color:t.panelTextStrong},children:"Install Trueresume Auto-Apply"})]}),(0,n.jsxs)("p",{className:"text-xs mb-3",style:{color:t.panelTextMuted},children:["Detected: ",(0,n.jsx)("b",{children:c.name}),". Pick the install method that suits you â both connect to your existing Trueresume account."]}),u&&(0,n.jsxs)("div",{"data-testid":"install-status-banner",className:"mb-3 p-2 rounded text-[11px] flex items-center gap-2",style:{backgroundColor:u.bg,color:u.color,border:"1px solid ".concat(u.border)},children:["error"===s&&i&&(0,n.jsx)("button",{type:"button","data-testid":"retry-download-btn",onClick:i,className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:t.accent,color:t.accentContrast},children:"Retry"}),(0,n.jsx)("span",{className:"flex-1",children:u.text})]}),(0,n.jsxs)("div",{className:"mb-3 p-3 rounded",style:{backgroundColor:t.successBg,border:"1px solid ".concat(t.successBorder)},children:[(0,n.jsxs)("div",{className:"text-xs font-bold flex items-center gap-1 mb-1",style:{color:t.successText},children:[(0,n.jsx)(p.Z,{className:"w-3 h-3"})," RECOMMENDED \xb7 One-click bookmarklet"]}),(0,n.jsxs)("p",{className:"text-[11px] mb-2",style:{color:t.successText},children:["Press ",(0,n.jsx)("b",{children:"Ctrl/Cmd + Shift + B"})," to show your bookmarks bar, then drag the button below onto it. Click it on any job page â zero install, zero permissions, works in every browser."]}
1),(0,n.jsx)($,{P:t})]}),(()=>{let e=void 0!==L&&L.env.NEXT_PUBLIC_CHROME_WEBSTORE_URL;return e&&(c.isChromium||"Chrome"===c.name||"Edge"===c.name||"Brave"===c.name||"Opera"===c.name)?(0,n.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer","data-testid":"add-to-chrome-cta",className:"mb-3 p-2 rounded flex items-center gap-2 no-underline",style:{backgroundColor:t.accent,color:t.accentContrast,border:"1px solid ".concat(t.accent)},children:[(0,n.jsx)(P,{className:"w-4 h-4 flex-shrink-0"}),(0,n.jsxs)("div",{className:"text-[12px] font-bold flex-1",children:["Add to ","Edge"===c.name?"Edge":"Chrome"," â one click install"]}),(0,n.jsx)(A.Z,{className:"w-3 h-3"})]}):(0,n.jsxs)("div",{className:"mb-3 p-2 rounded flex items-center gap-2",style:{backgroundColor:t.askBg,border:"1px solid ".concat(t.askBorder),color:t.askText},children:[(0,n.jsx)(P,{className:"w-4 h-4 flex-shrink-0"}),(0,n.jsxs)("div",{className:"text-[11px] flex-1",children:[(0,n.jsx)("b",{children:"Coming soon:"}),' single-click "Add to ',c.name,'" via the ',"Firefox"===c.name?"Mozilla Add-ons":"Chrome Web Store",". We're submitting now â review takes 1â3 days."]})]})})(),(0,n.jsxs)("details",{className:"mb-3",style:{border:"1px solid ".concat(t.panelBorder),borderRadius:6,padding:8},children:[(0,n.jsxs)("summary",{className:"text-[11px] font-bold cursor-pointer select-none flex items-center gap-1",style:{color:t.panelTextStrong},"data-testid":"advanced-install-disclosure",children:[(0,n.jsx)(D.Z,{className:"w-3 h-3"})," Advanced: install unpacked extension (power-user only)"]}),(0,n.jsxs)("p",{className:"text-[11px] mt-2 mb-2",style:{color:t.panelTextMuted},children:["Use this only if you want the extension immediately, before the ","Firefox"===c.name?"Add-ons":"Web Store"," listing goes live. Steps:"]}),(0,n.jsxs)("ol",{className:"text-xs space-y-1.5 mb-2",children:[(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)("span",{className:"flex-shrink-0 w-4 h-4 rounded-full font-bold text-[9px] flex items-center justify-center",style:{backgroundColor:t.accent,color:t.accentContrast},children:"1"}),(0,n.jsxs)("span",{style:{color:t.panelText},children:["Unzip ",(0,n.jsx)("code",{className:"px-1 rounded",style:{backgroundColor:t.surface},children:"trueresume-extension.zip"}),"."]})]}),(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)("span",{className:"flex-shrink-0 w-4 h-4 rounded-full font-bold text-[9px] flex items-center justify-center",style:{backgroundColor:t.accent,color:t.accentContrast},children:"2"}),(0,n.jsxs)("span",{style:{color:t.panelText},children:["Copy-paste ",(0,n.jsx)("code",{className:"px-1 rounded",style:{backgroundColor:t.surface},children:d})," into the address bar."]})]}),(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)("span",{className:"flex-shrink-0 w-4 h-4 rounded-full font-bold text-[9px] flex items-center justify-center",style:{backgroundColor:t.accent,color:t.accentContrast},children:"3"}),(0,n.jsxs)("span",{style:{color:t.panelText},children:["Toggle ",(0,n.jsx)("b",{children:"Developer mode"}),", click ",(0,n.jsx)("b",{children:"Load unpacked"}),", pick the unzipped folder."]})]})]}),"success"!==s&&(0,n.jsxs)("button",{type:"button","data-testid":"trigger-extension-download",onClick:i,disabled:"checking"===s||"downloading"===s,className:"w-full text-xs font-bold py-2 rounded disabled:opacity-60",style:{backgroundColor:t.accent,color:t.accentContrast,border:"1px solid ".concat(t.accent)},children:["idle"===s&&"Download trueresume-extension.zip","checking"===s&&"Verifying serverâ¦","downloading"===s&&"Downloadingâ¦","error"===s&&"Retry download"]})]}),(0,n.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded text-[11px]",style:{backgroundColor:t.successBg,color:t.successText,border:"1px solid ".concat(t.successBorder)},children:[(0,n.jsx)(O.Z,{className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0"}),(0,n.jsx)("span",{children:"All three options use the same Trueresume backend. You can switch between bookmarklet and extension any time â your saved profile and Q&A history follow you."})]})]})})}function $(e){let{P:t}=e,o=(0,a.useMemo)(()=>
1{let e=window.location.origin,t="(function(){\n try {\n var SEL = [\n '[data-automation-id=\"jobPostingDescription\"]',\n 'div.jobs-description-content',\n 'section.description',\n '#job_description', '.job-description', '.posting-description',\n 'div[class*=\"JobDetails_jobDescription\"]',\n 'div[class*=\"job-details\"]', 'main article', 'main'\n ];\n var node = null;\n for (var i = 0; i < SEL.length; i++) {\n var el = document.querySelector(SEL[i]);\n if (el && el.innerText && el.innerText.length > 200) { node = el; break; }\n }\n var jd = (node && node.innerText) ? node.innerText : (document.body.innerText || '').slice(0, 12000);\n var meta = function(name){ var m = document.querySelector('meta[name=\"'+name+'\"],meta[property=\"'+name+'\"]'); return m ? m.content : ''; };\n var payload = {\n url: location.href,\n title: document.title || '',\n description: meta('description') || meta('og:description') || '',\n company: meta('og:site_name') || '',\n jd: (jd || '').replace(/[\\r\\t]+/g,' ').replace(/\\n{3,}/g,'\\n\\n').trim().slice(0, 18000),\n scrapedAt: new Date().toISOString(),\n source: 'bookmarklet'\n };\n var w = window.open('".concat(e,"/jobs/import?from=bookmarklet',\n 'tr_assistant', 'width=520,height=720,resizable=yes,scrollbars=yes');\n if (!w) { alert('Please allow popups for Trueresume on this site.'); return; }\n // Wait for the popup to load, then post the scraped payload.\n var tries = 0;\n var iv = setInterval(function(){\n tries++;\n try {\n w.postMessage({ type: 'TR_BOOKMARKLET_PAYLOAD', payload: payload }, '").concat(e,"');\n } catch(e) { /* still loading */ }\n if (tries > 40) clearInterval(iv); // ~10s\n }, 250);\n } catch (e) {\n alert('Trueresume bookmarklet error: ' + (e && e.message ? e.message : e));\n }\n })();").replace(/\s+/g," ").trim();return"javascript:".concat(t)},[]),s=(0,a.useCallback)(async()=>{try{await navigator.clipboard.writeText(o),l.default.success("Bookmarklet copied â paste it into a new bookmark URL.",{duration:4e3})}catch(e){l.default.error("Could not copy. Drag the button to your bookmarks bar instead.")}},[o]);return(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsxs)("a",{href:o,draggable:!0,"data-testid":"apply-bookmarklet-anchor",onClick:e=>{e.preventDefault(),(0,l.default)("Drag this button up to your bookmarks bar. Clicking it here won't work â bookmarklets only run when saved as a bookmark.",{icon:(0,i.q)("pin"),duration:6e3})},className:"inline-flex items-center gap-1.5 px-3 py-2 rounded text-xs font-bold w-full justify-center",style:{backgroundColor:t.accent,color:t.accentContrast,border:"1px dashed ".concat(t.accentContrast),cursor:"grab",textDecoration:"none"},children:[(0,n.jsx)(p.Z,{className:"w-3.5 h-3.5"}),"Apply with Trueresume â drag me to bookmarks"]}),(0,n.jsxs)("button",{type:"button","data-testid":"copy-bookmarklet-btn",onClick:s,className:"inline-flex items-center gap-1 px-2 py-1 rounded text-[10px] font-bold w-full justify-center",style:{backgroundColor:t.surfaceHover,color:t.panelTextMuted,border:"1px solid ".concat(t.panelBorder)},children:[(0,n.jsx)(S.Z,{className:"w-3 h-3"}
1),"â¦or copy code (paste into a new bookmark)"]})]})}function ee(e){let{P:t,children:o}=e;return(0,n.jsx)("h4",{className:"text-[11px] font-bold uppercase tracking-wider mt-3 mb-1",style:{color:t.panelTextMuted},children:o})}function et(e){let{P:t,label:o,value:s,onSave:r}=e,[l,i]=(0,a.useState)(null!=s?s:"");return(0,a.useEffect)(()=>{i(null!=s?s:"")},[s]),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("label",{className:"flex-1 text-xs",style:{color:t.panelText},children:o}),(0,n.jsx)("input",{value:l,onChange:e=>i(e.target.value),onBlur:()=>{String(l)!==String(null!=s?s:"")&&r(String(l))},className:"flex-1 text-xs px-2 py-1 rounded focus:outline-none",style:{backgroundColor:t.inputBg,color:t.panelTextStrong,border:"1px solid ".concat(t.inputBorder)}})]})}function eo(e){let{P:t,label:o,value:a,onChange:s}=e;return(0,n.jsxs)("div",{className:"flex items-center gap-2 py-0.5",children:[(0,n.jsx)("label",{className:"flex-1 text-xs",style:{color:t.panelText},children:o}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("button",{type:"button",onClick:()=>s(!0),className:"text-[10px] font-bold px-2 py-1 rounded",style:!0===a?{backgroundColor:"#059669",color:"#fff"}:{backgroundColor:t.surfaceHover,color:t.panelText,border:"1px solid ".concat(t.panelBorder)},children:"Yes"}),(0,n.jsx)("button",{type:"button",onClick:()=>s(!1),className:"text-[10px] font-bold px-2 py-1 rounded",style:!1===a?{backgroundColor:"#DC2626",color:"#fff"}:{backgroundColor:t.surfaceHover,color:t.panelText,border:"1px solid ".concat(t.panelBorder)},children:"No"})]})]})}},42949:function(e,t,o){o.d(t,{q:function(){return s}});var n=o(85893);o(67294);var a=o(54271);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:26;return(0,n.jsx)(a.ZP,{variant:e,size:t,density:"full",animated:!0})}},43765:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},3192:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},22954:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},18289:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},12779:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},45544:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},74598:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},60641:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},86691:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},7656:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]])},72278:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},37864:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
1],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},79613:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},62190:function(e,t,o){o.d(t,{Z:function(){return n}});let n=(0,o(63759).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);
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.