1import{c as H,r as n,w as ve,m as et,e as tt,V as lt,Y as at,f as u,S as a,v as l,g as s,C as h,z as ot,x as E,F as S,D as c,a as k,y as v,E as Le,J as ce,o as i,M as R,N as st}from"./vendor-Dra69L1b.js";import{u as it}from"./vendor-clerk-BvfdCvl8.js";import{s as p,j as L,l as V,m as nt,g as pe,b as me,n as rt,d as ut,o as _e,e as dt}from"./vendor-primevue-ugSgo6_Y.js";import{_ as vt,a as ct,y as pt,D as mt,b as gt,F as ft,r as yt}from"./index-CIDbgvWh.js";import{O as wt}from"./OnboardingDialog-3QNPjbxi.js";import{b as Re}from"./formHelpers-B5FA7t59.js";const bt={class:"vault-view page-shell"},ht={key:0,class:"vault-guest-state"},kt={class:"vault-guest-sub"},Lt={class:"page-header page-header--flex page-header--compact"},_t={key:0,class:"vault-overview glass-card premium-glow reveal"},Rt={class:"overview-plan-name"},Ct={class:"overview-cell"},xt={class:"overview-cell"},Pt={key:1,class:"vault-skeleton"},Ut={style:{display:"flex","justify-content":"space-between","align-items":"flex-start","margin-bottom":"1rem"}},$t={style:{flex:"1"}},At={style:{display:"flex",gap:"0.5rem"}},It={key:2,class:"state-container"},St={key:3,class:"empty-state"},jt={key:4},Ft={class:"filter-bar"},Ot={class:"sort-container"},zt={key:0,class:"results-info"},Dt={key:1,class:"empty-state"},Tt={class:"empty-state-text"},Et={style:{display:"flex",gap:"0.5rem","justify-content":"center","flex-wrap":"wrap"}},Vt={key:2,class:"list-loading-overlay"},Nt={class:"resume-header"},Bt={class:"resume-info"},Mt={class:"resume-title-row"},Gt={class:"card-title"},Ht={class:"tag-group"},Jt={class:"card-subtitle-row"},Wt={class:"card-subtitle resume-company"},Yt={class:"resume-footer"},qt={class:"card-meta resume-date"},Qt={class:"resume-actions"},Zt={class:"action-group secondary"},Kt=["href"],Xt={key:0},el={class:"action-group primary"},tl={key:0,class:"button-group"},ll={key:1,class:"button-group"},al={key:4,class:"pagination-container"},ol={class:"pagination-info"},sl={class:"pagination-text"},il={class:"page-numbers"},nl={key:0,class:"state-container",style:{padding:"3rem"}},rl={key:1,class:"state-container",style:{padding:"3rem"}},ul=["src"],dl={key:0,class:"state-container",style:{padding:"3rem"}},vl={key:1,class:"state-container",style:{padding:"3rem"}},cl=["src"],pl={class:"delete-body"},ml={key:0,class:"delete-target-info"},gl={class:"delete-info-row"},fl={class:"delete-info-value"},yl={class:"delete-info-row"},wl={class:"delete-info-value"},bl={__name:"VaultView",setup(hl){const C=at(),Ce=lt(),_=it(),{showError:J}=yt(),{hideDialog:xe,dialogVisible:Pe,dialogTitle:Ue,dialogMessage:$e,dialogActions:Ae,dialogIcon:Ie}=ct();pt();const{currentPlan:ge,currentPlanDisplay:Se,documentsUsed:je,remainingQuota:W,loading:Fe,statsLoading:Oe,loadEntitlements:ze,loadStats:De}=mt(),{pricingTiers:fe,loadPlans:Te}=gt(),Ee=H(()=>Fe.value||Oe.value),ye=H(()=>ft(ge.value)),Ve=H(()=>{if(!fe.value.length||!ye.value)return!1;const o=Math.max(...fe.value.map(e=>e.displayOrder));return ye.value.displayOrder>=o}),Ne=[{label:"Date (Newest First)",value:"date-desc"},{label:"Date (Oldest First)",value:"date-asc"},{label:"Company (A-Z)",value:"company-asc"},{label:"Company (Z-A)",value:"company-desc"}],j=n(window.innerWidth<768);function we(){j.value=window.innerWidth<768}const f=n([]),Y=n(!0),F=n(!1),N=n(""),q=n(null),Q=n(null),Z=n(null),K=n(null),A=n(null),X=n(null),ee=n(!1),te=n(!1),x=n(""),P=n(""),le=n(!1),ae=n(!1),B=n(""),M=n(""),oe=n(null),se=n(null),y=n(""),G=n("date-desc"),w=n(null),O=n(!1),U=n(null),I=n(null),m=n(1),ie=n(10),b=n(0),z=n(0),be=n(!1),he=n(!1),ke=n(!1),Be=H(()=>{const o=[];let d=Math.max(1,m.value-Math.floor(2.5)),t=Math.min(z.value,d+5-1);t-d<4&&(d=Math.max(1,t-5+1));for(let r=d;r<=t;r++)o.push(r);return o});ve(G,()=>{m.value=1,$()}),ve(w,()=>{m.value=1,$()});let ne=null;ve(y,()=>{ne&&clearTimeout(ne),ne=setTimeout(()=>{m.value=1,$()},800)}),et(async()=>{window.addEventListener("resize",we),ze(),De(),Te(),await $()}),tt(()=>{window.removeEventListener("resize",we),x.value&&URL.revokeObjectURL(x.value),P.value&&URL.revokeObjectURL(P.value)});function re(o){o<1||o>z.value||(m.value=o,$(),window.scrollTo({top:0,behavior:"smooth"}))}async function $(){f.value.length>0?F.value=!0:Y.value=!0,N.value="";
1try{const o=await _.getToken.value();if(!o)throw new Error("No authentication token");const e="https://resume-vault.fly.dev",d=new URLSearchParams({page:m.value.toString(),page_size:ie.value.toString(),sort_by:G.value});y.value.trim()&&d.append("search",y.value.trim()),w.value&&d.append("status",w.value);const t=await fetch(`${e}/resumes/list/all?${d.toString()}`,{headers:{Authorization:`Bearer ${o}`}});if(!t.ok)throw new Error("Failed to load resumes");const r=await t.json();f.value=r.resumes,b.value=r.pagination.total,z.value=r.pagination.total_pages,be.value=r.pagination.has_next,he.value=r.pagination.has_prev,y.value.trim()||(ke.value=b.value>0),b.value>0&&Ce.query.from==="auth"&&C.replace({name:"generate"})}catch(o){console.error("Failed to load resumes:",o),N.value=o.message||"Failed to load resumes"}finally{Y.value=!1,F.value=!1}}async function Me(o,e,d){window.posthog?.capture?.("resume_downloaded"),q.value=o;try{const t=await _.getToken.value();if(!t)throw new Error("No authentication token");const D=await fetch(`https://resume-vault.fly.dev/resumes/${o}/pdf`,{headers:{Authorization:`Bearer ${t}`}});if(!D.ok)throw new Error("Failed to download PDF");const de=await D.blob(),T=URL.createObjectURL(de),g=document.createElement("a");g.href=T,g.download=Re(e,d,"Resume"),document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(T)}catch(t){console.error("Failed to download resume:",t),await J("Failed to download resume. Please try again.")}finally{q.value=null}}async function Ge(o,e,d){window.posthog?.capture?.("cover_letter_downloaded"),Q.value=o;try{const t=await _.getToken.value();if(!t)throw new Error("No authentication token");const D=await fetch(`https://resume-vault.fly.dev/resumes/${o}/cover-letter-pdf`,{headers:{Authorization:`Bearer ${t}`}});if(!D.ok)throw new Error("Failed to download cover letter PDF");const de=await D.blob(),T=URL.createObjectURL(de),g=document.createElement("a");g.href=T,g.download=Re(e,d,"CoverLetter"),document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(T)}catch(t){console.error("Failed to download cover letter:",t),await J("Failed to download cover letter. Please try again.")}finally{Q.value=null}}async function He(o){window.posthog?.capture?.("resume_previewed"),Z.value=o,oe.value=f.value.find(e=>e.jobApplicationId===o),ee.value=!0,le.value=!0,B.value="";try{const e=await _.getToken.value();if(!e)throw new Error("No authentication token");const t=await fetch(`https://resume-vault.fly.dev/resumes/${o}/pdf`,{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)throw new Error("Failed to load preview");const r=await t.blob();x.value&&URL.revokeObjectURL(x.value),x.value=URL.createObjectURL(r)}catch(e){console.error("Failed to load preview:",e),B.value=e.message||"Failed to load preview"}finally{le.value=!1,Z.value=null}}async function Je(o){window.posthog?.capture?.("cover_letter_previewed"),K.value=o,se.value=f.value.find(e=>e.jobApplicationId===o),te.value=!0,ae.value=!0,M.value="";try{const e=await _.getToken.value();if(!e)throw new Error("No authentication token");const t=await fetch(`https://resume-vault.fly.dev/resumes/${o}/cover-letter-pdf`,{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)throw new Error("Failed to load cover letter preview");const r=await t.blob();P.value&&URL.revokeObjectURL(P.value),P.value=URL.createObjectURL(r)}catch(e){console.error("Failed to load cover letter preview:",e),M.value=e.message||"Failed to load cover letter preview"}finally{ae.value=!1,K.value=null}}function We(o){return new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ye(o){window.posthog?.capture?.("resume_deleted");const e=f.value.find(d=>d.jobApplicationId===o);U.value=o,I.value=e,O.value=!0}async function qe(){if(U.value){A.value=U.value;try{const o=await _.getToken.value();if(!o)throw new Error("No authentication token");if(!(await fetch(`https://resume-vault.fly.dev/resumes/${U.value}`,{method:"DELETE",headers:{Authorization:`Bearer ${o}`}})).ok)throw new Error("Failed to delete resume");f.value=f.value.filter(t=>t.jobApplicationId!==U.value),O.value=!1,U.value=null,I.value=null}catch(o){console.error("Failed to delete resume:",o),await J("Failed to delete resume. Please try again.")}finally{A.value=null}}}function Qe(){O.value=!1,U.value=null,I.value=null}const Ze=[{label:"Applied",value:"Applied"},{label:"Screening",value:"Screening"},{label:"Interview",value:"Interview"},{label:"Offer",value:"Offer"},{label:"Rejected",value:"Rejected"}],ue={null:{bg:"transparent",border:"var(--p-select-border-color)",text:"var(--p-text-muted-color)"},Applied:{bg:"#eff6ff",border:"#93c5fd",text:"#1d4ed8"},Screening:{bg:"#f5f3ff",border:"#c4b5fd",text:"#6d28d9"},Interview:{bg:"#fffbeb",border:"#fcd34d",text:"#b45309"},Offer:{bg:"#f0fdf4",border:"#86efac",text:"#15803d"},Rejected:{bg:"#fef2f2",border:"#fca5a5",text:"#b91c1c"}};function Ke(o){const e=ue[o]||ue.null;return{root:{style:{background:e.bg,borderColor:e.border,color:e.text,boxShadow:"none"}},label:{style:{color:e.text,fontWeight:"500"}},dropdown:{style:{color:e.text}}}}async function Xe(o,e){X.value=o;
1try{const d=await _.getToken.value();if(!d)throw new Error("No authentication token");if(!(await fetch(`https://resume-vault.fly.dev/resumes/${o}/status`,{method:"PATCH",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({status:e})})).ok)throw new Error("Failed to update status")}catch(d){console.error("Failed to update status:",d),await $()}finally{X.value=null}}return(o,e)=>{const d=ot("router-link");return i(),u("div",bt,[a(_).isSignedIn.value?(i(),u(S,{key:1},[l("div",Lt,[e[23]||(e[23]=l("div",null,[l("h1",null,"Your Vault"),l("p",{class:"page-description"}," View and download all your previously generated documents. ")],-1)),b.value>0||y.value?(i(),k(a(p),{key:0,icon:"pi pi-plus-circle",label:"Generate New",size:"small",onClick:e[0]||(e[0]=t=>a(C).push({name:"generate"}))})):c("",!0)]),a(ge)!=="free"?(i(),u("div",_t,[Ee.value?(i(),u(S,{key:0},[s(a(L),{width:"5rem",height:"1rem"}),s(a(V),{layout:"vertical"}),s(a(L),{width:"6rem",height:"1rem"}),s(a(V),{layout:"vertical"}),s(a(L),{width:"6rem",height:"1rem"})],64)):(i(),u(S,{key:1},[l("span",Rt,v(a(Se)),1),s(a(V),{layout:"vertical"}),l("div",Ct,[e[24]||(e[24]=l("i",{class:"pi pi-file"},null,-1)),e[25]||(e[25]=l("span",null,"Generated",-1)),l("strong",null,v(a(je)),1)]),s(a(V),{layout:"vertical"}),l("div",xt,[e[26]||(e[26]=l("i",{class:"pi pi-chart-line"},null,-1)),e[27]||(e[27]=l("span",null,"Remaining",-1)),l("strong",{class:Le({"unlimited-highlight":a(W)===null})},v(a(W)===null?"â Unlimited":a(W)),3)])],64)),e[28]||(e[28]=l("div",{class:"overview-spacer"},null,-1)),Ve.value?(i(),k(a(p),{key:2,onClick:e[1]||(e[1]=t=>a(C).push({name:"billing"})),size:"small",severity:"secondary",outlined:"",label:"Manage Billing"})):(i(),k(a(p),{key:3,onClick:e[2]||(e[2]=t=>a(C).push({name:"billing",query:{tab:"plans"}})),size:"small",label:"Upgrade",class:"upgrade-btn"}))])):c("",!0),Y.value?(i(),u("div",Pt,[(i(),u(S,null,ce(3,t=>l("div",{key:t,style:{padding:"1.25rem",border:"1px solid var(--border-default)","border-radius":"8px"}},[l("div",Ut,[l("div",$t,[s(a(L),{width:"60%",height:"1rem",borderRadius:"6px",class:"mb-2"}),s(a(L),{width:"40%",height:"0.875rem",borderRadius:"4px",class:"mb-1"}),s(a(L),{width:"50%",height:"0.75rem",borderRadius:"4px"})]),s(a(L),{width:"4rem",height:"1.5rem",borderRadius:"6px"})]),l("div",At,[s(a(L),{width:"5rem",height:"2rem",borderRadius:"6px"}),s(a(L),{width:"5rem",height:"2rem",borderRadius:"6px"})])])),64))])):N.value?(i(),u("div",It,[e[29]||(e[29]=l("i",{class:"pi pi-exclamation-circle icon-3xl icon-danger"},null,-1)),l("p",null,v(N.value),1),s(a(p),{onClick:$,severity:"secondary",outlined:"",size:"small",label:"Retry"})])):!ke.value&&b.value===0&&!y.value&&!w.value?(i(),u("div",St,[e[30]||(e[30]=l("i",{class:"pi pi-file-plus empty-state-icon"},null,-1)),e[31]||(e[31]=l("h3",{class:"empty-state-title"},"No resumes yet",-1)),e[32]||(e[32]=l("p",{class:"empty-state-text"},"Generate your first tailored resume in seconds.",-1)),s(a(p),{size:"small",icon:"pi pi-plus-circle",label:"Generate New",onClick:e[3]||(e[3]=t=>a(C).push({name:"generate"}))})])):(i(),u("div",jt,[l("div",Ft,[s(a(nt),{class:"search-field"},{default:h(()=>[s(a(rt),{class:"pi pi-search"}),s(a(ut),{modelValue:y.value,"onUpdate:modelValue":e[4]||(e[4]=t=>y.value=t),placeholder:"Search by company, or position",class:"search-input"},null,8,["modelValue"])]),_:1}),l("div",Ot,[e[33]||(e[33]=l("label",{for:"sort-select"},"Sort by:",-1)),s(a(pe),{modelValue:G.value,"onUpdate:modelValue":e[5]||(e[5]=t=>G.value=t),options:Ne,optionLabel:"label",optionValue:"value",inputId:"sort-select",class:"sort-select"},null,8,["modelValue"])]),s(a(pe),{modelValue:w.value,"onUpdate:modelValue":e[6]||(e[6]=t=>w.value=t),options:[{label:"Applied",value:"Applied"},{label:"Screening",value:"Screening"},{label:"Interview",value:"Interview"},{label:"Offer",value:"Offer"},{label:"Rejected",value:"Rejected"}],"option-label":"label","option-value":"value",placeholder:"All Statuses","show-clear":"",class:"status-filter-select"},null,8,["modelValue"])]),b.value>0?(i(),u("p",zt," Showing "+v((m.value-1)*ie.value+1)+" - "+v(Math.min(m.value*ie.value,b.value))+" of "+v(b.value)+" resume"+v(b.value!==1?"s":""),1)):c("",!0),f.value.length===0&&!F.value?(i(),u("div",Dt,[e[34]||(e[34]=l("i",{class:"pi pi-filter empty-state-icon"},null,-1)),e[35]||(e[35]=l("h3",{class:"empty-state-title"}
1,"No applications found",-1)),l("p",Tt,v(w.value?`No applications with status "${w.value}"`:"Try adjusting your search criteria"),1),l("div",Et,[y.value?(i(),k(a(p),{key:0,onClick:e[7]||(e[7]=t=>y.value=""),severity:"secondary",outlined:"",size:"small",icon:"pi pi-times",label:"Clear Search"})):c("",!0),w.value?(i(),k(a(p),{key:1,onClick:e[8]||(e[8]=t=>w.value=null),severity:"secondary",outlined:"",size:"small",icon:"pi pi-times",label:"Clear Filter"})):c("",!0)])])):c("",!0),F.value?(i(),u("div",Vt,[...e[36]||(e[36]=[l("i",{class:"pi pi-spin pi-spinner icon-xl"},null,-1),l("p",null,"Updating results...",-1)])])):c("",!0),f.value.length>0?(i(),u("div",{key:3,class:Le(["resume-list",{"loading-list":F.value}])},[(i(!0),u(S,null,ce(f.value,t=>(i(),k(a(dt),{key:t.jobApplicationId,class:"resume-card glass-card resume-card--clickable",onClick:r=>a(C).push({name:"generate-preview",params:{jobApplicationId:t.jobApplicationId}})},{content:h(()=>[l("div",Nt,[l("div",Bt,[l("div",Mt,[l("h3",Gt,v(t.position),1),l("div",Ht,[t.generateOption==="resume-only"?(i(),k(a(_e),{key:0,value:"Resume Only",severity:"info"})):c("",!0),t.generateOption==="cover-letter-only"?(i(),k(a(_e),{key:1,value:"Cover Letter Only",severity:"warn"})):c("",!0)])]),l("div",Jt,[l("p",Wt,v(t.companyName),1)])]),s(a(pe),{"model-value":t.status||null,options:Ze,"option-label":"label","option-value":"value",placeholder:"Set Status",size:"small",disabled:X.value===t.jobApplicationId,pt:Ke(t.status),class:"status-select",onClick:e[9]||(e[9]=R(()=>{},["stop"])),onChange:r=>{t.status=r.value,Xe(t.jobApplicationId,r.value)}},{option:h(({option:r})=>[l("div",{class:"status-option",style:st({color:ue[r.value]?.text})},v(r.label),5)]),_:1},8,["model-value","disabled","pt","onChange"])]),s(a(V)),l("div",Yt,[l("div",qt,[e[37]||(e[37]=l("i",{class:"pi pi-calendar"},null,-1)),E(" "+v(We(t.createdAt)),1)]),l("div",Qt,[l("div",Zt,[t.postingLink?(i(),u("a",{key:0,href:t.postingLink,target:"_blank",rel:"noopener noreferrer",class:"posting-link-btn",title:"View job posting",onClick:e[10]||(e[10]=R(()=>{},["stop"]))},[e[38]||(e[38]=l("i",{class:"pi pi-external-link"},null,-1)),j.value?c("",!0):(i(),u("span",Xt,"Job Posting"))],8,Kt)):c("",!0),s(a(p),{icon:"pi pi-window-maximize",label:j.value?void 0:"Open Preview",severity:"secondary",text:"",size:"small",title:"View preview",onClick:R(r=>a(C).push({name:"generate-preview",params:{jobApplicationId:t.jobApplicationId}}),["stop"])},null,8,["label","onClick"])]),l("div",el,[t.generateOption!=="cover-letter-only"?(i(),u("div",tl,[s(a(p),{icon:"pi pi-eye",severity:"secondary",outlined:"",size:"small",disabled:Z.value===t.jobApplicationId,"aria-label":"Preview Resume",title:"Preview Resume",onClick:R(r=>He(t.jobApplicationId),["stop"])},null,8,["disabled","onClick"]),s(a(p),{icon:"pi pi-file-pdf",label:j.value?void 0:"Resume",severity:"secondary",outlined:"",size:"small",loading:q.value===t.jobApplicationId,onClick:R(r=>Me(t.jobApplicationId,t.companyName,t.position),["stop"])},null,8,["label","loading","onClick"])])):c("",!0),t.generateOption!=="resume-only"?(i(),u("div",ll,[s(a(p),{icon:"pi pi-eye",severity:"secondary",outlined:"",size:"small",disabled:K.value===t.jobApplicationId,"aria-label":"Preview Cover Letter",title:"Preview Cover Letter",onClick:R(r=>Je(t.jobApplicationId),["stop"])},null,8,["disabled","onClick"]),s(a(p),{icon:"pi pi-envelope",label:j.value?void 0:"Cover Letter",severity:"secondary",outlined:"",size:"small",loading:Q.value===t.jobApplicationId,onClick:R(r=>Ge(t.jobApplicationId,t.companyName,t.position),["stop"])},null,8,["label","loading","onClick"])])):c("",!0)]),s(a(p),{icon:"pi pi-trash",severity:"danger",text:"",size:"small",loading:A.value===t.jobApplicationId,onClick:R(r=>Ye(t.jobApplicationId),["stop"]),title:"Delete"},null,8,["loading","onClick"])])])]),_:2},1032,["onClick"]))),128))],2)):c("",!0),z.value>1?(i(),u("div",al,[s(a(p),{icon:"pi pi-chevron-left",label:"Previous",severity:"secondary",outlined:"",size:"small",disabled:!he.value,onClick:e[11]||(e[11]=t=>re(m.value-1))},null,8,["disabled"]),l("div",ol,[l("span",sl,"Page "+v(m.value)+" of "+v(z.value),1),l("div",il,[(i(!0),u(S,null,ce(Be.value,t=>(i(),k(a(p),{key:t,label:String(t),severity:t===m.value?void 0:"secondary",outlined:t!==m.value,size:"small",onClick:r=>re(t)},null,8,["label","severity","outlined","onClick"]))),128))])]),s(a(p),{icon:"pi pi-chevron-right",iconPos:"right",label:"Next",severity:"secondary",outlined:"",size:"small",disabled:!be.value,onClick:e[12]||(e[12]=t=>re(m.value+1))},null,8,["disabled"])])):c("",!0)])),s(a(me),{visible:ee.value,"onUpdate:visible":e[13]||(e[13]=t=>ee.value=t),header:`Resume: ${oe.value?.position} - ${oe.value?.companyName}`,modal:"",style:{width:"min(var(--dialog-preview), 95vw)",height:"90vh"},contentStyle:{flex:1,overflow:"hidden",padding:0}},{default:h(()=>[le.value?(i(),u("div",nl,[...e[39]||(e[39]=[l("i",{class:"pi pi-spin pi-spinner icon-xl"}
1,null,-1),l("p",null,"Loading preview...",-1)])])):B.value?(i(),u("div",rl,[l("p",null,v(B.value),1)])):x.value?(i(),u("iframe",{key:2,src:x.value+"#view=FitH&toolbar=0",class:"pdf-viewer",title:"Resume PDF Preview"},null,8,ul)):c("",!0)]),_:1},8,["visible","header"]),s(a(me),{visible:te.value,"onUpdate:visible":e[14]||(e[14]=t=>te.value=t),header:`Cover Letter: ${se.value?.position} - ${se.value?.companyName}`,modal:"",style:{width:"min(var(--dialog-preview), 95vw)",height:"90vh"},contentStyle:{flex:1,overflow:"hidden",padding:0}},{default:h(()=>[ae.value?(i(),u("div",dl,[...e[40]||(e[40]=[l("i",{class:"pi pi-spin pi-spinner icon-xl"},null,-1),l("p",null,"Loading cover letter preview...",-1)])])):M.value?(i(),u("div",vl,[l("p",null,v(M.value),1)])):P.value?(i(),u("iframe",{key:2,src:P.value+"#view=FitH&toolbar=0",class:"pdf-viewer",title:"Cover Letter PDF Preview"},null,8,cl)):c("",!0)]),_:1},8,["visible","header"]),s(a(me),{visible:O.value,"onUpdate:visible":e[15]||(e[15]=t=>O.value=t),header:"Delete Resume",modal:"",style:{width:"min(var(--dialog-sm), 95vw)"}},{footer:h(()=>[s(a(p),{label:"Cancel",severity:"secondary",outlined:"",size:"small",icon:"pi pi-times",onClick:Qe,disabled:A.value!==null},null,8,["disabled"]),s(a(p),{label:A.value!==null?"Deleting...":"Delete Resume",severity:"danger",size:"small",icon:"pi pi-trash",onClick:qe,disabled:A.value!==null},null,8,["label","disabled"])]),default:h(()=>[l("div",pl,[e[44]||(e[44]=l("i",{class:"pi pi-exclamation-triangle icon-lg icon-danger"},null,-1)),l("div",null,[e[43]||(e[43]=l("p",{style:{margin:"0 0 0.75rem"}},"This action cannot be undone. This will permanently delete your resume and cover letter for this application.",-1)),I.value?(i(),u("div",ml,[l("div",gl,[e[41]||(e[41]=l("span",{class:"delete-info-label"},"Position:",-1)),l("span",fl,v(I.value.position),1)]),l("div",yl,[e[42]||(e[42]=l("span",{class:"delete-info-label"},"Company:",-1)),l("span",wl,v(I.value.companyName),1)])])):c("",!0)])])]),_:1},8,["visible"]),s(wt,{visible:a(Pe),title:a(Ue),message:a($e),icon:a(Ie),actions:a(Ae),onDismiss:a(xe)}
1,null,8,["visible","title","message","icon","actions","onDismiss"])],64)):(i(),u("div",ht,[e[20]||(e[20]=l("i",{class:"pi pi-th-large vault-guest-icon"},null,-1)),e[21]||(e[21]=l("h2",null,"Your Vault",-1)),e[22]||(e[22]=l("p",null,"Every resume and cover letter you generate gets saved here, ready to download anytime. Sign up to get started.",-1)),s(d,{to:"/sign-up",class:"vault-guest-cta"},{default:h(()=>[...e[16]||(e[16]=[E("Sign Up Free â",-1)])]),_:1}),l("span",kt,[e[18]||(e[18]=E("or ",-1)),s(d,{to:"/sign-in",class:"vault-guest-signin"},{default:h(()=>[...e[17]||(e[17]=[E("sign in",-1)])]),_:1}),e[19]||(e[19]=E(" if you already have an account",-1))])]))])}}},Pl=vt(bl,[["__scopeId","data-v-67417f29"]]);export{Pl 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.