PageSourceSearch

https://www.curiousjr.com/cjr-assets/_next/static/chunks/1005.8f0fa8ca60711456.js

js curiousjr.com collected 2026-09-24 10:25:43 UTC 6,992 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1005],{1005:(e,s,t)=>{t.r(s),t.d(s,{default:()=>A});var a=t(41073),l=t(95027),c=t(72758),i=t(38791),d=t(10170),r=t(73413),o=t(78483),n=t(87778),m=t(27154),u=t(30157),p=t(68505),x=t(90853),f=t(4699),h=t(83948),_=t(69194),g=t(55835),v=t(64705),w=t(6625),b=t(68362),j=t(77528),N=t(90322),I=t(31989),y=t(70730);let A=function(e){let{onClose:s,phoneNumber:t,countryCode:A=w.O4.IN,shouldRegister:k,onSuccess:P,selectedClass:C,selectedBatchDetails:S,campaignDetails:L,type:B,cameFrom:E}=e,[D,F]=(0,I.useState)(""),[M,R]=(0,I.useState)(30),[O,J]=(0,I.useState)(!1),[T,G]=(0,I.useState)(!1),[$,q]=(0,I.useState)(!1),{user_cohort:K}=(0,g.My)(!0),{utm_source:U,utm_medium:V,utm_campaign:z,utm_term:H,utm_content:Q,gclid:W,fbclid:X,igshid:Y}=(0,g.Pg)(!0),Z=(0,g.el)(),ee=L.code,{handleLogin:es,getMe:et,error:ea,handleGenerateOTP:el,handleRegister:ec,handleUpdateUser:ei,resendOTP:ed}=(0,u.A)(),{updateUser:er}=(0,m.J)(),{deviceManufacturer:eo,deviceBrowser:en,deviceModel:em,deviceOS:eu}=(0,x.Q)(),{isLoading:ep,error:ex,updateCohort:ef}=(0,f.A)(),eh=(0,I.useRef)(null);(0,p.A)(e=>{F(e),ew(e)}),(0,I.useEffect)(()=>{let e=setInterval(()=>{R(e=>0===e?e:e-1)},1e3);return()=>{clearInterval(e)}},[]);let e_=()=>"/"===window.location.pathname?"landing_page":"MLP"===B?"market":"blp",eg="/"===window.location.pathname?v.A.demoBookSeat:v.A.marketBookSeat,ev=async()=>{if(q(!0),0===M){if(J(!1),await ed(t,1,A))v.A.otpResendClick({came_from:e_(),user_type:"old",user_class:C,amount:S?S.price.discounted:L?.defaultPrice?.discounted,page_id:ee,view:"old"});else{let e=(0,n.jD)({came_from:e_(),page_id:ee,selected_cohort:S?.cohortId||"",source:"MLP"===B?"MLP":"BLP"===B?"BLP":"LANDING",view:"old",device_manufacturer:eo,device_model:em,device_os:eu,device:eo,gclid:W,fbclid:X});await ec({mobile:t,smsType:+(A!==w.O4.IN),successCallback:()=>{v.A.otpResendClick({came_from:e_(),user_type:"new",user_class:C,amount:S?S.price.discounted:L?.defaultPrice?.discounted,page_id:ee,view:"old"})},loginEventMetadata:e})}R(30)}},ew=async e=>{let s="market"===e_()?"MLP":"blp"===e_()?"BLP":"LANDING_PAGE",a=S?.title,l=e||D;try{let e;if(G(!0),L?.type==="BLP"){let s=await h.Kj.get(`v3/batches/${S?.batchId}/details`);eh.current=e=s?.data}let c=(0,n.jD)({came_from:e_(),page_id:ee,selected_cohort:S?.cohortId||e?.cohortId||"",source:"MLP"===B?"MLP":"BLP"===B?"BLP":"LANDING",view:"old",device_manufacturer:eo,device_model:em,device_os:eu,device:eo,gclid:W,fbclid:X});if(await es(l,t,U,V,z,eo,"",s,a,"static",c)){if(k){let s=C||e?.class,t=s?.replace(/^Class\s+/i,"")||s;await ef(S?.cohortId,t,{onSuccess:async()=>{await ei({class:C||"Class "+e?.class})}}),await h.Kj.put("CJR_API","/v1/user/profile",{grade:C||"Class "+e?.class},{headers:{"x-request-source":L?.type,"x-request-platform":"WEB","x-device-manufacturer":eo,"x-device-model":em,"x-device-os":eu,"x-device-browser":en,"x-request-source-link":window?.location?.href||""}})}J(!1);let s=await et();if(console.log("USER DATA",s),s&&er(s),eg({page_id:ee,user_class:C||"Class "+e?.class,batch_id:S?.batchId,amount:S?.price?.discounted,page:"/"===window.location.pathname?"landing":"MLP"===B?"mlp":"blp"}),k){let s=(0,b.gL)();if(!eh.current?._id){let e=await h.Kj.get(`v3/batches/${S?.batchId}/details`);eh.current=e?.data}(0,_.u)("signup_success",{came_from:"/"===window.location.pathname?"landing":"market",user_id:s?.profileId?._id,user_name:"",user_class:C||"Class "+e?.class,mlp_type:"static",page_id:ee,user_cohort:K,utm_source:U,utm_medium:V,utm_campaign:z,utm_term:H,utm_content:Q,gclid:W,fbclid:X,igshid:Y,source:Z}),v.A.signupSuccess({came_from:e_(),user_id:s?.profileId?._id,user_class:C||"Class "+e?.class,user_cohort:S?.cohortId,selected_cohort:S?.cohortId||e?.cohortId||"",page_id:ee,view:"old",login_mode:"otp"}),localStorage.setItem("shouldRegister","true")}else{let e=localStorage.getItem("utmParams"),{utm_source:s,utm_medium:t,utm_campaign:a,utm_term:l,utm_content:c,gclid:i,fbclid:d,igshid:r,source:o}=JSON.parse(e||"{}"),n=localStorage.getItem("user"),m=JSON.parse(n||"");console.log("USER>>>",m),er(m),v.A.loginSuccess({came_from:e_(),page_id:ee,user_id:m?.profileId?._id,user_name:(0,b.J3)(m),user_cohort:m?.profileId?.cohortId,user_class:m?.profileId?.class,utm_source:s,utm_medium:t,utm_campaign:a,utm_term:l,utm_content:c,gclid:i,fbclid:d,igshid:r,source:o,mlp_type:"static",view:"old",login_mode:"otp"})}P()}else J(!0)}catch(e){}finally{G(!1)}};return(0,a.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,a.jsx)("div",{className:"fixed w-screen bottom-0 md:relative md:flex md:justify-center md:items-center",children:(0,a.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,a.jsx)("div",{onClick:s,className:"hidden absolute top-6 right-6 cursor-pointer md:block",children:(0,a.jsx)(o.A,{})}),(0,a.jsxs)("div",{className:(0,N.A)("flex flex-col gap-6 mb-4 md:py-10",{"md:pb-4":k||$}),children:[(0,a.jsx)("div",{className:"text-xl font-bold text-center md:text-2xl",children:"OTP Verification"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 items-center justify-center",children:[(0,a.jsx)(r.A,{value:D,onChange:e=>{!isNaN(+e)&&(F(e),(0,b.kF)(e)&&ew(e))},numInputs:6,inputStyle:`border shadow h-10 w-10 mx-1 my-1 font-semibold text-gray-900 md:h-12 md:w-12 text-center ${O?"border-[#BF2734]":"border-[#D9DCE1]"}
1`,focusStyle:"border-[#FFBC9E] ring-1 ring-[#FFBC9E]",shouldAutoFocus:!0,isInputNum:!0}),O&&(0,a.jsx)(y.A,{message:ea})]}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"text-[10px] font-medium md:text-sm mb-[5px]",children:"Didn't get an OTP?"}),(0,a.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex gap-1 justify-center items-center",children:[(0,a.jsx)(i.A,{variant:"naked",className:`inline !text-sm !font-bold !text-[#9E3100]  md:text-[16px] ${0!==M&&"opacity-50 !cursor-not-allowed"}`,onClick:ev,disabled:0!==M,children:"Resend OTP"}),(0,a.jsx)("span",{className:"font-semibold",children:"in:"})]}),(0,a.jsx)("div",{className:"text-sm font-bold text-center text-[#989DA5] md:text-[17.5px]",children:"00:"+(M<10?"0"+M:M)})]})]})]}),$?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"mb-8 flex justify-center",children:(0,a.jsx)(l.A,{isVisible:$,mobile:t,country:A,came_from:E,children:(0,a.jsx)(i.A,{preIcon:(0,a.jsx)(j.A,{width:24}),className:"!text-black flex cursor-pointer",variant:"naked",children:"Help"})})})}):null,(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("div",{children:(0,a.jsx)(d.A,{className:"disbaled:cursor-not-allowed w-full py-2 rounded-md text-white",disabled:!D||6!==D.length||T,onClick:()=>ew(),loading:T,children:"Book Seat Now"})})]})})})}}}]);
2//# sourceMappingURL=1005.8f0fa8ca60711456.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.