PageSourceSearch

https://ailikeme.ai/static/6540.6987189dca82c93d787f.js

js ailikeme.ai collected 2026-10-05 15:30:07 UTC 23,096 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[598,872,1933,4788,6540,9201,9989],{90598(e,t,r){r.r(t);var n=r(39471),a=r(41231),i=r(51794),s=r(79989),l=r(54788);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const v="[This answer is skipped]",p={ready:"Ready when you are",ai_speaking:"Interviewer is speaking…",listening:"Listening — speak now",thinking:"Thinking…",complete:"Interview complete",error:"Something went wrong"};r.d(t,["default",0,e=>{let t=e.initial,r=e.strings,o=e.sttParams,u=e.onComplete,d=e.onExit;const b=!0===t.showTranscript,g=m((0,n.useState)("ready"),2),f=g[0],y=g[1],h=m((0,n.useState)(t.session),2),_=h[0],w=h[1],E=m((0,n.useState)(t.transcript||[]),2),k=E[0],N=E[1],S=m((0,n.useState)(""),2),C=S[0],T=S[1],q=m((0,n.useState)(""),2),A=q[0],I=q[1],j=(0,n.useRef)(null),O=(0,n.useRef)(null),x=(0,n.useRef)(""),P=(0,n.useRef)(""),R=(0,n.useRef)(null),L=(0,n.useRef)(!0),U=(0,n.useRef)(t.session);U.current=_;const B=(0,n.useRef)(u),M=(0,n.useRef)(d);B.current=u,M.current=d;const Y=()=>{O.current&&(clearTimeout(O.current),O.current=null)},G=()=>{try{j.current&&j.current.abort()}catch(e){}j.current=null},W=()=>{try{R.current&&R.current.abort()}catch(e){}R.current=null};(0,n.useEffect)(()=>(L.current=!0,()=>{L.current=!1,Y(),G(),W()}),[]);const $=async e=>{if(!L.current)return;y("ai_speaking"),T(""),W();const t=new AbortController;R.current=t,await(0,s.streamInterviewTTS)(e,{signal:t.signal}),L.current&&!t.signal.aborted&&D()},D=()=>{if(!L.current)return;x.current="",P.current="",T(""),y("listening");const e=new a.A((0,s.deepgramTokenUrl)(),{model:o&&o.deepgram_model,language:o&&o.deepgram_language});e.onresult=e=>{const t=e.results[e.resultIndex],r=t[0].transcript;F(),t.isFinal?(x.current=(x.current+" "+r).trim(),P.current="",T("")):(P.current=r,T(r))},e.onerror=()=>{},e.onend=()=>{},j.current=e,e.start()},F=()=>{Y(),O.current=setTimeout(z,4e3)},z=()=>{const e=(x.current||P.current||"").trim();e&&Q(e)},Q=async function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skip,r=void 0!==t&&t;Y(),G(),r&&W(),T(""),y("thinking");const n=U.current;N(t=>[...t,{seq:n.seq,speaker:"companion",kind:"answer",text:r?v:e}]);try{const t=(await i._d.SubmitInterviewTurn(c({session_id:n.session_id,seq:n.seq,transcript_text:r?v:e},r?{skip:!0}:{}))).data;if(!L.current)return;H(t)}catch(e){if(e&&e.response&&409===e.response.status)return void J();I("We couldn't submit your answer. Please retry."),y("error")}},H=e=>{w(t=>c(c({},t),{},{seq:e.seq,question_index:e.question_index,total_questions:e.total_questions,progress:e.progress}));const t="advance"===e.action?"scripted_question":"complete"===e.action?"closing":"follow_up";if(N(r=>[...r,{seq:e.seq-1,speaker:"interviewer",kind:t,text:e.speak_text}]),"complete"===e.action){y("complete");const t=new AbortController;return R.current=t,void(0,s.streamInterviewTTS)(e.speak_text,{signal:t.signal}).finally(()=>{L.current&&B.current()})}$(e.speak_text)},J=async()=>{try{const e=(await i._d.GetInterviewState()).data;if(!L.current)return;if("completed"===e.status)return void B.current();const t={session_id:e.session_id,seq:e.seq,question_index:e.question_index,total_questions:e.total_questions,progress:e.progress};U.current=t,w(t),N(e.transcript||[]),$(e.speak_text)}catch(e){I("Lost sync with the interview. Please reload the page."),y("error")}},V=Math.round(100*(_.progress||0)),Z=e=>
1r&&r["status_".concat(e)]||p[e],K="error"===f?A||Z("error"):Z(f),X="listening"===f||"ai_speaking"===f,ee="ready"===f?n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:()=>{t.speakText?$(t.speakText):D()}},t.resumed?"Resume interview":"Begin"):"error"===f?n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:J},"Retry"):X?n.createElement("button",{className:"iv-btn iv-btn--ghost",onClick:()=>{"listening"!==f&&"ai_speaking"!==f||Q("",{skip:!0})},title:"Move on without answering this question"},"Skip question"):null;return n.createElement("div",{className:"iv-call"},n.createElement("div",{className:"iv-call__progress","aria-label":"Interview progress"},n.createElement("div",{className:"iv-call__bar",style:{width:"".concat(V,"%")}})),n.createElement("div",{className:"iv-call__meta"},n.createElement("span",null,"Question ",_.question_index," of ",_.total_questions),n.createElement("button",{className:"iv-link",onClick:()=>{Y(),G(),W(),M.current()}},"End")),b?n.createElement(n.Fragment,null,n.createElement("div",{className:"iv-call__thread"},n.createElement(l.default,{turns:k,interim:C})),n.createElement("div",{className:"iv-call__dock"},n.createElement("div",{className:"iv-orb iv-orb--".concat(f)}),n.createElement("div",{className:"iv-status",role:"status","aria-live":"polite"},K),ee)):n.createElement("div",{className:"iv-call__stage"},n.createElement("div",{className:"iv-stage__orb iv-stage__orb--".concat(f)},n.createElement("span",{className:"iv-stage__ring"}),n.createElement("span",{className:"iv-stage__ring iv-stage__ring--lag"}),n.createElement("span",{className:"iv-stage__core"})),n.createElement("div",{className:"iv-stage__status",role:"status","aria-live":"polite"},K),ee))}])},89201(e,t,r){r.r(t);var n=r(39471);const a={disclosure_title:"Your AI voice interview",disclosure_lead:"You're about to be interviewed by an AI — not a person. It reads each question aloud, and you answer by speaking. Your spoken answers are transcribed and saved to help build your companion.",disclosure_point_ai:"An AI conducts this interview and decides the follow-up questions.",disclosure_point_mic:"Your microphone is only active while it's your turn to speak.",disclosure_point_transcript:"A full written transcript of your answers is kept.",disclosure_point_resume:"You can stop any time and resume right where you left off.",disclosure_cancel:"Not now",disclosure_continue:"I understand — continue"};r.d(t,["default",0,e=>{let t=e.onAcknowledge,r=e.onCancel,i=e.strings;const s=e=>i&&i[e]||a[e];return n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},s("disclosure_title")),n.createElement("p",{className:"iv-lead"},s("disclosure_lead")),n.createElement("ul",{className:"iv-list"},n.createElement("li",null,s("disclosure_point_ai")),n.createElement("li",null,s("disclosure_point_mic")),n.createElement("li",null,s("disclosure_point_transcript")),n.createElement("li",null,s("disclosure_point_resume"))),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--ghost",onClick:r},s("disclosure_cancel")),n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:t},s("disclosure_continue"))))}])},20872(e,t,r){r.r(t);var n=r(39471),a=r(51794);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,["default",0,e=>{let t=e.onSelect,r=e.onCancel;
1const s=i((0,n.useState)(null),2),l=s[0],o=s[1],c=i((0,n.useState)("en"),2),u=c[0],m=c[1],d=i((0,n.useState)(""),2),v=d[0],p=d[1];if((0,n.useEffect)(()=>{let e=!0;return a._d.GetInterviewLanguages().then(t=>{let r=t.data;e&&(o(r.languages||[]),m(r.default||"en"))}).catch(()=>{e&&(p("We couldn't load the language list. Your interview will be in English."),o([]))}),()=>{e=!1}},[]),null===l)return n.createElement("div",{className:"iv-card iv-card--center"},n.createElement("div",{className:"iv-spinner"}),n.createElement("p",{className:"iv-lead"},"Loading languages…"));const b=l.find(e=>e.code===u);return n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},"Choose your interview language"),n.createElement("p",{className:"iv-lead"},"The interviewer will speak and listen in this language, and your answers are saved exactly as you say them. This can’t be changed once the interview starts."),v&&n.createElement("p",{className:"iv-warn"},v),l.length>0&&n.createElement("label",{className:"iv-field"},n.createElement("span",{className:"iv-field__label"},"Language"),n.createElement("select",{className:"iv-select",value:u,onChange:e=>m(e.target.value),"aria-label":"Interview language"},l.map(e=>n.createElement("option",{key:e.code,value:e.code},e.native_label,e.native_label!==e.label?" — ".concat(e.label):"")))),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--ghost",onClick:r},"Not now"),n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:()=>t(l.length?u:"en")},b&&"en"!==b.code?"Continue in ".concat(b.native_label):"Continue in English")))}])},51933(e,t,r){r.r(t);var n=r(39471),a=r(41231),i=r(79989),s=r(77067);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const c={calibration_title:"Quick mic check",calibration_lead:"Read this sentence aloud so we can confirm your microphone works:",calibration_sentence:"The quick brown fox jumps over the lazy dog.",calibration_pass:"Great — your mic sounds good.",calibration_fail:"That didn't match closely. Try again, a bit slower, in a quiet spot."};r.d(t,["default",0,e=>{let t=e.onReady,r=e.onCancel,o=e.strings,u=e.sttParams;const m=l((0,n.useState)("idle"),2),d=m[0],v=m[1],p=l((0,n.useState)("service"),2),b=p[0],g=p[1],f=l((0,n.useState)(""),2),y=f[0],h=f[1],_=(0,n.useRef)(null),w=(0,n.useRef)(""),E=e=>o&&o[e]||c[e],k=E("calibration_sentence"),N=()=>{try{_.current&&_.current.abort()}catch(e){}_.current=null};(0,n.useEffect)(()=>()=>N(),[]);const S=()=>{w.current="",h(""),v("listening");const e=new a.A((0,i.deepgramTokenUrl)(),{model:u&&u.deepgram_model,language:u&&u.deepgram_language});e.onresult=e=>{const t=e.results[e.resultIndex],r=t[0].transcript;t.isFinal&&(w.current=(w.current+" "+r).trim()),h((w.current+" "+(t.isFinal?"":r)).trim())},e.onerror=e=>{const t=e&&e.error||"network";g("not-allowed"===t||"audio-capture"===t?"mic":"service"),v("error"),N()},_.current=e,e.start()};return n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},E("calibration_title")),n.createElement("p",{className:"iv-lead"},E("calibration_lead")),n.createElement("blockquote",{className:"iv-quote"},"“",k,"”"),"listening"===d&&n.createElement("p",{className:"iv-heard"},"Heard: ",n.createElement("em",null,y||"…")),"pass"===d&&n.createElement("p",{className:"iv-ok"},E("calibration_pass")),"fail"===d&&n.createElement("p",{className:"iv-warn"},E("calibration_fail")),"error"===d&&"mic"===b&&n.createElement("p",{className:"iv-warn"}
1,"We couldn’t access your microphone. Check the browser’s mic permission and retry."),"error"===d&&"service"===b&&n.createElement("p",{className:"iv-warn"},"We couldn’t reach the transcription service. Check your internet connection and try again."),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--ghost",onClick:r},"Back"),"idle"===d&&n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:S},"Start mic check"),"listening"===d&&n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:()=>{N();const e=(0,s.calibrationMatch)(k,w.current),t=e.ratio,r=e.threshold;v(t>=r?"pass":"fail")}},"I’ve read it"),("fail"===d||"error"===d)&&n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:S},"Try again"),"pass"===d&&n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:t},"Begin interview")))}])},54788(e,t,r){r.r(t);var n=r(39471);r.d(t,["default",0,e=>{let t=e.turns,r=void 0===t?[]:t,a=e.interim,i=void 0===a?"":a;const s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{s.current&&s.current.scrollIntoView({behavior:"smooth"})},[r,i]),n.createElement("div",{className:"iv-thread"},r.map((e,t)=>n.createElement("div",{key:null!=e.seq?e.seq:"t-".concat(t),className:"iv-bubble iv-bubble--".concat(e.speaker)},n.createElement("div",{className:"iv-bubble__who"},"interviewer"===e.speaker?"Interviewer":"You"),n.createElement("div",{className:"iv-bubble__text"},e.text))),i?n.createElement("div",{className:"iv-bubble iv-bubble--companion iv-bubble--interim"},n.createElement("div",{className:"iv-bubble__who"},"You"),n.createElement("div",{className:"iv-bubble__text"},i)):null,n.createElement("div",{ref:s}))}])},26540(e,t,r){r.r(t);var n=r(39471),a=r(32972),i=r(51794),s=r(20872),l=r(89201),o=r(51933),c=r(90598);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,["default",0,()=>{const e=(0,a.Zp)(),t=()=>e("/app/contributor"),r=u((0,n.useState)("loading"),2),m=r[0],d=r[1],v=u((0,n.useState)(null),2),p=v[0],b=v[1],g=u((0,n.useState)(""),2),f=g[0],y=g[1],h=u((0,n.useState)("en"),2),_=h[0],w=h[1],E=u((0,n.useState)(null),2),k=E[0],N=E[1],S=u((0,n.useState)(null),2),C=S[0],T=S[1],q=(e,t)=>({strings:e.strings||null,sttParams:{deepgram_model:e.deepgram_model,deepgram_language:e.deepgram_language},language:e.language||"en",session:{session_id:e.session_id,seq:e.seq,question_index:e.question_index,total_questions:e.total_questions,progress:e.progress},transcript:e.transcript||[{seq:0,speaker:"interviewer",kind:"scripted_question",text:e.speak_text}],speakText:e.speak_text,showTranscript:!0===e.show_transcript,resumed:t});(0,n.useEffect)(()=>{let e=!0;return i._d.GetInterviewState().then(t=>{let r=t.data;if(e)if(r&&"in_progress"===r.status){const e=q(r,!0);w(e.language),N(e.strings),T(e.sttParams),b(e),d("call")}else r&&"completed"===r.status?d("already_complete"):d("language")}).catch(t=>{var r;e&&(t&&t.response&&403===t.response.status?(y((null===(r=t.response.data)||void 0===r?void 0:r.detail)||"You don't have access to the interview."),d("ineligible")):d("language"))}),()=>{e=!1}},[]);const A=()=>{d("loading"),i._d.StartInterview({language:_}).then(e=>{let t=e.data;const r=q(t,Boolean(t.transcript));r.strings&&N(r.strings),r.sttParams&&T(r.sttParams),b(r),d("call")}).catch(e=>{const t=e&&e.response&&e.response.status,r=e&&e.response&&e.response.data&&e.response.data.detail;403===t?(y(r||"The interview isn't available for your account yet."),d("ineligible")):409===t?(y(r||"No interview questions are configured yet."),d("error")):(y("We couldn't start the interview. Please try again."),d("error"))})};return n.createElement("div",{className:"iv-root"},"loading"===m&&n.createElement("div",{className:"iv-card iv-card--center"},n.createElement("div",{className:"iv-spinner"}),n.createElement("p",{className:"iv-lead"},"Preparing your interview…")),"language"===m&&n.createElement(s.default,{onSelect:e=>{w(e),d("loading"),i._d.GetInterviewScreenStrings(e).then(e=>{let t=e.data;N(t.strings||null),T({deepgram_model:t.deepgram_model,deepgram_language:t.deepgram_language}),d("disclosure")}).catch(()=>{N(null),T(null),d("disclosure")})},onCancel:t}),"disclosure"===m&&n.createElement(l.default,{onAcknowledge:()=>d("calibration"),onCancel:()=>d("language"),strings:k}),"calibration"===m&&n.createElement(o.default,{onReady:A,onCancel:()=>d("disclosure"),strings:k,sttParams:C}
1),"call"===m&&p&&n.createElement(c.default,{initial:p,strings:k,sttParams:C,onComplete:()=>d("complete"),onExit:t}),"complete"===m&&n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},"Interview complete 🎉"),n.createElement("p",{className:"iv-lead"},"Thank you — your answers have been saved and will help shape your companion."),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:t},"Back to dashboard"))),"already_complete"===m&&n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},"You've already completed your interview ✅"),n.createElement("p",{className:"iv-lead"},"Thanks — your AI voice interview is done and your answers are saved. There's nothing more to do here; your responses are already helping shape your companion."),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:t},"Back to dashboard"))),"ineligible"===m&&n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},"Interview unavailable"),n.createElement("p",{className:"iv-lead"},f),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:t},"Back to dashboard"))),"error"===m&&n.createElement("div",{className:"iv-card"},n.createElement("h1",{className:"iv-title"},"Something went wrong"),n.createElement("p",{className:"iv-lead"},f),n.createElement("div",{className:"iv-actions"},n.createElement("button",{className:"iv-btn iv-btn--ghost",onClick:t},"Back"),n.createElement("button",{className:"iv-btn iv-btn--primary",onClick:A},"Try again"))))}])},79989(e,t,r){r.r(t),r.d(t,{streamInterviewTTS:()=>i});var n=r(83300);const a=()=>"https://beta.ailikeme.ai/".replace(/\/+$/,"");function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.signal,i=t.onPlaybackStart;const s=new Audio;let l=!1;return new Promise(t=>{const o=()=>{l||(l=!0,clearTimeout(c),s.onended=null,s.onerror=null,t())},c=setTimeout(o,6e4);s.onended=o,s.onerror=o,r&&r.addEventListener("abort",()=>{try{s.pause()}catch(e){}o()},{once:!0}),async function(){const t=(0,n.c4)(),l=await fetch("".concat(a(),"/interface/tts-stream"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Token ".concat(t)},body:JSON.stringify({text:e}),signal:r});if(!l.ok)throw new Error("tts_failed_".concat(l.status));if("undefined"==typeof window||void 0===window.MediaSource||!window.MediaSource.isTypeSupported("audio/mpeg")||!l.body){const e=await l.blob();if(r&&r.aborted)return;return s.src=URL.createObjectURL(e),i&&i(),void s.play().catch(()=>{})}const o=new MediaSource;s.src=URL.createObjectURL(o),await new Promise((e,t)=>{o.addEventListener("sourceopen",e,{once:!0}),o.addEventListener("error",()=>t(new Error("mse_error")),{once:!0})});const c=o.addSourceBuffer("audio/mpeg"),u=l.body.getReader();let m=!1;for(;;){const e=await u.read(),t=e.done,n=e.value;if(r&&r.aborted)return;if(t)break;await new Promise((e,t)=>{c.addEventListener("updateend",e,{once:!0}),c.addEventListener("error",t,{once:!0});try{c.appendBuffer(n)}catch(e){t(e)}}),m||(m=!0,i&&i(),s.play().catch(()=>{}))}if("open"===o.readyState)try{o.endOfStream()}catch(e){}}().catch(()=>o())})}r.d(t,["deepgramTokenUrl",0,()=>"".concat(a(),"/interface/deepgram-token")])}}]);

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.