PageSourceSearch

https://www.pwmedharthi.com/gcms-fe/_next/static/chunks/202-303c05519f4e088b.js

js pwmedharthi.com collected 2026-10-03 21:11:10 UTC 101,971 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202],{22291:function(e,t,a){a.d(t,{default:function(){return eQ}});var l,s,i,r,n,o,c,d,u,m,h=a(67251),p=a(45113),v=a(40842),g=a(88758),f=a(69154),x=a(52034);(l=o||(o={})).PREDICT_CLICK="predictClick",l.BACK_TO_PREDICT_CLICK="back_to_predictor_click",l.RESULT_PAGE_VIEW="resultPageView",l.MOENGAGE_RESULT_PAGE="moengageResultPage",l.MOENGAGE_COLLEGE_VIEW="moengageCollegeView",l.SEE_COLLEGES_CLICK="see_colleges_click",l.LANDING_PAGE_VIEW="landingPageView",l.MOENGAGE_HOMEPAGE_VIEW="moengageHomePageView",l.BANNER_CLICK="banner_click",l.GET_OTP_CLICK="get_otp_click";var b=o,y={predictClick:e=>{let{name:t,phone:a,page:l,type:s,user_id:i}=e;(0,x._k)({eventName:b.PREDICT_CLICK,eventParams:{name:t,phone:a,page:l,type:s,user_id:i}})},resultPageView:e=>{(0,x._k)({eventName:b.RESULT_PAGE_VIEW,eventParams:e})},back_to_predictor_click:e=>{let{user_id:t,username:a,mobile:l}=e;(0,x._k)({eventName:b.BACK_TO_PREDICT_CLICK,eventParams:{user_id:t,username:a,mobile:l}})},moengageResultPage:e=>{(0,x._k)({eventName:b.MOENGAGE_RESULT_PAGE,eventParams:e})},landingPageView:e=>{let{page:t,page_location:a}=e;(0,x._k)({eventName:b.LANDING_PAGE_VIEW,eventParams:{page_title:t,page_location:a}})},moengageHomePageView:e=>{let{user_id:t,username:a,mobile:l,cohort_name:s}=e;(0,x._k)({eventName:b.MOENGAGE_HOMEPAGE_VIEW,eventParams:{user_id:t,username:a,mobile:l,cohort_name:s}})},banner_click:e=>{let{page_title:t,page_location:a,banner_id:l}=e;(0,x._k)({eventName:b.BANNER_CLICK,eventParams:{page_title:t,page_location:a,banner_id:l}})},get_otp_click:e=>{let{phoneNo:t,page_title:a,page_location:l}=e;(0,x._k)({eventName:b.GET_OTP_CLICK,eventParams:{page_title:a,page_location:l,phoneNo:t}})}},w=a(61994),N=a(20299);let j="px-3 py-3 text-left text-sm font-semibold text-white whitespace-nowrap",E="px-3 py-3 text-sm text-gray-700 border-b border-gray-200",S=e=>e&&"0"!==e?e:"–",A=e=>{let{children:t}=e,a=(0,p.useRef)(null),[l,s]=(0,p.useState)(0),[i,r]=(0,p.useState)(0),[n,o]=(0,p.useState)(!1),c=(0,p.useCallback)(()=>{let e=a.current;if(!e)return;let t=e.scrollWidth>e.clientWidth;if(o(t),!t)return;let l=Math.max(e.clientWidth/e.scrollWidth*100,20);r(l),s(e.scrollLeft/(e.scrollWidth-e.clientWidth)*(100-l))},[]);return(0,p.useEffect)(()=>{c();let e=a.current;if(!e)return;e.addEventListener("scroll",c,{passive:!0});let t=new ResizeObserver(c);return t.observe(e),()=>{e.removeEventListener("scroll",c),t.disconnect()}},[c]),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{ref:a,className:"overflow-x-auto",children:t}),n&&(0,h.jsx)("div",{className:"mt-2 mx-3 h-1 rounded-full bg-gray-200 relative",children:(0,h.jsx)("div",{className:"absolute top-0 h-1 rounded-full bg-[#7C6AC8] transition-all duration-150",style:{width:"".concat(i,"%"),left:"".concat(l,"%")}})})]})},P=e=>{let{data:t}=e;return(0,h.jsx)(A,{children:(0,h.jsxs)("table",{className:"w-full border-collapse",children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{className:"bg-[#7C6AC8]",children:[(0,h.jsx)("th",{className:j,children:"Subject Name"}),(0,h.jsx)("th",{className:j,children:"Subject-wise Theory Marks"}),(0,h.jsx)("th",{className:j,children:"Subject-wise Practical Marks"}),(0,h.jsx)("th",{className:j,children:"Subject-wise Total Marks"}),(0,h.jsx)("th",{className:j,children:"Subject-wise Grade"})]})}),(0,h.jsx)("tbody",{children:t.subjects10.map((e,t)=>(0,h.jsxs)("tr",{className:t%2==0?"bg-white":"bg-gray-50",children:[(0,h.jsx)("td",{className:E,children:e.sub}),(0,h.jsx)("td",{className:E,children:e.mrk}),(0,h.jsx)("td",{className:E,children:S(e.prc)}),(0,h.jsx)("td",{className:E,children:e.tot}),(0,h.jsx)("td",{className:E,children:e.grd||"---"})]},e.sub))}),(0,h.jsx)("tfoot",{children:(0,h.jsxs)("tr",{className:"bg-white",children:[(0,h.jsx)("td",{className:"".concat(E," font-bold"),children:"Result:"}),(0,h.jsx)("td",{colSpan:4,className:"".concat(E," font-bold ").concat("PASS"===t.result?"text-green-600":"text-red-600"),children:t.result})]})})]})})},_=e=>{var t;let{data:a}=e;return(0,h.jsx)(A,{children:(0,h.jsxs)("table",{className:"w-full border-collapse",children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{className:"bg-[#7C6AC8]",children:[(0,h.jsx)("th",{className:j,children:"Subject"}),(0,h.jsx)("th",{className:j,children:"Paper 1"}),(0,h.jsx)("th",{className:j,children:"Paper 2"}),(0,h.jsx)("th",{className:j,children:"Paper 3"}),(0,h.jsx)("th",{className:j,children:"Paper 4"}),(0,h.jsx)("th",{className:j,children:"Paper 5"}),(0,h.jsx)("th",{className:j,children:"Practical"}),(0,h.jsx)("th",{className:j,children:"Total Marks (incl. D/F)"})]})}),(0,h.jsx)("tbody",{children:null==a?void 0:null===(t=a.subjects12)||void 0===t?void 0:t.map((e,t)=>(0,h.jsxs)("tr",{className:t%2==0?"bg-white":"bg-gray-50",children:[(0,h.jsx)("td",{className:E,
1children:e.subj}),(0,h.jsx)("td",{className:E,children:S(e.pap1_mk)}),(0,h.jsx)("td",{className:E,children:S(e.pap2_mk)}),(0,h.jsx)("td",{className:E,children:S(e.pap3_mk)}),(0,h.jsx)("td",{className:E,children:S(e.pap4_mk)}),(0,h.jsx)("td",{className:E,children:S(e.pap5_mk)}),(0,h.jsx)("td",{className:E,children:S(e.mrk_prc)}),(0,h.jsx)("td",{className:E,children:e.tot_mrk})]},e.subj))}),(0,h.jsxs)("tfoot",{children:[(0,h.jsxs)("tr",{className:"bg-gray-50",children:[(0,h.jsx)("td",{className:"".concat(E," font-semibold whitespace-nowrap"),children:"Total obtained marks of Group F1"}),(0,h.jsx)("td",{colSpan:7,className:E,children:a.f1_tot})]}),(0,h.jsxs)("tr",{className:"bg-white",children:[(0,h.jsx)("td",{className:"".concat(E," font-semibold whitespace-nowrap"),children:"Total obtained marks of all subjects"}),(0,h.jsx)("td",{colSpan:7,className:E,children:a.mrk_obt})]}),(0,h.jsxs)("tr",{className:"bg-gray-50",children:[(0,h.jsx)("td",{className:"".concat(E," font-semibold whitespace-nowrap"),children:"Total Maximum Marks of all subjects"}),(0,h.jsx)("td",{colSpan:7,className:E,children:a.tot_mrk})]}),(0,h.jsxs)("tr",{className:"bg-white",children:[(0,h.jsx)("td",{className:"".concat(E," font-bold"),children:"Result"}),(0,h.jsx)("td",{colSpan:7,className:"".concat(E," font-bold ").concat("PASS"===a.result?"text-green-600":"text-red-600"),children:a.result})]}),a.division&&(0,h.jsxs)("tr",{className:"bg-gray-50",children:[(0,h.jsx)("td",{className:"".concat(E," font-bold"),children:"Division"}),(0,h.jsx)("td",{colSpan:7,className:"".concat(E," font-semibold"),children:a.division})]})]})]})})};var T=e=>{let{data:t,onBack:a}=e;return t?(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsxs)("div",{className:"mb-4",children:[(0,h.jsxs)(v.Z,{color:"#757575",children:["Roll Number: ",(0,h.jsx)("span",{className:"text-[#1B2124]",children:t.roll_no})]}),(0,h.jsxs)(v.Z,{weight:"bold",variant:"heading4",color:"#1B2124",className:"mt-1",children:["Name: ",t.c_name]})]}),(0,h.jsx)("div",{className:"rounded-lg border border-gray-200 overflow-hidden",children:"CLASS_10"===t.type?(0,h.jsx)(P,{data:t}):(0,h.jsx)(_,{data:t})}),(0,h.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-3",children:[(0,h.jsx)("div",{className:"md:hidden flex items-center text-primary justify-center",children:(0,h.jsx)(g.Z,{preIcon:(0,h.jsx)(N.Z,{className:"w-5 h-5 mr-3"}),onClick:a,children:"Check another result"})}),(0,h.jsx)("div",{className:"hidden md:inline-block w-full max-w-[270px] mx-auto",children:(0,h.jsx)(g.Z,{onClick:a,variant:"primary",size:"large",fullWidth:!0,children:"Check Another Result"})})]})]}):null},I=a(991),k=a(63156),C=a(32224);let O=async()=>{let e=localStorage.getItem("TOKEN"),t=await fetch("".concat("https://api.penpencil.co","/v1/oauth/logout"),{method:"POST",body:null,headers:{"Content-Type":"application/json",Accept:"application/json",client_type:"WEB",Authorization:"Bearer ".concat(null!=e?e:"")}});if(!t.ok){let e;try{e=await t.json()}catch(a){try{e=await t.text()}catch(t){e=void 0}}throw Error("logOutUser failed (".concat(t.status," ").concat(t.statusText,"): ").concat("string"==typeof e?e:JSON.stringify(null!=e?e:{})))}return await t.json()},R=async(e,t)=>{let a="",l=localStorage.getItem("TOKEN");e&&"string"==typeof e&&(a=e.replace(/^"|"$/g,"")),l&&"string"==typeof l&&(l=l.replace(/^"|"$/g,""));let s=a||l,i=t||localStorage.getItem("uuid")||"";if(!s)throw Error("verifyToken: missing auth token (oauthToken/token)");if(!i)throw Error("verifyToken: missing randomId");let r=await fetch("".concat("https://api.penpencil.co","/v3/oauth/verify-token"),{method:"POST",body:null,headers:{"Content-Type":"application/json",Accept:"application/json",client_type:"WEB",Authorization:"Bearer ".concat(s),randomId:i}});if(!r.ok){let e;try{e=await r.json()}catch(t){try{e=await r.text()}catch(t){e=void 0}}throw Error("verifyToken failed (".concat(r.status," ").concat(r.statusText,"): ").concat("string"==typeof e?e:JSON.stringify(null!=e?e:{})))}return await r.json()};var D=a(82969),W=a.n(D);let M=async(e,t)=>{var a;let l=localStorage.getItem("TOKEN")||(null===(a=localStorage)||void 0===a?void 0:a.getItem("token")),s=e||l;if(!s)throw Error("exchangeToken: missing auth token (otoken/token)");let i=await fetch("".concat("https://api.penpencil.co","/v3/oauth/exchange-token"),{method:"GET",body:null,headers:{"Content-Type":"application/json",Accept:"application/json",client_type:"WEB","client-type":"WEB",Authorization:"Bearer ".concat(s),randomId:t||localStorage.getItem("uuid")||""}});if(!i.ok){let e;try{e=await i.json()}catch(t){try{e=await i.text()}catch(t){e=void 0}}throw Error("exchangeToken failed (".concat(i.status," ").concat(i.statusText,"): ").concat("string"==typeof e?e:JSON.stringify(null!=e?e:{})))}return await i.json()},Z=async e=>(await fetch("".concat("https://api.penpencil.co","/v1/users/verify-otp"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json(),F=async(e,t)=>(await fetch("".concat("https://api.penpencil.co","/v3/oauth/token"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, /",client_type:"WEB",randomId:localStorage.getItem("uuid")||""},body:JSON.stringify({otp:e,client_id:"system-admin",client_secret:"KjPXuA
1VfC5xbmgreETNMaL7z",grant_type:"password",ttl:6048e5,latitude:0,longitude:0,organizationId:"5eb393ee95fab7468a79d189",username:t})})).json();var L=a(64821),B=a(5176),J=()=>(0,h.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,h.jsx)(v.Z,{variant:"heading4",weight:"bold",component:"h2",color:"#1B2124",children:"Enter Details"})}),U=a(69647),V=e=>{var t,a,l,s,i,r;let{handleChange:n,register:o,getValues:d,errors:u,variant:m,predictionMode:p="marks"}=e;return m===w.c.JEE_MAIN&&"url"===p?(0,h.jsxs)("div",{className:"w-full mt-5 md:mt-0",children:[(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:"Paste Your JEE Main Result URL Here...",label:"URL*",className:"px-3 py-4 border border-stroke-medium rounded w-full",...o("url",{required:!0,onChange:e=>n(c.URL,e)}),value:d("url")||""}),(null==u?void 0:null===(i=u.url)||void 0===i?void 0:i.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(r=u.url)||void 0===r?void 0:r.message)})]}):(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-3.5 md:gap-3 w-full mt-5 md:mt-0",children:[(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:m===w.c.JEE_MAIN?"12-digit Application Number":"Enter Application Number",label:"Enter Application Number*",className:"px-3 py-4 border border-stroke-medium rounded w-full",...o("applicationNumber",{required:!0,pattern:m===w.c.JEE_ADVANCED?/^K4\d{10}$/:m===w.c.NEET?/^(2504|2604)\d{8}$/:/^2603\d{8}$/,onChange:e=>n(c.APPLICATION_NO,e)}),maxLength:12,value:d("applicationNumber")}),(null==u?void 0:null===(t=u.applicationNumber)||void 0===t?void 0:t.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(a=u.applicationNumber)||void 0===a?void 0:a.message)})]}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:m===w.c.JEE_MAIN?"JEE Mains Registered Name":"Name",label:"Name*",className:"px-3 py-4 border border-stroke-medium rounded w-full",...o("name",{required:!0,pattern:/^([a-zA-Z]+\s)*[a-zA-Z]+$/,onChange:e=>n(c.NAME,e)}),value:d("name"),maxLength:60}),(null==u?void 0:null===(l=u.name)||void 0===l?void 0:l.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(s=u.name)||void 0===s?void 0:s.message)})]})]})},Y=a(42409),z=a(44261),G=(0,p.memo)(e=>{let{seconds:t,setSeconds:a}=e;return(0,p.useEffect)(()=>{if(t<=0)return;let e=setInterval(()=>{a(e=>e-1)},1e3);return()=>clearInterval(e)},[t]),(0,h.jsx)("div",{children:(0,h.jsx)("p",{className:"text-center text-primary",children:(e=>{let t=(e%60).toString().padStart(2,"0");return"".concat(t)})(t)})})}),H=a(95548);let q=async(e,t)=>{let a="https://api.penpencil.co".replace(/\/+$/,""),l=H.E.usersRegisterV1("5eb393ee95fab7468a79d189"),s=(null==t?void 0:t.isCaptchaEnabled)?l.secure:l.regular,i="".concat(a).concat(s),r={...e,subOrgId:"SUB-PWRP007",...(null==t?void 0:t.isCaptchaEnabled)?{captchaToken:null==t?void 0:t.captchaToken,captchaSiteKey:null==t?void 0:t.captchaSiteKey}:{}};return(await fetch(i,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}})).json()},K=async(e,t)=>{let a="https://api.penpencil.co".replace(/\/+$/,""),l=(null==t?void 0:t.isCaptchaEnabled)?"".concat(H.E.usersGetOtpV1.secure,"?smsType=0"):"".concat(H.E.usersGetOtpV1.regular,"?smsType=0"),s="".concat(a).concat(l),i={...e,...(null==t?void 0:t.isCaptchaEnabled)?{captchaToken:null==t?void 0:t.captchaToken,captchaSiteKey:null==t?void 0:t.captchaSiteKey}:{}};return(await fetch(s,{method:"POST",body:JSON.stringify(i),headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",client_type:"WEB"}})).json()};var $=a(75839),Q=e=>{var t,a,l,s,i,r;let{handleChange:n,register:o,getValues:d,errors:u,sameAsPWNum:m,otpVerified:f,isValid:x,variant:b,otpsent:N,loggedIn:j,setOtpSent:E,setOtpVerified:S,setSameAsPWNum:A,setValue:P,mobileNum:_,setRegisteredUser:T,verifyOtpHandler:I,otpCaptcha:C}=e,O=(0,z.useSearchParams)(),[R,D]=(0,p.useState)(-1),{isCaptchaEnabled:W,captchaWidgetRef:M,widgetId:Z,showCaptchaHint:F,setShowCaptchaHint:L,handleCaptchaVerify:B,resetCaptcha:J,isCaptchaReady:V,getCaptchaPayload:H}=C,Q=async()=>{var e,t,a,l,s,i,r;if(y.get_otp_click({phoneNo:d("phone"),page_title:b,page_location:null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.href}),W&&!V()){L(!0);return}L(!1);let n={mobile:d("phone"),countryCode:"+91"};d("name")&&(n={...n,firstName:d("name")}
1);let o={...H(),isCaptchaEnabled:W};try{let e=await K({username:n.mobile,countryCode:n.countryCode,organizationId:"5eb393ee95fab7468a79d189"},o);if(null==e?void 0:e.success)T(!0),E(!0),D(30),Y.default.success("OTP Sent");else if((null==e?void 0:null===(a=e.error)||void 0===a?void 0:a.message)==="User does not exist"){let e=await q(n,o);(null==e?void 0:e.success)?(E(!0),Y.default.success("OTP Sent"),D(30),T(!0)):(D(-1),(null==e?void 0:null===(l=e.error)||void 0===l?void 0:l.message)==="Not a Valid Username"?Y.default.error("Please change the name and re-submit again"):Y.default.error((null==e?void 0:null===(s=e.error)||void 0===s?void 0:s.message)||"OTP Sent Failed | Please Try Again"))}else(null==e?void 0:null===(i=e.error)||void 0===i?void 0:i.message)==="Not a Valid Username"?Y.default.error("Please change the name and re-submit again"):Y.default.error((null==e?void 0:null===(r=e.error)||void 0===r?void 0:r.message)||"OTP Sent Failed | Please Try Again"),D(-1)}catch(e){Y.default.error("OTP Sent Failed | Please Try Again")}finally{J()}},X=e=>{if(A(e),e){let e=em(localStorage.getItem("user"),{}),t=(null==O?void 0:O.get("client_type"))==="MOBILE"?_:null==e?void 0:e.primaryNumber;(null==t?void 0:t.length)>0?n(c.PHONE,t):n(c.PHONE,""),E(!0),S(!0),P("otp","")}else D(-1),E(!1),S(!1)};return(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"md:flex w-full gap-3",children:[(0,h.jsxs)("div",{className:"w-full md:w-6/12  mt-2 md:mt-0 mb-4 md:mb-0 relative",children:[(0,h.jsxs)("div",{className:"flex",children:[(0,h.jsx)(U.Z,{fullWidth:!0,label:"Mobile Number*",placeholder:"Enter Mobile Number",className:"px-3 py-4 border border-stroke-medium rounded w-full",...o("phone",{required:!0,pattern:/^[5-9]{1}[0-9]{9}$/,onChange:e=>{L(!1),n(c.PHONE,e.target.value)}}),value:d("phone"),maxLength:10,disabled:m}),f&&(0,h.jsx)("img",{src:"https://static.pw.live/5eb393ee95fab7468a79d189/bd77e3b9-5dfd-468f-9b93-53515abde11d.webp",alt:"Tick Mark",className:"absolute right-3 transform h-[30px] w-[30px] my-auto top-1 sm:top-2"})]}),(null==u?void 0:null===(t=u.phone)||void 0===t?void 0:t.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(a=u.phone)||void 0===a?void 0:a.message)}),x(c.PHONE,d("phone"))&&!f&&(null===(l=d("otp"))||void 0===l?void 0:l.length)!==6&&(-1===R||0===R)&&!m&&(0,h.jsx)("div",{className:"flex justify-end mt-1 absolute right-3 top-4 sm:top-5 transform -translate-y-1/2",children:(0,h.jsx)(g.Z,{type:"button",className:" text-primary text-[14px] font-medium",onClick:Q,variant:"link",size:"small",children:-1===R?"Get OTP":"Resend OTP"})}),j&&(0,h.jsxs)("div",{className:"w-full col-span-2 flex justify-start items-center mt-2",children:[(0,h.jsx)(k.Z,{name:"sameAsPWNumber",defaultChecked:m,onChange:e=>{X(e.target.checked)}}),(0,h.jsx)(v.Z,{className:"ml-2",variant:"small",color:"#1B2124",children:"Same As PW Mobile Number"})]})]}),(0,h.jsxs)("div",{className:"md:w-6/12 col-span-2 md:col-span-1 mt-3 md:mt-0 relative",children:[(0,h.jsx)("div",{className:"!h-[52px] rounded rounded-b-md",children:x(c.PHONE,d("phone"))&&N&&!f?(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:"Enter OTP",label:"OTP*",className:"rounded w-full",value:d("otp"),maxLength:6,...o("otp",{required:!0,onChange:e=>n(c.OTP,e)})}):(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:"Enter OTP",label:"OTP*",className:"rounded w-full",onChange:e=>n(c.OTP,e),value:d("otp"),maxLength:6,disabled:!0})}),x(c.PHONE,d("phone"))&&(null===(s=d("otp"))||void 0===s?void 0:s.length)===6&&N&&!f&&b!==w.c.JEE_MAIN&&b!==w.c.JEE_ADVANCED&&(0,h.jsx)("div",{className:"flex justify-end items-center mt-1 absolute right-3 top-5 transform -translate-y-1/2",children:(0,h.jsx)(g.Z,{type:"button",className:"text-primary font-medium text-[14px]",onClick:I,variant:"link",size:"small",children:"Verify OTP"})}),(null==u?void 0:null===(i=u.otp)||void 0===i?void 0:i.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(r=u.otp)||void 0===r?void 0:r.message)}),!f&&R>0&&(0,h.jsx)("div",{className:"flex justify-end mr-1 text-primary font-medium text-[14px] mt-2",children:(0,h.jsx)(G,{seconds:R,setSeconds:D})})]})]}),(0,h.jsx)($.Z,{isCaptchaEnabled:W,captchaWidgetRef:M,widgetId:Z,showCaptchaHint:!!(F&&x(c.PHONE,d("phone"))&&!m),onVerify:B,telemetryData:{mobileNumber:d("phone")}})]})},X=a(89640),ee=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#414347",className:"w-6 h-6",...e,children:(0,h.jsx)("path",{fillRule:"evenodd",d:"M6.75 2.25A.75.75 0 017.5 3v1.5h9V3A.75.75 0 0118 3v1.5h.75a3 3 0 013 3v11.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V7.5a3 3 0 013-3H6V3a.75.75 0 01.75-.75zm13.5 9a1.5 1.5 0 00-1.5-1.5H5.25a1.5 1.5 0 00-1.5 1.5v7.5a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5v-7.5z",clipRule:"evenodd"})});let et=(0,X.default)(()=>Promise.all([a.e(1231),a.e(9155),a.e(8066),a.e(7760)]).then(a.bind(a,27760)),{loadableGenerated:{webpack:()=>[27760]}});var ea=e=>{var t,a,l,s;let{handleChange:i,register:r,getValues:n,errors:o,variant:d,predictionMode:u="marks"}=e,m=n("dob"),p=d===w.c.JEE_MAIN&&"url"===u;return(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-3.5 md:gap-3 w-full mt-0",children:[(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)("div",{className:"relative",children:(0,h.jsx)(et,{onSelectDate:e=>{if(!(e instanceof Date))return;let t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0"),s="".concat(t,"-").concat(a,"-").concat(l);i(c.DOB,s)},fullWidth:!0,inputBoxProps:{value:m||"",postIcon:(0,h.jsx)(ee,{}),label:p?"DOB":"DOB*"},...r("dob",p?{}:{required:"DOB is required"})})}),(null==o?void 0:null===(t=o.dob)||void 0===t?void 0:t.message)&&(0,h.jsx)(eg,{error:String(null==o?void 0:null===(a=o.dob)||void 0===a?void 0:a.message)})]}),!p&&(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:d===w.c.JEE_ADVANCED?"JEE Advanced Score out of 360*":d===w.c.NEET?"NEET Score out of 720*":"Enter Your Score out of 300",label:"Score*",className:"px-3 py-4 border border-stroke-medium rounded w-full",...r("score",{required:"Score is required",onChange:e=>i(c.SCORE,e)}),value:n("score")}),(null==o?void 0:null===(l=o.score)||void 0===l?void 0:l.message)&&(0,h.jsx)(eg,{error:String(null==o?void 0:null===(s=o.score)||void 0===s?void 0:s.message)})]})]})},el=a(37933);let es=[{label:"OPEN",value:"1"},{label:"EWS",value:"2"},{label:"OBC_NCL",value:"3"},{label:"SC",value:"4"},{label:"ST",value:"5"},{label:"OPEN_PWD",value:"6"},{label:"EWS_PWD",value:"7"},{label:"OBC_NCL_PWD",value:"8"},{label:"SC_PWD",value:"9"},{label:"ST_PWD",value:"10"}],ei=[{label:"April 2, Session 1",value:"APR2_2026_1"},{label:"April 2, Session 2",value:"APR2_2026_2"},{label:"April 4, Session 1",value:"APR4_2026_1"},{label:"April 4, Session 2",value:"APR4_2026_2"},{label:"April 5, Session 1",value:"APR5_2026_1"},{label:"April 5, Session 2",value:"APR5_2026_2"},{label:"April 6, Session 1",value:"APR6_2026_1"},{label:"April 6, Session 2",value:"APR6_2026_2"},{label:"April 7, Session 1",value:"APR7_2026_1"},{label:"April 7, Session 2",value:"APR7_2026_2"},{label:"April 8, Session 1",value:"APR8_2026_1"},{label:"April 8, Session 2",value:"APR8_2026_2"}];var er=a(10186),en=e=>{var t,a,l,s,i,r;let{handleChange:n,register:o,getValues:d,errors:u,variant:m,predictionMode:p="marks"}=e,v=m===w.c.JEE_MAIN&&"url"===p;return(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-3.5 md:gap-3 w-full mt-0",children:[m===w.c.JEE_MAIN&&!v&&(0,h.jsxs)("div",{className:"w-full col-span-2 md:col-span-1 animated fadeIn z-10",children:[(0,h.jsx)(el.Z,{fullWidth:!0,options:ei,placeholder:"Select Your Exam Session",label:"Exam Session*",required:!1,defaultValue:d("session"),...o("session",{onChange:e=>{let t=ei.filter(t=>{var a;return(null==t?void 0:t.value)===(null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value)})[0];n(c.SESSION,null==t?void 0:t.label)}})}),(null==u?void 0:null===(t=u.session)||void 0===t?void 0:t.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(a=u.session)||void 0===a?void 0:a.message)})]}),m===w.c.JEE_ADVANCED&&(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{fullWidth:!0,placeholder:"Roll Number*",label:"Enter Roll Number*",className:"px-3 py-4 border border-stroke-medium rounded w-full",...o("rollNumber",{required:!0,pattern:/^[0-9]{9}$/,onChange:e=>n(c.ROLL_NO,e)}),maxLength:9,value:d("rollNumber")}),(null==u?void 0:null===(l=u.rollNumber)||void 0===l?void 0:l.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(s=u.rollNumber)||void 0===s?void 0:s.message)})]}),(0,h.jsxs)("div",{className:(0,er.Z)("w-full col-span-2 md:col-span-1 animated fadeIn z-10",{"md:w-1/2":m===w.c.NEET}),children:[(0,h.jsx)(el.Z,{fullWidth:!0,options:es,placeholder:"Select Your Category",label:"Category*",required:!1,defaultValue:d("category"),...o("category",{onChange:e=>{let t=es.filter(t=>{var a;return(null==t?void 0:t.value)===(null==e?void 0:null===(a=e.target)||void 0===a?void 0:a.value)})[0];n(c.CATEGORY,null==t?void 0:t.label)}})}),(null==u?void 0:null===(i=u.category)||void 0===i?void 0:i.message)&&(0,h.jsx)(eg,{error:String(null==u?void 0:null===(r=u.category)||void 0===r?void 0:r.message)})]})]})},eo=()=>(0,h.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center",children:[(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"PRIVACY POLICY"}),(0,h.jsx)(v.Z,{children:"This privacy policy applies to all Users who access the Platform and are therefore required to read and understand the Policy before submitting any Personal Information (defined hereinafter). This privacy policy governs your use of the application of 'PhysicsWallah', PhysicsWallah YouTube Channel, www. PhysicsWallah.live ('Website') and the other associated applications, products, Website and services managed by the C
1ompany. By submitting Personal Information, you are consenting to the use and processing of such information in accordance with this Policy. Third party Website may place their own cookies or other files on the Users' computer, collect data or solicit personal information from the Users, for which PhysicsWallah is not responsible or liable. Accordingly, PhysicsWallah does not make any representations concerning the privacy practices or policies of such third parties or terms of use of such Website, nor does PhysicsWallah guarantee the accuracy, integrity, or quality of the information, data, text, software, sound, photographs, graphics, videos, messages or other materials available on such Website/Applications. The inclusion or exclusion does not imply any endorsement by PhysicsWallah of the Website, the Website's provider, or the information on the Website/Application. PhysicsWallah encourages the User to read the privacy policies of each such Website/Application and the User understands that it is solely such a third party who is responsible to the User in this regard. PhysicsWallah has taken reasonable precautions as per applicable Indian law and implemented industry standards to treat Personal Information as confidential and to protect it from unauthorized access, improper use or disclosure, modification and unlawful destruction or accidental loss of the Personal Information. We will not use or share your information with anyone except as described in this Privacy Policy. Each time you use our Service you are accepting the practices described in this Privacy Policy at that time."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"USAGE AND RETENTION OF INFORMATION"}),(0,h.jsx)(v.Z,{children:'We obtain the information you provide when you access and register on the Application or Website or YouTube Channel or Services or products. When you register with us, you generally provide (a) your name, age, email address, location, phone number, password and your educational interests; (b) transaction-related information, such as when you make purchases, respond to any offers, or download or use applications from us; (c) information you provide us when you contact us for help; (d) information you enter into our system when using the Application/Website/YouTube Channel/Services/products, such as while asking doubts, participating in discussions and taking tests. The said information collected from the users could be categorized as "Personal Information", "Sensitive Personal Information" and "Associated Information". Information". Personal Information, Sensitive Personal Information and Associated Information (each as individually defined under this Information Technology (Reasonable security practices and procedures and sensitive personal data or information) Rules, 2011 (the "Data Protection Rules")) shall collectively be referred to as \'Information\' in this Policy. We may use the Information to contact you from time to time, to provide you with the Services, important information, required notices and marketing promotions. We will use your personal information to provide, analyze, administer and improve our services, to provide you with a personalized experience on our Website/Application (especially, by offering you services that are best suited for you), to contact you about your account and our services, to provide you customer service, to provide you with personalized marketing and to detect, prevent, mitigate and investigate fraudulent or illegal activities. We further use your personal information to determine your general geographic location, provide localized courses and classes, provide you with customized and personalized study material, recommendations, determine your Internet service provider, and help us quickly and efficiently respond to inquiries and requests and enforce our terms and communicate with you concerning our service (for example by email, push notifications, text messaging, and online messaging channels), so that we can send you details about new features and content available on the Website/Application, special offers, promotional announcements, surveys, and to assist you with operational requests such as password reset requests.'})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"COOKIES"}),(0,h.jsx)(v.Z,{children:"We send cookies (small files containing a string of characters) to your computer, thereby uniquely identifying your browser. Cookies are used to track y
1our preferences, help you login faster, and aggregated to determine user trends. This data is used to improve our offerings, such as providing more content in areas of greater interest to a majority of users. Most browsers are initially set up to accept cookies, but you can reset your browser to refuse all cookies or to indicate when a cookie is being sent. Some of our features and services may not function properly if your cookies are disabled."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"SHARING AND DISCLOSING PERSONAL INFORMATION"}),(0,h.jsx)(v.Z,{children:'We use other companies, agents or contractors ("Service Providers") to perform services on our behalf or to assist us with the provision of services to you. We engage Service Providers to provide marketing, advertising, communications, infrastructure and IT services, to personalize and optimize our service, to process credit card transactions or other payment methods, to provide customer service, to collect debts, to analyse and enhance data, and to process and administer consumer surveys. In the course of providing such services, these Service Providers may have access to your personal or other information. We do not authorize them to use or disclose your personal information except in connection with providing their services. We shall use Your Personal Information to ensure services with respect to the Platform are presented to You in the most effective manner, to secure the Platform and make improvements, to carry out our obligations to You, and to communicate with You. The said communication can either be by calls, text or emails and for purposes which include transactional, service, or promotional calls or messages. If at any time You wish to not receive any communication from our end You can opt-out of the same by writing to us.'})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"INFORMATION SECURITY"}),(0,h.jsx)(v.Z,{children:"We do not sell, transfer or rent your personal information to third parties for their marketing purposes without your explicit consent and we only use your information as described in the Privacy Policy. We view protection of your privacy as a very important community principle. We understand clearly that you and your Information is one of our most important assets. We store and process your personal information on computers located in India that are protected by physical as well as technological security devices. We use third parties to verify and certify our privacy principles. If you object to your Information being transferred or used in this way, please do not use this Website/Application. Under no circumstances, we rent, trade, transfer or share your personal information that we have collected with any other company for their marketing purposes without your consent. We reserve the right to communicate your personal information to any third party that makes a legally-compliant request for its disclosure."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"PUBLIC FORUMS"}),(0,h.jsx)(v.Z,{children:"When you use certain features on our Website/Application/YouTube Channel like the discussion forums and you post or share your personal information such as comments, messages, files, photos, it will be available to all users and will be in the public domain. All such sharing of information is done at your own risk. Please keep in mind that if you disclose personal information in your profile or when posting on our forums, this information may become publicly available."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"CONSULTING"}),(0,h.jsx)(v.Z,{children:"We use third parties to help us provide services to You including the fulfillment of service, processing of payments, monitoring site activity, conducting surveys, maintaining our database, administering emails, and administering contents, and to provide aggregate, comparative information on the performance of our Website/Application to us and a select group."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"USER CUSTOMS"}),(0,h.jsx)(v.Z,{children:"It is open for you to customize our usage of your personal information to communicate with you, to send you marketing information, how we provide you with customized and relevant advertising, and whether you want to stay signed into your account. If you do not wish to receive marketing communications from us, you can unsubscribe from the link in the email you would receive or change your communication preferences or indicate your communication preferences. You can also reach us via email to block promotional communication to you. Keep in mind, we do not sell or rent your personal information to third parties for their marketing purposes without your explicit consent."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"OWNERSHIP OF RIGHTS"}),(0,h.jsx)(v.Z,{children:"All rights, including copyright, in this Website/Application are owned by or licensed to us. Any use of this Website/Application or its contents, including copying or storing it or them in whole or part, other than for your own personal, non-commercial use is prohibited without our permission. You are prohibited from modifying, copying, distributing, transmitting, displaying, printing, publishing, selling, licensing, creating derivative works or using any content available on or through our Website/Application for commercial or public purposes. You may not modify, distribute or re-post something on this Website/Application for any purpose. You acknowledge that you do not acquire any ownership rights by downloading copyrighted material. Trademarks that are located within or on our Website/Application or a Website/Application otherwise owned or operated in conjunction with PhysicsWallah shall not be deemed to be in the public domain but rather the exclusive property of PhysicsWallah, unless such site is under license from the trademark owner thereof in which case such license is for the exclusive benef
1it and use of PhysicsWallah, unless otherwise stated."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"CONSENT"}),(0,h.jsx)(v.Z,{children:'We believe that every user of our YouTube Channel/Services/products/Website/Application must be in a position to provide informed consent prior to providing any Information required for the use of the YouTube Channel/Services/products/Website/Application. In the case of minors, consent for retention of data is deemed to be given by their guardians/parents. By registering with us, you are expressly consenting to our collection, processing, storing, disclosing, and handling of your information as set forth in this Policy now and as amended by us. It is implied that at the time of registration, the parents/guardians of a minor agree to the privacy policy and terms and conditions of the company. Processing your information in any way, including, but not limited to, collecting, storing, deleting, using, combining, sharing, transferring, and disclosing information, all of which activities will take place in India. If you reside outside India, your information will be transferred, processed, and stored in accordance with the applicable data protection laws of India. By submitting content on or through the Services (your "Material"), you grant us a worldwide, non-exclusive, royalty-free license (with the right to sublicense) to use, copy, reproduce, process, adapt, modify, publish, transmit, display, and distribute such Material in any and all media or distribution methods (now known or later developed) and to associate your Material with you, except as described below. You agree that others may use your Material in the same way as any other content available through the Services. Other users of the Services may fork, tweak, and repurpose your Material in accordance with these Terms. If you delete your user account, your Material and name may remain available through the Services.'})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"EXCLUSIVE SERVICE"}),(0,h.jsx)(v.Z,{children:"By having a PhysicsWallah account, you have explicitly given consent for us to capture images camera/mic permissions to make video calls and record the same."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"SECURITY"}),(0,h.jsx)(v.Z,{children:'We are concerned about safeguarding the confidentiality of your Information. We provide physical, electronic, and procedural safeguards to protect Information we process and maintain. For example, we limit access to this Information to authorized employees only who need to know that information in order to operate, develop or improve our YouTube Channel/Services/products/Website/Application. Please be aware that, although we endeavor to provide reasonable security for information we process and maintain, no security system can prevent all potential security breaches. PhysicsWallah may disclose information in the following situations: - • as required by law; to enforce applicable "Terms of Use", including investigation of potential violations thereof; when we believe in good faith that the disclosure is necessary to protect our rights, protect your safety or the safety of others, investigate fraud, address security or technical issues or respond to a government request; with our trusted service providers. Consent to this policy The Terms of Use Agreement is incorporated herein by reference in its entirety. By submitting data to us or our agent or using the Site, you consent to our use of your data in the manner set out in this Privacy Policy. Updates to policy As the Company evolves, our privacy policy will need to evolve as well to cover new situations. You are advised to review this Policy regularly for any changes, as continued use is deemed approval of all changes.'})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"LIMITATION OF LIABILITY"}),(0,h.jsx)(v.Z,{children:"The user acknowledges that the company is not the manufacturer of the content on the Website or Application or YouTube Channel and shall not be liable for any repercussions for the content. In no event shall the Company, its officers, directors, employees, partners or agents be liable to You or any third party for any special, incidental, indirect, consequential or punitive damages whatsoever, including those resulting from loss of use, data or profits or any other claim arising out of, or in connection with, Your use of, or access to, the Website/Application/YouTube Channel. In the event of Your breach of these Terms, you agree that the Company will be irreparably harmed and may not have an adequate remedy in money or damages. The Company therefore, shall be entitled in such event to obtain an injunction against such a breach from any court of competent jurisdiction. The Company's right to obtain such relief shall not limit its right to obtain other remedies. Any violation by You of the terms of this Clause may result in immediate suspension or termination of Your Accounts apart from any legal remedy that the Company can avail. In such instances, the Company may also disclose Your Account Information if required by any Governmental"})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"Refund Policy"}),(0,h.jsx)(v.Z,{children:"When you buy our products/services, your purchase is not entitled for any refund. If you buy any online batch/service, it is non-refundable. If you purchase any batch by mistake, you can request to change it to another batch of the same amount within 10 days of the purchase. We recommend you to first check the complete system and then decide to make a payment in case of books. If the product received is damaged/lost by the courier partner, the student is entitled for a replacement. However, in case of wrong address given or books not accepted by students the purchase will not be entitled for any kind of refund. Registration fees which is part of course fees, is non-refundable. Tuition fees/course fees is part of fees which is non-refundable and student will get access to Live Lectures, a Chat Box for doubt-solving, recorded lectures etc from the batch start date till the end date."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"ACCOUNT DELETION"}),(0,h.jsx)(v.Z,{children:"Send an email to our customer care service at [email protected] and our team with a request of account deleti
1on. Our team will reach out to you and will delete your account upon your confirmation within 96 hours."})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsx)(v.Z,{weight:"bold",children:"CONTACT US:"}),(0,h.jsx)(v.Z,{children:"If you have any questions about this Privacy Policy, You can contact\n          us: By visiting this page on our Website/Application:\n          https://www.physicswallah.live/ or By emailing us at: [email protected]"})]})]}),ec=a(64022),ed=a(29683),eu=a(69627);(s=c||(c={})).SCORE="score",s.APPLICATION_NO="applicationNumber",s.NAME="name",s.PHONE="phone",s.DOB="dob",s.CATEGORY="category",s.OTP="otp",s.ROLL_NO="rollNumber",s.SESSION="session",s.URL="url";let em=(e,t)=>{if(!e)return t;try{return JSON.parse(e)}catch(e){return t}},eh=e=>{if(!e)return null;let t="string"==typeof e?e:e.toString();if(!t||!t.includes("-"))return null;let a=t.split("-");return a.length<3?null:{yy:a[0],mm:a[1],dd:a[2]}},ep=e=>{switch(e){case"name":return"Please enter your name";case"applicationNumber":return"Please enter valid application number";case"rollNumber":return"Please enter valid roll number";case"phone":return"Please enter a valid phone number";case"score":return"Please enter valid score";case"dob":return"Please enter valid date of birth";case"otp":return"Please enter valid Otp";case"session":return"Please enter valid Session";case"category":return"Please enter valid Category";case"url":return"Please enter a valid URL";default:return"Please enter valid information"}},ev=e=>{switch(e){case w.c.JEE_MAIN:return ed.K.RANK_PREDICTOR_JEE_MAIN;case w.c.JEE_ADVANCED:return ed.K.RANK_PREDICTOR_JEE_ADVANCED;default:return ed.K.RANK_PREDICTOR_NEET}},eg=e=>{let{error:t}=e;return t?(0,h.jsxs)("div",{className:"mt-2 flex items-center",children:[(0,h.jsx)(I.Z,{className:"h-[15px] w-[15px] text-red-500 mr-1"}),(0,h.jsx)(v.Z,{variant:"small",component:"span",color:"#F44336",children:t})]}):null};var ef=e=>{let{variant:t,setPredictedData:a,setSameAsPWNum:l,sameAsPWNum:s,setRank:i,setTotalMarks:r,setActiveSection:n,setFormLoading:o,userData:c,setUserData:d,formPayload:u,setFormPayload:v}=e,f=(0,z.useSearchParams)(),[x,b]=(0,p.useState)(!1),[N,j]=(0,p.useState)(!1),[E,S]=(0,p.useState)(""),[A,P]=(0,p.useState)(!1),[_,T]=(0,p.useState)(!1),[I,D]=(0,p.useState)(!1),[U,G]=(0,p.useState)("marks"),{isLoggedIn:H,setIsLoggedIn:q}=(0,ec.O)(),{register:K,getValues:$,setValue:X,reset:ee,formState:{errors:et},setError:el}=(0,B.cI)(),es=ev(t),er=(0,eu.m)({widgetId:es}),ed="".concat("https://api.penpencil.co","/v1/student-acquisition/public/mba-percentile-predictor/neet"),eg="".concat("https://api.penpencil.co","/v1/student-acquisition/public/mba-percentile-predictor/jee-main"),ef=(e,a)=>{let l=0;if("dob"===e){let e=new Date,t=eh(a);if(!t)return!1;let s=new Date("".concat(t.yy,"-").concat(t.mm,"-").concat(t.dd));l=e.getFullYear()-s.getFullYear()}switch(e){case"score":if(t===w.c.JEE_ADVANCED)return a>=55&&a<=360;if(t===w.c.NEET)return a>0&&a<=720;return a>=-75&&a<=300&&(null==a?void 0:a.length)>0;case"rollNumber":if(t===w.c.JEE_ADVANCED)return(null==a?void 0:a.length)===9&&/^25[0-9]{7}/.test(a);return(null==a?void 0:a.length)===9&&/^[0-9]{9}/.test(a);case"name":return/^([a-zA-Z]+\s)*[a-zA-Z]+$/.test(a)&&a.trim().length>0&&a.trim().length<31;case"phone":return(null==a?void 0:a.length)===10&&/^[5-9]{1}[0-9]{9}$/.test(a);case"dob":if(t===w.c.JEE_MAIN)return/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a)&&l>=14;if(t===w.c.NEET)return l>16&&l<25;return l>14&&l<25;case"category":case"session":return(null==a?void 0:a.length)>0;case"otp":return(null==a?void 0:a.length)===6&&/^[0-9]{6}$/.test(a)||H||N;case"url":{let e=null==a?void 0:a.trim();if(!e)return!1;return/^https?:\/\/[^\s/$.?#].[^\s]*\.html(?:[?#][^\s]*)?$/i.test(e)}default:return!0}},ex=(e,t)=>{var a;let l="dob"===e||"category"===e||"session"===e||"phone"===e?ef(e,t):ef(e,null===(a=t.target)||void 0===a?void 0:a.value);"dob"===e||"category"===e||"session"===e?X(e,t):"string"==typeof t?X(e,t):X(e,t.target.value),l?el(e,{type:"manual",message:""}):el(e,{type:"manual",message:ep(e)})},eb=e=>{e&&n(e)},ey=async()=>{try{let e=await O();(null==e?void 0:e.success)&&(localStorage.clear(),window.location.reload())}catch(e){}},ew=async e=>{try{let a=W()(),l=await R(e,a);if(null==l?void 0:l.success){var t;let a=await M(e);return(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.access_token)&&(localStorage.setItem("token",a.data.access_token),localStorage.setItem("TOKEN",a.data.access_token),a.data.refresh_token&&localStorage.setItem("refresh_token",a.data.refresh_token),void 0!==a.data.expires_in&&localStorage.setItem("expires_in",String(a.data.expires_in)),a.data.user&&(localStorage.setItem("user",JSON.stringify(a.data.user)),a.data.user.primaryNumber&&S(a.data.user.primaryNumber))),!0}return q(!1),ey(),Y.default.error("Session Expired"),!1}catch(e){return q(!1),ey(),Y.default.error("Session Expired"),!1}},eN=async()=>
1{var e,a,l,s,i,r,n;y.landingPageView({page:t,page_location:"".concat(null===(i=window)||void 0===i?void 0:i.location)});let o=["isAuthenticated","client_type","token"];if(o.some(e=>(null==f?void 0:f.get(e))!==null)&&o.filter(e=>!(null==f?void 0:f.get(e))).length>0){if(Y.default.error("Invalid or incomplete URL. Please try again."),window.history&&window.location){let e=window.location.origin+window.location.pathname;window.history.replaceState({},document.title,e),window.location.reload()}return}let d=em(localStorage.getItem("user"),{}),u={user_id:(null==c?void 0:c._id)||(null==c?void 0:c.id)||(null==d?void 0:d.id)||"",username:(null==c?void 0:c.username)||(null==d?void 0:d.username)||"",mobile:(null==c?void 0:c.primaryNumber)||(null==d?void 0:d.primaryNumber)||"",cohort_name:"".concat(null!==(r=null==d?void 0:null===(a=d.profileId)||void 0===a?void 0:null===(e=a.exams)||void 0===e?void 0:e[0])&&void 0!==r?r:"","-").concat(null!==(n=null==d?void 0:null===(l=d.profileId)||void 0===l?void 0:l.class)&&void 0!==n?n:"")},m=(null===(s=localStorage)||void 0===s?void 0:s.getItem("TOKEN"))||"";y.moengageHomePageView(u),d&&(null==d?void 0:d.primaryNumber)||(null==m?void 0:m.length)>0||(null==f?void 0:f.get("isAuthenticated"))&&(null==f?void 0:f.get("client_type"))==="MOBILE"?(null==f?void 0:f.get("isAuthenticated"))&&(null==f?void 0:f.get("client_type"))==="MOBILE"&&(null==f?void 0:f.get("token"))?q(await ew(null==f?void 0:f.get("token"))):q(!0):(q(!1),b(!1),j(!1))};(0,p.useEffect)(()=>{eN()},[]);let ej=async()=>{if(N)return!0;let e={mobile:$("phone"),organizationId:"5eb393ee95fab7468a79d189",otp:$("otp")};try{let s=await Z(e);if(null==s?void 0:s.success){if(I){let e=await F($("otp"),$("phone"));if(null==e?void 0:e.success){var t,a,l;return j(!0),Y.default.success("OTP Verified"),q(!0),(0,L.setAccessToken)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.access_token),d(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.user),localStorage.setItem("user",JSON.stringify(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.user)),!0}return Y.default.error("OTP Verification Failed | Please Try Again"),!1}return j(!0),Y.default.success("OTP Verified"),!0}return Y.default.error("OTP Verification Failed | Please Try Again"),!1}catch(e){return Y.default.error("OTP Verification Failed | Please Try Again"),!1}},eE=async e=>{e.preventDefault();let l=N;if(!l&&(t===w.c.JEE_MAIN||t===w.c.JEE_ADVANCED)&&!(l=await ej()))return;let s=t===w.c.JEE_MAIN&&"url"===U;for(let[e,a]of Object.entries($())){if(s){if(["score","applicationNumber","name","session"].includes(e)||"dob"===e&&!a)continue}else if(t===w.c.JEE_MAIN&&"url"===e)continue;if(!ef(e,a)&&"otp"!==e){el(e,{type:"manual",message:ep(e)});return}}if(t===w.c.JEE_MAIN||l){var d,u,h,p,g,x,b,j;let e=$("dob")?new Date($("dob")):null,l=ei.filter(e=>e.label===$("session"))[0];o(!0);let N=(null===(d=localStorage)||void 0===d?void 0:d.getItem("TOKEN"))||(null===(u=localStorage)||void 0===u?void 0:u.getItem("token"))||(null==f?void 0:f.get("token"))||"",E=!0;if(H&&(E=await ew(N)),N=(null===(h=localStorage)||void 0===h?void 0:h.getItem("TOKEN"))||(null===(p=localStorage)||void 0===p?void 0:p.getItem("token"))||N,E){let d;s?(d={phone:$("phone"),category:$("category"),responseSheetUrl:$("url")},e&&(d.dob=e.toISOString())):d={name:$("name"),phone:t!==w.c.JEE_MAIN?parseInt($("phone"),10):$("phone"),score:t!==w.c.JEE_MAIN?parseInt($("score"),10):+$("score"),...t!==w.c.JEE_MAIN&&{exam:t===w.c.JEE_ADVANCED?"JEE_ADV":"NEET"},category:$("category"),applicationNumber:$("applicationNumber"),dob:t!==w.c.JEE_MAIN?$("dob"):null==e?void 0:e.toISOString(),...t===w.c.JEE_ADVANCED&&{rollNumber:parseInt($("rollNumber")||"",10)},...t===w.c.JEE_MAIN&&{shift:null==l?void 0:l.value}};let u=em(localStorage.getItem("user"),{}),h={name:$("name"),phone:$("phone"),page:t===w.c.JEE_ADVANCED?"JEE_ADVANCE":t===w.c.JEE_MAIN?"JEE-MAIN":"NEET",user_id:(null==c?void 0:c._id)||(null==c?void 0:c.id)||(null==u?void 0:u.id)||"",type:t===w.c.JEE_MAIN?"percentile":"rank"};y.predictClick(h);try{let e=await fetch(t!==w.c.JEE_MAIN?ed:eg,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(N)},body:JSON.stringify(d)}),l=await e.json();if(!e.ok||!(null==l?void 0:l.data)){Y.default.error((null==l?void 0:l.message)||(null==l?void 0:null===(g=l.error)||void 0===g?void 0:g.message)||"Failed to predict rank. Please try again."),v(d),o(!1);return}a(null==l?void 0:l.data),v(d),o(!1),n(m.PREDICTION),eb(m.PREDICTION),t!==w.c.JEE_MAIN&&(i((null==l?void 0:null===(x=l.data)||void 0===x?void 0:x.rank)||0),r((null==l?void 0:null===(b=l.data)||void 0===b?void 0:b.totalMarks)||0))}catch(e){Y.default.error((null==e?void 0:e.message)||(null==e?void 0:null===(j=e.data)||void 0===j?void 0:j.message)||"Failed to predict rank. Please try again."),v(d),o(!1)}}else o(!1)}else Y.default.error("OTP Verification Failed | Please Try Again")},eS=(0,p.useCallback)(()=>{var e;if(!u)return;let a={applicationNumber:u.applicationNumber||"",category:u.category,name:u.name||"",phone:String(u.phone),score:u.score?String(u.score):"",otp:"",dob:t===w.c.JEE_MAIN?(null===(e=u.dob)||void 0===e?void 0:e.length)>0?u.dob.substring(0,10):"":u.dob};t===w.c.JEE_ADVANCED&&(a.rollNumber=String(u.rollNumber)),t===w.c.JEE_MAIN&&(a.session=u.session,a.url=u.responseSheetUrl||u.url||"",a.url&&G("url")),ee(a)},[u,t,ee]);(0,p.useEffect)(()=>{eS()},[eS]);let eA=t===w.c.JEE_MAIN&&"url"===U,eP=t===w.c.NEET&&!N||!$("category")||!$("phone")||!eA&&(!$("applicationNumber")||!$("name")||!$("score")||!$("dob"))||eA&&!$("url")||t===w.c.JEE_ADVANCED&&!$("rollNumber")||t===w.c.JEE_MAIN&&!eA&&!$("session")||!_;return(0,h.jsxs)("div",{className:"w-full  flex-col gap-3 md:gap-6 items-center justify-center",children:[t===w.c.JEE_MAIN&&(0,h.jsxs)("div",{className:"flex bg-[#F5F6F8] p-1 rounded-lg w-max mx-auto mb-6",children:[(0,h.jsx)("button",{type:"button",onClick:()=>{G("marks")},className:"px-8 py-2 rounded-md text-sm font-semibold transition-all ".concat("marks"===U?"bg-white shadow text-[#5A4BDA]":"text-[#6A7280]"),children:"Predict by Mar
1ks"}),(0,h.jsx)("button",{type:"button",onClick:()=>{G("url")},className:"px-8 py-2 rounded-md text-sm font-semibold transition-all ".concat("url"===U?"bg-white shadow text-[#5A4BDA]":"text-[#6A7280]"),children:"Predict by URL"})]}),(0,h.jsx)(J,{}),(0,h.jsxs)("form",{onSubmit:eE,className:"w-full flex flex-col gap-3.5 md:gap-4 md:mt-5",children:[(0,h.jsx)(V,{handleChange:ex,register:K,getValues:$,errors:et,variant:t,predictionMode:U}),(0,h.jsx)(Q,{handleChange:ex,register:K,getValues:$,errors:et,sameAsPWNum:s,otpVerified:N,isValid:ef,variant:t,otpsent:x,loggedIn:H,setOtpSent:b,setOtpVerified:j,setSameAsPWNum:l,setValue:X,mobileNum:E,setRegisteredUser:D,verifyOtpHandler:ej,otpCaptcha:er}),(0,h.jsx)(ea,{handleChange:ex,register:K,getValues:$,errors:et,variant:t,predictionMode:U}),(0,h.jsx)(en,{handleChange:ex,register:K,getValues:$,errors:et,variant:t,predictionMode:U}),(0,h.jsxs)("div",{className:"flex mt-7 gap-1 items-center md:justify-center break-words w-full",children:[(0,h.jsxs)("div",{className:"flex items-center",children:[(0,h.jsx)("div",{className:"mr-2",children:(0,h.jsx)(k.Z,{checked:_,onClick:()=>{T(!_)}})}),(0,h.jsxs)("p",{children:["I have read and agree to the"," ",(0,h.jsx)("button",{type:"button",className:"text-link underline cursor-pointer bg-transparent p-0 border-0",onClick:()=>P(!0),children:"terms & conditions"})]})]}),(0,h.jsxs)(C.u_,{isOpen:A,onClose:()=>{P(!1)},children:[(0,h.jsx)(C.xB,{children:"Terms & Conditions"}),(0,h.jsx)(C.LQ,{}),(0,h.jsx)(C.fe,{children:(0,h.jsx)(eo,{})}),(0,h.jsx)(C.mz,{})]})]}),(0,h.jsx)("div",{className:"flex justify-center mt-3",children:(0,h.jsx)(g.Z,{type:"submit",className:"w-[140px] md:w-[160px] md:h-[56px] h-[48px]",disabled:eP,children:"Predict Now!"})})]})]})},ex=e=>{var t,a,l,s,i;let{title:r,subtitle:n,disclaimer:o,variant:c,data:d,setSameAsPWNum:u,setActiveSection:x,userData:b,formPayload:N,sameAsPWNum:j}=e;(0,p.useEffect)(()=>{var e,t,a,l,s,i,r,n,o,u,m,h,p;let v=em(localStorage.getItem("user"),{}),g={user_id:(null==b?void 0:b._id)||(null==b?void 0:b.id)||(null==v?void 0:v.id)||"",username:(null==b?void 0:b.username)||(null==v?void 0:v.username)||"",mobile:(null==N?void 0:N.phone)||(null==b?void 0:b.primaryNumber)||(null==v?void 0:v.primaryNumber)||"",cohort_name:"".concat(null!==(i=null==v?void 0:null===(t=v.profileId)||void 0===t?void 0:null===(e=t.exams)||void 0===e?void 0:e[0])&&void 0!==i?i:"","-").concat(null!==(r=null==v?void 0:null===(a=v.profileId)||void 0===a?void 0:a.class)&&void 0!==r?r:""),name:(null==N?void 0:N.name)||"",application_No:null==N?void 0:N.applicationNumber,dob:null==N?void 0:N.dob,score:null==N?void 0:N.score,percentile:"".concat(null!==(n=null==d?void 0:d.lowerPercentile)&&void 0!==n?n:"","-").concat(null!==(o=null==d?void 0:d.upperPercentile)&&void 0!==o?o:""),rank_range:c===w.c.NEET?"".concat(null!==(u=null==d?void 0:null===(l=d.rank)||void 0===l?void 0:l.start)&&void 0!==u?u:"","-").concat(null!==(m=null==d?void 0:null===(s=d.rank)||void 0===s?void 0:s.end)&&void 0!==m?m:""):"".concat(null!==(h=null==d?void 0:d.lowerRank)&&void 0!==h?h:"","-").concat(null!==(p=null==d?void 0:d.upperRank)&&void 0!==p?p:""),contact_no_pw:(null==v?void 0:v.primaryNumber)||"",contact_no_jee_registered:(null==N?void 0:N.phone)||(null==b?void 0:b.primaryNumber)||(null==v?void 0:v.primaryNumber)||"",exam_session:null==N?void 0:N.shift,same_as_pw_no:j,category:null==N?void 0:N.category};y.moengageResultPage(g),y.resultPageView(g)},[]);let E=null==d?void 0:null===(t=d.status)||void 0===t?void 0:t.startsWith("Not Qualified "),S=()=>{x(m.FORM),u(!1);let e=em(localStorage.getItem("user"),{}),t={user_id:(null==b?void 0:b._id)||(null==b?void 0:b.id)||(null==e?void 0:e.id)||"",username:(null==b?void 0:b.username)||(null==e?void 0:e.username)||"",mobile:(null==b?void 0:b.primaryNumber)||(null==e?void 0:e.primaryNumber)||""};y.back_to_predictor_click(t)},A=[];switch(c){case w.c.JEE_ADVANCED:case w.c.NEET:case w.c.JEE_MAIN:A=[{text:"Back to Predictor",variant:"secondary",link:"",clickHandler:S}]}return(0,h.jsxs)(h.Fragment,{children:[(c===w.c.NEET||c===w.c.JEE_MAIN||c===w.c.JEE_ADVANCED)&&(0,h.jsx)("div",{className:"flex bg-white md:p-6 z-10 md:mx-auto w-full",children:(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)("div",{className:"text-center",children:(0,h.jsx)(v.Z,{weight:"bold",variant:"heading2",color:"#1B2124",className:"my-2",children:r})}),(0,h.jsx)("div",{className:"p-1 h-fit flex justify-center",children:(0,h.jsx)("div",{className:"border border-primary border-dotted p-2.5 rounded-md w-fit text-center bg-tertiary-6",children:(0,h.jsx)(v.Z,{weight:"bold",variant:"heading2",color:"#5A4BDA",children:c!==w.c.NEET&&c!==w.c.JEE_ADVANCED?"".concat(null==d?void 0:d.lowerRank," - ").concat(null==d?void 0:d.upperRank):"".concat(null==d?void 0:null===(a=d.rank)||void 0===a?void 0:a.start," - ").concat(null==d?void 0:null===(l=d.rank)||void 0===l?void 0:l.end)})})}),c===w.c.JEE_MAIN&&(0,h.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-stretch gap-4 md:gap-6 mb-2 mt-6 px-2 md:px-0",children:[(0,h.jsxs)("div",{className:"flex flex-col items-center justify-center bg-white shadow-[0px_4px_24px_rgba(0,0,0,0.06)] rounded-2xl py-6 px-4 flex-1",children:[(0,h.jsx)("div",{className:"bg-[#F0EDFF] text-primary text-xs md:text-sm font-medium px-4 py-1.5 rounded-full mb-4",children:"Your Score (out of 300)"}),(0,h.jsx)("div",{className:"text-primary text-2xl md:text-[32px] font-bold",children:null!==(i=null!==(s=null==d?void 0:d.marks)&&void 0!==s?s:null==N?void 0:N.score)&&void 0!==i?i:"-"})]}),(0,h.jsxs)("div",{className:"flex flex-col items-center justify-center bg-white shadow-[0px_4px_24px_rgba(0,0,0,0.06)] rounded-2xl py-6 px-4 flex-1",children:[(0,h.jsx)("div",{className:"bg-[#F0EDFF] text-primary text-xs md:text-sm font-medium px-4 py-1.5 rounded-full mb-4",children:"Your predicted percentile"}),(0,h.jsxs)("div",{className:"text-primary text-2xl md:text-[32px] font-bold",children:[null==d?void 0:d.lowerPercentile," - ",null==d?void 0:d.upperPercentile]})]})]}),c===w.c.NEET&&(0,h.jsxs)("div",{className:"text-center m-2",children:[(0,h.jsx)(v.Z,{color:"#757575",children:n}),(0,h.jsx)("br",{}),(0,h.jsx)(v.Z,{weight:"bold",color:"#1B2124",decoration:"underLine",children:null==N?void 0:N.score})]}),""!==o&&(0,h.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 bg-tertiary-6 p-2 mt-6",children:(0,h.jsx)(f.Z,{content:o})}),(0,h.jsx)("div",{className:"flex items-center flex-col md:flex-row justify-center mt-6",children:A.map((e,t)=>(0,h.jsx)("div",{className:"inline-block m-1.5 w-full",children:(0,h.jsx)(g.Z,{onClick:e.clickHandler,variant:e.variant,size:"large",className:"w-full h-[48px] md:w-[200px] md:h-[56px] px-7 py-3.5",fullWidth:!0,children:e.text})},t))})]})}),c===w.c.GATE&&(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)("div",{className:"text-center",children:(0,h.jsx)("p",{className:"".concat(E?"md:text-3xl":"md:text-4xl"," font-bold text-xl  my-2"),children:E?"Your marks are below the qualifying cutoff":"Your Predicted Rank is between"})}),!E&&(0,h.jsx)("div",{className:"p-1 h-fit flex justify-center",children:(0,h.jsx)("div",{className:"border border-primary border-dotted p-2.5 rounded-md w-fit text-center font-bold text-primary",children:(0,h.jsxs)("p",{className:"text-xl md:text-4xl",children:[null==d?void 0:d.lowerRank," - ",null==d?void 0:d.upperRank]})})}),(0,h.jsx)("div",{className:"text-center m-2",children:!E&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:"text-base font-medium text-[#757575]",children:"Your Predicted Score"}),(0,h.jsx)("p",{className:"text-base font-semibold",children:null==d?void 0:d.gateScore})]})}),(0,h.jsxs)("div",{className:"text-center m-2",children:[(0,h.jsx)("p",{className:" ".concat(E?"text-lg":"text-[#757575] text-base","  font-medium"),children:"Your Marks"}),(0,h.jsx)("p",{className:" ".concat(E?"text-2xl":"text-base","  font-semibold"),children:null==d?void 0:d.marks})]}),""!==o&&(0,h.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 bg-[#F8F8F8] p-2 mt-10 text-center",children:(0,h.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 bg-tertiary-6 p-2 mt-6",children:(0,h.jsx)(f.Z,{content:o})})}),(0,h.jsx)("div",{className:"flex items-center flex-col md:flex-row justify-center mt-10",children:(0,h.jsx)("div",{className:"inline-block m-1.5",children:(0,h.jsx)(g.Z,{onClick:S,variant:"primary",size:"large",fullWidth:!0,children:"Back to Predictor"})})})]}),c===w.c.UP_BOARD&&(0,h.jsx)(T,{data:d,onBack:S})]})};let eb=(0,X.default)(()=>Promise.all([a.e(9986),a.e(1518),a.e(9368)]).then(a.bind(a,59368)),{loadableGenerated:{webpack:()=>[59368]},ssr:!1});var ey=()=>(0,h.jsxs)("div",{className:"w-full bg-white p-2 z-10",children:[(0,h.jsx)("div",{className:"h-40 w-full flex justify-center",children:(0,h.jsx)(eb,{})}),(0,h.jsxs)("div",{className:"w-full text-center mb-4",children:[(0,h.jsx)("p",{className:"font-semibold md:text-4xl text-xl m-1",children:"Please Wait"}),(0,h.jsx)("p",{className:"text-lg m-1",children:"Your details are being submitted..."})]})]}),ew=a(47303),eN=a(39633);let ej="https://static.pw.live/5eb393ee95fab7468a79d189/73121d8c-5330-4522-a201-805d6a23ccf6.webp",eE="https://static.pw.live/5eb393ee95fab7468a79d189/cc9c9a30-ca9c-4426-b872-c74e1b42e928.webp",eS=e=>{let{error:t}=e;return(0,h.jsxs)("div",{className:"mt-2 flex items-center",children:[(0,h.jsx)(I.Z,{className:"h-[15p
1x] w-[15px] text-red-500 mr-1"}),(0,h.jsx)(v.Z,{variant:"small",component:"span",color:"#F44336",children:t})]})},eA=()=>{try{return JSON.parse(localStorage.getItem("user")||"{}")}catch(e){return{}}};(i=d||(d={})).ROLL_NUMBER="rollNumber",i.PHONE="phone",i.OTP="otp",i.STREAM="stream";let eP="".concat("https://api.penpencil.co","/v1/student-acquisition/public/board-result"),e_=["Science (PCM)","Science (PCB)","Commerce","Arts (Humanities)","Agriculture","Others"],eT={"Science (PCM)":"PCM","Science (PCB)":"PCB",Commerce:"COMMERCE","Arts (Humanities)":"ARTS",Agriculture:"AGRICULTURE",Others:"OTHER"},eI=e=>{switch(e){case"rollNumber":return"Please enter a valid roll number";case"phone":return"Please enter a valid phone number";case"otp":return"Please enter a valid OTP";case"stream":return"Please select a stream"}};var ek=e=>{var t,a,l,s,i,r,n,o;let{setSameAsPWNum:c,sameAsPWNum:d,setFormLoading:u,setPredictedData:f,setActiveSection:x,setFormPayload:b,setProcessingModalOpen:w}=e,{isLoggedIn:N,setIsLoggedIn:j}=(0,ec.O)(),{showNotification:E}=(0,eN.ZP)(),[S,A]=(0,p.useState)("10th"),[P,_]=(0,p.useState)(!1),[T,I]=(0,p.useState)(!1),[O,R]=(0,p.useState)(!1),[D,W]=(0,p.useState)(-1),[M,J]=(0,p.useState)(!1),[V,z]=(0,p.useState)(!1),[H,Q]=(0,p.useState)(!1),{setValue:X,formState:{errors:ee},setError:et}=(0,B.cI)(),[ea,es]=(0,p.useState)({rollNumber:"",phone:"",otp:"",stream:"",classType:"10th"}),{isCaptchaEnabled:ei,captchaWidgetRef:er,widgetId:en,showCaptchaHint:em,setShowCaptchaHint:eh,handleCaptchaVerify:ep,resetCaptcha:ev,isCaptchaReady:eg,getCaptchaPayload:ef}=(0,eu.m)({widgetId:ed.K.RANK_PREDICTOR_UP_BOARD});(0,p.useEffect)(()=>{y.landingPageView({page:"UP_BOARD",page_location:"".concat(window.location)})},[]);let ex=(e,t)=>{switch(e){case"rollNumber":return"string"==typeof t&&/^[0-9]{10}$/.test(t);case"phone":return(null==t?void 0:t.length)===10&&new RegExp(/^[5-9]{1}[0-9]{9}$/).test(t);case"otp":return/^\d{6}$/.test(null!=t?t:"")||O||d;case"stream":return"10th"===S||t&&t.length>0;default:return!0}},eb=(e,t)=>{es(a=>({...a,[e]:t})),X(e,t),ex(e,t)?et(e,{type:"manual",message:""}):et(e,{type:"manual",message:eI(e)}),"phone"===e&&(eh(!1),J(!1),R(!1),W(-1))},ey=async()=>{var e;let t=JSON.parse(localStorage.getItem("user")||"{}"),a=(null===(e=localStorage)||void 0===e?void 0:e.getItem("TOKEN"))||"";t&&(null==t?void 0:t.primaryNumber)||(null==a?void 0:a.length)>0?j(!0):(j(!1),J(!1),R(!1))};(0,p.useEffect)(()=>{ey()},[]);let ej=e=>{A(e),es(t=>({...t,classType:e,stream:""}))},ek=e=>{if(c(e),e){let e=eA(),t=null==e?void 0:e.primaryNumber;(null==t?void 0:t.length)>0?eb("phone",t):eb("phone",""),es(e=>({...e,otp:""}))}else W(-1),J(!1),R(!1)},eC=async()=>{var e,t,a,l,s,i;if(V)return;z(!0),y.get_otp_click({phoneNo:null==ea?void 0:ea.phone,page_title:"UP_BOARD",page_location:null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.href});let r={mobile:null==ea?void 0:null===(a=ea.phone)||void 0===a?void 0:a.toString(),countryCode:"+91"},n={...ef(),isCaptchaEnabled:ei};try{let e=await K({username:r.mobile,countryCode:r.countryCode,organizationId:"5eb393ee95fab7468a79d189"},n);if(null==e?void 0:e.success)Q(!0),J(!0),W(10),Y.default.success("OTP Sent");else if((null==e?void 0:null===(l=e.error)||void 0===l?void 0:l.message)==="User does not exist"){let e=await q({...r,firstName:""},n);(null==e?void 0:e.success)?(J(!0),Y.default.success("OTP Sent"),Q(!0),W(10)):(W(-1),Y.default.error((null==e?void 0:null===(s=e.error)||void 0===s?void 0:s.message)||"OTP Sending Failed | Please Try Again"))}else W(-1),Y.default.error((null==e?void 0:null===(i=e.error)||void 0===i?void 0:i.message)||"OTP Sending Failed | Please Try Again")}catch(e){W(-1),Y.default.error("OTP Sending Failed | Please Try Again")}finally{z(!1),ev()}},eO=async()=>{if(!(D>0)&&!V){if(ei&&!eg()){eh(!0);return}eh(!1),await eC()}},eR=async()=>{if(O)return!0;let e={mobile:ea.phone,organizationId:"5eb393ee95fab7468a79d189",otp:ea.otp};try{let l=await Z(e);if(null==l?void 0:l.success){if(R(!0),Y.default.success("OTP Verified"),H){let e=await F(ea.otp,ea.phone);if(null==e?void 0:e.success){var t,a;j(!0),(0,L.setAccessToken)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.access_token),localStorage.setItem("user",JSON.stringify(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.user))}}return!0}return E({type:eN.KY.ERROR,title:"OTP Verification Failed | Please Try Again"}),!1}catch(e){return Y.default.error("Invalid OTP"),!1}},eD=async()=>{let e=!1,t=O||d;
1if(ex("rollNumber",ea.rollNumber)||(et("rollNumber",{type:"manual",message:eI("rollNumber")}),e=!0),ex("phone",ea.phone)||(et("phone",{type:"manual",message:eI("phone")}),e=!0),t||O||ex("otp",ea.otp)||(et("otp",{type:"manual",message:eI("otp")}),e=!0),"12th"!==S||ex("stream",ea.stream)||(et("stream",{type:"manual",message:eI("stream")}),e=!0),e||!t&&!await eR())return;let a=eA();y.predictClick({name:"",phone:null==ea?void 0:ea.phone,page:"UP_BOARD",user_id:(null==a?void 0:a.id)||""}),u(!0);try{let e="10th"===S?"CLASS_10":"CLASS_12",t=new URLSearchParams({roll_no:ea.rollNumber,phone:ea.phone,type:e});"12th"===S&&ea.stream&&t.append("stream",eT[ea.stream]||ea.stream.toLowerCase());let a=await fetch("".concat(eP,"?").concat(t.toString()));if(202===a.status){w(!0),c(!1);return}let i=await a.json();if(!a.ok||!i.success){var l,s;let e=(null==i?void 0:null===(s=i.error)||void 0===s?void 0:null===(l=s.message)||void 0===l?void 0:l.message)||(null==i?void 0:i.message)||"Failed to fetch result";Y.default.error(e),c(!1);return}f(i.data),b({...ea,classType:S}),E({title:"Result fetched successfully",type:eN.KY.SUCCESS}),x(m.PREDICTION)}catch(e){Y.default.error((null==e?void 0:e.message)||"Failed to fetch result")}finally{u(!1)}};return(0,h.jsxs)("div",{className:"w-full flex flex-col gap-3 md:gap-5",children:[(0,h.jsxs)("div",{className:"flex justify-center gap-0",children:[(0,h.jsx)("button",{type:"button",onClick:()=>ej("10th"),className:"px-6 py-2.5 text-sm font-medium rounded-l-full border transition-colors ".concat("10th"===S?"border-primary text-primary bg-white":"border-gray-300 text-gray-500 bg-gray-50 hover:bg-gray-100"),children:"Class 10th"}),(0,h.jsx)("button",{type:"button",onClick:()=>ej("12th"),className:"px-6 py-2.5 text-sm font-medium rounded-r-full border border-l-0 transition-colors ".concat("12th"===S?"border-primary text-primary bg-white":"border-gray-300 text-gray-500 bg-gray-50 hover:bg-gray-100"),children:"Class 12th"})]}),(0,h.jsxs)("div",{className:"text-center",children:[(0,h.jsx)(v.Z,{variant:"heading4",weight:"bold",color:"#1B2124",children:"Enter Details"}),(0,h.jsx)(v.Z,{variant:"small",color:"#757575",className:"mt-1",children:"Enter your details below to check your result"})]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{label:"Roll Number",placeholder:"Enter Roll Number",fullWidth:!0,required:!0,value:ea.rollNumber,id:"rollNumber",maxLength:10,onChange:e=>eb("rollNumber",e.target.value)}),(null==ee?void 0:null===(t=ee.rollNumber)||void 0===t?void 0:t.message)&&(0,h.jsx)(eS,{error:null==ee?void 0:null===(a=ee.rollNumber)||void 0===a?void 0:a.message})]}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsxs)("div",{className:"flex items-center",children:[(0,h.jsx)(U.Z,{label:"Mobile Number",value:ea.phone,id:"phoneNumber",type:"number",required:!0,fullWidth:!0,disabled:d,onChange:e=>eb("phone",e.target.value),maxLength:10,placeholder:"Enter Mobile Number"}),O&&(0,h.jsx)("img",{src:eE,alt:"Verified",className:"h-[30px] w-[30px]"})]}),(null==ee?void 0:null===(l=ee.phone)||void 0===l?void 0:l.message)&&(0,h.jsx)(eS,{error:null==ee?void 0:null===(s=ee.phone)||void 0===s?void 0:s.message})]}),(0,h.jsx)($.Z,{isCaptchaEnabled:ei,captchaWidgetRef:er,widgetId:en,showCaptchaHint:!!(em&&ex("phone",ea.phone)&&!d),onVerify:ep,telemetryData:{mobileNumber:ea.phone}}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsxs)("div",{className:"flex items-end gap-3",children:[(0,h.jsx)("div",{className:"flex-1",children:(0,h.jsx)(U.Z,{label:"OTP",value:ea.otp,id:"otp",required:!0,fullWidth:!0,disabled:O||d,onChange:e=>eb("otp",e.target.value),placeholder:"Enter OTP",maxLength:6})}),ex("phone",ea.phone)&&!O&&!d&&(0,h.jsx)(g.Z,{onClick:eO,variant:"primary",size:"medium",disabled:D>0||V,className:"shrink-0 mb-0.5",children:D>0?(0,h.jsx)(G,{seconds:D,setSeconds:W}):M?"Resend OTP":"Send OTP"})]}),(null==ee?void 0:null===(i=ee.otp)||void 0===i?void 0:i.message)&&(0,h.jsx)(eS,{error:null==ee?void 0:null===(r=ee.otp)||void 0===r?void 0:r.message})]}),"12th"===S&&(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(el.Z,{label:"Stream",required:!0,fullWidth:!0,placeholder:"Select Stream",options:e_.map(e=>({label:e,value:e})),values:ea.stream?[ea.stream]:[],onChange:e=>eb("stream",e.target.value)}),(null==ee?void 0:null===(n=ee.stream)||void 0===n?void 0:n.message)&&(0,h.jsx)(eS,{error:null==ee?void 0:null===(o=ee.stream)||void 0===o?void 0:o.message})]}),N&&(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)("input",{id:"sameAsPWNumber",type:"checkbox",name:"sameAsPWNumber",className:"rounded-sm",checked:d,onChange:e=>ek(e.target.checked)}),(0,h.jsx)("label",{htmlFor:"sameAsPWNumber",className:"text-sm",children:"Same As PW Mobile Number"})]})]}),(0,h.jsxs)("div",{className:"flex gap-1 justify-center items-center",children:[(0,h.jsx)(k.Z,{checked:P,onClick:()=>_(!P)}),(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-1 text-sm",children:["I have read and agree to the"," ",(0,h.jsx)("button",{type:"button",className:"text-[#037CBF] underline cursor-pointer bg-transparent border-none p-0",onClick:()=>I(!0),children:"terms & conditions"})]}),(0,h.jsxs)(C.u_,{isOpen:T,onClose:()=>I(!1),children:[(0,h.jsx)(C.xB,{children:"Terms & Conditions"}),(0,h.jsx)(ew.Z,{}),(0,h.jsx)(C.fe,{children:(0,h.jsx)(eo,{})}),(0,h.jsx)(C.mz,{})]})]}),(0,h.jsx)("div",{className:"flex justify-center",children:(0,h.jsx)(g.Z,{onClick:eD,size:"large",className:"w-full max-w-[300px] h-[48px] md:h-[56px] text-lg",disabled:!P,children:"Check Result"})})]})};let eC="".concat("https://api.penpencil.co","/v1/student-acquisition/public/mba-percentile-predictor/gate");(r=u||(u={})).NAME="name",r.PHONE="phone",r.OTP="otp",r.RESPONSE_SHEET_URL="responseSheetUrl";let eO=e=>{switch(e){case"name":return"Please enter your name";case"phone":return"Please enter a valid phone number";case"otp":return"Please enter valid Otp";case"responseSheetUrl":return"Please enter valid Response Sheet URL"}};var eR=e=>{var t,a,l,s,i,r,n,o;let{setSameAsPWNum:c,sameAsPWNum:d,setFormLoading:u,setPredictedData:v,setActiveSection:f,setUserData:x}=e,{showNotification:b}=(0,eN.ZP)(),[w,N]=(0,p.useState)(!1),[j,E]=(0,p.useState)(!1),[S,A]=(0,p.useState)(!1),[P,_]=(0,p.useState)(!1),[T,I]=(0,p.useState)(-1),[O,R]=(0,p.useState)(!1),[D,W]=(0,p.useState)(!1),M=(0,z.useSearchParams)(),{isLoggedIn:V,setIsLoggedIn:H}=(0,ec.O)(),{setValue:Q,formState:{errors:X},setError:ee}=(0,B.cI)(),[et,ea]=(0,p.useState)({responseSheetUrl:"",name:"",phone:"",otp:""}),{isCaptchaEnabled:el,captchaWidgetRef:es,widgetId:ei,showCaptchaHint:er,setShowCaptchaHint:en,handleCaptchaVerify:em,resetCaptcha:eh,isCaptchaReady:ep,getCaptchaPayload:ev}=(0,eu.m)({widgetId:ed.K.RANK_PREDICTOR_GATE});(0,p.useEffect)(()=>{var e,t,a;et&&ea({responseSheetUrl:et.responseSheetUrl||"",name:et.name,phone:et.phone,otp:""}),y.landingPageView({page:"GATE",page_location:"".concat(window.location)});let l=JSON.parse(localStorage.getItem("user")||"{}"),s={user_id:(null==l?void 0:l.id)||"",username:(null==l?void 0:l.username)||"",mobile:(null==l?void 0:l.primaryNumber)||"",cohort_name:"".concat(null==l?void 0:null===(t=l.profileId)||void 0===t?void 0:null===(e=t.exams)||void 0===e?void 0:e[0],"-").concat(null==l?void 0:null===(a=l.profileId)||void 0===a?void 0:a.class)||""};y.moengageHomePageView(s),l&&(null==l?void 0:l.primaryNumber)||(null==M?void 0:M.get("isAuthenticated"))&&(null==M?void 0:M.get("client_type"))==="MOBILE"?A(!0):(A(!1),R(!1),_(!1))},[]);let ef=(e,t)=>{switch(e){case"name":return new RegExp(/^([a-zA-Z]+\s)*[a-zA-Z]+$/).test(null==t?void 0:t.trim());case"phone":return(null==t?void 0:t.length)===10&&new RegExp(/^[5-9]{1}[0-9]{9}$/).test(t);case"otp":return/^\d{6}$/.test(null!=t?t:"")||P;case"responseSheetUrl":{let e=null==t?void 0:t.trim();if(!e)return!1;return/^https?:\/\/[^\s/$.?#].[^\s]*\.html(?:[?#][^\s]*)?$/i.test(e)}default:return!0}},ex=e=>{e&&f(e)},eb=(e,t)=>{ea(a=>({...a,[e]:t}));let a=ef(e,t);Q(e,t),a?ee(e,{type:"manual",message:""}):ee(e,{type:"manual",message:eO(e)}),"phone"===e&&(en(!1),R(!1),_(!1),I(-1))},ey=e=>{if(c(e),e){let e=JSON.parse(localStorage.getItem("user")||"{}"),t=null==e?void 0:e.primaryNumber;(null==t?void 0:t.length)>0?eb("phone",t):eb("phone",""),R(!0),_(!0),ea(e=>({...e,otp:""}))}else I(-1),R(!1),_(!1)},ej=async()=>{var e,t,a,l,s,i;if(y.get_otp_click({phoneNo:null==et?void 0:et.phone,page_title:"GATE",page_location:null===(a=window)||void 0===a?void 0:null===(t=a.location)||void 0===t?void 0:t.href}),el&&!ep()){en(!0);return}en(!1);let r={mobile:null==et?void 0:null===(e=et.phone)||void 0===e?void 0:e.toString(),countryCode:"+91"}
1,n={...ev(),isCaptchaEnabled:el};try{let e=await K({username:r.mobile,countryCode:r.countryCode,organizationId:"5eb393ee95fab7468a79d189"},n);if(null==e?void 0:e.success)W(!0),R(!0),I(10),Y.default.success("OTP Sent");else if((null==e?void 0:null===(l=e.error)||void 0===l?void 0:l.message)==="User does not exist"){let e=await q({...r,firstName:null==et?void 0:et.name},n);(null==e?void 0:e.success)?(R(!0),Y.default.success("OTP Sent"),W(!0),I(10)):(I(-1),Y.default.error((null==e?void 0:null===(s=e.error)||void 0===s?void 0:s.message)||"OTP Sending Failed | Please Try Again"))}else I(-1),Y.default.error((null==e?void 0:null===(i=e.error)||void 0===i?void 0:i.message)||"OTP Sending Failed | Please Try Again")}catch(e){I(-1),Y.default.error("OTP Sending Failed | Please Try Again")}finally{eh()}},eS=async()=>{if(P)return!0;let e={mobile:et.phone,organizationId:"5eb393ee95fab7468a79d189",otp:et.otp};try{let s=await Z(e);if(null==s||!s.success)return b({type:eN.KY.ERROR,title:"OTP Verification Failed | Please Try Again"}),!1;if(D){let e=await F(et.otp,et.phone);if(null==e?void 0:e.success){var t,a,l;return _(!0),Y.default.success("OTP Verified"),H(!0),(0,L.setAccessToken)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.access_token),x(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.user),localStorage.setItem("user",JSON.stringify(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.user)),!0}return Y.default.error("OTP Verification Failed | Please Try Again"),!1}return _(!0),Y.default.success("OTP Verified"),!0}catch(e){return b({type:eN.KY.ERROR,title:"OTP Verification Failed | Please Try Again"}),!1}},eA=async()=>{if(await eS()){var e,t;let a=JSON.parse(localStorage.getItem("user")||"{}"),l={name:null==et?void 0:et.name,phone:null==et?void 0:et.phone,page:"GATE",user_id:(null==a?void 0:a.id)||""};y.predictClick(l),u(!0);try{let t=await fetch(eC,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(et)}),a=await t.json();if(!t.ok||!(null==a?void 0:a.data)){Y.default.error((null==a?void 0:a.message)||(null==a?void 0:null===(e=a.error)||void 0===e?void 0:e.message)||"Failed to Submit Form"),c(!1);return}v(null==a?void 0:a.data),ea({...et}),b({title:"Form Submitted Successfully",type:eN.KY.SUCCESS}),f(m.PREDICTION),ex(m.PREDICTION)}catch(e){b({title:(null==e?void 0:e.message)||(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.message)||"Failed to Submit Form",type:eN.KY.ERROR}),c(!1)}finally{u(!1)}}},eP=ef("responseSheetUrl",et.responseSheetUrl)&&ef("name",et.name)&&ef("phone",et.phone)&&(P||ef("otp",et.otp));return(0,h.jsxs)("div",{className:"w-full flex flex-col gap-3 md:gap-6",children:[(0,h.jsxs)("div",{className:"w-full flex flex-col gap-3 md:gap-6",children:[(0,h.jsx)(J,{}),(0,h.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,h.jsxs)("div",{className:"z-10 w-full",children:[(0,h.jsx)(U.Z,{label:"Response Sheet URL",placeholder:"Enter Response Sheet URL",fullWidth:!0,required:!0,value:et.responseSheetUrl,id:"responseSheetUrl",onChange:e=>{eb("responseSheetUrl",e.target.value)},maxLength:254}),(null==X?void 0:null===(t=X.responseSheetUrl)||void 0===t?void 0:t.message)&&(0,h.jsx)(eg,{error:null==X?void 0:null===(a=X.responseSheetUrl)||void 0===a?void 0:a.message})]}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{label:"Name",value:et.name,id:"name",type:"text",required:!0,fullWidth:!0,onChange:e=>eb("name",e.target.value),maxLength:100,placeholder:"Name"}),(null==X?void 0:null===(l=X.name)||void 0===l?void 0:l.message)&&(0,h.jsx)(eg,{error:null==X?void 0:null===(s=X.name)||void 0===s?void 0:s.message})]}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsxs)("div",{className:"flex items-center",children:[(0,h.jsx)(U.Z,{label:"Mobile Number",value:et.phone,id:"phoneNumber",type:"number",required:!0,fullWidth:!0,onChange:e=>eb("phone",e.target.value),maxLength:10,placeholder:"Mobile Number"}),P&&(0,h.jsx)("img",{src:eE,alt:"Tick Mark",className:"h-[30px] w-[30px]"})]}),ef("phone",et.phone)&&!P&&(-1===T||0===T)&&!d&&(0,h.jsx)("div",{className:"w-full flex justify-end mt-1",children:(0,h.jsx)("button",{className:" text-[#5A4BDA] text-[14px] font-medium",onClick:ej,children:-1===T?"Get OTP":"Resend OTP"})}),!P&&T>0&&(0,h.jsx)("div",{className:"w-full flex justify-end mt-2 text-[#5A4BDA] font-medium text-[14px]",children:(0,h.jsx)(G,{seconds:T,setSeconds:I})}),(null==X?void 0:null===(i=X.phone)||void 0===i?void 0:i.message)&&(0,h.jsx)(eg,{error:null==X?void 0:null===(r=X.phone)||void 0===r?void 0:r.message})]}),(0,h.jsxs)("div",{className:"w-full",children:[(0,h.jsx)(U.Z,{label:"OTP",value:et.otp,id:"otp",required:!0,fullWidth:!0,disabled:P,onChange:e=>eb("otp",e.target.value),placeholder:"Enter OTP"}),(null==X?void 0:null===(n=X.otp)||void 0===n?void 0:n.message)&&(0,h.jsx)(eg,{error:null==X?void 0:null===(o=X.otp)||void 0===o?void 0:o.message})]}),(0,h.jsx)("div",{className:"w-full md:col-span-2",children:(0,h.jsx)($.Z,{isCaptchaEnabled:el,captchaWidgetRef:es,widgetId:ei,showCaptchaHint:!!(er&&ef("phone",et.phone)&&!d),onVerify:em,telemetryData:{mobileNumber:et.phone}})}),S&&(0,h.jsxs)("div",{className:"w-full md:col-span-2 flex justify-start items-center ml-2 -mt-2",children:[(0,h.jsx)("input",{type:"checkbox",name:"sameAsPWNumber",className:"rounded-sm",checked:d,onChange:e=>{ey(e.target.checked)}}),(0,h.jsx)("label",{htmlFor:"sameAsPWNumber",className:"text-sm ml-2",children:"Same As PW Mobile Number"})]})]})]}),(0,h.jsxs)("div",{className:"flex mt-3 md:mt-7 gap-1 items-center md:justify-center",children:[(0,h.jsx)(k.Z,{checked:w,onClick:()=>{N(!w)}}),(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-1",children:["I have read and agree to the"," ",(0,h.jsx)("p",{className:"text-[#037CBF] underline cursor-pointer",onClick:()=>E(!0),children:"terms & conditions"})]}),(0,h.jsxs)(C.u_,{isOpen:j,onClose:()=>{E(!1)},children:[(0,h.jsx)(C.xB,{children:"Terms & Conditions"}),(0,h.jsx)(ew.Z,{}),(0,h.jsx)(C.fe,{children:(0,h.jsx)(eo,{})}),(0,h.jsx)(C.mz,{})]})]}),(0,h.jsx)("div",{className:"flex justify-center mt-3 md:mt-0",children:(0,h.jsx)(g.Z,{onClick:eA,size:"large",className:"w-[140px] md:w-[160px] md:h-[56px] h-[48px] text-lg",disabled:!w||!eP,children:"Predict Now!"})})]})},eD=e=>{let{variant:t,setPredictedData:a,sameAsPWNum:l,setSameAsPWNum:s,setActiveSection:i,setFormLoading:r,setFormPayload:n,setProcessingModalOpen:o,userData:c,setUserData:d,formPayload:u,setRank:m,setTotalMarks:p}=e;switch(t){case"up-board":return(0,h.jsx)(ek,{sameAsPWNum:l,setSameAsPWNum:s,setFormLoading:r,setPredictedData:a,setActiveSection:i,setFormPayload:n,setProcessingModalOpen:o});case"jee-main":case"neet":case"jee-advanced":return(0,h.jsx)(ef,{variant:t,setPredictedData:a,sameAsPWNum:l,setSameAsPWNum:s,setRank:m,setTotalMarks:p,setActiveSection:i,setFormLoading:r,userData:c,setUserData:d,formPayload:u,setFormPayload:n});case"gate":return(0,h.jsx)(eR,{sameAsPWNum:l,setSameAsPWNum:s,setFormLoading:r,setPredictedData:a,setActiveSection:i,setUserData:d});default:return null}},eW=a(23688);(n=m||(m={})).FORM="FORM",n.FORM_SUBMITTED="FORM_SUBMITTED",n.PREDICTION="PREDICTION",n.ANSWER_KEY="ANSWER_KEY",n.ANJAAM_TEST_SERIES="ANJAAM_TEST_SERIES";var eM=e=>{let{variant:t,activeSection:a,setActiveSection:l,formPayload:s,setFormPayload:i,title:r,subtitle:n,disclaimer:o}=e,[c,d]=(0,p.useState)(-1),[u,m]=(0,p.useState)(!1),[f,x]=(0,p.useState)(!1),[b,y]=(0,p.useState)(null),[N,j]=(0,p.useState)(0),[E,S]=(0,p.useState)(!1),[A,P]=(0,p.useState)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"hidden lg:block max-w-3xl relative mx-auto",children:[t===w.c.GATE&&(0,h.jsx)(eW.default,{src:ej,alt:"Grad Icon Right",height:0,width:0,className:"w-[70px] md:w-[140px] h-[70px] absolute transform md:-top-[60px] -top-[20px] md:-right-[70px] right-[30px] -scale-x-100"}),t===w.c.GATE&&(0,h.jsx)(eW.default,{src:ej,alt:"Grad Icon Left",height:0,width:0,className:"w-[70px] md:w-[140px] h-[70px] absolute md:-top-[60px] -top-[20px] md:-left-[70px] left-[30px]"})]}),(0,h.jsx)("div",{className:"flex rounded-lg bg-white p-4 md:p-6 z-10 mx-4 md:mx-auto md:max-w-[795px] overflow-hidden md:overflow-visible relative",style:{boxShadow:"0px 1px 8px 0px rgba(0, 0, 0, 0.08)"},children:(e=>{switch(e){case"FORM":return f?(0,h.jsx)(ey,{}
1):(0,h.jsx)(eD,{variant:t,setPredictedData:y,sameAsPWNum:u,setSameAsPWNum:m,setActiveSection:l,setFormLoading:x,setFormPayload:i,setProcessingModalOpen:S,userData:A,setUserData:P,formPayload:s,setRank:d,setTotalMarks:j});case"PREDICTION":return(0,h.jsx)(ex,{variant:t,data:b,title:r,subtitle:n,disclaimer:o,setActiveSection:l,setSameAsPWNum:m,userData:A,formPayload:s,sameAsPWNum:u});default:return null}})(a)}),(0,h.jsx)(C.u_,{isOpen:E,onClose:()=>S(!1),children:(0,h.jsx)(C.fe,{children:(0,h.jsxs)("div",{className:"flex flex-col items-center text-center py-4 px-2",children:[(0,h.jsx)("div",{className:"w-16 h-16 mb-4 rounded-full bg-[#F3F0FF] flex items-center justify-center",children:(0,h.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-labelledby":"processing-icon-title",children:[(0,h.jsx)("title",{id:"processing-icon-title",children:"Result processing"}),(0,h.jsx)("path",{d:"M9 12h6m-3-3v6m-7 4V5a2 2 0 012-2h10a2 2 0 012 2v14l-4-2-3 2-3-2-4 2z",stroke:"#5A4BDA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,h.jsx)(v.Z,{variant:"heading4",weight:"bold",color:"#1B2124",className:"mb-2",children:"Result processing is underway"}),(0,h.jsx)(v.Z,{variant:"small",color:"#757575",children:"Please check again after some time."}),(0,h.jsx)("div",{className:"mt-5 w-full max-w-[200px]",children:(0,h.jsx)(g.Z,{variant:"primary",fullWidth:!0,onClick:()=>S(!1),children:"Ok, Got It"})})]})})})]})},eZ=a(5116),eF=a(22776),eL=a(5047),eB=a(82440),eJ=a(27500),eU=a(89641);let eV=e=>e.toLocaleString("en-IN");var eY=e=>{let{batch:t}=e,a=t.exam||t.startDate||t.price||t.endDate;return(0,h.jsxs)("div",{className:"w-[300px] md:w-[321px] h-full m-2 p-4 flex flex-col shadow-[0px_1px_8px_rgba(0,0,0,0.08)] rounded-lg",children:[(0,h.jsx)("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden cursor-pointer bg-gray-100",children:(0,h.jsx)("img",{src:t.bannerImg,alt:"banner",className:"w-full h-full object-cover"})}),(0,h.jsxs)("div",{className:"flex items-center justify-between mt-3 mb-1",children:[(0,h.jsx)("div",{className:"text-base font-bold line-clamp-2 min-h-[48px] flex-1",children:null==t?void 0:t.name}),t.language&&(0,h.jsx)("span",{className:"ml-2 shrink-0 text-xs font-medium border border-gray-300 rounded px-2 py-0.5 text-gray-600 uppercase",children:t.language})]}),a&&(0,h.jsxs)("div",{className:"flex flex-col gap-1.5 mb-3",children:[t.exam&&(0,h.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,h.jsx)(eB.Z,{className:"w-4 h-4 shrink-0"}),(0,h.jsx)("span",{children:t.exam})]}),t.startDate&&(0,h.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,h.jsx)(eJ.Z,{className:"w-4 h-4 shrink-0"}),(0,h.jsx)("span",{children:t.startDate})]}),t.endDate&&(0,h.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,h.jsx)(eJ.Z,{className:"w-4 h-4 shrink-0"}),(0,h.jsx)("span",{children:t.endDate})]})]}),null!=t.price&&(0,h.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,h.jsxs)("span",{className:"text-lg font-bold",children:["₹",eV(t.price)]}),null!=t.originalPrice&&(0,h.jsxs)("span",{className:"text-sm text-gray-400 line-through",children:["₹",eV(t.originalPrice)]}),t.discount&&(0,h.jsx)("span",{className:"text-xs font-semibold text-green-600",children:t.discount})]}),(0,h.jsx)(eU.default,{href:null==t?void 0:t.redirectTo,target:"_blank",rel:"noopener noreferrer",className:"mt-auto",children:(0,h.jsx)(g.Z,{variant:"primary",fullWidth:!0,children:"Explore"})})]})};let ez=[{name:"MBA Fastrack 2024",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/b5d0358f-aef8-43b6-b128-cf8b68aeae2d.png",language:"Hinglish",redirectTo:"https://www.pw.live/study/batches/mba-fastrack-2024-898203/batch-overview"},{name:"MBA Pioneer 2024",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/dd93d293-58aa-4f36-a76c-a3e2eb488dc7.png",language:"Hinglish",redirectTo:"https://www.pw.live/study/batches/mba-pioneer-2024-batch-520271/batch-overview"}],eG={class_10:[{name:"Arjuna JEE 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/e35a6c17-3f76-43fb-aa00-85df0d70a5ab.webp",language:"Hinglish",redirectTo:"https://www.pw.live/iit-jee/class-11/batches/arjuna-jee-2027-243495",startDate:"Starts on 13 Apr 2026",endDate:"Ends on 30 Jun 2028",price:7399,exam:"For IIT-JEE Aspirants"},{name:"Arjuna NEET 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/e227eaf9-fcdb-4481-9a96-f315eb4d44e2.webp",language:"Hinglish",redirectTo:"https://www.pw.live/neet/class-11/batches/arjuna-neet-2027-014187",startDate:"Starts on 13 Apr 2026",endDate:"Ends on 30 Jun 2028",price:7399,exam:"For NEET Aspirants"},{name:"Awadh UP Board 2027 (Hindi Medium)",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/cc64b6ef-490d-4c03-8b4e-17ffd233dee9.webp",language:"Hindi",redirectTo:"https://www.pw.live/upmsp/batches/awadh-up-board-2027--hindi-medium--304523",startDate:"Starts on 11 May 2026",endDate:"Ends on 31 Mar 2027",price:1899,exam:"For Class 11th UP Board"},{name:"Awadh UP Board 2027 (English Medium)",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/6bc08cd0-aed5-4de9-827a-77c988ebead5.webp",language:"English",redirectTo:"https://www.pw.live/upmsp/batches/awadh-up-board-2027--english-medium--177903",startDate:"Starts on 11 May 2026",endDate:"Ends on 31 Mar 2027",price:2099,exam:"For Class 11th UP Board"}],"12th_pcm":[{name:"Prayas JEE 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/dcd05b4d-015e-40db-bf23-21d8c1674aab.webp",language:"Hinglish",redirectTo:"https://www.pw.live/iit-jee/dropper/batches/prayas-jee-2027-667511",startDate:"Starts on 22 Apr 2026",endDate:"Ends on 30 Jun 2027",price:7399,exam:"For IIT-JEE Aspirants"},{name:"Prayas JEE Hindi 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/ba690368-aac3-4ca8-99f3-daad985f8cde.webp",language:"Hindi",redirectTo:"https://www.pw.live/iit-jee/dropper/batches/prayas-jee-hindi-2027-739979",startDate:"Starts on 13 May 2026",endDate:"Ends on 30 May 2027",price:5699,exam:"For JEE Aspirant only"},{name:"4 Years Computer Science Program",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/e1757c21-307a-491f-9170-617840c83ec0.webp",language:"",redirectTo:"https://www.pwioi.com/technology/btech-computer-science-program?courseId=67fec08608f981d74c2e6197&_gl=1*12vewix*_gcl_au*MTY5ODEwMDcuMTc3Njc1NjQwMQ..",exam:"Integrated B.Tech",startDate:"Starts from July 2026"}],"12th_pcb":[{name:"Yakeen NEET 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/4c244117-d9de-45ab-81b2-becff104d9bc.webp",language:"Hinglish",redirectTo:"https://www.pw.live/neet/dropper/batches/yakeen-neet-2027-177201",startDate:"Starts on 15 Apr 2026",endDate:"Ends on 30 Jun 2027",price:13799,exam:"For NEET Aspirants"},{name:"Yakeen NEET Hindi 2027",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/5d421765-e524-43cd-806a-380d8efad16d.webp",language:"Hindi",redirectTo:"https://www.pw.live/neet/dropper/batches/yakeen-neet-hindi-2027-693358",startDate:"Starts on 15 May 2026",endDate:"Ends on 30 Jun 2027",price:5999,exam:"For NEET Aspirants only"}],"12th_arts":[{name:"SSC Mahapack",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/5425dc1b-aa4f-4c01-a33d-59818dbd210e.webp",language:"Hinglish",redirectTo:"https://www.pw.live/ssc/batches/ssc-mahapack-217099",startDate:"Starts on 30 Jan 2023",endDate:"Ends on 31 Dec 2026",price:2999,exam:"For all SSC Exams"},{name:"Railway Mahapack",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/40ef0d9e-ee6e-43b9-9d68-00404eee7f5b.webp",language:"Hinglish",redirectTo:"https://www.pw.live/railway/batches/railway-mahapack-373463",exam:"Rail
1way",startDate:"Starts on 15 May 2024",endDate:"Ends on 30 Nov 2026",price:1699},{name:"Sankalp 2028 Hinglish",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/241c0ce2-7041-4ce6-a41a-acd22f7a232e.webp",language:"Hinglish",redirectTo:"https://www.pw.live/upsc/online-course/batches/sankalp-2028-hinglish-207768",startDate:"Starts on 30 Apr 2026",endDate:"Ends on 30 Sep 2028",price:22499,exam:"Foundation Batch for UPSC 2028 Aspirants"}],"12th_commerce":[{name:"CA Foundation Sampurna September 2026",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/13138631-8035-46bf-8833-61de3004eae7.webp",language:"Hinglish",redirectTo:"https://www.pw.live/ca/foundation/batches/ca-foundation-sampurna-september-2026-595697",startDate:"Starts on 06 Apr 2026",endDate:"Ends on 30 Sep 2026",price:6499,exam:"For CA Foundation September 2026 Attempt"},{name:"Online B.Com For CA Aspirants",isNew:!0,bannerImg:"https://static.pw.live/5eb393ee95fab7468a79d189/dcd312bb-b493-4670-86fe-389ffd03bcab.webp",language:"English",redirectTo:"https://www.pw.live/online-degree/batches/online-b-com-for-ca-aspirants-672960",exam:"Limited Time Offer",startDate:"Starts on 30 Apr 2026",endDate:"Ends on 30 Dec 2028"}],"12th_agriculture":[],"12th_others":[]},eH={"Science (PCM)":"12th_pcm","Science (PCB)":"12th_pcb",Commerce:"12th_commerce","Arts (Humanities)":"12th_arts",Agriculture:"12th_agriculture",Others:"12th_others"};var eq=e=>{let{variant:t,formPayload:a}=e,l=(0,p.useMemo)(()=>t===w.c.UP_BOARD?a?"10th"===a.classType?eG.class_10:eG[eH[a.stream]||""]||[]:[]:ez,[t,a]),s=function(){let e=()=>window.matchMedia("(min-width: 1280px)").matches?3:window.matchMedia("(min-width: 1024px)").matches?2:1,[t,a]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let t=()=>a(e()),l=window.matchMedia("(min-width: 1280px)"),s=window.matchMedia("(min-width: 1024px)");return l.addEventListener("change",t),s.addEventListener("change",t),()=>{l.removeEventListener("change",t),s.removeEventListener("change",t)}},[]),t}(),i=Math.min(l.length,s),[r,n]=(0,p.useState)(0),o=Math.max(0,l.length-i);(0,p.useEffect)(()=>{n(0)},[l]),(0,p.useEffect)(()=>{n(e=>Math.min(e,o))},[o]);let c=(0,p.useCallback)(()=>{n(e=>Math.max(0,e-1))},[]),d=(0,p.useCallback)(()=>{n(e=>Math.min(o,e+1))},[o]);return l.length?(0,h.jsxs)("div",{className:"flex flex-col md:items-center pb-16 mx-auto px-4 lg:pt-20 xl:pt-10 mt-8",children:[(0,h.jsx)("div",{className:"text-2xl md:text-3xl font-bold text-center",children:"Recommended for you"}),(0,h.jsx)("div",{className:"md:hidden mt-7 flex items-stretch overflow-x-auto scrollbar-hide px-2",children:l.map(e=>(0,h.jsx)("div",{className:"flex shrink-0",children:(0,h.jsx)(eY,{batch:e})},e.redirectTo))}),(0,h.jsxs)("div",{className:"hidden md:flex items-center mt-7 gap-2",children:[(0,h.jsx)("button",{type:"button","aria-label":"Show previous recommended batches",onClick:c,disabled:0===r,className:"shrink-0 w-10 h-10 rounded-full border border-gray-200 flex items-center justify-center bg-white shadow-sm hover:bg-gray-50 transition-colors disabled:opacity-30 disabled:cursor-not-allowed",children:(0,h.jsx)(eF.Z,{className:"w-5 h-5 text-gray-700"})}),(0,h.jsx)("div",{className:"overflow-hidden",style:{width:"".concat(337*i,"px")},children:(0,h.jsx)("div",{className:"flex transition-transform duration-300 ease-in-out",style:{transform:"translateX(-".concat(337*r,"px)")},children:l.map(e=>(0,h.jsx)("div",{className:"shrink-0",style:{width:"".concat(337,"px")},children:(0,h.jsx)(eY,{batch:e})},e.redirectTo))})}),(0,h.jsx)("button",{type:"button","aria-label":"Show next recommended batches",onClick:d,disabled:r>=o,className:"shrink-0 w-10 h-10 rounded-full border border-gray-200 flex items-center justify-center bg-white shadow-sm hover:bg-gray-50 transition-colors disabled:opacity-30 disabled:cursor-not-allowed",children:(0,h.jsx)(eL.Z,{className:"w-5 h-5 text-gray-700"})})]}),l.length>i&&(0,h.jsx)("div",{className:"hidden md:flex gap-2 mt-4 justify-center",children:Array.from({length:o+1}).map((e,t)=>(0,h.jsx)("button",{onClick:()=>n(t),className:"w-2 h-2 rounded-full transition-colors ".concat(t===r?"bg-[#5A4BDA]":"bg-gray-300")},t))})]}):null};let eK=[{altTag:"https://physicswallah.onelink.me/ZAZB/s6078wst",displayOrder:1,dwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/c7c092e6-f244
1-4c83-9866-5359100e01d5.png",mwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/c7c092e6-f244-4c83-9866-5359100e01d5.png",redirectionUrl:"https://physicswallah.onelink.me/ZAZB/s6078wst"},{altTag:"https://meded.pw.live/",displayOrder:3,dwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/1868199d-a19c-4f8a-b0af-697aa8f3d117.webp",mwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/1868199d-a19c-4f8a-b0af-697aa8f3d117.webp",redirectionUrl:"https://meded.pw.live/"},{altTag:"https://forms.gle/DTjcBaqNapub86xd9",displayOrder:4,dwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/3afb8b5a-c1e9-4678-9151-624c41f4bc4c.webp",mwebImage:"https://static.pw.live/5eb393ee95fab7468a79d189/3afb8b5a-c1e9-4678-9151-624c41f4bc4c.webp",redirectionUrl:"https://forms.gle/DTjcBaqNapub86xd9"}];var e$=function(e){var t,a;let{setIntervalTime:l,mwebImageClassName:s,dwebImageClassName:i,imageUpperDiv:r="",containerClass:n,page_title:o=""}=e,[c,d]=(0,p.useState)(0);(0,p.useEffect)(()=>{let e=setInterval(()=>{var e;d(c+1),c>(null!==(e=null==eK?void 0:eK.length)&&void 0!==e?e:0)-2&&d(0)},l);return()=>clearInterval(e)},[null==eK?void 0:eK.length,c,l]);let u=null==eK?void 0:eK.sort((e,t)=>{var a,l;return(null!==(a=null==e?void 0:e.displayOrder)&&void 0!==a?a:0)-(null!==(l=null==t?void 0:t.displayOrder)&&void 0!==l?l:0)});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"".concat(n," overflow-hidden w-full relative group"),children:[(0,h.jsx)("div",{className:"transition-transform duration-1000 flex ease-in-out",style:{transform:"translateX(-".concat(100*c/(null!==(t=null==eK?void 0:eK.length)&&void 0!==t?t:0),"%)"),width:"".concat((null!==(a=null==eK?void 0:eK.length)&&void 0!==a?a:0)*100,"%")},children:null==u?void 0:u.map((e,t)=>(0,h.jsxs)("div",{className:"".concat(r," flex-1 w-[100vw]"),onClick:()=>{var t;y.banner_click({page_location:null===(t=window)||void 0===t?void 0:t.location,page_title:o||"",banner_id:""}),window.open(null==e?void 0:e.redirectionUrl)},children:[(0,h.jsx)("img",{src:null==e?void 0:e.dwebImage,alt:(null==e?void 0:e.altTag)||"",className:"hidden lg:block ".concat(i," cursor-pointer")}),(0,h.jsx)("img",{src:null==e?void 0:e.mwebImage,alt:(null==e?void 0:e.altTag)||"",className:"lg:hidden ".concat(s," cursor-pointer")})]},t))}),(0,h.jsx)("div",{onClick:()=>{var e;d(0===c?(null!==(e=null==eK?void 0:eK.length)&&void 0!==e?e:0)-1:c-1)},className:"h-full absolute duration-500 opacity-0 transition-opacity group-hover:opacity-100 left-0 flex flex-col items-center justify-center p-4 bg-gradient-to-r from-black500 top-0",children:(0,h.jsx)(eF.Z,{className:"!w-[24px] !h-[32px] cursor-pointer bg-transparent lg:block hidden bg-center bg-no-repeat bg-contain"})}),(0,h.jsx)("div",{onClick:()=>{var e;d(c===(null!==(e=null==eK?void 0:eK.length)&&void 0!==e?e:0)-1?0:c+1)},className:"h-full absolute opacity-0 transition-opacity group-hover:opacity-100 right-0 flex flex-col items-center justify-center p-4 bg-gradient-to-r to-black500 from-transparent top-0",children:(0,h.jsx)(eL.Z,{className:"!w-[24px] !h-[32px] cursor-pointer bg-transparent lg:block hidden bg-center bg-no-repeat bg-contain"})})]}),(0,h.jsx)("div",{className:"flex md:gap-5 gap-2 justify-center z-20",children:null==eK?void 0:eK.map((e,t)=>(0,h.jsx)("div",{onClick:()=>{d(t)},children:(0,h.jsx)("div",{className:" ".concat(c===t?"border-black":"border-tertiary-100 "," border-2 sm:border-4 rounded-full z-10 mt-2 absolute cursor-pointer")})},t))})]})},eQ=e=>{let{variant:t,aboutContent:a,title:l,subtitle:s,disclaimer:i}=e,[r,n]=(0,p.useState)(m.FORM),[o,c]=(0,p.useState)(null);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"mt-[-60px] md:mt-[-100px] lg:mt-[-140px] xl:mt-[-240px] ",children:[(0,h.jsx)(eM,{title:l,subtitle:s,disclaimer:i,variant:t,activeSection:r,setActiveSection:n,formPayload:o,setFormPayload:c}),(0,h.jsx)("div",{})]}),r===m.PREDICTION&&t!==w.c.CAT&&t!==w.c.GATE&&t!==w.c.UP_BOARD&&t!==w.c.NEET&&(0,h.jsx)("div",{className:"w-full mt-10 px-2 py-2 sm:px-10 sm:py-6 mb-10",children:(0,h.jsx)(e$,{containerClass:"mx-auto",mwebImageClassName:"bg-cover w-full h-full",dwebImageClassName:"bg-cover w-full h-full",setIntervalTime:5e3,page_title:t})}
1),r===m.PREDICTION&&t===w.c.UP_BOARD&&(0,h.jsx)("div",{children:(0,h.jsx)(eq,{variant:t,formPayload:o})}),r===m.FORM&&(0,h.jsx)("div",{className:"px-4 h-full sm:h-[440px] md:h-[416px] lg:h-[300px] sm:px-40 md:bg-[url(https://static.pw.live/5eb393ee95fab7468a79d189/GLOBAL_CMS/e736c2ee-a1b6-4a4a-9684-0d4cd5acf32e.webp)] bg-cover bg-no-repeat",children:(0,h.jsx)(eZ.Z,{content:a,className:"my-8 sm:my-12 md:my-20"})})]})}},61994:function(e,t,a){a.d(t,{c:function(){return s}});var l,s,i=a(67251),r=a(22291),n=a(69131);(l=s||(s={})).JEE_ADVANCED="jee-advanced",l.JEE_MAIN="jee-main",l.NEET="neet",l.GATE="gate",l.CAT="cat",l.UP_BOARD="up-board",t.Z=e=>{let{variant:t,bannerTitle:a,subtitle:l,disclaimer:s,title:o,aboutContent:c}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{background:"url(".concat("https://static.pw.live/5eb393ee95fab7468a79d189/514e6457-14c5-452a-8bfa-1d72e026b4c0.webp",")"),backgroundSize:"cover"},className:"bg-cover",children:(0,i.jsx)("div",{className:"h-[155px] md:h-[250px] lg:h-[300
1px] xl:h-[400px] flex max-w-6xl mx-auto pt-5 md:pt-14 px-3 lg:px-0 pb-10 md:pb-0",children:(0,i.jsx)("div",{className:"items-center w-full",children:(0,i.jsx)(n.default,{variant:"heading1",className:"text-center",weight:"bold",color:"#FFFFFF",component:"h1",children:(0,i.jsx)("span",{className:"text-white",children:a})})})})}),(0,i.jsx)(r.default,{variant:t,aboutContent:c,title:o,subtitle:l,disclaimer:s})]})}}}]);
2//# sourceMappingURL=202-303c05519f4e088b.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.