PageSourceSearch

https://avua.com/assets/InterviewEnd-D6TsJljb.js

js avua.com collected 2026-09-24 12:55:09 UTC 7,263 bytes, 2 lines download raw bytes

1import{t as D,a2 as C,u as A,ah as S,b as B,c as t,hY as u,j as e,i as c,i6 as k,bU as f,i7 as I,i8 as R,bs as T,x as b,hV as H,ce as Y}from"./index-B9q78oLf.js";import{f as z}from"./index.esm-GAhwvDqC.js";import{z as M}from"./dashboard-BaS_FCEE.js";import{u as W}from"./useViewportZoom-CAZJvmVH.js";function ee(){const l=D(),j=C(),g=A(),d=W()??1,{showToast:n}=S(),x=j.state?.alreadyApplied,i=B(s=>s.deferredApply);t.useRef(i?.shouldApplyAfterInterview===!0);const[r,y]=t.useState(0),[o,m]=t.useState(0),[_,J]=t.useState(!1),[p,w]=t.useState(""),[P,V]=t.useState(""),[L,O]=t.useState(!1),[h,v]=t.useState(null),[U,$]=t.useState(null),[K,Z]=t.useState(!1),N={0:"Rate it!",1:"Not what I expected",2:"Room for improvement",3:"Met expectations",4:"Better than expected",5:"Outstanding!"},F=async()=>{const s={rating:r,feedback:p,source:"mock_interview_end",source_id:h?.roomId||""};try{const a=await Y(s);n("Submitted successfully! Redirecting to home page...")}catch(a){console.log(a,"error")}setTimeout(()=>{g("/dashboard")},3e3)};return t.useEffect(()=>{const s=localStorage.getItem("userAcknowledgmentData");if(s){const a=JSON.parse(s);v(a)}},[]),t.useEffect(()=>{if(!i?.shouldApplyAfterInterview||!i?.jobId)return;if(x){l(u());return}(async()=>{try{(await M(i.jobId))?.msg==="success"&&n({isVisible:!0,message:"Your application has been submitted successfully!",type:"success"})}catch(a){console.error("Deferred applyJob failed:",a),n({isVisible:!0,message:"Failed to submit your application. Please try again from the dashboard.",type:"error"})}finally{l(u())}})()},[i,x,l]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:" flex flex-col bg-[#F4F5F7] text-[#14161B] font-[Inter]",style:{zoom:d,minHeight:`${100/d}vh`},children:[e.jsxs("header",{className:"flex items-center justify-between py-[16px] px-6 md:px-12 max-w-[1440px] mx-auto w-full bg-white border-b border-[#0000001F]",children:[e.jsx("div",{className:"font-extrabold text-[21px] tracking-tighter text-[#13151A] ",children:e.jsx("img",{src:c.CommonHeader.avua_header_logo,alt:"logo",className:"h-[18px] object-contain"})}),e.jsx("div",{className:"flex items-center gap-2.5",children:e.jsx("span",{className:"flex items-center gap-2 bg-[#ECFDF3] text-[#0E9F6E] border border-[#86EFAC] px-3 py-1.5 rounded-full text-[12.5px] font-semibold",children:"✓ Interview complete"})})]}),e.jsx("main",{className:"flex-1 flex items-center px-11 py-8",children:e.jsxs("section",{className:"max-w-[1160px] mx-auto w-full grid md:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#0E9F6E] text-white flex items-center justify-center",children:"✓"}),e.jsx("b",{className:"text-[16px] font-bold",children:"You're all done!"})]}),e.jsxs("h1",{className:"text-[31px] font-bold leading-tight mt-4 max-w-[13em]",children:["Your interview for"," ",e.jsx("span",{className:"text-[#6D28D9]",children:h?.interviewPositions})," is submitted."]}),e.jsxs("div",{className:"mt-7 max-w-[430px] bg-white border border-[#E5E7EC] rounded-xl shadow-md overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-[#EDEFF2]",children:[e.jsx("div",{className:"w-9 h-9 ",children:e.jsx("img",{src:c.commonIcons.MessageCircleIcon,alt:""})}),e.jsx("b",{className:"text-[14px] font-semibold",children:"We've safely recorded your responses."})]}),e.jsxs("div",{className:"px-5 py-4 text-[13.5px] text-[#555B66]",children:["The hiring team will review your interview and let you know about next steps."," ",e.jsx("b",{className:"text-black",children:"You'll be notified the moment they respond"})," ","— nothing more to do for now."]})]}),e.jsxs("div",{className:"mt-6 max-w-[430px]",children:[e.jsx("div",{className:"text-[11px] font-bold uppercase text-[#8A909B] mb-3",children:"What happens next"}),e.jsxs("div",{className:"flex items-center flex-wrap gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"flex items-center gap-2 text-[14px] font-semibold",children:[e.jsx("span",{className:"w-[22px] h-[22px] p-1 bg-[#F1ECFB] text-[#6D28D9] flex items-center justify-center rounded-md",children:e.jsx(k,{})}),"Hiring team reviews"]}),e.jsx(f,{})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"flex items-center gap-2 text-[14px] font-semibold",children:[e.jsx("span",{className:"w-[22px] h-[22px] p-1 bg-[#F1ECFB] text-[#6D28D9] flex items-center justify-center rounded-md",children:e.jsx(I,{})}),"They reach out"]}),e.jsx(f,{})]}),e.jsx("div",{className:"",children:e.jsxs("span",{className:"flex items-center gap-2 text-[14px] font-semibold",children:[e.jsx("span",{className:"w-[22px] h-[22px] p-1 bg-[#F1ECFB] text-[#6D28D9] flex items-center justify-center rounded-md",children:e.jsx(R,{})}),"Onboard on avua"]})})]})]})]}),e.jsx(T,{mode:"wait",children:e.jsx(b.div,{initial:{opacity:0,y:30}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-30},transition:{duration:.4},className:"max-h-[469px] h-full max-w-[513px] w-full flex flex-col justify-between",children:e.jsx("div",{className:"relative z-10 flex md:items-center justify-center w-full h-full ",children:e.jsxs("div",{className:"text-center max-w-[420px] mx-auto ",children:[e.jsx("h2",{className:"text-[23px] font-bold text-[#6D28D9]",children:"Help shape the future of interviews"}),e.jsx("p",{className:"text-[14.5px] text-[#555B66] mt-2",children:"Your feedback helps us improve."}),e.jsxs("div",{className:"flex flex-col items-center mt-6",children:[e.jsx("div",{className:"flex space-x-3",children:[1,2,3,4,5].map(s=>{const a=r>=s,E=o>=s;return e.jsx("span",{onClick:()=>y(s),onMouseEnter:()=>m(s),onMouseLeave:()=>m(0),className:"cursor-pointer transition-colors duration-200",children:a?e.jsx(H,{size:25,className:"text-[#864EFF]"}):e.jsx(z,{size:25,className:E?"text-[#864EFF]":"text-gray-400"})},s)})}),e.jsx("p",{className:`mt-1 font-medium text-[12px] ${o==0&&r>2?"text-transparent bg-gradient-to-r from-[#6B3BAB] to-[#2b1845] bg-clip-text":o==0&&r>0?"text-[#AC7F5E]":"text-[#8C8C8C]"}`,children:N[o||r]})]}),!!r&&e.jsx(b.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.4},children:e.jsx("textarea",{className:"mt-3 p-2 text-[14px] bg-[#FDFBFF] rounded-lg w-full border border-[#d9d9d9] text-[#404040] min-h-[130px]",placeholder:"Write your feedback or describe your experience (optional)",value:p,onChange:s=>w(s.target.value)})}),e.jsx("div",{className:"mt-3 flex flex-col gap-3 w-full text-[14px]",children:e.jsx("button",{className:"bg-[#6D28D9] text-white py-3 rounded-lg font-semibold disabled:opacity-50",onClick:F,disabled:!r,children:"Back to Home"})}),e.jsxs("div",{className:"flex items-center gap-3 mt-7 bg-white border border-[#E5E7EC] rounded-xl px-4 py-3",children:[e.jsx("img",{src:c.commonIcons.applicantsReviewIcon,alt:"",className:"md:h-[40px] h-[25px]"}),e.jsxs("p",{className:"text-[12px] text-[#555B66]",children:["Join ",e.jsx("b",{className:"text-black",children:"2,000+ applicants"})," who've shared feedback to help each other grow."]})]})]})})},"headerBox")})]})})]})})}export{ee as default};
2//# sourceMappingURL=InterviewEnd-D6TsJljb.js.map

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.