1function showFlex(e){e.css("display","flex")}function switchTab(e,o,t){if(!e.hasClass("tab-focused")&&(e.hasClass("tab-login")||e.hasClass("tab-register"))&&$(".common-popup").is(":visible")){var n="Register";e.hasClass("tab-login")&&(n="Login"),gaTrigger(global_content.param1,"PopupSwitch",n)}t.hide(),showFlex(o),$(".common-popup .tab").removeClass("tab-focused"),e.addClass("tab-focused")}function showVisibility(e){e.parents(".common-form-element").find("label").css("visibility","visible")}function hideVisibility(e){e.parents(".common-form-element").find("label").css("visibility","hidden")}function showVisibilityCommon(e){e.css("visibility","visible"),e.removeClass("hide-visibility")}function hideVisibilityCommon(e){e.addClass("hide-visibility"),e.css("visibility","hidden")}function getUrlParameter(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var o=new RegExp("[\\?&]"+e+"=([^&#]*)"),t=o.exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function showCommonPopup(e,o){var t=!!o&&$(o.currentTarget).hasClass("createResume"),n=!!o&&$(o.currentTarget).hasClass("createResumeRBTemplate"),i=!!o&&$(o.currentTarget).hasClass("rbtemplateDownload"),a=!!o&&$(o.currentTarget).hasClass("scoreResume"),r=!!o&&$(o.currentTarget).hasClass("jobsButton"),s=!!o&&$(o.currentTarget).hasClass("mockAITrial"),m=!!o&&$(o.currentTarget).hasClass("readMoreRedirect");switch($(".common-popup-body").removeClass("mockAITrialCheck").removeClass("createResumeCheck").removeClass("scoreResumeCheck").removeClass("jobClicked").attr("for",""),$(".popup-screen").hide(),$(".common-popup").attr("id",e),$(".main_wrapper").addClass("freeze-container"),$(".error-border").removeClass("error-border"),$(".tab-login-body .tab-row-1 .custom-2nd-heading-new-popUp").hide(),$("body").addClass("overflowHidden").trigger("bodyOverflow"),0!=$("w-div").length,$(this).data("loginregsrc")&&(commonConfig.details.source=$(this).data("loginregsrc")),e){case"completeProfile":showFlex($(".complete-profile-details-new")),showFlex($(".common-popup"));break;case"tncRegister":showFlex($(".tnc-register")),showFlex($(".common-popup"));break;case"loginPopup":$(".popup-screen").hide(),registerPopupCustomMessageSetter($(this).data("custommsgtype")),showFlex($(".login-register-tab")),switchTab($(".tab-login"),$(".tab-login-body"),$(".tab-register-body")),showFlex($(".common-popup"));break;case"registerPopup":$(".popup-screen").hide(),registerPopupCustomMessageSetter($(this).data("custommsgtype")),commonConfig.details.source=getUrlParameter("source")?getUrlParameter("source"):window.location.pathname,showFlex($(".login-register-tab")),switchTab($(".tab-register"),$(".tab-register-body"),$(".tab-login-body")),showFlex($(".common-popup"));break;case"loginWithOTP":commonConfig.details.userEmail=getUrlParameter("email"),commonConfig.flowUrl=commonConfig.loginAjaxUrl,commonConfig.details.candidateID=getUrlParameter("candidate_id"),$("#emailLoginUsingOTP").val(commonConfig.details.userEmail),$(".login-using-otp .otp-login-title").text("Login using OTP"),$("#loginUsingOTPForm").data("submitUrl",commonConfig.loginAjaxUrl),$(".login-using-otp .custom-heading-new-popUp").text(commonConfig.textContent.otpForRegisterH1),showFlex($(".login-using-otp")),$(".login-using-otp .custom-2nd-heading-new-popUp").show(),$(".otp-login-title").show(),resendOtp.call($("#resendOTPLoginUsingOTP")),showFlex($(".common-popup"))}if(n&&($(".common-popup-body").addClass("createResumeRBTemplateClass"),socialRedirectValue="createResumeRBTemplate"),t&&($(".common-popup-body").addClass("createResumeCheck"),socialRedirectValue="createResume"),i?($(".common-popup-body").addClass("RBTemplateDoownloadClass"),socialRedirectValue="RBTemplateDoownloadClass"):a&&($(".common-popup-body").addClass("scoreResumeCheck"),socialRedirectValue="scoreResume"),r){var c=$(o.currentTarget).attr("for");$(".common-popup-body").addClass("jobClicked"),$(".common-popup-body").attr("for",c),socialRedirectValue="jobApply&jid="+c}if(s&&($(".common-popup-body").addClass("mockAITrialCheck"),socialRedirectValue="mockAITrial"),commonConfig.isApplyClicked=!1,m){var c=$(o.currentTarget).parents(".content").find('[name="jobEventID"]').val();$(".common-popup-body").addClass("readMoreRedirect"),$(".common-popup-body").attr("for",c),commonConfig.isApplyClicked=!0,socialRedirectValue="readMoreRedirect&jid="+c}null==socialRedirectValue&&(socialRedirectValue=commonConfig.details.source);var l=$("a.social-login-coin-new.facebook-coin.loginComponent:visible"),g=$(".tab-register-body a.social-login-coin-new.facebook-coin.loginComponent"),p=l.attr("href");l.attr("href",p+"&pageSource="+socialRedirectValue),g.attr("href",p+"&pageSource="+socialRedirectValue);var d=$("a.social-login-coin-new.linkedin-coin.loginComponent:visible"),u=$
1(".tab-register-body a.social-login-coin-new.linkedin-coin.loginComponent"),f=d.attr("href");d.attr("href",f+"&pageSource="+socialRedirectValue),u.attr("href",f+"&pageSource="+socialRedirectValue);var h=$("a.social-login-coin-new.google-plus-coin.loginComponent:visible"),C=$(".tab-register-body a.social-login-coin-new.google-plus-coin.loginComponent"),b=h.attr("href");h.attr("href",b+"&pageSource="+socialRedirectValue),C.attr("href",b+"&pageSource="+socialRedirectValue);for(var w in chatIconsDisplay)chatIconsDisplay[w]=$("#"+w).css("display");tempHideShow("hide",chatIconsDisplay),"/login"!=window.location.pathname&&"/register-amcat"!=window.location.pathname&&($(window).on("load",function(){_gscq.push(["targeting","visible","false"])}),tempHideShow("hide",chatIconsDisplay))}function registerPopupCustomMessageSetter(e){switch(e){case"RBLandingPageCreate":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.makeProfessionalResume);break;case"RBLandingPageScore":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.feedbackResume);break;case"MockAILandingPageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerNowMsg),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.analyzeImproveSkills);break;case"ResumeTemplatePageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerNowMsg),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.freeAccessToResumeTemplate);break;case"MyenglishLandingPageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerNowMsg),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.improveEnglish);break;case"prepAmcatLandingPageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.mockTest);break;case"amcatPremiumLandingPageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerNowMsg),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.premiumAtDiscount);break;case"amCertificatesLandingPageRegister":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.techSkills);break;case"resumeTemplateCreateResume":$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.makeProfessionalResume);break;default:$(".tab-register-body .custom-heading-new-popUp").text(commonConfig.textContent.registerForFree),$(".tab-register-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.getJobAlerts)}}function tempHideShow(e,o){for(var t in o)"none"!=o[t]&&("hide"==e?$("#"+t).hide():$("#"+t).show())}function validateLoginUsingOTPForm(e,o){var t=!0;return hideVisibilityCommon($(".input-message")),0==e.val().length?(showValidation(e,commonConfig.textContent.emailRequired),t=!1):commonConfig.emailValidateRegex.test(e.val())||(showValidation(e,commonConfig.textContent.emailPattern),t=!1),0==o.val().length?(showValidation(o,commonConfig.textContent.otpRequired),t=!1):0==commonConfig.otpRegex.test(o.val())&&(showValidation(o,commonConfig.textContent.otpPattern),t=!1),t}function ajaxLoginSuccess(e,o){var t=o.status,o=o.data;if(1==t)if(1==o.directLogin){$(".redirecting-message-popup .custom-heading-new-popUp").text(commonConfig.textContent.loginSuccessMessage),$(".redirecting-message-popup .custom-2nd-heading-new-popUp").text(commonConfig.textContent.redirectPage+o.redirectPage),$(".login-register-tab").hide(),showFlex($(".redirecting-message-popup"));var n=global_content.param1;"NewHomePage"!=n&&"MyAMCATHomePage"!=n||gaTrigger(n,"LoginSuccess","Email"),window.location=o.redirectUrl}else"completeProfile"==o.nextScreen?(commonConfig.flowUrl=commonConfig.loginAjaxUrl,commonConfig.details.candidateID=o.candidateID,$("#completeProfileTitle").text(commonConfig.textContent.loginSuccessMessage),$("#completeProfileFormNew").data("submitUrl",commonConfig.loginAjaxUrl),$(".login-register-tab").hide(),$("#completeProfileFormNew")[0].reset(),showFlex($(".complete-profile-details-new")),o.skipCompleteProfile&&$("#skipCompleteProfileForm").show()):"emailVerificationOtp"==o.nextScreen&&(commonConfig.flowUrl=commonConfig.loginAjaxUrl,commonConfig.details.candidateID=o.candidateID,$("#emailLoginUsingOTP").val(commonConfig.details.userEmail),$(".login-using-otp .custom-heading-new-popUp").text(commonConfig.textContent.otpForLoginH1),$("#loginUsingOTPForm").data("submitUrl",commonConfig.loginAjaxUrl),$(".login-register-tab").hide(),$(".otp-login-title").hide(),showFlex($(".login-using-otp")),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback));else $(".tab-login-body .custom-2nd-heading-new-popUp").addClass("error-message").html(o.errorMessage).show()}function customRedirectParams(e){var o=$(".common-popup-body").hasClass("createResumeCheck"),t=$(".common-popup-body").hasClass("scoreResumeCheck"),n=$(".common-popup-body").hasClass("jobClicked");hasMockAITrialClass=$(".common-popup-body").hasClass("mockAITrialCheck"),readMoreRedirect=$(".common-popup-body").hasClass("readMoreRedirect"),rwsRedirect=getUrlParameter("s");var i=$(".common-popup-body").hasClass("createResumeRBTemplateClass"),a=$(".common-popup-body").hasClass("checkRBTemplateDownloadClass");if(o?(e.data.redirectUsingAJAX=1,e.data.source="createResume",e.data.source_cta="createResume"):t&&(e.data.redirectUsingAJAX=1,e.data.source="scoreResume",e.data.source_cta="scoreResume"),readMoreRedirect){var r=$(".common-popup-body").attr("for");e.data.redirectUsingAJAX=1,e.data.jid=r,e.data.source="readMoreRedirect",e.data.source_cta="readMoreRedirect"}if(n){var r=$(".common-popup-body").attr("for");e.data.redirectUsingAJAX=1,e.data.jid=r,e.data.source="applyJobs",e.data.source_cta="applyJobs"}hasMockAITrialClass&&(e.data.redirectUsingAJAX=1,e.data.source="mockAITrial",e.data.source_cta="mockAITrial"),"rws"==rwsRedirect&&(e.data.redirectUsingAJAX=1,e.data.source="rwsPaymentSuccess"),"ips"==rwsRedirect&&(e.data.redirectUsingAJAX=1,e.data.source="ipsPaymentSuccess"),i&&(e.data.redirectUsingAJAX=1,e.data.source="createResumeRBTemplate"),a&&(e.data.redirectUsingAJAX=1,e.data.source="CheckRBTemplateDoownload")}
1function ajaxLoginFormNew(){var e=$("#loginEmail").val(),o=$("#loginPasswordLoginFormNew").val(),t=$("#keepMeLoggedInkeepMeLoggedInloginFormNew").is(":checked"),n=$("#login_csrf_token").val();commonAjaxParam.url=commonConfig.loginAjaxUrl,commonConfig.details.userEmail=e,commonAjaxParam.data={flowScreen:"login",userName:e,password:o,web_token:n,"g-recaptcha-response":"",page:commonConfig.details.page,source:commonConfig.details.source,keepMeLoggedIn:t,page_url:window.location.href,source_cta:commonConfig.details.source},commonAjaxParam.cb=ajaxLoginSuccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam)}function otpTimer(e,o,t){hideVisibilityCommon($(".input-message")),o.parents(".custom-form").find(".additional-event.change-email").attr("readonly",!0),commonConfig.runner&&clearInterval(commonConfig.runner),commonConfig.runner=setInterval(function(){o.css("pointer-events","none").text(commonConfig.textContent.resendOTP+" in "+e+" sec"),e--,e<1&&(clearInterval(commonConfig.runner),t(o))},1e3)}function otpTimerCallback(e){e.css("pointer-events","auto").text(commonConfig.textContent.resendOTP),e.parents(".custom-form").find(".additional-event.change-email").css("pointer-events","auto")}function showValidation(e,o){var t=e.parents(".common-form-element");e.attr("readonly",!1),t.find(".input-message").text(o),showVisibilityCommon(t.find(".input-message"))}function hideValidation(e){var o=e.parents(".common-form-element");o.find(".input-message").text(""),hideVisibilityCommon(o.find(".input-message"))}function switchRegLogPopup(e){var o=e?$(".tab-register"):$(".tab-login"),t=e?$(".tab-register-body"):$(".tab-login-body"),n=e?$(".tab-login-body"):$(".tab-register-body");$(".popup-screen").hide(),showFlex($(".login-register-tab")),switchTab(o,t,n),showFlex($(".common-popup"))}var commonConfig=function(){var e={emailLable:"Email*",emailRequired:"Email is required.",emailPattern:"Please enter a valid email address.",passwordRequired:"Password is required.",passwordPattern:"Should contain atleast 1 special character/digit and be minimum of 8 characters long.",passwordPatternSuccess:"Password is secure and you are all set!",loginIntialH1:"Log into your account",loginForRegisteredUserH1:"Email ID already exists!",loginForRegisteredUserH2:"Please login to continue",fullNameRequired:"Name is required.",fullNamePattern:"Name must be 3 to 68 characters long.",mobileRequired:"Mobile Number is required.",mobilePattern:"Please enter a valid 10 digit mobile number",degreeRequired:"Degree is required.",yearOfCompletionRequired:"Year of completion is required.",otpRegisterTitle1:"Great! Your Profile Is Complete Now",otpPopupForRegisterH1:"To activate your account",otpForLoginH1:"Must verify your email as you are logging in for first time",otpSentEmail:"OTP sent to your email id",resendOTP:"Resend OTP",otpRequired:"OTP is required.",otpPattern:"OTP must be 4 digit number.",emailVerified:"Email ID Verified",redirectPage:"Taking you to ",emailMobilePattern:"Please enter valid email/mobile number.",loginSuccessMessage:"Login Successful!",registrationSuccessMessage:"Registration Successful!",emailMobileLable:"Email/Mobile Number*",emailMobileRequired:"Email/Mobile Number is required",otpSentMessage:"OTP sent to your email/phone number",orderID:"Please enter a valid Transaction ID",registerForFree:"Register for free",makeProfessionalResume:"Make professional resume in few clicks",getJobAlerts:"Get instant access to job alerts",feedbackResume:"Get instant feedback on your resume",registerNowMsg:"Register Now",analyzeImproveSkills:"Analyze and improve your interview skills",freeAccessToResumeTemplate:"Get free access to 32+ resume templates",improveEnglish:"Improve your English writing and speaking skills",mockTest:"Check your AMCAT preparation with mock test",premiumAtDiscount:"Get AMCAT premium at discounted price",techSkills:"Get yourself assessed on your technical skills",makeProfessionalResume:"Make professional resume in few clicks"},o={page:"page",source:window.location.pathname,userEmail:"",candidateID:"",queryParamStr:""},t="";return{textContent:e,details:o,flowUrl:t,queryParamStr:"",context:"",isMobileUser:"",runner:""}}();Object.defineProperty(commonConfig,"registerAjaxUrl",{value:"/register1"}),Object.defineProperty(commonConfig,"loginAjaxUrl",{value:"/login1"}),Object.defineProperty(commonConfig,"paymentFlowUrl",{value:"/payment1"}
1),Object.defineProperty(commonConfig,"forgotPasswordAjaxUrl",{value:"/forgotPassword1"}),Object.defineProperty(commonConfig,"emailValidateRegex",{value:/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/}),Object.defineProperty(commonConfig,"passwordRegex",{value:/^(?=.*[A-Za-z])((?=.*\d)|(?=.*[$@$!%*#?&]))[A-Za-z\d$@$!%*#?&]{8,}$/}),Object.defineProperty(commonConfig,"fullNameRegex",{value:/^[a-zA-Z ]{3,68}/}),Object.defineProperty(commonConfig,"mobileNumberRegex",{value:/^[9876][0-9]{9,9}$/}),Object.defineProperty(commonConfig,"otpRegex",{value:/^[0-9]{4,4}$/}),Object.defineProperty(commonConfig,"resendOtpTime",{value:30}),Object.defineProperty(commonConfig,"createResume",{value:"create_resume"});var AjaxContent=function(){return fireAjax=function(e){var o=e.$that||$(""),t=e.url,n=e.data,i=e.cb;bs=e.bs||function(){o.addClass("disabled"),showFlex($(".load-me"))},completeFun=e.completeFun||function(){o.removeClass("disabled"),$(".load-me").hide()},$.ajax({url:t,type:"POST",data:n,beforeSend:bs,success:function(e){e=JSON.parse(e),i(o,e)},complete:completeFun})},{fireAjax:fireAjax}}(),commonContent=commonContent?Object.assign({},commonContent,AjaxContent):AjaxContent,validate=function(){var e=$
1(document);$(window);setValidation=function(e){var o=$(this),t=o.closest(".validate");return t.length<1?(e.preventDefault(),e.stopImmediatePropagation(),o.parent().find(".error").html("Authentication Failure!!").attr("visibility","visible"),!1):(t.find(".error-border").removeClass("error-border"),validateInput(t)?void 0:(e.preventDefault(),e.stopImmediatePropagation(),!1))},validateInput=function(e){$(".custom-inputarea input").on("focus",function(){$(this).parents(".area-content").removeClass("error-border")});var o=e.find("input:not(:hidden)"),t=!0;if(o.length>0){var n={isReq:[/\S/g,"This field cannot be empty"],email:[/^$|^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/,commonConfig.textContent.emailPattern],pass:[/^$|^(?=.*[A-Za-z])((?=.*\d)|(?=.*[$@$!%*#?&]))[A-Za-z\d$@$!%*#?&]{8,}$/,commonConfig.textContent.passwordPattern],alphanum:[/^\w*$/,"Only alphanumeric characters allowed"],num:[/^\d*$/,"Only numbers allowed"],pnum:[/^$|^[6-9]\d{9}$/,commonConfig.textContent.mobilePattern],"char":[/^[a-zA-Z ]*$/,"Only characters allowed"],noSpace:[/^\S*$/,commonConfig.textContent.fullNamePattern],otp:[/^\S{4}$/,commonConfig.textContent.otpPattern],mailMob:[/^$|^[5-9]\d{9}$|^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/,commonConfig.textContent.emailMobilePattern],max:[/(max-)[0-9]/g,"Max {n} charcters allowed"],min:[/(min-)[0-9]/g,"Min {n} characters allowed"],imageFileType:["pdf","png","jpg","jpeg",""],resumeFileType:["pdf","doc"],orderID:[/^$|^[0-9]\d{6,7}$/,commonConfig.textContent.orderID],checktc:[!0,"Please check this"],checkpp:[!0,"Please check this"]};for(var i in n)for(var a,r,s=e.find('.area-content:not(:hidden):not(".error-border") .'+i),m=0,c=s.length;m<c;m++){var l=!0;if("max"===i||"min"===i){var g,p,d=$(s[m]).attr("class");a=n[i][1],d=d.match(n[i][0]),d=d[0]?d[0].split("-")[1]||0:0,d=+d,p="min"===i?"{"+d+",}":"{0,"+d+"}",g=new RegExp("^\\S"+p+"$"),a=a.replace("{n}",d),l=g.test($(s[m]).val())}else"imageFileType"==i?(a="Please upload an image with extension jpeg, jpg, png or pdf",r=$(s[m]).val().split(".").pop().toLowerCase(),$.inArray(r,n[i])==-1&&(l=!1),l=!r||l):"resumeFileType"==i?(a="Please upload a resume with extension pdf or doc",r=$(s[m]).val().split(".").pop().toLowerCase(),$.inArray(r,n[i])==-1&&(l=!1),l=!r||l):"checktc"==i?(a="",$(s[m]).is(":checked")||(l=!1)):"checkpp"==i?(a="",$(s[m]).is(":checked")||(l=!1)):(a=n[i][1],l=new RegExp(n[i][0]).test($(s[m]).val()));l||(t=t?l:t,$(s[m]).closest(".area-content").addClass("error-border"),$(s[m]).closest(".custom-inputarea,.common-form-element").find(".error").html(a).css("visibility","visible"),"checkpp"!=i&&"checktc"!=i||$(s[m]).css("outline","1px solid #ff0000"))}return t}},bindEvents=function(){$(".validate-submit").on("click",setValidation)},e.ready(function(){bindEvents()})}(),socialRedirectValue=null,chatIconsDisplay={emailUsID:"",liveChatID:"","collect-chat-launcher-container":"","collect-chat-frame-container":""};$(function(){commonConfig.details.page=window.location.pathname,$(document).on("click",".btnLoginWithCookie, .btnLogin",function(e){e=e||window.ev,e.preventDefault(),e.stopPropagation(),1==global_content.candidateDetails.toShowLoginPopUp?showCommonPopup.call(this,"loginPopup",e):showCommonPopup.call(this,"registerPopup",e)}),$(".password-helper input").on("keyup",function(e){e.stopPropagation();var o=$(this).parents(".password-helper").find(".error");$(this).val().match(commonConfig.passwordRegex)?o.text(commonConfig.textContent.passwordPatternSuccess):o.text(commonConfig.textContent.passwordPattern),showVisibilityCommon(o)}),$(".custom-input").on("keyup",function(){"button"!=$(this).attr("type")&&($(this).val().length>0?showVisibility($(this)):hideVisibility($(this)))}),$(".custom-drop-list").on("click",function(){showVisibility($(this).parents(".common-form-element").find(".custom-label"))}),$(".common-popup-close").on("click",function(){$(".common-popup").hide().attr("id",""),$(".main_wrapper").removeClass("freeze-container"),$("body").removeClass("overflowHidden"),commonConfig.details.source=window.location.pathname,0!=$("w-div").length,"/login"!=window.location.pathname&&"/register-amcat"!=window.location.pathname&&($(window).on("load",function(){_gscq.push(["targeting","visible","false"])}),tempHideShow("show",chatIconsDisplay)),$("a.social-login-coin-new.facebook-coin.loginComponent").attr("href",global_content.fbURL),$("a.social-login-coin-new.linkedin-coin.loginComponent").attr("href",global_content.linkedInURL),$("a.social-login-coin-new.google-plus-coin.loginComponent").attr("href",global_content.googlePlusURL),socialRedirectValue=null,$(this).parent(".common-popup-body").find("#emailRegistrationFormNew").val(""),$(this).parent(".common-popup-body").find("#passwordRegistrationFormNew").val(""),$(this).parent(".common-popup-body").find("#loginEmail").val(""),$(this).parent(".common-popup-body").find("#loginPasswordLoginFormNew").val("")}
1),$(".show-password").on("click",function(){$this=$(this),$thisParent=$this.parents(".common-input"),$thisParent.find(".custom-input").attr("type","text"),$this.hide(),$thisParent.find(".hide-password").show()}),$(".hide-password").on("click",function(){$this=$(this),$thisParent=$this.parents(".common-input"),$thisParent.find(".custom-input").attr("type","password"),$this.hide(),$thisParent.find(".show-password").show()}),$(".job-button-holder").on("click",function(){$.ajax({type:"POST",url:window.location.origin+"/update-apply",data:{type:"ApplyNowButton"}})})}),$(function(){var e=$(document);if(commonAjaxParam={},bindEvents=function(){e.on("click",".tab-login",loginTabClick).on("click",".additional-event.resend-otp",resendOtp).on("click",".additional-event.change-email",changeEmail).on("click","#forgotPasswordLoginUsingOtpTrigger",triggerForgotPassOtp).on("click",".forgot-password2-backevent",backEventSecPass).on("click","#skipCompleteProfileForm",skipCompleteProfile).on("click",".forgot-password1-backevent",function(){showCommonPopup("loginPopup")}).on("click",".tab-register",function(){switchTab($(this),$(".tab-register-body"),$(".tab-login-body"))}).on("keyup",".otp-ajax",triggerOTPAjax),$("#registrationFormNew").on("submit",registerationFormSubmit),$(".common-popup.after-login #completeProfileFormNew").on("submit",completeProfileSubmit),$(".common-popup.before-login #completeProfileFormNew").on("submit",completeProfileSubmit),$("#loginUsingOTPForm").on("submit",otpLoginFormSubmit),$("#loginFormNew").on("submit",loginFormSubmit),$("#passwordResetWithOtpForm1").on("submit",otpPassResetFirst),$("#passwordResetWithOtpForm2").on("submit",otpPassResetSecond)},triggerOTPAjax=function(e){var o=$(this).val(),t=$("#loginWithOtp_csrf").val();$(this).parents(".common-input").find(".otp-verify-icon").hide(),4==o.length&&(commonConfig.context=this,commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"OTPVerify",email:commonConfig.details.userEmail,otp:o,web_token:t,page:commonConfig.details.page,source:commonConfig.details.source},commonAjaxParam.cb=verifyOTP,commonContent.fireAjax(commonAjaxParam))},verifyOTP=function(e,o){var t=o.status;t?$(commonConfig.context).parents(".common-input").find(".otp-verify-icon.tick-icon").show():$(commonConfig.context).parents(".common-input").find(".otp-verify-icon").hide()},loginTabClick=function(){switchTab($(this),$(".tab-login-body"),$(".tab-register-body")),$(".tab-login-body .custom-heading-new-popUp").text(commonConfig.textContent.loginIntialH1),$(".tab-login-body .custom-2nd-heading-new-popUp").hide()},registerationSubmitSucccess=function(e,o){var t=o.status,o=o.data;if(1==t)if($("#captchaerror").text(""),0==o.isRegistered){$(".login-register-tab").hide(),commonConfig.details.candidateID=o.candidateID,$("#completeProfileTitle").text(commonConfig.textContent.registrationSuccessMessage),$("#completeProfileFormNew").data("submitUrl",commonConfig.registerAjaxUrl),$("#completeProfileFormNew")[0].reset(),showFlex($(".complete-profile-details-new"));var n=global_content.param1;"NewHomePage"==n||"MyAMCATHomePage"==n?(ga("send","event","REGISTRATION","reg_success","reg_"+n,1),ga("send","event",n,"RegisterSuccess","Email")):ga("send","event","REGISTRATION","reg_success","reg",1)}else switchTab($(".tab.tab-login"),$(".tab-login-body"),$(".tab-register-body")),$(".tab-login-body .custom-heading-new-popUp").text(commonConfig.textContent.loginForRegisteredUserH1),$(".tab-login-body .custom-2nd-heading-new-popUp").text(commonConfig.textContent.loginForRegisteredUserH2).show(),$(".tab-login-body #loginEmail").val(commonConfig.details.userEmail);else $("#captchaerror").text(o.errorMessage)},registerationFormSubmit=function(e){e.preventDefault();var o=$("#emailRegistrationFormNew"),t=$("#passwordRegistrationFormNew"),n=$("#reg_csrf_token").val(),i=$("#g-recaptcha-response").val();commonConfig.details.userEmail=o.val(),commonConfig.flowUrl=commonConfig.registerAjaxUrl,commonAjaxParam.url=commonConfig.flowUrl;var a="";if("undefined"!=typeof isGovtJob&&1==isGovtJob){a="RegisterBtn";var r=commonConfig.isApplyClicked;1==r&&(a="ApplyBtn")}commonAjaxParam.data={flowScreen:"register",email:commonConfig.details.userEmail,password:t.val(),web_token:n,page:commonConfig.details.page,source:commonConfig.details.source,page_url:window.location.href,source_cta:commonConfig.details.source,log_type:a,captcha:i},commonAjaxParam.cb=registerationSubmitSucccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam)},profileSubmitSuccess=function(e,o){var t=o.status,o=o.data;if(commonConfig.flowUrl==commonConfig.registerAjaxUrl)1==t&&("emailVerificationOtp"==o.nextScreen?($("#emailLoginUsingOTP").val(commonConfig.details.userEmail),$(".login-using-otp .otp-login-title").text(commonConfig.textContent.otpLoginTitle1),$("#loginUsingOTPForm").data("submitUrl",commonConfig.registerAjaxUrl),$(".login-using-otp .custom-heading-new-popUp").text(commonConfig.textContent.otpForRegisterH1),$(".complete-profile-details-new").hide(),showFlex($(".login-using-otp")),$(".login-using-otp .custom-2nd-heading-new-popUp").show(),$(".otp-login-title").show(),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback)):(o.nextScreen="loggedIn")&&($(".common-popup-close").click(),location.reload()));else if(commonConfig.flowUrl==commonConfig.loginAjaxUrl&&1==t)if("emailVerificationOtp"==o.nextScreen)$("#emailLoginUsingOTP").val(commonConfig.details.userEmail),$(".login-using-otp .otp-login-title").text(commonConfig.textContent.otpLoginTitle1),$(".login-using-otp .custom-heading-new-popUp").text(commonConfig.textContent.otpForLoginH1),$("#loginUsingOTPForm").data("submitUrl",commonConfig.loginAjaxUrl),$(".complete-profile-details-new").hide(),showFlex($(".login-using-otp")),$(".login-using-otp .custom-2nd-heading-new-popUp").hide(),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback),$(".otp-login-title").show();else if("success"==o.nextScreen){$(".redirecting-message-popup .custom-heading-new-popUp").text(commonConfig.textContent.emailVerified),$(".redirecting-message-popup .custom-2nd-heading-new-popUp").text(commonConfig.textContent.redirectPage+o.redirectPage),$(".complete-profile-details-new").hide();var n=global_content.param1;"NewHomePage"!=n&&"MyAMCATHomePage"!=n||gaTrigger(n,"LoginSuccess","Email"),showFlex($(".redirecting-message-popup")),null==localStorage.getItem("redirectUrl")?window.location=o.redirectUrl:(window.location=localStorage.getItem("redirectUrl"),localStorage.removeItem("redirectUrl"))}},skipCompleteProfile=function(e){e.preventDefault(),commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"skipCompleteProfile",email:commonConfig.details.userEmail,page:commonConfig.details.page,source:commonConfig.details.source,candidateID:commonConfig.details.candidateID},commonAjaxParam.cb=profileSubmitSuccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam)},completeProfileSubmit=function(e){e.preventDefault();var o=$("#fullNameCompleteProfileFormNew"),t=$("#mobileNumberCompleteProfileFormNew"),n=$("#degreeSelectCompleteProfileFormNew"),i=$("#yearOfCompletionSelectCompleteProfileFormNew"),a=$("#state"),r=$("#sourceid"),s=$("#completeProfile_csrf").val();hideVisibilityCommon($(".input-message")),commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"completeProfile",fullName:o.val(),mobileNumber:t.val(),degreeID:n.val(),yearOfCompletion:i.val(),email:commonConfig.details.userEmail,web_token:s,page:commonConfig.details.page,source:commonConfig.details.source,candidateID:commonConfig.details.candidateID,page_url:window.location.href,source_cta:commonConfig.details.source,state:a.val(),sourceid:r.val()},commonAjaxParam.cb=profileSubmitSuccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam)},otpLoginSubmitSuccess=function(e,o){var t=o.status,o=o.data;1==t?"success"==o.nextScreen&&($(".redirecting-message-popup .custom-heading-new-popUp").text(commonConfig.textContent.emailVerified),$(".redirecting-message-popup .custom-2nd-heading-new-popUp").text(commonConfig.textContent.redirectPage+o.redirectPage),$(".login-using-otp").hide(),showFlex($(".redirecting-message-popup")),null==localStorage.getItem("redirectUrl")?window.location=o.redirectUrl:(window.location=localStorage.getItem("redirectUrl"),localStorage.removeItem("redirectUrl"))):showValidation($("#otpLoginUsingOTP"),o.errorMessage)},otpLoginFormSubmit=function(e){e.preventDefault();var o=$("#emailLoginUsingOTP"),t=$("#otpLoginUsingOTP"),n=$("#keepMeLoggedInLoginUsingOTPForm").is(":checked"),i=$("#loginWithOtp_csrf").val();return hideVisibilityCommon($(".input-message")),1==validateLoginUsingOTPForm(o,t)&&(commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"emailVerificationOtp",email:o.val(),otp:t.val(),keepMeLoggedIn:n,web_token:i,page:commonConfig.page,source:commonConfig.source,candidateID:commonConfig.details.candidateID,page_url:window.location.href,source_cta:commonConfig.source},commonAjaxParam.cb=otpLoginSubmitSuccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam),void 0)},loginFormSubmit=function(e){e.preventDefault(),ajaxLoginFormNew()},otpResetSuccess=function(e,o){var t=$("#emailPasswordResetWithOtp1"),n=o.status;if(o=o.data,1==n){var i=$(".forgot-password-with-otp-2 .forgot-password-with-otp-2-email-lable");commonConfig.userEmail=t.val(),i.text(commonConfig.textContent.otpSentMessage),1==o.isMobileNumber?$(".forgot-password-with-otp-2-email-lable").text("OTP sent to your phone number"):$(".forgot-password-with-otp-2-email-lable").text("OTP sent to your email"),showVisibilityCommon(i),$("#emailPasswordResetWithOtp2").val(commonConfig.userEmail).attr("readonly",!0), 2$(".forgot-password-with-otp-1").hide(),showFlex($(".forgot-password-with-otp-2")),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback)}else{if(o.hideMessage)return commonConfig.userEmail=t.val(),$("#emailPasswordResetWithOtp2").val(commonConfig.userEmail).attr("readonly",!0),$(".forgot-password-with-otp-1").hide(),showFlex($(".forgot-password-with-otp-2")),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback),!1;var a=$("#emailPasswordResetWithOtp1").parents(".common-form-element").find(".input-message");a.text(o.errorMessage),showVisibilityCommon(a)}},otpPassResetFirst=function(e){e.preventDefault();var o=$("#emailPasswordResetWithOtp1"),t=$("#passwordResetWithOtp1_csrf").val();commonConfig.flowUrl=commonConfig.forgotPasswordAjaxUrl,commonConfig.details.userEmail=o.val(),commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"forgotPasswordEmail",email:o.val(),web_token:t,page:commonConfig.page,source:commonConfig.source},commonAjaxParam.cb=otpResetSuccess,commonContent.fireAjax(commonAjaxParam)},otpResetSecondSuccess=function(e,o){var t=o.status,o=o.data;1==t?($(".redirecting-message-popup .custom-heading-new-popUp").text(commonConfig.textContent.loginSuccessMessage),$(".redirecting-message-popup .custom-2nd-heading-new-popUp").text(commonConfig.textContent.redirectPage+o.redirectPage),$(".forgot-password-with-otp-2").hide(),showFlex($(".redirecting-message-popup")),window.location=o.redirectUrl):0==t&&($(".input-message.forgot-password-with-otp-2-login-message").text(o.errorMessage),showVisibilityCommon($(".input-message.forgot-password-with-otp-2-login-message")))},otpPassResetSecond=function(e){e.preventDefault(),hideVisibilityCommon($(".input-message.forgot-password-with-otp-2-login-message")),$("#passwordResetWithOtpForm2 .error").hide();var o=$("#emailPasswordResetWithOtp2"),t=$("#otpPasswordResetWithOtp2"),n=$("#passwordResetWithOtp2"),i=$("#keepMeLoggedInPasswordResetWithOtp2").is(":checked"),a=$("#passwordResetWithOtp2_csrf").val();commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"forgotPasswordValidateNLogin",email:o.val(),otp:t.val(),newPassword:n.val(),web_token:a,keepMeLoggedIn:i,page:commonConfig.page,source:commonConfig.source,page_url:window.location.href,source_cta:commonConfig.source},commonAjaxParam.cb=otpResetSecondSuccess,customRedirectParams(commonAjaxParam),commonContent.fireAjax(commonAjaxParam)},resetOtpSuccess=function(e,o){e=$(commonConfig.context);var t=e.parents(".custom-form"),n=t.find(".email-input"),i=o.status,o=o.data;1==i?(t.find(".forgot-password-with-otp-2-email-lable").text(commonConfig.textContent.otpSentMessage),n.attr("readonly",!0),otpTimer(commonConfig.resendOtpTime,$(".additional-event.resend-otp"),otpTimerCallback)):showValidation(n,o.errorMessage)},resendOtp=function(e){var o=$(this),t=o.parents(".custom-form"),n=t.find(".email-input"),i=$("#loginWithOtp_csrf").val();return 0==n.val().length?(showValidation(n,commonConfig.textContent.emailRequired),!1):commonConfig.mobileNumberRegex.test(n.val())||commonConfig.emailValidateRegex.test(n.val())?(email=n.val(),commonAjaxParam.url=commonConfig.flowUrl,commonAjaxParam.data={flowScreen:"resendOTP",email:email,candidateID:commonConfig.details.candidateID,web_token:i,page:commonConfig.page,source:commonConfig.source},commonConfig.context=this,commonAjaxParam.cb=resetOtpSuccess,void commonContent.fireAjax(commonAjaxParam)):(showValidation(n,commonConfig.textContent.emailMobilePattern),!1)},changeEmail=function(){var e;$(this).css("pointer-events","none");var o=$(this).parents(".common-form-element");o.find(".custom-input").attr("readonly",!1),o.find(".custom-input").focus(),e=$(this).hasClass("emailMobile")?commonConfig.textContent.emailMobileLable:commonConfig.textContent.emailLable,o.find(".custom-label").text(e)},triggerForgotPassOtp=function(e){$(".login-register-tab").hide(),$("#emailPasswordResetWithOtp1").val($("#loginEmail").val()),showFlex($(".forgot-password-with-otp-1"))},backEventSecPass=function(){$(".forgot-password-with-otp-2").hide(),$(".error-border").removeClass("error-border"),showFlex($(".forgot-password-with-otp-1")),$("#emailPasswordResetWithOtp1").focus()},bindEvents(),1==$(".common-popup.after-login ").length&&(showCommonPopup("completeProfile"),commonConfig.flowUrl=commonConfig.registerAjaxUrl,commonConfig.details.userEmail=global_content.candidateDetails.userName,commonConfig.details.candidateID=global_content.candidateDetails.candidateID),"/login"==window.location.pathname&&("ips"==getUrlParameter("s")||"rws"==getUrlParameter("s")||"amcatPro"==getUrlParameter("s"))&&1!=getUrlParameter("is_account_verified")){switch(getUrlParameter("s")){case"ips":socialRedirectValue="ipsPaymentSuccess";break;case"rws":socialRedirectValue="rwsPaymentSuccess";break;case"amcatPro":socialRedirectValue="amcatProPaymentSuccess"}showCommonPopup("loginWithOTP")}});
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.