1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8244],{95349:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/instructions",function(){return t(98475)}])},88968:function(e,s,t){"use strict";var l=t(85893),a=t(67294),n=t(4298),i=t.n(n),o=t(22653);let c=()=>{let[e,s]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=window.location.hostname,t=e.includes("troven.ai")?"prod":"dev";s(t)},[]),(0,l.jsx)(l.Fragment,{children:"prod"===e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i(),{strategy:"lazyOnload",src:"https://www.googletagmanager.com/gtag/js?id=".concat(o.vM)}),(0,l.jsx)(i(),{id:"",strategy:"lazyOnload",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(o.vM,"', {\n page_path: window.location.pathname,\n });\n ")})]}):(0,l.jsx)(l.Fragment,{})})};s.Z=c},98475:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return y}});var l=t(85893),a=t(67294),n=t(5434),i=t(31955),o=t(24289),c=t(22653),r=t(70231),d=t(4528),m=t(80012),x=t(89583),u=t(80471),h=t(11163),f=t(9473),v=t(64970),p=t.n(v),g=t(55678),w=t(88968);t(71399),t(59645),t(19503),t(91293);var j=t(96245);t(19806);var b=t(20373);function y(){var e,s,t,v,y,N,k,S,A,C,T,z,P,B,D;let[_,Z]=(0,a.useState)(0),[M,L]=(0,a.useState)(null),[E,I]=(0,a.useState)(null),[F,O]=(0,a.useState)(null),[q,R]=(0,a.useState)(!0),[U,Q]=(0,a.useState)(!1),[W,$]=(0,a.useState)(!1),[H,J]=(0,a.useState)(!1),[V,X]=(0,a.useState)(!1),[Y,G]=a.useState(!1),[K,ee]=a.useState(!1),[es,et]=(0,a.useState)(!1);(0,a.useRef)(null);let[el,ea]=(0,a.useState)(null),[en,ei]=(0,a.useState)(null),[eo,ec]=(0,a.useState)(0),[er,ed]=(0,a.useState)(null),[em,ex]=(0,a.useState)(!1),[eu,eh]=(0,a.useState)(!1),[ef,ev]=(0,a.useState)(!1),[ep,eg]=(0,a.useState)(!1),[ew,ej]=(0,a.useState)(!1),[eb,ey]=(0,a.useState)(!1),[eN,ek]=(0,a.useState)(!1),[eS,eA]=(0,a.useState)(!0),[eC,eT]=(0,a.useState)(!1),[ez,eP]=(0,a.useState)(""),[eB,eD]=(0,a.useState)(!1),[e_,eZ]=(0,a.useState)(!1),[eM,eL]=(0,a.useState)(!1),[eE,eI]=(0,a.useState)(0),[eF,eO]=(0,a.useState)(!1),[eq,eR]=(0,a.useState)(!1),[eU,eQ]=(0,a.useState)(!1),[eW,e$]=(0,a.useState)(!1),[eH,eJ]=(0,a.useState)(!1),eV=(0,h.useRouter)(),eX=(0,f.I0)();(0,a.useEffect)(()=>{e7()},[]);let eY=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=i.Z.get("examToken");if(e){let s=(0,j.Z)(e);eA(null==s?void 0:s.haveAssessment)}},[eV.query]);let eG=()=>{if(null==document?void 0:document.fullscreenElement)(null==document?void 0:document.exitFullscreen)&&(null==document||document.exitFullscreen());else{var e;null==document||null===(e=document.body)||void 0===e||e.requestFullscreen()}},eK=()=>{let e=i.Z.get("examToken"),s=(0,o.l_)("".concat(c.zA).concat(d.Uw$),{value:"https://troven.ai/assets/img/trovenBlackBlueLogo.png"},e);return s},e0=()=>new Promise((e,s)=>{let t=i.Z.get("examToken");fetch("https://api64.ipify.org?format=json").then(e=>e.json()).then(l=>{"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(a=>{let{latitude:n,longitude:i}=a.coords;(0,o.l_)(c.zA+d._Hc,{geoLocation:{latitude:n,longitude:i},ipAddress:l.ip},t).then(()=>{e()}).catch(()=>{s()})},e=>{s()})}).catch(e=>console.error("Error fetching IP address:",e))});(0,a.useEffect)(()=>{},[eN]);let e1=async()=>{eR(!0);try{let e=await navigator.mediaDevices.getUserMedia({video:!0});e&&setTimeout(()=>{eR(!1),eQ(!0)},4e3),eY.current&&(eY.current.srcObject=e,eY.current.play())}catch(e){console.error("Error accessing camera:",e),eR(!0)}},e2=async()=>{eO(!0);try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});console.log(e,"audioAccess"),e&&setTimeout(()=>{eO(!1),e$(!0)},2e3)}catch(e){console.log(e,"kkkdkdk"),eO(!0)}},[e4,e8]=(0,a.useState)(!1),e5=async()=>{if(eY.current){var e;let s=eY.current.getScreenshot();ea(s);let t=null==eY?void 0:null===(e=eY.current)||void 0===e?void 0:e.stream,l=null==t?void 0:t.getTracks();l.forEach(e=>e.stop()),e8(!0)}};(0,a.useEffect)(()=>{eN?(e2(),e1()):ex(!1)},[eN]);let e3=async e=>{G(!0),console.log(el,"file");let s=await fetch(el).then(e=>e.blob()),t=i.Z.get("examToken");await (0,o.l_)(d.IJ5,{filename:"".concat(Math.floor(1e8*Math.random()),".png")},t).then(async e=>{let t=e.data;console.log(t,"psyrl");try{await fetch(t,{method:"PUT",body:s}).then(()=>{let e=t.split("?")[0];eX((0,m.aZ)({value:e})).then(s=>{if(G(!1),200===s.payload.data.status_code){console.log(s.payload.data.token,"res-----------------");let t=i.Z.get("token"),l=i.Z.get();for(let e in l)i.Z.remove(e),localStorage.clear();i.Z.set("examToken",s.payload.data.token),i.Z.set("token",t),g.Am.success("Image uploaded successfully. please click on start assessment"),localStorage.setItem("platform",ez),et(!0),ei(e)}else g.Am.error("Image upload failed, please try again..")})}).catch(e=>{console.log(e)})}catch(e){console.log("image upload is faild")}})},e7=async()=>{let e=i.Z.get("examToken");return console.log(e,"token"),await (0,o.l_)(c.zA+d._Hc,{},e).then(e=>{if(console.log(e,"vikas"),505===e.status_code)(0,g.Am)(e.data.errorMsg);else{var s,t,l,a,n,o,c,r,d,m,x,u,h,f,v,p,w,j,b,y,N,k,S,A,C,T,z,P,B,D,_,Z,M,E,F,q,U,Q;
1if(200===e.data.status_code){let g=e.data;L(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.assessment),eg(null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(l=t.assessment)||void 0===l?void 0:l.startWithFullScreen),eJ(null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(n=a.assessment)||void 0===n?void 0:n.detectExtension),eP(null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(c=o.assessment)||void 0===c?void 0:null===(r=c.projects)||void 0===r?void 0:null===(d=r[0])||void 0===d?void 0:d.platform),(null==e?void 0:null===(m=e.data)||void 0===m?void 0:null===(x=m.assessment)||void 0===x?void 0:null===(u=x.commSkillsId)||void 0===u?void 0:u.length)!==0&&eT(!0),"completed"===i.Z.get("initializationStatus")&&(null==e?void 0:null===(B=e.data)||void 0===B?void 0:null===(D=B.assessment)||void 0===D?void 0:D.numOfQuestions)>0&&("completed"!==i.Z.get("assessmentStatus")?eV.push("/assessment"):e.data.assessment.projects.length>0?"completed"!==i.Z.get("projectStatus")?eV.push("/assessment-project"):window.location.href="/admin/result-preview":window.location.href="/admin/result-preview-assessment"),I(null==g?void 0:g.candidate),console.log(g,"wk"),R(!1),ey(null==e?void 0:null===(h=e.data)||void 0===h?void 0:null===(f=h.assessment)||void 0===f?void 0:f.geoLocation),ek(null==e?void 0:null===(v=e.data)||void 0===v?void 0:null===(p=v.assessment)||void 0===p?void 0:p.faceCapture);let _=(null==e?void 0:null===(w=e.data)||void 0===w?void 0:null===(j=w.assessment)||void 0===j?void 0:null===(b=j.projects)||void 0===b?void 0:b.length)>0,Z=(null==e?void 0:null===(y=e.data)||void 0===y?void 0:null===(N=y.assessment)||void 0===N?void 0:null===(k=N.xlabsData)||void 0===k?void 0:k.length)>0,M=(null==e?void 0:null===(S=e.data)||void 0===S?void 0:null===(A=S.assessment)||void 0===A?void 0:null===(C=A.commmskillData)||void 0===C?void 0:null===(T=C[0])||void 0===T?void 0:T.tasks.length)>0;M&&(_||Z)?eI(e=>e+3):M||_||Z?eI(e=>e+2):eI(1),(null==e?void 0:null===(z=e.data)||void 0===z?void 0:null===(P=z.assessment)||void 0===P?void 0:P.geoLocation)&&e0().then(()=>{console.log("Location fetched successfully")}).catch(()=>{console.log("Error fetching location")})}else if(200===e.data.status_code){let s=e.data,t=null==e?void 0:null===(_=e.data)||void 0===_?void 0:_.noOfQuestions;O(t),L(null==e?void 0:null===(Z=e.data)||void 0===Z?void 0:Z.assessment),I(null==s?void 0:s.candidate),console.log(s,"wk"),R(!1),ey(null==e?void 0:null===(M=e.data)||void 0===M?void 0:null===(E=M.assessment)||void 0===E?void 0:E.geoLocation),ek(null==e?void 0:null===(F=e.data)||void 0===F?void 0:null===(q=F.assessment)||void 0===q?void 0:q.faceCapture),(null==e?void 0:null===(U=e.data)||void 0===U?void 0:null===(Q=U.assessment)||void 0===Q?void 0:Q.geoLocation)&&e0().then(()=>{console.log("Location fetched successfully")}).catch(()=>{console.log("Error fetching location")})}else console.log(e.data,"details"),g.Am.error(e.data)}console.log("sectionCount",eE)})},e6=()=>{history.pushState(null,null,location.href),window.onpopstate=function(){history.go(1)}};console.log(M,"ase",E,"gg",F,"qq");let[e9,se]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(console.log("Detect Extensions:",eH),!eH)return;function e(){var e,s,t;let l=[...document.querySelectorAll("script[src], link[href], iframe[src]")];for(let e of l){let s=e.src||e.href;if(s&&/(chrome|moz|safari|edge)-extension:\/\//i.test(s))return se(!0),!0}if(null===(e=window.chrome)||void 0===e?void 0:null===(s=e.runtime)||void 0===s?void 0:s.id)return se(!0),!0;let a=document.querySelectorAll('[class*="extension"], [id*="extension"], [data-extension]');if(a.length>0)return se(!0),!0;let n=Array.from((null===(t=document.body)||void 0===t?void 0:t.attributes)||[]);for(let e of n)if(/-id$|-version$/i.test(e.name)&&e.name.length>10)return se(!0),!0;let i=document.querySelectorAll("*");for(let e of i){let s=Array.from(e.attributes||[]);for(let e of s)if(e.value&&/(chrome|moz|safari|edge)-extension:\/\//i.test(e.value))return se(!0),!0}return!1}let s=new MutationObserver(()=>{e9||e()});s.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),e();let t=setInterval(()=>{e9||e()},2e3);return()=>{s.disconnect(),clearInterval(t)}},[eH,e9]),console.log("extensionDetected state:",e9),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(w.Z,{}),(0,l.jsxs)("div",{className:"bg-white h-screen w-full ",children:[(0,l.jsx)("div",{className:"w-full bg-defaultBg ",children:(0,l.jsx)("div",{className:"flex justify-between items-center py-3 md:py-6 px-20 mx-auto",children:(0,l.jsxs)("div",{className:"flex space-x-5 items-center",children:[" ",(0,l.jsx)("img",{src:"/troven-white-logo.png",className:"w-28 h-7 md:block"})]})})}),(0,l.jsxs)("div",{className:"w-full ",children:[q?null:(0,l.jsxs)(l.Fragment,{children:[1===_&&(0,l.jsxs)("div",{className:"min-h-screen md:min-
1h-[50vh] w-full bg-white py-3 md:py-1 ".concat(eN?"max-w-7xl":eE>=3?"max-w-7xl":2===eE?"max-w-6xl":"max-w-5xl"," mx-auto md:my-8 md:rounded-xl md:shadow flex flex-col"),children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:space-x-4 items-start bg-white",children:[(0,l.jsx)("div",{className:"border border-blue-200 w-full ".concat(eN?"w-full md:w-[70%]":"w-full"," h-[50vh] overflow-y-auto "),children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-14 md:gap-0 ",children:[eS&&(0,l.jsxs)("div",{className:"flex border-r px-3 py-2 border-blue-200 flex-col space-y-3 ".concat(1===eE?"md:w-full":eN||eE>=3?"md:w-1/3":2===eE?"md:w-1/2":"md:w-full"),children:[(0,l.jsx)("div",{className:"flex w-full bg-defaultBg py-1 px-2 rounded text-white items-center mb-2",children:(0,l.jsx)("h1",{className:"text-xl w-52 font-semibold",children:(null==M?void 0:null===(e=M.commmskillData)||void 0===e?void 0:null===(s=e[0])||void 0===s?void 0:s.tasks.length)>0?"Part 1":"Assessment Details"})}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Name"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{className:" flex-1",children:[null==M?void 0:M.name," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Duration"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[null==M?void 0:M.duration," ","(minutes)"," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Questions"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[" ",null==M?void 0:M.numOfQuestions]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Marks"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[null==M?void 0:M.totalMarks," "]})]})]}),(null==M?void 0:null===(t=M.commmskillData)||void 0===t?void 0:null===(v=t[0])||void 0===v?void 0:v.tasks.length)>0&&(0,l.jsxs)("div",{className:"flex border-r px-3 py-2 border-blue-200 flex-col space-y-3 ".concat(eN?"md:w-1/3":eE>=3?"md:w-1/3":2===eE?"md:w-1/2":"md:w-full"),children:[(0,l.jsx)("div",{className:"flex w-full bg-defaultBg text-white py-1 px-3 rounded items-center mb-2",children:(0,l.jsx)("h1",{className:"text-xl w-52 font-semibold",children:"Part 2"})}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Question"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{className:" flex-1",children:[null==M?void 0:null===(y=M.commmskillData)||void 0===y?void 0:null===(N=y[0])||void 0===N?void 0:null===(k=N.tasks)||void 0===k?void 0:k.length," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Duration"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[null==M?void 0:null===(S=M.commmskillData)||void 0===S?void 0:null===(A=S[0])||void 0===A?void 0:A.duration," ","(minutes)"," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Marks"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[20," "]})]})]}),(null==M?void 0:null===(C=M.xlabsData)||void 0===C?void 0:C.length)>0&&(0,l.jsxs)("div",{className:"flex px-3 py-2 pl-5 flex-col space-y-3 ".concat(eN?"md:w-1/3":eE>=3?"md:w-1/3":2===eE?"md:w-1/2":"md:w-full"),children:[(0,l.jsx)("div",{className:"flex w-full items-center bg-defaultBg text-white py-1 px-3 rounded mb-2",children:(0,l.jsx)("h1",{className:"text-xl w-52 font-semibold",children:"Part 3"})}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Labs"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{className:" flex-1",children:[null==M?void 0:null===(T=M.xlabsData)||void 0===T?void 0:T.length," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Duration"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[null==M?void 0:null===(z=M.xlabsData)||void 0===z?void 0:z.reduce((e,s)=>e+parseInt(s.duration),0)," ","(minutes)"," "]})]}),(0,l.jsxs)("div",{className:"flex w-full items-start",children:[(0,l.jsx)("h1",{className:" w-28 text-gray-700 font-semibold",children:"Total Marks"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{children:[(null==M?void 0:null===(P=M.xlabsData)||void 0===P?void 0:P.reduce((e,s)=>{var t;return e+parseInt(null==s?void 0:null===(t=s.tasks)||void 0===t?void 0:t.length)},0))*5," "]})]})]}),(null==M?void 0:null===(B=M.projects)||void 0===B?void 0:B.length)>0&&(0,l.jsxs)("div",{className:"flex px-3 py-2 pl-5 flex-col space-y-3 ".concat(eN?"md:w-1/3":eE>=3?"md:w-1/3":2===eE?"md:w-1/2":"md:w-full"),children:[(0,l.jsx)("div",{className:"flex w-full bg-defaultBg text-white py-1 px-3 rounded items-center mb-2",children:(0,l.jsx)("h1",{className:"text-xl w-52 font-semibold",children:"Project Details"})}),null==M?void 0:null===(D=M.projects)||void 0===D?void 0:D.map((e,s)=>(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsxs)("div",{className:"font-semibold w-20 rounded items-center bg-defaultBg text-white text-md py-1 px-3 mb-2",children:["Project ",s+1]}),(0,l.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)("h1",{className:"w-28 text-gray-700 font-semibold",children:"Name"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{className:" flex-1",children:[null==e?void 0:e.projectName," "]})]}),(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)("h1",{className:"w-28 text-gray-700 font-semibold",children:"Total Task"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsx)("p",{children:null==e?void 0:e.subTaskCount})]}),(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)("h1",{className:"w-28 text-gray-700 font-semibold",children:"Total Marks"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsx)("p",{children:null==e?void 0:e.marks})]}),(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)("h1",{className:"w-28 text-gray-700 font-semibold",children:"Duration"}),(0,l.jsx)("p",{className:"px-2 mr-5 text-gray-700 font-semibold",children:":"}),(0,l.jsxs)("p",{className:"whitespace-nowrap",children:[null==e?void 0:e.duration," (minutes)"]})]})]})]},s))]})]})}),eN&&(0,l.jsx)("div",{className:"rounded-md w-full md:w-[30%] flex flex-col items-center justify-center pt-5",children:(0,l.jsx)("div",{children:(0,l.jsxs)(l.Fragment,{children:[" ",el?(0,l.jsxs)("div",{className:"flex flex-col space-x-5",children:[(0,l.jsxs)("p",{className:"font-semibold text-base text-center py-2",children:["Please upload your picture",(0,l.jsx)("br",{})," to proceed"]}),(0,l.jsxs)("div",{className:"w-72",children:[(0,l.jsx)("img",{src:el,className:"rounded-xl",alt:"Captured"}),(0,l.jsxs)("div",{className:"flex justify-center items-center py-3 space-x-5",children:[(0,l.jsx)("button",{disabled:H,onClick:()=>{ea(null),e1(),e8(!1),et(!1),ei(null)},className:"px-5 border border-defaultBg py-2 ".concat(H?"bg-gray-400":"bg-white"," text-defaultBg hover:bg-defaultBg hover:text-white rounded-lg"),children:"Retake"}),(0,l.jsx)("button",{disabled:Y||es,onClick:e3,className:"px-5 py-2 ".concat(Y||es?"bg-gray-400":" bg-defaultBg "," text-white rounded-lg"),children:Y?(0,l.jsx)(x.fCD,{className:"animate-spin text-white text-xl"}):"Upload"})]})]})]}):(0,l.jsxs)("div",{className:"flex flex-col ",children:[(0,l.jsxs)("p",{className:"font-semibold text-base text-center py-2",children:["Please take your picture to",(0,l.jsx)("br",{})," proceed with the assessment"]}),(0,l.jsx)("div",{className:"w-72",children:!1===e4&&(0,l.jsx)(p(),{audio:!1,height:300,width:300,ref:eY,screenshotFormat:"image/jpeg",videoConstraints:{width:640,height:480,facingMode:"user"},className:"visible rounded-xl"},"hello")}),(0,l.jsx)("div",{className:"flex space-x-5 justify-center items-center py-2",children:(0,l.jsxs)("button",{onClick:e5,className:"px-6 py-3 bg-defaultB text-white bg-defaultBg rounded-lg flex space-x-3",children:[(0,l.jsx)(u.Mdg,{className:"text-white text-xl"}),(0,l.jsx)("span",{className:"text-normals",children:"Take Picture"})]})})]})]})})})]}),(0,l.jsxs)("div",{className:"flex items-center bg-white justify-between px-6 py-4 border border-blue-200 rounded-b-md",children:[(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex items-center space-x-1",onClick:()=>Z(0),children:[(0,l.jsx)(n.D68,{className:" text-blue-600 h-6 w-6 block mt-0.5 cursor-pointer"}),(0,l.jsx)("button",{className:"text-blue-600 font-semiblod text-xl ",children:"Back"})]})}),(0,l.jsxs)("p",{className:"flex items-center space-x-1",disabled:K,onClick:()=>{en||!eN?(J(!0),e6(),ee(!0),eS?(eV.push("/assessment"),ep&&eG()):"aws"===ez?eV.push("/assessment-project"):"salesforce"===ez&&eV.push("/salesforce"),i.Z.set("initializationStatus","completed")):g.Am.warning("Please upload your picture")},children:[(0,l.jsx)("button",{onClick:()=>!eN&&eK(),className:"text-blue-600 font-semiblod border rounded-md px-4 py-1 ".concat(en?"bg-defaultBg text-white":eN?"bg-white text-blue-600 border-blue-600":"bg-defaultBg text-white"," "),children:K?(0,l.jsx)(x.fCD,{className:"animate-spin text-white-600 text-xl"}):"Start Assessment"}),(0,l.jsx)(n.sOJ,{className:" hidden md:block text-blue-600 h-6 w-6 mt-0.5 cursor-pointer"})]})]})]}),0===_&&(0,l.jsxs)("div",{className:" md:min-h-[50vh] w-full bg-white py-3 md:py-10 px-20 md:my-3 mx-auto flex flex-col",children:[(0,l.jsxs)("div",{className:"flex md:flex-row flex-col bg-white md:space-x-10 items-start",children:[(0,l.jsxs)("div",{className:" w-full md:w-[40%] flex flex-col px-3 py-2 ",children:[eN?(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-base text-black pb-2 border-b-2 font-semibold",children:"Permission Setting"}),(0,l.jsxs)("div",{className:" hidden md:block space-y-3 py-3 px-4",children:[(0,l.jsxs)("div",{className:"flex justify-evenly items-center",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsx)("svg",{className:"w-6 h-6 ",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:"blue",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4
1-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("p",{className:" whitespace-nowrap ",children:"System Requirements"})]}),(0,l.jsx)("div",{className:"h-[1px] border-t-2 border-dotted w-14 border-t-gray-500 "}),(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:eW?"blue":"gray",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("p",{children:"Audio Access"})]}),(0,l.jsx)("div",{className:"h-[1px] border-t-2 border-dotted w-14 border-t-gray-500 "}),(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:eU?"blue":"gray",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("p",{children:"Camera Access "})]})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center w-full h-[100px] bg-[#DFE7F8] ",children:[eF&&(0,l.jsxs)("p",{className:"flex flex-col md:flex-row gap-2 justify-center items-center",children:[(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Checking Audio access, Please Allow the mic for audio"})]}),eF||eq&&(0,l.jsxs)("p",{className:"flex flex-col md:flex-row gap-2 justify-center items-center",children:[" ",(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Checking Video access, Please Allow the camera access"})]}),eW&&eU&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)("svg",{className:"w-6 h-6 ",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:"green",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Allowed Both Camera and Audio"})]})]})]})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-base text-black pb-2 border-b-2 font-semibold",children:"Proctoring Details"}),(0,l.jsxs)("div",{className:"hidden md:block space-y-3 py-3 px-4",children:[(0,l.jsx)("div",{className:"flex justify-evenly items-center"}),(0,l.jsxs)("div",{className:"flex hidden flex-col justify-center items-center w-full h-[100px] bg-[#DFE7F8] ",children:[eF&&(0,l.jsxs)("p",{className:"flex flex-col md:flex-row gap-2 justify-center items-center",children:[(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Checking Audio access, Please Allow the mic for audio"})]}),eF||eq&&(0,l.jsxs)("p",{className:"flex flex-col md:flex-row gap-2 justify-center items-center",children:[" ",(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Checking Video access, Please Allow the camera access"})]}),eW&&eU&&(0,l.jsxs)("p",{className:"flex items-center gap-2",children:[(0,l.jsx)("svg",{className:"w-6 h-6 ",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:"green",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("span",{className:"text-base font-medium",children:"Allowed Both Camera and Audio"})]})]})]})]}),(0,l.jsxs)("div",{className:" md:hidden space-y-3 py-3 px-4",children:[(0,l.jsxs)("div",{className:"flex justify-around items-center",children:[(0,l.jsx)("div",{className:"flex flex-col items-center",children:(0,l.jsx)(r.BNm,{size:25,color:"blue"})}),(0,l.jsx)("div",{className:"flex flex-col items-center",children:(0,l.jsx)(r.D_D,{size:25,color:eW?"blue":"gray"})}),(0,l.jsx)("div",{className:"flex flex-col items-center",children:(0,l.jsx)(x.Dmm,{size:25,color:eU?"blue":"gray"})})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center w-full h-[100px] px-4 bg-[#DFE7F8] ",children:[eF&&(0,l.jsxs)("p",{className:"flex flex-col gap-2 items-center",children:[(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:" text-base md:text-lg text-center font-medium",children:"Checking Audio access, Please Allow the mic for audio"})]}),eF||eq&&(0,l.jsxs)("p",{className:"flex flex-col gap-2 items-center",children:[" ",(0,l.jsx)(b.Z,{color:"#000",size:19}),(0,l.jsx)("span",{className:"text-base md:text-lg text-center font-medium",children:"Checking Video access, Please Allow the camera access"})]}),eW&&eU&&(0,l.jsxs)("p",{className:"flex flex-col items-center gap-2",children:[(0,l.jsx)("svg",{className:"w-6 h-6 ",xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 512 512",id:"tick",fill:"green",children:(0,l.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-32.1 281.7c-2.4 2.4
1-5.8 4.4-8.8 4.4s-6.4-2.1-8.9-4.5l-56-56 17.8-17.8 47.2 47.2L340 177.3l17.5 18.1-133.6 134.3z"})}),(0,l.jsx)("span",{className:"text-lg text-center font-medium",children:"Allowed Both Camera and Audio"})]})]})]}),(null==M?void 0:M.enableWebCam)?(0,l.jsx)("div",{className:" space-y-3 py-3 mt-5 px-4",children:(0,l.jsx)("img",{src:"/CheatingImage.png",className:"w-full block",alt:""})}):(0,l.jsx)("div",{className:" space-y-3 py-3 mt-5 px-4",children:(0,l.jsx)("img",{src:"/cheatingImages.png",className:" w-full block",alt:""})})]}),(0,l.jsxs)("div",{className:"py-2 md:px-8 px-4 gap-4 flex flex-col w-full md:w-[60%] ",children:[(0,l.jsx)("h1",{className:"text-base text-black pb-2 border-b-2 font-semibold",children:"Instructions"}),(0,l.jsx)("div",{className:" overflow-y-auto text-gray-400 flex-1 scrollbar-none",children:(0,l.jsx)("div",{className:"prose",dangerouslySetInnerHTML:{__html:(null==M?void 0:M.instructions)?null==M?void 0:M.instructions:null==M?void 0:M.description}})}),(0,l.jsxs)("div",{className:"flex flex-row items-center space-x-3 bg-white ",children:[(0,l.jsx)("input",{className:"cursor-pointer",type:"checkbox",checked:U,onChange:()=>{Q(!U)}}),(0,l.jsx)("p",{children:'By clicking "I accept," you consent to the sharing of your profile with potential employers for the assessment and recruitment process.'})]}),(0,l.jsxs)("div",{className:"flex flex-row space-x-3 bg-white border-blue-200",children:[(0,l.jsx)("input",{type:"checkbox",className:"cursor-pointer",checked:W,onChange:()=>{$(!W)}}),(0,l.jsxs)("p",{children:["I Agree to the"," ",(0,l.jsx)("span",{className:"font-semibold underline cursor-pointer",onClick:()=>X(!0),children:"Terms & Conditions"}),"."]})]})]})]}),(0,l.jsxs)("div",{className:"flex bg-white items-center justify-between mt-7 px-6 py-4 border-t border-t-blue-200 rounded-b-md",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-1 invisible",onClick:()=>Z(0),children:[(0,l.jsx)(n.D68,{className:" text-blue-600 h-6 w-6 block mt-0.5 cursor-pointer"}),(0,l.jsx)("button",{className:"text-blue-600 font-semiblod text-xl ",children:"Back"})]}),eN?(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex items-center space-x-1 ".concat(eW&&eU?"bg-defaultBg":"bg-gray-500"," roun
1ded-full px-4 py-1 text-white"),onClick:()=>{eW&&eU||g.Am.warning("Please give access to camera and audio"),U&&W?Z(1):g.Am.warning("Please accept the terms and conditions")},children:[(0,l.jsx)("button",{className:"text-white font-semiblod text-xl ",children:"Next"}),(0,l.jsx)(n.sOJ,{className:" text-white h-6 w-6 block mt-0.5 cursor-pointer"})]})}):(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex items-center space-x-1 ".concat(U&&W?"bg-defaultBg":"bg-gray-500"," rounded-full px-4 py-1 text-white"),onClick:()=>{U&&W?Z(1):g.Am.warning("Please accept the terms and conditions")},children:[(0,l.jsx)("button",{className:"text-white font-semiblod text-xl ",children:"Next"}),(0,l.jsx)(n.sOJ,{className:" text-white h-6 w-6 block mt-0.5 cursor-pointer"})]})})]})]}),!0===V&&(0,l.jsxs)("div",{className:"fixed inset-0 z-[100] flex flex-col items-center justify-center overflow-hidden px-4 py-6 sm:px-5","x-show":"showModal",role:"dialog",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-slate-900/60 transition-opacity duration-300"}),(0,l.jsxs)("div",{className:"relative w-[50vw] origin-top rounded-lg bg-white transition-all duration-300 dark:bg-navy-700",children:[(0,l.jsxs)("div",{className:"flex justify-between rounded-t-lg bg-slate-200 px-4 py-3 dark:bg-navy-800 sm:px-10 pt-5",children:[(0,l.jsx)("h3",{className:"text-base font-medium text-slate-700 dark:text-navy-100",children:"Terms & Conditions"}),(0,l.jsx)("button",{onClick:()=>{X(!1)},className:"btn -mr-1.5 h-7 w-7 rounded-full p-0 hover:bg-slate-300/20 focus:bg-slate-300/20 active:bg-slate-300/25 dark:hover:bg-navy-300/20 dark:focus:bg-navy-300/20 dark:active:bg-navy-300/25",children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4.5 w-4.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,l.jsxs)("div",{className:"px-4 py-4 sm:px-10 pb-5",children:[(0,l.jsx)("p",{className:"mb-4",children:"You must accept the conditions below before beginning the assessment on Troven; otherwise, you should not take the assessment."}),(0,l.jsxs)("ol",{className:"list-decimal list-inside space-y-2",children:[(0,l.jsx)("li",{children:"By accessing and taking assessments on Troven, you acknowledge and agree that your email ID and contact number will be collected, stored, and may be shared with potential employers."}),(0,l.jsx)("li",{children:"The Platform Provider reserves the right to modify, suspend, or discontinue any part of the Platform or the services offered at any time without notice."}),(0,l.jsx)("li",{children:"Your continued use of Troven following the posting of any changes will indicate your acceptance of those changes."}),(0,l.jsx)("li",{children:"All content available on Troven, including but not limited to text, images, graphics, data, and software, is the property of the Platform Provider or has been licensed to the Platform Provider by third parties."}),(0,l.jsx)("li",{children:"Unauthorized use, reproduction, or distribution of any content from the Platform is strictly prohibited."}),(0,l.jsx)("li",{children:'The Platform and its content are provided on an "as is" and "as available" basis without any warranties of any kind, either express or implied.'}),(0,l.jsx)("li",{children:"The Platform Provider does not warrant that the Platform will be uninterrupted or error-free, nor does it make any warranty as to the results that may be obtained from the use of the Platform."}),(0,l.jsx)("li",{children:"These Terms of Use shall be governed by and construed in accordance with the laws of India, without regard to its conflict of law provisions."}),(0,l.jsx)("li",{children:"Taking the assessment or course on Troven does not guarantee a job."})]})]})]})]}),e9&&(0,l.jsx)("div",{"data-warning-popup":!0,className:"fixed inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm",style:{zIndex:99999},children:(0,l.jsx)("div",{className:"bg-white rounded-2xl shadow-2xl p-6 max-w-md w-[90%] text-center border border-gray-200",children:(0,l.jsxs)("div",{className:"flex flex-col items-center space-y-3",children:[(0,l.jsx)("div",{className:"bg-blue-100 text-blue-600 p-3 rounded-full",children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01M10.29 3.86l-7.4 12.8A1 1 0 004 18h16a1 1 0 00.86-1.5l-7.4-12.8a1 1 0 00-1.72 0z"})})}),(0,l.jsx)("h2",{className:"text-xl font-semibold text-gray-800",children:"Browser Extensions Detected"}),(0,l.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed",children:"This assessment cannot run while browser extensions are active. Please disable all extensions and reload the page to continue."}),(0,l.jsx)("button",{onClick:()=>window.location.reload(),className:"mt-4 bg-blue-600 hover:bg-blue-700 text-white px-5 py-2 rounded-lg font-medium transition-all",children:"Reload Page"}),(0,l.jsx)("p",{className:"text-xs text-gray-400 mt-3",children:"For the best experience, use a clean browser or incognito mode."})]})})})]}),(0,l.jsx)(g.Ix,{position:"top-center"})]})]})]})}},80012:function(e,s,t){"use strict";t.d(s,{Gx:function(){return u},Hj:function(){return c},Lu:function(){return f},Wc:function(){return m},aZ:function(){return h},h$:function(){return r},qR:function(){return d},wR:function(){return x}}),t(67294);
1var l=t(24289),a=t(1716),n=t(31955),i=t(4528),o=t(22653);let c=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.jV),e,t);return a}),r=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.CB5),e,t);return a}),d=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.O5g),e,t);return a}),m=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.q26),e,t);return a}),x=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.NeO),e,t);return a}),u=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.bIz),e,t);return a}),h=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.Uw$),e,t);return a}),f=(0,a.hg)("tenant/getSubscription",async(e,s)=>{let t=n.Z.get("examToken"),a=await (0,l.l_)("".concat(o.zA).concat(i.knp),e,t);return a})},75410:function(){},48628:function(){},31601:function(){},67792:function(){},34977:function(){},72950:function(){},22868:function(){},14777:function(){},99830:function(){},70209:function(){},75042:function(){}},function(e){e.O(0,[5445,955,1228,1778,2723,864,3132,5974,295,2773,904,8764,6408,20,1293,9295,9806,859,6915,4528,9774,2888,179],function(){return e(e.s=95349)}),_N_E=e.O()}]);
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.