(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[816],{23493:function(e,t,n){var a=n(80954),r=n(13218);e.exports=function(e,t,n){var s=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return r(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),a(e,t,{leading:s,maxWait:t,trailing:i})}},80816:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var a=n(50029),r=n(59499),s=n(64687),i=n.n(s),c=n(67294),l=n(41664),o=n.n(l),d=n(25617),u=n(60132),h=n(40925),m=n(67314),f=n(30406),p=n(59265),x=n(2287),g=n(86399),v=n(70017),w=n(29989),j=n(30381),b=n.n(j),C=n(11163),y=n(8267),N=n(74384),k=n(42871),L=n(52224),Z=n(97129),P=n(85893),S=function(e){var t=e.defaultEmail,n=void 0===t?"":t,a=e.isSubmitting,r=void 0!==a&&a,s=e.onSubmit,i=(0,c.useState)(n),l=i[0],o=i[1],d=(0,c.useState)(""),u=d[0],h=d[1];return(0,c.useEffect)(function(){o(n),h("")},[n]),(0,P.jsxs)("div",{className:"p-4",children:[(0,P.jsx)("b",{children:"Enter your email address"}),(0,P.jsx)("p",{className:"text-gray fs-md mb-3",children:"Enter the email address on which you want to receive the PDF download link."}),(0,P.jsxs)("form",{onSubmit:function(e){e.preventDefault();var t=l.trim(),n=Z.Z.email(t);if(n){h(n);return}s(t)},children:[(0,P.jsxs)("div",{className:"form-group mb-4",children:[(0,P.jsx)("label",{className:"visually-hidden",htmlFor:"download-pdf-email",children:"Email address"}),(0,P.jsx)("input",{autoComplete:"email",className:"form-control ".concat(u?"is-invalid":""),disabled:r,id:"download-pdf-email",onChange:function(e){o(e.target.value),u&&h("")},placeholder:"Enter your email address",type:"email",value:l}),u&&(0,P.jsx)("div",{className:"invalid-feedback d-block",children:u})]}),(0,P.jsx)("button",{className:"btn btn-secondary w-100 p-1 fw-600",disabled:r||!l.trim(),type:"submit",children:r?"Sending...":"Send PDF"})]})]})};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function O(e){for(var t=1;t1)){e.next=5;break}return e.abrupt("return",eH());case 5:return e.abrupt("return",eQ());case 6:case"end":return e.stop()}},e)})),[eR,Q,eu.length,z.en,eH,eQ,eF]),ts=(n=(0,a.Z)(i().mark(function e(){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,m.kq)("".concat(window.location.origin,"/practice/").concat(Q,"/instruction").concat(j?"?testSeries=".concat(j,"&"):"?").concat("Prepp"===eM?"newDesign=".concat(!1):"newDesign=".concat(!0)).concat(e7?"&examCategory=".concat(e7):""));case 2:eX(),eA(""),eR((0,h.f)("Url Copied Successfully!"));case 5:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return((0,c.useEffect)(function(){var e=function(e){var t;(null==e||null===(t=e.detail)||void 0===t?void 0:t.id)===Q&&tr()};return window.document.addEventListener("prepp-login-successful",e),function(){window.document.removeEventListener("prepp-login-successful",e)}},[Q,tr]),(0,c.useEffect)(function(){if(ea&&!e0&&!e5){eC(b()(ea).diff(b().now()));var e=setInterval(function(){return eC(b()(ea).diff(b().now()))},1e3);return function(){return clearInterval(e)}}},[ea,e0,e5]),e4&&Z)?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"".concat(W?"":"".concat(void 0===l?"card bordered-card":l," flex-column")," h-100 d-flex "),style:O({border:"".concat(W?"1px solid gold":""),borderRadius:"10px"},G&&{background:"linear-gradient(180deg, #F4FAFF 0%, #FFFFFF 100%)"}),children:[(0,P.jsxs)("div",{className:"flex-fill p-3 d-flex flex-column",children:[(0,P.jsxs)("div",{className:"d-flex ".concat(W?"gap-3":"justify-content-between"," align-items-center mb-2"),children:[(0,P.jsxs)("div",{className:"d-flex align-items-center",children:[G?(0,P.jsx)("img",{alt:"plus",className:"w-auto",height:18,src:"/img/prepp-plus.png"}):(0,P.jsx)("div",{className:"bg-success text-white fs-md rounded px-2",children:"Free"}),K.includes("LIVE")&&(0,P.jsx)("div",{className:"fs-md ms-2 rounded rounded-pill bg-danger text-white px-2",children:"• Live"})]}),(0,P.jsxs)("div",{className:"d-flex align-items-center",children:[eF&&(0,P.jsx)(k.Z,{fill:"#666",id:Q,isBookmarked:em,type:"TEST"}),!W&&(!G||e_)&&(!K.includes("LIVE")||ee)&&("downloaded"===eN?(0,P.jsx)("button",{"aria-label":"Downloaded",className:"btn p-0 mx-1 border-0",onClick:function(){return setTimeout(ek(!1),100)},type:"button",children:(0,P.jsx)(H,{fill:"var(--bs-success)",width:20})}):(0,P.jsx)("button",{"aria-label":"Share Test",className:"btn p-0 m-0 border-0",disabled:"loading"===eN,onClick:tr,type:"button",children:eN&&1===eu.length?(0,P.jsx)("div",{className:"spinner-grow spinner-grow-sm text-primary",role:"status",children:(0,P.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,P.jsx)(_,{fill:"#666",height:"24",width:"24"})})),(0,P.jsx)("button",{"aria-label":"Share Test",className:"btn p-0 m-0 border-0",onClick:function(){(0,y.fW)(e7,"openModal")?(eA("COPY"),e$()):ts(),w.Z.handleSingleEvents({eventType:"test_shared",title:"Share Test"}),(0,v.YW)({action:"share",method:"link",content_type:"test",item_id:z.en})},type:"button",children:(0,P.jsx)(I,{fill:"#666"})})]})]}),(0,P.jsx)("h6",{className:"fw-600 text-ellipsis-2 mb-2",title:z.en,children:z.en}),(0,P.jsxs)("div",{className:"flex-fill row row-cols-2 align-content-start ".concat(W?"gap-3":"justify-content-between"," g-2 fs-xmd text-gray"),children:[e0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(V,{className:"me-1",fill:"#666",height:16,width:16}),e8||!ew?"TBD":(0,P.jsxs)("span",{children:[ew,"/",ei," Rank"]})]}),(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(Y,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsxs)("span",{children:[ev,"/",eo," Marks"]})]})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(D,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsx)("span",{children:"".concat(Math.floor(el/60)," Minutes")})]}),(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(E,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsx)("span",{children:"".concat(ec," Questions")})]}),(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(Y,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsx)("span",{children:"".concat(eo," Marks")})]})]}),!!eh&&(0,P.jsxs)("div",{className:"col-auto",children:[(0,P.jsx)(B,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsxs)("span",{children:["".concat(ei.toLocaleString()," Attempted")," "]})]}),eu&&(0,P.jsxs)("div",{className:"col-auto",title:eu.map(function(e){return(0,m.fm)(e.name)}).join(", "),children:[(0,P.jsx)(R,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsxs)("span",{children:[eu.slice(0,3).map(function(e){return(0,m.fm)(e.name)}).join(", "),(0,P.jsx)("span",{className:"text-primary",children:eu.length>3&&" +".concat(eu.slice(3).length," More")})]})]}),ef&&(0,P.jsxs)("div",{className:"col-auto",children:[ef==y.t1&&(0,P.jsx)(A,{className:"me-1",fill:"#666",height:16,width:16}),ef==y.wf&&(0,P.jsx)(T,{className:"me-1",fill:"#666",height:16,width:16}),ef==y.oo&&(0,P.jsx)(F,{className:"me-1",fill:"#666",height:16,width:16}),(0,P.jsx)("span",{children:ef})]})]}),e0&&!K.includes("LIVE")&&(0,P.jsxs)("div",{children:[r?(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("button",{className:"border-0 bg-transparent text-primary text-decoration-none fs-md m-0 p-0 mt-2",onClick:function(){return e$()},children:[(0,P.jsx)(q,{className:"me-1",fill:"var(--bs-primary)",height:15,style:{transform:"scaleX(-1) translateY(-2px)"}}),"Reattempt"]})}):(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(o(),{as:"/practice/".concat(Q,"/instruction").concat(j?"?testSeries=".concat(j,"&"):"?","examCategory=").concat(e7,"&newDesign=false"),className:"text-decoration-none fs-md mt-2",href:{pathname:"/practice/[testId]/instruction",query:{testId:Q,testSeries:j,examCategory:e7,newDesign:!1}},onClick:function(){return(0,v.YW)({action:"test_card",category:"Reattempt Test",test:z.en,location:window.location.pathname})},children:[(0,P.jsx)(q,{className:"me-1",fill:"var(--bs-primary)",height:15,style:{transform:"scaleX(-1) translateY(-2px)"}}),"Reattempt"]})})," "]})]}),(0,P.jsxs)("div",{className:"".concat(W?"":"bg-primary-100"," p-3"),style:{borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px"},children:[!W&&(0,P.jsx)("div",{className:"fs-xmd text-center mb-1",children:e2?e1?(0,P.jsxs)(P.Fragment,{children:["Available on"," ",(0,P.jsx)("span",{className:"fw-600",children:b()(es).format(U)})]}):(0,P.jsx)(P.Fragment,{children:"Coming soon"}):e8?(0,P.jsxs)(P.Fragment,{children:["Result available after"," ",(0,P.jsx)("span",{className:"fw-600",children:e3.format(U)})]}):e5?(0,P.jsxs)(P.Fragment,{children:["Test will end on"," ",(0,P.jsx)("span",{className:"text-success fw-600",children:b()(ea).format(U)})]}):ea&&!e4?(0,P.jsxs)(P.Fragment,{children:["Test will end in"," ",(0,P.jsx)("span",{className:36e5>eb.valueOf()?"text-danger fw-600":"text-success fw-600",children:tt})]}):ee?(0,P.jsxs)(P.Fragment,{children:[e0?"Attempted":"Started"," on"," ",(0,P.jsx)("span",{className:"text-success fw-600",children:b()(et).format(U)})]}):(0,P.jsxs)(P.Fragment,{children:["Attempted by"," ",Math.round(ep/14).toLocaleString()," ","aspirants in 12 hours"]})}),W&&(0,P.jsx)("button",{className:"btn bg-dark text-white mb-3 w-100","aria-label":"Share Test",disabled:"loading"===eN,onClick:tr,type:"button",children:"Download Pdf"}),e8?(0,P.jsx)(o(),{as:"/practice/".concat(ee,"/quick-analysis"),className:"btn btn-secondary w-100 p-1 fw-600",href:{pathname:"/practice/[testId]/quick-analysis",query:{testId:ee}},onClick:function(){return(0,v.YW)({action:"test_card",category:"Quick Analysis",test:z.en,location:window.location.pathname})},children:"Quick Analysis"}):e0?(0,P.jsx)(o(),{as:"/practice/".concat(Q,"/analysis"),className:"btn btn-secondary w-100 p-1 fw-600",href:{pathname:"/practice/[testId]/analysis",query:{testId:Q,examCategory:e7}},onClick:function(){return(0,v.YW)({action:"test_card",category:"View Result",test:z.en,location:window.location.pathname})},children:"View Result"}):e2?(0,P.jsx)("button",{className:"btn btn-secondary w-100 p-1 fw-600",disabled:"disabled",type:"button",children:"Start Now"}):eF?G&&!e_&&(void 0===eI?0:eI)>=5&&J!==u.ZY.PAUSE?(0,P.jsx)("button",{className:"btn btn-secondary w-100 p-1 fw-600",onClick:function(){eF?eR((0,g.p)(x.Q.PAYMENT)):eR((0,g.p)(x.Q.LOGIN,{title:"Unlock Test",payment:!0})),(0,N.B)({category:"ENROLL_NOW",action:"UNLOCK TEST",location:window.location.pathname}),(0,v.YW)({action:"ENROLL_NOW",category:"UNLOCK TEST",location:window.location.pathname})},type:"button",children:"Unlock Now"}):K.includes("LIVE")&&e4?(0,P.jsx)("div",{className:"text-center text-gray",children:"Test has Ended"}):r?(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("button",{className:"btn btn-secondary w-100 p-1 fw-600",onClick:function(){return e$()},children:[(0,u.jy)(J)," Test"]})}):(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(o(),{as:"/practice/".concat(Q,"/instruction").concat(j?"?testSeries=".concat(j,"&"):"?","newDesign=",!1,"&examCategory=").concat(e7),className:"btn btn-secondary w-100 p-1 fw-600",href:{pathname:"/practice/[testId]/instruction",query:{testId:Q,testSeries:j,examCategory:e7,newDesign:!1}},onClick:function(){return(0,v.YW)({action:"test_card",category:"".concat((0,u.jy)(J)," Test"),test:z.en,location:window.location.pathname})},children:[(0,u.jy)(J)," Test"]})}):(0,P.jsx)("button",{className:"btn btn-secondary w-100 p-1 fw-600",onClick:function(){return eR((0,g.p)(x.Q.LOGIN,{title:"Start Test",reload:!0}))},type:"button",children:"Start Now"})]})]}),eu.length>1&&(0,P.jsx)(eU,{noSize:!0,children:(0,P.jsxs)("div",{className:"p-4",children:[(0,P.jsx)("b",{children:"Please Choose a Language:"}),eu.map(function(e){var t=e.name;return(0,P.jsxs)("div",{className:"form-check",children:[(0,P.jsx)("input",{checked:t===eZ,className:"form-check-input",id:t,name:"language",onChange:function(e){e.preventDefault(),eP(t)},type:"radio",value:t}),(0,P.jsx)("label",{className:"form-check-label",htmlFor:t,children:(0,m.fm)(t)})]},t)}),(0,P.jsx)("button",{className:"btn btn-secondary mt-4 mx-auto",disabled:"loading"===eN,onClick:ta,type:"button",children:"Continue"})]})}),(0,P.jsx)(eG,{noSize:!0,children:(0,P.jsx)(S,{defaultEmail:void 0===eV?"":eV,isSubmitting:"loading"===eN,onSubmit:tn})}),r&&(0,P.jsx)(eJ,{noSize:!0,children:(0,P.jsxs)("div",{className:"p-4",children:[(0,P.jsx)("b",{children:"Please Choose a Template:"}),te.map(function(e){return(0,P.jsxs)("div",{className:"form-check",children:[(0,P.jsx)("input",{checked:e===eM,className:"form-check-input",id:e,name:"language",type:"radio",value:e,onChange:function(t){t.preventDefault(),eO(e)}}),(0,P.jsx)("label",{className:"form-check-label",htmlFor:e,children:"SSC"===e?"SSC (Eduquity Pattern)":e})]},e)}),(0,P.jsx)("button",{className:"btn btn-secondary w-100 p-1 fw-600",href:{pathname:"/practice/[testId]/instruction",query:{testId:Q,testSeries:j,newDesign:"Prepp"!==eM,examCategory:e7}},onClick:function(){"COPY"==eE?ts():e9.push("/practice/".concat(Q,"/instruction").concat(j?"?testSeries=".concat(j,"&"):"?").concat("Prepp"===eM?"newDesign=".concat(!1):"newDesign=".concat(!0)).concat(e7?"&examCategory=".concat(e7):"")),(0,v.YW)({action:"test_card",category:"".concat((0,u.jy)(J)," Test"),test:z.en,location:window.location.pathname})},type:"button",children:"Select"})]})})]})}},42871:function(e,t,n){"use strict";var a=n(59499),r=n(50029),s=n(64687),i=n.n(s),c=n(67294),l=n(23493),o=n.n(l),d=n(25617),u=n(30406),h=n(40925),m=n(85893);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||0===e.length)return"No categories available";if(1===e.length)return null===(n=e[0])||void 0===n||null===(n=n.examCategories[0])||void 0===n||null===(n=n.name)||void 0===n?void 0:n.en;var t,n,s,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,void 0)}}(e))){n&&(e=n);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(i.s();!(s=i.n()).done;){var c,l=s.value;if(null==l||null===(c=l.examCategories)||void 0===c?void 0:c.find(function(e){var t;return(null==e||null===(t=e.name)||void 0===t?void 0:t.en)===r}))return r}}catch(e){i.e(e)}finally{i.f()}return null===(t=e[0])||void 0===t||null===(t=t.examCategories[0])||void 0===t||null===(t=t.name)||void 0===t?void 0:t.en},u=function(e,t){var n=[s,i];return"openModal"==t&&n.includes(e),n.includes(e)&&t},h=function(e,t){return e===r&&t}},74384:function(e,t,n){"use strict";n.d(t,{B:function(){return c}});var a=n(59499),r=n(4730),s=["action"];function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var c=function(e){var t=e.action,n=(0,r.Z)(e,s);window.fbq?setTimeout(function(){window.fbq("trackCustom",t,function(e){for(var t=1;t100?t="Email must not contain more than 100 characters.":/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(e)||(t="Please enter a valid email."),t},password:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!1;return(e.trim().length<6||e.trim().length>100)&&(t="The value must be atleast 6 characters long and not more than 100 characters."),t},preppMobile:function(e){var t=!1;return/^[+]*[(]{0,1}[0-9]{1,2}[)]{0,1}[6-9][-\s./0-9]*$/.test(e)&&13===e.trim().length||(t="Please enter a valid mobile number"),t},mobile:function(e){var t=!1;return(!/(^[6-9]\d{0,9}$)/.test(e)||e.trim().length<10)&&(t="Please enter a valid mobile number"),t},name:function(e){var t=!1;return"string"!=typeof e||e.trim().length<2?t="Name must contain atleast 2 characters":e.trim().length>100?t="Name must not contain more than 100 characters":/^[a-zA-Z ]*$/.test(e)||(t="Name can contain only alphabets and space."),t},text:function(e){var t=!1;return("string"!=typeof e||e.trim().length<2)&&(t="Please enter atleast 2 characters"),t},select:function(e){var t=!1;return""===(e=e.toString()||"").trim()&&(t="Please select a valid value."),t}}}}]);