PageSourceSearch

https://www.extramarks.com/_next/static/chunks/4557.c29fbd092aeadb92.js

js extramarks.com collected 2026-10-01 13:58:40 UTC 177,877 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4557],{34557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>U});var s=n(95155),i=n(81236),o=n(66650),r=n(3066),a=n(41777),l=n(86213),c=n(12115),u=n(63365),d=n(12865),_=n(11467),p=n(67969),m=n(65117),g=n(92253),f=n(31950),h=n(6201),v=n(19283),S=n(17200),y=n(25573),w=n(14503),A=n(44903),b=n(42661),k=n(51994),E=n(18508),C=n(87434),T=n(75094);n(27631),n(36840),n(66293),n(85460),n(29859);var P=n(74256),N=n(12963),O=n(33956),I=n(85844);let x=(0,c.lazy)(()=>Promise.resolve().then(n.bind(n,18508))),j=(0,c.lazy)(()=>Promise.resolve().then(n.bind(n,44903))),M=(0,w.A)(j),L=(0,w.A)(x),D=(0,c.lazy)(()=>Promise.resolve().then(n.bind(n,42661))),R=(0,w.A)(D),W=(0,c.lazy)(()=>Promise.resolve().then(n.bind(n,51994))),B=(0,w.A)(W),F="/nx_web_assets/images/new-theme/backtopage.png",U=e=>{var t,n,w,x;let{switchLoginSignup:j,freeTrial:D,forceModalStyle:W,enquiryModalMode:U,enquiryStudentLeadForm:V,directStudentSignup:G}=e,H=!0===W,q=H?A.default:M,z=H?b.default:R,J=H?k.default:B,K=H?E.default:L,[Y,Z]=(0,c.useState)(""),[Q,$]=(0,c.useState)(!1),[X,ee]=(0,c.useState)(!1),[et,en]=(0,c.useState)({}),[es,ei]=(0,c.useState)(!1),[eo,er]=(0,c.useState)(1),[ea,el]=(0,c.useState)({lat:"0",lng:"0"}),[ec,eu]=(0,c.useState)({}),[ed,e_]=(0,c.useState)(!1),[ep,em]=(0,c.useState)(!!e.FromReferAfriend&&e.FromReferAfriend),[eg,ef]=(0,c.useState)(!1),[eh,ev]=(0,c.useState)(U&&!V?"Institute":"Student"),[eS,ey]=(0,c.useState)(U||G?2:void 0),[ew,eA]=(0,c.useState)(!1),[eb,ek]=(0,c.useState)(!0),[eE,eC]=(0,c.useState)(!1),[eT,eP]=(0,c.useState)(!1),eN=(0,c.useRef)(),[eO,eI]=(0,c.useState)({errorName:"",errorMessage:""}),ex=(0,_.wA)(),ej=(0,p.DQ)(),{adjustData:eM,redirectAfterLogin:eL={},isSession:eD}=(0,_.d4)(e=>e.login),{country:eR}=(0,_.d4)(e=>null==e?void 0:e.countryName),eW="ID"==((null==eR?void 0:eR.countryNew)||localStorage.getItem("internationalizationFlagName")||"IN"),eB=(0,O.wG)(),{countryList:eF}=(0,f.O)(),{lang:eU,FormData:eV}=(0,_.d4)(e=>e.signup),[eG,eH]=(0,c.useState)(!1),eq=null==(t=localStorage)?void 0:t.getItem("internationalizationFlag");(0,c.useEffect)(()=>{let e=window.location.pathname;e&&("/homelead"==e||"/leadform"==e||"/institutelead"==e||"/leadformparent"==e||"/package"==e?eH(!0):(console.log("admin logout5"),eD||ex({type:P.AcY,payload:null})))},[window.location.pathname]),(0,c.useEffect)(()=>{console.log(eV,"manageFormData"),eV&&(null==eV?void 0:eV.userType)&&(null==eV?void 0:eV.userType)=="institute"&&setTimeout(()=>{ev("Institute"),er(1),ey(2)},300),ex((0,N.O1)(""))},[eV]),(0,c.useEffect)(()=>{(0,y.zf)("PRIVACY_T&C").then(e=>eA(e))},[]),(0,c.useEffect)(()=>{localStorage.getItem("signup_clicked")&&(localStorage.removeItem("signup_clicked"),(0,S.sendMixPanelEvent)("","Clicks on Signup of web top navigation","When user clicks on Signup button on web top navigation",[{key:"text",value:"Signup"},{key:"cta_title",value:"Sign Up"},{key:"cta_type",value:"static"},{key:"cta_class",value:"secondary"},{key:"service_group",value:"Sign Up"}],"cta_clicked","Sign Up"))},[]),(0,c.useEffect)(()=>{var e;if(U)return;if(G){eT||(ev("Student"),ey(2));return}let t=localStorage.getItem("referral_data","");(null==t||null==(e=t.extraData)?void 0:e.user_type)?(ev("parent"==t.extraData.user_type?"Parent":"Student"),ey(2)):ey(3),(null==eM?void 0:eM.platform)&&(null==eM?void 0:eM.app_type)=="Student"&&ey(2),(null==eM?void 0:eM.platform)&&(null==eM?void 0:eM.app_type)=="Parent"&&ey(2),(null==eM?void 0:eM.platform)&&(null==eM?void 0:eM.app_type)=="Teacher"&&(0,I.lt)(null==eM?void 0:eM.app_name)&&(ev("Institute"),er(1),ey(2))},[null==eM?void 0:eM.platform,U,G,eT]),(0,c.useEffect)(()=>{var e,t,n,s,i,o,r,a,l,c,u,d;U||(eL.extraData&&(null==eL||null==(e=eL.extraData)?void 0:e.referral_code)&&(null==eL||null==(t=eL.extraData)?void 0:t.user_type)&&(null==eL||null==(n=eL.extraData)?void 0:n.user_type)=="student"&&(console.log("redirect dependency --1",null==eL||null==(c=eL.extraData)?void 0:c.referral_code),ev("Student"),ey(2)),eL.extraData&&(null==eL||null==(s=eL.extraData)?void 0:s.referral_code)&&(null==eL||null==(i=eL.extraData)?void 0:i.user_type)&&(null==eL||null==(o=eL.extraData)?void 0:o.user_t
1ype)=="parent"&&(console.log("redirect dependency --2",null==eL||null==(u=eL.extraData)?void 0:u.user_type),ev("Parent"),ey(2)),(null==eL?void 0:eL.extraData)&&(null==eL||null==(r=eL.extraData)?void 0:r.fromPackage)&&(null==eL||null==(a=eL.extraData)?void 0:a.user_type)&&(null==eL||null==(l=eL.extraData)?void 0:l.user_type)=="student"&&(console.log("redirect after login usertype inside if package --",null==eL||null==(d=eL.extraData)?void 0:d.fromPackage),ev("Student"),ey(2)),eQ())},[null==eL?void 0:eL.extraData,U]),(0,c.useEffect)(()=>{U||!eB||eM.platform||!localStorage.getItem("redirectURL")||"null"===localStorage.getItem("redirectURL")||(ey(2),ev("Student"))},[U]),(0,c.useEffect)(()=>{if(!U&&eB&&localStorage.getItem("short_package_path")){var e;let t=JSON.parse(null==(e=localStorage)?void 0:e.getItem("short_package_path"));t.inst_type&&"test_series"==t.inst_type&&(ey(2),ev("Student"))}},[U]),(0,c.useEffect)(()=>{if(!U&&!G&&eB&&localStorage.getItem("subscription_data"))try{var e;let t=JSON.parse(null==(e=localStorage)?void 0:e.getItem("subscription_data"));(null==t?void 0:t.board_id)&&(null==t?void 0:t.class_id)&&(ey(3),ek(!0),eC(!0))}catch(e){console.log("Error parsing subscription_data",e)}},[U]);let{isSignUpUserSelect:ez}=(0,_.d4)(e=>e.login);(0,c.useEffect)(()=>{window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({event:"privacy-modal",data:{isVisible:Q}}))},[Q]),(0,c.useEffect)(()=>{if(!U)switch(window.location.pathname){case"/homelead":case"/leadform":e$(1);break;case"/institutelead":e$(2);break;case"/leadformparent":e$(4)}},[window.location.pathname,U]),(0,c.useEffect)(()=>{!U&&(eM.platform?"Teacher"==eM.app_type?ev("Institute"):"Student"==eM.app_type?ev("Student"):ev("Parent"):i.ENABLED_TEACHER&&ev(D?"Institute":"Student"))},[D,U]),(0,c.useEffect)(()=>{console.log(ed,"isCitySelected"),ed&&ee(!1)},[ed]),(0,c.useEffect)(()=>{var t,n;U&&(null==(n=e.fromForm)||null==(t=n.onCityPickerOpenChange)||t.call(n,X))},[X,U]),(0,c.useEffect)(()=>{if((null==eF?void 0:eF.length)>0){let e=null==eF?void 0:eF.map(e=>(e.flag=e.flag.replace("https://cdn1.xtramarx.com/","https://cdn-gcp.extramarks.com/"),e));ex({type:P.II0,payload:e})}d.A.setApiKey(null!==i.VITE_GEOCODE_KEY&&void 0!==i.VITE_GEOCODE_KEY?i.VITE_GEOCODE_KEY:""),d.A.setLanguage("en"),console.log("event captured at signup"),"Teacher"==eM.app_type?((0,S.sendAdjustEvents)("sign_up_screen","When user lands on signup screen","Signup",eM.platform?"9z37yd":"tp1y6z"),(0,S.sendClickStream)("sign_up_screen","Button","","","When user lands on signup screen")):"Parent"==eM.app_type?((0,S.sendAdjustEvents)("sign_in_sign_up_p","When the user clicks on sign up from the sign in screen again","Signup",eM.platform?"fl0jqf":"mjxtzm"),(0,S.sendClickStream)("sign_in_sign_up_p","Button","","","When the user clicks on sign up from the sign in screen again")):((0,S.sendAdjustEvents)("sign_up_screen","When user lands on signup screen","Signup",eM.platform?"amqx2b":"mnfwhd"),(0,S.sendClickStream)("sign_up_screen","Button","","","When user lands on signup screen"));try{window.dataLayer.push({event:"sign_up_screen"}),console.log("value for datalayer---",window.dataLayer)}catch(e){}},[]),(0,c.useLayoutEffect)(()=>{(null==eF?void 0:eF.length)&&("true"===new URL(window.location.href).searchParams.get("signup")?eu(eF.find(e=>224==e.id)||eF[0]):eu(eF[0]))},[eF]);let eJ=()=>{(0,h.vI)(),ei(!0);try{"ios"==eM.platform?(0,h.BL)():navigator.geolocation.getCurrentPosition(function(e){eK(e)},e=>{eM.platform||alert(e.message),ei(!1)})}catch(e){ei(!1),console.log("location",e)}};window.receiveIOSPosition=e=>{eK(e)};let eK=async e=>{el({lat:e.coords.latitude,lng:e.coords.longitude}),d.A.fromLatLng(e.coords.latitude,e.coords.longitude).then(e=>{let t,n,s,i;console.log(e,"responseresponseresponse");let o=e.results[0].formatted_address;for(let i of e.results[0].address_components)for(let e of i.types)switch(e){case"locality":t=i.long_name;break;case"administrative_area_level_1":n=i.long_name;break;case"administrative_area_level_2":t||(t=i.long_name);break;case"country":let o=eF.find(e=>e.short_name==i.short_name);o&&eu(o),s=i.long_name}let r=e.results;if(r[0]){let e=r[0].formatted_address.split(",");i=e.length,s||(s=e[i-1]),n||(n=e[i-2]),t||(t=e[i-3])}else console.log("laddress not found");Z(t),(0,h.j)(t),console.log("city, state, country",t,n,s),console.log(o);let a={...e.results[0]};a.state=n,console.log(a),en(a),ei(!1),ef(!0),t&&e_(!0),eI({errorName:"",errorMessage:""})},e=>{console.error(e),ei(!1),ef(!1)})},eY=t=>{try{let o=JSON.parse(t.data);
1if("/package"==o.parentPath&&ey(3),o&&("/foundation"==o.parentPathUrl||"/medical"==o.parentPathUrl||"/cuet"==o.parentPathUrl||"/sat-exam-preparation"==o.parentPathUrl||"/toefl-introduction"==o.parentPathUrl||"/live-classes-schedule"==o.parentPathUrl||"/the-learning-app"==o.parentPathUrl||"/k-12"==o.parentPathUrl||"/jee-test-prep"==o.parentPathUrl||"/career-assessment-program"==o.parentPathUrl)){var n,s,i;(null==eL||null==(n=eL.extraData)?void 0:n.fromPackage)||(null==eL||null==(s=eL.extraData)?void 0:s.referral_code)?(ev((null==eL||null==(i=eL.extraData)?void 0:i.user_type.includes("student"))?"Student":"Parent"),ey(2)):ey(3)}"/online-teaching-app"==o.parentPathUrl&&ek(!1),("/extramarks-school"==o.parentPathUrl||"/star-program"==o.parentPathUrl)&&(ev("Institute"),er(1),ey(2)),"/online-teaching-app"==o.parentPathUrl&&e.fromForm&&"1"==e.fromForm.setPage&&(ev("Institute"),er(2),ey(2)),"/the-learning-app"==o.parentPathUrl&&(ev("Student"),ey(2)),eZ()}catch(e){}},eZ=()=>{if((null==eL?void 0:eL.extraData)&&(null==eL?void 0:eL.extraData.referral_code)&&(null==eL?void 0:eL.extraData.user_type))setTimeout(()=>{var e,t;(null==eL?void 0:eL.extraData)&&(null==eL?void 0:eL.extraData.referral_code)&&(null==eL?void 0:eL.extraData.user_type)&&(null==eL?void 0:eL.extraData.user_type)=="student"&&(console.log("redirect after login usertype inside if --",null==eL||null==(e=eL.extraData)?void 0:e.referral_code),ev("Student"),ey(2)),(null==eL?void 0:eL.extraData)&&(null==eL?void 0:eL.extraData.referral_code)&&(null==eL?void 0:eL.extraData.user_type)&&(null==eL?void 0:eL.extraData.user_type)=="parent"&&(console.log("redirect after login usertype inside else --",null==eL||null==(t=eL.extraData)?void 0:t.user_type),ev("Parent"),ey(2))},0);else{var e,t;(null==eL?void 0:eL.extraData)&&(null==eL?void 0:eL.extraData.fromPackage)&&(null==eL||null==(e=eL.extraData)?void 0:e.user_type)&&(null==eL?void 0:eL.extraData.user_type)=="student"&&(console.log("redirect after login usertype inside if package --",null==eL||null==(t=eL.extraData)?void 0:t.fromPackage),setTimeout(()=>{ev("Student"),ey(2)},100))}eQ()};(0,c.useEffect)(()=>{var t,n;if(G)return;window.addEventListener("message",eY);let s=window.location.pathname;return"/package"==s&&eL.extraData&&"1"==eL.extraData.setPage&&ey(2),eL.extraData&&"1"==eL.extraData.setPage&&"signup"==eL.extraData.openModal&&(ey(2),ex({type:P.Dwk,payload:{...eL,extraData:{...eL.extraData,openModal:""}}})),("/foundation"==s||"/medical"==s||"/cuet"==s||"/sat-exam-preparation"==s||"/toefl-introduction"==s||"/live-classes-schedule"==s||"/the-learning-app"==s||"/k-12"==s||"/jee-test-prep"==s||"/career-assessment-program"==s)&&ey(2),e.fromForm&&e.fromForm.openCityPage&&ey(2),"/online-teaching-app"==s&&ek(!1),("/extramarks-school"==s||"/star-program"==s)&&(ev("Institute"),er(1),ey(2)),eL.extraData&&eL.extraData.campaign_code&&"createProfileLink"==eL.url&&ey(2),console.log("redirect after login referral code",null==eL||null==(t=eL.extraData)?void 0:t.referral_code),console.log("redirect after login usertype",null==eL||null==(n=eL.extraData)?void 0:n.user_type),eZ(),()=>{window.removeEventListener("message",eY)}},[]),(0,c.useEffect)(()=>{eQ()},[localStorage.getItem("referral_data")]);let eQ=()=>{var e,t,n;if(G)return;let s=JSON.parse(localStorage.getItem("referral_data"));(null==s||null==(e=s.extraData)?void 0:e.user_type)&&(null==s||null==(t=s.extraData)?void 0:t.referral_code)&&(ev((null==s||null==(n=s.extraData)?void 0:n.user_type)=="parent"?"Parent":"Student"),ey(2))};(0,c.useEffect)(()=>{var t,n,s;G&&(ev("Student"),ey(2)),"/online-teaching-app"==window.location.pathname&&e.fromForm&&"1"==e.fromForm.setPage&&(ev("Institute"),er(2),ey(2)),(null==(s=window)||null==(n=s.parent)||null==(t=n.location)?void 0:t.pathname)==="/scholarship"?localStorage.getItem("scholarshipSignup")&&("School"==localStorage.getItem("scholarshipSignup")?(ev("Institute"),er(2),ey(2)):"Student"==localStorage.getItem("scholarshipSignup")?(ev("Student"),ey(2)):G||ey(3)):localStorage.removeItem("scholarshipSignup"),sessionStorage.getItem("openSignupFromSwitchAcc")&&(ev("Student"),ey(2)),localStorage.getItem("for_subscription")&&(ev("Student"),ey(2),localStorage.removeItem("for_subscription"))},[]);let e$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(1!=eq&&("/students"==window.location.pathname||"/students/jee-test-prep"==window.parent.location.pathname||"/students/neet-preparation-app"==window.parent.location.pathname||"/students/k-12"==window.parent.location.pathname)){ey(2),ev("Student");return}switch(ey(2),e){case 1:ev("Student");break;case 2:ev("Institute"),"smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"enquary_now"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1]?"Teaching App"==t?er(2):er(1):er(2);break;case 3:ev("Institute"),er(1);break;case 4:ev("Parent")}},eX=(0,c.useRef)();(0,c.useLayoutEffect)(()=>{eX.current&&(setTimeout(()=>{let e=null==eX?void 0:eX.current;if(!e)return;let t={event:"height__",clientHeight:e.clientHeight};eG&&window.parent.postMessage(JSON.stringify(t),"*")},100),(null==eX?void 0:eX.current)&&console.log(eX.current.clientHeight,"refrefref"))},[eX,eX.current?eX.current.clientHeight:0,eS,Y,eo,eh]);let e0=()=>{(0,S.sendClickStream)("back from signup","Button Icon"),ey(3),"Student"===eh||(0,S.sendAdjustEvents)("Home Tution"===ez?"sign_up_city_country_back_hw":"sign_up_city_country_back_in","When user clicks on back button from the enter city, country page after reaching the screen from selecting the home tuitions","Signup",eM.platform?"Home Tution"===ez?"15xohp":"an55ax":"Home Tution"===ez?"rq15l5":"s4pcn3")},e1=()=>{(0,S.sendClickStream)("term condition","Text Button"),eM.platform||g.Fr?$(!0):window.open("/terms-of-use","self")},e2=()=>{(0,S.sendClickStream)("privacy","Text Button"),eM.platform||g.Fr?$(!0):window.open("/privacy","self")};return(0,s.jsxs)("div",{className:"".concat((g.Fr||eM.platform,"jioBook")),ref:eX,children:[Q?(0,s.jsx)(K,{showModal:Q,handleClose:()=>{$(!1)}}):null,1==eS?X?(0,s.jsx)(q,{setLocationOpen:ee,countryObj:ec,getLocation:eJ,tabSelected:eh,selectedLocation:e=>{console.log(e),Z(e.city),en(e.cityData),ei(!1),ef(!0),e_(!0),"Student"===eh?((0,S.sendAdjustEvents)("sign_up_enter_city","When enters city name and selects city and lands on sign up screen","Signup",eM.platform?"3w75z8":"5pqvvm"),(0,S.sendClickStream)("sign_up_enter_city","Dropdown","","","When enters city name and selects city and lands on sign up screen")):"Parent"===eh?((0,S.sendAdjustEvents)("sign_up_enter_city_p","When enters city name and selects city and lands on entercity, country screen page","Signup",eM.platform?"t3aw1q":"3a9doc"),(0,S.sendClickStream)("sign_up_enter_city_p","Dropdown","","","When enters city name and selects city and lands on sign up screen")):"Home Tution"==ez?((0,S.sendAdjustEvents)("sign_up_enter_city_t_hw","When enters city name and selects city and lands on sign up screen","Signup",eM.platform?"5nujwq":"msre1o"),(0,S.sendClickStream)("sign_up_enter_city_t_hw","Dropdown","","","When enters city name and selects city and lands on sign up screen")):((0,S.sendAdjustEvents)("sign_up_enter_city_t_in","When enters city name and selects city and lands on sign up screen","Signup",eM.platform?"ey5c4j":"
1cb2k6t"),(0,S.sendClickStream)("sign_up_enter_city_t_in","Dropdown","","","When enters city name and selects city and lands on sign up screen")),(0,h.j)(e.city),"Student"===eh?(0,S.sendAdjustEvents)("user_city_searched","When user selects city","Signup",eM.platform?"lv3ytp":"bk0wxo"):"Parent"===eh||(0,S.sendAdjustEvents)("TL_user_city_searched","When user selects city","Signup",eM.platform?"uwnci2":"rop3m3")}}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"signupwebdetails2",children:(0,s.jsxs)("div",{className:"appBody signdetailhd ".concat(eB?"iframelogin":""),children:[(0,s.jsxs)("div",{className:"apphead",children:[(0,s.jsx)("div",{className:"backtopage",children:eM.platform&&"Teacher"==eM.app_type&&("string"==typeof F||"number"==typeof F?(0,s.jsx)("img",{loading:"lazy",src:String(F),style:{cursor:"pointer"},alt:"",onClick:e0}):F&&"function"==typeof F?c.createElement(F,{style:{cursor:"pointer"},onClick:e0}):(0,s.jsx)("img",{loading:"lazy",src:"/nx_web_assets/images/new-theme/backtopage.png",style:{cursor:"pointer"},alt:"",onClick:e0}))}),(0,s.jsx)("div",{className:"applogo",children:"string"==typeof C.A||"number"==typeof C.A?(0,s.jsx)("img",{loading:"lazy",src:String(C.A),alt:""}):C.A&&"function"==typeof C.A?c.createElement(C.A,null):(0,s.jsx)("img",{loading:"lazy",src:"/nx_web_assets/images/new-theme/applogo.svg",alt:""})})]}),(0,s.jsx)("div",{className:"justify-content-center signupbase",children:(0,s.jsx)(u.A,{style:{padding:"0"},children:(0,s.jsxs)("div",{className:"signup-parent signupparentdiv",children:[(0,s.jsx)("h1",{className:"signupmain-heading disable-text-selection",children:ep?l.A.SIGNUP_REG_INFO:eW?l.A.JOIN_KELAS_PINTAR:l.A.SIGNUP_JOIN}),(0,s.jsx)("p",{className:"signupsub-heading disable-text-selection",children:ep?l.A.SIGNUP_SUBHEAD:"Student"==eh?l.A.SIGNUP_SECOND_SUBHEAD:"Parent"==eh?l.A.SIGNUP_SECOND_SUBHEAD_PARENT:l.A.SIGNUP_SECOND_SUBHEAD_TEACHER}),ep?(0,s.jsx)("p",{className:"signupsub-heading disable-text-selection",children:l.A.SIGNUP_7FREE}):null,(0,s.jsxs)("div",{children:[(0,s.jsx)(T.A,{onTabSelect:e=>{ev(e)},isVisible:i.ENABLED_TEACHER&&!eM.platform,tabInitialValue:eh}),(0,s.jsxs)("div",{className:"input-container w-100 signup-cntryloader",id:"area",children:[eF.length>0?(0,s.jsx)(r.A,{showSearch:!0,style:{width:"100%",marginBottom:"20px"},getPopupContainer:()=>document.getElementById("area"),onFocus:()=>{(0,S.sendClickStream)("country dropdown select signup","Dropdown")},placeholder:l.A.Country,className:"w-100 ",optionFilterProp:"children",defaultValue:" ",value:null!=(w=null==ec?void 0:ec.id)?w:null==(n=eF[0])?void 0:n.id,onChange:e=>{eu(eF.find(t=>t.id==e)),Z(""),eN.current.focus(),eN.current.blur()},filterOption:(e,t)=>t.label.toLowerCase().indexOf(e.toLowerCase())>=0,children:eF&&eF.map(e=>(0,s.jsx)(r.A,{selectType:2,value:e.id,label:(0,v.v)(e.title.toLowerCase()),children:(0,s.jsx)("div",{className:"demo-option-label-item",children:(0,s.jsxs)("span",{className:"d-flex align-items-center signup_flagname",role:"img ","aria-label":(0,v.v)(e.title.toLowerCase()),children:[(0,s.jsx)("img",{loading:"lazy",alt:"flag",src:e.flag,className:"cntryflag-margin"}),(0,v.v)(e.title.toLowerCase())]})})}))}):(0,s.jsx)("img",{style:{minWidth:20,height:"20px"},tabIndex:"7",loading:"lazy",alt:"loader",src:i.GCP_IMAGE_PATH+"/stagelocal/images/netLoader.gif",className:"img-responsive signup-countryloader"}),(0,s.jsx)("label",{className:ec&&ec.id&&"filled",children:l.A.Country})]})]}),(0,s.jsx)("div",{children:(0,s.jsx)(a.A,{className:"form-float",placeholder:l.A.CITY,name:"city",type:"text",value:Y,ref:eN,onChange:e=>{eI({errorMessage:"",errorName:""}),Z(e.target.value),e_(!1),ef(!1)},onMouseDown:e=>{ee(!0),e_(!1),"Student"===eh?((0,S.sendAdjustEvents)("user_city_search_started","When user clicks on city from sign up screen","Signup",eM.platform?"u4t8rg":"3b0ctt"),(0,S.sendClickStream)("user_city_search_started","Input","","","When user clicks on city from sign up screen")):"Parent"==eh?((0,S.sendAdjustEvents)("sign_up_select_city_search_started_p","When user clicks on city field and lands on enter city screen","Signup",eM.platform?"dkqnpg":"fqcylz"),(0,S.sendClickStream)("sign_up_select_city_search_started_p","Input","","","When user clicks on city from sign up screen")):((0,S.sendAdjustEvents)("TL_user_city_search_started","When user clicks on city from sign up screen","Signup",eM.platform?"rjhdvr":"uynvxt"),"Home Tution"===ez?((0,S.sendAdjustEvents)("sign_up_select_city_search_started_t_hw","When user clicks on city field and lands on enter city screen","Signup",eM.platform?"3risrh":"1jnvnz"),(0,S.sendClickStream)("sign_up_select_city_search_started_t_hw","Input","","","When user clicks on city from sign up screen")):((0,S.sendAdjustEvents)("sign_up_select_city_search_started_t_in","When user clicks on city field and lands on enter city screen","Signup",eM.platform?"wjd0qo":"f0ss6j"),(0,S.sendClickStream)("sign_up_select_city_search_started_t_in","Input","","","When user clicks on city from sign up screen")))},error:eO,endimage:es?(0,s.jsx)("img",{loading:"lazy",tabIndex:"7",alt:"loader",src:i.GCP_IMAGE_PATH+"/stagelocal/images/netLoader.gif"}):null})}),(0,s.jsx)("div",{className:"selectcity-parentcls",onClick:()=>{eJ()},style:{border:1,borderColor:"gray",paddingLeft:"0"},children:(0,s.jsxs)("div",{className:"d-flex typecitymedia-margin",style:{marginBottom:"14px"},children:[(0,s.jsx)(o.A,{className:"align-self-center me-3 gps-iconsize",style:{color:"#f57649",width:"24px",height:"24px"}}),(0,s.jsxs)("div",{className:"flex-grow-1",children:[(0,s.jsx)("h5",{className:"media-head",children:l.A.SIGNUP_LOCATION}),(0,s.jsx)("button",{type:"button",className:"btn media-p btn-outline-light border-0",children:l.A.SIGNUP_GPS})]})]})}),"en"==eU&&ew&&(0,s.jsxs)("p",{className:"signupterms-cond text-center disable-text-selection mb20 pdt6",children:[l.A.TERMS_SIGN," ",(0,s.jsx)("button",{type:"button",className:"btn signup-termsncondition btn-outline-light ",onClick:e1,children:l.A.TC})," ",l.A.AND," ",(0,s.jsx)("button",{type:"button",className:"btn signup-privacypolicy btn-outline-light",onClick:e2,children:l.A.PRV_POL})]}),"hi"==eU&&ew&&(0,s.jsxs)("p",{className:"signupterms-cond text-center disable-text-selection mb20 pdt6",children:["साइन अप à
1¤•रके,आप हमारे"," ",(0,s.jsx)("button",{type:"button",className:"btn signup-termsncondition btn-outline-light ",onClick:e1,children:"नियमों और शर्तों"})," ","तथा"," ",(0,s.jsx)("button",{type:"button",className:"btn signup-privacypolicy btn-outline-light",onClick:e2,children:"गोपनीयता नीति"})," ","से सहमत होते हैं"]}),(0,s.jsx)("div",{className:"justify-content-center",id:"otp-verify",style:{display:"flex"},children:(0,s.jsxs)(m.A,{className:"btn emskbtn-signuppage nextbtnw w-100 justify-content-center d-flex align-items-center signup-notdisabled btncenterbox",variant:"",onClick:()=>{(0,S.sendClickStream)("signup location submit","Button"),console.log("city  ",Y," isValid ",eg),Y&&eg?(eI({errorName:"",errorMessage:""}),console.log("event captured at Signup city select"),"Student"==eh?((0,S.sendAdjustEvents)("sign_up_country_city","Clicked CTA - Next on the country/city screen - Student","Signup",eM.platform?"dh9hti":"xsr07i"),(0,S.sendClickStream)("sign_up_country_city","Button","","Netcore","Clicked CTA - Next on the country/city screen - Student"),(0,S.sendClickStream)("Country/City Screen","Button","","","Clicked CTA - Next on the country/city screen - Student")):"Parent"==eh?((0,S.sendAdjustEvents)("sign_up_country_city_p","When user has filled country, city and goes to enter details in next screen","Signup",eM.platform?"vh6ama":"81bvmw"),(0,S.sendClickStream)("sign_up_country_city_p","Button","","","Clicked CTA - Next on the country/city screen - Parent"),(0,S.sendClickStream)("Country/City Screen","Button","","Netcore","Clicked CTA - Next on the country/city screen - Parent")):((0,S.sendAdjustEvents)("TL_Next_step1","When user clicks on next after country city","Signup",eM.platform?"jzfbb2":"bqzz6d"),"Home Tution"==ez?((0,S.sendAdjustEvents)("sign_up_country_city_t_hw","Clicked CTA - Next on the country/city screen - Home Tution","Signup",eM.platform?"tolugx":"ezt9i8"),(0,S.sendClickStream)("sign_up_country_city_t_hw","Button","","","Clicked CTA - Next on the country/city screen - Home Tution"),(0,S.sendClickStream)("Country/City Screen","Button","","Netcore","Clicked CTA - Next on the country/city screen - Home Tution")):((0,S.sendAdjustEvents)("sign_up_country_city_t_in","Clicked CTA - Next on the country/city screen - Institute","Signup",eM.platform?"bktjez":"9ed9qr"),(0,S.sendClickStream)("sign_up_country_city_t_in","Button","","","Clicked CTA - Next on the country/city screen - Institute"),(0,S.sendClickStream)("Country/City Screen","Button","","Netcore","Clicked CTA - Next on the country/city screen - Institute"))),ey(2)):Y&&Y.length>0?eI({errorName:"city",errorMessage:l.A.SIGNUP_FILL_CITY_VAL_MSG}):eI({errorName:"city",errorMessage:l.A.SIGNUP_ENTER_CITY})},disabled:0==Y.length,children:[!1,l.A.SIGNUP_NEXT]})}),(0,s.jsx)("p",{className:"signup-existingaccount text-center disable-text-selection mt30",children:localStorage.getItem("redirectURL")&&"null"!==localStorage.getItem("redirectURL")&&eB?"":(0,s.jsxs)(s.Fragment,{children:[" ",l.A.SIGNUP_ALR_ACC," ",(0,s.jsx)("button",{onClick:()=>{(0,S.sendClickStream)("signup login click","Button Text"),"Student"===eh?(0,S.sendAdjustEvents)("Sign_up_sign_in","When the user clicks on sign in button from the select country city screen","Sign In",eM.platform?"d7cpt0":"4jqntg"):("Home Tuitions"===eh||"Institute"===eh)&&(0,S.sendAdjustEvents)("Sign_up_sign_in_t","When the user clicks on sign in button from the select country city screen","Sign In",eM.platform?"kdr35v":"4ir9iw"),eM.platform?eM.signup?j():"/onboard"!==window.location.pathname?ej.push("/onboard"):j():j()},type:"button",className:"btn signup-signin btn-outline-light disable-text-selection btncenterbox",children:l.A.SIGNUP_SPACE})]})})]})})})]})})}):2==eS?(0,s.jsx)(z,{countryCityData:{countryObj:ec,city:Y,cityData:et,latlng:ea},FromReferAfriend:ep,onBack:()=>{G&&eP(!0),ey(3),e_(!1)},switchLoginSignup:j,setTabSelected:ev,tabSelected:eh,instType:eo,fromForm:null!=(x=e.fromForm)?x:null,selectedType:e$,iframeSignupType:e.iframeSignupType,setIsCenterModal:null==e?void 0:e.setIsCenterModal,isAIRTSonlyInside:null==e?void 0:e.isAIRTSonlyInside,handleShowContentModal:e.handleShowContentModal,forceModalStyle:!!H||void 0,enquiryModalMode:U,enquiryStudentLeadForm:V,defaultEnquiryPageName:e.defaultEnquiryPageName,showEnquiryProductPageSelect:e.showEnquiryProductPageSelect,leadFormVariant:e.leadFormVariant,bannerData:e.bannerData}):3==eS?(0,s.jsx)(J,{selectedType:e$,switchLoginSignup:j,showStudentandParentTab:eb,selectOnlyParentTab:eE}):(0,s.jsx)(s.Fragment,{})]})}},41996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{aesGcmDecrypt:()=>ed,aesGcmEncrypt:()=>ep,default:()=>em,encryptNew:()=>e_});var s=n(95155),i=n(86213),o=n(81236),r=n(74256),a=n(52078),l=n(33885),c=n(17485),u=n(9387),d=n.n(u),_=n(12115),p=n(65117),m=n(65442),g=n(10142),f=n(96825),h=n(11467),v=n(67969),S=n(12963),y=n(69350),w=n(29173),A=n(83252),b=n(68310),k=n(99101),E=n(59124),C=n(40256),T=n(91934),P=n(74491),N=n(17200),O=n(25573),I=n(14503),x=n(56684),j=n(49237);
1n(41102),n(27631),n(75706);var M=n(48118),L=n(29296),D=n(33956),R=n(30264),W=n(88006),B=n(22321),F=n(43639),U=n(94506),V=n(24584),G=n(80293),H=n(14527),q=n(91450),z=n(5710);let J=(0,_.lazy)(()=>Promise.all([n.e(6719),n.e(4931),n.e(2815)]).then(n.bind(n,82815))),K=(0,I.A)(J),Y=(0,_.lazy)(()=>Promise.all([n.e(8487),n.e(5665)]).then(n.bind(n,25665))),Z=(0,I.A)(Y),Q=(0,_.lazy)(()=>Promise.all([n.e(6767),n.e(7062),n.e(2697),n.e(5322)]).then(n.bind(n,55322))),$=(0,I.A)(Q),X=(0,_.lazy)(()=>Promise.all([n.e(6112),n.e(1960)]).then(n.bind(n,81960))),ee=(0,I.A)(X),et=(0,R.getMobileOperatingSystem)(),en={signature:"",at:0},es=["/homelead","/leadform","/institutelead","/leadformparent"],ei={boardId:"596",classId:"44222013",course:"jee",className:"Class 12+"},eo={boardId:"606",classId:"44515067",course:"neet",className:"Class 12+"};function er(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!t||es.includes(e)}function ea(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").toLowerCase();return t.includes("neet")?eo:t.includes("jee")||t.includes("advance")||t.includes("main")?ei:null}(e);n&&(localStorage.setItem("static_rank_predictor",!0),localStorage.setItem("from_static_subscription",!0),localStorage.setItem("subscription_data",JSON.stringify({board_id:n.boardId,class_id:n.classId,package_type:"",course_id:"",coupon_code:"",isK12:"",only_pack_page_one:!0})),localStorage.setItem("short_package_path",JSON.stringify({page_path:t||window.location.pathname,airts_type:n.course,board_id:n.boardId,class_id:n.classId,class_name:n.className,isFirstPage:!0,fromStatic:!0})))}function el(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.dispatchEvent(new CustomEvent("enquiry-modal-header-visibility",{detail:{hide:e}}))}let ec="jee-rank-estimate-open";function eu(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];document.body&&(e?document.body.classList.add(ec):document.body.classList.remove(ec)),window.dispatchEvent(new CustomEvent(k.T,{detail:{hide:e}}))}let ed=async(e,t)=>{let n=Uint8Array.from(atob(t),e=>e.charCodeAt(0));if(16!==n.length&&32!==n.length)throw Error("AES key data must be 128 or 256 bits");let s=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),i=s.slice(0,12),o=s.slice(12),r=window.crypto.subtle,a={name:"AES-GCM",iv:i,tagLength:128},l=await r.importKey("raw",n,a,!1,["decrypt"]),c=await r.decrypt(a,l,o);return new TextDecoder().decode(c)},e_=(e,t)=>{let n=M.A.AES.encrypt(e,M.A.enc.Base64.parse(t),{mode:M.A.mode.ECB,padding:M.A.pad.Pkcs7});return({encrypted:n.toString(),value64:M.A.enc.Base64.stringify(n.ciphertext),ciphertext:n.ciphertext,salt:n.salt}).value64},ep=async(e,t)=>{let n=Uint8Array.from(atob(t),e=>e.charCodeAt(0));if(16!==n.length&&32!==n.length)throw Error("AES key data must be 128 or 256 bits");let s=new Uint8Array(12);window.crypto.getRandomValues(s);let i=window.crypto.subtle,o={name:"AES-GCM",iv:s,tagLength:128},r=await i.importKey("raw",n,o,!1,["encrypt"]),a=await i.encrypt(o,r,new TextEncoder().encode(e)),l=new Uint8Array(s.length+a.byteLength);return l.set(s,0),l.set(new Uint8Array(a),s.length),btoa(String.fromCharCode.apply(null,l))},em=e=>{var t,u,k,I,R,J,Y,Q,X,es,ei,eo;let ec,[em,eg]=(0,_.useState)(!!(null==e?void 0:e.isLeadFormFlow)),[ef,eh]=(0,_.useState)(!1);(0,_.useEffect)(()=>{er(window.location.pathname,null==e?void 0:e.isLeadFormFlow)&&eg(!0)},[null==e?void 0:e.isLeadFormFlow]),(0,_.useEffect)(()=>{e.isEmailCase&&eg(!0)},[e.isEmailCase]);let{forAfterLogin:ev,maskedData:eS="",maskedMobNum:ey="",forgetUser:ew,countryObj:eA="",emailMobile:eb="",username:ek,from:eE="",setCurrentPage:eC=e=>!1,isMobile:eT="",fetchUserDetails:eP=()=>!1,setForgotedUserDetails:eN,updateMobNoCase:eO,shouldUpdate:eI,isSibling:ex,shouldPromotion:ej,isUsernameGTS:eM,tabSelected:eL,bookDemoCase:eD=!1,bookDemoCallBack:eR,signusername:eW,gotomyacc:eB=!1,instituteType:eF,esc:eU,esc_data:eV,fromOlympiad:eG,isFromSmartClassPage:eH,isUserExist:eq,isClasscode:ez,isTrueCaller:eJ,
1isGoogle:eK,classCodeSignup:eY,googleSignupData:eZ,isFacebook:eQ,facebookSignupData:e$,isApple:eX,appleSignupData:e0,isAccountCreated:e1,isSignUpMsg:e2,isInstituteAdmin:e3,pageFrom:e4,pageFromName:e5,isInstitueAlreadyExist:e6,isInstituteMessage:e9,fromInistitute:e8,setMultipleAccountData:e7,classcodeDetails:te,studDetails:tt,setErrorfromClassRoom:tn,admNum:ts,setEmailMobile:ti,fromTestSeries:to,setShowVerifyOtpPopup:tr,escBasic:ta,isStudentClassCode:tl,handleCrossButton:tc,boardClassData:tu={},registerDetails:td={}}=e;console.log("gotomyacc",e);let{isSession:t_,adjustData:tp={},LoginData:tm,loader:tg,isSignUpUserSelect:tf,accList:th,auth_key:tv,maintenanceData:tS={},isLoginSuccessful:ty,loginError:tw,redirectAfterLogin:tA,fromScholarShip:tb,pkgSelectedCourseName:tk,pkgSelectedData:tE,primaryDetails:tC,secondaryDetails:tT,isGtsUrlEnabled:tP,guestuuid:tN}=(0,h.d4)(e=>e.login),{staticFrom:tO=""}=(0,h.d4)(e=>e.signup),tI=(0,H.J)(tO||(null==e?void 0:e.staticFrom)),[tx,tj]=(0,_.useState)(-1),[tM,tL]=(0,_.useState)(!1),[tD,tR]=(0,_.useState)(!1),[tW,tB]=(0,_.useState)(""),[tF,tU]=(0,_.useState)(""),[tV,tG]=(0,_.useState)(""),[tH,tq]=(0,_.useState)(t_&&!e.isEmailCase&&"test_series"==e.iframeSignupType||(null==e?void 0:e.skipLeadOtpVerification)?3:1);(0,_.useLayoutEffect)(()=>{if((null==e?void 0:e.leadFormVariant)!=="jee-rank-banner"||1===tH)return(0,b.t)()},[null==e?void 0:e.leadFormVariant,tH]);let[tz,tJ]=(0,_.useState)(!1),[tK,tY]=(0,_.useState)(!1),tZ=(0,_.useRef)(null),[tQ,t$]=(0,_.useState)({os:{version:""}}),[tX,t0]=(0,_.useState)(""),[t1,t2]=(0,_.useState)({errorName:"",errorMessage:""}),[t3,t4]=(0,_.useState)("sms"),[t5,t6]=(0,g.lT)(["emSSOWebuserKey"]),[t9,t8]=(0,_.useState)(),[t7,ne]=(0,_.useState)(null),[nt,nn]=(0,_.useState)(0),[ns,ni]=(0,_.useState)(0),[no,nr]=(0,_.useState)(0),[na,nl]=(0,_.useState)(!1),nc=(0,h.wA)(),nu=(0,v.DQ)(),{isTestSeriesFree:nd}=(0,h.d4)(e=>e.packageboardclass),{internationalizationFlag:n_,selectedCountryDropdown:np}=(0,h.d4)(e=>e.dashboard),{countryList:nm,newBoardList:ng,utmData:nf}=(0,h.d4)(e=>e.signup);(0,D.wG)();let nh=localStorage.getItem("redirectURL"),[nv,nS]=(0,_.useState)(""),[ny,nw]=(0,_.useState)(),[nA,nb]=(0,_.useState)(!1),[nk,nE]=(0,_.useState)(),[nC,nT]=(0,_.useState)(!1),[nP,nN]=(0,_.useState)(""),nO=!1;window.getOtp=e=>{tG(e.toString().padStart(6,"0"))},window.verifiedSuccess=e=>{tp.platform&&ne(e)};let nI=localStorage.getItem("isSocialMediaSignIn");nI&&"undefined"!==nI&&(ec=JSON.parse(nI)),console.log("start page is this bro...",tH),(0,_.useEffect)(()=>{"test_series"==e.iframeSignupType&&t_&&!e.isEmailCase&&("function"==typeof(null==e?void 0:e.setIsCenterModal)&&e.setIsCenterModal(!0),"function"==typeof(null==e?void 0:e.setShowLoader)&&e.setShowLoader(!1),"function"==typeof(null==e?void 0:e.handleShowContentModal)&&e.handleShowContentModal(),tq(3)),(null==e?void 0:e.iframeSignupType)=="test_series"&&t_&&(null==e?void 0:e.isEmailCase)&&e.setShowLoader(!0)},[null==e?void 0:e.iframeSignupType,t_]),(0,_.useEffect)(()=>{(null==e?void 0:e.isShowThankYouPage)&&tq(3)},[e.isShowThankYouPage]),(0,_.useEffect)(()=>{(null==e?void 0:e.skipLeadOtpVerification)&&tq(3)},[null==e?void 0:e.skipLeadOtpVerification]),(0,_.useEffect)(()=>{if("jee-rank-banner"===e.leadFormVariant&&3===tH){var t;null==e||null==(t=e.onLeadOtpVerified)||t.call(e,!0)}},[null==e?void 0:e.leadFormVariant,null==e?void 0:e.onLeadOtpVerified,tH]),(0,_.useEffect)(()=>{if((null==e?void 0:e.leadFormVariant)!=="jee-rank-banner"||1!==tH){tJ(!1),tY(!1);return}let t=window.requestAnimationFrame(()=>{tJ(!0)});return()=>{window.cancelAnimationFrame(t)}},[null==e?void 0:e.leadFormVariant,tH]),(0,_.useEffect)(()=>{if((null==e?void 0:e.leadFormVariant)==="jee-rank-banner")return eu(1!==tH),()=>{eu(!1)}},[null==e?void 0:e.leadFormVariant,tH]),(0,_.useEffect)(()=>()=>{tZ.current&&window.clearTimeout(tZ.current)},[]),(0,_.useEffect)(()=>{if(er(window.location.pathname,null==e?void 0:e.isLeadFormFlow))return el(1===tH),()=>{el(!1)}},[null==e?void 0:e.isLeadFormFlow,tH]),(0,_.useEffect)(()=>{let e=(0,N.setMixPanel)("Otp Screen","form_filled");e.text="Continue",e.form_placeholder="Continue",e.form_title="Sign up",e.persona="Student"===eL||"Parent"===eL?eL:"Home Tution"===tf?"Home Tution":"Institute",(0,N.sendClickStreamFireabaseAdjustEvents)("VerifiedOtp","Button",e,"mixpanel","Student clicks on the continue CTA and lands on the Verify OTP screen","","")},[]),(0,_.useEffect)(()=>{var e;eh((null==(e=localStorage)?void 0:e.getItem("newbanner"))==="true")},[]),(0,_.useEffect)(()=>{(eJ||eK||eQ||eX)&&e.loaderUpdate&&e.loaderUpdate(tM)},[tM]);let nx=async()=>{window.GlobalFunctions.consoleLog("from",eE,eb),(e8&&eY||1==eE&&eb&&!eY||0==eE&&ek||!0===eO||"merge"==eE&&ek||eD||"signup"==eE&&!e.request_timestamp)&&!eJ&&!eK&&!eQ&&!eX&&await nF("resend_otp"),window.GlobalFunctions.consoleLog("after"),tj(20)};(0,_.useEffect)(()=>
1{if("OTPCredential"in window){let e=new AbortController;navigator.credentials.get({otp:{transport:["sms"]},signal:e.signal}).then(t=>{console.log("adsfxghjklo;l"),tG(t.code),e.abort()}).catch(t=>{e.abort(),console.log(t)})}tb&&(null==tb?void 0:tb.user)&&((null==tb?void 0:tb.isSignUp)?(null==tb?void 0:tb.user)=="Institute"?nN("Sign-up-stemscholar-institute-btn btn-signupage emskvrfy-otpbtn d-flex align-items-center justify"):(null==tb?void 0:tb.user)=="Student"?nN("Sign-up-stemscholar-student-btn btn-signupage emskvrfy-otpbtn d-flex align-items-center justify"):(null==tb?void 0:tb.user)=="Institute_Student"&&((null==tb?void 0:tb.register)=="Student"?nN("Sign-up-stemscholar-student-btn btn-signupage emskvrfy-otpbtn d-flex align-items-center justify"):(null==tb?void 0:tb.register)=="Institute"&&nN("Sign-up-stemscholar-institute-btn btn-signupage emskvrfy-otpbtn d-flex align-items-center justify")):(null==tb?void 0:tb.user)=="Institute"?nN("Sign-in-stemscholar-institute-btn btn-signinage emskvrfy-otpbtn d-flex align-items-center justify"):(null==tb?void 0:tb.user)=="Student"?nN("Sign-in-stemscholar-student-btn btn-signinage emskvrfy-otpbtn d-flex align-items-center justify"):null==tb||tb.user)},[]),(0,_.useEffect)(()=>{(eJ||eK||eQ||eX)&&nU(e.request_timestamp)},[]),(0,_.useLayoutEffect)(()=>{"signup"==eE||t_||nc({type:r.AcY,payload:null})},[]),(0,_.useEffect)(()=>{(0,O.zf)("RESEND_OTP").then(e=>nl(e))},[]),(0,_.useEffect)(()=>{!ty&&tw?tS.isMaintenanceEnable?t2({errorName:"OTP",errorMessage:tS.message}):(tw.message_code,t2({errorName:"OTP",errorMessage:i.A.SOMETHING_WENT_WRONG})):t2({errorName:"",errorMessage:""})},[tw,tS]),(0,_.useEffect)(()=>{if(eA.phone_code&&eb){let e=/[a-z]/i.test(eb),t=ez||eU?nj(eb):eb;tB(e?t:"+".concat(eA.phone_code," ").concat(t))}else eS&&tB(eS)},[eb]);let nj=e=>{let t="number"==typeof e?e.toString().length:e.length,n=e.slice(0,t/2),s=n.slice(0,3).padEnd(n.length,"*"),i=e.slice(t/2),o=i.slice(-3).padStart(i.length,"*");return"".concat(s).concat(o)};(0,_.useEffect)(()=>{var t,n;(null==nm?void 0:nm.length)==0&&nc((0,S.JJ)());let s="test_series"==e.iframeSignupType&&e.isEmailCase,i=function(e){let t=String(e||"").trim();if(!t)return!0;let n=Date.now();return(en.signature!==t||!(n-en.at<5e3))&&(en={signature:t,at:n},!0)}("".concat(String(null!=eb?eb:""),"|").concat(String(null!=(t=null==e?void 0:e.request_timestamp)?t:""),"|").concat(String(null!=eE?eE:""),"|").concat(String(null!=(n=null==e?void 0:e.userId)?n:"")));s?i&&nx():eG||s||!i||nx(),(0,a.Wp)(o.firebaseConfig),"FORGETUSERNEW"==ew&&(tp.platform?(nU(),"Teacher"==tp.app_type?(0,N.sendAdjustEvents)("Sign_in_forgot_username_enter_mobile_Mail_t","When user enters mobile number/ mail id and lands on verify account screen","Update Username",tp.platform?"qsdcq7":"uw4vh7"):"Parent"==tp.app_type?(0,N.sendAdjustEvents)("Sign_in_forgot_username_enter_mobile_Mail_p","When user enters mobile number/ mail id and lands on verify account screen","Update Username",tp.platform?"d7xrtq":"w9jobv"):(0,N.sendAdjustEvents)("Sign_in_forgot_username_enter_mobile_Mail","When user enters mobile number/ mail id and lands on verify account screen","Update Username",tp.platform?"td7oga":"b97rcd")):(0,N.sendAdjustEvents)("Sign_in_forgot_username_enter_mobile_Mail","When user enters mobile number/ mail id and lands on verify account screen","Update Username",tp.platform?"td7oga":"b97rcd")),"Institute"==eL?"Home Tution"==tf?nS("id_btn_close_event_ht"):nS("id_btn_close_event_in"):"Student"==eL?nS("id_btn_close_event"):"Parent"==eL&&nS("id_btn_close_event_p"),console.log("id set on otp screen1 :",nv)},[]);let nM=async()=>{window.GlobalFunctions.consoleLog("+".concat(eA.phone_code,"-").concat(eb),window.appVerifier);try{let e=(0,l.xI)(),t=await (0,l.ik)(e,"+".concat(eA.phone_code,"-").concat(eb),window.appVerifier);t8(t)}catch(e){window.GlobalFunctions.consoleLog(e)}},nL=async()=>{try{tV.length<6||tV<=0?t2({errorName:"OTP",errorMessage:i.A.LOGIN_FILL_OTP_VAL_MSG}):(await t9.confirm(tV),ne(!0))}catch(e){window.GlobalFunctions.consoleLog(e),t2({errorName:"OTP",errorMessage:i.A.OTP_NotCorrect}),ne(!1)}},nD=async()=>{try{tV.length<6||tV<=0?t2({errorName:"OTP",errorMessage:i.A.LOGIN_FILL_OTP_VAL_MSG}):window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({event:"confirmOtp",data:{otp:tV}}))}catch(e){window.GlobalFunctions.consoleLog(e),t2({errorName:"OTP",errorMessage:i.A.Invalid_otp})}};(0,_.useEffect)(()=>{null!=t7&&(t7?(t2({errorName:"OTP",errorMessage:""}),nF("verify_otp")):t2({errorName:"OTP",errorMessage:i.A.OTP_NotCorrect}))},[t7]),(0,_.useEffect)(()=>{window.GlobalFunctions.consoleLog("props.request_timestamp",e.request_timestamp),tU(e.request_timestamp)},[e.request_timestamp]),(0,_.useEffect)(()=>
1{if(tx<0)return;"Student"===eL?0==tx&&((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec","When user didn't get OTP after 20 sec and waits for 20 sec before Resend OTP is available","OtpScreen",tp.platform?"hxaq8y":"nq7w8o"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec","Button","","","When user didn't get OTP after 20 sec and waits for 20 sec before Resend OTP is available"),0==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_1","when user wait's for 20 seconds and otp is reset for the first time","OtpScreen",tp.platform?"wwbeky":"5zlrpe"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_1","Button","","","when user wait's for 20 seconds and otp is reset for the first time")):1==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_2","when user wait's for 20 seconds and otp is reset for the second time","OtpScreen",tp.platform?"g417xv":"bf8lc7"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_2","Button","","","when user wait's for 20 seconds and otp is reset for the second time")):2==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_3","when user wait's for 20 seconds and otp is reset for the third time","OtpScreen",tp.platform?"afc5cp":"xjet1s"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_3","Button","","","when user wait's for 20 seconds and otp is reset for the third time")):3==nt&&((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_4","when user wait's for 20 seconds and otp is reset for the fourth time","OtpScreen",tp.platform?"x5mqqs":"6z3j3d"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_4","Button","","","when user wait's for 20 seconds and otp is reset for the fourth time"))):"Parent"==eL||"Parent"==tp.app_type?0==tx&&((0,N.sendAdjustEvents)("Sign_up_otp_20sec_p","When user waits for 20 sec and otp is resent total","OtpScreen",tp.platform?"y2atge":"m55mnr"),(0,N.sendClickStream)("Sign_up_otp_20sec_p","Button","","","When user waits for 20 sec and otp is resent total"),0==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_1_p","when user wait's for 20 seconds and otp is reset for the first time","OtpScreen",tp.platform?"8hr9s0":"hzen9d"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_1_p","Button","","","when user wait's for 20 seconds and otp is reset for the first time")):1==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_2_p","when user wait's for 20 seconds and otp is reset for the second time","OtpScreen",tp.platform?"gz3999":"99pscp"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_2_p","Button","","","when user wait's for 20 seconds and otp is reset for the second time")):2==nt?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_3_p","when user wait's for 20 seconds and otp is reset for the third time","OtpScreen",tp.platform?"u35s3h":"kpcah3"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_3_p","Button","","","when user wait's for 20 seconds and otp is reset for the third time")):3==nt&&((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_4_p","when user wait's for 20 seconds and otp is reset for the fourth time","OtpScreen",tp.platform?"cyv90e":"3tator"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_4_p","Button","","","when user wait's for 20 seconds and otp is reset for the fourth time"))):0==tx&&("Home Tution"===tf?((0,N.sendAdjustEvents)("Sign_up_otp_20sec_hw","When user waits for 20 sec and otp is resent total","Signup",tp.platform?"efg96l":"xdfk1w"),(0,N.sendClickStream)("Sign_up_otp_20sec_hw","Button","","","When user waits for 20 sec and otp is resent total")):((0,N.sendAdjustEvents)("Sign_up_otp_20sec_in","When user clicks on resend OTP for the first time","Signup",tp.platform?"ot08kp":"jmi5ed"),(0,N.sendClickStream)("Sign_up_otp_20sec_in","Button","","","When user waits for 20 sec and otp is resent total")),0==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_1_t_hw","when user wait's for 20 seconds and otp is reset for the first time","Signup",tp.platform?"6ped4l":"ic72v4"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_1_p","Button","","","when user wait's for 20 seconds and otp is reset for the first time")):((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_1_t_in","when user wait's for 20 seconds and otp is reset for the first time","Signup",tp.platform?"h2nrjg":"ybngs5"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_1_t_in","Button","","","when user wait's for 20 seconds and otp is reset for the first time")):1==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_2_t_hw","when user wait's for 20 seconds and otp is reset for the second time","Signup",tp.platform?"6zf1jf":"lp0nmw"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_2_t_hw","Button","","","when user wait's for 20 seconds and otp is reset for the second time")):((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_2_t_in","when user wait's for 20 seconds and otp is reset for the second time","Signup",tp.platform?"kcu5m8":"a72ux8"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_2_t_in","Button","","","when user wait's for 20 seconds and otp is reset for the second time")):2==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_3_t_hw","when user wait's for 20 seconds and otp is reset for the third time","Signup",tp.platform?"c3io5j":"d6e450"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_3_t_hw","Button","","","when user wait's for 20 seconds and otp is reset for the third time")):((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_3_t_in","when user wait's for 20 seconds and otp is reset for the third time","Signup",tp.platform?"e4y3cn":"jezwg7"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_3_t_in","Button","","","when user wait's for 20 seconds and otp is reset for the third time")):3==nt&&("Home Tution"===tf?((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_4_t_hw","when user wait's for 20 seconds and otp is reset for the fourth time","Signup",tp.platform?"beim5j":"xhn6sa"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_4_t_hw","Button","","","when user wait's for 20 seconds and otp is reset for the fourth time")):((0,N.sendAdjustEvents)("Sign_Up_OTP_20Sec_4_t_in","when user wait's for 20 seconds and otp is reset for the fourth time","Signup",tp.platform?"ju1eqf":"1dwrkl"),(0,N.sendClickStream)("Sign_Up_OTP_20Sec_4_t_in","Button","","","when user wait's for 20 seconds and otp is reset for the fourth time"))));let e=setInterval(()=>{tj(tx-1)},1e3);return()=>clearInterval(e)},[tx]),(0,_.useEffect)(()=>{(null==tV?void 0:tV.length)>5&&nK()},[tV]),console.log("startPage startPage startPage",tH);let nR=async(t,s,r)=>{if((null==e?void 0:e.iframeSignupType)=="test_series"&&!e.isEmailCase&&"resend_otp"==t)return;let a=1==tm.permanent_account_exists||5==tm.user_type_id||eM?"".concat(o.GtsWebsiteBaseURL).concat(5==tm.user_type_id?"/api/v1.1":"/api/v1.0","/studentappauth?action=").concat(s.action):"".concat(o.API_BASE_URL,"/api/v1.0/studentappauth?action=").concat(s.action);if("verify_otp"==t){if(eY&&(s.class_code=e.classCode),o.NEW_HASH_ALGO&&(s.enc_type=1),a=o.API_BASE_URL_MSA+"/cognito-login-service/auth/verifyOtp?v=2",eJ||eK||eQ||eX)try{let n;eJ?n=1:eK?n=2:eQ?n=3:eX&&(n=4),o.NEW_HASH_ALGO?s.social_media_registration=await ep("".concat(t,"#|#").concat(tm.em_user_id||e.userId,"#|#").concat(s.country_code,"#|#").concat(s.mobile_number,"#|#1#|#").concat(n),o.JAVA_TIMESTAMP_SALT):(console.log("social_media_registration","".concat(t,"#|#").concat(tm.em_user_id||e.userId,"#|#").concat(s.country_code,"#|#").concat(s.mobile_number,"#|#1#|#").concat(n)),s.social_media_registration=e_("".concat(t,"#|#").concat(tm.em_user_id||e.userId,"#|#").concat(s.country_code,"#|#").concat(s.mobile_number,"#|#1#|#").concat(n),o.JAVA_TIMESTAMP_SALT)),console.log(s)}catch(e){console.log(e)}}else"resend_otp"==t&&(a=o.API_BASE_URL_MSA+"/cognito-login-service/auth/resendOtp");"verify_otp"==t&&(s.delimiter_changed=+(0!=o.DELIMETER_CHANGED)),eX&&!s.email&&(null==s?void 0:s.mobile_number.includes("@"))&&(s.email=s.mobile_number,s.type="email_login_verification",s.country_code="",s.country_id="",s.mobile_number="");try{let h=await (0,A.A)({path:a,method:"POST",body:s,isFullPath:!0});if("verify_otp"==t&&"test_series"==e.iframeSignupType&&(0,N.sendClickStreamFireabaseAdjustEvents)("Extramarks_ETS_VerifyOTP_Form","","","","When the user clicks on 'Verify' with the correct OTP, a pop-up should appear with the message 'Start Practicing","","",""),"resend_otp"==t&&tL(!1),1==h.status){console.log(1212,"isFromSmartClassPage",eH);let a=em?"/"===new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname?"homepage":new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname.substring(1).replace(/-/g,"_"):"";if(console.log(1212,"isFromSmartClassPage2",eH),"verify_otp"==t){let v;if(to){tr(!1);let e={...nd};
1e.testSeriesAccess="Free",e.enrolledDetails.isOtpVerified=!0,nc((0,L._)(e)),nV(!0);return}let S=!1;if(console.log(1212,"isFromSmartClassPage3",eH),o.NEW_HASH_ALGO?(v=await ed(h.timestamp_enc,o.JAVA_TIMESTAMP_SALT),console.log(1212,"isFromSmartClassPage4",eH)):v=(0,C.kl)(h.timestamp_enc,o.JAVA_TIMESTAMP_SALT),console.log(1212,"isFromSmartClassPage4",eH),0==o.DELIMETER_CHANGED?(console.log("djfdifjid",v,eE,3==eE||4==eE&&eD?"".concat(tF||r,"-").concat(t):"".concat(t,"-").concat(tF||r,"-").concat(s.mobile_number?s.country_code+"-"+s.mobile_number:s.email)),S=v===(3==eE||4==eE&&eD?"".concat(tF||r,"-").concat(t):"".concat(t,"-").concat(tF||r,"-").concat(s.mobile_number?s.country_code+"-"+s.mobile_number:s.email))):(console.log("djfdifjid",v,eE,3==eE||4==eE&&eD?"".concat(tF||r,"#|#").concat(t):"".concat(t,"#|#").concat(tF||r,"#|#").concat(s.mobile_number?s.country_code+"#|#"+s.mobile_number:s.email)),S=v===(3==eE||4==eE&&eD?"".concat(tF||r,"#|#").concat(t):"".concat(t,"#|#").concat(tF||r,"#|#").concat(s.mobile_number?s.country_code+"#|#"+s.mobile_number:s.email))),(null==tE?void 0:tE.entity_name)=="test_series"&&(0,N.sendClickStream)("Extramarks Test Series","Button",{"Course Type":tk},"Netcore","Otp verified_Test Series","",""),console.log(1212,"isFromSmartClassPage5",eH,S),em&&(e1?((0,N.sendClickStream)("Registernow_CorrectVerify Otp_new user","Button",e5,"","Registernow_CorrectVerify Otp_new user"),"/students/jee-test-prep"==window.location.pathname&&(0,N.sendClickStream)("Registernow_CorrectVerify Otp_new user","Button","","","Registernow_CorrectVerify Otp_new user")):((0,N.sendClickStream)("Registernow_CorrectVerify Otp_Old user","Button",e5,"","Registernow_CorrectVerify Otp_Old user"),"/students/jee-test-prep"==window.location.pathname&&(0,N.sendClickStream)("Registernow_CorrectVerify Otp","Button","","","Registernow_CorrectVerify Otp"))),eH&&tq(3),nc((0,y.setAuthKey)({auth_key:h.timestamp_enc,countryObj:eA,emailMobile:eb})),console.log("otpVerified",!o.OTP_ENCRY_CHECK||h.timestamp_enc&&S,!o.OTP_ENCRY_CHECK,h.timestamp_enc,S),!o.OTP_ENCRY_CHECK||eJ||eK||eQ||eX||h.timestamp_enc&&S)if(console.log("otp--verified"),eY&&!ta)if(e8){let e={link_account_type:2,link_account_acceptance:0,loggedin_uuid:tm.uuid,link_account_details:{class_code:null==te?void 0:te.class_code,admission_number:ts}};(null==eb?void 0:eb.includes("."))||(null==eb?void 0:eb.includes("@"))?e.link_account_details.email=eb:e.link_account_details.mobile="+".concat(null==eA?void 0:eA.phone_code,"-").concat(eb);let{linkSchoolAccount:t}=await Promise.resolve().then(n.bind(n,17621)),s=await t(e);1==s.status?(1==s.status&&(null==s?void 0:s.message_code)=="LSA0173"&&eC(6),1==s.status&&(null==s?void 0:s.message_code)=="LSA0177"&&tc()):0==s.status&&("LSA0172"==s.messageCode?tn("This account belongs to another school. You cannot link accounts with different schools on one account. Please create a different account for this user."):tn(null==s?void 0:s.message),eC(5))}else eC(6);else if(e8&&ez&&!eY){let e={link_account_type:1,link_account_acceptance:0,loggedin_uuid:tm.uuid,link_account_details:{uuid:null==tt?void 0:tt.uuid,class_code:null==te?void 0:te.class_code}},{linkSchoolAccount:t}=await Promise.resolve().then(n.bind(n,17621)),s=await t(e);s&&1==s.status?["LSA0168","LSA0167","LSA0175"].some(e=>e==s.message_code)&&("LSA0168"==s.message_code||"LSA0175"==s.message_code?e7(s.mapped_classes,tt):"LSA0167"==s.message_code&&e7("")):(null==s?void 0:s.status)==0&&("LSA0174"==s.messageCode?tn("This account belongs to another school. You cannot link accounts with different schools on one account. Please create a different account for this user."):"LSA0169"==s.messageCode?tn("Account for this user has already been created. You cannot link it with your current account."):tn(null==s?void 0:s.message),eC(4))}else if("merge"==eE)ev();else if(eD)eR();else{if(em&&e6&&(null==tm?void 0:tm.user_type_id)&&1!==Number(tm.user_type_id))return void tq(3);let t={};if(tL(!0),3!=eE&&4!=eE&&(t=await (0,j.getAccountListApi)(h.timestamp_enc,nc)),3==eE||1==t.status){let n=(0,N.setMixPanel)("Otp Screen","cta_clicked");if(n.text="Verify and Proceed",n.cta_title="Verify Account",n.cta_type="Static",n.cta_class="Primary",n.service_group="explore cta",n.persona="Student"===eL||"Parent"===eL?eL:"Home Tution"===tf?"Home Tution":"Institute",(0,N.sendClickStreamFireabaseAdjustEvents)("Clicked_VerifyCTA","Button",n,"mixpanel","Student Clicks on the Verify CTA","",""),"signup"==eE){var l,u,d,_,p,m,g,f;if("Student"===eL){if(!ec){(0,c.A)(tm,"lead_id","")&&((0,N.sendAdjustEvents)("otp_verified_lead_capture"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen","OtpScreen",tp.platform?"s3au0w":"2vehja"),(0,N.sendClickStream)("otp_verified_lead_capture","Button","","","When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen")),eJ?((0,N.sendAdjustEvents)("sign_up_otp_verified_truecaller"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct with true caller","OtpScreen",tp.platform?"32kgge":"t1zjih"),(0,N.sendClickStream)("sign_up_otp_verified_truecaller","Button","","","When user enters OTP, clicks on verify, OTP is correct with true caller")):eK?((0,N.sendAdjustEvents)("sign_up_otp_verified_google"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct with google","OtpScreen",tp.platform?"cjnqmg":"azha3o"),(0,N.sendClickStream)("sign_up_otp_verified_google","Button","","","When user enters OTP, clicks on verify, OTP is correct with google")):eQ&&((0,N.sendAdjustEvents)("sign_up_otp_verified_facebook"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct with facebook","OtpScreen",tp.platform?"5357jk":"io1vi0"),(0,N.sendClickStream)("sign_up_otp_verified_facebook","Button","","","When user enters OTP, clicks on verify, OTP is correct with facebook"));let e=JSON.parse(localStorage.getItem("utmData")||"null"),t=(0,c.A)(tp,"attributionData.source","")||(0,c.A)(tp,"attributionData.network","")||(0,c.A)(nf,"utm_source","")||(null==e?void 0:e.utm_source),n=(0,c.A)(tp,"attributionData.campaign","")||(0,c.A)(nf,"utm_campaign","")||(null==e?void 0:e.utm_campaign),i=(0,c.A)(tp,"attributionData.medium","")||(0,c.A)(nf,"utm_medium","")||(null==e?void 0:e.utm_medium),o=(0,c.A)(tp,"attributionData.creative","")||(0,c.A)(nf,"utm_term","")||(null==e?void 0:e.utm_term),r=(0,c.A)(nf,"utm_content","")||(null==e?void 0:e.utm_content),m=(0,c.A)(tp,"attributionData.adgroup","")||(0,c.A)(nf,"utm_adgroup","")||(null==e?void 0:e.utm_adgroup),g={utm_source:(null==s?void 0:s.utm_source)||t||"NA",utm_campaign:(null==s?void 0:s.utm_campaign)||n||"NA",utm_medium:(null==s?void 0:s.utm_medium)||i||"NA",utm_term:(null==s?void 0:s.utm_term)||o||"NA",utm_content:(null==s?void 0:s.utm_content)||r||"NA",utm_adgroup:(null==s?void 0:s.utm_adgroup)||m||"NA"},f=null==(u=window)||null==(l=u.location)?void 0:l.pathname,h=null==f?void 0:f.split("/");"open-test"===h[1]&&h[2]&&(g.SOURCE="Youtube",g.open_test_id=h[2]),g.SOURCE||(t||n||i||o||r?g.SOURCE="Performance Ad":g.SOURCE="Organic"),(0,N.sendClickStream)("sign_up_otp_verified","Button",g,"Netcore","When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen","",null==tm?void 0:tm.uuid);let v={};if(v.registration_date=tF,v.user_id=(null==tm?void 0:tm.uuid)||"",v.is_refer=(null==tA||null==(d=tA.extraData)?void 0:d.referral_code)?"true":"false",v.login_type="signup",v.login_method=(null==te?void 0:te.class_code)?"classroomcode":(null==s?void 0:s.mobile_number)?"Phone":"Email",localStorage.setItem("userLoginMixpanel",JSON.stringify(v)),(0,N.sendClickStreamFireabaseAdjustEvents)("sign_up_otp_verified"+"".concat(a?"_"+a:""),"Button click",v,"","When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen","8g04jn","gul1i1","When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen",null==tm?void 0:tm.uuid),(3==n_||3==np)&&(0,N.sendClickStreamFireabaseAdjustEvents)("I_verifyotp","Button","","","When the user updated the correct otp and click on verify otp.","",""),null==(_=localStorage)?void 0:_.getItem("short_package_class")){let e=null==(p=localStorage)?void 0:p.getItem("short_package_class");(null==e?void 0:e.includes("flexi"))?(0,N.sendClickStream)("FI_subscription_verifyotp","Button","","","when the user submit the otp from subscription which was landed from guided learning",""):(null==e?void 0:e.includes("practice"))&&(0,N.sendClickStream)("P&T_subscription_verifyotp","Button","","","when the user submit the otp from subscription which was landed from pratice and test","")}}}else"Parent"==eL?((0,N.sendAdjustEvents)("sign_up_otp_verified_p"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen","OtpScreen",tp.platform?"kkj4na":"kovami"),(0,N.sendClickStream)("sign_up_otp_verified_p","Button","","","When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen")):((0,N.sendAdjustEvents)("Verify_OTP"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct and user lands on create profile screen","OtpScreen",tp.platform?"kt09so":"cojp1n"),"Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_otp_verified_t_hw"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct and user lands on set up classroom","Signup",tp.platform?"cecaxu":"rpmbtw"),(0,N.sendClickStream)("sign_up_otp_verified_t_hw","Button","","","When user enters OTP, clicks on verify, OTP is correct and user lands on set up classroom")):((0,N.sendAdjustEvents)("sign_up_otp_verified_t_in"+"".concat(a?"_"+a:""),"When user enters OTP, clicks on verify, OTP is correct and user lands on set up classroom","Signup",tp.platform?"yxq30j":"pukrqw"),(0,N.sendClickStream)("sign_up_otp_verified_t_in","Button","","","When user enters OTP, clicks on verify, OTP is correct and user lands on set up classroom")),(0,N.sendAdjustEvents)("TL_Signup_successful"+"".concat(a?"_"+a:""),"Signup Final step","Signup",tp.platform?"yvt0jt":"i718pe"),"Home Tution"===tf?(0,N.sendAdjustEvents)("sign_up_successful_t_hw"+"".concat(a?"_"+a:""),"When user has filled name, username, password, confirm password, mobile number/email id and clicks on 
1next and lands on successful sign up screen","Signup",tp.platform?"wwlj06":"l1xtr0"):(0,N.sendAdjustEvents)("sign_up_successful_t_in"+"".concat(a?"_"+a:""),"When user has filled name, username, password, confirm password, mobile number/email id and clicks on next and lands on successful sign up screen","Signup",tp.platform?"ndxo9n":"i5rh7m"));if("Parent"==eL)em?tq(3):nq(t,h.timestamp_enc);else if("Institute"==eL){em?tq(3):nG(t,h.timestamp_enc,"inst");let e={};e.registration_date=tF,e.user_id=(null==tm?void 0:tm.uuid)||"",e.is_refer=(null==tA||null==(m=tA.extraData)?void 0:m.referral_code)?"true":"false",e.login_type="signup",e.login_method=(null==te?void 0:te.class_code)?"classroomcode":(null==s?void 0:s.mobile_number)?"Phone":"Email",e.school=(null==t||null==(f=t.institute_detail)||null==(g=f[0])?void 0:g.name)||"",localStorage.setItem("userLoginMixpanel",JSON.stringify(e))}else if(em||(null==e?void 0:e.iframeSignupType)==="test_series")if((null==e?void 0:e.iframeSignupType)==="test_series"&&(null==e?void 0:e.selectedCourse)&&(null==e?void 0:e.selectedClass)){let t={uuid:(null==tm?void 0:tm.uuid)||"",access_token:tm.access_token||""};(null==e?void 0:e.isEmailCase)?(nW(tm,eA,tC,s),await (0,B.checkEntitySubscription)(),tq(3),setTimeout(()=>{null==e||e.setShowLoader(!1)},100)):nB(null==e?void 0:e.selectedCourse,null==e?void 0:e.selectedClass,t,tC,eb,eA).then(t=>{tq(3),t.success?(e.isEmailCase&&nW(tm,eA,tC,s),console.log("Test series APIs completed successfully")):(e.isEmailCase&&nW(tm,eA,tC,s),console.error("Test series APIs failed:",t.error))}).catch(e=>{console.error("Error in test series API handling:",e)})}else tq(3);else nq(t,h.timestamp_enc)}else 1==t.status&&!t.isMultiAcc&&(null==t?void 0:t.institute_detail.length)||5==tm.user_type_id&&4!=eE?(nc((0,y.setOTPVerified)(!0)),(0,T.cJ)(!0),eT&&(0,N.sendClickStream)("Log In","Button","","","User successfully logged in on the platform using a phone number"),nh&&"null"!==nh?(0,E.redirectTo)("",nu):nG(t,h.timestamp_enc,"inst")):"signup"==s.type?nq(t,h.timestamp_enc):"mobile_verification"==s.type||"email_login_verification"==s.type?1==eE&&nq(t,h.timestamp_enc):("forgot_password"==s.type||3==eE)&&eC(3);if("signup"!=eE){(0,N.sendClickStream)("Log In","Button",{},"Netcore","Logged in using phone number");let e=/[a-z]/i;null==e||e.test(eb);let n={};n.login_method=(null==s?void 0:s.type)=="mobile_verification"?"Phone":"Email",n.account_status=null!=t&&!!t.isTempAcc,n.registration_date=null==s?void 0:s.request_timestamp,n.classroom_code=(null==te?void 0:te.class_code)||"",n.login_type="login",localStorage.setItem("userLoginMixpanel",JSON.stringify(n))}}else tL(!1),eJ||eK||eQ||eX?nc((0,w.m)("show",i.A.SOMETHING_WENT_WRONG,!0,4e3,"QnAERROR")):t2({errorName:"OTP",errorMessage:i.A.SOMETHING_WENT_WRONG})}else eJ||eK||eQ||eX?nc((0,w.m)("show",i.A.Incorrect_Otp,!0,4e3,"warning")):t2({errorName:"OTP",errorMessage:i.A.Incorrect_Otp})}else"resend_otp"==t&&(tG(""),tU(h.request_timestamp),t0((0,c.A)(h,"data.mobile_number","")||(0,c.A)(h,"mobile_number","")))}else tL(!1),"signup"===eE&&(window.GlobalFunctions.consoleLog("event captured at otp wrong "),"/students/jee-test-prep"==window.location.pathname&&(0,N.sendClickStream)("Registernow_IncorrectVerify Otp","Button","","","Registernow_IncorrectVerify Otp"),"Student"==eL?((0,N.sendAdjustEvents)("sign_up_wrong_otp","When user enters OTP, clicks on verify but OTP is wrong","OtpScreen",tp.platform?"udz2jm":"lki7ev"),(0,N.sendClickStream)("sign_up_wrong_otp","Button","","","When user enters OTP, clicks on verify but OTP is wrong")):"Parent"==eL?((0,N.sendAdjustEvents)("sign_up_wrong_otp_p","When user enters OTP, clicks on verify but OTP is wrong","OtpScreen",tp.platform?"49fuei":"h7f2q6"),(0,N.sendClickStream)("sign_up_wrong_otp_p","Button","","","When user enters OTP, clicks on verify but OTP is wrong")):"Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_wrong_otp_t_hw","When user enters OTP, clicks on verify but OTP is wrong","Signup",tp.platform?"5dmp2k":"mkpr9h"),(0,N.sendClickStream)("sign_up_wrong_otp_t_hw","Button","","","When user enters OTP, clicks on verify but OTP is wrong")):((0,N.sendAdjustEvents)("sign_up_wrong_otp_t_in","When user enters OTP, clicks on verify but OTP is wrong","Signup",tp.platform?"7qx1a5":"uterco"),(0,N.sendClickStream)("sign_up_wrong_otp_t_in","Button","","","When user enters OTP, clicks on verify but OTP is wrong"))),5001==h.response_code?eJ||eK||eQ||eX?nc((0,w.m)("show",i.A.SOMETHING_WENT_WRONG,!0,4e3,"QnAERROR")):t2({errorName:"OTP",errorMessage:i.A.SOMETHING_WENT_WRONG}):"5022"==h.response_code?eJ||eK||eQ||eX?nc((0,w.m)("show",i.A[h.response_code],!0,4e3,"warning")):t2({errorName:"OTP",errorMessage:i.A[h.response_code]}):"5024"==h.response_code?(eJ||eK||eQ||eX?nc((0,w.m)("show",i.A.Incorrect_Otp,!0,4e3,"warning")):t2({errorName:"OTP",errorMessage:i.A.Incorrect_Otp}),(3==n_||3==np)&&(0,N.sendClickStreamFireabaseAdjustEvents)("I_incorrectverifyotp","Button","","","When the user updated the wrong otp and click on verify otp.","","")):eJ||eK||eQ||eX?nc((0,w.m)("show",h.message,!0,4e3,"QnAERROR")):t2({errorName:"OTP",errorMessage:h.message});window.GlobalFunctions.consoleLog(h)}catch(e){return"signup"===eE&&(window.GlobalFunctions.consoleLog("event captured at otp wrong "),"Student"==eL&&(0,N.sendAdjustEvents)("sign_up_wrong_otp","When user enters OTP, clicks on verify but OTP is wrong","OtpScreen",tp.platform?"udz2jm":"lki7ev")),tL(!1),window.GlobalFunctions.consoleLog(e),e}},nW=async(e,t,n,s)=>{2==e.user_type_id&&(0,N.sendClickStream)("PA_mobile_updated","Modal opening"),window.GlobalFunctions.consoleLog(t,"cckcc"),console.log("data data data data ",s);{let s=o.API_BASE_USER_MANAGEMENT_MSA+"/cognito-login-service/auth/updateUserDetails",i=o.MSA_JAVA_API_KEY,r=o.MSA_JAVA_SALT,a=n.temp_username,l=n.temp_password,c=n.gts_user_id,u=n.username,_=n.em_user_id,p=n.name,m=n.role,g={};g={action:"update_user_details",apikey:i,checksum:"",username:u,phoneNumber:"+"+t.phone_code+"-"+eb,em_user_id:_,gts_user_id:c,is_sibling:ex,name:p,otp_verified:1,role:m,temp_password:l,temp_username:a,lead_id:n.lead_id,lead_platform:n.lead_platform,isd_code:"+"+t.phone_code,country_id:t.id,city:"",state:""};let f=d();o.NEW_HASH_ALGO_PHASE2&&(g.enc_type=1,f=M.A.SHA512);let h=f(g.action+":"+g.apikey+":"+g.username+":"+r).toString();g.checksum=h;try{let t=await (0,A.A)({path:s,method:"POST",isFullPath:!0,body:g});if(200==t.status){nc((0,W.t$)(u,e.access_token,nu,tP));let t={action:"get_secondary_profile_details",apikey:o.MSA_JAVA_API_KEY,checksum:"",token:e.access_token,device_id:"",user_id:e.em_user_id,platform:1,uuid:e.uuid};
1(e.em_user_id||e.gts_user_id)&&await (0,W.y2)(t,nc,!!e.gts_user_id)}window.GlobalFunctions.consoleLog(t)}catch(e){return window.GlobalFunctions.consoleLog("mk:"+e),e}}},nB=async(t,s,i,r,a,l)=>{try{var c,u,_,p,m;console.log("Calling APIs for iframeSignupType test_series..."),console.log("Body data received:",{course_id:t,class_id:s});let{addStudentInterest:g}=await Promise.resolve().then(n.bind(n,22321));await g(t,s);let{getListInstituteAndInterest:f}=await n.e(2541).then(n.bind(n,24922)),h={uuid:null==i?void 0:i.uuid,from:"",fromDashboard:!1,fromLogin:!0,escRes:null,showNewInterest:[],escBasic:null};await f(h)(nc);let{getAllPackageList:v}=await n.e(4589).then(n.bind(n,54589)),S={boardId:t,classId:s,foundation:0,id:"180",uuid:null==i?void 0:i.uuid,entityArray:["test_series"]},y=await v(S,0,"test_series");console.log("Package list response:",y);let{callApplyCoupon:w}=await Promise.resolve().then(n.bind(n,94506)),A=d()("applycouponcode:"+(null==i?void 0:i.uuid)+":"+o.MSA_DEVELOPER_API_KEY+":"+o.MSA_DEVELOPER_SALT),b=(null==tm?void 0:tm.em_user_id
1)?null==tm?void 0:tm.em_user_id:null==tm?void 0:tm.gts_user_id,k={action:"applycouponcode",flag:"reactcouponapply",class_id:s,user_id:b||(null==tN?void 0:tN.user_id),board_id:t,voucher_code:"DJDKDDJ100",package_id:null==y||null==(c=y.package_list[0])?void 0:c.package_id,apikey:o.MSA_DEVELOPER_API_KEY,uuid:null==i?void 0:i.uuid,user_package_id:"",checksum:A},E="";try{E=await w(k,!0),console.log("Coupon apply response:",E),(null==E?void 0:E.status)==0?console.log("Coupon application failed:",(null==E?void 0:E.message)||"Invalid Coupon"):console.log("Coupon applied successfully:",E)}catch(e){console.log("Coupon API error:",e)}let C={uuid:null==tm?void 0:tm.uuid,user_role:"1",page_key:"student subscription list"};await (0,U.OS)(C).then(e=>{1==e.status&&nc((0,V.oW)(e.wallet_detail))});let{makePayment:T}=await Promise.resolve().then(n.bind(n,94506)),P=d()("makePayment:"+(null==i?void 0:i.uuid)+":"+(null==i?void 0:i.uuid)+":"+o.MSA_DEVELOPER_API_KEY+":"+o.MSA_DEVELOPER_SALT),N={action:"makePayment",purchased_by:null==i?void 0:i.uuid,purchased_for:null==i?void 0:i.uuid,access_token:null==i?void 0:i.access_token,domain_name:o.API_BASE_URL_MSA+"/cognito-login-service/auth/packages/makePayment",checksum:P,request_type:"paymentforgateway",transaction_discount:null==y||null==(u=y.package_list[0])?void 0:u.mop,transaction_amount:0,coupon_id:null==E?void 0:E.coupon_id,coupon_code:"DJDKDDJ100",apikey:o.MSA_DEVELOPER_API_KEY,renew_validity_months:"",form_data:[{name:e.name||(null==r?void 0:r.name)||"",email:e.email?a:"",mobile:"+".concat(null==l?void 0:l.phone_code,"-").concat(a),postalcode:(null==r?void 0:r.postalcode)||"",formCity:e.city||"",formState:(null==r?void 0:r.state_id)||(null==tT||null==(_=tT.user_details)?void 0:_.state_id)||"",statename:e.cityData.state||"",county_code:"+".concat((null==l?void 0:l.phone_code)||""),formCountry:(null==l?void 0:l.id)||"",formAddress:"",formStreetName:""}],package:[{package_id:null==y||null==(p=y.package_list[0])?void 0:p.package_id,package_mapping_id:null==y||null==(m=y.package_list[0])?void 0:m.package_mapping_id,syllabus_id:s,pkg_payment_type:"wallet",pkg_payment_details:"Processed",currency:"INR",board_id:t,class_id:s,is_custom:0,status:"1",ip:"",batch_id:"",user_package_id:""}],school_id:"",refresh_token:(null==tm?void 0:tm.refresh_token)||"",language_code:(null===G.ZS||void 0===G.ZS?void 0:G.ZS.language())=="en"?"01":(null===G.ZS||void 0===G.ZS?void 0:G.ZS.language())=="hi"?"02":"01"},O=await T(N);if((null==O?void 0:O.status)!=="success")return console.log("Payment failed:",O),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),{success:!1,error:O};{console.log("Payment successful, calling hitSuccessEvent"),await (0,B.checkEntitySubscription)();let e={subscription_id:null==O?void 0:O.order_id,package_id:7969,package_mapping_id:9251,entity_name:"test_series",validity:"7 days",expiry_date:new Date(Date.now()+6048e5).toISOString().split("T")[0],transaction_amount:0,transaction_discount:999,currency:"INR",purchase_date:null==O?void 0:O.purchase_date,order_id:null==O?void 0:O.order_id};return localStorage.setItem("package_purchase_event",JSON.stringify(e)),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),localStorage.removeItem("address_data"),console.log("Both APIs called successfully"),{success:!0,data:O}}}catch(e){return console.error("Error calling APIs for iframeSignupType test_series:",e),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),{success:!1,error:e}}},nF=async function(t){var n,s,i,r,a,l,c,u,_;let p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sms",g=arguments.length>2?arguments[2]:void 0;"browser"!=(0,P.Y_)()&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)&&"undefined"!=typeof chrome&&chrome&&chrome.runtime&&chrome.runtime.sendMessage(tI,{message:"deleteAll"},function(e){}),window.GlobalFunctions.consoleLog("before"),t2({errorName:"",errorMessage:""}),"resend_otp"!==t&&tL(!0);let f={action:t,apikey:o.MSA_JAVA_API_KEY,checksum:"",email:"",mobile_number:"",username:e6?"":ek||eW||("test_series"==e.iframeSignupType?null==tC?void 0:tC.username:"")||"",otp_via:m,otp_code:tV,type:"",request_timestamp:eJ||eK||eQ||eX?"truecaller":null!=(r=tF||g)?r:"",country_code:eA.phone_code&&1==eA.is_otp_service?eA.phone_code:"",country_id:eA.id&&1==eA.is_otp_service?eA.id:"",device_id:null!=(a=tp.device_id)?a:"",source:null!=(l=tp.platform)?l:"website",operating_system_version:tQ.os.version,app_version:null!=(c=tp.app_version)?c:"",app_name:"Student"==eL||"Parent"==eL?"Student_App":"Teacher App",reg_id:tp.fcmToken?tp.fcmToken:"",platform:tm.gts_user_id&&tm.em_user_id||tm.em_user_id?1:tm.gts_user_id?2:1};if("merge"==eE&&(f.platform=eM?2:1),eM&&(f.platform=2),eT&&(f.mobile_number=eb),(0==eA.is_otp_service||!1===eT)&&(f.email=eb),tp&&tp.app_hash&&(f.app_hash=tp.app_hash),1==eE?f.type=eT?"mobile_verification":"email_login_verification":3==eE?f.type="forgot_password":f.type="signup",tm.permanent_account_detail){if(/[a-z]/i.test(tm.permanent_account_detail))f.email=tm.permanent_account_detail;else if(f.mobile_number=tm.permanent_account_detail.replace(tm.isd_code,""),tm.isd_code?f.country_code=tm.isd_code.replace("+",""):f.country_code="91",0!=nm.length){let e=nm.filter(e=>e.phone_code==tm.isd_code);0!=e.length&&(f.country_id=e[0].id)}}eG&&(f.mobile_number=nk);let h=JSON.parse(localStorage.getItem("referral_data",""));console.log("referral code verifyotp on by local storage",h),console.log("referral code verifyotp",null==tA||null==(n=tA.extraData)?void 0:n.referral_code),((null==tA||null==(s=tA.extraData)?void 0:s.referral_code)||(null==h||null==(i=h.extraData)?void 0:i.referral_code))&&(f.referrer_code=(null==tA||null==(u=tA.extraData)?void 0:u.referral_code)||(null==h||null==(_=h.extraData)?void 0:_.referral_code)),localStorage.removeItem("referral_data");let v=o.MSA_JAVA_SALT,S=d();o.NEW_HASH_ALGO&&"verify_otp"==t&&(f.enc_type=1,S=M.A.SHA512);let y=d();o.NEW_HASH_ALGO_PHASE3&&"resend_otp"==t?("enc_type"in f||(f.enc_type=1),y=M.A.SHA512):delete f.enc_type,console.log("checksum",d()(f.action+":"+f.username+":"+f.apikey+":"+v),f.action+":"+f.username+":"+f.apikey+":"+v),"resend_otp"==t&&(p=y(f.action+":"+f.username+":"+f.mobile_number+":"+f.email+":"+f.apikey+":"+v).toString()),p="verify_otp"==t?S(f.action+":"+f.username+":"+f.mobile_number+":"+f.email+":"+f.apikey+":"+v).toString():y(f.action+":"+f.username+":"+f.mobile_number+":"+f.email+":"+f.apikey+":"+v).toString(),f.checksum=p,eT&&!t7?(nt<3||"verify_otp"==t&&3==nt||"sms"!=m?await nR(t,f,g):"verify_otp"==t?tp.platform?nD():nL():(tp.platform?window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({event:"sendOtp",data:{mobile:"+".concat(eA.phone_code,"-").concat(eb)}})):nM(),tL(!1)),"resend_otp"==t&&("sms"==m?nn(e=>e+1):"whatsapp"==m?ni(e=>e+1):nr(e=>
1e+1),"Student"===eL?0==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_1","When user clicks on resend OTP for the first time","OtpScreen",tp.platform?"u8ny61":"gwnp93"),(0,N.sendClickStream)("sign_up_resend_otp_1","Button","","","When user clicks on resend OTP for the first time")):1==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_2","When user clicks on resend OTP for the second time","OtpScreen",tp.platform?"94l69t":"xige2u"),(0,N.sendClickStream)("sign_up_resend_otp_2","Button","","","When user clicks on resend OTP for the second time")):2==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_3","When user clicks on resend OTP for the third time","OtpScreen",tp.platform?"nix59h":"k3vt25"),(0,N.sendClickStream)("sign_up_resend_otp_3","Button","","","When user clicks on resend OTP for the third time")):3==nt&&((0,N.sendAdjustEvents)("sign_up_resend_otp_4","When user clicks on resend OTP for the fourth time","OtpScreen",tp.platform?"s96pu8":"w7oy1i"),(0,N.sendClickStream)("sign_up_resend_otp_4","Button","","","When user clicks on resend OTP for the fourth time")):"Parent"==eL||"Parent"==tp.app_type?"sms"==m?0==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_1_p","When user clicks on resend OTP for the first time via message","OtpScreen",tp.platform?"nu8cbn":"2g1b6v"),(0,N.sendClickStream)("sign_up_resend_otp_1_p","Button","","","When user clicks on resend OTP for the first time via message")):1==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_2_p","When user clicks on resend OTP for the second time via message","OtpScreen",tp.platform?"86wfeq":"8lya9x"),(0,N.sendClickStream)("sign_up_resend_otp_2_p","Button","","","When user clicks on resend OTP for the second time via message")):2==nt?((0,N.sendAdjustEvents)("sign_up_resend_otp_3_p","When user clicks on resend OTP for the third time via message","OtpScreen",tp.platform?"jncrch":"gtl8dc"),(0,N.sendClickStream)("sign_up_resend_otp_3_p","Button","","","When user clicks on resend OTP for the third time via message")):3==nt&&((0,N.sendAdjustEvents)("sign_up_resend_otp_4_p","When user clicks on resend OTP for the fourth time via message","OtpScreen",tp.platform?"igihc2":"j378p2"),(0,N.sendClickStream)("sign_up_resend_otp_4_p","Button","","","When user clicks on resend OTP for the fourth time via message")):"whatsapp"==m?0==ns?((0,N.sendAdjustEvents)("sign_up_resend_whatsapp_1_otp_p","when user requests otp for the first time via whatsapp","OtpScreen",tp.platform?"25dvb4":"crqwnm"),(0,N.sendClickStream)("sign_up_resend_whatsapp_1_otp_p","Button","","","when user requests otp for the first time via whatsapp")):1==ns?((0,N.sendAdjustEvents)("sign_up_resend_whatsapp_2_otp_p","when user requests otp for the second time via whatsapp","OtpScreen",tp.platform?"91sgsy":"bhb9nq"),(0,N.sendClickStream)("sign_up_resend_whatsapp_2_otp_p","Button","","","when user requests otp for the second time via whatsapp")):2==ns?((0,N.sendAdjustEvents)("sign_up_resend_whatsapp_3_otp_p","when user requests otp for the third time via whatsapp","OtpScreen",tp.platform?"bbf8vt":"wju3kv"),(0,N.sendClickStream)("sign_up_resend_whatsapp_3_otp_p","Button","","","when user requests otp for the third time via whatsapp")):3==ns&&((0,N.sendAdjustEvents)("sign_up_resend_whatsapp_4_otp_p","when user requests otp for the fourth time via whatsapp","OtpScreen",tp.platform?"9cskw6":"up89sh"),(0,N.sendClickStream)("sign_up_resend_whatsapp_4_otp_p","Button","","","when user requests otp for the fourth time via whatsapp")):0==no?((0,N.sendAdjustEvents)("sign_up_resend_call_1_otp_p","when user requests otp for the first time via call","OtpScreen",tp.platform?"ti4oj4":"7eihzo"),(0,N.sendClickStream)("sign_up_resend_call_1_otp_p","Button","","","when user requests otp for the first time via call")):1==no?((0,N.sendAdjustEvents)("sign_up_resend_call_2_otp_p","when user requests otp for the second time via call","OtpScreen",tp.platform?"s8lvkk":"qa6bql"),(0,N.sendClickStream)("sign_up_resend_call_2_otp_p","Button","","","when user requests otp for the second time via call")):2==no?((0,N.sendAdjustEvents)("sign_up_resend_call_3_otp_p","when user requests otp for the fourth time via call","OtpScreen",tp.platform?"t
1sirme":"7bvm9x"),(0,N.sendClickStream)("sign_up_resend_call_3_otp_p","Button","","","when user requests otp for the third time via call")):3==no&&((0,N.sendAdjustEvents)("sign_up_resend_call_4_otp_p","when user requests otp for the fourth time via call","OtpScreen",tp.platform?"3juijh":"ghmmhj"),(0,N.sendClickStream)("sign_up_resend_call_4_otp_p","Button","","","when user requests otp for the fourth time via call")):0==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_resend_otp_1_t_hw","When user clicks on resend OTP for the first time","Signup",tp.platform?"rv0s2l":"15x0nd"),(0,N.sendClickStream)("sign_up_resend_otp_1_t_hw","Button","","","When user clicks on resend OTP for the first time")):((0,N.sendAdjustEvents)("sign_up_resend_otp_1_t_in","When user clicks on resend OTP for the first time","Signup",tp.platform?"7cjugu":"9gb6ra"),(0,N.sendClickStream)("sign_up_resend_otp_1_t_in","Button","","","When user clicks on resend OTP for the first time")):1==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_resend_otp_2_t_hw","When user clicks on resend OTP for the second time","Signup",tp.platform?"41s02z":"wus1f1"),(0,N.sendClickStream)("sign_up_resend_otp_2_t_hw","Button","","","When user clicks on resend OTP for the second time")):((0,N.sendAdjustEvents)("sign_up_resend_otp_2_t_in","When user clicks on resend OTP for the second time","Signup",tp.platform?"vdxml0":"ekrhnm"),(0,N.sendClickStream)("sign_up_resend_otp_2_t_in","Button","","","When user clicks on resend OTP for the second time")):2==nt?"Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_resend_otp_3_t_hw","When user clicks on resend OTP for the third time","Signup",tp.platform?"bwvds6":"wy296h"),(0,N.sendClickStream)("sign_up_resend_otp_3_t_hw","Button","","","When user clicks on resend OTP for the third time")):((0,N.sendAdjustEvents)("sign_up_resend_otp_3_t_in","When user clicks on resend OTP for the third time","Signup",tp.platform?"uc54vt":"7ccvt8"),(0,N.sendClickStream)("sign_up_resend_otp_3_t_in","Button","","","When user clicks on resend OTP for the third time")):3==nt&&("Home Tution"===tf?((0,N.sendAdjustEvents)("sign_up_resend_otp_4_t_hw","When user clicks on resend OTP for the fourth time","Signup",tp.platform?"93bzuf":"nycgbj"),(0,N.sendClickStream)("sign_up_resend_otp_4_t_hw","Button","","","When user clicks on resend OTP for the fourth time")):((0,N.sendAdjustEvents)("sign_up_resend_otp_4_t_in","When user clicks on resend OTP for the fourth time","Signup",tp.platform?"pyi49q":"g26yol"),(0,N.sendClickStream)("sign_up_resend_otp_4_t_in","Button","","","When user clicks on resend OTP for the fourth time"))))):(t7&&(f.otp_verified_firebase="1"),await nR(t,f))},nU=e=>{if(nF("verify_otp",t3,e),tl){let e=(0,N.setMixPanel)("Otp Screen","cta_clicked");e.text="Enter the Otp",e.cta_title="Verify Account",e.cta_type="Static",e.cta_class="primary",e.service_group="explore cta",e.persona="Student"===eL||"Parent"===eL?eL:"Home Tution"===tf?"Home Tution":"Institute",(0,N.sendClickStreamFireabaseAdjustEvents)("Clicked_VerifyCTA","Dropdown",e,"mixpanel","Student Clicks on the Verify CTA")}if("Student"==eL)(0,N.sendClickStream)("OTP Screen_New","Button","","Netcore","Entered OTP and clicked on verify OTP (after clicking on Student)");else if("Parent"==eL)(0,N.sendClickStream)("OTP Screen_New","Button","","Netcore","Entered OTP and clicked on verify OTP (after clicking on Parent)");else if("Home Tution"===tf)(0,N.sendClickStream)("OTP Screen_New","Button","","Netcore","Entered OTP and clicked on verify OTP (after clicking on Home Tution)");else{if("true"==localStorage.getItem("deeplinkClassroomCode")&&tl){var t;let e={};e.School_Name=null==te?void 0:te.school_name,e.Class_Code=null==te?void 0:te.class_code;let n=null==ng?void 0:ng.filter(e=>(null==e?void 0:e.board_id)==(null==te?void 0:te.board_id));e.Board=null==n||null==(t=n[0])?void 0:t.name,(0,N.sendClickStream)("OnboardingSchool_Studentsed","Button",e,"Netcore","Student Clicks on the Verify CTA"),(0,N.sendClickStreamFireabaseAdjustEvents)("CC_Verify","button","","","Student Clicks on the Verify CTA","fjdbet","v12n34"),(0,N.sendClickStreamFireabaseAdjustEvents)("CC_ContinueDashboard","button","","","Student clicks on the continue CTA and lands on the LA Dashboard","xuducy","ok10co"),localStorage.removeItem("deeplinkClassroomCode")}if("true"==localStorage.getItem("deeplinkClassroomCode")&&!tl){let e={};e.School_Name=null==te?void 0:te.school_name,(0,N.sendClickStream)("School 
1code TA  - Onboarding","Button",e,"Netcore","Clicked_ContinueCTA_Dashboard"),(0,N.sendClickStream)("School code TA  - Onboarding","Button",e,"Netcore","Clicked_VerifyCTA"),(0,N.sendClickStreamFireabaseAdjustEvents)("SC_ContinueDashboard","button","","","Teacher clicks on the continue CTA and lands on the Teacher dashboard","ehnxng","8zpbif"),(0,N.sendClickStreamFireabaseAdjustEvents)("SC_Verify","button","","","Teacher Clicks on the Verify CTA","w5ad2s","6adlat")}(0,N.sendClickStream)("OTP Screen_New","Button","","Netcore","Entered OTP and clicked on verify OTP (after clicking on Home Institute)")}},nV=async e=>{let t=tm.uuid,n={action:"update_secondary_data",user_id:tm.gts_user_id,uuid:t,allow_send_promotion:1,apikey:o.MSA_JAVA_API_KEY,checksum:"",platform:tm.gts_user_id?2:1};if(e){var s,i;n.aadhar_no=null==nd||null==(s=nd.enrolledDetails)?void 0:s.aadhar_no,n.admit_no=null==nd||null==(i=nd.enrolledDetails)?void 0:i.admit_no,n.user_id=tm.gts_user_id||tm.em_user_id}let r=o.MSA_JAVA_SALT,a=d();o.NEW_HASH_ALGO_PHASE3&&(n.enc_type=1,a=M.A.SHA512);let l=a(n.action+":"+n.user_id+":"+n.uuid+":"+n.apikey+":"+r).toString();n.checksum=l,n.nemr_version=o.SYLLABUS_V2_ENABLED?2:1;let c="api/v1.0/studentappauth?action=update_secondary_data",u=!1;c=o.API_BASE_URL_MSA+"/cognito-login-service/auth/updateSecondaryData",u=!0,tL(!0);try{let e=await (0,A.A)({path:c,method:"POST",isFullPath:u,body:n});tL(!1),1==e.status?eP():t2({errorName:"OTP",errorMessage:e.message})}catch(e){return tL(!1),window.GlobalFunctions.consoleLog("mk:"+e),e}};(0,_.useEffect)(()=>{if(nC){let e=setTimeout(()=>{nT(!1)},5e3);return()=>clearTimeout(e)}},[nC]);let nG=(t,n,s)=>{var i,r,a;let{student_detail:l,teacher_detail:c,institute_detail:u,parent_detail:_}=t,p=[];if("signup"!=eE||"inst"==s||nO)p="inst"==s?(null==u?void 0:u.length)?u:null==c?void 0:c.filter(e=>5==e.user_type_id&&2==e.institute_type):"browser"!=(0,P.Y_)()?(null==c?void 0:c.length)&&c:(null==l?void 0:l.length)&&l||c.length&&c||u.length&&u||_.length&&_;else{let e=[];l.length>0&&(e=[...e,...l]),_.length>0&&(e=[...e,..._]);let t=e.find(e=>e.username==eW);t&&(p=[t])}let m=(null==p?void 0:p.length)&&(null==(i=p[0].profile_list)?void 0:i.length)&&p[0].profile_list||[],g=(null==p?void 0:p.length)?p[0].username:"",f=m.find(e=>1==e.is_active_learning_profile),h=m.find(e=>7!=e.account_status&&9!=e.account_status),v=(null==p?void 0:p[0])?{...p[0],profile_list:p[0].profile_list?[...p[0].profile_list]:[]}:{};try{nc((0,y.setActUser)(v))}catch(e){console.warn("OtpScreen hitloginflow setActUser:",e)}console.log("details",p);
1try{nc((0,y.setActProfBfrLogin)(f||h||{}))}catch(e){console.warn("OtpScreen hitloginflow setActProfBfrLogin:",e)}em&&nc((0,y.setActProfBfrLogin)(m.find(e=>e.learning_profile_id==nH().id))),console.log("OtpScreen - Props received:",{selectedCourse:e.selectedCourse,selectedClass:e.selectedClass,iframeSignupType:e.iframeSignupType});let S={action:"cognito_login",apikey:o.MSA_JAVA_API_KEY,checksum:"",login_details:{username:g,password:"",app_name:eU?"esc_plus":(0,j._d)(),acess_id:"",app_version:null!=(r=tp.app_version)?r:"",gcm_key:null!=(a=tp.device_id)?a:"",email_address:"",latitude:tp.latitude||"",longitude:tp.longitude||"",operating_system_version:tQ.os.version,source:tp.platform?tp.platform:"website",auth_key:n,delimiter_changed:+(0!=o.DELIMETER_CHANGED)},course_id:e.selectedCourse,class_id:e.selectedClass};eU&&(S.esc_data=eV),eJ&&(S.login_details.social_media_registration="1"),eK&&(S.login_details.social_media_registration="2",S.login_details.social_media_id=null==eZ?void 0:eZ.social_media_id),eQ&&(S.login_details.social_media_registration="3",S.login_details.social_media_id=null==e$?void 0:e$.social_media_id),eX&&(S.login_details.social_media_registration="4",S.login_details.social_media_id=null==e0?void 0:e0.social_media_id);let w=d();o.NEW_HASH_ALGO&&(w=M.A.SHA512,S.enc_type=1);let A=w(S.action+":"+S.apikey+":"+S.login_details.username+":"+S.login_details.password+":"+o.MSA_JAVA_SALT).toString();S.checksum=A,nc((0,y.userLoginFlow)(S,eC,nu,g,t5,t6,()=>{},()=>{},"","","","",ta,e.iframeSignupType,null==e?void 0:e.selectedCourse,null==e?void 0:e.selectedClass,em?tL:()=>{}))},nH=()=>{let e={};switch(e4){case"K-12":default:e.code="EMK12LA1",e.id="1";break;case"Jee Learning App":e.code="EMJEELA2",e.id="9";break;case"Neet Learning App":e.code="EMNEETLA3",e.id="10"}return e},nq=async(e,t)=>{if(nc({type:r.Nbm,payload:"signup"==eE}),"signup"==eE)eB?em?((e,t)=>{var n,s,i,o;if((null==e||null==(n=e.student_detail)?void 0:n.length)==1){let n=nH();(null==e||null==(i=e.student_detail[0])||null==(s=i.profile_list)?void 0:s.find(e=>(null==e?void 0:e.learning_profile_id)==(null==n?void 0:n.id)))||(null==n||n.code,null==n||n.id),nO=!0,nG(e,t,!1)}else if(t_){let n=null==e?void 0:e.student_detail.find(e=>(null==e?void 0:e.uuid)==(null==tm?void 0:tm.uuid));if(n){let s=nH();if(null==n||null==(o=n.profile_list)?void 0:o.find(e=>(null==e?void 0:e.learning_profile_id)==(null==s?void 0:s.id)))nO=!0,nG(e,t,!1);else{let e={from:"MobileLinks",campaign_code:null==s?void 0:s.code,id:null==s?void 0:s.id};nc((0,y.RedirectUrl)("createProfileLink",!1,!1,e,!1)),(0,E.redirectTo)("/create-profile",nu,{campaign_code:null==s?void 0:s.code})}}}else(0,E.redirectTo)("/my-accounts?from=1",nu)})(e,t):(0,E.redirectTo)("/my-accounts?from=1",nu):nG(e,t,eE);else if(e.isTempAcc){let{student_detail:n}=e;1==n.length?(tL(!0),"User converted successfully"==(await (0,j.convertTemptoPermAcc)(n[0].uuid,n[0].platform)).message?e.isMultiAcc&&"browser"==(0,P.Y_)()?(0,E.redirectTo)("/my-accounts",nu):nG(e,t):t2({errorName:"OTP",errorMessage:i.A.SOMETHING_WENT_WRONG})):"browser"==(0,P.Y_)()?(0,E.redirectTo)("/my-accounts",nu):nG(e,t)}else e.isMultiAcc&&"browser"==(0,P.Y_)()?(0,E.redirectTo)("/my-accounts",nu):nG(e,t)};(0,_.useEffect)(()=>{(null==t1?void 0:t1.errorName)=="OTP"&&(em&&"smart_class_banner"==window.location.href.split("?")[1]?(0,N.sendClickStream)("ESC_Registernow_IncorrectVerify Otp","Screen"):em&&"great_india_school"==window.location.href.split("?")[1]?(0,N.sendClickStream)("GSI_Registernow_IncorrectVerify Otp","Button"):em&&"assessment_center"==window.location.href.split("?")[1]&&(0,N.sendClickStream)("AC_Registernow_IncorrectVerify Otp Otp","Button"),(0,N.sendClickStream)("Registernow_IncorrectVerify_Otp","Button","",e5,"Registernow_IncorrectVerify_Otp"))},[null==t1?void 0:t1.errorName]);let nz=()=>{var e,t,n,s,i,o,r,a,l,c,u,d;return(null==(n=window)||null==(t=n.location)||null==(e=t.pathname)?void 0:e.includes("students/jee-test-prep"))?"jee-test-prep":(null==(o=window)||null==(i=o.location)||null==(s=i.pathname)?void 0:s.includes("students/medical"))||(null==(l=window)||null==(a=l.location)||null==(r=a.pathname)?void 0:r.includes("students/neet-preparation-app"))?"medical":(null==(d=window)||null==(u=d.location)||null==(c=u.pathname)?!!void 0:!!c.includes("students/k-12"))&&"k-12"},nJ=(0,_.useRef)();function nK(){var e,t;e8&&(0,N.sendClickStreamFireabaseAdjustEvents)("Institute_CC_Verify","button","","","Student Clicks on verify and Proceed","wpan3o","edjxu7");let n=null==(e=localStorage)?void 0:e.getItem("event_profile_id");null==(t=localStorage)||t.removeItem("event_profile_id"),(null==tE?void 0:tE.entity_name)=="test_series"&&(0,N.sendClickStream)("Extramarks Test Series","Button",{"Course Type":tk},"Netcore","Clicked on Verify otp_Test Series","",""),eG?((0,N.sendAdjustEvents)("Olmpiad_VerifyOTP","Verifies OTP to register","Button",tp.platform?"bhoip5":"3hyoui"),(0,N.sendClickStream)("Olmpiad_VerifyOTP","Verify Button","","","Verifies OTP to register")):em&&"medical"==window.location.href.split("?")[2]||"12"==n?((0,N.sendClickStreamFireabaseAdjustEvents)("otp_verified_jee_neet","Input Field","","","otp_verified_jee_neet","qb7l22","rqygok"),(0,N.sendClickStreamFireabaseAdjustEvents)("otp_verified_neet","Input Field","","","otp_verified_neet","e1qptd","ud6t75")):em&&"jee-test-prep"==window.location.href.split("?")[2]||"11"==n?((0,N.sendClickStreamFireabaseAdjustEvents)("otp_verified_jee_neet","Input Field","","","otp_verified_jee_neet","qb7l22","rqygok"),(0,N.sendClickStreamFireabaseAdjustEvents)("otp_verified_jee","Input Field","","","otp_verified_jee","pwtock","kx1hkx")):(0,N.sendClickStream)("Submit click","Button"),localStorage.removeItem("productOverlay"),localStorage.removeItem("overlay"),nU(),(0,N.sendMixPanelEvent)("","Verfify the OTP and Proceed","Verfify the OTP and Proceed",[{
1key:"text",value:"Verify and Proceed"},{key:"cta_title",value:"Enter OTP"},{key:"cta_type",value:"static"},{key:"cta_class",value:"primary"},{key:"service_group",value:" B2B Solution"}],"cta_clicked","Sign Up Details")}(0,_.useLayoutEffect)(()=>{nJ.current&&(setTimeout(()=>{let e=null==nJ?void 0:nJ.current;if(!e)return;let t={event:"height__",clientHeight:e.clientHeight};em&&window.parent.postMessage(JSON.stringify(t),"*")},100),(null==nJ?void 0:nJ.current)&&console.log(nJ.current.clientHeight,"refrefref"))},[nJ,nJ.current?nJ.current.clientHeight:0,tH,tx]),window.location.pathname;let nY=(null==e?void 0:e.leadFormVariant)==="jee-rank-banner";return(0,s.jsx)("div",{className:"NewOtpScreen rankBannerOtpModalRoot ".concat((null==e?void 0:e.examName)=="NEET"?"NeetRankBannerOtpModal":""),ref:nJ,children:1==tH?(0,s.jsx)("div",{className:"rankBannerOtpModalOverlay".concat(tz?" is-visible":"").concat(tK?" is-closing":""),children:(0,s.jsx)("div",{className:"rankBannerOtpModalCard".concat(tz?" is-visible":"").concat(tK?" is-closing":""),children:(0,s.jsxs)("div",{className:"otpvrfy-parentcls d-flex flex-column",id:"otp-verify",children:[nY?(0,s.jsx)("div",{className:"rankBannerOtpModalHeader",children:(0,s.jsx)("button",{type:"button",className:"rankBannerOtpModalClose",onClick:()=>{nY&&!tK&&(tJ(!1),tY(!0),tZ.current=window.setTimeout(()=>{var t,n;null==e||null==(t=e.setCurrentPage)||t.call(e,1),null==e||null==(n=e.onLeadOtpVerified)||n.call(e,!1),tY(!1),tZ.current=null},240))},"aria-label":"Close OTP modal",children:(0,s.jsx)("img",{src:"/nx_web_assets/images/new-theme/cancel.svg",alt:"cancel"})})}):null,(0,s.jsx)("input",{id:"recaptcha-container",type:"hodden",style:{display:"none"}}),(0,s.jsx)(f.A,{onChange:e=>{t$(e)}}),to||"em-elevate"===eE||"pep-talk"===eE?null:(0,s.jsx)("h2",{className:"almostdonesubtitme otpvrfy-mainheading newotphtm",children:eG?i.A.PLEASE_UPDATE_YOUR_MOBILE_NUMBER:i.A.Ver_Acc}),"em-elevate"===eE||"pep-talk"===eE?(0,s.jsxs)("h2",{className:"almostdonesubtitme otpvrfy-mainheading newotphtm verifyotp-elevate 1",children:["Hi ".concat(e.name,", Please enter OTP sent on "),(0,s.jsx)("span",{style:{fontWeight:600},children:tW})]}):to?(0,s.jsx)("h2",{className:"almostdonesubtitme otpvrfy-mainheading newotphtm verifyotp-elevate 2",children:i.A.Ver_Acc}):null,eG&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"number",class:"form-control",id:"enter_mobilenumber",placeholder:i.A.ENTER_MOBILE_NUMBER,value:nk,onChange:e=>(e=>{e.target.value.length<=10&&nE(e.target.value)})(e)}),(0,s.jsx)("div",{class:nA?"get-otpclick":"get-Otp",onClick:()=>{nk.length>=0&&((0,N.sendAdjustEvents)("Olympiad_GetOTP","Clicks Get OTP when asked to enter mobile number","OtpScreen",tp.platform?"97cxrl":"jvicw8"),(0,N.sendClickStream)("Olympiad_GetOTP","Get Otp Button","","","Clicks Get OTP when asked to enter mobile number"),tB(nk),nb(!0),nx())},children:i.A.GET_OTP})]}),(!eG||eG&&nA)&&(0,s.jsxs)(s.Fragment,{children:["em-elevate"!==eE&&"pep-talk"!==eE&&(0,s.jsxs)("p",{className:"otpvrfy-subheading w-100 fordynamic",id:"otp_text",children:[to?"Hi ".concat(e.name,", Please enter the OTP sent on"):i.A.ENTER_OTP_RANK_BANNER," ",(0,s.jsx)("span",{id:"otp-mobile",style:{whiteSpace:"nowrap"},children:tW})]}),(0,s.jsxs)("p",{className:"otpvrfy-subheading w-100 forstaticweb",style:{display:"none"},id:"otp_text",children:["Hi ",e.name,", ",i.A.ENTER_OTP_STATIC," ",(0,s.jsxs)("span",{className:(null==(t=localStorage)?void 0:t.getItem("newbanner"))=="true"?"handleAlignmnent":"",id:"otp-mobile",style:{whiteSpace:"nowrap"},children:[tW,"\xa0",(0,s.jsx)("img",{src:"string"==typeof x.A?x.A:(null!=(ei=null===x.A||void 0===x.A?void 0:x.A.default)?ei:null===x.A||void 0===x.A?void 0:x.A.src)||"/nx_web_assets/images/new-theme/suggest.svg",style:{cursor:"pointer",width:15,marginBottom:3},onClick:()=>{"/verify-otp"==window.location.pathname?nu.goBack():eC((()=>"signup"==eE||3==eE?1:ez&&eY?5:ez&&!eY||eO?4:eE)()),"Parent"==eL&&((0,N.sendAdjustEvents)("sign_up_otp_back_p","When user clicks on close button on the OTP screen to land on the home page","OtpScreen",tp.platform?"psxys3":"di8d2u"),(0,N.sendClickStream)("sign_up_otp_back_p","Icon Button","","","When user clicks on close button on the OTP screen to land on the home page"))}})]})]}),(0,s.jsx)("div",{className:"OTP"==t1.errorName?"error w-100":"noerror w-100",children:(0,s.jsx)("div",{className:"form-group bordernont m-0 w-100",style:{position:"relative"},children:(0,s.jsxs)("div",{className:"pincode-input-container d-block",children:["iOS"==et?tp.platform?(0,s.jsx)("div",{className:"iosotpsustem",children:(0,s.jsx)("input",{type:"text",pattern:"\\d*",maxlength:"6",placeholder:i.A.EnterOTP,onClick:()=>{(0,N.sendClickStream)("Otp input ios click","Inout Box")},onChange:e=>{tG(e.target.value),t2({errorName:"",errorMessage:""})}})}):(0,s.jsx)(q.A,{autoComplete:"off",className:"inputStyle ss",value:tV,onChange:e=>{tG(e),t2({errorName:"",errorMessage:""})},isInputNum:!0,numInputs:6,type:"number"}):(0,s.jsx)(q.A,{autoComplete:"off",className:"inputStyle ".concat(tV?"hasOTP":""),value:tV,onChange:e=>{tG(e),t2({errorName:"",errorMessage:""})},isInputNum:!0,numInputs:6,type:"number",shouldAutoFocus:!0}),"OTP"==t1.errorName&&(0,s.jsx)("div",{className:"text-danger pincode-input-error mt10",children:t1.errorMessage})]})})}),(0,s.jsx)("div",{className:"justify-content-ed-center w-100 sapration",id:"otp-verify",style:{display:"flex"},children:(0,s.jsxs)(p.A,{id:nv,className:"btn btn-signupage emskvrfy-otpbtn d-flex align-items-center justify-content-center btnce
1nterbox  ".concat(tb?nP:""," ").concat("jee-test-prep"==nz()?"Lead_form_Jee_webpage_sign_up_otp_verified":"medical"==nz()?"Lead_form_neet_webpage_sign_up_otp_verified":"k-12"==nz()?"Lead_form_k-12_webpage_sign_up_otp_verified":""),variant:"",onClick:nK,disabled:tM||tg||0==tV.length,children:[eG?"Verify OTP":i.A.VER_OTP,(tM||tg)&&(0,s.jsx)(m.A,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",style:{marginLeft:"5px"}})]})}),na&&(0,s.jsx)("div",{style:{display:"block"},id:"otp-resend-div",className:"stactiflow",children:(0,s.jsx)("p",{className:"text-black otp-request-again",children:i.A.SIGNUP_DONT})}),(0,s.jsx)("div",{className:"otptile",children:tx<0?eT||""!=ey||""!=tX?(0,s.jsxs)(s.Fragment,{children:[i.A.RESEND_VIA,"\xa0"]}):(0,s.jsxs)(s.Fragment,{children:[i.A.SIGNUP_RESEND,":\xa0",(0,s.jsx)("label",{style:{cursor:"pointer"},id:"resend-otp",className:"",onClick:()=>{nF("resend_otp"),(0,N.sendClickStream)("resent otp","Button"),tj(20),"signup"===eE?(window.GlobalFunctions.consoleLog("event captured at resend otp "),"Student"==eL?(0,N.sendAdjustEvents)("sign_up_resend_otp","When user clicks on resend OTP","OtpScreen",tp.platform?"a9b9ha":"m09hqu"):((0,N.sendAdjustEvents)("Resend_OTP","When user clicks on resend OTP","OtpScreen",tp.platform?"2hf1e4":"5kf5pf"),"Home Tution"===tf?(0,N.sendAdjustEvents)("sign_up_resend_otp_t_hw","When user clicks on resend OTP","Signup",tp.platform?"yn4nzl":"xa9f9h"):(0,N.sendAdjustEvents)("sign_up_resend_otp_t_in","When user clicks on resend OTP","Signup",tp.platform?"z0r7z8":"nus9bb"))):eG&&((0,N.sendAdjustEvents)("Olympiad_Resend OTP","Clicks resend OTP ","OtpScreen",tp.platform?"55b7jg":"ebx6nf"),(0,N.sendClickStream)("Olympiad_Resend OTP","Resend Otp click","","","Clicks resend OTP"))},children:i.A.CLICK_TO_RESEND})]}):(0,s.jsxs)(s.Fragment,{children:[i.A.RESEND_IN,"\xa0",(0,s.jsxs)("label",{id:"resend-otp",children:[tx," ",i.A.SIGNUP_SECONDS]})]})}),(eT||""!=ey||""!=tX)&&na&&(0,s.jsx)(Z,{enableResendBtns:tx>-1||tM||tg,actionForOTP:(e,t)=>(e=>{t4(e),nF("resend_otp",e),tj(20),"signup"===eE&&(window.GlobalFunctions.consoleLog("event captured at resend otp "),"Student"==eL?(0,N.sendAdjustEvents)("sign_up_resend_otp","When user clicks on resend OTP","OtpScreen",tp.platform?"a9b9ha":"m09hqu"):"Parent"==eL?(0,N.sendAdjustEvents)("sign_up_resend_otp_p","When user clicks on resend OTP","OtpScreen",tp.platform?"m5mx9v":"b6ulhu"):((0,N.sendAdjustEvents)("Resend_OTP","When user clicks on resend OTP","OtpScreen",tp.platform?"2hf1e4":"5kf5pf"),"Home Tution"===tf?(0,N.sendAdjustEvents)("sign_up_resend_otp_t_hw","When user clicks on resend OTP","Signup",tp.platform?"yn4nzl":"xa9f9h"):(0,N.sendAdjustEvents)("sign_up_resend_otp_t_in","When user clicks on resend OTP","Signup",tp.platform?"z0r7z8":"nus9bb")))})(t),tabSelected:eL,countryObj:eA})]})]})})}):(null==e?void 0:e.leadFormVariant)==="jee-rank-banner"?(0,s.jsx)("div",{children:(0,s.jsx)(z.A,{score:(null==e||null==(u=e.rankFormResultData)?void 0:u.score)||"200",percentile:(null==e||null==(R=e.rankFormResultData)||null==(I=R.apiData)||null==(k=I.data)?void 0:k.Percentile)?"".concat(e.rankFormResultData.apiData.data.Percentile,"%"):"98.9%",rankRange:(null==e||null==(Q=e.rankFormResultData)||null==(Y=Q.apiData)||null==(J=Y.data)?void 0:J["Rank Range"])||"3800 - 4700",examName:(null==e||null==(X=e.bannerData)?void 0:X.examName)||"",mobileNumber:eb||(null==tC?void 0:tC.mobileNumber)||"",studentName:(null==e?void 0:e.name)||(null==tC?void 0:tC.name)||"",loader:tD,onSecondaryClick:()=>{var t,n;tR(!1),null==e||null==(t=e.setCurrentPage)||t.call(e,1),null==e||null==(n=e.onLeadOtpVerified)||n.call(e,!1)},onPrimaryClick:()=>{var t,n,s,i;if(sessionStorage.setItem("rankBannerExamName",String((null==e||null==(t=e.bannerData)?void 0:t.examName)||"")),!t_&&!eB&&(null==e?void 0:e.openLoginModalOnRankImprove)&&1){ea(null==e||null==(n=e.bannerData)?void 0:n.examName,null==tu?void 0:tu.boardName),window.dispatchEvent(new CustomEvent("studentapp:subscription-login-modal",{detail:{url:"/subscription"}}));return}t_?(ea(null==e||null==(s=e.bannerData)?void 0:s.examName,null==tu?void 0:tu.boardName),tR(!0),nc((0,y.isSignupThroughStatic)(!0)),nu.push("/subscription")):(ea(null==e||null==(i=e.bannerData)?void 0:i.examName,null==tu?void 0:tu.boardName),tR(!0),nc((0,y.isSignupThroughStatic)(!0)),nq(th,tv.auth_key))}})}):2==tH&&"test_series"!=e.iframeSignupType?(0,s.jsx)(K,{loader:tg,onClick:()=>{(0,N.sendClickStream)("Setup class room","Button"),nG(th,tv.auth_key,"inst")}}):(null==(es=localStorage)?void 0:es.getItem("newbanner"))=="true"?(0,s.jsx)(ee,{fileName:o.LEAD_MAGNET_FILE_PATH.split("/").pop(),fileUrl:o.LEAD_MAGNET_FILE_PATH,onComplete:()=>console.log("Download Complete!"),tabSelected:eL,institute_type:!0,loader:tg,name:e.name,instituteType:eF,isFromSmartClassPage:eH,isUserExist:eq,isAccountCreated:e1,isSignUpMsg:e2,isInstituteAdmin:e3,isInstitueAlreadyExist:e6,isInstituteMessage:e9,pageFrom:e4,onClick:()=>{"Parent"==eL?nq(th,tv.auth_key):"Institute"==eL?nG(th,tv.auth_key,"inst"):(nc((0,y.isSignupThroughStatic)(!0)),nq(th,tv.auth_key))},from_page:"lead-megnet"}):(0,s.jsx)("div",{children:(0,s.jsx)($,{tabSelected:eL,institute_type:!0,loader:tM,setloader:tL,shimmer:nC,fromForm:null!=(eo=e.fromForm)?eo:null,isLeadFormFlow:null==e?void 0:e.isLeadFormFlow,name:e.name,instituteType:eF,isFromSmartClassPage:eH,isUserExist:eq,isAccountCreated:e1,isSignUpMsg:e2,isInstituteAdmin:e3,isInstitueAlreadyExist:e6,isInstituteMessage:e9,pageFrom:e4,from_page:ef?"lead-megnet":"",onClick:()=>{em&&tL(!0);let t=window.location.pathname;if(("/students/jee-test-prep"==t||t.includes("jee-test-prep")||t.includes("neet-preparation-app")||e4&&"string"==typeof e4&&e4.toLowerCase().includes("jee"))&&(0,N.sendClickStream)("Start learning","Button","","","when the user clicks on start learning CTA"),"Parent"==eL)nq(th,tv.auth_key);else if("Institute"==eL)nG(th,tv.auth_key,"inst");else if("test_series"==e.iframeSignupType){localStorage.removeItem("urlconstant");let t=!1;if(("/student-study"==window.location.pathname||"/practice-test"==window.location.pathname)&&(t=!0),t_)if((null==o?void 0:o.IS_AIRTS_IMPLEMENTATION_NEW)==!1)window.parent&&window.parent!==window&&window.parent.postMessage({type:"CLOSE_MODAL_FROM_IFRAME"},"*");else{var n;if(tp.platform||(null==(n=window)?void 0:n.innerWidth)<1024){let n={breadCrumbIndex:2,RedirectedFrom:"StudentAppDrawer",isTestSeries:!0,selectedCourse:null==e?void 0:e.selectedCourse,selectedClass:null==e?void 0:e.selectedClass,isClosedFromTestSeries:t};nc((0,F.pW)(4)),setTimeout(()=>{localStorage.setItem("testSeries",JSON.stringify({open:!1,selectedCourse:null==e?void 0:e.selectedCourse,selectedClass:null==e?void 0:e.selectedClass})),(null==e?void 0:e.isAIRTSonlyInside)?(localStorage.setItem("isTestSeries",!0),nu.push("/student-study",n)):(0,E.redirectTo)("/student-study",nu,n)},500)}else{let n={breadCrumbIndex:2,RedirectedFrom:"StudentAppDrawer",isTestSeries:!0,selectedCourse:null==e?void 0:e.selectedCourse,selectedClass:null==e?void 0:e.selectedClass,isClosedFromTestSeries:t};localStorage.setItem("testSeries",JSON.stringify({open:!1,selectedCourse:null==e?void 0:e.selectedCourse,selectedClass:null==e?void 0:e.selectedClass})),(null==e?void 0:e.isAIRTSonlyInside)?nu.push("/practice-test",n):(0,E.redirectTo)("/practice-test",nu,n)}(0,N.sendClickStream)("airts_testseries","Button",{phone:null==td?void 0:td.mobile_no,name:null==td?void 0:td.name,preparing_for:null==tu?void 0:tu.boardName,board:null==td?void 0:td.board,class:null==tu?void 0:tu.className,school:null==td?void 0:td.institute_name,city:null==td?void 0:td.city,Mode_of_Preparation:null==td?void 0:td.mode_of_preparation},"netcore","airts_verify_details"),(0,N.sendClickStreamFireabaseAdjustEvents)("Purchase_Success_Testseries_JEE_NEET","button",{phone:null==td?void 0:td.mobile_no,name:null==td?void 0:td.name,preparing_for:null==tu?void 0:tu.boardName,board:null==td?void 0:td.board,class:null==tu?void 0:tu.className,school:null==td?void 0:td.institute_name,city:null==td?void 0:td.city,Mode_of_Preparation:null==td?void 0:td.mode_of_preparation}," ","Clicked on Verify My Details","tid182","kle922",""),(0,N.sendClickStreamFireabaseAdjustEvents)("Extramarks_ETS_Verifyourdetails_Form","button",{}," ","When user clicks on verify my details from the lead form","","","")}else nc((0,y.isSignupThroughStatic)(!0)),nq(th,tv.auth_key),nT(!0);(0,N.sendClickStreamFireabaseAdjustEvents)("Extramarks_ETS_StartPracticing_Form","","","","When the user clicks on 'Start Practicing' post verifing the correct otp details.","","","")}else ea(t,(null==tu?void 0:tu.boardName)||e4),tL(!0),nc((0,y.isSignupThroughStatic)(!0)),nq(th,tv.auth_key)},iframeSignupType:null==e?void 0:e.iframeSignupType,selectedCourse:null==e?void 0:e.selectedCourse,selectedClass:null==e?void 0:e.selectedClass,isEmailCase:null==e?void 0:e.isEmailCase,setIsCenterModal:null==e?void 0:e.setIsCenterModal,handleShowContentModal:null==e?void 0:e.handleShowContentModal,showLoader:null==e?void 0:e.showLoader})})})}},42661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appleSignInIosAppVersion:()=>q,default:()=>el});var s=n(95155),i=n(81236),o=n(70256);n(66650),n(3066),n(11620),n(77055),n(53497),n(63610),n(64562),n(41777),n(48863);var r=n(95691),a=n(12865),l=n(63285),c=n(17485),u=n(50811);
1n(64480);var d=n(9387),_=n.n(d);n(12375);var p=n(74256);n(10205),n(12963),n(17621);var m=n(10683),g=n(12115);n(55505),n(65117),n(65442);var f=n(96825);n(92253);var h=n(11467),v=n(67969),S=n(88006),y=n(24772),w=n(29173),A=n(83252),b=n(68310),k=n(64183),E=n(91934),C=n(6201),T=n(40256),P=n(17200),N=n(25573),O=n(14503),I=n(18508),x=n(41996);n(87434),n(75094),n(36840),n(75706),n(30861);var j=n(48118),M=n(69350);n(33885);var L=n(33956);n(27506);var D=n(31950);n(12918);var R=n(22321),W=n(13874),B=n(43639),F=n(94005),U=n(94506),V=n(24584),G=n(80293),H=n(27147);let q=()=>{let{adjustData:e={}}=o.A.getState().login;if(null==e||!e.platform)return!1;{let t=e.platform||"",n=(null==e?void 0:e.app_version)||"";n=n.split(".");let s=0;return(null==n?void 0:n.length)>0&&(s=Number(s=n.join(""))),"ios"==t.toLowerCase()&&"Student"==e.app_type&&"ios"==t.toLowerCase()&&s>10122}},z=(0,g.lazy)(()=>Promise.resolve().then(n.bind(n,18508)));(0,O.A)(z);let J=(0,g.lazy)(()=>Promise.all([n.e(156),n.e(1256)]).then(n.bind(n,21256)));(0,O.A)(J);let K=(0,g.lazy)(()=>Promise.resolve().then(n.bind(n,44903))),Y=(0,O.A)(K),Z=(0,g.lazy)(()=>n.e(2164).then(n.bind(n,62164))),Q=(0,O.A)(Z),$=(0,g.lazy)(()=>Promise.resolve().then(n.bind(n,41996))),X=(0,O.A)($),ee=/[a-z]/i,et=!1,en=!1,es="",ei=!1,eo=!1,er=!1,ea={schools:"Register_Now_Schools",schools_smart_class_plus:"Register_Now_Smart_Class_Plus",schools_school_integrated_program:"Register_Now_School_Integrated_Program",schools_assessment_centre:"Register_Now_Assessment_Centre",schools_learning_app:"Register_Now_Learning_App",schools_the_parent_app:"Register_Now_Parent_App",teachers:"Register_Now_Teachers",students:"Register_Now_Students",students_k_12:"Register_Now_k-12",students_jee_test_prep:"Register_Now_JEE",students_medical:"Register_Now_NEET",schools_great_school_india:"Register_Now_GSI"},el=e=>{var t,d,O,q,z,J,K;let{switchLoginSignup:Z,setTabSelected:$,tabSelected:el,instType:ec,selectedType:eu,isFromHomePage:ed}=e,e_=!0===e.forceModalStyle,ep="jee-rank-banner"===e.leadFormVariant,em=!!e.enquiryModalMode,eg=!!e.enquiryStudentLeadForm,ef=e=>em&&null!=e&&"string"==typeof e&&[r.A.REGISTERED_EMAIL_STATIC_PAGE,r.A.REGISTERED_MOBILE_STATIC_PAGE,r.A.REGISTERED_EMAIL_PLATFORM,r.A.REGISTERED_MOBILE_PLATFORM,r.A.REGISTERED_EMAIL_LOGIN,r.A.REGISTERED_MOBILE_LOGIN].includes(e)?"":e;e_&&I.default;let eh=e_?x.default:X;console.log("props----------",e),r.A.PRINCIPAL,r.A.SCHOOL_MANAGEMENT,r.A.IT_HEAD,r.A.TEACHER,r.A.ADMIN,r.A.OTHER;let ev=r.A.ROLE,eS=(0,g.useRef)(ev),[ey,ew]=(0,g.useState)({os:{version:""}}),[eA,eb]=(0,g.useState)(!1),{fromFormData:ek}=(0,h.d4)(e=>e.manageFormData),[eE,eC]=(0,g.useState)(ek?null==ek?void 0:ek.name:""),[eT,eP]=(0,g.useState)(!1),[eN,eO]=(0,g.useState)(!1),[eI,ex]=(0,g.useState)(!1),[ej,eM]=(0,g.useState)({}),[eL,eD]=(0,g.useState)(!!e.FromReferAfriend&&e.FromReferAfriend),[eR,eW]=(0,g.useState)(""),[eB,eF]=(0,g.useState)(null!=(z=null==ek?void 0:ek.schoolName)?z:""),[eU,eV]=(0,g.useState)(null),[eG,eH]=(0,g.useState)([]),[eq,ez]=(0,g.useState)(""),[eJ,eK]=(0,g.useState)(""),[eY,eZ]=(0,g.useState)(""),[eQ,e$]=(0,g.useState)([]),[eX,e0]=(0,g.useState)(""),[e1,e2]=(0,g.useState)({}),[e3,e4]=(0,g.useState)({}),[e5,e6]=(0,g.useState)(1),[e9,e8]=(0,g.useState)({}),[e7,te]=(0,g.useState)(ec),[tt,tn]=(0,g.useState)(!1),[ts,ti]=(0,g.useState)(!1),[to,tr]=(0,g.useState)({}),[ta,tl]=(0,g.useState)(!1),[tc,tu]=(0,g.useState)(!!e.enquiryModalMode),[td,t_]=(0,g.useState)(!1),[tp,tm]=(0,g.useState)(""),[tg,tf]=(0,g.useState)(ev),[th,tv]=(0,g.useState)(""),[tS,ty]=(0,g.useState)(""),[tw,tA]=(0,g.useState)(""),[tb,tk]=(0,g.useState)(!1),[tE,tC]=(0,g.useState)(!1),[tT,tP]=(0,g.useState)(!1),[tN,tO]=(0,g.useState)(!1),[tI,tx]=(0,g.useState)({}),[tj,tM]=(0,g.useState)(!1),[tL,tD]=(0,g.useState)({}),[tR,tW]=(0,g.useState)(!1),[tB,tF]=(0,g.useState)({}),[tU,tV]=(0,g.useState)(null),[tG,tH]=(0,g.useState)(""),[tq,tz]=(0,g.useState)(!1),[tJ,tK]=(0,g.useState)(!1),{countryNew:tY}=(0,h.d4)(e=>e.countryName),{freeTrialWebgateEnabled:tZ,selectedCountryDropdown:tQ}=(0,h.d4)(e=>e.dashboard);tY||localStorage.getItem("internationalizationFlagName");let[t$,tX]=(0,g.useState)(""),[t0,t1]=(0,g.useState)(""),[t2,t3]=(0,g.useState)(""),[t4,t5]=(0,g.useState)(!1),[t6,t9]=(0,g.useState)(!1);(0,g.useEffect)(()=>{tg==eS.current&&tf(ev),eS.current=ev},[t0,tg,ev]);let[t8,t7]=(0,g.useState)([]),[ne,nt]=(0,g.useState)([]),[nn,ns]=(0,g.useState)(""),[ni,no]=(0,g.useState)(""),[nr,na]=(0,g.useState)(""),[nl,nc]=(0,g.useState)(void 0),[nu,nd]=(0,g.useState)(!1),[n_,np]=(0,g.useState)({}),[nm,ng]=(0,g.useState)(!1),nf=null==(t=localStorage)?void 0:t.getItem("internationalizationFlag"),nh=null==(d=localStorage)?void 0:d.getItem("internationalizationFlagName"),nv=null==(O=localStorage)?void 0:O.getItem("banner_type"),[nS,ny]=(0,g.useState)(!e.enquiryModalMode),[nw,nA]=(0,g.useState)(!1);G.ZS.language(),em||tc&&window.location.href.split("?")[1],em||"/institutelead"==window.location.pathname||window.location.pathname;let nb=1==nf||"/students"==window.location.pathname||"/students/jee-test-prep"==window.parent.location.pathname||"/students/neet-preparation-app"==window.parent.location.pathname||"/students/k-12"==window.parent.location.pathname?["Smart Class Plus","Assessment Centre","School Integrated Program","Learning App","Parent App","Teaching App","K-12","Neet Learning App","Jee Learning App"]:["Smart Class Plus","Assessment Centre","Learning App","Parent App","Teaching App"],[nk,nE]=(0,g.useState)(e.enquiryStudentLeadForm?null!=(J=e.defaultEnquiryPageName)?J:"K-12":e.enquiryModalMode&&e.defaultEnquiryPageName?e.defaultEnquiryPageName:nb[0]);em&&!eg&&e.defaultEnquiryPageName&&"Teaching App"!==e.defaultEnquiryPageName&&e.showEnquiryProductPageSelect,(0,g.useEffect)(()=>{let e=new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname.substring(1);tX(ea[e.replace("/","_").replace(/[-]/g,"_")]),console.log("registerClickClass[window.location.pathname]",e.replace("/","_").replace(/[-]/g,"_"),e)},[]),(0,g.useLayoutEffect)(()=>
1{if(!e.enquiryModalMode)return;if(e.enquiryStudentLeadForm){var t;let n=null!=(t=e.defaultEnquiryPageName)?t:"K-12";nE(n),tf(ev),nU(""),eF(""),"function"==typeof eu&&eu(1,n);return}if(!e.defaultEnquiryPageName)return;let n=e.defaultEnquiryPageName;nE(n),tf(ev),nU(""),eF(""),"function"==typeof eu&&("Teaching App"===n?eu(2,n):"K-12"===n||"Neet Learning App"===n||"Jee Learning App"===n?eu(1,n):1===ec?eu(3,n):eu(2,n))},[e.enquiryModalMode,e.enquiryStudentLeadForm,e.defaultEnquiryPageName]),(0,g.useLayoutEffect)(()=>{if(3===e5)return(0,b.t)()},[e5]),console.log("value of selectedBoard, selectedClass, selectedCourse",nn,ni,nr),(0,g.useEffect)(()=>{nA(i.IS_FACEBOOK_LOGIN_ENABLE)},[]),(0,g.useEffect)(()=>{var t,n;let s=(null==(n=window)||null==(t=n.location)?void 0:t.pathname)||"",i=s.includes("open-test"),o="/students/test-series"===s||s.startsWith("/students/test-series/"),r=(null==e?void 0:e.iframeSignupType)==="test_series"&&o,a="test_series"==tp&&o;i?(localStorage.removeItem("testSeries"),tu(!1),ny(!1)):r||a?(tu(!0),t_(!0),tm("test_series"),ny(!1),(null==n$?void 0:n$.mobWithoutIsd)&&eW(null==n$?void 0:n$.mobWithoutIsd),(null==n$?void 0:n$.mobWithoutIsd)||!nQ||tK(!0),(null==n$?void 0:n$.name)&&eC(null==n$?void 0:n$.name),nQ&&(er=!0),(null==e?void 0:e.isClosedFromTestSeries)&&e.setIsCenterModal(!1)):(t_(!1),tm(""))},[e.iframeSignupType,tp]),(0,g.useEffect)(()=>{(null==e?void 0:e.iframeSignupType)&&(null==e?void 0:e.iframeSignupType)=="test_series"||ny(!1)},[null==e?void 0:e.iframeSignupType]);let nC=!1;(0,g.useEffect)(()=>{console.log("sdgvfsdf",window.location.href.split("?"));let t=window.location.pathname,n=new URLSearchParams(window.location.search).get("iframe_signup_type");e.enquiryModalMode||"/homelead"==t||"/leadform"==t||"/institutelead"==t||"/leadformparent"==t?(tu(!0),nC=!0,n&&(t_(!0),tm(n))):"Institute"==el&&1==e7&&s8()},[window.location.pathname]),(0,g.useEffect)(()=>{var e;(null==(e=window.parent.location.href)?void 0:e.includes("live-classes-schedule"))&&nE(nb[6]),setTimeout(()=>{if(tc||nC){var e,t,n,s,i,o,r;(null==(e=window.parent.location.href)?void 0:e.includes("teachers"))?(nE("Teaching App"),sh(2),eu(2,"Teaching App")):(null==(t=window.parent.location.href)?void 0:t.includes("assessment-centre"))?(nE(nb[1]),eu(3,nb[1])):(null==(n=window.parent.location.href)?void 0:n.includes("school-integrated-program"))?(nE(nb[2]),eu(3,nb[2])):(null==(s=window.parent.location.href)?void 0:s.includes("learning-app"))?(nE(nb[3]),eu(3,nb[3])):(null==(i=window.parent.location.href)?void 0:i.includes("the-parent-app"))&&(nE(nb[4]),eu(3,nb[4])),(null==(r=window)||null==(o=r.location)?void 0:o.pathname)==="/scholarship"&&localStorage.getItem("scholarshipSignup")&&("School"==localStorage.getItem("scholarshipSignup")?(nE("Teaching App"),sh(2),eu(3,nb[2])):localStorage.getItem("scholarshipSignup"))}},200)},[]),(0,g.useEffect)(()=>{console.log("parent_path",window.location.href.split("?"));let e=window.location.href.split("?");e.length>2&&"enquary_now"==e[1]&&(null==e?void 0:e.length)==3&&("students"==e[2]||"k-12"==e[2]?(nE(nb[6]),eu(1,nb[6])):"jee-test-prep"==e[2]?(nE(nb[8]),eu(1,nb[6])):"medical"==e[2]||"neet-preparation-app"==e[2]?(nE(nb[7]),eu(1,nb[6])):"teachers"==e[2]?(nE(nb[5]),eu(3,nb[5])):"schools"==e[2]?(nE(nb[2]),eu(3,nb[2])):"smart-class-plus"==e[2]?(nE(nb[0]),eu(3,nb[0])):"assessment-centre"==e[2]?(nE(nb[1]),eu(3,nb[1])):"school-integrated-program"==e[2]||"great-school-india"==e[2]?(nE(nb[2]),eu(3,nb[2])):"learning-app"==e[2]?(nE(nb[3]),eu(3,nb[3])):"the-parent-app"==e[2]?(nE(nb[4]),eu(3,nb[4])):nE(nb[0])),i.TRUECALLER_ENABLE&&window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({event:"getTrueCallerData",data:{}}))},[]);let nT=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];t5(e)};window.googleSignIn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("data...,",JSON.stringify(e));let t={};t.email=e.user.email,t.name=e.user.name,t.username=e.user.id,(null==t?void 0:t.email)&&(eP(!0),iw(t,2))},window.facebookSignIn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("data...,",JSON.stringify(e));let t={};t.email=null==e?void 0:e.email,t.name=(null==e?void 0:e.firstName)+" "+(null==e?void 0:e.middleName)+" "+(null==e?void 0:e.lastName),t.username=null==e?void 0:e.userID,(null==t?void 0:t.email)?(eP(!0),iw(t,2)):nj({errorName:"facebook_error",errorMessage:r.A.NO_EMAIL_ASSOCIATED})},window.appleSignIn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("test287",e),console.log("data...,",JSON.stringify(e));let t={};t.email=null==e?void 0:e.email,t.name=(null==e?void 0:e.firstName)+" "+(null==e?void 0:e.middleName)+" "+(null==e?void 0:e.lastName),t.username=null==e?void 0:e.userID,(null==t?void 0:t.email)?(eP(!0),iw(t,4)):nj({errorName:"apple_error",errorMessage:r.A.NO_EMAIL_ASSOCIATED})},(0,g.useEffect)(()=>{i.TRUECALLER_ENABLE&&sk.platform&&("Institute"!=el||1!=e7)&&(window.fetchTrueCallerData=e=>{tV(e)})},[]),(0,g.useEffect)(()=>{var e,t,n,s,o,r;
1if(i.TRUECALLER_ENABLE&&tU&&(null==tU?void 0:tU.isTrueAppInstall)&&(null==tU||null==(t=tU.phoneData)||null==(e=t.number)?void 0:e.significant)){eW(null==tU||null==(s=tU.phoneData)||null==(n=s.number)?void 0:n.significant),tP(!0);let e="".concat(null==tU||null==(o=tU.profile)?void 0:o.firstName," ").concat(null==tU||null==(r=tU.profile)?void 0:r.lastName);eC(e);let t=sW.find(e=>{var t;return e.phone_code==(null==tU||null==(t=tU.phoneData)?void 0:t.countryCode)});if(t&&e2(t),"Institute"==el&&2==e7){let t=e?"".concat((0,k.P)(e.split(" ")[0]),"'s Classes"):"";setTimeout(()=>eF(t),100)}}},[tU]);let nP=async function(){var e,t,n,s;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=String(null!=(t=null!=(e=null==i?void 0:i.name)?e:eE)?t:"").trim(),r=String(null!=(s=null!=(n=null==i?void 0:i.emailMobile)?n:eR)?s:"").trim();if(o.length>0&&r.length>0&&!ts){let e=await nN(4,4,{name:o,emailMobile:r});return!!e&&e}},nN=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=im(e,t,null==n?void 0:n.name)+ig(e,t,null==n?void 0:n.emailMobile);if(!s||s&&s.length<3){s.length>0?nj({errorName:"userName",errorMessage:r.A.USER_NAME_3_30}):nj({errorName:"userName",errorMessage:r.A.Login_Username_Empty}),nL({type:"fail",message:""});return}if(nO(s)){let e=s,t=nI(e.replace(/\d/g,""),28).replace(/`/g,"");console.log("charrrrrrrr eng",t);let n=e.replace(/[\u0900-\u097F]/g,"");console.log("charrrrrrrr numb",n),s=t+n}else{var i;if(i=s,!/^[a-zA-Z0-9]([._](?![._])|[a-zA-Z0-9]){1,28}[a-zA-Z0-9]$/.test(i)){["_","."].some(e=>s.startsWith(e)||s.endsWith(e))?nj({errorName:"userName",errorMessage:r.A.CANNOT_START_OR_END_WITH_A_DOT}):nj({errorName:"userName",errorMessage:r.A.USERNAME_FILL_VAL_MSG}),nL({type:"fail",message:""});return}}nL({type:"fail",message:""});try{let n=await ie(s);if("Student"==el?(0,P.sendAdjustEvents)("sign_up_incorrect_user_name","When user enter invalid user name/ get error username already taken","Signup",sk.platform?"1l31ii":"8we9g1"):"Parent"==el?(0,P.sendAdjustEvents)("sign_up_incorrect_user_name_p","When user enter invalid user name/ get error username already taken","Signup",sk.platform?"5plknp":"tjdn9i"):"Home Tution"===nK?(0,P.sendAdjustEvents)("sign_up_incorrect_user_name_t_hw","When user enter invalid user name/ get error username already taken","Signup",sk.platform?"tcmta9":"lrg246"):(0,P.sendAdjustEvents)("sign_up_incorrect_user_name_t_in","When user enter invalid user name/ get error username already taken","Signup",sk.platform?"tiuy8u":"8wmt03"),n.hasOwnProperty("entity_state")&&0==n.entity_state)return ez(s),s;if(n.hasOwnProperty("entity_state")&&1==n.entity_state){if(t==e)return console.log("namechange===ayaa"),await nN(e+1,t);else if(t<e)return await nN(e-1,t+1);else if(t>e)return await nN(e-1,t)}return!1}catch(e){}},nO=e=>{let t=[{start:2304,end:2431}];for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);for(let e of t)if(s>=e.start&&s<=e.end)return!0}return!1},nI=(e,t)=>{let n="";for(let s=0;s<e.length;++s){let i=e[s].charCodeAt(0),o=t;i+t>122?(t-=122-i,t%=26,n+=String.fromCharCode(96+t)):n+=String.fromCharCode(i+t),t=o}return console.log("new string...",n),n};(0,g.useEffect)(()=>{"android"==sk.platform&&tT&&it(),tN&&it(),tj&&it(),"ios"==sk.platform&&tR&&it()},[eR]);let[nx,nj]=(0,g.useState)({errorName:"",errorMessage:""}),[nM,nL]=(0,g.useState)({type:"fail",message:""}),[nD,nR]=(0,g.useState)({type:"fail",message:""}),[nW,nB]=(0,g.useState)(!0),[nF,nU]=(0,g.useState)(ek?null==ek?void 0:ek.city:"");(0,g.useRef)();let[nV,nG]=(0,g.useState)(!1),[nH,nq]=(0,g.useState)(!1),[nz,nJ]=(0,g.useState)(!1),{isSignUpUserSelect:nK,fromScholarShip:nY,language:nZ,isSession:nQ,primaryDetails:n$,LoginData:nX,secondaryDetails:n0}=(0,h.d4)(e=>e.login),{countryName:n1}=(0,h.d4)(e=>e),[n2,n3]=(0,g.useState)(!1),[n4,n5]=(0,g.useState)(!1),[n6,n9]=(0,g.useState)(!1),[n8,n7]=(0,g.useState)(!1),[se,st]=(0,g.useState)(!1),[sn,ss]=(0,g.useState)(!1),[si,so]=(0,g.useState)(!1),[sr,sa]=(0,g.useState)(!1),[sl,sc]=(0,g.useState)(!1),[su,sd]=(0,g.useState)(!1),[s_,sp]=(0,g.useState)(!1),[sm,sg]=(0,g.useState)(""),[sf,sh]=(0,g.useState)(""),sv=(0,h.wA)(),sS=(0,v.DQ)().location,{signup:sy,login:sw}=(0,h.d4)(e=>e),[sA,sb]=(0,g.useState)({lat:"0",lng:"0"}),{adjustData:sk,loader:sE,redirectAfterLogin:sC={},googleLgnSignData:sT={}}=sw,{loader:sP,utmData:sN,lang:sO,sipFormData:sI,is_sipFormData:sx,staticWebLang:sj,staticFrom:sM=""}=sy,sL=(null==sk?void 0:sk.platform)!==void 0,[sD,sR]=(0,g.useState)(!1),[sW,sB]=(0,g.useState)([]),{countryList:sF}=(0,D.O)(),sU=(0,g.useRef)(null);(0,g.useRef)(null),(0,g.useEffect)(()=>
1{if(tc){if("ar"!=sj)try{Promise.all([n.e(8052),n.e(407)]).then(n.t.bind(n,40407,23)),document.body.classList.remove("arabic_lang")}catch(e){console.error("Failed to load CSS or update DOM:",e)}let e=window.location.pathname.includes("subscription")||window.location.pathname.includes("student-dashboard")||window.location.pathname.includes("study-syllabus")||window.location.pathname.includes("practice-test")?sO:sj;(0,F.UpdateLanguageCode)(e)}},[tc,sj]),(0,g.useEffect)(()=>{var e,t;((null==sC?void 0:sC.extraData)&&(null==sC||null==(e=sC.extraData)?void 0:e.classroom_code)||(null==sC?void 0:sC.extraData)&&(null==sC||null==(t=sC.extraData)?void 0:t.school_code))&&Z(0)},[null==sC?void 0:sC.extraData]),(0,g.useEffect)(()=>{(null==nx?void 0:nx.errorName)&&(tP(!1),tV(null),sv((0,S.kw)({})),tO(!1))},[nx]),(0,g.useEffect)(()=>{sF&&(nf&&1!=nf?(null==n1?void 0:n1.selectedCountryDropdown)&&(null==n1?void 0:n1.selectedCountryDropdown)!=""&&(null==n1?void 0:n1.selectedCountryDropdown)==1?sB(sF):sB(sF.filter(e=>e&&e.phone_code&&91!=e.phone_code)):sB(sF))},[]),(0,g.useEffect)(()=>{setTimeout(()=>{sV()},1e3)},[sW]);let sV=()=>{if(nf&&1!=nf&&sW){let e=sF.find(e=>e.short_name==(nh||(null==n1?void 0:n1.countryNew)));"KE"==e.short_name||"EG"==e.short_name||"SA"==e.short_name?e2({...e,is_otp_service:"1"}):e2(e),e4(e),!(null==sk?void 0:sk.platform)&&((null==n1?void 0:n1.selectedCountryDropdown)&&(null==n1?void 0:n1.selectedCountryDropdown)!=""&&(null==n1?void 0:n1.selectedCountryDropdown)==1||nf&&5==nf||(sh(3),eu(3,nk))
1)}},sG=(0,g.createRef)();(0,L.wG)(),(0,g.useEffect)(()=>{document.addEventListener("click",e=>{sU.current&&!sU.current.contains(e.target)&&sR(!1)})},[]),(0,g.useEffect)(()=>{var e;a.A.setApiKey(null!=(e=i.REACT_APP_GEOCODE_KEY)?e:""),a.A.setLanguage("en"),sv((0,S.x_)(!1)),sv((0,S.Pq)({}))},[]),(0,g.useEffect)(()=>{s3()},[]),(0,g.useEffect)(()=>{te(ec),2==ec&&eF(tt?eB:eE?"".concat((0,k.P)(eE.split(" ")[0]),"'s Classes"):"")},[ec]),(0,g.useEffect)(()=>{1==e5&&sl&&sc(!1),iS()},[e5]),(0,g.useEffect)(()=>{console.log(nV,"isCitySelected"),nV&&tl(!1)},[nV]),console.log("instituteName",eB,eq),(0,g.useEffect)(()=>{window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({event:"privacy-modal",data:{isVisible:eA}}))},[eA]),(0,g.useEffect)(()=>{var e,t,n;(0,N.zf)("PRIVACY_T&C").then(e=>sa(e)),(null==(n=window)||null==(t=n.location)||null==(e=t.pathname)?void 0:e.includes("open-test"))&&(sa(!0),ng(!0));let s=(0,P.setMixPanel)("Sign Up Details","screen_loaded");s.persona="Student"===el||"Parent"===el?el:"Home Tution"===nK?"Home Tution":"Institute",(0,P.sendClickStreamFireabaseAdjustEvents)("Basic Details Screen","screen_loaded",s,"mixpanel","Basic Details Screen Appears ")},[]),(0,g.useEffect)(()=>{sv({type:"HIDE_LOADER"}),sv({type:"GET_COUNTRY_FAIL"})},[]),(0,g.useEffect)(()=>{console.log(e),e&&!(0,l.A)(e.countryCityData,eX)&&(e0(null==e?void 0:e.countryCityData),e2((0,c.A)(e,"countryCityData.countryObj",{})),(null==e1?void 0:e1.is_otp_service)==1&&ek&&eW(null==ek?void 0:ek.mobile))},[e.countryCityData]);let sH=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eR,n=String(null!=t?t:"").trim();if(!n)return null;let s=String((null==e1?void 0:e1.phone_code)||(null==n$?void 0:n$.isd_code)||"").replace(/\D/g,""),o=null!=(e=null==e1?void 0:e1.is_otp_service)?e:ep&&nQ&&s?1:void 0,a=await ie(0==o?n:"+"+s+"-"+n,0==o?"email":"mobile","student");return 1==a.entity_state&&"LO006"==a.message_code?nR({type:"fail",message:r.A.REQUEST_PENDING_APPROVAL}):i.SIBLING_CHANGES_ALLOWED&&1==a.entity_state&&"LO010"==a.message_code?sp(!0):sp(!1),a};console.log("jhgfdsdfghjhgfdszdfgh",window.location.href.split("?")[1]);let sq=(0,g.useCallback)(()=>(0,T.zh)(String((null==n$?void 0:n$.mobWithoutIsd)||(null==n$?void 0:n$.phoneNumber)||(null==n$?void 0:n$.mobileNumber)||eR||"").trim()),[null==n$?void 0:n$.mobWithoutIsd,null==n$?void 0:n$.phoneNumber,null==n$?void 0:n$.mobileNumber,eR]),sz=String((null==n$?void 0:n$.name)||eE||"").trim(),sJ=(0,T.zh)(String((null==n$?void 0:n$.mobWithoutIsd)||(null==n$?void 0:n$.phoneNumber)||(null==n$?void 0:n$.mobileNumber)||"").trim()),sK=!!(nQ&&sJ),sY=(0,g.useCallback)(()=>{var e;return{phoneCode:String((null==e1?void 0:e1.phone_code)||(null==n$?void 0:n$.isd_code)||"").replace(/\D/g,""),shortName:(null==e1?void 0:e1.short_name)||(null==n$?void 0:n$.country_iso)||"IN",countryTitle:(null==e1?void 0:e1.title)||(null==n$?void 0:n$.country)||"INDIA",isOtpService:null!=(e=null==e1?void 0:e1.is_otp_service)?e:ep&&nQ?1:void 0}},[null==e1?void 0:e1.phone_code,null==e1?void 0:e1.short_name,null==e1?void 0:e1.title,null==e1?void 0:e1.is_otp_service,null==n$?void 0:n$.isd_code,null==n$?void 0:n$.country_iso,null==n$?void 0:n$.country,ep,nQ]),sZ=(0,g.useCallback)(()=>{var t;let n=String((null==e||null==(t=e.bannerData)?void 0:t.examName)||"").trim().toUpperCase();return"JEE_MAIN"===n?"JEE_MAINS":"JEE_ADVANCE"===n?"JEE_ADVANCE":"NEET"===n?"NEET":""},[null==e||null==(q=e.bannerData)?void 0:q.examName]),sQ=async function(){var t,n;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=null!=(n=null!=(t=s.emailMobile)?t:eR)?n:ep&&nQ?sq():"";if(tc&&nf&&1!=nf)return et=!0,s1({is_sibling:0,account_created:es},s),"";eP(!0);try{let t={},{phoneCode:n,isOtpService:a}=sY();t.entity_value=0==a?o:"+"+n+"-"+o,t.entity_name=0==a?"email":"mobile","Institute"==el&&2==ec?t.role_type="home_tuition":"Parent"==el?t.role_type="parent":"Student"==el&&(t.role_type="student"),t.staticPage=tc&&!em,t.iframeSignup=td,t.iframeSignupType=tp;let l=await (0,L.p5)(t,el,ec);if(console.log("login_response",l),en=!1,eP(!1),l&&(null==l?void 0:l.message_code)=="LO006")return nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.REQUEST_PENDING_APPROVAL}),"";if(console.log("nhgfcdsxcfghj",l),"test_series"==tp&&(null==l?void 0:l.message_code)=="LO010"&&!e.isAIRTSonlyInside)return void nj({errorName:r.A.Mob_FullNew,errorMessage:null===r.A||void 0===r.A?void 0:r.A.SIBLING_EXISTS});
1if(l.isAllowed){if((tc&&("smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1]||"enquary_now"==window.location.href.split("?")[1])||em)&&(et=!0,en=!0,es=0,((null==l?void 0:l.user_type)=="1"&&"1"==e7&&"Institute"==el||(null==l?void 0:l.user_type)=="5"&&"2"==e7&&"Institute"==el)&&s1({is_sibling:0,account_created:es},s)),tc&&"test_series"==tp&&nQ){let t={uuid:(null==nX?void 0:nX.uuid)||(null==nX?void 0:nX.uuid),access_token:nX.access_token||(null==nX?void 0:nX.access_token)};try{let e=await s$(nr,ni,t,n$,o,e1);if(console.log("Coupon code apply API completed successfully"),(null==e?void 0:e.status)==0&&(null==e?void 0:e.message_code)=="17010"){console.log("Coupon application failed:",(null==e?void 0:e.message)||"Invalid Coupon"),sv((0,w.m)("show",r.A.ALL_TEST_SERIES_CONSUMED,!0,4e3,"warning"));return}console.log("Coupon applied successfully:",e)}catch(e){if(console.error("Error in coupon code apply API:",e),(null==e?void 0:e.messageCode)==="RU012"){console.error("Mobile number already registered error:",e.message),sv((0,w.m)("show",r.A.ALL_TEST_SERIES_CONSUMED,!0,4e3,"warning"));return}}sX(nr,ni,t).then(e=>{e.success?console.log("Test series APIs completed successfully"):console.error("Test series APIs failed:",e.error)}).catch(e=>{console.error("Error in test series API handling:",e)}),en=!0,es=0,"function"!=typeof(null==e?void 0:e.setIsCenterModal)||null==e||e.isEmailCase,ex(!0),s1({is_sibling:0,account_created:es},s);return}}else{if(tc&&("smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"enquary_now"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1]||"learning_app"==window.location.href.split("?")[1]||"teachingapp"==window.location.href.split("?")[1]||"/leadform"==window.location.pathname)||em)if(et=!0,5==l.user_type||(null==l?void 0:l.user_type)==3||(null==l?void 0:l.user_type)==1||(null==l?void 0:l.user_type)==2)en=!0,es=0,"Student"==el&&((null==l?void 0:l.user_type)=="5"&&(null==l?void 0:l.institute_type)==1?(ei=!1,eo=!0):ei=!0),("LO002"==l.message_code||(null==l?void 0:l.message_code)=="LO010"||(null==l?void 0:l.message_code)=="LO004"||em)&&(s1({is_sibling:1,account_created:es},s),nj({errorName:"",errorMessage:""}));else{en=!1,es=1;let e=ef(l.message);nj({errorName:e?(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew:"",errorMessage:e})}else{et=!1;let e=ef(l.message);nj({errorName:e?(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew:"",errorMessage:e})}(null==l?void 0:l.message)==r.A.REGISTERED_MOBILE_PLATFORM&&("Student"==el||("Parent"==el?(0,P.sendClickStream)("Sign_up_enter_Mobile_available_p","Button","","","When user enters mobile number and get the error message that mobile number is already taken"):"Home Tution"==nK?(0,P.sendClickStream)("Sign_up_enter_Mobile_available_t_hw","Button","","","When user enters mobile number and get the error message that mobile number is already taken"):(0,P.sendClickStream)("Sign_up_enter_Mobile_available_t_in","Button","","","When user enters mobile number and get the error message that mobile number is already taken")));return}l&&0==l.entity_state?(es=1,s1({is_sibling:0,account_created:es},s)):(sg(l.em_user_id||l.gts_user_id),"Institute"==el&&2==ec&&(1==l.user_type||2==l.user_type)&&(es=1,s1({is_sibling:0,account_created:es},s)),"Student"==el&&(i.SIBLING_CHANGES_ALLOWED&&1==l.entity_state&&"LO010"==l.message_code?sp(!0):sp(!1),1==l.user_type?"LO010"==l.message_code?tc?(en=!0,et=!0,es=0,s1({is_sibling:0,account_created:es},s),s2(2)):nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.SIBLING_EXISTS}):s2(3):(es=1,s1({is_sibling:0,account_created:es},s))),"Parent"==el&&(1==l.user_type||3==l.user_type||5==l.user_type&&2==l.institute_type)&&(es=1,s1({is_sibling:0,account_created:es}
1,s)),"Student"==el&&((0,P.sendAdjustEvents)("Sign_up_mobile_registered","When user lands on Mobile number/ email already registered screen after entering all details","Signup",sk.platform?"wzxej4":"dqety4"),(0,P.sendClickStream)("Sign_up_mobile_registered","Screen","","","When user lands on Mobile number/ email already registered screen after entering all details")),"Parent"==el?((0,P.sendAdjustEvents)("Sign_up_enter_Mobile_unavailable_p","When user enters mobile number and get the error message that mobile number is already taken","Signup",sk.platform?"ga2iih":"xvay65"),(0,P.sendClickStream)("Sign_up_enter_Mobile_unavailable_p","Screen","","","When user lands on Mobile number/ email already registered screen after entering all details")):"Home Tution"===nK?((0,P.sendAdjustEvents)("Sign_up_enter_Mobile_unavailable_t_hw","When user enters mobile number and get the error message that mobile number is already taken","Signup",sk.platform?"tcv1sg":"rowslg"),(0,P.sendClickStream)("Sign_up_mobile_registered_sign_in_t_hw","Screen","","","When user lands on Mobile number/ email already registered screen after entering all details")):((0,P.sendAdjustEvents)("Sign_up_enter_Mobile_available_t_in","When user enters mobile number and get the error message that mobile number is already taken","Signup",sk.platform?"xz3gex":"ufzyol"),(0,P.sendClickStream)("Sign_up_enter_Mobile_available_t_in","Screen","","","When user lands on Mobile number/ email already registered screen after entering all details")))}catch(e){eP(!1),console.log(e)}},s$=async(e,t,s)=>{var r;let{getAllPackageList:a}=await n.e(4589).then(n.bind(n,54589)),l={boardId:e,classId:t,foundation:0,id:"180",uuid:null==s?void 0:s.uuid,entityArray:["test_series"]},c=await a(l,0,"test_series");console.log("Package list response:",c);let{callApplyCoupon:u}=await Promise.resolve().then(n.bind(n,94506)),d=_()("applycouponcode:"+(null==s?void 0:s.uuid)+":"+i.MSA_DEVELOPER_API_KEY+":"+i.MSA_DEVELOPER_SALT),p=(null==nX?void 0:nX.em_user_id)?null==nX?void 0:nX.em_user_id:null==nX?void 0:nX.gts_user_id,m=o.A.getState().login.guestuuid,g={action:"applycouponcode",flag:"reactcouponapply",class_id:t,user_id:p||(null==m?void 0:m.user_id),board_id:e,voucher_code:"DJDKDDJ100",package_id:null==c||null==(r=c.package_list[0])?void 0:r.package_id,apikey:i.MSA_DEVELOPER_API_KEY,uuid:null==s?void 0:s.uuid,user_package_id:"",checksum:d},f="";try{if(f=await u(g,!0),console.log("Coupon apply response:",f),(null==f?void 0:f.status)==0)return console.log("Coupon application failed:",(null==f?void 0:f.message)||"Invalid Coupon"),f;return console.log("Coupon applied successfully:",f),f}catch(e){throw console.log("Coupon API error:",e),e}},sX=async(e,t,s)=>{try{var r,a,l,c,u;console.log("Calling APIs for iframeSignupType test_series..."),console.log("Body data received:",{course_id:e,class_id:t});let{addStudentInterest:d}=await Promise.resolve().then(n.bind(n,22321));await d(e,t);let{getListInstituteAndInterest:p}=await n.e(2541).then(n.bind(n,24922)),m={uuid:null==s?void 0:s.uuid,from:"",fromDashboard:!1,fromLogin:!0,escRes:null,showNewInterest:[],escBasic:null};await p(m)(sv);let{getAllPackageList:g}=await n.e(4589).then(n.bind(n,54589)),f={boardId:e,classId:t,foundation:0,id:"180",uuid:null==s?void 0:s.uuid,entityArray:["test_series"]},h=await g(f,0,"test_series");console.log("Package list response:",h);let{callApplyCoupon:v}=await Promise.resolve().then(n.bind(n,94506)),S=_()("applycouponcode:"+(null==s?void 0:s.uuid)+":"+i.MSA_DEVELOPER_API_KEY+":"+i.MSA_DEVELOPER_SALT),y=o.A.getState().login.guestuuid;(null==nX?void 0:nX.em_user_id)?null==nX||nX.em_user_id:null==nX||nX.gts_user_id;let w={action:"applycouponcode",flag:"reactcouponapply",class_id:t,user_id:(null==nX?void 0:nX.em_user_id)?null==nX?void 0:nX.em_user_id:(null==nX?void 0:nX.gts_user_id)||(null==y?void 0:y.user_id),board_id:e,voucher_code:"DJDKDDJ100",package_id:null==h||null==(r=h.package_list[0])?void 0:r.package_id,apikey:i.MSA_DEVELOPER_API_KEY,uuid:null==s?void 0:s.uuid,user_package_id:"",checksum:S},A="";try{A=await v(w,!0),console.log("Coupon apply response:",A),(null==A?void 0:A.status)==0?console.log("Coupon application failed:",(null==A?void 0:A.message)||"Invalid Coupon"):console.log("Coupon applied successfully:",A)}catch(e){console.log("Coupon API error:",e)}let b={uuid:(null==nX?void 0:nX.uuid)||(null==nX?void 0:nX.uuid),user_role:"1",page_key:"student subscription list"};await (0,U.OS)(b).then(e=>{1==e.status&&sv((0,V.oW)(e.wallet_detail))});let{makePayment:k}=await Promise.resolve().then(n.bind(n,94506)),E=_()("makePayment:"+(null==s?void 0:s.uuid)+":"+(null==s?void 0:s.uuid)+":"+i.MSA_DEVELOPER_API_KEY+":"+i.MSA_DEVELOPER_SALT),C={action:"makePayment",purchased_by:null==s?void 0:s.uuid,purchased_for:null==s?void 0:s.uuid,access_token:null==s?void 0:s.access_token,domain_name:i.API_BASE_URL_MSA+"/cognito-login-service/auth/packages/makePayment",checksum:E,request_type:"paymentforgateway",transaction_discount:null==h||null==(a=h.package_list[0])?void 0:a.mop,transaction_amount:0,coupon_id:null==A?void 0:A.coupon_id,coupon_code:"DJDKDDJ100",apikey:i.MSA_DEVELOPER_API_KEY,renew_validity_months:"",form_data:[{name:eE||"",email:(null==e1?void 0:e1.is_otp_service)==0?eR:"",mobile:(null==e1?void 0:e1.is_otp_service)==1?"+".concat(null==e1?void 0:e1.phone_code,"-").concat(eR):eR||"",postalcode:"",formCity:nF||"",formState:(null==n$?void 0:n$.state_id)||(null==n0||null==(l=n0.user_details)?void 0:l.state_id)||"",statename:to.state||"",county_code:"+".concat((null==e1?void 0:e1.phone_code)||""),formCountry:(null==e1?void 0:e1.id)||"",formAddress:"",formStreetName:""}],package:[{package_id:null==h||null==(c=h.package_list[0])?void 0:c.package_id,package_mapping_id:null==h||null==(u=h.package_list[0])?void 0:u.package_mapping_id,syllabus_id:t,pkg_payment_type:"wallet",pkg_payment_details:"Processed",currency:"INR",board_id:e,class_id:t,is_custom:0,status:"1",ip:"",batch_id:"",user_package_id:""}],school_id:"",refresh_token:(null==nX?void 0:nX.refresh_token)||"",language_code:(null===G.ZS||void 0===G.ZS?void 0:G.ZS.language())=="en"?"01":(null===G.ZS||void 0===G.ZS?void 0:G.ZS.language())=="hi"?"02":"01"},T=await k(C);if((null==T?void 0:T.status)!=="success")return console.log("Payment failed:",T),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),{success:!1,error:T};{console.log("Payment successful, calling hitSuccessEvent");
1let e=await (0,R.checkEntitySubscription)();sv((0,B.L8)(null==e?void 0:e.subscriptions)),await (0,W.getUpdatedData)();let t={subscription_id:null==T?void 0:T.order_id,package_id:7969,package_mapping_id:9251,entity_name:"test_series",validity:"7 days",expiry_date:new Date(Date.now()+6048e5).toISOString().split("T")[0],transaction_amount:0,transaction_discount:999,currency:"INR",purchase_date:null==T?void 0:T.purchase_date,order_id:null==T?void 0:T.order_id};return localStorage.setItem("package_purchase_event",JSON.stringify(t)),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),localStorage.removeItem("address_data"),console.log("Both APIs called successfully"),{success:!0,data:T}}}catch(e){return console.error("Error calling APIs for iframeSignupType test_series:",e),localStorage.removeItem("coupon_data"),localStorage.removeItem("coupon_code"),{success:!1,error:e}}};console.log("countryObj countryObj countryObj countryObj",e1),(0,g.useEffect)(()=>{"true"===new URL(window.location.href).searchParams.get("signup")?e2(sW.find(e=>224==e.id)):e2(null==sW?void 0:sW[0])},[sW]),(0,g.useEffect)(()=>{console.log("countryObj",e1)},[e1]);let s0=async()=>{let e=Math.floor(121*Math.random());try{var t,n,s;let o=await (0,A.A)({path:i.API_BASE_URL_MSA+"/cognito-login-service/auth/onboardingWebgateDetails",method:"GET",isFullPath:!0,guestAuthEnabled:!0});if(console.log("Might be the reason for undefined bucket id ->>>>>>>>>>>>>>>>>>>>,",e,null==o||null==(t=o.buckets)?void 0:t.length),(null==o||null==(n=o.buckets)?void 0:n.length)>0){let t=null==o||null==(s=o.buckets)?void 0:s.find(t=>e>=(null==t?void 0:t.start_range)&&e<=(null==t?void 0:t.end_range));return console.log("Might be the reason for undefined bucket id ->>>>>>>>>>>>>>>>>>>>,",t,null==t?void 0:t.bucket_id),null==t?void 0:t.bucket_id}}catch(e){console.log("error:",e)}},s1=async function(e){var t,n,s,o,a,l,u,d,m,g,f,h,v,S,w,A,b,k,E,C,T;let P,N,{is_sibling:O=0,account_created:I=0}=e,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eP(!0);let M=null!=(u=x.name)?u:eE,L=null!=(d=x.emailMobile)?d:eR,{phoneCode:D,isOtpService:R}=sY(),W="",B=JSON.parse(localStorage.getItem("utmData"));("Student"==el||"K-12"==nk||"Jee Learning App"==nk||"Neet Learning App"==nk)&&((N=await s0())||(N=await s0())),localStorage.setItem("WalletEventAfterSignup",!0),console.log("Tab selected and bucket id log:",el,N),(tc&&("smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1])||"enquary_now"==window.location.href.split("?")[1]&&("Smart Class Plus"==nk||"Assessment Centre"==nk||"School Integrated Program"==nk||"Learning App"==nk||"Parent App"==nk||"Teaching App"==nk)||em)&&(W=tg==ev?"":tg);let F="";if((1==nf||5==nf||(P=!1,n1&&sk&&(null==sk?void 0:sk.platform)&&(null==sk?void 0:sk.app_type)=="Parent"&&((null==n1?void 0:n1.countryNew)=="AE"||(null==n1?void 0:n1.countryNew)=="ZA"||(null==n1?void 0:n1.countryNew)=="KE"||(null==n1?void 0:n1.countryNew)=="EG"||(null==n1?void 0:n1.countryNew)=="SA")&&(P=!0),P)||(null==n1?void 0:n1.selectedCountryDropdown)&&(null==n1?void 0:n1.selectedCountryDropdown)!=""&&(null==n1?void 0:n1.selectedCountryDropdown)==1)&&!(F=await nP(x)))return eP(!1),nj({errorName:"normal_error",errorMessage:r.A.SOMETHING_WENT_WRONG}),"";let U={action:"register_user",apikey:i.MSA_JAVA_API_KEY,checksum:"",register_details:{name:M,username:F,mobile_no:0==R?"":L,email:1==R?"":L,postal_code:"",location_source:"",user_type:"Institute"==el?"5":"Parent"==el?"2":"1",is_sibling:O,device_id:null!=(m=sk.device_id)?m:"",source:null!=(g=sk.platform)?g:"website",operating_system_version:ey.os.version,app_version:null!=(f=sk.app_version)?f:"",app_name:"Institute"==el?"Teaching App":"Parent"==el?"Parent App":"Learning App",institute_id:null==eU?void 0:eU.institute_id,institute_name:eB,institute_type:e7},referrer:{adjust_reftag:(0,c.A)(sk,"attributionData.trackerToken",""),forwarded_params:[{adjust_device_id:(0,c.A)(sk,"attributionData.adid","")}],click_time:0,install_time:0,utm_source:(0,c.A)(sk,"attributionData.source","")||(0,c.A)(sk,"attributionData.network","")||(0,c.A)(sN,"utm_source","")||(null==B?void 0:B.utm_source),utm_campaign:(0,c.A)(sk,"attributionData.campaign","")||(0,c.A)(sN,"utm_campaign","")||(null==B?void 0:B.utm_campaign),utm_medium:(0,
1c.A)(sk,"attributionData.medium","")||(null==B?void 0:B.utm_medium)||(0,c.A)(sN,"utm_medium",""),utm_term:(0,c.A)(sk,"attributionData.creative","")||(0,c.A)(sN,"utm_term","")||(null==B?void 0:B.utm_term),utm_content:(0,c.A)(sN,"utm_content","")||(null==B?void 0:B.utm_content),utm_adgroup:(0,c.A)(sk,"attributionData.adgroup","")||(null==B?void 0:B.utm_adgroup)||""}};"kelas"==sM&&(U.register_details.user_timezone=nl),"Student"!=el||tc||(U.register_details.entity_webgate_score=Math.floor(100*Math.random()),U.register_details.package_price_webgate_score=Math.floor(100*Math.random()),U.register_details.package_flow_webgate_score=Math.floor(100*Math.random())),("Student"==el||"K-12"==nk||"Jee Learning App"==nk||"Neet Learning App"==nk)&&(U.register_details.bucket_id=N);let V=localStorage.getItem("redirectURL");V&&"null"!=V&&(U.register_details.reg_source="Experiences"),tc&&(U.account_created=I),td&&(U.register_details.board=nn,U.register_details.opted_class_id=ni,U.register_details.opted_board_id=nr,U.register_details.mode_of_preparation=tw,U.register_details.city_code=null!=(h=to.id)?h:"",U.register_details.state_code=null!=(v=to.state_id)?v:"",U.register_details.city=nF,U.register_details.state=null!=(S=to.state)?S:"",U.register_details.latitude="".concat(sA.lat),U.register_details.longitude="".concat(sA.lng),U.register_details.country=null==e1?void 0:e1.title,U.from_page="AIRTS leads"),U.platform="Institute"==el?2:1,U.webinar_role=W,U.register_details.country_id="".concat(null==e1?void 0:e1.id),U.register_details.country_code=D,tT&&(U.register_details.social_media_registration="1"),tN&&(U.register_details.social_media_registration="2",U.register_details.social_media_id=tI.social_media_id),tj&&(U.register_details.social_media_registration="3",U.register_details.social_media_id=tL.social_media_id),tR&&(U.register_details.social_media_registration="4",U.register_details.social_media_id=tB.social_media_id),"Institute"==el&&1==e7&&(U.register_details.country=null==e1?void 0:e1.title),"Institute"==el&&(U.register_details.city_code=null!=(w=to.id)?w:"",U.register_details.state_code=null!=(A=to.state_id)?A:"",U.register_details.city=nF,U.register_details.state=null!=(b=to.state)?b:"",U.register_details.latitude="".concat(sA.lat),U.register_details.longitude="".concat(sA.lng)),U.register_details.user_type="Institute"==el?5:"Parent"==el?2:1,U.register_details.is_sibling="".concat(O),U.register_details.tnc_accepted="1",sk&&sk.app_hash&&(U.register_details.app_hash=sk.app_hash),console.log("referral code",null==sC||null==(t=sC.extraData)?void 0:t.referral_code);let G=JSON.parse(localStorage.getItem("referral_data",""));console.log("referral code by local storage",G),((null==sC||null==(n=sC.extraData)?void 0:n.referral_code)||(null==G||null==(s=G.extraData)?void 0:s.referral_code))&&(U.register_details.referrer_code=(null==sC||null==(k=sC.extraData)?void 0:k.referral_code)||(null==G||null==(E=G.extraData)?void 0:E.referral_code));let H=i.MSA_JAVA_SALT,q=_();i.NEW_HASH_ALGO_PHASE2&&(U.enc_type=1,q=j.A.SHA512);let z=q(U.action+":"+U.register_details.username+":"+U.apikey+":"+H).toString();U.checksum=z;let J=ep?sZ():"";if(sk.platform?(U.register_details.from_page="",U.register_details.page_url=""):(J?U.register_details.from_page=J:tc&&"smart_class_banner"==window.location.href.split("?")[1]?U.register_details.from_page=(null==(C=localStorage)?void 0:C.getItem("newbanner"))=="true"?"esc-plus-lead-magnet":"esc-plus":tc&&"great_india_school"==window.location.href.split("?")[1]?U.register_details.from_page="great-india-school":tc&&"assessment_center"==window.location.href.split("?")[1]?U.register_details.from_page="assessment_center":tc&&"sipBanner"==window.location.href.split("?")[1]?U.register_details.from_page="SIP":em||tc&&"enquary_now"==window.location.href.split("?")[1]?U.register_details.from_page="EnquireNow-"+nk:"airts"==nv?U.register_details.from_page="AIRTS2024-25":U.register_details.from_page="/"===new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname?"homepage":new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname.substring(1),U.register_details.page_url=new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname.substring(1)),td&&(U.register_details.from_page="AIRTS leads"),localStorage.getItem("scholarshipSignup")&&ir(U),eL){let e=window.location.href,t=e.substring(0,e.lastIndexOf("/")),n=t.substring(t.lastIndexOf("/")+1);U.register_details.reffered_by_user=n}let K=(null==sS?void 0:sS.pathname)||(null==(a=window)||null==(o=a.location)?void 0:o.pathname);if(K&&(null==K?void 0:K.includes("/open-test/"))){let e=null==K||null==(T=K.split("/open-test/")[1])?void 0:T.split("/")[0];e&&(U.referrer.open_test_id=e)}null==(l=localStorage)||l.removeItem("banner_type"),tc||sv({type:p.d2i,payload:{value:0==R?L:"".concat(D,"-").concat(L),isLoginFromUserName:!1}}),np(null==U?void 0:U.register_details),eP(!1),sv((0,y.bP)(U,e8,
1s2,nj,el,e1,et,tC,tT,tP,tN,tO,tj,tM,tc,er,tz,tR,tW,tJ,t9))};console.log("username------------",eq),console.log("name------------",eE);let s2=e=>{5==e5||1==e5||1!=e||tc||(eW(""),eC(""),nU(""),eF("")),e6(e)},s3=async()=>{let e=await (0,y.LU)();if(null==e?void 0:e.length){let t=(null==n1?void 0:n1.countryNew)||localStorage.getItem("internationalizationFlagName")||"IN",n=e;"ID"===t?n=null==e?void 0:e.filter(e=>"01"===e.language_code||"05"===e.language_code):["AE","SA","KE","EG","QA","BH","OM","KW","IQ","JO","LB"].includes(t)&&(n=null==e?void 0:e.filter(e=>"01"===e.language_code||"20"===e.language_code||"04"===e.language_code)),e$(n)}};console.log("test1441",nZ);let s4=async()=>{try{let e=(0,m.bj)();if(0===e.length){let t=await (0,m.Oc)("","GET","",nQ);e=(null==t?void 0:t.data)||(null==t?void 0:t.responseData)||[]}if(e.length>0){let t=e.filter(e=>596===e.board_id||606===e.board_id);t7(t)}}catch(e){console.error("Error fetching board list:",e)}},[s5,s6]=(0,g.useState)({});(0,g.useEffect)(()=>{s4()},[]);let s9=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";eO(!0);let t={action:"institute_list",apikey:i.MSA_JAVA_API_KEY,keyword:e,checksum:""},n=_();i.NEW_HASH_ALGO_PHASE3&&(t.enc_type=1,n=j.A.SHA512);let s=n(t.action+":"+t.apikey+":"+i.MSA_JAVA_SALT).toString();t.checksum=s;try{let e=await (0,A.A)({path:i.API_BASE_URL_MSA+"/cognito-login-service/auth/instituteList ",method:"POST",isFullPath:!0,body:t});eO(!1),eH(e.content)}catch(e){eO(!1)}};(0,g.useEffect)(()=>{"false"==localStorage.getItem("loaderForCountry")&&(sB(sF),localStorage.removeItem("loaderForCountry"))},[localStorage.getItem("loaderForCountry")]),(0,g.useCallback)(e=>{let t=sW.find(t=>t.id==e);t&&(t.phone_code!=(null==e1?void 0:e1.phone_code)&&(eW(""),nU("")),"KE"==t.short_name||"EG"==t.short_name||"SA"==t.short_name?e2({...t,is_otp_service:"1"}):e2(t),nf&&"1"!=nf&&e4(t),"Student"==el?((0,P.sendAdjustEvents)("sign_up_country","When user selects country","Signup",sk.platform?"q9tpx6":"pc2yeb"),(0,P.sendClickStream)("sign_up_country","Dropdown","","","When user selects country")):"Parent"==el?((0,P.sendAdjustEvents)("sign_up_country_p","When user selects country","Signup",sk.platform?"xc6im6":"ateifl"),(0,P.sendClickStream)("sign_up_country_p","Dropdown","","","When user selects country")):"Home Tution"==nK?((0,P.sendAdjustEvents)("sign_up_country_t_hw","When user selects country","Signup",sk.platform?"vsznl1":"yq2yjn"),(0,P.sendClickStream)("sign_up_country_t_hw","Dropdown","","","When user selects country")):((0,P.sendAdjustEvents)("sign_up_country_t_in","When user selects country","Signup",sk.platform?"ysyc2u":"yim3db"),(0,P.sendClickStream)("sign_up_country_t_in","Dropdown","","","When user selects country")))});let s8=()=>{(0,C.vI)(),nJ(!0);try{"ios"==sk.platform?(0,C.BL)():navigator.geolocation.getCurrentPosition(function(e){s7(e)},e=>{sk.platform||alert(e.message),nJ(!1)})}catch(e){nJ(!1),console.log("location",e)}};window.receiveIOSPosition=e=>{iv(eR)&&(null==e1?void 0:e1.is_otp_service)!=1||s7(e)};let s7=async e=>{sb({lat:e.coords.latitude,lng:e.coords.longitude}),a.A.fromLatLng(e.coords.latitude,e.coords.longitude).then(e=>{let t,n,s,i;console.log(e,"responseresponseresponse");let o=e.results[0].formatted_address;for(let i of e.results[0].address_components)for(let e of i.types)switch(e){case"locality":t=i.long_name;break;case"administrative_area_level_1":n=i.long_name;break;case"administrative_area_level_2":t||(t=i.long_name);break;case"country":let o=sW.find(e=>e.short_name==i.short_name);o&&e2(o),s=i.long_name}let r=e.results;if(r[0]){let e=r[0].formatted_address.split(",");i=e.length,s||(s=e[i-1]),n||(n=e[i-2]),t||(t=e[i-3])}else console.log("laddress not found");nU(t),(0,C.j)(t),console.log("city, state, country",t,n,s),console.log(o);let a={...e.results[0]};a.state=n,console.log(a),tr(a),nJ(!1),nq(!0),t&&nG(!0),"facebook_error"!=nx.errorName&&nj({errorName:"",errorMessage:""})},e=>{console.error(e),nJ(!1),nq(!1)})};(0,g.useCallback)((0,u.A)(s9,700),[]);let ie=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"user_name",n={action:"cognito_is_user_register",apikey:i.MSA_JAVA_API_KEY,checksum:"",entity_name:t,entity_value:e,country_code:null==e1?void 0:e1.phone_code},s=_();i.NEW_HASH_ALGO_PHASE2&&(n.enc_type=1,s=j.A.SHA512);let o=s(n.action+":"+n.apikey+":"+n.entity_value+":"+i.MSA_JAVA_SALT).toString();n.checksum=o;try{return await (0,A.A)({path:i.API_BASE_USER_MANAGEMENT_MSA+"/cognito-login-service/auth/isUsern
1ameRegister?v=2",isFullPath:!0,method:"POST",body:n,isTokenEnabled:!1})}catch(e){return console.log(e),e}},it=function(){var e,t,n,s;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=null!=(t=i.name)?t:eE,a=null!=(n=i.emailMobile)?n:eR;if(null==(e=localStorage)?void 0:e.getItem("short_package_class")){let e=null==(s=localStorage)?void 0:s.getItem("short_package_class");(null==e?void 0:e.includes("flexi"))?(0,P.sendClickStream)("FI_subscription_Register","Button","","","when the user Clicks on register now from subscription which was landed from guided learning",""):(null==e?void 0:e.includes("practice"))&&(0,P.sendClickStream)("P&T_subscription_Register","Button","","","when the user Clicks on register now from subscription which was landed from Pratice and test page","")}if((null==e1?void 0:e1.is_otp_service)!=1||(0,T.JA)(null==e1?void 0:e1.short_name,a))if((null==e1?void 0:e1.is_otp_service)!=0||(0,T.Mr)(eR))if("Institute"==el&&eB.trim().length<3)nj({errorName:"instituteName",errorMessage:r.A.please_fill_institute});else if(o&&(!o||(0,k.v)(o)))if("Institute"!=el||1!=e7||nF)if(nW){nj({errorName:"",errorMessage:""});let e=tc?"/"===new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname?"homepage":new URL(window.location!=window.parent.location?document.referrer:document.location.href).pathname.substring(1).replace(/-/g,"_"):"";"Institute"==el?(console.log("event captured at Signup form fill next "),(0,P.sendAdjustEvents)("TL_Next_step"+"".concat(e?"_"+e:""),"when user clicks on next after filling the Details","Signup",sk.platform?"cmzk3n":"dcrzz7"),"Home Tution"===nK?(0,P.sendClickStream)("Basic Details Screen","Button","","Netcore","Filled basic details & clicked on CTA - Next (after clicking on Home tutor)"):(0,P.sendClickStream)("Basic Details Screen","Button","","Netcore","Filled basic details & clicked on CTA - Next (after clicking on institutes)")):"Parent"==el?((0,P.sendAdjustEvents)("sign_up_details_p"+"".concat(e?"_"+e:""),"When user has filled name, username, password, confirm password, mobile number/email id and clicks on next and lands on OTP screen","Signup",sk.platform?"uc62yz":"rskenr"),(0,P.sendClickStream)("Basic Details Screen","Button","","Netcore","Filled basic details & clicked on CTA - Next (after clicking on Parent)")):(console.log("event captured at Signup form fill next "),(0,P.sendAdjustEvents)("sign_up_details"+"".concat(e?"_"+e:""),"When user has filled name, username, password, confirm password, mobile number/email id and clicks on next","Signup",sk.platform?"x0knp9":"8va4i9"),(0,P.sendClickStream)("Basic Details Screen","Button","","Netcore","Filled basic details & clicked on CTA - Next (after clicking on Student)"));let t=(0,P.setMixPanel)("Sign Up Details","cta_clicked");if(t.text="Sign Up",t.cta_title="Sign Up",t.cta_type="static",t.cta_class="Primary",t.service_group="Signup",t.persona="Student"===el||"Parent"===el?el:"Home Tution"===nK?"Home Tution":"Institute",(0,P.sendClickStreamFireabaseAdjustEvents)("Clicked_SignUpCTA","Button",t,"mixpanel","Clicked Sign up cta"),tc&&("smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1]))if(tg==ev)return void tk(!0);else tk(!1),sQ(i);else sQ(i)}else"Institute"==el?"Home Tution"==nK&&((0,P.sendAdjustEvents)("sign_up_T&C_t_hw","When users dont select T&C","Signup",sk.platform?"ozrlpc":"68dz03"),(0,P.sendClickStream)("sign_up_T&C_t_hw","Button","","","When users dont select T&C")):"Student"==el?((0,P.sendAdjustEvents)("sign_up_T&C","When users dont select T&C","Signup",sk.platform?"u5s6vv":"mhdqmr"),(0,P.sendClickStream)("sign_up_T&C","Button","","","When users dont select T&C")):"Parent"==el&&((0,P.sendAdjustEvents)("sign_up_T&C_p","When users dont select T&C","Signup",sk.platform?"fwfcin":"j25hmf"),(0,P.sendClickStream)("sign_up_T&C_p","Button","","","When users dont select T&C")),nj({errorName:"normal_error",errorMessage:r.A.SIGNUP_IAGREE_CHECK});else nj({errorName:"city",errorMessage:r.A.SIGNUP_ENTER_CITY});else"Institute"==el?"Home Tution"==nK?((0,P.sendAdjustEvents)("sign_up_name_invalid_t_hw","When users enter incorrect name","Signup",sk.platform?"qvxtxs":"dyc3tn"),(0,P.sendClickStream)("sign_up_name_invalid_t_hw","Input","","","When users enter incorrect name")):((0,P.sendAdjustEvents)("sign_up_name_invalid_t_in","When users enter incorrect name","Signup",sk.platform?"29w0du":"j4ekhq"),(0,P.sendClickStream)("sign_up_name_invalid_t_in","Input","","","When users enter incorrect name")):"Student"==el?((0,P.sendAdjustEvents)("sign_up_name_invalid","When users enter incorrect name","Signup",sk.platform?"sxgbxr":"t7mbi7"),(0,P.sendClickStream)("sign_up_name_invalid","Input","","","When users enter incorrect name")):"Parent"==el&&((0,P.sendAdjustEvents)("sign_up_name_invalid_p","When users dont select T&C","Signup",sk.platform?"ou3ze4":"vcom3w"),(0,P.sendClickStream)("sign_up_name_invalid_p","Input","","","When users enter incorrect name")),nj({errorName:"name",errorMessage:o.length>0?r.A.SIGNUP_NAME_INVALID_MSG:r.A.SIGNUP_NAME_VAL_MSG});else a.length>0?nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.SIGNUP_FILL_EMAIL_VAL_MSG}):nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.SIGNUP_FILL_EMAIL_VAL_MSG_EMP});else a.length>0?("Institute"==el?"Home Tution"==nK?((0,P.sendAdjustEvents)("sign_up_incorrect_mobile_t_hw","When users enter incorrect mobile number","Signup",sk.platform?"8nzpj4":"i9tyq6"),(0,P.sendClickStream)("sign_up_incorrect_mobile_t_hw","Input","","","When users enter incorrect mobile number")):((0,P.sendAdjustEvents)("sign_up_incorrect_mobile_t_in","When users enter incorrect mobile number","Signup",sk.platform?"38967h":"2sb98q"),(0,P.sendClickStream)("sign_up_incorrect_mobile_t_in","Input","","","When users enter incorrect mobile number")):"Student"==el?((0,P.sendAdjustEvents)("sign_up_incorrect_mobile","When users enter incorrect mobile number","Signup",sk.platform?"nkaoa4":"jfc3xs"),(0,P.sendClickStream)("sign_up_incorrect_mobile","Input","","","When users enter incorrect mobile number")):"Parent"==el&&((0,P.sendAdjustEvents)("sign_up_incorrect_mobile_p","When users dont select T&C","Signup",sk.platform?"vx70ii":"tjkfj1"),(0,P.sendClickStream)("sign_up_incorrect_mobile_p","Input","","","When users enter incorrect mobile number")),nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.SIGNUP_VALID_MOB_VAL_MSG})):nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:r.A.SIGNUP_ENTER_MOB})},is=async function(){var t,n,s;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t9(!1);let r=sq(),a=(0,T.zh)(String((null==o?void 0:o.mobile)||(nQ?r:"")).trim()),l=String((null==(t=e.bannerData)?void 0:t.examName)||"JEE").trim(),c=Math.floor(1e4+9e4*Math.random()),u=String((null==o?void 0:o.name)||"").trim()||"".concat(l," ").concat(c),d=null;try{let t=l.toUpperCase(),r=encodeURIComponent((null==o?void 0:o.score)||""),a=e=>{let t=String(null!=e?e:"moderate").trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):"Moderate"},c="".concat(i.UPLOAD_FILE_GCP_URL,"/rank-predictor-score-data?exam=").concat(encodeURIComponent(l),"&score=").concat(r);if("JEE_MAIN"===t){let e=(null==o?void 0:o.difficulty)&&String(o.difficulty).trim()?String(o.difficulty).trim():"moderate";c+="&difficulty=".concat(encodeURIComponent(a(e)))}else c+="&difficulty=".concat(encodeURIComponent(a((null==e||null==(s=e.bannerData)||null==(n=s.data)?void 0:n.level)||"moderate")));let u=await fetch(c);d=await u.json()}catch(e){console.error("Rank predictor API error:",e)}if(eM({...o,apiData:d}),eC(u),eW(a),nQ){t5(!1),nj({errorName:"",errorMessage:""}),er=!0,s1({is_sibling:0,account_created:es=0},{name:u,emailMobile:a});return}await sH(a),it({name:u,emailMobile:a})},ii=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=ep&&nQ?sq():"",n=(0,T.zh)(String(e||t||"").trim());eW(n),10===n.length&&await sH(n)},io=(0,g.useRef)("");(0,g.useEffect)(()=>
1{if(!(ep&&nQ))return;let{phoneCode:e,shortName:t,countryTitle:n,isOtpService:s}=sY();e&&e2(i=>{var o,r;let a={...i,phone_code:(null==i?void 0:i.phone_code)||e,short_name:(null==i?void 0:i.short_name)||t,title:(null==i?void 0:i.title)||n,is_otp_service:null!=(r=null!=(o=null==i?void 0:i.is_otp_service)?o:s)?r:1};return a.phone_code===(null==i?void 0:i.phone_code)&&a.short_name===(null==i?void 0:i.short_name)&&a.title===(null==i?void 0:i.title)&&a.is_otp_service===(null==i?void 0:i.is_otp_service)?i:a})},[ep,nQ,sY]),(0,g.useEffect)(()=>{if(!(ep&&nQ))return;let e=sq();e&&io.current!==e&&(io.current=e,ii(e))},[ep,nQ,sq,null==e1?void 0:e1.is_otp_service]),window.fetchPhoneNumber=e=>{if(console.log("phone number ===> ",e),1==e5&&(null==e?void 0:e.number)){var t,n;console.log("phone number sign ==> ",null==e||null==(t=e.number)?void 0:t.significant,null==e?void 0:e.countryCode),eW(null==e||null==(n=e.number)?void 0:n.significant);let s={};(s=null==sW?void 0:sW.find(t=>t.phone_code==(null==e?void 0:e.countryCode)))&&e2(s)}};let ir=e=>{},ia=tc&&"enquary_now"===window.location.href.split("?")[1]&&("K-12"===nk||"Neet Learning App"===nk||"Jee Learning App"===nk),il=eg&&("K-12"===nk||"Neet Learning App"===nk||"Jee Learning App"===nk),ic=tc&&"enquary_now"===window.location.href.split("?")[1]&&"Teaching App"===nk&&2===sf,iu=em&&!eg&&"Teaching App"===nk&&2===sf,id=!(ic||iu||ia||il)&&(em||tc&&("smart_class_banner"===window.location.href.split("?")[1]||"great_india_school"===window.location.href.split("?")[1]||"assessment_center"===window.location.href.split("?")[1]||"sipBanner"===window.location.href.split("?")[1]||"enquary_now"===window.location.href.split("?")[1]))&&tg==ev,i_=sP||"Institute"==el&&1==e7&&!eB||sE||eT||!eE||!eR||"Institute"==el&&1==e7&&!nF||!nW||id;console.log("=== Register Button Debug ==="),console.log("loader:",sP),console.log("tabSelected:",el),console.log("instituteType:",e7),console.log("instituteName:",eB),console.log("loginLoader:",sE),console.log("loaderLocal:",eT),console.log("name:",eE),console.log("emailMobile:",eR),console.log("city:",nF),console.log("termsagree:",nW),console.log("isStaticPage:",tc),console.log("webinar_role:",tg),console.log("page_name:",nk),console.log("insValue:",sf),console.log("fromReferAfriend:",eL),console.log("URL params:",window.location.href.split("?")[1]),console.log("Webinar condition check:",tc&&"enquary_now"==window.location.href.split("?")[1]&&("Smart Class Plus"==nk||"Assessment Centre"==nk||"School Integrated Program"==nk||"Learning App"==nk||"Teaching App"==nk&&3==sf||"Parent App"==nk)&&"Role"==tg),console.log("notAllFieldFill:",i_),console.log("============================="),(0,g.useCallback)(e=>{(0,P.sendClickStream)("EnteredName","input field","","Netcore","User entered name"),(0,P.sendClickStream)("Sign Up","input field","","Netcore","EnteredName");let t=String(e.target.value||"").replace(RegExp("[^\\p{L}\\p{M}\\s]","gu"),"").replace(/^\s+/,"");eC(t),t.length>0&&eR.length>0&&!ts&&ez(im()+ig()),(nx.errorName||nx.errorMessage)&&nj({errorName:"",errorMessage:""}),eE.length>0&&eR.length>0&&!ts&&ez(im()+ig())},[nx,eE,eR,ts]),(0,g.useCallback)(e=>{let t=e.target.value.replace(/[^A-Za-z ]/g,"");t.startsWith(" ")||eC(t)},[]),(0,g.useCallback)(e=>{(0,P.sendClickStream)("EnteredMobile","input field","","Netcore","User entered mobile"),(0,P.sendClickStream)("Sign Up","input field","","Netcore","EnteredMobile");let t=(0,T.zh)(e.target.value);eW(t),(nx.errorName||nx.errorMessage)&&nj({errorName:"",errorMessage:""}),eE.length>0&&t.length>0&&!ts&&ez(im()+ig())},[nx,eE,ts]),(0,g.useEffect)(()=>{ta?s2(5):s2(1)},[ta]),(0,g.useEffect)(()=>{var t,n;em&&(null==(n=e.fromForm)||null==(t=n.onCityPickerOpenChange)||t.call(n,ta))},[ta,em]),(0,g.useCallback)(e=>{(0,P.sendClickStream)("EnteredMobile","input field","","Netcore","User entered mobile"),(0,P.sendClickStream)("Sign Up","input field","","Netcore","EnteredMobile"),(null==e1?void 0:e1.is_otp_service)==1?(isNaN(e.target.value)&&eW(e.target.value),isNaN(e.target.value)||e.target.value.includes(".")||e.target.value.includes(" ")||eW(e.target.value)):eW(e.target.value),eE.length>0&&e.target.value.length>0&&!ts&&ez(im()+ig())},[eE,ts,eR,e1]),(0,g.useCallback)(e=>{console.log("error",nx),(nx.errorName||nx.errorMessage)&&nj({errorName:"",errorMessage:""}),eK(e.target.value)},[nx]),console.log("error----",nx),(0,g.useCallback)(e=>{(nx.errorName||nx.errorMessage)&&nj({errorName:"",errorMessage:""}),eZ(e.target.value)},[nx]),(0,g.useCallback)(e=>{e.preventDefault()},[]),(0,g.useCallback)(e=>{console.log(e.target.value,"eeeeeeee",e1),(null==e1?void 0:e1.is_otp_service)==1&&(!(0,T.$0)(e)||e.target.value.length>(0,T.lV)(null==e1?void 0:e1.short_name)-1)&&((nx.errorName||nx.errorMessage)&&nj({errorName:"",errorMessage:""}),e.preventDefault(),e.stopPropagation())},[e1,nx]);let ip=(0,g.useCallback)(e=>{if("Enter"===e.key&&i_){let t=e.target.form,n=Array.prototype.indexOf.call(t,e.target);t.elements[n+1].focus(),e.preventDefault(),e.stopPropagation()}"Enter"!==e.key||i_||(it(),e.preventDefault(),e.stopPropagation()),"40"==e.keyCode&&eG.length>0&&eB.length>=3&&(sG.current.focus(),sd(!0))},[sP,sE,eT,eE,eR,eq,eY,eJ,eB,eG,sG]);(0,g.useCallback)(e=>{ip(e),e.defaultPrevented||!(e.ctrlKey||e.metaKey||["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.ke
1y))&&(RegExp("^[\\p{L}\\p{M}\\s]$","u").test(e.key)||e.preventDefault())},[ip]);let im=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eE;console.log("nameLength====",t);let s=String(null!=n?n:"").split(" ").join("");return s.substring(0,t).padEnd(t,function(e){let t="abcdefghijklmnopqrstuvwxyz",n="";for(var s=0;s<e;s++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}(t-s.substring(0,t).length))},ig=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eR,s=String(null!=n?n:"");return iv(s)?ih(s,e):s.slice(-e).padEnd(e,function(e){let t="0123456789",n="";for(var s=0;s<e;s++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}(e-s.slice(-e).length))},ih=(e,t)=>{if(t>=e.length)throw Error("Count should be less than the length of the input string.");let n="";for(let s=0;s<t;s++){let t;do{let n=Math.floor(Math.random()*e.length);t=e.charAt(n)}while(-1==="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(t));n+=t}return n},iv=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);window.location.pathname,(0,g.useEffect)(()=>{iS()},[]),(0,g.useEffect)(()=>{iS()},[window.google]),(0,g.useEffect)(()=>{1==e5&&sl&&sc(!1),iS()},[e5]),(0,g.useLayoutEffect)(()=>{if(!tc&&iA()&&"Student"==el&&!0!=nS&&!sL&&1==e5){let e=setTimeout(()=>{iS()},100);return()=>clearTimeout(e)}},[e5,el,tc,nS,sL]);let iS=()=>{if(window.google&&window.google.accounts&&window.google.accounts.id){let e=document.getElementById("buttonDiv");if(e){e.hasChildNodes()&&(e.innerHTML="");try{window.google.accounts.id.initialize({client_id:"288532496498-43t5mtfpoittob1ho99kerk4rr3ratbj.apps.googleusercontent.com",callback:iy}),window.google.accounts.id.renderButton(e,{theme:"outline",size:"large",shape:"circle",type:"icon"})}catch(e){console.error("Error initializing Google Sign-In:",e)}}}};async function iy(e){console.log("Encoded JWT ID token: ",e),console.log((0,E.VB)(e.credential));let t=(0,E.VB)(e.credential);eP(!0),iw(t,2)}(0,g.useEffect)(()=>{sT.status&&sT.social_media_id&&(ib({email:sT.email,username:sT.social_media_id,name:sT.name},null==sT?void 0:sT.social_media_type),sv((0,S.kw)({})))},[JSON.stringify(sT)]);let iw=async(e,t)=>{let{checkSocialMediaIdExists:s}=await Promise.resolve().then(n.bind(n,17621)),i=await s(e.username,e.email,t);if(console.log("existDet",i),("SM002"==i.message_code||"SM004"==i.message_code)&&(eP(!1),ib(e,t)),"SM001"==i.message_code||"SM003"==i.message_code||"SM005"==i.message_code||"SM006"==i.message_code)try{let n={};n.entity_value=e.email,n.entity_name="email","Institute"==el&&2==ec?n.role_type="home_tuition":"Parent"==el?n.role_type="parent":"Student"==el&&(n.role_type="student"),n.staticPage=tc&&!em;let s=await (0,L.p5)(n,el,ec);if(console.log("login_response",s),en=!1,eP(!1),s&&(null==s?void 0:s.message_code)=="LO006")return nj({errorName:(null==e1?void 0:e1.is_otp_service)==1?r.A.Mob_FullNew:r.A.EmailNew,errorMessage:"Your request is pending approval from the admin. You will be notified of their decision as soon as possible."}),"";if(s.isAllowed)return Z(),sv((0,M.appleLgnSign)({social_media_id:e.username,email:e.email,name:e.name,status:!0,social_media_type:t})),!0;if(!s.isAllowed){Z(),sv((0,S.kw)({social_media_id:e.username,email:e.email,name:e.name,status:!0,social_media_type:t}));return}if(s&&1==s.entity_state){if("Institute"==el&&2==ec&&(1==s.user_type||2==s.user_type)&&(eP(!1),ib(e,t)),"Student"==el)if(1==s.user_type||2==s.user_type||3==s.user_type||(null==s?void 0:s.user_type)==5&&(null==s?void 0:s.institute_type)==1)if("LO010"==s.message_code){Z(),sv((0,S.kw)({social_media_id:e.username,email:e.email,name:e.name,status:!0,social_media_type:t}));return}else eP(!1),ib(e,t);else{Z(),sv((0,S.kw)({social_media_id:e.username,email:e.email,name:e.name,status:!0,social_media_type:t}));return}"Parent"==el&&(1==s.user_type||3==s.user_type||5==s.user_type&&2==s.institute_type)&&(eP(!1),ib(e,t))}}catch(e){eP(!1),console.log(e)}eP(!1)},iA=()=>null==sk||!sk.platform||(null==sk?void 0:sk.app_type)=="Student",ib=(e,t)=>{eW(e.email),2==t&&tO(!0),3==t&&tM(!0),4==t&&tW(!0),4==t?setTimeout(()=>{e2(e=>({...e,is_otp_service:0}))},1e3):e2(e=>({...e,is_otp_service:0})),2==t&&tx({social_media_id:e.username}),3==t&&tD({social_media_id:e.username}),4==t&&tF({social_media_id:e.username});let n=e.name.replace(/[^a-zA-Z0-9 ]/g,"");eC(n),"Institute"==el&&2==e7&&eF(n?"".concat((0,k.P)(n.split(" ")[0]),"'s Classes"):"")};console.log("iframeSignupType iframeSignupType iframeSignupType",sP,eT,sE),console.log("props----------",e5);let ik=(0,g.useRef)();return(0,g.useLayoutEffect)(()=>{ik.current&&(setTimeout(()=>{let e=null==ik?void 0:ik.current;if(!e)return;let t={event:"height__",clientHeight:e.clientHeight};tc&&window.parent.postMessage(JSON.stringify(t),"*")},100),(null==ik?void 0:ik.current)&&console.log(ik.current.clientHeight,"refrefref"))},[ik,ik.current?ik.current.clientHeight:0,e5,ec,el,nx]),(0,g.useEffect)(()=>{let e;if(!ep||!t4)return;let t=()=>{let e=ik.current;if(!e)return;try{let e=document.activeElement;e&&e!==document.body&&"function"==typeof e.blur&&e.blur()}catch(e){}
1let t=e.closest(".jeeRankBanner")||e,n=window.matchMedia("(max-width: 768px)").matches,s=t.getBoundingClientRect().top+window.pageYOffset-(n?100:150);window.scrollTo({top:Math.max(0,s),left:0,behavior:"auto"})};t();let n=[0,50,120,250,450,750,1100].map(e=>window.setTimeout(t,e));return"undefined"!=typeof ResizeObserver&&ik.current&&(e=new ResizeObserver(()=>{t()})).observe(ik.current),()=>{n.forEach(e=>window.clearTimeout(e)),e&&e.disconnect()}},[ep,t4]),console.log("siblingMorethan2----------",ep,e5,t4),(0,s.jsxs)(s.Fragment,{children:[ep&&!t4?(0,s.jsx)(H.A,{bannerData:e.bannerData,onSubmit:is,onMobileBlur:ii,loading:eT,hideNameField:sK,hideMobileField:sK,initialName:sz}):null,(0,s.jsxs)("div",{ref:ik,children:[(0,s.jsx)(f.A,{onChange:e=>{ew(e),console.log("window.GlobalFunctions.consoleLog",JSON.stringify(e))}}),(2==e5||4==e5)&&(0,s.jsx)(eh,{registerDetails:n_,boardClassData:s5,isEmailCase:tJ,emailMobile:eR,isMobile:!ee.test(eR),countryObj:e1,request_timestamp:e9.request_timestamp,signusername:es?eq.toLowerCase():"",isShowThankYouPage:tc&&[2,3,4].includes(Number(nf)),name:eE,gotomyacc:sl,password:eJ,FromReferAfriend:eL,from:"signup",tabSelected:el,instituteType:e7,setCurrentPage:s2,fromForm:null!=(K=e.fromForm)?K:null,isFromSmartClassPage:tc&&("smart_class_banner"==window.location.href.split("?")[1]||"great_india_school"==window.location.href.split("?")[1]||"assessment_center"==window.location.href.split("?")[1]||"sipBanner"==window.location.href.split("?")[1])&&tE,isUserExist:en,isTrueCaller:tT,isGoogle:tN,userId:sm,loaderUpdate:e=>eP(e),googleSignupData:tI,isFacebook:tj,isApple:tR,facebookSignupData:tL,appleSignupData:tB,isAccountCreated:es,isSignUpMsg:ei,isInstituteAdmin:eo,pageFrom:nk,pageFromName:tG,isInstitueAlreadyExist:tE,isInstituteMessage:tq,rankFormResultData:ej,openLoginModalOnRankImprove:t6,leadFormVariant:"jee-rank-banner",onLeadOtpVerified:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return nT(e)},skipLeadOtpVerification:!!(ep&&nQ&&(null==n$?void 0:n$.mobileNumber)!=""),isLeadFormFlow:tc&&"test_series"!==tp&&(null==e?void 0:e.iframeSignupType)!=="test_series",iframeSignupType:tp,selectedCourse:nr,selectedClass:ni,setIsCenterModal:e.setIsCenterModal,isAIRTSonlyInside:null==e?void 0:e.isAIRTSonlyInside,handleShowContentModal:e.handleShowContentModal,showLoader:eI,setShowLoader:ex,cityData:to,bannerData:null==e?void 0:e.bannerData,city:nF}),3==e5&&(0,s.jsx)("div",{className:"AddSiblingModalOverlay",children:(0,s.jsx)("div",{className:"AddSiblingModalCard",children:(0,s.jsx)(Q,{onLoginClick:()=>{(0,P.sendClickStream)("sibling login","Text Button"),localStorage.setItem("isSocialMediaSignIn",JSON.stringify(!0)),"Student"==el&&(tc&&(ei=!0,er=!0,s1({is_sibling:1,account_created:es=0})),ez(""),sc(!0),s2(tT||tN||tj||tR?4:2),(0,P.sendAdjustEvents)("Sign_up_mobile_registered_sign_in","When user lands on Mobile number/ email already registered screen and selects sign in and lands on sign in screen","Signup",sk.platform?"pln8g9":"fvipm0"),(0,P.sendAdjustEvents)("Sign_up_mobile_registered_sign_in","When user lands on Mobile number/ email already registered screen and selects sign in","Signup",(sk.platform,"")),(0,P.sendClickStream)("Sign_up_mobile_registered_sign_in","Screen","","","When user lands on Mobile number/ email already registered screen and selects sign in"))},onAddSiblingClick:()=>{(0,P.sendClickStream)("sibling add sibling","Text Button"),console.log("siblingMorethan2",s_),i.SIBLING_CHANGES_ALLOWED&&s_?(ez(""),sc(!0),s2(tT||tN||tj||tR?4:2)):(ei=!0,s1({is_sibling:1,account_created:es=1}),"Student"==el&&((0,P.sendAdjustEvents)("Sign_up_mobile_registered_enter_OTP","When user lands on Mobile number/ email already registered screen and selects add new user and lands on Enter OTP screen","Signup",sk.platform?"re1c58":"38dig0"),(0,P.sendClickStream)("Sign_up_mobile_registered_enter_OTP","Screen","","","When user lands on Mobile number/ email already registered screen and selects add new user and lands on Enter OTP screen")))},moveBack:()=>{(0,P.sendClickStream)("sibling back","Icon button"),s2(1)},iframeSignupType:tp,selectedCourse:nr,selectedClass:ni,setIsCenterModal:e.setIsCenterModal,isAIRTSonlyInside:null==e?void 0:e.isAIRTSonlyInside,loading:eT})})}),5==e5&&(0,s.jsx)(Y,{setLocationOpen:tl,countryObj:e1,getLocation:s8,tabSelected:el,selectedLocation:e=>{console.log(e),nU(e.city),tr(e.cityData),nJ(!1),nq(!0),nG(!0),(0,C.j)(e.city),"Student"===el?((0,P.sendAdjustEvents)("sign_up_enter_city","When enters city name and selects city and lands on sign up screen","Signup",sk.platform?"3w75z8":"5pqvvm"),(0,P.sendClickStream)("user_city_searched","Dropdown","","","When enters city name and selects city and lands on sign up screen")):"Parent"===el?((0,P.sendAdjustEvents)("sign_up_enter_city_p","When enters city name and selects city and lands on entercity, country screen page","Signup",sk.platform?"t3aw1q":"3a9doc"),(0,P.sendClickStream)("user_city_searched_p","Dropdown","","","When enters city name and selects city and lands on sign up screen")):"Home Tution"==nK?((0,P.sendAdjustEvents)("sign_up_enter_city_t_hw","When enters city name and selects city and lands on sign up screen","Signup",sk.platform?"5nujwq":"msre1o"),(0,P.sendClickStream)("user_city_searched_t_hw","Dropdown","","","When enters city name and selects city and lands on sign up screen")):((0,P.sendAdjustEvents)("sign_up_enter_city_t_in","When enters city name and selects city and lands on sign up screen","Signup",sk.platform?"ey5c4j":"
1cb2k6t"),(0,P.sendClickStream)("user_city_searched_t_in","Dropdown","","","When enters city name and selects city and lands on sign up screen"))}})]})]})}},75706:()=>{}}]);

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.