PageSourceSearch

https://www.aissence.ai/_next/static/chunks/51883-080655e38c789c13.js?dpl=dpl_sFceddStETTQ9fKwUGyBr4Ak7Pyb

js aissence.ai collected 2026-10-05 13:37:44 UTC 14,400 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51883],{8607:(e,t,r)=>{r.d(t,{Bm:()=>d,HY:()=>i,Pn:()=>l,XL:()=>f,_E:()=>c,_h:()=>u,cp:()=>h,gg:()=>p,mV:()=>m});let a="aissence_start_intent",s="pending",n="resume",l={practice:"/dashboard/mock-interview/quick",copilot:"/dashboard/desktop-app",jobs:"/dashboard/jobs"};function i(e){try{localStorage.setItem(a,e)}catch{}}async function o(e,t){let r=await new Promise((e,t)=>{let r=indexedDB.open("aissence-start",1);r.onupgradeneeded=()=>r.result.createObjectStore(s),r.onsuccess=()=>e(r.result),r.onerror=()=>t(r.error)});try{return await new Promise((a,n)=>{let l=t(r.transaction(s,e).objectStore(s));l.onsuccess=()=>a(l.result),l.onerror=()=>n(l.error)})}finally{r.close()}}async function c(e){try{await o("readwrite",t=>t.put(e,n))}catch{}}async function d(){try{let e=await o("readonly",e=>e.get(n));return e instanceof Blob?e:null}catch{return null}}async function u(){try{await o("readwrite",e=>e.delete(n))}catch{}}async function m(){let e=function(){try{let e=localStorage.getItem(a);return"practice"===e||"copilot"===e||"jobs"===e?e:null}catch{return null}}(),t=await d();if(t)try{let{uploadResumeEverywhere:e}=await Promise.all([r.e(40367),r.e(35983)]).then(r.bind(r,35983)),a=t instanceof File?t:new File([t],"resume.pdf",{type:t.type});(await e(a)).ok&&await u()}catch{}try{localStorage.removeItem(a)}catch{}return e?l[e]:"/dashboard"}let x="aissence_pending_interview";function p(e){try{localStorage.setItem(x,JSON.stringify(e))}catch{}}function f(){try{let e=JSON.parse(localStorage.getItem(x)||"null");return e&&Array.isArray(e.questions)&&e.questions.length?e:null}catch{return null}}function h(){try{localStorage.removeItem(x)}catch{}}},17898:(e,t,r)=>{r.d(t,{F:()=>l});var a=r(26614);let s=new Set(["application_id","entry_surface","experiment_id","latency_ms","locale","new_state","opportunity_id","page","plan","previous_state","source","value","via"]),n={applicationId:"opportunity_id",application_id:"opportunity_id",entrySurface:"entry_surface",experimentId:"experiment_id",latencyMs:"latency_ms",newState:"new_state",opportunityId:"opportunity_id",previousState:"previous_state"};function l(e,t){try{if(/^[a-z][a-z0-9_]{1,79}$/.test(e)){let r=function(e={}){let t={};for(let[r,a]of Object.entries(e)){let e=n[r]||r;s.has(e)&&("string"==typeof a||"number"==typeof a||"boolean"==typeof a)&&(t[e]="string"==typeof a?a.slice(0,200):a)}return t}({...t,locale:function(){let e=window.location.pathname.split("/").filter(Boolean)[0];return"fr"===e||"es"===e?e:"en"}()});a.default.capture(e,r);try{let t="aissence:product-events",r=JSON.parse(window.localStorage.getItem(t)||"[]"),a=Array.isArray(r)?r.slice(-199):[];a.push({event:e,at:new Date().toISOString()}),window.localStorage.setItem(t,JSON.stringify(a)),window.dispatchEvent(new CustomEvent("aissence:product-event",{detail:{event:e}}))}catch{}}}catch{}}},51883:(e,t,r)=>{r.d(t,{ResumeStart:()=>b});var a=r(95155),s=r(12115),n=r(20063),l=r(18955),i=r(51567),o=r(45878),c=r(22747),d=r(54281),u=r(17898),m=r(90960),x=r(62125),p=r(8607);let f=/\.(pdf|docx?|txt)$/i;function h(){try{return!!localStorage.getItem("meetingcopilot_access_token")}catch{return!1}}function b(){let e=(0,l.c)("LandingSections.resumeStart"),t=(0,i.Ym)(),r=(0,n.useRouter)(),b=(0,s.useRef)(null),v=(0,s.useRef)(null),[g,j]=(0,s.useState)("upload"),[y,w]=(0,s.useState)(""),[N,_]=(0,s.useState)(null),[S,k]=(0,s.useState)(""),[C,E]=(0,s.useState)(!1),[F,I]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=(0,p.XL)();e&&(_(e),j("preview"))},[]),(0,s.useEffect)(()=>{"signin"===g&&v.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[g]);let q=async r=>{if(!r)return;if(!f.test(r.name))return void k(e("readError"));if(r.size>0xa00000)return void k(e("tooLarge"));k(""),w(r.name),j("reading"),(0,u.F)("landing_resume_added",{});let a=await m.apiService.previewResume(r,t);if(a.success&&a.data){await (0,p._E)(r),(0,p.HY)("practice");let e={questions:a.data.questions,roleTitle:a.data.currentTitle,firstName:a.data.firstName,language:a.data.language||t,yearsExperience:a.data.yearsExperience,jobCount:a.data.jobCount};(0,p.gg)(e),_(e),(0,u.F)("landing_questions_previewed",{questionCount:a.data.questions.length,jobCount:a.data.jobCount}),j("preview")}else"read_failed"===a.error?(j("upload"),w(""),k(e("readError")),b.current&&(b.current.value="")):(await (0,p._E)(r),(0,p.HY)("practice"),_(null),j("signin"))},T=async e=>{if(I(!0),(0,p.HY)(e),(0,u.F)("landing_start_clicked",{intent:e,hasResume:!!y}),h())return void r.push(await (0,p.mV)());r.push(`/auth/signup?next=${encodeURIComponent(p.Pn[e])}`)},R=async()=>
1{if((0,u.F)("landing_start_clicked",{intent:"practice",hasResume:!0,previewed:!!N}),h()){I(!0),(0,p.HY)("practice"),r.push(await (0,p.mV)());return}j("signin")};if("reading"===g)return(0,a.jsxs)("div",{className:"w-full max-w-xl rounded-2xl border border-[var(--color-border)] bg-[var(--color-surface)] p-6",role:"status","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"h-5 w-5 shrink-0 animate-spin rounded-full border-2 border-[var(--color-brand)]/30 border-t-[var(--color-brand)]","aria-hidden":"true"}),(0,a.jsx)("span",{className:"min-w-0 truncate text-sm font-semibold text-[var(--color-text-1)]",children:e("reading",{file:y})})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-[var(--color-text-3)]",children:e("readingHint")})]});if("preview"===g||"signin"===g){let t=N?[N.roleTitle,N.yearsExperience?e("years",{count:N.yearsExperience}):"",N.jobCount?e("roles",{count:N.jobCount}):""].filter(Boolean).join(" \xb7 "):"";return(0,a.jsxs)("div",{className:"w-full max-w-xl rounded-2xl border border-[var(--color-brand)]/30 bg-[var(--color-surface)] p-5 shadow-[0_12px_40px_-20px_rgba(79,70,229,.45)] sm:p-6",children:[N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[.14em] text-[var(--color-brand)]",children:e("readyKicker")}),(0,a.jsx)("h2",{className:"mt-1 text-lg font-semibold text-[var(--color-text-1)]",children:N.firstName?e("readyTitleNamed",{name:N.firstName}):e("readyTitle")}),t&&(0,a.jsx)("p",{className:"mt-1 text-sm text-[var(--color-text-3)]",children:e("builtFrom",{facts:t})}),(0,a.jsx)("ol",{className:"mt-4 space-y-3",children:N.questions.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-3",children:[(0,a.jsx)("span",{className:"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[var(--color-brand-subtle)] text-xs font-semibold text-[var(--color-brand)]",children:t+1}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block text-sm leading-relaxed text-[var(--color-text-1)]",children:e.question}),(0,a.jsx)("span",{className:"mt-0.5 block text-xs text-[var(--color-text-3)]",children:e.why})]})]},t))})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"flex min-w-0 items-center gap-2 text-sm font-semibold text-[var(--color-text-1)]",children:[(0,a.jsx)(o.i,{size:18,className:"shrink-0","aria-hidden":"true"}),(0,a.jsx)("span",{className:"truncate",children:y})]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-[var(--color-text-3)]",children:e("saved")})]}),(0,a.jsxs)("div",{ref:v,className:"mt-5 scroll-mb-6 border-t border-[var(--color-border)] pt-5",children:["preview"===g?(0,a.jsxs)("button",{type:"button",disabled:F,onClick:()=>void R(),className:"btn-cta flex w-full items-center justify-center gap-2",children:[e("startCta")," ",(0,a.jsx)(c.Q,{size:16,weight:"bold","aria-hidden":"true"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-3 text-sm font-semibold text-[var(--color-text-1)]",children:e("signInPrompt")}),(0,a.jsx)(x.s,{source:"landing_preview"})]}),(0,a.jsxs)("p",{className:"mt-3 text-xs text-[var(--color-text-3)]",children:[e("aboutTime")," ",(0,a.jsx)("button",{type:"button",onClick:()=>{j("upload"),_(null),w(""),k(""),b.current&&(b.current.value="")},className:"font-medium text-[var(--color-brand)] underline-offset-4 hover:underline",children:e("differentResume")})]})]})]})}return(0,a.jsxs)("div",{className:"w-full max-w-xl",children:[(0,a.jsxs)("label",{onDragOver:e=>{e.preventDefault(),E(!0)},onDragLeave:()=>E(!1),onDrop:e=>{e.preventDefault(),E(!1),q(e.dataTransfer.files?.[0])},className:`flex min-h-[132px] cursor-pointer flex-col items-center justify-center gap-2 rounded-2xl border-2 border-dashed px-5 py-6 text-center transition-colors focus-within:ring-2 focus-within:ring-[var(--focus-ring)] ${C?"border-[var(--color-brand)] bg-[var(--color-brand-subtle)]":"border-[var(--color-brand)]/50 bg-[var(--color-surface)] hover:border-[var(--color-brand)] hover:bg-[var(--color-brand-subtle)]"}`,children:[(0,a.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-[var(--color-brand)] text-white","aria-hidden":"true",children:(0,a.jsx)(d.C,{size:22,weight:"bold"})}),(0,a.jsx)("span",{className:"text-base font-semibold text-[var(--color-text-1)]",children:e("upload")}),(0,a.jsx)("span",{className:"text-xs text-[var(--color-text-3)]",children:e("uploadHint")}),(0,a.jsx)("input",{ref:b,type:"file",accept:".pdf,.doc,.docx,.txt",className:"sr-only",onChange:e=>void q(e.target.files?.[0])})]}),S&&(0,a.jsx)("p",{className:"mt-2 text-sm text-[var(--color-error)]",role:"alert",children:S}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 text-sm",children:[(0,a.jsx)("button",{type:"button",disabled:F,onClick:()=>void T("practice"),className:"font-medium text-[var(--color-text-2)] underline-offset-4 hover:text-[var(--color-text-1)] hover:underline",children:e("noResume")}),(0,a.jsx)("button",{type:"button",disabled:F,onClick:()=>void T("copilot"),className:"font-medium text-[var(--color-text-2)] underline-offset-4 hover:text-[var(--color-text-1)] hover:underline",children:e("copilot")}),(0,a.jsx)("button",{type:"button",disabled:F,onClick:()=>void T("jobs"),className:"font-medium text-[var(--color-brand)] underline-offset-4 hover:underline",children:e("jobs")})]}),(0,a.jsx)("p",{className:"mt-3 text-xs text-[var(--color-text-3)]",children:e("privacy")})]})}},62125:(e,t,r)=>{r.d(t,{s:()=>m});var a=r(95155),s=r(12115),n=r(18955),l=r(51567),i=r(37164),o=r(49898),c=r(90960),d=r(17898),u=r(8607);function m({source:e,desktop:t=!1,googleLabel:r,submitLabel:m}
1){let x=(0,n.c)("MagicSignIn"),p=(0,l.Ym)(),[f,h]=(0,s.useState)(""),[b,v]=(0,s.useState)("idle"),[g,j]=(0,s.useState)(""),[y,w]=(0,s.useState)(0),[N,_]=(0,s.useState)(!1),S=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(y<=0)return;let e=window.setTimeout(()=>w(e=>e-1),1e3);return()=>window.clearTimeout(e)},[y]);let k=async(r=!1)=>{let a=(S.current?.value??f).replace(/[​-‍ ]/g,"").trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return void j(x("invalidEmail"));h(a),j(""),r||v("sending");let s=(0,u.XL)(),n=await Promise.race([(0,u.Bm)(),new Promise(e=>setTimeout(()=>e(null),1500))]);(0,d.F)("signup_method_selected",{method:"magic_link",entryFeature:e});let l=await c.apiService.requestMagicLink(a,{questions:s?.questions,roleTitle:s?.roleTitle,firstName:s?.firstName,language:s?.language||p,desktop:t,resume:n});if(l.success)v("sent"),w(30),_(r),(0,d.F)("magic_link_sent",{source:e,resend:r});else{v(r?"sent":"idle");let t=l.error||"send_failed";(0,d.F)("magic_link_failed",{source:e,reason:t}),j("rate_limited"===t?x("rateLimited"):"invalid_email"===t?x("invalidEmail"):"unavailable"===t?x("unavailable"):"network"===t?x("network"):x("sendFailed"))}};return"sent"===b?(0,a.jsxs)("div",{className:"rounded-2xl border border-[var(--color-border)] bg-[var(--color-surface)] p-5 text-center",role:"status","aria-live":"polite",children:[(0,a.jsx)(i.v,{size:32,className:"mx-auto mb-2 text-[var(--color-brand)]","aria-hidden":"true"}),(0,a.jsx)("p",{className:"text-base font-semibold text-[var(--color-text-1)]",children:x("sentTitle")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-[var(--color-text-2)]",children:x.rich("sentBody",{email:f.trim(),strong:e=>(0,a.jsx)("strong",{className:"text-[var(--color-text-1)]",children:e})})}),(0,a.jsxs)("p",{className:"mt-3 text-xs text-[var(--color-text-3)]",children:[x("sentHelp")," ",(0,a.jsx)("button",{type:"button",disabled:y>0,onClick:()=>void k(!0),className:"font-medium text-[var(--color-brand)] underline-offset-4 hover:underline disabled:cursor-default disabled:text-[var(--color-text-3)] disabled:no-underline",children:y>0?x("resendIn",{seconds:y}):x("resend")})," \xb7 ",(0,a.jsx)("button",{type:"button",onClick:()=>{v("idle"),j("")},className:"font-medium text-[var(--color-brand)] underline-offset-4 hover:underline",children:x("differentEmail")})]}),N&&y>26&&(0,a.jsx)("p",{className:"mt-2 text-xs text-[var(--color-success,#16a34a)]",children:x("resent")}),g&&(0,a.jsx)("p",{className:"mt-2 text-sm text-[var(--color-error)]",role:"alert",children:g})]}):(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("a",{href:`https://api.aissence.ai/auth/google${t?"?state=desktop":""}`,onClick:()=>(0,d.F)("signup_method_selected",{method:"google",entryFeature:e}),className:"btn-cta flex w-full items-center justify-center gap-2",children:[(0,a.jsx)(o.J,{size:18,weight:"bold","aria-hidden":"true"}),r||x("google")]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 text-xs text-[var(--color-text-3)]","aria-hidden":"true",children:[(0,a.jsx)("span",{className:"h-px flex-1 bg-[var(--color-border)]"}),x("or"),(0,a.jsx)("span",{className:"h-px flex-1 bg-[var(--color-border)]"})]}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),k()},className:"flex flex-col gap-2",noValidate:!0,children:[(0,a.jsx)("label",{htmlFor:`magic-email-${e}`,className:"sr-only",children:x("emailLabel")}),(0,a.jsx)("input",{ref:S,id:`magic-email-${e}`,type:"email",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,autoComplete:"email",inputMode:"email",value:f,onChange:e=>{h(e.target.value),g&&j("")},placeholder:x("emailPlaceholder"),className:"form-input w-full","aria-invalid":!!g,"aria-describedby":g?`magic-error-${e}`:void 0}),(0,a.jsx)("button",{type:"submit",disabled:"sending"===b,className:"btn-cta-outline w-full",children:"sending"===b?x("sending"):m||x("send")})]}),g&&(0,a.jsx)("p",{id:`magic-error-${e}`,className:"text-sm text-[var(--color-error)]",role:"alert",children:g}),(0,a.jsx)("p",{className:"text-xs text-[var(--color-text-3)]",children:x("note")})]})}}}]);

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.