PageSourceSearch

https://www.curiousjr.com/cjr-assets/_next/static/chunks/4122.9371525e48af687d.js

js curiousjr.com collected 2026-09-24 10:25:49 UTC 16,158 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4122],{30759:(e,s,t)=>{t.d(s,{A:()=>a});var l=t(41073);let a=()=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_20904_952)",children:[(0,l.jsx)("path",{d:"M20 14.9247C20 15.0342 19.9966 15.2705 19.9897 15.4555C19.9726 15.9041 19.9384 16.4829 19.8836 16.7466C19.8014 17.1438 19.6815 17.5171 19.5205 17.8288C19.3322 18.1986 19.0925 18.5274 18.8048 18.8116C18.5205 19.0959 18.1918 19.3356 17.8219 19.524C17.5103 19.6849 17.1336 19.8048 16.7329 19.887C16.4726 19.9384 15.8973 19.976 15.4521 19.9897C15.2671 19.9966 15.0308 20 14.9212 20H5.07192C4.96233 20 4.72603 19.9966 4.5411 19.9897C4.09247 19.9726 3.5137 19.9384 3.25 19.8836C2.85274 19.8014 2.47945 19.6815 2.16781 19.5205C1.79795 19.3322 1.46918 19.0925 1.18493 18.8048C0.900685 18.5205 0.660959 18.1918 0.472603 17.8219C0.311644 17.5103 0.191781 17.1336 0.109589 16.7329C0.0582192 16.4726 0.0205479 15.8973 0.00684932 15.4521C0.00342466 15.2705 0 15.0342 0 14.9247V5.07534C0 4.96575 0.00342466 4.72945 0.010274 4.54452C0.0273973 4.09589 0.0616438 3.51712 0.116438 3.25342C0.19863 2.85616 0.318493 2.48288 0.479452 2.17123C0.667808 1.80137 0.907534 1.4726 1.19178 1.18836C1.47603 0.90411 1.80479 0.664384 2.17466 0.476027C2.4863 0.315068 2.86301 0.195205 3.2637 0.113014C3.52397 0.0616438 4.09932 0.0239726 4.54452 0.010274C4.72945 0.00342466 4.96575 0 5.07534 0H14.9247C15.0342 0 15.2705 0.00342466 15.4555 0.010274C15.9041 0.0273973 16.4829 0.0616438 16.7466 0.116438C17.1438 0.19863 17.5171 0.318493 17.8288 0.479452C18.1986 0.667808 18.5274 0.907534 18.8116 1.19521C19.0959 1.47945 19.3356 1.80822 19.524 2.17808C19.6849 2.48973 19.8048 2.86644 19.887 3.26712C19.9384 3.5274 19.976 4.10274 19.9897 4.54795C19.9966 4.73288 20 4.96918 20 5.07877V14.9247Z",fill:"url(#paint0_linear_20904_952)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2602 4.78765C13.9143 3.44176 12.1232 2.69861 10.2157 2.69861C6.28419 2.69861 3.08899 5.89724 3.08556 9.82532C3.08556 11.0822 3.41433 12.3082 4.03762 13.387L3.02734 17.0822L6.80817 16.0924C7.84926 16.6609 9.02049 16.9589 10.2157 16.9589H10.2191C14.1472 16.9589 17.3458 13.7603 17.3493 9.83217C17.3493 7.92464 16.6061 6.13354 15.2602 4.78765ZM10.2191 15.7534C9.15406 15.7534 8.10954 15.4657 7.202 14.9281L6.98625 14.8013L4.7431 15.3904L5.34241 13.2055L5.202 12.9829C4.60954 12.0411 4.29447 10.9486 4.29447 9.82875C4.29447 6.56162 6.95543 3.90409 10.2225 3.90409C11.8047 3.90409 13.2945 4.52053 14.4109 5.64039C15.5308 6.76025 16.1472 8.24998 16.1438 9.83217C16.1404 13.0959 13.4828 15.7534 10.2191 15.7534ZM13.4691 11.3185C13.291 11.2294 12.4143 10.7979 12.2534 10.7397C12.089 10.6815 11.9725 10.6507 11.8527 10.8287C11.7328 11.0068 11.3938 11.4075 11.2876 11.5274C11.1849 11.6472 11.0787 11.6609 10.9006 11.5719C10.7225 11.4829 10.1472 11.2945 9.46912 10.6883C8.9383 10.2157 8.58214 9.63354 8.4794 9.45546C8.37666 9.27738 8.46912 9.18149 8.55817 9.09244C8.63693 9.01368 8.73625 8.88354 8.82529 8.7808C8.91433 8.67806 8.94515 8.60272 9.00337 8.48285C9.06159 8.36299 9.03419 8.26025 8.98967 8.17121C8.94515 8.08217 8.58899 7.20546 8.44173 6.84929C8.29789 6.5034 8.15063 6.54792 8.04104 6.5445C7.9383 6.53765 7.81844 6.53765 7.69858 6.53765C7.57871 6.53765 7.38693 6.58217 7.22255 6.76025C7.05817 6.93833 6.59926 7.36984 6.59926 8.24655C6.59926 9.12327 7.23625 9.96916 7.32529 10.089C7.41433 10.2089 8.58214 12.0068 10.3698 12.7774C10.7945 12.9623 11.1267 13.0719 11.3869 13.1541C11.815 13.2911 12.202 13.2705 12.5102 13.226C12.8527 13.1746 13.565 12.7945 13.7123 12.3801C13.8595 11.9657 13.8595 11.6061 13.815 11.5342C13.7636 11.452 13.6472 11.4075 13.4691 11.3185Z",fill:"white"})]}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_20904_952",x1:"10.0008",y1:"20.0015",x2:"10.0008",y2:"0",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#25CF43"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#61FD7D"})]}),(0,l.jsx)("clipPath",{id:"clip0_20904_952",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})]})]})},58900:(e,s,t)=>{t.d(s,{A:()=>a});
1var l=t(41073);let a=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})})},74122:(e,s,t)=>{t.r(s),t.d(s,{default:()=>k});var l=t(41073),a=t(58900),i=t(30759),r=t(78483),c=t(87778),o=t(35156),n=t(27154),d=t(30157),m=t(68505),u=t(90853),p=t(4699),h=t(83948),x=t(69194),f=t(55835),w=t(64705),v=t(6625),g=t(68362),C=t(90322),_=t(95027),j=t(72758),N=t(38791),y=t(73413),b=t(77528),A=t(31989),P=t(10170),S=t(70730);let k=function(e){let{onClose:s,phoneNumber:t,countryCode:k=v.O4.IN,shouldRegister:L,onSuccess:I,selectedClass:M,selectedBatchDetails:E,campaignDetails:T,type:B,cameFrom:F}=e,O=new URLSearchParams(window.location.search),R=O?O.get("mlp_type"):void 0,[H,D]=(0,A.useState)(""),[W,V]=(0,A.useState)(60),[z,G]=(0,A.useState)(!1),[$,J]=(0,A.useState)(!1),U=(0,A.useRef)(!1),[q,Z]=(0,A.useState)(!1),{enableOTPLess:K,resendOTPLessOTP:Q,verifyOtplessAuth:Y,isUserExists:X,otpDestination:ee,trackingParamsRef:es}=(0,o.ol)(),{updateUser:et}=(0,n.J)(),{utm_term:el,utm_content:ea}=(0,f.Pg)(!0),ei=T.code,[er,ec]=(0,A.useState)(K&&"+91"===k);(0,A.useEffect)(()=>{K&&"+91"===k?ec(!0):ec(!1)},[K,k]),L=er?!X:L,(0,A.useEffect)(()=>{er&&document.addEventListener("otpless:otp-auto-read",e=>{eI(e.detail.otp)})},[er]);let{handleLogin:eo,getMe:en,error:ed,handleRegister:em,resendOTP:eu}=(0,d.A)(),{deviceManufacturer:ep,deviceBrowser:eh,deviceModel:ex,deviceOS:ef}=(0,u.Q)(),{utm_source:ew,utm_medium:ev,utm_campaign:eg}=(0,f.Pg)(!0),eC=()=>{{let e=localStorage.getItem("utmParams");if(e)try{return JSON.parse(e)}catch(e){console.error("Error parsing UTM params:",e)}}return{}},e_=async()=>{if(T?.type==="BLP"&&E?.batchId)try{let e=await h.Kj.get(`v3/batches/${E.batchId}/details`);return e?.data||null}catch(e){console.error("Error fetching batch details:",e)}return null},{isLoading:ej,error:eN,updateCohort:ey}=(0,p.A)();(0,m.A)(e=>{D(e),eI(e)}),(0,A.useEffect)(()=>{let e=setInterval(()=>{V(e=>0===e?e:e-1)},1e3);return()=>{clearInterval(e)}},[]);let eb=()=>"/"===window.location.pathname?"landing_page":"MLP"===B?"market":"blp",eA="market"===eb()?"MLP":"blp"===eb()?"BLP":"LANDING_PAGE",eP=E?.title,eS="static",ek="/"===window.location.pathname?w.A.demoBookSeat:w.A.marketBookSeat,eL=async()=>{let e;if(Z(!0),0===W){if(G(!1),e=er?await Q("+91",t):await eu(t,1,k))w.A.otpResendClick({came_from:eb(),user_type:e?.userExists?"old":"new",view:er?"otpless_view":"old",user_class:M,amount:E?E.price.discounted:T?.defaultPrice?.discounted,page_id:ei});else{let e=await e_(),s=eC(),l=(0,c.jD)({came_from:eb(),page_id:ei,selected_cohort:E?.cohortId||e?.cohortId||"",source:(0,c.G$)()||("MLP"===B?"MLP":"BLP"===B?"BLP":"LANDING"),view:er?"otpless_view":"old",device_manufacturer:ep,device_model:ex,device_os:ef,device:ep,gclid:s.gclid,fbclid:s.fbclid});await em({mobile:t,smsType:+(k!==v.O4.IN),successCallback:()=>{w.A.otpResendClick({came_from:eb(),user_type:"new",view:er?"otpless_view":"old",user_class:M,amount:E?E.price.discounted:T?.defaultPrice?.discounted,page_id:ei})},loginEventMetadata:l})}V(60)}};(0,A.useEffect)(()=>(er&&!U.current&&document.addEventListener("otpless:auth-success",e=>{U.current,eI("",!0)}),()=>{er&&document.removeEventListener("otpless:auth-success",e=>{eI("",!0)})}),[er]);let eI=async(e,s)=>{let l=e||H;if(6===l.length||s)try{J(!0);let e=await e_();if(er){if(!s){es.current={utm_source:ew,utm_medium:ev,utm_campaign:eg,device:ep,pageType:eA,mlpName:eP,mlpType:eS,selected_cohort:E?.cohortId||e?.cohortId||"",cohortId:E?.cohortId||e?.cohortId||""},console.log("VERIFY OTPLESS AUTH",l),s=await Y(l);return}}else{let a=eC(),i=(0,c.jD)({came_from:F||eb(),page_id:ei,selected_cohort:E?.cohortId||e?.cohortId||"",source:(0,c.G$)()||("MLP"===B?"MLP":"BLP"===B?"BLP":"LANDING"),view:er?"otpless_view":"old",device_manufacturer:ep,device_model:ex,device_os:ef,device:ep,gclid:a.gclid,fbclid:a.fbclid});s=await eo(l,t,ew,ev,eg,ep,"",eA,eP,eS,i)}if(s){if(ek({page_id:ei,view:er?"otpless_view":"",user_class:M||"Class "+e?.class,batch_id:E?.batchId,amount:E?.price?.discounted,page:"/"===window.location.pathname?"landing":"MLP"===B?"mlp":"blp"}),L){let s=localStorage.getItem("user"),t=JSON.parse(s||"");et(t),(0,x.u)("signup_success",{came_from:"/"===window.location.pathname?"landing":"market",user_id:t?.profileId?._id,user_name:"",view:er?"otpless_view":"",user_class:M||"Class "+e?.class}),w.A.signupSuccess({came_from:eb(),user_id:t?.profileId?._id,user_class:M||"Class "+e?.class,user_cohort:E?.cohortId,selected_cohort:E?.cohortId||e?.cohortId||"",page_id:ei,view:er?"otpless_view":"old",login_mode:"otp"}),localStorage.setItem("shouldRegister","true")}
1else{let e=localStorage.getItem("utmParams"),{utm_source:s,utm_medium:t,utm_campaign:l,utm_term:a,utm_content:i,gclid:r,fbclid:c,igshid:o,source:n}=JSON.parse(e||"{}"),d=(0,g.gL)();w.A.loginSuccess({came_from:eb(),view:er?"otpless_view":"old",page_id:ei,user_id:d?.profileId?._id,user_name:(0,g.J3)(d),user_cohort:d?.profileId?.cohortId,user_class:d?.profileId?.class,utm_source:s,utm_medium:t,utm_campaign:l,utm_term:a,utm_content:i,gclid:r,fbclid:c,igshid:o,source:n,mlp_type:(0,g.Eq)(R),login_mode:"otp"})}if(L){let s=M||e?.class,t=s?.replace(/^Class\s+/i,"")||s;await ey(E?.cohortId||"",t),await h.Kj.put("CJR_API","/v1/user/profile",{grade:M||"Class "+e?.class},{headers:{"x-request-source":T?.type,"x-request-platform":"WEB","x-device-manufacturer":ep,"x-device-model":ex,"x-device-os":ef,"x-device-browser":eh,"x-request-source-link":window?.location?.href||""}})}G(!1);try{let e=await en();e&&et(e)}catch(e){console.log(e)}I()}else G(!0)}catch(e){console.log(e)}finally{J(!1)}},eM=()=>{Q("+91",t),w.A.otpResendClick({came_from:eb(),user_type:X?"old":"new",view:"otpless_view",user_class:M,amount:E?E.price.discounted:T?.defaultPrice?.discounted,page_id:ei,channel:"SMS"}),V(60)},eE=()=>{Q(k,t,"WHATSAPP"),w.A.otpResendClick({came_from:eb(),user_type:X?"old":"new",view:"otpless_view",user_class:M,amount:E?E.price.discounted:T?.defaultPrice?.discounted,page_id:ei,channel:"WHATSAPP"}),V(60)};return(0,l.jsx)("div",{className:"fixed top-0 left-0 w-screen h-screen bg-gray-900/40 z-[9999] md:flex md:justify-center md:items-center",onClick:s,children:(0,l.jsx)("div",{className:"fixed w-screen bottom-0 md:relative md:flex md:justify-center md:items-center",children:(0,l.jsxs)("div",{className:"relative bg-white rounded-t-xl w-[100%] p-4 md:w-[480px] md:max-w-[90%] md:rounded-lg md:p-6",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{onClick:s,className:"hidden absolute top-6 right-6 cursor-pointer md:block",children:(0,l.jsx)(r.A,{})}),(0,l.jsxs)("div",{className:(0,C.A)("flex flex-col gap-6 mb-4 md:py-10",{"md:pb-4":L||q}),children:[(0,l.jsx)("div",{className:"text-xl font-bold text-center md:text-2xl",children:"OTP Verification"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center justify-center",children:[(0,l.jsx)(y.A,{focusStyle:"!border-[#FFBC9E] !ring-1 !ring-[#FFBC9E]",inputStyle:`!border shadow !h-10 !w-10 mx-1 my-1 font-semibold text-gray-900 md:!h-12 md:!w-12 ${z?"!border-[#BF2734]":"!border-[#D9DCE1]"}`,shouldAutoFocus:!0,isInputNum:!0,value:H,onChange:e=>{!isNaN(+e)&&(D(e),(0,g.kF)(e)&&eI(e))},numInputs:6,separator:(0,l.jsx)("span",{children:" "})}),z&&(0,l.jsx)(S.A,{message:ed})]}),W>0&&(0,l.jsx)("div",{className:"w-full text-center justify-center items-center",children:(()=>{if(!ee)return null;let e=`${k} ${t}`;switch(ee){case"SMS":return(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-2 w-full justify-center",children:[(0,l.jsx)(a.A,{}),(0,l.jsxs)("span",{className:"text-sm text-gray-600",children:["OTP will be sent to ",(0,l.jsx)("span",{className:"font-medium",children:e})," via SMS"]})]});case"WHATSAPP":return(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-2 w-full justify-center",children:[(0,l.jsx)(i.A,{}),(0,l.jsxs)("span",{className:"text-sm text-gray-600",children:["OTP will be sent to ",(0,l.jsx)("span",{className:"font-medium",children:e})," via WhatsApp"]})]});case"BOTH":return(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-2 w-full justify-center",children:[(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-[#25D366] -ml-1",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-11c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H9c-.55 0-1-.45-1-1s.45-1 1-1h3V9z",clipRule:"evenodd"})})]}),(0,l.jsxs)("span",{className:"text-sm text-gray-600",children:["OTP will be sent to ",(0,l.jsx)("span",{className:"font-medium",children:e})," via SMS and WhatsApp"]})]});case"EMAIL":return(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),(0,l.jsx)("span",{className:"text-sm text-gray-600",children:"OTP will be sent to your email"})]});case"TRUECALLER":return(0,l.jsx)("div",{className:"flex items-center gap-2 mt-2 w-full justify-center",children:(0,l.jsx)("span",{className:"text-sm text-gray-600",children:"Authenticating via Truecaller"})});default:return null}})()}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"text-[10px] font-medium md:text-sm mb-[5px]",children:"Didn’t get an OTP?"}),(0,l.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex gap-1 justify-center items-center",children:[(0,l.jsx)(N.A,{variant:"naked",className:`inline !text-sm !font-bold !text-[#9E3100]  md:text-[16
1px] ${0!==W&&"opacity-50 !cursor-not-allowed"}`,onClick:eL,disabled:0!==W,children:"Resend OTP"}),W>0?(0,l.jsx)("span",{className:"font-semibold",children:"in:"}):(0,l.jsx)("span",{children:"via"})]}),W>0&&(0,l.jsx)("div",{className:"text-sm font-bold text-center text-[#989DA5] md:text-[17.5px]",children:"00:"+(W<10?"0"+W:W)})]}),0===W&&(0,l.jsx)("div",{className:"flex gap-4 mt-2 w-full items-center justify-center",children:["SMS","WHATSAPP"].map(e=>"SMS"===e?(0,l.jsxs)("div",{className:" flex px-3 py-1.5 bg-[#FFF0E7] rounded-lg gap-1 cursor-pointer",onClick:eM,children:[(0,l.jsx)(a.A,{}),"SMS"]},"sms"):"WHATSAPP"===e?(0,l.jsxs)("div",{className:" flex px-3 py-1.5 bg-[#FFF0E7] rounded-lg gap-1 cursor-pointer",onClick:eE,children:[(0,l.jsx)(i.A,{}),"Whatsapp"]},"whatsapp"):void 0)})]})]}),q?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"mb-8 flex justify-center",children:(0,l.jsx)(_.A,{isVisible:q,mobile:t,country:k,came_from:F,children:(0,l.jsx)(N.A,{preIcon:(0,l.jsx)(b.A,{width:24}),className:"!text-black flex cursor-pointer",variant:"naked",children:"Help"})})})}):null,(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)(j.A,{})}),(0,l.jsx)("div",{children:(0,l.jsx)(P.A,{className:"disbaled:cursor-not-allowed w-full py-2 rounded-md text-white cursor-pointer",disabled:!H||6!==H.length||$,onClick:()=>eI(),loading:$,children:"Book Seat Now"})})]})})})}}}]);
2//# sourceMappingURL=4122.9371525e48af687d.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.