PageSourceSearch

https://www.interviewghost.ai/assets/HrChat-t6WqAfjN.js

js interviewghost.ai collected 2026-10-02 01:12:27 UTC 38,597 bytes, 19 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jspdf.es.min-CrwYuJiK.js","assets/index-rYd6JV6i.js","assets/react-vendor-CJf-GESP.js","assets/index-CDgbnk7V.css"])))=>i.map(i=>d[i]);
2import{Z as ve,b4 as Fe,j as Ce,u as Ee,a7 as _e}from"./index-rYd6JV6i.js";import{r as y,j as e,R as Ie}from"./react-vendor-CJf-GESP.js";import{u as Ae}from"./useHrProfileSummary-BvgF702V.js";import{r as $,s as ze}from"./sanitizeHtml-BsV6hzJr.js";import"./hrAssetUtils-D5u4m235.js";import"./purify.es-D4HdooR0.js";const Be="/api/v1/b2b/hr-chatbot",K=`${ve}${Be}`,ee={"ngrok-skip-browser-warning":"true",Accept:"application/json"};async function ne(n,i={}){const r=await fetch(`${K}${n}`,{credentials:"include",...i,headers:{...ee,...i.headers}});if(!r.ok){const a=await r.json().catch(()=>({detail:r.statusText}));throw new Error(a.detail||r.statusText)}return r.json()}const De=()=>ne("/sessions"),pe=(n="New HR Task")=>ne("/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:n})}),Le=n=>ne(`/sessions/${n}`);async function He(n,i){var l;const{sessionId:r,message:a="",action:c="chat",providedInputs:f,fileInputs:b}=n,w=b&&Object.keys(b).length>0;let t;try{if(w){const o=new FormData;o.append("session_id",r),o.append("message",a),o.append("action",c),f&&Object.keys(f).length>0&&o.append("provided_inputs",JSON.stringify(f)),Object.entries(b).forEach(([x,g])=>o.append(x,g,g.name)),t=await fetch(`${K}/chat`,{method:"POST",credentials:"include",headers:{...ee},body:o})}else t=await fetch(`${K}/chat`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...ee},body:JSON.stringify({session_id:r,message:a,action:c,...f&&Object.keys(f).length>0?{provided_inputs:f}:{}})});if(!t.ok){const o=await t.json().catch(()=>({detail:"Unknown error"}));throw new Error(o.detail||t.statusText)}if((l=t.headers.get("content-type"))==null?void 0:l.includes("text/event-stream")){const o=t.body.getReader(),x=new TextDecoder("utf-8");let g="";for(;;){const{done:S,value:m}=await o.read();if(S)break;g+=x.decode(m,{stream:!0});const u=g.split(`
3`);g=u.pop();for(const s of u){if(!s.startsWith("data: "))continue;const k=s.substring(6).trim();if(k)try{const d=JSON.parse(k);["intent","planner","update"].includes(d.type)?i.onChunk(d.type,d.message??"",null):d.type==="tool_result"?i.onChunk(d.type,d.message??"",d.normalized_output??d.tool_output??null):d.type==="final"&&i.onFinal(d.state)}catch{}}}}else{const o=await t.json(),x=o.bot_messages??[],g=o.normalized_output??o.tool_output??null;x.length>0?x.forEach((S,m)=>i.onChunk("update",S,m===x.length-1?g:null)):o.natural_language_response&&i.onChunk("update",o.natural_language_response,g),i.onFinal(o)}}catch(h){i.onError(h.message??"Unexpected error")}}function G(n,i="Something went wrong"){Fe.error(i,{description:Ce(n)})}function Re(){const[n,i]=y.useState({width:window.innerWidth,height:window.innerHeight});return y.useEffect(()=>{const r=()=>i({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),n}const V="linear-gradient(88.52deg, #F56000 0%, #8715FF 99.93%)",Y="linear-gradient(124.02deg, #F56000 1.7%, #8715FF 98.26%)",te="linear-gradient(91.4deg, #8715FF 0.48%, #F56000 99.68%)",M="1px solid #B1BFE1",H="#FFFFFF",O={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:14,lineHeight:"20px",color:"#000000",display:"block",marginBottom:6},R=8;function J(n){return n.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function We(){const n=new Date().getHours();return n<12?"Good Morning":n<18?"Good Afternoon":"Good Evening"}const xe={role_title:"e.g. Frontend Developer, Backend",role:"e.g. Product Manager",location:"e.g. New York, Remote",industry:"e.g. Fintech, Healthcare",employment_type:"e.g. Full-Time",department:"e.g. Engineering",core_skill:"e.g. React, Python",role_family:"e.g. Software Engineering, Marketing",target_competency:"e.g. Problem Solving",candidate_name:"e.g. John Smith",intent:"e.g. Follow up on application",expected_timeline:"e.g. 2–3 business days",source:"e.g. LinkedIn",agenda_focus:"e.g. Technical Assessment",years_of_experience:"e.g. 3–5 years",interview_stage:"e.g. Technical Round, Culture Fit"};function Te(n,i){return xe[n]?xe[n]:`e.g. ${i??J(n)}`}function Pe(){return e.jsxs("svg",{width:"30",height:"28",viewBox:"0 0 30 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M20 18.667L15 13.333L10 18.667",stroke:"#9CA3AF",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15 13.333V26.667",stroke:"#9CA3AF",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M25.493 22.987C26.774 22.231 27.779 21.079 28.354 19.704C28.928 18.328 29.041 16.8 28.676 15.353C28.31 13.907 27.486 12.619 26.328 11.683C25.169 10.748 23.737 10.217 22.247 10.173C21.819 8.527 20.984 7.014 19.82 5.766C18.656 4.518 17.2 3.575 15.581 3.022C13.961 2.469 12.23 2.323 10.539 2.597C8.849 2.871 7.254 3.557 5.896 4.593C4.537 5.
3629 3.457 6.983 2.75 8.535C2.043 10.088 1.733 11.791 1.848 13.492C1.962 15.193 2.498 16.839 3.408 18.281",stroke:"#9CA3AF",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Me(){return e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 1V11M1 6H11",stroke:"#424E6C",strokeWidth:"1.5",strokeLinecap:"round"})})}function Oe(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#98A2B3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function $e(){return e.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M3 6H19M3 11H19M3 16H19",stroke:"#374151",strokeWidth:"1.8",strokeLinecap:"round"})})}function Ne(){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M5 5L15 15M15 5L5 15",stroke:"#374151",strokeWidth:"1.8",strokeLinecap:"round"})})}function oe(n){return n?"100%":350}function Ue(n){return n?"100%":752}function he({fieldKey:n,label:i,placeholder:r,onChange:a,isTablet:c=!1}){return e.jsxs("div",{style:{width:c?"100%":void 0},children:[e.jsx("label",{style:O,children:i}),e.jsx("input",{type:"text",placeholder:r??Te(n,i),onChange:f=>a(f.target.value),style:{width:oe(c),height:40,borderRadius:R,border:M,background:H,padding:"0 12px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:16,lineHeight:"22px",color:"#1A1A2E",outline:"none",boxSizing:"border-box",display:"block"}})]})}function Ge({label:n,placeholder:i,onChange:r,isTablet:a=!1}){return e.jsxs("div",{style:{width:a?"100%":void 0},children:[e.jsx("label",{style:O,children:n}),e.jsx("input",{type:"number",placeholder:i??"0",onChange:c=>r(Number(c.target.value)),style:{width:oe(a),height:40,borderRadius:R,border:M,background:H,padding:"0 12px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:16,color:"#1A1A2E",outline:"none",boxSizing:"border-box",display:"block"}})]})}function Ye({label:n,options:i,onChange:r,isTablet:a=!1}){return e.jsxs("div",{style:{width:a?"100%":void 0},children:[e.jsx("label",{style:O,children:n}),e.jsxs("div",{style:{position:"relative",width:oe(a),height:40},children:[e.jsxs("select",{defaultValue:"",onChange:c=>r(c.target.value),style:{width:"100%",height:"100%",borderRadius:R,border:M,background:H,padding:"0 36px 0 12px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:16,lineHeight:"22px",color:"#98A2B3",outline:"none",appearance:"none",WebkitAppearance:"none",cursor:"pointer",boxSizing:"border-box"},children:[e.jsxs("option",{value:"",disabled:!0,style:{color:"#98A2B3"},children:["Select ",n.toLowerCase()]}),i.map(c=>e.jsx("option",{value:c,style:{color:"#1A1A2E"},children:c},c))]}),e.jsx("span",{style:{position:"absolute",right:10,top:"50%",transform:"translateY(-50%)",pointerEvents:"none"},children:e.jsx(Oe,{})})]})]})}function Ve({label:n,onChange:i}){return e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:10,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:14,color:"#1A1A2E",cursor:"pointer"},children:[e.jsx("input",{type:"checkbox",onChange:r=>i(r.target.checked),style:{width:16,height:16,accentColor:"#8715FF",cursor:"pointer"}}),n]})}function Je({label:n,placeholder:i,onChange:r,isTablet:a=!1}){return e.jsxs("div",{style:{width:a?"100%":void 0},children:[e.jsx("label",{style:O,children:n}),e.jsx("textarea",{placeholder:i??`Enter ${n.toLowerCase()}…`,onChange:c=>r(c.target.value),style:{width:Ue(a),height:108,borderRadius:R,border:M,background:H,padding:"10px 12px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:16,lineHeight:"22px",color:"#1A1A2E",outline:"none",resize:"vertical",boxSizing:"border-box",display:"block"}})]})}function Xe({label:n,fieldKey:i,onFile:r,onText:a,isTablet:c=!1}){const[f,b]=y.useState(null),[w,t]=y.useState(!1),l=y.useRef(null),h=x=>{b((x==null?void 0:x.name)??null),r(i,x)};return e.jsxs("div",{style:{width:"100%",maxWidth:c?"100%":420},children:[e.jsx("label",{style:O,children:n}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,width:"100%"},children:[e.jsxs("div",{onClick:()=>{var x;return(x=l.current)==null?void 0:x.click()},onDragOver:x=>{x.preventDefault(),t(!0)},onDragLeave:()=>t(!1),onDrop:x=>{x.preventDefault(),t(!1),h(x.dataTransfer.files[0]??null)},style:{width:"100%",height:72,borderRadius:R,border:`1px dashed ${w?"#871
35FF":"#B1BFE1"}`,background:w?"rgba(135,21,255,0.03)":H,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,cursor:"pointer",transition:"border-color .2s, background .2s",boxSizing:"border-box"},children:[e.jsx(Pe,{}),e.jsx("span",{style:{fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:13,lineHeight:"20px",color:f?"#8715FF":"#9CA3AF",textAlign:"center"},children:f??`Upload ${n} (PDF/DOC/TXT)`}),e.jsx("input",{ref:l,type:"file",accept:".pdf,.doc,.docx,.txt",style:{display:"none"},onChange:x=>{var g;return h(((g=x.target.files)==null?void 0:g[0])??null)}})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[e.jsx("span",{style:{fontFamily:"Inter, sans-serif",fontSize:11,color:"#9CA3AF"},children:"— or paste text —"}),e.jsx("textarea",{placeholder:`Paste ${n.toLowerCase()} here…`,onChange:x=>a(x.target.value),style:{width:"100%",height:64,borderRadius:R,border:M,background:H,padding:"8px 10px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:13,color:"#1A1A2E",outline:"none",resize:"none",boxSizing:"border-box"}})]})]})]})}function qe({label:n,onChange:i,isTablet:r=!1}){const[a,c]=y.useState([]),[f,b]=y.useState(""),w=l=>{const h=l.trim();if(h&&!a.includes(h)){const o=[...a,h];c(o),i(o)}b("")},t=l=>{const h=a.filter((o,x)=>x!==l);c(h),i(h)};return e.jsxs("div",{style:{width:r?"100%":void 0},children:[e.jsx("label",{style:O,children:n}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("input",{value:f,onChange:l=>b(l.target.value),onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),w(f)),l.key==="Backspace"&&f===""&&a.length>0&&t(a.length-1)},placeholder:"Type and press Enter",style:{width:r?"calc(100% - 48px)":306,height:40,borderRadius:R,border:M,background:H,padding:"0 12px",fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:16,lineHeight:"22px",color:"#1A1A2E",outline:"none",boxSizing:"border-box"}}),e.jsx("button",{type:"button",onClick:()=>w(f),style:{width:40,height:40,borderRadius:R,border:"1px solid #424E6C",background:H,boxShadow:"0px 0px 5px 0px #D0D5DD inset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0},children:e.jsx(Me,{})})]}),a.length>0&&e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:8},children:a.map((l,h)=>e.jsxs("span",{style:{height:30,borderRadius:8,background:"#F2F2F2",padding:"4px 8px",display:"inline-flex",alignItems:"center",gap:6,fontFamily:"Inter, sans-serif",fontSize:13,color:"#1A1A2E"},children:[l,e.jsx("span",{style:{cursor:"pointer",fontSize:15,color:"#6B7280",lineHeight:1},onClick:()=>t(h),children:"×"})]},h))})]})}function Ze({missingInputs:n,schema:i,disabled:r,onSubmit:a,isTablet:c=!1}){const[f,b]=y.useState({}),[w,t]=y.useState({}),l=(m,u)=>b(s=>({...s,[m]:u})),h=(m,u)=>t(s=>{const k={...s};return u?k[m]=u:delete k[m],k}),o=()=>{const m={...f};n.includes("raw_jd")&&!m.raw_jd&&m.jd_text&&(m.raw_jd=m.jd_text),a(m,w)},x=new Set(["textarea","mixed_input","multiselect"]),g=[],S=[...n];for(;S.length>0;){const m=S.shift(),u=i[m]??{component:"text"};if(c||x.has(u.component))g.push([m]);else{const s=S[0],k=s?i[s]??{component:"text"}:null;s&&k&&!x.has(k.component)?g.push([m,S.shift()]):g.push([m])}}return e.jsxs("div",{style:{width:"100%",maxWidth:480,margin:"0 auto",backdropFilter:"blur(10px)",borderRadius:14,border:"1.5px solid transparent",backgroundImage:`linear-gradient(rgba(255,255,255,0.88),rgba(255,255,255,0.88)), ${te}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",padding:c?12:16,display:"flex",flexDirection:"column",gap:12,boxShadow:"0 4px 20px rgba(135,21,255,0.08)",animation:"hcSlide .3s ease-out"},children:[e.jsxs("div",{children:[e.jsx("p",{style:{margin:0,fontSize:12,fontWeight:600,color:"#8715FF",fontFamily:"Inter,sans-serif",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Details Required"}),e.jsx("p",{style:{margin:"2px 0 0",fontSize:11,color:"#6B7280",fontFamily:"Inter,sans-serif"},children:"Please provide the following information to proceed."})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:14,maxHeight:c?200:220,overflowY:"auto",paddingRight:4},children:g.map((m,u)=>e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:20,alignItems:"flex-start",width:"100%"},children:m.map(s=>{const k=i[s]??{component:"text"},d=k.label??J(s);switch(k.component){case"text":return e.jsx(he,{fieldKey:s,label:d,placeholder:k.helper_text,onChange:j=>l(s,j),isTablet:c},s);case"number":return e.jsx(Ge,{label:d,onChange:j=>l(s,j),isTablet:c},s);case"select":return e.jsx(Ye,{label:d,options:k.enum??[],onChange:j=>l(s,j),isTablet:c},s);case"boolean":return e.jsx(Ve,{label:d,onChange:j=>l(s,j)},s);case"textarea":return e.jsx(Je,{label:d,placeholder:k.helper_text,onChange:j=>l(s,j),isTablet:c},s);case"multiselect":return e.jsx(qe,{label:d,onChange:j=>l(s,j),isTablet:c},s);case"mixed_input":{const j=s==="jd_text"||s==="raw_jd"?"jd_file":s==="resume_text"?"resume_file":`${s}_file`;return e.jsx(Xe,{label:d,fieldKey:j,onFile:(F,I)=>h(F,I),onText:F=>l(s,F),isTablet:c},s)}default:return e.jsx(he,{fieldKey:s,label:d,onChange:j=>l(s,j),isTablet:c},s)}})},u))}),e.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:e.jsx("button",{onClick:o,disabled:r,style:{background:V,color:"#fff",border:"none",borderRadius:8,padding:"8px 20px",fontWeight:600,fontSize:13,cursor:r?"not-allowed":"pointer",fontFamily:"Inter,sans-serif",opacity:r?.6:1,transition:"opacity .2s"},children:"Submit & Continue"})})]})}function Qe(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n.title!==void 0||n.summary!==void 0||n.sections!==void 0)}function Ke({output:n}){const[i,r]=y.useState(!1),[a,c]=y.useState(!0),f=typeof n=="string"?n:JSON.stringify(n,null,2);async function b(t){const l=(t.title||"output").toLowerCase().replace(/\s+/g,"_");let h;try{const{jsPDF:d}=await _e(async()=>{const{jsPDF:j}=await import("./jspdf.es.min-CrwYuJiK.js").then(F=>F.j);return{jsPDF:j}},__vite__mapDeps([0,1,2,3]));h=d}catch{alert("Could not load PDF library.");return}const o=new h({unit:"pt",format:"a4"}),x=o.internal.pageSize.getWidth(),g=48,S=x-g*2,m=16;let u=g;function s(d,j){const{size:F=11,bold:I=!1,color:X=[26,26,46],indent:z=0,lineH:N=m}=j;o.setFontSize(F),o.setFont("helvetica",I?"bold":"normal"),o.setTextColor(...X),o.splitTextToSize(d,S-z).forEach(U=>{u>o.internal.pageSize.getHeight()-g&&(o.addPage(),u=g),o.text(U,g+z,u),u+=N})}function k(d=[229,231,235]){u>o.internal.pageSize.getHeight()-g&&(o.addPage(),u=g),o.setDrawColor(...d),o.setLineWidth(.5),o.line(g,u,x-g,u),u+=8}if(t.title&&(s(t.title,{size:18,bold:!0,color:[135,21,255],lineH:24}),u+=4,k([135,21,255]),u+=4),t.summary&&(s(t.summary,{size:11,color:[107,114,128],lineH:17}
3),u+=12),(t.sections??[]).forEach(d=>{s(d.heading.toUpperCase(),{size:9,bold:!0,color:[135,21,255],lineH:13}),o.setDrawColor(229,231,235),o.setLineWidth(.4),o.line(g,u,x-g,u),u+=7,d.body.split(`
4`).forEach(j=>{s(j||" ",{size:11,color:[26,26,46],lineH:16,indent:0})}),u+=8}),t.next_steps&&t.next_steps.length>0){u+=4;const d=u-6,j=t.next_steps.reduce((F,I)=>F+o.splitTextToSize(`• ${I}`,S-12).length*m,28);o.setFillColor(240,253,250),o.setDrawColor(16,185,129),o.setLineWidth(.5),o.roundedRect(g,d,S,j,4,4,"FD"),u+=4,s("RECOMMENDED NEXT STEPS",{size:9,bold:!0,color:[5,150,105],lineH:14,indent:8}),u+=2,t.next_steps.forEach(F=>{s(`• ${F}`,{size:11,color:[26,26,46],lineH:16,indent:8})})}o.save(`${l}.pdf`)}if(Qe(n)){const t=n;return e.jsxs("div",{style:{marginTop:12,borderRadius:10,border:"1px solid #E5E7EB",overflow:"hidden",background:"rgba(255,255,255,0.7)"},children:[e.jsxs("div",{onClick:()=>c(l=>!l),style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 14px",background:"rgba(135,21,255,0.05)",borderBottom:a?"1px solid #E5E7EB":"none",cursor:"pointer"},children:[e.jsxs("span",{style:{fontSize:11,fontWeight:700,color:"#8715FF",letterSpacing:"0.08em",textTransform:"uppercase",fontFamily:"Inter,sans-serif"},children:[t.title||"Tool Result"," ",a?"▲":"▼"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},onClick:l=>l.stopPropagation(),children:[e.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(f),r(!0),setTimeout(()=>r(!1),2e3)},style:{background:"transparent",border:"1px solid #E5E7EB",borderRadius:6,padding:"3px 10px",fontSize:11,cursor:"pointer",color:"#6B7280",fontFamily:"Inter,sans-serif",display:"flex",alignItems:"center",gap:5},children:[e.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),e.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),i?"✓ Copied":"Copy"]}),e.jsxs("button",{onClick:()=>b(t),style:{background:Y,border:"none",borderRadius:6,padding:"3px 10px",fontSize:11,cursor:"pointer",color:"#fff",fontFamily:"Inter,sans-serif",display:"flex",alignItems:"center",gap:5},children:[e.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("polyline",{points:"7 10 12 15 17 10"}),e.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),"Download"]})]})]}),a&&e.jsxs("div",{style:{padding:14,display:"flex",flexDirection:"column",gap:16,maxHeight:420,overflowY:"auto",color:"#1A1A2E",fontFamily:"Inter,sans-serif"},children:[t.summary&&e.jsx("p",{style:{margin:0,fontStyle:"italic",color:"#6B7280",fontSize:13,lineHeight:1.65},dangerouslySetInnerHTML:{__html:$(t.summary)}}),t.sections&&t.sections.length>0&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:14},children:t.sections.map((l,h)=>e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:700,fontSize:11,color:"#8715FF",textTransform:"uppercase",letterSpacing:"0.08em",borderBottom:"1px solid #E5E7EB",paddingBottom:3,marginBottom:6,display:"inline-block"},children:l.heading}),e.jsx("div",{style:{fontSize:13,lineHeight:1.7,color:"#1A1A2E",whiteSpace:"pre-wrap"},dangerouslySetInnerHTML:{__html:$(l.body)}})]},h))}),t.next_steps&&t.next_steps.length>0&&e.jsxs("div",{style:{padding:12,background:"rgba(16,185,129,0.05)",borderRadius:8,border:"1px solid rgba(16,185,129,0.2)"},children:[e.jsx("div",{style:{fontWeight:700,fontSize:11,color:"#059669",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:8},children:"Recommended Next Steps"}),e.jsx("ul",{style:{margin:0,paddingLeft:18,display:"flex",flexDirection:"column",gap:5},children:t.next_steps.map((l,h)=>e.jsx("li",{style:{fontSize:13,color:"#1A1A2E",lineHeight:1.65},dangerouslySetInnerHTML:{__html:$(l)}},h))})]})]})]})}function w(t){return t==null?'<span style="color:#94a3b8">null</span>':typeof t=="boolean"?`<span style="color:#8715FF">${t}</span>`:typeof t=="number"?`<span style="color:#f59e0b">${t}</span>`:typeof t=="string"?`<span style="white-space:pre-wrap;font-size:14px">${$(t)}</span>`:Array.isArray(t)?t.length?'<div style="display:flex;flex-direction:column;gap:10px;margin-top:8px">'+t.map((l,h)=>`<div style="background:rgba(0,0,0,0.04);border:1px solid #E5E7EB;border-radius:6px;padding:10px"><div style="font-size:11px;color:#94a3b8;margin-bottom:6px;text-transform:uppercase">Item ${h+1}</div>${w(l)}</div>`).join("")+"</div>":'<span style="color:#94a3b8">Empty list</span>':typeof t=="object"?'<div style="display:flex;flex-direction:column;gap:8px">'+Object.entries(t).map(([l,h])=>{const o=J(l);return typeof h=="object"&&h!==null?`<div><strong style="color:#8715FF;font-size:13px">${o}</strong><div style="margin-top:5px">${w(h)}</div></div>`:`<div><span style="font-weight:600;color:#6B7280;font-size:12px;text-transform:uppercase">${o}</span><br/>${w(h)}</div>`}).join("")+"</div>":String(t)}return e.jsxs("div",{style:{marginTop:12,borderRadius:10,border:"1px solid #E5E7EB",overflow:"hidden",background:"rgba(255,255,255,0.7)"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 14px",background:"rgba(135,21,255,0.05)",borderBottom:a?"1px solid #E5E7EB":"none",cursor:"pointer"},onClick:()=>c(t=>
4!t),children:[e.jsxs("span",{style:{fontSize:11,fontWeight:700,color:"#8715FF",letterSpacing:"0.08em",textTransform:"uppercase",fontFamily:"Inter,sans-serif"},children:["⚙ Tool Result ",a?"▲":"▼"]}),e.jsx("button",{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(f),r(!0),setTimeout(()=>r(!1),2e3)},style:{background:"transparent",border:"1px solid #E5E7EB",borderRadius:6,padding:"3px 10px",fontSize:11,cursor:"pointer",color:"#6B7280",fontFamily:"Inter,sans-serif"},children:i?"✓ Copied":"Copy"})]}),a&&e.jsx("div",{style:{padding:14,fontSize:13,lineHeight:1.7,maxHeight:320,overflowY:"auto",color:"#1A1A2E",fontFamily:"Inter,sans-serif"},dangerouslySetInnerHTML:{__html:ze(w(n))}})]})}function et({msg:n,isTablet:i}){var a;const r=n.role==="user";return e.jsx("div",{style:{display:"flex",justifyContent:r?"flex-end":"flex-start",animation:"hcFade .25s ease-out",width:"100%"},children:e.jsxs("div",{style:{maxWidth:i?"88%":"72%",padding:"13px 18px",borderRadius:r?"18px 18px 4px 18px":"18px 18px 18px 4px",background:r?V:"rgba(255,255,255,0.97)",color:r?"#fff":"#1A1A2E",fontSize:14,lineHeight:1.65,boxShadow:r?"0 2px 12px rgba(245,96,0,0.25)":"0 2px 8px rgba(0,0,0,0.08)",border:r?"none":"1px solid #E5E7EB",fontFamily:"Inter,sans-serif",wordBreak:"break-word"},children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:$(n.content)}}),((a=n.metadata)==null?void 0:a.tool_output)&&e.jsx(Ke,{output:n.metadata.tool_output})]})})}function tt(){return e.jsx("div",{style:{display:"flex",justifyContent:"flex-start"},children:e.jsx("div",{style:{padding:"14px 18px",borderRadius:"18px 18px 18px 4px",background:"rgba(255,255,255,0.97)",border:"1px solid #E5E7EB",display:"flex",gap:5,alignItems:"center",boxShadow:"0 2px 8px rgba(0,0,0,0.08)"},children:[0,1,2].map(n=>e.jsx("div",{style:{width:7,height:7,borderRadius:"50%",background:V,animation:`hcBounce 1.2s ease-in-out ${n*.18}s infinite`}},n))})})}function nt({plan:n,isTablet:i}){const r=n.selected_tools.findIndex(a=>!n.completed_steps.includes(a));return e.jsxs("div",{style:{padding:i?"6px 16px":"8px 24px",background:"rgba(255,255,255,0.95)",borderBottom:"1px solid #E5E7EB",display:"flex",alignItems:"center",gap:6,flexWrap:"wrap",fontFamily:"Inter,sans-serif",fontSize:i?11:12,flexShrink:0},children:[e.jsx("span",{style:{color:"#6B7280",fontWeight:500},children:"Workflow:"}),n.selected_tools.map((a,c)=>{const f=n.completed_steps.includes(a),b=!f&&c===r;return e.jsxs(Ie.Fragment,{children:[c>0&&e.jsx("span",{style:{color:"#D1D5DB"},children:"→"}),e.jsxs("span",{style:{padding:i?"2px 8px":"2px 10px",borderRadius:20,background:f?"rgba(16,185,129,0.1)":b?"rgba(135,21,255,0.1)":"rgba(0,0,0,0.05)",color:f?"#059669":b?"#8715FF":"#6B7280",fontWeight:f||b?600:400,border:b?"1px solid rgba(135,21,255,0.3)":"1px solid transparent"},children:[f?"✓ ":b?"⏳ ":"",a.replace(/_/g," ")]})]},a)})]})}function ot({session:n,active:i,onClick:r}){return e.jsx("div",{onClick:r,style:{padding:"10px 12px",borderRadius:8,marginBottom:4,cursor:"pointer",border:i?"1px solid rgba(135,21,255,0.4)":"1px solid transparent",background:i?"rgba(135,21,255,0.07)":"transparent",transition:"background .15s",fontFamily:"Inter,sans-serif"},onMouseEnter:a=>{i||(a.currentTarget.style.background="rgba(0,0,0,0.04)")},onMouseLeave:a=>{i||(a.currentTarget.style.background="transparent")},children:e.jsx("div",{style:{fontSize:13,fontWeight:i?600:400,color:i?"#8715FF":"#374151",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.title||"Untitled Chat"})})}function ue({sessions:n,currentSid:i,searchQuery:r,onSearchChange:a,onNewChat:c,onLoadSession:f,onClose:b,isTablet:w,isOpen:t}){const l=n.filter(o=>(o.title||"").toLowerCase().includes(r.toLowerCase())),h=e.jsxs("aside",{style:{width:260,flexShrink:0,display:"flex",flexDirection:"column",background:"#fff",borderRight:"2px solid #E5E7EB",boxShadow:w?"4px 0 20px rgba(0,0,0,0.15)":"2px 0 4px 0 rgba(31,42,107,0.12)",overflow:"hidden",height:"100%"},children:[w&&e.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"12px 12px 0"},children:e.jsx("button",{type:"button",onClick:b,style:{background:"transparent",border:"none",cursor:"pointer",padding:6,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":"Close sidebar",children:e.jsx(Ne,{})})}),e.jsxs("button",{type:"button",onClick:()=>{c(),w&&b&&b()},style:{width:220,height:36,marginTop:w?8:32,marginLeft:20,borderRadius:8,background:V,boxShadow:"0px 4px 30px 4px #FFFFFF1A inset, 0px 2px 3px 0px #0000001F",display:"flex",alignItems:"center",padding:"0 14px",gap:10,border:"none",cursor:"pointer",flexShrink:0},children:[e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 1V11M1 6H11",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round"})}),e.jsx("span",{style:{fontFamily:"Inter,sans-serif",fontWeight:500,fontSize:14,color:"#fff"},children:"New Chat"})]}),e.jsxs("div",{style:{width:220,height:36,marginTop:12,marginLeft:20,borderRadius:8,background:"#fff",border:"1px solid #E5E7EB",display:"flex",alignItems:"center",padding:"0 12px",gap:8,flexShrink:0},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e.jsx("circle",{cx:"6.5",cy:"6.5",r:"5.5",stroke:"#101010",strokeWidth:"1"}),e.jsx("path",{d:"M11 11L14.5 14.5",stroke:"#101010",strokeWidth:"1",strokeLinecap:"round"})]}),e.jsx("input",{value:r,onChange:o=>a(o.target.value),placeholder:"Search Chats",style:{flex:1,border:"none",outline:"none",fontSize:14,color:"#101010",background:"transparent",fontFamily:"Inter,sans-serif"}})]}),e.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"10px 8px",marginTop:8}
4,children:l.length===0?e.jsx("p",{style:{fontSize:12,color:"#9CA3AF",textAlign:"center",marginTop:20,fontFamily:"Inter,sans-serif"},children:r?"No results":"No chats yet"}):l.map(o=>e.jsx(ot,{session:o,active:o.session_id===i,onClick:()=>{f(o.session_id),w&&b&&b()}},o.session_id))})]});return w?t?e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:b,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.35)",zIndex:40}}),e.jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,width:260,zIndex:50,display:"flex",flexDirection:"column"},children:h})]}):null:h}function ct(){const n=Ee(),{displayName:i,profilePhotoSrc:r}=Ae(),a=i.trim().split(/\s+/)[0]||i,c=a?`${a.charAt(0).toUpperCase()}${a.slice(1)}`:"",{width:f}=Re(),b=f>=768&&f<=1024,w=f<768,t=b||w,[l,h]=y.useState([]),[o,x]=y.useState(null),[g,S]=y.useState([]),[m,u]=y.useState(null),[s,k]=y.useState(""),[d,j]=y.useState(!1),[F,I]=y.useState([]),[X,z]=y.useState({}),[N,W]=y.useState(!1),[U,q]=y.useState(!1),[ie,se]=y.useState(""),[fe,Z]=y.useState(!1),re=y.useRef(null);y.useEffect(()=>{var p;(p=re.current)==null||p.scrollIntoView({behavior:"smooth"})},[g,d,F,N]),y.useEffect(()=>{A()},[]),y.useEffect(()=>{t||Z(!1)},[t]);const A=y.useCallback(async()=>{try{h(await De())}catch(p){G(p,"Failed to load chat sessions")}},[]),ae=y.useCallback(p=>{var _;if(u(p.active_plan??null),W(!1),I([]),z({}),p.next_action==="awaiting_user_confirmation")W(!0);else if(p.next_action==="collect_structured_inputs"||p.next_action==="collect_inputs"){const C=p.missing_inputs??[],E={};for(const B of C)(_=p.workflow_input_schema)!=null&&_[B]&&(E[B]=p.workflow_input_schema[B]);I(C),z(E)}p.chat_title&&A()},[A]),T=y.useCallback(async(p,_="chat",C,E)=>{let B=o;if(!B)try{B=(await pe()).session_id,x(B),A()}catch(v){G(v,"Failed to start chat session");return}const Q=p??s.trim(),we=C&&Object.keys(C).length>0,ke=E&&Object.keys(E).length>0;if(!Q&&!we&&!ke&&_==="chat")return;q(!0),j(!0),W(!1),I([]),z({});let D=Q;if(C&&Object.keys(C).length>0){const v=Object.entries(C).map(([P,L])=>`* **${J(P)}**: ${typeof L=="object"?"`"+JSON.stringify(L)+"`":L}`).join(`
5`);D=D?`${D}
6
7${v}`:v}if(E&&Object.keys(E).length>0){const v=Object.entries(E).map(([P,L])=>`* **${P}**: ${L.name}`).join(`
8`);D=D?`${D}
9
10${v}`:v}S(D?v=>[...v,{role:"user",content:D}]:v=>[...v,{role:"user",content:"*(Submitted)*"}]),k(""),await He({sessionId:B,message:Q,action:_,providedInputs:C,fileInputs:E},{onChunk:(v,P,L)=>S(Se=>[...Se,{role:"assistant",content:P,metadata:L?{tool_output:L}:void 0}]),onFinal:v=>{ae(v),j(!1)},onError:v=>{S(P=>[...P,{role:"assistant",content:`⚠ ${v}`}]),j(!1)}})},[o,s,A,ae]),le=y.useCallback(async p=>{var _;x(p),q(!0),W(!1),I([]),z({});try{const C=await Le(p);S(C.messages.map(E=>({role:E.role,content:E.content,metadata:E.metadata}))),u(C.active_plan??null),((_=C.active_plan)==null?void 0:_.stage)==="awaiting_confirmation"&&W(!0),A()}catch(C){G(C,"Failed to load chat session")}},[A]),de=y.useCallback(async()=>{try{const p=await pe();x(p.session_id),S([]),u(null),W(!1),I([]),z({}),q(!1),k(""),A()}catch(p){G(p,"Failed to create new chat")}},[A]),ge=t?"0 16px":"0 40px",ye=t?"16px 16px":"28px 40px",be=t?"10px 16px 16px":"12px 40px 24px",me=t?"92%":900,je=t?72:100,ce=t?0:260;return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
11        @keyframes hcFade   { from{opacity:0;transform:translateY(8px)}  to{opacity:1;transform:translateY(0)} }
12        @keyframes hcBounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }
13        @keyframes hcSlide  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
14        @keyframes hcPulse  { 0%{box-shadow:0 0 0 0 rgba(135,21,255,.4)} 70%{box-shadow:0 0 0 10px rgba(135,21,255,0)} 100%{box-shadow:0 0 0 0 rgba(135,21,255,0)} }
15        ::-webkit-scrollbar{width:4px}
16        ::-webkit-scrollbar-track{background:transparent}
17        ::-webkit-scrollbar-thumb{background:#D1D5DB;border-radius:4px}
18        input::placeholder, textarea::placeholder, select::placeholder { color: #98A2B3; }
19      `}),e.jsxs("div",{className:"relative flex h-screen-safe flex-col overflow-hidden bg-[#F9FAFB]",children:[e.jsx("img",{src:"/HrChatbg.png",alt:"",style:{position:"absolute",top:56,left:ce,right:0,bottom:0,width:`calc(100% - ${ce}px)`,height:"calc(100% - 56px)",objectFit:"cover",zIndex:0,pointerEvents:"none",userSelect:"none"}}),e.jsxs("header",{style:{position:"relative",zIndex:10,height:56,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"space-between",padding:ge,background:"#fff",borderBottom:"1px solid #E5E7EB"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:t?10:0},children:[t&&e.jsx("button",{type:"button",onClick:()=>Z(!0),style:{background:"transparent",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8},"aria-label":"Open sidebar",children:e.jsx($e,{})}),e.jsx("img",{src:"/logo2.png",alt:"Interview Ghost",style:{height:t?28:36,width:"auto",objectFit:"contain"}})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[!t&&e.jsx("span",{style:{fontSize:14,color:"#6B7280",fontFamily:"Inter,sans-serif"},children:c?e.jsxs(e.Fragment,{children:["Welcome back, ",e.jsx("strong",{style:{color:"#1A1A2E"},children:c})]}):"Welcome back"}),e.jsx("button",{type:"button",onClick:()=>n("/hr/profile"),style:{width:32,height:32,borderRadius:"50%",overflow:"hidden",background:"#E5E7EB",border:"1px solid #D1D5DB",cursor:"pointer",flexShrink:0},"aria-label":"Open profile settings",children:r&&e.jsx("img",{src:r,alt:"Profile",style:{width:"100%",height:"100%",objectFit:"cover"}})})]})]}),e.jsxs("div",{style:{position:"relative",zIndex:10,display:"flex",flex:1,minHeight:0,overflow:"hidden"},children:[!t&&e.jsx(ue,{sessions:l,currentSid:o,searchQuery:ie,onSearchChange:se,onNewChat:de,onLoadSession:le,
19isTablet:!1,isOpen:!0}),t&&e.jsx(ue,{sessions:l,currentSid:o,searchQuery:ie,onSearchChange:se,onNewChat:de,onLoadSession:le,onClose:()=>Z(!1),isTablet:!0,isOpen:fe}),e.jsxs("main",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"hidden",background:"transparent"},children:[m&&U&&e.jsx(nt,{plan:m,isTablet:t}),U?e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{flex:1,minHeight:0,overflowY:"auto",padding:ye,display:"flex",flexDirection:"column",gap:14},children:[g.map((p,_)=>e.jsx(et,{msg:p,isTablet:t},_)),d&&e.jsx(tt,{}),e.jsx("div",{ref:re,style:{height:1}})]}),e.jsxs("div",{style:{flexShrink:0,padding:be,display:"flex",flexDirection:"column",gap:10,background:"rgba(249,250,251,0.8)",backdropFilter:"blur(8px)",borderTop:"1px solid rgba(229,231,235,0.8)"},children:[F.length>0&&e.jsx(Ze,{missingInputs:F,schema:X,disabled:d,isTablet:t,onSubmit:(p,_)=>T(void 0,"chat",p,_)}),N&&e.jsx("button",{onClick:()=>T("continue","chat"),disabled:d,style:{background:"#10b981",color:"#fff",border:"none",borderRadius:8,padding:"0 20px",fontWeight:700,height:44,cursor:d?"not-allowed":"pointer",fontFamily:"Inter,sans-serif",fontSize:14,animation:"hcPulse 2s infinite",opacity:d?.6:1,display:"inline-flex",alignItems:"center",gap:8,alignSelf:"flex-start"},children:"▶ Continue Execution"}),e.jsxs("div",{style:{display:"flex",gap:10,alignItems:"flex-end",background:"#fff",border:"1.5px solid transparent",backgroundImage:`linear-gradient(#fff,#fff), ${te}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:16,padding:"6px 10px",boxShadow:"0 2px 12px rgba(0,0,0,0.07)"},children:[e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsx("textarea",{value:s,onChange:p=>k(p.target.value),onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),T())},placeholder:"Type your HR request…",rows:1,style:{flex:1,background:"transparent",border:"none",outline:"none",color:"#1A1A2E",fontFamily:"Inter,sans-serif",fontSize:t?14:15,resize:"none",minHeight:48,maxHeight:120,lineHeight:1.6,padding:"10px 4px"}}),!t&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,paddingLeft:4,paddingBottom:6},children:[e.jsx("button",{type:"button",onClick:()=>T(),disabled:d||!s.trim(),style:{display:"inline-flex",alignItems:"center",gap:4,background:d||!s.trim()?"#E5E7EB":Y,color:d||!s.trim()?"#98A2B3":"#fff",borderRadius:4,padding:"2px 8px",fontSize:10,fontFamily:"Inter,sans-serif",fontWeight:600,lineHeight:"16px",border:"none",cursor:d||!s.trim()?"default":"pointer",transition:"background .2s, color .2s"},children:"↵ Enter"}),e.jsx("span",{style:{fontSize:10,color:"#98A2B3",fontFamily:"Inter,sans-serif"},children:"to send"}),e.jsx("span",{style:{fontSize:10,color:"#C4CADC",fontFamily:"Inter,sans-serif",marginLeft:6},children:"Shift+Enter for new line"})]})]}),e.jsx("button",{type:"button",onClick:()=>T(),disabled:d||!s.trim(),style:{width:40,height:40,borderRadius:10,background:Y,border:"none",cursor:d||!s.trim()?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,opacity:d||!s.trim()?.45:1,transition:"opacity .2s",marginBottom:t?0:2},children:e.jsx("svg",{width:"17",height:"17",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 12V4M4 8L8 4L12 8",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]}):e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 24px"},children:[e.jsx("img",{src:"/logo.png",alt:"Interview Ghost Icon",style:{width:t?64:87,height:t?48:64,objectFit:"contain",marginBottom:8}}),e.jsxs("h1",{style:{fontFamily:"Inter,sans-serif",fontWeight:400,fontSize:t?17:20,lineHeight:"30px",color:"#000",textAlign:"center",margin:0},children:[We(),", ",c||"Username"]}),e.jsx("p",{style:{fontFamily:"Inter,sans-serif",fontWeight:300,fontSize:t?15:18,lineHeight:"26px",letterSpacing:"0.01em",color:"#333",textAlign:"center",margin:"0 0 32px"},children:"How can I help you today?"}),e.jsxs("div",{style:{width:me,maxWidth:"92%",borderRadius:t?14:20,background:"#fff",boxShadow:"0px 2px 4px 0px #1F2A6B33",display:"flex",alignItems:"center",padding:t?"0 16px":"0 24px",height:je,border:"1.5px solid transparent",backgroundImage:`linear-gradient(#fff,#fff), ${te}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box"},children:[e.jsx("input",{type:"text",placeholder:"Type Here...",value:s,onChange:p=>k(p.target.value),onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),T())},style:{flex:1,border:"none",outline:"none",fontFamily:"Inter,sans-serif",fontSize:t?14:15,color:"#1A1A2E",background:"transparent",height:"100%"}}),e.jsx("button",{type:"button",onClick:()=>T(),disabled:d||!s.trim(),style:{width:36,height:36,borderRadius:8,background:Y,border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,opacity:d||!s.trim()?.5:1,transition:"opacity .2s"},children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 12V4M4 8L8 4L12 8",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})]})]})]})}export{ct 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.